dever 2 years ago
parent
commit
a939f28642
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lib/Manage.php

+ 5 - 1
lib/Manage.php

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