mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-20 18:26:38 +08:00
1 line
4.0 KiB
JavaScript
1 line
4.0 KiB
JavaScript
'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; |