Prechádzať zdrojové kódy

fix: 增加site-front.cx-330.top条件判断

Before 7 mesiacov pred
rodič
commit
2f82591bfb
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/components/Card/Card.tsx

+ 1 - 1
src/components/Card/Card.tsx

@@ -50,7 +50,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
         };
         getGameDetailApi(params).then((res) => {
             const url =
-                process.env.NEXT_PUBLIC_BASE_URL?.indexOf("84") === -1
+                window.location.host !== "site-front.cx-330.top"
                     ? `${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) {