Commit 8ac78970 by xiongyuwen

no message

parent 43a57c84
......@@ -53,7 +53,7 @@ namespace Bailun.Discuz.Application.WeiPan
{
var token = GetQYWeChatToken(userId);
SpaceCreateRequest resquest = new SpaceCreateRequest();
resquest.space_name = "四千里微盘";
resquest.space_name = "4k微盘";
resquest.userid = userId;
var apiUrl = $"https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_create?access_token={token}";
var apiOutput = HttpHelper.PostAsync<SpaceCreateRequest, SpaceCreateResponse>(apiUrl, resquest);
......@@ -72,7 +72,7 @@ namespace Bailun.Discuz.Application.WeiPan
CreateSpaceFileRequest createSpaceFileRequest = new CreateSpaceFileRequest();
var weiPanSpaceId =GetWeiPanSpaceId(userId);
createSpaceFileRequest.fatherid = weiPanSpaceId;
createSpaceFileRequest.file_name = "四千里共享文件";
createSpaceFileRequest.file_name = "4k共享文件";
createSpaceFileRequest.file_type = 1;
createSpaceFileRequest.userid = userId;
createSpaceFileRequest.spaceid = weiPanSpaceId;
......@@ -796,8 +796,11 @@ namespace Bailun.Discuz.Application.WeiPan
_weipanUserFilesRepository.Delete(u.Id);
});
}
//await ProcessWeipanUserFilesByHr();
if(companyName!= "四千里数据科技有限公司")
{
await ProcessWeipanUserFilesByHr();
}
foreach (var weiPanFile in weiPanFileList)
{
var oldWeipanUserFiles = await _weipanUserFilesRepository.Query().AsNoTracking().Where(u => u.File_Id == weiPanFile.FileId).ToListAsync();
......@@ -815,12 +818,13 @@ namespace Bailun.Discuz.Application.WeiPan
if (departmentItem != null|| selDepartments[0]== "公司制度及资讯")
{
if(selDepartments[0] == "公司制度及资讯")
var isGetAll = false;
if (selDepartments[0] == "公司制度及资讯" || companyName == "四千里数据科技有限公司")
{
isGetAll = true;
}
//根据部门获取对应得用户列表数据
var weChatUserList = GetWechatUserInfo(companyName, selDepartments[0] == "公司制度及资讯"?1: departmentItem.id).ToList();
var weChatUserList = GetWechatUserInfo(companyName, isGetAll==true? 1: departmentItem.id).ToList();
if (weChatUserList != null)
{
......
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