修复getAppFoodCodeList没有真正实现的bug.

This commit is contained in:
gazebo
2019-11-19 10:39:30 +08:00
parent 9b12510cca
commit cee40f9a92

View File

@@ -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
}