|
|
|
@ -9,7 +9,6 @@ import ( |
|
|
|
"server/db" |
|
|
|
"server/db" |
|
|
|
"server/modules/web/app" |
|
|
|
"server/modules/web/app" |
|
|
|
"server/modules/web/values" |
|
|
|
"server/modules/web/values" |
|
|
|
"server/pb" |
|
|
|
|
|
|
|
"server/util" |
|
|
|
"server/util" |
|
|
|
"sort" |
|
|
|
"sort" |
|
|
|
"strconv" |
|
|
|
"strconv" |
|
|
|
@ -112,7 +111,7 @@ func GetPromotions(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if num > 0 { |
|
|
|
if num > 0 { |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointTask, uint32(num)) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointTask, uint32(num))
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -673,7 +672,7 @@ func ActivityFirstRechargeBackInfo(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
resp.Back = data.Reward |
|
|
|
resp.Back = data.Reward |
|
|
|
if !resp.Draw { |
|
|
|
if !resp.Draw { |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointFirstRecharge, 1) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointFirstRecharge, 1)
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -722,7 +721,7 @@ func ActivityFirstRechargeBackDraw(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
resp.Reward = val |
|
|
|
resp.Reward = val |
|
|
|
call.UploadActivityData(a.UID, common.ActivityIDFirstRechargeBack, common.ActivityDataJoin, val) |
|
|
|
call.UploadActivityData(a.UID, common.ActivityIDFirstRechargeBack, common.ActivityDataJoin, val) |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointFirstRecharge, 0) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointFirstRecharge, 0)
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 幸运码活动
|
|
|
|
// 幸运码活动
|
|
|
|
@ -1195,7 +1194,7 @@ func ActivitySignNewInfo(c *gin.Context) { |
|
|
|
num = 1 |
|
|
|
num = 1 |
|
|
|
} |
|
|
|
} |
|
|
|
if num > 0 { |
|
|
|
if num > 0 { |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointSign, uint32(num)) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointSign, uint32(num))
|
|
|
|
} |
|
|
|
} |
|
|
|
a.Data = resp |
|
|
|
a.Data = resp |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1279,7 +1278,7 @@ func ActivitySignNewDraw(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
a.Data = values.ActivitySignDrawResp{Reward: reward, Day: day, Sign: newSign} |
|
|
|
a.Data = values.ActivitySignDrawResp{Reward: reward, Day: day, Sign: newSign} |
|
|
|
call.UploadActivityData(a.UID, common.ActivityIDSign, common.ActivityDataJoin, reward) |
|
|
|
call.UploadActivityData(a.UID, common.ActivityIDSign, common.ActivityDataJoin, reward) |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointSign, uint32(0)) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointSign, uint32(0))
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 破产礼包活动
|
|
|
|
// 破产礼包活动
|
|
|
|
@ -1803,7 +1802,7 @@ func ActivityBetDrawInfo(c *gin.Context) { |
|
|
|
if resp.Lucky >= item.Cost && vipInfo.Level >= item.VipUnlock && |
|
|
|
if resp.Lucky >= item.Cost && vipInfo.Level >= item.VipUnlock && |
|
|
|
drawInfo.SpinInfo.SpinNum < drawInfo.SpinInfo.SpinCount && |
|
|
|
drawInfo.SpinInfo.SpinNum < drawInfo.SpinInfo.SpinCount && |
|
|
|
now.Unix() >= drawInfo.SpinInfo.NextSpinTIme { |
|
|
|
now.Unix() >= drawInfo.SpinInfo.NextSpinTIme { |
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointFreeSpin, uint32(1)) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointFreeSpin, uint32(1))
|
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1895,7 +1894,7 @@ func ActivityBetDrawDraw(c *gin.Context) { |
|
|
|
drawInfo = common.ActivityBetDrawData{UID: a.UID} |
|
|
|
drawInfo = common.ActivityBetDrawData{UID: a.UID} |
|
|
|
db.Mysql().Get(&drawInfo) |
|
|
|
db.Mysql().Get(&drawInfo) |
|
|
|
|
|
|
|
|
|
|
|
call.PushRed(a.UID, pb.RedPointModule_RedPointFreeSpin, uint32(0)) |
|
|
|
//call.PushRed(a.UID, pb.RedPointModule_RedPointFreeSpin, uint32(0))
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func ActivityBetDrawHistory(c *gin.Context) { |
|
|
|
func ActivityBetDrawHistory(c *gin.Context) { |
|
|
|
|