mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🦄 reactor: 优化一些细节
This commit is contained in:
parent
e5e0785c1e
commit
3d591d6996
@ -255,12 +255,12 @@ export class tools extends plugin {
|
||||
};
|
||||
const dyApi = DY_INFO.replace("{}", douId);
|
||||
// xg参数
|
||||
const xbParam = aBogus.generate_a_bogus(
|
||||
const abParam = aBogus.generate_a_bogus(
|
||||
new URLSearchParams(new URL(dyApi).search).toString(),
|
||||
headers["User-Agent"],
|
||||
);
|
||||
// const param = resp.data.result[0].paramsencode;
|
||||
const resDyApi = `${ dyApi }&a_bogus=${ xbParam }`;
|
||||
const resDyApi = `${ dyApi }&a_bogus=${ abParam }`;
|
||||
headers['Referer'] = `https://www.douyin.com/video/${ douId }`
|
||||
const dyResponse = () => axios.get(resDyApi, {
|
||||
headers,
|
||||
|
Loading…
x
Reference in New Issue
Block a user