|
|
@@ -28,18 +28,25 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
|
|
|
#region 获取奖励日志
|
|
|
[Route("/v1/pri/PriLog/getPriLogDetail")]
|
|
|
- public string Set()
|
|
|
+ public Dictionary<string, object> Set(string value)
|
|
|
{
|
|
|
- StreamReader sr = new StreamReader(Request.Body);
|
|
|
- string requestMes = sr.ReadToEnd();
|
|
|
- JsonData json = JsonMapper.ToObject(requestMes);
|
|
|
- string value = AesDecrypt(json["content"].ToString(), "kvS4TIRh7Yulg4nr");
|
|
|
+ // StreamReader sr = new StreamReader(Request.Body);
|
|
|
+ // string requestMes = sr.ReadToEnd();
|
|
|
+ // JsonData json = JsonMapper.ToObject(requestMes);
|
|
|
+ // string value = AesDecrypt(json["content"].ToString(), "kvS4TIRh7Yulg4nr");
|
|
|
+ // string value = AesDecrypt(requestMes, "kvS4TIRh7Yulg4nr");
|
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
|
string DataNo = data["data_no"].ToString();
|
|
|
- string PrizeKind = data["prize_kind"].ToString();
|
|
|
+ string PrizeKind = "0"; //data["prize_kind"].ToString();
|
|
|
|
|
|
string content = function.PostWebRequest("https://logic-executor.kexiaoshuang.com/noauth/pri/logdetail", "value={\"data_no\":\"" + DataNo + "\",\"prize_kind\":\"" + PrizeKind + "\"}");
|
|
|
- return content;
|
|
|
+ content = content.Replace("null", "\"\"");
|
|
|
+ Dictionary<string, object> result = new Dictionary<string, object>();
|
|
|
+ JsonData json = JsonMapper.ToObject(content);
|
|
|
+ result.Add("data", json["data"].ToJson());
|
|
|
+ result.Add("status", json["status"].ToString());
|
|
|
+ result.Add("msg", "成功");
|
|
|
+ return result;
|
|
|
}
|
|
|
public string AesDecrypt(string str, string key)
|
|
|
{
|