mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]更新Node模型名称
This commit is contained in:
parent
d84a16e8b6
commit
6864b2d25e
@ -14,7 +14,7 @@
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\admin\model\NodeModel as NodeModal;
|
||||
use app\admin\model\NodeModel;
|
||||
use controller\BasicAdmin;
|
||||
use service\LogService;
|
||||
use think\Db;
|
||||
@ -55,7 +55,7 @@ class Login extends BasicAdmin {
|
||||
($user['password'] !== md5($password)) && $this->error('登录密码与账号不匹配,请重新输入!');
|
||||
Db::name('SystemUser')->where('id', $user['id'])->update(['login_at' => ['exp', 'now()'], 'login_num' => ['exp', 'login_num+1']]);
|
||||
session('user', $user);
|
||||
!empty($user['authorize']) && NodeModal::applyAuthNode();
|
||||
!empty($user['authorize']) && NodeModel::applyAuthNode();
|
||||
LogService::write('登录系统', '用户登录系统成功!');
|
||||
$this->success('登录成功,正在进入系统...', '@admin');
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
use app\admin\model\NodeModel as NodeModal;
|
||||
use app\admin\model\NodeModel;
|
||||
use think\Config;
|
||||
use think\Db;
|
||||
use Wechat\Loader;
|
||||
@ -73,7 +73,7 @@ function decode($string) {
|
||||
* @return bool
|
||||
*/
|
||||
function auth($node) {
|
||||
return NodeModal::checkAuthNode($node);
|
||||
return NodeModel::checkAuthNode($node);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user