Skip to content

Commit 984e775

Browse files
committed
updates
1 parent 5f947cb commit 984e775

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎Task/txnews.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ let s = Number($.getdata('delay'))||200 // 间隔延迟时间
5050
let notifyInterval =$.getdata('notifynum')||50; //阅读篇数间隔通知开为1,常关为0;
5151
const TX_HOST = 'https://api.inews.qq.com/activity/v1/'
5252

53-
5453
let signurlVal = $.getdata('sy_signurl_txnews')
5554
let cookieVal = $.getdata( 'sy_cookie_txnews')
5655
let videoVal = $.getdata( 'video_txnews')
@@ -66,12 +65,16 @@ if (isGetCookie) {
6665
GetCookie()
6766
} else {
6867
!(async () => {
69-
7068
if(!signurlVal && !cookieVal){
7169
$.msg($.name, '【提示】🉐登录腾讯新闻app获取cookie',"qqnews://article_9500?tab=news_news&from=self", {"open-url": "qqnews://article_9500?tab=news_news&from=self"})
7270
await notify.sendNotify($.name, '【提示】请先获取腾讯新闻一Cookie',"qqnews://article_9500?tab=news_news&from=self", {"open-url": "qqnews://article_9500?tab=news_news&from=self"});
7371
return;
7472
}
73+
if ($.isNode()){
74+
console.log(`\n============ 脚本执行来自 Github Action ==============\n`)
75+
console.log(`============ 脚本执行-国际标准时间(UTC):${new Date().toLocaleString()} =============\n`)
76+
console.log(`============ 脚本执行-北京时间(UTC+8):${new Date(new Date().getTime() + 8 * 60 * 60 * 1000).toLocaleString()} =============\n`)
77+
}
7578
token = signurlVal.match(/devid=[a-zA-Z0-9_-]+/g)[0]
7679
console.log("\n开始获取您的活动ID");
7780
await getsign();

‎Task/youth.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,16 @@ if ($.isNode()) {
117117
timeArr.push(READTIME[item])
118118
}
119119
})
120-
console.log(`\n============脚本执行来自 github action==============\n`)
121-
console.log(`============脚本执行-国际标准时间(UTC):${new Date().toLocaleString()}=============\n`)
122-
console.log(`===========脚本执行- 北京时间(UTC+8):${new Date(new Date().getTime() + 8 * 60 * 60 * 1000).toLocaleString()}===============\n`)
120+
console.log(`\n============ 脚本执行来自 Github Action ==============\n`)
121+
console.log(`============ 脚本执行-国际标准时间(UTC):${new Date().toLocaleString()} =============\n`)
122+
console.log(`============ 脚本执行-北京时间(UTC+8):${new Date(new Date().getTime() + 8 * 60 * 60 * 1000).toLocaleString()} =============\n`)
123123
} else {
124124
cookiesArr.push($.getdata('youthheader_zq'));
125125
redpArr.push($.getdata('red_zq'));
126126
readArr.push($.getdata('read_zq'));
127127
timeArr.push($.getdata('readtime_zq'));
128128
}
129129

130-
131130
const firstcheck = $.getdata('signt');
132131
const runtimes = $.getdata('times');
133132
const opboxtime = $.getdata('opbox');

0 commit comments

Comments
 (0)