Explorar o código

修改 盘面请求数据

huangbin %!s(int64=4) %!d(string=hai) anos
pai
achega
62e1a37884
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/services/go/ermcp/goodsInfo/index.ts

+ 4 - 4
src/services/go/ermcp/goodsInfo/index.ts

@@ -115,12 +115,12 @@ export function QueryMiddleGoodsDetail(middlegoodsid?: number): Promise<Ermcp3Mi
  */
 export function GetErmcpGoods(lastUpdateTime?: string): Promise<string> {
     const param = lastUpdateTime ? { lastUpdateTime } : {}
-    return commonSearch_go('/Ermcp/GetErmcpGoods', param).then(res => {
+    return commonSearch_go('/Ermcp/GetErmcpGoods', param).then(async res => {
+
         if (res.length) {
-            // goodscode 必须转换成大写
-            const result = res.reduce((acc: string, obj: Goods) => acc + (obj.goodscode).toLocaleUpperCase() + ',', '')
+            const result = res.reduce((acc: string, obj: Goods) => acc + obj.goodscode + ',', '')
             // 登录的时候或者刷新的时候,需要获取一次盘面信息
-            QueryQuoteDay(result)
+            await QueryQuoteDay(result)
         }
         // console.log('查询企业风管期货商品信息', res);
         APP.set('Goods', res)