职业认证

dev_ec
cxt 5 years ago
parent bdca8af739
commit 4c13fb53a9

@ -38,11 +38,11 @@ class Users::ApplyProfessionalAuthService < ApplicationService
move_image_file! unless params[:upload_image].to_s == 'false'
# sms_cache = Rails.cache.read("apply_pro_certification")
# if sms_cache.nil?
sms_notify_admin
# Rails.cache.write("apply_pro_certification", 1)
# end
sms_cache = Rails.cache.read("apply_pro_certification")
if sms_cache.nil?
sms_notify_admin
Rails.cache.write("apply_pro_certification", 1, expires_in: 5.minutes)
end
end
end

Loading…
Cancel
Save