| @@ -75,28 +75,5 @@ public class WxMerchantBUserController extends BaseController | |||||
| boolean has=wxMerchantBUserService.hasphone(phone); | boolean has=wxMerchantBUserService.hasphone(phone); | ||||
| return new ResultData(Result.SUCCESS,"查询成功",has); | return new ResultData(Result.SUCCESS,"查询成功",has); | ||||
| } | } | ||||
| @ApiOperation("修改密码") | |||||
| @PostMapping("/updatepwd") | |||||
| public ResultData updatepwd(@RequestBody Map<String,String> params) { | |||||
| // String phone,String code,String pwd | |||||
| String phone=params.get("phone"); | |||||
| String code=params.get("code"); | |||||
| String pwd=params.get("pwd"); | |||||
| boolean blank = StringUtils.isBlank(phone); | |||||
| if(blank){ | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"手机号不能为空"); | |||||
| } | |||||
| blank = StringUtils.isBlank(code); | |||||
| if(blank){ | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"验证码不能为空"); | |||||
| } | |||||
| blank = StringUtils.isBlank(pwd); | |||||
| if(blank){ | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"密码不能为空"); | |||||
| } | |||||
| return wxMerchantBUserService.updatepwd(phone,code,pwd); | |||||
| } | |||||
| } | } | ||||