public Model.MSendResult ValidateSend(Model.MSmsPlan smsPlan) { if (!SmsCenterApiSoapHeader.IsSafeCall) { ExceptionHandler("对不起,您没有权限调用此服务!"); } return(_sendMessage.ValidateSend(smsPlan)); }
public Model.MSendResult SendMessage(Model.MSmsPlan smsPlan) { if (!SmsCenterApiSoapHeader.IsSafeCall) { ExceptionHandler("对不起,您没有权限调用此服务!"); } var sysModel = new Model.MSendResult(); if (smsPlan == null) { sysModel.IsSucceed = false; sysModel.ErrorMessage = "没有构造发送短信实体"; return(sysModel); } smsPlan.Content = smsPlan.Content; smsPlan.SmsAccount.AccountId = smsPlan.SmsAccount.AccountId; smsPlan.SmsAccount.AppKey = smsPlan.SmsAccount.AppKey; smsPlan.SmsAccount.AppSecret = smsPlan.SmsAccount.AppSecret; return(_sendMessage.Send(smsPlan)); }