From b0fa7ef79d1a295abba478b6e8d8408e3d006912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 19 May 2023 11:13:22 +0800 Subject: [PATCH] 1 --- platformapi/fnpsapi/order.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platformapi/fnpsapi/order.go b/platformapi/fnpsapi/order.go index 06ddc21c..0dbce9d8 100644 --- a/platformapi/fnpsapi/order.go +++ b/platformapi/fnpsapi/order.go @@ -171,9 +171,7 @@ func (a *API) CancelOrder(req *CancelOrderReq) (err error) { if req.PartnerOrderCode == "" && req.OrderId == "" { return errors.New("内部订单号或者外部订单号比填写一个") } - if req.OrderCancelCode == 0 && req.OrderCancelOtherReason == "" { - req.OrderCancelOtherReason = "暂时不想要了" - } + req.OrderCancelOtherReason = "暂时不想要了" orderHead := a.MakeFnRequestHead() business, err := json.Marshal(req)