File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const $ = new Env('东东农场');
28
28
console . log ( '\n====================Hello World====================\n' ) ;
29
29
30
30
let cookiesArr = [ ] , cookie = '' , notify , allMessage = '' ;
31
- let newShareCodes = [ ] ;
31
+ let newShareCodes = [ ] , shareCodes = [ ]
32
32
let message = '' , subTitle = '' , option = { } , isFruitFinished = false ;
33
33
const retainWater = $ . isNode ( ) ? ( process . env . retainWater ? process . env . retainWater : 100 ) : ( $ . getdata ( 'retainWater' ) ? $ . getdata ( 'retainWater' ) : 100 ) ; //保留水滴大于多少g,默认100g;
34
34
let jdNotify = false ; //是否关闭通知,false打开通知推送,true关闭通知推送
@@ -38,8 +38,7 @@ const urlSchema = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%2
38
38
let llhelp = true ;
39
39
let WP_APP_TOKEN_ONE = "" ;
40
40
let lnrun = 0 ;
41
- let llgetshare = false ;
42
- let NoNeedCodes = [ ] ;
41
+ let NoNeedCodes = [ ]
43
42
! ( async ( ) => {
44
43
await requireConfig ( ) ;
45
44
for ( let i = 0 ; i < cookiesArr . length ; i ++ ) {
@@ -985,7 +984,7 @@ function shareCodesFormat() {
985
984
} else {
986
985
console . log ( `由于您第${ $ . index } 个京东账号未提供shareCode,将采纳本脚本自带的助力码\n` )
987
986
const tempIndex = $ . index > shareCodes . length ? ( shareCodes . length - 1 ) : ( $ . index - 1 ) ;
988
- newShareCodes = shareCodes [ tempIndex ] . split ( '@' ) ;
987
+ newShareCodes = shareCodes [ tempIndex ] ? shareCodes [ tempIndex ] . split ( '@' ) : [ ]
989
988
}
990
989
const readShareCodeRes = await readShareCode ( ) ;
991
990
if ( readShareCodeRes && readShareCodeRes . code === 200 ) {
You can’t perform that action at this time.
0 commit comments