| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil withdrawal(Double money, Integer uid, Integer type, Integer language) throws Exception { |
| | | public ResultUtil withdrawal(Double money, Integer uid, Integer type, String remark, Integer language) throws Exception { |
| | | if(money.compareTo(0D) <= 0){ |
| | | return ResultUtil.error(language == 1 ? "提现金额必须大于0" : language == 2 ? "The withdrawal amount must be greater than 0" : "Le montant du retrait doit être supérieur à 0"); |
| | | } |
| | |
| | | withdrawal.setUserId(uid); |
| | | withdrawal.setUserType(2); |
| | | withdrawal.setType(type); |
| | | withdrawal.setRemark(remark); |
| | | this.insert(withdrawal); |
| | | |
| | | if(type == 1){ |