Commit 730b6d0f by wnb0128

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

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