Commit b80b32fe authored by 黄奎's avatar 黄奎

页面修改

parent aa68fa7a
......@@ -8,6 +8,7 @@ namespace Edu.Test
{
static void Main(string[] args)
{
Console.WriteLine("Start......");
//string filePath = "";
//filePath = @"C:/Users/qiaoyajun/Desktop/EduWordTemplate.doc";
//filePath = @"C:/Users/qiaoyajun/Desktop/EduWordTemplate.doc";
......@@ -18,6 +19,7 @@ namespace Edu.Test
//var list = Common.Plugin.FileHelper.GetFileAllPath(filePath, newPath);
//string str = Common.Plugin.JsonHelper.Serialize(list);
//Console.WriteLine(str);
Console.WriteLine("End......");
Console.ReadKey();
}
}
......
......@@ -671,5 +671,30 @@ namespace Edu.ThirdCore.QYWinXin
}
#endregion
#region 获取企业微信员工打卡信息
/// <summary>
/// 获取企业微信打卡信息
/// </summary>
public static void GetWeChatCheck()
{
string WX_CorpId = "ww8418f1889fdded76";
string Employee_Secret = "mfqSiSVkQYg94wFEFN9koOK0DUQczXN-sADLE2L3gsQ";
string token = GetToken(WX_CorpId, Employee_Secret, newToken: false);
var request = new
{
starttime = 1599062400,
endtime = 1599062400,
useridlist = new List<string>()
{
"PengMengQiu"
}
};
string url = string.Format("https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckin_daydata?access_token={0}", token);
var Rmsg = HttpHelper.HttpPost(url, JsonHelper.Serialize(request), "");
Console.WriteLine("Rmsg:" + Rmsg);
}
#endregion
}
}
......@@ -68,6 +68,7 @@ namespace Edu.WebApi.Controllers.User
[AllowAnonymous]
public ApiResult Test()
{
Edu.ThirdCore.QYWinXin.QYWeiXinHelper.GetWeChatCheck();
return ApiResult.Success();
}
......
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