一些小优化

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 _0x188cb6=_0x112c;(function(_0xbea334,_0x2a8656){const _0x3ae45a=_0x112c,_0x592db7=_0xbea334();while(!![]){try{const _0x1aee70=parseInt(_0x3ae45a(0x103))/0x1+-parseInt(_0x3ae45a(0x118))/0x2*(-parseInt(_0x3ae45a(0x11f))/0x3)+parseInt(_0x3ae45a(0x104))/0x4*(parseInt(_0x3ae45a(0x102))/0x5)+parseInt(_0x3ae45a(0x10e))/0x6+-parseInt(_0x3ae45a(0x10f))/0x7+parseInt(_0x3ae45a(0x108))/0x8+-parseInt(_0x3ae45a(0x123))/0x9*(parseInt(_0x3ae45a(0x11e))/0xa);if(_0x1aee70===_0x2a8656)break;else _0x592db7['push'](_0x592db7['shift']());}catch(_0x1b5c7d){_0x592db7['push'](_0x592db7['shift']());}}}(_0x3e6b,0xdb31e));var __decorate=this&&this[_0x188cb6(0x11d)]||function(_0x2e4305,_0x2a66f0,_0x47bdfb,_0x145c9b){const _0x244cec=_0x188cb6;var _0x4664d1=arguments[_0x244cec(0x122)],_0x143e6f=_0x4664d1<0x3?_0x2a66f0:_0x145c9b===null?_0x145c9b=Object[_0x244cec(0x105)](_0x2a66f0,_0x47bdfb):_0x145c9b,_0x238fc1;if(typeof Reflect===_0x244cec(0xfc)&&typeof Reflect[_0x244cec(0x121)]==='function')_0x143e6f=Reflect[_0x244cec(0x121)](_0x2e4305,_0x2a66f0,_0x47bdfb,_0x145c9b);else{for(var _0x28e732=_0x2e4305[_0x244cec(0x122)]-0x1;_0x28e732>=0x0;_0x28e732--)if(_0x238fc1=_0x2e4305[_0x28e732])_0x143e6f=(_0x4664d1<0x3?_0x238fc1(_0x143e6f):_0x4664d1>0x3?_0x238fc1(_0x2a66f0,_0x47bdfb,_0x143e6f):_0x238fc1(_0x2a66f0,_0x47bdfb))||_0x143e6f;}return _0x4664d1>0x3&&_0x143e6f&&Object[_0x244cec(0x120)](_0x2a66f0,_0x47bdfb,_0x143e6f),_0x143e6f;},__metadata=this&&this[_0x188cb6(0x11c)]||function(_0x40cbc2,_0x53f7d0){const _0x47db39=_0x188cb6;if(typeof Reflect===_0x47db39(0xfc)&&typeof Reflect[_0x47db39(0xfe)]===_0x47db39(0x119))return Reflect[_0x47db39(0xfe)](_0x40cbc2,_0x53f7d0);},DatabaseModule_1;Object[_0x188cb6(0x120)](exports,_0x188cb6(0x111),{'value':!![]}),exports[_0x188cb6(0x107)]=void 0x0;function _0x112c(_0x449dbc,_0x32ba43){const _0x3e6b64=_0x3e6b();return _0x112c=function(_0x112cfb,_0xe7dc0b){_0x112cfb=_0x112cfb-0xfc;let _0x3410a5=_0x3e6b64[_0x112cfb];return _0x3410a5;},_0x112c(_0x449dbc,_0x32ba43);}const common_1=require(_0x188cb6(0x11b)),typeorm_1=require('@nestjs/typeorm'),nestjs_config_1=require('nestjs-config'),typeorm_2=require('typeorm'),database_service_1=require(_0x188cb6(0x115));let DatabaseModule=DatabaseModule_1=class DatabaseModule{constructor(_0x57df00,_0x22109d){const _0x13659d=_0x188cb6;this[_0x13659d(0xfd)]=_0x57df00,this['config']=_0x22109d,this[_0x13659d(0x11a)]=new common_1[(_0x13659d(0x116))](DatabaseModule_1[_0x13659d(0x101)]);}[_0x188cb6(0x10a)](){const _0x4e424c=_0x188cb6,{database:_0x20b5a3}=this['connection'][_0x4e424c(0x114)];this[_0x4e424c(0x11a)][_0x4e424c(0x117)](_0x4e424c(0x10b)+_0x20b5a3+_0x4e424c(0x109));}};DatabaseModule=DatabaseModule_1=__decorate([(0x0,common_1[_0x188cb6(0x112)])({'imports':[typeorm_1[_0x188cb6(0xff)][_0x188cb6(0x100)]({'useFactory':_0x1ccab5=>_0x1ccab5[_0x188cb6(0x10d)](_0x188cb6(0x110)),'inject':[nestjs_config_1[_0x188cb6(0x10c)]]})],'providers':[database_service_1['DatabaseService']]}),__metadata(_0x188cb6(0x106),[typeorm_2[_0x188cb6(0x113)],nestjs_config_1[_0x188cb6(0x10c)]])],DatabaseModule),exports[_0x188cb6(0x107)]=DatabaseModule;function _0x3e6b(){const _0x1ee9ce=['12eKLkzU','defineProperty','decorate','length','16727814bQgVgE','object','connection','metadata','TypeOrmModule','forRootAsync','name','5bzUAVy','133507qzBOEj','2101492cBjXdm','getOwnPropertyDescriptor','design:paramtypes','DatabaseModule','2303608Ssziet','\x20has\x20been\x20connected','onModuleInit','Your\x20MySQL\x20database\x20named\x20','ConfigService','get','5325828MbpqIT','445963PPfoUG','database','__esModule','Module','Connection','options','./database.service','Logger','log','492854mSkmpb','function','logger','@nestjs/common','__metadata','__decorate','10XsUIAm'];_0x3e6b=function(){return _0x1ee9ce;};return _0x3e6b();}
'use strict';function _0x59e8(_0x310b3f,_0x2065d4){const _0x29de65=_0x29de();return _0x59e8=function(_0x59e8f5,_0x3f8dae){_0x59e8f5=_0x59e8f5-0x111;let _0x147b00=_0x29de65[_0x59e8f5];return _0x147b00;},_0x59e8(_0x310b3f,_0x2065d4);}const _0x2eb32a=_0x59e8;(function(_0x3a47fe,_0x27f269){const _0x273e89=_0x59e8,_0x2d4f9f=_0x3a47fe();while(!![]){try{const _0x4eb99d=-parseInt(_0x273e89(0x121))/0x1+parseInt(_0x273e89(0x11e))/0x2+-parseInt(_0x273e89(0x131))/0x3+parseInt(_0x273e89(0x129))/0x4*(parseInt(_0x273e89(0x132))/0x5)+parseInt(_0x273e89(0x117))/0x6*(parseInt(_0x273e89(0x113))/0x7)+parseInt(_0x273e89(0x118))/0x8*(-parseInt(_0x273e89(0x126))/0x9)+parseInt(_0x273e89(0x119))/0xa;if(_0x4eb99d===_0x27f269)break;else _0x2d4f9f['push'](_0x2d4f9f['shift']());}catch(_0x25d188){_0x2d4f9f['push'](_0x2d4f9f['shift']());}}}(_0x29de,0x9b539));var __decorate=this&&this['__decorate']||function(_0x38d852,_0x290403,_0x2702b1,_0x145454){const _0x10785d=_0x59e8;var _0x4f1ee1=arguments[_0x10785d(0x122)],_0x1fc1f6=_0x4f1ee1<0x3?_0x290403:_0x145454===null?_0x145454=Object['getOwnPropertyDescriptor'](_0x290403,_0x2702b1):_0x145454,_0x3e371d;if(typeof Reflect===_0x10785d(0x128)&&typeof Reflect[_0x10785d(0x124)]===_0x10785d(0x12e))_0x1fc1f6=Reflect[_0x10785d(0x124)](_0x38d852,_0x290403,_0x2702b1,_0x145454);else{for(var _0x52e4f9=_0x38d852[_0x10785d(0x122)]-0x1;_0x52e4f9>=0x0;_0x52e4f9--)if(_0x3e371d=_0x38d852[_0x52e4f9])_0x1fc1f6=(_0x4f1ee1<0x3?_0x3e371d(_0x1fc1f6):_0x4f1ee1>0x3?_0x3e371d(_0x290403,_0x2702b1,_0x1fc1f6):_0x3e371d(_0x290403,_0x2702b1))||_0x1fc1f6;}return _0x4f1ee1>0x3&&_0x1fc1f6&&Object[_0x10785d(0x12b)](_0x290403,_0x2702b1,_0x1fc1f6),_0x1fc1f6;},__metadata=this&&this[_0x2eb32a(0x123)]||function(_0x1f2596,_0x5ddd12){const _0x51169e=_0x2eb32a;if(typeof Reflect===_0x51169e(0x128)&&typeof Reflect['metadata']===_0x51169e(0x12e))return Reflect[_0x51169e(0x11a)](_0x1f2596,_0x5ddd12);},DatabaseModule_1;function _0x29de(){const _0x49ec51=['Logger','defineProperty','__esModule','config','function','@nestjs/common','DatabaseModule','1050609KSFpAX','592265tWcVbV','./database.service','DatabaseService','options','connection','49mCcZoh','forRootAsync','Your\x20MySQL\x20database\x20named\x20','design:paramtypes','126384FBQsPq','9531416kvRLyk','20866730TxRQSD','metadata','TypeOrmModule','Module','database','1874632ltJWNA','ConfigService','logger','1230496seAqGV','length','__metadata','decorate','nestjs-config','9fJrMmv','log','object','8cZjvVl'];_0x29de=function(){return _0x49ec51;};return _0x29de();}Object[_0x2eb32a(0x12b)](exports,_0x2eb32a(0x12c),{'value':!![]}),exports[_0x2eb32a(0x130)]=void 0x0;const common_1=require(_0x2eb32a(0x12f)),typeorm_1=require('@nestjs/typeorm'),nestjs_config_1=require(_0x2eb32a(0x125)),typeorm_2=require('typeorm'),database_service_1=require(_0x2eb32a(0x133));let DatabaseModule=DatabaseModule_1=class DatabaseModule{constructor(_0x12451c,_0x2c55b3){const _0x3620c0=_0x2eb32a;this['connection']=_0x12451c,this[_0x3620c0(0x12d)]=_0x2c55b3,this['logger']=new common_1[(_0x3620c0(0x12a))](DatabaseModule_1['name']);}['onModuleInit'](){const _0x5a9ec7=_0x2eb32a,{database:_0x638534}=this[_0x5a9ec7(0x112)][_0x5a9ec7(0x111)];this[_0x5a9ec7(0x120)][_0x5a9ec7(0x127)](_0x5a9ec7(0x115)+_0x638534+'\x20has\x20been\x20connected');}};DatabaseModule=DatabaseModule_1=__decorate([(0x0,common_1[_0x2eb32a(0x11c)])({'imports':[typeorm_1[_0x2eb32a(0x11b)][_0x2eb32a(0x114)]({'useFactory':_0x5eed6d=>_0x5eed6d['get'](_0x2eb32a(0x11d)),'inject':[nestjs_config_1[_0x2eb32a(0x11f)]]})],'providers':[database_service_1[_0x2eb32a(0x134)]]}),__metadata(_0x2eb32a(0x116),[typeorm_2['Connection'],nestjs_config_1['ConfigService']])],DatabaseModule),exports[_0x2eb32a(0x130)]=DatabaseModule;

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
'use strict';const _0x333159=_0x5557;(function(_0x148ac9,_0x203cef){const _0x2f3396=_0x5557,_0x12314a=_0x148ac9();while(!![]){try{const _0x244773=-parseInt(_0x2f3396(0x158))/0x1*(-parseInt(_0x2f3396(0x150))/0x2)+parseInt(_0x2f3396(0x15b))/0x3+-parseInt(_0x2f3396(0x154))/0x4+-parseInt(_0x2f3396(0x14a))/0x5+parseInt(_0x2f3396(0x148))/0x6*(-parseInt(_0x2f3396(0x15d))/0x7)+parseInt(_0x2f3396(0x162))/0x8*(parseInt(_0x2f3396(0x15f))/0x9)+parseInt(_0x2f3396(0x156))/0xa;if(_0x244773===_0x203cef)break;else _0x12314a['push'](_0x12314a['shift']());}catch(_0x65a26){_0x12314a['push'](_0x12314a['shift']());}}}(_0x2244,0xf3499));function _0x2244(){const _0x430fde=['3031QzncIU','DB_USER','361431ZEjiah','isArray','DB_HOST','72ICDyoW','17232wnZVRj','defineProperty','6106725ZMvnET','end','env','mysql2/promise','DB_DATABASE','DB_PASS','40PRJrvP','CREATE\x20DATABASE\x20','execute','__esModule','1889848AdvzMt','SHOW\x20DATABASES\x20LIKE\x20\x27','1641330uIMGRZ','DB_PORT','78131YYthDz','initDatabase','then','5537112KeGvEw','length'];_0x2244=function(){return _0x430fde;};return _0x2244();}Object[_0x333159(0x149)](exports,_0x333159(0x153),{'value':!![]}),exports[_0x333159(0x159)]=void 0x0;function _0x5557(_0x4af349,_0x3cabb3){const _0x224495=_0x2244();return _0x5557=function(_0x55575a,_0x11eb52){_0x55575a=_0x55575a-0x148;let _0x15cdec=_0x224495[_0x55575a];return _0x15cdec;},_0x5557(_0x4af349,_0x3cabb3);}const mysql=require(_0x333159(0x14d)),common_1=require('@nestjs/common');function initDatabase(){const _0x43adb5=_0x333159;mysql['createConnection']({'host':process[_0x43adb5(0x14c)][_0x43adb5(0x161)],'user':process[_0x43adb5(0x14c)][_0x43adb5(0x15e)],'password':process['env'][_0x43adb5(0x14f)],'port':parseInt(process[_0x43adb5(0x14c)][_0x43adb5(0x157)])})[_0x43adb5(0x15a)](async _0x4f9794=>{const _0x3f445d=_0x43adb5,[_0x5f3261]=await _0x4f9794[_0x3f445d(0x152)](_0x3f445d(0x155)+process[_0x3f445d(0x14c)][_0x3f445d(0x14e)]+'\x27');Array[_0x3f445d(0x160)](_0x5f3261)&&_0x5f3261[_0x3f445d(0x15c)]===0x0&&(await _0x4f9794[_0x3f445d(0x152)](_0x3f445d(0x151)+process[_0x3f445d(0x14c)][_0x3f445d(0x14e)]),common_1['Logger']['log']('数据库创建成功['+process['env'][_0x3f445d(0x14e)]+']')),await _0x4f9794[_0x3f445d(0x14b)]();});}exports[_0x333159(0x159)]=initDatabase;
'use strict';const _0x30c1e6=_0x394a;function _0x17a8(){const _0x122fd1=['length','14236SlCGJr','DB_PORT','415YqDqAZ','7GobUAV','Logger','mysql2/promise','DB_HOST','DB_PASS','execute','__esModule','565630xeRGDy','447090nqSYWL','DB_USER','68044tRuLAI','isArray','716776Mxnmkl','env','2662074NTbDnv','297459RxosIi','log','createConnection','SHOW\x20DATABASES\x20LIKE\x20\x27','数据库创建成功[','then','initDatabase','DB_DATABASE','@nestjs/common'];_0x17a8=function(){return _0x122fd1;};return _0x17a8();}(function(_0x2b5ed5,_0x3a1b31){const _0x263aef=_0x394a,_0x4d2f23=_0x2b5ed5();while(!![]){try{const _0x51a2b0=-parseInt(_0x263aef(0xf1))/0x1+parseInt(_0x263aef(0xee))/0x2+parseInt(_0x263aef(0xf6))/0x3+parseInt(_0x263aef(0xe4))/0x4*(parseInt(_0x263aef(0xe6))/0x5)+-parseInt(_0x263aef(0xef))/0x6+-parseInt(_0x263aef(0xe7))/0x7*(parseInt(_0x263aef(0xf3))/0x8)+-parseInt(_0x263aef(0xf5))/0x9;if(_0x51a2b0===_0x3a1b31)break;else _0x4d2f23['push'](_0x4d2f23['shift']());}catch(_0x4b048e){_0x4d2f23['push'](_0x4d2f23['shift']());}}}(_0x17a8,0x247af));Object['defineProperty'](exports,_0x30c1e6(0xed),{'value':!![]}),exports[_0x30c1e6(0xfc)]=void 0x0;function _0x394a(_0x22827a,_0x1ff3ed){const _0x17a8bb=_0x17a8();return _0x394a=function(_0x394ae6,_0x2dc6ea){_0x394ae6=_0x394ae6-0xe1;let _0x1e425c=_0x17a8bb[_0x394ae6];return _0x1e425c;},_0x394a(_0x22827a,_0x1ff3ed);}const mysql=require(_0x30c1e6(0xe9)),common_1=require(_0x30c1e6(0xe2));function initDatabase(){const _0x15efa4=_0x30c1e6;mysql[_0x15efa4(0xf8)]({'host':process[_0x15efa4(0xf4)][_0x15efa4(0xea)],'user':process[_0x15efa4(0xf4)][_0x15efa4(0xf0)],'password':process[_0x15efa4(0xf4)][_0x15efa4(0xeb)],'port':parseInt(process[_0x15efa4(0xf4)][_0x15efa4(0xe5)])})[_0x15efa4(0xfb)](async _0x3b127c=>{const _0x1b68e3=_0x15efa4,[_0x26a68d]=await _0x3b127c[_0x1b68e3(0xec)](_0x1b68e3(0xf9)+process['env'][_0x1b68e3(0xe1)]+'\x27');Array[_0x1b68e3(0xf2)](_0x26a68d)&&_0x26a68d[_0x1b68e3(0xe3)]===0x0&&(await _0x3b127c[_0x1b68e3(0xec)]('CREATE\x20DATABASE\x20'+process['env'][_0x1b68e3(0xe1)]),common_1[_0x1b68e3(0xe8)][_0x1b68e3(0xf7)](_0x1b68e3(0xfa)+process[_0x1b68e3(0xf4)][_0x1b68e3(0xe1)]+']')),await _0x3b127c['end']();});}exports['initDatabase']=initDatabase;