| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/useBenefit/voucherCenter") |
| | | @PostMapping("/api/useBenefit/voucherDetail") |
| | | @ApiOperation(value = "充值明细", tags = {"APP-使用福利"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | |
| | | } |
| | | |
| | | /** |
| | | * 课时详情-支付 |
| | | * 充值中心-支付 |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/api/startCource/payment") |
| | | @PostMapping("/api/useBenefit/payment") |
| | | @ApiOperation(value = "充值中心-支付", tags = {"APP-开始上课"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | }) |
| | | public ResultUtil continuationOperation(RechargePayRequest request){ |
| | | public ResultUtil rechargeCenPayment(RechargePayRequest request){ |
| | | try { |
| | | Integer userIdFormRedis = tokenUtil.getUserIdFormRedis(); |
| | | if(null == userIdFormRedis){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return rechargeRService.rechargePayment(userIdFormRedis,request); |
| | | return rechargeRService.rechargeCenPayment(userIdFormRedis,request); |
| | | }catch (Exception e){ |
| | | return ResultUtil.runErr(); |
| | | } |