53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ssgrestserver
|
|
{
|
|
class 입력경품프로모션 : ARequestObject
|
|
{
|
|
protected override string startUpdateWork()
|
|
{
|
|
if (!mRequestParameterKVPairList.ContainsKey("보낸사람"))
|
|
{
|
|
return "없는데이터 - 보낸사람";
|
|
}
|
|
if (!mRequestParameterKVPairList.ContainsKey("텍스트"))
|
|
{
|
|
return "없는데이터 - 텍스트";
|
|
}
|
|
|
|
|
|
JObject retObj = new JObject();
|
|
|
|
retObj.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
|
|
|
retObj.Add("텍스트", mRequestParameterKVPairList["텍스트"]);
|
|
|
|
retObj.Add("입력시간", DateTime.Now.ToString());
|
|
|
|
mAccessableDictionary = DataCenter.getInstance().getData(DataCenter.관리중인데이터들배열.최근받은경품정보);
|
|
|
|
if (mAccessableDictionary.ContainsKey(m채널이름))
|
|
{
|
|
mAccessableDictionary[m채널이름] = retObj;
|
|
}
|
|
else
|
|
{
|
|
mAccessableDictionary.Add(m채널이름, retObj);
|
|
}
|
|
|
|
|
|
|
|
retObj.Add("status", "200");
|
|
|
|
return retObj.ToString(Newtonsoft.Json.Formatting.None);
|
|
|
|
|
|
}
|
|
}
|
|
}
|