Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -449,8 +449,9 @@ func GetProductAuditList(vendorOrgCode string) map[string]string {
|
||||
if _, ok := v.AuditReason["综合原因"]; ok {
|
||||
if strings.Contains(v.AuditReason["综合原因"][0], "该商品类目选择错误,推荐放置在") {
|
||||
list := strings.Split(v.AuditReason["综合原因"][0], `“`)
|
||||
categoryNameList := strings.Split(list[1], "/")
|
||||
updateCategory[utils.Int64ToStr(v.ProductId)] = categoryNameList[len(categoryNameList)]
|
||||
list2 := strings.Split(list[1], `”`)
|
||||
categoryNameList := strings.Split(list2[0], "/")
|
||||
updateCategory[utils.Int64ToStr(v.ProductId)] = categoryNameList[len(categoryNameList)-1]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -837,7 +837,7 @@ func (c *SkuController) BatchSetRestockingPrice() {
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateTiktokCategory [post]
|
||||
func (c *SkuController) UpdateTiktokCategory() {
|
||||
c.callUpdateCategory(func(params *tSkuUpdateCategoryParams) (interface{}, string, error) {
|
||||
c.callUpdateTiktokCategory(func(params *tSkuUpdateTiktokCategoryParams) (interface{}, string, error) {
|
||||
data := tiktok_store.GetProductAuditList("57939570")
|
||||
globals.SugarLogger.Debugf("==========111 %s", utils.Format4Output(data, false))
|
||||
for k, v := range data {
|
||||
|
||||
Reference in New Issue
Block a user