From e967044d5bd45dfa3debecc762a58b40001264d8 Mon Sep 17 00:00:00 2001 From: yashen Date: Fri, 16 Mar 2018 17:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=93=BE=E6=8E=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3WeChat/Rpcs/ClientRpc.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/B3WeChat/Rpcs/ClientRpc.cs b/B3WeChat/Rpcs/ClientRpc.cs index b63d998..59c1aa4 100644 --- a/B3WeChat/Rpcs/ClientRpc.cs +++ b/B3WeChat/Rpcs/ClientRpc.cs @@ -50,17 +50,9 @@ namespace BWP.B3WeChat.Rpcs } [Rpc] - public static void SendAuthLinkMessage(string username, string content, string serverUrl,string pathUrl) + public static void SendLinkMessage(string username, string content, string url) { - var userContext = CustomerUserContext.Current; - - var fullUrl = serverUrl + pathUrl; - var loginUrl = string.Format("{0}OuterLogin.aspx?redirectUrl={1}", serverUrl, HttpUtility.UrlEncode(fullUrl)); - - var config = new MainSystemConfig(); - var linkUrl = config.InternetAccessAddress.Value + "B3WeChat/B3Auth.aspx?service=" + HttpUtility.UrlEncode(loginUrl) + "&customerCode=" + HttpUtility.UrlEncode(userContext.CustomerCode); - - SendMessageUtil.SendSystemMessage(CustomerUserContext.Current.GetOpenID(username), username, content, linkUrl); + SendMessageUtil.SendSystemMessage(CustomerUserContext.Current.GetOpenID(username), username, content,url); }