| @ -0,0 +1,30 @@ | |||
| using BWP.B3WeChat.BO; | |||
| using BWP.B3WeChat.Utils; | |||
| using BWP.Web.Utils; | |||
| using Forks.EnterpriseServices.JsonRpc; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| namespace BWP.B3WeChat.Rpcs | |||
| { | |||
| [Rpc] | |||
| public static class C3Rpc | |||
| { | |||
| [Rpc] | |||
| public static void SendAppraiseLinkMessage(string serviceNo,string username,string first,string billNo,string remark,string url) | |||
| { | |||
| var openID = WebBLUtil.GetDmoProperty<CustomerUser, string>("OpenID", | |||
| new Tuple<string, object>("CustomerCode", serviceNo), | |||
| new Tuple<string, object>("CustomerUsername", username)); | |||
| if (string.IsNullOrEmpty(openID)) | |||
| { | |||
| throw new Exception(string.Format("该客户的用户{0}未关注公众号", username)); | |||
| } | |||
| SendMessageUtil.SendAppraiseLinkMessage(openID, first, billNo, remark, url); | |||
| } | |||
| } | |||
| } | |||