|
@@ -306,7 +306,7 @@ namespace WingDeviceService.Service
|
|
|
|
|
|
if (result != null && result.Code != CustomerRpcCode.Ok)
|
|
|
{
|
|
|
- throw new RpcException(1002, "Permission validation error", "Permission validation error");
|
|
|
+ ThrowRpcException((int)result.Code, "Permission validation error");
|
|
|
}
|
|
|
return result.Token.ClientId;
|
|
|
}
|