From 1145e1dfc2d9db680d7291a1dc906322b7efc2ea Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 20 May 2024 12:47:00 +0800 Subject: [PATCH] add custom vip config support --- conf/app.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/conf/app.php b/conf/app.php index bdee9ab..c043a64 100644 --- a/conf/app.php +++ b/conf/app.php @@ -154,4 +154,15 @@ if (file_exists($customConfigFile)) { }catch(Exception $e) {} } + +//VIP用户自定义配置 +$customConfigFile = __DIR__ . "/../runtime/custom_config_vip.json"; +if (file_exists($customConfigFile)) { + try { + $json = file_get_contents($customConfigFile); + $customConfigs = json_decode($json, true); + $configs = array_merge($configs, $customConfigs); + }catch(Exception $e) {} +} + return $configs; \ No newline at end of file