Commit 0ff12139 by mushishixian

debug

parent 560140ec
Showing with 2 additions and 0 deletions
......@@ -24,6 +24,7 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
return getMouserActivityPrice(sku)
}
contentSlice = append(contentSlice,sku)
sku.Content = contentSlice
//先获取活动信息,针对不同供应商不同活动类型做活动吗,每个活动只能针对一个供应商
//比如有 Self_ActivityPrice_2_Discount,Self_ActivityPrice_1_NewCustomer
redisCon := gredis.Conn("default_r")
......@@ -31,6 +32,7 @@ contentSlice = append(contentSlice,sku)
supplierIdStr := strconv.Itoa(int(sku.SupplierId))
activityInfo, _ := redis.String(redisCon.Do("GET", "Self_ActivityPrice_"+supplierIdStr+suffix))
contentSlice = append(contentSlice,activityInfo)
sku.Content = contentSlice
//找不到对应的活动价格信息,就直接返回空
if activityInfo == "" {
......
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