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); }