mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: parse whisper data
mod: load more pm Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -372,8 +372,7 @@ class MemberHttp {
|
||||
queryParameters: params,
|
||||
options: Options(headers: {
|
||||
HttpHeaders.userAgentHeader: Request.headerUa(type: 'pc'),
|
||||
HttpHeaders.refererHeader:
|
||||
'${HttpString.spaceBaseUrl}/$mid/search?keyword=$keyword',
|
||||
HttpHeaders.refererHeader: '${HttpString.spaceBaseUrl}/$mid',
|
||||
'origin': HttpString.spaceBaseUrl,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -455,8 +455,11 @@ class MsgHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<SessionMsgDataModel>> sessionMsg(
|
||||
{int? talkerId}) async {
|
||||
static Future<LoadingState<SessionMsgDataModel>> sessionMsg({
|
||||
int? talkerId,
|
||||
beginSeqno,
|
||||
endSeqno,
|
||||
}) async {
|
||||
Map params = await WbiSign.makSign({
|
||||
'talker_id': talkerId,
|
||||
'session_type': 1,
|
||||
@@ -464,6 +467,8 @@ class MsgHttp {
|
||||
'sender_device_id': 1,
|
||||
'build': 0,
|
||||
'mobi_app': 'web',
|
||||
if (beginSeqno != null) 'begin_seqno': beginSeqno,
|
||||
if (endSeqno != null) 'end_seqno': endSeqno,
|
||||
});
|
||||
var res = await Request().get(Api.sessionMsg, queryParameters: params);
|
||||
if (res.data['code'] == 0) {
|
||||
|
||||
Reference in New Issue
Block a user