dever 2 年之前
父節點
當前提交
a939f28642
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      lib/Manage.php

+ 5 - 1
lib/Manage.php

@@ -27,7 +27,11 @@ class Manage
             Dever::alert('暂无数据');
             Dever::alert('暂无数据');
         }
         }
 
 
-        $temp = explode('.', $method);
+        if (strstr($method, '.')) {
+            $temp = explode('.', $method);
+        } elseif (strstr($method, '-')) {
+            $temp = explode('-', $method);
+        }
         $method = $temp[0];
         $method = $temp[0];
 
 
         if ($yes) {
         if ($yes) {