|
|
@@ -1,4 +1,6 @@
|
|
|
+import { TradeMode } from "@/common/constants/enumCommon";
|
|
|
import { getSelectedAccountId, getUserId } from "@/services/bus/account";
|
|
|
+import { getMarketByTradeMode } from "@/services/bus/market";
|
|
|
import { funCode } from "@/services/funcode";
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import { IMessageHead } from "./proto";
|
|
|
@@ -37,10 +39,10 @@ export function getProtoHeadParam(funCodeName: string, type: HeadEnum = 0): IMes
|
|
|
})
|
|
|
break
|
|
|
case HeadEnum.MarketID15101:
|
|
|
- result = Object.assign(result, { MarketID: 15101,})
|
|
|
+ result = Object.assign(result, { MarketID: getMarketByTradeMode(TradeMode.ChannelTrading), })
|
|
|
break;
|
|
|
case HeadEnum.MarketID69201:
|
|
|
- result = Object.assign(result, { MarketID: 69201,})
|
|
|
+ result = Object.assign(result, { MarketID: getMarketByTradeMode(TradeMode.Platinum), })
|
|
|
break;
|
|
|
}
|
|
|
return result
|