Skip to content

Commit

Permalink
被批量请求报错信息导致磁盘沾满问题处理
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed Sep 13, 2022
1 parent c87081f commit 74cc5af
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.lili.common.enums.ResultCode;
import cn.lili.common.enums.ResultUtil;
import cn.lili.common.exception.ServiceException;
import cn.lili.common.vo.PageVO;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.permission.SettingKeys;
Expand Down Expand Up @@ -60,8 +58,9 @@ public String getCustomWords(String secretKey) {
}

JSONObject jsonObject = JSONUtil.parseObj(setting.getSettingValue());
//如果密钥不正确,返回空
if (!secretKey.equals(jsonObject.get("secretKey"))) {
throw new ServiceException(ResultCode.CUSTOM_WORDS_SECRET_KEY_ERROR);
return "";
}

String res = customWordsService.deploy();
Expand Down

0 comments on commit 74cc5af

Please sign in to comment.