Commit 488faa89 authored by 赵啸非's avatar 赵啸非

添加应用白名单接口

parent d054c42e
Pipeline #2486 canceled with stages
......@@ -38,6 +38,7 @@ import com.mortals.xhx.module.matter.model.*;
import com.mortals.xhx.module.matter.service.MatterDatumPrintService;
import com.mortals.xhx.module.matter.service.MatterDatumService;
import com.mortals.xhx.module.matter.service.MatterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -46,6 +47,7 @@ import java.util.stream.Collectors;
@RestController
@RequestMapping("home")
@Slf4j
public class HomeController extends BaseJsonBodyController {
@Autowired
......@@ -189,11 +191,11 @@ public class HomeController extends BaseJsonBodyController {
int code = VALUE_RESULT_SUCCESS;
try {
Map<String, String> params = new HashMap<>();
params.put("siteid", queryPdu.getSiteId()+"");
params.put("siteid", queryPdu.getSiteId() + "");
params.put("title", queryPdu.getTitle());
params.put("type", queryPdu.getType()+"");
params.put("page", queryPdu.getPage()+"");
params.put("size", queryPdu.getSize()+"");
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 + " 【成功】");
......@@ -268,6 +270,7 @@ public class HomeController extends BaseJsonBodyController {
@PostMapping({"info"})
@UnAuth
public Rest<Object> homePageInfo(@RequestBody HomeQueryPdu homeQueryPdu) {
log.info("homePageInfo:{}", JSON.toJSONString(homeQueryPdu));
Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap();
......@@ -340,6 +343,7 @@ public class HomeController extends BaseJsonBodyController {
ret.setData(model);
ret.setDict(model.get("dict"));
ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString());
log.info("home resp:{}", JSON.toJSONString(ret));
return ret;
}
......
......@@ -45,3 +45,11 @@ cookie:
port: 111
token:
head: mortal
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 60000
......@@ -59,6 +59,12 @@
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
</dependency>
</dependencies>
<build>
......
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