You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
/*
|
|
Sog 游戏基础库
|
|
2016 by zouwei
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Sog;
|
|
using Sog.Log;
|
|
using ProtoCSStruct;
|
|
using Sog.Gate;
|
|
|
|
namespace Version
|
|
{
|
|
public class SysNoticeServer
|
|
{
|
|
/// <summary>
|
|
/// 添加或更新来自OperationServer的公告推送
|
|
/// </summary>
|
|
/// <param name="notice"></param>
|
|
public static void AddOneSysNotice(ref SSSysNotice notice)
|
|
{
|
|
List<SysNoticeData> list = VersionServerUtils.GetVersionServerData().m_NoticeData;
|
|
|
|
var id = notice.Id;
|
|
list.RemoveAll(i => i.id == id);
|
|
|
|
SysNoticeData obj = new SysNoticeData();
|
|
obj.id = notice.Id;
|
|
obj.title = notice.Title.GetString();
|
|
obj.content = notice.Content.GetString();
|
|
obj.m_startTime = notice.StartTime;
|
|
obj.m_endTime = notice.EndTime;
|
|
obj.sort = notice.Sort;
|
|
obj.pic = notice.Pic.GetString();
|
|
obj.aotupop = notice.Aotupop;
|
|
obj.language = notice.Language.GetString();
|
|
|
|
list.Add(obj);
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|