dever 3 years ago
parent
commit
4ec307e788
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Base.php

+ 2 - 2
lib/Base.php

@@ -478,9 +478,9 @@ class Base
      *
      * @return mixed
      */
-    public function check($state = true)
+    public function check($state = true, $name = 'signature')
     {
-        $signature = Dever::input('signature');
+        $signature = Dever::input($name);
         $user = Dever::checkLogin($signature, $state);
         if ($state && !isset($user['uid'])) {
             Dever::alert('user error');