修复超粉提交微信提示余额不足的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) {