Blame view

web/WebMvc/Common/LineCodeRedisHelper.cs 626 Bytes
赖素文 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Hh.Mes.Common.Redis;

namespace WebMvc.Common
{
    public static class LineCodeRedisHelper
    {
        /// <summary>
        /// 线体编码
        /// </summary>
        public static string LineCode = string.Empty;

        public static void SaveLineCode(string account, string lineCode)
        {
            var redis = new RedisBase();
            redis.Set($"{account}_lineCode", lineCode, redis.dayTimeTwo);
        }

        public static string GetLineCode(string account)
        {
            var redis = new RedisBase();
胡菁 authored
21
            return redis.GetString($"{account}_lineCode");
赖素文 authored
22
23
24
        }
    }
}