Skip to content

Commit 2594cea

Browse files
committed
1 parent 6e2c9c4 commit 2594cea

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎.github/workflows/jingxi.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
#branches:
77
#- master
88
schedule:
9-
- cron: '5 18 * * *'
9+
- cron: '5 23 * * *'
1010
watch:
1111
types: started
1212
jobs:

‎Task/jingxi.js‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hostname = wq.jd.com
1313
*/
1414

1515
const $ = new Env('京喜');
16-
let cookiesArr = [], cookie = '', signresult,todaypoint = 0,daytotal = Number();
16+
let cookiesArr = [], cookie = '', signresult,todaypoint = 0;
1717
const notify = $.isNode() ? require('./sendNotify') : '';
1818
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
1919

@@ -81,7 +81,7 @@ function getsign() {
8181
function coininfo() {
8282
return new Promise((resolve, reject) => {
8383
const coinurl = {
84-
url: "https://wq.jd.com/pgcenter/sign/QueryPGDetail?sceneval=",
84+
url: "https://wq.jd.com/pgcenter/sign/QueryPGDetail?sceneval=2",
8585
headers: {
8686
"Content-Type": "application/x-www-form-urlencoded",
8787
Cookie: cookie,
@@ -92,13 +92,15 @@ function coininfo() {
9292
let coindata = JSON.parse(data),
9393
localetime = new Date(new Date().toLocaleDateString()).getTime()/1000,
9494
item = coindata.data.list;
95+
daytotal = Number();
9596
var i = 0;
96-
//daytotal = Number();
9797
for(i=0;i<item.length && item[i].time>=localetime;i++){
98-
daytotal += item[i].accountValue;
99-
if (item[i].activeId === '10000') {
100-
todaypoint = item[i].accountValue;
98+
if (item[i].activeId === '10000'){
99+
todaypoint = item[i].accountValue
101100
};
101+
if (item[i].activeId ==='30000'){
102+
daytotal += item[i].accountValue
103+
};
102104
}
103105
resolve()
104106
})
@@ -188,7 +190,7 @@ function showmsg() {
188190
return new Promise((resolve) => {
189191
if(signresult){
190192
$.sub = "积分总计:" + totalpoints+" " + signresult
191-
$.desc = signdays +doubleres+ '\n' + "今日签到得" + todaypoint + "个金币 共计" + daytotal+'个金币'
193+
$.desc = signdays +doubleres+ '\n' + "今日签到得" + todaypoint + "个金币 共计" + (daytotal+todaypoint)+'个金币'
192194
$.msg($.name + " 账号昵称:" + nickname, $.sub, $.desc)
193195
}
194196
resolve()

‎Task/youth.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const $ = new Env("中青看点")
7171
let notifyInterval = $.getdata("notifytimes")||50 //通知间隔,默认抽奖每50次通知一次,如需关闭全部通知请设为0
7272
const YOUTH_HOST = "https://kd.youth.cn/WebApi/";
7373
const notify = $.isNode() ? require('./sendNotify') : '';
74-
let logs = $.getdata('zqlogs')||false //调试日志开关为false或true
74+
let logs = $.getdata('zqlogs')||false, signresult;
7575
let signheaderVal = $.getdata('youthheader_zq');
7676
let timebodyVal = $.getdata('readtime_zq');
7777
let articlebodyVal = $.getdata('read_zq');
@@ -169,7 +169,7 @@ function sign() {
169169
$.msg($.name, signresult, "");
170170
return;
171171
} else if (signres.status == 1) {
172-
detail = `【签到结果】金币: +${signres.score},明日金币: +${signres.nextScore}\n`
172+
detail = `【签到结果】成功 🎉 金币: +${signres.score},明日金币: +${signres.nextScore}\n`
173173
$.setdata(1,'times')
174174
if(firstcheck==undefined||firstcheck!=date){
175175
$.setdata(date,'signt');

0 commit comments

Comments
 (0)