提交 42d49c6b 编写于 作者: 刘兴

修改返回值为boolean

上级 d1ef6ebf
......@@ -167,7 +167,7 @@ public class FeeServiceImpl implements FeeService {
return result;
}
//支付宝支付
public Map<String,Object> payByAliPay(long out_trade_no,double total_amount,int feeId){
public boolean payByAliPay(long out_trade_no,double total_amount,int feeId){
Map<String, Object> result = new HashMap<>();
Fee fee = feedao.queryOneByFeeId(feeId);
System.out.println(fee);
......@@ -178,13 +178,9 @@ public class FeeServiceImpl implements FeeService {
fee.setDirect("缴费");
feedao.updateFee(fee);
enterDao.updateByEnterIdToMoneyTwo(money, enterId,out_trade_no);
result.put("code", 200);
result.put("message", "支付宝支付成功");
} else {
result.put("code", -1);
result.put("message", "此房间未找到或者不是待缴费状态请先退房试试");
return true;
}
return result;
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册