+ handleWaybillTip

This commit is contained in:
gazebo
2019-07-30 16:26:56 +08:00
parent 65994f8824
commit 2cce24bd72
4 changed files with 64 additions and 9 deletions

View File

@@ -447,7 +447,7 @@ func (c *PurchaseHandler) UpdateWaybillTip(ctx *jxcontext.Context, order *model.
orderInfo, err := api.JdAPI.QuerySingleOrder2(order.VendorOrderID)
if err == nil {
tip2Add := int(tipFee) - orderInfo.Tips
if tip2Add > 0 {
if tip2Add != 0 {
if globals.EnableJdStoreWrite {
err = api.JdAPI.OrderAddTips(order.VendorOrderID, tip2Add, ctx.GetUserName())
}