|
-`);let s=UE.HmacSHA256(i,this.PRIVATEKEY);return UE.enc.Base64.stringify(s)}_utc(){return Math.round(Date.now()/1e3)}_isNumber(t){return t!==null&&(typeof t=="number"&&!isNaN(t-0)||typeof t=="object"&&t.constructor===Number)}_isString(t){return typeof t=="string"}genSigWithUserbuf(t,n,r){let o=this._utc(),i={"TLS.ver":"2.0","TLS.identifier":t,"TLS.sdkappid":this.SDKAPPID,"TLS.time":o,"TLS.expire":n},s="";if(r!=null){let g=this.base64encode(r);i["TLS.userbuf"]=g,s=this._hmacsha256(t,o,n,g)}else s=this._hmacsha256(t,o,n,null);i["TLS.sig"]=s;let u=JSON.stringify(i),d=zA.deflateSync(this.newBuffer(u)).toString("base64"),f=this.escape(d);return console.log("ret="+f),f}validate(t){let n=this.decode(t),r=zA.inflateSync(n);console.log("validate ret="+r)}}const Obe=604800;function Rbe(e){const{SDKAppID:t,secretKey:n,userID:r}=e,i=new Lbe(t,n,Obe).genTestUserSig(r);return{SDKAppID:t,userSig:i}}const Nbe=RY({components:[sY,LY,kY,KK,pK,SY]}),Ig=MN.parse(location.search),c0=MN.parse(location.hash.split("?")[1]),Pbe=Ig.Authorization||c0.Authorization||"";sessionStorage.setItem("Authorization",Pbe);sessionStorage.setItem("platform",Ig.platform||c0.platform||"");console.log(!1,"false");const U3=Ig.appId||c0.appId||1400799837,xbe=Ig.secretKey||c0.secretKey||"37bfb220843e25e78768cadd0dc06756e460e55bd631354930a4149565a1d0c9",jA=Ig.userID,iw=OI.init({SDKAppID:U3});iw.use(H_e);iw.login({userID:jA,userSig:Rbe({SDKAppID:U3,secretKey:xbe,userID:jA}).userSig});k7(hF).use(Nbe).use(mF).use(iw).mount("#app");
|
|
|
|
|
|
+`);let s=UE.HmacSHA256(i,this.PRIVATEKEY);return UE.enc.Base64.stringify(s)}_utc(){return Math.round(Date.now()/1e3)}_isNumber(t){return t!==null&&(typeof t=="number"&&!isNaN(t-0)||typeof t=="object"&&t.constructor===Number)}_isString(t){return typeof t=="string"}genSigWithUserbuf(t,n,r){let o=this._utc(),i={"TLS.ver":"2.0","TLS.identifier":t,"TLS.sdkappid":this.SDKAPPID,"TLS.time":o,"TLS.expire":n},s="";if(r!=null){let g=this.base64encode(r);i["TLS.userbuf"]=g,s=this._hmacsha256(t,o,n,g)}else s=this._hmacsha256(t,o,n,null);i["TLS.sig"]=s;let u=JSON.stringify(i),d=zA.deflateSync(this.newBuffer(u)).toString("base64"),f=this.escape(d);return console.log("ret="+f),f}validate(t){let n=this.decode(t),r=zA.inflateSync(n);console.log("validate ret="+r)}}const Obe=604800;function Rbe(e){const{SDKAppID:t,secretKey:n,userID:r}=e,i=new Lbe(t,n,Obe).genTestUserSig(r);return{SDKAppID:t,userSig:i}}const Nbe=RY({components:[sY,LY,kY,KK,pK,SY]}),Ig=MN.parse(location.search),c0=MN.parse(location.hash.split("?")[1]),Pbe=Ig.Authorization||c0.Authorization||"";sessionStorage.setItem("Authorization",Pbe);sessionStorage.setItem("platform",Ig.platform||c0.platform||"");console.log(!1,"false");const U3=Ig.appId||c0.appId||1400805079,xbe=Ig.secretKey||c0.secretKey||"c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30",jA=Ig.userID,iw=OI.init({SDKAppID:U3});iw.use(H_e);iw.login({userID:jA,userSig:Rbe({SDKAppID:U3,secretKey:xbe,userID:jA}).userSig});k7(hF).use(Nbe).use(mF).use(iw).mount("#app");
|