一些小优化

This commit is contained in:
小易
2024-02-06 13:43:30 +08:00
parent ce3191109c
commit a19c9e08cc
411 changed files with 513 additions and 470 deletions

View File

@@ -1 +1 @@
'use strict';const _0x9221e=_0x25be;(function(_0x4e2dfa,_0x2653df){const _0x2cdbd7=_0x25be,_0x4e52e9=_0x4e2dfa();while(!![]){try{const _0x52cc69=parseInt(_0x2cdbd7(0x132))/0x1+parseInt(_0x2cdbd7(0x12a))/0x2+parseInt(_0x2cdbd7(0x122))/0x3+-parseInt(_0x2cdbd7(0x126))/0x4+parseInt(_0x2cdbd7(0x118))/0x5+parseInt(_0x2cdbd7(0x11e))/0x6*(-parseInt(_0x2cdbd7(0x12d))/0x7)+parseInt(_0x2cdbd7(0x12b))/0x8*(-parseInt(_0x2cdbd7(0x133))/0x9);if(_0x52cc69===_0x2653df)break;else _0x4e52e9['push'](_0x4e52e9['shift']());}catch(_0xe72f9e){_0x4e52e9['push'](_0x4e52e9['shift']());}}}(_0x502e,0x661ba));Object[_0x9221e(0x129)](exports,_0x9221e(0x120),{'value':!![]}),exports[_0x9221e(0x11a)]=exports[_0x9221e(0x127)]=exports[_0x9221e(0x12f)]=void 0x0;const dayjs=require(_0x9221e(0x131));function _0x25be(_0x3ae6da,_0x24a7ce){const _0x502e60=_0x502e();return _0x25be=function(_0x25be70,_0x3d5c84){_0x25be70=_0x25be70-0x116;let _0x24d17c=_0x502e60[_0x25be70];return _0x24d17c;},_0x25be(_0x3ae6da,_0x24a7ce);}require(_0x9221e(0x119));const a=require(_0x9221e(0x125)),b=require(_0x9221e(0x12c));dayjs[_0x9221e(0x12e)](_0x9221e(0x11d)),dayjs['extend'](a),dayjs[_0x9221e(0x117)](b),dayjs['tz'][_0x9221e(0x116)](_0x9221e(0x121));function _0x502e(){const _0x583f67=['format','zh-cn','58236aFNFLK','getTime','__esModule','Asia/Shanghai','1587489pKNMDQ','stringify','YYYY-MM-DD\x20HH:mm:ss','dayjs/plugin/utc','2670716IMqetf','formatCreateOrUpdateDate','updatedAt','defineProperty','1486068GpcSJU','1449152TUEjTJ','dayjs/plugin/timezone','14IKgsrj','locale','formatDate','createdAt','dayjs','156505jPXTet','36VZUDZw','setDefault','extend','2005995yPyrrH','dayjs/locale/zh-cn','isExpired','parse'];_0x502e=function(){return _0x583f67;};return _0x502e();}function formatDate(_0x85f053,_0x39ea4b=_0x9221e(0x124)){const _0x15fc04=_0x9221e;return dayjs(_0x85f053)[_0x15fc04(0x11c)](_0x39ea4b);}exports['formatDate']=formatDate;function formatCreateOrUpdateDate(_0x28be67,_0x2db3b3=_0x9221e(0x124)){const _0x36b553=_0x9221e;if(Array['isArray'](_0x28be67))return _0x28be67['map'](_0x4e1f9b=>{const _0x46f205=_0x25be;return _0x4e1f9b[_0x46f205(0x130)]=(_0x4e1f9b===null||_0x4e1f9b===void 0x0?void 0x0:_0x4e1f9b[_0x46f205(0x130)])?dayjs(_0x4e1f9b[_0x46f205(0x130)])[_0x46f205(0x11c)](_0x2db3b3):dayjs()[_0x46f205(0x11c)](_0x2db3b3),_0x4e1f9b['updatedAt']=(_0x4e1f9b===null||_0x4e1f9b===void 0x0?void 0x0:_0x4e1f9b[_0x46f205(0x128)])?dayjs(_0x4e1f9b[_0x46f205(0x128)])[_0x46f205(0x11c)](_0x2db3b3):dayjs()['format'](_0x2db3b3),_0x4e1f9b;});else{let _0x1e6ed4={};try{_0x1e6ed4=JSON[_0x36b553(0x11b)](JSON[_0x36b553(0x123)](_0x28be67));}catch(_0x2e428a){}return(_0x1e6ed4===null||_0x1e6ed4===void 0x0?void 0x0:_0x1e6ed4[_0x36b553(0x130)])&&(_0x1e6ed4[_0x36b553(0x130)]=dayjs(_0x1e6ed4[_0x36b553(0x130)])[_0x36b553(0x11c)](_0x2db3b3)),(_0x1e6ed4===null||_0x1e6ed4===void 0x0?void 0x0:_0x1e6ed4[_0x36b553(0x128)])&&(_0x1e6ed4[_0x36b553(0x128)]=dayjs(_0x1e6ed4[_0x36b553(0x128)])['format'](_0x2db3b3)),_0x1e6ed4;}}exports[_0x9221e(0x127)]=formatCreateOrUpdateDate;function isExpired(_0x38772f,_0x5a6553){const _0x5449a3=_0x9221e,_0x1eaf1b=new Date(_0x38772f[_0x5449a3(0x11f)]()+_0x5a6553*0x18*0x3c*0x3c*0x3e8),_0x3e8f11=new Date();return _0x3e8f11>_0x1eaf1b;}exports[_0x9221e(0x11a)]=isExpired,exports['default']=dayjs;
'use strict';const _0x1a9b9c=_0x1a49;(function(_0x42c4bb,_0x311397){const _0x2c3d46=_0x1a49,_0x3bec7e=_0x42c4bb();while(!![]){try{const _0x22689e=parseInt(_0x2c3d46(0x16d))/0x1*(-parseInt(_0x2c3d46(0x17b))/0x2)+-parseInt(_0x2c3d46(0x161))/0x3+-parseInt(_0x2c3d46(0x16b))/0x4*(parseInt(_0x2c3d46(0x176))/0x5)+-parseInt(_0x2c3d46(0x177))/0x6+parseInt(_0x2c3d46(0x165))/0x7*(-parseInt(_0x2c3d46(0x171))/0x8)+-parseInt(_0x2c3d46(0x16a))/0x9*(-parseInt(_0x2c3d46(0x17d))/0xa)+-parseInt(_0x2c3d46(0x172))/0xb*(-parseInt(_0x2c3d46(0x174))/0xc);if(_0x22689e===_0x311397)break;else _0x3bec7e['push'](_0x3bec7e['shift']());}catch(_0x2fd72c){_0x3bec7e['push'](_0x3bec7e['shift']());}}}(_0x395f,0x54c26));function _0x395f(){const _0x264833=['dayjs/plugin/timezone','createdAt','836136JnRCvd','YYYY-MM-DD\x20HH:mm:ss','locale','format','1435gIdbIw','getTime','map','formatDate','isArray','549qjEHzX','3524WUsBrP','updatedAt','2tFQidP','isExpired','parse','formatCreateOrUpdateDate','4016RvdumU','2619584NzmvBB','zh-cn','60wdDCCh','dayjs','1345KjRAaj','618606WatUSC','extend','setDefault','stringify','520774WFCRSy','dayjs/plugin/utc','65400QyofoE'];_0x395f=function(){return _0x264833;};return _0x395f();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1a9b9c(0x16e)]=exports[_0x1a9b9c(0x170)]=exports[_0x1a9b9c(0x168)]=void 0x0;const dayjs=require(_0x1a9b9c(0x175));require('dayjs/locale/zh-cn');const a=require(_0x1a9b9c(0x17c)),b=require(_0x1a9b9c(0x17e));dayjs[_0x1a9b9c(0x163)](_0x1a9b9c(0x173)),dayjs[_0x1a9b9c(0x178)](a),dayjs[_0x1a9b9c(0x178)](b),dayjs['tz'][_0x1a9b9c(0x179)]('Asia/Shanghai');function formatDate(_0x369acd,_0x2e8c01='YYYY-MM-DD\x20HH:mm:ss'){const _0x519bf6=_0x1a9b9c;return dayjs(_0x369acd)[_0x519bf6(0x164)](_0x2e8c01);}function _0x1a49(_0x3e8833,_0x145003){const _0x395f46=_0x395f();return _0x1a49=function(_0x1a49a9,_0x466a57){_0x1a49a9=_0x1a49a9-0x160;let _0x48366b=_0x395f46[_0x1a49a9];return _0x48366b;},_0x1a49(_0x3e8833,_0x145003);}exports[_0x1a9b9c(0x168)]=formatDate;function formatCreateOrUpdateDate(_0x2f93f5,_0x5ce5d9=_0x1a9b9c(0x162)){const _0x4a6f6b=_0x1a9b9c;if(Array[_0x4a6f6b(0x169)](_0x2f93f5))return _0x2f93f5[_0x4a6f6b(0x167)](_0xaafa60=>{const _0x1547df=_0x4a6f6b;return _0xaafa60[_0x1547df(0x160)]=(_0xaafa60===null||_0xaafa60===void 0x0?void 0x0:_0xaafa60['createdAt'])?dayjs(_0xaafa60[_0x1547df(0x160)])['format'](_0x5ce5d9):dayjs()[_0x1547df(0x164)](_0x5ce5d9),_0xaafa60[_0x1547df(0x16c)]=(_0xaafa60===null||_0xaafa60===void 0x0?void 0x0:_0xaafa60[_0x1547df(0x16c)])?dayjs(_0xaafa60['updatedAt'])[_0x1547df(0x164)](_0x5ce5d9):dayjs()['format'](_0x5ce5d9),_0xaafa60;});else{let _0x4d06d5={};try{_0x4d06d5=JSON[_0x4a6f6b(0x16f)](JSON[_0x4a6f6b(0x17a)](_0x2f93f5));}catch(_0xf583a5){}return(_0x4d06d5===null||_0x4d06d5===void 0x0?void 0x0:_0x4d06d5[_0x4a6f6b(0x160)])&&(_0x4d06d5[_0x4a6f6b(0x160)]=dayjs(_0x4d06d5[_0x4a6f6b(0x160)])[_0x4a6f6b(0x164)](_0x5ce5d9)),(_0x4d06d5===null||_0x4d06d5===void 0x0?void 0x0:_0x4d06d5[_0x4a6f6b(0x16c)])&&(_0x4d06d5[_0x4a6f6b(0x16c)]=dayjs(_0x4d06d5[_0x4a6f6b(0x16c)])[_0x4a6f6b(0x164)](_0x5ce5d9)),_0x4d06d5;}}exports[_0x1a9b9c(0x170)]=formatCreateOrUpdateDate;function isExpired(_0x27db51,_0x35e7c0){const _0x3d64c1=_0x1a9b9c,_0x52ccea=new Date(_0x27db51[_0x3d64c1(0x166)]()+_0x35e7c0*0x18*0x3c*0x3c*0x3e8),_0xb0b856=new Date();return _0xb0b856>_0x52ccea;}exports[_0x1a9b9c(0x16e)]=isExpired,exports['default']=dayjs;