From a34a90f03cecc7658231547270f8036bb5affe4a Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Tue, 29 Apr 2025 18:32:24 +0800
Subject: [PATCH] 提交

---
 js/ueditor/php/action_crawler.php                                     |    2 +-
 index.php                                                             |    2 +-
 app/public/common.php                                                 |    4 ++--
 app/include/libs/sysplugins/smarty_internal_function_call_handler.php |    2 +-
 app/public/action.class.php                                           |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/app/include/libs/sysplugins/smarty_internal_function_call_handler.php b/app/include/libs/sysplugins/smarty_internal_function_call_handler.php
index 9b6be5f..1ca77b6 100644
--- a/app/include/libs/sysplugins/smarty_internal_function_call_handler.php
+++ b/app/include/libs/sysplugins/smarty_internal_function_call_handler.php
@@ -24,7 +24,7 @@
      * @param string $_hash nocache hash value
      * @param bool $_nocache nocache flag
      */
-    public static function call(string $_name, Smarty_Internal_Template $_template, array $_params, string $_hash, bool $_nocache) {
+    public static function call($_name, Smarty_Internal_Template $_template, $_params, $_hash, $_nocache) {
         if ($_nocache) {
             $_function = "smarty_template_function_{$_name}_nocache";
         } else {
diff --git a/app/public/action.class.php b/app/public/action.class.php
index ca979f6..4876c36 100644
--- a/app/public/action.class.php
+++ b/app/public/action.class.php
@@ -151,7 +151,7 @@
     protected function _initialize() {
     }
     
-    function get_table_fields($tableName): array {
+    function get_table_fields($tableName) {
         include(CONFIG_PATH . 'db.config.php');
         $mysqli = new mysqli($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname']);
         $query = $mysqli->query("SHOW COLUMNS FROM $tableName");
@@ -163,7 +163,7 @@
     }
     
     
-    function insert_into($table, $data = array()): bool {
+    function insert_into($table, $data = array()) {
         $value = array();
         $this->db->connect();
         include(PLUS_PATH . 'dbstruct.cache.php');
diff --git a/app/public/common.php b/app/public/common.php
index a46a5d7..6d0af4e 100644
--- a/app/public/common.php
+++ b/app/public/common.php
@@ -1030,7 +1030,7 @@
      * @param int $tm 跳转时间
      * @param string $type 1:后台操作
      */
-    function ACT_layer_msg(string $msg = "操作已成功!", int $st = 9, string $url = '', int $tm = 2, string $type = '0') {
+    function ACT_layer_msg($msg = "操作已成功!", $st = 9, $url = '', $tm = 2, $type = '0') {
         //解决ie9 $.get $.post 回调函数的返回值为undefine
         header("Content-Type: text/html; charset=UTF-8");
         
@@ -1061,7 +1061,7 @@
      * @param string $tm 时间
      * @param string $error
      */
-    function layer_msg(string $msg, string $st = '9', string $type = '0', string $url = '', string $tm = '2', string $error = '0') {
+    function layer_msg($msg, $st = '9', $type = '0', $url = '', $tm = '2', $error = '0') {
         if ($type == '1') {
             
             $this->ACT_layer_msg($msg, $st, $url, $tm, $type);
diff --git a/index.php b/index.php
index b3053c1..069e39a 100644
--- a/index.php
+++ b/index.php
@@ -28,7 +28,7 @@
     $_GET['m'] = 'index';
 }
 
-$ModuleName = $_GET['m'] ?? '';
+$ModuleName = $_GET['m'] ?: '';
 if ($ModuleName == '') $ModuleName = 'index';
 //默认情况下,调用app/controller下与当前目录名相同的模块
 //如当前目录名为ask,则默认调用的是app/controller/ask/下的控制器
diff --git a/js/ueditor/php/action_crawler.php b/js/ueditor/php/action_crawler.php
index 786c9e8..0824cf8 100644
--- a/js/ueditor/php/action_crawler.php
+++ b/js/ueditor/php/action_crawler.php
@@ -35,7 +35,7 @@
 
 /* 抓取远程图片 */
 $list = array();
-$source = $_POST[$fieldName] ?? $_GET[$fieldName];
+$source = $_POST[$fieldName] ? $_GET[$fieldName]:"";
 foreach ($source as $imgUrl) {
     $item = new Uploader($imgUrl, $config, "remote");
     $info = $item->getFileInfo();

--
Gitblit v1.9.0