-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnvironmentConfiguration.h
More file actions
73 lines (45 loc) · 1.68 KB
/
EnvironmentConfiguration.h
File metadata and controls
73 lines (45 loc) · 1.68 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//
// EnvironmentConfiguration.h
// ShanChain
//
// Created by 千千世界 on 2018/9/13.
// Copyright © 2018年 ShanChain. All rights reserved.
//
#ifndef EnvironmentConfiguration_h
#define EnvironmentConfiguration_h
#define Prtocol @"http://"
#define SC_APP_CHANNEL @"appStore"
//#define SC_APP_CHANNEL @"pgyer"
#define PN_ENVIRONMENT 3 // 3 生产 2 测试
#if PN_ENVIRONMENT == 0
#define HostName @"172.16.14.6"
#define PORT @"8089"
#define Base_url [NSString stringWithFormat:@"%@%@:%@",Prtocol,HostName,PORT]
#define SC_BASE_PORT_8082 @"http://67.218.159.56:8082"
#define SC_BASE_PORT_8083 @"http://67.218.159.56:8083"
#define SC_BASE_PORT_8081 @"http://67.218.159.56:8081"
/******************************************/
#elif PN_ENVIRONMENT == 1
#define HostName @"47.100.20.170"
#define Base_url [NSString stringWithFormat:@"%@%@",Prtocol,HostName]
#define SC_BASE_PORT_8082 Base_url
#define SC_BASE_PORT_8083 Base_url
/******************************************/
#elif PN_ENVIRONMENT == 2
#define HostName @"test.qianqianshijie.com"
#define Base_url [NSString stringWithFormat:@"%@%@",Prtocol,HostName]
#define SC_BASE_PORT_8082 Base_url
#define SC_BASE_PORT_8083 Base_url
#elif PN_ENVIRONMENT == 3
#define HostName @"api.qianqianshijie.com"
//#define HostName @"api.qianqianshijie.com"
#define Base_url [NSString stringWithFormat:@"%@%@",Prtocol,HostName]
#define SC_BASE_PORT_8082 Base_url
#define SC_BASE_PORT_8083 Base_url
#else
#define HostName @"2zgjurtx0g.51http.tech"
#define Base_url [NSString stringWithFormat:@"%@%@",Prtocol,HostName]
#define SC_BASE_PORT_8082 Base_url
#define SC_BASE_PORT_8083 Base_url
#endif
#endif /* EnvironmentConfiguration_h */