1
This commit is contained in:
@@ -394,7 +394,17 @@ func TestPPPPPPPPPPPPPP(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGetProductAuditList(t *testing.T) {
|
func TestGetProductAuditList(t *testing.T) {
|
||||||
data, err := a.GetProductAuditList(1, 100, 2)
|
data, _ := a.GetProductAuditList(1, 100, 2)
|
||||||
globals.SugarLogger.Debugf("data %s", utils.Format4Output(data, false))
|
updateCategory := make(map[string]string, 0) // 修改分类的Map
|
||||||
globals.SugarLogger.Debugf("data %s", err)
|
for _, v := range data {
|
||||||
|
if _, ok := v.AuditReason["综合原因"]; ok {
|
||||||
|
if strings.Contains(v.AuditReason["综合原因"][0], "该商品类目选择错误,推荐放置在") {
|
||||||
|
list := strings.Split(v.AuditReason["综合原因"][0], `“`)
|
||||||
|
list2 := strings.Split(list[1], `”`)
|
||||||
|
categoryNameList := strings.Split(list2[0], "/")
|
||||||
|
updateCategory[utils.Int64ToStr(v.ProductId)] = categoryNameList[len(categoryNameList)-1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user