beta
This commit is contained in:
@@ -1794,10 +1794,22 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
for _, jdStoreID := range jdStoreIDs {
|
||||
outStoreSkuList2, _ := handler.GetStoreSkusBareInfo(ctx, vendorOrgCode, nil, 0, jdStoreID, skuInfos)
|
||||
for _, v := range outStoreSkuList2 {
|
||||
if v.VendorSkuID == "2004046088" {
|
||||
fmt.Println("v1", v.VendorPrice)
|
||||
fmt.Println("skuMap", skuMap["2004046088"].VendorPrice)
|
||||
}
|
||||
if skuMap[v.VendorSkuID] == nil {
|
||||
continue
|
||||
}
|
||||
if v.VendorSkuID == "2004046088" {
|
||||
fmt.Println("v2", v.VendorPrice)
|
||||
fmt.Println("skuMap", skuMap["2004046088"].VendorPrice)
|
||||
}
|
||||
if skuMap[v.VendorSkuID].VendorPrice != v.VendorPrice {
|
||||
if v.VendorSkuID == "2004046088" {
|
||||
fmt.Println("v3", v.VendorPrice)
|
||||
fmt.Println("skuMap", skuMap["2004046088"].VendorPrice)
|
||||
}
|
||||
v.VendorPrice = skuMap[v.VendorSkuID].VendorPrice
|
||||
priceList[jdStoreID] = append(priceList[jdStoreID], v)
|
||||
}
|
||||
@@ -1815,12 +1827,12 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// if len(priceList) > 0 {
|
||||
fmt.Println("priceList", utils.Format4Output(priceList, false))
|
||||
// for k, v := range priceList {
|
||||
// handler.UpdateStoreSkusPrice(ctx, vendorOrgCode, 0, k, v)
|
||||
// }
|
||||
// }
|
||||
if len(priceList) > 0 {
|
||||
fmt.Println("priceList", utils.Format4Output(priceList, false))
|
||||
// for k, v := range priceList {
|
||||
// handler.UpdateStoreSkusPrice(ctx, vendorOrgCode, 0, k, v)
|
||||
// }
|
||||
}
|
||||
if len(statusList1) > 0 {
|
||||
// for k, v := range statusList1 {
|
||||
// handler.UpdateStoreSkusStatus(ctx, vendorOrgCode, 0, k, v, v[0].Status)
|
||||
|
||||
Reference in New Issue
Block a user