修复超粉提交微信提示余额不足的bug
This commit is contained in:
parent
650daaaa89
commit
0ee0b1baa0
|
@ -71,7 +71,11 @@ export default function AddWeChat({
|
||||||
});
|
});
|
||||||
return;
|
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("余额足够");
|
// console.log("余额足够");
|
||||||
if (type) {
|
if (type) {
|
||||||
if (!userWechat) {
|
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">
|
<div className="text-white text-sm border border-[#2c2b2f] rounded-xl p-2 my-1 w-full">
|
||||||
<Input
|
<Input
|
||||||
placeholder="填写您的微信,以便Ta主动联系您"
|
placeholder="填写您的微信,以便Ta主动联系您"
|
||||||
style={{"--font-size": "16px"}}
|
style={{ "--font-size": "16px" }}
|
||||||
onChange={(value) => setUserWechat(value)}
|
onChange={(value) => setUserWechat(value)}
|
||||||
value={userWechat}
|
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">
|
<div className="text-white border border-[#2c2b2f] rounded-xl p-2 my-1 w-full">
|
||||||
<TextArea
|
<TextArea
|
||||||
placeholder="如添加好友需填写验证信息,请将相应答案填写在此处"
|
placeholder="如添加好友需填写验证信息,请将相应答案填写在此处"
|
||||||
style={{"--font-size": "16px"}}
|
style={{ "--font-size": "16px" }}
|
||||||
onChange={(value) => setRemarks(value)}
|
onChange={(value) => setRemarks(value)}
|
||||||
value={remarks}
|
value={remarks}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue