mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 03:19:49 +08:00
添加项目文件。
This commit is contained in:
69
CoreCms.Net.Utility/Helper/MessageHelper.cs
Normal file
69
CoreCms.Net.Utility/Helper/MessageHelper.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-08-18 0:35:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using CoreCms.Net.Configuration;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace CoreCms.Net.Utility.Helper
|
||||
{
|
||||
public static class MessageHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据编码获取消息内容
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="parameters"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetTemp(string code, JObject parameters)
|
||||
{
|
||||
string msg = string.Empty;
|
||||
if (code == GlobalEnumVars.PlatformMessageTypes.CreateOrder.ToString())
|
||||
{
|
||||
msg = "订单创建成功。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.OrderPayed.ToString())
|
||||
{
|
||||
msg = "恭喜您,订单支付成功,祝您购物愉快。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.RemindOrderPay.ToString())
|
||||
{
|
||||
msg = "您的订单还有3个小时就要取消了,请立即进行支付。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.DeliveryNotice.ToString())
|
||||
{
|
||||
msg = "你好,你的订单已经发货。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.AfterSalesPass.ToString())
|
||||
{
|
||||
msg = "你好,您的售后已经通过。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.RefundSuccess.ToString())
|
||||
{
|
||||
msg = "用户你好,你的退款已经处理,请确认。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.ShopMessageTypes.AftersalesAdd.ToString())
|
||||
{
|
||||
msg = "你好,有新的售后订单了,请及时处理。";
|
||||
}
|
||||
else if (code == GlobalEnumVars.PlatformMessageTypes.SellerOrderNotice.ToString())
|
||||
{
|
||||
msg = "您有新的订单了,请及时处理。";
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user