浏览代码

fix: 修改返现规则

ansoni 4 月之前
父节点
当前提交
093aa7e271

+ 1 - 1
messages/br.json

@@ -347,7 +347,7 @@
     "rulesThird": "Horário de solicitação do cashback: De segunda-feira da próxima semana 06:00 a sexta-feira 23:59, expirará se não for resgatado.",
     "rulesFourth": "0 número de Perdas de dinheiro real multiplicado pela % de reembolso é o reembolso/cashback da semana.",
     "rulesFifth": "Caso você não tenha apostado durante o período em que o cashback estava ativo ou se seus ganhos da última semana ou ganhos totais são maiores que suas perdas, você não receberá cashback.",
-    "rulesSixth": "Limite máximo de recompensa de cashback por pessoa por semana:RS 10000",
+    "rulesSixth": "Limite máximo de recompensa de cashback por pessoa por semana:RS {max}",
     "rulesSeventh": "0 valor do cashback pode ser sacar diretamente ou utilizado para continuar jogando"
   },
   "packetsPopup": {

+ 1 - 1
messages/en.json

@@ -347,7 +347,7 @@
     "rulesThird": "Cashback application time: From Monday next week 06:00 to Friday 23:59, expires if not rescued",
     "rulesFourth": "The number of real money losses multiplied by the % of reimbursement is the reimbursement/cashback of the week.",
     "rulesFifth": "If you have not bet during the period in which the cashback was active or if your earnings of the last week or total earnings are greater than your losses, you will not receive cashback.",
-    "rulesSixth": "Cashback maximum per person per week: R$ 10000",
+    "rulesSixth": "Cashback maximum per person per week: R$ {max}",
     "rulesSeventh": "Cashback value can be extracted directly or used to continue playing"
   },
   "packetsPopup": {

+ 18 - 0
src/app/[locale]/(navbar)/cashback/@cashbackInfo/page.tsx

@@ -117,6 +117,24 @@ const CashbackInfo = async () => {
             <Week cashbackInfo={cashbackInfo} />
 
             <CashbackTable cashbackInfo={cashbackInfo} />
+
+            <div className={"mt-[0.0694rem]"}>
+                <h1 className={"font-bold text-primary-color"}>{t("cashback.rules")}</h1>
+                <ul
+                    className={
+                        "list-decimal pl-[0.1389rem] text-[0.14rem] leading-[0.18rem]" +
+                        " text-[#fff]"
+                    }
+                >
+                    <li>{t("cashback.rulesFirst")} </li>
+                    <li>{t("cashback.rulesSecond")}</li>
+                    <li>{t("cashback.rulesThird")}</li>
+                    <li>{t("cashback.rulesFourth")}</li>
+                    <li>{t("cashback.rulesFifth")}</li>
+                    <li>{t("cashback.rulesSixth", { max: maxGrade?.cashback ?? 0 })}</li>
+                    <li>{t("cashback.rulesSeventh")}</li>
+                </ul>
+            </div>
         </>
     );
 };

+ 1 - 18
src/app/[locale]/(navbar)/cashback/page.tsx

@@ -2,24 +2,7 @@ import { getTranslations } from "next-intl/server";
 
 const page = async () => {
     const t = await getTranslations("cashback");
-    return (
-        <div className={"mt-[0.0694rem]"}>
-            <h1 className={"font-bold text-primary-color"}>{t("rules")}</h1>
-            <ul
-                className={
-                    "list-decimal pl-[0.1389rem] text-[0.14rem] leading-[0.18rem]" + " text-[#fff]"
-                }
-            >
-                <li>{t("rulesFirst")} </li>
-                <li>{t("rulesSecond")}</li>
-                <li>{t("rulesThird")}</li>
-                <li>{t("rulesFourth")}</li>
-                <li>{t("rulesFifth")}</li>
-                <li>{t("rulesSixth")}</li>
-                <li>{t("rulesSeventh")}</li>
-            </ul>
-        </div>
-    );
+    return <></>;
 };
 
 export default page;