소스 검색

feat: 扫码创建session新增判断逻辑

zhangxinlei1996 2 년 전
부모
커밋
ec3e0339f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/jfw/front/singleLogin.go

+ 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)
 			}(id)
 		}
-		if this.GetSession("userId") == nil {
+		if this.GetSession("userId") == nil || this.GetSession("phone") == nil {
 			CreateSession(map[string]interface{}{
 				"s_m_openid": openid,
 				"s_unionid":  map[string]interface{}{"$ne": openid}, //处理排除未关注用户点击菜单创建的用户