This commit is contained in:
邹宗楠
2022-12-21 16:29:50 +08:00
parent 142bd63dd4
commit f852d3611f

View File

@@ -388,8 +388,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
var mainIdInt int64
if storeSku.VendorMainId == "" {
localThing, _ := dao.GetThingToTiktokMapList(db, model.VendorIDDD, int64(storeSku.SkuID), storeDetail.VendorOrgCode)
globals.SugarLogger.Debugf("========localThing=============1 %s", utils.Format4Output(localThing, false))
if len(localThing) == 0 || localThing == nil {
mainOrderDetail, err := api.GetSkuDetailLocalID("", utils.Int2Str(storeSku.SkuID))
globals.SugarLogger.Debugf("========mainOrderDetail=============1 %s", utils.Format4Output(mainOrderDetail, false))
if err != nil {
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDDD], syncType)
continue