1
This commit is contained in:
@@ -1087,6 +1087,7 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
|
|||||||
}
|
}
|
||||||
if len(skuIDs) > 0 {
|
if len(skuIDs) > 0 {
|
||||||
// 判断是否改价
|
// 判断是否改价
|
||||||
|
if payload["price"] != nil {
|
||||||
nowPrice, _ := payload["price"].(json.Number).Int64()
|
nowPrice, _ := payload["price"].(json.Number).Int64()
|
||||||
if skuName.Price != int(nowPrice) && nowPrice != 0 {
|
if skuName.Price != int(nowPrice) && nowPrice != 0 {
|
||||||
|
|
||||||
@@ -1106,6 +1107,7 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
|
|||||||
SetUpdateSkuPriceIfChange(db, skuPrice, nowPrice, skuInfo.Id)
|
SetUpdateSkuPriceIfChange(db, skuPrice, nowPrice, skuInfo.Id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 更新skuIds对应在store_sku_bind中的价格体系,解决老版本改价之前关注的商品,在价格修改后,store_sku_bind中京西价未修改的问题
|
// 更新skuIds对应在store_sku_bind中的价格体系,解决老版本改价之前关注的商品,在价格修改后,store_sku_bind中京西价未修改的问题
|
||||||
if _, err = SetStoreSkuSyncStatus2(db, nil, partner.GetSingleStoreVendorIDs(), skuIDs, model.SyncFlagModifiedMask); err != nil {
|
if _, err = SetStoreSkuSyncStatus2(db, nil, partner.GetSingleStoreVendorIDs(), skuIDs, model.SyncFlagModifiedMask); err != nil {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package apimanager
|
|||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||||
"git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
|
"git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -74,9 +73,6 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
|||||||
if len(codes) == 0 {
|
if len(codes) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("============codes1 %s", utils.Format4Output(codes, false))
|
|
||||||
globals.SugarLogger.Debugf("============codes2 %s", beego.AppConfig.DefaultString("tiktokShopAppId", ""))
|
|
||||||
globals.SugarLogger.Debugf("============codes3 %s", beego.AppConfig.DefaultString("tiktokShopAppSecret", ""))
|
|
||||||
pfAPI = tiktok_api.New(beego.AppConfig.DefaultString("tiktokShopAppId", ""), beego.AppConfig.DefaultString("tiktokShopAppSecret", ""), codes[0].Token)
|
pfAPI = tiktok_api.New(beego.AppConfig.DefaultString("tiktokShopAppId", ""), beego.AppConfig.DefaultString("tiktokShopAppSecret", ""), codes[0].Token)
|
||||||
}
|
}
|
||||||
return pfAPI
|
return pfAPI
|
||||||
|
|||||||
Reference in New Issue
Block a user