Browse Source

feat:日志

wangshan 1 year ago
parent
commit
c5e8cf0712

+ 3 - 0
src/jfw/modules/app/src/app/front/login.go

@@ -230,6 +230,7 @@ func (l *Login) Login() error {
 						"s_platform": "app",
 						"s_sourceid": channelCode,
 					}
+					log.Println("-003--sessionId----:", l.Session().Id())
 					// 新用户注册 记录来源
 					sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
 					if sourceLabel != "" {
@@ -581,6 +582,7 @@ func (l *Login) Register() error {
 					"s_company":     s_entname,
 					"s_sourceid":    channelCode,
 				}
+				log.Println("-002--sessionId----:", l.Session().Id())
 				sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
 				if sourceLabel != "" {
 					data["s_rsource"] = sourceLabel
@@ -788,6 +790,7 @@ func (l *Login) WxLogin() {
 				"s_jyname":   jy.GetUserName("newother", config.Sysconfig["namePrefix"].(string)), //剑鱼昵称
 				"s_sourceid": channelCode,
 			}
+			log.Println("-001--sessionId----:", l.Session().Id())
 			sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
 			if sourceLabel != "" {
 				newUser["s_rsource"] = sourceLabel

+ 2 - 0
src/jfw/modules/app/src/app/front/wx.go

@@ -4,6 +4,7 @@ import (
 	"app.yhyue.com/moapp/jybase/go-xweb/xweb"
 	"app.yhyue.com/moapp/jybase/redis"
 	"fmt"
+	"log"
 )
 
 // 基于统计流量数据以及用户信息收录,新公众号:剑鱼标讯网,新建首页地址
@@ -22,6 +23,7 @@ func init() {
 
 // 微信首页地址
 func (w *WX) Index(pageLabel string) error {
+	log.Println("---sessionId----:", w.Session().Id())
 	//未登录
 	if userId, _ := w.GetSession("userId").(string); userId == "" {
 		redis.Put("limitation", fmt.Sprintf("firstVisitTagByWX_%s", w.Session().Id()), pageLabel, cacheTimeOut) //app 登录注册 用户标识

+ 1 - 0
src/jfw/modules/publicapply/src/oneclick/entity/entity.go

@@ -359,6 +359,7 @@ func (o *OneClickInfo) phoneLogin(phone string) (map[string]interface{}, error)
 				"s_platform": platform,
 				"s_sourceid": channelCode,
 			}
+			log.Println("--001--sessionId----:", o.Session.Id())
 			sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", o.Session.Id()))
 			if sourceLabel != "" {
 				data["s_rsource"] = sourceLabel