应用设置优化
This commit is contained in:
@@ -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.php(env)
|
||||
* 配置优先级:后台「系统设置 → 旺铺支付」(site_config wangpu.*) > config/services.php(env)
|
||||
*/
|
||||
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, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user