Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
38c53a01
authored
Dec 08, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
a3fb8a44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
cms/user_login_monitor/main.go
cms/user_login_monitor/main.go
View file @
38c53a01
...
...
@@ -88,7 +88,7 @@ func main() {
var
user_info
UserInfo
.
UserInfo
db
.
CmsDB
.
Get
(
&
user_info
,
"select * FROM user_info WHERE userId = ?"
,
user_login
.
UserId
)
ding
.
Send
(
util
.
Configs
.
Ding_msg
.
Webhook
,
"监控告警"
,
"后台用户登录IP监控,
用户:"
+
user_info
.
Email
+
",登录地址为:"
+
province
+
city
,
mobile
,
isAtAll
)
ding
.
Send
(
util
.
Configs
.
Ding_msg
.
Webhook
,
"监控告警"
,
"后台用户登录IP监控,
邮箱:"
+
user_info
.
Email
+
",名称:"
+
user_info
.
Name
+
",登录地址为:"
+
province
+
city
,
mobile
,
isAtAll
)
// 登录状态更新为异常
db
.
CmsDB
.
Exec
(
"UPDATE user_login set status = ? WHERE userId = ? and skey = ?"
,
-
1
,
user_login
.
UserId
,
user_login
.
Skey
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment