| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 折扣课包支付 |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/api/useBenefit/paymentOfDiscountCoursePack") |
| | | @ApiOperation(value = "本周福利-折扣课包支付", tags = {"APP-使用福利"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(name = "coursePackageDiscountId",value = "限时折扣配置id/赠送课时配置id",dataType = "int"), |
| | | @ApiImplicitParam(name = "lon",value = "经度",dataType = "String"), |
| | | @ApiImplicitParam(name = "lat",value = "纬度",dataType = "String"), |
| | | }) |
| | | public ResultUtil paymentWeeksFreeCourse(Integer coursePackageDiscountId){ |
| | | try { |
| | | Integer appuserId = tokenUtil.getUserIdFormRedis(); |
| | | if(null == appuserId){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return tcpdService.paymentDiscountCoursePack(coursePackageDiscountId,appuserId); |
| | | }catch (Exception e){ |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | } |