XMLWAN 3 lat temu
rodzic
commit
9dd8d0f28f

+ 1 - 1
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Wyświetl plik

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