Commit ae2fc86b authored by liudong1993's avatar liudong1993

Merge branch 'master' of http://gitlab.oytour.com/Kui2/mall.oytour.com into sdzq-ld

parents e7cef4c8 f6fd9a26
......@@ -232,5 +232,28 @@ namespace Mall.Common.Plugin
);
return JsonConvert.DeserializeObject(json);
}
/// <summary>
/// 判断字符串是不是JSON格式
/// </summary>
/// <param name="json"></param>
/// <returns></returns>
public static bool IsJson(string json)
{
bool flag = false;
if (!string.IsNullOrEmpty(json))
{
try
{
_ = (JObject)JsonConvert.DeserializeObject(json);
flag = true;
}
catch
{
flag = false;
}
}
return flag;
}
}
}
......@@ -2892,7 +2892,7 @@ namespace Mall.WebApi.Controllers.Education
public ApiResult UpdateActivityIncome()
{
//int OrderId, decimal Money, int ActivityId
JObject jObj = JObject.Parse(RequestParm.msg.ToString());
JObject jObj = JObject.Parse(RequestParm.msg.ToString().Replace(@"\r\n",""));
int OrderId = jObj.GetInt("OrderId", 0);
decimal Money = jObj.GetDecimal("Money");
decimal PlatformTax = jObj.GetDecimal("PlatformTax");
......
......@@ -57,6 +57,7 @@ namespace Mall.WebApi
{
"http://localhost:8081",
"http://127.0.0.1:8081",
"http://127.0.0.1:8085",
"http://localhost:8181",
"http://localhost:8080",
"http://127.0.0.1:8080",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment