|
@@ -137,7 +137,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI
|
|
|
/// 获取成员ID列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- private async Task<UserIdListView> GetUserIdListAsync()
|
|
|
+ public async Task<UserIdListView> GetUserIdListAsync()
|
|
|
{
|
|
|
UserIdListView userIdListView = new UserIdListView();
|
|
|
Access_TokenView access_Token = await GetTokenAsync(4);
|
|
@@ -163,9 +163,6 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI
|
|
|
userIdListView = System.Text.Json.JsonSerializer.Deserialize<UserIdListView>(stringResponse,
|
|
|
new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
return userIdListView;
|
|
|
}
|
|
|
|
|
@@ -542,10 +539,10 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI
|
|
|
return checkInDayDataView;
|
|
|
}
|
|
|
|
|
|
- string url = string.Format("/cgi-bin/checkin/getcheckin_daydata?access_token={0}", access_Token.access_token);
|
|
|
+ string url = string.Format("/cgi-bin/checkin/getcheckin_daydata?access_token={0}&debug=1", access_Token.access_token);
|
|
|
|
|
|
- long startTs = (long)(startDt - _1970).TotalSeconds;
|
|
|
- long endTs = (long)(endDt - _1970).TotalSeconds;
|
|
|
+ long startTs = (startDt.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
|
|
|
+ long endTs = (endDt.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
|
|
|
|
|
|
var checkInData_Req = new
|
|
|
{
|