Commit b72a1dab by mushishixian

去掉调试代码

parent 93fecd46
Showing with 0 additions and 14 deletions
...@@ -14,7 +14,6 @@ import ( ...@@ -14,7 +14,6 @@ import (
//获取联营活动价 //获取联营活动价
func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Power) model.LySku { func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Power) model.LySku {
//没价格,直接返回 //没价格,直接返回
var contentSlice []interface{}
if len(sku.LadderPrice) == 0 { if len(sku.LadderPrice) == 0 {
return sku return sku
} }
...@@ -113,19 +112,11 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe ...@@ -113,19 +112,11 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
default: default:
//除了新客价和折扣价,剩下的价格活动 //除了新客价和折扣价,剩下的价格活动
if len(brandIds) > 0 { if len(brandIds) > 0 {
contentSlice = append(contentSlice, "品牌id")
contentSlice = append(contentSlice, sku.BrandId)
contentSlice = append(contentSlice, brandIds)
sku.Content = contentSlice
if !php2go.InArray(sku.BrandId, brandIds) { if !php2go.InArray(sku.BrandId, brandIds) {
contentSlice = append(contentSlice, "活动状态错误")
sku.Content = contentSlice
hasActivity = false hasActivity = false
} }
} }
if activityCanal != "" && sku.GoodsType == 2 { if activityCanal != "" && sku.GoodsType == 2 {
contentSlice = append(contentSlice, "活动状态错误2")
sku.Content = contentSlice
canalArr := gjson.Parse(activityCanal).Array() canalArr := gjson.Parse(activityCanal).Array()
var canals []string var canals []string
for _, canal := range canalArr { for _, canal := range canalArr {
...@@ -142,8 +133,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe ...@@ -142,8 +133,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
visibleRoster := gjson.Get(activityInfo, "visible_roster").String() visibleRoster := gjson.Get(activityInfo, "visible_roster").String()
if suffix == "_Member" && gjson.Get(activityInfo, "is_part").Int() == 1 && if suffix == "_Member" && gjson.Get(activityInfo, "is_part").Int() == 1 &&
visibleRoster != "" { visibleRoster != "" {
contentSlice = append(contentSlice, "进来进来")
sku.Content = contentSlice
//为了用字符串匹配 //为了用字符串匹配
visibleRoster = "," + visibleRoster + "," visibleRoster = "," + visibleRoster + ","
//提取出user_id、手机号、邮箱 //提取出user_id、手机号、邮箱
...@@ -196,9 +185,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe ...@@ -196,9 +185,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
//} //}
} }
} }
contentSlice = append(contentSlice, "提前返回")
contentSlice = append(contentSlice, hasActivity)
sku.Content = contentSlice
//判断是否有活动 //判断是否有活动
if !hasActivity { if !hasActivity {
return sku return sku
......
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