Pārlūkot izejas kodu

解决交易日参数问题

li.shaoyi 3 gadi atpakaļ
vecāks
revīzija
1e8973febe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)
 }