fix: 微信小程序接口对接,测试问题修复。
This commit is contained in:
@@ -132,6 +132,13 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("success", response.getSuccess());
|
||||
result.put("data", response.getData());
|
||||
result.put("errorMessage", response.getErrorMessage());
|
||||
result.put("code", response.getCode());
|
||||
|
||||
if (!response.getSuccess()) {
|
||||
log.error("设置设备属性失败,Code: {}, ErrorMessage: {}", response.getCode(), response.getErrorMessage());
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user