1
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
product_addV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/response"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode"
|
||||
@@ -151,6 +152,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
|
||||
if len(localThing) == 0 {
|
||||
param, failedList2 := makeMainProductSku(db, api, storeSku, storeDetail, storeID, vendorStoreID, syncType)
|
||||
globals.SugarLogger.Debugf("============param := %s", utils.Format4Output(param, false))
|
||||
if len(failedList2) != 0 {
|
||||
storeSku.SkuSyncStatus = model.SyncFlagNewMask // 只创建主品,子品都没做
|
||||
failedList = append(failedList, failedList2...)
|
||||
@@ -526,8 +528,10 @@ func makeMainProductSku(db *dao.DaoDB, api *tiktokShop.API, storeSku *dao.StoreS
|
||||
if param.StandardBrandId == 0 {
|
||||
param.StandardBrandId = 596120136
|
||||
}
|
||||
|
||||
globals.SugarLogger.Debugf("============param := %s", utils.Format4Output(111111, false))
|
||||
param.FreightId, param.SaleLimitId, err = getFreightIdAndSaleLimitId(api, db, storeDetail, vendorStoreID)
|
||||
globals.SugarLogger.Debugf("============param.FreightId := %s", utils.Format4Output(param.FreightId, false))
|
||||
globals.SugarLogger.Debugf("============param.SaleLimitId := %s", utils.Format4Output(param.SaleLimitId, false))
|
||||
if err != nil {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSku, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user