修复超粉提交微信提示余额不足的bug

This commit is contained in:
yezian 2024-08-11 10:33:46 +08:00
parent 650daaaa89
commit 0ee0b1baa0
1 changed files with 7 additions and 3 deletions

View File

@ -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({
<div className="text-white text-sm border border-[#2c2b2f] rounded-xl p-2 my-1 w-full">
<Input
placeholder="填写您的微信以便Ta主动联系您"
style={{"--font-size": "16px"}}
style={{ "--font-size": "16px" }}
onChange={(value) => setUserWechat(value)}
value={userWechat}
/>
@ -304,7 +308,7 @@ export default function AddWeChat({
<div className="text-white border border-[#2c2b2f] rounded-xl p-2 my-1 w-full">
<TextArea
placeholder="如添加好友需填写验证信息,请将相应答案填写在此处"
style={{"--font-size": "16px"}}
style={{ "--font-size": "16px" }}
onChange={(value) => setRemarks(value)}
value={remarks}
/>