mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
opt: query dm
Closes #544 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -16,7 +16,7 @@ class DanmakuHttp {
|
||||
await GrpcRepo.dmSegMobile(cid: cid, segmentIndex: segmentIndex);
|
||||
if (!response['status']) {
|
||||
if (queryCount >= 3) {
|
||||
return DmSegMobileReply();
|
||||
return {'status': false};
|
||||
} else {
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
return await queryDanmaku(
|
||||
@@ -43,7 +43,7 @@ class DanmakuHttp {
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
return {'status': true, 'data': data};
|
||||
}
|
||||
|
||||
static Future shootDanmaku({
|
||||
|
||||
Reference in New Issue
Block a user