Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

issues25489
hjm 5 years ago
commit 02edf0f86e

@ -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

@ -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

@ -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

Loading…
Cancel
Save