Browse Source

体积小

XMLWAN 3 years ago
parent
commit
9dd8d0f28f
1 changed files with 1 additions and 1 deletions
  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 View File

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