var wechat; var weixin="zk3m"; var weixin_id=8278; var project_id=462; var stxlwx="zk3m"; var xingming=""; var phone=""; var erweima=""; var time=1743803554; var weixin_fuzhi=0; var changan=0; var accountID; var project_res={"id":462,"name":"Li-jaety.shop","admin_id":1,"is_zhanei":0,"atype_id":0,"leibie_id":1,"yuming_id":0,"muban_id":63,"yonghu_id":1,"shenhe_switch":"0","quchong_switch":"1","weiyi_switch":"0","weixin_fuzhi":0,"changan":0,"weixin_status":3,"domain_name":"jaety.shop","image":"","spread_link":null,"huanxing":1,"liuliang":1,"zidong":0,"zidongshuliang":0,"spread_switch":"1","spread_start_time":"2024-07-23 21:51:45","spread_end_time":"2024-07-23 21:51:45","ftp_dizhi":null,"ftp_username":null,"ftp_password":null,"content":null,"remark":"","createtime":1721742754,"deleteed":0,"conver_id":"","zhuanhua":null,"download":null,"mima":null,"city":null,"beizhu":null,"kongpao":0,"jingdu":0,"other_switch":"0","other_link":"","hot_status":0}; var xeaoy_dt1 = new Date(); //line跳转 $(document).delegate(".xeaoy-weixin","copy",function(){ console.log("go"); Statistics(); window.location.href=lianjie; }) $(document).delegate(".xeaoy-goline","click",function(){ console.log("go"); Statistics(); window.location.href=lianjie; }) window.onbeforeunload = function() { closefuc(); } //额外统计 function x_tongji_fuc(){ var xeaoy_dt2 = new Date(); var xeaoy_ms = (xeaoy_dt2 - xeaoy_dt1) / 1000; console.log(xeaoy_ms); if (xeaoy_ms > project_res.jingdu) { //统计 $.ajax({ type: "POST", url: "/api/index/tongji", data: {project_id: project_id,weixin_id:weixin_id,stxlwx:weixin,time:time}, dataType: "json", success: function (res) { var result = res.data; }, beforeSend: function(xhr) { console.log("success"); rtjc=2; //xhr.setRequestHeader("User-Agent", "test"); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); } }) } } //额外转化 function x_jihuo_fuc(){ console.log("zh"); var zhuanhua_fuc = new Function(project_res.zhuanhua)(); } //统计 var rtja=1; var rtjb=1; var rtjc=1; function Statistics(){ if(rtjc==1){ var xeaoy_dt2 = new Date(); var xeaoy_ms = (xeaoy_dt2 - xeaoy_dt1) / 1000; console.log(xeaoy_ms); if (xeaoy_ms > project_res.jingdu) { //统计 $.ajax({ type: "POST", url: "/api/index/tongji", data: {project_id: project_id,weixin_id:weixin_id,stxlwx:weixin,time:time,shuju_id:shuju_id}, dataType: "json", success: function (res) { var result = res.data; }, beforeSend: function(xhr) { console.log("success"); rtjc=2; //xhr.setRequestHeader("User-Agent", "test"); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); } }) } } } function closefuc(){ var xeaoy_dt2 = new Date(); var xeaoy_ms = (xeaoy_dt2 - xeaoy_dt1) / 1000; console.log(xeaoy_ms); if (xeaoy_ms > project_res.jingdu) { //统计 $.ajax({ type: "POST", url: "/api/index/tongjiguanbi", data: {project_id: project_id,weixin_id:weixin_id,stxlwx:weixin,time:time,shuju_id:shuju_id}, dataType: "json", success: function (res) { var result = res.data; }, beforeSend: function(xhr) { console.log("success"); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); } }) } } function splicing(data) { var url = null; for (var index in data) { var element = data[index]; if (url == null) { url = index + "=" + element } else { url = url + "&" + index + "=" + element } } return url }