Commit 5158ac54 authored by 喻春霖's avatar 喻春霖

modify the get app version

parent 8f8c742f
......@@ -252,14 +252,15 @@ public class LogStatisticsController {
public MapMessage authApps() {
List<StatItem> result = new ArrayList<>();
StatItem item1 = new StatItem();
item1.setName("数字教材");
item1.setCode("asfsafdsf");
StatItem item2 = new StatItem();
item2.setName("阅览室");
item2.setCode("safsadfasd");
result.add(item1);
result.add(item2);
List<ClientItem> clients = oauthClient.getClients();
if (CollectionUtils.isNotEmpty(clients)){
clients.forEach(item -> {
StatItem statItem = new StatItem();
statItem.setCode(item.getClientId());
statItem.setName(statItem.getName());
result.add(statItem);
});
}
return MapMessage.successMessage().add("data", result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment