|
|
@@ -35,7 +35,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
{ |
|
|
|
string ver = this.GetReqData();// 获取模板请求数据 |
|
|
|
var targetData = functionIBLL.GetDesktopList("1").OrderBy(m => m.F_Sort); |
|
|
|
var listData = functionIBLL.GetDesktopList("2").OrderBy(m=>m.F_Sort); |
|
|
|
var listData = functionIBLL.GetDesktopList("2").OrderBy(m => m.F_Sort); |
|
|
|
var chartData = functionIBLL.GetDesktopList("3").OrderBy(m => m.F_Sort); |
|
|
|
var data = new { target = targetData, list = listData, chart = chartData }; |
|
|
|
string md5 = Md5Helper.Encrypt(data.ToJson(), 32); |
|
|
@@ -78,7 +78,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
// 添加委托信息 |
|
|
|
List<UserInfo> delegateList = nWFProcessIBLL.GetDelegateProcess(userId); |
|
|
|
strSql.Append(" AND 1=1"); |
|
|
|
strSql.Append(" AND 1=1"); |
|
|
|
strSql.Append($" AND r1.F_UserId ='{userId}' "); |
|
|
|
foreach (var item in delegateList) |
|
|
|
{ |
|
|
@@ -188,8 +188,31 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
|
|
|
|
public Response GetImgIds(dynamic _) |
|
|
|
{ |
|
|
|
var data = dTImgIBLL.GetList().Where(m => m.F_EnabledMark == 1).Select(m => m.F_Id); |
|
|
|
return Success(data); |
|
|
|
//分布式部署 |
|
|
|
if (string.IsNullOrEmpty(Request.Query["isDistributed"])) |
|
|
|
{ |
|
|
|
var data = dTImgIBLL.GetList().Where(m => m.F_EnabledMark == 1).Select(m => m.F_Id); |
|
|
|
return Success(data); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var data = dTImgIBLL.GetList().Where(m => m.F_EnabledMark == 1); |
|
|
|
//分布式部署 |
|
|
|
if (!string.IsNullOrEmpty(Request.Query["isDistributed"])) |
|
|
|
{ |
|
|
|
//主站地址 |
|
|
|
string webrootpath = Config.GetValue("webrootpath"); |
|
|
|
string fileAppDTImg = Config.GetValue("fileAppDTImg"); |
|
|
|
foreach (var imgitem in data) |
|
|
|
{ |
|
|
|
if (fileAppDTImg.Contains("Resource")) |
|
|
|
{ |
|
|
|
imgitem.DistributedUrl = string.Format("{0}/{1}/{2}{3}", webrootpath, fileAppDTImg.Substring(fileAppDTImg.LastIndexOf("Resource")), imgitem.F_Id, imgitem.F_FileName); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return Success(data.Select(m=>m.DistributedUrl)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public Response GetImg(dynamic _) |
|
|
|