From 5ef251fe4ee60904eea7b856ff7ec2d09b648865 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 6 Nov 2019 10:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=B6=85=E7=AE=A1=E7=9A=84?= =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E5=92=8C=E8=81=8C=E4=B8=9A?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E3=80=81=E8=AF=95=E7=94=A8=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E7=9A=84=E7=9F=AD=E4=BF=A1=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/users/apply_authentication_service.rb | 2 +- .../users/apply_professional_auth_service.rb | 2 +- app/services/users/apply_trail_service.rb | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/services/users/apply_authentication_service.rb b/app/services/users/apply_authentication_service.rb index a9fa12638..c68260dcb 100644 --- a/app/services/users/apply_authentication_service.rb +++ b/app/services/users/apply_authentication_service.rb @@ -27,7 +27,7 @@ class Users::ApplyAuthenticationService < ApplicationService move_image_file! unless params[:upload_image].to_s == 'false' end - sms_notify_admin + # sms_notify_admin user end diff --git a/app/services/users/apply_professional_auth_service.rb b/app/services/users/apply_professional_auth_service.rb index ea9f3e0d1..46a4658aa 100644 --- a/app/services/users/apply_professional_auth_service.rb +++ b/app/services/users/apply_professional_auth_service.rb @@ -39,7 +39,7 @@ class Users::ApplyProfessionalAuthService < ApplicationService move_image_file! unless params[:upload_image].to_s == 'false' end - sms_notify_admin + # sms_notify_admin end private diff --git a/app/services/users/apply_trail_service.rb b/app/services/users/apply_trail_service.rb index 45abd8d1b..082a89c9a 100644 --- a/app/services/users/apply_trail_service.rb +++ b/app/services/users/apply_trail_service.rb @@ -23,12 +23,12 @@ class Users::ApplyTrailService < ApplicationService user.update!(certification: 1) apply.status = 1 - else - sms_cache = Rails.cache.read("apply_auth") - if sms_cache.nil? - send_trial_apply_notify! - Rails.cache.write("apply_auth", 1, expires_in: 5.minutes) - end + # else + # sms_cache = Rails.cache.read("apply_auth") + # if sms_cache.nil? + # send_trial_apply_notify! + # Rails.cache.write("apply_auth", 1, expires_in: 5.minutes) + # end end apply.save! end