This commit is contained in:
wucongxing 2023-04-06 15:31:39 +08:00
parent d984bf0784
commit 5a47161d1f
3 changed files with 14 additions and 5 deletions

View File

@ -59,7 +59,7 @@ class SendSmsMessageConsumer extends ConsumerMessage
}
}
if ($data['phone'] == "17600901561"){
if ($data['phone'] == "17600901561" || $data['phone'] == "15670592813"){
// 发送短信
Dysms::sendSms($data['phone'],$data['template_param'],$data['template_code'],$data['scene_desc']);
}

View File

@ -50,10 +50,10 @@ class SendStationMessageConsumer extends ConsumerMessage
if ($data['notice_type'] == 1){
// 医生服务通知
$message_type = 3;
$message_type = 4;
}elseif ($data['notice_type'] == 2){
// 医生系统公告
$message_type = 4;
$message_type = 3;
}elseif ($data['notice_type'] == 3){
// 患者系统消息
$message_type = 5;

View File

@ -11,6 +11,7 @@ use App\Model\HospitalDepartmentCustom;
use App\Model\OrderPrescriptionProduct;
use App\Model\OrderProduct;
use App\Model\OrderProductItem;
use App\Model\PatientFamily;
use App\Model\User;
use App\Model\UserCaCert;
use App\Model\OrderInquiry;
@ -672,7 +673,10 @@ class TestController extends AbstractController
// 获取问诊患者数据
$params = array();
$params['family_id'] = $order_inquiry['family_id'];
$patient_family =
$patient_family = PatientFamily::getOne($params);
if (empty($patient_family)){
throw new BusinessException("医生自定义数据错误");
}
$arg = array();
$arg['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识
@ -687,7 +691,12 @@ class TestController extends AbstractController
$arg['patientAge'] = $order_inquiry['patient_age']; // 患者年龄
$arg['patientSex'] = $order_inquiry['patient_sex'] == 0 ?: 1; // 患者性别
$arg['patientIdcardType'] = 1; // 证件类型
$arg['patientIdcardNum'] = 1; // 患者证件号码
$arg['patientIdcardNum'] = $patient_family['id_number']; // 患者证件号码
$arg['serviceType'] = 1; // 服务类型 1网络咨询 2网络门诊
$arg['consultNo'] = $order_inquiry['inquiry_no']; // 网络咨询或网络门诊编号 订单编号
$arg['consultType'] = 1; // 咨询类别 1、图文咨询 2语音咨询3、视频咨询
$arg['consultApplyTime'] = 1; // 咨询类别 1、图文咨询 2语音咨询3、视频咨询
$result = $regulatoryPlatform->uploadConsult($arg);
dump($result);