Commit 54f09aa0 authored by 赵啸非's avatar 赵啸非

添加应用白名单接口

parent edecf572
Pipeline #2482 canceled with stages
...@@ -67,8 +67,6 @@ ...@@ -67,8 +67,6 @@
<profiles.log.path>/mortals/app/logs</profiles.log.path> <profiles.log.path>/mortals/app/logs</profiles.log.path>
</properties> </properties>
</profile> </profile>
<profile> <profile>
<id>yibin</id> <id>yibin</id>
<properties> <properties>
......
...@@ -181,7 +181,6 @@ public class HomeController extends BaseJsonBodyController { ...@@ -181,7 +181,6 @@ public class HomeController extends BaseJsonBodyController {
@PostMapping({"notice/list"}) @PostMapping({"notice/list"})
@UnAuth @UnAuth
public String noteList(@RequestBody HomeQueryPdu queryPdu) { public String noteList(@RequestBody HomeQueryPdu queryPdu) {
String url = GlobalSysInfo.getParamValue(Constant.PARAMS_NOTICE_URL, "http://192.168.0.98:8090/api/"); String url = GlobalSysInfo.getParamValue(Constant.PARAMS_NOTICE_URL, "http://192.168.0.98:8090/api/");
UrlBuilder domain = UrlBuilder.of(url); UrlBuilder domain = UrlBuilder.of(url);
Rest<Object> ret = new Rest(); Rest<Object> ret = new Rest();
...@@ -190,11 +189,11 @@ public class HomeController extends BaseJsonBodyController { ...@@ -190,11 +189,11 @@ public class HomeController extends BaseJsonBodyController {
int code = VALUE_RESULT_SUCCESS; int code = VALUE_RESULT_SUCCESS;
try { try {
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("siteid", queryPdu.getSiteId().toString()); params.put("siteid", queryPdu.getSiteId()+"");
params.put("title", queryPdu.getTitle()); params.put("title", queryPdu.getTitle());
params.put("type", queryPdu.getType().toString()); params.put("type", queryPdu.getType()+"");
params.put("page", queryPdu.getPage().toString()); params.put("page", queryPdu.getPage()+"");
params.put("size", queryPdu.getSize().toString()); params.put("size", queryPdu.getSize()+"");
UrlBuilder urlBuilder = domain.addPath("news").addPath("newsList"); UrlBuilder urlBuilder = domain.addPath("news").addPath("newsList");
String response = HttpUtil.doGet(urlBuilder.toString(), params); String response = HttpUtil.doGet(urlBuilder.toString(), params);
this.recordSysLog(this.request, busiDesc + " 【成功】"); this.recordSysLog(this.request, busiDesc + " 【成功】");
...@@ -351,7 +350,7 @@ public class HomeController extends BaseJsonBodyController { ...@@ -351,7 +350,7 @@ public class HomeController extends BaseJsonBodyController {
@GetMapping({"app/list"}) @GetMapping({"app/list"})
@UnAuth @UnAuth
public String appList(Long siteId) { public String appList(Long siteId) {
String appWhiteStr = GlobalSysInfo.getParamValue(Constant.PARAMS_WHITE_APP_LIST, "中心简介,办事指南,意见建议,中心简介"); String appWhiteStr = GlobalSysInfo.getParamValue(Constant.PARAMS_WHITE_APP_LIST, "中心简介,办事指南,意见建议,通知公告");
Set<String> appWhiteSet = StrUtil.split(appWhiteStr, ",").stream().collect(Collectors.toSet()); Set<String> appWhiteSet = StrUtil.split(appWhiteStr, ",").stream().collect(Collectors.toSet());
Rest<List<AppPdu>> ret = new Rest(); Rest<List<AppPdu>> ret = new Rest();
List<AppPdu> collect = new ArrayList<>(); List<AppPdu> collect = new ArrayList<>();
......
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