|
|
|
@ -4,7 +4,7 @@ module ManagementsHelper
|
|
|
|
|
def user_phone_addr phone
|
|
|
|
|
addr = "--"
|
|
|
|
|
unless phone.nil?
|
|
|
|
|
result = nil # MobInfo.lookup(phone[0,7])
|
|
|
|
|
result = MobInfo.lookup(phone[0,7])
|
|
|
|
|
if result.present?
|
|
|
|
|
addr = "#{result[:province]}-#{result[:city]}"
|
|
|
|
|
end
|
|
|
|
@ -15,7 +15,7 @@ module ManagementsHelper
|
|
|
|
|
def user_ip_addr ip
|
|
|
|
|
addr = "--"
|
|
|
|
|
unless ip.nil?
|
|
|
|
|
result = nil # SM.find_by_ip(ip)
|
|
|
|
|
result = SM.find_by_ip(ip)
|
|
|
|
|
if result.present?
|
|
|
|
|
addr = "#{result[:province]}-#{result[:city]}"
|
|
|
|
|
end
|
|
|
|
|