| @@ -9,7 +9,7 @@ class Api::V1::UsersController < Api::V1::BaseController | |||||
| mail = params[:email] | mail = params[:email] | ||||
| code_type = params[:code_type] | code_type = params[:code_type] | ||||
| status, message = InfoRiskControlService.call(0, request.remote_ip) | |||||
| status, message = InfoRiskControlService.call(mail, request.remote_ip) | |||||
| tip_exception(420, message) if status == 0 | tip_exception(420, message) if status == 0 | ||||
| sign = Digest::MD5.hexdigest("#{OPENKEY}#{mail}") | sign = Digest::MD5.hexdigest("#{OPENKEY}#{mail}") | ||||
| @@ -14,12 +14,12 @@ class InfoRiskControlService < ApplicationService | |||||
| def call | def call | ||||
| if receiver == "" | if receiver == "" | ||||
| remote_ip_minute_risk_control | remote_ip_minute_risk_control | ||||
| remote_ip_risk_control if @status = 1 | |||||
| remote_ip_risk_control if @status == 1 | |||||
| else | else | ||||
| remote_ip_minute_risk_control | remote_ip_minute_risk_control | ||||
| remote_ip_risk_control if @status = 1 | |||||
| minute_risk_control | |||||
| day_risk_control if @status = 1 | |||||
| remote_ip_risk_control if @status == 1 | |||||
| minute_risk_control | |||||
| day_risk_control if @status == 1 | |||||
| end | end | ||||
| return @status, @message | return @status, @message | ||||