fuwencai 4 년 전
부모
커밋
df66ec336f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/front/front.go

+ 1 - 1
src/front/front.go

@@ -498,7 +498,7 @@ func LoginCheck(f *Front, entId string, loginUser map[string]interface{}, userPh
 		"username": (*entInfo)[0]["name"],
 	}
 	entMgoInfo, ok := MgoCus.FindOne("user", query)
-	if !ok {
+	if !ok || len(*entMgoInfo)==0{
 		//	企业信息查询失败
 		f.ServeJson(map[string]interface{}{
 			"code":    0,