Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
smartDevices-platform-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 48c9a321
authored
Apr 23, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]aqara代码提交
1 parent
53c2e144
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
pom.xml
src/main/java/cn/com/glsx/modules/service/AqaraDeviceService.java
pom.xml
View file @
48c9a32
...
@@ -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
src/main/java/cn/com/glsx/modules/service/AqaraDeviceService.java
View file @
48c9a32
...
@@ -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
());
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment