| | |
| | | @MapperScan("com.dsh.account.mapper") |
| | | public class AccountApplication { |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(AccountApplication.class, args); |
| | | try { |
| | | SpringApplication.run(AccountApplication.class, args); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @Bean |
| | |
| | | * 课时详情-支付 |
| | | */ |
| | | @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 rechargePayment(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(); |
| | | } |
| | |
| | | |
| | | RechargeDetailsVo getAppUserRechargeRecord(String yearMonth, Integer recordId, Integer appUserId); |
| | | |
| | | ResultUtil rechargePayment(Integer userIdFormRedis, RechargePayRequest request); |
| | | ResultUtil rechargeCenPayment(Integer userIdFormRedis, RechargePayRequest request); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ResultUtil rechargePayment(Integer userIdFormRedis, RechargePayRequest request) { |
| | | public ResultUtil rechargeCenPayment(Integer userIdFormRedis, RechargePayRequest request) { |
| | | // TODO: 2023/7/10 充值支付 |
| | | switch (request.getPayType()){ |
| | | case 1: |