| | |
| | | @ApiOperation(value = "更新") |
| | | @PostMapping("update") |
| | | public Result<?> update(@RequestBody @Valid CmsModel model) { |
| | | model.setLoginSafeword(passwordManager.decryptPassword(model.getLoginSafeword())); |
| | | /*model.setLoginSafeword(passwordManager.decryptPassword(model.getLoginSafeword())); |
| | | SysUser sysUser = sysUserService.getSysUserById(SecurityUtils.getSysUser().getUserId()); |
| | | if (!passwordEncoder.matches(model.getLoginSafeword(), sysUser.getSafePassword())) { |
| | | throw new YamiShopBindException("资金密码不正确!"); |
| | | } |
| | | }*/ |
| | | Cms cms = cmsService.getById(model.getId()); |
| | | if (cms == null) { |
| | | throw new YamiShopBindException("参数错误!"); |