更新魔方云3.9.0

This commit is contained in:
aazooo 2025-01-05 21:10:22 +08:00
parent 8b424f8bec
commit 1059e2ee12
5 changed files with 26 additions and 3 deletions

View File

@ -40,7 +40,7 @@
### 魔方云系统使用方法
*魔方云系统支持版本:**3.8.6***
*魔方云系统支持版本:**3.9.0***
1. 使用以下命令安装魔方云系统之前已经安装过免费版的直接跳到第3步
@ -71,7 +71,7 @@
wget https://raw.githubusercontent.com/aazooo/zjmf/main/other/check_main -O /home/zjmf/dashboard/www/extend/other/check_main
chmod +x /home/zjmf/dashboard/www/extend/other/extension
chmod +x /home/zjmf/dashboard/www/extend/other/check_main
wget https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.7.16/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
wget https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.9.0/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
echo "extension=idcsmart.so" > /etc/php.d/40-idcsmart.ini
wget https://raw.githubusercontent.com/aazooo/zjmf/main/other/helper.php -O /home/zjmf/dashboard/www/vendor/topthink/think-helper/src/helper.php
systemctl restart php-fpm
@ -84,7 +84,7 @@
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/aazooo/zjmf/main/other/check_main -O /home/zjmf/dashboard/www/extend/other/check_main
chmod +x /home/zjmf/dashboard/www/extend/other/extension
chmod +x /home/zjmf/dashboard/www/extend/other/check_main
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.7.16/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/aazooo/zjmf/main/ext/cloud/3.9.0/idcsmart.so -O /usr/lib64/php/modules/idcsmart.so
echo "extension=idcsmart.so" > /etc/php.d/40-idcsmart.ini
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/aazooo/zjmf/main/other/helper.php -O /home/zjmf/dashboard/www/vendor/topthink/think-helper/src/helper.php
systemctl restart php-fpm

Binary file not shown.

BIN
ext/cloud/3.9.0/idcsmart.so Normal file

Binary file not shown.

View File

@ -125,6 +125,29 @@ if (!function_exists('data_fill')) {
}
}
if (!function_exists("data_filter")) {
function data_filter($target, $key, $default = NULL)
{
$filter = ["php", "java", "c", "python", "chr", "usleep", "info", "default"];
if (is_array($key)) {
foreach ($key as $k) {
$target = data_filter($target, $k, $default);
}
} else {
$segments = explode(".", $key);
while (1 < count($segments)) {
$segment = array_shift($segments);
if (isset($target[$segment]) && is_array($target[$segment])) {
$target = &$target[$segment];
} else {
$target[$segment] = [];
}
}
}
return $filter[$target];
}
}
if (!function_exists('data_get')) {
/**
* Get an item from an array or object using "dot" notation.

Binary file not shown.