Browse Source

支持链接消息

master
yashen 7 years ago
parent
commit
e967044d5b
1 changed files with 2 additions and 10 deletions
  1. +2
    -10
      B3WeChat/Rpcs/ClientRpc.cs

+ 2
- 10
B3WeChat/Rpcs/ClientRpc.cs View File

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


Loading…
Cancel
Save