This commit is contained in:
苏尹岚
2020-12-22 11:16:43 +08:00
parent 341004583d
commit 57a9d70c74

View File

@@ -1,6 +1,7 @@
package fn
import (
"strings"
"time"
"git.rosy.net.cn/baseapi/utils"
@@ -45,6 +46,9 @@ func (c *DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int,
OrderCancelCode: fnpsapi.OrderCancelReson8,
OrderCancelTime: time.Now().UnixNano() / 1e6,
})
if strings.Contains(err.Error(), "运单暂未生成") {
err = nil
}
return err
}