|
@@ -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)
|
|
|
}
|
|
|
}
|
|
|
}
|