u
This commit is contained in:
1 parent
6d54a9e407
commit
f59d5c4f59
6 files changed
+791
-372
No files matched your search
@@ -73,16 +73,11 @@ func handleThirdLogin(
|
||||
|
||||
// ========= 校验状态 =========
|
||||
id := toInt64(user["id"])
|
||||
status := toInt64(user["status"])
|
||||
|
||||
if status == 0 {
|
||||
return httpx.Fail(c, "账号已被禁用")
|
||||
}
|
||||
|
||||
// ========= 更新登录时间 =========
|
||||
if err := dbClient.Update(
|
||||
c.Context(),
|
||||
"user",
|
||||
"b_user",
|
||||
"id",
|
||||
map[string]any{
|
||||
"id": id,
|
||||
|
||||
Reference in new issue
Block a user