|
|
@ -23,12 +23,12 @@ class Users::ApplyTrailService < ApplicationService
|
|
|
|
user.update!(certification: 1)
|
|
|
|
user.update!(certification: 1)
|
|
|
|
|
|
|
|
|
|
|
|
apply.status = 1
|
|
|
|
apply.status = 1
|
|
|
|
else
|
|
|
|
# else
|
|
|
|
sms_cache = Rails.cache.read("apply_auth")
|
|
|
|
# sms_cache = Rails.cache.read("apply_auth")
|
|
|
|
if sms_cache.nil?
|
|
|
|
# if sms_cache.nil?
|
|
|
|
send_trial_apply_notify!
|
|
|
|
# send_trial_apply_notify!
|
|
|
|
Rails.cache.write("apply_auth", 1, expires_in: 5.minutes)
|
|
|
|
# Rails.cache.write("apply_auth", 1, expires_in: 5.minutes)
|
|
|
|
end
|
|
|
|
# end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
apply.save!
|
|
|
|
apply.save!
|
|
|
|
end
|
|
|
|
end
|
|
|
|