修复getAppFoodCodeList没有真正实现的bug.
This commit is contained in:
@@ -275,6 +275,12 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
}
|
||||
|
||||
func getAppFoodCodeList(l []*mtwmapi.AppFoodResult) (vendorSkuIDs []string) {
|
||||
if len(l) > 0 {
|
||||
vendorSkuIDs = make([]string, len(l))
|
||||
for k, v := range l {
|
||||
vendorSkuIDs[k] = v.AppFoodCode
|
||||
}
|
||||
}
|
||||
return vendorSkuIDs
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user