anncic-api 3.2.21 → 3.2.22
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
|
-
|
|
1
|
+
(function(_0x26d3fc,_0x108f40){var _0x361b1e=a0_0x25c6,_0x22aed4=_0x26d3fc();while(!![]){try{var _0x9add51=parseInt(_0x361b1e(0x1cd))/0x1*(-parseInt(_0x361b1e(0x1c6))/0x2)+parseInt(_0x361b1e(0x1c2))/0x3+-parseInt(_0x361b1e(0x1d3))/0x4*(-parseInt(_0x361b1e(0x1c5))/0x5)+-parseInt(_0x361b1e(0x1c4))/0x6+parseInt(_0x361b1e(0x1d9))/0x7*(-parseInt(_0x361b1e(0x1d5))/0x8)+parseInt(_0x361b1e(0x1d6))/0x9*(parseInt(_0x361b1e(0x1d8))/0xa)+parseInt(_0x361b1e(0x1cb))/0xb*(-parseInt(_0x361b1e(0x1cf))/0xc);if(_0x9add51===_0x108f40)break;else _0x22aed4['push'](_0x22aed4['shift']());}catch(_0x352825){_0x22aed4['push'](_0x22aed4['shift']());}}}(a0_0x4eb4,0x4c49e));var a0_0x3d282c=(function(){var _0x450365=!![];return function(_0x311853,_0x2a5a12){var _0x48b5de=_0x450365?function(){var _0x46c95a=a0_0x25c6;if(_0x2a5a12){var _0xfacddb=_0x2a5a12[_0x46c95a(0x1d7)](_0x311853,arguments);return _0x2a5a12=null,_0xfacddb;}}:function(){};return _0x450365=![],_0x48b5de;};}()),a0_0x12d8f2=a0_0x3d282c(this,function(){var _0x2c063b=a0_0x25c6;return a0_0x12d8f2['toString']()[_0x2c063b(0x1d1)](_0x2c063b(0x1d4))[_0x2c063b(0x1c7)]()['constructor'](a0_0x12d8f2)[_0x2c063b(0x1d1)]('(((.+)+)+)+$');});a0_0x12d8f2();function a0_0x4eb4(){var _0x2b3cfc=['248Jsqfst','(((.+)+)+)+$','10048qnnvKJ','21897hNYjRu','apply','1970pTKpWa','77DeIqfZ','form','json','595806HXbZZO','/runtime/.upload','1136010ElAkqL','45205eEYZbz','519146tBYqrd','toString','xml','dhauo1234420123gg3234901','_token','22EHEJlV','zhiulanuiy7892387985hnoi','2yjYwVg','name','1222020stNkgN','appDir','search','20mb'];a0_0x4eb4=function(){return _0x2b3cfc;};return a0_0x4eb4();}'use strict';function a0_0x25c6(_0x345159,_0x627fc1){var _0x5d6569=a0_0x4eb4();return a0_0x25c6=function(_0x12d8f2,_0x3d282c){_0x12d8f2=_0x12d8f2-0x1c2;var _0x4eb4c6=_0x5d6569[_0x12d8f2];return _0x4eb4c6;},a0_0x25c6(_0x345159,_0x627fc1);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['default']=_0x37e801=>{var _0x1e394d=a0_0x25c6;return{'apitest':!![],'keys':_0x37e801[_0x1e394d(0x1ce)],'anncicapi':{'requestKey':_0x1e394d(0x1ca),'password':_0x1e394d(0x1cc),'devices':{'DEFAULT':{'secret':_0x1e394d(0x1c9),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x1e394d(0x1db),_0x1e394d(0x1da),'text',_0x1e394d(0x1c8)],'formLimit':_0x1e394d(0x1d2),'jsonLimit':_0x1e394d(0x1d2),'textLimit':_0x1e394d(0x1d2),'xmlLimit':_0x1e394d(0x1d2),'enable':!![]},'upload':{'tmpdir':_0x37e801[_0x1e394d(0x1d0)]+_0x1e394d(0x1c3),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x4793(_0x25643a,_0x4c2e50){var _0x405723=a1_0x12a4();return a1_0x4793=function(_0x5e85c0,_0x36d5fe){_0x5e85c0=_0x5e85c0-0xf9;var _0x12a488=_0x405723[_0x5e85c0];return _0x12a488;},a1_0x4793(_0x25643a,_0x4c2e50);}var a1_0x475a10=a1_0x4793;function a1_0x12a4(){var _0x5b465b=['defineProperty','default','72580XUCuuj','constructor','toString','530CJxJjh','1106234cAZAZi','542857uzyIvJ','111WjnHrZ','102157Suvimb','__esModule','search','2bUgFHk','90FXyDml','10172880ShDjOS','2214075OaepCV','(((.+)+)+)+$','1528192GuibqE'];a1_0x12a4=function(){return _0x5b465b;};return a1_0x12a4();}(function(_0x2bce5b,_0x33d317){var _0x4d2e4b=a1_0x4793,_0x506689=_0x2bce5b();while(!![]){try{var _0x2d5ad2=-parseInt(_0x4d2e4b(0x100))/0x1*(-parseInt(_0x4d2e4b(0xfa))/0x2)+-parseInt(_0x4d2e4b(0xfc))/0x3*(-parseInt(_0x4d2e4b(0x108))/0x4)+parseInt(_0x4d2e4b(0x103))/0x5+-parseInt(_0x4d2e4b(0x101))/0x6*(parseInt(_0x4d2e4b(0xfb))/0x7)+parseInt(_0x4d2e4b(0x105))/0x8+-parseInt(_0x4d2e4b(0x102))/0x9+-parseInt(_0x4d2e4b(0xf9))/0xa*(-parseInt(_0x4d2e4b(0xfd))/0xb);if(_0x2d5ad2===_0x33d317)break;else _0x506689['push'](_0x506689['shift']());}catch(_0x275c27){_0x506689['push'](_0x506689['shift']());}}}(a1_0x12a4,0x94f10));var a1_0x36d5fe=(function(){var _0x1c6108=!![];return function(_0x5c06c8,_0x184c0a){var _0x88ff6c=_0x1c6108?function(){if(_0x184c0a){var _0xbef4c8=_0x184c0a['apply'](_0x5c06c8,arguments);return _0x184c0a=null,_0xbef4c8;}}:function(){};return _0x1c6108=![],_0x88ff6c;};}()),a1_0x5e85c0=a1_0x36d5fe(this,function(){var _0x18665a=a1_0x4793;return a1_0x5e85c0[_0x18665a(0x10a)]()[_0x18665a(0xff)](_0x18665a(0x104))[_0x18665a(0x10a)]()[_0x18665a(0x109)](a1_0x5e85c0)['search'](_0x18665a(0x104));});a1_0x5e85c0();'use strict';Object[a1_0x475a10(0x106)](exports,a1_0x475a10(0xfe),{'value':!![]}),exports[a1_0x475a10(0x107)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x440c4d=a2_0x5502;(function(_0x5094bc,_0x1bd6b2){const _0x1ef33e=a2_0x5502,_0x45c885=_0x5094bc();while(!![]){try{const _0x30791d=parseInt(_0x1ef33e(0x177))/0x1*(-parseInt(_0x1ef33e(0x1b7))/0x2)+-parseInt(_0x1ef33e(0x1e6))/0x3*(parseInt(_0x1ef33e(0x170))/0x4)+-parseInt(_0x1ef33e(0x1c4))/0x5+parseInt(_0x1ef33e(0x172))/0x6+parseInt(_0x1ef33e(0x18d))/0x7+-parseInt(_0x1ef33e(0x174))/0x8+parseInt(_0x1ef33e(0x1d4))/0x9;if(_0x30791d===_0x1bd6b2)break;else _0x45c885['push'](_0x45c885['shift']());}catch(_0x5a84de){_0x45c885['push'](_0x45c885['shift']());}}}(a2_0x38e0,0x9d293));function a2_0x5502(_0xf09cbf,_0x5b7083){const _0x1feae6=a2_0x38e0();return a2_0x5502=function(_0x53f65b,_0x12f482){_0x53f65b=_0x53f65b-0x160;let _0x38e00e=_0x1feae6[_0x53f65b];return _0x38e00e;},a2_0x5502(_0xf09cbf,_0x5b7083);}const a2_0x12f482=(function(){let _0x350030=!![];return function(_0x1b308c,_0x37f170){const _0x348603=_0x350030?function(){const _0x13c845=a2_0x5502;if(_0x37f170){const _0x39c5ed=_0x37f170[_0x13c845(0x1e4)](_0x1b308c,arguments);return _0x37f170=null,_0x39c5ed;}}:function(){};return _0x350030=![],_0x348603;};}()),a2_0x53f65b=a2_0x12f482(this,function(){const _0x37865f=a2_0x5502;return a2_0x53f65b[_0x37865f(0x19f)]()['search'](_0x37865f(0x1c2))[_0x37865f(0x19f)]()[_0x37865f(0x1df)](a2_0x53f65b)[_0x37865f(0x1a3)](_0x37865f(0x1c2));});a2_0x53f65b();'use strict';var __decorate=this&&this[a2_0x440c4d(0x18c)]||function(_0x4b7ff5,_0x48d85f,_0xff79a4,_0x8b8de1){const _0x21d519=a2_0x440c4d;var _0x1f86b1=arguments[_0x21d519(0x18e)],_0x2870a7=_0x1f86b1<0x3?_0x48d85f:_0x8b8de1===null?_0x8b8de1=Object[_0x21d519(0x165)](_0x48d85f,_0xff79a4):_0x8b8de1,_0x4496e0;if(typeof Reflect===_0x21d519(0x17e)&&typeof Reflect['decorate']===_0x21d519(0x186))_0x2870a7=Reflect[_0x21d519(0x16b)](_0x4b7ff5,_0x48d85f,_0xff79a4,_0x8b8de1);else{for(var _0x2e4c56=_0x4b7ff5[_0x21d519(0x18e)]-0x1;_0x2e4c56>=0x0;_0x2e4c56--)if(_0x4496e0=_0x4b7ff5[_0x2e4c56])_0x2870a7=(_0x1f86b1<0x3?_0x4496e0(_0x2870a7):_0x1f86b1>0x3?_0x4496e0(_0x48d85f,_0xff79a4,_0x2870a7):_0x4496e0(_0x48d85f,_0xff79a4))||_0x2870a7;}return _0x1f86b1>0x3&&_0x2870a7&&Object[_0x21d519(0x180)](_0x48d85f,_0xff79a4,_0x2870a7),_0x2870a7;},__metadata=this&&this[a2_0x440c4d(0x182)]||function(_0x196cc3,_0x29dae1){const _0x383b36=a2_0x440c4d;if(typeof Reflect==='object'&&typeof Reflect[_0x383b36(0x179)]==='function')return Reflect[_0x383b36(0x179)](_0x196cc3,_0x29dae1);};Object[a2_0x440c4d(0x180)](exports,a2_0x440c4d(0x1d6),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x440c4d(0x196)),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x440c4d(0x185)),action_1=require(a2_0x440c4d(0x1b9)),intercept_1=require(a2_0x440c4d(0x1d8)),fs=require('fs'),koasend=require(a2_0x440c4d(0x193)),koa=require(a2_0x440c4d(0x169)),upload=require(a2_0x440c4d(0x1b0)),staticFile=require(a2_0x440c4d(0x1b1)),crossDomain=require(a2_0x440c4d(0x1cd)),ConfigDefault=require(a2_0x440c4d(0x1bc)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x440c4d(0x1c9)),anncicEvent=require(a2_0x440c4d(0x1d7)),anncicTypeorm=require(a2_0x440c4d(0x16c)),anncicValidator=require(a2_0x440c4d(0x1e3)),anncicHelper=require('anncic-apihelper');function a2_0x38e0(){const _0x14caf0=['attachment','./service/ApiService','function','isFunction','insertFirst','addObject','apimit','anncicapi','__decorate','7723912oDOjUO','length','handler','MidwayApplicationManager','statSync','application','koa-send','MidwayEnvironmentService','undefined','@midwayjs/core','http','/runtime','/apps/','_matchedRoute','isString','requestKey','clients','MidwayDecoratorService','toString','decorator','connection','isNull','search','Types','getAsync','isDirectory','default','getClassMetadata','defaultsDeep','config','hanlderApplications','INTERCEPT_KEY','dir','design:type','existsSync','@midwayjs/upload','@midwayjs/static-file','args','device','MidwayConfigService','midwayLogger','requestContext','410222bQbbnG','dirs','./types/action','handlerActionRoute','target','./config/config.default','context','-log','query','method','InterceptTargetTmp','(((.+)+)+)+$','key','4468480mleeNd','parse','DEFAULT','loggerConfig','/apps','@anncic-api/cache','startsWith','headers','prototype','@midwayjs/cross-domain','koa','getAppDir','anncic-api','ACTION_ROUTE_KEY','body','checksign','24245595GPmvgo','devices','__esModule','@anncic-api/event','./types/intercept','文件不存在','readdirSync','app','toLowerCase','staticFile','.log','constructor','getConfiguration','request','filterConfig','@anncic-api/validator','apply','Inject','1057809AInghA','https://','_UNKNOW_','onReady','assign','mkdirSync','CustomConfiguration','App','useMiddleware','encrypted','host','get','getOwnPropertyDescriptor','string','HEADERS_SIGNATURE','getMiddleware','@midwayjs/koa','isDevelopmentEnvironment','decorate','@anncic-api/typeorm','getBaseDir','input','intercept','12kkBNon','hosturl','170922fHyWmn','environment','8204088JAUrHg','bodyXml','log','1MPjHxo','upload','metadata','isClass','defineProperties','ApiService','Anncic-api\x20static-file\x20:\x20mkdir\x20','object','tmpdir','defineProperty','match','__metadata','ApiError'];a2_0x38e0=function(){return _0x14caf0;};return a2_0x38e0();}let CustomConfiguration=exports[a2_0x440c4d(0x1ec)]=class CustomConfiguration{async[a2_0x440c4d(0x1e9)](){const _0x25b781=a2_0x440c4d;await this[_0x25b781(0x1e2)](),await this[_0x25b781(0x1c7)](),await this[_0x25b781(0x1ba)](),await this[_0x25b781(0x1ab)]();}async[a2_0x440c4d(0x1ba)](){const _0x2ae82d=a2_0x440c4d,_0x325985=this['config']['getConfiguration'](),_0x1c486b=(0x0,core_1[_0x2ae82d(0x1a8)])(intercept_1[_0x2ae82d(0x1ac)],intercept_1[_0x2ae82d(0x1c1)])||{};this[_0x2ae82d(0x1a0)]['registerMethodHandler'](action_1[_0x2ae82d(0x1d1)],_0x31826d=>{const _0x393cf1=_0x31826d['metadata'];return{'before':async _0x37f167=>{const _0xc1b51a=a2_0x5502;var _0x4e1e51,_0x31d5bd,_0x944a2c,_0x28c568;const _0x30fbe6=(_0x4e1e51=_0x37f167===null||_0x37f167===void 0x0?void 0x0:_0x37f167[_0xc1b51a(0x1bb)])===null||_0x4e1e51===void 0x0?void 0x0:_0x4e1e51[core_2['REQUEST_OBJ_CTX_KEY']],_0x34fa89=lodash['defaultsDeep']({},_0x30fbe6[_0xc1b51a(0x1e1)][_0xc1b51a(0x1d2)]||_0x30fbe6[_0xc1b51a(0x1e1)][((_0x31d5bd=_0x325985===null||_0x325985===void 0x0?void 0x0:_0x325985[_0xc1b51a(0x175)])===null||_0x31d5bd===void 0x0?void 0x0:_0x31d5bd[_0xc1b51a(0x1c3)])||_0xc1b51a(0x1d2)]||{},_0x30fbe6['request'][_0xc1b51a(0x1bf)]||{});if(_0x30fbe6&&(_0x393cf1===null||_0x393cf1===void 0x0?void 0x0:_0x393cf1[_0xc1b51a(0x18a)]))try{const _0x1db308=((_0x944a2c=_0x325985===null||_0x325985===void 0x0?void 0x0:_0x325985[_0xc1b51a(0x18b)])===null||_0x944a2c===void 0x0?void 0x0:_0x944a2c['requestKey'])&&typeof(_0x34fa89===null||_0x34fa89===void 0x0?void 0x0:_0x34fa89[_0x325985[_0xc1b51a(0x18b)][_0xc1b51a(0x19c)]])==_0xc1b51a(0x166)?JSON[_0xc1b51a(0x1c5)](base64_decode(_0x34fa89[_0x325985['anncicapi'][_0xc1b51a(0x19c)]])||'{}')||{}:((_0x28c568=_0x30fbe6===null||_0x30fbe6===void 0x0?void 0x0:_0x30fbe6[_0xc1b51a(0x1e1)])===null||_0x28c568===void 0x0?void 0x0:_0x28c568[_0xc1b51a(0x1cb)])||{};if(!this['ApiService'][_0xc1b51a(0x1d3)](_0x1db308))throw new AnnError(ApiError_1[_0xc1b51a(0x183)][_0xc1b51a(0x167)]);}catch(_0x44c57a){if(_0x44c57a instanceof AnnError)throw _0x44c57a;else throw new AnnError(ApiError_1[_0xc1b51a(0x183)][_0xc1b51a(0x1e8)]);}},'around':async _0x2008eb=>{const _0x5426be=a2_0x5502;var _0x5b9fc8,_0x3a5743,_0x47f762;const _0x608e82=(_0x5b9fc8=_0x2008eb===null||_0x2008eb===void 0x0?void 0x0:_0x2008eb[_0x5426be(0x1bb)])===null||_0x5b9fc8===void 0x0?void 0x0:_0x5b9fc8[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x608e82&&(_0x393cf1===null||_0x393cf1===void 0x0?void 0x0:_0x393cf1[_0x5426be(0x18a)])&&((_0x393cf1===null||_0x393cf1===void 0x0?void 0x0:_0x393cf1['intercept'])||typeof(_0x393cf1===null||_0x393cf1===void 0x0?void 0x0:_0x393cf1[_0x5426be(0x16f)])==_0x5426be(0x195))){if(((_0x3a5743=_0x608e82['headers'])===null||_0x3a5743===void 0x0?void 0x0:_0x3a5743['device'])&&((_0x47f762=_0x1c486b===null||_0x1c486b===void 0x0?void 0x0:_0x1c486b[_0x608e82[_0x5426be(0x1cb)][_0x5426be(0x1b3)]])===null||_0x47f762===void 0x0?void 0x0:_0x47f762[_0x5426be(0x18e)])>0x0)for(const _0x4a8404 of _0x1c486b[_0x608e82['headers']['device']]||[]){if(core_1['Types'][_0x5426be(0x17a)](_0x4a8404)){const _0x2b057f=await _0x608e82[_0x5426be(0x1b6)][_0x5426be(0x1a5)](_0x4a8404);typeof(_0x2b057f===null||_0x2b057f===void 0x0?void 0x0:_0x2b057f['match'])=='function'?await _0x2b057f[_0x5426be(0x181)](_0x608e82,typeof(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x1c0)])==_0x5426be(0x166)&&(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)])?_0x608e82[_0x5426be(0x1c0)][_0x5426be(0x1dc)]()+'@'+(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)]):undefined,_0x393cf1)&&await _0x2b057f[_0x5426be(0x18f)](_0x608e82,typeof(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x1c0)])==_0x5426be(0x166)&&(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82['_matchedRoute'])?_0x608e82[_0x5426be(0x1c0)][_0x5426be(0x1dc)]()+'@'+(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)]):undefined,_0x393cf1):await _0x2b057f[_0x5426be(0x18f)](_0x608e82,typeof(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x1c0)])=='string'&&(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)])?_0x608e82[_0x5426be(0x1c0)][_0x5426be(0x1dc)]()+'@'+(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)]):undefined,_0x393cf1);}else core_1[_0x5426be(0x1a4)][_0x5426be(0x187)](_0x4a8404)&&await _0x4a8404(_0x608e82,typeof(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x1c0)])==_0x5426be(0x166)&&(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82[_0x5426be(0x19a)])?_0x608e82[_0x5426be(0x1c0)][_0x5426be(0x1dc)]()+'@'+(_0x608e82===null||_0x608e82===void 0x0?void 0x0:_0x608e82['_matchedRoute']):undefined,_0x393cf1);}}return await _0x2008eb['proceed'](..._0x2008eb[_0x5426be(0x1b2)]);},'afterThrow':(_0x321b40,_0x4db16a)=>{throw _0x4db16a;}};});}async[a2_0x440c4d(0x1ab)](){const _0x40cd86=a2_0x440c4d,_0x3a538c=this[_0x40cd86(0x1aa)][_0x40cd86(0x1e0)]();this[_0x40cd86(0x192)]['getApplications']([_0x40cd86(0x1ce)])['forEach'](_0x308f2c=>{const _0x266ded=_0x40cd86;typeof _0x308f2c[_0x266ded(0x161)]==_0x266ded(0x186)&&_0x308f2c[_0x266ded(0x168)]()[_0x266ded(0x188)](async(_0xf1f5a0,_0x38e7f4)=>{const _0xd0502a=_0x266ded;var _0x9efdcc,_0x443d50,_0x5aac0c,_0x3585b7;if((_0xf1f5a0===null||_0xf1f5a0===void 0x0?void 0x0:_0xf1f5a0['host'])&&!_0xf1f5a0[_0xd0502a(0x163)][_0xd0502a(0x1ca)](_0xd0502a(0x197))){let _0x3054b0=_0xf1f5a0['host']['split'](':');['80','443']['includes'](_0x3054b0===null||_0x3054b0===void 0x0?void 0x0:_0x3054b0[0x1])?_0xf1f5a0[_0xd0502a(0x171)]=''+(!!((_0x443d50=(_0x9efdcc=_0xf1f5a0===null||_0xf1f5a0===void 0x0?void 0x0:_0xf1f5a0['req'])===null||_0x9efdcc===void 0x0?void 0x0:_0x9efdcc[_0xd0502a(0x1a1)])===null||_0x443d50===void 0x0?void 0x0:_0x443d50[_0xd0502a(0x162)])||(_0x3054b0===null||_0x3054b0===void 0x0?void 0x0:_0x3054b0[0x1])=='443'?_0xd0502a(0x1e7):'http://')+_0x3054b0[0x0]:_0xf1f5a0[_0xd0502a(0x171)]=''+(!!((_0x3585b7=(_0x5aac0c=_0xf1f5a0===null||_0xf1f5a0===void 0x0?void 0x0:_0xf1f5a0['req'])===null||_0x5aac0c===void 0x0?void 0x0:_0x5aac0c['connection'])===null||_0x3585b7===void 0x0?void 0x0:_0x3585b7['encrypted'])?_0xd0502a(0x1e7):'http://')+_0xf1f5a0[_0xd0502a(0x163)];}await _0x38e7f4();}),(_0x308f2c===null||_0x308f2c===void 0x0?void 0x0:_0x308f2c[_0x266ded(0x1bd)])&&Object[_0x266ded(0x17b)](_0x308f2c['context'],{'ok':{'value':function(_0x4ce799,_0x251b73,_0x5a46d4=0x0){return{'code':_0x5a46d4,'data':_0x4ce799,'extra':_0x251b73};}},'input':{'value':function(_0x22f891,_0x5be571){const _0x4c4356=_0x266ded;var _0x540db7;const _0xe7826c=lodash[_0x4c4356(0x1a9)]({},this[_0x4c4356(0x1e1)][_0x4c4356(0x1d2)]||this[_0x4c4356(0x1e1)][((_0x540db7=_0x3a538c===null||_0x3a538c===void 0x0?void 0x0:_0x3a538c[_0x4c4356(0x175)])===null||_0x540db7===void 0x0?void 0x0:_0x540db7[_0x4c4356(0x1c3)])||_0x4c4356(0x1d2)]||{},this[_0x4c4356(0x1e1)]['query']||{});return _0x22f891?lodash[_0x4c4356(0x164)](_0xe7826c,_0x22f891,_0x5be571):_0xe7826c;}},'when':{'value':async function(_0x232200,_0x44f14c){const _0x27831d=_0x266ded,_0x389d14=this['input'](_0x232200,null);if(!lodash[_0x27831d(0x1a2)](_0x389d14))return await _0x44f14c(_0x389d14);}},'only':{'value':function(_0x5a3828){const _0x4b93e5=_0x266ded,_0x44ae7e={};for(let _0x3c66c3=0x0;_0x3c66c3<_0x5a3828[_0x4b93e5(0x18e)];_0x3c66c3++){lodash['isArray'](_0x5a3828[_0x3c66c3])&&_0x5a3828[_0x3c66c3][_0x4b93e5(0x18e)]>0x0&&lodash[_0x4b93e5(0x19b)](_0x5a3828[_0x3c66c3][0x0])&&(_0x44ae7e[_0x5a3828[_0x3c66c3][0x0]]=this[_0x4b93e5(0x16e)](_0x5a3828[_0x3c66c3][0x0],_0x5a3828[_0x3c66c3][_0x4b93e5(0x18e)]>0x1?_0x5a3828[_0x3c66c3][0x1]:null));}return _0x44ae7e;}},'koasend':{'value':function(_0x82c4c7,_0x47e014){const _0x1c84d5=_0x266ded;if(_0x82c4c7&&!fs['existsSync'](_0x82c4c7)&&!fs[_0x1c84d5(0x1af)](this['app'][_0x1c84d5(0x1cf)]()+'/'+_0x82c4c7))return _0x1c84d5(0x1d9);return _0x82c4c7=fs[_0x1c84d5(0x1af)](_0x82c4c7)?_0x82c4c7:this[_0x1c84d5(0x1db)][_0x1c84d5(0x1cf)]()+'/'+_0x82c4c7,this[_0x1c84d5(0x184)](_0x47e014||_0x82c4c7),koasend(this,_0x82c4c7);}}});});}async[a2_0x440c4d(0x1c7)](){const _0x282f41=a2_0x440c4d;var _0x392f58,_0x294fc9;if(fs['existsSync'](this[_0x282f41(0x1db)]['getBaseDir']()+_0x282f41(0x1c8))&&fs[_0x282f41(0x191)](this[_0x282f41(0x1db)][_0x282f41(0x16d)]()+_0x282f41(0x1c8))[_0x282f41(0x1a6)]()){const _0x489338=this[_0x282f41(0x1aa)]['getConfiguration'](),_0x3ab026=((_0x392f58=_0x489338===null||_0x489338===void 0x0?void 0x0:_0x489338['midwayLogger'])===null||_0x392f58===void 0x0?void 0x0:_0x392f58['clients'])||{};for(const _0x88234b of fs[_0x282f41(0x1da)](this[_0x282f41(0x1db)][_0x282f41(0x16d)]()+'/apps')){if(!fs[_0x282f41(0x191)](this[_0x282f41(0x1db)]['getBaseDir']()+_0x282f41(0x199)+_0x88234b)['isDirectory']())continue;if(_0x3ab026===null||_0x3ab026===void 0x0?void 0x0:_0x3ab026[_0x88234b])continue;_0x3ab026[_0x88234b]=Object[_0x282f41(0x1ea)]({},((_0x294fc9=_0x489338===null||_0x489338===void 0x0?void 0x0:_0x489338[_0x282f41(0x1b5)])===null||_0x294fc9===void 0x0?void 0x0:_0x294fc9[_0x282f41(0x1a7)])||{'maxSize':'1m','dir':this['app'][_0x282f41(0x1cf)]()+_0x282f41(0x198)},{'enableJSON':!![],'enableConsole':this[_0x282f41(0x173)][_0x282f41(0x16a)](),'fileLogName':_0x88234b+_0x282f41(0x1de),'dir':this[_0x282f41(0x1db)]['getAppDir']()+'/runtime/apps-'+_0x88234b+_0x282f41(0x1be)});}Object['keys'](_0x3ab026)['length']>0x0&&(!_0x489338[_0x282f41(0x1b5)]&&(_0x489338[_0x282f41(0x1b5)]={'default':{'maxSize':'1m','dir':this[_0x282f41(0x1db)][_0x282f41(0x1cf)]()+_0x282f41(0x198)}}),_0x489338[_0x282f41(0x1b5)][_0x282f41(0x19d)]=_0x3ab026),this['config'][_0x282f41(0x189)](_0x489338);}}async['filterConfig'](){const _0x3ba205=a2_0x440c4d;var _0x5552ed,_0x25097c,_0xed0c3,_0x10eedb,_0x34389b,_0xa7c0ab;const _0xe9dc76=this['config'][_0x3ba205(0x1e0)]();((_0x25097c=(_0x5552ed=_0xe9dc76===null||_0xe9dc76===void 0x0?void 0x0:_0xe9dc76[_0x3ba205(0x18b)])===null||_0x5552ed===void 0x0?void 0x0:_0x5552ed['devices'])===null||_0x25097c===void 0x0?void 0x0:_0x25097c[_0x3ba205(0x1c6)])&&Object['keys'](_0xe9dc76[_0x3ba205(0x18b)]['devices'])[_0x3ba205(0x18e)]>0x1&&delete _0xe9dc76['anncicapi'][_0x3ba205(0x1d5)][_0x3ba205(0x1c6)];if((_0xed0c3=_0xe9dc76===null||_0xe9dc76===void 0x0?void 0x0:_0xe9dc76[_0x3ba205(0x1dd)])===null||_0xed0c3===void 0x0?void 0x0:_0xed0c3[_0x3ba205(0x1b8)])for(const _0x113de5 in _0xe9dc76[_0x3ba205(0x1dd)]['dirs']){((_0x10eedb=_0xe9dc76[_0x3ba205(0x1dd)][_0x3ba205(0x1b8)][_0x113de5])===null||_0x10eedb===void 0x0?void 0x0:_0x10eedb[_0x3ba205(0x1ad)])&&typeof((_0x34389b=_0xe9dc76['staticFile']['dirs'][_0x113de5])===null||_0x34389b===void 0x0?void 0x0:_0x34389b[_0x3ba205(0x1ad)])==_0x3ba205(0x166)&&!fs[_0x3ba205(0x1af)](_0xe9dc76[_0x3ba205(0x1dd)][_0x3ba205(0x1b8)][_0x113de5][_0x3ba205(0x1ad)])&&(fs[_0x3ba205(0x1eb)](_0xe9dc76['staticFile'][_0x3ba205(0x1b8)][_0x113de5][_0x3ba205(0x1ad)],{'recursive':!![]}),console[_0x3ba205(0x176)](_0x3ba205(0x17d)+_0xe9dc76[_0x3ba205(0x1dd)]['dirs'][_0x113de5][_0x3ba205(0x1ad)]));}((_0xa7c0ab=_0xe9dc76===null||_0xe9dc76===void 0x0?void 0x0:_0xe9dc76[_0x3ba205(0x178)])===null||_0xa7c0ab===void 0x0?void 0x0:_0xa7c0ab[_0x3ba205(0x17f)])&&!fs['existsSync'](_0xe9dc76['upload']['tmpdir'])&&(fs[_0x3ba205(0x1eb)](_0xe9dc76[_0x3ba205(0x178)][_0x3ba205(0x17f)],{'recursive':!![]}),console[_0x3ba205(0x176)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0xe9dc76[_0x3ba205(0x178)][_0x3ba205(0x17f)])),this[_0x3ba205(0x1aa)]['addObject'](_0xe9dc76);}};__decorate([(0x0,core_1[a2_0x440c4d(0x160)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x440c4d(0x1cc)],a2_0x440c4d(0x1db),void 0x0),__decorate([(0x0,core_1[a2_0x440c4d(0x1e5)])(),__metadata(a2_0x440c4d(0x1ae),core_2[a2_0x440c4d(0x1b4)])],CustomConfiguration['prototype'],a2_0x440c4d(0x1aa),void 0x0),__decorate([(0x0,core_1[a2_0x440c4d(0x1e5)])(),__metadata('design:type',core_2[a2_0x440c4d(0x19e)])],CustomConfiguration[a2_0x440c4d(0x1cc)],a2_0x440c4d(0x1a0),void 0x0),__decorate([(0x0,core_1[a2_0x440c4d(0x1e5)])(),__metadata(a2_0x440c4d(0x1ae),core_2[a2_0x440c4d(0x190)])],CustomConfiguration[a2_0x440c4d(0x1cc)],a2_0x440c4d(0x192),void 0x0),__decorate([(0x0,core_1[a2_0x440c4d(0x1e5)])(),__metadata(a2_0x440c4d(0x1ae),core_2[a2_0x440c4d(0x194)])],CustomConfiguration[a2_0x440c4d(0x1cc)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x440c4d(0x1e5)])(),__metadata(a2_0x440c4d(0x1ae),ApiService_1[a2_0x440c4d(0x17c)])],CustomConfiguration[a2_0x440c4d(0x1cc)],a2_0x440c4d(0x17c),void 0x0),exports[a2_0x440c4d(0x1ec)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x440c4d(0x1d0),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x464961=a2_0x2c0f;(function(_0xd77b88,_0x1bdf40){const _0x3e0eda=a2_0x2c0f,_0x2c8e55=_0xd77b88();while(!![]){try{const _0x5ea636=parseInt(_0x3e0eda(0x1b1))/0x1*(-parseInt(_0x3e0eda(0x1f5))/0x2)+parseInt(_0x3e0eda(0x1a8))/0x3+-parseInt(_0x3e0eda(0x1d8))/0x4+-parseInt(_0x3e0eda(0x219))/0x5+parseInt(_0x3e0eda(0x190))/0x6+parseInt(_0x3e0eda(0x1c4))/0x7+parseInt(_0x3e0eda(0x1d2))/0x8;if(_0x5ea636===_0x1bdf40)break;else _0x2c8e55['push'](_0x2c8e55['shift']());}catch(_0x28acbd){_0x2c8e55['push'](_0x2c8e55['shift']());}}}(a2_0xe88b,0x2ba2a));function a2_0x2c0f(_0x32acd7,_0x4ad66c){const _0x3ccf00=a2_0xe88b();return a2_0x2c0f=function(_0x497094,_0x5219b1){_0x497094=_0x497094-0x18e;let _0xe88b2a=_0x3ccf00[_0x497094];return _0xe88b2a;},a2_0x2c0f(_0x32acd7,_0x4ad66c);}const a2_0x5219b1=(function(){let _0x2d580b=!![];return function(_0x550d23,_0xd68973){const _0x15b06b=_0x2d580b?function(){const _0x3dfb1f=a2_0x2c0f;if(_0xd68973){const _0x2fcbf2=_0xd68973[_0x3dfb1f(0x1c5)](_0x550d23,arguments);return _0xd68973=null,_0x2fcbf2;}}:function(){};return _0x2d580b=![],_0x15b06b;};}()),a2_0x497094=a2_0x5219b1(this,function(){const _0x3ae9c1=a2_0x2c0f;return a2_0x497094[_0x3ae9c1(0x1a3)]()[_0x3ae9c1(0x1a9)](_0x3ae9c1(0x1e6))[_0x3ae9c1(0x1a3)]()[_0x3ae9c1(0x1ad)](a2_0x497094)['search']('(((.+)+)+)+$');});a2_0x497094();'use strict';var __decorate=this&&this[a2_0x464961(0x19c)]||function(_0x453b43,_0x29a269,_0x8f66ea,_0x5b34ca){const _0x2129b5=a2_0x464961;var _0x249ceb=arguments[_0x2129b5(0x1eb)],_0x334f37=_0x249ceb<0x3?_0x29a269:_0x5b34ca===null?_0x5b34ca=Object[_0x2129b5(0x1b6)](_0x29a269,_0x8f66ea):_0x5b34ca,_0x60bd7a;if(typeof Reflect===_0x2129b5(0x1a5)&&typeof Reflect[_0x2129b5(0x1ff)]===_0x2129b5(0x1ba))_0x334f37=Reflect[_0x2129b5(0x1ff)](_0x453b43,_0x29a269,_0x8f66ea,_0x5b34ca);else{for(var _0x529c1a=_0x453b43[_0x2129b5(0x1eb)]-0x1;_0x529c1a>=0x0;_0x529c1a--)if(_0x60bd7a=_0x453b43[_0x529c1a])_0x334f37=(_0x249ceb<0x3?_0x60bd7a(_0x334f37):_0x249ceb>0x3?_0x60bd7a(_0x29a269,_0x8f66ea,_0x334f37):_0x60bd7a(_0x29a269,_0x8f66ea))||_0x334f37;}return _0x249ceb>0x3&&_0x334f37&&Object[_0x2129b5(0x201)](_0x29a269,_0x8f66ea,_0x334f37),_0x334f37;},__metadata=this&&this[a2_0x464961(0x215)]||function(_0x503aa7,_0x20f077){const _0x5aea3c=a2_0x464961;if(typeof Reflect==='object'&&typeof Reflect[_0x5aea3c(0x1ca)]===_0x5aea3c(0x1ba))return Reflect[_0x5aea3c(0x1ca)](_0x503aa7,_0x20f077);};Object[a2_0x464961(0x201)](exports,a2_0x464961(0x1b8),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x464961(0x1f4)),ApiService_1=require(a2_0x464961(0x1b0)),action_1=require(a2_0x464961(0x1cc)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x464961(0x21b)),koa=require(a2_0x464961(0x1d5)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x464961(0x211)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x464961(0x1cd)),ConfigProduction=require(a2_0x464961(0x1f1)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x464961(0x193)),anncicEvent=require(a2_0x464961(0x1d0)),anncicTypeorm=require(a2_0x464961(0x1c3)),anncicValidator=require(a2_0x464961(0x191)),anncicHelper=require(a2_0x464961(0x20c));let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async[a2_0x464961(0x1f8)](){const _0x5f1819=a2_0x464961;await this['filterConfig'](),await this['loggerConfig'](),await this['handlerActionRoute'](),await this[_0x5f1819(0x212)]();}async[a2_0x464961(0x18f)](){const _0x29a741=a2_0x464961,_0x5e5def=this[_0x29a741(0x1bf)][_0x29a741(0x1af)](),_0x5dbd35=(0x0,core_1[_0x29a741(0x1db)])(intercept_1[_0x29a741(0x1b4)],intercept_1[_0x29a741(0x1ab)])||{};this[_0x29a741(0x1d6)]['registerMethodHandler'](action_1[_0x29a741(0x20d)],_0x2434fb=>{const _0xa55e15=_0x2434fb['metadata'];return{'before':async _0x4d8cb3=>{const _0x52c7e9=a2_0x2c0f;var _0x4f8b93,_0x433361,_0x539b70,_0x16003d;const _0x192b0d=(_0x4f8b93=_0x4d8cb3===null||_0x4d8cb3===void 0x0?void 0x0:_0x4d8cb3[_0x52c7e9(0x19f)])===null||_0x4f8b93===void 0x0?void 0x0:_0x4f8b93[core_2[_0x52c7e9(0x203)]],_0x1ea045=lodash['defaultsDeep']({},_0x192b0d[_0x52c7e9(0x20e)][_0x52c7e9(0x1ea)]||_0x192b0d[_0x52c7e9(0x20e)][((_0x433361=_0x5e5def===null||_0x5e5def===void 0x0?void 0x0:_0x5e5def[_0x52c7e9(0x1df)])===null||_0x433361===void 0x0?void 0x0:_0x433361[_0x52c7e9(0x1e0)])||'body']||{},_0x192b0d[_0x52c7e9(0x20e)][_0x52c7e9(0x1e4)]||{});if(_0x192b0d&&(_0xa55e15===null||_0xa55e15===void 0x0?void 0x0:_0xa55e15[_0x52c7e9(0x1be)]))try{const _0xeb0078=((_0x539b70=_0x5e5def===null||_0x5e5def===void 0x0?void 0x0:_0x5e5def['anncicapi'])===null||_0x539b70===void 0x0?void 0x0:_0x539b70[_0x52c7e9(0x1de)])&&typeof(_0x1ea045===null||_0x1ea045===void 0x0?void 0x0:_0x1ea045[_0x5e5def[_0x52c7e9(0x18e)]['requestKey']])==_0x52c7e9(0x1dd)?JSON['parse'](base64_decode(_0x1ea045[_0x5e5def[_0x52c7e9(0x18e)][_0x52c7e9(0x1de)]])||'{}')||{}:((_0x16003d=_0x192b0d===null||_0x192b0d===void 0x0?void 0x0:_0x192b0d[_0x52c7e9(0x20e)])===null||_0x16003d===void 0x0?void 0x0:_0x16003d['headers'])||{};if(!this[_0x52c7e9(0x1bd)]['checksign'](_0xeb0078))throw new AnnError(ApiError_1['ApiError'][_0x52c7e9(0x1a4)]);}catch(_0x5009bd){if(_0x5009bd instanceof AnnError)throw _0x5009bd;else throw new AnnError(ApiError_1[_0x52c7e9(0x1aa)][_0x52c7e9(0x217)]);}},'around':async _0x1a3956=>{const _0x560003=a2_0x2c0f;var _0x5b9910,_0x11a02f,_0x470c99;const _0x41013e=(_0x5b9910=_0x1a3956===null||_0x1a3956===void 0x0?void 0x0:_0x1a3956[_0x560003(0x19f)])===null||_0x5b9910===void 0x0?void 0x0:_0x5b9910[core_2[_0x560003(0x203)]];if(_0x41013e&&(_0xa55e15===null||_0xa55e15===void 0x0?void 0x0:_0xa55e15[_0x560003(0x1be)])&&((_0xa55e15===null||_0xa55e15===void 0x0?void 0x0:_0xa55e15['intercept'])||typeof(_0xa55e15===null||_0xa55e15===void 0x0?void 0x0:_0xa55e15[_0x560003(0x1d4)])=='undefined')){if(((_0x11a02f=_0x41013e[_0x560003(0x208)])===null||_0x11a02f===void 0x0?void 0x0:_0x11a02f[_0x560003(0x1b2)])&&((_0x470c99=_0x5dbd35===null||_0x5dbd35===void 0x0?void 0x0:_0x5dbd35[_0x41013e[_0x560003(0x208)]['device']])===null||_0x470c99===void 0x0?void 0x0:_0x470c99[_0x560003(0x1eb)])>0x0)for(const _0x1666d6 of _0x5dbd35[_0x41013e[_0x560003(0x208)][_0x560003(0x1b2)]]||[]){if(core_1[_0x560003(0x1ae)][_0x560003(0x205)](_0x1666d6)){const _0x3111f8=await _0x41013e[_0x560003(0x216)]['getAsync'](_0x1666d6);typeof(_0x3111f8===null||_0x3111f8===void 0x0?void 0x0:_0x3111f8['match'])==_0x560003(0x1ba)?await _0x3111f8[_0x560003(0x1cf)](_0x41013e,typeof(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e['method'])==_0x560003(0x1dd)&&(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)])?_0x41013e[_0x560003(0x197)]['toLowerCase']()+'@'+(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)]):undefined,_0xa55e15)&&await _0x3111f8[_0x560003(0x1c8)](_0x41013e,typeof(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x197)])=='string'&&(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e['_matchedRoute'])?_0x41013e[_0x560003(0x197)]['toLowerCase']()+'@'+(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)]):undefined,_0xa55e15):await _0x3111f8[_0x560003(0x1c8)](_0x41013e,typeof(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e['method'])=='string'&&(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)])?_0x41013e[_0x560003(0x197)][_0x560003(0x1e7)]()+'@'+(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)]):undefined,_0xa55e15);}else core_1[_0x560003(0x1ae)][_0x560003(0x1ee)](_0x1666d6)&&await _0x1666d6(_0x41013e,typeof(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e['method'])==_0x560003(0x1dd)&&(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)])?_0x41013e['method'][_0x560003(0x1e7)]()+'@'+(_0x41013e===null||_0x41013e===void 0x0?void 0x0:_0x41013e[_0x560003(0x1c7)]):undefined,_0xa55e15);}}return await _0x1a3956[_0x560003(0x214)](..._0x1a3956[_0x560003(0x1c0)]);},'afterThrow':(_0x5a8e11,_0x5a3715)=>{throw _0x5a3715;}};});}async[a2_0x464961(0x212)](){const _0x3995d6=a2_0x464961,_0x23c050=this['config'][_0x3995d6(0x1af)]();this['application'][_0x3995d6(0x1fa)]([_0x3995d6(0x1ef)])[_0x3995d6(0x1e3)](_0x58297b=>{const _0x2479e0=_0x3995d6;typeof _0x58297b[_0x2479e0(0x195)]==_0x2479e0(0x1ba)&&_0x58297b['getMiddleware']()[_0x2479e0(0x1c6)](async(_0x5b32f0,_0x3d0a79)=>{const _0x1e9cee=_0x2479e0;var _0x33fdc7,_0xf1c485,_0x4a17a3,_0x3441f3;if((_0x5b32f0===null||_0x5b32f0===void 0x0?void 0x0:_0x5b32f0[_0x1e9cee(0x20f)])&&!_0x5b32f0['host']['startsWith'](_0x1e9cee(0x1f7))){let _0x4f51be=_0x5b32f0[_0x1e9cee(0x20f)]['split'](':');['80',_0x1e9cee(0x1a0)][_0x1e9cee(0x21a)](_0x4f51be===null||_0x4f51be===void 0x0?void 0x0:_0x4f51be[0x1])?_0x5b32f0[_0x1e9cee(0x20a)]=''+(!!((_0xf1c485=(_0x33fdc7=_0x5b32f0===null||_0x5b32f0===void 0x0?void 0x0:_0x5b32f0['req'])===null||_0x33fdc7===void 0x0?void 0x0:_0x33fdc7[_0x1e9cee(0x1e5)])===null||_0xf1c485===void 0x0?void 0x0:_0xf1c485['encrypted'])||(_0x4f51be===null||_0x4f51be===void 0x0?void 0x0:_0x4f51be[0x1])==_0x1e9cee(0x1a0)?'https://':'http://')+_0x4f51be[0x0]:_0x5b32f0[_0x1e9cee(0x20a)]=''+(!!((_0x3441f3=(_0x4a17a3=_0x5b32f0===null||_0x5b32f0===void 0x0?void 0x0:_0x5b32f0[_0x1e9cee(0x19d)])===null||_0x4a17a3===void 0x0?void 0x0:_0x4a17a3['connection'])===null||_0x3441f3===void 0x0?void 0x0:_0x3441f3[_0x1e9cee(0x202)])?_0x1e9cee(0x1cb):_0x1e9cee(0x1fd))+_0x5b32f0[_0x1e9cee(0x20f)];}await _0x3d0a79();}),(_0x58297b===null||_0x58297b===void 0x0?void 0x0:_0x58297b[_0x2479e0(0x19a)])&&Object[_0x2479e0(0x1ce)](_0x58297b['context'],{'ok':{'value':function(_0x2b0fe7,_0x27589,_0x135d98=0x0){return{'code':_0x135d98,'data':_0x2b0fe7,'extra':_0x27589};}},'input':{'value':function(_0x4fbe4c,_0x27d7ac){const _0x4db6e5=_0x2479e0;var _0x1c3b3f;const _0xb4656b=lodash[_0x4db6e5(0x1ec)]({},this['request'][_0x4db6e5(0x1ea)]||this[_0x4db6e5(0x20e)][((_0x1c3b3f=_0x23c050===null||_0x23c050===void 0x0?void 0x0:_0x23c050[_0x4db6e5(0x1df)])===null||_0x1c3b3f===void 0x0?void 0x0:_0x1c3b3f[_0x4db6e5(0x1e0)])||_0x4db6e5(0x1ea)]||{},this[_0x4db6e5(0x20e)][_0x4db6e5(0x1e4)]||{});return _0x4fbe4c?lodash[_0x4db6e5(0x1ac)](_0xb4656b,_0x4fbe4c,_0x27d7ac):_0xb4656b;}},'when':{'value':async function(_0x392821,_0x566932){const _0x509c5e=_0x2479e0,_0x527af6=this['input'](_0x392821,null);if(!lodash[_0x509c5e(0x1f9)](_0x527af6))return await _0x566932(_0x527af6);}},'only':{'value':function(_0xeb7b06){const _0x4c4957=_0x2479e0,_0x4d012a={};for(let _0x47257a=0x0;_0x47257a<_0xeb7b06[_0x4c4957(0x1eb)];_0x47257a++){lodash[_0x4c4957(0x1b9)](_0xeb7b06[_0x47257a])&&_0xeb7b06[_0x47257a]['length']>0x0&&lodash[_0x4c4957(0x204)](_0xeb7b06[_0x47257a][0x0])&&(_0x4d012a[_0xeb7b06[_0x47257a][0x0]]=this[_0x4c4957(0x1d3)](_0xeb7b06[_0x47257a][0x0],_0xeb7b06[_0x47257a][_0x4c4957(0x1eb)]>0x1?_0xeb7b06[_0x47257a][0x1]:null));}return _0x4d012a;}},'koasend':{'value':function(_0x3fbba8,_0x509544){const _0x26a105=_0x2479e0;if(_0x3fbba8&&!fs['existsSync'](_0x3fbba8)&&!fs['existsSync'](this[_0x26a105(0x206)][_0x26a105(0x218)]()+'/'+_0x3fbba8))return _0x26a105(0x1b5);return _0x3fbba8=fs[_0x26a105(0x1d7)](_0x3fbba8)?_0x3fbba8:this[_0x26a105(0x206)][_0x26a105(0x218)]()+'/'+_0x3fbba8,this[_0x26a105(0x1e9)](_0x509544||_0x3fbba8),koasend(this,_0x3fbba8);}}});});}async[a2_0x464961(0x198)](){const _0x33d8ca=a2_0x464961;var _0x2464e6,_0x1a355d;if(fs[_0x33d8ca(0x1d7)](this[_0x33d8ca(0x206)][_0x33d8ca(0x213)]()+_0x33d8ca(0x1bc))&&fs[_0x33d8ca(0x21c)](this[_0x33d8ca(0x206)][_0x33d8ca(0x213)]()+_0x33d8ca(0x1bc))['isDirectory']()){const _0x32bb2a=this[_0x33d8ca(0x1bf)][_0x33d8ca(0x1af)](),_0x3ade2d=((_0x2464e6=_0x32bb2a===null||_0x32bb2a===void 0x0?void 0x0:_0x32bb2a[_0x33d8ca(0x1fb)])===null||_0x2464e6===void 0x0?void 0x0:_0x2464e6[_0x33d8ca(0x1c2)])||{};for(const _0x143c95 of fs[_0x33d8ca(0x1fc)](this[_0x33d8ca(0x206)][_0x33d8ca(0x213)]()+'/apps')){if(!fs[_0x33d8ca(0x21c)](this[_0x33d8ca(0x206)][_0x33d8ca(0x213)]()+_0x33d8ca(0x1e1)+_0x143c95)[_0x33d8ca(0x1da)]())continue;if(_0x3ade2d===null||_0x3ade2d===void 0x0?void 0x0:_0x3ade2d[_0x143c95])continue;_0x3ade2d[_0x143c95]=Object[_0x33d8ca(0x1bb)]({},((_0x1a355d=_0x32bb2a===null||_0x32bb2a===void 0x0?void 0x0:_0x32bb2a[_0x33d8ca(0x1fb)])===null||_0x1a355d===void 0x0?void 0x0:_0x1a355d[_0x33d8ca(0x1e8)])||{'maxSize':'1m','dir':this[_0x33d8ca(0x206)]['getAppDir']()+_0x33d8ca(0x1fe)},{'enableJSON':!![],'enableConsole':this['environment'][_0x33d8ca(0x1a6)](),'fileLogName':_0x143c95+'.log','dir':this[_0x33d8ca(0x206)][_0x33d8ca(0x218)]()+_0x33d8ca(0x194)+_0x143c95+_0x33d8ca(0x210)});}Object[_0x33d8ca(0x1dc)](_0x3ade2d)[_0x33d8ca(0x1eb)]>0x0&&(!_0x32bb2a[_0x33d8ca(0x1fb)]&&(_0x32bb2a[_0x33d8ca(0x1fb)]={'default':{'maxSize':'1m','dir':this[_0x33d8ca(0x206)][_0x33d8ca(0x218)]()+_0x33d8ca(0x1fe)}}),_0x32bb2a[_0x33d8ca(0x1fb)][_0x33d8ca(0x1c2)]=_0x3ade2d),this[_0x33d8ca(0x1bf)][_0x33d8ca(0x209)](_0x32bb2a);}}async[a2_0x464961(0x192)](){const _0x4c3599=a2_0x464961;var _0x5ef332,_0x3732c6,_0x2bb6dd,_0x528e10,_0x18764e,_0x3dadef;const _0x651d8a=this[_0x4c3599(0x1bf)]['getConfiguration']();((_0x3732c6=(_0x5ef332=_0x651d8a===null||_0x651d8a===void 0x0?void 0x0:_0x651d8a[_0x4c3599(0x18e)])===null||_0x5ef332===void 0x0?void 0x0:_0x5ef332[_0x4c3599(0x1e2)])===null||_0x3732c6===void 0x0?void 0x0:_0x3732c6[_0x4c3599(0x1f2)])&&Object[_0x4c3599(0x1dc)](_0x651d8a[_0x4c3599(0x18e)][_0x4c3599(0x1e2)])[_0x4c3599(0x1eb)]>0x1&&delete _0x651d8a[_0x4c3599(0x18e)]['devices'][_0x4c3599(0x1f2)];if((_0x2bb6dd=_0x651d8a===null||_0x651d8a===void 0x0?void 0x0:_0x651d8a[_0x4c3599(0x1c1)])===null||_0x2bb6dd===void 0x0?void 0x0:_0x2bb6dd[_0x4c3599(0x1b3)])for(const _0x524339 in _0x651d8a[_0x4c3599(0x1c1)][_0x4c3599(0x1b3)]){((_0x528e10=_0x651d8a['staticFile'][_0x4c3599(0x1b3)][_0x524339])===null||_0x528e10===void 0x0?void 0x0:_0x528e10[_0x4c3599(0x1f6)])&&typeof((_0x18764e=_0x651d8a['staticFile']['dirs'][_0x524339])===null||_0x18764e===void 0x0?void 0x0:_0x18764e[_0x4c3599(0x1f6)])==_0x4c3599(0x1dd)&&!fs['existsSync'](_0x651d8a[_0x4c3599(0x1c1)][_0x4c3599(0x1b3)][_0x524339][_0x4c3599(0x1f6)])&&(fs['mkdirSync'](_0x651d8a[_0x4c3599(0x1c1)]['dirs'][_0x524339][_0x4c3599(0x1f6)],{'recursive':!![]}),console[_0x4c3599(0x1f3)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x651d8a[_0x4c3599(0x1c1)][_0x4c3599(0x1b3)][_0x524339][_0x4c3599(0x1f6)]));}((_0x3dadef=_0x651d8a===null||_0x651d8a===void 0x0?void 0x0:_0x651d8a[_0x4c3599(0x19b)])===null||_0x3dadef===void 0x0?void 0x0:_0x3dadef[_0x4c3599(0x1a1)])&&!fs[_0x4c3599(0x1d7)](_0x651d8a[_0x4c3599(0x19b)]['tmpdir'])&&(fs[_0x4c3599(0x199)](_0x651d8a['upload'][_0x4c3599(0x1a1)],{'recursive':!![]}),console[_0x4c3599(0x1f3)](_0x4c3599(0x1f0)+_0x651d8a[_0x4c3599(0x19b)]['tmpdir'])),this[_0x4c3599(0x1bf)][_0x4c3599(0x209)](_0x651d8a);}};function a2_0xe88b(){const _0x41f458=['isClass','app','prototype','headers','addObject','hosturl','application','anncic-apihelper','ACTION_ROUTE_KEY','request','host','-log','@midwayjs/static-file','hanlderApplications','getBaseDir','proceed','__metadata','requestContext','_UNKNOW_','getAppDir','435855iFjAJL','includes','koa-send','statSync','anncicapi','handlerActionRoute','333918cKWkAG','@anncic-api/validator','filterConfig','@anncic-api/cache','/runtime/apps-','useMiddleware','design:type','method','loggerConfig','mkdirSync','context','upload','__decorate','req','MidwayConfigService','target','443','tmpdir','environment','toString','HEADERS_SIGNATURE','object','isDevelopmentEnvironment','CustomConfiguration','156315TaQpjh','search','ApiError','InterceptTargetTmp','get','constructor','Types','getConfiguration','./service/ApiService','2ZdGjIa','device','dirs','INTERCEPT_KEY','文件不存在','getOwnPropertyDescriptor','Inject','__esModule','isArray','function','assign','/apps','ApiService','apimit','config','args','staticFile','clients','@anncic-api/typeorm','277487VKmfzZ','apply','insertFirst','_matchedRoute','handler','MidwayEnvironmentService','metadata','https://','./types/action','./config/config.default','defineProperties','match','@anncic-api/event','anncic-api','3456768wKdwbr','input','intercept','@midwayjs/koa','decorator','existsSync','990416FCRlBx','MidwayApplicationManager','isDirectory','getClassMetadata','keys','string','requestKey','bodyXml','key','/apps/','devices','forEach','query','connection','(((.+)+)+)+$','toLowerCase','default','attachment','body','length','defaultsDeep','MidwayDecoratorService','isFunction','koa','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','./config/config.production','DEFAULT','log','./exception/ApiError','65990POWwIY','dir','http','onReady','isNull','getApplications','midwayLogger','readdirSync','http://','/runtime','decorate','App','defineProperty','encrypted','REQUEST_OBJ_CTX_KEY','isString'];a2_0xe88b=function(){return _0x41f458;};return a2_0xe88b();}__decorate([(0x0,core_1[a2_0x464961(0x200)])(),__metadata(a2_0x464961(0x196),Object)],CustomConfiguration[a2_0x464961(0x207)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x464961(0x1b7)])(),__metadata(a2_0x464961(0x196),core_2[a2_0x464961(0x19e)])],CustomConfiguration[a2_0x464961(0x207)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x464961(0x1b7)])(),__metadata(a2_0x464961(0x196),core_2[a2_0x464961(0x1ed)])],CustomConfiguration['prototype'],a2_0x464961(0x1d6),void 0x0),__decorate([(0x0,core_1[a2_0x464961(0x1b7)])(),__metadata(a2_0x464961(0x196),core_2[a2_0x464961(0x1d9)])],CustomConfiguration[a2_0x464961(0x207)],a2_0x464961(0x20b),void 0x0),__decorate([(0x0,core_1[a2_0x464961(0x1b7)])(),__metadata(a2_0x464961(0x196),core_2[a2_0x464961(0x1c9)])],CustomConfiguration[a2_0x464961(0x207)],a2_0x464961(0x1a2),void 0x0),__decorate([(0x0,core_1[a2_0x464961(0x1b7)])(),__metadata(a2_0x464961(0x196),ApiService_1['ApiService'])],CustomConfiguration[a2_0x464961(0x207)],a2_0x464961(0x1bd),void 0x0),exports[a2_0x464961(0x1a7)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x464961(0x1d1),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x5cfd(_0x331c73,_0x56285d){const _0x2183ca=a3_0x46e2();return a3_0x5cfd=function(_0x2250ed,_0xb51a20){_0x2250ed=_0x2250ed-0x17d;let _0x46e260=_0x2183ca[_0x2250ed];return _0x46e260;},a3_0x5cfd(_0x331c73,_0x56285d);}const a3_0x126304=a3_0x5cfd;(function(_0x3a0cec,_0x5d6fee){const _0xe0ce10=a3_0x5cfd,_0x531d5c=_0x3a0cec();while(!![]){try{const _0x16ad7e=parseInt(_0xe0ce10(0x185))/0x1*(parseInt(_0xe0ce10(0x18a))/0x2)+-parseInt(_0xe0ce10(0x1a3))/0x3*(parseInt(_0xe0ce10(0x19c))/0x4)+-parseInt(_0xe0ce10(0x1b3))/0x5*(-parseInt(_0xe0ce10(0x1b9))/0x6)+-parseInt(_0xe0ce10(0x183))/0x7+-parseInt(_0xe0ce10(0x1a5))/0x8*(parseInt(_0xe0ce10(0x1bd))/0x9)+-parseInt(_0xe0ce10(0x1c0))/0xa*(parseInt(_0xe0ce10(0x196))/0xb)+parseInt(_0xe0ce10(0x193))/0xc;if(_0x16ad7e===_0x5d6fee)break;else _0x531d5c['push'](_0x531d5c['shift']());}catch(_0x4da933){_0x531d5c['push'](_0x531d5c['shift']());}}}(a3_0x46e2,0x7a6e4));const a3_0xb51a20=(function(){let _0x5b1eff=!![];return function(_0x44f356,_0x4a8a8d){const _0x35acc1=_0x5b1eff?function(){const _0x18d0df=a3_0x5cfd;if(_0x4a8a8d){const _0x13e155=_0x4a8a8d[_0x18d0df(0x199)](_0x44f356,arguments);return _0x4a8a8d=null,_0x13e155;}}:function(){};return _0x5b1eff=![],_0x35acc1;};}()),a3_0x2250ed=a3_0xb51a20(this,function(){const _0x1f3c13=a3_0x5cfd;return a3_0x2250ed[_0x1f3c13(0x19e)]()[_0x1f3c13(0x19f)](_0x1f3c13(0x17e))[_0x1f3c13(0x19e)]()[_0x1f3c13(0x186)](a3_0x2250ed)[_0x1f3c13(0x19f)]('(((.+)+)+)+$');});a3_0x2250ed();'use strict';Object['defineProperty'](exports,a3_0x126304(0x19a),{'value':!![]}),exports[a3_0x126304(0x1b6)]=exports['ActionApi']=exports[a3_0x126304(0x194)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x126304(0x1ba)),core_1=require(a3_0x126304(0x1b5)),core_2=require(a3_0x126304(0x1b5)),action_1=require(a3_0x126304(0x18b));function Action(_0xc03915,_0x1587b4,_0x4f9613={'middleware':[],'sensitive':!![]}){return _0x32efb6=>{const _0x14d8c9=a3_0x5cfd;var _0x2a8741;_0x4f9613[_0x14d8c9(0x1c1)]=_0x1587b4;const _0x2dbe2f=parseRoute(_0xc03915);if(_0x2dbe2f[_0x14d8c9(0x189)]){_0x4f9613[_0x14d8c9(0x1a4)]=_0x4f9613['prefix']?'/'+_0x2dbe2f[_0x14d8c9(0x189)]+'/'+_0x4f9613[_0x14d8c9(0x1a4)]:'/'+_0x2dbe2f[_0x14d8c9(0x1a8)];_0x2dbe2f[_0x14d8c9(0x1a4)]&&(_0x4f9613[_0x14d8c9(0x1a4)]='/'+_0x2dbe2f[_0x14d8c9(0x1a4)]+'/'+_0x4f9613[_0x14d8c9(0x1a4)]);if(fs[_0x14d8c9(0x17d)](_0x2dbe2f['rootpath']+'/apps/'+_0x2dbe2f[_0x14d8c9(0x189)]+_0x14d8c9(0x187)+(lodash[_0x14d8c9(0x1bc)](_0x2dbe2f['filepath'],'ts')?'ts':'js'))){const _0x439813=include(_0x2dbe2f['rootpath']+'/apps/'+_0x2dbe2f[_0x14d8c9(0x189)]+_0x14d8c9(0x187)+(lodash[_0x14d8c9(0x1bc)](_0x2dbe2f['filepath'],'ts')?'ts':'js'));if(lodash[_0x14d8c9(0x181)](_0x439813['middleware'])&&_0x439813['middleware'][_0x14d8c9(0x1b7)]>0x0)for(let _0x4332fa in _0x439813[_0x14d8c9(0x18d)]){if(((_0x2a8741=_0x439813===null||_0x439813===void 0x0?void 0x0:_0x439813['middlewareIgnore'])===null||_0x2a8741===void 0x0?void 0x0:_0x2a8741[_0x14d8c9(0x1b7)])>0x0&&_0x439813['middlewareIgnore'][_0x14d8c9(0x198)](_0x439813[_0x14d8c9(0x18d)][_0x4332fa])!=-0x1)continue;_0x4f9613['middleware']['push'](_0x439813[_0x14d8c9(0x18d)][_0x4332fa]);}const _0x11b30c=(0x0,core_1[_0x14d8c9(0x1c5)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x11b30c[''+_0x2dbe2f[_0x14d8c9(0x189)]]=_0x439813,(0x0,core_1['saveClassMetadata'])(action_1[_0x14d8c9(0x1af)],_0x11b30c,action_1[_0x14d8c9(0x190)]);}_0x4f9613[_0x14d8c9(0x1a4)]=_0x4f9613['prefix'][_0x14d8c9(0x1b4)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x14d8c9(0x192)])(action_1[_0x14d8c9(0x1b8)],_0x32efb6),(0x0,core_1[_0x14d8c9(0x1c6)])(_0x4f9613[_0x14d8c9(0x1a4)],_0x4f9613)(_0x32efb6),(0x0,core_1[_0x14d8c9(0x1c4)])(action_1['ACTION_KEY'],{'prefix':_0x4f9613['prefix'],'pprefix':_0x2dbe2f['prefix'],'module':_0x2dbe2f['module'],'filepath':_0x2dbe2f[_0x14d8c9(0x1bb)],'routerOptions':_0x4f9613},_0x32efb6);}else _0x4f9613[_0x14d8c9(0x1a4)]=_0x4f9613['prefix']?'/'+_0x4f9613[_0x14d8c9(0x1a4)]:'/'+_0x2dbe2f[_0x14d8c9(0x1a8)],_0x2dbe2f['prefix']&&(_0x4f9613[_0x14d8c9(0x1a4)]='/'+_0x2dbe2f[_0x14d8c9(0x1a4)]+'/'+_0x4f9613[_0x14d8c9(0x1a4)]),_0x4f9613['prefix']=_0x4f9613['prefix']['toLowerCase']()[_0x14d8c9(0x188)](/\/{2,}/g,'/'),(0x0,core_1[_0x14d8c9(0x192)])(action_1[_0x14d8c9(0x1b8)],_0x32efb6),(0x0,core_1['Controller'])(_0x4f9613['prefix'],_0x4f9613)(_0x32efb6),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x4f9613[_0x14d8c9(0x1a4)],'module':_0x2dbe2f[_0x14d8c9(0x189)],'pprefix':_0x2dbe2f[_0x14d8c9(0x1a4)],'filepath':_0x2dbe2f[_0x14d8c9(0x1bb)],'routerOptions':_0x4f9613},_0x32efb6);};}exports[a3_0x126304(0x194)]=Action,Action[a3_0x126304(0x1ab)]=function(_0xfaba99,_0x5d41fa='/',_0x484dc4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2bf9be,_0x4ecd95,_0x28c42e)=>{const _0x887870=a3_0x5cfd;ActionApi(_0xfaba99,_0x887870(0x1ab),_0x5d41fa,_0x484dc4)(_0x2bf9be,_0x4ecd95,_0x28c42e);};},Action[a3_0x126304(0x1c2)]=function(_0x30e761,_0x29ce6d='/',_0x5ebc42={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x349d36,_0x2062e9,_0xbef6ef)=>{const _0x544350=a3_0x5cfd;ActionApi(_0x30e761,_0x544350(0x1c2),_0x29ce6d,_0x5ebc42)(_0x349d36,_0x2062e9,_0xbef6ef);};};function ActionApi(_0x1e00be,_0x2823fe=a3_0x126304(0x1ab),_0xf45cdf='/',_0x31b989={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x11c172,_0x89c1f2,_0x1f7f7f)=>{const _0x4b9fb4=a3_0x5cfd;var _0x14f334,_0x7c1351,_0x282104;!_0x31b989['middleware']&&(_0x31b989['middleware']=[]);!((_0x14f334=_0x31b989===null||_0x31b989===void 0x0?void 0x0:_0x31b989[_0x4b9fb4(0x1ac)])===null||_0x14f334===void 0x0?void 0x0:_0x14f334[_0x4b9fb4(0x1aa)])&&(_0x31b989['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0xf45cdf)_0xf45cdf='/';else typeof _0xf45cdf==_0x4b9fb4(0x1a2)&&(!_0xf45cdf['startsWith']('/')&&!_0xf45cdf[_0x4b9fb4(0x1ad)]('-')&&(_0xf45cdf='/'+_0xf45cdf));typeof _0x31b989['apimit']==_0x4b9fb4(0x180)&&(_0x31b989['apimit']=!![]);if(((_0x7c1351=_0x31b989===null||_0x31b989===void 0x0?void 0x0:_0x31b989['middleware'])===null||_0x7c1351===void 0x0?void 0x0:_0x7c1351[_0x4b9fb4(0x1b7)])>0x0&&((_0x282104=_0x31b989===null||_0x31b989===void 0x0?void 0x0:_0x31b989[_0x4b9fb4(0x1a7)])===null||_0x282104===void 0x0?void 0x0:_0x282104['length'])>0x0)for(let _0x41ea8c in _0x31b989['middleware']){_0x31b989[_0x4b9fb4(0x1a7)]['indexOf'](_0x31b989[_0x4b9fb4(0x18d)][_0x41ea8c])!==-0x1&&(_0x31b989[_0x4b9fb4(0x18d)][_0x41ea8c]=null);}_0x31b989[_0x4b9fb4(0x1c7)]=_0x1e00be,(0x0,validator_1[_0x4b9fb4(0x182)])(_0x31b989[_0x4b9fb4(0x1ac)])(_0x11c172,_0x89c1f2,_0x1f7f7f),(0x0,core_2[_0x4b9fb4(0x1a0)])(Object['assign'](_0x31b989,{'path':_0xf45cdf,'requestMethod':(_0x2823fe||'get')[_0x4b9fb4(0x1b4)]()}))(_0x11c172,_0x89c1f2,_0x1f7f7f),(0x0,core_2['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0xf45cdf,'method':_0x89c1f2,'apimit':_0x31b989[_0x4b9fb4(0x195)],'intercept':_0x31b989[_0x4b9fb4(0x17f)],'routerName':_0x31b989[_0x4b9fb4(0x1c7)],'description':_0x31b989[_0x4b9fb4(0x1bf)],'middleware':(_0x31b989['middleware']||[])[_0x4b9fb4(0x18c)](_0x28a87e=>!!_0x28a87e),'requestMethod':(_0x2823fe||'get')[_0x4b9fb4(0x1b4)]()},_0x11c172),(0x0,core_2[_0x4b9fb4(0x19b)])(action_1[_0x4b9fb4(0x1b2)],{'path':_0xf45cdf,'method':_0x89c1f2,'apimit':_0x31b989['apimit'],'intercept':_0x31b989['intercept'],'routerName':_0x31b989[_0x4b9fb4(0x1c7)],'description':_0x31b989[_0x4b9fb4(0x1bf)],'middleware':(_0x31b989[_0x4b9fb4(0x18d)]||[])[_0x4b9fb4(0x18c)](_0x3df83d=>!!_0x3df83d),'requestMethod':(_0x2823fe||_0x4b9fb4(0x1ab))['toLowerCase']()})(_0x11c172,_0x89c1f2,_0x1f7f7f);};}exports[a3_0x126304(0x1c3)]=ActionApi;function parseRoute(_0xca2dac){const _0xc70126=a3_0x126304;_0xca2dac=_0xca2dac[_0xc70126(0x188)](/(\\|\/)/g,'/');const _0x29cff3=process[_0xc70126(0x1c9)]()[_0xc70126(0x188)](/(\\|\/)/g,'/'),_0x1e8249=_0xca2dac['substring'](0x0,_0x29cff3[_0xc70126(0x1b7)]+_0xca2dac['substring'](_0x29cff3[_0xc70126(0x1b7)]+0x1)[_0xc70126(0x198)]('/')+0x1),_0x17f74a=_0xca2dac[_0xc70126(0x1a6)](_0x1e8249[_0xc70126(0x1b7)]+0x1)[_0xc70126(0x188)](/(\\|\/)/g,'/'),_0x5358a5={'route':'','prefix':![],'module':![],'rootpath':_0x1e8249,'filepath':_0x17f74a};if(_0x17f74a[_0xc70126(0x1ad)](_0xc70126(0x1be))||_0x17f74a['startsWith'](_0xc70126(0x18e))){const _0x509d63=_0x17f74a[_0xc70126(0x1a6)]((_0x17f74a[_0xc70126(0x1ad)](_0xc70126(0x1be))?_0xc70126(0x1be):_0xc70126(0x18e))[_0xc70126(0x1b7)])[_0xc70126(0x197)]('/')[_0xc70126(0x18c)](_0x289486=>_0x289486&&_0x289486['trim']());return _0x509d63[_0xc70126(0x1b7)]>0x1&&(_0x5358a5[_0xc70126(0x1a4)]=_0x509d63[0x0][_0xc70126(0x1b4)](),_0x509d63[_0xc70126(0x18f)](0x0,0x1)),_0x5358a5[_0xc70126(0x1a8)]=('/'+_0x509d63[_0xc70126(0x184)]('/'))[_0xc70126(0x188)](/(\.ts|\.js)$/,'')[_0xc70126(0x188)](/\/{2,}/g,'/')[_0xc70126(0x1a9)](/[\/|A-Z]*[^A-Z]+/g)[_0xc70126(0x184)]('-')[_0xc70126(0x1b4)]()['replace'](/\/\-/g,'/'),_0x5358a5['route']['endsWith']('-action')&&(_0x5358a5['route']=_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1a6)](0x0,_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1b7)]-0x7)),_0x5358a5[_0xc70126(0x1a8)]['endsWith']('-controller')&&(_0x5358a5[_0xc70126(0x1a8)]=_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1a6)](0x0,_0x5358a5['route'][_0xc70126(0x1b7)]-0xb)),_0x5358a5;}else{if(_0x17f74a[_0xc70126(0x1ad)](_0xc70126(0x1a1))){const _0x2f89e4=_0x17f74a['substring'](0x0,_0x17f74a[_0xc70126(0x198)](_0xc70126(0x1b1))+0x5),_0xf89eb1=_0x17f74a[_0xc70126(0x1a6)](_0x2f89e4['length']+0x1)[_0xc70126(0x188)](/(\\|\/)/g,'/')[_0xc70126(0x197)]('/')[0x0];if(_0x17f74a[_0xc70126(0x1ad)](_0xc70126(0x1a1)+_0xf89eb1+_0xc70126(0x19d))){const _0x15ebd8=_0x17f74a[_0xc70126(0x1a6)]((_0x2f89e4+'/'+_0xf89eb1+'/controller/')[_0xc70126(0x1b7)])[_0xc70126(0x197)]('/')['filter'](_0x31103c=>_0x31103c&&_0x31103c[_0xc70126(0x1b0)]());return _0x15ebd8[_0xc70126(0x1b7)]>0x1&&(_0x5358a5['prefix']=_0x15ebd8[0x0][_0xc70126(0x1b4)](),_0x15ebd8[_0xc70126(0x18f)](0x0,0x1)),_0x5358a5[_0xc70126(0x189)]=_0xf89eb1,_0x5358a5[_0xc70126(0x1a8)]=('/'+_0xf89eb1+'/'+_0x15ebd8[_0xc70126(0x184)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0xc70126(0x188)](/\/{2,}/g,'/')[_0xc70126(0x1a9)](/[\/|A-Z]*[^A-Z]+/g)[_0xc70126(0x184)]('-')['toLowerCase']()[_0xc70126(0x188)](/\/\-/g,'/'),_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1bc)](_0xc70126(0x191))&&(_0x5358a5[_0xc70126(0x1a8)]=_0x5358a5['route'][_0xc70126(0x1a6)](0x0,_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1b7)]-0x7)),_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1bc)]('-controller')&&(_0x5358a5['route']=_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1a6)](0x0,_0x5358a5[_0xc70126(0x1a8)][_0xc70126(0x1b7)]-0xb)),_0x5358a5;}throw new Error(_0x17f74a+'\x20文件请放在apps/'+_0xf89eb1+_0xc70126(0x1ae));}}throw new Error(_0x17f74a+_0xc70126(0x1c8));}function a3_0x46e2(){const _0x36833d=['saveModule','16289724sSxqNi','Action','apimit','66jVnjhd','split','indexOf','apply','__esModule','createCustomMethodDecorator','4984EeGiMe','/controller/','toString','search','RequestMapping','apps/','string','1389UKWjoJ','prefix','194424Tnybxi','substring','middlewareIgnore','route','match','validationOptions','get','validate','startsWith','/controller/文件下','APPSCONFIG_KEY','trim','/apps/','ACTION_ROUTE_KEY','305SNZygz','toLowerCase','@midwayjs/core','parseRoute','length','ACTION_KEY','49902uYbIvL','@anncic-api/validator','filepath','endsWith','63NhrscV','app/controller/','description','1213100alyoxV','tagName','post','ActionApi','saveClassMetadata','getClassMetadata','Controller','routerName','\x20文件请放在app/controller/文件下','cwd','existsSync','(((.+)+)+)+$','intercept','undefined','isArray','Validator','4230982tAnaaM','join','1oeqaBr','constructor','/config.','replace','module','1431934GxEIus','../types/action','filter','middleware','basic/controller/','splice','AppsConfigTmp','-action'];a3_0x46e2=function(){return _0x36833d;};return a3_0x46e2();}exports[a3_0x126304(0x1b6)]=parseRoute;
|
|
1
|
+
const a3_0xeb0b51=a3_0x310c;(function(_0x355d2e,_0xe8ccdb){const _0x350df7=a3_0x310c,_0x580d94=_0x355d2e();while(!![]){try{const _0x53cd7c=-parseInt(_0x350df7(0x17b))/0x1+-parseInt(_0x350df7(0x16f))/0x2*(-parseInt(_0x350df7(0x17e))/0x3)+-parseInt(_0x350df7(0x170))/0x4*(parseInt(_0x350df7(0x171))/0x5)+parseInt(_0x350df7(0x1a0))/0x6*(parseInt(_0x350df7(0x198))/0x7)+parseInt(_0x350df7(0x1b2))/0x8+parseInt(_0x350df7(0x1b4))/0x9*(-parseInt(_0x350df7(0x192))/0xa)+-parseInt(_0x350df7(0x1ae))/0xb;if(_0x53cd7c===_0xe8ccdb)break;else _0x580d94['push'](_0x580d94['shift']());}catch(_0x43162c){_0x580d94['push'](_0x580d94['shift']());}}}(a3_0x426f,0x1a07c));function a3_0x310c(_0xf9cf77,_0x514aa6){const _0xab046a=a3_0x426f();return a3_0x310c=function(_0x42b7c4,_0x2c2df4){_0x42b7c4=_0x42b7c4-0x16d;let _0x426fd6=_0xab046a[_0x42b7c4];return _0x426fd6;},a3_0x310c(_0xf9cf77,_0x514aa6);}const a3_0x2c2df4=(function(){let _0xbb585c=!![];return function(_0x553347,_0x14cf20){const _0x3cede7=_0xbb585c?function(){const _0x1eee24=a3_0x310c;if(_0x14cf20){const _0x73abd9=_0x14cf20[_0x1eee24(0x1b0)](_0x553347,arguments);return _0x14cf20=null,_0x73abd9;}}:function(){};return _0xbb585c=![],_0x3cede7;};}()),a3_0x42b7c4=a3_0x2c2df4(this,function(){const _0x103fd9=a3_0x310c;return a3_0x42b7c4['toString']()['search'](_0x103fd9(0x1b8))[_0x103fd9(0x187)]()[_0x103fd9(0x1ab)](a3_0x42b7c4)[_0x103fd9(0x19a)](_0x103fd9(0x1b8));});a3_0x42b7c4();'use strict';function a3_0x426f(){const _0x3a8334=['/apps/','Action','saveClassMetadata','toString','@anncic-api/validator','app/controller/','validationOptions','basic/controller/','AppsConfigTmp','-controller','description','join','RequestMapping','splice','10ofAvYc','prefix','endsWith','ACTION_ROUTE_KEY','middleware','length','42fJOZRN','filepath','search','route','__esModule','cwd','routerName','apimit','193260dUNtvg','middlewareIgnore','indexOf','-action','undefined','Validator','ActionApi','trim','replace','APPSCONFIG_KEY','attachClassMetadata','constructor','Controller','apps/','3918783pSqVUj','get','apply','/config.','1542056FQiVeU','module','307728VBATbL','substring','rootpath','/controller/','(((.+)+)+)+$','toLowerCase','getClassMetadata','string','2fGqbiF','4Xvjwfh','138505PqdJWs','@midwayjs/core','startsWith','validate','defineProperty','../types/action','saveModule','split','match','ACTION_KEY','42504WQvSKB','parseRoute','filter','543759hKkVIC','createCustomMethodDecorator','push','\x20文件请放在app/controller/文件下','intercept','post'];a3_0x426f=function(){return _0x3a8334;};return a3_0x426f();}Object[a3_0xeb0b51(0x175)](exports,a3_0xeb0b51(0x19c),{'value':!![]}),exports[a3_0xeb0b51(0x17c)]=exports[a3_0xeb0b51(0x1a6)]=exports[a3_0xeb0b51(0x185)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0xeb0b51(0x188)),core_1=require(a3_0xeb0b51(0x172)),core_2=require(a3_0xeb0b51(0x172)),action_1=require(a3_0xeb0b51(0x176));function Action(_0x120a07,_0x12baec,_0xef490a={'middleware':[],'sensitive':!![]}){return _0x2f5828=>{const _0x251f27=a3_0x310c;var _0x1f4b85;_0xef490a['tagName']=_0x12baec;const _0x4577a4=parseRoute(_0x120a07);if(_0x4577a4['module']){_0xef490a[_0x251f27(0x193)]=_0xef490a[_0x251f27(0x193)]?'/'+_0x4577a4[_0x251f27(0x1b3)]+'/'+_0xef490a['prefix']:'/'+_0x4577a4['route'];_0x4577a4[_0x251f27(0x193)]&&(_0xef490a['prefix']='/'+_0x4577a4[_0x251f27(0x193)]+'/'+_0xef490a[_0x251f27(0x193)]);if(fs['existsSync'](_0x4577a4[_0x251f27(0x1b6)]+_0x251f27(0x184)+_0x4577a4[_0x251f27(0x1b3)]+_0x251f27(0x1b1)+(lodash[_0x251f27(0x194)](_0x4577a4['filepath'],'ts')?'ts':'js'))){const _0x4fea65=include(_0x4577a4[_0x251f27(0x1b6)]+_0x251f27(0x184)+_0x4577a4['module']+'/config.'+(lodash[_0x251f27(0x194)](_0x4577a4[_0x251f27(0x199)],'ts')?'ts':'js'));if(lodash['isArray'](_0x4fea65[_0x251f27(0x196)])&&_0x4fea65[_0x251f27(0x196)]['length']>0x0)for(let _0x35aca4 in _0x4fea65[_0x251f27(0x196)]){if(((_0x1f4b85=_0x4fea65===null||_0x4fea65===void 0x0?void 0x0:_0x4fea65['middlewareIgnore'])===null||_0x1f4b85===void 0x0?void 0x0:_0x1f4b85[_0x251f27(0x197)])>0x0&&_0x4fea65[_0x251f27(0x1a1)][_0x251f27(0x1a2)](_0x4fea65[_0x251f27(0x196)][_0x35aca4])!=-0x1)continue;_0xef490a[_0x251f27(0x196)][_0x251f27(0x180)](_0x4fea65['middleware'][_0x35aca4]);}const _0x5c8b9c=(0x0,core_1[_0x251f27(0x16d)])(action_1[_0x251f27(0x1a9)],action_1[_0x251f27(0x18c)])||{};_0x5c8b9c[''+_0x4577a4[_0x251f27(0x1b3)]]=_0x4fea65,(0x0,core_1[_0x251f27(0x186)])(action_1['APPSCONFIG_KEY'],_0x5c8b9c,action_1[_0x251f27(0x18c)]);}_0xef490a[_0x251f27(0x193)]=_0xef490a['prefix']['toLowerCase']()[_0x251f27(0x1a8)](/\/{2,}/g,'/'),(0x0,core_1[_0x251f27(0x177)])(action_1[_0x251f27(0x17a)],_0x2f5828),(0x0,core_1[_0x251f27(0x1ac)])(_0xef490a[_0x251f27(0x193)],_0xef490a)(_0x2f5828),(0x0,core_1[_0x251f27(0x186)])(action_1[_0x251f27(0x17a)],{'prefix':_0xef490a[_0x251f27(0x193)],'pprefix':_0x4577a4[_0x251f27(0x193)],'module':_0x4577a4['module'],'filepath':_0x4577a4[_0x251f27(0x199)],'routerOptions':_0xef490a},_0x2f5828);}else _0xef490a['prefix']=_0xef490a[_0x251f27(0x193)]?'/'+_0xef490a[_0x251f27(0x193)]:'/'+_0x4577a4['route'],_0x4577a4['prefix']&&(_0xef490a['prefix']='/'+_0x4577a4[_0x251f27(0x193)]+'/'+_0xef490a[_0x251f27(0x193)]),_0xef490a['prefix']=_0xef490a[_0x251f27(0x193)][_0x251f27(0x1b9)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x251f27(0x177)])(action_1[_0x251f27(0x17a)],_0x2f5828),(0x0,core_1[_0x251f27(0x1ac)])(_0xef490a[_0x251f27(0x193)],_0xef490a)(_0x2f5828),(0x0,core_1['saveClassMetadata'])(action_1[_0x251f27(0x17a)],{'prefix':_0xef490a[_0x251f27(0x193)],'module':_0x4577a4[_0x251f27(0x1b3)],'pprefix':_0x4577a4[_0x251f27(0x193)],'filepath':_0x4577a4[_0x251f27(0x199)],'routerOptions':_0xef490a},_0x2f5828);};}exports[a3_0xeb0b51(0x185)]=Action,Action[a3_0xeb0b51(0x1af)]=function(_0x3082b0,_0x1d6b03='/',_0x183c9b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x53fd31,_0x442711,_0x7769a1)=>{ActionApi(_0x3082b0,'get',_0x1d6b03,_0x183c9b)(_0x53fd31,_0x442711,_0x7769a1);};},Action[a3_0xeb0b51(0x183)]=function(_0x1ef5d2,_0x5971ad='/',_0x57527e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3a7d80,_0x4583c4,_0x50f126)=>{const _0x1b56ed=a3_0x310c;ActionApi(_0x1ef5d2,_0x1b56ed(0x183),_0x5971ad,_0x57527e)(_0x3a7d80,_0x4583c4,_0x50f126);};};function ActionApi(_0x578d52,_0x4e3991=a3_0xeb0b51(0x1af),_0x52067c='/',_0x585226={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x446ced,_0x559bf4,_0x152c19)=>{const _0x44da19=a3_0x310c;var _0x1e98ae,_0x33542a,_0x328eb1;!_0x585226['middleware']&&(_0x585226[_0x44da19(0x196)]=[]);!((_0x1e98ae=_0x585226===null||_0x585226===void 0x0?void 0x0:_0x585226[_0x44da19(0x174)])===null||_0x1e98ae===void 0x0?void 0x0:_0x1e98ae[_0x44da19(0x18a)])&&(_0x585226[_0x44da19(0x174)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x52067c)_0x52067c='/';else typeof _0x52067c==_0x44da19(0x16e)&&(!_0x52067c[_0x44da19(0x173)]('/')&&!_0x52067c[_0x44da19(0x173)]('-')&&(_0x52067c='/'+_0x52067c));typeof _0x585226[_0x44da19(0x19f)]==_0x44da19(0x1a4)&&(_0x585226[_0x44da19(0x19f)]=!![]);if(((_0x33542a=_0x585226===null||_0x585226===void 0x0?void 0x0:_0x585226[_0x44da19(0x196)])===null||_0x33542a===void 0x0?void 0x0:_0x33542a[_0x44da19(0x197)])>0x0&&((_0x328eb1=_0x585226===null||_0x585226===void 0x0?void 0x0:_0x585226[_0x44da19(0x1a1)])===null||_0x328eb1===void 0x0?void 0x0:_0x328eb1['length'])>0x0)for(let _0x161b31 in _0x585226[_0x44da19(0x196)]){_0x585226[_0x44da19(0x1a1)][_0x44da19(0x1a2)](_0x585226[_0x44da19(0x196)][_0x161b31])!==-0x1&&(_0x585226[_0x44da19(0x196)][_0x161b31]=null);}_0x585226['routerName']=_0x578d52,(0x0,validator_1[_0x44da19(0x1a5)])(_0x585226[_0x44da19(0x174)])(_0x446ced,_0x559bf4,_0x152c19),(0x0,core_2[_0x44da19(0x190)])(Object['assign'](_0x585226,{'path':_0x52067c,'requestMethod':(_0x4e3991||_0x44da19(0x1af))[_0x44da19(0x1b9)]()}))(_0x446ced,_0x559bf4,_0x152c19),(0x0,core_2[_0x44da19(0x1aa)])(action_1[_0x44da19(0x195)],{'path':_0x52067c,'method':_0x559bf4,'apimit':_0x585226[_0x44da19(0x19f)],'intercept':_0x585226[_0x44da19(0x182)],'routerName':_0x585226[_0x44da19(0x19e)],'description':_0x585226['description'],'middleware':(_0x585226[_0x44da19(0x196)]||[])[_0x44da19(0x17d)](_0x50e2e7=>!!_0x50e2e7),'requestMethod':(_0x4e3991||_0x44da19(0x1af))['toLowerCase']()},_0x446ced),(0x0,core_2[_0x44da19(0x17f)])(action_1[_0x44da19(0x195)],{'path':_0x52067c,'method':_0x559bf4,'apimit':_0x585226['apimit'],'intercept':_0x585226[_0x44da19(0x182)],'routerName':_0x585226['routerName'],'description':_0x585226[_0x44da19(0x18e)],'middleware':(_0x585226['middleware']||[])[_0x44da19(0x17d)](_0x355d93=>!!_0x355d93),'requestMethod':(_0x4e3991||_0x44da19(0x1af))['toLowerCase']()})(_0x446ced,_0x559bf4,_0x152c19);};}exports[a3_0xeb0b51(0x1a6)]=ActionApi;function parseRoute(_0x3b3ca5){const _0x160de0=a3_0xeb0b51;_0x3b3ca5=_0x3b3ca5[_0x160de0(0x1a8)](/(\\|\/)/g,'/');const _0x186968=process[_0x160de0(0x19d)]()[_0x160de0(0x1a8)](/(\\|\/)/g,'/'),_0x5bac77=_0x3b3ca5[_0x160de0(0x1b5)](0x0,_0x186968[_0x160de0(0x197)]+_0x3b3ca5[_0x160de0(0x1b5)](_0x186968[_0x160de0(0x197)]+0x1)[_0x160de0(0x1a2)]('/')+0x1),_0x437863=_0x3b3ca5[_0x160de0(0x1b5)](_0x5bac77[_0x160de0(0x197)]+0x1)[_0x160de0(0x1a8)](/(\\|\/)/g,'/'),_0x156eb6={'route':'','prefix':![],'module':![],'rootpath':_0x5bac77,'filepath':_0x437863};if(_0x437863[_0x160de0(0x173)](_0x160de0(0x189))||_0x437863[_0x160de0(0x173)](_0x160de0(0x18b))){const _0x585078=_0x437863['substring']((_0x437863['startsWith'](_0x160de0(0x189))?_0x160de0(0x189):_0x160de0(0x18b))[_0x160de0(0x197)])['split']('/')[_0x160de0(0x17d)](_0x1d1d2c=>_0x1d1d2c&&_0x1d1d2c[_0x160de0(0x1a7)]());return _0x585078['length']>0x1&&(_0x156eb6[_0x160de0(0x193)]=_0x585078[0x0][_0x160de0(0x1b9)](),_0x585078[_0x160de0(0x191)](0x0,0x1)),_0x156eb6[_0x160de0(0x19b)]=('/'+_0x585078[_0x160de0(0x18f)]('/'))[_0x160de0(0x1a8)](/(\.ts|\.js)$/,'')[_0x160de0(0x1a8)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x160de0(0x18f)]('-')[_0x160de0(0x1b9)]()[_0x160de0(0x1a8)](/\/\-/g,'/'),_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x194)](_0x160de0(0x1a3))&&(_0x156eb6['route']=_0x156eb6[_0x160de0(0x19b)]['substring'](0x0,_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x197)]-0x7)),_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x194)](_0x160de0(0x18d))&&(_0x156eb6[_0x160de0(0x19b)]=_0x156eb6[_0x160de0(0x19b)]['substring'](0x0,_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x197)]-0xb)),_0x156eb6;}else{if(_0x437863[_0x160de0(0x173)](_0x160de0(0x1ad))){const _0x4a95a1=_0x437863[_0x160de0(0x1b5)](0x0,_0x437863[_0x160de0(0x1a2)](_0x160de0(0x184))+0x5),_0x33f802=_0x437863[_0x160de0(0x1b5)](_0x4a95a1[_0x160de0(0x197)]+0x1)[_0x160de0(0x1a8)](/(\\|\/)/g,'/')[_0x160de0(0x178)]('/')[0x0];if(_0x437863['startsWith'](_0x160de0(0x1ad)+_0x33f802+'/controller/')){const _0x4a2846=_0x437863[_0x160de0(0x1b5)]((_0x4a95a1+'/'+_0x33f802+_0x160de0(0x1b7))[_0x160de0(0x197)])[_0x160de0(0x178)]('/')[_0x160de0(0x17d)](_0x1cc11b=>_0x1cc11b&&_0x1cc11b[_0x160de0(0x1a7)]());return _0x4a2846[_0x160de0(0x197)]>0x1&&(_0x156eb6[_0x160de0(0x193)]=_0x4a2846[0x0][_0x160de0(0x1b9)](),_0x4a2846[_0x160de0(0x191)](0x0,0x1)),_0x156eb6[_0x160de0(0x1b3)]=_0x33f802,_0x156eb6[_0x160de0(0x19b)]=('/'+_0x33f802+'/'+_0x4a2846['join']('/'))[_0x160de0(0x1a8)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x160de0(0x179)](/[\/|A-Z]*[^A-Z]+/g)[_0x160de0(0x18f)]('-')[_0x160de0(0x1b9)]()['replace'](/\/\-/g,'/'),_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x194)](_0x160de0(0x1a3))&&(_0x156eb6['route']=_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x1b5)](0x0,_0x156eb6[_0x160de0(0x19b)]['length']-0x7)),_0x156eb6['route'][_0x160de0(0x194)](_0x160de0(0x18d))&&(_0x156eb6['route']=_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x1b5)](0x0,_0x156eb6[_0x160de0(0x19b)][_0x160de0(0x197)]-0xb)),_0x156eb6;}throw new Error(_0x437863+'\x20文件请放在apps/'+_0x33f802+'/controller/文件下');}}throw new Error(_0x437863+_0x160de0(0x181));}exports[a3_0xeb0b51(0x17c)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x52e7df=a4_0x4192;(function(_0x4f8d6c,_0x1269d7){const _0x498b13=a4_0x4192,_0x46d922=_0x4f8d6c();while(!![]){try{const _0x310c47=parseInt(_0x498b13(0x16d))/0x1*(-parseInt(_0x498b13(0x17c))/0x2)+parseInt(_0x498b13(0x187))/0x3+-parseInt(_0x498b13(0x179))/0x4+parseInt(_0x498b13(0x180))/0x5*(-parseInt(_0x498b13(0x16b))/0x6)+-parseInt(_0x498b13(0x173))/0x7*(-parseInt(_0x498b13(0x181))/0x8)+-parseInt(_0x498b13(0x175))/0x9+parseInt(_0x498b13(0x17b))/0xa;if(_0x310c47===_0x1269d7)break;else _0x46d922['push'](_0x46d922['shift']());}catch(_0x32ece7){_0x46d922['push'](_0x46d922['shift']());}}}(a4_0x4974,0x5ea92));const a4_0x430e12=(function(){let _0x6b24ce=!![];return function(_0x59984c,_0x2676b3){const _0x31a3b2=_0x6b24ce?function(){const _0x4886fc=a4_0x4192;if(_0x2676b3){const _0x25cf30=_0x2676b3[_0x4886fc(0x188)](_0x59984c,arguments);return _0x2676b3=null,_0x25cf30;}}:function(){};return _0x6b24ce=![],_0x31a3b2;};}()),a4_0x1c8a1f=a4_0x430e12(this,function(){const _0x527daf=a4_0x4192;return a4_0x1c8a1f['toString']()[_0x527daf(0x171)](_0x527daf(0x17e))['toString']()[_0x527daf(0x17f)](a4_0x1c8a1f)[_0x527daf(0x171)]('(((.+)+)+)+$');});a4_0x1c8a1f();'use strict';Object[a4_0x52e7df(0x16c)](exports,a4_0x52e7df(0x178),{'value':!![]}),exports[a4_0x52e7df(0x185)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x52e7df(0x177));function Apitest(_0x56c7b6=a4_0x52e7df(0x17a),_0x24958e){return(_0x28af66,_0x869653,_0x1e2ece)=>{const _0x523826=a4_0x4192;return(0x0,core_1[_0x523826(0x172)])({'path':_0x56c7b6,'requestMethod':_0x523826(0x183)})(_0x28af66,_0x869653,_0x1e2ece),_0x1e2ece[_0x523826(0x16f)]=async function(..._0x3ce254){const _0x195f4b=_0x523826;var _0x2963c6;const _0x3cce75=(_0x2963c6=this[core_1[_0x195f4b(0x174)]])===null||_0x2963c6===void 0x0?void 0x0:_0x2963c6[_0x195f4b(0x17d)];if(_0x3cce75&&_0x3cce75[_0x195f4b(0x16e)](_0x195f4b(0x186))){const _0x2a95b2=await _0x3cce75['getApplicationContext']()[_0x195f4b(0x176)](ApitestService_1[_0x195f4b(0x184)]),_0x1176d1=await _0x3cce75[_0x195f4b(0x170)]()[_0x195f4b(0x176)](core_1['MidwayEnvironmentService']);return _0x1176d1[_0x195f4b(0x182)]()&&(_0x24958e['filepath']=!![]),await _0x2a95b2[_0x195f4b(0x16a)](_0x24958e);}return'';},_0x1e2ece;};}function a4_0x4192(_0x14d328,_0x431400){const _0xeda0b0=a4_0x4974();return a4_0x4192=function(_0x1c8a1f,_0x430e12){_0x1c8a1f=_0x1c8a1f-0x16a;let _0x497458=_0xeda0b0[_0x1c8a1f];return _0x497458;},a4_0x4192(_0x14d328,_0x431400);}function a4_0x4974(){const _0xa64774=['apply','apidoc','12hssPJD','defineProperty','373060YEXNZE','getConfig','value','getApplicationContext','search','RequestMapping','4424875TgivSz','REQUEST_OBJ_CTX_KEY','2331828OAEYzm','getAsync','../service/ApitestService','__esModule','1981256cFucAj','/apitest','11522530IMTnoo','4Dkpomc','app','(((.+)+)+)+$','constructor','1336085gyZOUP','8FIyWMa','isDevelopmentEnvironment','get','ApitestService','Apitest','apitest','1914936xwsMpZ'];a4_0x4974=function(){return _0xa64774;};return a4_0x4974();}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2c5b9a=a5_0x42aa;(function(_0x50e936,_0x448a40){const _0x3b5550=a5_0x42aa,_0x1b26ab=_0x50e936();while(!![]){try{const _0x591f4e=-parseInt(_0x3b5550(0x94))/0x1+parseInt(_0x3b5550(0x7c))/0x2*(parseInt(_0x3b5550(0x95))/0x3)+parseInt(_0x3b5550(0x83))/0x4+-parseInt(_0x3b5550(0x7f))/0x5*(-parseInt(_0x3b5550(0x86))/0x6)+parseInt(_0x3b5550(0x8c))/0x7+-parseInt(_0x3b5550(0x7e))/0x8*(-parseInt(_0x3b5550(0x85))/0x9)+-parseInt(_0x3b5550(0x81))/0xa;if(_0x591f4e===_0x448a40)break;else _0x1b26ab['push'](_0x1b26ab['shift']());}catch(_0x177d2c){_0x1b26ab['push'](_0x1b26ab['shift']());}}}(a5_0x2fcd,0x3fc96));const a5_0x54ea62=(function(){let _0x6975e=!![];return function(_0x290cd1,_0x373ab6){const _0x1b00d7=_0x6975e?function(){const _0x3276e5=a5_0x42aa;if(_0x373ab6){const _0x3e9044=_0x373ab6[_0x3276e5(0x8d)](_0x290cd1,arguments);return _0x373ab6=null,_0x3e9044;}}:function(){};return _0x6975e=![],_0x1b00d7;};}()),a5_0x22a10f=a5_0x54ea62(this,function(){const _0x37b883=a5_0x42aa;return a5_0x22a10f[_0x37b883(0x7a)]()[_0x37b883(0x8f)](_0x37b883(0x90))[_0x37b883(0x7a)]()['constructor'](a5_0x22a10f)['search'](_0x37b883(0x90));});a5_0x22a10f();'use strict';Object[a5_0x2c5b9a(0x88)](exports,a5_0x2c5b9a(0x8a),{'value':!![]}),exports[a5_0x2c5b9a(0x91)]=exports[a5_0x2c5b9a(0x7b)]=void 0x0;function a5_0x2fcd(){const _0x5e80da=['234840FouFYP','toUpperCase','8094890bGvVEQ','Singleton','933920pwhZAt','../types/intercept','303057PKhPGI','48wiObYA','isArray','defineProperty','InterceptTargetTmp','__esModule','INTERCEPT_KEY','2003211iLeDeG','apply','saveClassMetadata','search','(((.+)+)+)+$','IIntercept','includes','ScopeEnum','285756cNBING','70107vBxUuK','toString','Intercept','2GyirHB','Scope','104kwqTml'];a5_0x2fcd=function(){return _0x5e80da;};return a5_0x2fcd();}const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x2c5b9a(0x84));function Intercept(_0x299110){return _0x957904=>{const _0x129d3e=a5_0x42aa,_0x2d9a29=(0x0,core_1['getClassMetadata'])(intercept_1[_0x129d3e(0x8b)],intercept_1[_0x129d3e(0x89)])||{};for(let _0xc6c12c of Array[_0x129d3e(0x87)](_0x299110)?_0x299110:[_0x299110]){_0xc6c12c=_0xc6c12c[_0x129d3e(0x80)]();!(_0x2d9a29===null||_0x2d9a29===void 0x0?void 0x0:_0x2d9a29[_0xc6c12c])&&(_0x2d9a29[_0xc6c12c]=[]);if(_0x2d9a29[_0xc6c12c][_0x129d3e(0x92)](_0x957904))continue;_0x2d9a29[_0xc6c12c]['push'](_0x957904);}(0x0,core_1['Provide'])()(_0x957904),(0x0,core_1[_0x129d3e(0x7d)])(core_1[_0x129d3e(0x93)][_0x129d3e(0x82)])(_0x957904),(0x0,core_1[_0x129d3e(0x8e)])(intercept_1[_0x129d3e(0x8b)],_0x2d9a29,intercept_1[_0x129d3e(0x89)]);};}exports['Intercept']=Intercept;class IIntercept{async['match'](_0x5b0854,_0x55e470,_0x5673c8){return!![];}}function a5_0x42aa(_0x2f9142,_0x399bd8){const _0xdb3dee=a5_0x2fcd();return a5_0x42aa=function(_0x22a10f,_0x54ea62){_0x22a10f=_0x22a10f-0x7a;let _0x2fcd0a=_0xdb3dee[_0x22a10f];return _0x2fcd0a;},a5_0x42aa(_0x2f9142,_0x399bd8);}exports[a5_0x2c5b9a(0x91)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x3a70ef=a6_0x8193;(function(_0x484665,_0x33c0dd){var _0x4b9be5=a6_0x8193,_0xb9f07a=_0x484665();while(!![]){try{var _0x25c7c1=-parseInt(_0x4b9be5(0x1d0))/0x1+-parseInt(_0x4b9be5(0x1cd))/0x2+-parseInt(_0x4b9be5(0x1b9))/0x3*(-parseInt(_0x4b9be5(0x1d4))/0x4)+parseInt(_0x4b9be5(0x1c0))/0x5*(parseInt(_0x4b9be5(0x1d3))/0x6)+-parseInt(_0x4b9be5(0x1ce))/0x7+parseInt(_0x4b9be5(0x1d8))/0x8+parseInt(_0x4b9be5(0x1be))/0x9;if(_0x25c7c1===_0x33c0dd)break;else _0xb9f07a['push'](_0xb9f07a['shift']());}catch(_0x4c0048){_0xb9f07a['push'](_0xb9f07a['shift']());}}}(a6_0x1c52,0xa15ef));var a6_0x1ca999=(function(){var _0x3fced8=!![];return function(_0x2a28e4,_0x4d4800){var _0x1a86aa=_0x3fced8?function(){var _0x16d08c=a6_0x8193;if(_0x4d4800){var _0x162484=_0x4d4800[_0x16d08c(0x1bc)](_0x2a28e4,arguments);return _0x4d4800=null,_0x162484;}}:function(){};return _0x3fced8=![],_0x1a86aa;};}()),a6_0x38fad9=a6_0x1ca999(this,function(){var _0xec98c4=a6_0x8193;return a6_0x38fad9['toString']()[_0xec98c4(0x1c4)](_0xec98c4(0x1ca))[_0xec98c4(0x1bd)]()['constructor'](a6_0x38fad9)[_0xec98c4(0x1c4)](_0xec98c4(0x1ca));});a6_0x38fad9();'use strict';function a6_0x1c52(){var _0x3b552f=['请使用正确的设备','7554aHTggY','552724HxTghU','signature验证失败','design:type','HEADERS_LACK','2581008oRSpue','defineProperty','21ErvoaV','__esModule','HEADERS_DEVICE','apply','toString','8624376hssINm','__decorate','785LeZGoF','metadata','HEADERS_SIGNATURE','object','search','TIMEOUT','ApiError','function','decorate','length','(((.+)+)+)+$','TIMEOUT_LOGINTIME','请求超时,请重试','1662338qciBpY','922096DWOfDc','HEADERS_CHECKCODE','821948tHqpFU','登录超时,请重新登录'];a6_0x1c52=function(){return _0x3b552f;};return a6_0x1c52();}var __decorate=this&&this[a6_0x3a70ef(0x1bf)]||function(_0xc98807,_0x572eca,_0x1c470a,_0x73bb1f){var _0x3fef98=a6_0x3a70ef,_0xf8cddb=arguments['length'],_0x35ce9b=_0xf8cddb<0x3?_0x572eca:_0x73bb1f===null?_0x73bb1f=Object['getOwnPropertyDescriptor'](_0x572eca,_0x1c470a):_0x73bb1f,_0x55bc5c;if(typeof Reflect===_0x3fef98(0x1c3)&&typeof Reflect[_0x3fef98(0x1c8)]==='function')_0x35ce9b=Reflect[_0x3fef98(0x1c8)](_0xc98807,_0x572eca,_0x1c470a,_0x73bb1f);else{for(var _0x597d0d=_0xc98807[_0x3fef98(0x1c9)]-0x1;_0x597d0d>=0x0;_0x597d0d--)if(_0x55bc5c=_0xc98807[_0x597d0d])_0x35ce9b=(_0xf8cddb<0x3?_0x55bc5c(_0x35ce9b):_0xf8cddb>0x3?_0x55bc5c(_0x572eca,_0x1c470a,_0x35ce9b):_0x55bc5c(_0x572eca,_0x1c470a))||_0x35ce9b;}return _0xf8cddb>0x3&&_0x35ce9b&&Object[_0x3fef98(0x1d9)](_0x572eca,_0x1c470a,_0x35ce9b),_0x35ce9b;},__metadata=this&&this['__metadata']||function(_0xdf2cc0,_0x3098d4){var _0x85577c=a6_0x3a70ef;if(typeof Reflect===_0x85577c(0x1c3)&&typeof Reflect[_0x85577c(0x1c1)]===_0x85577c(0x1c7))return Reflect[_0x85577c(0x1c1)](_0xdf2cc0,_0x3098d4);};Object['defineProperty'](exports,a6_0x3a70ef(0x1ba),{'value':!![]}),exports[a6_0x3a70ef(0x1c6)]=void 0x0;class ApiError extends AnnError{}function a6_0x8193(_0x2180bd,_0x247ecd){var _0xa87d42=a6_0x1c52();return a6_0x8193=function(_0x38fad9,_0x1ca999){_0x38fad9=_0x38fad9-0x1b9;var _0x1c52f6=_0xa87d42[_0x38fad9];return _0x1c52f6;},a6_0x8193(_0x2180bd,_0x247ecd);}exports[a6_0x3a70ef(0x1c6)]=ApiError,ApiError[a6_0x3a70ef(0x1c5)]=0x19003,ApiError[a6_0x3a70ef(0x1d7)]=0x18e72,ApiError[a6_0x3a70ef(0x1bb)]=0x18e73,ApiError[a6_0x3a70ef(0x1c2)]=0x18e74,ApiError[a6_0x3a70ef(0x1cf)]=0x18e75,ApiError[a6_0x3a70ef(0x1cb)]=0x18e76,__decorate([AnnErrorMsg(a6_0x3a70ef(0x1cc)),__metadata(a6_0x3a70ef(0x1d6),Object)],ApiError,a6_0x3a70ef(0x1c5),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a6_0x3a70ef(0x1d7),void 0x0),__decorate([AnnErrorMsg(a6_0x3a70ef(0x1d2)),__metadata('design:type',Object)],ApiError,a6_0x3a70ef(0x1bb),void 0x0),__decorate([AnnErrorMsg(a6_0x3a70ef(0x1d5)),__metadata(a6_0x3a70ef(0x1d6),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x3a70ef(0x1d6),Object)],ApiError,a6_0x3a70ef(0x1cf),void 0x0),__decorate([AnnErrorMsg(a6_0x3a70ef(0x1d1)),__metadata(a6_0x3a70ef(0x1d6),Object)],ApiError,a6_0x3a70ef(0x1cb),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x118b78=a7_0x2852;(function(_0x50d3ca,_0x5cef0b){const _0x196f25=a7_0x2852,_0x14bc2c=_0x50d3ca();while(!![]){try{const _0x9dc6c8=-parseInt(_0x196f25(0x16b))/0x1*(-parseInt(_0x196f25(0x16d))/0x2)+parseInt(_0x196f25(0x171))/0x3+-parseInt(_0x196f25(0x174))/0x4+-parseInt(_0x196f25(0x165))/0x5*(-parseInt(_0x196f25(0x16f))/0x6)+-parseInt(_0x196f25(0x170))/0x7+-parseInt(_0x196f25(0x16e))/0x8+parseInt(_0x196f25(0x168))/0x9;if(_0x9dc6c8===_0x5cef0b)break;else _0x14bc2c['push'](_0x14bc2c['shift']());}catch(_0x3a470b){_0x14bc2c['push'](_0x14bc2c['shift']());}}}(a7_0x2cee,0x70596));function a7_0x2852(_0x3e5b6b,_0x500251){const _0x2d648c=a7_0x2cee();return a7_0x2852=function(_0x2ac396,_0x3219cb){_0x2ac396=_0x2ac396-0x165;let _0x2ceea1=_0x2d648c[_0x2ac396];return _0x2ceea1;},a7_0x2852(_0x3e5b6b,_0x500251);}function a7_0x2cee(){const _0x4bf3ae=['APPSCONFIG_KEY','1tTTBet','__esModule','396346kCijze','4698280TwsfAu','24zoFiOD','1951852HPXEix','1191906ntUKLA','getAppsConfig','constructor','308920RMuHuM','search','toString','get','46120vUVjPe','(((.+)+)+)+$','@midwayjs/core','6940458zIbLOW','getClassMetadata'];a7_0x2cee=function(){return _0x4bf3ae;};return a7_0x2cee();}const a7_0x3219cb=(function(){let _0x30bd50=!![];return function(_0x391ecb,_0x213eab){const _0x40dd55=_0x30bd50?function(){if(_0x213eab){const _0x3a1e1d=_0x213eab['apply'](_0x391ecb,arguments);return _0x213eab=null,_0x3a1e1d;}}:function(){};return _0x30bd50=![],_0x40dd55;};}()),a7_0x2ac396=a7_0x3219cb(this,function(){const _0x4b7988=a7_0x2852;return a7_0x2ac396[_0x4b7988(0x176)]()['search'](_0x4b7988(0x166))['toString']()[_0x4b7988(0x173)](a7_0x2ac396)[_0x4b7988(0x175)](_0x4b7988(0x166));});a7_0x2ac396();'use strict';Object['defineProperty'](exports,a7_0x118b78(0x16c),{'value':!![]}),exports[a7_0x118b78(0x172)]=void 0x0;const core_1=require(a7_0x118b78(0x167)),action_1=require('../types/action');function getAppsConfig(_0x30bbc6){const _0xe71b54=a7_0x118b78,_0x2fb7fd=(0x0,core_1[_0xe71b54(0x169)])(action_1[_0xe71b54(0x16a)],action_1['AppsConfigTmp'])||{};return _0x30bbc6?lodash[_0xe71b54(0x177)](_0x2fb7fd,_0x30bbc6):_0x2fb7fd;}exports[a7_0x118b78(0x172)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x2d0e6c=a8_0x3b52;(function(_0x125e36,_0x117620){const _0x1e0be7=a8_0x3b52,_0x1187f1=_0x125e36();while(!![]){try{const _0x331909=parseInt(_0x1e0be7(0x112))/0x1*(-parseInt(_0x1e0be7(0xeb))/0x2)+parseInt(_0x1e0be7(0x10f))/0x3*(parseInt(_0x1e0be7(0x128))/0x4)+parseInt(_0x1e0be7(0xff))/0x5*(-parseInt(_0x1e0be7(0xf4))/0x6)+-parseInt(_0x1e0be7(0xf0))/0x7+-parseInt(_0x1e0be7(0xdc))/0x8+parseInt(_0x1e0be7(0x10b))/0x9*(-parseInt(_0x1e0be7(0x125))/0xa)+-parseInt(_0x1e0be7(0x119))/0xb*(-parseInt(_0x1e0be7(0xe8))/0xc);if(_0x331909===_0x117620)break;else _0x1187f1['push'](_0x1187f1['shift']());}catch(_0x30d29e){_0x1187f1['push'](_0x1187f1['shift']());}}}(a8_0x4f75,0x7b690));const a8_0x5bc94d=(function(){let _0x3b999e=!![];return function(_0x298b22,_0x1cd163){const _0x13defd=_0x3b999e?function(){const _0x8038db=a8_0x3b52;if(_0x1cd163){const _0x16abff=_0x1cd163[_0x8038db(0xd6)](_0x298b22,arguments);return _0x1cd163=null,_0x16abff;}}:function(){};return _0x3b999e=![],_0x13defd;};}()),a8_0x158245=a8_0x5bc94d(this,function(){const _0x2dd489=a8_0x3b52;return a8_0x158245['toString']()['search'](_0x2dd489(0x123))[_0x2dd489(0xf2)]()[_0x2dd489(0xda)](a8_0x158245)[_0x2dd489(0x110)](_0x2dd489(0x123));});a8_0x158245();'use strict';Object[a8_0x2d0e6c(0xe4)](exports,a8_0x2d0e6c(0xf9),{'value':!![]}),exports[a8_0x2d0e6c(0xef)]=void 0x0;const lodash_1=require(a8_0x2d0e6c(0x11b)),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x2d0e6c(0xf7)),core_2=require(a8_0x2d0e6c(0xf7)),core_3=require('@midwayjs/core'),action_1=require(a8_0x2d0e6c(0x101));function getRoutes(_0x5d8a48={'prefix':'/','module':![]}){const _0x24e007=a8_0x2d0e6c;var _0x2486a3,_0x53cca5;const _0x26c152=(0x0,core_3[_0x24e007(0xdb)])(action_1[_0x24e007(0x10a)]),_0x57e6fd={},_0x4e3f58=Array[_0x24e007(0x11e)](_0x5d8a48[_0x24e007(0xe6)]||[])?_0x5d8a48[_0x24e007(0xe6)]||[]:[_0x5d8a48['filter']];_0x1a7339:for(const _0xc5cbd2 of _0x26c152){let _0x332c0b=(0x0,core_3['getClassMetadata'])(action_1[_0x24e007(0x10a)],_0xc5cbd2),_0xdcc514=(0x0,core_3[_0x24e007(0x116)])(action_1[_0x24e007(0xfa)],_0xc5cbd2);if(_0x332c0b&&_0xdcc514){let _0x2d2e47=_0x332c0b[_0x24e007(0xd4)],_0x1b8080={};if(_0x5d8a48[_0x24e007(0x11a)]&&(0x0,lodash_1['get'])(_0x332c0b,_0x24e007(0x11a),![])!=_0x5d8a48[_0x24e007(0x11a)])continue _0x1a7339;else{if(_0x5d8a48[_0x24e007(0x11a)]===![]&&!!(0x0,lodash_1[_0x24e007(0xc7)])(_0x332c0b,_0x24e007(0x11a),null))continue _0x1a7339;}if(_0x5d8a48['prefix']&&!_0x2d2e47['startsWith'](_0x5d8a48['prefix']))continue _0x1a7339;_0x2d2e47!=='/'?(_0x1b8080['summary']=(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b[_0x24e007(0x117)][_0x24e007(0xe5)])||(/^\//[_0x24e007(0xd9)](_0x2d2e47)?_0x2d2e47[_0x24e007(0xe7)]('/')[0x1]:_0x2d2e47),_0x1b8080[_0x24e007(0xcf)]=(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b['routerOptions'][_0x24e007(0xcf)])||_0x1b8080[_0x24e007(0x10e)],_0x1b8080['routes']=[]):(_0x1b8080[_0x24e007(0x10e)]=(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b['routerOptions'][_0x24e007(0xe5)])||'default',_0x1b8080[_0x24e007(0xcf)]=(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b['routerOptions']['description'])||'',_0x1b8080[_0x24e007(0xd2)]=[]);_0x5d8a48[_0x24e007(0xc9)]&&(_0x1b8080[_0x24e007(0xc9)]=_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b[_0x24e007(0xc9)]);(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b['pprefix'])&&(_0x1b8080[_0x24e007(0xd4)]=_0x332c0b['pprefix']);(_0x332c0b===null||_0x332c0b===void 0x0?void 0x0:_0x332c0b['module'])&&(_0x1b8080[_0x24e007(0x11a)]=_0x332c0b[_0x24e007(0x11a)]);let _0x422707=(0x0,core_3[_0x24e007(0x116)])(core_2['INJECT_CUSTOM_PARAM'],_0xc5cbd2)||{};if(typeof _0xdcc514[Symbol['iterator']]==='function')for(let _0x485b94 of _0xdcc514){if((_0x5d8a48===null||_0x5d8a48===void 0x0?void 0x0:_0x5d8a48[_0x24e007(0x10d)])&&!(_0x485b94===null||_0x485b94===void 0x0?void 0x0:_0x485b94[_0x24e007(0x10d)]))continue;let _0x52d40f={};_0x52d40f[_0x24e007(0x111)]=_0x485b94[_0x24e007(0x102)],_0x52d40f[_0x24e007(0xd1)]=(_0x2d2e47+_0x485b94[_0x24e007(0x11f)])['replace'](/\/{2,}/g,'/'),_0x52d40f[_0x24e007(0x10e)]=(_0x485b94===null||_0x485b94===void 0x0?void 0x0:_0x485b94['routerName'])||_0x1b8080[_0x24e007(0x10e)]||_0x24e007(0xed),_0x52d40f['description']=(_0x485b94===null||_0x485b94===void 0x0?void 0x0:_0x485b94[_0x24e007(0xcf)])||'',_0x52d40f['request']=[];_0x52d40f[_0x24e007(0xd1)]['endsWith']('/')&&(_0x52d40f[_0x24e007(0xd1)]=_0x52d40f['route']['substring'](0x0,_0x52d40f[_0x24e007(0xd1)][_0x24e007(0xde)]-0x1));if(!(0x0,lodash_1[_0x24e007(0x129)])(_0x52d40f[_0x24e007(0xd1)],_0x24e007(0x11d))&&!(0x0,lodash_1[_0x24e007(0x129)])(_0x52d40f[_0x24e007(0xd1)],_0x24e007(0xd3))&&_0x4e3f58[_0x24e007(0xce)](_0x52d40f[_0x24e007(0xd1)])===-0x1){if(!(_0x5d8a48===null||_0x5d8a48===void 0x0?void 0x0:_0x5d8a48['noreq'])){let _0xd673bf=(0x0,core_3[_0x24e007(0xe0)])(new _0xc5cbd2(),_0x485b94[_0x24e007(0x111)]);for(const _0x5b7106 in _0xd673bf){let _0x5d9984=(_0x2486a3=_0x422707[_0x485b94['method']])===null||_0x2486a3===void 0x0?void 0x0:_0x2486a3[_0x24e007(0x124)](_0x11eea8=>_0x11eea8['parameterIndex']==_0x5b7106&&_0x11eea8[_0x24e007(0x126)]===core_2[_0x24e007(0xfc)]&&(_0x11eea8===null||_0x11eea8===void 0x0?void 0x0:_0x11eea8[_0x24e007(0x108)]));if(_0x5d9984===null||_0x5d9984===void 0x0?void 0x0:_0x5d9984['metadata']){let _0x422474=convertTypeToString(_0x5d9984[_0x24e007(0x108)][_0x24e007(0x113)]||0x0);if([_0x24e007(0x122),_0x24e007(0x103)][_0x24e007(0xce)](_0x422474)!=-0x1&&_0x5d9984[_0x24e007(0x108)][_0x24e007(0xe2)][_0x24e007(0xce)](':')==-0x1&&!_0x52d40f[_0x24e007(0xea)][_0x24e007(0x124)](_0x409f06=>_0x409f06[_0x24e007(0x126)]==_0x5d9984[_0x24e007(0x108)][_0x24e007(0xe2)]))_0x52d40f['request'][_0x24e007(0xfd)]({'key':_0x5d9984[_0x24e007(0x108)]['propertyData'],'title':_0x5d9984[_0x24e007(0x108)]['propertyData'],'type':convertSchemaType(_0xd673bf[_0x5d9984[_0x24e007(0x118)]][_0x24e007(0x120)]),'required':![],'default':'','desc':''});else{if(_0x422474==_0x24e007(0xf5)){let _0x1f6c8c=((_0x53cca5=_0x5d9984===null||_0x5d9984===void 0x0?void 0x0:_0x5d9984['metadata'])===null||_0x53cca5===void 0x0?void 0x0:_0x53cca5['propertyData'])||_0x24e007(0xf5);_0x1f6c8c['indexOf'](':')==-0x1&&!_0x52d40f[_0x24e007(0xea)][_0x24e007(0x124)](_0x23f4e2=>_0x23f4e2['key']==_0x1f6c8c&&_0x23f4e2[_0x24e007(0x113)]==_0x24e007(0xf5))&&_0x52d40f[_0x24e007(0xea)][_0x24e007(0xfd)]({'key':_0x1f6c8c,'title':_0x24e007(0xf1)+_0x1f6c8c,'type':_0x24e007(0xf5),'required':!![],'default':'','desc':''});}}}else{const _0x2bd41f=(0x0,core_3['getClassExtendedMetadata'])(validator_1['RULES_KEY'],_0xd673bf[_0x5b7106]);_0x2bd41f&&_0x52d40f[_0x24e007(0xea)][_0x24e007(0xfd)](...getJoiRequest(_0x2bd41f));}}}_0x1b8080[_0x24e007(0xd2)][_0x24e007(0xfd)](_0x52d40f);}}if(_0x1b8080['routes'][_0x24e007(0xde)]>0x0){let _0x4a3bc6=_0x57e6fd[_0x2d2e47];_0x4a3bc6?(_0x4a3bc6[_0x24e007(0x10e)]!=_0x1b8080['summary']&&(_0x4a3bc6['summary']=_0x4a3bc6[_0x24e007(0x10e)]+','+_0x1b8080[_0x24e007(0x10e)]),_0x4a3bc6[_0x24e007(0xcf)]!=_0x1b8080['description']&&(_0x4a3bc6['description']=_0x4a3bc6[_0x24e007(0xcf)]+','+_0x1b8080[_0x24e007(0xcf)]),_0x4a3bc6[_0x24e007(0xd2)]=_0x4a3bc6['routes'][_0x24e007(0xe9)](_0x1b8080[_0x24e007(0xd2)]),_0x57e6fd[_0x2d2e47]=_0x4a3bc6):_0x57e6fd[_0x2d2e47]=_0x1b8080;}}}return _0x57e6fd;}exports[a8_0x2d0e6c(0xef)]=getRoutes;function a8_0x3b52(_0x432b42,_0x46f316){const _0x187ce9=a8_0x4f75();return a8_0x3b52=function(_0x158245,_0x5bc94d){_0x158245=_0x158245-0xc6;let _0x4f7577=_0x187ce9[_0x158245];return _0x4f7577;},a8_0x3b52(_0x432b42,_0x46f316);}function getJoiRequest(_0x5675e0){const _0x3440e4=a8_0x2d0e6c,_0x5438f5=[];for(let _0x762809 in _0x5675e0){const _0x34f78e={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2f03f7=typeof _0x5675e0[_0x762809][_0x3440e4(0xd0)]==_0x3440e4(0x109)?_0x5675e0[_0x762809][_0x3440e4(0xd0)]():_0x5675e0[_0x762809];_0x34f78e['key']=_0x762809,_0x34f78e[_0x3440e4(0x113)]=_0x2f03f7[_0x3440e4(0x113)],_0x34f78e[_0x3440e4(0xec)]=(0x0,lodash_1[_0x3440e4(0xc7)])(_0x2f03f7,'flags.label',_0x762809),_0x34f78e[_0x3440e4(0xed)]=(0x0,lodash_1[_0x3440e4(0xc7)])(_0x2f03f7,_0x3440e4(0xf3),''),_0x34f78e[_0x3440e4(0xd7)]=(0x0,lodash_1[_0x3440e4(0xc7)])(_0x2f03f7,_0x3440e4(0xf8),'')==_0x3440e4(0xd7),_0x34f78e[_0x3440e4(0xcf)]=(0x0,lodash_1[_0x3440e4(0xc7)])(_0x2f03f7,_0x3440e4(0x107),'');if(_0x2f03f7[_0x3440e4(0x113)]=='object')_0x34f78e['children']=getJoiRequest(_0x2f03f7[_0x3440e4(0xdf)]);else{if(_0x2f03f7[_0x3440e4(0x113)]=='array'&&_0x2f03f7[_0x3440e4(0xdd)]&&Array['isArray'](_0x2f03f7[_0x3440e4(0xdd)])&&_0x2f03f7[_0x3440e4(0xdd)][0x0]){}}_0x2f03f7[_0x3440e4(0x11c)]&&Array[_0x3440e4(0x11e)](_0x2f03f7[_0x3440e4(0x11c)])&&_0x2f03f7[_0x3440e4(0x11c)]['length']>0x0&&(_0x34f78e[_0x3440e4(0xcf)]=_0x3440e4(0xca)+_0x2f03f7[_0x3440e4(0x11c)]['join'](',')+'];'+_0x34f78e[_0x3440e4(0xcf)]);if(_0x34f78e[_0x3440e4(0x126)]&&_0x34f78e[_0x3440e4(0x113)]){const _0x3c45bd={};for(const _0xc21161 of _0x2f03f7[_0x3440e4(0x115)]||[]){if(_0xc21161[_0x3440e4(0x120)]===_0x3440e4(0xc6)&&_0xc21161['args'])_0x3c45bd[_0x3440e4(0xc6)]=_0xc21161[_0x3440e4(0xfb)]['limit'];else _0xc21161['name']===_0x3440e4(0xf6)&&(_0x3c45bd['max']=_0xc21161[_0x3440e4(0xfb)][_0x3440e4(0xc8)]);}_0x34f78e[_0x3440e4(0x115)]=_0x3c45bd;}_0x34f78e[_0x3440e4(0x126)]&&_0x34f78e[_0x3440e4(0xec)]&&_0x5438f5['push'](_0x34f78e);}return _0x5438f5;}function convertSchemaType(_0x29aa0e){const _0x5456a2=a8_0x2d0e6c;switch(_0x29aa0e){case _0x5456a2(0xcd):return _0x5456a2(0xcc);case _0x5456a2(0x100):return _0x5456a2(0xe1);case _0x5456a2(0xd5):return _0x5456a2(0xcb);case _0x5456a2(0xfe):return _0x5456a2(0x106);case _0x5456a2(0xee):return _0x5456a2(0xf5);default:return _0x5456a2(0x106);}}function a8_0x4f75(){const _0x1aecc6=['header','test','constructor','listModule','1107672hpVjtJ','items','length','keys','getMethodParamTypes','boolean','propertyData','HEADERS','defineProperty','tagName','filter','split','20808468JNqunp','concat','request','526QKSkaO','title','default','File','getRoutes','4733386KBfymH','文件上传-','toString','flags.default','543846wHFUOT','file','max','@midwayjs/core','flags.presence','__esModule','ACTION_ROUTE_KEY','args','WEB_ROUTER_PARAM_KEY','push','String','45xpVVmh','Boolean','../types/action','requestMethod','body','RouteParamTypes','QUERY','string','flags.description','metadata','function','ACTION_KEY','144UXaTfY','FILESTREAM','intercept','summary','9jdYdSK','search','method','2553NyOWhN','type','BODY','rules','getClassMetadata','routerOptions','parameterIndex','22aiEpYn','module','lodash','allow','static/apitest','isArray','path','name','FILESSTREAM','query','(((.+)+)+)+$','find','436880GSgaXP','key','PARAM','51044Swomqd','startsWith','min','get','limit','filepath','只允许:[','number','object','Object','indexOf','description','describe','route','routes','/static/apitest','prefix','Number','apply','required'];a8_0x4f75=function(){return _0x1aecc6;};return a8_0x4f75();}function convertTypeToString(_0xc0bc56){const _0x2b8fb9=a8_0x2d0e6c;switch(_0xc0bc56){case core_1[_0x2b8fb9(0x104)][_0x2b8fb9(0xe3)]:return'header';case core_1['RouteParamTypes'][_0x2b8fb9(0x105)]:return _0x2b8fb9(0x122);case core_1['RouteParamTypes'][_0x2b8fb9(0x127)]:return'path';case core_1[_0x2b8fb9(0x104)][_0x2b8fb9(0x114)]:return _0x2b8fb9(0x103);case core_1[_0x2b8fb9(0x104)]['FIELDS']:case core_1[_0x2b8fb9(0x104)][_0x2b8fb9(0x121)]:case core_1['RouteParamTypes'][_0x2b8fb9(0x10c)]:return _0x2b8fb9(0xf5);default:return _0x2b8fb9(0xd8);}}
|
|
1
|
+
function a8_0x580d(_0x27dea3,_0x121a79){const _0x50bc4f=a8_0x20b2();return a8_0x580d=function(_0x8f0158,_0x1a1966){_0x8f0158=_0x8f0158-0xac;let _0x20b271=_0x50bc4f[_0x8f0158];return _0x20b271;},a8_0x580d(_0x27dea3,_0x121a79);}const a8_0x461089=a8_0x580d;(function(_0x5a6144,_0xb44a73){const _0x239c8e=a8_0x580d,_0x152e7b=_0x5a6144();while(!![]){try{const _0x10bf81=parseInt(_0x239c8e(0xfd))/0x1*(-parseInt(_0x239c8e(0xf4))/0x2)+parseInt(_0x239c8e(0xb2))/0x3*(-parseInt(_0x239c8e(0x10e))/0x4)+-parseInt(_0x239c8e(0xec))/0x5*(-parseInt(_0x239c8e(0xd4))/0x6)+parseInt(_0x239c8e(0xe6))/0x7*(parseInt(_0x239c8e(0xe4))/0x8)+-parseInt(_0x239c8e(0xe0))/0x9+-parseInt(_0x239c8e(0xdd))/0xa*(-parseInt(_0x239c8e(0x107))/0xb)+parseInt(_0x239c8e(0xdb))/0xc;if(_0x10bf81===_0xb44a73)break;else _0x152e7b['push'](_0x152e7b['shift']());}catch(_0x111bde){_0x152e7b['push'](_0x152e7b['shift']());}}}(a8_0x20b2,0x31d4b));const a8_0x1a1966=(function(){let _0x39a209=!![];return function(_0x577c5f,_0x31487c){const _0x21afd4=_0x39a209?function(){const _0x3f81c1=a8_0x580d;if(_0x31487c){const _0x323e75=_0x31487c[_0x3f81c1(0xc3)](_0x577c5f,arguments);return _0x31487c=null,_0x323e75;}}:function(){};return _0x39a209=![],_0x21afd4;};}()),a8_0x8f0158=a8_0x1a1966(this,function(){const _0x28f031=a8_0x580d;return a8_0x8f0158['toString']()[_0x28f031(0x109)](_0x28f031(0xb8))[_0x28f031(0xe5)]()['constructor'](a8_0x8f0158)[_0x28f031(0x109)](_0x28f031(0xb8));});function a8_0x20b2(){const _0x18bf2c=['type','186xlBGuc','getRoutes','min','BODY','replace','keys','(((.+)+)+)+$','requestMethod','Number','routes','module','title','request','max','allow','startsWith','getMethodParamTypes','apply','RULES_KEY','listModule','文件上传-','defineProperty','QUERY','@anncic-api/validator','find','file','children','get','RouteParamTypes','join','route','describe','intercept','getClassExtendedMetadata','141264DhlJWX','number','flags.default','getClassMetadata','@midwayjs/core','__esModule','PARAM','2552124zhGmAX','flags.description','10TeEoRd','description','Boolean','500463lUopPs','HEADERS','required','method','984952PsAqnr','toString','7LEHwYJ','items','string','filter','lodash','function','45HqvGzG','prefix','noreq','limit','Object','args','filepath','push','6VmSgKM','File','rules','substring','parameterIndex','ACTION_KEY','name','path','split','30197DutIVl','routerOptions','metadata','body','只允许:[','isArray','query','indexOf','default','key','2304709uEyZfE','WEB_ROUTER_PARAM_KEY','search','tagName','INJECT_CUSTOM_PARAM','propertyData','test','26252AHZnAl','ACTION_ROUTE_KEY','FILESSTREAM','length','flags.presence','object','flags.label','summary'];a8_0x20b2=function(){return _0x18bf2c;};return a8_0x20b2();}a8_0x8f0158();'use strict';Object[a8_0x461089(0xc7)](exports,a8_0x461089(0xd9),{'value':!![]}),exports[a8_0x461089(0xb3)]=void 0x0;const lodash_1=require(a8_0x461089(0xea)),validator_1=require(a8_0x461089(0xc9)),core_1=require(a8_0x461089(0xd8)),core_2=require(a8_0x461089(0xd8)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x5e968f={'prefix':'/','module':![]}){const _0x5c7bc6=a8_0x461089;var _0x5300a3,_0x490ff2;const _0x2ba247=(0x0,core_3[_0x5c7bc6(0xc5)])(action_1[_0x5c7bc6(0xf9)]),_0x3e0c0c={},_0x5cc98d=Array[_0x5c7bc6(0x102)](_0x5e968f[_0x5c7bc6(0xe9)]||[])?_0x5e968f[_0x5c7bc6(0xe9)]||[]:[_0x5e968f[_0x5c7bc6(0xe9)]];_0xdb5883:for(const _0x26dbb6 of _0x2ba247){let _0x162f6f=(0x0,core_3[_0x5c7bc6(0xd7)])(action_1[_0x5c7bc6(0xf9)],_0x26dbb6),_0x421669=(0x0,core_3[_0x5c7bc6(0xd7)])(action_1[_0x5c7bc6(0x10f)],_0x26dbb6);if(_0x162f6f&&_0x421669){let _0x6fcaaf=_0x162f6f[_0x5c7bc6(0xed)],_0x50463b={};if(_0x5e968f[_0x5c7bc6(0xbc)]&&(0x0,lodash_1['get'])(_0x162f6f,_0x5c7bc6(0xbc),![])!=_0x5e968f[_0x5c7bc6(0xbc)])continue _0xdb5883;else{if(_0x5e968f[_0x5c7bc6(0xbc)]===![]&&!!(0x0,lodash_1[_0x5c7bc6(0xcd)])(_0x162f6f,_0x5c7bc6(0xbc),null))continue _0xdb5883;}if(_0x5e968f[_0x5c7bc6(0xed)]&&!_0x6fcaaf[_0x5c7bc6(0xc1)](_0x5e968f[_0x5c7bc6(0xed)]))continue _0xdb5883;_0x6fcaaf!=='/'?(_0x50463b[_0x5c7bc6(0xb0)]=(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f['routerOptions']['tagName'])||(/^\//[_0x5c7bc6(0x10d)](_0x6fcaaf)?_0x6fcaaf[_0x5c7bc6(0xfc)]('/')[0x1]:_0x6fcaaf),_0x50463b[_0x5c7bc6(0xde)]=(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f[_0x5c7bc6(0xfe)]['description'])||_0x50463b[_0x5c7bc6(0xb0)],_0x50463b[_0x5c7bc6(0xbb)]=[]):(_0x50463b[_0x5c7bc6(0xb0)]=(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f[_0x5c7bc6(0xfe)][_0x5c7bc6(0x10a)])||'default',_0x50463b[_0x5c7bc6(0xde)]=(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f['routerOptions'][_0x5c7bc6(0xde)])||'',_0x50463b[_0x5c7bc6(0xbb)]=[]);_0x5e968f['filepath']&&(_0x50463b[_0x5c7bc6(0xf2)]=_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f[_0x5c7bc6(0xf2)]);(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f['pprefix'])&&(_0x50463b[_0x5c7bc6(0xed)]=_0x162f6f['pprefix']);(_0x162f6f===null||_0x162f6f===void 0x0?void 0x0:_0x162f6f[_0x5c7bc6(0xbc)])&&(_0x50463b[_0x5c7bc6(0xbc)]=_0x162f6f[_0x5c7bc6(0xbc)]);let _0x49a8ef=(0x0,core_3[_0x5c7bc6(0xd7)])(core_2[_0x5c7bc6(0x10b)],_0x26dbb6)||{};if(typeof _0x421669[Symbol['iterator']]===_0x5c7bc6(0xeb))for(let _0x60294c of _0x421669){if((_0x5e968f===null||_0x5e968f===void 0x0?void 0x0:_0x5e968f[_0x5c7bc6(0xd2)])&&!(_0x60294c===null||_0x60294c===void 0x0?void 0x0:_0x60294c['intercept']))continue;let _0x1d1e4b={};_0x1d1e4b['method']=_0x60294c[_0x5c7bc6(0xb9)],_0x1d1e4b[_0x5c7bc6(0xd0)]=(_0x6fcaaf+_0x60294c[_0x5c7bc6(0xfb)])[_0x5c7bc6(0xb6)](/\/{2,}/g,'/'),_0x1d1e4b[_0x5c7bc6(0xb0)]=(_0x60294c===null||_0x60294c===void 0x0?void 0x0:_0x60294c['routerName'])||_0x50463b[_0x5c7bc6(0xb0)]||_0x5c7bc6(0x105),_0x1d1e4b[_0x5c7bc6(0xde)]=(_0x60294c===null||_0x60294c===void 0x0?void 0x0:_0x60294c[_0x5c7bc6(0xde)])||'',_0x1d1e4b[_0x5c7bc6(0xbe)]=[];_0x1d1e4b[_0x5c7bc6(0xd0)]['endsWith']('/')&&(_0x1d1e4b[_0x5c7bc6(0xd0)]=_0x1d1e4b[_0x5c7bc6(0xd0)][_0x5c7bc6(0xf7)](0x0,_0x1d1e4b['route'][_0x5c7bc6(0xac)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x1d1e4b['route'],'static/apitest')&&!(0x0,lodash_1[_0x5c7bc6(0xc1)])(_0x1d1e4b['route'],'/static/apitest')&&_0x5cc98d['indexOf'](_0x1d1e4b[_0x5c7bc6(0xd0)])===-0x1){if(!(_0x5e968f===null||_0x5e968f===void 0x0?void 0x0:_0x5e968f[_0x5c7bc6(0xee)])){let _0x16989f=(0x0,core_3[_0x5c7bc6(0xc2)])(new _0x26dbb6(),_0x60294c[_0x5c7bc6(0xe3)]);for(const _0x123164 in _0x16989f){let _0x513e34=(_0x5300a3=_0x49a8ef[_0x60294c[_0x5c7bc6(0xe3)]])===null||_0x5300a3===void 0x0?void 0x0:_0x5300a3['find'](_0x69744a=>_0x69744a[_0x5c7bc6(0xf8)]==_0x123164&&_0x69744a['key']===core_2[_0x5c7bc6(0x108)]&&(_0x69744a===null||_0x69744a===void 0x0?void 0x0:_0x69744a[_0x5c7bc6(0xff)]));if(_0x513e34===null||_0x513e34===void 0x0?void 0x0:_0x513e34[_0x5c7bc6(0xff)]){let _0x2a7af1=convertTypeToString(_0x513e34[_0x5c7bc6(0xff)][_0x5c7bc6(0xb1)]||0x0);if([_0x5c7bc6(0x103),_0x5c7bc6(0x100)][_0x5c7bc6(0x104)](_0x2a7af1)!=-0x1&&_0x513e34[_0x5c7bc6(0xff)][_0x5c7bc6(0x10c)][_0x5c7bc6(0x104)](':')==-0x1&&!_0x1d1e4b['request']['find'](_0x1e56de=>_0x1e56de['key']==_0x513e34[_0x5c7bc6(0xff)][_0x5c7bc6(0x10c)]))_0x1d1e4b[_0x5c7bc6(0xbe)][_0x5c7bc6(0xf3)]({'key':_0x513e34[_0x5c7bc6(0xff)][_0x5c7bc6(0x10c)],'title':_0x513e34[_0x5c7bc6(0xff)]['propertyData'],'type':convertSchemaType(_0x16989f[_0x513e34[_0x5c7bc6(0xf8)]][_0x5c7bc6(0xfa)]),'required':![],'default':'','desc':''});else{if(_0x2a7af1==_0x5c7bc6(0xcb)){let _0x171b56=((_0x490ff2=_0x513e34===null||_0x513e34===void 0x0?void 0x0:_0x513e34[_0x5c7bc6(0xff)])===null||_0x490ff2===void 0x0?void 0x0:_0x490ff2[_0x5c7bc6(0x10c)])||_0x5c7bc6(0xcb);_0x171b56[_0x5c7bc6(0x104)](':')==-0x1&&!_0x1d1e4b[_0x5c7bc6(0xbe)][_0x5c7bc6(0xca)](_0x349d2d=>_0x349d2d[_0x5c7bc6(0x106)]==_0x171b56&&_0x349d2d[_0x5c7bc6(0xb1)]==_0x5c7bc6(0xcb))&&_0x1d1e4b['request'][_0x5c7bc6(0xf3)]({'key':_0x171b56,'title':_0x5c7bc6(0xc6)+_0x171b56,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x173bc8=(0x0,core_3[_0x5c7bc6(0xd3)])(validator_1[_0x5c7bc6(0xc4)],_0x16989f[_0x123164]);_0x173bc8&&_0x1d1e4b[_0x5c7bc6(0xbe)][_0x5c7bc6(0xf3)](...getJoiRequest(_0x173bc8));}}}_0x50463b[_0x5c7bc6(0xbb)][_0x5c7bc6(0xf3)](_0x1d1e4b);}}if(_0x50463b[_0x5c7bc6(0xbb)][_0x5c7bc6(0xac)]>0x0){let _0x33f607=_0x3e0c0c[_0x6fcaaf];_0x33f607?(_0x33f607[_0x5c7bc6(0xb0)]!=_0x50463b[_0x5c7bc6(0xb0)]&&(_0x33f607['summary']=_0x33f607[_0x5c7bc6(0xb0)]+','+_0x50463b[_0x5c7bc6(0xb0)]),_0x33f607[_0x5c7bc6(0xde)]!=_0x50463b[_0x5c7bc6(0xde)]&&(_0x33f607['description']=_0x33f607[_0x5c7bc6(0xde)]+','+_0x50463b['description']),_0x33f607[_0x5c7bc6(0xbb)]=_0x33f607[_0x5c7bc6(0xbb)]['concat'](_0x50463b[_0x5c7bc6(0xbb)]),_0x3e0c0c[_0x6fcaaf]=_0x33f607):_0x3e0c0c[_0x6fcaaf]=_0x50463b;}}}return _0x3e0c0c;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x1a4f26){const _0x471a40=a8_0x461089,_0x427388=[];for(let _0x58cf48 in _0x1a4f26){const _0x27b97b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xa5c4dd=typeof _0x1a4f26[_0x58cf48][_0x471a40(0xd1)]=='function'?_0x1a4f26[_0x58cf48][_0x471a40(0xd1)]():_0x1a4f26[_0x58cf48];_0x27b97b[_0x471a40(0x106)]=_0x58cf48,_0x27b97b[_0x471a40(0xb1)]=_0xa5c4dd[_0x471a40(0xb1)],_0x27b97b[_0x471a40(0xbd)]=(0x0,lodash_1[_0x471a40(0xcd)])(_0xa5c4dd,_0x471a40(0xaf),_0x58cf48),_0x27b97b['default']=(0x0,lodash_1[_0x471a40(0xcd)])(_0xa5c4dd,_0x471a40(0xd6),''),_0x27b97b[_0x471a40(0xe2)]=(0x0,lodash_1['get'])(_0xa5c4dd,_0x471a40(0xad),'')==_0x471a40(0xe2),_0x27b97b[_0x471a40(0xde)]=(0x0,lodash_1[_0x471a40(0xcd)])(_0xa5c4dd,_0x471a40(0xdc),'');if(_0xa5c4dd[_0x471a40(0xb1)]==_0x471a40(0xae))_0x27b97b[_0x471a40(0xcc)]=getJoiRequest(_0xa5c4dd[_0x471a40(0xb7)]);else{if(_0xa5c4dd[_0x471a40(0xb1)]=='array'&&_0xa5c4dd[_0x471a40(0xe7)]&&Array[_0x471a40(0x102)](_0xa5c4dd[_0x471a40(0xe7)])&&_0xa5c4dd['items'][0x0]){}}_0xa5c4dd[_0x471a40(0xc0)]&&Array[_0x471a40(0x102)](_0xa5c4dd[_0x471a40(0xc0)])&&_0xa5c4dd[_0x471a40(0xc0)][_0x471a40(0xac)]>0x0&&(_0x27b97b[_0x471a40(0xde)]=_0x471a40(0x101)+_0xa5c4dd[_0x471a40(0xc0)][_0x471a40(0xcf)](',')+'];'+_0x27b97b[_0x471a40(0xde)]);if(_0x27b97b[_0x471a40(0x106)]&&_0x27b97b[_0x471a40(0xb1)]){const _0x305fa1={};for(const _0x4272e4 of _0xa5c4dd[_0x471a40(0xf6)]||[]){if(_0x4272e4[_0x471a40(0xfa)]===_0x471a40(0xb4)&&_0x4272e4[_0x471a40(0xf1)])_0x305fa1[_0x471a40(0xb4)]=_0x4272e4[_0x471a40(0xf1)][_0x471a40(0xef)];else _0x4272e4[_0x471a40(0xfa)]===_0x471a40(0xbf)&&(_0x305fa1[_0x471a40(0xbf)]=_0x4272e4['args']['limit']);}_0x27b97b['rules']=_0x305fa1;}_0x27b97b['key']&&_0x27b97b['title']&&_0x427388[_0x471a40(0xf3)](_0x27b97b);}return _0x427388;}function convertSchemaType(_0xb12093){const _0x4f6298=a8_0x461089;switch(_0xb12093){case _0x4f6298(0xf0):return _0x4f6298(0xae);case _0x4f6298(0xdf):return'boolean';case _0x4f6298(0xba):return _0x4f6298(0xd5);case'String':return _0x4f6298(0xe8);case _0x4f6298(0xf5):return _0x4f6298(0xcb);default:return _0x4f6298(0xe8);}}function convertTypeToString(_0xe27cf7){const _0x1e5a0f=a8_0x461089;switch(_0xe27cf7){case core_1[_0x1e5a0f(0xce)][_0x1e5a0f(0xe1)]:return'header';case core_1[_0x1e5a0f(0xce)][_0x1e5a0f(0xc8)]:return _0x1e5a0f(0x103);case core_1[_0x1e5a0f(0xce)][_0x1e5a0f(0xda)]:return _0x1e5a0f(0xfb);case core_1['RouteParamTypes'][_0x1e5a0f(0xb5)]:return _0x1e5a0f(0x100);case core_1[_0x1e5a0f(0xce)]['FIELDS']:case core_1[_0x1e5a0f(0xce)][_0x1e5a0f(0x110)]:case core_1[_0x1e5a0f(0xce)]['FILESTREAM']:return _0x1e5a0f(0xcb);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x54add8=a9_0x11b4;(function(_0x23d0e5,_0xca7c36){var _0x4a3c3f=a9_0x11b4,_0x3c26be=_0x23d0e5();while(!![]){try{var _0x1e6e0e=-parseInt(_0x4a3c3f(0x138))/0x1+-parseInt(_0x4a3c3f(0x134))/0x2+parseInt(_0x4a3c3f(0x127))/0x3+-parseInt(_0x4a3c3f(0x14c))/0x4+parseInt(_0x4a3c3f(0x12a))/0x5*(-parseInt(_0x4a3c3f(0x14e))/0x6)+parseInt(_0x4a3c3f(0x14b))/0x7*(-parseInt(_0x4a3c3f(0x155))/0x8)+parseInt(_0x4a3c3f(0x11c))/0x9;if(_0x1e6e0e===_0xca7c36)break;else _0x3c26be['push'](_0x3c26be['shift']());}catch(_0x1da569){_0x3c26be['push'](_0x3c26be['shift']());}}}(a9_0x28d4,0xa60e0));var a9_0x44a513=(function(){var _0x4a5942=!![];return function(_0x2f21b2,_0x59184c){var _0x56f204=_0x4a5942?function(){var _0x19cb50=a9_0x11b4;if(_0x59184c){var _0x126b57=_0x59184c[_0x19cb50(0x119)](_0x2f21b2,arguments);return _0x59184c=null,_0x126b57;}}:function(){};return _0x4a5942=![],_0x56f204;};}()),a9_0x2a029e=a9_0x44a513(this,function(){var _0x12f471=a9_0x11b4;return a9_0x2a029e['toString']()[_0x12f471(0x13d)](_0x12f471(0x146))[_0x12f471(0x151)]()[_0x12f471(0x11a)](a9_0x2a029e)['search'](_0x12f471(0x146));});a9_0x2a029e();'use strict';var __createBinding=this&&this[a9_0x54add8(0x135)]||(Object[a9_0x54add8(0x143)]?function(_0x24fe58,_0x262c09,_0x245d23,_0x2a7aed){var _0x4799d6=a9_0x54add8;if(_0x2a7aed===undefined)_0x2a7aed=_0x245d23;var _0x45e26b=Object[_0x4799d6(0x128)](_0x262c09,_0x245d23);(!_0x45e26b||(_0x4799d6(0x124)in _0x45e26b?!_0x262c09[_0x4799d6(0x137)]:_0x45e26b[_0x4799d6(0x136)]||_0x45e26b['configurable']))&&(_0x45e26b={'enumerable':!![],'get':function(){return _0x262c09[_0x245d23];}}),Object[_0x4799d6(0x132)](_0x24fe58,_0x2a7aed,_0x45e26b);}:function(_0x34ecad,_0x31178d,_0x2d0916,_0x2ee67b){if(_0x2ee67b===undefined)_0x2ee67b=_0x2d0916;_0x34ecad[_0x2ee67b]=_0x31178d[_0x2d0916];}),__exportStar=this&&this[a9_0x54add8(0x121)]||function(_0xfb04de,_0x3c1df1){var _0x65c394=a9_0x54add8;for(var _0x1d691e in _0xfb04de)if(_0x1d691e!==_0x65c394(0x122)&&!Object['prototype']['hasOwnProperty'][_0x65c394(0x141)](_0x3c1df1,_0x1d691e))__createBinding(_0x3c1df1,_0xfb04de,_0x1d691e);};Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x137),{'value':!![]}),exports[a9_0x54add8(0x13f)]=exports[a9_0x54add8(0x150)]=exports[a9_0x54add8(0x120)]=exports[a9_0x54add8(0x131)]=exports[a9_0x54add8(0x144)]=exports[a9_0x54add8(0x125)]=exports[a9_0x54add8(0x133)]=exports[a9_0x54add8(0x145)]=exports[a9_0x54add8(0x11f)]=exports[a9_0x54add8(0x139)]=exports[a9_0x54add8(0x14d)]=exports[a9_0x54add8(0x142)]=exports[a9_0x54add8(0x14a)]=exports['Body']=exports[a9_0x54add8(0x11d)]=exports['Files']=exports[a9_0x54add8(0x13c)]=exports[a9_0x54add8(0x123)]=exports[a9_0x54add8(0x126)]=exports[a9_0x54add8(0x13a)]=exports[a9_0x54add8(0x12b)]=exports['ApiService']=exports[a9_0x54add8(0x152)]=exports['CacheService']=exports[a9_0x54add8(0x148)]=exports['getRoutes']=exports['IIntercept']=exports[a9_0x54add8(0x140)]=exports[a9_0x54add8(0x114)]=exports[a9_0x54add8(0x115)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x13f),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x54add8(0x12f)),exports),__exportStar(require(a9_0x54add8(0x13e)),exports);var Action_1=require(a9_0x54add8(0x14f));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x115),{'enumerable':!![],'get':function(){var _0x5c5726=a9_0x54add8;return Action_1[_0x5c5726(0x115)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x114),{'enumerable':!![],'get':function(){var _0x2608d3=a9_0x54add8;return ActionApitest_1[_0x2608d3(0x114)];}});var Intercept_1=require(a9_0x54add8(0x149));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x140),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a9_0x54add8(0x132)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0xea36fb=a9_0x54add8;return Intercept_1[_0xea36fb(0x12d)];}});var getRoutes_1=require(a9_0x54add8(0x147));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x12e),{'enumerable':!![],'get':function(){var _0x51458b=a9_0x54add8;return getRoutes_1[_0x51458b(0x12e)];}});function a9_0x28d4(){var _0x24bf42=['__createBinding','writable','__esModule','590759plymzL','Init','ValidatorError','@anncic-api/validator','File','search','./service/ApitestService','getAppsConfig','Intercept','call','Query','create','Inject','Config','(((.+)+)+)+$','./helper/getRoutes','ApiError','./decorator/Intercept','Param','2030pnooAu','5144888gbPHbE','Headers','211686VjJICM','./decorator/Action','ScopeEnum','toString','EventService','@anncic-api/cache','ApiService','4744SnsrDD','Apitest','Action','Body','@anncic-api/event','CustomConfiguration','apply','constructor','Files','28580598KNhtMw','Fields','./service/ApiService','App','Singleton','__exportStar','default','Configuration','get','Provide','ValidatorService','561969DZpCqn','getOwnPropertyDescriptor','@midwayjs/core','40lpUikO','ExcelService','CacheService','IIntercept','getRoutes','./types/common','./configuration','Scope','defineProperty','Logger','703172bGtIcG'];a9_0x28d4=function(){return _0x24bf42;};return a9_0x28d4();}var ApiError_1=require('./exception/ApiError');Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x148),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a9_0x54add8(0x153));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x12c),{'enumerable':!![],'get':function(){var _0xf0034d=a9_0x54add8;return cache_1[_0xf0034d(0x12c)];}});var event_1=require(a9_0x54add8(0x117));Object['defineProperty'](exports,a9_0x54add8(0x152),{'enumerable':!![],'get':function(){var _0x1f8c43=a9_0x54add8;return event_1[_0x1f8c43(0x152)];}});var ApiService_1=require(a9_0x54add8(0x11e));Object['defineProperty'](exports,a9_0x54add8(0x154),{'enumerable':!![],'get':function(){var _0x141b9d=a9_0x54add8;return ApiService_1[_0x141b9d(0x154)];}});var ExcelService_1=require('./service/ExcelService');Object['defineProperty'](exports,'ExcelService',{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x54add8(0x13b));Object[a9_0x54add8(0x132)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x1c6819=a9_0x54add8;return validator_1[_0x1c6819(0x13a)];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x126),{'enumerable':!![],'get':function(){var _0x14fde0=a9_0x54add8;return validator_1[_0x14fde0(0x126)];}});var configuration_1=require(a9_0x54add8(0x130));function a9_0x11b4(_0x4eea67,_0x155c97){var _0x4b8dbc=a9_0x28d4();return a9_0x11b4=function(_0x2a029e,_0x44a513){_0x2a029e=_0x2a029e-0x114;var _0x28d463=_0x4b8dbc[_0x2a029e];return _0x28d463;},a9_0x11b4(_0x4eea67,_0x155c97);}Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x123),{'enumerable':!![],'get':function(){var _0x465709=a9_0x54add8;return configuration_1[_0x465709(0x118)];}});var core_1=require(a9_0x54add8(0x129));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x13c),{'enumerable':!![],'get':function(){var _0x5ba71b=a9_0x54add8;return core_1[_0x5ba71b(0x13c)];}}),Object['defineProperty'](exports,a9_0x54add8(0x11b),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x11d),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x54add8(0x132)](exports,'Body',{'enumerable':!![],'get':function(){var _0x492e90=a9_0x54add8;return core_1[_0x492e90(0x116)];}}),Object['defineProperty'](exports,'Param',{'enumerable':!![],'get':function(){var _0x47bf79=a9_0x54add8;return core_1[_0x47bf79(0x14a)];}}),Object[a9_0x54add8(0x132)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x14d),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x139),{'enumerable':!![],'get':function(){var _0x1a7e5e=a9_0x54add8;return core_1[_0x1a7e5e(0x139)];}});var core_2=require(a9_0x54add8(0x129));Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x11f),{'enumerable':!![],'get':function(){var _0x4841aa=a9_0x54add8;return core_2[_0x4841aa(0x11f)];}}),Object[a9_0x54add8(0x132)](exports,'Config',{'enumerable':!![],'get':function(){var _0x3556a6=a9_0x54add8;return core_2[_0x3556a6(0x145)];}}),Object['defineProperty'](exports,a9_0x54add8(0x133),{'enumerable':!![],'get':function(){var _0x41278e=a9_0x54add8;return core_2[_0x41278e(0x133)];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x125),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x144),{'enumerable':!![],'get':function(){var _0x19fda7=a9_0x54add8;return core_2[_0x19fda7(0x144)];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x131),{'enumerable':!![],'get':function(){var _0xb24a69=a9_0x54add8;return core_2[_0xb24a69(0x131)];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x120),{'enumerable':!![],'get':function(){var _0xa2d304=a9_0x54add8;return core_2[_0xa2d304(0x120)];}}),Object[a9_0x54add8(0x132)](exports,a9_0x54add8(0x150),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x54add8(0x13f)]=getAppsConfig_1[a9_0x54add8(0x13f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x461c11=a10_0x43f2;(function(_0x6103be,_0x55e33a){var _0x19b373=a10_0x43f2,_0x146656=_0x6103be();while(!![]){try{var _0x21a88b=parseInt(_0x19b373(0xd9))/0x1+parseInt(_0x19b373(0xd8))/0x2+parseInt(_0x19b373(0xb2))/0x3+parseInt(_0x19b373(0xe6))/0x4*(parseInt(_0x19b373(0xbb))/0x5)+parseInt(_0x19b373(0xa9))/0x6+-parseInt(_0x19b373(0xc1))/0x7+-parseInt(_0x19b373(0xb4))/0x8;if(_0x21a88b===_0x55e33a)break;else _0x146656['push'](_0x146656['shift']());}catch(_0x579b23){_0x146656['push'](_0x146656['shift']());}}}(a10_0x4602,0xece43));var a10_0x480d2b=(function(){var _0xf71430=!![];return function(_0x4056b3,_0x19a957){var _0x540767=_0xf71430?function(){if(_0x19a957){var _0x15a97d=_0x19a957['apply'](_0x4056b3,arguments);return _0x19a957=null,_0x15a97d;}}:function(){};return _0xf71430=![],_0x540767;};}()),a10_0xc19497=a10_0x480d2b(this,function(){var _0x56dc09=a10_0x43f2;return a10_0xc19497['toString']()[_0x56dc09(0xc7)]('(((.+)+)+)+$')[_0x56dc09(0xcd)]()[_0x56dc09(0xc3)](a10_0xc19497)[_0x56dc09(0xc7)]('(((.+)+)+)+$');});a10_0xc19497();function a10_0x43f2(_0x4e8652,_0x11e7e2){var _0x3709f0=a10_0x4602();return a10_0x43f2=function(_0xc19497,_0x480d2b){_0xc19497=_0xc19497-0xa9;var _0x4602de=_0x3709f0[_0xc19497];return _0x4602de;},a10_0x43f2(_0x4e8652,_0x11e7e2);}'use strict';var __decorate=this&&this['__decorate']||function(_0x71ed44,_0x32fa11,_0x1b65bd,_0x1e0fad){var _0x3bff49=a10_0x43f2,_0x6708a=arguments[_0x3bff49(0xe0)],_0x1e1eb5=_0x6708a<0x3?_0x32fa11:_0x1e0fad===null?_0x1e0fad=Object[_0x3bff49(0xd5)](_0x32fa11,_0x1b65bd):_0x1e0fad,_0x517f9c;if(typeof Reflect===_0x3bff49(0xdd)&&typeof Reflect[_0x3bff49(0xe3)]===_0x3bff49(0xba))_0x1e1eb5=Reflect['decorate'](_0x71ed44,_0x32fa11,_0x1b65bd,_0x1e0fad);else{for(var _0x469ed9=_0x71ed44[_0x3bff49(0xe0)]-0x1;_0x469ed9>=0x0;_0x469ed9--)if(_0x517f9c=_0x71ed44[_0x469ed9])_0x1e1eb5=(_0x6708a<0x3?_0x517f9c(_0x1e1eb5):_0x6708a>0x3?_0x517f9c(_0x32fa11,_0x1b65bd,_0x1e1eb5):_0x517f9c(_0x32fa11,_0x1b65bd))||_0x1e1eb5;}return _0x6708a>0x3&&_0x1e1eb5&&Object[_0x3bff49(0xb9)](_0x32fa11,_0x1b65bd,_0x1e1eb5),_0x1e1eb5;},__metadata=this&&this[a10_0x461c11(0xae)]||function(_0x308d52,_0x2dfa58){var _0x46e4c8=a10_0x461c11;if(typeof Reflect===_0x46e4c8(0xdd)&&typeof Reflect[_0x46e4c8(0xe4)]===_0x46e4c8(0xba))return Reflect['metadata'](_0x308d52,_0x2dfa58);};Object[a10_0x461c11(0xb9)](exports,a10_0x461c11(0xca),{'value':!![]}),exports[a10_0x461c11(0xb8)]=void 0x0;const crypto_js_1=require(a10_0x461c11(0xda)),core_1=require(a10_0x461c11(0xdc)),ApiError_1=require(a10_0x461c11(0xbe));function a10_0x4602(){var _0x2e7153=['token','length','now','TIMEOUT_LOGINTIME','decorate','metadata','ScopeEnum','4vaXhlI','config','5780382cHJYXe','map','fromEntries','Provide','logintimeout','__metadata','device','devices','getcheck','2172177KFimmf','secret','33771224avvtRy','验证失败','abs','undefined','ApiService','defineProperty','function','6172715HsrkgP','Config','请求超时,请重试或改善网络环境','../exception/ApiError','timeout','join','6325718wkkngg','Scope','constructor','signature','design:type','prototype','search','logintime','getsign','__esModule','HEADERS_LACK','ApiError','toString','MD5','checkcode','entries','Singleton','HEADERS_DEVICE','HEADERS_SIGNATURE','push','getOwnPropertyDescriptor','toLowerCase','TIMEOUT','3564246WxNDrK','1391262YfkxmY','crypto-js','password','@midwayjs/core','object','requesttime'];a10_0x4602=function(){return _0x2e7153;};return a10_0x4602();}let ApiService=exports[a10_0x461c11(0xb8)]=class ApiService{['password'](_0x6c3a17){var _0x14e5b7=a10_0x461c11,_0x578731;return _0x6c3a17?(0x0,crypto_js_1[_0x14e5b7(0xce)])(''+_0x6c3a17+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x14e5b7(0xce)])(''+_0x6c3a17)[_0x14e5b7(0xcd)]()+(''+((_0x578731=this[_0x14e5b7(0xe7)])===null||_0x578731===void 0x0?void 0x0:_0x578731[_0x14e5b7(0xdb)])))[_0x14e5b7(0xcd)]())[_0x14e5b7(0xcd)]():'';}[a10_0x461c11(0xb1)](_0x288f5e,_0x49d8fa,_0x5655c8=Date['now']()){var _0x3fa2bd=a10_0x461c11;return{'Token':_0x288f5e,'Logintime':_0x5655c8,'Checkcode':this[_0x3fa2bd(0xcf)](_0x288f5e,_0x49d8fa,_0x5655c8)};}[a10_0x461c11(0xc9)](_0x1c429a={}){var _0x2bdad4=a10_0x461c11,_0x592448,_0x337381;const _0x191e10=[],_0xbe94ae=Object[_0x2bdad4(0xab)](Object[_0x2bdad4(0xd0)](_0x1c429a)[_0x2bdad4(0xaa)](_0x5b7d20=>[_0x5b7d20[0x0][_0x2bdad4(0xd6)](),_0x5b7d20[0x1]]));for(let _0x1abc67 of['device','requesttime',_0x2bdad4(0xdf),'logintime',_0x2bdad4(0xcf)]){if(typeof _0xbe94ae[_0x1abc67]==_0x2bdad4(0xb7))throw new AnnError(ApiError_1[_0x2bdad4(0xcc)][_0x2bdad4(0xcb)],{'message':'验证失败'});_0x191e10[_0x2bdad4(0xd4)](_0x1abc67+'='+_0xbe94ae[_0x1abc67]);}_0xbe94ae[_0x2bdad4(0xde)]&&((_0x592448=_0xbe94ae[_0x2bdad4(0xde)])===null||_0x592448===void 0x0?void 0x0:_0x592448[_0x2bdad4(0xe0)])==0xa&&(_0xbe94ae[_0x2bdad4(0xde)]=_0xbe94ae[_0x2bdad4(0xde)]*0x3e8);if(this[_0x2bdad4(0xe7)][_0x2bdad4(0xbf)]&&Date[_0x2bdad4(0xe1)]()-Math[_0x2bdad4(0xb6)](_0xbe94ae[_0x2bdad4(0xde)])>this['config'][_0x2bdad4(0xbf)])throw new AnnError(ApiError_1[_0x2bdad4(0xcc)][_0x2bdad4(0xd7)],{'message':_0x2bdad4(0xbd),'requesttime':_0xbe94ae['requesttime'],'timestamp':Date['now']()});if((((_0x337381=this['config']['devices'][_0xbe94ae[_0x2bdad4(0xaf)]])===null||_0x337381===void 0x0?void 0x0:_0x337381[_0x2bdad4(0xad)])||0x0)>0x0&&Date['now']()-Math['abs'](_0xbe94ae[_0x2bdad4(0xc8)])>this[_0x2bdad4(0xe7)][_0x2bdad4(0xb0)][_0xbe94ae[_0x2bdad4(0xaf)]][_0x2bdad4(0xad)])throw new AnnError(ApiError_1['ApiError'][_0x2bdad4(0xe2)]);if(!this[_0x2bdad4(0xe7)][_0x2bdad4(0xb0)][_0xbe94ae[_0x2bdad4(0xaf)]]||!this[_0x2bdad4(0xe7)][_0x2bdad4(0xb0)][_0xbe94ae[_0x2bdad4(0xaf)]][_0x2bdad4(0xb3)]||!this[_0x2bdad4(0xe7)][_0x2bdad4(0xb0)][_0xbe94ae['device']][_0x2bdad4(0xcf)])throw new AnnError(ApiError_1[_0x2bdad4(0xcc)][_0x2bdad4(0xd2)]);if(_0xbe94ae[_0x2bdad4(0xdf)]&&_0xbe94ae[_0x2bdad4(0xcf)]!=this[_0x2bdad4(0xcf)](_0xbe94ae[_0x2bdad4(0xdf)],_0xbe94ae[_0x2bdad4(0xaf)],_0xbe94ae[_0x2bdad4(0xc8)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0x191e10[_0x2bdad4(0xd4)]('secret='+this[_0x2bdad4(0xe7)][_0x2bdad4(0xb0)][_0xbe94ae[_0x2bdad4(0xaf)]][_0x2bdad4(0xb3)]),(0x0,crypto_js_1[_0x2bdad4(0xce)])(_0x191e10['sort']()[_0x2bdad4(0xc0)](''))[_0x2bdad4(0xcd)]();}[a10_0x461c11(0xcf)](_0x210dbe,_0x2d960e,_0x298d69=Date[a10_0x461c11(0xe1)]()){var _0x46320f=a10_0x461c11,_0x4e56c6,_0x1197f9,_0x247127;if(!((_0x4e56c6=this['config'])===null||_0x4e56c6===void 0x0?void 0x0:_0x4e56c6['devices'][_0x2d960e])||!((_0x247127=(_0x1197f9=this[_0x46320f(0xe7)])===null||_0x1197f9===void 0x0?void 0x0:_0x1197f9['devices'][_0x2d960e])===null||_0x247127===void 0x0?void 0x0:_0x247127[_0x46320f(0xcf)]))throw new AnnError(ApiError_1[_0x46320f(0xcc)][_0x46320f(0xd2)]);return(0x0,crypto_js_1['MD5'])(''+_0x210dbe+(0x0,crypto_js_1['MD5'])(''+_0x298d69+(''+this[_0x46320f(0xe7)][_0x46320f(0xb0)][_0x2d960e]['checkcode']))['toString']())[_0x46320f(0xcd)]();}['checksign'](_0x1bd447={}){var _0x1a3cbd=a10_0x461c11;const _0x2d8341=Object['fromEntries'](Object[_0x1a3cbd(0xd0)](_0x1bd447)['map'](_0x4896d9=>[_0x4896d9[0x0]['toLowerCase'](),_0x4896d9[0x1]]));if(!(_0x2d8341===null||_0x2d8341===void 0x0?void 0x0:_0x2d8341[_0x1a3cbd(0xc4)]))throw new AnnError(ApiError_1[_0x1a3cbd(0xcc)][_0x1a3cbd(0xcb)],{'message':'验证失败'});if((_0x2d8341===null||_0x2d8341===void 0x0?void 0x0:_0x2d8341[_0x1a3cbd(0xc4)])!=this[_0x1a3cbd(0xc9)](_0x2d8341))throw new AnnError(ApiError_1[_0x1a3cbd(0xcc)][_0x1a3cbd(0xd3)],{'message':_0x1a3cbd(0xb5)});return!![];}};__decorate([(0x0,core_1[a10_0x461c11(0xbc)])('anncicapi'),__metadata(a10_0x461c11(0xc5),Object)],ApiService[a10_0x461c11(0xc6)],'config',void 0x0),exports[a10_0x461c11(0xb8)]=ApiService=__decorate([(0x0,core_1[a10_0x461c11(0xac)])(),(0x0,core_1[a10_0x461c11(0xc2)])(core_1[a10_0x461c11(0xe5)][a10_0x461c11(0xd1)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x323781=a11_0x228c;function a11_0xbbb7(){const _0x5b658d=['Scope','set','isDevelopmentEnvironment','design:returntype','/apiteststatic/','40PGxdRp','109148LFUzeM','__apiList__','17614881saPGDn','@midwayjs/core','object','prototype','anncicapi','3550428rQMDDT','content-type','3EAmEdh','apitest','__param','../../public/index.html','apiteststatic','18067JZdmHR','path','1478284aKJOHs','Param','.css','existsSync','push','../../public/','3283925KRabzO','/apiteststatic/*','summary','apitesthtml','Request','route','url','toString','length','devices','module','function','decorate','constructor','Get','filepath','getRoutes','695280jrtzUV','substring','replace','text/css;\x20charset=utf-8','routes','method','__devices__','ctx','../helper/getRoutes','application/javascript;\x20charset=utf-8','design:paramtypes','request','Inject','cache-control','extname','defineProperty','config','Environment','public,\x20max-age=604800','utf-8','/apitest','apply','search','readFileSync','description','prefix','/apitest-:module','.js','join','Provide','Config','design:type','__esModule','ApitestService','apitestmodule','ScopeEnum','apidoc','stringify','ApitestStaticController'];a11_0xbbb7=function(){return _0x5b658d;};return a11_0xbbb7();}(function(_0x389328,_0x1f954a){const _0x23a2d1=a11_0x228c,_0x296728=_0x389328();while(!![]){try{const _0x1c6e4a=-parseInt(_0x23a2d1(0x212))/0x1+parseInt(_0x23a2d1(0x1fb))/0x2*(-parseInt(_0x23a2d1(0x1f4))/0x3)+-parseInt(_0x23a2d1(0x23f))/0x4+-parseInt(_0x23a2d1(0x201))/0x5+parseInt(_0x23a2d1(0x1f2))/0x6+-parseInt(_0x23a2d1(0x1f9))/0x7*(-parseInt(_0x23a2d1(0x23e))/0x8)+parseInt(_0x23a2d1(0x241))/0x9;if(_0x1c6e4a===_0x1f954a)break;else _0x296728['push'](_0x296728['shift']());}catch(_0xbdb157){_0x296728['push'](_0x296728['shift']());}}}(a11_0xbbb7,0x6c3de));const a11_0x5f219e=(function(){let _0x453ebf=!![];return function(_0x2ea935,_0x5b65a0){const _0x1e8198=_0x453ebf?function(){const _0x3dc38d=a11_0x228c;if(_0x5b65a0){const _0x2de501=_0x5b65a0[_0x3dc38d(0x227)](_0x2ea935,arguments);return _0x5b65a0=null,_0x2de501;}}:function(){};return _0x453ebf=![],_0x1e8198;};}()),a11_0x1cd8d3=a11_0x5f219e(this,function(){const _0x46ac15=a11_0x228c;return a11_0x1cd8d3['toString']()[_0x46ac15(0x228)]('(((.+)+)+)+$')[_0x46ac15(0x208)]()[_0x46ac15(0x20e)](a11_0x1cd8d3)['search']('(((.+)+)+)+$');});function a11_0x228c(_0x5af22d,_0xf1202a){const _0x359c2d=a11_0xbbb7();return a11_0x228c=function(_0x1cd8d3,_0x5f219e){_0x1cd8d3=_0x1cd8d3-0x1f2;let _0xbbb7a6=_0x359c2d[_0x1cd8d3];return _0xbbb7a6;},a11_0x228c(_0x5af22d,_0xf1202a);}a11_0x1cd8d3();'use strict';var __decorate=this&&this['__decorate']||function(_0x7a397e,_0x230ef0,_0x1ab26a,_0x148cae){const _0x1d14a4=a11_0x228c;var _0x2143a7=arguments[_0x1d14a4(0x209)],_0x4b3e2a=_0x2143a7<0x3?_0x230ef0:_0x148cae===null?_0x148cae=Object['getOwnPropertyDescriptor'](_0x230ef0,_0x1ab26a):_0x148cae,_0x13caad;if(typeof Reflect===_0x1d14a4(0x243)&&typeof Reflect[_0x1d14a4(0x20d)]===_0x1d14a4(0x20c))_0x4b3e2a=Reflect[_0x1d14a4(0x20d)](_0x7a397e,_0x230ef0,_0x1ab26a,_0x148cae);else{for(var _0x5a644d=_0x7a397e[_0x1d14a4(0x209)]-0x1;_0x5a644d>=0x0;_0x5a644d--)if(_0x13caad=_0x7a397e[_0x5a644d])_0x4b3e2a=(_0x2143a7<0x3?_0x13caad(_0x4b3e2a):_0x2143a7>0x3?_0x13caad(_0x230ef0,_0x1ab26a,_0x4b3e2a):_0x13caad(_0x230ef0,_0x1ab26a))||_0x4b3e2a;}return _0x2143a7>0x3&&_0x4b3e2a&&Object[_0x1d14a4(0x221)](_0x230ef0,_0x1ab26a,_0x4b3e2a),_0x4b3e2a;},__metadata=this&&this['__metadata']||function(_0x2d84d9,_0x1dfa1f){const _0x352059=a11_0x228c;if(typeof Reflect===_0x352059(0x243)&&typeof Reflect['metadata']===_0x352059(0x20c))return Reflect['metadata'](_0x2d84d9,_0x1dfa1f);},__param=this&&this[a11_0x323781(0x1f6)]||function(_0x216527,_0x360130){return function(_0x213d22,_0x5b79d1){_0x360130(_0x213d22,_0x5b79d1,_0x216527);};};Object[a11_0x323781(0x221)](exports,a11_0x323781(0x232),{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;const path_1=require(a11_0x323781(0x1fa)),fs_1=require('fs'),core_1=require(a11_0x323781(0x242)),core_2=require(a11_0x323781(0x242)),core_3=require('@midwayjs/core'),getRoutes_1=require(a11_0x323781(0x21a));let ApitestService=exports['ApitestService']=class ApitestService{async[a11_0x323781(0x236)](_0x5bb3b9){const _0x54d1a6=a11_0x323781,_0x2b0e14=(0x0,getRoutes_1[_0x54d1a6(0x211)])(_0x5bb3b9),_0x399c8d=[];for(let _0x36460d in _0x2b0e14){for(let _0x32ca2e in _0x2b0e14[_0x36460d][_0x54d1a6(0x216)]){let _0x11c648=_0x2b0e14[_0x36460d]['routes'][_0x32ca2e],_0x585a85=[];for(let _0x45d9b8 in _0x11c648[_0x54d1a6(0x21d)]){_0x585a85[_0x54d1a6(0x1ff)](_0x11c648[_0x54d1a6(0x21d)][_0x45d9b8]);}_0x399c8d['push']({'title':_0x2b0e14[_0x36460d][_0x54d1a6(0x203)]+':'+_0x11c648[_0x54d1a6(0x203)],'prefix':_0x2b0e14[_0x36460d][_0x54d1a6(0x22b)],'router':_0x11c648[_0x54d1a6(0x206)],'method':_0x11c648[_0x54d1a6(0x217)],'describe':_0x11c648[_0x54d1a6(0x22a)]||'','filepath':_0x2b0e14[_0x36460d][_0x54d1a6(0x210)]||'','request':_0x585a85});}}const _0xfc87cd=(0x0,path_1[_0x54d1a6(0x22e)])(__dirname,_0x54d1a6(0x1f7));return(0x0,fs_1[_0x54d1a6(0x229)])(_0xfc87cd,{'encoding':'utf-8'})[_0x54d1a6(0x214)](/__res__/g,_0x54d1a6(0x23d))[_0x54d1a6(0x214)](_0x54d1a6(0x240),JSON['stringify'](_0x399c8d))[_0x54d1a6(0x214)](_0x54d1a6(0x218),JSON[_0x54d1a6(0x237)](this[_0x54d1a6(0x222)][_0x54d1a6(0x20a)]));}};__decorate([(0x0,core_3[a11_0x323781(0x230)])(a11_0x323781(0x245)),__metadata('design:type',Object)],ApitestService[a11_0x323781(0x244)],a11_0x323781(0x222),void 0x0),exports[a11_0x323781(0x233)]=ApitestService=__decorate([(0x0,core_2[a11_0x323781(0x22f)])(a11_0x323781(0x1f5)),(0x0,core_3[a11_0x323781(0x239)])(core_3[a11_0x323781(0x235)]['Singleton'])],ApitestService);let ApitestStaticController=exports[a11_0x323781(0x238)]=class ApitestStaticController{async['apitesthtml'](){const _0x3a218a=a11_0x323781;if(this[_0x3a218a(0x1f5)]){const _0x868f25={'module':![]};return this[_0x3a218a(0x223)]['isDevelopmentEnvironment']()&&(_0x868f25['filepath']=!![]),await this['ApitestService'][_0x3a218a(0x236)](_0x868f25);}return'';}async[a11_0x323781(0x234)](_0x4aebc0){const _0x121571=a11_0x323781;if(this[_0x121571(0x1f5)]){const _0xad09f6={'module':_0x4aebc0};return this[_0x121571(0x223)][_0x121571(0x23b)]()&&(_0xad09f6['filepath']=!![]),await this[_0x121571(0x233)][_0x121571(0x236)](_0xad09f6);}return'';}async['apiteststatic'](){const _0x3fd3f2=a11_0x323781;if((0x0,path_1[_0x3fd3f2(0x220)])(this[_0x3fd3f2(0x219)][_0x3fd3f2(0x21d)][_0x3fd3f2(0x207)])){var _0x45e044=(0x0,path_1[_0x3fd3f2(0x22e)])(__dirname,_0x3fd3f2(0x200)+this[_0x3fd3f2(0x219)][_0x3fd3f2(0x21d)]['url']['replace']('/apiteststatic/','/'));if(_0x45e044[_0x3fd3f2(0x213)](_0x45e044['length']-0xb)!='/index.html'){this[_0x3fd3f2(0x219)][_0x3fd3f2(0x23a)](_0x3fd3f2(0x21f),_0x3fd3f2(0x224));if((0x0,path_1[_0x3fd3f2(0x220)])(this[_0x3fd3f2(0x219)][_0x3fd3f2(0x21d)]['url'])==_0x3fd3f2(0x22d))this[_0x3fd3f2(0x219)][_0x3fd3f2(0x23a)](_0x3fd3f2(0x1f3),_0x3fd3f2(0x21b));else(0x0,path_1['extname'])(this[_0x3fd3f2(0x219)][_0x3fd3f2(0x21d)][_0x3fd3f2(0x207)])==_0x3fd3f2(0x1fd)&&this[_0x3fd3f2(0x219)][_0x3fd3f2(0x23a)](_0x3fd3f2(0x1f3),_0x3fd3f2(0x215));return(0x0,fs_1[_0x3fd3f2(0x1fe)])(_0x45e044)&&(0x0,fs_1['readFileSync'])(_0x45e044,{'encoding':_0x3fd3f2(0x225)});}}return'';}};__decorate([(0x0,core_3[a11_0x323781(0x21e)])(),__metadata(a11_0x323781(0x231),Object)],ApitestStaticController[a11_0x323781(0x244)],a11_0x323781(0x219),void 0x0),__decorate([(0x0,core_3[a11_0x323781(0x21e)])(),__metadata(a11_0x323781(0x231),core_1['MidwayEnvironmentService'])],ApitestStaticController['prototype'],a11_0x323781(0x223),void 0x0),__decorate([(0x0,core_3[a11_0x323781(0x21e)])(),__metadata(a11_0x323781(0x231),ApitestService)],ApitestStaticController['prototype'],a11_0x323781(0x233),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x323781(0x1f5)),__metadata(a11_0x323781(0x231),Boolean)],ApitestStaticController[a11_0x323781(0x244)],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x323781(0x230)])(a11_0x323781(0x245)),__metadata(a11_0x323781(0x231),Object)],ApitestStaticController[a11_0x323781(0x244)],a11_0x323781(0x222),void 0x0),__decorate([(0x0,core_2[a11_0x323781(0x20f)])(a11_0x323781(0x226)),__metadata(a11_0x323781(0x231),Function),__metadata(a11_0x323781(0x21c),[]),__metadata(a11_0x323781(0x23c),Promise)],ApitestStaticController['prototype'],a11_0x323781(0x204),null),__decorate([(0x0,core_2[a11_0x323781(0x20f)])(a11_0x323781(0x22c)),__param(0x0,(0x0,core_2[a11_0x323781(0x1fc)])(a11_0x323781(0x20b))),__metadata('design:type',Function),__metadata(a11_0x323781(0x21c),[String]),__metadata(a11_0x323781(0x23c),Promise)],ApitestStaticController[a11_0x323781(0x244)],a11_0x323781(0x234),null),__decorate([(0x0,core_2['Get'])(a11_0x323781(0x202)),__metadata('design:type',Function),__metadata(a11_0x323781(0x21c),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x323781(0x244)],a11_0x323781(0x1f8),null),exports[a11_0x323781(0x238)]=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a11_0x323781(0x205)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0xa4f858=a12_0x1260;(function(_0x517249,_0x153c41){const _0x22e3d4=a12_0x1260,_0x22d104=_0x517249();while(!![]){try{const _0x55d9b7=parseInt(_0x22e3d4(0x17e))/0x1*(-parseInt(_0x22e3d4(0x168))/0x2)+-parseInt(_0x22e3d4(0x167))/0x3+parseInt(_0x22e3d4(0x186))/0x4*(parseInt(_0x22e3d4(0x17a))/0x5)+parseInt(_0x22e3d4(0x170))/0x6+parseInt(_0x22e3d4(0x16f))/0x7+parseInt(_0x22e3d4(0x17c))/0x8+parseInt(_0x22e3d4(0x15d))/0x9;if(_0x55d9b7===_0x153c41)break;else _0x22d104['push'](_0x22d104['shift']());}catch(_0x59ef2a){_0x22d104['push'](_0x22d104['shift']());}}}(a12_0x2b0d,0x99cfd));const a12_0x5bb555=(function(){let _0x1ae94c=!![];return function(_0x397660,_0x253185){const _0x30495e=_0x1ae94c?function(){const _0x45d21e=a12_0x1260;if(_0x253185){const _0x5beab2=_0x253185[_0x45d21e(0x14a)](_0x397660,arguments);return _0x253185=null,_0x5beab2;}}:function(){};return _0x1ae94c=![],_0x30495e;};}()),a12_0x343732=a12_0x5bb555(this,function(){const _0x142fd0=a12_0x1260;return a12_0x343732['toString']()[_0x142fd0(0x14f)](_0x142fd0(0x16b))[_0x142fd0(0x176)]()[_0x142fd0(0x14d)](a12_0x343732)[_0x142fd0(0x14f)]('(((.+)+)+)+$');});a12_0x343732();function a12_0x2b0d(){const _0x42be09=['design:type','defineProperty','function','3868821iBYOUw','prototype','substring','Provide','format','getCell','xlsx','model','col','export','1080567JneHsH','2qBFfwt','header','YYYY/MM/DD','(((.+)+)+)+$','getAppDir','replace','random','1305003MVXXIN','5655252uscJne','exceljs','object','koa-send','__esModule','eachCell','toString','values','existsSync','Workbook','5ATcmqB','Api\x20Excel\x20Error:\x20','2469072vygqxE','decorate','943003RmcjVx','__metadata','columns','log','length','handler','cellCount','App','262924MRjdQj','getWorksheet','push','getOwnPropertyDescriptor','Singleton','get','keys','set','Scope','apply','startsWith','download','constructor','value','search','key','filter','metadata','readFile','worksheets','endsWith','rowCount','ExcelService','app','@midwayjs/core'];a12_0x2b0d=function(){return _0x42be09;};return a12_0x2b0d();}'use strict';function a12_0x1260(_0x222782,_0x56b5ab){const _0x2e2ad4=a12_0x2b0d();return a12_0x1260=function(_0x343732,_0x5bb555){_0x343732=_0x343732-0x14a;let _0x2b0d98=_0x2e2ad4[_0x343732];return _0x2b0d98;},a12_0x1260(_0x222782,_0x56b5ab);}var __decorate=this&&this['__decorate']||function(_0x57ddac,_0x1d20f3,_0x18db46,_0x59fce3){const _0x3bbfb2=a12_0x1260;var _0x1b0af1=arguments[_0x3bbfb2(0x182)],_0x587bda=_0x1b0af1<0x3?_0x1d20f3:_0x59fce3===null?_0x59fce3=Object[_0x3bbfb2(0x189)](_0x1d20f3,_0x18db46):_0x59fce3,_0x5c44ac;if(typeof Reflect===_0x3bbfb2(0x172)&&typeof Reflect[_0x3bbfb2(0x17d)]===_0x3bbfb2(0x15c))_0x587bda=Reflect[_0x3bbfb2(0x17d)](_0x57ddac,_0x1d20f3,_0x18db46,_0x59fce3);else{for(var _0x25f02e=_0x57ddac['length']-0x1;_0x25f02e>=0x0;_0x25f02e--)if(_0x5c44ac=_0x57ddac[_0x25f02e])_0x587bda=(_0x1b0af1<0x3?_0x5c44ac(_0x587bda):_0x1b0af1>0x3?_0x5c44ac(_0x1d20f3,_0x18db46,_0x587bda):_0x5c44ac(_0x1d20f3,_0x18db46))||_0x587bda;}return _0x1b0af1>0x3&&_0x587bda&&Object[_0x3bbfb2(0x15b)](_0x1d20f3,_0x18db46,_0x587bda),_0x587bda;},__metadata=this&&this[a12_0xa4f858(0x17f)]||function(_0x337554,_0x44b030){const _0xb66ed2=a12_0xa4f858;if(typeof Reflect===_0xb66ed2(0x172)&&typeof Reflect['metadata']===_0xb66ed2(0x15c))return Reflect[_0xb66ed2(0x152)](_0x337554,_0x44b030);};Object[a12_0xa4f858(0x15b)](exports,a12_0xa4f858(0x174),{'value':!![]}),exports[a12_0xa4f858(0x157)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0xa4f858(0x171)),koasend=require(a12_0xa4f858(0x173)),core_1=require(a12_0xa4f858(0x159));let ExcelService=exports['ExcelService']=class ExcelService{async['parse'](_0x3f0f57,_0x5ebb35,_0x2ca3d6=[0x0]){const _0x2215b0=a12_0xa4f858;var _0x5eeb41,_0x59ebc0;const _0x3b5327=new exceljs[(_0x2215b0(0x179))](),_0x597dd6=[];let _0x1bf669=_0x3f0f57['replace'](/(\\|\/)/g,'/')[_0x2215b0(0x16d)](/\/{2,}/g,'/');!(_0x1bf669===null||_0x1bf669===void 0x0?void 0x0:_0x1bf669[_0x2215b0(0x14b)]('/'))&&(_0x1bf669=this[_0x2215b0(0x158)][_0x2215b0(0x16c)]()+'/'+_0x1bf669);try{await _0x3b5327[_0x2215b0(0x163)][_0x2215b0(0x153)](_0x1bf669);}catch(_0x3a36c6){return console[_0x2215b0(0x181)](_0x2215b0(0x17b)+_0x1bf669+'\x20is\x20read\x20fail'),_0x597dd6;}for(const _0x4c8e82 of _0x2ca3d6){const _0x2f999c=lodash['isNumber'](_0x4c8e82)?((_0x5eeb41=_0x3b5327[_0x2215b0(0x154)])===null||_0x5eeb41===void 0x0?void 0x0:_0x5eeb41[_0x4c8e82])||undefined:_0x3b5327[_0x2215b0(0x187)](_0x4c8e82);if(_0x2f999c){var _0x564440=0x1;const _0x1c98f9=_0x2f999c['getRow'](0x1),_0x5f318e=await new Promise(_0xb42e01=>{const _0x4da062=_0x2215b0,_0x28f398={};_0x1c98f9[_0x4da062(0x175)]((_0x2345b7,_0x3de242)=>{const _0x26bb17=_0x4da062;for(const _0x30ea7c of _0x5ebb35){if(_0x2345b7[_0x26bb17(0x14e)]==_0x30ea7c[_0x26bb17(0x169)])_0x564440=0x2,_0x28f398[_0x30ea7c[_0x26bb17(0x150)]]={'header':_0x2345b7[_0x26bb17(0x165)],'handler':_0x30ea7c[_0x26bb17(0x183)]};else{if(!_0x28f398[_0x30ea7c[_0x26bb17(0x150)]])try{const _0x3388fa=_0x1c98f9&&_0x1c98f9[_0x26bb17(0x162)](_0x30ea7c['header']);_0x3388fa&&(_0x28f398[_0x30ea7c[_0x26bb17(0x150)]]={'header':_0x3388fa['col'],'handler':_0x30ea7c['handler']});}catch{}}}_0x1c98f9[_0x26bb17(0x184)]==_0x3de242&&_0xb42e01(_0x28f398);});});_0x43069e:for(const _0x12b74c of _0x2f999c['findRows'](_0x564440,_0x2f999c[_0x2215b0(0x156)])){if(typeof(_0x12b74c===null||_0x12b74c===void 0x0?void 0x0:_0x12b74c['getCell'])!=_0x2215b0(0x15c))continue _0x43069e;const _0x2796a8={};_0x1945a9:for(const _0x190202 in _0x5f318e){if(_0x5f318e[_0x190202][_0x2215b0(0x169)]){const _0x3ec433=_0x12b74c['getCell'](_0x5f318e[_0x190202]['header']);if(!_0x3ec433)continue _0x1945a9;try{_0x3ec433[_0x2215b0(0x176)]();}catch(_0x3cf7f9){_0x3ec433[_0x2215b0(0x176)]=()=>{var _0x1cc055;return''+(((_0x1cc055=_0x3ec433===null||_0x3ec433===void 0x0?void 0x0:_0x3ec433['model'])===null||_0x1cc055===void 0x0?void 0x0:_0x1cc055['value'])||'');};}typeof((_0x59ebc0=_0x5f318e[_0x190202])===null||_0x59ebc0===void 0x0?void 0x0:_0x59ebc0[_0x2215b0(0x183)])==_0x2215b0(0x15c)?_0x2796a8[_0x190202]=await _0x5f318e[_0x190202]['handler'](lodash[_0x2215b0(0x18d)]({},_0x190202,(_0x3ec433===null||_0x3ec433===void 0x0?void 0x0:_0x3ec433[_0x2215b0(0x176)]())||''),_0x3ec433[_0x2215b0(0x164)]):_0x2796a8[_0x190202]=(_0x3ec433===null||_0x3ec433===void 0x0?void 0x0:_0x3ec433['toString']())||'';}}Object[_0x2215b0(0x18c)](_0x2796a8)[_0x2215b0(0x182)]>0x0&&Object[_0x2215b0(0x177)](_0x2796a8)[_0x2215b0(0x151)](_0x398ff9=>_0x398ff9!='')[_0x2215b0(0x182)]>0x0&&_0x597dd6[_0x2215b0(0x188)](_0x2796a8);}}}return _0x597dd6;}async[a12_0xa4f858(0x166)](_0x5ef49f,_0x414a53,_0x44ea03,_0x5b8313){const _0x1e669=a12_0xa4f858;var _0x124f10,_0x23ec42;const _0x1942d8=new exceljs[(_0x1e669(0x179))](),_0x13c28e={},_0x529b90=[],_0x585f76=_0x1942d8['addWorksheet']('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x5f316b in _0x414a53){_0x13c28e[_0x414a53[_0x5f316b][_0x1e669(0x150)]]=_0x414a53[_0x5f316b]['header'],_0x529b90[_0x1e669(0x188)]({'header':_0x414a53[_0x5f316b][_0x1e669(0x169)],'key':(_0x124f10=_0x414a53[_0x5f316b])===null||_0x124f10===void 0x0?void 0x0:_0x124f10['key']['replace'](/\./g,'_')});}_0x585f76[_0x1e669(0x180)]=_0x529b90;for(const _0x53c0fa of _0x44ea03){const _0x1a2441={};for(const _0x14ad9a in _0x414a53){typeof((_0x23ec42=_0x414a53[_0x14ad9a])===null||_0x23ec42===void 0x0?void 0x0:_0x23ec42[_0x1e669(0x183)])==_0x1e669(0x15c)?_0x1a2441[_0x414a53[_0x14ad9a][_0x1e669(0x150)][_0x1e669(0x16d)](/\./g,'_')]=await _0x414a53[_0x14ad9a][_0x1e669(0x183)](_0x53c0fa):_0x1a2441[_0x414a53[_0x14ad9a][_0x1e669(0x150)][_0x1e669(0x16d)](/\./g,'_')]=lodash[_0x1e669(0x18b)](_0x53c0fa,_0x414a53[_0x14ad9a][_0x1e669(0x150)],'');}_0x585f76['addRow'](_0x1a2441);}let _0x31adf4='';const _0x49bd19=_0x5ef49f+'-'+lodash[_0x1e669(0x16e)](0x186a0,0xf423f)+'.xlsx';if(_0x5b8313&&_0x5b8313['startsWith']('/'))_0x31adf4=''+_0x5b8313;else _0x5b8313&&!_0x5b8313[_0x1e669(0x14b)]('/')&&!_0x5b8313[_0x1e669(0x14b)]('\x5c')?_0x31adf4=this['app']['getAppDir']()+'/'+_0x5b8313:_0x31adf4=this[_0x1e669(0x158)][_0x1e669(0x16c)]()+'/public/xlsx/'+dayjs()[_0x1e669(0x161)](_0x1e669(0x16a));return(_0x31adf4[_0x1e669(0x155)]('/')||_0x31adf4[_0x1e669(0x155)]('\x5c'))&&(_0x31adf4=_0x31adf4[_0x1e669(0x15f)](0x0,_0x31adf4['length']-0x1)),_0x31adf4=_0x31adf4[_0x1e669(0x16d)](/(\\|\/)/g,'/')[_0x1e669(0x16d)](/\/{2,}/g,'/'),!fs[_0x1e669(0x178)](_0x31adf4)&&fs['mkdirSync'](_0x31adf4,{'recursive':!![]}),await _0x1942d8[_0x1e669(0x163)]['writeFile']((_0x31adf4+'/'+_0x49bd19)[_0x1e669(0x16d)](/(\\|\/)/g,'/')[_0x1e669(0x16d)](/\/{2,}/g,'/')),{'filename':_0x49bd19,'filepath':(_0x31adf4['substring']((''+this['app'][_0x1e669(0x16c)]())['length'])+'/'+_0x49bd19)['replace'](/(\\|\/)/g,'/')[_0x1e669(0x16d)](/\/{2,}/g,'/')};}async[a12_0xa4f858(0x14c)](_0x26bf9a,_0x16c8b1){return await koasend(_0x26bf9a,''+_0x16c8b1);}};__decorate([(0x0,core_1[a12_0xa4f858(0x185)])(),__metadata(a12_0xa4f858(0x15a),Object)],ExcelService[a12_0xa4f858(0x15e)],a12_0xa4f858(0x158),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a12_0xa4f858(0x160)])(),(0x0,core_1[a12_0xa4f858(0x18e)])(core_1['ScopeEnum'][a12_0xa4f858(0x18a)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a13_0x48db93=a13_0x23b7;(function(_0x109b24,_0x4bc1bd){var _0x2479b9=a13_0x23b7,_0x8e7796=_0x109b24();while(!![]){try{var _0x1991c6=-parseInt(_0x2479b9(0x108))/0x1+-parseInt(_0x2479b9(0x117))/0x2*(parseInt(_0x2479b9(0x10b))/0x3)+-parseInt(_0x2479b9(0x10f))/0x4+parseInt(_0x2479b9(0x112))/0x5+-parseInt(_0x2479b9(0x109))/0x6+-parseInt(_0x2479b9(0x110))/0x7+parseInt(_0x2479b9(0x111))/0x8;if(_0x1991c6===_0x4bc1bd)break;else _0x8e7796['push'](_0x8e7796['shift']());}catch(_0x1ca1e5){_0x8e7796['push'](_0x8e7796['shift']());}}}(a13_0x1f77,0x88c07));function a13_0x1f77(){var _0x1f4171=['3966340jnOJFD','5756114JNnvVR','30421744RAlvOP','1667915jhSeyb','apply','search','ACTION_KEY','constructor','419242kQBKIW','toString','AppsConfigTmp','anncic-api:action','APPSCONFIG_KEY','ACTION_ROUTE_KEY','893153WtSQMW','2699304eNOUBf','(((.+)+)+)+$','6lOyPHB','__esModule','anncic-api:apps:config','anncic-api:action:route'];a13_0x1f77=function(){return _0x1f4171;};return a13_0x1f77();}var a13_0x20ff12=(function(){var _0xbbbb3d=!![];return function(_0xa4c2b2,_0x4d2add){var _0x46896b=_0xbbbb3d?function(){var _0x35371c=a13_0x23b7;if(_0x4d2add){var _0x502918=_0x4d2add[_0x35371c(0x113)](_0xa4c2b2,arguments);return _0x4d2add=null,_0x502918;}}:function(){};return _0xbbbb3d=![],_0x46896b;};}()),a13_0x1ace6c=a13_0x20ff12(this,function(){var _0x55f6fa=a13_0x23b7;return a13_0x1ace6c['toString']()['search'](_0x55f6fa(0x10a))[_0x55f6fa(0x103)]()[_0x55f6fa(0x116)](a13_0x1ace6c)[_0x55f6fa(0x114)](_0x55f6fa(0x10a));});a13_0x1ace6c();'use strict';Object['defineProperty'](exports,a13_0x48db93(0x10c),{'value':!![]}),exports[a13_0x48db93(0x104)]=exports[a13_0x48db93(0x106)]=exports[a13_0x48db93(0x107)]=exports[a13_0x48db93(0x115)]=void 0x0,exports[a13_0x48db93(0x115)]=a13_0x48db93(0x105),exports[a13_0x48db93(0x107)]=a13_0x48db93(0x10e),exports[a13_0x48db93(0x106)]=a13_0x48db93(0x10d);function a13_0x23b7(_0x3262a6,_0x2a8481){var _0x810927=a13_0x1f77();return a13_0x23b7=function(_0x1ace6c,_0x20ff12){_0x1ace6c=_0x1ace6c-0x103;var _0x1f772c=_0x810927[_0x1ace6c];return _0x1f772c;},a13_0x23b7(_0x3262a6,_0x2a8481);}class AppsConfigTmp{}exports[a13_0x48db93(0x104)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a14_0x4c4d(_0x23069b,_0x7c0bc6){var _0x51a737=a14_0xea11();return a14_0x4c4d=function(_0x8928a6,_0xfc5fda){_0x8928a6=_0x8928a6-0x113;var _0xea11d5=_0x51a737[_0x8928a6];return _0xea11d5;},a14_0x4c4d(_0x23069b,_0x7c0bc6);}var a14_0x4aaf28=a14_0x4c4d;(function(_0x5566b8,_0x29342a){var _0x12dead=a14_0x4c4d,_0xe3c8cf=_0x5566b8();while(!![]){try{var _0x1b81b9=-parseInt(_0x12dead(0x134))/0x1*(-parseInt(_0x12dead(0x121))/0x2)+parseInt(_0x12dead(0x12f))/0x3*(parseInt(_0x12dead(0x13c))/0x4)+parseInt(_0x12dead(0x123))/0x5*(parseInt(_0x12dead(0x12e))/0x6)+-parseInt(_0x12dead(0x122))/0x7+-parseInt(_0x12dead(0x11b))/0x8*(parseInt(_0x12dead(0x13a))/0x9)+parseInt(_0x12dead(0x113))/0xa+-parseInt(_0x12dead(0x120))/0xb;if(_0x1b81b9===_0x29342a)break;else _0xe3c8cf['push'](_0xe3c8cf['shift']());}catch(_0x3ff54b){_0xe3c8cf['push'](_0xe3c8cf['shift']());}}}(a14_0xea11,0x32ebe));var a14_0xfc5fda=(function(){var _0x7ac3f9=!![];return function(_0x2617eb,_0x1e8536){var _0x4d4e74=_0x7ac3f9?function(){var _0x41aa6d=a14_0x4c4d;if(_0x1e8536){var _0x20f166=_0x1e8536[_0x41aa6d(0x136)](_0x2617eb,arguments);return _0x1e8536=null,_0x20f166;}}:function(){};return _0x7ac3f9=![],_0x4d4e74;};}()),a14_0x8928a6=a14_0xfc5fda(this,function(){var _0x8a754c=a14_0x4c4d;return a14_0x8928a6['toString']()[_0x8a754c(0x138)](_0x8a754c(0x129))[_0x8a754c(0x127)]()[_0x8a754c(0x115)](a14_0x8928a6)[_0x8a754c(0x138)]('(((.+)+)+)+$');});a14_0x8928a6();function a14_0xea11(){var _0x38890e=['__decorate','(((.+)+)+)+$','_size','_page','Rule','min','175830adPgwc','6uxGHUP','PageDTO','metadata','getOwnPropertyDescriptor','_order','217547jpIwjA','integer','apply','design:type','search','function','9cLbrIA','prototype','499196nNopxt','544710xcPVKF','RuleType','constructor','length','1:是;0:否','defineProperty','trim','object','2129672NfiymV','排序方式','__esModule','@anncic-api/validator','number','2464022dLNqtH','2bvgrVQ','1426572SCdmSE','65KCHrwV','_isreverse','是否倒序','string','toString'];a14_0xea11=function(){return _0x38890e;};return a14_0xea11();}'use strict';var __decorate=this&&this[a14_0x4aaf28(0x128)]||function(_0x36aa46,_0x2cd436,_0x462654,_0x3f0e84){var _0x484fa1=a14_0x4aaf28,_0x4b8f8b=arguments[_0x484fa1(0x116)],_0x29b984=_0x4b8f8b<0x3?_0x2cd436:_0x3f0e84===null?_0x3f0e84=Object[_0x484fa1(0x132)](_0x2cd436,_0x462654):_0x3f0e84,_0x4b3363;if(typeof Reflect===_0x484fa1(0x11a)&&typeof Reflect['decorate']===_0x484fa1(0x139))_0x29b984=Reflect['decorate'](_0x36aa46,_0x2cd436,_0x462654,_0x3f0e84);else{for(var _0x4dc132=_0x36aa46[_0x484fa1(0x116)]-0x1;_0x4dc132>=0x0;_0x4dc132--)if(_0x4b3363=_0x36aa46[_0x4dc132])_0x29b984=(_0x4b8f8b<0x3?_0x4b3363(_0x29b984):_0x4b8f8b>0x3?_0x4b3363(_0x2cd436,_0x462654,_0x29b984):_0x4b3363(_0x2cd436,_0x462654))||_0x29b984;}return _0x4b8f8b>0x3&&_0x29b984&&Object[_0x484fa1(0x118)](_0x2cd436,_0x462654,_0x29b984),_0x29b984;},__metadata=this&&this['__metadata']||function(_0x20a87c,_0x432e88){var _0x358025=a14_0x4aaf28;if(typeof Reflect==='object'&&typeof Reflect[_0x358025(0x131)]===_0x358025(0x139))return Reflect['metadata'](_0x20a87c,_0x432e88);};Object[a14_0x4aaf28(0x118)](exports,a14_0x4aaf28(0x11d),{'value':!![]}),exports[a14_0x4aaf28(0x130)]=void 0x0;const validator_1=require(a14_0x4aaf28(0x11e));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0x4aaf28(0x12c)])('分页',validator_1[a14_0x4aaf28(0x114)]['number']()['integer']()[a14_0x4aaf28(0x12d)](0x1),'第一页为1,第二页为2'),__metadata('design:type',Number)],PageDTO[a14_0x4aaf28(0x13b)],a14_0x4aaf28(0x12b),void 0x0),__decorate([(0x0,validator_1[a14_0x4aaf28(0x12c)])('分页数量',validator_1['RuleType'][a14_0x4aaf28(0x11f)]()[a14_0x4aaf28(0x135)]()['min'](0x1)),__metadata(a14_0x4aaf28(0x137),Number)],PageDTO[a14_0x4aaf28(0x13b)],a14_0x4aaf28(0x12a),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x4aaf28(0x11c),validator_1[a14_0x4aaf28(0x114)][a14_0x4aaf28(0x126)]()[a14_0x4aaf28(0x119)]()),__metadata(a14_0x4aaf28(0x137),String)],PageDTO[a14_0x4aaf28(0x13b)],a14_0x4aaf28(0x133),void 0x0),__decorate([(0x0,validator_1[a14_0x4aaf28(0x12c)])(a14_0x4aaf28(0x125),validator_1[a14_0x4aaf28(0x114)][a14_0x4aaf28(0x11f)]()[a14_0x4aaf28(0x135)]()['valid'](0x0,0x1),a14_0x4aaf28(0x117)),__metadata(a14_0x4aaf28(0x137),Number)],PageDTO['prototype'],a14_0x4aaf28(0x124),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a15_0x430eaa=a15_0xf048;(function(_0x3dac1f,_0xc98097){var _0x568f0e=a15_0xf048,_0x1f5ba4=_0x3dac1f();while(!![]){try{var _0x138dc1=-parseInt(_0x568f0e(0x12f))/0x1+parseInt(_0x568f0e(0x125))/0x2+-parseInt(_0x568f0e(0x12b))/0x3+parseInt(_0x568f0e(0x12c))/0x4+parseInt(_0x568f0e(0x128))/0x5+parseInt(_0x568f0e(0x130))/0x6+-parseInt(_0x568f0e(0x126))/0x7*(parseInt(_0x568f0e(0x12d))/0x8);if(_0x138dc1===_0xc98097)break;else _0x1f5ba4['push'](_0x1f5ba4['shift']());}catch(_0xf84aae){_0x1f5ba4['push'](_0x1f5ba4['shift']());}}}(a15_0x95cf,0xe84e6));var a15_0x29a0b3=(function(){var _0x5612fe=!![];return function(_0x22a75c,_0x23a63a){var _0x2d05ae=_0x5612fe?function(){if(_0x23a63a){var _0x113584=_0x23a63a['apply'](_0x22a75c,arguments);return _0x23a63a=null,_0x113584;}}:function(){};return _0x5612fe=![],_0x2d05ae;};}()),a15_0x10946d=a15_0x29a0b3(this,function(){var _0x2b8546=a15_0xf048;return a15_0x10946d[_0x2b8546(0x124)]()[_0x2b8546(0x129)](_0x2b8546(0x12e))[_0x2b8546(0x124)]()['constructor'](a15_0x10946d)[_0x2b8546(0x129)](_0x2b8546(0x12e));});a15_0x10946d();'use strict';function a15_0xf048(_0x1c4603,_0x48b862){var _0x2f7121=a15_0x95cf();return a15_0xf048=function(_0x10946d,_0x29a0b3){_0x10946d=_0x10946d-0x124;var _0x95cf5b=_0x2f7121[_0x10946d];return _0x95cf5b;},a15_0xf048(_0x1c4603,_0x48b862);}function a15_0x95cf(){var _0x40fdd5=['2403124DYGXji','229088DxGCdP','(((.+)+)+)+$','428370VBjXQi','5559414qtWfie','toString','3157852mVpzbC','511jDHESP','INTERCEPT_KEY','8146205BuBUiG','search','anncic-api:intercept','3795579TfCNwd'];a15_0x95cf=function(){return _0x40fdd5;};return a15_0x95cf();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['InterceptTargetTmp']=exports[a15_0x430eaa(0x127)]=void 0x0,exports[a15_0x430eaa(0x127)]=a15_0x430eaa(0x12a);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.22",
|
|
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.22",
|
|
21
|
+
"@anncic-api/core": "^3.2.22",
|
|
22
|
+
"@anncic-api/event": "^3.2.22",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.22",
|
|
24
|
+
"@anncic-api/validator": "^3.2.22",
|
|
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.22",
|
|
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": "291489b895fd1a395f7d01bb59814e1001d900a5"
|
|
39
39
|
}
|