Browse Source

feat:日志

wangshan 2 years ago
parent
commit
9eb6be5eb1
3 changed files with 10 additions and 1 deletions
  1. 4 0
      .gitignore
  2. 4 1
      handler/activity/jyActivityOther.go
  3. 2 0
      handler/award/user.go

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+##
+.idea
+*.exe
+*.log

+ 4 - 1
handler/activity/jyActivityOther.go

@@ -7,6 +7,7 @@ import (
 	"fmt"
 	"github.com/gogf/gf/v2/os/gcfg"
 	"github.com/gogf/gf/v2/os/gctx"
+	"log"
 	"time"
 )
 
@@ -23,7 +24,9 @@ func (BP *JyActivity) Questionnaire(userId, phone, answers string) error {
 	//保存问卷
 	if award.SaveQuestionnaire(userId, phone, answers) {
 		//问卷保存后--赠送7天超级订阅
-		if err := BP.GetDailyBoonSVip(userId); err != nil {
+		err := BP.GetDailyBoonSVip(userId)
+		log.Println("err  开通超级订阅   --:", err)
+		if err != nil {
 			return err
 		}
 		if redis.Put(BidderPlanRedis, fmt.Sprintf(QuestionnaireSubmit, userId), 1, BP.cacheLong()) != true {

+ 2 - 0
handler/award/user.go

@@ -3,6 +3,7 @@ package award
 import (
 	"app.yhyue.com/moapp/jybase/common"
 	"app.yhyue.com/moapp/message/db"
+	"log"
 	"strings"
 	"time"
 )
@@ -23,6 +24,7 @@ func SaveQuestionnaire(userId, phone, answers string) bool {
 		"s_phone":   phone,
 		"s_answers": strings.Split(answers, ","),
 	})
+	log.Println("double_eleven:", id)
 	return id != ""
 }