修改企鹅阅读,云端Node.js专用。

This commit is contained in:
lxk0301
2020-12-02 12:26:09 +08:00
parent 625d822e93
commit cf6f0e9be0
2 changed files with 3 additions and 11 deletions

View File

@@ -14,15 +14,7 @@
"qqreadtimeurl1", "qqreadtimeurl1",
"qqreadtimehd1" "qqreadtimehd1"
], ],
"settings": [ "settings": [],
{
"id": "qqreadurl1",
"name": "qqreadurl1",
"val": "https://mqqapi.reader.qq.com/mqq/user/init",
"type": "text",
"desc": ""
}
],
"author": "@ziye12", "author": "@ziye12",
"repo": "https://github.com/ziye12/JavaScript ", "repo": "https://github.com/ziye12/JavaScript ",
"icons": [ "icons": [

View File

@@ -75,7 +75,7 @@ const maxtime = 20//每日上传时长限制默认20小时
const wktimess = 1200//周奖励领取标准默认1200分钟 const wktimess = 1200//周奖励领取标准默认1200分钟
var tz = '' var tz = ''
const qqreadurlVal = `https://mqqapi.reader.qq.com/mqq/user/init`; const qqreadurlVal = `https://mqqapi.reader.qq.com/mqq/user/init`;
// const qqreadurlKey = 'qqreadurl' + jbid const qqreadurlKey = 'qqreadurl' + jbid
// const qqreadurlVal = $.getdata(qqreadurlKey) // const qqreadurlVal = $.getdata(qqreadurlKey)
const qqreadheaderKey = 'qqreadhd' + jbid const qqreadheaderKey = 'qqreadhd' + jbid
@@ -174,7 +174,7 @@ function GetCookie() {
// if (qqreadbodyVal) $.setdata(qqreadbodyVal, qqreadbodyKey) // if (qqreadbodyVal) $.setdata(qqreadbodyVal, qqreadbodyKey)
// $.log(`[${jsname}] 获取阅读: 成功,qqreadbodyVal: ${qqreadbodyVal}`) // $.log(`[${jsname}] 获取阅读: 成功,qqreadbodyVal: ${qqreadbodyVal}`)
$.setdata(qqreadurlVal, qqreadurlKey);
const qqreadheaderVal = JSON.stringify($request.headers) const qqreadheaderVal = JSON.stringify($request.headers)
if (qqreadheaderVal) $.setdata(qqreadheaderVal, qqreadheaderKey) if (qqreadheaderVal) $.setdata(qqreadheaderVal, qqreadheaderKey)
$.log(`[${jsname}] 获取Cookie: 成功,qqreadheaderVal: ${qqreadheaderVal}`) $.log(`[${jsname}] 获取Cookie: 成功,qqreadheaderVal: ${qqreadheaderVal}`)