li.shaoyi 2 anni fa
parent
commit
54410b74c2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/services/socket/trade/index.ts

+ 2 - 1
src/services/socket/trade/index.ts

@@ -14,12 +14,13 @@ export default new (class {
      * @returns 
      */
     private send<T>({ params, reqName, rspName, marketId = 0 }: TradeRequestConfig) {
-        const { userId } = loginStore.$mapGetters()
+        const { userId, firstAccountId } = loginStore.$mapGetters()
         const reqCode = FunCode[reqName]
         const rspCode = FunCode[rspName]
 
         // 默认请求头
         params.Header = {
+            AccountID: firstAccountId.value,
             MarketID: marketId,
             FunCode: reqCode,
             UUID: v4(),