|
@@ -47,11 +47,8 @@ const useGame = () => {
|
|
|
const game_url = res.data.game_url;
|
|
|
|
|
|
// 获取游戏的品牌
|
|
|
- const categoryName:any = game?.category_name;
|
|
|
const gameId= game?.game_id || '';
|
|
|
|
|
|
- console.log('category_name222',gameId,/^1\d{5}$/.test(gameId))
|
|
|
-
|
|
|
// 然后是文档对象
|
|
|
if (game_url.indexOf("!doctype") !== -1) {
|
|
|
sessionStorage.setItem("game_url", res.data.game_url);
|
|
@@ -63,7 +60,6 @@ const useGame = () => {
|
|
|
|
|
|
// 如果是pp游戏,则当前窗口打开新的地址,不需要加return_url
|
|
|
// gid 如果开头是1的6位数的数字,则认为是pp游戏
|
|
|
- // if(categoryName?.toLowerCase() === 'pp'){
|
|
|
let isPP = /^1\d{5}$/.test(gameId)
|
|
|
if(!!isPP){
|
|
|
// const ppUrl = `${encodeURI(res.data.game_url)}&category_name=${game.provider}`;
|