Commit 48c9a321 by 111-PC\111

[+]aqara代码提交

1 parent 53c2e144
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<shiro.version>1.6.0</shiro.version> <shiro.version>1.6.0</shiro.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.glsx</groupId> <groupId>com.glsx</groupId>
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
<dependency> <dependency>
<groupId>com.lumi.opencloud</groupId> <groupId>com.lumi.opencloud</groupId>
<artifactId>opencloud-sdk</artifactId> <artifactId>opencloud-sdk</artifactId>
<version>1.1-SNAPSHOT</version> <version>1.1</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<artifactId>spring-boot-starter-log4j2</artifactId> <artifactId>spring-boot-starter-log4j2</artifactId>
...@@ -160,4 +161,5 @@ ...@@ -160,4 +161,5 @@
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file \ No newline at end of file
...@@ -64,7 +64,7 @@ public class AqaraDeviceService { ...@@ -64,7 +64,7 @@ public class AqaraDeviceService {
} }
ResponseMsg responseMsg = DeviceManager.bindKeyGet(new AiotConfig(clientId,null,token,null,domain), deviceBindGetRequest); ResponseMsg responseMsg = DeviceManager.bindKeyGet(new AiotConfig(clientId,null,token,null,domain), deviceBindGetRequest);
if (responseMsg != null && Constants.AQARA_RETURN_SUCCESS_CODE == responseMsg.getCode()) { if (responseMsg != null && Constants.AQARA_RETURN_SUCCESS_CODE == responseMsg.getCode()) {
return R.ok(JSONObject.toJSONString(responseMsg)); return R.ok(JSONObject.toJSONString(responseMsg.getResult()));
} }
return R.error(responseMsg.getMessage()); return R.error(responseMsg.getMessage());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!