@@ -220,6 +220,11 @@ const Device = (function () {
220220 let hour = date . getHours ( )
221221 let minutes = date . getMinutes ( )
222222 let seconds = date . getSeconds ( )
223+ month = month > 9 ? month : "0" + month
224+ day = day > 9 ? day : "0" + day
225+ hour = hour > 9 ? hour : "0" + hour
226+ minutes = minutes > 9 ? minutes : "0" + minutes
227+ seconds = seconds > 9 ? seconds : "0" + seconds
223228 return `${ year } /${ month } /${ day } ${ hour } :${ minutes } :${ seconds } `
224229 } ,
225230 // 获取当前周几
@@ -586,12 +591,12 @@ const Device = (function () {
586591 return u . replace ( / ^ .* Q i h o o B r o w s e r \/ ( [ \d . ] + ) .* $ / , '$1' )
587592 } ,
588593 '360SE' : function ( ) {
589- let hash = { '63' : '10.0' , '55' : '9.1' , '45' : '8.1' , '42' : '8.0' , '31' : '7.0' , '21' : '6.3' }
594+ let hash = { '63' : '10.0' , '55' : '9.1' , '45' : '8.1' , '42' : '8.0' , '31' : '7.0' , '21' : '6.3' }
590595 let chrome_version = u . replace ( / ^ .* C h r o m e \/ ( [ \d ] + ) .* $ / , '$1' )
591596 return hash [ chrome_version ] || ''
592597 } ,
593598 '360EE' : function ( ) {
594- let hash = { '69' : '11.0' , '63' : '9.5' , '55' : '9.0' , '50' : '8.7' , '30' : '7.5' } ;
599+ let hash = { '69' : '11.0' , '63' : '9.5' , '55' : '9.0' , '50' : '8.7' , '30' : '7.5' } ;
595600 let chrome_version = u . replace ( / ^ .* C h r o m e \/ ( [ \d ] + ) .* $ / , '$1' )
596601 return hash [ chrome_version ] || ''
597602 } ,
@@ -772,9 +777,7 @@ const Device = (function () {
772777 */
773778 toLunarDate : function ( date ) {
774779 let now_date = new Date ( )
775- let date_str = date ? date . replaceAll ( '-' ,
776- '/'
777- ) : `${ now_date . getFullYear ( ) } /${ now_date . getMonth ( ) + 1 } /${ now_date . getDate ( ) } `
780+ let date_str = date ? date . replaceAll ( '-' , '/' ) : `${ now_date . getFullYear ( ) } /${ now_date . getMonth ( ) + 1 } /${ now_date . getDate ( ) } `
778781
779782 function transferToLunar ( str ) {
780783 let lunar
0 commit comments