Jianghan 8 сар өмнө
parent
commit
d92fe0983c

+ 3 - 1
src/jfw/front/shorturl.go

@@ -153,9 +153,10 @@ func (s *Short) Article(stype, id string) error {
 							//userId, _ = s.GetSession("userId").(string)
 							sess = s.Session().GetMultiple()
 							userId, _ = sess["userId"].(string)
+							tag := util.ObjToString(sess["wxpush"])
 							//新关注微信公众号用户是否绑定手机号
 							phone, ok := sess["phone"].(string)
-							if ok && phone == "" {
+							if ok && phone == "" && tag != "bind" {
 								//注册时间
 								regTime := util.Int64All(s.GetSession("registedate"))
 								//新用户时间
@@ -169,6 +170,7 @@ func (s *Short) Article(stype, id string) error {
 									}
 								}
 							}
+
 						} else if !bm { //未关注用户 pc端到关注页面
 							log.Println("PC微信端浏览器 未关注用户 访问地址----")
 							s.Request.Header.Del("Referer")

+ 2 - 1
src/phoneFilter.json

@@ -29,7 +29,8 @@
     "^/front/project/importantNews",
     "^/front/staticPage/wx-mini-serviceterms.html",
 		"^/weixin/frontPage/mini-app",
-    "^/front/rewardText"
+    "^/front/rewardText",
+    "^/article/content/(.+?)\\.html\\?wxpush=bind"
   ],
 	"sessUrl":{
 		"/jyTreasureBox/treasureBox":"",