mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
0d5f5eca1d
commit
886ccff341
@ -29,7 +29,7 @@ let global_var = {
|
||||
|
||||
config.updata(num);
|
||||
|
||||
this.set('cookie', cookie);
|
||||
this.set('cookie', cookie + ';buvid3=AAAAAAAA-BBBB-CCCC-DDDD-DDDDDDDDDDDDDDDDDinfoc');
|
||||
|
||||
cookie.split(/\s*;\s*/).forEach(item => {
|
||||
const _item = item.split('=');
|
||||
|
||||
@ -889,17 +889,8 @@ const bili_client = {
|
||||
}
|
||||
},
|
||||
_getTopRcmd: new Line('获取推荐', [
|
||||
() => new Promise((resolve) => {
|
||||
send({
|
||||
url: API.TOP_RCMD,
|
||||
method: 'GET',
|
||||
headers: {
|
||||
"accept": 'application/json, text/plain, */*',
|
||||
"cookie": GlobalVar.get("cookie") + ";buvid3=1"
|
||||
},
|
||||
success: res => resolve(res.body),
|
||||
failure: err => resolve(err)
|
||||
})
|
||||
() => get({
|
||||
url: API.TOP_RCMD
|
||||
}),
|
||||
() => get({
|
||||
url: API.TOP_FEED_RCMD
|
||||
|
||||
@ -24,6 +24,8 @@ const util = require('./util');
|
||||
1),
|
||||
3
|
||||
)
|
||||
}, async () => {
|
||||
assert.notEqual((await bili_client.searchArticlesByKeyword("专栏")).length, 0)
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user