Эх сурвалжийг харах

Merge branch 'hotfix/v4.8.45.5_ws' of qmx/jy into hotfix/v4.8.45.5

zhangxinlei1996 2 жил өмнө
parent
commit
a0f9baa36c

+ 1 - 1
src/jfw/front/singleLogin.go

@@ -104,7 +104,7 @@ func (this *SingleLogin) SingleLogin() error {
 				redis.Put("other", fmt.Sprintf("digitalreplay_%s", openid), id, 24*60*60)
 				redis.Put("other", fmt.Sprintf("digitalreplay_%s", openid), id, 24*60*60)
 			}(id)
 			}(id)
 		}
 		}
-		if this.GetSession("userId") == nil {
+		if this.GetSession("userId") == nil || this.GetSession("phone") == nil {
 			CreateSession(map[string]interface{}{
 			CreateSession(map[string]interface{}{
 				"s_m_openid": openid,
 				"s_m_openid": openid,
 				"s_unionid":  map[string]interface{}{"$ne": openid}, //处理排除未关注用户点击菜单创建的用户
 				"s_unionid":  map[string]interface{}{"$ne": openid}, //处理排除未关注用户点击菜单创建的用户