登录次数

This commit is contained in:
巴掌 committed 2019-01-07 09:39:18 +08:00
1 parent 70960ad176
commit 3ccaa15c60
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -61,6 +61,11 @@ class Index extends Base
->field('title,thinks,danwei')
->find();
// 查询用户登录次数
$admin = new \app\admin\model\Admin;
$userid = session('userid');
$list['denglucishu'] = $admin->where('id',$userid)->value('denglucishu');
// 获取版本号
$list->version = config('app.chengji.version');