修复内容

This commit is contained in:
2026-01-30 18:48:13 +08:00
parent 5fe5289e26
commit 76cfa6b278
25 changed files with 943 additions and 289 deletions

View File

@@ -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'],

View File

@@ -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');
//平台短信通知