[更新]更新Node模型名称

This commit is contained in:
邹景立 2017-04-11 11:45:30 +08:00
parent d84a16e8b6
commit 6864b2d25e
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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);
}
/**