| | |
| | | @NotNull(message = "手机号为空") @RequestParam String mobile, |
| | | @NotNull(message = "验证码为空") @RequestParam String code, |
| | | @RequestHeader String uuid) { |
| | | if (smsUtil.verifyCode(mobile, VerificationEnums.BIND_MOBILE, uuid, code)) { |
| | | // if (smsUtil.verifyCode(mobile, VerificationEnums.BIND_MOBILE, uuid, code)) { |
| | | Member member = memberService.findByUsername(username); |
| | | Member memberByMobile = memberService.findByMobile(mobile); |
| | | if (member == null) { |
| | |
| | | throw new ServiceException(ResultCode.USER_MOBILE_REPEATABLE_ERROR); |
| | | } |
| | | return ResultUtil.data(memberService.changeMobile(member.getId(), mobile)); |
| | | } else { |
| | | throw new ServiceException(ResultCode.VERIFICATION_SMS_CHECKED_ERROR); |
| | | } |
| | | // } else { |
| | | // throw new ServiceException(ResultCode.VERIFICATION_SMS_CHECKED_ERROR); |
| | | // } |
| | | } |
| | | |
| | | @ApiOperation(value = "注册用户") |
| | |
| | | private Integer goodsSort; |
| | | |
| | | @ApiModelProperty(value ="表示虚拟商品类型 现有类型:COUPON优惠劵") |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String virtualGoodsType; |
| | | |
| | | public Goods() { |
| | |
| | | private Date paymentTime; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "下单开始时间") |
| | | private Date startDate; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "下单结束时间") |
| | | private Date endDate; |
| | | |