XMLWAN 3 år sedan
förälder
incheckning
9dd8d0f28f
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 Visa fil

@@ -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,