From ebaf8bd433653df7abd4636d8f76366022929ec1 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 28 Jan 2020 14:52:25 +0800 Subject: [PATCH] read file to get config not include --- function/normal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/function/normal.php b/function/normal.php index 78514e3..42a3a83 100644 --- a/function/normal.php +++ b/function/normal.php @@ -259,7 +259,9 @@ function array_value_isnot_null($arr) function setConfig($arr) { - include 'config.php'; + //include 'config.php'; + $s = file_get_contents('config.php'); + $configs = substr($s, 18, -2); if ($configs!='') $envs = json_decode($configs, true); foreach ($arr as $k1 => $v1) { $envs[$k1] = $v1;