去除获取处方平台状态退款消息推送(回调会推)。
This commit is contained in:
@@ -52,9 +52,6 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
||||
foreach ($order_product_ids as $item) {
|
||||
Db::beginTransaction();
|
||||
|
||||
// 是否执行了退款-预定义变量
|
||||
$is_refund = 0;
|
||||
|
||||
$this->line("本次请求订单号:" . $item['order_product_id']);
|
||||
|
||||
// 获取药品订单处方数据
|
||||
@@ -108,9 +105,6 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
||||
// 执行退款
|
||||
$OrderProductService = new OrderProductService();
|
||||
$OrderProductService->OrderProductRefund($item['order_product_id'],"订单退款");
|
||||
|
||||
// 标记为执行了退款
|
||||
$is_refund = 1;
|
||||
}
|
||||
|
||||
if ($result['status'] == "CFD05"){
|
||||
@@ -157,23 +151,6 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
||||
// 记录失败次数
|
||||
$this->line("获取处方平台订单数据失败:" . $e->getMessage());
|
||||
}
|
||||
|
||||
// 检测是否执行了退款
|
||||
if ($is_refund == 1){
|
||||
try {
|
||||
$this->line("发送消息推送");
|
||||
|
||||
// 获取患者用户id
|
||||
$user_id = $this->getPatientUserId($item['patient_id']);
|
||||
if (!empty($user_id)){
|
||||
// 发送站内、订阅、短信消息-药品订单退款成功
|
||||
$MessagePush = new MessagePush($user_id);
|
||||
$MessagePush->refundProductSuccess($item['order_product_id']);
|
||||
}
|
||||
}catch(\Exception $e){
|
||||
$this->line("发送消息推送失败:" . $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->line("获取处方平台订单数据全部处理结束");
|
||||
|
||||
Reference in New Issue
Block a user