Update functions.php

pull/13/head
qkqpttgf 2020-01-01 16:41:44 +08:00 committed by GitHub
parent be28d584e3
commit a345eab2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ function array_value_isnot_null($arr)
function setConfig($arr) function setConfig($arr)
{ {
$envs = json_decode(file_get_contents('config.json')); $envs = json_decode(file_get_contents('config.json'), true);
foreach ($arr as $k1 => $v1) { foreach ($arr as $k1 => $v1) {
$envs[$k1] = $v1; $envs[$k1] = $v1;
} }