From 699ce693c87dd3d79f0baf9eec31e754b96da43e Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Tue, 27 Mar 2018 23:02:36 +0800 Subject: [PATCH] . --- B3ClientService/Rpcs/UserInfoRpc.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/B3ClientService/Rpcs/UserInfoRpc.cs b/B3ClientService/Rpcs/UserInfoRpc.cs index 0dc58a2..b8ea354 100644 --- a/B3ClientService/Rpcs/UserInfoRpc.cs +++ b/B3ClientService/Rpcs/UserInfoRpc.cs @@ -38,5 +38,11 @@ namespace BWP.B3ClientService.Rpcs { return BLContext.Current.User.IsInRole("B3ClientService." + roleName); } + + [Rpc] + public static long GetUserID() + { + return BLContext.User.ID; + } } }