From 80f9e1065d50923f05f073654e9b2b5c5631d104 Mon Sep 17 00:00:00 2001 From: xxqfamous Date: Wed, 7 Jun 2023 14:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8Cerror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/accounts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 59823861f..c40714c98 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -182,6 +182,7 @@ class AccountsController < ApplicationController # user.destroy end Rails.logger.error("##:register error--#{user.try(:id)},message:#{e.message}") + UserAction.create(:action_id => user.try(:id).to_i, :action_type => "register_error", :user_id => user.try(:id).to_i, :ip => "code: #{register_params[:code]}; login: #{register_params[:login]}; namespace: #{register_params[:namespace]}; password: #{password};") logger_error(e) tip_exception(-1, "注册失败") end