huangbin 4 anni fa
parent
commit
cf5114f961

+ 3 - 3
src/services/socket/order/index.ts

@@ -52,7 +52,7 @@ export const orderReq = (param: orderType.OrderReqType): Promise<string> => {
                 DelistingType: DelistingType.selected, // 摘牌类型
                 ServiceTime: '', // 服务端时间
             },
-            msgHeadParams: {
+            headParam: {
                 AccountID: param.AccountID,
                 MarketID: param.MarketID,
                 GoodsID: param.GoodsID,
@@ -93,7 +93,7 @@ export const cancelOrderReq = (param: orderType.CancelOrderReq): Promise<string>
                 OldOrderId: param.OldOrderId, // 原委托单号
                 AccountID: param.AccountID, // 交易账号
             },
-            msgHeadParams: {
+            headParam: {
                 AccountID: param.AccountID,
                 MarketID: param.MarketID,
                 GoodsID: param.GoodsID,
@@ -128,7 +128,7 @@ export function CancelPaymentReq(param: orderType.CancelPaymentReq): Promise<str
                 TradeID: param.tradeID,
                 AccountID: param.accountID,
             },
-            msgHeadParams: {
+            headParam: {
                 AccountID: param.accountID,
                 MarketID: param.marketID,
                 GoodsID: param.goodsID,

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

@@ -83,6 +83,7 @@ function buildSoleProtoReq(protobufName: string, reqParams: type.ReqParams) {
             console.error(`$报文包中不存在 ${item} 属性}`);
         }
     }
+    console.log('Req', Req)
     return Req;
 }
 

+ 0 - 2
src/services/socket/protobuf/interface.ts

@@ -21,7 +21,6 @@ export interface SoleSearchParam {
     headParam?: IMessageHead; // messgeHead 参数
 
     Header?: IMessageHead; // messgeHead 参数
-    msgHeadParams?: IMessageHead; // messgeHead 参数
 }
 
 export interface ParseRsp {
@@ -33,5 +32,4 @@ export interface ComomonParamsType {
     protobufName: string; // protobuf名
     funCodeName: string; // funCode名
     reqParams: ReqParams; // 传入后台报文中的各种参数
-    msgHeadParams?: IMessageHead; // messgeHead 参数
 }