修改登陆事件

This commit is contained in:
JaguarJack
2020-04-28 16:34:17 +08:00
parent 760ad2a51b
commit 435e1b6399
17 changed files with 954 additions and 37 deletions

View File

@@ -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),

View File

@@ -0,0 +1 @@
<?php

View File

@@ -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
{
}

View File

@@ -1,13 +0,0 @@
{
"name": "",
"alias": "wechat",
"description": "",
"keywords": [],
"order": 0,
"services": [
""
],
"aliases": {},
"files": [],
"requires": []
}

View File

@@ -1,5 +0,0 @@
<?php
// you should user `$router`
// $router->get('index', 'controller@method');