- syncStoreSkuNew中可能的越界错(GetStoreSkusFullInfo不返回错误并不一定表示有结果)

This commit is contained in:
gazebo
2019-07-26 16:39:53 +08:00
parent 216175c95b
commit a2abeaeead

View File

@@ -366,7 +366,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, isFull bo
&partner.StoreSkuInfo{
SkuID: batchedStoreSkuList[0].SkuID,
},
}); err2 == nil {
}); err2 == nil && len(skuNameList) > 0 {
batchedStoreSkuList[0].VendorNameID = skuNameList[0].VendorNameID
batchedStoreSkuList[0].VendorSkuID = skuNameList[0].SkuList[0].VendorSkuID
err = nil