Commit 750ceea8 by huangchengyi

1.0

parent 44001764
Showing with 11 additions and 9 deletions
...@@ -148,19 +148,21 @@ func (qs *ZiyingService) HDActivityPrice(ctx *gin.Context,GoodsActivityPrice str ...@@ -148,19 +148,21 @@ func (qs *ZiyingService) HDActivityPrice(ctx *gin.Context,GoodsActivityPrice str
//会员价处理 //会员价处理
if Actype == "3" && is_part == "1" && visible_roster != "" { if Actype == "3" && is_part == "1" && visible_roster != "" {
Ratio = false; //
visible_roster = ","+visible_roster+"," visible_roster = ","+visible_roster+","
if php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[user_id]")+",",0) == -1 || if php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[user_id]")+",",0) != -1 {
php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[mobile]")+",",0) == -1 || Ratio = true;
php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[email]")+",",0) == -1 { }
Ratio = false; //不符合新客价 if php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[mobile]")+",",0) != -1 {
goto End Ratio = true;
}
if php2go.Stripos(visible_roster,","+ctx.Request.FormValue("power[email]")+",",0) != -1 {
Ratio = true;
} }
//fmt.Println("不符合活动价3")
} }
//处理黑名单,只有折扣活动才有黑名单,并且是下单页面,debug //处理黑名单,只有折扣活动才有黑名单,并且是下单页面,debug
if Actype == "2" && if Ratio == true && Actype == "2" && activity_id != "" && activity_type == "2" && ctx.Request.FormValue("power[verify_blacklist]") == "true" {
activity_id != "" &&
activity_type == "2" &&
ctx.Request.FormValue("power[verify_blacklist]") == "true" {
//redisConn := gredis.Conn("search_r") //redisConn := gredis.Conn("search_r")
//defer redisConn.Close(); //defer redisConn.Close();
......
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