Authored by 李奇

开关逻辑优化

... ... @@ -122,6 +122,8 @@ App({
if (data['disableJavaApi'] && md5('disableJavaApi') === data['disableJavaApi']) { // TODO 键值确认
this.globalData.switch_javaApiEnable = false;
}
}, () => {
this.globalData.hasSetSwitch = true;
});
let that = this
let params = {};
... ...
... ... @@ -52,6 +52,9 @@ class Service {
app.globalData.switch_javaApiEnable = false;
}
return executeReq();
}, () => {
app.globalData.hasSetSwitch = true;
return executeReq();
});
} else {
return executeReq();
... ... @@ -87,6 +90,9 @@ class Service {
app.globalData.switch_javaApiEnable = false;
}
return executeReq();
}, () => {
app.globalData.hasSetSwitch = true;
return executeReq();
});
} else {
return executeReq();
... ...