mirror of
https://github.com/naiyQAQ/fanqie-assistant.git
synced 2026-10-21 10:24:47 +00:00
feat & refactor: 支持app端签名的请求,支持右键操作书架书籍,逻辑大幅重构,更改默认的设备逻辑为自动注册,支持载入某些书籍内置的CSS、支持跳转正文注释等等
This commit is contained in:
1 parent
2f2ee606c0
commit
3586b01dbb
47 files changed
+3594
-243
No files matched your search
+6
-2
@@ -1,5 +1,5 @@
|
||||
import apiFetch from '../utils/request'
|
||||
import type { Book } from '../types'
|
||||
import { appGet } from './app'
|
||||
import { getCatalog } from './catalog'
|
||||
import moment from 'moment'
|
||||
|
||||
@@ -16,8 +16,12 @@ export function mappingCreationStatus(status: string): string {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 书籍详情,对应 APP 的 /bookapi/multi-detail/v。
|
||||
* 响应字段与红烛接口一致,签名通用。
|
||||
*/
|
||||
export async function getBookInfoRaw(bookId: string): Promise<any> {
|
||||
const response = await apiFetch(`https://api5-sinfonlinec.jxbhmy.com/reading/bookapi/multi-detail/v?book_id=${bookId}&aid=1967`)
|
||||
const response = await appGet('/bookapi/multi-detail/v', { book_id: bookId })
|
||||
const j: any = response.json()
|
||||
console.log('Book Info:', j)
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user