From c75e85c02248c998584881c1b63bb889b963d4ad Mon Sep 17 00:00:00 2001 From: yystopf Date: Sun, 4 Jan 2026 11:32:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=EF=BC=9A=E9=9A=90=E8=97=8F=E7=94=B5?= =?UTF-8?q?=E8=AF=9D=E5=8F=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_small.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_user_small.json.jbuilder b/app/views/users/_user_small.json.jbuilder index d645aaf05..446cbe94e 100644 --- a/app/views/users/_user_small.json.jbuilder +++ b/app/views/users/_user_small.json.jbuilder @@ -2,7 +2,7 @@ json.array! users do |user| json.username user.full_name json.login user.login - json.phone user.phone + # json.phone user.phone json.user_id user.id json.mail user.mail # json.phone user.phone.present? ? "#{user.phone[0..2]}****#{user.phone[-4..-1]}" : "" From 3bb58f5b0106135d255f31f33afc0d1eb81d615c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 29 Jan 2026 17:20:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=88=90=E5=8A=9F=E6=B8=85=E9=99=A4=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/concerns/login_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/concerns/login_helper.rb b/app/controllers/concerns/login_helper.rb index 6f1e6c895..3c7d8f2d3 100644 --- a/app/controllers/concerns/login_helper.rb +++ b/app/controllers/concerns/login_helper.rb @@ -47,6 +47,8 @@ module LoginHelper UserAction.create(action_id: user&.id, action_type: 'Login', user_id: user&.id, ip: request.remote_ip) user.update_column(:last_login_on, Time.now) + # 清除登录错误次数 + user.reset_login_times! # 注册完成后有一天的试用申请(先去掉) # UserDayCertification.create(user_id: user.id, status: 1) end From e638c741c54512383f63228dd692920f8a64702c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 29 Jan 2026 17:33:31 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=88=90=E5=8A=9F=E6=B8=85=E9=99=A4=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/accounts_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 46284867b..5785a7136 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -337,6 +337,8 @@ class AccountsController < ApplicationController session[:"#{default_yun_session}"] = user.id UserOnline.login(user.id) Rails.logger.info("#########_____session_default_yun_session__________###############{default_yun_session}") + # 清除登录错误次数 + user.reset_login_times! # 注册完成后有一天的试用申请(先去掉) # UserDayCertification.create(user_id: user.id, status: 1) end