Browse Source

Merge branch 'dev/v4.8.33_zxl' of qmx/jy into release/v4.8.33

wangshan 2 years ago
parent
commit
0ee8ce81f9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/jfw/front/shorturl.go

+ 2 - 0
src/jfw/front/shorturl.go

@@ -148,6 +148,8 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 					if openid := jyutil.Getopenid(code); openid != "" {
 						if CheckUserIsSubscribe(openid) {
 							FindUserAndCreateSess(openid, s.Session(), "wx", false, true)
+							//生session后 重新获取一下
+							userId, _ = s.GetSession("userId").(string)
 						}
 					}
 				}