File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,28 @@ if (isGetCookie = typeof $request !== 'undefined') {
5151 artBody = artBody . split ( "&" ) ,
5252 readTimes = readTimes . split ( "&" )
5353 } else if ( $ . isNode ( ) ) {
54- await youthNode . youth_env ( )
54+ if ( process . env . YOUTH_HEADER && process . env . YOUTH_HEADER . indexOf ( '#' ) > - 1 ) {
55+ cookieYouth = process . env . YOUTH_HEADER . split ( '#' ) ;
56+ } else if ( process . env . YOUTH_HEADER && process . env . YOUTH_HEADER . indexOf ( '\n' ) > - 1 ) {
57+ cookieYouth = process . env . YOUTH_HEADER . split ( '\n' ) ;
58+ } else {
59+ cookieYouth = [ process . env . YOUTH_HEADER ]
60+ } ;
61+ if ( process . env . YOUTH_ARTBODY && process . env . YOUTH_ARTBODY . indexOf ( '&' ) > - 1 ) {
62+ ARTBODYs = process . env . YOUTH_ARTBODY . split ( '&' ) ;
63+ } else if ( process . env . YOUTH_ARTBODY && process . env . YOUTH_ARTBODY . indexOf ( '\n' ) > - 1 ) {
64+ ARTBODYs = process . env . YOUTH_ARTBODY . split ( '\n' ) ;
65+ } else {
66+ ARTBODYs = [ process . env . YOUTH_ARTBODY ]
67+ } ;
68+ if ( process . env . YOUTH_TIME && process . env . YOUTH_TIME . indexOf ( '&' ) > - 1 ) {
69+ READTIME = process . env . YOUTH_TIME . split ( '&' ) ;
70+ } else if ( process . env . YOUTH_TIME && process . env . YOUTH_TIME . indexOf ( '\n' ) > - 1 ) {
71+ READTIME = process . env . YOUTH_TIME . split ( '\n' ) ;
72+ } else {
73+ READTIME = [ process . env . YOUTH_TIME ]
74+ }
75+ }
5576 } ;
5677 Object . keys ( cookieYouth ) . forEach ( ( item ) => {
5778 if ( cookieYouth [ item ] ) {
You can’t perform that action at this time.
0 commit comments