Ver Fonte

解决交易日参数问题

li.shaoyi há 3 anos atrás
pai
commit
1e8973febe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/services/proto/hedgeplan/index.ts

+ 1 - 1
src/services/proto/hedgeplan/index.ts

@@ -15,7 +15,7 @@ import { GldErmcpSpotContractOperateReq } from "@/services/proto/spotcontract/in
  */
 export const hedgePlanReq = (param: ErmcpHedgePlanReq): Promise<any> => {
     param.ApplySrc = 2; // 申请来源 - 1:管理端 2:终端
-    param.TradeDate = moment().format("YYMMDD");
+    param.TradeDate = moment().format("YYYYMMDD");
     return protoMiddleware<ErmcpHedgePlanReq>(param, 'ErmcpHedgePlanReq', 'ErmcpHedgePlanRsp', 2)
 }