2
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Constants\HttpEnumCode;
|
||||
use App\Model\Coupon;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\PatientHistoryInquiry;
|
||||
use App\Model\User;
|
||||
use App\Model\UserCoupon;
|
||||
use App\Model\UserPatient;
|
||||
use App\Utils\Mask;
|
||||
@@ -80,7 +81,6 @@ class UserPatientService extends BaseService
|
||||
'patient_id',
|
||||
'user_id',
|
||||
'user_name',
|
||||
'mobile',
|
||||
'avatar',
|
||||
];
|
||||
$params = array();
|
||||
@@ -90,8 +90,15 @@ class UserPatientService extends BaseService
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "非法用户");
|
||||
}
|
||||
|
||||
$params = array();
|
||||
$params['user_id'] = $user_patient['user_id'];
|
||||
$user = User::getOne($params);
|
||||
if (empty($user)){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "非法用户");
|
||||
}
|
||||
|
||||
// 手机号
|
||||
$user_patient['mobile'] = Mask::maskPhoneStr($user_patient['mobile']);
|
||||
$user_patient['mobile'] = Mask::maskPhoneStr($user['mobile']);
|
||||
|
||||
// 头像
|
||||
$user_patient['avatar'] = addAliyunOssWebsite($user_patient['avatar']);
|
||||
|
||||
Reference in New Issue
Block a user