remove debug code

dev_partners
p31729568 6 years ago
parent 1fa27ae9d3
commit 35e26e22f7

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

@ -88,7 +88,6 @@
var formValid = function () { var formValid = function () {
error.html("").hide(); error.html("").hide();
console.log("a========", form.find("input[name='reasons[]']:checked").length, form.find("textarea[name='reject_description']").val())
if (form.find("input[name='reasons[]']:checked").length == 0 || form.find("textarea[name='reject_description']").val() == '') { if (form.find("input[name='reasons[]']:checked").length == 0 || form.find("textarea[name='reject_description']").val() == '') {
error.html("原因和说明不能为空,请完善后再确认提交").show(); error.html("原因和说明不能为空,请完善后再确认提交").show();
return false; return false;

Loading…
Cancel
Save