|
@@ -64,7 +64,6 @@ func (a *Activemanage) Luckdraw(activecode, id string) error {
|
|
if *u != nil {
|
|
if *u != nil {
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+time.Now().Format("2006_01_02")); ret == nil {
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+time.Now().Format("2006_01_02")); ret == nil {
|
|
//a.T = *u
|
|
//a.T = *u
|
|
- fmt.Println("ret:::::::::", ret, "33333333333", time.Now().Format("2006_01_02"))
|
|
|
|
a.T["flog"] = "A"
|
|
a.T["flog"] = "A"
|
|
Tm := time.Now().AddDate(0, 0, 1)
|
|
Tm := time.Now().AddDate(0, 0, 1)
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+Tm.Format("2006_01_02")); ret == nil {
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+Tm.Format("2006_01_02")); ret == nil {
|
|
@@ -102,7 +101,6 @@ func (a *Activemanage) Getluckdraw() error {
|
|
if *u != nil {
|
|
if *u != nil {
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+time.Now().Format("2006_01_02")); ret == nil {
|
|
if ret := redis.Get("other", "cj_"+openid+"_"+time.Now().Format("2006_01_02")); ret == nil {
|
|
//a.T = *u
|
|
//a.T = *u
|
|
- fmt.Println("ret22:::::::::", ret)
|
|
|
|
a.T["flog"] = "A"
|
|
a.T["flog"] = "A"
|
|
a.T["msg"] = "小主莫贪心,每天只有一次抽奖机会呦!分享至朋友圈或好友即可以获得明天抽奖资格呦!乖,快去分享吧!大奖可能就在明天~~"
|
|
a.T["msg"] = "小主莫贪心,每天只有一次抽奖机会呦!分享至朋友圈或好友即可以获得明天抽奖资格呦!乖,快去分享吧!大奖可能就在明天~~"
|
|
return a.Write(`{"flog":"` + flog + `","msg":"` + msg + `"}`)
|
|
return a.Write(`{"flog":"` + flog + `","msg":"` + msg + `"}`)
|