京东商城店内分类创建修改
This commit is contained in:
@@ -309,6 +309,9 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
||||
if status == -1 {
|
||||
return fmt.Errorf("京东商城店内分类创建失败!")
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
time.Sleep(time.Second * 2)
|
||||
// flag := false
|
||||
// for {
|
||||
@@ -323,6 +326,9 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
||||
break
|
||||
}
|
||||
}
|
||||
if storeCat.VendorCatID == "" {
|
||||
return fmt.Errorf("京东商城店内分类创建可能失败了!storeID: %v", storeID)
|
||||
}
|
||||
// if flag {
|
||||
// break
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user