1
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
@@ -126,6 +128,7 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt
|
|||||||
foodData["name"] = utils.LimitUTF8StringLen(storeSku.Name, mtwmapi.MaxSkuNameCharCount)
|
foodData["name"] = utils.LimitUTF8StringLen(storeSku.Name, mtwmapi.MaxSkuNameCharCount)
|
||||||
foodData["description"] = storeSku.Description
|
foodData["description"] = storeSku.Description
|
||||||
foodData["price"] = storeSku.Price
|
foodData["price"] = storeSku.Price
|
||||||
|
globals.SugarLogger.Debugf("BatchInitData testststts storeSku.Price=%f", storeSku.Price)
|
||||||
if storeSku.MinOrderCount != 0 {
|
if storeSku.MinOrderCount != 0 {
|
||||||
foodData["min_order_count"] = storeSku.MinOrderCount
|
foodData["min_order_count"] = storeSku.MinOrderCount
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -538,9 +538,9 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
|
|||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false))
|
||||||
|
attrValues = append(attrValues, attrValue)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false))
|
|
||||||
attrValues = append(attrValues, attrValue)
|
|
||||||
}
|
}
|
||||||
temp, _ := json.Marshal(attrValues)
|
temp, _ := json.Marshal(attrValues)
|
||||||
attrs = string(temp)
|
attrs = string(temp)
|
||||||
|
|||||||
Reference in New Issue
Block a user