|
|
|
@ -54,7 +54,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
if type.to_i == 1 && !user.nil?
|
|
|
|
|
tip_exception(-2, "该手机号码或邮箱已被注册")
|
|
|
|
|
elsif type.to_i == 2 && user.nil?
|
|
|
|
|
tip_exception("该手机号码或邮箱未注册")
|
|
|
|
|
tip_exception(-2, "该手机号码或邮箱未注册")
|
|
|
|
|
end
|
|
|
|
|
sucess_status
|
|
|
|
|
end
|
|
|
|
|