去除引用common.props
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web;
|
||||
using JNPF.ClayObject;
|
||||
using JNPF.Common.Configuration;
|
||||
using JNPF.Common.Const;
|
||||
using JNPF.Common.Core.Manager;
|
||||
@@ -521,7 +520,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
if (interfaceOauthEntity == null) return null;
|
||||
var ymDate = DateTime.Now.ParseToUnixTime().ToString();
|
||||
var authorization = GetVerifySignature(interfaceOauthEntity, intefaceId, ymDate);
|
||||
return new {
|
||||
return new
|
||||
{
|
||||
YmDate = ymDate,
|
||||
Authorization = authorization,
|
||||
};
|
||||
@@ -564,7 +564,7 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
var result = await Preview(id, input);
|
||||
if (result is DataTable)
|
||||
{
|
||||
List<Dictionary<string,Object>> list = JsonConvert.DeserializeObject<List<Dictionary<string, object>>>(JsonConvert.SerializeObject(result));
|
||||
List<Dictionary<string, Object>> list = JsonConvert.DeserializeObject<List<Dictionary<string, object>>>(JsonConvert.SerializeObject(result));
|
||||
return list.FirstOrDefault()?.Keys.ToList() ?? Enumerable.Empty<string>();
|
||||
}
|
||||
else
|
||||
@@ -712,7 +712,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
{
|
||||
// 分页
|
||||
var dt = GetPageToDataTable(resTable, input.currentPage, input.pageSize);
|
||||
output = new {
|
||||
output = new
|
||||
{
|
||||
pagination = new PageResult()
|
||||
{
|
||||
currentPage = input.currentPage,
|
||||
@@ -759,7 +760,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
// });
|
||||
//}
|
||||
resList = resList.FindAll(x => x.Where(xx => xx.Value != null && xx.Value.Contains(input.keyword)).Any());
|
||||
output = new {
|
||||
output = new
|
||||
{
|
||||
pagination = new PageResult()
|
||||
{
|
||||
currentPage = input.currentPage,
|
||||
@@ -798,7 +800,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
if (input.sort.Equals("desc")) resList = resList.OrderBy(x => x[input.sidx]).ToList();
|
||||
else resList = resList.OrderByDescending(x => x[input.sidx]).ToList();
|
||||
}
|
||||
output = new {
|
||||
output = new
|
||||
{
|
||||
pagination = new PageResult()
|
||||
{
|
||||
currentPage = input.currentPage,
|
||||
@@ -810,7 +813,8 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
}
|
||||
else
|
||||
{
|
||||
output = new {
|
||||
output = new
|
||||
{
|
||||
pagination = new PageResult()
|
||||
{
|
||||
currentPage = input.currentPage,
|
||||
|
||||
Reference in New Issue
Block a user