nili 6 months ago
parent
commit
0d9ed2562d
  1. 2
      game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

2
game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

@ -144,7 +144,7 @@ public class UserService {
Assert.isTrue(cent >= 10, "至少提0.1元"); Assert.isTrue(cent >= 10, "至少提0.1元");
MatrixUser u = userMapper.selectById(uid); MatrixUser u = userMapper.selectById(uid);
Assert.isTrue(u != null, "非法请求"); Assert.isTrue(u != null, "非法请求");
Assert.isTrue(u.getMoney() + cent <= u.getIncome(), "余额不足"); Assert.isTrue((u.getMoney() + cent) * 1000L <= u.getIncome(), "余额不足");
String aliPayAccount = u.getAliPayAccount(); String aliPayAccount = u.getAliPayAccount();
Assert.isTrue(StringUtils.hasText(aliPayAccount), "请先绑定支付宝账号"); Assert.isTrue(StringUtils.hasText(aliPayAccount), "请先绑定支付宝账号");
Assert.isTrue(StringUtils.hasText(u.getName()), "请先填写支付宝实名姓名"); Assert.isTrue(StringUtils.hasText(u.getName()), "请先填写支付宝实名姓名");

Loading…
Cancel
Save