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