新增消息推送
This commit is contained in:
@@ -529,7 +529,25 @@ class CallBackController extends AbstractController
|
||||
|
||||
Log::getInstance()->info("药品微信退款回调数据处理成功");
|
||||
|
||||
// 发送短信消息
|
||||
// 发送推送消息
|
||||
try {
|
||||
// 获取患者数据
|
||||
$params = array();
|
||||
$params['patient_id'] = $order_product['patient_id'];
|
||||
$user_patient = UserPatient::getOne($params);
|
||||
if (empty($user_patient)){
|
||||
Log::getInstance()->error("微信退款回调处理成功,推送消息失败:推送用户数据错误");
|
||||
}
|
||||
|
||||
// 发送站内、订阅、短信消息-药品订单退款成功
|
||||
$MessagePush = new MessagePush($user_patient['user_id']);
|
||||
|
||||
$MessagePush->refundProductSuccess($order_product['order_product_id']);
|
||||
}catch (\Exception $e) {
|
||||
// 验证失败
|
||||
Log::getInstance()->error("微信退款回调处理成功,推送消息失败:" . $e->getMessage());
|
||||
return $server->serve();
|
||||
}
|
||||
|
||||
// 告知处方平台
|
||||
return $server->serve();
|
||||
|
||||
Reference in New Issue
Block a user