var appid='B183124A36D342E5BC8F609FFC17B77B';
var vn='英雄群侠传';
var vc='7.6.6';
var TDBaseUrl='https://jic.talkingdata.com/app/h5/v1/websdk';
var TDRequestUrl='https://h5.udrig.com/app/v1';
function createScriptTd(url) {
var _head=document.getElementsByTagName('head')[0];
var _script=document.createElement('script');
_script.type='text/javascript';
_script.src=url;
_head.appendChild(_script)
};
if(params!=undefined) {
var isJson=function(obj){var isjson=typeof(obj)=="object"&&Object.prototype.toString.call(obj).toLowerCase()=="[object object]"&&!obj.length;return isjson
};
if(isJson(params)) {
opts["params"]=params
}
else {
opts["params"]={params: ""
}}}
var eventName="__TD_td-init-event";var ev=localStorage[eventName];if(ev) {
var ca=JSON.parse(ev);ca.push(opts);localStorage.setItem(eventName,JSON.stringify(ca));return
};