mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
✨ feat:适配专栏在某些移动端情况下无法解析的问题
This commit is contained in:
parent
ff2913bd6d
commit
835ab12c6e
@ -770,7 +770,7 @@ export class tools extends plugin {
|
||||
return true;
|
||||
}
|
||||
// 处理专栏
|
||||
if (e.msg !== undefined && e.msg.includes("read\/cv")) {
|
||||
if (e.msg !== undefined && e.msg.includes("read\/cv") || e.msg.includes("read\/mobile")) {
|
||||
await this.biliArticle(e);
|
||||
this.linkShareSummary(e);
|
||||
return true;
|
||||
@ -838,7 +838,7 @@ export class tools extends plugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async biliArticle(e) {
|
||||
const cvid = e.msg.match(/read\/cv(\d+)/)?.[1];
|
||||
const cvid = e.msg.match(/read\/cv(\d+)/)?.[1] || e.msg.match(/read\/mobile\?id=(\d+)/)?.[1];
|
||||
const articleResp = await fetch(BILI_ARTICLE_INFO.replace("{}", cvid), {
|
||||
headers: {
|
||||
...BILI_HEADER
|
||||
|
Loading…
x
Reference in New Issue
Block a user