应用设置优化

This commit is contained in:
liu
2026-09-04 20:37:34 +08:00
parent c986c86ed5
commit 52e339cdd3
10 changed files with 127 additions and 33 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ use Illuminate\Support\Str;
* - 整体以 JSON 信封 POST{serialNo, version, timestamp, data, signature, extras, organizNo}
* - 应答/通知反向解密:商户私钥解 signature 得 AES 密钥,再用其解 data 得业务报文。
*
* 配置优先级:后台「系统设置 → 支付配置」(site_config pay.wangpu_*) > config/services.phpenv
* 配置优先级:后台「系统设置 → 旺铺支付」(site_config wangpu.*) > config/services.phpenv
*/
class WangpuPayService
{
@@ -279,7 +279,7 @@ class WangpuPayService
*/
protected function config(string $key): string
{
$value = site_config('pay.wangpu_' . $key, '');
$value = site_config('wangpu.' . $key, '');
if ($value === null || $value === '') {
$value = config('services.wangpu.' . $key, '');
}