@@ -194,7 +194,7 @@ function signInfo() {
194194 headers : JSON . parse ( signheaderVal ) ,
195195 }
196196 $ . post ( infourl , ( error , response , data ) => {
197- if ( logs ) $ . log ( `开始签到` ) ;
197+
198198 signinfo = JSON . parse ( data ) ;
199199 //console.log(signinfo)
200200 if ( signinfo . status == 1 ) {
@@ -221,7 +221,7 @@ function punchCard() {
221221 headers : JSON . parse ( signheaderVal ) ,
222222 }
223223 $ . post ( url , ( error , response , data ) => {
224- $ . log ( `每日开启打卡` ) ;
224+ // $.log(`每日开启打卡`);
225225 punchcardstart = JSON . parse ( data ) ;
226226 if ( punchcardstart . code == 1 ) {
227227 detail += `【打卡报名】打卡报名${ punchcardstart . msg } ✅ \n` ;
@@ -230,7 +230,7 @@ function punchCard() {
230230 }
231231 else {
232232 //detail += `【打卡报名】${punchcardstart.msg}\n`
233- $ . log ( punchcardstart . msg )
233+ // $.log(punchcardstart.msg)
234234 resolve ( )
235235 }
236236 } )
@@ -245,15 +245,14 @@ function endCard() {
245245 url : `${ YOUTH_HOST } PunchCard/doCard?` , headers : JSON . parse ( signheaderVal ) ,
246246 }
247247 $ . post ( url , ( error , response , data ) => {
248- $ . log ( `早起开始打卡` )
249248 punchcardend = JSON . parse ( data )
250249 if ( punchcardend . code == 1 ) {
251250 detail += `【早起打卡】${ punchcardend . data . card_time } ${ punchcardend . msg } ✅\n`
252251 $ . log ( "早起打卡成功,打卡时间:" + `${ punchcardend . data . card_time } ` )
253252 } else if ( punchcardend . code == 0 ) {
254253 // TODO .不在打卡时间范围内
255254 //detail += `【早起打卡】${punchcardend.msg}\n`
256- $ . log ( "不在打卡时间范围内" )
255+ // $.log("不在打卡时间范围内")
257256 }
258257 resolve ( )
259258 } )
@@ -270,7 +269,6 @@ function Cardshare() {
270269 headers : JSON . parse ( signheaderVal ) ,
271270 }
272271 $ . post ( starturl , ( error , response , data ) => {
273- $ . log ( `开始分享打卡任务` )
274272 sharestart = JSON . parse ( data )
275273 //detail += `【打卡分享】${sharestart.msg}\n`
276274 if ( sharestart . code == 1 ) {
@@ -286,7 +284,7 @@ function Cardshare() {
286284 $ . log ( `【打卡分享】成功,获得` + shareres . data . score + "个青豆" )
287285 } else {
288286 //detail += `【打卡分享】${shareres.msg}\n`
289- $ . log ( `${ shareres . msg } ` )
287+ // $.log(`${shareres.msg}`)
290288 }
291289 resolve ( )
292290 } )
@@ -305,7 +303,6 @@ function openbox() {
305303 headers : JSON . parse ( signheaderVal ) ,
306304 }
307305 $ . post ( url , ( error , response , data ) => {
308- $ . log ( `开启时段宝箱任务` )
309306 boxres = JSON . parse ( data )
310307 if ( boxres . code == 1 ) {
311308 boxretime = boxres . data . time
@@ -314,7 +311,7 @@ function openbox() {
314311 $ . log ( `开启时段宝箱成功,获得` + boxres . data . score + `个青豆,${ boxretime / 60 } ` + "后开启下一个宝箱" )
315312 } else {
316313 //detail += `【开启宝箱】${boxres.msg}\n`
317- $ . log ( `${ boxres . msg } ` )
314+ // $.log(`${boxres.msg}`)
318315 }
319316 resolve ( )
320317 } )
@@ -331,14 +328,14 @@ function boxshare() {
331328 headers : JSON . parse ( signheaderVal ) ,
332329 }
333330 $ . post ( url , ( error , response , data ) => {
334- $ . log ( `开始分享宝箱任务` )
331+
335332 shareres = JSON . parse ( data )
336333 if ( shareres . code == 1 ) {
337334 detail += `【宝箱分享】+${ shareres . data . score } 青豆\n`
338335 $ . log ( `分享宝箱任务成功,获得${ shareres . data . score } 青豆` )
339336 } else {
340337 //detail += `【宝箱分享】${shareres.msg}\n`
341- $ . log ( `${ shareres . msg } ` )
338+ // $.log(`${shareres.msg}`)
342339 }
343340 resolve ( )
344341 } )
@@ -385,7 +382,6 @@ function getAdVideo() {
385382 body : 'type=taskCenter'
386383 }
387384 $ . post ( url , ( error , response , data ) => {
388- $ . log ( `观看视频广告` )
389385 adVideores = JSON . parse ( data )
390386 if ( adVideores . status == 1 ) {
391387 detail += `【观看视频】+${ adVideores . score } 个青豆\n`
@@ -403,7 +399,6 @@ function gameVideo() {
403399 body : articlebodyVal ,
404400 }
405401 $ . post ( url , ( error , response , data ) => {
406- $ . log ( `观看激励视频` )
407402 gameres = JSON . parse ( data )
408403 if ( gameres . success == true ) {
409404 detail += `【激励视频】${ gameres . items . score } \n`
@@ -427,7 +422,6 @@ function readArticle() {
427422 body : articlebodyVal ,
428423 }
429424 $ . post ( url , ( error , response , data ) => {
430- $ . log ( `开始阅读文章` )
431425 readres = JSON . parse ( data ) ;
432426 if ( readres . items . read_score !== undefined ) {
433427 detail += `【阅读奖励】+${ readres . items . read_score } 个青豆\n` ;
@@ -448,15 +442,13 @@ function Articlered() {
448442 body : redpbodyVal ,
449443 }
450444 $ . post ( url , ( error , response , data ) => {
451- $ . log ( `打开惊喜红包` )
452445 redres = JSON . parse ( data )
453446 if ( redres . success == true ) {
454447 detail += `【惊喜红包】+${ redres . items . score } 个青豆\n`
455448 $ . log ( "惊喜红包获得" + redres . items . score + "个青豆" )
456449 } else {
457450 if ( redres . error_code == "100001" ) {
458- //detail += `【惊喜红包】${redres.message},疑似cookie没有\n`
459- $ . log ( "每日开启惊喜红包已超限" )
451+ //detail += `【惊喜红包】${redres.message}\n`
460452 }
461453 }
462454 resolve ( )
@@ -524,7 +516,6 @@ function runRotary(index) {
524516 body : rotarbody
525517 }
526518 $ . post ( url , ( error , response , data ) => {
527- $ . log ( `转盘宝箱${ index } 抽奖` )
528519 const rotaryresp = JSON . parse ( data ) ;
529520 if ( rotaryresp . status == 1 ) {
530521 detail += `【转盘宝箱${ index } 】+${ rotaryresp . data . score } 个青豆\n` ;
@@ -552,14 +543,14 @@ function TurnDouble() {
552543 body : rotarbody
553544 }
554545 $ . post ( url , ( error , response , data ) => {
555- $ . log ( `开始转盘双倍奖励` )
546+
556547 Doubleres = JSON . parse ( data )
557548 if ( Doubleres . status == 1 ) {
558549 detail += `【转盘双倍】+${ Doubleres . data . score1 } 青豆 剩余${ rotaryres . data . doubleNum } 次\n`
559550 $ . log ( `转盘双倍奖励成功,获得${ Doubleres . data . score1 } 青豆` )
560551 } else {
561552 //detail += `【转盘双倍】失败 ${Doubleres.msg}\n`
562- $ . log ( `转盘双倍奖励失败,原因: ${ Doubleres . msg } ` )
553+
563554 }
564555 } )
565556 resolve ( )
@@ -577,12 +568,11 @@ function readTime() {
577568 body : timebodyVal ,
578569 }
579570 $ . post ( url , ( error , response , data ) => {
580- $ . log ( `开始统计阅读时长` )
581571 let timeres = JSON . parse ( data )
582572 if ( timeres . error_code == 0 ) {
583573 readtimes = timeres . time / 60
584574 detail += `【阅读时长】共计` + Math . floor ( readtimes ) + `分钟\n`
585- $ . log ( `共计阅读 ` + Math . floor ( readtimes ) + "分钟" )
575+ $ . log ( `共计阅读时长为 ` + Math . floor ( readtimes ) + "分钟" )
586576 } else {
587577 if ( timeres . error_code == 200001 ) {
588578 detail += `【阅读时长】❎ 未获取阅读时长Cookie\n`
@@ -604,28 +594,26 @@ function earningsInfo() {
604594 headers : JSON . parse ( signheaderVal ) ,
605595 }
606596 $ . get ( url , ( error , response , data ) => {
607- $ . log ( `开始统计收益信息` )
608597 infores = JSON . parse ( data )
609598 if ( infores . status == 0 ) {
610599 detail += `<收益统计>:\n`
611600 for ( i = 0 ; i < infores . history [ 0 ] . group . length ; i ++ ) {
612601 detail += '【' + infores . history [ 0 ] . group [ i ] . name + '】' + infores . history [ 0 ] . group [ i ] . money + '个青豆\n'
613602 }
614603 detail += '<今日合计>: ' + infores . history [ 0 ] . score + " 青豆"
615- $ . log ( '<今日合计>: ' + infores . history [ 0 ] . score + " 青豆" )
616604 }
617605 resolve ( )
618606 } )
619607 } , s )
620608 } )
621609}
622610 async function showmsg ( ) {
623- if ( $ . isNode ( ) ) {
624- if ( cash >= 10 && rotaryres . code == 10010 ) {
611+ if ( $ . isNode ( ) ) {
612+ if ( cash >= 10 && rotaryres . code == 10010 ) {
625613 await notify . sendNotify ( $ . name + " " + nick , "您的余额约为" + cash + "元,已可以提现" + '\n\n' + `【收益总计】${ signinfo . data . user . score } 青豆 现金约${ cash } 元\n\n${ detail } ` )
626614 }
627- console . log ( '-----------' + '\n' + $ . name + `\n\n【收益总计】${ signinfo . data . user . score } 青豆 现金约${ cash } 元\n` + detail )
628615 }
616+ console . log ( '-----------' + '\n' + $ . name + `\n【收益总计】${ signinfo . data . user . score } 青豆 现金约${ cash } 元\n` + detail )
629617 if ( rotaryres . status == 1 && rotarytimes >= 97 ) {
630618 $ . msg ( $ . name + " " + nick , subTitle , detail ) //默认前三次为通知
631619 } else if ( rotaryres . status == 1 && rotarytimes % notifyInterval == 0 ) {
0 commit comments