|
|
@@ -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)
|