Commit 3946dfafe2edac00a04c214b57f4d85740b57110

Authored by vking
1 parent 1a8cfeac

网络优化并发bug

... ... @@ -102,7 +102,7 @@ function rpc(host = '', act, data = {}, fouce = false, header = {}, silence = tr
mask: true
})
}
if (RMT.check(cache_key)) return RMT.get(cache_key)
if (RMT.check(cache_key) && !api.hasDisabledRMT) return RMT.get(cache_key)
RMT.set(cache_key)
return new Promise(async(success, fail) => {
if(api.msgSecCheck){//数据安全检查
... ...
... ... @@ -8,6 +8,7 @@ export default {
//ximing http://www.dzapi.com/index.php?s=
alias: 'App.TestManagement.TestReal', //真实接口名称,默认为空
msgSecCheck:true, //进行内容安全检查
hasDisabledRMT:true, //默认false进行网络并发管理, true不进行并发管理
},
//预订信息详情
... ... @@ -160,9 +161,13 @@ export default {
//菜品规格
'App.Advance.GetCookbookSelBySpecsId': null,
//添加到购物车
'App.Advance.AddCart': null,
'App.Advance.AddCart': {
hasDisabledRMT:true,//可并发
},
//减菜
'App.Advance.ReduceOrder': null,
'App.Advance.ReduceOrder': {
hasDisabledRMT:true,//可并发
},
//设置人数,设置备注
'App.Advance.SetOrderById':null,
//清空购物车
... ...