Browse Source

错误码1002

Jeremy 2 years ago
parent
commit
03b4ce610f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Service/DeviceService.cs

+ 1 - 1
Service/DeviceService.cs

@@ -306,7 +306,7 @@ namespace WingDeviceService.Service
             //Check 权限
             if (result != null && result.Code != CustomerRpcCode.Ok)
             {
-                throw new RpcException(1002, "Permission validation error", "Permission validation error"); //TODO refacor  1002 ? not clear
+                ThrowRpcException((int)result.Code, "Permission validation error");
             }
             return result.Token.ClientId; //return User code 
         }