接收参数转 Dictionary
接收数据转Dictionary
public static dynamic ConvertRequestData(JToken tk) { var sql = tk.Value<string>("sql"); var datas = tk.Value<JObject>("datas").Properties().ToDictionary(k => k.Name, k => k.Value.ToObject<object>()); return new { sql = sql, datas = datas } as dynamic; }