[0] ThrowableError in User.php line 344
类型错误: Too few arguments to function app\common\model\User::login(), 2 passed in E:\wwwroot\gqk_wap\web\application\admin\controller\Index.php on line 52 and at least 3 expected
}
//获取一批会员资料信息
public static function get_list($start, $num, $sql) {
return Db::query('SELECT * FROM '.config('database.prefix').'memberdata '." $sql LIMIT $start, $num");
}
//用户登录
public static function login($username,$password,$cookietime,$not_pwd=false,$type='username'){
hook_listen('user_login_begin',[
'username'=>$username,
'password'=>$password,
'time'=>$cookietime,
'not_pwd'=>$not_pwd,
'type'=>$type,
] );
if($username==''){
return 0;