Commit 6926a137 by xujia

“io数据报送,更换地址及appkey

parent 92ecd8f3
......@@ -450,7 +450,7 @@
browser: UtilService.getBrowser() //浏览器类型
}
};
$.post(UtilService.getLogRoot()+"/receive/tkio/event",JSON.stringify(params));
$.post(UtilService.getLogRoot()+"/receive/analyze/event",JSON.stringify(params));
}
//功能报送数据
service.getOperSubmitData = function(opername){
......@@ -492,7 +492,7 @@
browser: UtilService.getBrowser() //浏览器类型
}
};
$.post(UtilService.getLogRoot()+"/receive/tkio/event",JSON.stringify(params));
$.post(UtilService.getLogRoot()+"/receive/analyze/event",JSON.stringify(params));
}
//自定义报送
......@@ -538,7 +538,7 @@
}
}
$.post(UtilService.getLogRoot()+"/receive/tkio/event",JSON.stringify(params));
$.post(UtilService.getLogRoot()+"/receive/analyze/event",JSON.stringify(params));
}
return service;
}
......
......@@ -280,7 +280,7 @@
}
}
service.getTKAppkey = function(){
return "f0f251af10e66a0c94d2e923d8863105";
return "c3d048146de1beeb105d136696a33b0c";
}
service.getLogRoot = function(){
return "http://log.reyun.com";
......
(function(){String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var a={chrsz:8,hexcase:0,binl2hex:function(t){var i=this.hexcase?"0123456789ABCDEF":"0123456789abcdef";var e="";for(var n=0;n<t.length*4;n++){e+=i.charAt(t[n>>2]>>n%4*8+4&15)+i.charAt(t[n>>2]>>n%4*8&15)}return e},str2binl:function(t){var i=Array();var e=(1<<this.chrsz)-1;for(var n=0;n<t.length*this.chrsz;n+=this.chrsz)i[n>>5]|=(t.charCodeAt(n/this.chrsz)&e)<<n%32;return i},md5_cmn:function(t,i,e,n,s,r){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(i,t),this.safe_add(n,r)),s),e)},md5_ff:function(t,i,e,n,s,r,h){return this.md5_cmn(i&e|~i&n,t,i,s,r,h)},md5_gg:function(t,i,e,n,s,r,h){return this.md5_cmn(i&n|e&~n,t,i,s,r,h)},md5_hh:function(t,i,e,n,s,r,h){return this.md5_cmn(i^e^n,t,i,s,r,h)},md5_ii:function(t,i,e,n,s,r,h){return this.md5_cmn(e^(i|~n),t,i,s,r,h)},safe_add:function(t,i){var e=(t&65535)+(i&65535);var n=(t>>16)+(i>>16)+(e>>16);return n<<16|e&65535},bit_rol:function(t,i){return t<<i|t>>>32-i},core_md5:function(t,i){t[i>>5]|=128<<i%32;t[(i+64>>>9<<4)+14]=i;var e=1732584193;var n=-271733879;var s=-1732584194;var r=271733878;for(var h=0;h<t.length;h+=16){var a=e;var o=n;var d=s;var m=r;e=this.md5_ff(e,n,s,r,t[h+0],7,-680876936);r=this.md5_ff(r,e,n,s,t[h+1],12,-389564586);s=this.md5_ff(s,r,e,n,t[h+2],17,606105819);n=this.md5_ff(n,s,r,e,t[h+3],22,-1044525330);e=this.md5_ff(e,n,s,r,t[h+4],7,-176418897);r=this.md5_ff(r,e,n,s,t[h+5],12,1200080426);s=this.md5_ff(s,r,e,n,t[h+6],17,-1473231341);n=this.md5_ff(n,s,r,e,t[h+7],22,-45705983);e=this.md5_ff(e,n,s,r,t[h+8],7,1770035416);r=this.md5_ff(r,e,n,s,t[h+9],12,-1958414417);s=this.md5_ff(s,r,e,n,t[h+10],17,-42063);n=this.md5_ff(n,s,r,e,t[h+11],22,-1990404162);e=this.md5_ff(e,n,s,r,t[h+12],7,1804603682);r=this.md5_ff(r,e,n,s,t[h+13],12,-40341101);s=this.md5_ff(s,r,e,n,t[h+14],17,-1502002290);n=this.md5_ff(n,s,r,e,t[h+15],22,1236535329);e=this.md5_gg(e,n,s,r,t[h+1],5,-165796510);r=this.md5_gg(r,e,n,s,t[h+6],9,-1069501632);s=this.md5_gg(s,r,e,n,t[h+11],14,643717713);n=this.md5_gg(n,s,r,e,t[h+0],20,-373897302);e=this.md5_gg(e,n,s,r,t[h+5],5,-701558691);r=this.md5_gg(r,e,n,s,t[h+10],9,38016083);s=this.md5_gg(s,r,e,n,t[h+15],14,-660478335);n=this.md5_gg(n,s,r,e,t[h+4],20,-405537848);e=this.md5_gg(e,n,s,r,t[h+9],5,568446438);r=this.md5_gg(r,e,n,s,t[h+14],9,-1019803690);s=this.md5_gg(s,r,e,n,t[h+3],14,-187363961);n=this.md5_gg(n,s,r,e,t[h+8],20,1163531501);e=this.md5_gg(e,n,s,r,t[h+13],5,-1444681467);r=this.md5_gg(r,e,n,s,t[h+2],9,-51403784);s=this.md5_gg(s,r,e,n,t[h+7],14,1735328473);n=this.md5_gg(n,s,r,e,t[h+12],20,-1926607734);e=this.md5_hh(e,n,s,r,t[h+5],4,-378558);r=this.md5_hh(r,e,n,s,t[h+8],11,-2022574463);s=this.md5_hh(s,r,e,n,t[h+11],16,1839030562);n=this.md5_hh(n,s,r,e,t[h+14],23,-35309556);e=this.md5_hh(e,n,s,r,t[h+1],4,-1530992060);r=this.md5_hh(r,e,n,s,t[h+4],11,1272893353);s=this.md5_hh(s,r,e,n,t[h+7],16,-155497632);n=this.md5_hh(n,s,r,e,t[h+10],23,-1094730640);e=this.md5_hh(e,n,s,r,t[h+13],4,681279174);r=this.md5_hh(r,e,n,s,t[h+0],11,-358537222);s=this.md5_hh(s,r,e,n,t[h+3],16,-722521979);n=this.md5_hh(n,s,r,e,t[h+6],23,76029189);e=this.md5_hh(e,n,s,r,t[h+9],4,-640364487);r=this.md5_hh(r,e,n,s,t[h+12],11,-421815835);s=this.md5_hh(s,r,e,n,t[h+15],16,530742520);n=this.md5_hh(n,s,r,e,t[h+2],23,-995338651);e=this.md5_ii(e,n,s,r,t[h+0],6,-198630844);r=this.md5_ii(r,e,n,s,t[h+7],10,1126891415);s=this.md5_ii(s,r,e,n,t[h+14],15,-1416354905);n=this.md5_ii(n,s,r,e,t[h+5],21,-57434055);e=this.md5_ii(e,n,s,r,t[h+12],6,1700485571);r=this.md5_ii(r,e,n,s,t[h+3],10,-1894986606);s=this.md5_ii(s,r,e,n,t[h+10],15,-1051523);n=this.md5_ii(n,s,r,e,t[h+1],21,-2054922799);e=this.md5_ii(e,n,s,r,t[h+8],6,1873313359);r=this.md5_ii(r,e,n,s,t[h+15],10,-30611744);s=this.md5_ii(s,r,e,n,t[h+6],15,-1560198380);n=this.md5_ii(n,s,r,e,t[h+13],21,1309151649);e=this.md5_ii(e,n,s,r,t[h+4],6,-145523070);r=this.md5_ii(r,e,n,s,t[h+11],10,-1120210379);s=this.md5_ii(s,r,e,n,t[h+2],15,718787259);n=this.md5_ii(n,s,r,e,t[h+9],21,-343485551);e=this.safe_add(e,a);n=this.safe_add(n,o);s=this.safe_add(s,d);r=this.safe_add(r,m)}return Array(e,n,s,r)},getMD5Str:function(t){return this.binl2hex(this.core_md5(this.str2binl(t),t.length*this.chrsz))}};function r(){this._getInstance=function(){var t;if(window.ActiveXObject){var i=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var e=0;e<i.length;e++){try{t=new ActiveXObject(i[e]);return t}catch(t){}}}else if(window.XMLHttpRequest){t=new XMLHttpRequest;return t}else{return null}};this._ins=this._getInstance();this.sendURL=function(t,i,e){var n=this._ins;n.open("post",t,true);n.onreadystatechange=function(){if(n.readyState==4&&(n.status==200||n.status==304)){if(typeof e=="function"){e(n.response)}}};n.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");n.send(JSON.stringify(i))};this.quit=function(){this._ins.abort()}}var n={};var c={locationurl:"",preurl:"https://iolog.reyun.com/receive/analyze/",getSessionId:function(){var t=c.getItem("ryh5_io_sessionid");if(t&&t!=""){return t}var i=document.cookie,e=i.split(";"),n="";for(var s=0;s<e.length;s++){var r=e[s],h=r.split("=");if(h[0].trim()==="JSESSIONID"){n=h[1];break}}if(n==""){n=a.getMD5Str(navigator.userAgent+String((new Date).getTime()+Math.random()));c.setItem("ryh5_io_sessionid",n)}else{n=a.getMD5Str(n+String((new Date).getTime()+Math.random()))}return n},getItem:function(i){try{localStorage.setItem("rmdkk_io",111);localStorage.removeItem("rmdkk_io");var e=localStorage.getItem(i);return e==null?"":e}catch(t){var e=n[i];return e==undefined?"":e}},setItem:function(i,e){try{localStorage.setItem(i,e)}catch(t){n[i]=e}},getValue:function(t){var i="";switch(t){case"who":i=c.getItem("ryh5_io_usid");if(i==""){i=this.getSessionId()}break;case"deviceid":i=c.getItem("ryh5_io_usid");if(i==""){i=this.getSessionId()}else{i=a.getMD5Str(i)}break;default:i=this.getItem(t);break}return i},getCommonParams:function(t){var i={appid:this.getItem("ryh5_io_appid"),who:this.getValue("who"),context:{_deviceid:this.getValue("deviceid"),_cid:this.getItem("ryh5_io_cid"),_campaignid:this.getItem("ryh5_io_campid"),_apptype:"wap",_ua:navigator.userAgent}};if(t&&typeof t==="object"){for(var e in t){i.context[e]=t[e]}}return i},send:function(t,i,e){var n=this.preurl+t;var s=new r;s.sendURL(n,i,e)}};var t=new function(){this.version="v1.1.0";var _=function(){var i=function(){var t=c.getCommonParams();c.locationurl=t.context._url=document.location.href;t.what="pageview";c.send("event",t)};if(c.locationurl==""){i()}else{setTimeout(function(){var t=document.location.href;if(c.locationurl==t){return false}i()},100)}};this.init=function(t){c.setItem("ryh5_io_appid",t);var i=window.location.href,e=i.substring(i.indexOf("?")+1),n=e.split("&");var s=c.getItem("ryh5_io_cid"),r=c.getItem("ryh5_io_campid"),h=c.getItem("ryh5_io_sessionid");s=s==""?"-1":s;r=r==""?"_default_":r;h=h==""?c.getSessionId():h;for(var a=0;a<n.length;a++){var o=n[a].split("=");if(o[0]=="cid"){s=o[1]}if(o[0]=="campaignid"){r=o[1]}}if(!/^-?\d+$/.test(s)){s=-1}c.setItem("ryh5_io_cid",s);c.setItem("ryh5_io_campid",r);c.setItem("ryh5_io_sessionid",h);_();document.addEventListener("click",_);var d=this;var m=function(){d.event("finishload",{_url:document.location.href})};document.addEventListener("DOMContentLoaded",m,false)};this.register=function(t,i){var e=c.getCommonParams(i);e.who=t;c.send("register",e)};this.loggedin=function(t,i){var e=c.getCommonParams(i);e.who=t;c.setItem("ryh5_io_usid",t);c.send("loggedin",e);_()};this.download=function(t){var i=c.getCommonParams(t);i.what="download";c.send("event",i)};this.payment=function(t,i,e,n,s){var r=c.getCommonParams(s);r.context._transactionid=t;r.context._currencyamount=i;r.context._currencytype=e;r.context._paymenttype=n;c.send("payment",r)};this.event=function(t,i){var i=c.getCommonParams(i);i.what=t;c.send("event",i)};this.profile=function(t){var t=c.getCommonParams(t);c.send("profile",t)}};window["io"]=t})();
\ No newline at end of file
(function(){String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var t={chrsz:8,hexcase:0,binl2hex:function(t){var i=this.hexcase?"0123456789ABCDEF":"0123456789abcdef";var e="";for(var s=0;s<t.length*4;s++){e+=i.charAt(t[s>>2]>>s%4*8+4&15)+i.charAt(t[s>>2]>>s%4*8&15)}return e},str2binl:function(t){var i=Array();var e=(1<<this.chrsz)-1;for(var s=0;s<t.length*this.chrsz;s+=this.chrsz)i[s>>5]|=(t.charCodeAt(s/this.chrsz)&e)<<s%32;return i},md5_cmn:function(t,i,e,s,n,r){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(i,t),this.safe_add(s,r)),n),e)},md5_ff:function(t,i,e,s,n,r,h){return this.md5_cmn(i&e|~i&s,t,i,n,r,h)},md5_gg:function(t,i,e,s,n,r,h){return this.md5_cmn(i&s|e&~s,t,i,n,r,h)},md5_hh:function(t,i,e,s,n,r,h){return this.md5_cmn(i^e^s,t,i,n,r,h)},md5_ii:function(t,i,e,s,n,r,h){return this.md5_cmn(e^(i|~s),t,i,n,r,h)},safe_add:function(t,i){var e=(t&65535)+(i&65535);var s=(t>>16)+(i>>16)+(e>>16);return s<<16|e&65535},bit_rol:function(t,i){return t<<i|t>>>32-i},core_md5:function(t,i){t[i>>5]|=128<<i%32;t[(i+64>>>9<<4)+14]=i;var e=1732584193;var s=-271733879;var n=-1732584194;var r=271733878;for(var h=0;h<t.length;h+=16){var a=e;var d=s;var m=n;var o=r;e=this.md5_ff(e,s,n,r,t[h+0],7,-680876936);r=this.md5_ff(r,e,s,n,t[h+1],12,-389564586);n=this.md5_ff(n,r,e,s,t[h+2],17,606105819);s=this.md5_ff(s,n,r,e,t[h+3],22,-1044525330);e=this.md5_ff(e,s,n,r,t[h+4],7,-176418897);r=this.md5_ff(r,e,s,n,t[h+5],12,1200080426);n=this.md5_ff(n,r,e,s,t[h+6],17,-1473231341);s=this.md5_ff(s,n,r,e,t[h+7],22,-45705983);e=this.md5_ff(e,s,n,r,t[h+8],7,1770035416);r=this.md5_ff(r,e,s,n,t[h+9],12,-1958414417);n=this.md5_ff(n,r,e,s,t[h+10],17,-42063);s=this.md5_ff(s,n,r,e,t[h+11],22,-1990404162);e=this.md5_ff(e,s,n,r,t[h+12],7,1804603682);r=this.md5_ff(r,e,s,n,t[h+13],12,-40341101);n=this.md5_ff(n,r,e,s,t[h+14],17,-1502002290);s=this.md5_ff(s,n,r,e,t[h+15],22,1236535329);e=this.md5_gg(e,s,n,r,t[h+1],5,-165796510);r=this.md5_gg(r,e,s,n,t[h+6],9,-1069501632);n=this.md5_gg(n,r,e,s,t[h+11],14,643717713);s=this.md5_gg(s,n,r,e,t[h+0],20,-373897302);e=this.md5_gg(e,s,n,r,t[h+5],5,-701558691);r=this.md5_gg(r,e,s,n,t[h+10],9,38016083);n=this.md5_gg(n,r,e,s,t[h+15],14,-660478335);s=this.md5_gg(s,n,r,e,t[h+4],20,-405537848);e=this.md5_gg(e,s,n,r,t[h+9],5,568446438);r=this.md5_gg(r,e,s,n,t[h+14],9,-1019803690);n=this.md5_gg(n,r,e,s,t[h+3],14,-187363961);s=this.md5_gg(s,n,r,e,t[h+8],20,1163531501);e=this.md5_gg(e,s,n,r,t[h+13],5,-1444681467);r=this.md5_gg(r,e,s,n,t[h+2],9,-51403784);n=this.md5_gg(n,r,e,s,t[h+7],14,1735328473);s=this.md5_gg(s,n,r,e,t[h+12],20,-1926607734);e=this.md5_hh(e,s,n,r,t[h+5],4,-378558);r=this.md5_hh(r,e,s,n,t[h+8],11,-2022574463);n=this.md5_hh(n,r,e,s,t[h+11],16,1839030562);s=this.md5_hh(s,n,r,e,t[h+14],23,-35309556);e=this.md5_hh(e,s,n,r,t[h+1],4,-1530992060);r=this.md5_hh(r,e,s,n,t[h+4],11,1272893353);n=this.md5_hh(n,r,e,s,t[h+7],16,-155497632);s=this.md5_hh(s,n,r,e,t[h+10],23,-1094730640);e=this.md5_hh(e,s,n,r,t[h+13],4,681279174);r=this.md5_hh(r,e,s,n,t[h+0],11,-358537222);n=this.md5_hh(n,r,e,s,t[h+3],16,-722521979);s=this.md5_hh(s,n,r,e,t[h+6],23,76029189);e=this.md5_hh(e,s,n,r,t[h+9],4,-640364487);r=this.md5_hh(r,e,s,n,t[h+12],11,-421815835);n=this.md5_hh(n,r,e,s,t[h+15],16,530742520);s=this.md5_hh(s,n,r,e,t[h+2],23,-995338651);e=this.md5_ii(e,s,n,r,t[h+0],6,-198630844);r=this.md5_ii(r,e,s,n,t[h+7],10,1126891415);n=this.md5_ii(n,r,e,s,t[h+14],15,-1416354905);s=this.md5_ii(s,n,r,e,t[h+5],21,-57434055);e=this.md5_ii(e,s,n,r,t[h+12],6,1700485571);r=this.md5_ii(r,e,s,n,t[h+3],10,-1894986606);n=this.md5_ii(n,r,e,s,t[h+10],15,-1051523);s=this.md5_ii(s,n,r,e,t[h+1],21,-2054922799);e=this.md5_ii(e,s,n,r,t[h+8],6,1873313359);r=this.md5_ii(r,e,s,n,t[h+15],10,-30611744);n=this.md5_ii(n,r,e,s,t[h+6],15,-1560198380);s=this.md5_ii(s,n,r,e,t[h+13],21,1309151649);e=this.md5_ii(e,s,n,r,t[h+4],6,-145523070);r=this.md5_ii(r,e,s,n,t[h+11],10,-1120210379);n=this.md5_ii(n,r,e,s,t[h+2],15,718787259);s=this.md5_ii(s,n,r,e,t[h+9],21,-343485551);e=this.safe_add(e,a);s=this.safe_add(s,d);n=this.safe_add(n,m);r=this.safe_add(r,o)}return Array(e,s,n,r)},getMD5Str:function(t){return this.binl2hex(this.core_md5(this.str2binl(t),t.length*this.chrsz))}};function i(){this._getInstance=function(){var t;if(window.ActiveXObject){var i=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var e=0;e<i.length;e++){try{t=new ActiveXObject(i[e]);return t}catch(t){}}}else if(window.XMLHttpRequest){t=new XMLHttpRequest;return t}else{return null}};this._ins=this._getInstance();this.sendURL=function(t,i,e){var s=this._ins;s.open("post",t,true);s.onreadystatechange=function(){if(s.readyState==4&&(s.status==200||s.status==304)){if(typeof e=="function"){e(s.response)}}};s.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");s.send(JSON.stringify(i))};this.quit=function(){this._ins.abort()}}var e={};var s={locationurl:"",preurl:"https://log.reyun.com/receive/tkio/",getSessionId:function(){var i=s.getItem("ryh5_sessionid");if(i&&i!=""){return i}var e=document.cookie,n=e.split(";"),r="";for(var h=0;h<n.length;h++){var a=n[h],d=a.split("=");if(d[0].trim()==="JSESSIONID"){r=d[1];break}}if(r==""){r=t.getMD5Str(navigator.userAgent+String((new Date).getTime()+Math.random()));s.setItem("ryh5_sessionid",r)}else{r=t.getMD5Str(r+String((new Date).getTime()+Math.random()))}return r},getItem:function(t){try{localStorage.setItem("rmdkk",111);localStorage.removeItem("rmdkk");var i=localStorage.getItem(t);return i==null?"":i}catch(s){var i=e[t];return i==undefined?"":i}},setItem:function(t,i){try{localStorage.setItem(t,i)}catch(s){e[t]=i}},getValue:function(i){var e="";switch(i){case"who":e=s.getItem("ryh5_usid");if(e==""){e=this.getSessionId()}break;case"deviceid":e=s.getItem("ryh5_usid");if(e==""){e=this.getSessionId()}else{e=t.getMD5Str(e)}break;default:e=this.getItem(i);break}return e},getCommonParams:function(t){var i={appid:this.getItem("ryh5_appid"),who:this.getValue("who"),context:{_deviceid:this.getValue("deviceid"),_cid:this.getItem("ryh5_cid"),_campaignid:this.getItem("ryh5_campid"),_apptype:"wap",_ua:navigator.userAgent}};if(t&&typeof t==="object"){for(var e in t){i.context[e]=t[e]}}return i},send:function(t,e,s){var n=this.preurl+t;var r=new i;r.sendURL(n,e,s)}};var n=new function(){this.version="v1.1.0";var t=function(){setTimeout(function(){var t=document.location.href;if(s.locationurl==t){return false}var i=s.getCommonParams();s.locationurl=i.context._url=t;i.what="pageview";s.send("event",i)},200)};this.init=function(i){s.setItem("ryh5_appid",i);var e=window.location.href,n=e.substring(e.indexOf("?")+1),r=n.split("&");var h=s.getItem("ryh5_cid"),a=s.getItem("ryh5_campid"),d=s.getItem("ryh5_sessionid");h=h==""?"-1":h;a=a==""?"_default_":a;d=d==""?s.getSessionId():d;for(var m=0;m<r.length;m++){var o=r[m].split("=");if(o[0]=="cid"){h=o[1]}if(o[0]=="campaignid"){a=o[1]}}if(!/^-?\d+$/.test(h)){h=-1}s.setItem("ryh5_cid",h);s.setItem("ryh5_campid",a);s.setItem("ryh5_sessionid",d);t();};this.register=function(t,i){var e=s.getCommonParams(i);e.who=t;s.send("register",e)};this.loggedin=function(i,e){var n=s.getCommonParams(e);n.who=i;s.setItem("ryh5_usid",i);s.send("loggedin",n);t()};this.download=function(t){var i=s.getCommonParams(t);i.what="download";s.send("event",i)};this.order=function(t,i){var e=s.getCommonParams(i);e.what="order";e.context._transactionid=t;s.send("event",e)};this.payment=function(t,i,e,n,r){var h=s.getCommonParams(r);h.context._transactionid=t;h.context._currencyamount=i;h.context._currencytype=e;h.context._paymenttype=n;s.send("payment",h)};this.event=function(t,i){var i=s.getCommonParams(i);i.what=t;s.send("event",i)}};window["TrackingIO"]=n})();
......@@ -3,7 +3,7 @@
.controller("loginCtrl",["$scope","OptionService","DateService","$filter","UtilService","HttpService",loginCtrl]);
function loginCtrl($scope,OptionService,DateService,$filter,UtilService,HttpService){
TrackingIO.init(UtilService.getTKAppkey());
io.init(UtilService.getTKAppkey());
$scope.now = DateService.getYesDay().startDate;
$scope.reportDate = DateService.getYesDay().startDate;
......@@ -77,7 +77,7 @@
UtilService.setCookie("regFlag",0,7);
}
else{
TrackingIO.loggedin(account.email);
io.loggedin(account.email);
window.localStorage.setItem("io_ry_user",JSON.stringify(account));
UtilService.setCookie("ryioUname",account.email);
......
......@@ -3,7 +3,7 @@
.controller("registerCtrl",["$scope","UtilService","$http","$interval",registerCtrl]);
function registerCtrl($scope,UtilService,$http,$interval){
TrackingIO.init(UtilService.getTKAppkey());
io.init(UtilService.getTKAppkey());
//loading加载
$scope.showLoading = function(){
......@@ -126,7 +126,7 @@
else if(data.code == 250){
$scope.errorMessage = "邮件发送失败,请重新注册";
}else{
TrackingIO.register($scope.email);
io.register($scope.email);
UtilService.setCookie("regId",data.content.id,7);
UtilService.setCookie("regEmail",$scope.email,7);
......
......@@ -20,7 +20,7 @@
<script src="js/login/echarts-all.js"></script>
<script src="js/common/jquery.min.js"></script>
<script src="js/common/jquery.cookie.min.js"></script>
<script src="js/common/reyunio.min.js"></script>
<script src="js/common/reyunh5-io.min.js"></script>
<!-- endbuild -->
<!-- build:js scripts/lgui.js -->
<script src="js/common/judge.js"></script>
......
......@@ -18,7 +18,7 @@
<script src="js/common/echarts.min.js"></script>
<script src="js/common/jquery.min.js"></script>
<script src="js/common/jquery.cookie.min.js"></script>
<script src="js/common/reyunio.min.js"></script>
<script src="js/common/reyunh5-io.min.js"></script>
<!-- endbuild -->
<!-- build:js scripts/register.js -->
<script src="/js/common/judge.js"></script>
......
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 to comment