UrlMacro.h
2.81 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
//
// UrlMacro.h
// CNLiveScioLive
//
// Created by CNLive-zxw on 2018/9/20.
// Copyright © 2018年 CNLive. All rights reserved.
//
#ifndef UrlMacro_h
#define UrlMacro_h
#ifdef DEBUG
#define REQUESTURL(url) [@"http://test.app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url]
#else
#define REQUESTURL(url) [@"http://app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url]
#endif
#define IS_STRING_EMPTY(string) (string==nil || string == NULL || [string isKindOfClass:[NSNull class]] || [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0 || [string isEqualToString:@""] || [string isEqualToString:@"<null>"])
#define LOCARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"LocArrayList.db"]
#define TOPARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"TopArrayList.db"]
#define BOTARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"BotArrayList.db"]
#define ALLARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"AllArrayList.db"]
#define FavouriteAuthors_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"FavouriteAuthor.db"]
#define SQLITE_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"notice.sqldb"]
#define SEARCH_HISTORY @"searchHistory.txt"
#define searchApi REQUESTURL(@"gxb/api/programList")
#define IKEY @"0"
#define PLAT @"i"
#define FRMID @"huayutime"
#define SP_ID @"io2g5jji37"
#define SP_KEY @"5f05d34d64de420e840ba4cc45640746"
#define REQUEST_PAGE_SIZE @"10"
//直播
#define LiveUrl @"http://app.scio.gov.cn/live/liveinfo?version=3.3.0"
#define zhibo @"http://app.scio.gov.cn/live/liveinfo"
#define tuwenzhibo @"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=ZhiBo"
//#define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
#define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
#define FORECAST REQUESTURL(@"gxb/api/")
#define yugaoliebiao @"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=DocList&ChannelID=20490"
//#define newsdetail(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
#endif /* UrlMacro_h */