mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 15:43:27 +08:00
优化阿里云短信发送功能。
This commit is contained in:
@@ -90,16 +90,14 @@ namespace CoreCms.Net.Services
|
||||
mobile = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShopMobile);
|
||||
}
|
||||
//发货时,短信通知用发货人的
|
||||
if (code == GlobalEnumVars.PlatformMessageTypes.DeliveryNotice.ToString())
|
||||
if (code == GlobalEnumVars.PlatformMessageTypes.DeliveryNotice.ToString() && parameters.ContainsKey("shipMobile"))
|
||||
{
|
||||
if (parameters.ContainsKey("shipMobile"))
|
||||
{
|
||||
mobile = parameters["shipMobile"].ObjectToString();
|
||||
}
|
||||
mobile = parameters["shipMobile"].ObjectToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(mobile))
|
||||
{
|
||||
await smsServices.Send(mobile, code, parameters);
|
||||
var smsOut = await smsServices.Send(mobile, code, parameters);
|
||||
NLogUtil.WriteAll(LogLevel.Trace, LogType.Other, "短信发送反馈", JsonConvert.SerializeObject(smsOut));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user