diff --git a/README.md b/README.md index 51a3184..57ec44a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ext/cloud/3.7.16/idcsmart.so b/ext/cloud/3.7.16/idcsmart.so deleted file mode 100644 index 741b1d8..0000000 Binary files a/ext/cloud/3.7.16/idcsmart.so and /dev/null differ diff --git a/ext/cloud/3.9.0/idcsmart.so b/ext/cloud/3.9.0/idcsmart.so new file mode 100644 index 0000000..c6cc06c Binary files /dev/null and b/ext/cloud/3.9.0/idcsmart.so differ diff --git a/other/helper.php b/other/helper.php index c40bc15..5882726 100644 --- a/other/helper.php +++ b/other/helper.php @@ -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. diff --git a/zjmf_auth_api.zip b/zjmf_auth_api.zip index 5332786..3d09808 100644 Binary files a/zjmf_auth_api.zip and b/zjmf_auth_api.zip differ