| | |
| | | @ResponseBody |
| | | @PostMapping("/base/appUser/loginSMSCode") |
| | | @ApiOperation(value = "短信验证码登录", tags = {"APP-登录注册"}) |
| | | |
| | | public ResultUtil<String> loginSMSCode(LoginSMSCodeVo loginSMSCodeVo) { |
| | | try { |
| | | return appUserService.loginSMSCode(loginSMSCodeVo); |
| | |
| | | VipPaymentVO res = new VipPaymentVO(); |
| | | res.setHeadImg(appUser.getHeadImg()); |
| | | res.setName(appUser.getName()); |
| | | res.setIsVip(appUser.getIsVip()); |
| | | res.setVipEndTime(appUser.getVipEndTime()); |
| | | if (appUser.getVipEndTime()==null){ |
| | | res.setIsVip(0); |
| | | }else if (appUser.getVipEndTime().before(new Date())){ |
| | | res.setIsVip(0); |
| | | }else{ |
| | | res.setIsVip(1); |
| | | } |
| | | appUserService.updateById(appUser); |
| | | List<Vip> vips = vipClient.listAll(); |
| | | res.setVipList(vips); |
| | | |
| | | return ResultUtil.success(res); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | // |
| | | // /** |
| | | // * 购买年度会员支付微信回调V3版本回调 |