Commit 9500c3c1 by mushishixian

货期获取规则问题

parent 9c1b4ddc
Showing with 5 additions and 4 deletions
;redis连接信息
[default_redis_read]
host = 192.168.1.234:6379
host = redis.liexindev.me:6379
password = icDb29mLy2s
max_idle = 2000
max_active = 5000
idle_timeout = 20
[default_redis_write]
host = 192.168.1.234:6379
host = redis.liexindev.me:6379
password = icDb29mLy2s
max_idle = 2000
max_active = 5000
......
......@@ -156,12 +156,13 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
}
//还要处理货期
delivery := ls.GetDelivery(sku.SupplierId, sku.Canal)
if delivery["cn_delivery"] != "" {
if sku.CnDeliveryTime == "" {
sku.CnDeliveryTime = delivery["cn_delivery"]
}
if delivery["hk_delivery"] != "" {
if sku.HkDeliveryTime == "" {
sku.HkDeliveryTime = delivery["hk_delivery"]
}
}
//处理是否可以购买
......
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