فهرست منبع

提现成功提示

zcj03 7 ماه پیش
والد
کامیت
1bab3b8ac6
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

+ 2 - 4
src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

@@ -118,16 +118,14 @@ const WalletCard = (props: { userMoney: Wallet }) => {
         getUserTransferApi({ wallet_type })
         .then((res) => {
             if (res.code === 200) {
-                Toast.show("领取成功!")
+                Toast.show(t("code.200"));
                 setTimeout(() => {
                     tipsRef.current?.onClose();
                 }, 1000)
-                return;
             }
-            Toast.show("领取失败!");
         })
         .catch((error) => {
-            Toast.show("领取失败!");
+            Toast.show(t(`code.${error.data.code}`));
         });
     };