Pārlūkot izejas kodu

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

huangbin 4 gadi atpakaļ
vecāks
revīzija
d173e89acd
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/services/socket/protobuf/buildReq.ts

+ 2 - 1
src/services/socket/protobuf/buildReq.ts

@@ -276,7 +276,8 @@ export function protoMiddleware<T>(param: T, reqName: string, rspName: string, h
             headerEnum,
         };
         const package50 = buildProtoReq50(params);
-        APP.sendTradingServer(package50, undefined, {
+        const code = rspName ? funCode[rspName] : undefined
+        APP.sendTradingServer(package50, code, {
             onSuccess: (res) => {
                 const { isSuccess, result } = parseProtoRsp50(res, rspName);
                 if (isSuccess) {