45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
|
using MyCode.Project.Infrastructure.Common;
|
|||
|
using MyCode.Project.Infrastructure.Config;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MyCode.Project.Infrastructure.Constant
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 短信模板配置,
|
|||
|
/// </summary>
|
|||
|
public class SmsTemplateConfigConst
|
|||
|
{
|
|||
|
private static string json = WebConfigUtils.GetAppSettingsInfo("SmsTemplateConfig");
|
|||
|
|
|||
|
private static SmsTemplateConfig smsTemplateConfig = JsonHelper.ToObject<SmsTemplateConfig>(json);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 消费成功模板。
|
|||
|
/// 变量:会员=#Member#,消费金额=#Amount#,积分=#Integral#,公众号=#WechatPublic#
|
|||
|
/// </summary>
|
|||
|
public static string ConsumptionSuccess = smsTemplateConfig.ConsumptionSuccess;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 服务完成模板。
|
|||
|
/// 变量:会员=#Member#,次数=#Frequency#,公众号=#WechatPublic#
|
|||
|
/// </summary>
|
|||
|
public static string ServiceFinish = smsTemplateConfig.ServiceFinish;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 充值成功模板。
|
|||
|
/// 变量:充值金额=#RechargeAmount#,余额=#Balance#,公众号=#WechatPublic#
|
|||
|
/// </summary>
|
|||
|
public static string RechangeSuccess = smsTemplateConfig.RechangeSuccess;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 预约成功模板。月份=#Month#,日期=#Day#,店铺名=#Shop#,服务名=#Service#,公众号=#WechatPublic#
|
|||
|
/// </summary>
|
|||
|
public static string PreOrderSuccess = smsTemplateConfig.PreOrderSuccess;
|
|||
|
|
|||
|
};
|
|||
|
}
|