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