Authored by 李奇

开关值约定

@@ -119,7 +119,7 @@ App({ @@ -119,7 +119,7 @@ App({
119 iconfSwitch(this).then(data => { 119 iconfSwitch(this).then(data => {
120 console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> app onshow switch'); 120 console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> app onshow switch');
121 this.globalData.hasSetSwitch = true; 121 this.globalData.hasSetSwitch = true;
122 - if (data['disableJavaApi'] && md5('disableJavaApi') === data['disableJavaApi']) { // TODO 键值确认 122 + if (data['javaapi'] && md5('0') === data['javaapi']) {
123 this.globalData.switch_javaApiEnable = false; 123 this.globalData.switch_javaApiEnable = false;
124 } 124 }
125 }, () => { 125 }, () => {
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 // export const ACTIVITY_HOST = 'https://action.yoho.cn'; 4 // export const ACTIVITY_HOST = 'https://action.yoho.cn';
5 // export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3'; 5 // export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3';
6 // export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile'; 6 // export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
7 -// export const ICONFIG_HOST = 'https://iconfig.yoho.cn/lb/v3'; 7 +// export const ICONFIG_HOST = 'https://iconfig.yoho.cn/miniapp/v1/';
8 8
9 // 测试环境 9 // 测试环境
10 export const API_HOST = 'http://api-test3.dev.yohocorp.com'; 10 export const API_HOST = 'http://api-test3.dev.yohocorp.com';
@@ -12,7 +12,7 @@ export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com'; @@ -12,7 +12,7 @@ export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
12 export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com'; 12 export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com';
13 export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3'; 13 export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3';
14 export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile'; 14 export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
15 -export const ICONFIG_HOST = 'http://iconfig.yoho.cn/lb/v3'; 15 +export const ICONFIG_HOST = 'http://iconfig.yoho.cn/miniapp/v1/';
16 16
17 export const MINI_APP_TYPE = 29; 17 export const MINI_APP_TYPE = 29;
18 export const MINI_QR_TYPE = 16; 18 export const MINI_QR_TYPE = 16;
@@ -48,7 +48,7 @@ class Service { @@ -48,7 +48,7 @@ class Service {
48 return iconfSwitch().then(data => { 48 return iconfSwitch().then(data => {
49 console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> _get switch'); 49 console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> _get switch');
50 app.globalData.hasSetSwitch = true; 50 app.globalData.hasSetSwitch = true;
51 - if (data['disableJavaApi'] && md5('disableJavaApi') === data['disableJavaApi']) { // TODO 键值确认 51 + if (data['javaapi'] && md5('0') === data['javaapi']) {
52 app.globalData.switch_javaApiEnable = false; 52 app.globalData.switch_javaApiEnable = false;
53 } 53 }
54 return executeReq(); 54 return executeReq();