forceauth

This commit is contained in:
tcubic 2022-08-01 17:16:19 +08:00
parent 09ee90da2d
commit 1cc35b8e33

View File

@ -180,7 +180,7 @@ const btn = () => {
//
const drawBtn = ()=>{
console.log("抽奖:");
console.log("授权:",getAuthorize(1));
// console.log("",getAuthorize(1));
// let href = window.location.href;
// let h_idx = window.location.href.indexOf("#");
// let out_href = href.slice(0, h_idx);
@ -193,6 +193,16 @@ const drawBtn = ()=>{
// console.log("",res);
// })
if (h5plugin.getQueryString("forceauth")) {
// H5P.getSetCookie('authState',1,{expires:0.5})
console.log('yes-forceauth');
getAuthorize(0);
} else {
// H5P.getSetCookie('authState',1,{expires:0.5})
console.log('no-forceauth');
getAuthorize(1);
}
}