Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
b80b32fe
Commit
b80b32fe
authored
Mar 31, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
aa68fa7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
Program.cs
Edu.Test/Program.cs
+2
-0
QYWeiXinHelper.cs
Edu.ThirdCore/QYWinXin/QYWeiXinHelper.cs
+25
-0
LoginController.cs
Edu.WebApi/Controllers/User/LoginController.cs
+1
-0
No files found.
Edu.Test/Program.cs
View file @
b80b32fe
...
...
@@ -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
();
}
}
...
...
Edu.ThirdCore/QYWinXin/QYWeiXinHelper.cs
View file @
b80b32fe
...
...
@@ -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
}
}
Edu.WebApi/Controllers/User/LoginController.cs
View file @
b80b32fe
...
...
@@ -68,6 +68,7 @@ namespace Edu.WebApi.Controllers.User
[
AllowAnonymous
]
public
ApiResult
Test
()
{
Edu
.
ThirdCore
.
QYWinXin
.
QYWeiXinHelper
.
GetWeChatCheck
();
return
ApiResult
.
Success
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment