anncic-api 3.2.6 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x546294=a0_0x5776;function a0_0x5776(_0x4e5a47,_0x41e533){var _0xdae893=a0_0x4fe3();return a0_0x5776=function(_0x2a978b,_0x56dcc0){_0x2a978b=_0x2a978b-0x142;var _0x4fe341=_0xdae893[_0x2a978b];return _0x4fe341;},a0_0x5776(_0x4e5a47,_0x41e533);}(function(_0xcfb6df,_0x30fef0){var _0x45025c=a0_0x5776,_0x56f802=_0xcfb6df();while(!![]){try{var _0x526646=-parseInt(_0x45025c(0x153))/0x1*(-parseInt(_0x45025c(0x14a))/0x2)+-parseInt(_0x45025c(0x155))/0x3*(parseInt(_0x45025c(0x150))/0x4)+-parseInt(_0x45025c(0x142))/0x5*(parseInt(_0x45025c(0x15a))/0x6)+-parseInt(_0x45025c(0x151))/0x7+-parseInt(_0x45025c(0x15b))/0x8*(parseInt(_0x45025c(0x145))/0x9)+-parseInt(_0x45025c(0x14e))/0xa+parseInt(_0x45025c(0x154))/0xb*(parseInt(_0x45025c(0x143))/0xc);if(_0x526646===_0x30fef0)break;else _0x56f802['push'](_0x56f802['shift']());}catch(_0x1af08e){_0x56f802['push'](_0x56f802['shift']());}}}(a0_0x4fe3,0x5e592));var a0_0x56dcc0=(function(){var _0x26c969=!![];return function(_0x59e0e1,_0x4f3406){var _0x26a6f4=_0x26c969?function(){if(_0x4f3406){var _0xea27c0=_0x4f3406['apply'](_0x59e0e1,arguments);return _0x4f3406=null,_0xea27c0;}}:function(){};return _0x26c969=![],_0x26a6f4;};}()),a0_0x2a978b=a0_0x56dcc0(this,function(){var _0x265022=a0_0x5776;return a0_0x2a978b[_0x265022(0x149)]()[_0x265022(0x152)](_0x265022(0x147))[_0x265022(0x149)]()['constructor'](a0_0x2a978b)['search'](_0x265022(0x147));});function a0_0x4fe3(){var _0x45f37b=['40ciSYXc','/runtime/.upload','15OGyTAL','314424QiuSUu','name','1282131JyNiUD','xml','(((.+)+)+)+$','_token','toString','2lIyqFC','appDir','20mb','default','2236620ZqTyMj','text','45180wPBzQI','872662GxnEtI','search','510899LIvMVd','704BoJNSS','3frpvpq','json','form','__esModule','defineProperty','1458918MRGaVO'];a0_0x4fe3=function(){return _0x45f37b;};return a0_0x4fe3();}a0_0x2a978b();'use strict';Object[a0_0x546294(0x159)](exports,a0_0x546294(0x158),{'value':!![]}),exports[a0_0x546294(0x14d)]=_0x4f94bd=>{var _0x3c9e7e=a0_0x546294;return{'apitest':!![],'keys':_0x4f94bd[_0x3c9e7e(0x144)],'anncicapi':{'requestKey':_0x3c9e7e(0x148),'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x3c9e7e(0x156),_0x3c9e7e(0x157),_0x3c9e7e(0x14f),_0x3c9e7e(0x146)],'formLimit':'20mb','jsonLimit':_0x3c9e7e(0x14c),'textLimit':_0x3c9e7e(0x14c),'xmlLimit':_0x3c9e7e(0x14c),'enable':!![]},'upload':{'tmpdir':_0x4f94bd[_0x3c9e7e(0x14b)]+_0x3c9e7e(0x15c),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x13e196=a1_0x11f6;function a1_0x11f6(_0x2b98b3,_0x8433e5){var _0x32e1c1=a1_0x4fdc();return a1_0x11f6=function(_0x359afa,_0x1616e2){_0x359afa=_0x359afa-0xb6;var _0x4fdc24=_0x32e1c1[_0x359afa];return _0x4fdc24;},a1_0x11f6(_0x2b98b3,_0x8433e5);}(function(_0x156eab,_0xccec64){var _0xd5daa0=a1_0x11f6,_0x2ebc10=_0x156eab();while(!![]){try{var _0x23622c=parseInt(_0xd5daa0(0xb7))/0x1+parseInt(_0xd5daa0(0xc0))/0x2+-parseInt(_0xd5daa0(0xc6))/0x3*(parseInt(_0xd5daa0(0xbf))/0x4)+parseInt(_0xd5daa0(0xbe))/0x5+parseInt(_0xd5daa0(0xc5))/0x6*(-parseInt(_0xd5daa0(0xb6))/0x7)+parseInt(_0xd5daa0(0xc3))/0x8+-parseInt(_0xd5daa0(0xba))/0x9*(parseInt(_0xd5daa0(0xb8))/0xa);if(_0x23622c===_0xccec64)break;else _0x2ebc10['push'](_0x2ebc10['shift']());}catch(_0x151065){_0x2ebc10['push'](_0x2ebc10['shift']());}}}(a1_0x4fdc,0xf3642));var a1_0x1616e2=(function(){var _0x5783eb=!![];return function(_0x2845b5,_0x5e39db){var _0x3a7073=_0x5783eb?function(){if(_0x5e39db){var _0x2b0377=_0x5e39db['apply'](_0x2845b5,arguments);return _0x5e39db=null,_0x2b0377;}}:function(){};return _0x5783eb=![],_0x3a7073;};}()),a1_0x359afa=a1_0x1616e2(this,function(){var _0x5f0e2f=a1_0x11f6;return a1_0x359afa[_0x5f0e2f(0xc4)]()['search'](_0x5f0e2f(0xc1))[_0x5f0e2f(0xc4)]()[_0x5f0e2f(0xc2)](a1_0x359afa)[_0x5f0e2f(0xbd)]('(((.+)+)+)+$');});a1_0x359afa();'use strict';function a1_0x4fdc(){var _0x1a15b1=['constructor','15219104FBkrjO','toString','1793214SJqOaD','2616INLbwF','28FlzQTJ','1081565juiHJL','8274260cdCpaV','defineProperty','27cqdenL','default','__esModule','search','8415190NhuSLJ','5948jlFrmj','2608714yHZJMU','(((.+)+)+)+$'];a1_0x4fdc=function(){return _0x1a15b1;};return a1_0x4fdc();}Object[a1_0x13e196(0xb9)](exports,a1_0x13e196(0xbc),{'value':!![]}),exports[a1_0x13e196(0xbb)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0xf7ba26=a2_0x3308;(function(_0x144b73,_0x54a104){const _0x58ef09=a2_0x3308,_0x9e686e=_0x144b73();while(!![]){try{const _0x430e29=parseInt(_0x58ef09(0x1c0))/0x1*(-parseInt(_0x58ef09(0x1c6))/0x2)+parseInt(_0x58ef09(0x14c))/0x3+-parseInt(_0x58ef09(0x1b5))/0x4+parseInt(_0x58ef09(0x158))/0x5+parseInt(_0x58ef09(0x198))/0x6*(parseInt(_0x58ef09(0x1bc))/0x7)+parseInt(_0x58ef09(0x150))/0x8*(-parseInt(_0x58ef09(0x169))/0x9)+-parseInt(_0x58ef09(0x19c))/0xa;if(_0x430e29===_0x54a104)break;else _0x9e686e['push'](_0x9e686e['shift']());}catch(_0x58cf49){_0x9e686e['push'](_0x9e686e['shift']());}}}(a2_0x41ea,0xaad23));const a2_0x1deb71=(function(){let _0x5cd712=!![];return function(_0x3498b4,_0x319f05){const _0x49e6f3=_0x5cd712?function(){const _0x50efed=a2_0x3308;if(_0x319f05){const _0x458462=_0x319f05[_0x50efed(0x157)](_0x3498b4,arguments);return _0x319f05=null,_0x458462;}}:function(){};return _0x5cd712=![],_0x49e6f3;};}()),a2_0x438791=a2_0x1deb71(this,function(){const _0x17ef37=a2_0x3308;return a2_0x438791[_0x17ef37(0x141)]()[_0x17ef37(0x1a6)](_0x17ef37(0x1ba))[_0x17ef37(0x141)]()[_0x17ef37(0x140)](a2_0x438791)['search'](_0x17ef37(0x1ba));});a2_0x438791();'use strict';var __decorate=this&&this[a2_0xf7ba26(0x191)]||function(_0x444081,_0xba08f5,_0x126e57,_0x455f59){const _0x299d0a=a2_0xf7ba26;var _0x11e931=arguments[_0x299d0a(0x15b)],_0xf7eb75=_0x11e931<0x3?_0xba08f5:_0x455f59===null?_0x455f59=Object[_0x299d0a(0x175)](_0xba08f5,_0x126e57):_0x455f59,_0x1f3458;if(typeof Reflect===_0x299d0a(0x166)&&typeof Reflect[_0x299d0a(0x19f)]===_0x299d0a(0x193))_0xf7eb75=Reflect[_0x299d0a(0x19f)](_0x444081,_0xba08f5,_0x126e57,_0x455f59);else{for(var _0x3e7aab=_0x444081[_0x299d0a(0x15b)]-0x1;_0x3e7aab>=0x0;_0x3e7aab--)if(_0x1f3458=_0x444081[_0x3e7aab])_0xf7eb75=(_0x11e931<0x3?_0x1f3458(_0xf7eb75):_0x11e931>0x3?_0x1f3458(_0xba08f5,_0x126e57,_0xf7eb75):_0x1f3458(_0xba08f5,_0x126e57))||_0xf7eb75;}return _0x11e931>0x3&&_0xf7eb75&&Object[_0x299d0a(0x14d)](_0xba08f5,_0x126e57,_0xf7eb75),_0xf7eb75;},__metadata=this&&this['__metadata']||function(_0xc678b3,_0x1ba28d){const _0x49f741=a2_0xf7ba26;if(typeof Reflect===_0x49f741(0x166)&&typeof Reflect[_0x49f741(0x189)]===_0x49f741(0x193))return Reflect[_0x49f741(0x189)](_0xc678b3,_0x1ba28d);};Object[a2_0xf7ba26(0x14d)](exports,a2_0xf7ba26(0x179),{'value':!![]}),exports[a2_0xf7ba26(0x183)]=void 0x0;const core_1=require(a2_0xf7ba26(0x171)),core_2=require(a2_0xf7ba26(0x171)),ApiError_1=require(a2_0xf7ba26(0x173)),ApiService_1=require(a2_0xf7ba26(0x159)),action_1=require(a2_0xf7ba26(0x187)),intercept_1=require(a2_0xf7ba26(0x1a2)),fs=require('fs'),koasend=require(a2_0xf7ba26(0x182)),koa=require(a2_0xf7ba26(0x1a1)),upload=require(a2_0xf7ba26(0x16b)),staticFile=require(a2_0xf7ba26(0x195)),crossDomain=require(a2_0xf7ba26(0x139)),ConfigDefault=require(a2_0xf7ba26(0x152)),ConfigProduction=require(a2_0xf7ba26(0x1ac)),anncic=require(a2_0xf7ba26(0x1be)),anncicCache=require(a2_0xf7ba26(0x197)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0xf7ba26(0x19d)),anncicValidator=require(a2_0xf7ba26(0x1ab)),anncicHelper=require(a2_0xf7ba26(0x15e));let CustomConfiguration=exports[a2_0xf7ba26(0x183)]=class CustomConfiguration{async[a2_0xf7ba26(0x1bd)](){const _0x152a9c=a2_0xf7ba26;await this[_0x152a9c(0x16f)](),await this[_0x152a9c(0x143)](),await this[_0x152a9c(0x17b)](),await this[_0x152a9c(0x192)](),await this['hanlderApplications']();}async[a2_0xf7ba26(0x17b)](){}async[a2_0xf7ba26(0x192)](){const _0x114df1=a2_0xf7ba26,_0x6bc819=this[_0x114df1(0x1b0)]['getConfiguration'](),_0x1fa6d0=(0x0,core_1[_0x114df1(0x1c7)])(intercept_1[_0x114df1(0x188)],intercept_1['InterceptTargetTmp'])||{};this[_0x114df1(0x144)][_0x114df1(0x1b4)](action_1[_0x114df1(0x18a)],_0x5ac270=>{const _0x2b534d=_0x5ac270['metadata'];return{'before':async _0x340ea4=>{const _0x421f97=a2_0x3308;var _0x5c1bfc,_0x27bf9d,_0x452d0f,_0x18b3a8;const _0x2359c8=(_0x5c1bfc=_0x340ea4===null||_0x340ea4===void 0x0?void 0x0:_0x340ea4[_0x421f97(0x167)])===null||_0x5c1bfc===void 0x0?void 0x0:_0x5c1bfc[core_2['REQUEST_OBJ_CTX_KEY']],_0x4a41c4=lodash[_0x421f97(0x174)]({},_0x2359c8['request'][_0x421f97(0x190)]||_0x2359c8[_0x421f97(0x13f)][((_0x27bf9d=_0x6bc819===null||_0x6bc819===void 0x0?void 0x0:_0x6bc819['bodyXml'])===null||_0x27bf9d===void 0x0?void 0x0:_0x27bf9d[_0x421f97(0x17d)])||'body']||{},_0x2359c8[_0x421f97(0x13f)][_0x421f97(0x14a)]||{});if(_0x2359c8&&(_0x2b534d===null||_0x2b534d===void 0x0?void 0x0:_0x2b534d['apimit']))try{const _0xa3e0eb=((_0x452d0f=_0x6bc819===null||_0x6bc819===void 0x0?void 0x0:_0x6bc819[_0x421f97(0x17a)])===null||_0x452d0f===void 0x0?void 0x0:_0x452d0f[_0x421f97(0x178)])&&typeof(_0x4a41c4===null||_0x4a41c4===void 0x0?void 0x0:_0x4a41c4[_0x6bc819[_0x421f97(0x17a)][_0x421f97(0x178)]])=='string'?JSON[_0x421f97(0x1a4)](base64_decode(_0x4a41c4[_0x6bc819[_0x421f97(0x17a)][_0x421f97(0x178)]])||'{}')||{}:((_0x18b3a8=_0x2359c8===null||_0x2359c8===void 0x0?void 0x0:_0x2359c8[_0x421f97(0x13f)])===null||_0x18b3a8===void 0x0?void 0x0:_0x18b3a8[_0x421f97(0x172)])||{};if(!this['ApiService'][_0x421f97(0x15c)](_0xa3e0eb))throw new AnnError(ApiError_1[_0x421f97(0x1c9)]['HEADERS_SIGNATURE']);}catch(_0x166cc5){if(_0x166cc5 instanceof AnnError)throw _0x166cc5;else throw new AnnError(ApiError_1['ApiError'][_0x421f97(0x181)]);}},'around':async _0x574f53=>{const _0x25d1be=a2_0x3308;var _0x36613c,_0x5764f4,_0x5445bd;const _0x366cf8=(_0x36613c=_0x574f53===null||_0x574f53===void 0x0?void 0x0:_0x574f53['target'])===null||_0x36613c===void 0x0?void 0x0:_0x36613c[core_2[_0x25d1be(0x184)]];if(_0x366cf8&&(_0x2b534d===null||_0x2b534d===void 0x0?void 0x0:_0x2b534d[_0x25d1be(0x170)])&&((_0x2b534d===null||_0x2b534d===void 0x0?void 0x0:_0x2b534d[_0x25d1be(0x15a)])||typeof(_0x2b534d===null||_0x2b534d===void 0x0?void 0x0:_0x2b534d[_0x25d1be(0x15a)])=='undefined')){if(((_0x5764f4=_0x366cf8[_0x25d1be(0x172)])===null||_0x5764f4===void 0x0?void 0x0:_0x5764f4['device'])&&((_0x5445bd=_0x1fa6d0===null||_0x1fa6d0===void 0x0?void 0x0:_0x1fa6d0[_0x366cf8['headers']['device']])===null||_0x5445bd===void 0x0?void 0x0:_0x5445bd[_0x25d1be(0x15b)])>0x0)for(const _0x357a5a of _0x1fa6d0[_0x366cf8[_0x25d1be(0x172)]['device']]||[]){if(core_1[_0x25d1be(0x15f)][_0x25d1be(0x13e)](_0x357a5a)){const _0x907677=await _0x366cf8['requestContext'][_0x25d1be(0x1b7)](_0x357a5a);typeof(_0x907677===null||_0x907677===void 0x0?void 0x0:_0x907677[_0x25d1be(0x18f)])=='function'?await _0x907677[_0x25d1be(0x18f)](_0x366cf8,typeof(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x1c4)])=='string'&&(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8['_matchedRoute'])?_0x366cf8[_0x25d1be(0x1c4)][_0x25d1be(0x180)]()+'@'+(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x19e)]):undefined,_0x2b534d)&&await _0x907677[_0x25d1be(0x13a)](_0x366cf8,typeof(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8['method'])==_0x25d1be(0x17f)&&(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8['_matchedRoute'])?_0x366cf8[_0x25d1be(0x1c4)][_0x25d1be(0x180)]()+'@'+(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x19e)]):undefined,_0x2b534d):await _0x907677['handler'](_0x366cf8,typeof(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x1c4)])==_0x25d1be(0x17f)&&(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x19e)])?_0x366cf8['method'][_0x25d1be(0x180)]()+'@'+(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x19e)]):undefined,_0x2b534d);}else core_1[_0x25d1be(0x15f)][_0x25d1be(0x1a9)](_0x357a5a)&&await _0x357a5a(_0x366cf8,typeof(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8[_0x25d1be(0x1c4)])==_0x25d1be(0x17f)&&(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8['_matchedRoute'])?_0x366cf8[_0x25d1be(0x1c4)]['toLowerCase']()+'@'+(_0x366cf8===null||_0x366cf8===void 0x0?void 0x0:_0x366cf8['_matchedRoute']):undefined,_0x2b534d);}}return await _0x574f53['proceed'](..._0x574f53[_0x25d1be(0x1c5)]);},'afterThrow':(_0x303d58,_0x213c5f)=>{throw _0x213c5f;}};});}async[a2_0xf7ba26(0x18c)](){const _0x76bb48=a2_0xf7ba26,_0x54499d=this[_0x76bb48(0x1b0)][_0x76bb48(0x161)]();this[_0x76bb48(0x154)][_0x76bb48(0x19b)]([_0x76bb48(0x16c)])[_0x76bb48(0x1a7)](_0x322fef=>{const _0x2b0fcc=_0x76bb48;typeof _0x322fef[_0x2b0fcc(0x13d)]==_0x2b0fcc(0x193)&&_0x322fef[_0x2b0fcc(0x13d)](async(_0x4f5cbc,_0x237ade)=>{const _0x55608c=_0x2b0fcc;var _0x35f4d7,_0x2820e7,_0x123a84,_0x4d9224;if((_0x4f5cbc===null||_0x4f5cbc===void 0x0?void 0x0:_0x4f5cbc[_0x55608c(0x18e)])&&!_0x4f5cbc[_0x55608c(0x18e)][_0x55608c(0x155)](_0x55608c(0x14e))){let _0x1c3522=_0x4f5cbc['host'][_0x55608c(0x1bb)](':');['80','443'][_0x55608c(0x16d)](_0x1c3522===null||_0x1c3522===void 0x0?void 0x0:_0x1c3522[0x1])?_0x4f5cbc[_0x55608c(0x15d)]=''+(!!((_0x2820e7=(_0x35f4d7=_0x4f5cbc===null||_0x4f5cbc===void 0x0?void 0x0:_0x4f5cbc[_0x55608c(0x1c3)])===null||_0x35f4d7===void 0x0?void 0x0:_0x35f4d7['connection'])===null||_0x2820e7===void 0x0?void 0x0:_0x2820e7[_0x55608c(0x199)])||(_0x1c3522===null||_0x1c3522===void 0x0?void 0x0:_0x1c3522[0x1])==_0x55608c(0x156)?'https://':'http://')+_0x1c3522[0x0]:_0x4f5cbc['hosturl']=''+(!!((_0x4d9224=(_0x123a84=_0x4f5cbc===null||_0x4f5cbc===void 0x0?void 0x0:_0x4f5cbc[_0x55608c(0x1c3)])===null||_0x123a84===void 0x0?void 0x0:_0x123a84[_0x55608c(0x196)])===null||_0x4d9224===void 0x0?void 0x0:_0x4d9224[_0x55608c(0x199)])?_0x55608c(0x17e):_0x55608c(0x1a0))+_0x4f5cbc['host'];}await _0x237ade();}),(_0x322fef===null||_0x322fef===void 0x0?void 0x0:_0x322fef[_0x2b0fcc(0x17c)])&&Object[_0x2b0fcc(0x138)](_0x322fef[_0x2b0fcc(0x17c)],{'ok':{'value':function(_0x25dae1,_0x272b7c,_0x400dfb=0x0){return{'code':_0x400dfb,'data':_0x25dae1,'extra':_0x272b7c};}},'input':{'value':function(_0x2e7a0b,_0x400c9e){const _0x3da958=_0x2b0fcc;var _0x369636;const _0x50e1b5=lodash[_0x3da958(0x174)]({},this['request']['body']||this['request'][((_0x369636=_0x54499d===null||_0x54499d===void 0x0?void 0x0:_0x54499d[_0x3da958(0x1a5)])===null||_0x369636===void 0x0?void 0x0:_0x369636[_0x3da958(0x17d)])||'body']||{},this['request'][_0x3da958(0x14a)]||{});return _0x2e7a0b?lodash[_0x3da958(0x1ca)](_0x50e1b5,_0x2e7a0b,_0x400c9e):_0x50e1b5;}},'when':{'value':async function(_0xd63032,_0x522cac){const _0x1fcc71=_0x2b0fcc,_0x3f2a68=this[_0x1fcc71(0x1c1)](_0xd63032,null);if(!lodash[_0x1fcc71(0x151)](_0x3f2a68))return await _0x522cac(_0x3f2a68);}},'only':{'value':function(_0x5c0ac7){const _0x2c8661=_0x2b0fcc,_0xfdd61e={};for(let _0x42135e=0x0;_0x42135e<_0x5c0ac7[_0x2c8661(0x15b)];_0x42135e++){lodash[_0x2c8661(0x1bf)](_0x5c0ac7[_0x42135e])&&_0x5c0ac7[_0x42135e][_0x2c8661(0x15b)]>0x0&&lodash['isString'](_0x5c0ac7[_0x42135e][0x0])&&(_0xfdd61e[_0x5c0ac7[_0x42135e][0x0]]=this[_0x2c8661(0x1c1)](_0x5c0ac7[_0x42135e][0x0],_0x5c0ac7[_0x42135e][_0x2c8661(0x15b)]>0x1?_0x5c0ac7[_0x42135e][0x1]:null));}return _0xfdd61e;}},'koasend':{'value':function(_0x2c09ae,_0x4f0770){const _0x5af0b3=_0x2b0fcc;if(_0x2c09ae&&!fs[_0x5af0b3(0x13c)](_0x2c09ae)&&!fs[_0x5af0b3(0x13c)](this[_0x5af0b3(0x1c8)]['getAppDir']()+'/'+_0x2c09ae))return _0x5af0b3(0x19a);return _0x2c09ae=fs[_0x5af0b3(0x13c)](_0x2c09ae)?_0x2c09ae:this[_0x5af0b3(0x1c8)][_0x5af0b3(0x185)]()+'/'+_0x2c09ae,this[_0x5af0b3(0x1b2)](_0x4f0770||_0x2c09ae),koasend(this,_0x2c09ae);}}});});}async['loggerConfig'](){const _0x1b7a0f=a2_0xf7ba26;var _0x46cdfc,_0x5cc8a5;if(fs[_0x1b7a0f(0x13c)](this[_0x1b7a0f(0x1c8)]['getBaseDir']()+_0x1b7a0f(0x14f))&&fs[_0x1b7a0f(0x149)](this[_0x1b7a0f(0x1c8)][_0x1b7a0f(0x142)]()+_0x1b7a0f(0x14f))[_0x1b7a0f(0x1b8)]()){const _0x14fa75=this[_0x1b7a0f(0x1b0)][_0x1b7a0f(0x161)](),_0xe3d20f=((_0x46cdfc=_0x14fa75===null||_0x14fa75===void 0x0?void 0x0:_0x14fa75[_0x1b7a0f(0x165)])===null||_0x46cdfc===void 0x0?void 0x0:_0x46cdfc[_0x1b7a0f(0x1b9)])||{};for(const _0x3892f7 of fs[_0x1b7a0f(0x1ae)](this[_0x1b7a0f(0x1c8)]['getBaseDir']()+_0x1b7a0f(0x14f))){if(!fs[_0x1b7a0f(0x149)](this[_0x1b7a0f(0x1c8)][_0x1b7a0f(0x142)]()+_0x1b7a0f(0x16e)+_0x3892f7)[_0x1b7a0f(0x1b8)]())continue;if(_0xe3d20f===null||_0xe3d20f===void 0x0?void 0x0:_0xe3d20f[_0x3892f7])continue;_0xe3d20f[_0x3892f7]=Object[_0x1b7a0f(0x14b)]({},((_0x5cc8a5=_0x14fa75===null||_0x14fa75===void 0x0?void 0x0:_0x14fa75[_0x1b7a0f(0x165)])===null||_0x5cc8a5===void 0x0?void 0x0:_0x5cc8a5[_0x1b7a0f(0x1b6)])||{'maxSize':'1m','dir':this[_0x1b7a0f(0x1c8)][_0x1b7a0f(0x185)]()+_0x1b7a0f(0x148)},{'enableJSON':!![],'enableConsole':this[_0x1b7a0f(0x1c2)][_0x1b7a0f(0x1a8)](),'fileLogName':_0x3892f7+'.log','dir':this['app'][_0x1b7a0f(0x185)]()+'/runtime/apps-'+_0x3892f7+'-log'});}Object[_0x1b7a0f(0x163)](_0xe3d20f)['length']>0x0&&(!_0x14fa75[_0x1b7a0f(0x165)]&&(_0x14fa75[_0x1b7a0f(0x165)]={'default':{'maxSize':'1m','dir':this[_0x1b7a0f(0x1c8)]['getAppDir']()+_0x1b7a0f(0x148)}}),_0x14fa75[_0x1b7a0f(0x165)]['clients']=_0xe3d20f),this[_0x1b7a0f(0x1b0)][_0x1b7a0f(0x177)](_0x14fa75);}}async[a2_0xf7ba26(0x16f)](){const _0x35cc68=a2_0xf7ba26;var _0xe817bf,_0x455a93,_0x5646d2,_0x1ecf7f,_0x30b816,_0x2797cb;const _0x44ff92=this[_0x35cc68(0x1b0)][_0x35cc68(0x161)]();((_0x455a93=(_0xe817bf=_0x44ff92===null||_0x44ff92===void 0x0?void 0x0:_0x44ff92[_0x35cc68(0x17a)])===null||_0xe817bf===void 0x0?void 0x0:_0xe817bf[_0x35cc68(0x168)])===null||_0x455a93===void 0x0?void 0x0:_0x455a93[_0x35cc68(0x1aa)])&&Object['keys'](_0x44ff92[_0x35cc68(0x17a)][_0x35cc68(0x168)])[_0x35cc68(0x15b)]>0x1&&delete _0x44ff92['anncicapi'][_0x35cc68(0x168)][_0x35cc68(0x1aa)];if((_0x5646d2=_0x44ff92===null||_0x44ff92===void 0x0?void 0x0:_0x44ff92[_0x35cc68(0x1ad)])===null||_0x5646d2===void 0x0?void 0x0:_0x5646d2[_0x35cc68(0x1a3)])for(const _0x1239ad in _0x44ff92[_0x35cc68(0x1ad)][_0x35cc68(0x1a3)]){((_0x1ecf7f=_0x44ff92[_0x35cc68(0x1ad)][_0x35cc68(0x1a3)][_0x1239ad])===null||_0x1ecf7f===void 0x0?void 0x0:_0x1ecf7f[_0x35cc68(0x18b)])&&typeof((_0x30b816=_0x44ff92[_0x35cc68(0x1ad)][_0x35cc68(0x1a3)][_0x1239ad])===null||_0x30b816===void 0x0?void 0x0:_0x30b816[_0x35cc68(0x18b)])=='string'&&!fs[_0x35cc68(0x13c)](_0x44ff92[_0x35cc68(0x1ad)][_0x35cc68(0x1a3)][_0x1239ad][_0x35cc68(0x18b)])&&(fs[_0x35cc68(0x194)](_0x44ff92['staticFile'][_0x35cc68(0x1a3)][_0x1239ad][_0x35cc68(0x18b)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x44ff92[_0x35cc68(0x1ad)]['dirs'][_0x1239ad][_0x35cc68(0x18b)]));}((_0x2797cb=_0x44ff92===null||_0x44ff92===void 0x0?void 0x0:_0x44ff92['upload'])===null||_0x2797cb===void 0x0?void 0x0:_0x2797cb['tmpdir'])&&!fs[_0x35cc68(0x13c)](_0x44ff92['upload'][_0x35cc68(0x145)])&&(fs[_0x35cc68(0x194)](_0x44ff92[_0x35cc68(0x164)]['tmpdir'],{'recursive':!![]}),console[_0x35cc68(0x162)](_0x35cc68(0x1af)+_0x44ff92['upload'][_0x35cc68(0x145)])),this[_0x35cc68(0x1b0)]['addObject'](_0x44ff92);}};function a2_0x3308(_0x3a43fc,_0x28b611){const _0x24822b=a2_0x41ea();return a2_0x3308=function(_0x438791,_0x1deb71){_0x438791=_0x438791-0x138;let _0x41ea08=_0x24822b[_0x438791];return _0x41ea08;},a2_0x3308(_0x3a43fc,_0x28b611);}__decorate([(0x0,core_1[a2_0xf7ba26(0x1b1)])(),__metadata(a2_0xf7ba26(0x18d),Object)],CustomConfiguration[a2_0xf7ba26(0x16a)],'app',void 0x0),__decorate([(0x0,core_1[a2_0xf7ba26(0x176)])(),__metadata('design:type',core_2[a2_0xf7ba26(0x1b3)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0xf7ba26(0x176)])(),__metadata(a2_0xf7ba26(0x18d),core_2[a2_0xf7ba26(0x160)])],CustomConfiguration[a2_0xf7ba26(0x16a)],a2_0xf7ba26(0x144),void 0x0),__decorate([(0x0,core_1[a2_0xf7ba26(0x176)])(),__metadata(a2_0xf7ba26(0x18d),core_2[a2_0xf7ba26(0x13b)])],CustomConfiguration['prototype'],a2_0xf7ba26(0x154),void 0x0),__decorate([(0x0,core_1[a2_0xf7ba26(0x176)])(),__metadata(a2_0xf7ba26(0x18d),core_2[a2_0xf7ba26(0x153)])],CustomConfiguration[a2_0xf7ba26(0x16a)],a2_0xf7ba26(0x1c2),void 0x0),__decorate([(0x0,core_1[a2_0xf7ba26(0x176)])(),__metadata('design:type',ApiService_1[a2_0xf7ba26(0x186)])],CustomConfiguration[a2_0xf7ba26(0x16a)],'ApiService',void 0x0),exports[a2_0xf7ba26(0x183)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0xf7ba26(0x146)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0xf7ba26(0x147),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a2_0x41ea(){const _0x3382b0=['./config/config.default','MidwayEnvironmentService','application','startsWith','443','apply','6215450ThGGWC','./service/ApiService','intercept','length','checksign','hosturl','anncic-apihelper','Types','MidwayDecoratorService','getConfiguration','log','keys','upload','midwayLogger','object','target','devices','1518516ftnTIa','prototype','@midwayjs/upload','koa','includes','/apps/','filterConfig','apimit','@midwayjs/core','headers','./exception/ApiError','defaultsDeep','getOwnPropertyDescriptor','Inject','addObject','requestKey','__esModule','anncicapi','checkConfigKeys','context','key','https://','string','toLowerCase','_UNKNOW_','koa-send','CustomConfiguration','REQUEST_OBJ_CTX_KEY','getAppDir','ApiService','./types/action','INTERCEPT_KEY','metadata','ACTION_ROUTE_KEY','dir','hanlderApplications','design:type','host','match','body','__decorate','handlerActionRoute','function','mkdirSync','@midwayjs/static-file','connection','@anncic-api/cache','5844XofvgH','encrypted','文件不存在','getApplications','3122890Kmeora','@anncic-api/typeorm','_matchedRoute','decorate','http://','@midwayjs/koa','./types/intercept','dirs','parse','bodyXml','search','forEach','isDevelopmentEnvironment','isFunction','DEFAULT','@anncic-api/validator','./config/config.production','staticFile','readdirSync','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','config','App','attachment','MidwayConfigService','registerMethodHandler','1626180omwDgQ','default','getAsync','isDirectory','clients','(((.+)+)+)+$','split','3486rreklt','onReady','@anncic-api/core','isArray','1osNufh','input','environment','req','method','args','2228332cXYYnb','getClassMetadata','app','ApiError','get','defineProperties','@midwayjs/cross-domain','handler','MidwayApplicationManager','existsSync','useMiddleware','isClass','request','constructor','toString','getBaseDir','loggerConfig','decorator','tmpdir','Configuration','anncic-api','/runtime','statSync','query','assign','3425967wDakWz','defineProperty','http','/apps','16hUNWRm','isNull'];a2_0x41ea=function(){return _0x3382b0;};return a2_0x41ea();}
|
|
1
|
+
const a2_0x21eb0d=a2_0x4f08;(function(_0x4c92e6,_0x51868a){const _0x525301=a2_0x4f08,_0x403461=_0x4c92e6();while(!![]){try{const _0x2b8218=parseInt(_0x525301(0x17d))/0x1+parseInt(_0x525301(0x144))/0x2*(-parseInt(_0x525301(0x198))/0x3)+-parseInt(_0x525301(0x184))/0x4+-parseInt(_0x525301(0x168))/0x5+parseInt(_0x525301(0x193))/0x6*(parseInt(_0x525301(0x19e))/0x7)+-parseInt(_0x525301(0x153))/0x8*(-parseInt(_0x525301(0x138))/0x9)+parseInt(_0x525301(0x179))/0xa*(parseInt(_0x525301(0x187))/0xb);if(_0x2b8218===_0x51868a)break;else _0x403461['push'](_0x403461['shift']());}catch(_0x3f575c){_0x403461['push'](_0x403461['shift']());}}}(a2_0x113e,0xac196));function a2_0x113e(){const _0x39f010=['ApiError','__decorate','app','isNull','getConfiguration','clients','apply','tmpdir','midwayLogger','@anncic-api/core','host','dirs','9MxkUmn','getClassMetadata','Types','function','args','metadata','handlerActionRoute','checksign','undefined','upload','@anncic-api/validator','anncic-api','2AZmSUE','@anncic-api/cache','bodyXml','https://','./types/intercept','anncicapi','prototype','defaultsDeep','attachment','__metadata','/runtime','toLowerCase','existsSync','getBaseDir','device','1107976xOImzR','./config/config.production','./types/action','match','getAppDir','Inject','addObject','statSync','dir','getAsync','@midwayjs/upload','length','decorator','MidwayApplicationManager','koa','decorate','@anncic-api/event','keys','hanlderApplications','toString','req','4639320EpNPKH','http','_UNKNOW_','/apps/','Configuration','./config/config.default','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','request','./exception/ApiError','isDevelopmentEnvironment','checkConfigKeys','koa-send','defineProperty','get','CustomConfiguration','body','(((.+)+)+)+$','848310sTDoDa','intercept','Anncic-api\x20static-file\x20:\x20mkdir\x20','handler','19178ecLJyk','key','@anncic-api/typeorm','InterceptTargetTmp','string','default','INTERCEPT_KEY','5568888rTkPXY','filterConfig','getOwnPropertyDescriptor','341NbgzUx','environment','connection','query','search','DEFAULT','requestContext','design:type','devices','mkdirSync','target','onReady','440364zRtVgI','staticFile','@midwayjs/static-file','encrypted','apimit','168024ILoFrS','/runtime/apps-','startsWith','MidwayDecoratorService','context','method','28mKpQZr','MidwayEnvironmentService','__esModule','443','log','split','hosturl','MidwayConfigService','loggerConfig','headers','parse','isString','getApplications','_matchedRoute','@midwayjs/core','@midwayjs/koa','http://','input','REQUEST_OBJ_CTX_KEY','object','forEach','ApiService','isClass','config','requestKey','isDirectory','constructor'];a2_0x113e=function(){return _0x39f010;};return a2_0x113e();}const a2_0x4ea62a=(function(){let _0x5a8174=!![];return function(_0x2fd35a,_0x3a3ea6){const _0x4e3f02=_0x5a8174?function(){const _0x1d80a7=a2_0x4f08;if(_0x3a3ea6){const _0x16a11b=_0x3a3ea6[_0x1d80a7(0x132)](_0x2fd35a,arguments);return _0x3a3ea6=null,_0x16a11b;}}:function(){};return _0x5a8174=![],_0x4e3f02;};}()),a2_0x1c5d97=a2_0x4ea62a(this,function(){const _0x235c30=a2_0x4f08;return a2_0x1c5d97[_0x235c30(0x166)]()['search']('(((.+)+)+)+$')[_0x235c30(0x166)]()[_0x235c30(0x12b)](a2_0x1c5d97)[_0x235c30(0x18b)](_0x235c30(0x178));});a2_0x1c5d97();'use strict';var __decorate=this&&this[a2_0x21eb0d(0x12d)]||function(_0x5bb17f,_0x240873,_0x139149,_0x35ad4d){const _0x42141f=a2_0x21eb0d;var _0x5b4df1=arguments[_0x42141f(0x15e)],_0x30f9e6=_0x5b4df1<0x3?_0x240873:_0x35ad4d===null?_0x35ad4d=Object[_0x42141f(0x186)](_0x240873,_0x139149):_0x35ad4d,_0x5f3683;if(typeof Reflect===_0x42141f(0x124)&&typeof Reflect[_0x42141f(0x162)]===_0x42141f(0x13b))_0x30f9e6=Reflect[_0x42141f(0x162)](_0x5bb17f,_0x240873,_0x139149,_0x35ad4d);else{for(var _0x49c2d7=_0x5bb17f[_0x42141f(0x15e)]-0x1;_0x49c2d7>=0x0;_0x49c2d7--)if(_0x5f3683=_0x5bb17f[_0x49c2d7])_0x30f9e6=(_0x5b4df1<0x3?_0x5f3683(_0x30f9e6):_0x5b4df1>0x3?_0x5f3683(_0x240873,_0x139149,_0x30f9e6):_0x5f3683(_0x240873,_0x139149))||_0x30f9e6;}return _0x5b4df1>0x3&&_0x30f9e6&&Object[_0x42141f(0x174)](_0x240873,_0x139149,_0x30f9e6),_0x30f9e6;},__metadata=this&&this[a2_0x21eb0d(0x14d)]||function(_0x978af,_0x1e599f){const _0x150a73=a2_0x21eb0d;if(typeof Reflect===_0x150a73(0x124)&&typeof Reflect[_0x150a73(0x13d)]===_0x150a73(0x13b))return Reflect[_0x150a73(0x13d)](_0x978af,_0x1e599f);};Object['defineProperty'](exports,a2_0x21eb0d(0x1a0),{'value':!![]}),exports[a2_0x21eb0d(0x176)]=void 0x0;const core_1=require(a2_0x21eb0d(0x11f)),core_2=require(a2_0x21eb0d(0x11f)),ApiError_1=require(a2_0x21eb0d(0x170)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x21eb0d(0x155)),intercept_1=require(a2_0x21eb0d(0x148)),fs=require('fs'),koasend=require(a2_0x21eb0d(0x173)),koa=require(a2_0x21eb0d(0x120)),upload=require(a2_0x21eb0d(0x15d)),staticFile=require(a2_0x21eb0d(0x195)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x21eb0d(0x16d)),ConfigProduction=require(a2_0x21eb0d(0x154)),anncic=require(a2_0x21eb0d(0x135)),anncicCache=require(a2_0x21eb0d(0x145)),anncicEvent=require(a2_0x21eb0d(0x163)),anncicTypeorm=require(a2_0x21eb0d(0x17f)),anncicValidator=require(a2_0x21eb0d(0x142)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x21eb0d(0x176)]=class CustomConfiguration{async[a2_0x21eb0d(0x192)](){const _0x53823f=a2_0x21eb0d;await this['filterConfig'](),await this[_0x53823f(0x119)](),await this[_0x53823f(0x172)](),await this['handlerActionRoute'](),await this[_0x53823f(0x165)]();}async[a2_0x21eb0d(0x172)](){}async[a2_0x21eb0d(0x13e)](){const _0x830b7=a2_0x21eb0d,_0x1ec1ce=this[_0x830b7(0x128)][_0x830b7(0x130)](),_0xebb615=(0x0,core_1[_0x830b7(0x139)])(intercept_1[_0x830b7(0x183)],intercept_1[_0x830b7(0x180)])||{};this[_0x830b7(0x15f)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x569596=>{const _0xf4d482=_0x830b7,_0x468b77=_0x569596[_0xf4d482(0x13d)];return{'before':async _0x27bf9e=>{const _0x170f8d=_0xf4d482;var _0x29f372,_0x37098c,_0x317a62,_0x39d65a;const _0x85309b=(_0x29f372=_0x27bf9e===null||_0x27bf9e===void 0x0?void 0x0:_0x27bf9e[_0x170f8d(0x191)])===null||_0x29f372===void 0x0?void 0x0:_0x29f372[core_2[_0x170f8d(0x123)]],_0x366bd6=lodash[_0x170f8d(0x14b)]({},_0x85309b[_0x170f8d(0x16f)][_0x170f8d(0x177)]||_0x85309b[_0x170f8d(0x16f)][((_0x37098c=_0x1ec1ce===null||_0x1ec1ce===void 0x0?void 0x0:_0x1ec1ce[_0x170f8d(0x146)])===null||_0x37098c===void 0x0?void 0x0:_0x37098c[_0x170f8d(0x17e)])||_0x170f8d(0x177)]||{},_0x85309b['request'][_0x170f8d(0x18a)]||{});if(_0x85309b&&(_0x468b77===null||_0x468b77===void 0x0?void 0x0:_0x468b77['apimit']))try{const _0x2a78d4=((_0x317a62=_0x1ec1ce===null||_0x1ec1ce===void 0x0?void 0x0:_0x1ec1ce[_0x170f8d(0x149)])===null||_0x317a62===void 0x0?void 0x0:_0x317a62['requestKey'])&&typeof(_0x366bd6===null||_0x366bd6===void 0x0?void 0x0:_0x366bd6[_0x1ec1ce[_0x170f8d(0x149)][_0x170f8d(0x129)]])==_0x170f8d(0x181)?JSON[_0x170f8d(0x11b)](base64_decode(_0x366bd6[_0x1ec1ce['anncicapi'][_0x170f8d(0x129)]])||'{}')||{}:((_0x39d65a=_0x85309b===null||_0x85309b===void 0x0?void 0x0:_0x85309b['request'])===null||_0x39d65a===void 0x0?void 0x0:_0x39d65a[_0x170f8d(0x11a)])||{};if(!this[_0x170f8d(0x126)][_0x170f8d(0x13f)](_0x2a78d4))throw new AnnError(ApiError_1[_0x170f8d(0x12c)]['HEADERS_SIGNATURE']);}catch(_0x3124d2){if(_0x3124d2 instanceof AnnError)throw _0x3124d2;else throw new AnnError(ApiError_1[_0x170f8d(0x12c)][_0x170f8d(0x16a)]);}},'around':async _0x104064=>{const _0x53cbe0=_0xf4d482;var _0x374a27,_0x3e6e8e,_0x2cdb77;const _0x3c9361=(_0x374a27=_0x104064===null||_0x104064===void 0x0?void 0x0:_0x104064[_0x53cbe0(0x191)])===null||_0x374a27===void 0x0?void 0x0:_0x374a27[core_2[_0x53cbe0(0x123)]];if(_0x3c9361&&(_0x468b77===null||_0x468b77===void 0x0?void 0x0:_0x468b77[_0x53cbe0(0x197)])&&((_0x468b77===null||_0x468b77===void 0x0?void 0x0:_0x468b77[_0x53cbe0(0x17a)])||typeof(_0x468b77===null||_0x468b77===void 0x0?void 0x0:_0x468b77[_0x53cbe0(0x17a)])==_0x53cbe0(0x140))){if(((_0x3e6e8e=_0x3c9361[_0x53cbe0(0x11a)])===null||_0x3e6e8e===void 0x0?void 0x0:_0x3e6e8e[_0x53cbe0(0x152)])&&((_0x2cdb77=_0xebb615===null||_0xebb615===void 0x0?void 0x0:_0xebb615[_0x3c9361[_0x53cbe0(0x11a)][_0x53cbe0(0x152)]])===null||_0x2cdb77===void 0x0?void 0x0:_0x2cdb77['length'])>0x0)for(const _0x4071e7 of _0xebb615[_0x3c9361[_0x53cbe0(0x11a)]['device']]||[]){if(core_1[_0x53cbe0(0x13a)][_0x53cbe0(0x127)](_0x4071e7)){const _0x4e35df=await _0x3c9361[_0x53cbe0(0x18d)][_0x53cbe0(0x15c)](_0x4071e7);typeof(_0x4e35df===null||_0x4e35df===void 0x0?void 0x0:_0x4e35df['match'])==_0x53cbe0(0x13b)?await _0x4e35df[_0x53cbe0(0x156)](_0x3c9361,typeof(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x19d)])==_0x53cbe0(0x181)&&(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361['_matchedRoute'])?_0x3c9361['method'][_0x53cbe0(0x14f)]()+'@'+(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x11e)]):undefined,_0x468b77)&&await _0x4e35df[_0x53cbe0(0x17c)](_0x3c9361,typeof(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x19d)])==_0x53cbe0(0x181)&&(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361['_matchedRoute'])?_0x3c9361['method']['toLowerCase']()+'@'+(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361['_matchedRoute']):undefined,_0x468b77):await _0x4e35df[_0x53cbe0(0x17c)](_0x3c9361,typeof(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x19d)])==_0x53cbe0(0x181)&&(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x11e)])?_0x3c9361[_0x53cbe0(0x19d)][_0x53cbe0(0x14f)]()+'@'+(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x11e)]):undefined,_0x468b77);}else core_1[_0x53cbe0(0x13a)]['isFunction'](_0x4071e7)&&await _0x4071e7(_0x3c9361,typeof(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361['method'])==_0x53cbe0(0x181)&&(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x11e)])?_0x3c9361[_0x53cbe0(0x19d)]['toLowerCase']()+'@'+(_0x3c9361===null||_0x3c9361===void 0x0?void 0x0:_0x3c9361[_0x53cbe0(0x11e)]):undefined,_0x468b77);}}return await _0x104064['proceed'](..._0x104064[_0x53cbe0(0x13c)]);},'afterThrow':(_0x6f9218,_0x39a82b)=>{throw _0x39a82b;}};});}async[a2_0x21eb0d(0x165)](){const _0x1d21f8=a2_0x21eb0d,_0x1b2c38=this[_0x1d21f8(0x128)][_0x1d21f8(0x130)]();this['application'][_0x1d21f8(0x11d)]([_0x1d21f8(0x161)])[_0x1d21f8(0x125)](_0x25cccb=>{const _0x5e68cd=_0x1d21f8;typeof _0x25cccb['useMiddleware']=='function'&&_0x25cccb['useMiddleware'](async(_0x47625d,_0x57d438)=>{const _0x505acc=a2_0x4f08;var _0x4b4ded,_0x5e9dde,_0xbf081b,_0x541c43;if((_0x47625d===null||_0x47625d===void 0x0?void 0x0:_0x47625d[_0x505acc(0x136)])&&!_0x47625d[_0x505acc(0x136)][_0x505acc(0x19a)](_0x505acc(0x169))){let _0x3d04ce=_0x47625d[_0x505acc(0x136)][_0x505acc(0x1a3)](':');['80','443']['includes'](_0x3d04ce===null||_0x3d04ce===void 0x0?void 0x0:_0x3d04ce[0x1])?_0x47625d['hosturl']=''+(!!((_0x5e9dde=(_0x4b4ded=_0x47625d===null||_0x47625d===void 0x0?void 0x0:_0x47625d[_0x505acc(0x167)])===null||_0x4b4ded===void 0x0?void 0x0:_0x4b4ded[_0x505acc(0x189)])===null||_0x5e9dde===void 0x0?void 0x0:_0x5e9dde[_0x505acc(0x196)])||(_0x3d04ce===null||_0x3d04ce===void 0x0?void 0x0:_0x3d04ce[0x1])==_0x505acc(0x1a1)?_0x505acc(0x147):_0x505acc(0x121))+_0x3d04ce[0x0]:_0x47625d[_0x505acc(0x1a4)]=''+(!!((_0x541c43=(_0xbf081b=_0x47625d===null||_0x47625d===void 0x0?void 0x0:_0x47625d['req'])===null||_0xbf081b===void 0x0?void 0x0:_0xbf081b[_0x505acc(0x189)])===null||_0x541c43===void 0x0?void 0x0:_0x541c43[_0x505acc(0x196)])?_0x505acc(0x147):_0x505acc(0x121))+_0x47625d[_0x505acc(0x136)];}await _0x57d438();}),(_0x25cccb===null||_0x25cccb===void 0x0?void 0x0:_0x25cccb[_0x5e68cd(0x19c)])&&Object['defineProperties'](_0x25cccb[_0x5e68cd(0x19c)],{'ok':{'value':function(_0x3b2d67,_0x5e0ecf,_0x2aaffa=0x0){return{'code':_0x2aaffa,'data':_0x3b2d67,'extra':_0x5e0ecf};}},'input':{'value':function(_0x1ed0df,_0x42f26d){const _0x575e3f=_0x5e68cd;var _0x36609a;const _0x3ea865=lodash[_0x575e3f(0x14b)]({},this[_0x575e3f(0x16f)][_0x575e3f(0x177)]||this[_0x575e3f(0x16f)][((_0x36609a=_0x1b2c38===null||_0x1b2c38===void 0x0?void 0x0:_0x1b2c38['bodyXml'])===null||_0x36609a===void 0x0?void 0x0:_0x36609a[_0x575e3f(0x17e)])||'body']||{},this[_0x575e3f(0x16f)][_0x575e3f(0x18a)]||{});return _0x1ed0df?lodash[_0x575e3f(0x175)](_0x3ea865,_0x1ed0df,_0x42f26d):_0x3ea865;}},'when':{'value':async function(_0x74da61,_0xa623bc){const _0x519be6=_0x5e68cd,_0x508a5f=this['input'](_0x74da61,null);if(!lodash[_0x519be6(0x12f)](_0x508a5f))return await _0xa623bc(_0x508a5f);}},'only':{'value':function(_0x20d408){const _0x5ab596=_0x5e68cd,_0x19d954={};for(let _0x232e31=0x0;_0x232e31<_0x20d408['length'];_0x232e31++){lodash['isArray'](_0x20d408[_0x232e31])&&_0x20d408[_0x232e31][_0x5ab596(0x15e)]>0x0&&lodash[_0x5ab596(0x11c)](_0x20d408[_0x232e31][0x0])&&(_0x19d954[_0x20d408[_0x232e31][0x0]]=this[_0x5ab596(0x122)](_0x20d408[_0x232e31][0x0],_0x20d408[_0x232e31][_0x5ab596(0x15e)]>0x1?_0x20d408[_0x232e31][0x1]:null));}return _0x19d954;}},'koasend':{'value':function(_0x8bf520,_0x28ce2c){const _0x592cd5=_0x5e68cd;if(_0x8bf520&&!fs['existsSync'](_0x8bf520)&&!fs[_0x592cd5(0x150)](this[_0x592cd5(0x12e)]['getAppDir']()+'/'+_0x8bf520))return'文件不存在';return _0x8bf520=fs[_0x592cd5(0x150)](_0x8bf520)?_0x8bf520:this[_0x592cd5(0x12e)][_0x592cd5(0x157)]()+'/'+_0x8bf520,this[_0x592cd5(0x14c)](_0x28ce2c||_0x8bf520),koasend(this,_0x8bf520);}}});});}async[a2_0x21eb0d(0x119)](){const _0x85a298=a2_0x21eb0d;var _0x46d491,_0x2dcbe3;if(fs[_0x85a298(0x150)](this[_0x85a298(0x12e)]['getBaseDir']()+'/apps')&&fs['statSync'](this[_0x85a298(0x12e)][_0x85a298(0x151)]()+'/apps')[_0x85a298(0x12a)]()){const _0x5606c2=this[_0x85a298(0x128)][_0x85a298(0x130)](),_0x4d69f6=((_0x46d491=_0x5606c2===null||_0x5606c2===void 0x0?void 0x0:_0x5606c2['midwayLogger'])===null||_0x46d491===void 0x0?void 0x0:_0x46d491[_0x85a298(0x131)])||{};for(const _0x4fdb27 of fs['readdirSync'](this['app'][_0x85a298(0x151)]()+'/apps')){if(!fs[_0x85a298(0x15a)](this[_0x85a298(0x12e)]['getBaseDir']()+_0x85a298(0x16b)+_0x4fdb27)[_0x85a298(0x12a)]())continue;if(_0x4d69f6===null||_0x4d69f6===void 0x0?void 0x0:_0x4d69f6[_0x4fdb27])continue;_0x4d69f6[_0x4fdb27]=Object['assign']({},((_0x2dcbe3=_0x5606c2===null||_0x5606c2===void 0x0?void 0x0:_0x5606c2[_0x85a298(0x134)])===null||_0x2dcbe3===void 0x0?void 0x0:_0x2dcbe3[_0x85a298(0x182)])||{'maxSize':'1m','dir':this[_0x85a298(0x12e)][_0x85a298(0x157)]()+_0x85a298(0x14e)},{'enableJSON':!![],'enableConsole':this[_0x85a298(0x188)][_0x85a298(0x171)](),'fileLogName':_0x4fdb27+'.log','dir':this[_0x85a298(0x12e)][_0x85a298(0x157)]()+_0x85a298(0x199)+_0x4fdb27+'-log'});}Object[_0x85a298(0x164)](_0x4d69f6)[_0x85a298(0x15e)]>0x0&&(!_0x5606c2[_0x85a298(0x134)]&&(_0x5606c2['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x85a298(0x12e)]['getAppDir']()+_0x85a298(0x14e)}}),_0x5606c2['midwayLogger']['clients']=_0x4d69f6),this[_0x85a298(0x128)][_0x85a298(0x159)](_0x5606c2);}}async[a2_0x21eb0d(0x185)](){const _0x1f1db0=a2_0x21eb0d;var _0x5efa7e,_0x2e62b3,_0xe91d1a,_0x3d33a3,_0x502cc0,_0x1672de;const _0x273e51=this[_0x1f1db0(0x128)]['getConfiguration']();((_0x2e62b3=(_0x5efa7e=_0x273e51===null||_0x273e51===void 0x0?void 0x0:_0x273e51['anncicapi'])===null||_0x5efa7e===void 0x0?void 0x0:_0x5efa7e[_0x1f1db0(0x18f)])===null||_0x2e62b3===void 0x0?void 0x0:_0x2e62b3['DEFAULT'])&&Object[_0x1f1db0(0x164)](_0x273e51[_0x1f1db0(0x149)][_0x1f1db0(0x18f)])['length']>0x1&&delete _0x273e51['anncicapi'][_0x1f1db0(0x18f)][_0x1f1db0(0x18c)];if((_0xe91d1a=_0x273e51===null||_0x273e51===void 0x0?void 0x0:_0x273e51[_0x1f1db0(0x194)])===null||_0xe91d1a===void 0x0?void 0x0:_0xe91d1a['dirs'])for(const _0x996ba2 in _0x273e51[_0x1f1db0(0x194)][_0x1f1db0(0x137)]){((_0x3d33a3=_0x273e51[_0x1f1db0(0x194)][_0x1f1db0(0x137)][_0x996ba2])===null||_0x3d33a3===void 0x0?void 0x0:_0x3d33a3['dir'])&&typeof((_0x502cc0=_0x273e51[_0x1f1db0(0x194)][_0x1f1db0(0x137)][_0x996ba2])===null||_0x502cc0===void 0x0?void 0x0:_0x502cc0[_0x1f1db0(0x15b)])==_0x1f1db0(0x181)&&!fs[_0x1f1db0(0x150)](_0x273e51['staticFile'][_0x1f1db0(0x137)][_0x996ba2][_0x1f1db0(0x15b)])&&(fs[_0x1f1db0(0x190)](_0x273e51[_0x1f1db0(0x194)]['dirs'][_0x996ba2][_0x1f1db0(0x15b)],{'recursive':!![]}),console['log'](_0x1f1db0(0x17b)+_0x273e51[_0x1f1db0(0x194)][_0x1f1db0(0x137)][_0x996ba2]['dir']));}((_0x1672de=_0x273e51===null||_0x273e51===void 0x0?void 0x0:_0x273e51[_0x1f1db0(0x141)])===null||_0x1672de===void 0x0?void 0x0:_0x1672de[_0x1f1db0(0x133)])&&!fs[_0x1f1db0(0x150)](_0x273e51[_0x1f1db0(0x141)][_0x1f1db0(0x133)])&&(fs[_0x1f1db0(0x190)](_0x273e51[_0x1f1db0(0x141)][_0x1f1db0(0x133)],{'recursive':!![]}),console[_0x1f1db0(0x1a2)](_0x1f1db0(0x16e)+_0x273e51[_0x1f1db0(0x141)][_0x1f1db0(0x133)])),this[_0x1f1db0(0x128)][_0x1f1db0(0x159)](_0x273e51);}};function a2_0x4f08(_0x1f3ee1,_0x2e892f){const _0x399968=a2_0x113e();return a2_0x4f08=function(_0x1c5d97,_0x4ea62a){_0x1c5d97=_0x1c5d97-0x119;let _0x113ee0=_0x399968[_0x1c5d97];return _0x113ee0;},a2_0x4f08(_0x1f3ee1,_0x2e892f);}__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x21eb0d(0x14a)],'app',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x21eb0d(0x18e),core_2[a2_0x21eb0d(0x1a5)])],CustomConfiguration[a2_0x21eb0d(0x14a)],a2_0x21eb0d(0x128),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x21eb0d(0x18e),core_2[a2_0x21eb0d(0x19b)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x21eb0d(0x158)])(),__metadata(a2_0x21eb0d(0x18e),core_2[a2_0x21eb0d(0x160)])],CustomConfiguration[a2_0x21eb0d(0x14a)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x21eb0d(0x158)])(),__metadata('design:type',core_2[a2_0x21eb0d(0x19f)])],CustomConfiguration[a2_0x21eb0d(0x14a)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x21eb0d(0x158)])(),__metadata('design:type',ApiService_1[a2_0x21eb0d(0x126)])],CustomConfiguration[a2_0x21eb0d(0x14a)],a2_0x21eb0d(0x126),void 0x0),exports[a2_0x21eb0d(0x176)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x21eb0d(0x16c)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x21eb0d(0x143),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x43f73d=a3_0x4e4d;(function(_0x35a318,_0x4dd506){const _0x795a22=a3_0x4e4d,_0x49846d=_0x35a318();while(!![]){try{const _0x4d5373=-parseInt(_0x795a22(0xac))/0x1+-parseInt(_0x795a22(0x86))/0x2+-parseInt(_0x795a22(0x78))/0x3+-parseInt(_0x795a22(0x8b))/0x4*(parseInt(_0x795a22(0x87))/0x5)+parseInt(_0x795a22(0x8f))/0x6+-parseInt(_0x795a22(0x88))/0x7*(-parseInt(_0x795a22(0x9b))/0x8)+parseInt(_0x795a22(0x6f))/0x9*(parseInt(_0x795a22(0x7a))/0xa);if(_0x4d5373===_0x4dd506)break;else _0x49846d['push'](_0x49846d['shift']());}catch(_0x4e9498){_0x49846d['push'](_0x49846d['shift']());}}}(a3_0x91bb,0x839de));function a3_0x91bb(){const _0xe4bfd=['length','/apps/','apply','toString','1074405wbwXob','Controller','search','middlewareIgnore','constructor','assign','\x20文件请放在app/controller/文件下','rootpath','startsWith','match','ActionApi','app/controller/','splice','/controller/','\x20文件请放在apps/','__esModule','split','1541304ANhEkG','module','saveModule','isArray','RequestMapping','parseRoute','createCustomMethodDecorator','apps/','filepath','2690904CsuQhG','replace','160hPCSfA','push','get','endsWith','Validator','join','saveClassMetadata','route','validate','/config.','AppsConfigTmp','apimit','1882992nGExmM','113660aywOEe','7dOcNOi','undefined','basic/controller/','116RDYIzw','-controller','toLowerCase','routerName','3932676cpjwlI','trim','Action','prefix','@anncic-api/validator','-action','(((.+)+)+)+$','getClassMetadata','middleware','validationOptions','ACTION_ROUTE_KEY','@midwayjs/core','5725256pwshDX','ACTION_KEY','post','substring','filter','description','indexOf','string','defineProperty','APPSCONFIG_KEY','intercept','/controller/文件下','existsSync'];a3_0x91bb=function(){return _0xe4bfd;};return a3_0x91bb();}const a3_0x1d16a5=(function(){let _0x3d9d40=!![];return function(_0x468955,_0x19e581){const _0x39fd07=_0x3d9d40?function(){const _0x222995=a3_0x4e4d;if(_0x19e581){const _0x385bce=_0x19e581[_0x222995(0xaa)](_0x468955,arguments);return _0x19e581=null,_0x385bce;}}:function(){};return _0x3d9d40=![],_0x39fd07;};}()),a3_0x4aa5c7=a3_0x1d16a5(this,function(){const _0x468cee=a3_0x4e4d;return a3_0x4aa5c7[_0x468cee(0xab)]()[_0x468cee(0xae)]('(((.+)+)+)+$')[_0x468cee(0xab)]()[_0x468cee(0xb0)](a3_0x4aa5c7)[_0x468cee(0xae)](_0x468cee(0x95));});a3_0x4aa5c7();'use strict';function a3_0x4e4d(_0x39064a,_0x33299f){const _0x2e1db2=a3_0x91bb();return a3_0x4e4d=function(_0x4aa5c7,_0x1d16a5){_0x4aa5c7=_0x4aa5c7-0x65;let _0x91bb78=_0x2e1db2[_0x4aa5c7];return _0x91bb78;},a3_0x4e4d(_0x39064a,_0x33299f);}Object[a3_0x43f73d(0xa3)](exports,a3_0x43f73d(0x6d),{'value':!![]}),exports[a3_0x43f73d(0x74)]=exports[a3_0x43f73d(0x68)]=exports[a3_0x43f73d(0x91)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x43f73d(0x93)),core_1=require(a3_0x43f73d(0x9a)),core_2=require(a3_0x43f73d(0x9a)),action_1=require('../types/action');function Action(_0x2d09ec,_0xee94c0,_0x4da1bd={'middleware':[],'sensitive':!![]}){return _0xb5a0ca=>{const _0x3c50b3=a3_0x4e4d;var _0x3b0ef5;_0x4da1bd['tagName']=_0xee94c0;const _0x4bbe8b=parseRoute(_0x2d09ec);if(_0x4bbe8b[_0x3c50b3(0x70)]){_0x4da1bd[_0x3c50b3(0x92)]=_0x4da1bd['prefix']?'/'+_0x4bbe8b[_0x3c50b3(0x70)]+'/'+_0x4da1bd[_0x3c50b3(0x92)]:'/'+_0x4bbe8b[_0x3c50b3(0x81)];_0x4bbe8b[_0x3c50b3(0x92)]&&(_0x4da1bd[_0x3c50b3(0x92)]='/'+_0x4bbe8b['prefix']+'/'+_0x4da1bd[_0x3c50b3(0x92)]);if(fs[_0x3c50b3(0xa7)](_0x4bbe8b[_0x3c50b3(0x65)]+_0x3c50b3(0xa9)+_0x4bbe8b[_0x3c50b3(0x70)]+_0x3c50b3(0x83)+(lodash[_0x3c50b3(0x7d)](_0x4bbe8b[_0x3c50b3(0x77)],'ts')?'ts':'js'))){const _0x4e3cd7=include(_0x4bbe8b[_0x3c50b3(0x65)]+_0x3c50b3(0xa9)+_0x4bbe8b[_0x3c50b3(0x70)]+'/config.'+(lodash[_0x3c50b3(0x7d)](_0x4bbe8b[_0x3c50b3(0x77)],'ts')?'ts':'js'));if(_0x4e3cd7[_0x3c50b3(0x97)]&&lodash[_0x3c50b3(0x72)](_0x4e3cd7['middleware'])&&_0x4e3cd7[_0x3c50b3(0x97)]['length']>0x0)for(let _0xbff4fd in _0x4e3cd7[_0x3c50b3(0x97)]){if(((_0x3b0ef5=_0x4e3cd7===null||_0x4e3cd7===void 0x0?void 0x0:_0x4e3cd7['middlewareIgnore'])===null||_0x3b0ef5===void 0x0?void 0x0:_0x3b0ef5['length'])>0x0&&_0x4e3cd7[_0x3c50b3(0xaf)][_0x3c50b3(0xa1)](_0x4e3cd7[_0x3c50b3(0x97)][_0xbff4fd])!=-0x1)continue;_0x4da1bd['middleware'][_0x3c50b3(0x7b)](_0x4e3cd7['middleware'][_0xbff4fd]);}const _0xebfee2=(0x0,core_1[_0x3c50b3(0x96)])(action_1[_0x3c50b3(0xa4)],action_1['AppsConfigTmp'])||{};_0xebfee2[''+_0x4bbe8b[_0x3c50b3(0x70)]]=_0x4e3cd7,(0x0,core_1['saveClassMetadata'])(action_1[_0x3c50b3(0xa4)],_0xebfee2,action_1[_0x3c50b3(0x84)]);}_0x4da1bd['prefix']=_0x4da1bd[_0x3c50b3(0x92)][_0x3c50b3(0x8d)]()[_0x3c50b3(0x79)](/\/{2,}/g,'/'),(0x0,core_1[_0x3c50b3(0x71)])(action_1[_0x3c50b3(0x9c)],_0xb5a0ca),(0x0,core_1['Controller'])(_0x4da1bd[_0x3c50b3(0x92)],_0x4da1bd)(_0xb5a0ca),(0x0,core_1[_0x3c50b3(0x80)])(action_1['ACTION_KEY'],{'prefix':_0x4da1bd[_0x3c50b3(0x92)],'pprefix':_0x4bbe8b[_0x3c50b3(0x92)],'module':_0x4bbe8b[_0x3c50b3(0x70)],'filepath':_0x4bbe8b[_0x3c50b3(0x77)],'routerOptions':_0x4da1bd},_0xb5a0ca);}else _0x4da1bd[_0x3c50b3(0x92)]=_0x4da1bd['prefix']?'/'+_0x4da1bd[_0x3c50b3(0x92)]:'/'+_0x4bbe8b[_0x3c50b3(0x81)],_0x4bbe8b[_0x3c50b3(0x92)]&&(_0x4da1bd[_0x3c50b3(0x92)]='/'+_0x4bbe8b[_0x3c50b3(0x92)]+'/'+_0x4da1bd[_0x3c50b3(0x92)]),_0x4da1bd[_0x3c50b3(0x92)]=_0x4da1bd[_0x3c50b3(0x92)][_0x3c50b3(0x8d)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0xb5a0ca),(0x0,core_1[_0x3c50b3(0xad)])(_0x4da1bd['prefix'],_0x4da1bd)(_0xb5a0ca),(0x0,core_1[_0x3c50b3(0x80)])(action_1['ACTION_KEY'],{'prefix':_0x4da1bd[_0x3c50b3(0x92)],'module':_0x4bbe8b[_0x3c50b3(0x70)],'pprefix':_0x4bbe8b[_0x3c50b3(0x92)],'filepath':_0x4bbe8b[_0x3c50b3(0x77)],'routerOptions':_0x4da1bd},_0xb5a0ca);};}exports[a3_0x43f73d(0x91)]=Action,Action[a3_0x43f73d(0x7c)]=function(_0x340a5e,_0x161054='/',_0x123d7e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4e6a30,_0x43ba3e,_0xd95c5e)=>{const _0x396223=a3_0x4e4d;ActionApi(_0x340a5e,_0x396223(0x7c),_0x161054,_0x123d7e)(_0x4e6a30,_0x43ba3e,_0xd95c5e);};},Action[a3_0x43f73d(0x9d)]=function(_0x304192,_0x2c2382='/',_0x34fa58={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5d891d,_0x1a8033,_0x1d5f6d)=>{const _0x250402=a3_0x4e4d;ActionApi(_0x304192,_0x250402(0x9d),_0x2c2382,_0x34fa58)(_0x5d891d,_0x1a8033,_0x1d5f6d);};};function ActionApi(_0x2efbe,_0x5e4607=a3_0x43f73d(0x7c),_0x52dc37='/',_0x6a8992={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2585dc,_0x2c67e5,_0x2791c8)=>{const _0x29feb1=a3_0x4e4d;var _0x262338,_0x1871dd,_0x47a6fb;!_0x6a8992[_0x29feb1(0x97)]&&(_0x6a8992['middleware']=[]);!((_0x262338=_0x6a8992===null||_0x6a8992===void 0x0?void 0x0:_0x6a8992[_0x29feb1(0x82)])===null||_0x262338===void 0x0?void 0x0:_0x262338[_0x29feb1(0x98)])&&(_0x6a8992['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x29feb1(0xa2)}});if(!_0x52dc37)_0x52dc37='/';else typeof _0x52dc37==_0x29feb1(0xa2)&&(!_0x52dc37[_0x29feb1(0x66)]('/')&&!_0x52dc37[_0x29feb1(0x66)]('-')&&(_0x52dc37='/'+_0x52dc37));typeof _0x6a8992[_0x29feb1(0x85)]==_0x29feb1(0x89)&&(_0x6a8992[_0x29feb1(0x85)]=!![]);if(((_0x1871dd=_0x6a8992===null||_0x6a8992===void 0x0?void 0x0:_0x6a8992[_0x29feb1(0x97)])===null||_0x1871dd===void 0x0?void 0x0:_0x1871dd[_0x29feb1(0xa8)])>0x0&&((_0x47a6fb=_0x6a8992===null||_0x6a8992===void 0x0?void 0x0:_0x6a8992[_0x29feb1(0xaf)])===null||_0x47a6fb===void 0x0?void 0x0:_0x47a6fb[_0x29feb1(0xa8)])>0x0)for(let _0x24693b in _0x6a8992['middleware']){_0x6a8992[_0x29feb1(0xaf)][_0x29feb1(0xa1)](_0x6a8992[_0x29feb1(0x97)][_0x24693b])!==-0x1&&(_0x6a8992[_0x29feb1(0x97)][_0x24693b]=null);}_0x6a8992[_0x29feb1(0x8e)]=_0x2efbe,(0x0,validator_1[_0x29feb1(0x7e)])(_0x6a8992['validate'])(_0x2585dc,_0x2c67e5,_0x2791c8),(0x0,core_2[_0x29feb1(0x73)])(Object[_0x29feb1(0xb1)](_0x6a8992,{'path':_0x52dc37,'requestMethod':(_0x5e4607||'get')[_0x29feb1(0x8d)]()}))(_0x2585dc,_0x2c67e5,_0x2791c8),(0x0,core_2['attachClassMetadata'])(action_1[_0x29feb1(0x99)],{'path':_0x52dc37,'method':_0x2c67e5,'apimit':_0x6a8992['apimit'],'intercept':_0x6a8992['intercept'],'routerName':_0x6a8992[_0x29feb1(0x8e)],'description':_0x6a8992[_0x29feb1(0xa0)],'middleware':(_0x6a8992[_0x29feb1(0x97)]||[])[_0x29feb1(0x9f)](_0x339afd=>!!_0x339afd),'requestMethod':(_0x5e4607||_0x29feb1(0x7c))[_0x29feb1(0x8d)]()},_0x2585dc),(0x0,core_2[_0x29feb1(0x75)])(action_1[_0x29feb1(0x99)],{'path':_0x52dc37,'method':_0x2c67e5,'apimit':_0x6a8992['apimit'],'intercept':_0x6a8992[_0x29feb1(0xa5)],'routerName':_0x6a8992[_0x29feb1(0x8e)],'description':_0x6a8992[_0x29feb1(0xa0)],'middleware':(_0x6a8992['middleware']||[])[_0x29feb1(0x9f)](_0x587a01=>!!_0x587a01),'requestMethod':(_0x5e4607||_0x29feb1(0x7c))[_0x29feb1(0x8d)]()})(_0x2585dc,_0x2c67e5,_0x2791c8);};}exports[a3_0x43f73d(0x68)]=ActionApi;function parseRoute(_0x626248){const _0x3c6364=a3_0x43f73d;_0x626248=_0x626248['replace'](/(\\|\/)/g,'/');const _0x5232ff=process['cwd']()[_0x3c6364(0x79)](/(\\|\/)/g,'/'),_0x1021e6=_0x626248[_0x3c6364(0x9e)](0x0,_0x5232ff['length']+_0x626248[_0x3c6364(0x9e)](_0x5232ff[_0x3c6364(0xa8)]+0x1)[_0x3c6364(0xa1)]('/')+0x1),_0x1b1477=_0x626248[_0x3c6364(0x9e)](_0x1021e6[_0x3c6364(0xa8)]+0x1)[_0x3c6364(0x79)](/(\\|\/)/g,'/'),_0x52ebf6={'route':'','prefix':![],'module':![],'rootpath':_0x1021e6,'filepath':_0x1b1477};if(_0x1b1477[_0x3c6364(0x66)]('app/controller/')||_0x1b1477['startsWith']('basic/controller/')){const _0x26f7ef=_0x1b1477[_0x3c6364(0x9e)]((_0x1b1477['startsWith'](_0x3c6364(0x69))?'app/controller/':_0x3c6364(0x8a))['length'])[_0x3c6364(0x6e)]('/')[_0x3c6364(0x9f)](_0x5681dd=>_0x5681dd&&_0x5681dd['trim']());return _0x26f7ef[_0x3c6364(0xa8)]>0x1&&(_0x52ebf6[_0x3c6364(0x92)]=_0x26f7ef[0x0][_0x3c6364(0x8d)](),_0x26f7ef[_0x3c6364(0x6a)](0x0,0x1)),_0x52ebf6[_0x3c6364(0x81)]=('/'+_0x26f7ef[_0x3c6364(0x7f)]('/'))[_0x3c6364(0x79)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3c6364(0x67)](/[\/|A-Z]*[^A-Z]+/g)[_0x3c6364(0x7f)]('-')['toLowerCase']()[_0x3c6364(0x79)](/\/\-/g,'/'),_0x52ebf6['route'][_0x3c6364(0x7d)](_0x3c6364(0x94))&&(_0x52ebf6[_0x3c6364(0x81)]=_0x52ebf6['route'][_0x3c6364(0x9e)](0x0,_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0xa8)]-0x7)),_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0x7d)](_0x3c6364(0x8c))&&(_0x52ebf6[_0x3c6364(0x81)]=_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0x9e)](0x0,_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0xa8)]-0xb)),_0x52ebf6;}else{if(_0x1b1477[_0x3c6364(0x66)](_0x3c6364(0x76))){const _0x2df4d8=_0x1b1477['substring'](0x0,_0x1b1477[_0x3c6364(0xa1)](_0x3c6364(0xa9))+0x5),_0x405a3d=_0x1b1477['substring'](_0x2df4d8['length']+0x1)[_0x3c6364(0x79)](/(\\|\/)/g,'/')[_0x3c6364(0x6e)]('/')[0x0];if(_0x1b1477['startsWith']('apps/'+_0x405a3d+'/controller/')){const _0xfadd8d=_0x1b1477[_0x3c6364(0x9e)]((_0x2df4d8+'/'+_0x405a3d+_0x3c6364(0x6b))[_0x3c6364(0xa8)])[_0x3c6364(0x6e)]('/')[_0x3c6364(0x9f)](_0x22e016=>_0x22e016&&_0x22e016[_0x3c6364(0x90)]());return _0xfadd8d['length']>0x1&&(_0x52ebf6[_0x3c6364(0x92)]=_0xfadd8d[0x0][_0x3c6364(0x8d)](),_0xfadd8d[_0x3c6364(0x6a)](0x0,0x1)),_0x52ebf6[_0x3c6364(0x70)]=_0x405a3d,_0x52ebf6[_0x3c6364(0x81)]=('/'+_0x405a3d+'/'+_0xfadd8d[_0x3c6364(0x7f)]('/'))[_0x3c6364(0x79)](/(\.ts|\.js)$/,'')[_0x3c6364(0x79)](/\/{2,}/g,'/')[_0x3c6364(0x67)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x3c6364(0x8d)]()['replace'](/\/\-/g,'/'),_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0x7d)](_0x3c6364(0x94))&&(_0x52ebf6[_0x3c6364(0x81)]=_0x52ebf6[_0x3c6364(0x81)]['substring'](0x0,_0x52ebf6[_0x3c6364(0x81)]['length']-0x7)),_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0x7d)](_0x3c6364(0x8c))&&(_0x52ebf6[_0x3c6364(0x81)]=_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0x9e)](0x0,_0x52ebf6[_0x3c6364(0x81)][_0x3c6364(0xa8)]-0xb)),_0x52ebf6;}throw new Error(_0x1b1477+_0x3c6364(0x6c)+_0x405a3d+_0x3c6364(0xa6));}}throw new Error(_0x1b1477+_0x3c6364(0xb2));}exports[a3_0x43f73d(0x74)]=parseRoute;
|
|
1
|
+
const a3_0x399c33=a3_0x3c99;(function(_0x3c6fcc,_0x52e4ed){const _0x1a8777=a3_0x3c99,_0x5b8ac0=_0x3c6fcc();while(!![]){try{const _0x1f499b=parseInt(_0x1a8777(0x1f8))/0x1*(parseInt(_0x1a8777(0x1d7))/0x2)+parseInt(_0x1a8777(0x1e9))/0x3+parseInt(_0x1a8777(0x1fa))/0x4*(parseInt(_0x1a8777(0x20b))/0x5)+-parseInt(_0x1a8777(0x20f))/0x6+-parseInt(_0x1a8777(0x1d8))/0x7+-parseInt(_0x1a8777(0x1df))/0x8*(-parseInt(_0x1a8777(0x1de))/0x9)+-parseInt(_0x1a8777(0x208))/0xa*(parseInt(_0x1a8777(0x1fe))/0xb);if(_0x1f499b===_0x52e4ed)break;else _0x5b8ac0['push'](_0x5b8ac0['shift']());}catch(_0x251a34){_0x5b8ac0['push'](_0x5b8ac0['shift']());}}}(a3_0x505f,0x27fca));const a3_0x4196a1=(function(){let _0x42c31=!![];return function(_0x2b254f,_0x4cc3ee){const _0x3be353=_0x42c31?function(){const _0x3ad858=a3_0x3c99;if(_0x4cc3ee){const _0x558713=_0x4cc3ee[_0x3ad858(0x216)](_0x2b254f,arguments);return _0x4cc3ee=null,_0x558713;}}:function(){};return _0x42c31=![],_0x3be353;};}()),a3_0x1d7402=a3_0x4196a1(this,function(){const _0x3dc389=a3_0x3c99;return a3_0x1d7402['toString']()['search'](_0x3dc389(0x1e2))[_0x3dc389(0x1f3)]()[_0x3dc389(0x1ee)](a3_0x1d7402)['search'](_0x3dc389(0x1e2));});a3_0x1d7402();function a3_0x3c99(_0x2830a9,_0x45ecb6){const _0x2aa9b7=a3_0x505f();return a3_0x3c99=function(_0x1d7402,_0x4196a1){_0x1d7402=_0x1d7402-0x1d5;let _0x505f1b=_0x2aa9b7[_0x1d7402];return _0x505f1b;},a3_0x3c99(_0x2830a9,_0x45ecb6);}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x399c33(0x1d6)]=exports[a3_0x399c33(0x206)]=exports[a3_0x399c33(0x202)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x399c33(0x1ff)),core_1=require(a3_0x399c33(0x20c)),core_2=require(a3_0x399c33(0x20c)),action_1=require(a3_0x399c33(0x211));function Action(_0x2e782d,_0x3e99ae,_0x196185={'middleware':[],'sensitive':!![]}){return _0x5f0155=>{const _0x46ad94=a3_0x3c99;var _0x33ef77;_0x196185[_0x46ad94(0x1ed)]=_0x3e99ae;const _0x439014=parseRoute(_0x2e782d);if(_0x439014['module']){_0x196185['prefix']=_0x196185[_0x46ad94(0x1f9)]?'/'+_0x439014[_0x46ad94(0x1dd)]+'/'+_0x196185[_0x46ad94(0x1f9)]:'/'+_0x439014[_0x46ad94(0x1fc)];_0x439014[_0x46ad94(0x1f9)]&&(_0x196185[_0x46ad94(0x1f9)]='/'+_0x439014['prefix']+'/'+_0x196185[_0x46ad94(0x1f9)]);if(fs[_0x46ad94(0x214)](_0x439014[_0x46ad94(0x212)]+'/apps/'+_0x439014[_0x46ad94(0x1dd)]+_0x46ad94(0x1e7)+(lodash[_0x46ad94(0x1e5)](_0x439014[_0x46ad94(0x1f1)],'ts')?'ts':'js'))){const _0x3cf26a=include(_0x439014[_0x46ad94(0x212)]+_0x46ad94(0x203)+_0x439014[_0x46ad94(0x1dd)]+'/config.'+(lodash[_0x46ad94(0x1e5)](_0x439014[_0x46ad94(0x1f1)],'ts')?'ts':'js'));if(_0x3cf26a['middleware']&&lodash['isArray'](_0x3cf26a[_0x46ad94(0x1e4)])&&_0x3cf26a['middleware']['length']>0x0)for(let _0x5f20b5 in _0x3cf26a[_0x46ad94(0x1e4)]){if(((_0x33ef77=_0x3cf26a===null||_0x3cf26a===void 0x0?void 0x0:_0x3cf26a['middlewareIgnore'])===null||_0x33ef77===void 0x0?void 0x0:_0x33ef77[_0x46ad94(0x21c)])>0x0&&_0x3cf26a[_0x46ad94(0x207)][_0x46ad94(0x218)](_0x3cf26a[_0x46ad94(0x1e4)][_0x5f20b5])!=-0x1)continue;_0x196185[_0x46ad94(0x1e4)]['push'](_0x3cf26a[_0x46ad94(0x1e4)][_0x5f20b5]);}const _0x444358=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x444358[''+_0x439014[_0x46ad94(0x1dd)]]=_0x3cf26a,(0x0,core_1[_0x46ad94(0x20d)])(action_1[_0x46ad94(0x1e6)],_0x444358,action_1[_0x46ad94(0x1f0)]);}_0x196185[_0x46ad94(0x1f9)]=_0x196185[_0x46ad94(0x1f9)][_0x46ad94(0x1dc)]()[_0x46ad94(0x1e3)](/\/{2,}/g,'/'),(0x0,core_1[_0x46ad94(0x210)])(action_1[_0x46ad94(0x1db)],_0x5f0155),(0x0,core_1['Controller'])(_0x196185[_0x46ad94(0x1f9)],_0x196185)(_0x5f0155),(0x0,core_1[_0x46ad94(0x20d)])(action_1[_0x46ad94(0x1db)],{'prefix':_0x196185[_0x46ad94(0x1f9)],'pprefix':_0x439014[_0x46ad94(0x1f9)],'module':_0x439014[_0x46ad94(0x1dd)],'filepath':_0x439014['filepath'],'routerOptions':_0x196185},_0x5f0155);}else _0x196185[_0x46ad94(0x1f9)]=_0x196185[_0x46ad94(0x1f9)]?'/'+_0x196185[_0x46ad94(0x1f9)]:'/'+_0x439014[_0x46ad94(0x1fc)],_0x439014['prefix']&&(_0x196185['prefix']='/'+_0x439014[_0x46ad94(0x1f9)]+'/'+_0x196185[_0x46ad94(0x1f9)]),_0x196185[_0x46ad94(0x1f9)]=_0x196185[_0x46ad94(0x1f9)][_0x46ad94(0x1dc)]()[_0x46ad94(0x1e3)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x46ad94(0x1db)],_0x5f0155),(0x0,core_1['Controller'])(_0x196185[_0x46ad94(0x1f9)],_0x196185)(_0x5f0155),(0x0,core_1[_0x46ad94(0x20d)])(action_1[_0x46ad94(0x1db)],{'prefix':_0x196185[_0x46ad94(0x1f9)],'module':_0x439014[_0x46ad94(0x1dd)],'pprefix':_0x439014['prefix'],'filepath':_0x439014[_0x46ad94(0x1f1)],'routerOptions':_0x196185},_0x5f0155);};}exports[a3_0x399c33(0x202)]=Action,Action[a3_0x399c33(0x1f7)]=function(_0x43c751,_0x575c0d='/',_0x206cce={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x57aefa,_0x18fc1d,_0x4a4203)=>{const _0x2a6252=a3_0x3c99;ActionApi(_0x43c751,_0x2a6252(0x1f7),_0x575c0d,_0x206cce)(_0x57aefa,_0x18fc1d,_0x4a4203);};},Action[a3_0x399c33(0x1e1)]=function(_0x40254f,_0x196116='/',_0x46eacb={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x191dde,_0xb1590a,_0x1b52c8)=>{const _0x1b5438=a3_0x3c99;ActionApi(_0x40254f,_0x1b5438(0x1e1),_0x196116,_0x46eacb)(_0x191dde,_0xb1590a,_0x1b52c8);};};function ActionApi(_0x2320a5,_0x5eb7ff='get',_0x27f4a4='/',_0x1e0dce={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x139d83,_0x25dcc8,_0x40ba3f)=>{const _0xbb6040=a3_0x3c99;var _0x3159a7,_0x1bd0c3,_0x5cbfef;!_0x1e0dce['middleware']&&(_0x1e0dce['middleware']=[]);!((_0x3159a7=_0x1e0dce===null||_0x1e0dce===void 0x0?void 0x0:_0x1e0dce[_0xbb6040(0x1f5)])===null||_0x3159a7===void 0x0?void 0x0:_0x3159a7[_0xbb6040(0x1e0)])&&(_0x1e0dce['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x27f4a4)_0x27f4a4='/';else typeof _0x27f4a4==_0xbb6040(0x1f4)&&(!_0x27f4a4['startsWith']('/')&&!_0x27f4a4[_0xbb6040(0x1fb)]('-')&&(_0x27f4a4='/'+_0x27f4a4));typeof _0x1e0dce['apimit']==_0xbb6040(0x213)&&(_0x1e0dce[_0xbb6040(0x200)]=!![]);if(((_0x1bd0c3=_0x1e0dce===null||_0x1e0dce===void 0x0?void 0x0:_0x1e0dce[_0xbb6040(0x1e4)])===null||_0x1bd0c3===void 0x0?void 0x0:_0x1bd0c3[_0xbb6040(0x21c)])>0x0&&((_0x5cbfef=_0x1e0dce===null||_0x1e0dce===void 0x0?void 0x0:_0x1e0dce[_0xbb6040(0x207)])===null||_0x5cbfef===void 0x0?void 0x0:_0x5cbfef['length'])>0x0)for(let _0x5e9800 in _0x1e0dce[_0xbb6040(0x1e4)]){_0x1e0dce[_0xbb6040(0x207)][_0xbb6040(0x218)](_0x1e0dce[_0xbb6040(0x1e4)][_0x5e9800])!==-0x1&&(_0x1e0dce['middleware'][_0x5e9800]=null);}_0x1e0dce[_0xbb6040(0x1d9)]=_0x2320a5,(0x0,validator_1[_0xbb6040(0x215)])(_0x1e0dce['validate'])(_0x139d83,_0x25dcc8,_0x40ba3f),(0x0,core_2[_0xbb6040(0x217)])(Object[_0xbb6040(0x1eb)](_0x1e0dce,{'path':_0x27f4a4,'requestMethod':(_0x5eb7ff||_0xbb6040(0x1f7))[_0xbb6040(0x1dc)]()}))(_0x139d83,_0x25dcc8,_0x40ba3f),(0x0,core_2[_0xbb6040(0x1f6)])(action_1[_0xbb6040(0x20e)],{'path':_0x27f4a4,'method':_0x25dcc8,'apimit':_0x1e0dce[_0xbb6040(0x200)],'intercept':_0x1e0dce['intercept'],'routerName':_0x1e0dce[_0xbb6040(0x1d9)],'description':_0x1e0dce[_0xbb6040(0x21b)],'middleware':(_0x1e0dce[_0xbb6040(0x1e4)]||[])[_0xbb6040(0x1f2)](_0xfdd9c7=>!!_0xfdd9c7),'requestMethod':(_0x5eb7ff||_0xbb6040(0x1f7))[_0xbb6040(0x1dc)]()},_0x139d83),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0xbb6040(0x20e)],{'path':_0x27f4a4,'method':_0x25dcc8,'apimit':_0x1e0dce['apimit'],'intercept':_0x1e0dce[_0xbb6040(0x209)],'routerName':_0x1e0dce[_0xbb6040(0x1d9)],'description':_0x1e0dce['description'],'middleware':(_0x1e0dce[_0xbb6040(0x1e4)]||[])[_0xbb6040(0x1f2)](_0x228e3c=>!!_0x228e3c),'requestMethod':(_0x5eb7ff||_0xbb6040(0x1f7))['toLowerCase']()})(_0x139d83,_0x25dcc8,_0x40ba3f);};}exports[a3_0x399c33(0x206)]=ActionApi;function parseRoute(_0x152c6a){const _0x5cd9a6=a3_0x399c33;_0x152c6a=_0x152c6a['replace'](/(\\|\/)/g,'/');const _0x35e134=process['cwd']()[_0x5cd9a6(0x1e3)](/(\\|\/)/g,'/'),_0x5f57df=_0x152c6a[_0x5cd9a6(0x1d5)](0x0,_0x35e134['length']+_0x152c6a['substring'](_0x35e134[_0x5cd9a6(0x21c)]+0x1)[_0x5cd9a6(0x218)]('/')+0x1),_0x364fdf=_0x152c6a[_0x5cd9a6(0x1d5)](_0x5f57df[_0x5cd9a6(0x21c)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x25c18={'route':'','prefix':![],'module':![],'rootpath':_0x5f57df,'filepath':_0x364fdf};if(_0x364fdf['startsWith'](_0x5cd9a6(0x1ea))||_0x364fdf['startsWith']('basic/controller/')){const _0x40ca4c=_0x364fdf['substring']((_0x364fdf[_0x5cd9a6(0x1fb)](_0x5cd9a6(0x1ea))?_0x5cd9a6(0x1ea):_0x5cd9a6(0x1da))[_0x5cd9a6(0x21c)])[_0x5cd9a6(0x219)]('/')['filter'](_0x1c8602=>_0x1c8602&&_0x1c8602[_0x5cd9a6(0x201)]());return _0x40ca4c['length']>0x1&&(_0x25c18[_0x5cd9a6(0x1f9)]=_0x40ca4c[0x0]['toLowerCase'](),_0x40ca4c[_0x5cd9a6(0x205)](0x0,0x1)),_0x25c18[_0x5cd9a6(0x1fc)]=('/'+_0x40ca4c['join']('/'))[_0x5cd9a6(0x1e3)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x5cd9a6(0x1ef)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x5cd9a6(0x1dc)]()[_0x5cd9a6(0x1e3)](/\/\-/g,'/'),_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x1e5)]('-action')&&(_0x25c18['route']=_0x25c18['route'][_0x5cd9a6(0x1d5)](0x0,_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x21c)]-0x7)),_0x25c18['route'][_0x5cd9a6(0x1e5)](_0x5cd9a6(0x21a))&&(_0x25c18['route']=_0x25c18['route']['substring'](0x0,_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x21c)]-0xb)),_0x25c18;}else{if(_0x364fdf['startsWith'](_0x5cd9a6(0x204))){const _0x664074=_0x364fdf[_0x5cd9a6(0x1d5)](0x0,_0x364fdf[_0x5cd9a6(0x218)](_0x5cd9a6(0x203))+0x5),_0x5ca30b=_0x364fdf[_0x5cd9a6(0x1d5)](_0x664074[_0x5cd9a6(0x21c)]+0x1)[_0x5cd9a6(0x1e3)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x364fdf[_0x5cd9a6(0x1fb)](_0x5cd9a6(0x204)+_0x5ca30b+_0x5cd9a6(0x1fd))){const _0x346d8=_0x364fdf[_0x5cd9a6(0x1d5)]((_0x664074+'/'+_0x5ca30b+'/controller/')[_0x5cd9a6(0x21c)])[_0x5cd9a6(0x219)]('/')['filter'](_0x2c3a6b=>_0x2c3a6b&&_0x2c3a6b[_0x5cd9a6(0x201)]());return _0x346d8[_0x5cd9a6(0x21c)]>0x1&&(_0x25c18[_0x5cd9a6(0x1f9)]=_0x346d8[0x0][_0x5cd9a6(0x1dc)](),_0x346d8['splice'](0x0,0x1)),_0x25c18['module']=_0x5ca30b,_0x25c18['route']=('/'+_0x5ca30b+'/'+_0x346d8[_0x5cd9a6(0x1e8)]('/'))[_0x5cd9a6(0x1e3)](/(\.ts|\.js)$/,'')[_0x5cd9a6(0x1e3)](/\/{2,}/g,'/')[_0x5cd9a6(0x1ef)](/[\/|A-Z]*[^A-Z]+/g)[_0x5cd9a6(0x1e8)]('-')[_0x5cd9a6(0x1dc)]()['replace'](/\/\-/g,'/'),_0x25c18['route'][_0x5cd9a6(0x1e5)]('-action')&&(_0x25c18[_0x5cd9a6(0x1fc)]=_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x1d5)](0x0,_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x21c)]-0x7)),_0x25c18[_0x5cd9a6(0x1fc)]['endsWith']('-controller')&&(_0x25c18[_0x5cd9a6(0x1fc)]=_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x1d5)](0x0,_0x25c18[_0x5cd9a6(0x1fc)][_0x5cd9a6(0x21c)]-0xb)),_0x25c18;}throw new Error(_0x364fdf+_0x5cd9a6(0x1ec)+_0x5ca30b+_0x5cd9a6(0x20a));}}throw new Error(_0x364fdf+_0x5cd9a6(0x21d));}function a3_0x505f(){const _0x37a9bd=['endsWith','APPSCONFIG_KEY','/config.','join','572943fIeNvX','app/controller/','assign','\x20文件请放在apps/','tagName','constructor','match','AppsConfigTmp','filepath','filter','toString','string','validate','attachClassMetadata','get','70872tOjIcs','prefix','72gRHObR','startsWith','route','/controller/','11yyQNHN','@anncic-api/validator','apimit','trim','Action','/apps/','apps/','splice','ActionApi','middlewareIgnore','3705470etteBF','intercept','/controller/文件下','60595RhJIJJ','@midwayjs/core','saveClassMetadata','ACTION_ROUTE_KEY','982788OKirzv','saveModule','../types/action','rootpath','undefined','existsSync','Validator','apply','RequestMapping','indexOf','split','-controller','description','length','\x20文件请放在app/controller/文件下','substring','parseRoute','4HxWIWK','1070769okYhHw','routerName','basic/controller/','ACTION_KEY','toLowerCase','module','27VEvaVo','800616KoYlqC','validationOptions','post','(((.+)+)+)+$','replace','middleware'];a3_0x505f=function(){return _0x37a9bd;};return a3_0x505f();}exports[a3_0x399c33(0x1d6)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0xeec0d7=a4_0x3947;(function(_0x3b3f6c,_0x346e7e){const _0x3649cf=a4_0x3947,_0x1f1319=_0x3b3f6c();while(!![]){try{const _0x3bcdbc=-parseInt(_0x3649cf(0x1ce))/0x1*(-parseInt(_0x3649cf(0x1e9))/0x2)+parseInt(_0x3649cf(0x1db))/0x3+parseInt(_0x3649cf(0x1d6))/0x4+parseInt(_0x3649cf(0x1da))/0x5*(-parseInt(_0x3649cf(0x1e5))/0x6)+-parseInt(_0x3649cf(0x1dd))/0x7+parseInt(_0x3649cf(0x1cf))/0x8+-parseInt(_0x3649cf(0x1e8))/0x9;if(_0x3bcdbc===_0x346e7e)break;else _0x1f1319['push'](_0x1f1319['shift']());}catch(_0x4560f3){_0x1f1319['push'](_0x1f1319['shift']());}}}(a4_0x21c4,0xdefb1));const a4_0x90a17=(function(){let _0x5b8d09=!![];return function(_0x500443,_0x5725f6){const _0x13c83a=_0x5b8d09?function(){const _0x438643=a4_0x3947;if(_0x5725f6){const _0x355191=_0x5725f6[_0x438643(0x1e3)](_0x500443,arguments);return _0x5725f6=null,_0x355191;}}:function(){};return _0x5b8d09=![],_0x13c83a;};}()),a4_0x337fac=a4_0x90a17(this,function(){const _0xe667cd=a4_0x3947;return a4_0x337fac[_0xe667cd(0x1df)]()[_0xe667cd(0x1e0)](_0xe667cd(0x1e6))[_0xe667cd(0x1df)]()[_0xe667cd(0x1d9)](a4_0x337fac)[_0xe667cd(0x1e0)]('(((.+)+)+)+$');});function a4_0x21c4(){const _0x3ccdb7=['__esModule','constructor','5439685iGTHfa','4013424QoOeka','getApplicationContext','2322957QRCcfd','value','toString','search','@midwayjs/core','/apitest','apply','apidoc','6YFLOxZ','(((.+)+)+)+$','app','16011108Lgxmbe','1666262lpnBRG','../service/ApitestService','ApitestService','1sjClDL','13390352MDDGoo','getAsync','REQUEST_OBJ_CTX_KEY','RequestMapping','isDevelopmentEnvironment','filepath','Apitest','1069584IhEwdX','get'];a4_0x21c4=function(){return _0x3ccdb7;};return a4_0x21c4();}a4_0x337fac();'use strict';Object['defineProperty'](exports,a4_0xeec0d7(0x1d8),{'value':!![]}),exports[a4_0xeec0d7(0x1d5)]=void 0x0;function a4_0x3947(_0x452ce0,_0x5a055f){const _0x535900=a4_0x21c4();return a4_0x3947=function(_0x337fac,_0x90a17){_0x337fac=_0x337fac-0x1cd;let _0x21c425=_0x535900[_0x337fac];return _0x21c425;},a4_0x3947(_0x452ce0,_0x5a055f);}const core_1=require(a4_0xeec0d7(0x1e1)),ApitestService_1=require(a4_0xeec0d7(0x1ea));function Apitest(_0x171c62=a4_0xeec0d7(0x1e2),_0x39df8c){return(_0x420729,_0x2df245,_0x5d862f)=>{const _0x5b190=a4_0x3947;return(0x0,core_1[_0x5b190(0x1d2)])({'path':_0x171c62,'requestMethod':_0x5b190(0x1d7)})(_0x420729,_0x2df245,_0x5d862f),_0x5d862f[_0x5b190(0x1de)]=async function(..._0x5a4d6b){const _0x5937a2=_0x5b190;var _0x4606ee;const _0x43effa=(_0x4606ee=this[core_1[_0x5937a2(0x1d1)]])===null||_0x4606ee===void 0x0?void 0x0:_0x4606ee[_0x5937a2(0x1e7)];if(_0x43effa&&_0x43effa['getConfig']('apitest')){const _0x1c74f2=await _0x43effa[_0x5937a2(0x1dc)]()['getAsync'](ApitestService_1[_0x5937a2(0x1cd)]),_0x3cf482=await _0x43effa[_0x5937a2(0x1dc)]()[_0x5937a2(0x1d0)](core_1['MidwayEnvironmentService']);return _0x3cf482[_0x5937a2(0x1d3)]()&&(_0x39df8c[_0x5937a2(0x1d4)]=!![]),await _0x1c74f2[_0x5937a2(0x1e4)](_0x39df8c);}return'';},_0x5d862f;};}exports[a4_0xeec0d7(0x1d5)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2a040d=a5_0x2348;(function(_0x492fb1,_0x36d6cd){const _0x3aaf0b=a5_0x2348,_0x5e73ac=_0x492fb1();while(!![]){try{const _0x11b77e=parseInt(_0x3aaf0b(0x8c))/0x1+parseInt(_0x3aaf0b(0x98))/0x2+-parseInt(_0x3aaf0b(0x87))/0x3+parseInt(_0x3aaf0b(0x93))/0x4+-parseInt(_0x3aaf0b(0x85))/0x5+-parseInt(_0x3aaf0b(0x88))/0x6*(-parseInt(_0x3aaf0b(0x8e))/0x7)+parseInt(_0x3aaf0b(0x95))/0x8*(-parseInt(_0x3aaf0b(0x86))/0x9);if(_0x11b77e===_0x36d6cd)break;else _0x5e73ac['push'](_0x5e73ac['shift']());}catch(_0x2c587d){_0x5e73ac['push'](_0x5e73ac['shift']());}}}(a5_0x2363,0x51533));const a5_0x2fe036=(function(){let _0xe85ca8=!![];return function(_0x21f3e6,_0x48259f){const _0x207201=_0xe85ca8?function(){if(_0x48259f){const _0x16a4c8=_0x48259f['apply'](_0x21f3e6,arguments);return _0x48259f=null,_0x16a4c8;}}:function(){};return _0xe85ca8=![],_0x207201;};}()),a5_0x4d244c=a5_0x2fe036(this,function(){const _0x3e8917=a5_0x2348;return a5_0x4d244c[_0x3e8917(0x8a)]()['search']('(((.+)+)+)+$')[_0x3e8917(0x8a)]()[_0x3e8917(0x84)](a5_0x4d244c)[_0x3e8917(0x96)]('(((.+)+)+)+$');});a5_0x4d244c();'use strict';Object['defineProperty'](exports,a5_0x2a040d(0x9a),{'value':!![]}),exports[a5_0x2a040d(0x89)]=exports[a5_0x2a040d(0x94)]=void 0x0;const core_1=require(a5_0x2a040d(0x90)),intercept_1=require(a5_0x2a040d(0x91));function Intercept(_0x41c264){return _0x9a1c65=>{const _0x815145=a5_0x2348,_0x45276a=(0x0,core_1[_0x815145(0x83)])(intercept_1[_0x815145(0x8f)],intercept_1[_0x815145(0x8d)])||{};for(let _0x548d72 of Array[_0x815145(0x8b)](_0x41c264)?_0x41c264:[_0x41c264]){_0x548d72=_0x548d72[_0x815145(0x99)]();!(_0x45276a===null||_0x45276a===void 0x0?void 0x0:_0x45276a[_0x548d72])&&(_0x45276a[_0x548d72]=[]);if(_0x45276a[_0x548d72][_0x815145(0x9b)](_0x9a1c65))continue;_0x45276a[_0x548d72]['push'](_0x9a1c65);}(0x0,core_1[_0x815145(0x92)])()(_0x9a1c65),(0x0,core_1[_0x815145(0x97)])(core_1['ScopeEnum'][_0x815145(0x9c)])(_0x9a1c65),(0x0,core_1[_0x815145(0x82)])(intercept_1['INTERCEPT_KEY'],_0x45276a,intercept_1[_0x815145(0x8d)]);};}function a5_0x2348(_0x160136,_0x34875a){const _0x587918=a5_0x2363();return a5_0x2348=function(_0x4d244c,_0x2fe036){_0x4d244c=_0x4d244c-0x81;let _0x23636e=_0x587918[_0x4d244c];return _0x23636e;},a5_0x2348(_0x160136,_0x34875a);}function a5_0x2363(){const _0x25175f=['getClassMetadata','constructor','2014095cNXnsC','116577aUdUbq','420951CmVVtO','528byFTKb','IIntercept','toString','isArray','331145OyWZcw','InterceptTargetTmp','39683fOvZGL','INTERCEPT_KEY','@midwayjs/core','../types/intercept','Provide','425620coKoca','Intercept','352SzfJzn','search','Scope','1019506KFrJWX','toUpperCase','__esModule','includes','Singleton','match','saveClassMetadata'];a5_0x2363=function(){return _0x25175f;};return a5_0x2363();}exports[a5_0x2a040d(0x94)]=Intercept;class IIntercept{async[a5_0x2a040d(0x81)](_0x57417c,_0x9a8d6,_0x4c1e32){return!![];}}exports[a5_0x2a040d(0x89)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x5b22bb=a6_0x28b2;(function(_0x3e9105,_0xbafbc9){var _0x5ab146=a6_0x28b2,_0x9a96a4=_0x3e9105();while(!![]){try{var _0x595c1d=-parseInt(_0x5ab146(0x10d))/0x1*(-parseInt(_0x5ab146(0xfd))/0x2)+-parseInt(_0x5ab146(0x100))/0x3+-parseInt(_0x5ab146(0x110))/0x4*(parseInt(_0x5ab146(0xf4))/0x5)+parseInt(_0x5ab146(0xff))/0x6+parseInt(_0x5ab146(0x10c))/0x7+-parseInt(_0x5ab146(0xfb))/0x8*(-parseInt(_0x5ab146(0x104))/0x9)+-parseInt(_0x5ab146(0xf0))/0xa*(-parseInt(_0x5ab146(0xec))/0xb);if(_0x595c1d===_0xbafbc9)break;else _0x9a96a4['push'](_0x9a96a4['shift']());}catch(_0x3aed60){_0x9a96a4['push'](_0x9a96a4['shift']());}}}(a6_0x9d6c,0x2c9e3));function a6_0x9d6c(){var _0x9009b2=['TIMEOUT_LOGINTIME','10124urPdaT','HEADERS_LACK','11PHHysl','请求头信息不完整','length','HEADERS_CHECKCODE','3238590zaYCQT','ApiError','请使用正确的设备','(((.+)+)+)+$','445fNHrmS','function','design:type','getOwnPropertyDescriptor','apply','登录超时,请重新登录','decorate','6952yzeuoD','HEADERS_DEVICE','2292QlhWAV','metadata','883692ITZkFy','883338uCsgue','TIMEOUT','object','__esModule','1053KMgmBz','toString','__decorate','signature验证失败','defineProperty','请求超时,请重试','search','constructor','370048wiSTLw','67CedQjJ','HEADERS_SIGNATURE'];a6_0x9d6c=function(){return _0x9009b2;};return a6_0x9d6c();}var a6_0x5ecaf4=(function(){var _0x33ea00=!![];return function(_0x1e261a,_0xeab1c7){var _0x36074a=_0x33ea00?function(){var _0x2fc06c=a6_0x28b2;if(_0xeab1c7){var _0x1bae0a=_0xeab1c7[_0x2fc06c(0xf8)](_0x1e261a,arguments);return _0xeab1c7=null,_0x1bae0a;}}:function(){};return _0x33ea00=![],_0x36074a;};}()),a6_0xd5fe1=a6_0x5ecaf4(this,function(){var _0x233cef=a6_0x28b2;return a6_0xd5fe1[_0x233cef(0x105)]()[_0x233cef(0x10a)](_0x233cef(0xf3))[_0x233cef(0x105)]()[_0x233cef(0x10b)](a6_0xd5fe1)[_0x233cef(0x10a)](_0x233cef(0xf3));});a6_0xd5fe1();'use strict';var __decorate=this&&this[a6_0x5b22bb(0x106)]||function(_0x3b2843,_0x235609,_0x39b409,_0x1f4b60){var _0x47c29e=a6_0x5b22bb,_0x48267b=arguments[_0x47c29e(0xee)],_0xcf875f=_0x48267b<0x3?_0x235609:_0x1f4b60===null?_0x1f4b60=Object[_0x47c29e(0xf7)](_0x235609,_0x39b409):_0x1f4b60,_0x13488c;if(typeof Reflect===_0x47c29e(0x102)&&typeof Reflect[_0x47c29e(0xfa)]===_0x47c29e(0xf5))_0xcf875f=Reflect[_0x47c29e(0xfa)](_0x3b2843,_0x235609,_0x39b409,_0x1f4b60);else{for(var _0x353619=_0x3b2843[_0x47c29e(0xee)]-0x1;_0x353619>=0x0;_0x353619--)if(_0x13488c=_0x3b2843[_0x353619])_0xcf875f=(_0x48267b<0x3?_0x13488c(_0xcf875f):_0x48267b>0x3?_0x13488c(_0x235609,_0x39b409,_0xcf875f):_0x13488c(_0x235609,_0x39b409))||_0xcf875f;}return _0x48267b>0x3&&_0xcf875f&&Object[_0x47c29e(0x108)](_0x235609,_0x39b409,_0xcf875f),_0xcf875f;},__metadata=this&&this['__metadata']||function(_0x4c6842,_0xc14bcf){var _0x4f9c73=a6_0x5b22bb;if(typeof Reflect===_0x4f9c73(0x102)&&typeof Reflect[_0x4f9c73(0xfe)]==='function')return Reflect[_0x4f9c73(0xfe)](_0x4c6842,_0xc14bcf);};Object['defineProperty'](exports,a6_0x5b22bb(0x103),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}function a6_0x28b2(_0x225eb8,_0x2144e1){var _0x25bff0=a6_0x9d6c();return a6_0x28b2=function(_0xd5fe1,_0x5ecaf4){_0xd5fe1=_0xd5fe1-0xec;var _0x9d6c24=_0x25bff0[_0xd5fe1];return _0x9d6c24;},a6_0x28b2(_0x225eb8,_0x2144e1);}exports[a6_0x5b22bb(0xf1)]=ApiError,ApiError[a6_0x5b22bb(0x101)]=0x19003,ApiError[a6_0x5b22bb(0x111)]=0x18e72,ApiError[a6_0x5b22bb(0xfc)]=0x18e73,ApiError[a6_0x5b22bb(0x10e)]=0x18e74,ApiError[a6_0x5b22bb(0xef)]=0x18e75,ApiError[a6_0x5b22bb(0x10f)]=0x18e76,__decorate([AnnErrorMsg(a6_0x5b22bb(0x109)),__metadata(a6_0x5b22bb(0xf6),Object)],ApiError,a6_0x5b22bb(0x101),void 0x0),__decorate([AnnErrorMsg(a6_0x5b22bb(0xed)),__metadata(a6_0x5b22bb(0xf6),Object)],ApiError,a6_0x5b22bb(0x111),void 0x0),__decorate([AnnErrorMsg(a6_0x5b22bb(0xf2)),__metadata('design:type',Object)],ApiError,a6_0x5b22bb(0xfc),void 0x0),__decorate([AnnErrorMsg(a6_0x5b22bb(0x107)),__metadata(a6_0x5b22bb(0xf6),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x5b22bb(0xf6),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x5b22bb(0xf9)),__metadata('design:type',Object)],ApiError,a6_0x5b22bb(0x10f),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x715360=a7_0x3640;(function(_0x53b7cb,_0x2bf805){const _0x110bdc=a7_0x3640,_0x37ecaa=_0x53b7cb();while(!![]){try{const _0x2f7b0d=-parseInt(_0x110bdc(0x70))/0x1*(parseInt(_0x110bdc(0x73))/0x2)+-parseInt(_0x110bdc(0x64))/0x3+parseInt(_0x110bdc(0x6c))/0x4*(parseInt(_0x110bdc(0x77))/0x5)+parseInt(_0x110bdc(0x6f))/0x6+-parseInt(_0x110bdc(0x6d))/0x7+-parseInt(_0x110bdc(0x66))/0x8+parseInt(_0x110bdc(0x72))/0x9;if(_0x2f7b0d===_0x2bf805)break;else _0x37ecaa['push'](_0x37ecaa['shift']());}catch(_0x2fc6eb){_0x37ecaa['push'](_0x37ecaa['shift']());}}}(a7_0x5d93,0x1f98c));function a7_0x5d93(){const _0x22b962=['(((.+)+)+)+$','3668vDPGXu','16968jagcYz','search','937926lrtfZP','57441JrznKC','../types/action','2790855qfbpXM','4JwFkyk','toString','APPSCONFIG_KEY','AppsConfigTmp','1345jUzhFx','699768NSZpnb','defineProperty','1864856nOpqUp','get','constructor','apply','getAppsConfig'];a7_0x5d93=function(){return _0x22b962;};return a7_0x5d93();}const a7_0x505052=(function(){let _0xf359f2=!![];return function(_0x389a4d,_0x5405ca){const _0x3c0cfd=_0xf359f2?function(){const _0x9d8407=a7_0x3640;if(_0x5405ca){const _0x37933e=_0x5405ca[_0x9d8407(0x69)](_0x389a4d,arguments);return _0x5405ca=null,_0x37933e;}}:function(){};return _0xf359f2=![],_0x3c0cfd;};}()),a7_0x1b6670=a7_0x505052(this,function(){const _0xd112e1=a7_0x3640;return a7_0x1b6670['toString']()[_0xd112e1(0x6e)](_0xd112e1(0x6b))[_0xd112e1(0x74)]()[_0xd112e1(0x68)](a7_0x1b6670)['search'](_0xd112e1(0x6b));});a7_0x1b6670();'use strict';Object[a7_0x715360(0x65)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x715360(0x71));function getAppsConfig(_0x5b961b){const _0x323dba=a7_0x715360,_0x96aedd=(0x0,core_1['getClassMetadata'])(action_1[_0x323dba(0x75)],action_1[_0x323dba(0x76)])||{};return _0x5b961b?lodash[_0x323dba(0x67)](_0x96aedd,_0x5b961b):_0x96aedd;}function a7_0x3640(_0x1d5eb0,_0x41a4d8){const _0x27ae71=a7_0x5d93();return a7_0x3640=function(_0x1b6670,_0x505052){_0x1b6670=_0x1b6670-0x64;let _0x5d9348=_0x27ae71[_0x1b6670];return _0x5d9348;},a7_0x3640(_0x1d5eb0,_0x41a4d8);}exports[a7_0x715360(0x6a)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x1f8e06=a8_0x379c;(function(_0x35c971,_0x1da402){const _0x5c2061=a8_0x379c,_0x327450=_0x35c971();while(!![]){try{const _0x2045e4=-parseInt(_0x5c2061(0x1ef))/0x1+parseInt(_0x5c2061(0x209))/0x2*(-parseInt(_0x5c2061(0x1e2))/0x3)+parseInt(_0x5c2061(0x219))/0x4*(parseInt(_0x5c2061(0x205))/0x5)+-parseInt(_0x5c2061(0x1eb))/0x6*(parseInt(_0x5c2061(0x221))/0x7)+parseInt(_0x5c2061(0x1e6))/0x8+parseInt(_0x5c2061(0x1f3))/0x9*(parseInt(_0x5c2061(0x1c0))/0xa)+-parseInt(_0x5c2061(0x220))/0xb;if(_0x2045e4===_0x1da402)break;else _0x327450['push'](_0x327450['shift']());}catch(_0x2ac460){_0x327450['push'](_0x327450['shift']());}}}(a8_0x58aa,0x57901));const a8_0x68f7c6=(function(){let _0x1026ff=!![];return function(_0x3f8685,_0x50c8eb){const _0x2c4fa4=_0x1026ff?function(){if(_0x50c8eb){const _0x1d1394=_0x50c8eb['apply'](_0x3f8685,arguments);return _0x50c8eb=null,_0x1d1394;}}:function(){};return _0x1026ff=![],_0x2c4fa4;};}()),a8_0x1189b0=a8_0x68f7c6(this,function(){const _0x5d6303=a8_0x379c;return a8_0x1189b0['toString']()[_0x5d6303(0x1d6)](_0x5d6303(0x20f))[_0x5d6303(0x202)]()[_0x5d6303(0x1f2)](a8_0x1189b0)['search'](_0x5d6303(0x20f));});a8_0x1189b0();'use strict';Object['defineProperty'](exports,a8_0x1f8e06(0x1c1),{'value':!![]}),exports[a8_0x1f8e06(0x1ce)]=void 0x0;function a8_0x58aa(){const _0x4becc1=['object','RULES_KEY','number','只允许:[','description','1084ayUsQe','title','FILESTREAM','HEADERS','../types/action','name','@anncic-api/validator','3722785LuXCXC','998599NavlER','isArray','prefix','route','test','limit','WEB_ROUTER_PARAM_KEY','10nIpsTC','__esModule','required','noreq','replace','pprefix','request','Object','substring','keys','items','length','method','indexOf','getRoutes','/static/apitest','path','array','max','key','routerOptions','intercept','search','body','BODY','describe','function','filepath','requestMethod','lodash','propertyData','endsWith','args','type','3ZFfRwV','split','flags.label','tagName','3091960cTcJiT','flags.default','parameterIndex','rules','ACTION_KEY','18DlSVgv','metadata','summary','@midwayjs/core','62482TPzLGF','iterator','static/apitest','constructor','3046338xzhxAs','join','find','FIELDS','listModule','Boolean','getClassExtendedMetadata','module','flags.description','allow','routes','file','get','RouteParamTypes','filter','toString','getMethodParamTypes','getClassMetadata','10590AbPlKs','push','string','startsWith','222820tptabi','INJECT_CUSTOM_PARAM','routerName','query','Number','header','(((.+)+)+)+$','QUERY','boolean','default','min'];a8_0x58aa=function(){return _0x4becc1;};return a8_0x58aa();}const lodash_1=require(a8_0x1f8e06(0x1dd)),validator_1=require(a8_0x1f8e06(0x21f)),core_1=require(a8_0x1f8e06(0x1ee)),core_2=require(a8_0x1f8e06(0x1ee)),core_3=require(a8_0x1f8e06(0x1ee)),action_1=require(a8_0x1f8e06(0x21d));function getRoutes(_0x1c6148={'prefix':'/','module':![]}){const _0x31b28a=a8_0x1f8e06;var _0xf84a9a,_0x11442c;const _0x59864d=(0x0,core_3[_0x31b28a(0x1f7)])(action_1[_0x31b28a(0x1ea)]),_0x5a5734={},_0xe4fd9b=Array[_0x31b28a(0x222)](_0x1c6148[_0x31b28a(0x201)]||[])?_0x1c6148[_0x31b28a(0x201)]||[]:[_0x1c6148[_0x31b28a(0x201)]];_0x362c45:for(const _0x1d634d of _0x59864d){let _0x1a0a8c=(0x0,core_3[_0x31b28a(0x204)])(action_1[_0x31b28a(0x1ea)],_0x1d634d),_0x205ad4=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x1d634d);if(_0x1a0a8c&&_0x205ad4){let _0x589628=_0x1a0a8c[_0x31b28a(0x1bb)],_0xea54ab={};if(_0x1c6148[_0x31b28a(0x1fa)]&&(0x0,lodash_1[_0x31b28a(0x1ff)])(_0x1a0a8c,'module',![])!=_0x1c6148['module'])continue _0x362c45;else{if(_0x1c6148[_0x31b28a(0x1fa)]===![]&&!!(0x0,lodash_1['get'])(_0x1a0a8c,_0x31b28a(0x1fa),null))continue _0x362c45;}if(_0x1c6148[_0x31b28a(0x1bb)]&&!_0x589628[_0x31b28a(0x208)](_0x1c6148['prefix']))continue _0x362c45;_0x589628!=='/'?(_0xea54ab[_0x31b28a(0x1ed)]=(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c[_0x31b28a(0x1d4)]['tagName'])||(/^\//[_0x31b28a(0x1bd)](_0x589628)?_0x589628[_0x31b28a(0x1e3)]('/')[0x1]:_0x589628),_0xea54ab[_0x31b28a(0x218)]=(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c[_0x31b28a(0x1d4)][_0x31b28a(0x218)])||_0xea54ab[_0x31b28a(0x1ed)],_0xea54ab[_0x31b28a(0x1fd)]=[]):(_0xea54ab[_0x31b28a(0x1ed)]=(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c['routerOptions'][_0x31b28a(0x1e5)])||_0x31b28a(0x212),_0xea54ab[_0x31b28a(0x218)]=(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c['routerOptions'][_0x31b28a(0x218)])||'',_0xea54ab[_0x31b28a(0x1fd)]=[]);_0x1c6148['filepath']&&(_0xea54ab['filepath']=_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c[_0x31b28a(0x1db)]);(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c[_0x31b28a(0x1c5)])&&(_0xea54ab['prefix']=_0x1a0a8c['pprefix']);(_0x1a0a8c===null||_0x1a0a8c===void 0x0?void 0x0:_0x1a0a8c[_0x31b28a(0x1fa)])&&(_0xea54ab[_0x31b28a(0x1fa)]=_0x1a0a8c[_0x31b28a(0x1fa)]);let _0x3e7a37=(0x0,core_3[_0x31b28a(0x204)])(core_2[_0x31b28a(0x20a)],_0x1d634d)||{};if(typeof _0x205ad4[Symbol[_0x31b28a(0x1f0)]]===_0x31b28a(0x1da))for(let _0x27f9c1 of _0x205ad4){if((_0x1c6148===null||_0x1c6148===void 0x0?void 0x0:_0x1c6148[_0x31b28a(0x1d5)])&&!(_0x27f9c1===null||_0x27f9c1===void 0x0?void 0x0:_0x27f9c1['intercept']))continue;let _0x9f3982={};_0x9f3982[_0x31b28a(0x1cc)]=_0x27f9c1[_0x31b28a(0x1dc)],_0x9f3982[_0x31b28a(0x1bc)]=(_0x589628+_0x27f9c1[_0x31b28a(0x1d0)])[_0x31b28a(0x1c4)](/\/{2,}/g,'/'),_0x9f3982[_0x31b28a(0x1ed)]=(_0x27f9c1===null||_0x27f9c1===void 0x0?void 0x0:_0x27f9c1[_0x31b28a(0x20b)])||_0xea54ab[_0x31b28a(0x1ed)]||_0x31b28a(0x212),_0x9f3982[_0x31b28a(0x218)]=(_0x27f9c1===null||_0x27f9c1===void 0x0?void 0x0:_0x27f9c1[_0x31b28a(0x218)])||'',_0x9f3982['request']=[];_0x9f3982['route'][_0x31b28a(0x1df)]('/')&&(_0x9f3982[_0x31b28a(0x1bc)]=_0x9f3982[_0x31b28a(0x1bc)][_0x31b28a(0x1c8)](0x0,_0x9f3982[_0x31b28a(0x1bc)][_0x31b28a(0x1cb)]-0x1));if(!(0x0,lodash_1[_0x31b28a(0x208)])(_0x9f3982[_0x31b28a(0x1bc)],_0x31b28a(0x1f1))&&!(0x0,lodash_1[_0x31b28a(0x208)])(_0x9f3982['route'],_0x31b28a(0x1cf))&&_0xe4fd9b[_0x31b28a(0x1cd)](_0x9f3982['route'])===-0x1){if(!(_0x1c6148===null||_0x1c6148===void 0x0?void 0x0:_0x1c6148[_0x31b28a(0x1c3)])){let _0xe64af0=(0x0,core_3[_0x31b28a(0x203)])(new _0x1d634d(),_0x27f9c1['method']);for(const _0x2d805d in _0xe64af0){let _0x207098=(_0xf84a9a=_0x3e7a37[_0x27f9c1[_0x31b28a(0x1cc)]])===null||_0xf84a9a===void 0x0?void 0x0:_0xf84a9a[_0x31b28a(0x1f5)](_0x51fe9d=>_0x51fe9d[_0x31b28a(0x1e8)]==_0x2d805d&&_0x51fe9d[_0x31b28a(0x1d3)]===core_2[_0x31b28a(0x1bf)]&&(_0x51fe9d===null||_0x51fe9d===void 0x0?void 0x0:_0x51fe9d[_0x31b28a(0x1ec)]));if(_0x207098===null||_0x207098===void 0x0?void 0x0:_0x207098[_0x31b28a(0x1ec)]){let _0x4e9fc5=convertTypeToString(_0x207098[_0x31b28a(0x1ec)][_0x31b28a(0x1e1)]||0x0);if([_0x31b28a(0x20c),'body'][_0x31b28a(0x1cd)](_0x4e9fc5)!=-0x1&&_0x207098[_0x31b28a(0x1ec)][_0x31b28a(0x1de)]['indexOf'](':')==-0x1&&!_0x9f3982[_0x31b28a(0x1c6)][_0x31b28a(0x1f5)](_0x22593a=>_0x22593a[_0x31b28a(0x1d3)]==_0x207098['metadata']['propertyData']))_0x9f3982['request'][_0x31b28a(0x206)]({'key':_0x207098[_0x31b28a(0x1ec)][_0x31b28a(0x1de)],'title':_0x207098[_0x31b28a(0x1ec)][_0x31b28a(0x1de)],'type':convertSchemaType(_0xe64af0[_0x207098[_0x31b28a(0x1e8)]][_0x31b28a(0x21e)]),'required':![],'default':'','desc':''});else{if(_0x4e9fc5==_0x31b28a(0x1fe)){let _0x4ef787=((_0x11442c=_0x207098===null||_0x207098===void 0x0?void 0x0:_0x207098[_0x31b28a(0x1ec)])===null||_0x11442c===void 0x0?void 0x0:_0x11442c[_0x31b28a(0x1de)])||_0x31b28a(0x1fe);_0x4ef787['indexOf'](':')==-0x1&&!_0x9f3982[_0x31b28a(0x1c6)][_0x31b28a(0x1f5)](_0x54cc10=>_0x54cc10['key']==_0x4ef787&&_0x54cc10[_0x31b28a(0x1e1)]=='file')&&_0x9f3982['request'][_0x31b28a(0x206)]({'key':_0x4ef787,'title':'文件上传-'+_0x4ef787,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5683e1=(0x0,core_3[_0x31b28a(0x1f9)])(validator_1[_0x31b28a(0x215)],_0xe64af0[_0x2d805d]);_0x5683e1&&_0x9f3982[_0x31b28a(0x1c6)]['push'](...getJoiRequest(_0x5683e1));}}}_0xea54ab[_0x31b28a(0x1fd)][_0x31b28a(0x206)](_0x9f3982);}}if(_0xea54ab[_0x31b28a(0x1fd)][_0x31b28a(0x1cb)]>0x0){let _0x497d85=_0x5a5734[_0x589628];_0x497d85?(_0x497d85[_0x31b28a(0x1ed)]!=_0xea54ab[_0x31b28a(0x1ed)]&&(_0x497d85[_0x31b28a(0x1ed)]=_0x497d85[_0x31b28a(0x1ed)]+','+_0xea54ab['summary']),_0x497d85[_0x31b28a(0x218)]!=_0xea54ab[_0x31b28a(0x218)]&&(_0x497d85[_0x31b28a(0x218)]=_0x497d85[_0x31b28a(0x218)]+','+_0xea54ab[_0x31b28a(0x218)]),_0x497d85[_0x31b28a(0x1fd)]=_0x497d85[_0x31b28a(0x1fd)]['concat'](_0xea54ab[_0x31b28a(0x1fd)]),_0x5a5734[_0x589628]=_0x497d85):_0x5a5734[_0x589628]=_0xea54ab;}}}return _0x5a5734;}exports[a8_0x1f8e06(0x1ce)]=getRoutes;function getJoiRequest(_0xcc14ff){const _0x319bb3=a8_0x1f8e06,_0x7bf51e=[];for(let _0x31a5bd in _0xcc14ff){const _0x8a1aae={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x432c58=typeof _0xcc14ff[_0x31a5bd][_0x319bb3(0x1d9)]==_0x319bb3(0x1da)?_0xcc14ff[_0x31a5bd]['describe']():_0xcc14ff[_0x31a5bd];_0x8a1aae[_0x319bb3(0x1d3)]=_0x31a5bd,_0x8a1aae[_0x319bb3(0x1e1)]=_0x432c58['type'],_0x8a1aae['title']=(0x0,lodash_1[_0x319bb3(0x1ff)])(_0x432c58,_0x319bb3(0x1e4),_0x31a5bd),_0x8a1aae[_0x319bb3(0x212)]=(0x0,lodash_1['get'])(_0x432c58,_0x319bb3(0x1e7),''),_0x8a1aae['required']=(0x0,lodash_1[_0x319bb3(0x1ff)])(_0x432c58,'flags.presence','')==_0x319bb3(0x1c2),_0x8a1aae['description']=(0x0,lodash_1[_0x319bb3(0x1ff)])(_0x432c58,_0x319bb3(0x1fb),'');if(_0x432c58[_0x319bb3(0x1e1)]=='object')_0x8a1aae['children']=getJoiRequest(_0x432c58[_0x319bb3(0x1c9)]);else{if(_0x432c58[_0x319bb3(0x1e1)]==_0x319bb3(0x1d1)&&_0x432c58['items']&&Array[_0x319bb3(0x222)](_0x432c58[_0x319bb3(0x1ca)])&&_0x432c58[_0x319bb3(0x1ca)][0x0]){}}_0x432c58[_0x319bb3(0x1fc)]&&Array[_0x319bb3(0x222)](_0x432c58[_0x319bb3(0x1fc)])&&_0x432c58[_0x319bb3(0x1fc)][_0x319bb3(0x1cb)]>0x0&&(_0x8a1aae[_0x319bb3(0x218)]=_0x319bb3(0x217)+_0x432c58['allow'][_0x319bb3(0x1f4)](',')+'];'+_0x8a1aae[_0x319bb3(0x218)]);if(_0x8a1aae[_0x319bb3(0x1d3)]&&_0x8a1aae[_0x319bb3(0x1e1)]){const _0x2525a7={};for(const _0x52bc27 of _0x432c58[_0x319bb3(0x1e9)]||[]){if(_0x52bc27['name']===_0x319bb3(0x213)&&_0x52bc27['args'])_0x2525a7[_0x319bb3(0x213)]=_0x52bc27[_0x319bb3(0x1e0)][_0x319bb3(0x1be)];else _0x52bc27[_0x319bb3(0x21e)]===_0x319bb3(0x1d2)&&(_0x2525a7[_0x319bb3(0x1d2)]=_0x52bc27[_0x319bb3(0x1e0)]['limit']);}_0x8a1aae[_0x319bb3(0x1e9)]=_0x2525a7;}_0x8a1aae['key']&&_0x8a1aae[_0x319bb3(0x21a)]&&_0x7bf51e[_0x319bb3(0x206)](_0x8a1aae);}return _0x7bf51e;}function a8_0x379c(_0x4c3547,_0x5e77c2){const _0x15ca90=a8_0x58aa();return a8_0x379c=function(_0x1189b0,_0x68f7c6){_0x1189b0=_0x1189b0-0x1bb;let _0x58aab4=_0x15ca90[_0x1189b0];return _0x58aab4;},a8_0x379c(_0x4c3547,_0x5e77c2);}function convertSchemaType(_0x130576){const _0x254666=a8_0x1f8e06;switch(_0x130576){case _0x254666(0x1c7):return _0x254666(0x214);case _0x254666(0x1f8):return _0x254666(0x211);case _0x254666(0x20d):return _0x254666(0x216);case'String':return'string';case'File':return'file';default:return _0x254666(0x207);}}function convertTypeToString(_0x5783ed){const _0x2be4cb=a8_0x1f8e06;switch(_0x5783ed){case core_1[_0x2be4cb(0x200)][_0x2be4cb(0x21c)]:return _0x2be4cb(0x20e);case core_1[_0x2be4cb(0x200)][_0x2be4cb(0x210)]:return'query';case core_1['RouteParamTypes']['PARAM']:return _0x2be4cb(0x1d0);case core_1[_0x2be4cb(0x200)][_0x2be4cb(0x1d8)]:return _0x2be4cb(0x1d7);case core_1['RouteParamTypes'][_0x2be4cb(0x1f6)]:case core_1[_0x2be4cb(0x200)]['FILESSTREAM']:case core_1[_0x2be4cb(0x200)][_0x2be4cb(0x21b)]:return _0x2be4cb(0x1fe);default:return _0x2be4cb(0x20e);}}
|
|
1
|
+
const a8_0x361592=a8_0x5843;(function(_0x368017,_0x1529ac){const _0x5876b9=a8_0x5843,_0x4d6ee8=_0x368017();while(!![]){try{const _0x17b209=-parseInt(_0x5876b9(0x14f))/0x1*(-parseInt(_0x5876b9(0x132))/0x2)+parseInt(_0x5876b9(0x125))/0x3*(-parseInt(_0x5876b9(0x16b))/0x4)+-parseInt(_0x5876b9(0x160))/0x5*(-parseInt(_0x5876b9(0x151))/0x6)+parseInt(_0x5876b9(0x142))/0x7+-parseInt(_0x5876b9(0x136))/0x8+-parseInt(_0x5876b9(0x143))/0x9+parseInt(_0x5876b9(0x135))/0xa*(parseInt(_0x5876b9(0x156))/0xb);if(_0x17b209===_0x1529ac)break;else _0x4d6ee8['push'](_0x4d6ee8['shift']());}catch(_0x1cea34){_0x4d6ee8['push'](_0x4d6ee8['shift']());}}}(a8_0x4973,0xf266b));const a8_0x11180f=(function(){let _0x5b8df7=!![];return function(_0x265061,_0x4ba414){const _0x3c0eab=_0x5b8df7?function(){const _0x197f86=a8_0x5843;if(_0x4ba414){const _0xc24869=_0x4ba414[_0x197f86(0x15c)](_0x265061,arguments);return _0x4ba414=null,_0xc24869;}}:function(){};return _0x5b8df7=![],_0x3c0eab;};}()),a8_0x12e679=a8_0x11180f(this,function(){const _0x105756=a8_0x5843;return a8_0x12e679[_0x105756(0x173)]()[_0x105756(0x153)](_0x105756(0x12b))[_0x105756(0x173)]()[_0x105756(0x122)](a8_0x12e679)['search']('(((.+)+)+)+$');});a8_0x12e679();'use strict';Object['defineProperty'](exports,a8_0x361592(0x159),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x4973(){const _0x211fe8=['File','prefix','items','propertyData','getRoutes','/static/apitest','path','filepath','length','boolean','WEB_ROUTER_PARAM_KEY','requestMethod','FILESSTREAM','body','key','query','describe','number','constructor','test','replace','12243JYZNrZ','get','RouteParamTypes','只允许:[','children','route','(((.+)+)+)+$','flags.description','filter','required','BODY','request','split','1806YsWAns','routes','args','510eRlHys','10284792lIKtdf','max','FIELDS','文件上传-','default','Boolean','substring','rules','intercept','getClassExtendedMetadata','flags.default','indexOf','9333905RoGglJ','5034312xbtMLu','push','INJECT_CUSTOM_PARAM','function','listModule','startsWith','string','pprefix','array','HEADERS','find','name','859Rzgoxi','limit','8207466YVtCai','title','search','module','file','67232cuvayP','ACTION_ROUTE_KEY','ACTION_KEY','__esModule','tagName','isArray','apply','QUERY','routerOptions','description','5CZQWod','type','parameterIndex','summary','String','@midwayjs/core','lodash','allow','getClassMetadata','Number','flags.label','932KfBnPD','PARAM','method','RULES_KEY','metadata','min','iterator','concat','toString'];a8_0x4973=function(){return _0x211fe8;};return a8_0x4973();}const lodash_1=require(a8_0x361592(0x166)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x361592(0x165)),core_2=require(a8_0x361592(0x165)),core_3=require(a8_0x361592(0x165)),action_1=require('../types/action');function getRoutes(_0x43478e={'prefix':'/','module':![]}){const _0x2220a0=a8_0x361592;var _0x143863,_0x23c907;const _0x5dd6fd=(0x0,core_3[_0x2220a0(0x147)])(action_1['ACTION_KEY']),_0x1b172b={},_0xaac066=Array[_0x2220a0(0x15b)](_0x43478e[_0x2220a0(0x12d)]||[])?_0x43478e[_0x2220a0(0x12d)]||[]:[_0x43478e['filter']];_0x36fe78:for(const _0x42ac1a of _0x5dd6fd){let _0x44e43e=(0x0,core_3['getClassMetadata'])(action_1[_0x2220a0(0x158)],_0x42ac1a),_0x32c017=(0x0,core_3['getClassMetadata'])(action_1[_0x2220a0(0x157)],_0x42ac1a);if(_0x44e43e&&_0x32c017){let _0x5237a2=_0x44e43e[_0x2220a0(0x175)],_0x56acc8={};if(_0x43478e[_0x2220a0(0x154)]&&(0x0,lodash_1[_0x2220a0(0x126)])(_0x44e43e,_0x2220a0(0x154),![])!=_0x43478e[_0x2220a0(0x154)])continue _0x36fe78;else{if(_0x43478e[_0x2220a0(0x154)]===![]&&!!(0x0,lodash_1[_0x2220a0(0x126)])(_0x44e43e,_0x2220a0(0x154),null))continue _0x36fe78;}if(_0x43478e[_0x2220a0(0x175)]&&!_0x5237a2[_0x2220a0(0x148)](_0x43478e[_0x2220a0(0x175)]))continue _0x36fe78;_0x5237a2!=='/'?(_0x56acc8[_0x2220a0(0x163)]=(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x15e)][_0x2220a0(0x15a)])||(/^\//[_0x2220a0(0x123)](_0x5237a2)?_0x5237a2[_0x2220a0(0x131)]('/')[0x1]:_0x5237a2),_0x56acc8[_0x2220a0(0x15f)]=(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x15e)]['description'])||_0x56acc8[_0x2220a0(0x163)],_0x56acc8[_0x2220a0(0x133)]=[]):(_0x56acc8['summary']=(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e['routerOptions'][_0x2220a0(0x15a)])||'default',_0x56acc8[_0x2220a0(0x15f)]=(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x15e)][_0x2220a0(0x15f)])||'',_0x56acc8[_0x2220a0(0x133)]=[]);_0x43478e[_0x2220a0(0x117)]&&(_0x56acc8[_0x2220a0(0x117)]=_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x117)]);(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x14a)])&&(_0x56acc8[_0x2220a0(0x175)]=_0x44e43e[_0x2220a0(0x14a)]);(_0x44e43e===null||_0x44e43e===void 0x0?void 0x0:_0x44e43e[_0x2220a0(0x154)])&&(_0x56acc8[_0x2220a0(0x154)]=_0x44e43e[_0x2220a0(0x154)]);let _0x3357f3=(0x0,core_3[_0x2220a0(0x168)])(core_2[_0x2220a0(0x145)],_0x42ac1a)||{};if(typeof _0x32c017[Symbol[_0x2220a0(0x171)]]==='function')for(let _0x1fed58 of _0x32c017){if((_0x43478e===null||_0x43478e===void 0x0?void 0x0:_0x43478e[_0x2220a0(0x13e)])&&!(_0x1fed58===null||_0x1fed58===void 0x0?void 0x0:_0x1fed58[_0x2220a0(0x13e)]))continue;let _0x5bdb79={};_0x5bdb79['method']=_0x1fed58[_0x2220a0(0x11b)],_0x5bdb79[_0x2220a0(0x12a)]=(_0x5237a2+_0x1fed58[_0x2220a0(0x116)])[_0x2220a0(0x124)](/\/{2,}/g,'/'),_0x5bdb79[_0x2220a0(0x163)]=(_0x1fed58===null||_0x1fed58===void 0x0?void 0x0:_0x1fed58['routerName'])||_0x56acc8[_0x2220a0(0x163)]||_0x2220a0(0x13a),_0x5bdb79[_0x2220a0(0x15f)]=(_0x1fed58===null||_0x1fed58===void 0x0?void 0x0:_0x1fed58[_0x2220a0(0x15f)])||'',_0x5bdb79['request']=[];_0x5bdb79[_0x2220a0(0x12a)]['endsWith']('/')&&(_0x5bdb79[_0x2220a0(0x12a)]=_0x5bdb79['route'][_0x2220a0(0x13c)](0x0,_0x5bdb79[_0x2220a0(0x12a)][_0x2220a0(0x118)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x5bdb79[_0x2220a0(0x12a)],'static/apitest')&&!(0x0,lodash_1[_0x2220a0(0x148)])(_0x5bdb79['route'],_0x2220a0(0x115))&&_0xaac066['indexOf'](_0x5bdb79[_0x2220a0(0x12a)])===-0x1){if(!(_0x43478e===null||_0x43478e===void 0x0?void 0x0:_0x43478e['noreq'])){let _0x479823=(0x0,core_3['getMethodParamTypes'])(new _0x42ac1a(),_0x1fed58['method']);for(const _0x1beb5c in _0x479823){let _0x2db483=(_0x143863=_0x3357f3[_0x1fed58[_0x2220a0(0x16d)]])===null||_0x143863===void 0x0?void 0x0:_0x143863[_0x2220a0(0x14d)](_0x3cb854=>_0x3cb854['parameterIndex']==_0x1beb5c&&_0x3cb854[_0x2220a0(0x11e)]===core_2[_0x2220a0(0x11a)]&&(_0x3cb854===null||_0x3cb854===void 0x0?void 0x0:_0x3cb854[_0x2220a0(0x16f)]));if(_0x2db483===null||_0x2db483===void 0x0?void 0x0:_0x2db483[_0x2220a0(0x16f)]){let _0x4e07a1=convertTypeToString(_0x2db483['metadata'][_0x2220a0(0x161)]||0x0);if([_0x2220a0(0x11f),_0x2220a0(0x11d)][_0x2220a0(0x141)](_0x4e07a1)!=-0x1&&_0x2db483[_0x2220a0(0x16f)][_0x2220a0(0x113)][_0x2220a0(0x141)](':')==-0x1&&!_0x5bdb79[_0x2220a0(0x130)][_0x2220a0(0x14d)](_0x4541e5=>_0x4541e5[_0x2220a0(0x11e)]==_0x2db483[_0x2220a0(0x16f)][_0x2220a0(0x113)]))_0x5bdb79['request']['push']({'key':_0x2db483[_0x2220a0(0x16f)][_0x2220a0(0x113)],'title':_0x2db483[_0x2220a0(0x16f)][_0x2220a0(0x113)],'type':convertSchemaType(_0x479823[_0x2db483[_0x2220a0(0x162)]]['name']),'required':![],'default':'','desc':''});else{if(_0x4e07a1==_0x2220a0(0x155)){let _0x5a6ca6=((_0x23c907=_0x2db483===null||_0x2db483===void 0x0?void 0x0:_0x2db483[_0x2220a0(0x16f)])===null||_0x23c907===void 0x0?void 0x0:_0x23c907[_0x2220a0(0x113)])||'file';_0x5a6ca6[_0x2220a0(0x141)](':')==-0x1&&!_0x5bdb79[_0x2220a0(0x130)]['find'](_0x4b4a30=>_0x4b4a30[_0x2220a0(0x11e)]==_0x5a6ca6&&_0x4b4a30[_0x2220a0(0x161)]==_0x2220a0(0x155))&&_0x5bdb79[_0x2220a0(0x130)][_0x2220a0(0x144)]({'key':_0x5a6ca6,'title':_0x2220a0(0x139)+_0x5a6ca6,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x242660=(0x0,core_3[_0x2220a0(0x13f)])(validator_1[_0x2220a0(0x16e)],_0x479823[_0x1beb5c]);_0x242660&&_0x5bdb79[_0x2220a0(0x130)][_0x2220a0(0x144)](...getJoiRequest(_0x242660));}}}_0x56acc8[_0x2220a0(0x133)][_0x2220a0(0x144)](_0x5bdb79);}}if(_0x56acc8[_0x2220a0(0x133)][_0x2220a0(0x118)]>0x0){let _0x2ceacc=_0x1b172b[_0x5237a2];_0x2ceacc?(_0x2ceacc['summary']!=_0x56acc8[_0x2220a0(0x163)]&&(_0x2ceacc[_0x2220a0(0x163)]=_0x2ceacc['summary']+','+_0x56acc8['summary']),_0x2ceacc['description']!=_0x56acc8[_0x2220a0(0x15f)]&&(_0x2ceacc[_0x2220a0(0x15f)]=_0x2ceacc[_0x2220a0(0x15f)]+','+_0x56acc8[_0x2220a0(0x15f)]),_0x2ceacc[_0x2220a0(0x133)]=_0x2ceacc[_0x2220a0(0x133)][_0x2220a0(0x172)](_0x56acc8['routes']),_0x1b172b[_0x5237a2]=_0x2ceacc):_0x1b172b[_0x5237a2]=_0x56acc8;}}}return _0x1b172b;}exports[a8_0x361592(0x114)]=getRoutes;function getJoiRequest(_0xbd276b){const _0x5dbc18=a8_0x361592,_0x5e67d6=[];for(let _0x7e73fa in _0xbd276b){const _0x2de91c={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xed13e5=typeof _0xbd276b[_0x7e73fa][_0x5dbc18(0x120)]==_0x5dbc18(0x146)?_0xbd276b[_0x7e73fa]['describe']():_0xbd276b[_0x7e73fa];_0x2de91c[_0x5dbc18(0x11e)]=_0x7e73fa,_0x2de91c[_0x5dbc18(0x161)]=_0xed13e5[_0x5dbc18(0x161)],_0x2de91c[_0x5dbc18(0x152)]=(0x0,lodash_1['get'])(_0xed13e5,_0x5dbc18(0x16a),_0x7e73fa),_0x2de91c[_0x5dbc18(0x13a)]=(0x0,lodash_1[_0x5dbc18(0x126)])(_0xed13e5,_0x5dbc18(0x140),''),_0x2de91c['required']=(0x0,lodash_1['get'])(_0xed13e5,'flags.presence','')==_0x5dbc18(0x12e),_0x2de91c['description']=(0x0,lodash_1[_0x5dbc18(0x126)])(_0xed13e5,_0x5dbc18(0x12c),'');if(_0xed13e5[_0x5dbc18(0x161)]=='object')_0x2de91c[_0x5dbc18(0x129)]=getJoiRequest(_0xed13e5['keys']);else{if(_0xed13e5[_0x5dbc18(0x161)]==_0x5dbc18(0x14b)&&_0xed13e5['items']&&Array[_0x5dbc18(0x15b)](_0xed13e5[_0x5dbc18(0x112)])&&_0xed13e5[_0x5dbc18(0x112)][0x0]){}}_0xed13e5[_0x5dbc18(0x167)]&&Array['isArray'](_0xed13e5[_0x5dbc18(0x167)])&&_0xed13e5[_0x5dbc18(0x167)][_0x5dbc18(0x118)]>0x0&&(_0x2de91c['description']=_0x5dbc18(0x128)+_0xed13e5[_0x5dbc18(0x167)]['join'](',')+'];'+_0x2de91c[_0x5dbc18(0x15f)]);if(_0x2de91c[_0x5dbc18(0x11e)]&&_0x2de91c['type']){const _0x4347e4={};for(const _0x149c09 of _0xed13e5['rules']||[]){if(_0x149c09[_0x5dbc18(0x14e)]===_0x5dbc18(0x170)&&_0x149c09['args'])_0x4347e4[_0x5dbc18(0x170)]=_0x149c09[_0x5dbc18(0x134)][_0x5dbc18(0x150)];else _0x149c09['name']===_0x5dbc18(0x137)&&(_0x4347e4[_0x5dbc18(0x137)]=_0x149c09['args']['limit']);}_0x2de91c[_0x5dbc18(0x13d)]=_0x4347e4;}_0x2de91c[_0x5dbc18(0x11e)]&&_0x2de91c[_0x5dbc18(0x152)]&&_0x5e67d6['push'](_0x2de91c);}return _0x5e67d6;}function a8_0x5843(_0x47eac3,_0x3192bc){const _0x32b74d=a8_0x4973();return a8_0x5843=function(_0x12e679,_0x11180f){_0x12e679=_0x12e679-0x112;let _0x497370=_0x32b74d[_0x12e679];return _0x497370;},a8_0x5843(_0x47eac3,_0x3192bc);}function convertSchemaType(_0x239b1e){const _0x2fdf23=a8_0x361592;switch(_0x239b1e){case'Object':return'object';case _0x2fdf23(0x13b):return _0x2fdf23(0x119);case _0x2fdf23(0x169):return _0x2fdf23(0x121);case _0x2fdf23(0x164):return _0x2fdf23(0x149);case _0x2fdf23(0x174):return _0x2fdf23(0x155);default:return _0x2fdf23(0x149);}}function convertTypeToString(_0xe1b8f2){const _0x4bc9e0=a8_0x361592;switch(_0xe1b8f2){case core_1[_0x4bc9e0(0x127)][_0x4bc9e0(0x14c)]:return'header';case core_1['RouteParamTypes'][_0x4bc9e0(0x15d)]:return'query';case core_1['RouteParamTypes'][_0x4bc9e0(0x16c)]:return'path';case core_1[_0x4bc9e0(0x127)][_0x4bc9e0(0x12f)]:return _0x4bc9e0(0x11d);case core_1['RouteParamTypes'][_0x4bc9e0(0x138)]:case core_1[_0x4bc9e0(0x127)][_0x4bc9e0(0x11c)]:case core_1[_0x4bc9e0(0x127)]['FILESTREAM']:return _0x4bc9e0(0x155);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x1a5ab3=a9_0x2c34;(function(_0x4dc5d6,_0x3958ab){var _0x2f9ed2=a9_0x2c34,_0x1c4e3b=_0x4dc5d6();while(!![]){try{var _0x3bae28=-parseInt(_0x2f9ed2(0x1d9))/0x1*(parseInt(_0x2f9ed2(0x1df))/0x2)+parseInt(_0x2f9ed2(0x1c0))/0x3*(parseInt(_0x2f9ed2(0x1ca))/0x4)+-parseInt(_0x2f9ed2(0x1d4))/0x5*(parseInt(_0x2f9ed2(0x1d6))/0x6)+parseInt(_0x2f9ed2(0x1ac))/0x7+parseInt(_0x2f9ed2(0x1c3))/0x8*(-parseInt(_0x2f9ed2(0x1cc))/0x9)+parseInt(_0x2f9ed2(0x1cd))/0xa*(-parseInt(_0x2f9ed2(0x1ab))/0xb)+parseInt(_0x2f9ed2(0x1b0))/0xc*(parseInt(_0x2f9ed2(0x1a9))/0xd);if(_0x3bae28===_0x3958ab)break;else _0x1c4e3b['push'](_0x1c4e3b['shift']());}catch(_0x4c137d){_0x1c4e3b['push'](_0x1c4e3b['shift']());}}}(a9_0x570d,0x3bf89));var a9_0x58c498=(function(){var _0x1092bd=!![];return function(_0x3bbf77,_0x41b4fb){var _0x3c5bcb=_0x1092bd?function(){var _0x4bca6a=a9_0x2c34;if(_0x41b4fb){var _0x4a48f7=_0x41b4fb[_0x4bca6a(0x1e2)](_0x3bbf77,arguments);return _0x41b4fb=null,_0x4a48f7;}}:function(){};return _0x1092bd=![],_0x3c5bcb;};}()),a9_0xd9bc03=a9_0x58c498(this,function(){var _0x27bf4f=a9_0x2c34;return a9_0xd9bc03[_0x27bf4f(0x1af)]()['search'](_0x27bf4f(0x1b6))[_0x27bf4f(0x1af)]()[_0x27bf4f(0x1c7)](a9_0xd9bc03)['search'](_0x27bf4f(0x1b6));});a9_0xd9bc03();'use strict';var __createBinding=this&&this[a9_0x1a5ab3(0x1dd)]||(Object[a9_0x1a5ab3(0x1be)]?function(_0x23d82d,_0x1f2a4a,_0x16f353,_0x20d142){var _0x2ce7db=a9_0x1a5ab3;if(_0x20d142===undefined)_0x20d142=_0x16f353;var _0x219630=Object[_0x2ce7db(0x1b7)](_0x1f2a4a,_0x16f353);(!_0x219630||(_0x2ce7db(0x1ad)in _0x219630?!_0x1f2a4a[_0x2ce7db(0x1e3)]:_0x219630[_0x2ce7db(0x1b8)]||_0x219630[_0x2ce7db(0x1d2)]))&&(_0x219630={'enumerable':!![],'get':function(){return _0x1f2a4a[_0x16f353];}}),Object['defineProperty'](_0x23d82d,_0x20d142,_0x219630);}:function(_0x344200,_0x1f892b,_0x272aee,_0x276cfe){if(_0x276cfe===undefined)_0x276cfe=_0x272aee;_0x344200[_0x276cfe]=_0x1f892b[_0x272aee];}),__exportStar=this&&this[a9_0x1a5ab3(0x1cb)]||function(_0x65817e,_0x3210c8){var _0xa17d6c=a9_0x1a5ab3;for(var _0x267368 in _0x65817e)if(_0x267368!==_0xa17d6c(0x1c2)&&!Object[_0xa17d6c(0x1b1)][_0xa17d6c(0x1e6)][_0xa17d6c(0x1b3)](_0x3210c8,_0x267368))__createBinding(_0x3210c8,_0x65817e,_0x267368);};Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1e3),{'value':!![]}),exports[a9_0x1a5ab3(0x1b2)]=exports[a9_0x1a5ab3(0x1c4)]=exports[a9_0x1a5ab3(0x1bc)]=exports[a9_0x1a5ab3(0x1c6)]=exports['Inject']=exports[a9_0x1a5ab3(0x1a8)]=exports['Logger']=exports['Config']=exports['App']=exports['Init']=exports[a9_0x1a5ab3(0x1bd)]=exports[a9_0x1a5ab3(0x1e1)]=exports[a9_0x1a5ab3(0x1d8)]=exports[a9_0x1a5ab3(0x1d1)]=exports[a9_0x1a5ab3(0x1b9)]=exports['Files']=exports[a9_0x1a5ab3(0x1c9)]=exports['Configuration']=exports[a9_0x1a5ab3(0x1d7)]=exports[a9_0x1a5ab3(0x1e5)]=exports[a9_0x1a5ab3(0x1b5)]=exports[a9_0x1a5ab3(0x1db)]=exports[a9_0x1a5ab3(0x1a4)]=exports[a9_0x1a5ab3(0x1cf)]=exports['ApiError']=exports[a9_0x1a5ab3(0x1de)]=exports[a9_0x1a5ab3(0x1b4)]=exports[a9_0x1a5ab3(0x1bf)]=exports[a9_0x1a5ab3(0x1dc)]=exports[a9_0x1a5ab3(0x1d0)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1b2),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x1a5ab3(0x1a3)),exports);var Action_1=require(a9_0x1a5ab3(0x1e0));Object[a9_0x1a5ab3(0x1a7)](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x1a5ab3(0x1c5));Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1dc),{'enumerable':!![],'get':function(){var _0x4f45a2=a9_0x1a5ab3;return ActionApitest_1[_0x4f45a2(0x1dc)];}});var Intercept_1=require(a9_0x1a5ab3(0x1ce));Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1bf),{'enumerable':!![],'get':function(){var _0x58d0f2=a9_0x1a5ab3;return Intercept_1[_0x58d0f2(0x1bf)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x18b6a3=a9_0x1a5ab3;return Intercept_1[_0x18b6a3(0x1b4)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1de),{'enumerable':!![],'get':function(){var _0x582ce4=a9_0x1a5ab3;return getRoutes_1[_0x582ce4(0x1de)];}});var ApiError_1=require(a9_0x1a5ab3(0x1a6));Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1da),{'enumerable':!![],'get':function(){var _0x447b2f=a9_0x1a5ab3;return ApiError_1[_0x447b2f(0x1da)];}});var cache_1=require(a9_0x1a5ab3(0x1bb));Object['defineProperty'](exports,a9_0x1a5ab3(0x1cf),{'enumerable':!![],'get':function(){var _0x5131de=a9_0x1a5ab3;return cache_1[_0x5131de(0x1cf)];}});var event_1=require('@anncic-api/event');Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1a4),{'enumerable':!![],'get':function(){var _0x442866=a9_0x1a5ab3;return event_1[_0x442866(0x1a4)];}});var ApiService_1=require(a9_0x1a5ab3(0x1d5));Object[a9_0x1a5ab3(0x1a7)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x3be854=a9_0x1a5ab3;return ApiService_1[_0x3be854(0x1db)];}});var ExcelService_1=require('./service/ExcelService');Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1b5),{'enumerable':!![],'get':function(){var _0x2b810e=a9_0x1a5ab3;return ExcelService_1[_0x2b810e(0x1b5)];}});var validator_1=require(a9_0x1a5ab3(0x1ba));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x3bd15e=a9_0x1a5ab3;return validator_1[_0x3bd15e(0x1e5)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1d7),{'enumerable':!![],'get':function(){var _0x52fea8=a9_0x1a5ab3;return validator_1[_0x52fea8(0x1d7)];}});function a9_0x570d(){var _0x12d8c0=['__esModule','Inject','ValidatorError','hasOwnProperty','@midwayjs/core','./service/ApitestService','EventService','Files','./exception/ApiError','defineProperty','Provide','13spIwrE','Configuration','275143CXadDQ','118251WDixDE','get','Init','toString','6287388foiNVn','prototype','getAppsConfig','call','IIntercept','ExcelService','(((.+)+)+)+$','getOwnPropertyDescriptor','writable','Fields','@anncic-api/validator','@anncic-api/cache','Singleton','Headers','create','Intercept','3SmDyQB','./configuration','default','376DQxAwi','ScopeEnum','./decorator/ActionApitest','Scope','constructor','Logger','File','1600824aGYRPt','__exportStar','33273KVieMq','20mTzixW','./decorator/Intercept','CacheService','Action','Body','configurable','App','284415yBIIbl','./service/ApiService','42EakFZl','ValidatorService','Param','73441xXYIPS','ApiError','ApiService','Apitest','__createBinding','getRoutes','2zRiKsl','./decorator/Action','Query','apply'];a9_0x570d=function(){return _0x12d8c0;};return a9_0x570d();}var configuration_1=require(a9_0x1a5ab3(0x1c1));function a9_0x2c34(_0x54a994,_0x10f209){var _0x286e2d=a9_0x570d();return a9_0x2c34=function(_0xd9bc03,_0x58c498){_0xd9bc03=_0xd9bc03-0x1a2;var _0x570d68=_0x286e2d[_0xd9bc03];return _0x570d68;},a9_0x2c34(_0x54a994,_0x10f209);}Object['defineProperty'](exports,a9_0x1a5ab3(0x1aa),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x1a5ab3(0x1a2));Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1c9),{'enumerable':!![],'get':function(){var _0x404500=a9_0x1a5ab3;return core_1[_0x404500(0x1c9)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1a5),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1b9),{'enumerable':!![],'get':function(){var _0x67c6ce=a9_0x1a5ab3;return core_1[_0x67c6ce(0x1b9)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1d1),{'enumerable':!![],'get':function(){var _0x26266d=a9_0x1a5ab3;return core_1[_0x26266d(0x1d1)];}}),Object['defineProperty'](exports,a9_0x1a5ab3(0x1d8),{'enumerable':!![],'get':function(){var _0x28077e=a9_0x1a5ab3;return core_1[_0x28077e(0x1d8)];}}),Object['defineProperty'](exports,a9_0x1a5ab3(0x1e1),{'enumerable':!![],'get':function(){var _0x4377ba=a9_0x1a5ab3;return core_1[_0x4377ba(0x1e1)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1bd),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1ae),{'enumerable':!![],'get':function(){var _0x8798ed=a9_0x1a5ab3;return core_1[_0x8798ed(0x1ae)];}});var core_2=require(a9_0x1a5ab3(0x1a2));Object['defineProperty'](exports,a9_0x1a5ab3(0x1d3),{'enumerable':!![],'get':function(){var _0x3f196e=a9_0x1a5ab3;return core_2[_0x3f196e(0x1d3)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1c8),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x1a5ab3(0x1a7)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x24d5bd=a9_0x1a5ab3;return core_2[_0x24d5bd(0x1a8)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1e4),{'enumerable':!![],'get':function(){var _0x3c19a4=a9_0x1a5ab3;return core_2[_0x3c19a4(0x1e4)];}}),Object['defineProperty'](exports,a9_0x1a5ab3(0x1c6),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,a9_0x1a5ab3(0x1bc),{'enumerable':!![],'get':function(){var _0x42bc3c=a9_0x1a5ab3;return core_2[_0x42bc3c(0x1bc)];}}),Object[a9_0x1a5ab3(0x1a7)](exports,a9_0x1a5ab3(0x1c4),{'enumerable':!![],'get':function(){var _0xed1df7=a9_0x1a5ab3;return core_2[_0xed1df7(0x1c4)];}}),global[a9_0x1a5ab3(0x1b2)]=getAppsConfig_1[a9_0x1a5ab3(0x1b2)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x556c(_0x263a1d,_0x2a7d4a){var _0x434ffc=a10_0x3cff();return a10_0x556c=function(_0x297705,_0x496a9d){_0x297705=_0x297705-0x1a3;var _0x3cffd3=_0x434ffc[_0x297705];return _0x3cffd3;},a10_0x556c(_0x263a1d,_0x2a7d4a);}var a10_0x4b7c63=a10_0x556c;(function(_0x1964ec,_0x5d0003){var _0x5bb553=a10_0x556c,_0x35dc4b=_0x1964ec();while(!![]){try{var _0x18b9f5=-parseInt(_0x5bb553(0x1c6))/0x1*(-parseInt(_0x5bb553(0x1ab))/0x2)+parseInt(_0x5bb553(0x1e3))/0x3*(-parseInt(_0x5bb553(0x1e2))/0x4)+parseInt(_0x5bb553(0x1a7))/0x5*(-parseInt(_0x5bb553(0x1bb))/0x6)+parseInt(_0x5bb553(0x1aa))/0x7*(parseInt(_0x5bb553(0x1e7))/0x8)+-parseInt(_0x5bb553(0x1c4))/0x9*(parseInt(_0x5bb553(0x1b1))/0xa)+parseInt(_0x5bb553(0x1bc))/0xb*(-parseInt(_0x5bb553(0x1e0))/0xc)+-parseInt(_0x5bb553(0x1a9))/0xd*(-parseInt(_0x5bb553(0x1ce))/0xe);if(_0x18b9f5===_0x5d0003)break;else _0x35dc4b['push'](_0x35dc4b['shift']());}catch(_0x2ff1d9){_0x35dc4b['push'](_0x35dc4b['shift']());}}}(a10_0x3cff,0xbd69b));var a10_0x496a9d=(function(){var _0x286605=!![];return function(_0x6d16ce,_0x4abf97){var _0x2cd241=_0x286605?function(){var _0x55b79d=a10_0x556c;if(_0x4abf97){var _0x2798db=_0x4abf97[_0x55b79d(0x1c7)](_0x6d16ce,arguments);return _0x4abf97=null,_0x2798db;}}:function(){};return _0x286605=![],_0x2cd241;};}()),a10_0x297705=a10_0x496a9d(this,function(){var _0x34f2e4=a10_0x556c;return a10_0x297705[_0x34f2e4(0x1c0)]()['search']('(((.+)+)+)+$')[_0x34f2e4(0x1c0)]()[_0x34f2e4(0x1b4)](a10_0x297705)[_0x34f2e4(0x1d7)](_0x34f2e4(0x1e5));});a10_0x297705();'use strict';var __decorate=this&&this['__decorate']||function(_0x1f8324,_0x3fc84a,_0x4d1d19,_0xd7a4b1){var _0x50fd3b=a10_0x556c,_0x4c5a5b=arguments[_0x50fd3b(0x1d5)],_0x3136b2=_0x4c5a5b<0x3?_0x3fc84a:_0xd7a4b1===null?_0xd7a4b1=Object[_0x50fd3b(0x1ac)](_0x3fc84a,_0x4d1d19):_0xd7a4b1,_0x39710b;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x3136b2=Reflect[_0x50fd3b(0x1cc)](_0x1f8324,_0x3fc84a,_0x4d1d19,_0xd7a4b1);else{for(var _0x4c1db6=_0x1f8324['length']-0x1;_0x4c1db6>=0x0;_0x4c1db6--)if(_0x39710b=_0x1f8324[_0x4c1db6])_0x3136b2=(_0x4c5a5b<0x3?_0x39710b(_0x3136b2):_0x4c5a5b>0x3?_0x39710b(_0x3fc84a,_0x4d1d19,_0x3136b2):_0x39710b(_0x3fc84a,_0x4d1d19))||_0x3136b2;}return _0x4c5a5b>0x3&&_0x3136b2&&Object[_0x50fd3b(0x1b9)](_0x3fc84a,_0x4d1d19,_0x3136b2),_0x3136b2;},__metadata=this&&this['__metadata']||function(_0x111832,_0x1dbb30){var _0x3e509a=a10_0x556c;if(typeof Reflect===_0x3e509a(0x1de)&&typeof Reflect[_0x3e509a(0x1c8)]===_0x3e509a(0x1b6))return Reflect[_0x3e509a(0x1c8)](_0x111832,_0x1dbb30);};function a10_0x3cff(){var _0x5f2662=['anncicapi','config','decorate','Config','282086UqxtXn','ApiService','HEADERS_CHECKCODE','devices','secret=','abs','TIMEOUT','length','crypto-js','search','HEADERS_DEVICE','secret','checkcode','HEADERS_SIGNATURE','验证失败','TIMEOUT_LOGINTIME','object','Singleton','12ONEnxD','HEADERS_LACK','32BoUIxu','16098udxvrI','ApiError','(((.+)+)+)+$','requesttime','10762168cDEJpR','prototype','signature','device','Scope','15gmMAuw','design:type','598jPlNaS','7ppGRWz','306928nERQFT','getOwnPropertyDescriptor','token','toLowerCase','push','fromEntries','9610ddxdDk','Provide','password','constructor','logintime','function','entries','logintimeout','defineProperty','MD5','279522eVhjdj','16694722rElDUl','now','checksign','sort','toString','map','getsign','__esModule','963Tcdoug','timeout','2jbgrbL','apply','metadata','getcheck'];a10_0x3cff=function(){return _0x5f2662;};return a10_0x3cff();}Object['defineProperty'](exports,a10_0x4b7c63(0x1c3),{'value':!![]}),exports[a10_0x4b7c63(0x1cf)]=void 0x0;const crypto_js_1=require(a10_0x4b7c63(0x1d6)),core_1=require('@midwayjs/core'),ApiError_1=require('../exception/ApiError');let ApiService=exports['ApiService']=class ApiService{[a10_0x4b7c63(0x1b3)](_0x3e3126){var _0x3a8986=a10_0x4b7c63,_0x7f1a2b;return _0x3e3126?(0x0,crypto_js_1[_0x3a8986(0x1ba)])(''+_0x3e3126+(0x0,crypto_js_1[_0x3a8986(0x1ba)])((0x0,crypto_js_1[_0x3a8986(0x1ba)])(''+_0x3e3126)[_0x3a8986(0x1c0)]()+(''+((_0x7f1a2b=this[_0x3a8986(0x1cb)])===null||_0x7f1a2b===void 0x0?void 0x0:_0x7f1a2b[_0x3a8986(0x1b3)])))[_0x3a8986(0x1c0)]())['toString']():'';}[a10_0x4b7c63(0x1c9)](_0x551b4d,_0x24b358,_0x497245=Date[a10_0x4b7c63(0x1bd)]()){var _0x1d59b0=a10_0x4b7c63;return{'Token':_0x551b4d,'Logintime':_0x497245,'Checkcode':this[_0x1d59b0(0x1da)](_0x551b4d,_0x24b358,_0x497245)};}[a10_0x4b7c63(0x1c2)](_0x5cd78a={}){var _0x5b72d5=a10_0x4b7c63,_0x18a534,_0x4cf3da;const _0x8ec198=[],_0x4c03ea=Object[_0x5b72d5(0x1b0)](Object[_0x5b72d5(0x1b7)](_0x5cd78a)[_0x5b72d5(0x1c1)](_0x1c6367=>[_0x1c6367[0x0][_0x5b72d5(0x1ae)](),_0x1c6367[0x1]]));for(let _0x370b3f of[_0x5b72d5(0x1a5),_0x5b72d5(0x1e6),_0x5b72d5(0x1ad),'logintime',_0x5b72d5(0x1da)]){if(typeof _0x4c03ea[_0x370b3f]=='undefined')throw new AnnError(ApiError_1[_0x5b72d5(0x1e4)][_0x5b72d5(0x1e1)],{'message':_0x5b72d5(0x1dc)});_0x8ec198[_0x5b72d5(0x1af)](_0x370b3f+'='+_0x4c03ea[_0x370b3f]);}_0x4c03ea['requesttime']&&((_0x18a534=_0x4c03ea['requesttime'])===null||_0x18a534===void 0x0?void 0x0:_0x18a534['length'])==0xa&&(_0x4c03ea['requesttime']=_0x4c03ea[_0x5b72d5(0x1e6)]*0x3e8);if(this[_0x5b72d5(0x1cb)]['timeout']&&Date['now']()-Math[_0x5b72d5(0x1d3)](_0x4c03ea['requesttime'])>this['config'][_0x5b72d5(0x1c5)])throw new AnnError(ApiError_1[_0x5b72d5(0x1e4)][_0x5b72d5(0x1d4)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x4c03ea[_0x5b72d5(0x1e6)],'timestamp':Date['now']()});if((((_0x4cf3da=this[_0x5b72d5(0x1cb)][_0x5b72d5(0x1d1)][_0x4c03ea[_0x5b72d5(0x1a5)]])===null||_0x4cf3da===void 0x0?void 0x0:_0x4cf3da['logintimeout'])||0x0)>0x0&&Date['now']()-Math[_0x5b72d5(0x1d3)](_0x4c03ea[_0x5b72d5(0x1b5)])>this[_0x5b72d5(0x1cb)][_0x5b72d5(0x1d1)][_0x4c03ea[_0x5b72d5(0x1a5)]][_0x5b72d5(0x1b8)])throw new AnnError(ApiError_1['ApiError'][_0x5b72d5(0x1dd)]);if(!this[_0x5b72d5(0x1cb)][_0x5b72d5(0x1d1)][_0x4c03ea['device']]||!this[_0x5b72d5(0x1cb)][_0x5b72d5(0x1d1)][_0x4c03ea[_0x5b72d5(0x1a5)]][_0x5b72d5(0x1d9)]||!this[_0x5b72d5(0x1cb)]['devices'][_0x4c03ea[_0x5b72d5(0x1a5)]]['checkcode'])throw new AnnError(ApiError_1[_0x5b72d5(0x1e4)][_0x5b72d5(0x1d8)]);if(_0x4c03ea[_0x5b72d5(0x1ad)]&&_0x4c03ea[_0x5b72d5(0x1da)]!=this['checkcode'](_0x4c03ea[_0x5b72d5(0x1ad)],_0x4c03ea[_0x5b72d5(0x1a5)],_0x4c03ea[_0x5b72d5(0x1b5)]))throw new AnnError(ApiError_1[_0x5b72d5(0x1e4)][_0x5b72d5(0x1d0)]);return _0x8ec198[_0x5b72d5(0x1af)](_0x5b72d5(0x1d2)+this[_0x5b72d5(0x1cb)]['devices'][_0x4c03ea[_0x5b72d5(0x1a5)]][_0x5b72d5(0x1d9)]),(0x0,crypto_js_1['MD5'])(_0x8ec198[_0x5b72d5(0x1bf)]()['join'](''))[_0x5b72d5(0x1c0)]();}[a10_0x4b7c63(0x1da)](_0x56d70e,_0x23dbc9,_0x1e05fd=Date['now']()){var _0x3d816a=a10_0x4b7c63,_0x493b3c,_0x503341,_0x2b41c5;if(!((_0x493b3c=this['config'])===null||_0x493b3c===void 0x0?void 0x0:_0x493b3c['devices'][_0x23dbc9])||!((_0x2b41c5=(_0x503341=this[_0x3d816a(0x1cb)])===null||_0x503341===void 0x0?void 0x0:_0x503341['devices'][_0x23dbc9])===null||_0x2b41c5===void 0x0?void 0x0:_0x2b41c5[_0x3d816a(0x1da)]))throw new AnnError(ApiError_1[_0x3d816a(0x1e4)][_0x3d816a(0x1d8)]);return(0x0,crypto_js_1['MD5'])(''+_0x56d70e+(0x0,crypto_js_1[_0x3d816a(0x1ba)])(''+_0x1e05fd+(''+this['config']['devices'][_0x23dbc9][_0x3d816a(0x1da)]))[_0x3d816a(0x1c0)]())[_0x3d816a(0x1c0)]();}[a10_0x4b7c63(0x1be)](_0x219bbd={}){var _0x5e6384=a10_0x4b7c63;const _0x9b874d=Object[_0x5e6384(0x1b0)](Object['entries'](_0x219bbd)[_0x5e6384(0x1c1)](_0x3e78c1=>[_0x3e78c1[0x0][_0x5e6384(0x1ae)](),_0x3e78c1[0x1]]));if(!(_0x9b874d===null||_0x9b874d===void 0x0?void 0x0:_0x9b874d[_0x5e6384(0x1a4)]))throw new AnnError(ApiError_1[_0x5e6384(0x1e4)]['HEADERS_LACK'],{'message':_0x5e6384(0x1dc)});if((_0x9b874d===null||_0x9b874d===void 0x0?void 0x0:_0x9b874d['signature'])!=this[_0x5e6384(0x1c2)](_0x9b874d))throw new AnnError(ApiError_1[_0x5e6384(0x1e4)][_0x5e6384(0x1db)],{'message':'验证失败'});return!![];}};__decorate([(0x0,core_1[a10_0x4b7c63(0x1cd)])(a10_0x4b7c63(0x1ca)),__metadata(a10_0x4b7c63(0x1a8),Object)],ApiService[a10_0x4b7c63(0x1a3)],a10_0x4b7c63(0x1cb),void 0x0),exports['ApiService']=ApiService=__decorate([(0x0,core_1[a10_0x4b7c63(0x1b2)])(),(0x0,core_1[a10_0x4b7c63(0x1a6)])(core_1['ScopeEnum'][a10_0x4b7c63(0x1df)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x584ef4=a11_0x33a0;function a11_0x33a0(_0x254402,_0xb15e90){const _0x3cc4f0=a11_0x500b();return a11_0x33a0=function(_0x414c7d,_0x17ff64){_0x414c7d=_0x414c7d-0xea;let _0x500b5a=_0x3cc4f0[_0x414c7d];return _0x500b5a;},a11_0x33a0(_0x254402,_0xb15e90);}(function(_0x1a409f,_0x44a421){const _0x227e24=a11_0x33a0,_0x25928a=_0x1a409f();while(!![]){try{const _0x4c30f7=parseInt(_0x227e24(0x12e))/0x1+-parseInt(_0x227e24(0x104))/0x2*(parseInt(_0x227e24(0xf1))/0x3)+-parseInt(_0x227e24(0xf6))/0x4+parseInt(_0x227e24(0x126))/0x5*(-parseInt(_0x227e24(0x132))/0x6)+-parseInt(_0x227e24(0x124))/0x7*(parseInt(_0x227e24(0x13c))/0x8)+parseInt(_0x227e24(0x11e))/0x9+-parseInt(_0x227e24(0xfb))/0xa*(-parseInt(_0x227e24(0xf7))/0xb);if(_0x4c30f7===_0x44a421)break;else _0x25928a['push'](_0x25928a['shift']());}catch(_0x143814){_0x25928a['push'](_0x25928a['shift']());}}}(a11_0x500b,0x47b46));const a11_0x17ff64=(function(){let _0x1d1dd9=!![];return function(_0x4fb9b4,_0x410fa7){const _0x4a97c6=_0x1d1dd9?function(){const _0x211ee5=a11_0x33a0;if(_0x410fa7){const _0x245ace=_0x410fa7[_0x211ee5(0x106)](_0x4fb9b4,arguments);return _0x410fa7=null,_0x245ace;}}:function(){};return _0x1d1dd9=![],_0x4a97c6;};}()),a11_0x414c7d=a11_0x17ff64(this,function(){const _0x49f493=a11_0x33a0;return a11_0x414c7d[_0x49f493(0x133)]()[_0x49f493(0x10c)](_0x49f493(0x119))[_0x49f493(0x133)]()[_0x49f493(0x112)](a11_0x414c7d)['search'](_0x49f493(0x119));});a11_0x414c7d();'use strict';var __decorate=this&&this[a11_0x584ef4(0xf8)]||function(_0x1518f8,_0x17f3ee,_0x5729e4,_0xcd0f6c){const _0x5127ca=a11_0x584ef4;var _0x31adb3=arguments[_0x5127ca(0x13b)],_0x4b708e=_0x31adb3<0x3?_0x17f3ee:_0xcd0f6c===null?_0xcd0f6c=Object[_0x5127ca(0x109)](_0x17f3ee,_0x5729e4):_0xcd0f6c,_0x12430e;if(typeof Reflect===_0x5127ca(0x100)&&typeof Reflect[_0x5127ca(0xfd)]===_0x5127ca(0xf5))_0x4b708e=Reflect[_0x5127ca(0xfd)](_0x1518f8,_0x17f3ee,_0x5729e4,_0xcd0f6c);else{for(var _0xfbe8b7=_0x1518f8[_0x5127ca(0x13b)]-0x1;_0xfbe8b7>=0x0;_0xfbe8b7--)if(_0x12430e=_0x1518f8[_0xfbe8b7])_0x4b708e=(_0x31adb3<0x3?_0x12430e(_0x4b708e):_0x31adb3>0x3?_0x12430e(_0x17f3ee,_0x5729e4,_0x4b708e):_0x12430e(_0x17f3ee,_0x5729e4))||_0x4b708e;}return _0x31adb3>0x3&&_0x4b708e&&Object[_0x5127ca(0xec)](_0x17f3ee,_0x5729e4,_0x4b708e),_0x4b708e;},__metadata=this&&this[a11_0x584ef4(0x122)]||function(_0x1aa0be,_0x104069){const _0x45f601=a11_0x584ef4;if(typeof Reflect==='object'&&typeof Reflect[_0x45f601(0x10b)]===_0x45f601(0xf5))return Reflect[_0x45f601(0x10b)](_0x1aa0be,_0x104069);},__param=this&&this[a11_0x584ef4(0x13a)]||function(_0x2fcb44,_0x260ad0){return function(_0x30f91d,_0x114fbd){_0x260ad0(_0x30f91d,_0x114fbd,_0x2fcb44);};};Object[a11_0x584ef4(0xec)](exports,a11_0x584ef4(0x138),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x584ef4(0x113)]=void 0x0;const path_1=require(a11_0x584ef4(0x121)),fs_1=require('fs'),core_1=require(a11_0x584ef4(0x131)),core_2=require(a11_0x584ef4(0x131)),core_3=require(a11_0x584ef4(0x131)),getRoutes_1=require('../helper/getRoutes');let ApitestService=exports[a11_0x584ef4(0x113)]=class ApitestService{async[a11_0x584ef4(0x11f)](_0x4ee7f6){const _0x69c918=a11_0x584ef4,_0x377743=(0x0,getRoutes_1[_0x69c918(0x111)])(_0x4ee7f6),_0x47265f=[];for(let _0xf3dd61 in _0x377743){for(let _0x3ea113 in _0x377743[_0xf3dd61][_0x69c918(0xfa)]){let _0x2f8cc9=_0x377743[_0xf3dd61][_0x69c918(0xfa)][_0x3ea113],_0x4aba23=[];for(let _0x29cbc8 in _0x2f8cc9[_0x69c918(0xf4)]){_0x4aba23[_0x69c918(0x13e)](_0x2f8cc9[_0x69c918(0xf4)][_0x29cbc8]);}_0x47265f['push']({'title':_0x377743[_0xf3dd61][_0x69c918(0x12d)]+':'+_0x2f8cc9[_0x69c918(0x12d)],'prefix':_0x377743[_0xf3dd61]['prefix'],'router':_0x2f8cc9[_0x69c918(0x139)],'method':_0x2f8cc9[_0x69c918(0x136)],'describe':_0x2f8cc9[_0x69c918(0xfe)]||'','filepath':_0x377743[_0xf3dd61][_0x69c918(0x115)]||'','request':_0x4aba23});}}const _0x2abb78=(0x0,path_1[_0x69c918(0x13d)])(__dirname,_0x69c918(0x103));return(0x0,fs_1['readFileSync'])(_0x2abb78,{'encoding':_0x69c918(0x12f)})[_0x69c918(0x135)](/__res__/g,'/apiteststatic/')['replace'](_0x69c918(0x123),JSON[_0x69c918(0xf9)](_0x47265f))[_0x69c918(0x135)]('__devices__',JSON[_0x69c918(0xf9)](this[_0x69c918(0x10e)][_0x69c918(0x101)]));}};function a11_0x500b(){const _0x466abe=['getRoutes','constructor','ApitestService','/index.html','filepath','/apiteststatic/*','text/css;\x20charset=utf-8','isDevelopmentEnvironment','(((.+)+)+)+$','content-type','apiteststatic','design:returntype','Provide','3204108zxpHoW','apidoc','design:type','path','__metadata','__apiList__','7GxJykc','public,\x20max-age=604800','1053935HoyiKp','existsSync','url','anncicapi','/apiteststatic/','ScopeEnum','apitestmodule','summary','137420tozjtX','utf-8','.css','@midwayjs/core','12oQEWsE','toString','apitesthtml','replace','method','../../public/','__esModule','route','__param','length','1333256aYHcxe','join','push','ApitestStaticController','ctx','defineProperty','design:paramtypes','apitest','set','prototype','15YvoLTr','Environment','/apitest','request','function','887308gXCmuu','11fHmKJZ','__decorate','stringify','routes','8886480uhpIhJ','Singleton','decorate','description','Controller','object','devices','application/javascript;\x20charset=utf-8','../../public/index.html','111328IuZLWj','Config','apply','extname','Get','getOwnPropertyDescriptor','readFileSync','metadata','search','.js','config','Inject','Scope'];a11_0x500b=function(){return _0x466abe;};return a11_0x500b();}__decorate([(0x0,core_3[a11_0x584ef4(0x105)])('anncicapi'),__metadata(a11_0x584ef4(0x120),Object)],ApitestService[a11_0x584ef4(0xf0)],'config',void 0x0),exports[a11_0x584ef4(0x113)]=ApitestService=__decorate([(0x0,core_2[a11_0x584ef4(0x11d)])('apitest'),(0x0,core_3[a11_0x584ef4(0x110)])(core_3['ScopeEnum'][a11_0x584ef4(0xfc)])],ApitestService);let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async['apitesthtml'](){const _0x2df487=a11_0x584ef4;if(this[_0x2df487(0xee)]){const _0x286e1b={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x286e1b['filepath']=!![]),await this[_0x2df487(0x113)][_0x2df487(0x11f)](_0x286e1b);}return'';}async['apitestmodule'](_0x39a427){const _0x1e1a11=a11_0x584ef4;if(this['apitest']){const _0x2b95f6={'module':_0x39a427};return this[_0x1e1a11(0xf2)][_0x1e1a11(0x118)]()&&(_0x2b95f6[_0x1e1a11(0x115)]=!![]),await this[_0x1e1a11(0x113)][_0x1e1a11(0x11f)](_0x2b95f6);}return'';}async[a11_0x584ef4(0x11b)](){const _0x1c6d21=a11_0x584ef4;if((0x0,path_1['extname'])(this[_0x1c6d21(0xeb)][_0x1c6d21(0xf4)]['url'])){var _0x43f0b0=(0x0,path_1[_0x1c6d21(0x13d)])(__dirname,_0x1c6d21(0x137)+this[_0x1c6d21(0xeb)][_0x1c6d21(0xf4)][_0x1c6d21(0x128)][_0x1c6d21(0x135)](_0x1c6d21(0x12a),'/'));if(_0x43f0b0['substring'](_0x43f0b0[_0x1c6d21(0x13b)]-0xb)!=_0x1c6d21(0x114)){this[_0x1c6d21(0xeb)]['set']('cache-control',_0x1c6d21(0x125));if((0x0,path_1[_0x1c6d21(0x107)])(this[_0x1c6d21(0xeb)][_0x1c6d21(0xf4)][_0x1c6d21(0x128)])==_0x1c6d21(0x10d))this[_0x1c6d21(0xeb)]['set'](_0x1c6d21(0x11a),_0x1c6d21(0x102));else(0x0,path_1[_0x1c6d21(0x107)])(this[_0x1c6d21(0xeb)][_0x1c6d21(0xf4)][_0x1c6d21(0x128)])==_0x1c6d21(0x130)&&this[_0x1c6d21(0xeb)][_0x1c6d21(0xef)]('content-type',_0x1c6d21(0x117));return(0x0,fs_1[_0x1c6d21(0x127)])(_0x43f0b0)&&(0x0,fs_1[_0x1c6d21(0x10a)])(_0x43f0b0,{'encoding':_0x1c6d21(0x12f)});}}return'';}};__decorate([(0x0,core_3[a11_0x584ef4(0x10f)])(),__metadata(a11_0x584ef4(0x120),Object)],ApitestStaticController[a11_0x584ef4(0xf0)],'ctx',void 0x0),__decorate([(0x0,core_3[a11_0x584ef4(0x10f)])(),__metadata(a11_0x584ef4(0x120),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x584ef4(0xf0)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x584ef4(0x10f)])(),__metadata(a11_0x584ef4(0x120),ApitestService)],ApitestStaticController['prototype'],a11_0x584ef4(0x113),void 0x0),__decorate([(0x0,core_3[a11_0x584ef4(0x105)])('apitest'),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x584ef4(0xf0)],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x584ef4(0x105)])(a11_0x584ef4(0x129)),__metadata(a11_0x584ef4(0x120),Object)],ApitestStaticController[a11_0x584ef4(0xf0)],a11_0x584ef4(0x10e),void 0x0),__decorate([(0x0,core_2[a11_0x584ef4(0x108)])(a11_0x584ef4(0xf3)),__metadata(a11_0x584ef4(0x120),Function),__metadata(a11_0x584ef4(0xed),[]),__metadata(a11_0x584ef4(0x11c),Promise)],ApitestStaticController[a11_0x584ef4(0xf0)],a11_0x584ef4(0x134),null),__decorate([(0x0,core_2['Get'])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])('module')),__metadata(a11_0x584ef4(0x120),Function),__metadata(a11_0x584ef4(0xed),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x584ef4(0x12c),null),__decorate([(0x0,core_2[a11_0x584ef4(0x108)])(a11_0x584ef4(0x116)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a11_0x584ef4(0x11c),Promise)],ApitestStaticController[a11_0x584ef4(0xf0)],'apiteststatic',null),exports[a11_0x584ef4(0xea)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x584ef4(0xff)])('/'),(0x0,core_3[a11_0x584ef4(0x110)])(core_3[a11_0x584ef4(0x12b)]['Request'])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x20f981=a12_0x90b4;(function(_0x4cbaa6,_0x3b5b47){const _0x2c3c46=a12_0x90b4,_0x5bf806=_0x4cbaa6();while(!![]){try{const _0x4b37d2=-parseInt(_0x2c3c46(0x96))/0x1+-parseInt(_0x2c3c46(0xa1))/0x2*(parseInt(_0x2c3c46(0xc7))/0x3)+-parseInt(_0x2c3c46(0xc8))/0x4+parseInt(_0x2c3c46(0xa8))/0x5*(parseInt(_0x2c3c46(0xce))/0x6)+-parseInt(_0x2c3c46(0x97))/0x7+-parseInt(_0x2c3c46(0x9a))/0x8*(parseInt(_0x2c3c46(0xbd))/0x9)+parseInt(_0x2c3c46(0xd0))/0xa;if(_0x4b37d2===_0x3b5b47)break;else _0x5bf806['push'](_0x5bf806['shift']());}catch(_0x49a8d7){_0x5bf806['push'](_0x5bf806['shift']());}}}(a12_0x1ccc,0x7e03c));const a12_0x189898=(function(){let _0x3c0855=!![];return function(_0x59a5f4,_0x5e1daf){const _0x1ea7d9=_0x3c0855?function(){const _0x5454c1=a12_0x90b4;if(_0x5e1daf){const _0x238b1f=_0x5e1daf[_0x5454c1(0xbf)](_0x59a5f4,arguments);return _0x5e1daf=null,_0x238b1f;}}:function(){};return _0x3c0855=![],_0x1ea7d9;};}()),a12_0x172a79=a12_0x189898(this,function(){const _0x450a52=a12_0x90b4;return a12_0x172a79[_0x450a52(0xaf)]()[_0x450a52(0xa7)](_0x450a52(0xb2))[_0x450a52(0xaf)]()['constructor'](a12_0x172a79)[_0x450a52(0xa7)]('(((.+)+)+)+$');});function a12_0x1ccc(){const _0x15ae93=['exceljs','metadata','decorate','prototype','readFile','filter','key','373244OSWFny','7074816wEYxWc','rowCount','isNumber','8QMuguz','eachCell','__esModule','value','col','/public/xlsx/','getWorksheet','883544NFnPHx','columns','download','YYYY/MM/DD','model','set','search','5HAsUDM','existsSync','getCell','substring','Scope','writeFile','mkdirSync','toString','endsWith','App','(((.+)+)+)+$','Api\x20Excel\x20Error:\x20','keys','getOwnPropertyDescriptor','handler','ScopeEnum','__decorate','parse','startsWith','.xlsx','Workbook','8338563rvfXMi','getAppDir','apply','object','app','ExcelService','addRow','\x20is\x20read\x20fail','frozen','replace','3uirjcT','2720872FfpRyZ','length','Provide','@midwayjs/core','design:type','header','2645802TPONZN','Singleton','35076180LBZqEX','getRow','push','defineProperty','get'];a12_0x1ccc=function(){return _0x15ae93;};return a12_0x1ccc();}a12_0x172a79();'use strict';function a12_0x90b4(_0x56e932,_0x887107){const _0x3df8db=a12_0x1ccc();return a12_0x90b4=function(_0x172a79,_0x189898){_0x172a79=_0x172a79-0x8b;let _0x1cccde=_0x3df8db[_0x172a79];return _0x1cccde;},a12_0x90b4(_0x56e932,_0x887107);}var __decorate=this&&this[a12_0x20f981(0xb8)]||function(_0x1f990,_0x182703,_0x28db1f,_0x308b27){const _0x4b5c1d=a12_0x20f981;var _0x116450=arguments[_0x4b5c1d(0xc9)],_0x5cf5c4=_0x116450<0x3?_0x182703:_0x308b27===null?_0x308b27=Object[_0x4b5c1d(0xb5)](_0x182703,_0x28db1f):_0x308b27,_0x2855aa;if(typeof Reflect===_0x4b5c1d(0xc0)&&typeof Reflect['decorate']==='function')_0x5cf5c4=Reflect[_0x4b5c1d(0x91)](_0x1f990,_0x182703,_0x28db1f,_0x308b27);else{for(var _0x15fbc0=_0x1f990['length']-0x1;_0x15fbc0>=0x0;_0x15fbc0--)if(_0x2855aa=_0x1f990[_0x15fbc0])_0x5cf5c4=(_0x116450<0x3?_0x2855aa(_0x5cf5c4):_0x116450>0x3?_0x2855aa(_0x182703,_0x28db1f,_0x5cf5c4):_0x2855aa(_0x182703,_0x28db1f))||_0x5cf5c4;}return _0x116450>0x3&&_0x5cf5c4&&Object[_0x4b5c1d(0x8d)](_0x182703,_0x28db1f,_0x5cf5c4),_0x5cf5c4;},__metadata=this&&this['__metadata']||function(_0x46ed11,_0x51d01e){const _0x428fc5=a12_0x20f981;if(typeof Reflect===_0x428fc5(0xc0)&&typeof Reflect[_0x428fc5(0x90)]==='function')return Reflect['metadata'](_0x46ed11,_0x51d01e);};Object[a12_0x20f981(0x8d)](exports,a12_0x20f981(0x9c),{'value':!![]}),exports[a12_0x20f981(0xc2)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x20f981(0x8f)),koasend=require('koa-send'),core_1=require(a12_0x20f981(0xcb));let ExcelService=exports[a12_0x20f981(0xc2)]=class ExcelService{async[a12_0x20f981(0xb9)](_0x17b44d,_0x1c7ea5,_0x2909b9=[0x0]){const _0xf7a576=a12_0x20f981;var _0x3aa17f,_0x48f7a3;const _0x2e68e1=new exceljs[(_0xf7a576(0xbc))](),_0x18c2ae=[];let _0x1edfe6=_0x17b44d[_0xf7a576(0xc6)](/(\\|\/)/g,'/')[_0xf7a576(0xc6)](/\/{2,}/g,'/');!(_0x1edfe6===null||_0x1edfe6===void 0x0?void 0x0:_0x1edfe6[_0xf7a576(0xba)]('/'))&&(_0x1edfe6=this[_0xf7a576(0xc1)][_0xf7a576(0xbe)]()+'/'+_0x1edfe6);try{await _0x2e68e1['xlsx'][_0xf7a576(0x93)](_0x1edfe6);}catch(_0x4df63c){return console['log'](_0xf7a576(0xb3)+_0x1edfe6+_0xf7a576(0xc4)),_0x18c2ae;}for(const _0x559de4 of _0x2909b9){const _0x2a9377=lodash[_0xf7a576(0x99)](_0x559de4)?((_0x3aa17f=_0x2e68e1['worksheets'])===null||_0x3aa17f===void 0x0?void 0x0:_0x3aa17f[_0x559de4])||undefined:_0x2e68e1[_0xf7a576(0xa0)](_0x559de4);if(_0x2a9377){var _0x15e914=0x1;const _0x2cdacb=_0x2a9377[_0xf7a576(0x8b)](0x1),_0xd6e845=await new Promise(_0x1f7587=>{const _0x463b6a=_0xf7a576,_0x3fa19f={};_0x2cdacb[_0x463b6a(0x9b)]((_0x283a1b,_0x1d477b)=>{const _0x3e2dbc=_0x463b6a;for(const _0x542a91 of _0x1c7ea5){if(_0x283a1b['value']==_0x542a91[_0x3e2dbc(0xcd)])_0x15e914=0x2,_0x3fa19f[_0x542a91['key']]={'header':_0x283a1b[_0x3e2dbc(0x9e)],'handler':_0x542a91[_0x3e2dbc(0xb6)]};else{if(!_0x3fa19f[_0x542a91[_0x3e2dbc(0x95)]])try{const _0x1feb1f=_0x2cdacb&&_0x2cdacb[_0x3e2dbc(0xaa)](_0x542a91['header']);_0x1feb1f&&(_0x3fa19f[_0x542a91[_0x3e2dbc(0x95)]]={'header':_0x1feb1f[_0x3e2dbc(0x9e)],'handler':_0x542a91['handler']});}catch{}}}_0x2cdacb['cellCount']==_0x1d477b&&_0x1f7587(_0x3fa19f);});});_0x4896d1:for(const _0x294eb9 of _0x2a9377['findRows'](_0x15e914,_0x2a9377[_0xf7a576(0x98)])){if(typeof(_0x294eb9===null||_0x294eb9===void 0x0?void 0x0:_0x294eb9[_0xf7a576(0xaa)])!='function')continue _0x4896d1;const _0x10bfcf={};_0x53b7c4:for(const _0x5f508b in _0xd6e845){if(_0xd6e845[_0x5f508b][_0xf7a576(0xcd)]){const _0x144e71=_0x294eb9[_0xf7a576(0xaa)](_0xd6e845[_0x5f508b][_0xf7a576(0xcd)]);if(!_0x144e71)continue _0x53b7c4;try{_0x144e71[_0xf7a576(0xaf)]();}catch(_0x138bb3){_0x144e71['toString']=()=>{const _0x2863a8=_0xf7a576;var _0x455919;return''+(((_0x455919=_0x144e71===null||_0x144e71===void 0x0?void 0x0:_0x144e71[_0x2863a8(0xa5)])===null||_0x455919===void 0x0?void 0x0:_0x455919[_0x2863a8(0x9d)])||'');};}typeof((_0x48f7a3=_0xd6e845[_0x5f508b])===null||_0x48f7a3===void 0x0?void 0x0:_0x48f7a3[_0xf7a576(0xb6)])=='function'?_0x10bfcf[_0x5f508b]=await _0xd6e845[_0x5f508b][_0xf7a576(0xb6)](lodash[_0xf7a576(0xa6)]({},_0x5f508b,(_0x144e71===null||_0x144e71===void 0x0?void 0x0:_0x144e71[_0xf7a576(0xaf)]())||''),_0x144e71[_0xf7a576(0xa5)]):_0x10bfcf[_0x5f508b]=(_0x144e71===null||_0x144e71===void 0x0?void 0x0:_0x144e71[_0xf7a576(0xaf)]())||'';}}Object[_0xf7a576(0xb4)](_0x10bfcf)[_0xf7a576(0xc9)]>0x0&&Object['values'](_0x10bfcf)[_0xf7a576(0x94)](_0x5157b7=>_0x5157b7!='')[_0xf7a576(0xc9)]>0x0&&_0x18c2ae[_0xf7a576(0x8c)](_0x10bfcf);}}}return _0x18c2ae;}async['export'](_0x1185b0,_0x5c9383,_0x49f8a6,_0x57004f){const _0x12690c=a12_0x20f981;var _0x40ae60,_0x60dd25;const _0x2c022e=new exceljs['Workbook'](),_0x35e110={},_0x25facc=[],_0x49c6c9=_0x2c022e['addWorksheet']('Sheet\x201',{'views':[{'state':_0x12690c(0xc5),'xSplit':0x1}]});for(const _0x9fda26 in _0x5c9383){_0x35e110[_0x5c9383[_0x9fda26][_0x12690c(0x95)]]=_0x5c9383[_0x9fda26][_0x12690c(0xcd)],_0x25facc[_0x12690c(0x8c)]({'header':_0x5c9383[_0x9fda26]['header'],'key':(_0x40ae60=_0x5c9383[_0x9fda26])===null||_0x40ae60===void 0x0?void 0x0:_0x40ae60[_0x12690c(0x95)][_0x12690c(0xc6)](/\./g,'_')});}_0x49c6c9[_0x12690c(0xa2)]=_0x25facc;for(const _0xb699c3 of _0x49f8a6){const _0x51b0cb={};for(const _0x343257 in _0x5c9383){typeof((_0x60dd25=_0x5c9383[_0x343257])===null||_0x60dd25===void 0x0?void 0x0:_0x60dd25[_0x12690c(0xb6)])=='function'?_0x51b0cb[_0x5c9383[_0x343257][_0x12690c(0x95)]['replace'](/\./g,'_')]=await _0x5c9383[_0x343257][_0x12690c(0xb6)](_0xb699c3):_0x51b0cb[_0x5c9383[_0x343257][_0x12690c(0x95)]['replace'](/\./g,'_')]=lodash[_0x12690c(0x8e)](_0xb699c3,_0x5c9383[_0x343257][_0x12690c(0x95)],'');}_0x49c6c9[_0x12690c(0xc3)](_0x51b0cb);}let _0x1e626e='';const _0x3e0768=_0x1185b0+'-'+lodash['random'](0x186a0,0xf423f)+_0x12690c(0xbb);if(_0x57004f&&_0x57004f[_0x12690c(0xba)]('/'))_0x1e626e=''+_0x57004f;else _0x57004f&&!_0x57004f[_0x12690c(0xba)]('/')&&!_0x57004f[_0x12690c(0xba)]('\x5c')?_0x1e626e=this[_0x12690c(0xc1)][_0x12690c(0xbe)]()+'/'+_0x57004f:_0x1e626e=this['app']['getAppDir']()+_0x12690c(0x9f)+dayjs()['format'](_0x12690c(0xa4));return(_0x1e626e[_0x12690c(0xb0)]('/')||_0x1e626e[_0x12690c(0xb0)]('\x5c'))&&(_0x1e626e=_0x1e626e[_0x12690c(0xab)](0x0,_0x1e626e['length']-0x1)),_0x1e626e=_0x1e626e['replace'](/(\\|\/)/g,'/')[_0x12690c(0xc6)](/\/{2,}/g,'/'),!fs[_0x12690c(0xa9)](_0x1e626e)&&fs[_0x12690c(0xae)](_0x1e626e,{'recursive':!![]}),await _0x2c022e['xlsx'][_0x12690c(0xad)]((_0x1e626e+'/'+_0x3e0768)['replace'](/(\\|\/)/g,'/')[_0x12690c(0xc6)](/\/{2,}/g,'/')),{'filename':_0x3e0768,'filepath':(_0x1e626e[_0x12690c(0xab)]((''+this[_0x12690c(0xc1)][_0x12690c(0xbe)]())[_0x12690c(0xc9)])+'/'+_0x3e0768)['replace'](/(\\|\/)/g,'/')[_0x12690c(0xc6)](/\/{2,}/g,'/')};}async[a12_0x20f981(0xa3)](_0x33fc1c,_0x2a3213){return await koasend(_0x33fc1c,''+_0x2a3213);}};__decorate([(0x0,core_1[a12_0x20f981(0xb1)])(),__metadata(a12_0x20f981(0xcc),Object)],ExcelService[a12_0x20f981(0x92)],a12_0x20f981(0xc1),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a12_0x20f981(0xca)])(),(0x0,core_1[a12_0x20f981(0xac)])(core_1[a12_0x20f981(0xb7)][a12_0x20f981(0xcf)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a13_0x4192(){var _0x2e7060=['APPSCONFIG_KEY','530anAgGB','10174428JIQLTm','search','8163596akKruI','705584EDMKsA','toString','ACTION_KEY','constructor','8359925kZqXyx','AppsConfigTmp','(((.+)+)+)+$','defineProperty','4322068pJAjMz','5481ZBgbgk','anncic-api:action:route','apply','1979967wixTDW','ACTION_ROUTE_KEY'];a13_0x4192=function(){return _0x2e7060;};return a13_0x4192();}var a13_0x4b5a1a=a13_0x4de9;(function(_0x2f3b99,_0x4b9372){var _0x4bd05e=a13_0x4de9,_0x30f487=_0x2f3b99();while(!![]){try{var _0x350f26=-parseInt(_0x4bd05e(0x104))/0x1*(-parseInt(_0x4bd05e(0x10a))/0x2)+-parseInt(_0x4bd05e(0x107))/0x3+-parseInt(_0x4bd05e(0x103))/0x4+parseInt(_0x4bd05e(0xff))/0x5+-parseInt(_0x4bd05e(0x10b))/0x6+parseInt(_0x4bd05e(0xfa))/0x7+parseInt(_0x4bd05e(0xfb))/0x8;if(_0x350f26===_0x4b9372)break;else _0x30f487['push'](_0x30f487['shift']());}catch(_0x594799){_0x30f487['push'](_0x30f487['shift']());}}}(a13_0x4192,0xe6228));function a13_0x4de9(_0x2603d1,_0x378088){var _0x5450ee=a13_0x4192();return a13_0x4de9=function(_0x32bba4,_0x1b9af9){_0x32bba4=_0x32bba4-0xf9;var _0x419296=_0x5450ee[_0x32bba4];return _0x419296;},a13_0x4de9(_0x2603d1,_0x378088);}var a13_0x1b9af9=(function(){var _0x2a9029=!![];return function(_0x495a56,_0x168c5a){var _0x346b8d=_0x2a9029?function(){var _0x2abaee=a13_0x4de9;if(_0x168c5a){var _0x31ac51=_0x168c5a[_0x2abaee(0x106)](_0x495a56,arguments);return _0x168c5a=null,_0x31ac51;}}:function(){};return _0x2a9029=![],_0x346b8d;};}()),a13_0x32bba4=a13_0x1b9af9(this,function(){var _0xd5719a=a13_0x4de9;return a13_0x32bba4[_0xd5719a(0xfc)]()[_0xd5719a(0xf9)](_0xd5719a(0x101))['toString']()[_0xd5719a(0xfe)](a13_0x32bba4)[_0xd5719a(0xf9)](_0xd5719a(0x101));});a13_0x32bba4();'use strict';Object[a13_0x4b5a1a(0x102)](exports,'__esModule',{'value':!![]}),exports[a13_0x4b5a1a(0x100)]=exports[a13_0x4b5a1a(0x109)]=exports[a13_0x4b5a1a(0x108)]=exports[a13_0x4b5a1a(0xfd)]=void 0x0,exports[a13_0x4b5a1a(0xfd)]='anncic-api:action',exports['ACTION_ROUTE_KEY']=a13_0x4b5a1a(0x105),exports[a13_0x4b5a1a(0x109)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a13_0x4b5a1a(0x100)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x157758=a14_0x9545;(function(_0x4f0382,_0xbbd7a9){var _0xada62=a14_0x9545,_0x5166eb=_0x4f0382();while(!![]){try{var _0x867c7f=parseInt(_0xada62(0xd4))/0x1*(-parseInt(_0xada62(0xbe))/0x2)+parseInt(_0xada62(0xc1))/0x3+parseInt(_0xada62(0xd0))/0x4*(parseInt(_0xada62(0xd5))/0x5)+parseInt(_0xada62(0xc3))/0x6+parseInt(_0xada62(0xce))/0x7*(-parseInt(_0xada62(0xc2))/0x8)+parseInt(_0xada62(0xbc))/0x9+-parseInt(_0xada62(0xcf))/0xa;if(_0x867c7f===_0xbbd7a9)break;else _0x5166eb['push'](_0x5166eb['shift']());}catch(_0x157372){_0x5166eb['push'](_0x5166eb['shift']());}}}(a14_0x563f,0x44d19));var a14_0x18580d=(function(){var _0x22c662=!![];return function(_0x5d4df2,_0x383aba){var _0x28a492=_0x22c662?function(){var _0x4441d6=a14_0x9545;if(_0x383aba){var _0x3cbbda=_0x383aba[_0x4441d6(0xd7)](_0x5d4df2,arguments);return _0x383aba=null,_0x3cbbda;}}:function(){};return _0x22c662=![],_0x28a492;};}()),a14_0x399148=a14_0x18580d(this,function(){var _0x2d14db=a14_0x9545;return a14_0x399148[_0x2d14db(0xc6)]()[_0x2d14db(0xb6)](_0x2d14db(0xb2))[_0x2d14db(0xc6)]()[_0x2d14db(0xbf)](a14_0x399148)[_0x2d14db(0xb6)](_0x2d14db(0xb2));});a14_0x399148();'use strict';var __decorate=this&&this['__decorate']||function(_0x3c9a47,_0x4710ee,_0x5e2034,_0x450a8b){var _0x405e50=a14_0x9545,_0x547afe=arguments[_0x405e50(0xca)],_0x10df5c=_0x547afe<0x3?_0x4710ee:_0x450a8b===null?_0x450a8b=Object[_0x405e50(0xcd)](_0x4710ee,_0x5e2034):_0x450a8b,_0x3b08f6;if(typeof Reflect===_0x405e50(0xd3)&&typeof Reflect[_0x405e50(0xd6)]===_0x405e50(0xb8))_0x10df5c=Reflect[_0x405e50(0xd6)](_0x3c9a47,_0x4710ee,_0x5e2034,_0x450a8b);else{for(var _0x214308=_0x3c9a47[_0x405e50(0xca)]-0x1;_0x214308>=0x0;_0x214308--)if(_0x3b08f6=_0x3c9a47[_0x214308])_0x10df5c=(_0x547afe<0x3?_0x3b08f6(_0x10df5c):_0x547afe>0x3?_0x3b08f6(_0x4710ee,_0x5e2034,_0x10df5c):_0x3b08f6(_0x4710ee,_0x5e2034))||_0x10df5c;}return _0x547afe>0x3&&_0x10df5c&&Object[_0x405e50(0xc9)](_0x4710ee,_0x5e2034,_0x10df5c),_0x10df5c;},__metadata=this&&this[a14_0x157758(0xb4)]||function(_0x4ca3a2,_0x5c3743){var _0x40c87a=a14_0x157758;if(typeof Reflect===_0x40c87a(0xd3)&&typeof Reflect[_0x40c87a(0xbd)]===_0x40c87a(0xb8))return Reflect['metadata'](_0x4ca3a2,_0x5c3743);};function a14_0x563f(){var _0x1d9198=['第一页为1,第二页为2','_order','172116lqlDrU','metadata','40AInfpt','constructor','_isreverse','1644063KdVHVN','8dIZeRd','2589696uZNtEV','PageDTO','是否倒序','toString','design:type','integer','defineProperty','length','Rule','trim','getOwnPropertyDescriptor','881818KnoaUW','8906120XdHGLN','867332HgVsmF','valid','分页数量','object','6698PqpWNF','10ENsKKi','decorate','apply','min','排序方式','(((.+)+)+)+$','@anncic-api/validator','__metadata','RuleType','search','string','function','prototype'];a14_0x563f=function(){return _0x1d9198;};return a14_0x563f();}function a14_0x9545(_0x125544,_0x4f0f9a){var _0x3200a9=a14_0x563f();return a14_0x9545=function(_0x399148,_0x18580d){_0x399148=_0x399148-0xb1;var _0x563f6c=_0x3200a9[_0x399148];return _0x563f6c;},a14_0x9545(_0x125544,_0x4f0f9a);}Object[a14_0x157758(0xc9)](exports,'__esModule',{'value':!![]}),exports[a14_0x157758(0xc4)]=void 0x0;const validator_1=require(a14_0x157758(0xb3));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0x157758(0xcb)])('分页',validator_1[a14_0x157758(0xb5)]['number']()['integer']()[a14_0x157758(0xd8)](0x1),a14_0x157758(0xba)),__metadata(a14_0x157758(0xc7),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x157758(0xcb)])(a14_0x157758(0xd2),validator_1[a14_0x157758(0xb5)]['number']()[a14_0x157758(0xc8)]()[a14_0x157758(0xd8)](0x1)),__metadata(a14_0x157758(0xc7),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x157758(0xcb)])(a14_0x157758(0xb1),validator_1[a14_0x157758(0xb5)][a14_0x157758(0xb7)]()[a14_0x157758(0xcc)]()),__metadata(a14_0x157758(0xc7),String)],PageDTO['prototype'],a14_0x157758(0xbb),void 0x0),__decorate([(0x0,validator_1[a14_0x157758(0xcb)])(a14_0x157758(0xc5),validator_1['RuleType']['number']()['integer']()[a14_0x157758(0xd1)](0x0,0x1),'1:是;0:否'),__metadata(a14_0x157758(0xc7),Number)],PageDTO[a14_0x157758(0xb9)],a14_0x157758(0xc0),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a15_0x2859(_0x41aede,_0x335d3a){var _0x4df74b=a15_0x2ff6();return a15_0x2859=function(_0x512534,_0x4bd299){_0x512534=_0x512534-0x1b0;var _0x2ff6e7=_0x4df74b[_0x512534];return _0x2ff6e7;},a15_0x2859(_0x41aede,_0x335d3a);}var a15_0x3098db=a15_0x2859;(function(_0x3058af,_0x13f712){var _0x4f141b=a15_0x2859,_0x8e3a8e=_0x3058af();while(!![]){try{var _0x1450f9=-parseInt(_0x4f141b(0x1c4))/0x1*(-parseInt(_0x4f141b(0x1b0))/0x2)+parseInt(_0x4f141b(0x1b3))/0x3+parseInt(_0x4f141b(0x1c3))/0x4*(parseInt(_0x4f141b(0x1b5))/0x5)+parseInt(_0x4f141b(0x1bc))/0x6*(parseInt(_0x4f141b(0x1b4))/0x7)+-parseInt(_0x4f141b(0x1b2))/0x8+parseInt(_0x4f141b(0x1c2))/0x9*(-parseInt(_0x4f141b(0x1c1))/0xa)+parseInt(_0x4f141b(0x1b7))/0xb;if(_0x1450f9===_0x13f712)break;else _0x8e3a8e['push'](_0x8e3a8e['shift']());}catch(_0x3f5755){_0x8e3a8e['push'](_0x8e3a8e['shift']());}}}(a15_0x2ff6,0xad931));var a15_0x4bd299=(function(){var _0x738ada=!![];return function(_0x188a54,_0x5b28e3){var _0x969846=_0x738ada?function(){var _0x4aeaa0=a15_0x2859;if(_0x5b28e3){var _0x8a05dc=_0x5b28e3[_0x4aeaa0(0x1b1)](_0x188a54,arguments);return _0x5b28e3=null,_0x8a05dc;}}:function(){};return _0x738ada=![],_0x969846;};}()),a15_0x512534=a15_0x4bd299(this,function(){var _0x246c13=a15_0x2859;return a15_0x512534[_0x246c13(0x1bf)]()[_0x246c13(0x1ba)](_0x246c13(0x1c0))[_0x246c13(0x1bf)]()[_0x246c13(0x1bb)](a15_0x512534)[_0x246c13(0x1ba)](_0x246c13(0x1c0));});a15_0x512534();'use strict';Object[a15_0x3098db(0x1bd)](exports,a15_0x3098db(0x1b9),{'value':!![]}),exports[a15_0x3098db(0x1b6)]=exports[a15_0x3098db(0x1b8)]=void 0x0,exports[a15_0x3098db(0x1b8)]=a15_0x3098db(0x1be);function a15_0x2ff6(){var _0xa41f9=['anncic-api:intercept','toString','(((.+)+)+)+$','113130oFdaCa','333RduLno','545964SfbSzq','128705uPUvRi','10ZWWCIP','apply','3325592NaqGak','552312zObHrr','3092026RMRZRp','5YkMZju','InterceptTargetTmp','1533433sOuNPa','INTERCEPT_KEY','__esModule','search','constructor','6ZvRbDw','defineProperty'];a15_0x2ff6=function(){return _0xa41f9;};return a15_0x2ff6();}class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.2.
|
|
21
|
-
"@anncic-api/core": "^3.2.
|
|
22
|
-
"@anncic-api/event": "^3.2.
|
|
23
|
-
"@anncic-api/typeorm": "^3.2.
|
|
24
|
-
"@anncic-api/validator": "^3.2.
|
|
20
|
+
"@anncic-api/cache": "^3.2.7",
|
|
21
|
+
"@anncic-api/core": "^3.2.7",
|
|
22
|
+
"@anncic-api/event": "^3.2.7",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.7",
|
|
24
|
+
"@anncic-api/validator": "^3.2.7",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.2.
|
|
29
|
+
"anncic-apihelper": "^3.2.7",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "766891217058eca1e971c9a0e1ee746558b1aac2"
|
|
39
39
|
}
|