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