去除获取处方平台状态退款消息推送(回调会推)。
This commit is contained in:
@@ -117,8 +117,11 @@ class AssignPharmacistConsumer extends ConsumerMessage
|
||||
* 分配失败
|
||||
* @param string $order_prescription_id
|
||||
* @param string $doctor_user_id
|
||||
* @param string $patient_user_id
|
||||
* @param string $order_inquiry_id
|
||||
* @return void
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function reject(string $order_prescription_id, string $doctor_user_id, string $patient_user_id, string $order_inquiry_id): void
|
||||
{
|
||||
|
||||
@@ -25,6 +25,10 @@ use PhpAmqpLib\Message\AMQPMessage;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
|
||||
/**
|
||||
* 自动完成问诊订单
|
||||
* 延迟队列
|
||||
*/
|
||||
#[Consumer(nums: 1)]
|
||||
class AutoCompleteInquiryDelayDirectConsumer extends ConsumerMessage
|
||||
{
|
||||
|
||||
@@ -128,8 +128,6 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
}
|
||||
}
|
||||
|
||||
// 下载医生签章文件
|
||||
Db::beginTransaction();
|
||||
try {
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->info("检测执行次数");
|
||||
|
||||
@@ -139,7 +137,7 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->error("错误:超出最大执行次数或检测错误");
|
||||
|
||||
// 修改处方表为未通过
|
||||
$this->modifyOrderPrescription($data['order_prescription_id'],2,"请联系平台客服,请勿重开处方");
|
||||
$this->modifyOrderPrescription($data['order_prescription_id'], 2, "请联系平台客服,请勿重开处方");
|
||||
|
||||
// 医生-开具的处方审核未通过
|
||||
$MessagePush = new MessagePush($user_doctor['user_id'], $order_prescription['order_inquiry_id']);
|
||||
@@ -149,14 +147,35 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
$MessagePush = new MessagePush($user_patient['user_id'], $order_prescription['order_inquiry_id']);
|
||||
$MessagePush->patientPrescriptionVerifyFail();
|
||||
|
||||
Db::commit();
|
||||
return Result::ACK;
|
||||
}
|
||||
|
||||
if (time() < 1682251200){
|
||||
Db::rollBack();
|
||||
return Result::REQUEUE;
|
||||
|
||||
}catch (\Exception $e){
|
||||
// 检测次数失败
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->info("错误:" . $e->getMessage());
|
||||
return Result::ACK;
|
||||
}
|
||||
|
||||
// 下载医生签章文件
|
||||
Db::beginTransaction();
|
||||
try {
|
||||
|
||||
|
||||
// 检测执行次数
|
||||
$res = $this->checkHandleNumber($data['prescription_file_id']);
|
||||
if (!$res) {
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->error("错误:超出最大执行次数或检测错误");
|
||||
|
||||
// 修改处方表为未通过
|
||||
$this->modifyOrderPrescription($data['order_prescription_id'],2,"请联系平台客服,请勿重开处方");
|
||||
|
||||
|
||||
|
||||
Db::commit();
|
||||
|
||||
}
|
||||
|
||||
// 获取处方文件数据
|
||||
$params = array();
|
||||
$params['prescription_file_id'] = $data['prescription_file_id'];
|
||||
|
||||
Reference in New Issue
Block a user