XMLWAN 3 gadus atpakaļ
vecāks
revīzija
b8fef13ab5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      service/xcx_mobile_api_service.go

+ 1 - 1
service/xcx_mobile_api_service.go Parādīt failu

@@ -34,7 +34,7 @@ func GetLoginInfor(mobile string) (models.XcxAdminUserRole, error) {
34 34
 func GetMobilePatientInfo(mobile string) (*models.XcxPatients, error) {
35 35
 
36 36
 	patients := models.XcxPatients{}
37
-	err := XTReadDB().Model(&patients).Where("tell_phone = ? and status = 1", mobile).Find(&patients).Error
37
+	err := XTReadDB().Model(&patients).Where("(phone = ? or home_telephone ) and status = 1", mobile).Find(&patients).Error
38 38
 	if err == gorm.ErrRecordNotFound {
39 39
 		return nil, err
40 40
 	}