修改登陆事件
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
namespace catchAdmin\login;
|
||||
|
||||
use catchAdmin\permissions\model\Users;
|
||||
use catchAdmin\system\model\LoginLog;
|
||||
use think\facade\Db;
|
||||
|
||||
class LoginLogEvent
|
||||
@@ -12,7 +13,7 @@ class LoginLogEvent
|
||||
|
||||
$username = Users::where('email', $params['email'])->value('username');
|
||||
|
||||
Db::name('login_log')->insert([
|
||||
app(LoginLog::class)->storeBy([
|
||||
'login_name' => $username ? : $params['email'],
|
||||
'login_ip' => request()->ip(),
|
||||
'browser' => $this->getBrowser($agent),
|
||||
|
1
catch/system/controller/Generate.php
Normal file
1
catch/system/controller/Generate.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php
|
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @filename Reply.php
|
||||
* @createdAt 2020/2/13
|
||||
* @project https://github.com/yanwenwu/catch-admin
|
||||
* @document http://doc.catchadmin.com
|
||||
* @author JaguarJack <njphper@gmail.com>
|
||||
* @copyright By CatchAdmin
|
||||
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||
*/
|
||||
namespace catchAdmin\wechat\controller;
|
||||
|
||||
use catcher\base\CatchController;
|
||||
|
||||
class Reply extends CatchController
|
||||
{
|
||||
|
||||
}
|
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "",
|
||||
"alias": "wechat",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"order": 0,
|
||||
"services": [
|
||||
""
|
||||
],
|
||||
"aliases": {},
|
||||
"files": [],
|
||||
"requires": []
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
// you should user `$router`
|
||||
// $router->get('index', 'controller@method');
|
||||
|
Reference in New Issue
Block a user