소스 검색

体积小

XMLWAN 3 년 전
부모
커밋
9dd8d0f28f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 1 - 1
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go 파일 보기

@@ -106,7 +106,7 @@ func (this *XcxApiController) GetUserRegister() {
106 106
 				"role": role,
107 107
 			})
108 108
 
109
-		} else if errcode == gorm.ErrRecordNotFound {
109
+		} else if errcode == nil {
110 110
 			mobilePatient, _ := service.GetMobilePatient(id_card_no)
111 111
 			this.ServeSuccessJSON(map[string]interface{}{
112 112
 				"is_bind": true,