From 6fab283434bc1a1637a6669076a4ce8c015a5f9c Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 11 Jul 2025 15:49:13 +0800 Subject: [PATCH] email test --- application/common.php | 4 ++++ application/extra/queue.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/common.php b/application/common.php index f6b4b95..131d7f3 100644 --- a/application/common.php +++ b/application/common.php @@ -1000,6 +1000,7 @@ function createPayStationToken(){ "content-type: application/x-www-form-urlencoded", "accept: *", "accept-encoding: gzip, deflate", + 'Host: api.paystation.co.nz', ], CURLOPT_POSTFIELDS => http_build_query($bodyParams) ]; @@ -1022,6 +1023,9 @@ function createPayStationToken(){ } } + + + function postPayStationQuery($endpoint, $token, $body){ $curlHandle = curl_init(Env::get("paystation.api_url") . '/' . $endpoint); $options = [ diff --git a/application/extra/queue.php b/application/extra/queue.php index 660b1b5..195567c 100644 --- a/application/extra/queue.php +++ b/application/extra/queue.php @@ -12,7 +12,7 @@ return [ // 'connector' => 'Sync' 'connector' => 'Redis', // Redis 驱动 - 'expire' => 60, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null + 'expire' => null, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null 'default' => 'mail', // 默认的队列名称 'host' => '127.0.0.1', // redis 主机ip 'port' => 6379, // redis 端口