...
|
...
|
@@ -30,7 +30,7 @@ class LoginController extends Controller{ |
|
|
public function login()
|
|
|
{
|
|
|
$param=$this->request->param();
|
|
|
$user=Db::name('user')->where(['user_login'=>$param['user_login'],'user_pass'=>cmf_password($param['user_pass'])])->field('user_type,user_login,user_status')->find();
|
|
|
$user=Db::name('user')->where(['user_login'=>$param['user_login'],'user_pass'=>cmf_password($param['user_pass'])])->field('user_type,user_login,user_status,id')->find();
|
|
|
if (!$user){
|
|
|
$this->error('用户不存在');
|
|
|
}
|
...
|
...
|
|