Procházet zdrojové kódy

Merge branch 'dev' into feature-Before

Before před 7 měsíci
rodič
revize
fa99b5c778

+ 2 - 3
Dockerfile

@@ -3,9 +3,8 @@ FROM node:23.3.0-alpine AS base
 FROM base AS deps
 WORKDIR /app
 COPY package.json ./
-RUN npm config set registry https://mirrors.cloud.tencent.com/npm/ && \
-    npm cache clean --force &&  \
-    npm install pnpm -g && \
+RUN npm cache clean --force &&  \
+    npm install pnpm -g --registry=https://registry.npmmirror.com  && \
     pnpm i
 
 FROM base AS builder

+ 1 - 1
src/app/[locale]/(TabBar)/[[...share]]/@actionWidget/Service.tsx

@@ -207,7 +207,7 @@ const ServiceWidget: FC<Props> = (props) => {
                         target={"_blank"}
                     >
                         <img
-                            className={"h-[0.3889rem] w-[0.3889rem]"}
+                            className={"h-[0.3889rem] w-[0.3889rem] object-contain"}
                             src={defaultService.icon_url}
                         ></img>
                     </Link>

+ 4 - 5
src/components/Card/Card.tsx

@@ -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");
             }
         });
     };