Commit eae0754d by mushishixian

立创显示内部编码问题

parent 96302efd
Showing with 5 additions and 4 deletions
......@@ -117,10 +117,6 @@ func InitSkuData(sku string) (data LySku) {
encoded := gjson.Get(sku, "encoded").String()
data.Encoded = encoded
//加上紧急判断,如果是立创(L0001175)的商品,就修改内部编码
if data.Canal == "L0001175" {
data.Encoded = "10142-L"
}
batchSn := gjson.Get(sku, "batch_sn").String()
data.BatchSn = batchSn
......@@ -152,6 +148,11 @@ func InitSkuData(sku string) (data LySku) {
canal := gjson.Get(sku, "canal").String()
data.Canal = canal
//加上紧急判断,如果是立创(L0001175)的商品,就修改内部编码
if data.Canal == "L0001175" {
data.Encoded = "10142-L"
}
cpTime := gjson.Get(sku, "cp_time").Int()
data.CpTime = cpTime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment