Commit 12db3729 by 杨树贤

对接加密日志后台

parent a4abcadc
......@@ -85,3 +85,17 @@ function inArray(needle, haystack) {
}
return false;
}
function getCookie(name) {
var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
if (arr != null) return unescape(arr[2]);
return null;
}
function getLogDomain() {
var default_domain = "http://monitor.liexindev.net";
if (document.domain.indexOf("ichunt") !== -1) {
default_domain = "https://monitor.ichunt.net";
}
return default_domain;
}
......@@ -177,6 +177,13 @@
break;
}
console.log(resp);
$.get(getLogDomain() + "/api/addSensitiveClick", {
uid: getCookie("oa_user_id") || 0,
sys_id: 4,
mask_type: type || 0,
origin_id: id || 0,
source_from: window.location.href
});
$(this).text('隐藏');
} else {
layer.msg(resp.err_msg, {'icon': 5});
......
......@@ -179,6 +179,13 @@
break;
}
$(this).text('隐藏');
$.get(getLogDomain() + "/api/addSensitiveClick", {
uid: getCookie("oa_user_id") || 0,
sys_id: 4,
mask_type: type || 0,
origin_id: contactId || 0,
source_from: window.location.href
});
console.log(resp);
} else {
layer.msg(resp.err_msg, {'icon': 5});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment