1
This commit is contained in:
@@ -201,6 +201,8 @@ func (c *OrderManager) addAfsOrderStatus(db *dao.DaoDB, orderStatus *model.Order
|
||||
db = dao.GetDB()
|
||||
}
|
||||
isDuplicated, err = addOrderOrWaybillStatus(orderStatus, db)
|
||||
globals.SugarLogger.Debugf("=========isDuplicated :%s", utils.Format4Output(isDuplicated, false))
|
||||
globals.SugarLogger.Debugf("=========err :%s", utils.Format4Output(err, false))
|
||||
if err == nil && !isDuplicated && (orderStatus.Status != model.OrderStatusUnknown && orderStatus.Status != model.OrderStatusMsg) {
|
||||
order = &model.AfsOrder{
|
||||
AfsOrderID: orderStatus.VendorOrderID,
|
||||
@@ -234,6 +236,9 @@ func (c *OrderManager) addAfsOrderStatus(db *dao.DaoDB, orderStatus *model.Order
|
||||
updateFields = append(updateFields, "AfsTotalShopMoney")
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("=========order :%s", utils.Format4Output(order, false))
|
||||
globals.SugarLogger.Debugf("=========updateFields :%s", utils.Format4Output(updateFields, false))
|
||||
|
||||
utils.CallFuncLogError(func() error {
|
||||
_, err = dao.UpdateEntity(db, order, updateFields...)
|
||||
return err
|
||||
|
||||
@@ -168,6 +168,7 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return mtwmapi.Err2CallbackResponse(err, "")
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode"
|
||||
@@ -315,6 +316,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
param.WhiteBackGroundPicUrl = whiteImg
|
||||
param.WeightUnit = tiktokShop.WeightUint_G
|
||||
|
||||
globals.SugarLogger.Debugf("==param.Pic===== :%s", utils.Format4Output(param.Pic, false))
|
||||
globals.SugarLogger.Debugf("==storeSku.SkuVendorMapCatID ===== :%s", utils.Format4Output(storeSku.SkuVendorMapCatID, false))
|
||||
// 部分商品没有所属的分类,直接跳过!
|
||||
if storeSku.SkuVendorMapCatID != "" {
|
||||
param.CategoryLeafId = utils.Str2Int64(storeSku.SkuVendorMapCatID)
|
||||
|
||||
Reference in New Issue
Block a user