Commit 3946dfafe2edac00a04c214b57f4d85740b57110

Authored by vking
1 parent 1a8cfeac

网络优化并发bug

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