去除获取处方平台状态退款消息推送(回调会推)。

This commit is contained in:
2023-04-24 17:34:53 +08:00
parent bbc1135e56
commit 0902ca321d
6 changed files with 108 additions and 92 deletions
@@ -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'];