update 同步ruoyi

This commit is contained in:
疯狂的狮子li
2022-08-08 10:35:08 +08:00
11 changed files with 228 additions and 23 deletions

View File

@@ -73,4 +73,12 @@ public class SysLogininforController extends BaseController {
return R.ok();
}
@SaCheckPermission("system:logininfor:unlock")
@Log(title = "账户解锁", businessType = BusinessType.OTHER)
@GetMapping("/unlock/{userName}")
public AjaxResult unlock(@PathVariable("userName") String userName) {
redisService.deleteObject(CacheConstants.PWD_ERR_CNT_KEY + userName);
return success();
}
}

View File

@@ -165,7 +165,7 @@ public class SysConfigServiceImpl implements ISysConfigService {
*/
@Override
public void clearConfigCache() {
Collection<String> keys = RedisUtils.keys(Constants.SYS_CONFIG_KEY + "*");
Collection<String> keys = RedisUtils.keys(CacheConstants.SYS_CONFIG_KEY + "*");
RedisUtils.deleteObject(keys);
}
@@ -201,6 +201,6 @@ public class SysConfigServiceImpl implements ISysConfigService {
* @return 缓存键key
*/
private String getCacheKey(String configKey) {
return Constants.SYS_CONFIG_KEY + configKey;
return CacheConstants.SYS_CONFIG_KEY + configKey;
}
}