mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-16 06:03:43 +08:00
一些小优化
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user