# update 权限相关
This commit is contained in:
@@ -220,7 +220,7 @@ public class TransferDeviceService {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
public synchronized boolean switchDevice(DeviceBindDTO bindDTO, LoginUser user) {
|
||||
public synchronized boolean switchDevice(DeviceBindDTO bindDTO) {
|
||||
try {
|
||||
String slaveId = bindDTO.getDeviceId();
|
||||
// String platform = bindDTO.getPlatform();
|
||||
@@ -270,9 +270,9 @@ public class TransferDeviceService {
|
||||
}
|
||||
|
||||
|
||||
public DeviceControlDTO remoteControl(DeviceBindDTO bindDTO, LoginUser user) {
|
||||
public DeviceControlDTO remoteControl(DeviceBindDTO bindDTO) {
|
||||
try {
|
||||
String token = user.getToken();
|
||||
String token = bindDTO.getToken();
|
||||
String masterToken = sessionManager.getMaster(bindDTO.getDeviceId());
|
||||
DeviceControlDTO dto = new DeviceControlDTO();
|
||||
if (!StringUtils.isEmpty(token) && token.equals(masterToken)) {
|
||||
|
||||
Reference in New Issue
Block a user