XMLWAN před 3 roky
rodič
revize
eed847766e

+ 1 - 2
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Zobrazit soubor

@@ -149,7 +149,6 @@ func (this *XcxApiController) GetLoginInfor() {
149 149
 	fmt.Println(mobile)
150 150
 	info, _ := service.GetMobilePatientInfo(mobile)
151 151
 	if info.ID == 0 {
152
-
153 152
 		this.ServeSuccessJSON(map[string]interface{}{
154 153
 			"is_bind": false,
155 154
 			"info":    info,
@@ -160,7 +159,7 @@ func (this *XcxApiController) GetLoginInfor() {
160 159
 			role := models.XcxAdminUserRole{
161 160
 				PatientName: info.Name,
162 161
 				IdCardNo:    info.IdCardNo,
163
-				Mobile:      info.TellPhone,
162
+				Mobile:      mobile,
164 163
 				Code:        "",
165 164
 				PatientId:   info.ID,
166 165
 				UserOrgId:   info.UserOrgId,