|
@@ -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;
|
|
|
|
|
@@ -50,7 +52,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
|
|
|
};
|
|
|
getGameDetailApi(params).then((res) => {
|
|
|
const url =
|
|
|
- window.location.host !== "site-front.tiktokjakjkl.icu"
|
|
|
+ whiteUrls.indexOf(window.location.hostname) !== -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) {
|