mirror of
https://gitee.com/zhijiantianya/yudao-cloud.git
synced 2026-10-06 07:22:58 +08:00
【修复】IoT 网关调用 biz 的设备注册 / 子设备注册 RPC URL 缺前缀,导致动态注册失败
This commit is contained in:
+2
-2
@@ -64,12 +64,12 @@ public class IotDeviceApiImpl implements IotDeviceCommonApi {
|
||||
|
||||
@Override
|
||||
public CommonResult<IotDeviceRegisterRespDTO> registerDevice(IotDeviceRegisterReqDTO reqDTO) {
|
||||
return doPost("/register", reqDTO, new ParameterizedTypeReference<>() { });
|
||||
return doPost("/rpc-api/iot/device/register", reqDTO, new ParameterizedTypeReference<>() { });
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult<List<IotSubDeviceRegisterRespDTO>> registerSubDevices(IotSubDeviceRegisterFullReqDTO reqDTO) {
|
||||
return doPost("/register-sub", reqDTO, new ParameterizedTypeReference<>() { });
|
||||
return doPost("/rpc-api/iot/device/register-sub", reqDTO, new ParameterizedTypeReference<>() { });
|
||||
}
|
||||
|
||||
private <T, R> CommonResult<R> doPost(String url, T body,
|
||||
|
||||
Reference in New Issue
Block a user