mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-26 21:26:38 +08:00
1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
'use strict';const _0xf191eb=_0x3406;(function(_0x517bf7,_0x162eb7){const _0x513086=_0x3406,_0x3a616c=_0x517bf7();while(!![]){try{const _0x5349af=parseInt(_0x513086(0x12a))/0x1*(parseInt(_0x513086(0x128))/0x2)+parseInt(_0x513086(0x139))/0x3*(parseInt(_0x513086(0x138))/0x4)+-parseInt(_0x513086(0x12c))/0x5+-parseInt(_0x513086(0x13d))/0x6+-parseInt(_0x513086(0x13b))/0x7+-parseInt(_0x513086(0x132))/0x8*(parseInt(_0x513086(0x12b))/0x9)+parseInt(_0x513086(0x133))/0xa;if(_0x5349af===_0x162eb7)break;else _0x3a616c['push'](_0x3a616c['shift']());}catch(_0x27af6e){_0x3a616c['push'](_0x3a616c['shift']());}}}(_0x2aa4,0x66363));Object[_0xf191eb(0x125)](exports,_0xf191eb(0x140),{'value':!![]}),exports[_0xf191eb(0x136)]=exports[_0xf191eb(0x127)]=exports[_0xf191eb(0x141)]=void 0x0;const dayjs=require(_0xf191eb(0x137));require(_0xf191eb(0x12e));const a=require(_0xf191eb(0x131)),b=require(_0xf191eb(0x126));dayjs[_0xf191eb(0x135)](_0xf191eb(0x12f)),dayjs['extend'](a),dayjs[_0xf191eb(0x13a)](b),dayjs['tz']['setDefault'](_0xf191eb(0x13c));function formatDate(_0x4f5391,_0x4391c4=_0xf191eb(0x13f)){return dayjs(_0x4f5391)['format'](_0x4391c4);}exports[_0xf191eb(0x141)]=formatDate;function formatCreateOrUpdateDate(_0x59bfff,_0x1896f2=_0xf191eb(0x13f)){const _0xe0a4b0=_0xf191eb;if(Array['isArray'](_0x59bfff))return _0x59bfff['map'](_0x1aa712=>{const _0x5a880c=_0x3406;return _0x1aa712['createdAt']=(_0x1aa712===null||_0x1aa712===void 0x0?void 0x0:_0x1aa712[_0x5a880c(0x134)])?dayjs(_0x1aa712[_0x5a880c(0x134)])[_0x5a880c(0x130)](_0x1896f2):dayjs()[_0x5a880c(0x130)](_0x1896f2),_0x1aa712[_0x5a880c(0x129)]=(_0x1aa712===null||_0x1aa712===void 0x0?void 0x0:_0x1aa712[_0x5a880c(0x129)])?dayjs(_0x1aa712[_0x5a880c(0x129)])[_0x5a880c(0x130)](_0x1896f2):dayjs()['format'](_0x1896f2),_0x1aa712;});else{let _0x2990d0={};try{_0x2990d0=JSON['parse'](JSON['stringify'](_0x59bfff));}catch(_0x5b6930){}return(_0x2990d0===null||_0x2990d0===void 0x0?void 0x0:_0x2990d0[_0xe0a4b0(0x134)])&&(_0x2990d0['createdAt']=dayjs(_0x2990d0['createdAt'])['format'](_0x1896f2)),(_0x2990d0===null||_0x2990d0===void 0x0?void 0x0:_0x2990d0[_0xe0a4b0(0x129)])&&(_0x2990d0[_0xe0a4b0(0x129)]=dayjs(_0x2990d0[_0xe0a4b0(0x129)])[_0xe0a4b0(0x130)](_0x1896f2)),_0x2990d0;}}exports['formatCreateOrUpdateDate']=formatCreateOrUpdateDate;function isExpired(_0x186bbc,_0x393c8b){const _0x1cf56b=_0xf191eb,_0x3910b4=new Date(_0x186bbc[_0x1cf56b(0x12d)]()+_0x393c8b*0x18*0x3c*0x3c*0x3e8),_0x3bc94a=new Date();return _0x3bc94a>_0x3910b4;}exports[_0xf191eb(0x136)]=isExpired,exports[_0xf191eb(0x13e)]=dayjs;function _0x3406(_0x159561,_0x102045){const _0x2aa4cc=_0x2aa4();return _0x3406=function(_0x34064f,_0xc24711){_0x34064f=_0x34064f-0x125;let _0x238d84=_0x2aa4cc[_0x34064f];return _0x238d84;},_0x3406(_0x159561,_0x102045);}function _0x2aa4(){const _0x40727b=['getTime','dayjs/locale/zh-cn','zh-cn','format','dayjs/plugin/utc','3736BLfpNE','19699630ubGdLB','createdAt','locale','isExpired','dayjs','2701988GpUYVl','3IZItBj','extend','4559709CkAMnd','Asia/Shanghai','4686888fXrljz','default','YYYY-MM-DD\x20HH:mm:ss','__esModule','formatDate','defineProperty','dayjs/plugin/timezone','formatCreateOrUpdateDate','6vPSHwQ','updatedAt','42885RRgtCj','10233WrmKzy','1959710TaEryb'];_0x2aa4=function(){return _0x40727b;};return _0x2aa4();} |