提现实名认证
This commit is contained in:
parent
d0decccb22
commit
1bbe60f413
|
|
@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
|
|||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.IdcardUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.account.entity.ShopUser;
|
||||
|
|
@ -659,6 +660,10 @@ public class MkDistributionUserServiceImpl extends ServiceImpl<MkDistributionUse
|
|||
throw new CzgException("可提现金额不足");
|
||||
}
|
||||
|
||||
if (StrUtil.isBlank(userInfo.getIdCard())) {
|
||||
throw new CzgException("请先实名认证");
|
||||
}
|
||||
|
||||
BigDecimal fee = withdrawFlowDTO.getAmount().multiply(BigDecimal.valueOf(0.08));
|
||||
BigDecimal finalAmount = withdrawFlowDTO.getAmount().subtract(fee);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue