移动系统liao
2025-02-17 557c2711a3e103ebc3d0492344eca9730d5e92b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/***********************************************************************
 *            Project: baifenBinfa.Net                                     *
 *                Web: https://baifenBinfa.com                             *
 *        ProjectName: 百分兵法管理系统                               *
 *             Author:                                        *
 *              Email:                               *
 *         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;
        }
 
 
 
    }
}