|
@@ -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');
|