6
0
Fork 0

微信支付日志配置

release
李静 2021-12-27 14:00:27 +08:00
parent 8da33e2414
commit 5f3dceaca1
2 changed files with 13 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class WeChatPayService
*/
public function pay(array $params)
{
if (isset($params['notify_url'])) {
if (! isset($params['notify_url'])) {
$params['notify_url'] = url(route('wxpay.paid_notify', [], false), [], true);
}

View File

@ -10,6 +10,18 @@ return [
'cert_path' => env('WECHAT_PAYMENT_CERT_PATH'), // 绝对地址
'key_path' => env('WECHAT_PAYMENT_KEY_PATH'), // 绝对地址
'notify_url' => env('WECHAT_PAYMENT_NOTIFY_URL'),
// 日志
'log' => [
'default' => 'daily',
'channels' => [
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/wxpay.log'),
'level' => 'info',
],
],
],
],
],
];