Skip to content

Commit 74a2a86

Browse files
修复搜索.
1 parent a93029f commit 74a2a86

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,16 @@ async function getMangaListByCategory(page, pageSize, filterOptions) {
173173

174174
async function getMangaListBySearching(page, pageSize, keyword) {
175175
const url =
176-
'https://api.copy2000.online/api/kb/web/searchbd/comics';
176+
'https://api.copy2000.online/api/kb/web/searchc/comics';
177177
try {
178178
const rawResponse = await window.Rulia.httpRequest({
179179
url: url,
180180
method: 'GET',
181181
payload: 'limit=' + pageSize + '&offset=' + ((page - 1) * pageSize) +
182182
'&platform=2&q=' + keyword + '&q_type=',
183-
headers: headers
183+
headers: {
184+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0'
185+
}
184186
});
185187
const response = JSON.parse(rawResponse);
186188
let result = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@rulia/CopyManga",
33
"title": "拷贝漫画",
44
"description": "拷贝漫画插件.",
5-
"version": "0.0.8",
5+
"version": "0.0.9",
66
"author": "LittleStar_OuO",
77
"tags": ["Copy", "Manga", "CopyManga"],
88
"homepage": "https://github.com/LittleStar-OuO/plugin.CopyManga",

0 commit comments

Comments
 (0)