Commit 73f801a4 authored by liudong1993's avatar liudong1993

给客人通知

parent 3efceb0d
......@@ -86,7 +86,11 @@ namespace Mall.Common.Enum
/// 导游通知
/// </summary>
[EnumField("SMS_201722097")]
GuideMsg =15
GuideMsg =15,
/// <summary>
/// 司导客人通知
/// </summary>
[EnumField("SMS_203186595")]
SDClientMsg = 16
}
}
......@@ -11384,6 +11384,27 @@ namespace Mall.Module.Product
};
SMSService.SendMsg(Telephone, PhoneMessage, EnumHelper.GetEnumName(mobileCodeType));
}
#region 给客人通知
try
{
if (ValidateHepler.IsMobileNumber(orderModel.Mobile))
{
MobileCodeTypeEnum mobileCodeType1 = MobileCodeTypeEnum.SDClientMsg;//客人通知
object PhoneMessage = new
{
orderModel.OrderNo,
TripTime = item.TripSTime.Value.ToString("yyyy-MM-dd HH:mm") + " " + ((item.UseDay ?? 0) == Convert.ToDecimal(0.5) ? "半" : Convert.ToInt32(item.UseDay ?? 0).ToString()) + "日",
guideModel.Name,
Tel = Telephone
};
SMSService.SendMsg(orderModel.Mobile, PhoneMessage, EnumHelper.GetEnumName(mobileCodeType1));
}
}
catch (Exception)
{
}
#endregion
}
}
}
......
......@@ -526,6 +526,27 @@ namespace Mall.Module.User
};
SMSService.SendMsg(Telephone, PhoneMessage, EnumHelper.GetEnumName(mobileCodeType));
}
#region 给客人通知
try
{
if (ValidateHepler.IsMobileNumber(oldOrder.Mobile))
{
MobileCodeTypeEnum mobileCodeType1 = MobileCodeTypeEnum.SDClientMsg;//客人通知
object PhoneMessage = new
{
oldOrder.OrderNo,
TripTime = item.TripSTime.Value.ToString("yyyy-MM-dd HH:mm") + " " + ((item.UseDay ?? 0) == Convert.ToDecimal(0.5) ? "半" : Convert.ToInt32(item.UseDay ?? 0).ToString()) + "日",
guideModel.Name,
Tel = Telephone
};
SMSService.SendMsg(oldOrder.Mobile, PhoneMessage, EnumHelper.GetEnumName(mobileCodeType1));
}
}
catch (Exception)
{
}
#endregion
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment