|
@@ -108,11 +108,11 @@ func (this *XcxApiController) GetUserRegister() {
|
108
|
108
|
}
|
109
|
109
|
|
110
|
110
|
//查找该电话号码是否存在
|
111
|
|
- _, errcode := service.GetMobilePatient(mobile)
|
|
111
|
+ _, errcode := service.GetMobilePatientOne(mobile)
|
112
|
112
|
if errcode == gorm.ErrRecordNotFound {
|
113
|
113
|
err := service.CreateXcxAdminUser(role)
|
114
|
114
|
if err == nil {
|
115
|
|
- mobilePatient, _ := service.GetMobilePatient(id_card_no)
|
|
115
|
+ mobilePatient, _ := service.GetMobilePatient(mobile, id_card_no)
|
116
|
116
|
this.ServeSuccessJSON(map[string]interface{}{
|
117
|
117
|
"role": role,
|
118
|
118
|
"is_bind": true,
|
|
@@ -125,7 +125,7 @@ func (this *XcxApiController) GetUserRegister() {
|
125
|
125
|
})
|
126
|
126
|
}
|
127
|
127
|
} else if errcode == nil {
|
128
|
|
- mobilePatient, _ := service.GetMobilePatient(id_card_no)
|
|
128
|
+ mobilePatient, _ := service.GetMobilePatient(mobile, id_card_no)
|
129
|
129
|
this.ServeSuccessJSON(map[string]interface{}{
|
130
|
130
|
"is_bind": true,
|
131
|
131
|
"patient": mobilePatient,
|