Skip to content

Commit

Permalink
Merge pull request #66 from SpadeLushen/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored Jan 14, 2024
2 parents e12ee61 + daad733 commit edd8d13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonObject?
result.Uin,
result.Permission.ToString().ToLower(),
result.GroupLevel.ToString(), result.MemberCard, result.MemberName,
(uint)new DateTimeOffset(result.JoinTime).ToUnixTimeMilliseconds(),
(uint)new DateTimeOffset(result.LastMsgTime).ToUnixTimeMilliseconds()),
(uint)new DateTimeOffset(result.JoinTime).ToUnixTimeSeconds(),
(uint)new DateTimeOffset(result.LastMsgTime).ToUnixTimeSeconds()),
0, "ok");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonObject?
if (payload.Deserialize<OneBotGetGroupMemberInfo>() is { } message)
{
var result = await context.FetchMembers(message.GroupId, message.NoCache);
return new OneBotResult(result.Select(x => new OneBotGroupMember(message.GroupId, x.Uin, x.Permission.ToString().ToLower(), x.GroupLevel.ToString(), x.MemberCard, x.MemberName, (uint)new DateTimeOffset(x.JoinTime).ToUnixTimeMilliseconds(), (uint)new DateTimeOffset(x.LastMsgTime).ToUnixTimeMilliseconds())), 0, "ok");
return new OneBotResult(result.Select(x => new OneBotGroupMember(message.GroupId, x.Uin, x.Permission.ToString().ToLower(), x.GroupLevel.ToString(), x.MemberCard, x.MemberName, (uint)new DateTimeOffset(x.JoinTime).ToUnixTimeSeconds(), (uint)new DateTimeOffset(x.LastMsgTime).ToUnixTimeSeconds())), 0, "ok");
}

throw new Exception();
Expand Down

0 comments on commit edd8d13

Please sign in to comment.