|
@@ -14,6 +14,8 @@ export interface CardProps {
|
|
|
render?: (value: GameListRep) => ReactNode;
|
|
|
groupType?: Category["bet_type"];
|
|
|
}
|
|
|
+
|
|
|
+const whiteUrls = ["site-front.tiktokjakjkl.icu", "192.168.0.84"];
|
|
|
const Card: FC<PropsWithChildren<CardProps>> = (props) => {
|
|
|
const { render, item, groupType } = props;
|
|
|
|
|
@@ -49,14 +51,11 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
|
|
|
mode: groupType!,
|
|
|
};
|
|
|
getGameDetailApi(params).then((res) => {
|
|
|
- const url =
|
|
|
- process.env.NEXT_PUBLIC_BASE_URL?.indexOf("84") === -1
|
|
|
- ? `${res.data?.game_url}&brand=${brandRef.current}`
|
|
|
- : `${res.data?.game_url}&brand=${brandRef.current}&gameListIp=http://192.168.0.176:8000&gameResIp=http://192.168.0.2:8888&resServerIp=http://192.168.0.176:12580`;
|
|
|
if (res.data && res.data.game_url) {
|
|
|
+ const url = `${res.data?.game_url}&brand=${brandRef.current}`;
|
|
|
window.open(url);
|
|
|
} else {
|
|
|
- Toast.show("数据错误");
|
|
|
+ Toast.show("data Error");
|
|
|
}
|
|
|
});
|
|
|
};
|