|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Bwp.MainSystem.BO; |
|
|
|
using Bwp.MainSystem; |
|
|
|
using Bwp.MainSystem.BO; |
|
|
|
using BWP.B3WeChat.BO; |
|
|
|
using BWP.B3WeChat.BO.NamedValueTemplate; |
|
|
|
using BWP.B3WeChat.Utils; |
|
|
|
@ -13,6 +14,7 @@ using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Web; |
|
|
|
using TSingSoft.WebPluginFramework; |
|
|
|
|
|
|
|
namespace BWP.B3WeChat.Rpcs |
|
|
|
@ -46,6 +48,21 @@ namespace BWP.B3WeChat.Rpcs |
|
|
|
SendMessageUtil.SendSystemMessage(CustomerUserContext.Current.GetOpenID(username), username, content); |
|
|
|
} |
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static void SendAuthLinkMessage(string username, string content, string serverUrl,string pathUrl) |
|
|
|
{ |
|
|
|
var userContext = CustomerUserContext.Current; |
|
|
|
|
|
|
|
var fullUrl = serverUrl + pathUrl; |
|
|
|
var loginUrl = string.Format("{0}OuterLogin.aspx?source=BWPScanLogin&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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static void SendFollowMessage(string username, string content, string businessNo) |
|
|
|
{ |
|
|
|
|