From 0ee0b1baa05e8e81709fb106f89254eaad9710e1 Mon Sep 17 00:00:00 2001 From: yezian Date: Sun, 11 Aug 2024 10:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B6=85=E7=B2=89=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=BE=AE=E4=BF=A1=E6=8F=90=E7=A4=BA=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AddWeChat/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/AddWeChat/index.js b/components/AddWeChat/index.js index 1b5c4a1..1e711d8 100644 --- a/components/AddWeChat/index.js +++ b/components/AddWeChat/index.js @@ -71,7 +71,11 @@ export default function AddWeChat({ }); return; } - if (userResponse?.data.account?.gold_num >= price) { + if ( + userResponse?.data.account?.gold_num >= price || + (streamerDetailData?.is_unlock_wechat === 1 && + streamerDetailData?.wechat_order_status === 2) + ) { // console.log("余额足够"); if (type) { if (!userWechat) { @@ -293,7 +297,7 @@ export default function AddWeChat({
setUserWechat(value)} value={userWechat} /> @@ -304,7 +308,7 @@ export default function AddWeChat({