Common.h
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Common.h
// CNLive
//
// Created by 雷浩杰 on 15/9/1.
// Copyright (c) 2015年 雷浩杰. All rights reserved.
//
#ifndef CNLive_Common_h
#define CNLive_Common_h
#ifdef DEBUG
#define D_NSLog(format, ...) NSLog(format, ## __VA_ARGS__);
#define AppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] ///debug用 "CFBundleVersion"
#define IAP_URL @"https://sandbox.itunes.apple.com/verifyReceipt"
#else
#define D_NSLog(format, ...);
#define AppVersion ([[[NSBundle mainBundle] infoDictionary] objectForKey: @"CFBundleShortVersionString"])
#define IAP_URL @"https://buy.itunes.apple.com/verifyReceipt"
#endif
#define KScreenWidth ([UIScreen mainScreen].bounds.size.width > [UIScreen mainScreen].bounds.size.height ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width)
#define KScreenHeight ([UIScreen mainScreen].bounds.size.width > [UIScreen mainScreen].bounds.size.height ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height)
#define KVideoHeight (KScreenWidth*9/16)
//视讯云
#define SxyAppKey @"13c6f0ad6f459cd479834b0b39cff99c6cf20c970815bb"
#define kUserDefaultsUIDKey (@"uid_stat") //用时间戳和uuid在首次启动app是创建的uid
////wechat
//#define WeChatAppKey @"wxeeb61dff43ecc2fe"
#define WeChatAppSecret @"29460b53af8ebc4798e85a06c936c80e"
////qq
//#define QQAppKey @"100757437"
//#define QQAppSecret @"4d8f9a54a50269ba97d5ba92b95a54d4"
////Sina
//#define SinaAppKey @"1523705845"
//#define SinaAppSecret @"101788682a6ce4d19e4add30d15211f5"
#ifdef __OBJC__
//static NSString *const Newslist = @"http://app.jczb.cnlive.com/api/newslist";
static NSString *const Newslist = @"http://intertv.cnlive.com/zgw_sp/api/newslist";
//视频上传服务协议
static NSString *const uploadServiceProtocol = @"http://data.cnlive.com/term/hdtv/upload.html";
//申请主播
static NSString *const applyAnchor = @"https://mobile.cnlive.com/CnliveMobile/host/apply.action";
#endif
#endif