mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-17 06:33:44 +08:00
一些小优化
This commit is contained in:
@@ -1 +1 @@
|
||||
'use strict';function _0x5d76(_0xab69ca,_0x2f47cd){const _0x47bb8a=_0x47bb();return _0x5d76=function(_0x5d765d,_0xe04454){_0x5d765d=_0x5d765d-0x1c5;let _0x2c2b2e=_0x47bb8a[_0x5d765d];return _0x2c2b2e;},_0x5d76(_0xab69ca,_0x2f47cd);}const _0x2ab07e=_0x5d76;(function(_0x3d48b5,_0x189bea){const _0x10b590=_0x5d76,_0x207555=_0x3d48b5();while(!![]){try{const _0x228f12=-parseInt(_0x10b590(0x1dc))/0x1+parseInt(_0x10b590(0x1c6))/0x2+-parseInt(_0x10b590(0x1e3))/0x3+parseInt(_0x10b590(0x1d7))/0x4+parseInt(_0x10b590(0x1cc))/0x5*(parseInt(_0x10b590(0x1e8))/0x6)+parseInt(_0x10b590(0x1e6))/0x7*(-parseInt(_0x10b590(0x1db))/0x8)+parseInt(_0x10b590(0x1e5))/0x9;if(_0x228f12===_0x189bea)break;else _0x207555['push'](_0x207555['shift']());}catch(_0x205742){_0x207555['push'](_0x207555['shift']());}}}(_0x47bb,0xe83b7));var __decorate=this&&this['__decorate']||function(_0x4101e3,_0x307f14,_0x2033bc,_0x1c720f){const _0x52a2de=_0x5d76;var _0x3fd1b1=arguments[_0x52a2de(0x1cd)],_0x209416=_0x3fd1b1<0x3?_0x307f14:_0x1c720f===null?_0x1c720f=Object['getOwnPropertyDescriptor'](_0x307f14,_0x2033bc):_0x1c720f,_0x83d05e;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x52a2de(0x1de))_0x209416=Reflect[_0x52a2de(0x1da)](_0x4101e3,_0x307f14,_0x2033bc,_0x1c720f);else{for(var _0x174066=_0x4101e3[_0x52a2de(0x1cd)]-0x1;_0x174066>=0x0;_0x174066--)if(_0x83d05e=_0x4101e3[_0x174066])_0x209416=(_0x3fd1b1<0x3?_0x83d05e(_0x209416):_0x3fd1b1>0x3?_0x83d05e(_0x307f14,_0x2033bc,_0x209416):_0x83d05e(_0x307f14,_0x2033bc))||_0x209416;}return _0x3fd1b1>0x3&&_0x209416&&Object[_0x52a2de(0x1e4)](_0x307f14,_0x2033bc,_0x209416),_0x209416;};Object[_0x2ab07e(0x1e4)](exports,'__esModule',{'value':!![]}),exports[_0x2ab07e(0x1d8)]=void 0x0;function _0x47bb(){const _0x411984=['nestjs-config','4559680BuiOPm','RedisCacheModule','Module','decorate','824JvPLKh','527699tWLjsL','ConfigModule','function','ready','REDIS_USER','./redisCache.service','RedisCacheService','3368721FBCzma','defineProperty','10599939bClgtk','94934EPFpdb','error','6QUdfyC','createClient','3251824yZwgOt','REDIS_PASSWORD','./redisCache.controller','debug','Your\x20Redis\x20connection\x20failed\x20|\x20您的\x20Redist\x20连接失败','RedistCacheModule','275560JlbhoU','length','connect','@nestjs/common','Please\x20config\x20Redis\x20config\x20|\x20未配置\x20Redis\x20配置信息\x20请确认配置redis服务以获得更好的体验','Your\x20Redis\x20connection\x20successful','Logger','ConfigService','REDIS_CLIENT','env'];_0x47bb=function(){return _0x411984;};return _0x47bb();}const common_1=require(_0x2ab07e(0x1cf)),redisCache_service_1=require(_0x2ab07e(0x1e1)),redisCache_controller_1=require(_0x2ab07e(0x1c8)),nestjs_config_1=require(_0x2ab07e(0x1d6)),redis_1=require('redis');let RedisCacheModule=class RedisCacheModule{};RedisCacheModule=__decorate([(0x0,common_1['Global'])(),(0x0,common_1[_0x2ab07e(0x1d9)])({'imports':[nestjs_config_1[_0x2ab07e(0x1dd)]],'controllers':[redisCache_controller_1['RedisCacheController']],'providers':[{'provide':'REDIS_CLIENT','useFactory':async _0x4b26b9=>{const _0xa54f6e=_0x2ab07e,_0x6bd613=+process[_0xa54f6e(0x1d5)]['REDIS_PORT'],_0x24c085=process[_0xa54f6e(0x1d5)]['REDIS_HOST'],_0x1bbacc=process[_0xa54f6e(0x1d5)][_0xa54f6e(0x1c7)],_0x51ea78=process['env'][_0xa54f6e(0x1e0)];if(!_0x24c085||!_0x6bd613){common_1[_0xa54f6e(0x1d2)][_0xa54f6e(0x1e7)](_0xa54f6e(0x1d0),_0xa54f6e(0x1cb));return;}const _0x52492c=(0x0,redis_1[_0xa54f6e(0x1c5)])({'socket':{'host':_0x24c085,'port':_0x6bd613},'username':_0x51ea78,'password':_0x1bbacc}),_0x342aeb=await _0x52492c[_0xa54f6e(0x1ce)]();return _0x52492c['on'](_0xa54f6e(0x1df),()=>{const _0x5e2516=_0xa54f6e;common_1[_0x5e2516(0x1d2)][_0x5e2516(0x1c9)](_0x5e2516(0x1d1),'RedistCacheModule');}),_0x52492c['on'](_0xa54f6e(0x1e7),()=>{const _0x174677=_0xa54f6e;common_1[_0x174677(0x1d2)]['error'](_0x174677(0x1ca),_0x174677(0x1cb));}),_0x52492c;},'inject':[nestjs_config_1[_0x2ab07e(0x1d3)]]},redisCache_service_1[_0x2ab07e(0x1e2)]],'exports':[_0x2ab07e(0x1d4)]})],RedisCacheModule),exports[_0x2ab07e(0x1d8)]=RedisCacheModule;
|
||||
'use strict';const _0x1d9c1c=_0x934f;(function(_0x5b680b,_0x382e6c){const _0x1bac44=_0x934f,_0x3c0368=_0x5b680b();while(!![]){try{const _0x1f9db7=-parseInt(_0x1bac44(0xa6))/0x1*(-parseInt(_0x1bac44(0x86))/0x2)+-parseInt(_0x1bac44(0xae))/0x3*(-parseInt(_0x1bac44(0xa0))/0x4)+parseInt(_0x1bac44(0x95))/0x5*(parseInt(_0x1bac44(0xa5))/0x6)+-parseInt(_0x1bac44(0xa2))/0x7*(-parseInt(_0x1bac44(0x91))/0x8)+parseInt(_0x1bac44(0xaf))/0x9+parseInt(_0x1bac44(0x9f))/0xa+-parseInt(_0x1bac44(0x9e))/0xb*(parseInt(_0x1bac44(0xad))/0xc);if(_0x1f9db7===_0x382e6c)break;else _0x3c0368['push'](_0x3c0368['shift']());}catch(_0x217dde){_0x3c0368['push'](_0x3c0368['shift']());}}}(_0x3cce,0x8fb3a));var __decorate=this&&this[_0x1d9c1c(0x9b)]||function(_0x4030a6,_0xd7e2ce,_0x419bd3,_0x57e801){const _0x4142c8=_0x1d9c1c;var _0x29f8c1=arguments[_0x4142c8(0x94)],_0x513580=_0x29f8c1<0x3?_0xd7e2ce:_0x57e801===null?_0x57e801=Object[_0x4142c8(0x98)](_0xd7e2ce,_0x419bd3):_0x57e801,_0x4374cc;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x4142c8(0x8f))_0x513580=Reflect[_0x4142c8(0x97)](_0x4030a6,_0xd7e2ce,_0x419bd3,_0x57e801);else{for(var _0x2711ed=_0x4030a6['length']-0x1;_0x2711ed>=0x0;_0x2711ed--)if(_0x4374cc=_0x4030a6[_0x2711ed])_0x513580=(_0x29f8c1<0x3?_0x4374cc(_0x513580):_0x29f8c1>0x3?_0x4374cc(_0xd7e2ce,_0x419bd3,_0x513580):_0x4374cc(_0xd7e2ce,_0x419bd3))||_0x513580;}return _0x29f8c1>0x3&&_0x513580&&Object[_0x4142c8(0x93)](_0xd7e2ce,_0x419bd3,_0x513580),_0x513580;};function _0x934f(_0xb9c72c,_0x4ab6f8){const _0x3cceab=_0x3cce();return _0x934f=function(_0x934f0e,_0x2a86df){_0x934f0e=_0x934f0e-0x86;let _0x375040=_0x3cceab[_0x934f0e];return _0x375040;},_0x934f(_0xb9c72c,_0x4ab6f8);}Object['defineProperty'](exports,_0x1d9c1c(0xa7),{'value':!![]}),exports['RedisCacheModule']=void 0x0;const common_1=require(_0x1d9c1c(0xab)),redisCache_service_1=require(_0x1d9c1c(0x99)),redisCache_controller_1=require(_0x1d9c1c(0x8a)),nestjs_config_1=require(_0x1d9c1c(0x8b)),redis_1=require('redis');let RedisCacheModule=class RedisCacheModule{};RedisCacheModule=__decorate([(0x0,common_1['Global'])(),(0x0,common_1[_0x1d9c1c(0x8e)])({'imports':[nestjs_config_1[_0x1d9c1c(0xaa)]],'controllers':[redisCache_controller_1[_0x1d9c1c(0x90)]],'providers':[{'provide':'REDIS_CLIENT','useFactory':async _0x532540=>{const _0xf618ad=_0x1d9c1c,_0x258bc2=+process[_0xf618ad(0x9d)][_0xf618ad(0xac)],_0x5925a3=process['env'][_0xf618ad(0x89)],_0x286607=process[_0xf618ad(0x9d)][_0xf618ad(0x92)],_0x227e3d=process[_0xf618ad(0x9d)][_0xf618ad(0x9a)];if(!_0x5925a3||!_0x258bc2){common_1[_0xf618ad(0x87)]['error'](_0xf618ad(0x8d),_0xf618ad(0x96));return;}const _0x4b4a8e=(0x0,redis_1[_0xf618ad(0x88)])({'socket':{'host':_0x5925a3,'port':_0x258bc2},'username':_0x227e3d,'password':_0x286607}),_0x2ceb46=await _0x4b4a8e[_0xf618ad(0xa3)]();return _0x4b4a8e['on'](_0xf618ad(0xa8),()=>{const _0x540b41=_0xf618ad;common_1[_0x540b41(0x87)]['debug'](_0x540b41(0xa9),_0x540b41(0x96));}),_0x4b4a8e['on'](_0xf618ad(0x9c),()=>{const _0x37db33=_0xf618ad;common_1[_0x37db33(0x87)][_0x37db33(0x9c)]('Your\x20Redis\x20connection\x20failed\x20|\x20您的\x20Redist\x20连接失败',_0x37db33(0x96));}),_0x4b4a8e;},'inject':[nestjs_config_1[_0x1d9c1c(0xa1)]]},redisCache_service_1[_0x1d9c1c(0xa4)]],'exports':[_0x1d9c1c(0x8c)]})],RedisCacheModule),exports['RedisCacheModule']=RedisCacheModule;function _0x3cce(){const _0x51afa9=['REDIS_CLIENT','Please\x20config\x20Redis\x20config\x20|\x20未配置\x20Redis\x20配置信息\x20请确认配置redis服务以获得更好的体验','Module','function','RedisCacheController','5802584ILtexk','REDIS_PASSWORD','defineProperty','length','1320lrhPHt','RedistCacheModule','decorate','getOwnPropertyDescriptor','./redisCache.service','REDIS_USER','__decorate','error','env','3227543rXPfFj','4418340kdnRJc','1018184vjBhrC','ConfigService','7QiqFEN','connect','RedisCacheService','13140jCSHqy','1utGsKo','__esModule','ready','Your\x20Redis\x20connection\x20successful','ConfigModule','@nestjs/common','REDIS_PORT','132dVtokC','9UtIHEM','8463843UipOFS','733526QFyizQ','Logger','createClient','REDIS_HOST','./redisCache.controller','nestjs-config'];_0x3cce=function(){return _0x51afa9;};return _0x3cce();}
|
||||
Reference in New Issue
Block a user