fix bug
parent
4610d37976
commit
832e3b5d7f
|
@ -47,10 +47,10 @@ function getConfig($str, $disktag = '')
|
||||||
if ($configs!='') {
|
if ($configs!='') {
|
||||||
$envs = json_decode($configs, true);
|
$envs = json_decode($configs, true);
|
||||||
if (in_array($str, $InnerEnv)) {
|
if (in_array($str, $InnerEnv)) {
|
||||||
if (in_array($str, $Base64Env)) return base64_decode(equal_replace($envs[$disktag][$str],1));
|
if (in_array($str, $Base64Env)) return equal_replace($envs[$disktag][$str],1);
|
||||||
else return $envs[$disktag][$str];
|
else return $envs[$disktag][$str];
|
||||||
} else {
|
} else {
|
||||||
if (in_array($str, $Base64Env)) return base64_decode(equal_replace($envs[$str],1));
|
if (in_array($str, $Base64Env)) return equal_replace($envs[$str],1);
|
||||||
else return $envs[$str];
|
else return $envs[$str];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ function setConfig($arr, $disktag = '')
|
||||||
$operatedisk = 0;
|
$operatedisk = 0;
|
||||||
foreach ($arr as $k => $v) {
|
foreach ($arr as $k => $v) {
|
||||||
if (in_array($k, $InnerEnv)) {
|
if (in_array($k, $InnerEnv)) {
|
||||||
if (in_array($k, $Base64Env)) $envs[$disktag][$k] = equal_replace(base64_encode($v));
|
if (in_array($k, $Base64Env)) $envs[$disktag][$k] = equal_replace($v);
|
||||||
else $envs[$disktag][$k] = $v;
|
else $envs[$disktag][$k] = $v;
|
||||||
/*$diskconfig[$k] = $v;
|
/*$diskconfig[$k] = $v;
|
||||||
$indisk = 1;*/
|
$indisk = 1;*/
|
||||||
|
@ -83,7 +83,7 @@ function setConfig($arr, $disktag = '')
|
||||||
$envs[$v] = '';
|
$envs[$v] = '';
|
||||||
$operatedisk = 1;
|
$operatedisk = 1;
|
||||||
} else {
|
} else {
|
||||||
if (in_array($k, $Base64Env)) $tmp[$k] = equal_replace(base64_encode($v));
|
if (in_array($k, $Base64Env)) $tmp[$k] = equal_replace($v);
|
||||||
else $tmp[$k] = $v;
|
else $tmp[$k] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue