forceauth
This commit is contained in:
parent
09ee90da2d
commit
1cc35b8e33
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user