修复内容
This commit is contained in:
@@ -129,7 +129,9 @@ class OrderRefundLogic
|
||||
}
|
||||
|
||||
$refund_log = Db::name('order_refund')->where(['id' => $refund_id])->find();
|
||||
|
||||
if ($order['transaction_id'] == ''){
|
||||
throw new Exception('微信订单不存在');
|
||||
}
|
||||
$data = [
|
||||
'transaction_id' => $order['transaction_id'],
|
||||
'refund_sn' => $refund_log['refund_sn'],
|
||||
|
||||
@@ -115,27 +115,27 @@ class PayNotifyLogic
|
||||
|
||||
|
||||
//发送通知
|
||||
Hook::listen('notice', [
|
||||
'user_id' => $user['id'],
|
||||
'order_id' => $order['id'],
|
||||
'scene' => NoticeSetting::ORDER_PAY_NOTICE,
|
||||
]);
|
||||
// Hook::listen('notice', [
|
||||
// 'user_id' => $user['id'],
|
||||
// 'order_id' => $order['id'],
|
||||
// 'scene' => NoticeSetting::ORDER_PAY_NOTICE,
|
||||
// ]);
|
||||
|
||||
|
||||
//短信通知
|
||||
Hook::listen('sms_send', [
|
||||
'key' => NoticeSetting::ORDER_PAY_NOTICE,
|
||||
'mobile' => $order->mobile,
|
||||
'user_id' => $user->id,
|
||||
'params' => [
|
||||
'nickname' => $user->nickname,
|
||||
'order_sn' => $order->order_sn,
|
||||
'order_amount' => $order->order_amount,
|
||||
'time' => $order->create_time,
|
||||
'total_num' => $order->total_num.'件',
|
||||
'goods_name' => omit_str(($order->order_goods[0]['goods_name'] ?? '商品'), 8)
|
||||
]
|
||||
]);
|
||||
// Hook::listen('sms_send', [
|
||||
// 'key' => NoticeSetting::ORDER_PAY_NOTICE,
|
||||
// 'mobile' => $order->mobile,
|
||||
// 'user_id' => $user->id,
|
||||
// 'params' => [
|
||||
// 'nickname' => $user->nickname,
|
||||
// 'order_sn' => $order->order_sn,
|
||||
// 'order_amount' => $order->order_amount,
|
||||
// 'time' => $order->create_time,
|
||||
// 'total_num' => $order->total_num.'件',
|
||||
// 'goods_name' => omit_str(($order->order_goods[0]['goods_name'] ?? '商品'), 8)
|
||||
// ]
|
||||
// ]);
|
||||
|
||||
$order_contact_mobile = ConfigServer::get('order_message', 'order_contact_mobile');
|
||||
//平台短信通知
|
||||
|
||||
Reference in New Issue
Block a user