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

添加应用白名单接口

parent edecf572
Pipeline #2482 canceled with stages
......@@ -67,8 +67,6 @@
<profiles.log.path>/mortals/app/logs</profiles.log.path>
</properties>
</profile>
<profile>
<id>yibin</id>
<properties>
......
......@@ -181,7 +181,6 @@ public class HomeController extends BaseJsonBodyController {
@PostMapping({"notice/list"})
@UnAuth
public String noteList(@RequestBody HomeQueryPdu queryPdu) {
String url = GlobalSysInfo.getParamValue(Constant.PARAMS_NOTICE_URL, "http://192.168.0.98:8090/api/");
UrlBuilder domain = UrlBuilder.of(url);
Rest<Object> ret = new Rest();
......@@ -190,11 +189,11 @@ public class HomeController extends BaseJsonBodyController {
int code = VALUE_RESULT_SUCCESS;
try {
Map<String, String> params = new HashMap<>();
params.put("siteid", queryPdu.getSiteId().toString());
params.put("siteid", queryPdu.getSiteId()+"");
params.put("title", queryPdu.getTitle());
params.put("type", queryPdu.getType().toString());
params.put("page", queryPdu.getPage().toString());
params.put("size", queryPdu.getSize().toString());
params.put("type", queryPdu.getType()+"");
params.put("page", queryPdu.getPage()+"");
params.put("size", queryPdu.getSize()+"");
UrlBuilder urlBuilder = domain.addPath("news").addPath("newsList");
String response = HttpUtil.doGet(urlBuilder.toString(), params);
this.recordSysLog(this.request, busiDesc + " 【成功】");
......@@ -351,7 +350,7 @@ public class HomeController extends BaseJsonBodyController {
@GetMapping({"app/list"})
@UnAuth
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());
Rest<List<AppPdu>> ret = new Rest();
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