config.js
2.96 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
74
75
76
77
import {NativeModules,} from 'react-native';
/**
* 小程序配置文件
*/
//默克
// let config = {
// apiUrl:'https://api.houhou-mpmc.com/router?',
// uploadUrl:'https://my.houhou-mpmc.com/api/fileUpload.do',
// app_key:'0617CA8376F9901F28FF46B69BF9CF55',
// secret:'28570C9D069ED51226DD9F028BD5E6EE'
// };
//
//
//
// // 本地环境
// const LOCAL_URL = "http://192.168.80.8:9010/router?";
// // 开发环境
// const DEV_URL = "https://api-daily.xiniunet.com/router?";
// // 测试环境
// const TEST_URL = "http://www-test.herentech.com:9010/router?";
// // 生产环境
// const ONLINE_URL = "http://www.herentech.com:9010/router?";
//
// const ZHOUSHAN_URL = "https://api.jphigo.com/router?";
const env='pre';
let config = {
apiUrl:'https://api.jphigo.com/router?',
app_key:'465D1CE53070AA3487F8ADC489901D02',
secret:'4D50F721BCFE0800084257A970102610',
pointHtmlUrl:'https://jf-m.jphigo.com',
htmlUrl:'https://m.jphigo.com',
uploadUrl:'https://my.jphigo.com/api/fileUpload.do',
uploadUrl2:'https://my.jphigo.com/api/attachmentUpload.do',
wechatId:'wxe4e103b18601db2b',
tenantId:'0'
};
if(env=='dev'){
// 开发环境
config.apiUrl='https://api-dev.xiniunet.com/router?';
config.app_key = 'FEDA506D38D8E930626E850139E74E0C';
config.secret = '9019951CC31D86A31D2E911D4BE51142';
config.uploadUrl = 'https://my-plat.xiniunet.com/api/fileUpload.do';
config.uploadUrl2="https://my-plat.xiniunet.com/api/attachmentUpload.do";
config.htmlUrl='https://ebusiness-mb2c-dev.xiniunet.com';
config.wechatId='wxcf1f6c063983e35b';
config.tenantId='801689539428098048';
}else if(env=='test'){
config.apiUrl='https://api-test.xiniunet.com/router?';
config.app_key = 'FEDA506D38D8E930626E850139E74E0C';
config.secret = '9019951CC31D86A31D2E911D4BE51142';
config.uploadUrl = 'https://my-test.xiniunet.com/api/fileUpload.do';
config.uploadUrl2= 'https://my-test.xiniunet.com/api/attachmentUpload.do';
config.htmlUrl='https://ebusiness-mb2c-test.xiniunet.com';
config.wechatId='wxcf1f6c063983e35b';
config.tenantId='973848199737774088';
}else if(env=='daily'){
config.apiUrl='https://api-daily.xiniunet.com/router?';
config.app_key = 'FEDA506D38D8E930626E850139E74E0C';
config.secret = '9019951CC31D86A31D2E911D4BE51142';
config.uploadUrl = 'https://my-daily.xiniunet.com/api/fileUpload.do';
config.htmlUrl='https://ebusiness-mb2c-daily.xiniunet.com';
config.wechatId='wxcf1f6c063983e35b';
config.tenantId='852769418315444224';
}else if(env=='pre'){
config.apiUrl='https://railway-dt.shmetro.com/router?';
config.app_key = '0617CA8376F9901F28FF46B69BF9CF44';
config.secret = '28570C9D069ED51226DD9F028BD5E6DD';
config.uploadUrl = 'https://my-dt.shmetro.com/api/fileUpload.do';
config.htmlUrl='https://ebusiness-mb2c.xiniunet.com';
config.wechatId='wxcf1f6c063983e35b';
config.tenantId='973848199737774088';
}
module.exports = config;