处理无效异常

This commit is contained in:
WenG 2020-11-13 23:00:36 +08:00
parent 4a3e1b1602
commit 6bf5ca6505
2 changed files with 2 additions and 2 deletions

View File

@ -359,6 +359,6 @@ public interface IUserService {
* @throws AccessTokenException
* @throws SearchException
*/
List<UserResourceBO> listResourceByKeywords(String keywords) throws AccessTokenException, SearchException, UnsupportedEncodingException;
List<UserResourceBO> listResourceByKeywords(String keywords) throws AccessTokenException, SearchException;
}

View File

@ -415,7 +415,7 @@ public class UserServiceImpl extends AbstractService implements IUserService {
@Override
public List<UserResourceBO> listResourceByKeywords(String keywords) throws AccessTokenException, SearchException {
if(StringUtils.isBlank(keywords)) {
if (StringUtils.isBlank(keywords)) {
return new ArrayList<>();
}
Map<String, Object> params = getHashMap(2);