Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop

This commit is contained in:
richboo111
2022-11-21 10:21:01 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -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]
}
}

View File

@@ -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 {