Commit 5939ba83 authored by 黄奎's avatar 黄奎

新增接口

parent 37b761d8
...@@ -37,6 +37,18 @@ namespace Mall.Common.Plugin ...@@ -37,6 +37,18 @@ namespace Mall.Common.Plugin
return result; return result;
} }
/// <summary>
/// 获取日期时间
/// </summary>
/// <param name="jObject"></param>
/// <param name="key"></param>
/// <returns></returns>
public static DateTime GetDateTime(this JObject jObject, string key)
{
DateTime.TryParse(jObject[key] == null ? "" : jObject[key].ToString(), out DateTime result);
return result;
}
/// <summary> /// <summary>
/// 获取Int /// 获取Int
/// </summary> /// </summary>
......
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