|
|
|
@ -68,7 +68,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
# 手机类型的发送
|
|
|
|
|
sigle_para = {phone: value}
|
|
|
|
|
status = Educoder::Sms.send(mobile: value, code: code)
|
|
|
|
|
tip_exception(code_msg(status)) if status != 0
|
|
|
|
|
tip_exception(-2, code_msg(status)) if status != 0
|
|
|
|
|
when 8, 3, 5
|
|
|
|
|
# 邮箱类型的发送
|
|
|
|
|
sigle_para = {email: value}
|
|
|
|
@ -77,7 +77,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
# Mailer.run.email_register(code, value)
|
|
|
|
|
rescue Exception => e
|
|
|
|
|
logger_error(e)
|
|
|
|
|
tip_exception("邮件发送失败,请稍后重试")
|
|
|
|
|
tip_exception(-2,"邮件发送失败,请稍后重试")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
ver_params = {code_type: send_type, code: code}.merge(sigle_para)
|
|
|
|
|