Commit 4e36080c authored by zhouleilei's avatar zhouleilei

海信-适配系统 步进控制优化

parent 030d337e
...@@ -40,25 +40,25 @@ ...@@ -40,25 +40,25 @@
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId> <artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>com.wanji</groupId>--> <groupId>com.wanji</groupId>
<!-- <artifactId>identity-client-starter</artifactId>--> <artifactId>identity-client-starter</artifactId>
<!-- <version>1.2</version>--> <version>1.2</version>
<!-- <exclusions>--> <exclusions>
<!-- <exclusion>--> <exclusion>
<!-- <artifactId>springfox-spring-web</artifactId>--> <artifactId>springfox-spring-web</artifactId>
<!-- <groupId>io.springfox</groupId>--> <groupId>io.springfox</groupId>
<!-- </exclusion>--> </exclusion>
<!-- <exclusion>--> <exclusion>
<!-- <artifactId>swagger-annotations</artifactId>--> <artifactId>swagger-annotations</artifactId>
<!-- <groupId>io.swagger</groupId>--> <groupId>io.swagger</groupId>
<!-- </exclusion>--> </exclusion>
<!-- <exclusion>--> <exclusion>
<!-- <artifactId>springfox-core</artifactId>--> <artifactId>springfox-core</artifactId>
<!-- <groupId>io.springfox</groupId>--> <groupId>io.springfox</groupId>
<!-- </exclusion>--> </exclusion>
<!-- </exclusions>--> </exclusions>
<!-- </dependency>--> </dependency>
<!-- 鉴权包 end --> <!-- 鉴权包 end -->
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
......
...@@ -5,7 +5,7 @@ spring: ...@@ -5,7 +5,7 @@ spring:
cloud: cloud:
nacos: nacos:
config: config:
server-addr: 173.17.0.1:8848 server-addr: 37.12.182.29:8848
file-extension: yaml file-extension: yaml
group: signal group: signal
namespace: signal namespace: signal
......
spring: spring:
profiles: profiles:
active: dev active: docker
\ No newline at end of file \ No newline at end of file
utc.service.url=http://173.17.0.1:32000/utc utc.service.url=http://192.168.150.1:32000/utc
utc.dt.service.url=http://173.17.0.1:39002/utc-dt utc.dt.service.url=http://173.17.0.1:39002/utc-dt
utc.hisense.service.url=http://192.168.150.1:39003/utc-hisense utc.hisense.service.url=http://192.168.150.1:39003/utc-hisense
control.url=http://173.17.0.1:32001/web control.url=http://173.17.0.1:32001/web
...@@ -77,6 +77,8 @@ public class ControlCommandServiceImpl implements ControlCommandService { ...@@ -77,6 +77,8 @@ public class ControlCommandServiceImpl implements ControlCommandService {
JsonViewObject jsonViewObject = JsonViewObject.newInstance(); JsonViewObject jsonViewObject = JsonViewObject.newInstance();
//给海信发送http请求 //给海信发送http请求
for (int i = 0; i < stepNum; i++) { for (int i = 0; i < stepNum; i++) {
//步进需要下发两次命令
OkHttpClientUtil.xmlPost(hisenseUrl, document.asXML());
String post = OkHttpClientUtil.xmlPost(hisenseUrl, document.asXML()); String post = OkHttpClientUtil.xmlPost(hisenseUrl, document.asXML());
if (StringUtils.isNotBlank(post)) { if (StringUtils.isNotBlank(post)) {
Document postResult = DocumentHelper.parseText(post); Document postResult = DocumentHelper.parseText(post);
......
spring: spring:
profiles: profiles:
active: dev active: docker
\ No newline at end of file \ No newline at end of file
spring: spring:
profiles: profiles:
active: dev active: docker
\ No newline at end of file \ No newline at end of file
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