去除退款推送
This commit is contained in:
parent
4e3d6742a4
commit
28e0a9041c
@ -82,14 +82,6 @@ class ReportPreProductOrderCommand extends HyperfCommand
|
||||
$OrderProductService = new OrderProductService();
|
||||
$OrderProductService->OrderProductRefund($item['order_product_id'],"药品订单退款");
|
||||
|
||||
// 获取患者用户id
|
||||
$user_id = $this->getPatientUserId($item['patient_id']);
|
||||
if (!empty($user_id)){
|
||||
// 发送站内、订阅、短信消息-药品订单退款成功
|
||||
$MessagePush = new MessagePush($user_id);
|
||||
$MessagePush->refundProductSuccess($item['order_product_id']);
|
||||
}
|
||||
|
||||
// 清空缓存
|
||||
$redis->del($redis_key);
|
||||
|
||||
@ -208,21 +200,4 @@ class ReportPreProductOrderCommand extends HyperfCommand
|
||||
OrderProduct::edit($params,$data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者用户id
|
||||
* @param string $patient_id
|
||||
* @return string
|
||||
*/
|
||||
protected function getPatientUserId(string $patient_id): string
|
||||
{
|
||||
// 获取患者数据
|
||||
$params = array();
|
||||
$params['patient_id'] = $patient_id;
|
||||
$user_patient = UserPatient::getOne($params);
|
||||
if (empty($user_patient)){
|
||||
return "";
|
||||
}
|
||||
|
||||
return $user_patient['user_id'];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user