Authored by 李奇

开关值约定

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