修复内容

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

View File

@@ -40,7 +40,7 @@ class Ad extends Model{
self::mobile => [
[
'name' => '商品分类',
'path' => '/pages/sort/sort',
'path' => '/pages/category/index',
'is_tab' => 1,
],
[
@@ -57,7 +57,7 @@ class Ad extends Model{
self::pc => [
[
'name' => '商品分类',
'path' => '/category',
'path' => '/category/index',
'is_tab' => 0,
],
[
@@ -67,7 +67,7 @@ class Ad extends Model{
],
[
'name' => '个人中心',
'path' => '/user/profile',
'path' => '/user/user',
'is_tab' => 0,
],
],

View File

@@ -24,7 +24,7 @@ class Aliyun extends Server
parent::__construct();
$this->config = $config;
}
/**
* 创建并配置 OssClient
* @return OssClient