rdluck 4 gadi atpakaļ
vecāks
revīzija
a927e2dfe0
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      controllers/user.go

+ 3 - 1
controllers/user.go

@@ -443,7 +443,9 @@ func (this *UserController) CheckLogin() {
 		}
 	} else {
 		resp.IsBind = true
-		resp.IsAuth = true
+		if user.UnionId == "" {
+			resp.IsAuth = true
+		}
 		resp.PermissionName = ""
 	}
 	br.Success = true