From 914e1800f4a6b5810f4c4cc7f5dae5662e7cb7f5 Mon Sep 17 00:00:00 2001 From: yashen Date: Thu, 1 Dec 2016 14:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=94=A8=E6=88=B7=E5=90=8D=E6=98=AF=E5=90=A6=E5=9C=A8?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=B3=BB=E7=BB=9F=E4=B8=AD=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3WeChat/Rpcs/ApproveMessageRpc.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/B3WeChat/Rpcs/ApproveMessageRpc.cs b/B3WeChat/Rpcs/ApproveMessageRpc.cs index 5b9d92e..d361d78 100644 --- a/B3WeChat/Rpcs/ApproveMessageRpc.cs +++ b/B3WeChat/Rpcs/ApproveMessageRpc.cs @@ -24,6 +24,14 @@ namespace BWP.B3WeChat.Rpcs { static IApproveMessageBL bl = BIFactory.Create(); + + [Rpc] + public static bool UserRegistered(string username) + { + return !string.IsNullOrEmpty(CustomerUserContext.Current.GetOpenID(username)); + } + + [Rpc] public static void Insert(ApproveMessage message) {