public virtual void SendByCellphone(string cellphone, string message, out string errorMsg) { try { ExternalDomainBroker.SendSMS(cellphone, message, BizEntity.Common.SMSPriority.Normal); errorMsg = string.Empty; } catch { errorMsg = cellphone + "出现异常"; } }
public virtual void SendBySOSysNo(int soSysNo, string message, out string errorMsg) { try { string cellphone = ExternalDomainBroker.GetSOReceiverPhone(soSysNo); if (!string.IsNullOrEmpty(cellphone)) { ExternalDomainBroker.SendSMS(cellphone, message, BizEntity.Common.SMSPriority.Normal); } else { errorMsg = soSysNo + "不是有效的订单编号"; return; } errorMsg = string.Empty; } catch { errorMsg = soSysNo + "出现异常"; } }