diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java index 8aa37cd..72ed210 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java @@ -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<>(),"查询失败"); } }