修复appList查询报错问题
parent
8637771dca
commit
8130f039cc
|
@ -19,6 +19,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -154,8 +155,8 @@ public class IndexServiceImpl implements IndexService {
|
|||
log.info("allAppList:{}", JSON.toJSONString(allAppList));
|
||||
return new GeneralResult(true, allAppList, "查询成功");
|
||||
} catch (Exception e) {
|
||||
log.info("查询失败", e);
|
||||
return new GeneralResult(false, "查询失败");
|
||||
log.error("查询失败", e);
|
||||
return new GeneralResult(true,new ArrayList<>(),"查询失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue