This commit is contained in:
wangw 2024-12-05 17:02:25 +08:00
parent 2c07d98be9
commit 96c333fcc4
4 changed files with 13 additions and 15 deletions

View File

@ -37,13 +37,8 @@ public class AppApiMethodAspect {
String resultJson = new Gson().toJson(result);
//获取request
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();
MethodSignature signature = (MethodSignature) pjp.getSignature();
// String className = pjp.getTarget().getClass().getName();
String methodName = signature.getName();
log.info("\n {}\n>>>>>>{}\n>>>>>>Request: {}\n>>>>>>Response: {}"
, request.getRequestURL(), IPUtils.getIpAddr(request),
log.info("\n>>>>>> {} {}\n>>>>>> {}\n>>>>>> Request: {}\n>>>>>> Response: {}",
request.getMethod(), request.getRequestURL(), IPUtils.getIpAddr(request),
params,
resultJson
);

View File

@ -471,11 +471,4 @@ public class CashController {
}
@GetMapping(value = "/withdraw")
@ApiOperation("发起提现 余额 金钱")
public Result withdraw(Long userId,Double amount)
{
return cashOutService.withdraw(userId,amount);
}
}

View File

@ -35,12 +35,19 @@ public class AppCashController {
@Login
@GetMapping(value = "/cashMoney")
@ApiOperation("发起提现")
@ApiOperation("发起提现 余额 金豆")
public Result cashMoney(@RequestAttribute("userId") Long userId, Double money)
{
return cashOutService.cashMoney(userId,money);
}
@GetMapping(value = "/withdraw")
@ApiOperation("发起提现 余额 金钱")
public Result withdraw(Long userId,Double amount)
{
return cashOutService.withdraw(userId,amount);
}
@Login
@RequestMapping(value = "/selectUserRechargeByUserId", method = RequestMethod.GET)
@ApiOperation("查询某个用户充值信息列表")

View File

@ -405,6 +405,9 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
return Result.error("请不要输入小于0的数字,请输入正确的提现金额!");
}
UserEntity userInfo = userService.queryByUserId(userId);
if(StringUtils.isBlank(userInfo.getZhiFuBao()) || StringUtils.isBlank(userInfo.getZhiFuBaoName())){
return Result.error(9999,"请先绑定支付宝账号!");
}
//最低提现金额
// CommonInfo one = commonInfoService.findOne(112);
// if(one!=null && money<Double.parseDouble(one.getValue())){