2
This commit is contained in:
@@ -253,7 +253,7 @@ class ImService extends BaseService
|
||||
$arg['From_Account'] = $from_user_id; // 发送方user_id 如系统发送,无需填写
|
||||
}
|
||||
$arg['To_Account'] = $to_user_id; // 接收方user_id
|
||||
$arg['ForbidCallbackControl'] = ['ForbidBeforeSendMsgCallback',];
|
||||
$arg['ForbidCallbackControl'] = ['ForbidBeforeSendMsgCallback',"ForbidAfterSendMsgCallback"];
|
||||
$arg['SendMsgControl'] = ['NoUnread'];
|
||||
|
||||
$arg['MsgBody'] = [
|
||||
|
||||
@@ -255,6 +255,10 @@ class UserDoctorService extends BaseService
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "已绑定银行卡");
|
||||
}
|
||||
|
||||
if ($user_doctor['iden_auth_status'] != 1) {
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "请先身份认证");
|
||||
}
|
||||
|
||||
// 获取医生详情数据
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_doctor['doctor_id'];
|
||||
|
||||
@@ -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