Commit 730b6d0f by wnb0128

车家智能同步绿米屏蔽--think.wang

1 parent 8f594ca0
...@@ -112,7 +112,7 @@ public class UserRelationController { ...@@ -112,7 +112,7 @@ public class UserRelationController {
request.setCreateTime(new Date()); request.setCreateTime(new Date());
Long userId = userRelationService.insertSelective(request); Long userId = userRelationService.insertSelective(request);
if(userId > 0L){ if(userId > 0L){
userRelationService.syncAqaraUser(request.getPhone(), userId); // userRelationService.syncAqaraUser(request.getPhone(), userId);
String tuYaId = userRelationService.syncTuYaUser(request.getPhone(), password, userId); String tuYaId = userRelationService.syncTuYaUser(request.getPhone(), password, userId);
return R.ok().data(tuYaId); return R.ok().data(tuYaId);
} }
...@@ -128,7 +128,7 @@ public class UserRelationController { ...@@ -128,7 +128,7 @@ public class UserRelationController {
List<SmartUserChannel> list = user.getChannelList(); List<SmartUserChannel> list = user.getChannelList();
String tuYaId; String tuYaId;
if(CollectionUtils.isEmpty(list)){ if(CollectionUtils.isEmpty(list)){
userRelationService.syncAqaraUser(user.getPhone(), user.getId()); // userRelationService.syncAqaraUser(user.getPhone(), user.getId());
tuYaId = userRelationService tuYaId = userRelationService
.syncTuYaUser(user.getPhone(), user.getPassword(), user.getId()); .syncTuYaUser(user.getPhone(), user.getPassword(), user.getId());
return tuYaId; return tuYaId;
...@@ -140,9 +140,9 @@ public class UserRelationController { ...@@ -140,9 +140,9 @@ public class UserRelationController {
tuYaId = userRelationService tuYaId = userRelationService
.syncTuYaUser(user.getPhone(), user.getPassword(), user.getId()); .syncTuYaUser(user.getPhone(), user.getPassword(), user.getId());
} }
if(map.get(Constants.USER_CHANNEL_AQARA) == null){ // if(map.get(Constants.USER_CHANNEL_AQARA) == null){
userRelationService.syncAqaraUser(user.getPhone(), user.getId()); // userRelationService.syncAqaraUser(user.getPhone(), user.getId());
} // }
} }
return tuYaId; return tuYaId;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!