anncic-api 3.4.6 → 3.4.8
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.d.ts +5 -0
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.d.ts +38 -0
- package/dist/service/ExcelStream.js +1 -0
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a0_0x24fa(_0x587223,_0x367117){var _0x86eb3=a0_0x32e6();return a0_0x24fa=function(_0x2562d3,_0x3d6a52){_0x2562d3=_0x2562d3-0xb7;var _0x32e61a=_0x86eb3[_0x2562d3];return _0x32e61a;},a0_0x24fa(_0x587223,_0x367117);}function a0_0x32e6(){var _0x57bf63=['12694308WCpCGf','form','840SbkfQe','name','/runtime/.upload','5658DgEuQr','52524HNTBQQ','20mb','1048077rROHsw','constructor','defineProperty','text','toString','5179yYmWmy','(((.+)+)+)+$','zhiulanuiy7892387985hnoi','58bLPeUT','2779TyTjdx','default','4799424dmqCSb','1388640SJriUL','_token','search','8IbiBrT','dhauo1234420123gg3234901','__esModule','json'];a0_0x32e6=function(){return _0x57bf63;};return a0_0x32e6();}var a0_0x56dacb=a0_0x24fa;(function(_0x1c4e02,_0x8088ce){var _0x1e700e=a0_0x24fa,_0x4531d9=_0x1c4e02();while(!![]){try{var _0x4daf94=-parseInt(_0x1e700e(0xcd))/0x1*(-parseInt(_0x1e700e(0xd0))/0x2)+-parseInt(_0x1e700e(0xc8))/0x3*(parseInt(_0x1e700e(0xbc))/0x4)+parseInt(_0x1e700e(0xb9))/0x5+parseInt(_0x1e700e(0xc5))/0x6*(-parseInt(_0x1e700e(0xd1))/0x7)+-parseInt(_0x1e700e(0xb8))/0x8+parseInt(_0x1e700e(0xc6))/0x9*(parseInt(_0x1e700e(0xc2))/0xa)+parseInt(_0x1e700e(0xc0))/0xb;if(_0x4daf94===_0x8088ce)break;else _0x4531d9['push'](_0x4531d9['shift']());}catch(_0x458608){_0x4531d9['push'](_0x4531d9['shift']());}}}(a0_0x32e6,0x61732));var a0_0x3d6a52=(function(){var _0x55a6e7=!![];return function(_0x1f0800,_0x5f12fb){var _0x486f0c=_0x55a6e7?function(){if(_0x5f12fb){var _0x187996=_0x5f12fb['apply'](_0x1f0800,arguments);return _0x5f12fb=null,_0x187996;}}:function(){};return _0x55a6e7=![],_0x486f0c;};}()),a0_0x2562d3=a0_0x3d6a52(this,function(){var _0x2acc4c=a0_0x24fa;return a0_0x2562d3[_0x2acc4c(0xcc)]()[_0x2acc4c(0xbb)]('(((.+)+)+)+$')[_0x2acc4c(0xcc)]()[_0x2acc4c(0xc9)](a0_0x2562d3)['search'](_0x2acc4c(0xce));});a0_0x2562d3();'use strict';Object[a0_0x56dacb(0xca)](exports,a0_0x56dacb(0xbe),{'value':!![]}),exports[a0_0x56dacb(0xb7)]=_0x487d83=>{var _0x560d6f=a0_0x56dacb;return{'apitest':!![],'keys':_0x487d83[_0x560d6f(0xc3)],'anncicapi':{'requestKey':_0x560d6f(0xba),'password':_0x560d6f(0xcf),'devices':{'DEFAULT':{'secret':_0x560d6f(0xbd),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x560d6f(0xbf),_0x560d6f(0xc1),_0x560d6f(0xcb),'xml'],'formLimit':_0x560d6f(0xc7),'jsonLimit':_0x560d6f(0xc7),'textLimit':_0x560d6f(0xc7),'xmlLimit':_0x560d6f(0xc7),'enable':!![]},'upload':{'tmpdir':_0x487d83['appDir']+_0x560d6f(0xc4),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x48d24b=a1_0xeab8;(function(_0x443634,_0xc05fd3){var _0xc5de84=a1_0xeab8,_0x4a8fb2=_0x443634();while(!![]){try{var _0x285b4f=parseInt(_0xc5de84(0xe0))/0x1*(parseInt(_0xc5de84(0xd6))/0x2)+-parseInt(_0xc5de84(0xd1))/0x3*(-parseInt(_0xc5de84(0xd2))/0x4)+parseInt(_0xc5de84(0xd4))/0x5*(-parseInt(_0xc5de84(0xdc))/0x6)+-parseInt(_0xc5de84(0xce))/0x7*(-parseInt(_0xc5de84(0xe1))/0x8)+-parseInt(_0xc5de84(0xd7))/0x9+parseInt(_0xc5de84(0xd9))/0xa*(-parseInt(_0xc5de84(0xdb))/0xb)+parseInt(_0xc5de84(0xd0))/0xc*(-parseInt(_0xc5de84(0xda))/0xd);if(_0x285b4f===_0xc05fd3)break;else _0x4a8fb2['push'](_0x4a8fb2['shift']());}catch(_0x5531ad){_0x4a8fb2['push'](_0x4a8fb2['shift']());}}}(a1_0x27d0,0x28dc4));var a1_0x39a654=(function(){var _0x2c1cf1=!![];return function(_0x498315,_0x48cdd5){var _0x46621d=_0x2c1cf1?function(){var _0x33e0e1=a1_0xeab8;if(_0x48cdd5){var _0xd26a24=_0x48cdd5[_0x33e0e1(0xcf)](_0x498315,arguments);return _0x48cdd5=null,_0xd26a24;}}:function(){};return _0x2c1cf1=![],_0x46621d;};}()),a1_0x4e11c4=a1_0x39a654(this,function(){var _0x41b997=a1_0xeab8;return a1_0x4e11c4[_0x41b997(0xd5)]()[_0x41b997(0xde)](_0x41b997(0xd8))[_0x41b997(0xd5)]()[_0x41b997(0xd3)](a1_0x4e11c4)[_0x41b997(0xde)](_0x41b997(0xd8));});function a1_0xeab8(_0x27a74b,_0x39a35d){var _0x347e2e=a1_0x27d0();return a1_0xeab8=function(_0x4e11c4,_0x39a654){_0x4e11c4=_0x4e11c4-0xce;var _0x27d06a=_0x347e2e[_0x4e11c4];return _0x27d06a;},a1_0xeab8(_0x27a74b,_0x39a35d);}a1_0x4e11c4();function a1_0x27d0(){var _0x2a3d49=['search','__esModule','167711wGLidx','128344KXiqWw','119IhkwQg','apply','252mexzJe','181923HzCPlu','20XrdGVT','constructor','46945peKKXt','toString','2PpfcyX','430263iaFxAD','(((.+)+)+)+$','30230tBPGue','13312uHgrbc','649FpDpta','210CtGbFq','default'];a1_0x27d0=function(){return _0x2a3d49;};return a1_0x27d0();}'use strict';Object['defineProperty'](exports,a1_0x48d24b(0xdf),{'value':!![]}),exports[a1_0x48d24b(0xdd)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x19dab8=a2_0x2df6;(function(_0xd84058,_0x29c473){const _0x4f911e=a2_0x2df6,_0x4425b8=_0xd84058();while(!![]){try{const _0x252c87=-parseInt(_0x4f911e(0x113))/0x1*(parseInt(_0x4f911e(0x17c))/0x2)+parseInt(_0x4f911e(0x135))/0x3+-parseInt(_0x4f911e(0x15c))/0x4+parseInt(_0x4f911e(0x12c))/0x5*(-parseInt(_0x4f911e(0x126))/0x6)+parseInt(_0x4f911e(0x15f))/0x7*(parseInt(_0x4f911e(0xed))/0x8)+parseInt(_0x4f911e(0x14a))/0x9*(-parseInt(_0x4f911e(0x152))/0xa)+-parseInt(_0x4f911e(0x119))/0xb*(-parseInt(_0x4f911e(0xf0))/0xc);if(_0x252c87===_0x29c473)break;else _0x4425b8['push'](_0x4425b8['shift']());}catch(_0x4759bb){_0x4425b8['push'](_0x4425b8['shift']());}}}(a2_0x371b,0x3302d));function a2_0x371b(){const _0xc5809d=['design:type','372760LOYORD','isArray','apimit','2393594wuEVZk','dir','ACTION_ROUTE_KEY','isDevelopmentEnvironment','split','substring','/apps/','startsWith','/apps','__decorate','APPSCONFIG_KEY','app','query','/runtime/apps-','function','文件不存在','@midwayjs/static-file','defineProperty','@midwayjs/cross-domain','https://','decorate','readdirSync','encrypted','.log','host','apply','@anncic-api/core','anncicapi','anncic-apihelper','81402juOYgM','koa-send','object','registerMethodHandler','default','get','8TpgHyt','headers','Types','300BuluGA','loggerService','getClassMetadata','Configuration','INTERCEPT_KEY','REQUEST_OBJ_CTX_KEY','dirs','bodyXml','__metadata','name','match','string','getAppDir','_UNKNOW_','module','mkdirSync','@anncic-api/event','input','includes','@anncic-api/validator','MidwayConfigService','isClass','AppsConfigTmp','isString','parse','_matchedRoute','./config/config.default','getAsync','MidwayLoggerService','toString','prototype','metadata','handlerActionRoute','requestKey','proceed','1tvrFMp','443','onReady','existsSync','__esModule','ApiService','233717eTCGgD','hanlderApplications','upload','addObject','statSync','midwayLogger','http','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','decorator','MidwayDecoratorService','@midwayjs/koa','context','InterceptTargetTmp','57786XVZlVC','MidwayApplicationManager','device','./service/ApiService','@anncic-api/cache','isDirectory','155VWoPbm','tmpdir','requestMethod','toLowerCase','CustomConfiguration','filterConfig','defineProperties','isNull','handler','407943rLoTuH','req','createLogger','config','requestContext','anncic-api','keys','koa','staticFile','getConfiguration','environment','key','application','devices','ApiError','getApplications','MidwayEnvironmentService','tagName','HEADERS_SIGNATURE','defaultsDeep','length','9HOIaCA','request','method','/runtime','App','ACTION_KEY','target','Anncic-api\x20static-file\x20:\x20mkdir\x20','3677050tFjxXz','clients','body','loggerConfig','intercept','getBaseDir','constructor','Inject','search'];a2_0x371b=function(){return _0xc5809d;};return a2_0x371b();}const a2_0x20dc8f=(function(){let _0x2c5a8f=!![];return function(_0x5069a8,_0x147a88){const _0x5703b8=_0x2c5a8f?function(){const _0x372649=a2_0x2df6;if(_0x147a88){const _0x35b62e=_0x147a88[_0x372649(0x178)](_0x5069a8,arguments);return _0x147a88=null,_0x35b62e;}}:function(){};return _0x2c5a8f=![],_0x5703b8;};}()),a2_0x40805c=a2_0x20dc8f(this,function(){const _0x2eca89=a2_0x2df6;return a2_0x40805c[_0x2eca89(0x10d)]()[_0x2eca89(0x15a)]('(((.+)+)+)+$')[_0x2eca89(0x10d)]()[_0x2eca89(0x158)](a2_0x40805c)[_0x2eca89(0x15a)]('(((.+)+)+)+$');});function a2_0x2df6(_0x233499,_0x44e8c8){const _0x1ab1d5=a2_0x371b();return a2_0x2df6=function(_0x40805c,_0x20dc8f){_0x40805c=_0x40805c-0xec;let _0x371b00=_0x1ab1d5[_0x40805c];return _0x371b00;},a2_0x2df6(_0x233499,_0x44e8c8);}a2_0x40805c();'use strict';var __decorate=this&&this[a2_0x19dab8(0x168)]||function(_0x3fd640,_0x527bff,_0x58c875,_0x263c45){const _0x198b87=a2_0x19dab8;var _0x260c2d=arguments[_0x198b87(0x149)],_0x1dbe36=_0x260c2d<0x3?_0x527bff:_0x263c45===null?_0x263c45=Object['getOwnPropertyDescriptor'](_0x527bff,_0x58c875):_0x263c45,_0x467a00;if(typeof Reflect===_0x198b87(0x17e)&&typeof Reflect[_0x198b87(0x173)]===_0x198b87(0x16d))_0x1dbe36=Reflect[_0x198b87(0x173)](_0x3fd640,_0x527bff,_0x58c875,_0x263c45);else{for(var _0x5bdc6c=_0x3fd640[_0x198b87(0x149)]-0x1;_0x5bdc6c>=0x0;_0x5bdc6c--)if(_0x467a00=_0x3fd640[_0x5bdc6c])_0x1dbe36=(_0x260c2d<0x3?_0x467a00(_0x1dbe36):_0x260c2d>0x3?_0x467a00(_0x527bff,_0x58c875,_0x1dbe36):_0x467a00(_0x527bff,_0x58c875))||_0x1dbe36;}return _0x260c2d>0x3&&_0x1dbe36&&Object['defineProperty'](_0x527bff,_0x58c875,_0x1dbe36),_0x1dbe36;},__metadata=this&&this[a2_0x19dab8(0xf8)]||function(_0x133459,_0x3438d3){const _0x3501b8=a2_0x19dab8;if(typeof Reflect===_0x3501b8(0x17e)&&typeof Reflect['metadata']===_0x3501b8(0x16d))return Reflect[_0x3501b8(0x10f)](_0x133459,_0x3438d3);};Object[a2_0x19dab8(0x170)](exports,a2_0x19dab8(0x117),{'value':!![]}),exports[a2_0x19dab8(0x130)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x19dab8(0x129)),intercept_1=require('./types/intercept'),action_1=require('./types/action'),fs=require('fs'),koasend=require(a2_0x19dab8(0x17d)),koa=require(a2_0x19dab8(0x123)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x19dab8(0x16f)),crossDomain=require(a2_0x19dab8(0x171)),ConfigDefault=require(a2_0x19dab8(0x10a)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x19dab8(0x179)),anncicCache=require(a2_0x19dab8(0x12a)),anncicEvent=require(a2_0x19dab8(0x100)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x19dab8(0x103)),anncicHelper=require(a2_0x19dab8(0x17b));let CustomConfiguration=class CustomConfiguration{async[a2_0x19dab8(0x115)](){const _0x2ed952=a2_0x19dab8;await this[_0x2ed952(0x131)](),await this[_0x2ed952(0x155)](),await this[_0x2ed952(0x110)](),await this[_0x2ed952(0x11a)]();}async[a2_0x19dab8(0x110)](){const _0x261556=a2_0x19dab8,_0x191779=this[_0x261556(0x138)][_0x261556(0x13e)](),_0x335d37=(0x0,core_1['getClassMetadata'])(intercept_1[_0x261556(0xf4)],intercept_1[_0x261556(0x125)])||{};this[_0x261556(0x121)][_0x261556(0x17f)](action_1[_0x261556(0x161)],_0x16d3b6=>{const _0x1aad82=_0x261556;var _0x4e7000;const _0x401ee7=(0x0,core_1[_0x1aad82(0xf2)])(action_1[_0x1aad82(0x169)],action_1[_0x1aad82(0x106)])||{},_0x57e8b7=_0x16d3b6[_0x1aad82(0x10f)],_0x445185=(0x0,core_1[_0x1aad82(0xf2)])(action_1[_0x1aad82(0x14f)],_0x16d3b6['target'])||{},_0x294e9f=((_0x4e7000=_0x445185===null||_0x445185===void 0x0?void 0x0:_0x445185['filepath'])===null||_0x4e7000===void 0x0?void 0x0:_0x4e7000[_0x1aad82(0x164)](0x0,_0x445185['filepath']['lastIndexOf']('.')))||'',_0x2b1c16=(_0x445185===null||_0x445185===void 0x0?void 0x0:_0x445185[_0x1aad82(0xfe)])?(_0x401ee7===null||_0x401ee7===void 0x0?void 0x0:_0x401ee7[_0x445185[_0x1aad82(0xfe)]])||{}:{};return{'before':async _0x515c8f=>{const _0x35002a=_0x1aad82;var _0x3768bb,_0x29889e,_0x594111,_0x4f732b;const _0xf30ec8=(_0x3768bb=_0x515c8f===null||_0x515c8f===void 0x0?void 0x0:_0x515c8f[_0x35002a(0x150)])===null||_0x3768bb===void 0x0?void 0x0:_0x3768bb[core_2['REQUEST_OBJ_CTX_KEY']],_0x2976d9=lodash[_0x35002a(0x148)]({},_0xf30ec8[_0x35002a(0x14b)][_0x35002a(0x154)]||_0xf30ec8[_0x35002a(0x14b)][((_0x29889e=_0x191779===null||_0x191779===void 0x0?void 0x0:_0x191779[_0x35002a(0xf7)])===null||_0x29889e===void 0x0?void 0x0:_0x29889e['key'])||_0x35002a(0x154)]||{},_0xf30ec8['request'][_0x35002a(0x16b)]||{});_0xf30ec8['_matchedRouteMeta']={'module':(_0x2b1c16===null||_0x2b1c16===void 0x0?void 0x0:_0x2b1c16[_0x35002a(0xf9)])||'','routePath':''+_0xf30ec8['path'],'routeName':_0x445185['routerOptions'][_0x35002a(0x146)]+'@'+_0x57e8b7['routerName'],'routeMethod':((_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x35002a(0x12e)])||_0xf30ec8[_0x35002a(0x14c)]||'')[_0x35002a(0x12f)](),'routeDescription':(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7['description'])||'','filemethod':_0x294e9f+'@'+(_0x57e8b7[_0x35002a(0x14c)]||'')};if(_0xf30ec8&&(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x35002a(0x15e)]))try{const _0x5a49d2=((_0x594111=_0x191779===null||_0x191779===void 0x0?void 0x0:_0x191779[_0x35002a(0x17a)])===null||_0x594111===void 0x0?void 0x0:_0x594111[_0x35002a(0x111)])&&typeof(_0x2976d9===null||_0x2976d9===void 0x0?void 0x0:_0x2976d9[_0x191779['anncicapi'][_0x35002a(0x111)]])==_0x35002a(0xfb)?JSON[_0x35002a(0x108)](base64_decode(_0x2976d9[_0x191779[_0x35002a(0x17a)][_0x35002a(0x111)]])||'{}')||{}:((_0x4f732b=_0xf30ec8===null||_0xf30ec8===void 0x0?void 0x0:_0xf30ec8[_0x35002a(0x14b)])===null||_0x4f732b===void 0x0?void 0x0:_0x4f732b[_0x35002a(0xee)])||{};if(!this[_0x35002a(0x118)]['checksign'](_0x5a49d2))throw new AnnError(ApiError_1[_0x35002a(0x143)][_0x35002a(0x147)]);}catch(_0x4d54cc){if(_0x4d54cc instanceof AnnError)throw _0x4d54cc;else throw new AnnError(ApiError_1[_0x35002a(0x143)][_0x35002a(0xfd)]);}},'around':async _0x440b10=>{const _0x1e5e1b=_0x1aad82;var _0x44a480,_0xb4c058,_0x2fab44;const _0xd2d47a=(_0x44a480=_0x440b10===null||_0x440b10===void 0x0?void 0x0:_0x440b10[_0x1e5e1b(0x150)])===null||_0x44a480===void 0x0?void 0x0:_0x44a480[core_2[_0x1e5e1b(0xf5)]];if(_0xd2d47a&&(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x15e)])&&((_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x156)])||typeof(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x156)])=='undefined')){if(((_0xb4c058=_0xd2d47a['headers'])===null||_0xb4c058===void 0x0?void 0x0:_0xb4c058[_0x1e5e1b(0x128)])&&((_0x2fab44=_0x335d37===null||_0x335d37===void 0x0?void 0x0:_0x335d37[_0xd2d47a[_0x1e5e1b(0xee)][_0x1e5e1b(0x128)]])===null||_0x2fab44===void 0x0?void 0x0:_0x2fab44[_0x1e5e1b(0x149)])>0x0)for(const _0x42efad of _0x335d37[_0xd2d47a['headers']['device']]||[]){if(core_1[_0x1e5e1b(0xef)][_0x1e5e1b(0x105)](_0x42efad)){const _0x165dd0=await _0xd2d47a[_0x1e5e1b(0x139)][_0x1e5e1b(0x10b)](_0x42efad);typeof(_0x165dd0===null||_0x165dd0===void 0x0?void 0x0:_0x165dd0[_0x1e5e1b(0xfa)])==_0x1e5e1b(0x16d)?await _0x165dd0[_0x1e5e1b(0xfa)](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute'])?_0xd2d47a['method'][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7)&&await _0x165dd0[_0x1e5e1b(0x134)](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute'])?_0xd2d47a[_0x1e5e1b(0x14c)][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7):await _0x165dd0['handler'](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)])?_0xd2d47a[_0x1e5e1b(0x14c)]['toLowerCase']()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7);}else core_1[_0x1e5e1b(0xef)]['isFunction'](_0x42efad)&&await _0x42efad(_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])=='string'&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)])?_0xd2d47a[_0x1e5e1b(0x14c)][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute']):undefined,_0x57e8b7);}}return await _0x440b10[_0x1e5e1b(0x112)](..._0x440b10['args']);},'afterThrow':(_0x538b08,_0x205884)=>{throw _0x205884;}};});}async['hanlderApplications'](){const _0xfefbb8=a2_0x19dab8,_0x17a405=this[_0xfefbb8(0x138)][_0xfefbb8(0x13e)]();this[_0xfefbb8(0x141)][_0xfefbb8(0x144)]([_0xfefbb8(0x13c)])['forEach'](_0x5dbdfe=>{const _0x3b873c=_0xfefbb8;(_0x5dbdfe===null||_0x5dbdfe===void 0x0?void 0x0:_0x5dbdfe[_0x3b873c(0x124)])&&Object[_0x3b873c(0x132)](_0x5dbdfe['context'],{'hosturl':{'configurable':![],'get':function(){const _0x2d7be1=_0x3b873c;var _0x38b9cd,_0x163a06,_0x156c5a,_0x458d45;if((this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x177)])&&!this[_0x2d7be1(0x177)][_0x2d7be1(0x166)](_0x2d7be1(0x11f))){let _0x27426e=this[_0x2d7be1(0x177)][_0x2d7be1(0x163)](':');return['80',_0x2d7be1(0x114)][_0x2d7be1(0x102)](_0x27426e===null||_0x27426e===void 0x0?void 0x0:_0x27426e[0x1])?''+(!!((_0x163a06=(_0x38b9cd=this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x136)])===null||_0x38b9cd===void 0x0?void 0x0:_0x38b9cd['connection'])===null||_0x163a06===void 0x0?void 0x0:_0x163a06[_0x2d7be1(0x175)])||(_0x27426e===null||_0x27426e===void 0x0?void 0x0:_0x27426e[0x1])==_0x2d7be1(0x114)?_0x2d7be1(0x172):'http://')+_0x27426e[0x0]:''+(!!((_0x458d45=(_0x156c5a=this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x136)])===null||_0x156c5a===void 0x0?void 0x0:_0x156c5a['connection'])===null||_0x458d45===void 0x0?void 0x0:_0x458d45['encrypted'])?_0x2d7be1(0x172):'http://')+this[_0x2d7be1(0x177)];}return'';}},'ok':{'value':function(_0x3cbf73,_0x5899fb,_0x4526a7=0x0){return{'code':_0x4526a7,'data':_0x3cbf73,'extra':_0x5899fb};}},'input':{'value':function(_0x8569a6,_0x5af07e){const _0x15415d=_0x3b873c;var _0x3cd581;const _0x284eba=lodash[_0x15415d(0x148)]({},this['request']['body']||this[_0x15415d(0x14b)][((_0x3cd581=_0x17a405===null||_0x17a405===void 0x0?void 0x0:_0x17a405['bodyXml'])===null||_0x3cd581===void 0x0?void 0x0:_0x3cd581[_0x15415d(0x140)])||_0x15415d(0x154)]||{},this[_0x15415d(0x14b)][_0x15415d(0x16b)]||{});return _0x8569a6?lodash[_0x15415d(0xec)](_0x284eba,_0x8569a6,_0x5af07e):_0x284eba;}},'when':{'value':async function(_0x305999,_0x307b74){const _0x1d6173=_0x3b873c,_0x24c319=this[_0x1d6173(0x101)](_0x305999,null);if(!lodash[_0x1d6173(0x133)](_0x24c319))return await _0x307b74(_0x24c319);}},'only':{'value':function(_0x4f5d87){const _0x3a5326=_0x3b873c,_0x1899a9={};for(let _0x364868=0x0;_0x364868<_0x4f5d87[_0x3a5326(0x149)];_0x364868++){lodash[_0x3a5326(0x15d)](_0x4f5d87[_0x364868])&&_0x4f5d87[_0x364868][_0x3a5326(0x149)]>0x0&&lodash[_0x3a5326(0x107)](_0x4f5d87[_0x364868][0x0])&&(_0x1899a9[_0x4f5d87[_0x364868][0x0]]=this[_0x3a5326(0x101)](_0x4f5d87[_0x364868][0x0],_0x4f5d87[_0x364868]['length']>0x1?_0x4f5d87[_0x364868][0x1]:null));}return _0x1899a9;}},'koasend':{'value':async function(_0x178b68,_0x457063){const _0x45afea=_0x3b873c;if(_0x178b68&&!fs[_0x45afea(0x116)](_0x178b68)&&!fs[_0x45afea(0x116)](this['app']['getAppDir']()+'/'+_0x178b68))return _0x45afea(0x16e);return _0x178b68=fs[_0x45afea(0x116)](_0x178b68)?_0x178b68:this[_0x45afea(0x16a)][_0x45afea(0xfc)]()+'/'+_0x178b68,this['attachment'](_0x457063||_0x178b68),await koasend(this,_0x178b68);}}});});}async[a2_0x19dab8(0x155)](){const _0x265d75=a2_0x19dab8;var _0x339b73,_0x45fc48;if(fs[_0x265d75(0x116)](this[_0x265d75(0x16a)][_0x265d75(0x157)]()+_0x265d75(0x167))&&fs[_0x265d75(0x11d)](this['app'][_0x265d75(0x157)]()+_0x265d75(0x167))[_0x265d75(0x12b)]()){const _0xc22b39=this[_0x265d75(0x138)][_0x265d75(0x13e)](),_0x4d4f7c=((_0x339b73=_0xc22b39===null||_0xc22b39===void 0x0?void 0x0:_0xc22b39[_0x265d75(0x11e)])===null||_0x339b73===void 0x0?void 0x0:_0x339b73[_0x265d75(0x153)])||{};for(const _0x46a199 of fs[_0x265d75(0x174)](this[_0x265d75(0x16a)]['getBaseDir']()+_0x265d75(0x167))){if(!fs[_0x265d75(0x11d)](this[_0x265d75(0x16a)][_0x265d75(0x157)]()+_0x265d75(0x165)+_0x46a199)[_0x265d75(0x12b)]())continue;!(_0x4d4f7c===null||_0x4d4f7c===void 0x0?void 0x0:_0x4d4f7c[_0x46a199])&&(_0x4d4f7c[_0x46a199]=Object['assign']({},((_0x45fc48=_0xc22b39===null||_0xc22b39===void 0x0?void 0x0:_0xc22b39[_0x265d75(0x11e)])===null||_0x45fc48===void 0x0?void 0x0:_0x45fc48[_0x265d75(0x180)])||{'maxSize':'1m','dir':this[_0x265d75(0x16a)]['getAppDir']()+_0x265d75(0x14d)},{'enableJSON':!![],'enableConsole':this[_0x265d75(0x13f)][_0x265d75(0x162)](),'fileLogName':_0x46a199+_0x265d75(0x176),'dir':this[_0x265d75(0x16a)]['getAppDir']()+_0x265d75(0x16c)+_0x46a199})),this[_0x265d75(0xf1)][_0x265d75(0x137)](_0x46a199,_0x4d4f7c[_0x46a199]);}Object[_0x265d75(0x13b)](_0x4d4f7c)['length']>0x0&&(!_0xc22b39[_0x265d75(0x11e)]&&(_0xc22b39[_0x265d75(0x11e)]={'default':{'maxSize':'1m','dir':this[_0x265d75(0x16a)][_0x265d75(0xfc)]()+'/runtime'}}),_0xc22b39[_0x265d75(0x11e)][_0x265d75(0x153)]=_0x4d4f7c),this[_0x265d75(0x138)][_0x265d75(0x11c)](_0xc22b39);}}async[a2_0x19dab8(0x131)](){const _0x383cba=a2_0x19dab8;var _0x3744b4,_0x268a36,_0x2eb693,_0x530942,_0x48b73d,_0x50d772;const _0x14d2be=this['config'][_0x383cba(0x13e)]();((_0x268a36=(_0x3744b4=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x17a)])===null||_0x3744b4===void 0x0?void 0x0:_0x3744b4[_0x383cba(0x142)])===null||_0x268a36===void 0x0?void 0x0:_0x268a36['DEFAULT'])&&Object['keys'](_0x14d2be[_0x383cba(0x17a)][_0x383cba(0x142)])[_0x383cba(0x149)]>0x1&&delete _0x14d2be[_0x383cba(0x17a)][_0x383cba(0x142)]['DEFAULT'];if((_0x2eb693=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x13d)])===null||_0x2eb693===void 0x0?void 0x0:_0x2eb693[_0x383cba(0xf6)])for(const _0x129ad4 in _0x14d2be[_0x383cba(0x13d)]['dirs']){((_0x530942=_0x14d2be[_0x383cba(0x13d)]['dirs'][_0x129ad4])===null||_0x530942===void 0x0?void 0x0:_0x530942[_0x383cba(0x160)])&&typeof((_0x48b73d=_0x14d2be['staticFile'][_0x383cba(0xf6)][_0x129ad4])===null||_0x48b73d===void 0x0?void 0x0:_0x48b73d[_0x383cba(0x160)])==_0x383cba(0xfb)&&!fs[_0x383cba(0x116)](_0x14d2be[_0x383cba(0x13d)][_0x383cba(0xf6)][_0x129ad4]['dir'])&&(fs[_0x383cba(0xff)](_0x14d2be[_0x383cba(0x13d)]['dirs'][_0x129ad4][_0x383cba(0x160)],{'recursive':!![]}),console['log'](_0x383cba(0x151)+_0x14d2be[_0x383cba(0x13d)][_0x383cba(0xf6)][_0x129ad4][_0x383cba(0x160)]));}((_0x50d772=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x11b)])===null||_0x50d772===void 0x0?void 0x0:_0x50d772[_0x383cba(0x12d)])&&!fs['existsSync'](_0x14d2be[_0x383cba(0x11b)][_0x383cba(0x12d)])&&(fs[_0x383cba(0xff)](_0x14d2be[_0x383cba(0x11b)][_0x383cba(0x12d)],{'recursive':!![]}),console['log'](_0x383cba(0x120)+_0x14d2be['upload'][_0x383cba(0x12d)])),this[_0x383cba(0x138)]['addObject'](_0x14d2be);}};exports[a2_0x19dab8(0x130)]=CustomConfiguration,__decorate([(0x0,core_1[a2_0x19dab8(0x14e)])(),__metadata(a2_0x19dab8(0x15b),Object)],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x16a),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x104)])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x138),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x122)])],CustomConfiguration[a2_0x19dab8(0x10e)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x19dab8(0x127)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x145)])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x13f),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_1[a2_0x19dab8(0x10c)])],CustomConfiguration['prototype'],a2_0x19dab8(0xf1),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),ApiService_1['ApiService'])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x118),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x19dab8(0xf3)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x19dab8(0x13a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x24da3e=a2_0x2f73;(function(_0x1200a6,_0x4df1e4){const _0x385f8f=a2_0x2f73,_0x23a3ed=_0x1200a6();while(!![]){try{const _0x4f1743=parseInt(_0x385f8f(0x18e))/0x1*(-parseInt(_0x385f8f(0x15a))/0x2)+parseInt(_0x385f8f(0x175))/0x3*(-parseInt(_0x385f8f(0x118))/0x4)+parseInt(_0x385f8f(0x194))/0x5*(-parseInt(_0x385f8f(0x133))/0x6)+parseInt(_0x385f8f(0x192))/0x7+parseInt(_0x385f8f(0x163))/0x8*(-parseInt(_0x385f8f(0x132))/0x9)+parseInt(_0x385f8f(0x19f))/0xa*(parseInt(_0x385f8f(0x16e))/0xb)+parseInt(_0x385f8f(0x14d))/0xc*(parseInt(_0x385f8f(0x184))/0xd);if(_0x4f1743===_0x4df1e4)break;else _0x23a3ed['push'](_0x23a3ed['shift']());}catch(_0x892dd){_0x23a3ed['push'](_0x23a3ed['shift']());}}}(a2_0x1e70,0xc9bd9));const a2_0x2a2897=(function(){let _0x5cbcb7=!![];return function(_0x4d94ee,_0x195f95){const _0x4eafe4=_0x5cbcb7?function(){const _0x3fccda=a2_0x2f73;if(_0x195f95){const _0x2f9447=_0x195f95[_0x3fccda(0x190)](_0x4d94ee,arguments);return _0x195f95=null,_0x2f9447;}}:function(){};return _0x5cbcb7=![],_0x4eafe4;};}()),a2_0x130c26=a2_0x2a2897(this,function(){const _0xe94544=a2_0x2f73;return a2_0x130c26[_0xe94544(0x14f)]()[_0xe94544(0x145)](_0xe94544(0x114))[_0xe94544(0x14f)]()[_0xe94544(0x14b)](a2_0x130c26)[_0xe94544(0x145)](_0xe94544(0x114));});function a2_0x1e70(){const _0x1163c4=['/runtime','Inject','_matchedRouteMeta','body','handlerActionRoute','devices','request','@anncic-api/typeorm','__decorate','getBaseDir','toLowerCase','split','DEFAULT','anncic-apihelper','requestMethod','getAppDir','prototype','connection','clients','defaultsDeep','9FpPXcE','4601070KggYAe','dir','name','object','app','encrypted','defineProperty','APPSCONFIG_KEY','@midwayjs/upload','assign','koa','HEADERS_SIGNATURE','match','_UNKNOW_','application','decorator','checksign','443','search','ApiError','文件不存在','http','/apps','headers','constructor','substring','30516SIPmzV','getApplications','toString','metadata','attachment','ACTION_ROUTE_KEY','string','https://','handler','Configuration','requestContext','.log','Types','362MheUiD','method','requestKey','tmpdir','ApiService','query','anncicapi','__esModule','config','1129608XnyAAs','hanlderApplications','mkdirSync','INTERCEPT_KEY','loggerService','isDirectory','target','bodyXml','req','./types/action','getClassMetadata','2965303uMQuMR','midwayLogger','tagName','function','statSync','@midwayjs/static-file','CustomConfiguration','71121GYcmWQ','module','upload','isNull','decorate','isArray','http://','includes','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','MidwayEnvironmentService','_matchedRoute','dirs','host','isClass','filterConfig','11427MiWEGI','default','defineProperties','key','__metadata','design:type','MidwayApplicationManager','loggerConfig','REQUEST_OBJ_CTX_KEY','/runtime/apps-','209VzdhDB','MidwayConfigService','apply','getConfiguration','10362142pxdDSI','args','10zeNdkd','@midwayjs/core','length','/apps/','lastIndexOf','existsSync','staticFile','environment','input','context','MidwayLoggerService','10TntVWH','anncic-api','apimit','./exception/ApiError','intercept','device','koa-send','(((.+)+)+)+$','proceed','getAsync','log','244kWkCYb','filepath','readdirSync','@anncic-api/event','description','InterceptTargetTmp'];a2_0x1e70=function(){return _0x1163c4;};return a2_0x1e70();}a2_0x130c26();'use strict';function a2_0x2f73(_0x361bed,_0x4bac15){const _0x1cda21=a2_0x1e70();return a2_0x2f73=function(_0x130c26,_0x2a2897){_0x130c26=_0x130c26-0x10f;let _0x1e7098=_0x1cda21[_0x130c26];return _0x1e7098;},a2_0x2f73(_0x361bed,_0x4bac15);}var __decorate=this&&this[a2_0x24da3e(0x126)]||function(_0x532543,_0x355e5e,_0x191659,_0x4f21ee){const _0x256c17=a2_0x24da3e;var _0x39900c=arguments['length'],_0x42d59d=_0x39900c<0x3?_0x355e5e:_0x4f21ee===null?_0x4f21ee=Object['getOwnPropertyDescriptor'](_0x355e5e,_0x191659):_0x4f21ee,_0x376554;if(typeof Reflect===_0x256c17(0x136)&&typeof Reflect[_0x256c17(0x179)]==='function')_0x42d59d=Reflect[_0x256c17(0x179)](_0x532543,_0x355e5e,_0x191659,_0x4f21ee);else{for(var _0x4c677c=_0x532543['length']-0x1;_0x4c677c>=0x0;_0x4c677c--)if(_0x376554=_0x532543[_0x4c677c])_0x42d59d=(_0x39900c<0x3?_0x376554(_0x42d59d):_0x39900c>0x3?_0x376554(_0x355e5e,_0x191659,_0x42d59d):_0x376554(_0x355e5e,_0x191659))||_0x42d59d;}return _0x39900c>0x3&&_0x42d59d&&Object['defineProperty'](_0x355e5e,_0x191659,_0x42d59d),_0x42d59d;},__metadata=this&&this[a2_0x24da3e(0x188)]||function(_0x26834c,_0x25c310){const _0x55255a=a2_0x24da3e;if(typeof Reflect===_0x55255a(0x136)&&typeof Reflect[_0x55255a(0x150)]===_0x55255a(0x171))return Reflect[_0x55255a(0x150)](_0x26834c,_0x25c310);};Object[a2_0x24da3e(0x139)](exports,a2_0x24da3e(0x161),{'value':!![]}),exports[a2_0x24da3e(0x174)]=void 0x0;const core_1=require(a2_0x24da3e(0x195)),core_2=require(a2_0x24da3e(0x195)),ApiError_1=require(a2_0x24da3e(0x110)),ApiService_1=require('./service/ApiService'),intercept_1=require('./types/intercept'),action_1=require(a2_0x24da3e(0x16c)),fs=require('fs'),koasend=require(a2_0x24da3e(0x113)),koa=require('@midwayjs/koa'),upload=require(a2_0x24da3e(0x13b)),staticFile=require(a2_0x24da3e(0x173)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x24da3e(0x11b)),anncicTypeorm=require(a2_0x24da3e(0x125)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x24da3e(0x12b));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x131836=a2_0x24da3e;await this[_0x131836(0x183)](),await this['loggerConfig'](),await this[_0x131836(0x122)](),await this[_0x131836(0x164)]();}async[a2_0x24da3e(0x122)](){const _0x38b2bb=a2_0x24da3e,_0x1bbd36=this[_0x38b2bb(0x162)]['getConfiguration'](),_0x4fce6f=(0x0,core_1['getClassMetadata'])(intercept_1[_0x38b2bb(0x166)],intercept_1[_0x38b2bb(0x11d)])||{};this[_0x38b2bb(0x142)]['registerMethodHandler'](action_1[_0x38b2bb(0x152)],_0x624dc9=>{const _0x4bb25e=_0x38b2bb;var _0x8fdfa3;const _0x455a46=(0x0,core_1[_0x4bb25e(0x16d)])(action_1[_0x4bb25e(0x13a)],action_1['AppsConfigTmp'])||{},_0x43d13b=_0x624dc9[_0x4bb25e(0x150)],_0x4ca5dc=(0x0,core_1[_0x4bb25e(0x16d)])(action_1['ACTION_KEY'],_0x624dc9[_0x4bb25e(0x169)])||{},_0x14f310=((_0x8fdfa3=_0x4ca5dc===null||_0x4ca5dc===void 0x0?void 0x0:_0x4ca5dc[_0x4bb25e(0x119)])===null||_0x8fdfa3===void 0x0?void 0x0:_0x8fdfa3[_0x4bb25e(0x14c)](0x0,_0x4ca5dc['filepath'][_0x4bb25e(0x198)]('.')))||'',_0xedaae2=(_0x4ca5dc===null||_0x4ca5dc===void 0x0?void 0x0:_0x4ca5dc[_0x4bb25e(0x176)])?(_0x455a46===null||_0x455a46===void 0x0?void 0x0:_0x455a46[_0x4ca5dc[_0x4bb25e(0x176)]])||{}:{};return{'before':async _0x44d5d7=>{const _0x39176f=_0x4bb25e;var _0x21b589,_0x4f5b02,_0x1df012,_0x116868;const _0x2e6cf2=(_0x21b589=_0x44d5d7===null||_0x44d5d7===void 0x0?void 0x0:_0x44d5d7['target'])===null||_0x21b589===void 0x0?void 0x0:_0x21b589[core_2['REQUEST_OBJ_CTX_KEY']],_0x5c0caf=lodash[_0x39176f(0x131)]({},_0x2e6cf2['request']['body']||_0x2e6cf2[_0x39176f(0x124)][((_0x4f5b02=_0x1bbd36===null||_0x1bbd36===void 0x0?void 0x0:_0x1bbd36['bodyXml'])===null||_0x4f5b02===void 0x0?void 0x0:_0x4f5b02[_0x39176f(0x187)])||_0x39176f(0x121)]||{},_0x2e6cf2[_0x39176f(0x124)][_0x39176f(0x15f)]||{});_0x2e6cf2[_0x39176f(0x120)]={'module':(_0xedaae2===null||_0xedaae2===void 0x0?void 0x0:_0xedaae2[_0x39176f(0x135)])||'','routePath':''+_0x2e6cf2['path'],'routeName':_0x4ca5dc['routerOptions'][_0x39176f(0x170)]+'@'+_0x43d13b['routerName'],'routeMethod':((_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b[_0x39176f(0x12c)])||_0x2e6cf2[_0x39176f(0x15b)]||'')['toLowerCase'](),'routeDescription':(_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b[_0x39176f(0x11c)])||'','filemethod':_0x14f310+'@'+(_0x43d13b[_0x39176f(0x15b)]||'')};if(_0x2e6cf2&&(_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b[_0x39176f(0x10f)]))try{const _0x1d0ee1=((_0x1df012=_0x1bbd36===null||_0x1bbd36===void 0x0?void 0x0:_0x1bbd36[_0x39176f(0x160)])===null||_0x1df012===void 0x0?void 0x0:_0x1df012[_0x39176f(0x15c)])&&typeof(_0x5c0caf===null||_0x5c0caf===void 0x0?void 0x0:_0x5c0caf[_0x1bbd36[_0x39176f(0x160)][_0x39176f(0x15c)]])==_0x39176f(0x153)?JSON['parse'](base64_decode(_0x5c0caf[_0x1bbd36['anncicapi']['requestKey']])||'{}')||{}:((_0x116868=_0x2e6cf2===null||_0x2e6cf2===void 0x0?void 0x0:_0x2e6cf2['request'])===null||_0x116868===void 0x0?void 0x0:_0x116868[_0x39176f(0x14a)])||{};if(!this['ApiService'][_0x39176f(0x143)](_0x1d0ee1))throw new AnnError(ApiError_1[_0x39176f(0x146)][_0x39176f(0x13e)]);}catch(_0x300363){if(_0x300363 instanceof AnnError)throw _0x300363;else throw new AnnError(ApiError_1[_0x39176f(0x146)][_0x39176f(0x140)]);}},'around':async _0x40ea34=>{const _0x214223=_0x4bb25e;var _0x128e84,_0xc7df70,_0x305032;const _0xe278cf=(_0x128e84=_0x40ea34===null||_0x40ea34===void 0x0?void 0x0:_0x40ea34[_0x214223(0x169)])===null||_0x128e84===void 0x0?void 0x0:_0x128e84[core_2[_0x214223(0x18c)]];if(_0xe278cf&&(_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b[_0x214223(0x10f)])&&((_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b['intercept'])||typeof(_0x43d13b===null||_0x43d13b===void 0x0?void 0x0:_0x43d13b[_0x214223(0x111)])=='undefined')){if(((_0xc7df70=_0xe278cf['headers'])===null||_0xc7df70===void 0x0?void 0x0:_0xc7df70['device'])&&((_0x305032=_0x4fce6f===null||_0x4fce6f===void 0x0?void 0x0:_0x4fce6f[_0xe278cf[_0x214223(0x14a)]['device']])===null||_0x305032===void 0x0?void 0x0:_0x305032[_0x214223(0x196)])>0x0)for(const _0x485d36 of _0x4fce6f[_0xe278cf['headers'][_0x214223(0x112)]]||[]){if(core_1[_0x214223(0x159)][_0x214223(0x182)](_0x485d36)){const _0x24c181=await _0xe278cf[_0x214223(0x157)][_0x214223(0x116)](_0x485d36);typeof(_0x24c181===null||_0x24c181===void 0x0?void 0x0:_0x24c181[_0x214223(0x13f)])==_0x214223(0x171)?await _0x24c181[_0x214223(0x13f)](_0xe278cf,typeof(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf['method'])==_0x214223(0x153)&&(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)])?_0xe278cf['method'][_0x214223(0x128)]()+'@'+(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)]):undefined,_0x43d13b)&&await _0x24c181['handler'](_0xe278cf,typeof(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x15b)])==_0x214223(0x153)&&(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)])?_0xe278cf[_0x214223(0x15b)][_0x214223(0x128)]()+'@'+(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)]):undefined,_0x43d13b):await _0x24c181[_0x214223(0x155)](_0xe278cf,typeof(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x15b)])=='string'&&(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)])?_0xe278cf[_0x214223(0x15b)][_0x214223(0x128)]()+'@'+(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)]):undefined,_0x43d13b);}else core_1['Types']['isFunction'](_0x485d36)&&await _0x485d36(_0xe278cf,typeof(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x15b)])==_0x214223(0x153)&&(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)])?_0xe278cf[_0x214223(0x15b)]['toLowerCase']()+'@'+(_0xe278cf===null||_0xe278cf===void 0x0?void 0x0:_0xe278cf[_0x214223(0x17f)]):undefined,_0x43d13b);}}return await _0x40ea34[_0x214223(0x115)](..._0x40ea34[_0x214223(0x193)]);},'afterThrow':(_0x1c4699,_0x340b33)=>{throw _0x340b33;}};});}async[a2_0x24da3e(0x164)](){const _0x36f600=a2_0x24da3e,_0x599d11=this[_0x36f600(0x162)][_0x36f600(0x191)]();this[_0x36f600(0x141)][_0x36f600(0x14e)]([_0x36f600(0x13d)])['forEach'](_0x3fcc3d=>{const _0x227eb0=_0x36f600;(_0x3fcc3d===null||_0x3fcc3d===void 0x0?void 0x0:_0x3fcc3d[_0x227eb0(0x19d)])&&Object[_0x227eb0(0x186)](_0x3fcc3d[_0x227eb0(0x19d)],{'hosturl':{'configurable':![],'get':function(){const _0xde7d23=_0x227eb0;var _0x173fff,_0x514549,_0x13411f,_0x3c28b3;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0xde7d23(0x181)]['startsWith'](_0xde7d23(0x148))){let _0x50aca9=this[_0xde7d23(0x181)][_0xde7d23(0x129)](':');return['80',_0xde7d23(0x144)][_0xde7d23(0x17c)](_0x50aca9===null||_0x50aca9===void 0x0?void 0x0:_0x50aca9[0x1])?''+(!!((_0x514549=(_0x173fff=this===null||this===void 0x0?void 0x0:this[_0xde7d23(0x16b)])===null||_0x173fff===void 0x0?void 0x0:_0x173fff[_0xde7d23(0x12f)])===null||_0x514549===void 0x0?void 0x0:_0x514549['encrypted'])||(_0x50aca9===null||_0x50aca9===void 0x0?void 0x0:_0x50aca9[0x1])==_0xde7d23(0x144)?_0xde7d23(0x154):'http://')+_0x50aca9[0x0]:''+(!!((_0x3c28b3=(_0x13411f=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x13411f===void 0x0?void 0x0:_0x13411f['connection'])===null||_0x3c28b3===void 0x0?void 0x0:_0x3c28b3[_0xde7d23(0x138)])?_0xde7d23(0x154):_0xde7d23(0x17b))+this[_0xde7d23(0x181)];}return'';}},'ok':{'value':function(_0x3d83ea,_0x25c834,_0x2b56d6=0x0){return{'code':_0x2b56d6,'data':_0x3d83ea,'extra':_0x25c834};}},'input':{'value':function(_0x5a59bc,_0x4a7200){const _0x1fb08a=_0x227eb0;var _0x20669f;const _0x545df5=lodash[_0x1fb08a(0x131)]({},this[_0x1fb08a(0x124)][_0x1fb08a(0x121)]||this[_0x1fb08a(0x124)][((_0x20669f=_0x599d11===null||_0x599d11===void 0x0?void 0x0:_0x599d11[_0x1fb08a(0x16a)])===null||_0x20669f===void 0x0?void 0x0:_0x20669f[_0x1fb08a(0x187)])||'body']||{},this[_0x1fb08a(0x124)]['query']||{});return _0x5a59bc?lodash['get'](_0x545df5,_0x5a59bc,_0x4a7200):_0x545df5;}},'when':{'value':async function(_0x21ab51,_0x50dedd){const _0x3f6618=_0x227eb0,_0x20994a=this['input'](_0x21ab51,null);if(!lodash[_0x3f6618(0x178)](_0x20994a))return await _0x50dedd(_0x20994a);}},'only':{'value':function(_0x24681c){const _0x1f941e=_0x227eb0,_0x5536e7={};for(let _0x5dda34=0x0;_0x5dda34<_0x24681c[_0x1f941e(0x196)];_0x5dda34++){lodash[_0x1f941e(0x17a)](_0x24681c[_0x5dda34])&&_0x24681c[_0x5dda34][_0x1f941e(0x196)]>0x0&&lodash['isString'](_0x24681c[_0x5dda34][0x0])&&(_0x5536e7[_0x24681c[_0x5dda34][0x0]]=this[_0x1f941e(0x19c)](_0x24681c[_0x5dda34][0x0],_0x24681c[_0x5dda34][_0x1f941e(0x196)]>0x1?_0x24681c[_0x5dda34][0x1]:null));}return _0x5536e7;}},'koasend':{'value':async function(_0x5ca69b,_0x1905a2){const _0x47d601=_0x227eb0;if(_0x5ca69b&&!fs[_0x47d601(0x199)](_0x5ca69b)&&!fs[_0x47d601(0x199)](this[_0x47d601(0x137)]['getAppDir']()+'/'+_0x5ca69b))return _0x47d601(0x147);return _0x5ca69b=fs[_0x47d601(0x199)](_0x5ca69b)?_0x5ca69b:this[_0x47d601(0x137)][_0x47d601(0x12d)]()+'/'+_0x5ca69b,this[_0x47d601(0x151)](_0x1905a2||_0x5ca69b),await koasend(this,_0x5ca69b);}}});});}async[a2_0x24da3e(0x18b)](){const _0x35bdbb=a2_0x24da3e;var _0x3e9c85,_0x1c8bdc;if(fs[_0x35bdbb(0x199)](this['app']['getBaseDir']()+_0x35bdbb(0x149))&&fs[_0x35bdbb(0x172)](this[_0x35bdbb(0x137)][_0x35bdbb(0x127)]()+_0x35bdbb(0x149))[_0x35bdbb(0x168)]()){const _0x1f5690=this['config'][_0x35bdbb(0x191)](),_0x43d264=((_0x3e9c85=_0x1f5690===null||_0x1f5690===void 0x0?void 0x0:_0x1f5690['midwayLogger'])===null||_0x3e9c85===void 0x0?void 0x0:_0x3e9c85[_0x35bdbb(0x130)])||{};for(const _0x10d52c of fs[_0x35bdbb(0x11a)](this['app'][_0x35bdbb(0x127)]()+_0x35bdbb(0x149))){if(!fs['statSync'](this['app'][_0x35bdbb(0x127)]()+_0x35bdbb(0x197)+_0x10d52c)[_0x35bdbb(0x168)]())continue;!(_0x43d264===null||_0x43d264===void 0x0?void 0x0:_0x43d264[_0x10d52c])&&(_0x43d264[_0x10d52c]=Object[_0x35bdbb(0x13c)]({},((_0x1c8bdc=_0x1f5690===null||_0x1f5690===void 0x0?void 0x0:_0x1f5690[_0x35bdbb(0x16f)])===null||_0x1c8bdc===void 0x0?void 0x0:_0x1c8bdc[_0x35bdbb(0x185)])||{'maxSize':'1m','dir':this[_0x35bdbb(0x137)]['getAppDir']()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x35bdbb(0x19b)]['isDevelopmentEnvironment'](),'fileLogName':_0x10d52c+_0x35bdbb(0x158),'dir':this[_0x35bdbb(0x137)]['getAppDir']()+_0x35bdbb(0x18d)+_0x10d52c})),this[_0x35bdbb(0x167)]['createLogger'](_0x10d52c,_0x43d264[_0x10d52c]);}Object['keys'](_0x43d264)['length']>0x0&&(!_0x1f5690['midwayLogger']&&(_0x1f5690[_0x35bdbb(0x16f)]={'default':{'maxSize':'1m','dir':this[_0x35bdbb(0x137)][_0x35bdbb(0x12d)]()+_0x35bdbb(0x11e)}}),_0x1f5690[_0x35bdbb(0x16f)][_0x35bdbb(0x130)]=_0x43d264),this[_0x35bdbb(0x162)]['addObject'](_0x1f5690);}}async[a2_0x24da3e(0x183)](){const _0x44d510=a2_0x24da3e;var _0x3e4b66,_0x83c748,_0x52e406,_0x2d49c1,_0xb98767,_0x1ba5da;const _0x4b4228=this[_0x44d510(0x162)][_0x44d510(0x191)]();((_0x83c748=(_0x3e4b66=_0x4b4228===null||_0x4b4228===void 0x0?void 0x0:_0x4b4228[_0x44d510(0x160)])===null||_0x3e4b66===void 0x0?void 0x0:_0x3e4b66[_0x44d510(0x123)])===null||_0x83c748===void 0x0?void 0x0:_0x83c748[_0x44d510(0x12a)])&&Object['keys'](_0x4b4228[_0x44d510(0x160)][_0x44d510(0x123)])[_0x44d510(0x196)]>0x1&&delete _0x4b4228[_0x44d510(0x160)][_0x44d510(0x123)]['DEFAULT'];if((_0x52e406=_0x4b4228===null||_0x4b4228===void 0x0?void 0x0:_0x4b4228[_0x44d510(0x19a)])===null||_0x52e406===void 0x0?void 0x0:_0x52e406['dirs'])for(const _0x449f2b in _0x4b4228[_0x44d510(0x19a)]['dirs']){((_0x2d49c1=_0x4b4228['staticFile'][_0x44d510(0x180)][_0x449f2b])===null||_0x2d49c1===void 0x0?void 0x0:_0x2d49c1[_0x44d510(0x134)])&&typeof((_0xb98767=_0x4b4228[_0x44d510(0x19a)][_0x44d510(0x180)][_0x449f2b])===null||_0xb98767===void 0x0?void 0x0:_0xb98767[_0x44d510(0x134)])==_0x44d510(0x153)&&!fs[_0x44d510(0x199)](_0x4b4228[_0x44d510(0x19a)][_0x44d510(0x180)][_0x449f2b][_0x44d510(0x134)])&&(fs[_0x44d510(0x165)](_0x4b4228[_0x44d510(0x19a)]['dirs'][_0x449f2b][_0x44d510(0x134)],{'recursive':!![]}),console[_0x44d510(0x117)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x4b4228[_0x44d510(0x19a)]['dirs'][_0x449f2b][_0x44d510(0x134)]));}((_0x1ba5da=_0x4b4228===null||_0x4b4228===void 0x0?void 0x0:_0x4b4228[_0x44d510(0x177)])===null||_0x1ba5da===void 0x0?void 0x0:_0x1ba5da[_0x44d510(0x15d)])&&!fs[_0x44d510(0x199)](_0x4b4228[_0x44d510(0x177)][_0x44d510(0x15d)])&&(fs[_0x44d510(0x165)](_0x4b4228[_0x44d510(0x177)][_0x44d510(0x15d)],{'recursive':!![]}),console[_0x44d510(0x117)](_0x44d510(0x17d)+_0x4b4228[_0x44d510(0x177)]['tmpdir'])),this[_0x44d510(0x162)]['addObject'](_0x4b4228);}};exports[a2_0x24da3e(0x174)]=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata(a2_0x24da3e(0x189),Object)],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x137),void 0x0),__decorate([(0x0,core_1[a2_0x24da3e(0x11f)])(),__metadata('design:type',core_2[a2_0x24da3e(0x18f)])],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x162),void 0x0),__decorate([(0x0,core_1[a2_0x24da3e(0x11f)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x142),void 0x0),__decorate([(0x0,core_1[a2_0x24da3e(0x11f)])(),__metadata(a2_0x24da3e(0x189),core_2[a2_0x24da3e(0x18a)])],CustomConfiguration[a2_0x24da3e(0x12e)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x24da3e(0x11f)])(),__metadata('design:type',core_2[a2_0x24da3e(0x17e)])],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x19b),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x24da3e(0x189),core_1[a2_0x24da3e(0x19e)])],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x167),void 0x0),__decorate([(0x0,core_1[a2_0x24da3e(0x11f)])(),__metadata(a2_0x24da3e(0x189),ApiService_1[a2_0x24da3e(0x15e)])],CustomConfiguration[a2_0x24da3e(0x12e)],a2_0x24da3e(0x15e),void 0x0),exports[a2_0x24da3e(0x174)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x24da3e(0x156)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x24da3e(0x1a0),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1ee7cc=a3_0x5ce0;(function(_0x5099b4,_0x20ae83){const _0x486a2b=a3_0x5ce0,_0x1fa296=_0x5099b4();while(!![]){try{const _0x46921e=parseInt(_0x486a2b(0x15b))/0x1*(parseInt(_0x486a2b(0x14e))/0x2)+-parseInt(_0x486a2b(0x124))/0x3+-parseInt(_0x486a2b(0x161))/0x4+-parseInt(_0x486a2b(0x121))/0x5+-parseInt(_0x486a2b(0x158))/0x6+-parseInt(_0x486a2b(0x131))/0x7*(parseInt(_0x486a2b(0x152))/0x8)+-parseInt(_0x486a2b(0x142))/0x9*(-parseInt(_0x486a2b(0x13d))/0xa);if(_0x46921e===_0x20ae83)break;else _0x1fa296['push'](_0x1fa296['shift']());}catch(_0x2d7e3b){_0x1fa296['push'](_0x1fa296['shift']());}}}(a3_0x56c3,0x63a15));function a3_0x5ce0(_0x5291ba,_0x25a98a){const _0x2420fd=a3_0x56c3();return a3_0x5ce0=function(_0x1ea70e,_0x21be3b){_0x1ea70e=_0x1ea70e-0x11e;let _0x56c346=_0x2420fd[_0x1ea70e];return _0x56c346;},a3_0x5ce0(_0x5291ba,_0x25a98a);}const a3_0x21be3b=(function(){let _0x8f5ed0=!![];return function(_0x20d735,_0x3c3d53){const _0x382883=_0x8f5ed0?function(){if(_0x3c3d53){const _0x17518b=_0x3c3d53['apply'](_0x20d735,arguments);return _0x3c3d53=null,_0x17518b;}}:function(){};return _0x8f5ed0=![],_0x382883;};}()),a3_0x1ea70e=a3_0x21be3b(this,function(){const _0x504b0a=a3_0x5ce0;return a3_0x1ea70e[_0x504b0a(0x14a)]()[_0x504b0a(0x130)]('(((.+)+)+)+$')['toString']()[_0x504b0a(0x145)](a3_0x1ea70e)[_0x504b0a(0x130)](_0x504b0a(0x11e));});a3_0x1ea70e();'use strict';Object['defineProperty'](exports,a3_0x1ee7cc(0x154),{'value':!![]}),exports[a3_0x1ee7cc(0x143)]=exports[a3_0x1ee7cc(0x13a)]=exports[a3_0x1ee7cc(0x13b)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x1ee7cc(0x165)),core_2=require(a3_0x1ee7cc(0x165)),action_1=require(a3_0x1ee7cc(0x12b));function Action(_0x1278bd,_0x58b6ce,_0x5c95a1={'middleware':[],'sensitive':!![]}){return _0x461622=>{const _0x148f9c=a3_0x5ce0;var _0x41c550;_0x5c95a1[_0x148f9c(0x155)]=_0x58b6ce;const _0x1cc24b=parseRoute(_0x1278bd);if(_0x1cc24b[_0x148f9c(0x137)]){_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)]?'/'+_0x1cc24b[_0x148f9c(0x137)]+'/'+_0x5c95a1[_0x148f9c(0x136)]:'/'+_0x1cc24b[_0x148f9c(0x12d)];_0x1cc24b[_0x148f9c(0x136)]&&(_0x5c95a1[_0x148f9c(0x136)]='/'+_0x1cc24b[_0x148f9c(0x136)]+'/'+_0x5c95a1[_0x148f9c(0x136)]);if(fs[_0x148f9c(0x14b)](_0x1cc24b['rootpath']+_0x148f9c(0x163)+_0x1cc24b[_0x148f9c(0x137)]+'/config.'+(lodash['endsWith'](_0x1cc24b['filepath'],'ts')?'ts':'js'))){const _0x415b9c=include(_0x1cc24b[_0x148f9c(0x15a)]+_0x148f9c(0x163)+_0x1cc24b[_0x148f9c(0x137)]+_0x148f9c(0x141)+(lodash[_0x148f9c(0x166)](_0x1cc24b[_0x148f9c(0x14c)],'ts')?'ts':'js'));if(lodash[_0x148f9c(0x162)](_0x415b9c[_0x148f9c(0x123)])&&_0x415b9c['middleware']['length']>0x0)for(let _0x6b186b in _0x415b9c[_0x148f9c(0x123)]){if(((_0x41c550=_0x415b9c===null||_0x415b9c===void 0x0?void 0x0:_0x415b9c[_0x148f9c(0x14f)])===null||_0x41c550===void 0x0?void 0x0:_0x41c550['length'])>0x0&&_0x415b9c[_0x148f9c(0x14f)][_0x148f9c(0x122)](_0x415b9c['middleware'][_0x6b186b])!=-0x1)continue;_0x5c95a1[_0x148f9c(0x123)][_0x148f9c(0x147)](_0x415b9c['middleware'][_0x6b186b]);}const _0x134561=(0x0,core_1[_0x148f9c(0x135)])(action_1[_0x148f9c(0x126)],action_1[_0x148f9c(0x150)])||{};_0x134561[''+_0x1cc24b[_0x148f9c(0x137)]]=_0x415b9c,(0x0,core_1[_0x148f9c(0x151)])(action_1[_0x148f9c(0x126)],_0x134561,action_1['AppsConfigTmp']);}_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)][_0x148f9c(0x128)]()[_0x148f9c(0x125)](/\/{2,}/g,'/'),(0x0,core_1[_0x148f9c(0x144)])(action_1[_0x148f9c(0x11f)],_0x461622),(0x0,core_1[_0x148f9c(0x12a)])(_0x5c95a1[_0x148f9c(0x136)],_0x5c95a1)(_0x461622),(0x0,core_1['saveClassMetadata'])(action_1[_0x148f9c(0x11f)],{'prefix':_0x5c95a1[_0x148f9c(0x136)],'pprefix':_0x1cc24b[_0x148f9c(0x136)],'module':_0x1cc24b['module'],'filepath':_0x1cc24b[_0x148f9c(0x14c)],'routerOptions':_0x5c95a1},_0x461622);}else _0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1['prefix']?'/'+_0x5c95a1[_0x148f9c(0x136)]:'/'+_0x1cc24b['route'],_0x1cc24b[_0x148f9c(0x136)]&&(_0x5c95a1[_0x148f9c(0x136)]='/'+_0x1cc24b[_0x148f9c(0x136)]+'/'+_0x5c95a1[_0x148f9c(0x136)]),_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)][_0x148f9c(0x128)]()[_0x148f9c(0x125)](/\/{2,}/g,'/'),(0x0,core_1[_0x148f9c(0x144)])(action_1[_0x148f9c(0x11f)],_0x461622),(0x0,core_1[_0x148f9c(0x12a)])(_0x5c95a1[_0x148f9c(0x136)],_0x5c95a1)(_0x461622),(0x0,core_1[_0x148f9c(0x151)])(action_1[_0x148f9c(0x11f)],{'prefix':_0x5c95a1[_0x148f9c(0x136)],'module':_0x1cc24b[_0x148f9c(0x137)],'pprefix':_0x1cc24b[_0x148f9c(0x136)],'filepath':_0x1cc24b[_0x148f9c(0x14c)],'routerOptions':_0x5c95a1},_0x461622);};}function a3_0x56c3(){const _0x494eac=['1456PjOqqp','match','intercept','validate','app/controller/','get','2199064mwXVqN','isArray','/apps/','apimit','@midwayjs/core','endsWith','string','(((.+)+)+)+$','ACTION_KEY','substring','2880500Qlgmkh','indexOf','middleware','1440819IflUsQ','replace','APPSCONFIG_KEY','length','toLowerCase','ACTION_ROUTE_KEY','Controller','../types/action','-controller','route','split','createCustomMethodDecorator','search','5467HOxKWl','filter','\x20文件请放在app/controller/文件下','splice','getClassMetadata','prefix','module','startsWith','attachClassMetadata','ActionApi','Action','-action','182580ocfhuQ','basic/controller/','description','RequestMapping','/config.','1485zWlhLX','parseRoute','saveModule','constructor','join','push','Validator','post','toString','existsSync','filepath','apps/','174fALfJx','middlewareIgnore','AppsConfigTmp','saveClassMetadata','6928UGoJJb','undefined','__esModule','tagName','\x20文件请放在apps/','/controller/文件下','2692032HhOqOr','routerName','rootpath'];a3_0x56c3=function(){return _0x494eac;};return a3_0x56c3();}exports[a3_0x1ee7cc(0x13b)]=Action,Action['get']=function(_0x33b555,_0x70b647='/',_0xb12d7={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1b5381,_0x3fcd24,_0x1f8d49)=>{const _0x276b9f=a3_0x5ce0;ActionApi(_0x33b555,_0x276b9f(0x160),_0x70b647,_0xb12d7)(_0x1b5381,_0x3fcd24,_0x1f8d49);};},Action[a3_0x1ee7cc(0x149)]=function(_0x455d10,_0x5a6707='/',_0x4ad4f0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x34f746,_0x8d6c55,_0x2d8795)=>{const _0x3dc975=a3_0x5ce0;ActionApi(_0x455d10,_0x3dc975(0x149),_0x5a6707,_0x4ad4f0)(_0x34f746,_0x8d6c55,_0x2d8795);};};function ActionApi(_0x24bb76,_0x43918b=a3_0x1ee7cc(0x160),_0x2b4215='/',_0x5de658={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x31032f,_0x5c47f2,_0x595566)=>{const _0x446cd5=a3_0x5ce0;var _0x34ce22,_0xbf1567,_0x5cd3bb;!_0x5de658[_0x446cd5(0x123)]&&(_0x5de658[_0x446cd5(0x123)]=[]);!((_0x34ce22=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x15e)])===null||_0x34ce22===void 0x0?void 0x0:_0x34ce22['validationOptions'])&&(_0x5de658[_0x446cd5(0x15e)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x446cd5(0x167)}});if(!_0x2b4215)_0x2b4215='/';else typeof _0x2b4215=='string'&&(!_0x2b4215['startsWith']('/')&&!_0x2b4215[_0x446cd5(0x138)]('-')&&(_0x2b4215='/'+_0x2b4215));typeof _0x5de658[_0x446cd5(0x164)]==_0x446cd5(0x153)&&(_0x5de658[_0x446cd5(0x164)]=!![]);if(((_0xbf1567=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x123)])===null||_0xbf1567===void 0x0?void 0x0:_0xbf1567[_0x446cd5(0x127)])>0x0&&((_0x5cd3bb=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x14f)])===null||_0x5cd3bb===void 0x0?void 0x0:_0x5cd3bb[_0x446cd5(0x127)])>0x0)for(let _0x23976f in _0x5de658[_0x446cd5(0x123)]){_0x5de658[_0x446cd5(0x14f)][_0x446cd5(0x122)](_0x5de658[_0x446cd5(0x123)][_0x23976f])!==-0x1&&(_0x5de658['middleware'][_0x23976f]=null);}_0x5de658[_0x446cd5(0x159)]=_0x24bb76,(0x0,validator_1[_0x446cd5(0x148)])(_0x5de658[_0x446cd5(0x15e)])(_0x31032f,_0x5c47f2,_0x595566),(0x0,core_2[_0x446cd5(0x140)])(Object['assign'](_0x5de658,{'path':_0x2b4215,'requestMethod':(_0x43918b||_0x446cd5(0x160))[_0x446cd5(0x128)]()}))(_0x31032f,_0x5c47f2,_0x595566),(0x0,core_2[_0x446cd5(0x139)])(action_1[_0x446cd5(0x129)],{'path':_0x2b4215,'method':_0x5c47f2,'apimit':_0x5de658[_0x446cd5(0x164)],'intercept':_0x5de658['intercept'],'routerName':_0x5de658[_0x446cd5(0x159)],'description':_0x5de658[_0x446cd5(0x13f)],'middleware':(_0x5de658[_0x446cd5(0x123)]||[])[_0x446cd5(0x132)](_0x5d72f4=>!!_0x5d72f4),'requestMethod':(_0x43918b||_0x446cd5(0x160))['toLowerCase']()},_0x31032f),(0x0,core_2[_0x446cd5(0x12f)])(action_1[_0x446cd5(0x129)],{'path':_0x2b4215,'method':_0x5c47f2,'apimit':_0x5de658[_0x446cd5(0x164)],'intercept':_0x5de658[_0x446cd5(0x15d)],'routerName':_0x5de658[_0x446cd5(0x159)],'description':_0x5de658[_0x446cd5(0x13f)],'middleware':(_0x5de658[_0x446cd5(0x123)]||[])[_0x446cd5(0x132)](_0x9eddab=>!!_0x9eddab),'requestMethod':(_0x43918b||_0x446cd5(0x160))[_0x446cd5(0x128)]()})(_0x31032f,_0x5c47f2,_0x595566);};}exports[a3_0x1ee7cc(0x13a)]=ActionApi;function parseRoute(_0xd94d82){const _0x4e4509=a3_0x1ee7cc;_0xd94d82=_0xd94d82[_0x4e4509(0x125)](/(\\|\/)/g,'/');const _0x9e0a1c=process['cwd']()[_0x4e4509(0x125)](/(\\|\/)/g,'/'),_0x191b24=_0xd94d82[_0x4e4509(0x120)](0x0,_0x9e0a1c['length']+_0xd94d82['substring'](_0x9e0a1c[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x122)]('/')+0x1),_0x15a86e=_0xd94d82[_0x4e4509(0x120)](_0x191b24[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x125)](/(\\|\/)/g,'/'),_0x4d9198={'route':'','prefix':![],'module':![],'rootpath':_0x191b24,'filepath':_0x15a86e};if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x15f))||_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x13e))){const _0x235b2a=_0x15a86e['substring']((_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x15f))?_0x4e4509(0x15f):_0x4e4509(0x13e))['length'])[_0x4e4509(0x12e)]('/')[_0x4e4509(0x132)](_0x461547=>_0x461547&&_0x461547['trim']());return _0x235b2a[_0x4e4509(0x127)]>0x1&&(_0x4d9198[_0x4e4509(0x136)]=_0x235b2a[0x0][_0x4e4509(0x128)](),_0x235b2a[_0x4e4509(0x134)](0x0,0x1)),_0x4d9198[_0x4e4509(0x12d)]=('/'+_0x235b2a['join']('/'))[_0x4e4509(0x125)](/(\.ts|\.js)$/,'')[_0x4e4509(0x125)](/\/{2,}/g,'/')[_0x4e4509(0x15c)](/[\/|A-Z]*[^A-Z]+/g)[_0x4e4509(0x146)]('-')[_0x4e4509(0x128)]()['replace'](/\/\-/g,'/'),_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x166)](_0x4e4509(0x13c))&&(_0x4d9198['route']=_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0x7)),_0x4d9198['route'][_0x4e4509(0x166)](_0x4e4509(0x12c))&&(_0x4d9198[_0x4e4509(0x12d)]=_0x4d9198['route'][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0xb)),_0x4d9198;}else{if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x14d))){const _0x11cbbb=_0x15a86e[_0x4e4509(0x120)](0x0,_0x15a86e[_0x4e4509(0x122)]('/apps/')+0x5),_0x1840f1=_0x15a86e[_0x4e4509(0x120)](_0x11cbbb[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x125)](/(\\|\/)/g,'/')[_0x4e4509(0x12e)]('/')[0x0];if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x14d)+_0x1840f1+'/controller/')){const _0x5e7672=_0x15a86e[_0x4e4509(0x120)]((_0x11cbbb+'/'+_0x1840f1+'/controller/')[_0x4e4509(0x127)])['split']('/')[_0x4e4509(0x132)](_0x2fe5ba=>_0x2fe5ba&&_0x2fe5ba['trim']());return _0x5e7672['length']>0x1&&(_0x4d9198[_0x4e4509(0x136)]=_0x5e7672[0x0]['toLowerCase'](),_0x5e7672[_0x4e4509(0x134)](0x0,0x1)),_0x4d9198[_0x4e4509(0x137)]=_0x1840f1,_0x4d9198['route']=('/'+_0x1840f1+'/'+_0x5e7672[_0x4e4509(0x146)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4e4509(0x125)](/\/{2,}/g,'/')[_0x4e4509(0x15c)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x4e4509(0x128)]()[_0x4e4509(0x125)](/\/\-/g,'/'),_0x4d9198['route'][_0x4e4509(0x166)](_0x4e4509(0x13c))&&(_0x4d9198['route']=_0x4d9198['route'][_0x4e4509(0x120)](0x0,_0x4d9198['route'][_0x4e4509(0x127)]-0x7)),_0x4d9198['route'][_0x4e4509(0x166)]('-controller')&&(_0x4d9198[_0x4e4509(0x12d)]=_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0xb)),_0x4d9198;}throw new Error(_0x15a86e+_0x4e4509(0x156)+_0x1840f1+_0x4e4509(0x157));}}throw new Error(_0x15a86e+_0x4e4509(0x133));}exports[a3_0x1ee7cc(0x143)]=parseRoute;
|
|
1
|
+
function a3_0x7b33(){const _0x505e5d=['@anncic-api/validator','1519500nmRQLj','post','replace','3388696TFANRF','route','4YRYmuk','RequestMapping','module','\x20文件请放在app/controller/文件下','7309608RyIHif','startsWith','cwd','apimit','(((.+)+)+)+$','/controller/文件下','toString','AppsConfigTmp','Action','splice','validate','indexOf','toLowerCase','filepath','assign','1148248flVtWl','saveModule','match','ActionApi','length','existsSync','filter','basic/controller/','-action','getClassMetadata','ACTION_ROUTE_KEY','split','app/controller/','validationOptions','routerName','APPSCONFIG_KEY','4469318LqzuIN','ACTION_KEY','trim','middlewareIgnore','parseRoute','get','4267388GBUdyF','createCustomMethodDecorator','attachClassMetadata','tagName','rootpath','string','-controller','/apps/','../types/action','\x20文件请放在apps/','apps/','saveClassMetadata','/config.','search','isArray','/controller/','Controller','middleware','description','endsWith','undefined','1632180UXdPLg','join','Validator','substring','prefix'];a3_0x7b33=function(){return _0x505e5d;};return a3_0x7b33();}const a3_0x2c7720=a3_0x4b36;(function(_0xe0fc14,_0x1723d7){const _0x548aa2=a3_0x4b36,_0x11cb22=_0xe0fc14();while(!![]){try{const _0x537264=-parseInt(_0x548aa2(0x172))/0x1+parseInt(_0x548aa2(0x15f))/0x2*(parseInt(_0x548aa2(0x154))/0x3)+-parseInt(_0x548aa2(0x188))/0x4+parseInt(_0x548aa2(0x15a))/0x5+parseInt(_0x548aa2(0x163))/0x6+parseInt(_0x548aa2(0x182))/0x7+-parseInt(_0x548aa2(0x15d))/0x8;if(_0x537264===_0x1723d7)break;else _0x11cb22['push'](_0x11cb22['shift']());}catch(_0x58fbc2){_0x11cb22['push'](_0x11cb22['shift']());}}}(a3_0x7b33,0x94f20));const a3_0x1362ce=(function(){let _0x7c5a97=!![];return function(_0x546422,_0x20c63b){const _0x5c0047=_0x7c5a97?function(){if(_0x20c63b){const _0x19ea7e=_0x20c63b['apply'](_0x546422,arguments);return _0x20c63b=null,_0x19ea7e;}}:function(){};return _0x7c5a97=![],_0x5c0047;};}()),a3_0x2c65e3=a3_0x1362ce(this,function(){const _0x2f54cf=a3_0x4b36;return a3_0x2c65e3[_0x2f54cf(0x169)]()[_0x2f54cf(0x14c)](_0x2f54cf(0x167))[_0x2f54cf(0x169)]()['constructor'](a3_0x2c65e3)[_0x2f54cf(0x14c)](_0x2f54cf(0x167));});a3_0x2c65e3();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x2c7720(0x186)]=exports[a3_0x2c7720(0x175)]=exports[a3_0x2c7720(0x16b)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x2c7720(0x159)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a3_0x2c7720(0x147));function Action(_0xfe8e83,_0x18273b,_0x5471af={'middleware':[],'sensitive':!![]}){return _0x7e34a3=>{const _0x29341b=a3_0x4b36;var _0x9ba2ca;_0x5471af[_0x29341b(0x142)]=_0x18273b;const _0x5301d5=parseRoute(_0xfe8e83);if(_0x5301d5[_0x29341b(0x161)]){_0x5471af[_0x29341b(0x158)]=_0x5471af['prefix']?'/'+_0x5301d5[_0x29341b(0x161)]+'/'+_0x5471af[_0x29341b(0x158)]:'/'+_0x5301d5[_0x29341b(0x15e)];_0x5301d5['prefix']&&(_0x5471af[_0x29341b(0x158)]='/'+_0x5301d5[_0x29341b(0x158)]+'/'+_0x5471af['prefix']);if(fs[_0x29341b(0x177)](_0x5301d5[_0x29341b(0x143)]+_0x29341b(0x146)+_0x5301d5['module']+_0x29341b(0x14b)+(lodash[_0x29341b(0x152)](_0x5301d5[_0x29341b(0x170)],'ts')?'ts':'js'))){const _0x165738=include(_0x5301d5[_0x29341b(0x143)]+_0x29341b(0x146)+_0x5301d5['module']+_0x29341b(0x14b)+(lodash[_0x29341b(0x152)](_0x5301d5['filepath'],'ts')?'ts':'js'));if(lodash[_0x29341b(0x14d)](_0x165738[_0x29341b(0x150)])&&_0x165738[_0x29341b(0x150)][_0x29341b(0x176)]>0x0)for(let _0xe93e57 in _0x165738['middleware']){if(((_0x9ba2ca=_0x165738===null||_0x165738===void 0x0?void 0x0:_0x165738[_0x29341b(0x185)])===null||_0x9ba2ca===void 0x0?void 0x0:_0x9ba2ca['length'])>0x0&&_0x165738[_0x29341b(0x185)][_0x29341b(0x16e)](_0x165738['middleware'][_0xe93e57])!=-0x1)continue;_0x5471af[_0x29341b(0x150)]['push'](_0x165738[_0x29341b(0x150)][_0xe93e57]);}const _0x2509dc=(0x0,core_1[_0x29341b(0x17b)])(action_1[_0x29341b(0x181)],action_1[_0x29341b(0x16a)])||{};_0x2509dc[''+_0x5301d5[_0x29341b(0x161)]]=_0x165738,(0x0,core_1[_0x29341b(0x14a)])(action_1[_0x29341b(0x181)],_0x2509dc,action_1['AppsConfigTmp']);}_0x5471af[_0x29341b(0x158)]=_0x5471af[_0x29341b(0x158)][_0x29341b(0x16f)]()[_0x29341b(0x15c)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x29341b(0x183)],_0x7e34a3),(0x0,core_1['Controller'])(_0x5471af[_0x29341b(0x158)],_0x5471af)(_0x7e34a3),(0x0,core_1[_0x29341b(0x14a)])(action_1['ACTION_KEY'],{'prefix':_0x5471af[_0x29341b(0x158)],'pprefix':_0x5301d5[_0x29341b(0x158)],'module':_0x5301d5[_0x29341b(0x161)],'filepath':_0x5301d5[_0x29341b(0x170)],'routerOptions':_0x5471af},_0x7e34a3);}else _0x5471af['prefix']=_0x5471af[_0x29341b(0x158)]?'/'+_0x5471af[_0x29341b(0x158)]:'/'+_0x5301d5[_0x29341b(0x15e)],_0x5301d5['prefix']&&(_0x5471af[_0x29341b(0x158)]='/'+_0x5301d5[_0x29341b(0x158)]+'/'+_0x5471af[_0x29341b(0x158)]),_0x5471af[_0x29341b(0x158)]=_0x5471af['prefix']['toLowerCase']()[_0x29341b(0x15c)](/\/{2,}/g,'/'),(0x0,core_1[_0x29341b(0x173)])(action_1[_0x29341b(0x183)],_0x7e34a3),(0x0,core_1[_0x29341b(0x14f)])(_0x5471af[_0x29341b(0x158)],_0x5471af)(_0x7e34a3),(0x0,core_1[_0x29341b(0x14a)])(action_1[_0x29341b(0x183)],{'prefix':_0x5471af[_0x29341b(0x158)],'module':_0x5301d5[_0x29341b(0x161)],'pprefix':_0x5301d5['prefix'],'filepath':_0x5301d5[_0x29341b(0x170)],'routerOptions':_0x5471af},_0x7e34a3);};}exports['Action']=Action,Action[a3_0x2c7720(0x187)]=function(_0x9b537f,_0x356bee='/',_0x3acb05={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x493f09,_0x3fd4dd,_0x4f049a)=>{const _0x2ff6e2=a3_0x4b36;ActionApi(_0x9b537f,_0x2ff6e2(0x187),_0x356bee,_0x3acb05)(_0x493f09,_0x3fd4dd,_0x4f049a);};},Action[a3_0x2c7720(0x15b)]=function(_0xc2f802,_0x5f5686='/',_0x52df00={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x254726,_0x403188,_0x4597bb)=>{ActionApi(_0xc2f802,'post',_0x5f5686,_0x52df00)(_0x254726,_0x403188,_0x4597bb);};};function ActionApi(_0x357b0,_0x311239='get',_0x569f48='/',_0x54bee0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1c0164,_0x1465a4,_0x4dfeaa)=>{const _0x3e0cef=a3_0x4b36;var _0x5b1064,_0x326b05,_0x3c7697;!_0x54bee0[_0x3e0cef(0x150)]&&(_0x54bee0[_0x3e0cef(0x150)]=[]);!((_0x5b1064=_0x54bee0===null||_0x54bee0===void 0x0?void 0x0:_0x54bee0['validate'])===null||_0x5b1064===void 0x0?void 0x0:_0x5b1064[_0x3e0cef(0x17f)])&&(_0x54bee0[_0x3e0cef(0x16d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3e0cef(0x144)}});if(!_0x569f48)_0x569f48='/';else typeof _0x569f48==_0x3e0cef(0x144)&&(!_0x569f48[_0x3e0cef(0x164)]('/')&&!_0x569f48[_0x3e0cef(0x164)]('-')&&(_0x569f48='/'+_0x569f48));typeof _0x54bee0[_0x3e0cef(0x166)]==_0x3e0cef(0x153)&&(_0x54bee0[_0x3e0cef(0x166)]=!![]);if(((_0x326b05=_0x54bee0===null||_0x54bee0===void 0x0?void 0x0:_0x54bee0[_0x3e0cef(0x150)])===null||_0x326b05===void 0x0?void 0x0:_0x326b05['length'])>0x0&&((_0x3c7697=_0x54bee0===null||_0x54bee0===void 0x0?void 0x0:_0x54bee0[_0x3e0cef(0x185)])===null||_0x3c7697===void 0x0?void 0x0:_0x3c7697[_0x3e0cef(0x176)])>0x0)for(let _0x13b137 in _0x54bee0['middleware']){_0x54bee0[_0x3e0cef(0x185)][_0x3e0cef(0x16e)](_0x54bee0[_0x3e0cef(0x150)][_0x13b137])!==-0x1&&(_0x54bee0['middleware'][_0x13b137]=null);}_0x54bee0['routerName']=_0x357b0,(0x0,validator_1[_0x3e0cef(0x156)])(_0x54bee0['validate'])(_0x1c0164,_0x1465a4,_0x4dfeaa),(0x0,core_2[_0x3e0cef(0x160)])(Object[_0x3e0cef(0x171)](_0x54bee0,{'path':_0x569f48,'requestMethod':(_0x311239||_0x3e0cef(0x187))['toLowerCase']()}))(_0x1c0164,_0x1465a4,_0x4dfeaa),(0x0,core_2[_0x3e0cef(0x18a)])(action_1[_0x3e0cef(0x17c)],{'path':_0x569f48,'method':_0x1465a4,'apimit':_0x54bee0[_0x3e0cef(0x166)],'intercept':_0x54bee0['intercept'],'routerName':_0x54bee0[_0x3e0cef(0x180)],'description':_0x54bee0[_0x3e0cef(0x151)],'middleware':(_0x54bee0[_0x3e0cef(0x150)]||[])['filter'](_0x3b2e6d=>!!_0x3b2e6d),'requestMethod':(_0x311239||'get')[_0x3e0cef(0x16f)]()},_0x1c0164),(0x0,core_2[_0x3e0cef(0x189)])(action_1[_0x3e0cef(0x17c)],{'path':_0x569f48,'method':_0x1465a4,'apimit':_0x54bee0[_0x3e0cef(0x166)],'intercept':_0x54bee0['intercept'],'routerName':_0x54bee0[_0x3e0cef(0x180)],'description':_0x54bee0[_0x3e0cef(0x151)],'middleware':(_0x54bee0[_0x3e0cef(0x150)]||[])[_0x3e0cef(0x178)](_0x163bfd=>!!_0x163bfd),'requestMethod':(_0x311239||'get')[_0x3e0cef(0x16f)]()})(_0x1c0164,_0x1465a4,_0x4dfeaa);};}exports[a3_0x2c7720(0x175)]=ActionApi;function parseRoute(_0x3f910b){const _0x238c35=a3_0x2c7720;_0x3f910b=_0x3f910b[_0x238c35(0x15c)](/(\\|\/)/g,'/');const _0xb29b70=process[_0x238c35(0x165)]()[_0x238c35(0x15c)](/(\\|\/)/g,'/'),_0xeebaf6=_0x3f910b[_0x238c35(0x157)](0x0,_0xb29b70[_0x238c35(0x176)]+_0x3f910b[_0x238c35(0x157)](_0xb29b70[_0x238c35(0x176)]+0x1)[_0x238c35(0x16e)]('/')+0x1),_0x1fd3fc=_0x3f910b[_0x238c35(0x157)](_0xeebaf6['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0xe030f3={'route':'','prefix':![],'module':![],'rootpath':_0xeebaf6,'filepath':_0x1fd3fc};if(_0x1fd3fc[_0x238c35(0x164)](_0x238c35(0x17e))||_0x1fd3fc['startsWith'](_0x238c35(0x179))){const _0xab5d04=_0x1fd3fc[_0x238c35(0x157)]((_0x1fd3fc['startsWith'](_0x238c35(0x17e))?_0x238c35(0x17e):_0x238c35(0x179))[_0x238c35(0x176)])[_0x238c35(0x17d)]('/')['filter'](_0x352c2a=>_0x352c2a&&_0x352c2a['trim']());return _0xab5d04[_0x238c35(0x176)]>0x1&&(_0xe030f3['prefix']=_0xab5d04[0x0][_0x238c35(0x16f)](),_0xab5d04[_0x238c35(0x16c)](0x0,0x1)),_0xe030f3['route']=('/'+_0xab5d04[_0x238c35(0x155)]('/'))[_0x238c35(0x15c)](/(\.ts|\.js)$/,'')[_0x238c35(0x15c)](/\/{2,}/g,'/')[_0x238c35(0x174)](/[\/|A-Z]*[^A-Z]+/g)[_0x238c35(0x155)]('-')[_0x238c35(0x16f)]()[_0x238c35(0x15c)](/\/\-/g,'/'),_0xe030f3['route'][_0x238c35(0x152)](_0x238c35(0x17a))&&(_0xe030f3[_0x238c35(0x15e)]=_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x157)](0x0,_0xe030f3[_0x238c35(0x15e)]['length']-0x7)),_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x152)](_0x238c35(0x145))&&(_0xe030f3[_0x238c35(0x15e)]=_0xe030f3['route'][_0x238c35(0x157)](0x0,_0xe030f3[_0x238c35(0x15e)]['length']-0xb)),_0xe030f3;}else{if(_0x1fd3fc[_0x238c35(0x164)](_0x238c35(0x149))){const _0x40f876=_0x1fd3fc[_0x238c35(0x157)](0x0,_0x1fd3fc[_0x238c35(0x16e)](_0x238c35(0x146))+0x5),_0xc76a75=_0x1fd3fc[_0x238c35(0x157)](_0x40f876[_0x238c35(0x176)]+0x1)[_0x238c35(0x15c)](/(\\|\/)/g,'/')[_0x238c35(0x17d)]('/')[0x0];if(_0x1fd3fc['startsWith'](_0x238c35(0x149)+_0xc76a75+_0x238c35(0x14e))){const _0xf64ce2=_0x1fd3fc[_0x238c35(0x157)]((_0x40f876+'/'+_0xc76a75+_0x238c35(0x14e))[_0x238c35(0x176)])['split']('/')[_0x238c35(0x178)](_0x5f2b6d=>_0x5f2b6d&&_0x5f2b6d[_0x238c35(0x184)]());return _0xf64ce2['length']>0x1&&(_0xe030f3[_0x238c35(0x158)]=_0xf64ce2[0x0][_0x238c35(0x16f)](),_0xf64ce2[_0x238c35(0x16c)](0x0,0x1)),_0xe030f3['module']=_0xc76a75,_0xe030f3[_0x238c35(0x15e)]=('/'+_0xc76a75+'/'+_0xf64ce2[_0x238c35(0x155)]('/'))[_0x238c35(0x15c)](/(\.ts|\.js)$/,'')[_0x238c35(0x15c)](/\/{2,}/g,'/')[_0x238c35(0x174)](/[\/|A-Z]*[^A-Z]+/g)[_0x238c35(0x155)]('-')['toLowerCase']()[_0x238c35(0x15c)](/\/\-/g,'/'),_0xe030f3[_0x238c35(0x15e)]['endsWith'](_0x238c35(0x17a))&&(_0xe030f3[_0x238c35(0x15e)]=_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x157)](0x0,_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x176)]-0x7)),_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x152)](_0x238c35(0x145))&&(_0xe030f3[_0x238c35(0x15e)]=_0xe030f3[_0x238c35(0x15e)]['substring'](0x0,_0xe030f3[_0x238c35(0x15e)][_0x238c35(0x176)]-0xb)),_0xe030f3;}throw new Error(_0x1fd3fc+_0x238c35(0x148)+_0xc76a75+_0x238c35(0x168));}}throw new Error(_0x1fd3fc+_0x238c35(0x162));}function a3_0x4b36(_0x3f87d5,_0xae3b1){const _0x158b31=a3_0x7b33();return a3_0x4b36=function(_0x2c65e3,_0x1362ce){_0x2c65e3=_0x2c65e3-0x142;let _0x7b3369=_0x158b31[_0x2c65e3];return _0x7b3369;},a3_0x4b36(_0x3f87d5,_0xae3b1);}exports[a3_0x2c7720(0x186)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x5a758e=a4_0x2b28;function a4_0x2b28(_0x20781a,_0x202c12){const _0x3abfba=a4_0xe9de();return a4_0x2b28=function(_0x52027c,_0x261846){_0x52027c=_0x52027c-0x160;let _0xe9dec6=_0x3abfba[_0x52027c];return _0xe9dec6;},a4_0x2b28(_0x20781a,_0x202c12);}(function(_0x337afb,_0x10616e){const _0x2dcc14=a4_0x2b28,_0x509710=_0x337afb();while(!![]){try{const _0x5a25f9=parseInt(_0x2dcc14(0x171))/0x1*(parseInt(_0x2dcc14(0x179))/0x2)+parseInt(_0x2dcc14(0x16f))/0x3*(parseInt(_0x2dcc14(0x16a))/0x4)+-parseInt(_0x2dcc14(0x175))/0x5+parseInt(_0x2dcc14(0x166))/0x6+parseInt(_0x2dcc14(0x168))/0x7*(-parseInt(_0x2dcc14(0x167))/0x8)+parseInt(_0x2dcc14(0x162))/0x9*(-parseInt(_0x2dcc14(0x169))/0xa)+-parseInt(_0x2dcc14(0x17d))/0xb*(-parseInt(_0x2dcc14(0x16b))/0xc);if(_0x5a25f9===_0x10616e)break;else _0x509710['push'](_0x509710['shift']());}catch(_0x40b136){_0x509710['push'](_0x509710['shift']());}}}(a4_0xe9de,0x3acf6));const a4_0x261846=(function(){let _0x2abf79=!![];return function(_0x4a2965,_0x37f38b){const _0x349b1a=_0x2abf79?function(){const _0x36bd82=a4_0x2b28;if(_0x37f38b){const _0x48f88f=_0x37f38b[_0x36bd82(0x174)](_0x4a2965,arguments);return _0x37f38b=null,_0x48f88f;}}:function(){};return _0x2abf79=![],_0x349b1a;};}()),a4_0x52027c=a4_0x261846(this,function(){const _0x13e17b=a4_0x2b28;return a4_0x52027c['toString']()['search']('(((.+)+)+)+$')[_0x13e17b(0x17a)]()[_0x13e17b(0x16d)](a4_0x52027c)[_0x13e17b(0x165)](_0x13e17b(0x163));});function a4_0xe9de(){const _0x20c3ed=['ApitestService','11yVkfyh','isDevelopmentEnvironment','../service/ApitestService','315tFbFNU','(((.+)+)+)+$','__esModule','search','700374oWunPi','8176ECcPze','2653orPKNv','48110kFOybv','4DDqxir','3419124tohRCa','RequestMapping','constructor','REQUEST_OBJ_CTX_KEY','535767IWRVnw','get','454851LsKKVQ','value','filepath','apply','1192435JDiIPj','getAsync','getApplicationContext','defineProperty','2TnxViw','toString','MidwayEnvironmentService'];a4_0xe9de=function(){return _0x20c3ed;};return a4_0xe9de();}a4_0x52027c();'use strict';Object[a4_0x5a758e(0x178)](exports,a4_0x5a758e(0x164),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x5a758e(0x161));function Apitest(_0x5aa972='/apitest',_0x14d2fb){return(_0x32453c,_0x8aa758,_0x3aa243)=>{const _0x2c9595=a4_0x2b28;return(0x0,core_1[_0x2c9595(0x16c)])({'path':_0x5aa972,'requestMethod':_0x2c9595(0x170)})(_0x32453c,_0x8aa758,_0x3aa243),_0x3aa243[_0x2c9595(0x172)]=async function(..._0x36bf60){const _0x44dd1b=_0x2c9595;var _0x571463;const _0x423be6=(_0x571463=this[core_1[_0x44dd1b(0x16e)]])===null||_0x571463===void 0x0?void 0x0:_0x571463['app'];if(_0x423be6&&_0x423be6['getConfig']('apitest')){const _0x272cd6=await _0x423be6[_0x44dd1b(0x177)]()[_0x44dd1b(0x176)](ApitestService_1[_0x44dd1b(0x17c)]),_0x290a69=await _0x423be6[_0x44dd1b(0x177)]()[_0x44dd1b(0x176)](core_1[_0x44dd1b(0x17b)]);return _0x290a69[_0x44dd1b(0x160)]()&&(_0x14d2fb[_0x44dd1b(0x173)]=!![]),await _0x272cd6['apidoc'](_0x14d2fb);}return'';},_0x3aa243;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x2939c2=a5_0x2dc6;(function(_0x54573e,_0x236985){const _0x18f9bb=a5_0x2dc6,_0x8b61d7=_0x54573e();while(!![]){try{const _0xdf41cf=parseInt(_0x18f9bb(0x194))/0x1*(parseInt(_0x18f9bb(0x18c))/0x2)+-parseInt(_0x18f9bb(0x186))/0x3*(parseInt(_0x18f9bb(0x189))/0x4)+parseInt(_0x18f9bb(0x192))/0x5+parseInt(_0x18f9bb(0x18d))/0x6+parseInt(_0x18f9bb(0x195))/0x7*(parseInt(_0x18f9bb(0x188))/0x8)+-parseInt(_0x18f9bb(0x183))/0x9*(parseInt(_0x18f9bb(0x185))/0xa)+parseInt(_0x18f9bb(0x184))/0xb;if(_0xdf41cf===_0x236985)break;else _0x8b61d7['push'](_0x8b61d7['shift']());}catch(_0x30abeb){_0x8b61d7['push'](_0x8b61d7['shift']());}}}(a5_0x201e,0x1ab0b));const a5_0x364874=(function(){let _0x14a14b=!![];return function(_0x3a90a3,_0x2ec404){const _0x3ca17f=_0x14a14b?function(){const _0x2c7171=a5_0x2dc6;if(_0x2ec404){const _0x2c4036=_0x2ec404[_0x2c7171(0x19b)](_0x3a90a3,arguments);return _0x2ec404=null,_0x2c4036;}}:function(){};return _0x14a14b=![],_0x3ca17f;};}()),a5_0x74b52b=a5_0x364874(this,function(){const _0x5ed317=a5_0x2dc6;return a5_0x74b52b['toString']()[_0x5ed317(0x187)](_0x5ed317(0x190))['toString']()[_0x5ed317(0x18a)](a5_0x74b52b)[_0x5ed317(0x187)](_0x5ed317(0x190));});a5_0x74b52b();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a5_0x2939c2(0x191)]=exports['Intercept']=void 0x0;const core_1=require(a5_0x2939c2(0x19a)),intercept_1=require('../types/intercept');function Intercept(_0x20f6c9){return _0x1a84c7=>{const _0x43c283=a5_0x2dc6,_0x57dd03=(0x0,core_1[_0x43c283(0x193)])(intercept_1[_0x43c283(0x198)],intercept_1['InterceptTargetTmp'])||{};for(let _0x42639a of Array[_0x43c283(0x18b)](_0x20f6c9)?_0x20f6c9:[_0x20f6c9]){_0x42639a=_0x42639a[_0x43c283(0x18e)]();!(_0x57dd03===null||_0x57dd03===void 0x0?void 0x0:_0x57dd03[_0x42639a])&&(_0x57dd03[_0x42639a]=[]);if(_0x57dd03[_0x42639a]['includes'](_0x1a84c7))continue;_0x57dd03[_0x42639a][_0x43c283(0x199)](_0x1a84c7);}(0x0,core_1['Provide'])()(_0x1a84c7),(0x0,core_1[_0x43c283(0x197)])(core_1[_0x43c283(0x196)][_0x43c283(0x182)])(_0x1a84c7),(0x0,core_1[_0x43c283(0x18f)])(intercept_1[_0x43c283(0x198)],_0x57dd03,intercept_1['InterceptTargetTmp']);};}exports['Intercept']=Intercept;class IIntercept{async['match'](_0x4b2e14,_0x32bb87,_0x3d8b98){return!![];}}function a5_0x2dc6(_0x14f98e,_0x2faa0e){const _0x533b77=a5_0x201e();return a5_0x2dc6=function(_0x74b52b,_0x364874){_0x74b52b=_0x74b52b-0x182;let _0x201e7f=_0x533b77[_0x74b52b];return _0x201e7f;},a5_0x2dc6(_0x14f98e,_0x2faa0e);}exports[a5_0x2939c2(0x191)]=IIntercept;function a5_0x201e(){const _0x2fcd72=['constructor','isArray','26anZLpk','377106tsWnji','toUpperCase','saveClassMetadata','(((.+)+)+)+$','IIntercept','419505KBPsHe','getClassMetadata','8859bzKWBf','120771OTSXCu','ScopeEnum','Scope','INTERCEPT_KEY','push','@midwayjs/core','apply','Singleton','1695519vtQnmx','406593hqXytO','10XuAzxt','39PgSZcL','search','8hnmxMk','5668ahcCQC'];a5_0x201e=function(){return _0x2fcd72;};return a5_0x201e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x2b7d74=a6_0x365d;function a6_0x365d(_0xc8f560,_0x3e1ee3){var _0x39f71c=a6_0x20e3();return a6_0x365d=function(_0x215941,_0x50eecb){_0x215941=_0x215941-0x114;var _0x20e3a8=_0x39f71c[_0x215941];return _0x20e3a8;},a6_0x365d(_0xc8f560,_0x3e1ee3);}(function(_0x30dac7,_0x38123a){var _0x3eb30e=a6_0x365d,_0x3c53cb=_0x30dac7();while(!![]){try{var _0x2a284f=parseInt(_0x3eb30e(0x127))/0x1*(parseInt(_0x3eb30e(0x118))/0x2)+parseInt(_0x3eb30e(0x135))/0x3*(parseInt(_0x3eb30e(0x136))/0x4)+-parseInt(_0x3eb30e(0x12f))/0x5+-parseInt(_0x3eb30e(0x125))/0x6+-parseInt(_0x3eb30e(0x132))/0x7+-parseInt(_0x3eb30e(0x11e))/0x8+parseInt(_0x3eb30e(0x134))/0x9;if(_0x2a284f===_0x38123a)break;else _0x3c53cb['push'](_0x3c53cb['shift']());}catch(_0x3f541b){_0x3c53cb['push'](_0x3c53cb['shift']());}}}(a6_0x20e3,0xe1076));function a6_0x20e3(){var _0x299795=['12GSjjIj','792108uAXHdq','apply','decorate','请求超时,请重试','HEADERS_DEVICE','function','6jXMoZt','(((.+)+)+)+$','search','验证失败,请重新登录','getOwnPropertyDescriptor','design:type','2701288TwnXnp','HEADERS_SIGNATURE','__metadata','请求头信息不完整','TIMEOUT_LOGINTIME','登录超时,请重新登录','defineProperty','5693616enfgKS','object','572579PWPmoq','TIMEOUT','__esModule','HEADERS_LACK','请使用正确的设备','HEADERS_CHECKCODE','__decorate','toString','2451515TKVZKg','ApiError','metadata','3014823MWmWpJ','length','5575158Qdvdoj'];a6_0x20e3=function(){return _0x299795;};return a6_0x20e3();}var a6_0x50eecb=(function(){var _0x34ff43=!![];return function(_0x43d28a,_0x191e41){var _0x5514a6=_0x34ff43?function(){var _0x4c0d97=a6_0x365d;if(_0x191e41){var _0x1bffd7=_0x191e41[_0x4c0d97(0x137)](_0x43d28a,arguments);return _0x191e41=null,_0x1bffd7;}}:function(){};return _0x34ff43=![],_0x5514a6;};}()),a6_0x215941=a6_0x50eecb(this,function(){var _0x299bc4=a6_0x365d;return a6_0x215941[_0x299bc4(0x12e)]()[_0x299bc4(0x11a)](_0x299bc4(0x119))[_0x299bc4(0x12e)]()['constructor'](a6_0x215941)['search'](_0x299bc4(0x119));});a6_0x215941();'use strict';var __decorate=this&&this[a6_0x2b7d74(0x12d)]||function(_0x4cdb54,_0x580247,_0x1734e3,_0x4327bc){var _0x704f25=a6_0x2b7d74,_0x4ddbe7=arguments[_0x704f25(0x133)],_0x53d960=_0x4ddbe7<0x3?_0x580247:_0x4327bc===null?_0x4327bc=Object[_0x704f25(0x11c)](_0x580247,_0x1734e3):_0x4327bc,_0x46a9c0;if(typeof Reflect===_0x704f25(0x126)&&typeof Reflect[_0x704f25(0x114)]==='function')_0x53d960=Reflect['decorate'](_0x4cdb54,_0x580247,_0x1734e3,_0x4327bc);else{for(var _0x236c01=_0x4cdb54['length']-0x1;_0x236c01>=0x0;_0x236c01--)if(_0x46a9c0=_0x4cdb54[_0x236c01])_0x53d960=(_0x4ddbe7<0x3?_0x46a9c0(_0x53d960):_0x4ddbe7>0x3?_0x46a9c0(_0x580247,_0x1734e3,_0x53d960):_0x46a9c0(_0x580247,_0x1734e3))||_0x53d960;}return _0x4ddbe7>0x3&&_0x53d960&&Object[_0x704f25(0x124)](_0x580247,_0x1734e3,_0x53d960),_0x53d960;},__metadata=this&&this[a6_0x2b7d74(0x120)]||function(_0x4f7979,_0x65aa27){var _0x273491=a6_0x2b7d74;if(typeof Reflect===_0x273491(0x126)&&typeof Reflect[_0x273491(0x131)]===_0x273491(0x117))return Reflect[_0x273491(0x131)](_0x4f7979,_0x65aa27);};Object['defineProperty'](exports,a6_0x2b7d74(0x129),{'value':!![]}),exports[a6_0x2b7d74(0x130)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x2b7d74(0x130)]=ApiError,ApiError[a6_0x2b7d74(0x128)]=0x19003,ApiError[a6_0x2b7d74(0x12a)]=0x18e72,ApiError[a6_0x2b7d74(0x116)]=0x18e73,ApiError[a6_0x2b7d74(0x11f)]=0x18e74,ApiError[a6_0x2b7d74(0x12c)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a6_0x2b7d74(0x115)),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,a6_0x2b7d74(0x128),void 0x0),__decorate([AnnErrorMsg(a6_0x2b7d74(0x121)),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,a6_0x2b7d74(0x12a),void 0x0),__decorate([AnnErrorMsg(a6_0x2b7d74(0x12b)),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,a6_0x2b7d74(0x116),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a6_0x2b7d74(0x11b)),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,a6_0x2b7d74(0x12c),void 0x0),__decorate([AnnErrorMsg(a6_0x2b7d74(0x123)),__metadata(a6_0x2b7d74(0x11d),Object)],ApiError,a6_0x2b7d74(0x122),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7_0x4cf476=a7_0x48a2;(function(_0xf7cd6e,_0xc531c8){const _0x657c8b=a7_0x48a2,_0x8a59f2=_0xf7cd6e();while(!![]){try{const _0x4567d8=parseInt(_0x657c8b(0xc9))/0x1*(parseInt(_0x657c8b(0xbe))/0x2)+-parseInt(_0x657c8b(0xcc))/0x3*(parseInt(_0x657c8b(0xc6))/0x4)+-parseInt(_0x657c8b(0xc4))/0x5+-parseInt(_0x657c8b(0xb7))/0x6*(parseInt(_0x657c8b(0xbd))/0x7)+parseInt(_0x657c8b(0xc8))/0x8*(parseInt(_0x657c8b(0xb9))/0x9)+-parseInt(_0x657c8b(0xc0))/0xa*(-parseInt(_0x657c8b(0xb8))/0xb)+-parseInt(_0x657c8b(0xbc))/0xc*(-parseInt(_0x657c8b(0xbf))/0xd);if(_0x4567d8===_0xc531c8)break;else _0x8a59f2['push'](_0x8a59f2['shift']());}catch(_0x482ee5){_0x8a59f2['push'](_0x8a59f2['shift']());}}}(a7_0x8988,0xc7b46));function a7_0x8988(){const _0x4fffb8=['3OrQPEh','AppsConfigTmp','getClassMetadata','25158DQNWon','32076TZHkvF','1045584MvgZvP','constructor','__esModule','3384tEDvje','336aTqnXk','28pEISNy','16302hljmoK','4530tEAyKV','search','defineProperty','toString','6098720tsMVIU','@midwayjs/core','5731624YUBXVJ','(((.+)+)+)+$','64ortNua','76280LrnFRe','get','getAppsConfig'];a7_0x8988=function(){return _0x4fffb8;};return a7_0x8988();}function a7_0x48a2(_0xc604a7,_0x5c7ddb){const _0x4fc5f2=a7_0x8988();return a7_0x48a2=function(_0x53ad65,_0x545436){_0x53ad65=_0x53ad65-0xb6;let _0x8988b1=_0x4fc5f2[_0x53ad65];return _0x8988b1;},a7_0x48a2(_0xc604a7,_0x5c7ddb);}const a7_0x545436=(function(){let _0x476505=!![];return function(_0x4df2df,_0x4a05f3){const _0x39df22=_0x476505?function(){if(_0x4a05f3){const _0xea31cf=_0x4a05f3['apply'](_0x4df2df,arguments);return _0x4a05f3=null,_0xea31cf;}}:function(){};return _0x476505=![],_0x39df22;};}()),a7_0x53ad65=a7_0x545436(this,function(){const _0x1ce157=a7_0x48a2;return a7_0x53ad65[_0x1ce157(0xc3)]()[_0x1ce157(0xc1)](_0x1ce157(0xc7))[_0x1ce157(0xc3)]()[_0x1ce157(0xba)](a7_0x53ad65)[_0x1ce157(0xc1)](_0x1ce157(0xc7));});a7_0x53ad65();'use strict';Object[a7_0x4cf476(0xc2)](exports,a7_0x4cf476(0xbb),{'value':!![]}),exports[a7_0x4cf476(0xcb)]=void 0x0;const core_1=require(a7_0x4cf476(0xc5)),action_1=require('../types/action');function getAppsConfig(_0x2e5c0e){const _0x3595a5=a7_0x4cf476,_0x3265d8=(0x0,core_1[_0x3595a5(0xb6)])(action_1['APPSCONFIG_KEY'],action_1[_0x3595a5(0xcd)])||{};return _0x2e5c0e?lodash[_0x3595a5(0xca)](_0x3265d8,_0x2e5c0e):_0x3265d8;}exports[a7_0x4cf476(0xcb)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x1826a1=a8_0x1f38;(function(_0x3f624a,_0x28fdd4){const _0x5156bf=a8_0x1f38,_0x59d3fb=_0x3f624a();while(!![]){try{const _0x55e8fe=parseInt(_0x5156bf(0x154))/0x1+-parseInt(_0x5156bf(0x18a))/0x2*(-parseInt(_0x5156bf(0x152))/0x3)+-parseInt(_0x5156bf(0x174))/0x4+-parseInt(_0x5156bf(0x16b))/0x5+-parseInt(_0x5156bf(0x1ac))/0x6*(parseInt(_0x5156bf(0x16d))/0x7)+-parseInt(_0x5156bf(0x189))/0x8+parseInt(_0x5156bf(0x15b))/0x9;if(_0x55e8fe===_0x28fdd4)break;else _0x59d3fb['push'](_0x59d3fb['shift']());}catch(_0x55e022){_0x59d3fb['push'](_0x59d3fb['shift']());}}}(a8_0x35fd,0xc4a83));const a8_0x4b13e3=(function(){let _0x50835a=!![];return function(_0x321dd8,_0x5df9a3){const _0x153504=_0x50835a?function(){if(_0x5df9a3){const _0x349c53=_0x5df9a3['apply'](_0x321dd8,arguments);return _0x5df9a3=null,_0x349c53;}}:function(){};return _0x50835a=![],_0x153504;};}()),a8_0xc75bb6=a8_0x4b13e3(this,function(){const _0x166085=a8_0x1f38;return a8_0xc75bb6[_0x166085(0x19d)]()[_0x166085(0x15d)](_0x166085(0x173))[_0x166085(0x19d)]()[_0x166085(0x15a)](a8_0xc75bb6)[_0x166085(0x15d)]('(((.+)+)+)+$');});a8_0xc75bb6();function a8_0x1f38(_0x3cb91c,_0x30c617){const _0x5afc2=a8_0x35fd();return a8_0x1f38=function(_0xc75bb6,_0x4b13e3){_0xc75bb6=_0xc75bb6-0x14e;let _0x35fdad=_0x5afc2[_0xc75bb6];return _0x35fdad;},a8_0x1f38(_0x3cb91c,_0x30c617);}'use strict';Object[a8_0x1826a1(0x197)](exports,a8_0x1826a1(0x16a),{'value':!![]}),exports[a8_0x1826a1(0x1aa)]=void 0x0;const lodash_1=require(a8_0x1826a1(0x155)),validator_1=require(a8_0x1826a1(0x1a7)),core_1=require(a8_0x1826a1(0x17a)),core_2=require(a8_0x1826a1(0x17a)),core_3=require(a8_0x1826a1(0x17a)),action_1=require('../types/action');function getRoutes(_0x595edf={'prefix':'/','module':![]}){const _0x23a326=a8_0x1826a1;var _0x165ed9,_0x2ccafa;const _0x49e356=(0x0,core_3[_0x23a326(0x163)])(action_1[_0x23a326(0x170)]),_0x2affd4={},_0x3778f3=Array[_0x23a326(0x159)](_0x595edf[_0x23a326(0x1ab)]||[])?_0x595edf[_0x23a326(0x1ab)]||[]:[_0x595edf[_0x23a326(0x1ab)]];_0x462b0f:for(const _0x2a6c1a of _0x49e356){let _0x25a459=(0x0,core_3[_0x23a326(0x178)])(action_1[_0x23a326(0x170)],_0x2a6c1a),_0x579562=(0x0,core_3[_0x23a326(0x178)])(action_1[_0x23a326(0x169)],_0x2a6c1a);if(_0x25a459&&_0x579562){let _0x58e45a=_0x25a459[_0x23a326(0x18f)],_0x51f138={};if(_0x595edf[_0x23a326(0x15c)]&&(0x0,lodash_1[_0x23a326(0x156)])(_0x25a459,'module',![])!=_0x595edf[_0x23a326(0x15c)])continue _0x462b0f;else{if(_0x595edf['module']===![]&&!!(0x0,lodash_1[_0x23a326(0x156)])(_0x25a459,_0x23a326(0x15c),null))continue _0x462b0f;}if(_0x595edf[_0x23a326(0x18f)]&&!_0x58e45a[_0x23a326(0x182)](_0x595edf[_0x23a326(0x18f)]))continue _0x462b0f;_0x58e45a!=='/'?(_0x51f138[_0x23a326(0x16e)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['tagName'])||(/^\//['test'](_0x58e45a)?_0x58e45a['split']('/')[0x1]:_0x58e45a),_0x51f138[_0x23a326(0x196)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459['routerOptions']['description'])||_0x51f138[_0x23a326(0x16e)],_0x51f138[_0x23a326(0x1a4)]=[]):(_0x51f138['summary']=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['tagName'])||'default',_0x51f138[_0x23a326(0x196)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['description'])||'',_0x51f138[_0x23a326(0x1a4)]=[]);_0x595edf[_0x23a326(0x1a5)]&&(_0x51f138[_0x23a326(0x1a5)]=_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459['filepath']);(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x1a6)])&&(_0x51f138['prefix']=_0x25a459[_0x23a326(0x1a6)]);(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x15c)])&&(_0x51f138[_0x23a326(0x15c)]=_0x25a459['module']);let _0x3d3a9c=(0x0,core_3['getClassMetadata'])(core_2[_0x23a326(0x158)],_0x2a6c1a)||{};if(typeof _0x579562[Symbol[_0x23a326(0x179)]]===_0x23a326(0x14f))for(let _0x18d062 of _0x579562){if((_0x595edf===null||_0x595edf===void 0x0?void 0x0:_0x595edf[_0x23a326(0x192)])&&!(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x192)]))continue;let _0x1f9aa5={};_0x1f9aa5[_0x23a326(0x18b)]=_0x18d062[_0x23a326(0x18e)],_0x1f9aa5[_0x23a326(0x199)]=(_0x58e45a+_0x18d062[_0x23a326(0x153)])[_0x23a326(0x16f)](/\/{2,}/g,'/'),_0x1f9aa5['summary']=(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x198)])||_0x51f138['summary']||_0x23a326(0x15f),_0x1f9aa5['description']=(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x196)])||'',_0x1f9aa5[_0x23a326(0x1ad)]=[];_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x181)]('/')&&(_0x1f9aa5[_0x23a326(0x199)]=_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x180)](0x0,_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x191)]-0x1));if(!(0x0,lodash_1[_0x23a326(0x182)])(_0x1f9aa5[_0x23a326(0x199)],'static/apitest')&&!(0x0,lodash_1[_0x23a326(0x182)])(_0x1f9aa5[_0x23a326(0x199)],_0x23a326(0x15e))&&_0x3778f3[_0x23a326(0x19e)](_0x1f9aa5[_0x23a326(0x199)])===-0x1){if(!(_0x595edf===null||_0x595edf===void 0x0?void 0x0:_0x595edf[_0x23a326(0x17d)])){let _0x45b912=(0x0,core_3['getMethodParamTypes'])(new _0x2a6c1a(),_0x18d062[_0x23a326(0x18b)]);for(const _0x4ceff3 in _0x45b912){let _0x3151ba=(_0x165ed9=_0x3d3a9c[_0x18d062[_0x23a326(0x18b)]])===null||_0x165ed9===void 0x0?void 0x0:_0x165ed9[_0x23a326(0x168)](_0x4ea9e5=>_0x4ea9e5[_0x23a326(0x19c)]==_0x4ceff3&&_0x4ea9e5[_0x23a326(0x183)]===core_2[_0x23a326(0x150)]&&(_0x4ea9e5===null||_0x4ea9e5===void 0x0?void 0x0:_0x4ea9e5['metadata']));if(_0x3151ba===null||_0x3151ba===void 0x0?void 0x0:_0x3151ba[_0x23a326(0x177)]){let _0x398bd7=convertTypeToString(_0x3151ba['metadata'][_0x23a326(0x1a9)]||0x0);if([_0x23a326(0x17f),_0x23a326(0x160)][_0x23a326(0x19e)](_0x398bd7)!=-0x1&&_0x3151ba[_0x23a326(0x177)][_0x23a326(0x188)][_0x23a326(0x19e)](':')==-0x1&&!_0x1f9aa5[_0x23a326(0x1ad)][_0x23a326(0x168)](_0x466b44=>_0x466b44['key']==_0x3151ba[_0x23a326(0x177)][_0x23a326(0x188)]))_0x1f9aa5['request'][_0x23a326(0x18d)]({'key':_0x3151ba[_0x23a326(0x177)]['propertyData'],'title':_0x3151ba[_0x23a326(0x177)]['propertyData'],'type':convertSchemaType(_0x45b912[_0x3151ba[_0x23a326(0x19c)]][_0x23a326(0x151)]),'required':![],'default':'','desc':''});else{if(_0x398bd7==_0x23a326(0x1a8)){let _0x58380c=((_0x2ccafa=_0x3151ba===null||_0x3151ba===void 0x0?void 0x0:_0x3151ba[_0x23a326(0x177)])===null||_0x2ccafa===void 0x0?void 0x0:_0x2ccafa[_0x23a326(0x188)])||_0x23a326(0x1a8);_0x58380c[_0x23a326(0x19e)](':')==-0x1&&!_0x1f9aa5[_0x23a326(0x1ad)]['find'](_0x173da8=>_0x173da8[_0x23a326(0x183)]==_0x58380c&&_0x173da8[_0x23a326(0x1a9)]==_0x23a326(0x1a8))&&_0x1f9aa5['request'][_0x23a326(0x18d)]({'key':_0x58380c,'title':_0x23a326(0x185)+_0x58380c,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x3ddee6=(0x0,core_3[_0x23a326(0x17e)])(validator_1[_0x23a326(0x187)],_0x45b912[_0x4ceff3]);_0x3ddee6&&_0x1f9aa5['request'][_0x23a326(0x18d)](...getJoiRequest(_0x3ddee6));}}}_0x51f138[_0x23a326(0x1a4)]['push'](_0x1f9aa5);}}if(_0x51f138[_0x23a326(0x1a4)][_0x23a326(0x191)]>0x0){let _0x1ed293=_0x2affd4[_0x58e45a];_0x1ed293?(_0x1ed293['summary']!=_0x51f138['summary']&&(_0x1ed293[_0x23a326(0x16e)]=_0x1ed293[_0x23a326(0x16e)]+','+_0x51f138[_0x23a326(0x16e)]),_0x1ed293[_0x23a326(0x196)]!=_0x51f138[_0x23a326(0x196)]&&(_0x1ed293['description']=_0x1ed293[_0x23a326(0x196)]+','+_0x51f138['description']),_0x1ed293['routes']=_0x1ed293[_0x23a326(0x1a4)][_0x23a326(0x17c)](_0x51f138[_0x23a326(0x1a4)]),_0x2affd4[_0x58e45a]=_0x1ed293):_0x2affd4[_0x58e45a]=_0x51f138;}}}return _0x2affd4;}exports[a8_0x1826a1(0x1aa)]=getRoutes;function getJoiRequest(_0x526187){const _0xb29981=a8_0x1826a1,_0x2b2cda=[];for(let _0x7bd91e in _0x526187){const _0x4fd07f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x40cba2=typeof _0x526187[_0x7bd91e][_0xb29981(0x171)]==_0xb29981(0x14f)?_0x526187[_0x7bd91e][_0xb29981(0x171)]():_0x526187[_0x7bd91e];_0x4fd07f['key']=_0x7bd91e,_0x4fd07f[_0xb29981(0x1a9)]=_0x40cba2[_0xb29981(0x1a9)],_0x4fd07f[_0xb29981(0x1a1)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,'flags.label',_0x7bd91e),_0x4fd07f[_0xb29981(0x15f)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,'flags.default',''),_0x4fd07f[_0xb29981(0x167)]=(0x0,lodash_1['get'])(_0x40cba2,_0xb29981(0x190),'')==_0xb29981(0x167),_0x4fd07f[_0xb29981(0x196)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,_0xb29981(0x175),'');if(_0x40cba2[_0xb29981(0x1a9)]==_0xb29981(0x184))_0x4fd07f[_0xb29981(0x14e)]=getJoiRequest(_0x40cba2['keys']);else{if(_0x40cba2[_0xb29981(0x1a9)]=='array'&&_0x40cba2['items']&&Array[_0xb29981(0x159)](_0x40cba2[_0xb29981(0x194)])&&_0x40cba2[_0xb29981(0x194)][0x0]){}}_0x40cba2[_0xb29981(0x165)]&&Array[_0xb29981(0x159)](_0x40cba2[_0xb29981(0x165)])&&_0x40cba2[_0xb29981(0x165)][_0xb29981(0x191)]>0x0&&(_0x4fd07f[_0xb29981(0x196)]=_0xb29981(0x172)+_0x40cba2['allow']['join'](',')+'];'+_0x4fd07f[_0xb29981(0x196)]);if(_0x4fd07f[_0xb29981(0x183)]&&_0x4fd07f[_0xb29981(0x1a9)]){const _0x890d05={};for(const _0x3057f1 of _0x40cba2['rules']||[]){if(_0x3057f1[_0xb29981(0x151)]===_0xb29981(0x1a3)&&_0x3057f1['args'])_0x890d05[_0xb29981(0x1a3)]=_0x3057f1['args'][_0xb29981(0x162)];else _0x3057f1['name']===_0xb29981(0x164)&&(_0x890d05['max']=_0x3057f1[_0xb29981(0x18c)]['limit']);}_0x4fd07f[_0xb29981(0x193)]=_0x890d05;}_0x4fd07f['key']&&_0x4fd07f[_0xb29981(0x1a1)]&&_0x2b2cda[_0xb29981(0x18d)](_0x4fd07f);}return _0x2b2cda;}function convertSchemaType(_0x5b0a35){const _0x5c4fdd=a8_0x1826a1;switch(_0x5b0a35){case'Object':return _0x5c4fdd(0x184);case _0x5c4fdd(0x19a):return _0x5c4fdd(0x19f);case'Number':return'number';case _0x5c4fdd(0x19b):return _0x5c4fdd(0x157);case _0x5c4fdd(0x1a0):return _0x5c4fdd(0x1a8);default:return'string';}}function convertTypeToString(_0x2f99fc){const _0x258deb=a8_0x1826a1;switch(_0x2f99fc){case core_1['RouteParamTypes'][_0x258deb(0x195)]:return _0x258deb(0x161);case core_1[_0x258deb(0x17b)][_0x258deb(0x16c)]:return _0x258deb(0x17f);case core_1['RouteParamTypes']['PARAM']:return _0x258deb(0x153);case core_1[_0x258deb(0x17b)][_0x258deb(0x166)]:return _0x258deb(0x160);case core_1[_0x258deb(0x17b)][_0x258deb(0x176)]:case core_1[_0x258deb(0x17b)][_0x258deb(0x1a2)]:case core_1[_0x258deb(0x17b)]['FILESTREAM']:return _0x258deb(0x1a8);default:return _0x258deb(0x161);}}function a8_0x35fd(){const _0x4f2bbe=['QUERY','56441UWJhsv','summary','replace','ACTION_KEY','describe','只允许:[','(((.+)+)+)+$','1294860MJclOy','flags.description','FIELDS','metadata','getClassMetadata','iterator','@midwayjs/core','RouteParamTypes','concat','noreq','getClassExtendedMetadata','query','substring','endsWith','startsWith','key','object','文件上传-','routerOptions','RULES_KEY','propertyData','4729896NYbsHy','404NAWOhI','method','args','push','requestMethod','prefix','flags.presence','length','intercept','rules','items','HEADERS','description','defineProperty','routerName','route','Boolean','String','parameterIndex','toString','indexOf','boolean','File','title','FILESSTREAM','min','routes','filepath','pprefix','@anncic-api/validator','file','type','getRoutes','filter','138zXIFpT','request','children','function','WEB_ROUTER_PARAM_KEY','name','7473VQvdIv','path','1353250vhpNbI','lodash','get','string','INJECT_CUSTOM_PARAM','isArray','constructor','1317654rlqGdI','module','search','/static/apitest','default','body','header','limit','listModule','max','allow','BODY','required','find','ACTION_ROUTE_KEY','__esModule','484650fXwLEd'];a8_0x35fd=function(){return _0x4f2bbe;};return a8_0x35fd();}
|
|
1
|
+
const a8_0x57087c=a8_0x2ff5;function a8_0x51c3(){const _0xdb3b6f=['filepath','requestMethod','noreq','FIELDS','2772sbIzws','number','max','flags.label','name','ACTION_KEY','startsWith','items','ACTION_ROUTE_KEY','Boolean','children','prefix','push','listModule','routerOptions','required','../types/action','search','description','(((.+)+)+)+$','min','route','336QQPzLH','replace','468909SDnWUv','static/apitest','isArray','439182QMAFaD','args','propertyData','allow','41301aCVAYL','4rYaUtU','BODY','key','只允许:[','string','endsWith','title','test','indexOf','defineProperty','toString','getClassExtendedMetadata','intercept','body','filter','__esModule','4820KQhxPV','1321659fIijZH','routes','RouteParamTypes','文件上传-','339762YFfFuc','keys','pprefix','@anncic-api/validator','method','limit','flags.description','function','get','path','RULES_KEY','file','FILESSTREAM','split','describe','FILESTREAM','request','length','getClassMetadata','@midwayjs/core','summary','getRoutes','/static/apitest','default','constructor','rules','String','1007585tzdqaa','concat','metadata','boolean','type','header','module','parameterIndex','find','getMethodParamTypes','File','apply'];a8_0x51c3=function(){return _0xdb3b6f;};return a8_0x51c3();}(function(_0x6cdfbe,_0x1eb794){const _0x37962e=a8_0x2ff5,_0x4f7043=_0x6cdfbe();while(!![]){try{const _0x5eed1a=-parseInt(_0x37962e(0x17c))/0x1+parseInt(_0x37962e(0x180))/0x2+-parseInt(_0x37962e(0x163))/0x3+-parseInt(_0x37962e(0x16b))/0x4*(parseInt(_0x37962e(0x19b))/0x5)+parseInt(_0x37962e(0x166))/0x6+parseInt(_0x37962e(0x1ab))/0x7*(-parseInt(_0x37962e(0x161))/0x8)+-parseInt(_0x37962e(0x16a))/0x9*(-parseInt(_0x37962e(0x17b))/0xa);if(_0x5eed1a===_0x1eb794)break;else _0x4f7043['push'](_0x4f7043['shift']());}catch(_0x2d07b7){_0x4f7043['push'](_0x4f7043['shift']());}}}(a8_0x51c3,0xb9451));const a8_0x18a079=(function(){let _0x3808b2=!![];return function(_0x3e3347,_0x285adf){const _0x4509ac=_0x3808b2?function(){const _0x5d126e=a8_0x2ff5;if(_0x285adf){const _0x477f1b=_0x285adf[_0x5d126e(0x1a6)](_0x3e3347,arguments);return _0x285adf=null,_0x477f1b;}}:function(){};return _0x3808b2=![],_0x4509ac;};}()),a8_0x9b5f9b=a8_0x18a079(this,function(){const _0x573596=a8_0x2ff5;return a8_0x9b5f9b[_0x573596(0x175)]()[_0x573596(0x1bc)](_0x573596(0x1be))['toString']()[_0x573596(0x198)](a8_0x9b5f9b)['search']('(((.+)+)+)+$');});a8_0x9b5f9b();'use strict';Object[a8_0x57087c(0x174)](exports,a8_0x57087c(0x17a),{'value':!![]}),exports[a8_0x57087c(0x195)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x57087c(0x183)),core_1=require(a8_0x57087c(0x193)),core_2=require('@midwayjs/core'),core_3=require(a8_0x57087c(0x193)),action_1=require(a8_0x57087c(0x1bb));function getRoutes(_0x2012f2={'prefix':'/','module':![]}){const _0x1667bb=a8_0x57087c;var _0x49b7d0,_0x30b6ca;const _0x3c4998=(0x0,core_3[_0x1667bb(0x1b8)])(action_1[_0x1667bb(0x1b0)]),_0x289d7a={},_0x4e2bb3=Array[_0x1667bb(0x165)](_0x2012f2[_0x1667bb(0x179)]||[])?_0x2012f2[_0x1667bb(0x179)]||[]:[_0x2012f2[_0x1667bb(0x179)]];_0x2b9f84:for(const _0x24cfd0 of _0x3c4998){let _0x298730=(0x0,core_3[_0x1667bb(0x192)])(action_1['ACTION_KEY'],_0x24cfd0),_0x3caf1f=(0x0,core_3[_0x1667bb(0x192)])(action_1[_0x1667bb(0x1b3)],_0x24cfd0);if(_0x298730&&_0x3caf1f){let _0x4a56ce=_0x298730[_0x1667bb(0x1b6)],_0x529f9a={};if(_0x2012f2['module']&&(0x0,lodash_1['get'])(_0x298730,'module',![])!=_0x2012f2[_0x1667bb(0x1a1)])continue _0x2b9f84;else{if(_0x2012f2[_0x1667bb(0x1a1)]===![]&&!!(0x0,lodash_1[_0x1667bb(0x188)])(_0x298730,_0x1667bb(0x1a1),null))continue _0x2b9f84;}if(_0x2012f2[_0x1667bb(0x1b6)]&&!_0x4a56ce[_0x1667bb(0x1b1)](_0x2012f2[_0x1667bb(0x1b6)]))continue _0x2b9f84;_0x4a56ce!=='/'?(_0x529f9a[_0x1667bb(0x194)]=(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730[_0x1667bb(0x1b9)]['tagName'])||(/^\//[_0x1667bb(0x172)](_0x4a56ce)?_0x4a56ce[_0x1667bb(0x18d)]('/')[0x1]:_0x4a56ce),_0x529f9a[_0x1667bb(0x1bd)]=(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730[_0x1667bb(0x1b9)]['description'])||_0x529f9a[_0x1667bb(0x194)],_0x529f9a[_0x1667bb(0x17d)]=[]):(_0x529f9a[_0x1667bb(0x194)]=(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730['routerOptions']['tagName'])||'default',_0x529f9a[_0x1667bb(0x1bd)]=(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730[_0x1667bb(0x1b9)][_0x1667bb(0x1bd)])||'',_0x529f9a[_0x1667bb(0x17d)]=[]);_0x2012f2[_0x1667bb(0x1a7)]&&(_0x529f9a[_0x1667bb(0x1a7)]=_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730['filepath']);(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730[_0x1667bb(0x182)])&&(_0x529f9a[_0x1667bb(0x1b6)]=_0x298730['pprefix']);(_0x298730===null||_0x298730===void 0x0?void 0x0:_0x298730[_0x1667bb(0x1a1)])&&(_0x529f9a[_0x1667bb(0x1a1)]=_0x298730[_0x1667bb(0x1a1)]);let _0x24fbf3=(0x0,core_3[_0x1667bb(0x192)])(core_2['INJECT_CUSTOM_PARAM'],_0x24cfd0)||{};if(typeof _0x3caf1f[Symbol['iterator']]===_0x1667bb(0x187))for(let _0x328b0f of _0x3caf1f){if((_0x2012f2===null||_0x2012f2===void 0x0?void 0x0:_0x2012f2[_0x1667bb(0x177)])&&!(_0x328b0f===null||_0x328b0f===void 0x0?void 0x0:_0x328b0f['intercept']))continue;let _0x2f4004={};_0x2f4004[_0x1667bb(0x184)]=_0x328b0f[_0x1667bb(0x1a8)],_0x2f4004[_0x1667bb(0x160)]=(_0x4a56ce+_0x328b0f['path'])[_0x1667bb(0x162)](/\/{2,}/g,'/'),_0x2f4004['summary']=(_0x328b0f===null||_0x328b0f===void 0x0?void 0x0:_0x328b0f['routerName'])||_0x529f9a[_0x1667bb(0x194)]||_0x1667bb(0x197),_0x2f4004[_0x1667bb(0x1bd)]=(_0x328b0f===null||_0x328b0f===void 0x0?void 0x0:_0x328b0f['description'])||'',_0x2f4004[_0x1667bb(0x190)]=[];_0x2f4004['route'][_0x1667bb(0x170)]('/')&&(_0x2f4004[_0x1667bb(0x160)]=_0x2f4004['route']['substring'](0x0,_0x2f4004[_0x1667bb(0x160)][_0x1667bb(0x191)]-0x1));if(!(0x0,lodash_1[_0x1667bb(0x1b1)])(_0x2f4004['route'],_0x1667bb(0x164))&&!(0x0,lodash_1[_0x1667bb(0x1b1)])(_0x2f4004[_0x1667bb(0x160)],_0x1667bb(0x196))&&_0x4e2bb3[_0x1667bb(0x173)](_0x2f4004[_0x1667bb(0x160)])===-0x1){if(!(_0x2012f2===null||_0x2012f2===void 0x0?void 0x0:_0x2012f2[_0x1667bb(0x1a9)])){let _0x322422=(0x0,core_3[_0x1667bb(0x1a4)])(new _0x24cfd0(),_0x328b0f['method']);for(const _0x28fb0b in _0x322422){let _0x54e10a=(_0x49b7d0=_0x24fbf3[_0x328b0f[_0x1667bb(0x184)]])===null||_0x49b7d0===void 0x0?void 0x0:_0x49b7d0[_0x1667bb(0x1a3)](_0x4e3038=>_0x4e3038[_0x1667bb(0x1a2)]==_0x28fb0b&&_0x4e3038[_0x1667bb(0x16d)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x4e3038===null||_0x4e3038===void 0x0?void 0x0:_0x4e3038[_0x1667bb(0x19d)]));if(_0x54e10a===null||_0x54e10a===void 0x0?void 0x0:_0x54e10a[_0x1667bb(0x19d)]){let _0x480bb5=convertTypeToString(_0x54e10a[_0x1667bb(0x19d)]['type']||0x0);if(['query','body'][_0x1667bb(0x173)](_0x480bb5)!=-0x1&&_0x54e10a['metadata'][_0x1667bb(0x168)][_0x1667bb(0x173)](':')==-0x1&&!_0x2f4004[_0x1667bb(0x190)][_0x1667bb(0x1a3)](_0x5ccab2=>_0x5ccab2[_0x1667bb(0x16d)]==_0x54e10a[_0x1667bb(0x19d)][_0x1667bb(0x168)]))_0x2f4004[_0x1667bb(0x190)]['push']({'key':_0x54e10a['metadata']['propertyData'],'title':_0x54e10a[_0x1667bb(0x19d)][_0x1667bb(0x168)],'type':convertSchemaType(_0x322422[_0x54e10a['parameterIndex']][_0x1667bb(0x1af)]),'required':![],'default':'','desc':''});else{if(_0x480bb5=='file'){let _0x1c49a3=((_0x30b6ca=_0x54e10a===null||_0x54e10a===void 0x0?void 0x0:_0x54e10a[_0x1667bb(0x19d)])===null||_0x30b6ca===void 0x0?void 0x0:_0x30b6ca[_0x1667bb(0x168)])||_0x1667bb(0x18b);_0x1c49a3['indexOf'](':')==-0x1&&!_0x2f4004[_0x1667bb(0x190)][_0x1667bb(0x1a3)](_0x14eb4d=>_0x14eb4d[_0x1667bb(0x16d)]==_0x1c49a3&&_0x14eb4d[_0x1667bb(0x19f)]==_0x1667bb(0x18b))&&_0x2f4004[_0x1667bb(0x190)][_0x1667bb(0x1b7)]({'key':_0x1c49a3,'title':_0x1667bb(0x17f)+_0x1c49a3,'type':_0x1667bb(0x18b),'required':!![],'default':'','desc':''});}}}else{const _0x591777=(0x0,core_3[_0x1667bb(0x176)])(validator_1[_0x1667bb(0x18a)],_0x322422[_0x28fb0b]);_0x591777&&_0x2f4004[_0x1667bb(0x190)][_0x1667bb(0x1b7)](...getJoiRequest(_0x591777));}}}_0x529f9a['routes'][_0x1667bb(0x1b7)](_0x2f4004);}}if(_0x529f9a[_0x1667bb(0x17d)][_0x1667bb(0x191)]>0x0){let _0x5c4f3f=_0x289d7a[_0x4a56ce];_0x5c4f3f?(_0x5c4f3f[_0x1667bb(0x194)]!=_0x529f9a[_0x1667bb(0x194)]&&(_0x5c4f3f['summary']=_0x5c4f3f[_0x1667bb(0x194)]+','+_0x529f9a[_0x1667bb(0x194)]),_0x5c4f3f[_0x1667bb(0x1bd)]!=_0x529f9a['description']&&(_0x5c4f3f[_0x1667bb(0x1bd)]=_0x5c4f3f[_0x1667bb(0x1bd)]+','+_0x529f9a[_0x1667bb(0x1bd)]),_0x5c4f3f[_0x1667bb(0x17d)]=_0x5c4f3f[_0x1667bb(0x17d)][_0x1667bb(0x19c)](_0x529f9a[_0x1667bb(0x17d)]),_0x289d7a[_0x4a56ce]=_0x5c4f3f):_0x289d7a[_0x4a56ce]=_0x529f9a;}}}return _0x289d7a;}exports[a8_0x57087c(0x195)]=getRoutes;function getJoiRequest(_0x160af2){const _0x11e600=a8_0x57087c,_0x2376e6=[];for(let _0x197020 in _0x160af2){const _0x382ea6={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x31b22f=typeof _0x160af2[_0x197020][_0x11e600(0x18e)]==_0x11e600(0x187)?_0x160af2[_0x197020][_0x11e600(0x18e)]():_0x160af2[_0x197020];_0x382ea6[_0x11e600(0x16d)]=_0x197020,_0x382ea6[_0x11e600(0x19f)]=_0x31b22f[_0x11e600(0x19f)],_0x382ea6[_0x11e600(0x171)]=(0x0,lodash_1[_0x11e600(0x188)])(_0x31b22f,_0x11e600(0x1ae),_0x197020),_0x382ea6['default']=(0x0,lodash_1['get'])(_0x31b22f,'flags.default',''),_0x382ea6[_0x11e600(0x1ba)]=(0x0,lodash_1[_0x11e600(0x188)])(_0x31b22f,'flags.presence','')=='required',_0x382ea6['description']=(0x0,lodash_1[_0x11e600(0x188)])(_0x31b22f,_0x11e600(0x186),'');if(_0x31b22f[_0x11e600(0x19f)]=='object')_0x382ea6[_0x11e600(0x1b5)]=getJoiRequest(_0x31b22f[_0x11e600(0x181)]);else{if(_0x31b22f[_0x11e600(0x19f)]=='array'&&_0x31b22f['items']&&Array[_0x11e600(0x165)](_0x31b22f[_0x11e600(0x1b2)])&&_0x31b22f[_0x11e600(0x1b2)][0x0]){}}_0x31b22f[_0x11e600(0x169)]&&Array[_0x11e600(0x165)](_0x31b22f[_0x11e600(0x169)])&&_0x31b22f[_0x11e600(0x169)][_0x11e600(0x191)]>0x0&&(_0x382ea6['description']=_0x11e600(0x16e)+_0x31b22f[_0x11e600(0x169)]['join'](',')+'];'+_0x382ea6[_0x11e600(0x1bd)]);if(_0x382ea6[_0x11e600(0x16d)]&&_0x382ea6[_0x11e600(0x19f)]){const _0x306591={};for(const _0x1aa48f of _0x31b22f[_0x11e600(0x199)]||[]){if(_0x1aa48f[_0x11e600(0x1af)]==='min'&&_0x1aa48f[_0x11e600(0x167)])_0x306591[_0x11e600(0x15f)]=_0x1aa48f[_0x11e600(0x167)][_0x11e600(0x185)];else _0x1aa48f[_0x11e600(0x1af)]===_0x11e600(0x1ad)&&(_0x306591[_0x11e600(0x1ad)]=_0x1aa48f[_0x11e600(0x167)][_0x11e600(0x185)]);}_0x382ea6[_0x11e600(0x199)]=_0x306591;}_0x382ea6[_0x11e600(0x16d)]&&_0x382ea6[_0x11e600(0x171)]&&_0x2376e6[_0x11e600(0x1b7)](_0x382ea6);}return _0x2376e6;}function convertSchemaType(_0x64757b){const _0xc6fb94=a8_0x57087c;switch(_0x64757b){case'Object':return'object';case _0xc6fb94(0x1b4):return _0xc6fb94(0x19e);case'Number':return _0xc6fb94(0x1ac);case _0xc6fb94(0x19a):return _0xc6fb94(0x16f);case _0xc6fb94(0x1a5):return _0xc6fb94(0x18b);default:return _0xc6fb94(0x16f);}}function a8_0x2ff5(_0x1808d4,_0x2da003){const _0xa8d1d6=a8_0x51c3();return a8_0x2ff5=function(_0x9b5f9b,_0x18a079){_0x9b5f9b=_0x9b5f9b-0x15f;let _0x51c36f=_0xa8d1d6[_0x9b5f9b];return _0x51c36f;},a8_0x2ff5(_0x1808d4,_0x2da003);}function convertTypeToString(_0x106b11){const _0x291b21=a8_0x57087c;switch(_0x106b11){case core_1[_0x291b21(0x17e)]['HEADERS']:return _0x291b21(0x1a0);case core_1['RouteParamTypes']['QUERY']:return'query';case core_1['RouteParamTypes']['PARAM']:return _0x291b21(0x189);case core_1['RouteParamTypes'][_0x291b21(0x16c)]:return _0x291b21(0x178);case core_1[_0x291b21(0x17e)][_0x291b21(0x1aa)]:case core_1[_0x291b21(0x17e)][_0x291b21(0x18c)]:case core_1[_0x291b21(0x17e)][_0x291b21(0x18f)]:return _0x291b21(0x18b);default:return _0x291b21(0x1a0);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a9_0x3e31(_0x18001a,_0x3e5f4b){var _0x34c893=a9_0x5553();return a9_0x3e31=function(_0x1d5c1b,_0x21a67a){_0x1d5c1b=_0x1d5c1b-0x141;var _0x5553b2=_0x34c893[_0x1d5c1b];return _0x5553b2;},a9_0x3e31(_0x18001a,_0x3e5f4b);}var a9_0x2bc632=a9_0x3e31;(function(_0x4a35a2,_0x1fbe31){var _0x16e637=a9_0x3e31,_0x57e147=_0x4a35a2();while(!![]){try{var _0x7fa677=-parseInt(_0x16e637(0x163))/0x1*(-parseInt(_0x16e637(0x171))/0x2)+parseInt(_0x16e637(0x170))/0x3*(-parseInt(_0x16e637(0x166))/0x4)+-parseInt(_0x16e637(0x15a))/0x5*(-parseInt(_0x16e637(0x17b))/0x6)+-parseInt(_0x16e637(0x149))/0x7*(parseInt(_0x16e637(0x179))/0x8)+parseInt(_0x16e637(0x143))/0x9+parseInt(_0x16e637(0x180))/0xa*(parseInt(_0x16e637(0x167))/0xb)+-parseInt(_0x16e637(0x17f))/0xc*(parseInt(_0x16e637(0x16c))/0xd);if(_0x7fa677===_0x1fbe31)break;else _0x57e147['push'](_0x57e147['shift']());}catch(_0x3303f3){_0x57e147['push'](_0x57e147['shift']());}}}(a9_0x5553,0x49742));var a9_0x21a67a=(function(){var _0xc2b8f1=!![];return function(_0x41db98,_0x193c56){var _0x1cb7f0=_0xc2b8f1?function(){if(_0x193c56){var _0x33a3aa=_0x193c56['apply'](_0x41db98,arguments);return _0x193c56=null,_0x33a3aa;}}:function(){};return _0xc2b8f1=![],_0x1cb7f0;};}()),a9_0x1d5c1b=a9_0x21a67a(this,function(){var _0x537e70=a9_0x3e31;return a9_0x1d5c1b[_0x537e70(0x14c)]()['search']('(((.+)+)+)+$')[_0x537e70(0x14c)]()[_0x537e70(0x181)](a9_0x1d5c1b)[_0x537e70(0x17c)](_0x537e70(0x161));});a9_0x1d5c1b();'use strict';var __createBinding=this&&this[a9_0x2bc632(0x164)]||(Object[a9_0x2bc632(0x169)]?function(_0x44bc90,_0x40dcb4,_0x2db404,_0x48cd13){var _0x300086=a9_0x2bc632;if(_0x48cd13===undefined)_0x48cd13=_0x2db404;var _0x5814a0=Object[_0x300086(0x14b)](_0x40dcb4,_0x2db404);(!_0x5814a0||(_0x300086(0x159)in _0x5814a0?!_0x40dcb4[_0x300086(0x158)]:_0x5814a0[_0x300086(0x172)]||_0x5814a0[_0x300086(0x173)]))&&(_0x5814a0={'enumerable':!![],'get':function(){return _0x40dcb4[_0x2db404];}}),Object[_0x300086(0x153)](_0x44bc90,_0x48cd13,_0x5814a0);}:function(_0x51fc7b,_0x2082d4,_0x58179c,_0x30e9cb){if(_0x30e9cb===undefined)_0x30e9cb=_0x58179c;_0x51fc7b[_0x30e9cb]=_0x2082d4[_0x58179c];}),__exportStar=this&&this[a9_0x2bc632(0x176)]||function(_0x40fbd9,_0x565cce){var _0x524da5=a9_0x2bc632;for(var _0x5c16c6 in _0x40fbd9)if(_0x5c16c6!==_0x524da5(0x142)&&!Object[_0x524da5(0x157)][_0x524da5(0x155)][_0x524da5(0x147)](_0x565cce,_0x5c16c6))__createBinding(_0x565cce,_0x40fbd9,_0x5c16c6);};Object[a9_0x2bc632(0x153)](exports,'__esModule',{'value':!![]}),exports[a9_0x2bc632(0x16b)]=exports['ScopeEnum']=exports[a9_0x2bc632(0x185)]=exports[a9_0x2bc632(0x15d)]=exports['Inject']=exports['Provide']=exports[a9_0x2bc632(0x182)]=exports[a9_0x2bc632(0x162)]=exports[a9_0x2bc632(0x14f)]=exports[a9_0x2bc632(0x152)]=exports[a9_0x2bc632(0x14a)]=exports[a9_0x2bc632(0x16a)]=exports[a9_0x2bc632(0x187)]=exports[a9_0x2bc632(0x15f)]=exports['Fields']=exports[a9_0x2bc632(0x183)]=exports[a9_0x2bc632(0x141)]=exports[a9_0x2bc632(0x175)]=exports[a9_0x2bc632(0x16f)]=exports[a9_0x2bc632(0x165)]=exports[a9_0x2bc632(0x150)]=exports[a9_0x2bc632(0x17a)]=exports[a9_0x2bc632(0x145)]=exports[a9_0x2bc632(0x177)]=exports['ApiError']=exports['getRoutes']=exports[a9_0x2bc632(0x144)]=exports['Intercept']=exports[a9_0x2bc632(0x154)]=exports[a9_0x2bc632(0x151)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x16b),{'enumerable':!![],'get':function(){var _0x28ef32=a9_0x2bc632;return getAppsConfig_1[_0x28ef32(0x16b)];}}),__exportStar(require(a9_0x2bc632(0x16d)),exports),__exportStar(require(a9_0x2bc632(0x148)),exports);var Action_1=require(a9_0x2bc632(0x15c));Object['defineProperty'](exports,a9_0x2bc632(0x151),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x2bc632(0x188));function a9_0x5553(){var _0x3c6877=['create','Query','getAppsConfig','9168991nrDfcv','./types/common','ApiError','ValidatorService','3yYTHvb','17444aZdIRP','writable','configurable','ScopeEnum','Configuration','__exportStar','CacheService','./helper/getRoutes','112GvyvyJ','ApiService','1476054VXbngC','search','CustomConfiguration','./service/ApiService','12sxnrxo','440pAAVUa','constructor','Logger','Files','Intercept','Singleton','Fields','Param','./decorator/ActionApitest','File','default','4310217RxqRmf','IIntercept','EventService','@midwayjs/core','call','./service/ApitestService','217462OwVPQi','Headers','getOwnPropertyDescriptor','toString','./service/ExcelService','@anncic-api/cache','App','ExcelService','Action','Init','defineProperty','Apitest','hasOwnProperty','Inject','prototype','__esModule','get','5iEOLhs','./configuration','./decorator/Action','Scope','Provide','Body','./decorator/Intercept','(((.+)+)+)+$','Config','45rCynJZ','__createBinding','ValidatorError','460684dCiZlZ','109714ThAmbO','@anncic-api/event'];a9_0x5553=function(){return _0x3c6877;};return a9_0x5553();}Object[a9_0x2bc632(0x153)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x348af5=a9_0x2bc632;return ActionApitest_1[_0x348af5(0x154)];}});var Intercept_1=require(a9_0x2bc632(0x160));Object[a9_0x2bc632(0x153)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x4cd7dc=a9_0x2bc632;return Intercept_1[_0x4cd7dc(0x184)];}}),Object['defineProperty'](exports,a9_0x2bc632(0x144),{'enumerable':!![],'get':function(){var _0x5f35dd=a9_0x2bc632;return Intercept_1[_0x5f35dd(0x144)];}});var getRoutes_1=require(a9_0x2bc632(0x178));Object[a9_0x2bc632(0x153)](exports,'getRoutes',{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a9_0x2bc632(0x16e),{'enumerable':!![],'get':function(){var _0x7c413a=a9_0x2bc632;return ApiError_1[_0x7c413a(0x16e)];}});var cache_1=require(a9_0x2bc632(0x14e));Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x177),{'enumerable':!![],'get':function(){var _0x226a14=a9_0x2bc632;return cache_1[_0x226a14(0x177)];}});var event_1=require(a9_0x2bc632(0x168));Object['defineProperty'](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x2bc632(0x17e));Object['defineProperty'](exports,a9_0x2bc632(0x17a),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x2bc632(0x14d));Object['defineProperty'](exports,a9_0x2bc632(0x150),{'enumerable':!![],'get':function(){var _0x29a6b6=a9_0x2bc632;return ExcelService_1[_0x29a6b6(0x150)];}});var validator_1=require('@anncic-api/validator');Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x165),{'enumerable':!![],'get':function(){var _0x3fc5f0=a9_0x2bc632;return validator_1[_0x3fc5f0(0x165)];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x16f),{'enumerable':!![],'get':function(){var _0x5a9adf=a9_0x2bc632;return validator_1[_0x5a9adf(0x16f)];}});var configuration_1=require(a9_0x2bc632(0x15b));Object[a9_0x2bc632(0x153)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x5480cd=a9_0x2bc632;return configuration_1[_0x5480cd(0x17d)];}});var core_1=require(a9_0x2bc632(0x146));Object[a9_0x2bc632(0x153)](exports,'File',{'enumerable':!![],'get':function(){var _0x9965a1=a9_0x2bc632;return core_1[_0x9965a1(0x141)];}}),Object['defineProperty'](exports,'Files',{'enumerable':!![],'get':function(){var _0x22e371=a9_0x2bc632;return core_1[_0x22e371(0x183)];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x186),{'enumerable':!![],'get':function(){var _0xed3a75=a9_0x2bc632;return core_1[_0xed3a75(0x186)];}}),Object[a9_0x2bc632(0x153)](exports,'Body',{'enumerable':!![],'get':function(){var _0x2ed5f5=a9_0x2bc632;return core_1[_0x2ed5f5(0x15f)];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x187),{'enumerable':!![],'get':function(){var _0x571866=a9_0x2bc632;return core_1[_0x571866(0x187)];}}),Object[a9_0x2bc632(0x153)](exports,'Query',{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object['defineProperty'](exports,a9_0x2bc632(0x14a),{'enumerable':!![],'get':function(){var _0x3b4c67=a9_0x2bc632;return core_1[_0x3b4c67(0x14a)];}}),Object['defineProperty'](exports,a9_0x2bc632(0x152),{'enumerable':!![],'get':function(){var _0x386d9a=a9_0x2bc632;return core_1[_0x386d9a(0x152)];}});var core_2=require(a9_0x2bc632(0x146));Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x14f),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,'Config',{'enumerable':!![],'get':function(){var _0x124e85=a9_0x2bc632;return core_2[_0x124e85(0x162)];}}),Object[a9_0x2bc632(0x153)](exports,'Logger',{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x15e),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a9_0x2bc632(0x156),{'enumerable':!![],'get':function(){var _0x509b09=a9_0x2bc632;return core_2[_0x509b09(0x156)];}}),Object[a9_0x2bc632(0x153)](exports,'Scope',{'enumerable':!![],'get':function(){var _0xdbe739=a9_0x2bc632;return core_2[_0xdbe739(0x15d)];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x185),{'enumerable':!![],'get':function(){var _0x16d73e=a9_0x2bc632;return core_2[_0x16d73e(0x185)];}}),Object[a9_0x2bc632(0x153)](exports,a9_0x2bc632(0x174),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x2bc632(0x16b)]=getAppsConfig_1[a9_0x2bc632(0x16b)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10_0x120e(_0x2f6fb7,_0x4f2d37){var _0x53b391=a10_0xf502();return a10_0x120e=function(_0x46c7b3,_0x55fde8){_0x46c7b3=_0x46c7b3-0x106;var _0xf502cc=_0x53b391[_0x46c7b3];return _0xf502cc;},a10_0x120e(_0x2f6fb7,_0x4f2d37);}var a10_0x50a87e=a10_0x120e;(function(_0x56e825,_0x321f93){var _0x1568f7=a10_0x120e,_0x39137a=_0x56e825();while(!![]){try{var _0x56ca8c=-parseInt(_0x1568f7(0x146))/0x1+parseInt(_0x1568f7(0x12e))/0x2+-parseInt(_0x1568f7(0x10c))/0x3*(parseInt(_0x1568f7(0x110))/0x4)+-parseInt(_0x1568f7(0x12f))/0x5*(parseInt(_0x1568f7(0x143))/0x6)+-parseInt(_0x1568f7(0x107))/0x7+-parseInt(_0x1568f7(0x117))/0x8*(-parseInt(_0x1568f7(0x131))/0x9)+parseInt(_0x1568f7(0x115))/0xa;if(_0x56ca8c===_0x321f93)break;else _0x39137a['push'](_0x39137a['shift']());}catch(_0x318d9a){_0x39137a['push'](_0x39137a['shift']());}}}(a10_0xf502,0x9e991));function a10_0xf502(){var _0x2613eb=['decorate','HEADERS_CHECKCODE','padEnd','now','ApiService','timeout','password','push','getcheck','join','__esModule','checksign','design:type','__metadata','6rhvlpb','toLowerCase','defineProperty','124328cYmIdX','Config','HEADERS_DEVICE','function','substring','fromEntries','3969483BAKrWP','signature','anncicapi','MD5','请求超时,请重试或改善网络环境','4812VcqHKL','getOwnPropertyDescriptor','getsign','HEADERS_LACK','732eEMqad','验证失败','search','metadata','config','14905130ECzyFn','@midwayjs/core','885160dLLqzF','devices','logintime','constructor','HEADERS_SIGNATURE','(((.+)+)+)+$','checkcode','toString','logintimeout','secret','__decorate','map','undefined','TIMEOUT','sort','object','TIMEOUT_LOGINTIME','ScopeEnum','apply','ApiError','Singleton','device','token','1397188uMpZuf','6092155sPVcfI','abs','54fnliFi','requesttime','Provide','length'];a10_0xf502=function(){return _0x2613eb;};return a10_0xf502();}var a10_0x55fde8=(function(){var _0x3eb1e9=!![];return function(_0xf48817,_0x2c4590){var _0xf8e394=_0x3eb1e9?function(){var _0x41abf4=a10_0x120e;if(_0x2c4590){var _0x23aafc=_0x2c4590[_0x41abf4(0x129)](_0xf48817,arguments);return _0x2c4590=null,_0x23aafc;}}:function(){};return _0x3eb1e9=![],_0xf8e394;};}()),a10_0x46c7b3=a10_0x55fde8(this,function(){var _0x4f3979=a10_0x120e;return a10_0x46c7b3[_0x4f3979(0x11e)]()[_0x4f3979(0x112)](_0x4f3979(0x11c))[_0x4f3979(0x11e)]()[_0x4f3979(0x11a)](a10_0x46c7b3)[_0x4f3979(0x112)]('(((.+)+)+)+$');});a10_0x46c7b3();'use strict';var __decorate=this&&this[a10_0x50a87e(0x121)]||function(_0x1b1cc0,_0x465c4d,_0x2993b2,_0x33248b){var _0x1be24f=a10_0x50a87e,_0x2bc44f=arguments[_0x1be24f(0x134)],_0x2db019=_0x2bc44f<0x3?_0x465c4d:_0x33248b===null?_0x33248b=Object[_0x1be24f(0x10d)](_0x465c4d,_0x2993b2):_0x33248b,_0x5cbf5d;if(typeof Reflect===_0x1be24f(0x126)&&typeof Reflect[_0x1be24f(0x135)]===_0x1be24f(0x149))_0x2db019=Reflect[_0x1be24f(0x135)](_0x1b1cc0,_0x465c4d,_0x2993b2,_0x33248b);else{for(var _0x57b4d3=_0x1b1cc0['length']-0x1;_0x57b4d3>=0x0;_0x57b4d3--)if(_0x5cbf5d=_0x1b1cc0[_0x57b4d3])_0x2db019=(_0x2bc44f<0x3?_0x5cbf5d(_0x2db019):_0x2bc44f>0x3?_0x5cbf5d(_0x465c4d,_0x2993b2,_0x2db019):_0x5cbf5d(_0x465c4d,_0x2993b2))||_0x2db019;}return _0x2bc44f>0x3&&_0x2db019&&Object[_0x1be24f(0x145)](_0x465c4d,_0x2993b2,_0x2db019),_0x2db019;},__metadata=this&&this[a10_0x50a87e(0x142)]||function(_0x14f1b9,_0x7be309){var _0x5a2adf=a10_0x50a87e;if(typeof Reflect===_0x5a2adf(0x126)&&typeof Reflect['metadata']===_0x5a2adf(0x149))return Reflect[_0x5a2adf(0x113)](_0x14f1b9,_0x7be309);};Object[a10_0x50a87e(0x145)](exports,a10_0x50a87e(0x13f),{'value':!![]}),exports[a10_0x50a87e(0x139)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0x50a87e(0x116)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a10_0x50a87e(0x13b)](_0x653587){var _0x5c9ef2=a10_0x50a87e,_0x49e85c;return _0x653587?(0x0,crypto_js_1[_0x5c9ef2(0x10a)])(''+_0x653587+(0x0,crypto_js_1[_0x5c9ef2(0x10a)])((0x0,crypto_js_1[_0x5c9ef2(0x10a)])(''+_0x653587)[_0x5c9ef2(0x11e)]()+(''+((_0x49e85c=this['config'])===null||_0x49e85c===void 0x0?void 0x0:_0x49e85c[_0x5c9ef2(0x13b)])))[_0x5c9ef2(0x11e)]())['toString']():'';}[a10_0x50a87e(0x13d)](_0x4d6ede,_0x437b98,_0x13c251=Date[a10_0x50a87e(0x138)]()){var _0x1e5802=a10_0x50a87e;return{'Token':_0x4d6ede,'Logintime':_0x13c251,'Checkcode':this[_0x1e5802(0x11d)](_0x4d6ede,_0x437b98,_0x13c251)};}[a10_0x50a87e(0x10e)](_0x3ba583={}){var _0x1ba44a=a10_0x50a87e,_0x3eac31,_0x662c0d;const _0x52efec=[],_0x11cbf2=Object[_0x1ba44a(0x106)](Object['entries'](_0x3ba583)[_0x1ba44a(0x122)](_0x3d1faf=>[_0x3d1faf[0x0][_0x1ba44a(0x144)](),_0x3d1faf[0x1]]));for(let _0x41d5ef of['device',_0x1ba44a(0x132),'token',_0x1ba44a(0x119),_0x1ba44a(0x11d)]){if(typeof _0x11cbf2[_0x41d5ef]==_0x1ba44a(0x123))throw new AnnError(ApiError_1['ApiError'][_0x1ba44a(0x10f)],{'message':_0x1ba44a(0x111)});_0x52efec[_0x1ba44a(0x13c)](_0x41d5ef+'='+_0x11cbf2[_0x41d5ef]);}_0x11cbf2[_0x1ba44a(0x132)]&&((_0x3eac31=_0x11cbf2['requesttime'])===null||_0x3eac31===void 0x0?void 0x0:_0x3eac31[_0x1ba44a(0x134)])==0xa&&(_0x11cbf2['requesttime']=_0x11cbf2[_0x1ba44a(0x132)]*0x3e8);if(this[_0x1ba44a(0x114)][_0x1ba44a(0x13a)]&&parseInt((''+Date[_0x1ba44a(0x138)]())[_0x1ba44a(0x14a)](0x0,0xd)[_0x1ba44a(0x137)](0xd,'0'))-parseInt((''+Math['abs'](_0x11cbf2[_0x1ba44a(0x132)]))[_0x1ba44a(0x14a)](0x0,0xd)[_0x1ba44a(0x137)](0xd,'0'))>parseInt(this[_0x1ba44a(0x114)][_0x1ba44a(0x13a)]))throw new AnnError(ApiError_1[_0x1ba44a(0x12a)][_0x1ba44a(0x124)],{'message':_0x1ba44a(0x10b),'requesttime':_0x11cbf2['requesttime'],'timestamp':Date[_0x1ba44a(0x138)]()});if((((_0x662c0d=this['config']['devices'][_0x11cbf2[_0x1ba44a(0x12c)]])===null||_0x662c0d===void 0x0?void 0x0:_0x662c0d[_0x1ba44a(0x11f)])||0x0)>0x0&&Date[_0x1ba44a(0x138)]()-Math[_0x1ba44a(0x130)](_0x11cbf2[_0x1ba44a(0x119)])>this[_0x1ba44a(0x114)]['devices'][_0x11cbf2[_0x1ba44a(0x12c)]][_0x1ba44a(0x11f)])throw new AnnError(ApiError_1[_0x1ba44a(0x12a)][_0x1ba44a(0x127)]);if(!this['config'][_0x1ba44a(0x118)][_0x11cbf2['device']]||!this[_0x1ba44a(0x114)][_0x1ba44a(0x118)][_0x11cbf2[_0x1ba44a(0x12c)]]['secret']||!this[_0x1ba44a(0x114)][_0x1ba44a(0x118)][_0x11cbf2[_0x1ba44a(0x12c)]]['checkcode'])throw new AnnError(ApiError_1[_0x1ba44a(0x12a)][_0x1ba44a(0x148)]);if(_0x11cbf2[_0x1ba44a(0x12d)]&&_0x11cbf2[_0x1ba44a(0x11d)]!=this[_0x1ba44a(0x11d)](_0x11cbf2[_0x1ba44a(0x12d)],_0x11cbf2[_0x1ba44a(0x12c)],_0x11cbf2[_0x1ba44a(0x119)]))throw new AnnError(ApiError_1[_0x1ba44a(0x12a)][_0x1ba44a(0x136)]);return _0x52efec[_0x1ba44a(0x13c)]('secret='+this[_0x1ba44a(0x114)][_0x1ba44a(0x118)][_0x11cbf2[_0x1ba44a(0x12c)]][_0x1ba44a(0x120)]),(0x0,crypto_js_1[_0x1ba44a(0x10a)])(_0x52efec[_0x1ba44a(0x125)]()[_0x1ba44a(0x13e)](''))['toString']();}[a10_0x50a87e(0x11d)](_0x3cd003,_0x2b8269,_0x1a3baa=Date[a10_0x50a87e(0x138)]()){var _0x2220fa=a10_0x50a87e,_0x24c29e,_0x289297,_0x312b55;if(!((_0x24c29e=this['config'])===null||_0x24c29e===void 0x0?void 0x0:_0x24c29e[_0x2220fa(0x118)][_0x2b8269])||!((_0x312b55=(_0x289297=this['config'])===null||_0x289297===void 0x0?void 0x0:_0x289297[_0x2220fa(0x118)][_0x2b8269])===null||_0x312b55===void 0x0?void 0x0:_0x312b55[_0x2220fa(0x11d)]))throw new AnnError(ApiError_1[_0x2220fa(0x12a)][_0x2220fa(0x148)]);return(0x0,crypto_js_1['MD5'])(''+_0x3cd003+(0x0,crypto_js_1[_0x2220fa(0x10a)])(''+_0x1a3baa+(''+this['config'][_0x2220fa(0x118)][_0x2b8269][_0x2220fa(0x11d)]))['toString']())[_0x2220fa(0x11e)]();}[a10_0x50a87e(0x140)](_0x56cf7e={}){var _0x4f110b=a10_0x50a87e;const _0x34e95a=Object[_0x4f110b(0x106)](Object['entries'](_0x56cf7e)[_0x4f110b(0x122)](_0x2b02b1=>[_0x2b02b1[0x0][_0x4f110b(0x144)](),_0x2b02b1[0x1]]));if(!(_0x34e95a===null||_0x34e95a===void 0x0?void 0x0:_0x34e95a[_0x4f110b(0x108)]))throw new AnnError(ApiError_1['ApiError'][_0x4f110b(0x10f)],{'message':_0x4f110b(0x111)});if((_0x34e95a===null||_0x34e95a===void 0x0?void 0x0:_0x34e95a[_0x4f110b(0x108)])!=this[_0x4f110b(0x10e)](_0x34e95a))throw new AnnError(ApiError_1['ApiError'][_0x4f110b(0x11b)],{'message':_0x4f110b(0x111)});return!![];}};exports[a10_0x50a87e(0x139)]=ApiService,__decorate([(0x0,core_1[a10_0x50a87e(0x147)])(a10_0x50a87e(0x109)),__metadata(a10_0x50a87e(0x141),Object)],ApiService['prototype'],a10_0x50a87e(0x114),void 0x0),exports[a10_0x50a87e(0x139)]=ApiService=__decorate([(0x0,core_1[a10_0x50a87e(0x133)])(),(0x0,core_1['Scope'])(core_1[a10_0x50a87e(0x128)][a10_0x50a87e(0x12b)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x1ede61=a11_0x59f2;(function(_0x24b45c,_0x2813e6){const _0x22c135=a11_0x59f2,_0x595580=_0x24b45c();while(!![]){try{const _0x4107cc=-parseInt(_0x22c135(0xc4))/0x1+-parseInt(_0x22c135(0xa4))/0x2*(-parseInt(_0x22c135(0xa3))/0x3)+-parseInt(_0x22c135(0xa6))/0x4+parseInt(_0x22c135(0x95))/0x5+parseInt(_0x22c135(0xc0))/0x6+-parseInt(_0x22c135(0xcb))/0x7+-parseInt(_0x22c135(0xc1))/0x8*(-parseInt(_0x22c135(0xa8))/0x9);if(_0x4107cc===_0x2813e6)break;else _0x595580['push'](_0x595580['shift']());}catch(_0x3f3df7){_0x595580['push'](_0x595580['shift']());}}}(a11_0x42df,0xa81e6));const a11_0x2fb5d5=(function(){let _0x53fa6a=!![];return function(_0x6c0bf0,_0x5c67ad){const _0x25e5a2=_0x53fa6a?function(){if(_0x5c67ad){const _0x31a88e=_0x5c67ad['apply'](_0x6c0bf0,arguments);return _0x5c67ad=null,_0x31a88e;}}:function(){};return _0x53fa6a=![],_0x25e5a2;};}()),a11_0x336e57=a11_0x2fb5d5(this,function(){const _0x24d7f0=a11_0x59f2;return a11_0x336e57[_0x24d7f0(0xa0)]()[_0x24d7f0(0xb2)](_0x24d7f0(0x8d))['toString']()[_0x24d7f0(0x87)](a11_0x336e57)['search']('(((.+)+)+)+$');});a11_0x336e57();'use strict';function a11_0x42df(){const _0x219614=['description','text/css;\x20charset=utf-8','Controller','ApitestStaticController','Inject','constructor','apitestmodule','../../public/','path','prototype','design:type','(((.+)+)+)+$','__metadata','extname','replace','module','prefix','anncicapi','join','2889125IljCOM','Singleton','ctx','request','getRoutes','ScopeEnum','design:returntype','.js','Param','/apitest','stringify','toString','getOwnPropertyDescriptor','Scope','33qWEWnF','238612nPvqlQ','Request','3711416ydypYi','/apiteststatic/*','260037lVyTet','devices','routes','function','config','apidoc','apitesthtml','Environment','ApitestService','set','search','__decorate','utf-8','Get','__param','apitest','@midwayjs/core','existsSync','object','/index.html','isDevelopmentEnvironment','route','push','apiteststatic','1251666XyHCOO','88UEsBBx','Config','../../public/index.html','570118IswJJY','defineProperty','content-type','MidwayEnvironmentService','/apiteststatic/','application/javascript;\x20charset=utf-8','url','1610273KEbUGd','design:paramtypes','filepath','substring','__apiList__','__esModule','readFileSync','/apitest-:module','decorate','summary'];a11_0x42df=function(){return _0x219614;};return a11_0x42df();}var __decorate=this&&this[a11_0x1ede61(0xb3)]||function(_0x27aeb8,_0x44c954,_0x36fbe7,_0x6b5d4b){const _0x5c3aca=a11_0x1ede61;var _0x364b6e=arguments['length'],_0x84b129=_0x364b6e<0x3?_0x44c954:_0x6b5d4b===null?_0x6b5d4b=Object[_0x5c3aca(0xa1)](_0x44c954,_0x36fbe7):_0x6b5d4b,_0x4079d8;if(typeof Reflect===_0x5c3aca(0xba)&&typeof Reflect['decorate']===_0x5c3aca(0xab))_0x84b129=Reflect[_0x5c3aca(0xd3)](_0x27aeb8,_0x44c954,_0x36fbe7,_0x6b5d4b);else{for(var _0x7ed85c=_0x27aeb8['length']-0x1;_0x7ed85c>=0x0;_0x7ed85c--)if(_0x4079d8=_0x27aeb8[_0x7ed85c])_0x84b129=(_0x364b6e<0x3?_0x4079d8(_0x84b129):_0x364b6e>0x3?_0x4079d8(_0x44c954,_0x36fbe7,_0x84b129):_0x4079d8(_0x44c954,_0x36fbe7))||_0x84b129;}return _0x364b6e>0x3&&_0x84b129&&Object[_0x5c3aca(0xc5)](_0x44c954,_0x36fbe7,_0x84b129),_0x84b129;},__metadata=this&&this[a11_0x1ede61(0x8e)]||function(_0x2e2fc5,_0x4d9f77){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x2e2fc5,_0x4d9f77);},__param=this&&this[a11_0x1ede61(0xb6)]||function(_0x19a5e6,_0x1a1e0a){return function(_0x3ebd13,_0x28367f){_0x1a1e0a(_0x3ebd13,_0x28367f,_0x19a5e6);};};Object[a11_0x1ede61(0xc5)](exports,a11_0x1ede61(0xd0),{'value':!![]}),exports[a11_0x1ede61(0x85)]=exports[a11_0x1ede61(0xb0)]=void 0x0;const path_1=require(a11_0x1ede61(0x8a)),fs_1=require('fs'),core_1=require(a11_0x1ede61(0xb8)),core_2=require(a11_0x1ede61(0xb8)),core_3=require(a11_0x1ede61(0xb8)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a11_0x1ede61(0xad)](_0x4b67ec){const _0x247f8f=a11_0x1ede61,_0x21fef6=(0x0,getRoutes_1[_0x247f8f(0x99)])(_0x4b67ec),_0x40f9c3=[];for(let _0x5925d7 in _0x21fef6){for(let _0x424b68 in _0x21fef6[_0x5925d7][_0x247f8f(0xaa)]){let _0x1c7138=_0x21fef6[_0x5925d7][_0x247f8f(0xaa)][_0x424b68],_0x563fc7=[];for(let _0x48dfe1 in _0x1c7138[_0x247f8f(0x98)]){_0x563fc7[_0x247f8f(0xbe)](_0x1c7138[_0x247f8f(0x98)][_0x48dfe1]);}_0x40f9c3[_0x247f8f(0xbe)]({'title':_0x21fef6[_0x5925d7][_0x247f8f(0xd4)]+':'+_0x1c7138[_0x247f8f(0xd4)],'prefix':_0x21fef6[_0x5925d7][_0x247f8f(0x92)],'router':_0x1c7138[_0x247f8f(0xbd)],'method':_0x1c7138['method'],'describe':_0x1c7138[_0x247f8f(0x82)]||'','filepath':_0x21fef6[_0x5925d7][_0x247f8f(0xcd)]||'','request':_0x563fc7});}}const _0x2ff97c=(0x0,path_1[_0x247f8f(0x94)])(__dirname,_0x247f8f(0xc3));return(0x0,fs_1['readFileSync'])(_0x2ff97c,{'encoding':_0x247f8f(0xb4)})[_0x247f8f(0x90)](/__res__/g,_0x247f8f(0xc8))[_0x247f8f(0x90)](_0x247f8f(0xcf),JSON['stringify'](_0x40f9c3))[_0x247f8f(0x90)]('__devices__',JSON[_0x247f8f(0x9f)](this[_0x247f8f(0xac)][_0x247f8f(0xa9)]));}};function a11_0x59f2(_0x2d21b7,_0x44c1b5){const _0x410078=a11_0x42df();return a11_0x59f2=function(_0x336e57,_0x2fb5d5){_0x336e57=_0x336e57-0x82;let _0x42df2d=_0x410078[_0x336e57];return _0x42df2d;},a11_0x59f2(_0x2d21b7,_0x44c1b5);}exports[a11_0x1ede61(0xb0)]=ApitestService,__decorate([(0x0,core_3[a11_0x1ede61(0xc2)])(a11_0x1ede61(0x93)),__metadata(a11_0x1ede61(0x8c),Object)],ApitestService['prototype'],a11_0x1ede61(0xac),void 0x0),exports[a11_0x1ede61(0xb0)]=ApitestService=__decorate([(0x0,core_2['Provide'])('apitest'),(0x0,core_3['Scope'])(core_3[a11_0x1ede61(0x9a)][a11_0x1ede61(0x96)])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a11_0x1ede61(0xae)](){const _0x48a654=a11_0x1ede61;if(this[_0x48a654(0xb7)]){const _0x1f47e4={'module':![]};return this[_0x48a654(0xaf)][_0x48a654(0xbc)]()&&(_0x1f47e4['filepath']=!![]),await this[_0x48a654(0xb0)][_0x48a654(0xad)](_0x1f47e4);}return'';}async[a11_0x1ede61(0x88)](_0x4051c9){const _0x2cfdd0=a11_0x1ede61;if(this[_0x2cfdd0(0xb7)]){const _0x1d6fe3={'module':_0x4051c9};return this[_0x2cfdd0(0xaf)][_0x2cfdd0(0xbc)]()&&(_0x1d6fe3[_0x2cfdd0(0xcd)]=!![]),await this['ApitestService'][_0x2cfdd0(0xad)](_0x1d6fe3);}return'';}async[a11_0x1ede61(0xbf)](){const _0x548925=a11_0x1ede61;if((0x0,path_1[_0x548925(0x8f)])(this[_0x548925(0x97)][_0x548925(0x98)][_0x548925(0xca)])){var _0x5e7969=(0x0,path_1[_0x548925(0x94)])(__dirname,_0x548925(0x89)+this[_0x548925(0x97)][_0x548925(0x98)][_0x548925(0xca)][_0x548925(0x90)](_0x548925(0xc8),'/'));if(_0x5e7969[_0x548925(0xce)](_0x5e7969['length']-0xb)!=_0x548925(0xbb)){this[_0x548925(0x97)]['set']('cache-control','public,\x20max-age=604800');if((0x0,path_1['extname'])(this[_0x548925(0x97)][_0x548925(0x98)][_0x548925(0xca)])==_0x548925(0x9c))this[_0x548925(0x97)][_0x548925(0xb1)]('content-type',_0x548925(0xc9));else(0x0,path_1[_0x548925(0x8f)])(this[_0x548925(0x97)][_0x548925(0x98)]['url'])=='.css'&&this[_0x548925(0x97)][_0x548925(0xb1)](_0x548925(0xc6),_0x548925(0x83));return(0x0,fs_1[_0x548925(0xb9)])(_0x5e7969)&&(0x0,fs_1[_0x548925(0xd1)])(_0x5e7969,{'encoding':'utf-8'});}}return'';}};exports['ApitestStaticController']=ApitestStaticController,__decorate([(0x0,core_3[a11_0x1ede61(0x86)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x1ede61(0x8b)],a11_0x1ede61(0x97),void 0x0),__decorate([(0x0,core_3[a11_0x1ede61(0x86)])(),__metadata(a11_0x1ede61(0x8c),core_1[a11_0x1ede61(0xc7)])],ApitestStaticController['prototype'],a11_0x1ede61(0xaf),void 0x0),__decorate([(0x0,core_3[a11_0x1ede61(0x86)])(),__metadata(a11_0x1ede61(0x8c),ApitestService)],ApitestStaticController[a11_0x1ede61(0x8b)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a11_0x1ede61(0xc2)])(a11_0x1ede61(0xb7)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x1ede61(0x8b)],a11_0x1ede61(0xb7),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x1ede61(0x93)),__metadata(a11_0x1ede61(0x8c),Object)],ApitestStaticController['prototype'],a11_0x1ede61(0xac),void 0x0),__decorate([(0x0,core_2[a11_0x1ede61(0xb5)])(a11_0x1ede61(0x9e)),__metadata(a11_0x1ede61(0x8c),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x1ede61(0x9b),Promise)],ApitestStaticController[a11_0x1ede61(0x8b)],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a11_0x1ede61(0xd2)),__param(0x0,(0x0,core_2[a11_0x1ede61(0x9d)])(a11_0x1ede61(0x91))),__metadata(a11_0x1ede61(0x8c),Function),__metadata(a11_0x1ede61(0xcc),[String]),__metadata(a11_0x1ede61(0x9b),Promise)],ApitestStaticController[a11_0x1ede61(0x8b)],a11_0x1ede61(0x88),null),__decorate([(0x0,core_2[a11_0x1ede61(0xb5)])(a11_0x1ede61(0xa7)),__metadata('design:type',Function),__metadata(a11_0x1ede61(0xcc),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x1ede61(0x8b)],'apiteststatic',null),exports[a11_0x1ede61(0x85)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x1ede61(0x84)])('/'),(0x0,core_3[a11_0x1ede61(0xa2)])(core_3[a11_0x1ede61(0x9a)][a11_0x1ede61(0xa5)])],ApitestStaticController);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as exceljs from 'exceljs';
|
|
2
2
|
import { IMidwayApplication } from '@midwayjs/core';
|
|
3
|
+
import { ExcelStream } from './ExcelStream';
|
|
3
4
|
interface ExcelColumn {
|
|
4
5
|
key: string;
|
|
5
6
|
header: string;
|
|
@@ -29,6 +30,10 @@ export declare class ExcelService {
|
|
|
29
30
|
filename: string;
|
|
30
31
|
filepath: string;
|
|
31
32
|
}>;
|
|
33
|
+
stream(file: string, option?: {
|
|
34
|
+
root?: string;
|
|
35
|
+
suffix?: string[];
|
|
36
|
+
}): Promise<ExcelStream>;
|
|
32
37
|
download(ctx: any, filepath: string): Promise<void>;
|
|
33
38
|
}
|
|
34
39
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x1ed361=a12_0x4ab2;function a12_0x4ab2(_0x53a0e8,_0xc359b8){const _0x57aad7=a12_0x4b9d();return a12_0x4ab2=function(_0x2b1a76,_0x945ed6){_0x2b1a76=_0x2b1a76-0xec;let _0x4b9deb=_0x57aad7[_0x2b1a76];return _0x4b9deb;},a12_0x4ab2(_0x53a0e8,_0xc359b8);}(function(_0x2354c2,_0x2e29e6){const _0x24a687=a12_0x4ab2,_0x27df65=_0x2354c2();while(!![]){try{const _0x36024d=-parseInt(_0x24a687(0xff))/0x1+-parseInt(_0x24a687(0x105))/0x2+-parseInt(_0x24a687(0x137))/0x3*(-parseInt(_0x24a687(0x12f))/0x4)+parseInt(_0x24a687(0xfa))/0x5*(parseInt(_0x24a687(0x116))/0x6)+parseInt(_0x24a687(0x120))/0x7+parseInt(_0x24a687(0xed))/0x8+parseInt(_0x24a687(0x127))/0x9;if(_0x36024d===_0x2e29e6)break;else _0x27df65['push'](_0x27df65['shift']());}catch(_0x282833){_0x27df65['push'](_0x27df65['shift']());}}}(a12_0x4b9d,0x2511a));const a12_0x945ed6=(function(){let _0x1c5afc=!![];return function(_0xbe406b,_0x4f5841){const _0x184ca8=_0x1c5afc?function(){const _0xec488e=a12_0x4ab2;if(_0x4f5841){const _0x226062=_0x4f5841[_0xec488e(0xee)](_0xbe406b,arguments);return _0x4f5841=null,_0x226062;}}:function(){};return _0x1c5afc=![],_0x184ca8;};}()),a12_0x2b1a76=a12_0x945ed6(this,function(){const _0x14606c=a12_0x4ab2;return a12_0x2b1a76[_0x14606c(0xec)]()[_0x14606c(0x12c)](_0x14606c(0x131))[_0x14606c(0xec)]()[_0x14606c(0x130)](a12_0x2b1a76)[_0x14606c(0x12c)](_0x14606c(0x131));});a12_0x2b1a76();'use strict';var __decorate=this&&this[a12_0x1ed361(0x122)]||function(_0x3d9e8d,_0x248944,_0x5cc316,_0x17571a){const _0x31476c=a12_0x1ed361;var _0x3e4367=arguments['length'],_0x46f5da=_0x3e4367<0x3?_0x248944:_0x17571a===null?_0x17571a=Object[_0x31476c(0x112)](_0x248944,_0x5cc316):_0x17571a,_0x5288a9;if(typeof Reflect===_0x31476c(0x12e)&&typeof Reflect['decorate']===_0x31476c(0xf8))_0x46f5da=Reflect[_0x31476c(0xf5)](_0x3d9e8d,_0x248944,_0x5cc316,_0x17571a);else{for(var _0x3e4216=_0x3d9e8d[_0x31476c(0x132)]-0x1;_0x3e4216>=0x0;_0x3e4216--)if(_0x5288a9=_0x3d9e8d[_0x3e4216])_0x46f5da=(_0x3e4367<0x3?_0x5288a9(_0x46f5da):_0x3e4367>0x3?_0x5288a9(_0x248944,_0x5cc316,_0x46f5da):_0x5288a9(_0x248944,_0x5cc316))||_0x46f5da;}return _0x3e4367>0x3&&_0x46f5da&&Object[_0x31476c(0x11d)](_0x248944,_0x5cc316,_0x46f5da),_0x46f5da;},__metadata=this&&this[a12_0x1ed361(0x11c)]||function(_0x3a433b,_0x5296ac){const _0x2e264d=a12_0x1ed361;if(typeof Reflect==='object'&&typeof Reflect[_0x2e264d(0x114)]===_0x2e264d(0xf8))return Reflect['metadata'](_0x3a433b,_0x5296ac);};Object[a12_0x1ed361(0x11d)](exports,'__esModule',{'value':!![]}),exports[a12_0x1ed361(0x136)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1ed361(0xf0)),koasend=require('koa-send'),core_1=require(a12_0x1ed361(0x111)),ExcelStream_1=require(a12_0x1ed361(0xfc));let ExcelService=class ExcelService{async[a12_0x1ed361(0x10e)](_0x537dd7,_0x50f95f,_0x19c71d=[0x0]){const _0x5e262b=a12_0x1ed361;var _0x448ce5,_0x3af49c;const _0x420144=new exceljs[(_0x5e262b(0x10d))](),_0x3d689c=[];let _0x209aba=_0x537dd7[_0x5e262b(0xf6)](/(\\|\/)/g,'/')[_0x5e262b(0xf6)](/\/{2,}/g,'/');!(_0x209aba===null||_0x209aba===void 0x0?void 0x0:_0x209aba[_0x5e262b(0x123)]('/'))&&(_0x209aba=this[_0x5e262b(0x109)][_0x5e262b(0x115)]()+'/'+_0x209aba);try{await _0x420144[_0x5e262b(0x12a)]['readFile'](_0x209aba);}catch(_0x401410){return console[_0x5e262b(0x125)](_0x5e262b(0xf9)+_0x209aba+_0x5e262b(0x126)),_0x3d689c;}for(const _0x3a27d8 of _0x19c71d){const _0x20b830=lodash[_0x5e262b(0x119)](_0x3a27d8)?((_0x448ce5=_0x420144[_0x5e262b(0x11a)])===null||_0x448ce5===void 0x0?void 0x0:_0x448ce5[_0x3a27d8])||undefined:_0x420144[_0x5e262b(0xf4)](_0x3a27d8);if(_0x20b830){var _0x53aa5e=0x1;const _0x49aa6d=_0x20b830['getRow'](0x1),_0x19de57=await new Promise(_0x29e0d0=>{const _0x48be1b=_0x5e262b,_0x21270d={};_0x49aa6d[_0x48be1b(0x133)]((_0x1e7212,_0x304ec5)=>{const _0x17d6de=_0x48be1b;for(const _0x4f0b1f of _0x50f95f){if(_0x1e7212[_0x17d6de(0x10f)]==_0x4f0b1f[_0x17d6de(0x106)])_0x53aa5e=0x2,_0x21270d[_0x4f0b1f['key']]={'header':_0x1e7212[_0x17d6de(0x10a)],'handler':_0x4f0b1f[_0x17d6de(0x11f)]};else{if(!_0x21270d[_0x4f0b1f[_0x17d6de(0x135)]])try{const _0x2c1ba2=_0x49aa6d&&_0x49aa6d[_0x17d6de(0x104)](_0x4f0b1f[_0x17d6de(0x106)]);_0x2c1ba2&&(_0x21270d[_0x4f0b1f['key']]={'header':_0x2c1ba2[_0x17d6de(0x10a)],'handler':_0x4f0b1f[_0x17d6de(0x11f)]});}catch{}}}_0x49aa6d[_0x17d6de(0x134)]==_0x304ec5&&_0x29e0d0(_0x21270d);});});_0x581b8c:for(const _0x3c8bd5 of _0x20b830[_0x5e262b(0xf7)](_0x53aa5e,_0x20b830[_0x5e262b(0xf2)])){if(typeof(_0x3c8bd5===null||_0x3c8bd5===void 0x0?void 0x0:_0x3c8bd5[_0x5e262b(0x104)])!=_0x5e262b(0xf8))continue _0x581b8c;const _0x56cfbc={};_0x5133bd:for(const _0x3abcdb in _0x19de57){if(_0x19de57[_0x3abcdb][_0x5e262b(0x106)]){const _0x52925e=_0x3c8bd5[_0x5e262b(0x104)](_0x19de57[_0x3abcdb][_0x5e262b(0x106)]);if(!_0x52925e)continue _0x5133bd;try{_0x52925e['toString']();}catch(_0x54d044){_0x52925e[_0x5e262b(0xec)]=()=>{const _0x113651=_0x5e262b;var _0x5b4e87;return''+(((_0x5b4e87=_0x52925e===null||_0x52925e===void 0x0?void 0x0:_0x52925e['model'])===null||_0x5b4e87===void 0x0?void 0x0:_0x5b4e87[_0x113651(0x10f)])||'');};}typeof((_0x3af49c=_0x19de57[_0x3abcdb])===null||_0x3af49c===void 0x0?void 0x0:_0x3af49c[_0x5e262b(0x11f)])==_0x5e262b(0xf8)?_0x56cfbc[_0x3abcdb]=await _0x19de57[_0x3abcdb][_0x5e262b(0x11f)](lodash[_0x5e262b(0x10b)]({},_0x3abcdb,(_0x52925e===null||_0x52925e===void 0x0?void 0x0:_0x52925e[_0x5e262b(0xec)]())||''),_0x52925e[_0x5e262b(0x12b)]):_0x56cfbc[_0x3abcdb]=(_0x52925e===null||_0x52925e===void 0x0?void 0x0:_0x52925e[_0x5e262b(0xec)]())||'';}}Object[_0x5e262b(0xf3)](_0x56cfbc)[_0x5e262b(0x132)]>0x0&&Object[_0x5e262b(0x110)](_0x56cfbc)[_0x5e262b(0xfb)](_0x1a1199=>_0x1a1199!='')[_0x5e262b(0x132)]>0x0&&_0x3d689c['push'](_0x56cfbc);}}}return _0x3d689c;}async[a12_0x1ed361(0x113)](_0xc36b51,_0x2aa630,_0x276624,_0x43be18,_0x213b3b){const _0x2a9024=a12_0x1ed361;var _0x5625ce,_0x274be7;const _0x1ff8a0=new exceljs[(_0x2a9024(0x10d))](),_0xe870f6={},_0x3f2a73=[],_0x5507c1=_0x1ff8a0['addWorksheet'](_0x2a9024(0x102),{'views':[{'state':'frozen','ySplit':0x1}]});for(const _0x29b264 in _0x2aa630){_0xe870f6[_0x2aa630[_0x29b264][_0x2a9024(0x135)]]=_0x2aa630[_0x29b264][_0x2a9024(0x106)],_0x3f2a73['push']({'header':_0x2aa630[_0x29b264][_0x2a9024(0x106)],'key':(_0x5625ce=_0x2aa630[_0x29b264])===null||_0x5625ce===void 0x0?void 0x0:_0x5625ce['key'][_0x2a9024(0xf6)](/\./g,'_')});}_0x5507c1[_0x2a9024(0x11b)]=_0x3f2a73;for(const _0x425e75 in _0x276624){const _0x453420=_0x276624[_0x425e75],_0x9a28ab=_0x5507c1[_0x2a9024(0x12d)]({});for(let _0x4336fe in _0x2aa630){const _0x27fdb3=_0x2aa630[_0x4336fe][_0x2a9024(0x135)][_0x2a9024(0xf6)](/\./g,'_'),_0x16641f=_0x5507c1[_0x2a9024(0x117)](_0x27fdb3),_0x82ea24=_0x9a28ab===null||_0x9a28ab===void 0x0?void 0x0:_0x9a28ab['getCell'](_0x27fdb3);typeof((_0x274be7=_0x2aa630[_0x4336fe])===null||_0x274be7===void 0x0?void 0x0:_0x274be7[_0x2a9024(0x11f)])==_0x2a9024(0xf8)?_0x82ea24[_0x2a9024(0x10f)]=await _0x2aa630[_0x4336fe][_0x2a9024(0x11f)](_0x453420,{'row':_0x9a28ab,'col':_0x16641f,'cell':_0x82ea24,'sheet':_0x5507c1})||'':_0x82ea24[_0x2a9024(0x10f)]=lodash['get'](_0x453420,_0x2aa630[_0x4336fe][_0x2a9024(0x135)],'');}}typeof _0x213b3b==_0x2a9024(0xf8)&&await _0x213b3b({'workbook':_0x1ff8a0,'worksheet':_0x5507c1});let _0x2ad202='';const _0x378f3f=_0xc36b51+'.xlsx';if(_0x43be18&&_0x43be18[_0x2a9024(0x123)]('/'))_0x2ad202=''+_0x43be18;else _0x43be18&&!_0x43be18['startsWith']('/')&&!_0x43be18[_0x2a9024(0x123)]('\x5c')?_0x2ad202=this[_0x2a9024(0x109)][_0x2a9024(0x115)]()+'/'+_0x43be18:_0x2ad202=this[_0x2a9024(0x109)][_0x2a9024(0x115)]()+_0x2a9024(0x108)+dayjs()[_0x2a9024(0x11e)](_0x2a9024(0x101));return(_0x2ad202[_0x2a9024(0x138)]('/')||_0x2ad202[_0x2a9024(0x138)]('\x5c'))&&(_0x2ad202=_0x2ad202[_0x2a9024(0x128)](0x0,_0x2ad202[_0x2a9024(0x132)]-0x1)),_0x2ad202=_0x2ad202[_0x2a9024(0xf6)](/(\\|\/)/g,'/')[_0x2a9024(0xf6)](/\/{2,}/g,'/'),!fs[_0x2a9024(0x100)](_0x2ad202)&&fs[_0x2a9024(0xf1)](_0x2ad202,{'recursive':!![]}),await _0x1ff8a0[_0x2a9024(0x12a)]['writeFile']((_0x2ad202+'/'+_0x378f3f)[_0x2a9024(0xf6)](/(\\|\/)/g,'/')[_0x2a9024(0xf6)](/\/{2,}/g,'/')),{'filename':_0x378f3f,'filepath':(_0x2ad202[_0x2a9024(0x128)]((''+this[_0x2a9024(0x109)]['getAppDir']())[_0x2a9024(0x132)])+'/'+_0x378f3f)[_0x2a9024(0xf6)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x1ed361(0x10c)](_0x4033be,_0x29cb96={'suffix':[a12_0x1ed361(0xfe),a12_0x1ed361(0x12a)]}){const _0xa618a8=a12_0x1ed361;return await ExcelStream_1['ExcelStream'][_0xa618a8(0x107)](_0x4033be,_0x29cb96);}async[a12_0x1ed361(0xef)](_0x3bf5dd,_0x10ea7a){return await koasend(_0x3bf5dd,''+_0x10ea7a);}};exports[a12_0x1ed361(0x136)]=ExcelService,__decorate([(0x0,core_1['App'])(),__metadata(a12_0x1ed361(0x121),Object)],ExcelService[a12_0x1ed361(0x118)],'app',void 0x0),exports[a12_0x1ed361(0x136)]=ExcelService=__decorate([(0x0,core_1[a12_0x1ed361(0xfd)])(),(0x0,core_1[a12_0x1ed361(0x129)])(core_1[a12_0x1ed361(0x124)][a12_0x1ed361(0x103)])],ExcelService);function a12_0x4b9d(){const _0x4731a5=['prototype','isNumber','worksheets','columns','__metadata','defineProperty','format','handler','484078iCzvno','design:type','__decorate','startsWith','ScopeEnum','log','\x20is\x20read\x20fail','527184neaYEQ','substring','Scope','xlsx','model','search','addRow','object','1124UxCTiR','constructor','(((.+)+)+)+$','length','eachCell','cellCount','key','ExcelService','2148EJcSbo','endsWith','toString','1937024FevHaJ','apply','download','exceljs','mkdirSync','rowCount','keys','getWorksheet','decorate','replace','findRows','function','Api\x20Excel\x20Error:\x20','26540jiQKCx','filter','./ExcelStream','Provide','xls','276214NOPpGe','existsSync','YYYY/MM/DD','Sheet\x201','Singleton','getCell','519564jEbmTR','header','instance','/public/xlsx/','app','col','set','stream','Workbook','parse','value','values','@midwayjs/core','getOwnPropertyDescriptor','export','metadata','getAppDir','132mctKCL','getColumn'];a12_0x4b9d=function(){return _0x4731a5;};return a12_0x4b9d();}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as exceljs from 'exceljs';
|
|
2
|
+
interface ExcelColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
header: string;
|
|
5
|
+
handler?: (row: any, options?: {
|
|
6
|
+
row: exceljs.Row;
|
|
7
|
+
col: exceljs.Column;
|
|
8
|
+
cell: exceljs.Cell;
|
|
9
|
+
sheet: exceljs.Worksheet;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
}
|
|
12
|
+
interface ExcelImportColumn {
|
|
13
|
+
key: string;
|
|
14
|
+
header: string;
|
|
15
|
+
handler?: (row: any, rowCell?: exceljs.CellModel) => Promise<any>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ExcelStream {
|
|
18
|
+
protected readonly WorkbookReader: exceljs.stream.xlsx.WorkbookReader;
|
|
19
|
+
protected readonly WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter;
|
|
20
|
+
protected WorksheetWriterMap: Map<number | string, exceljs.Worksheet>;
|
|
21
|
+
constructor(WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter, WorkbookReader: exceljs.stream.xlsx.WorkbookReader);
|
|
22
|
+
static instance(file: string, option?: {
|
|
23
|
+
rootpath?: string;
|
|
24
|
+
suffix?: string[];
|
|
25
|
+
}): Promise<ExcelStream>;
|
|
26
|
+
writer(column: Array<ExcelColumn>, columnDatas: Array<{
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, sheet?: number | string): Promise<this>;
|
|
29
|
+
reader(column: ExcelImportColumn[], callback: (row: any, option: {
|
|
30
|
+
sheet: exceljs.Worksheet;
|
|
31
|
+
row: exceljs.Row;
|
|
32
|
+
}) => Promise<void>, options?: {
|
|
33
|
+
sheets?: number | string | Array<number | string>;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
save(): Promise<this>;
|
|
36
|
+
protected getWriterSheet(sheet: number | string, notFindCreate?: boolean): Promise<exceljs.Worksheet>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a13_0x127596=a13_0x539e;function a13_0x539e(_0x3c1bd4,_0x2fd4e9){const _0x556b2e=a13_0x1982();return a13_0x539e=function(_0x49c3c0,_0x411975){_0x49c3c0=_0x49c3c0-0x1a6;let _0x198220=_0x556b2e[_0x49c3c0];return _0x198220;},a13_0x539e(_0x3c1bd4,_0x2fd4e9);}(function(_0x4494f5,_0x4595a9){const _0x132aef=a13_0x539e,_0x5dbf45=_0x4494f5();while(!![]){try{const _0x1b5e23=-parseInt(_0x132aef(0x1be))/0x1+-parseInt(_0x132aef(0x1d1))/0x2+-parseInt(_0x132aef(0x1cd))/0x3+-parseInt(_0x132aef(0x1a8))/0x4*(parseInt(_0x132aef(0x1db))/0x5)+parseInt(_0x132aef(0x1c4))/0x6+parseInt(_0x132aef(0x1a7))/0x7+parseInt(_0x132aef(0x1dc))/0x8;if(_0x1b5e23===_0x4595a9)break;else _0x5dbf45['push'](_0x5dbf45['shift']());}catch(_0x42eae8){_0x5dbf45['push'](_0x5dbf45['shift']());}}}(a13_0x1982,0x3b950));const a13_0x411975=(function(){let _0x230c7d=!![];return function(_0x344982,_0x121e7c){const _0x1e5a4d=_0x230c7d?function(){const _0x2f19db=a13_0x539e;if(_0x121e7c){const _0x3da1ca=_0x121e7c[_0x2f19db(0x1ec)](_0x344982,arguments);return _0x121e7c=null,_0x3da1ca;}}:function(){};return _0x230c7d=![],_0x1e5a4d;};}()),a13_0x49c3c0=a13_0x411975(this,function(){const _0x2ce064=a13_0x539e;return a13_0x49c3c0[_0x2ce064(0x1b2)]()[_0x2ce064(0x1b0)](_0x2ce064(0x1e5))[_0x2ce064(0x1b2)]()[_0x2ce064(0x1e6)](a13_0x49c3c0)[_0x2ce064(0x1b0)]('(((.+)+)+)+$');});a13_0x49c3c0();'use strict';Object[a13_0x127596(0x1c1)](exports,'__esModule',{'value':!![]}),exports[a13_0x127596(0x1ed)]=void 0x0;const fs=require('fs'),path=require(a13_0x127596(0x1b8)),exceljs=require(a13_0x127596(0x1d4));class ExcelStream{constructor(_0xc82fa5,_0x276f19){const _0x911cf=a13_0x127596;this['WorksheetWriterMap']=new Map(),(this[_0x911cf(0x1cc)]=_0xc82fa5,this[_0x911cf(0x1b1)]=_0x276f19);}static[a13_0x127596(0x1ce)](_0x4e891a,_0x3e86c4={'suffix':[a13_0x127596(0x1bb),a13_0x127596(0x1d9)]}){return new Promise(async(_0x466c23,_0x4a0167)=>{const _0x46eaa5=a13_0x539e,_0x24c135=_0x4e891a[_0x46eaa5(0x1ab)]((_0x4e891a[_0x46eaa5(0x1de)]('/')>-0x1?_0x4e891a[_0x46eaa5(0x1af)]('/'):_0x4e891a[_0x46eaa5(0x1af)]('\x5c'))+0x1),_0xf84ed2=path[_0x46eaa5(0x1b4)](((_0x3e86c4===null||_0x3e86c4===void 0x0?void 0x0:_0x3e86c4[_0x46eaa5(0x1d6)])&&!_0x4e891a[_0x46eaa5(0x1c3)](_0x3e86c4[_0x46eaa5(0x1d6)])?_0x3e86c4['rootpath']+'/'+_0x4e891a:'/'+_0x4e891a)['replace'](/(\\|\/)/g,'/')[_0x46eaa5(0x1ba)](/\/{2,}/g,'/'));if(!((_0x3e86c4===null||_0x3e86c4===void 0x0?void 0x0:_0x3e86c4[_0x46eaa5(0x1d5)])?_0x3e86c4['suffix']:[_0x46eaa5(0x1bb),_0x46eaa5(0x1d9)])[_0x46eaa5(0x1b7)](_0x24c135[_0x46eaa5(0x1ab)](_0x24c135[_0x46eaa5(0x1af)]('.')+0x1)))return _0x4a0167(_0x46eaa5(0x1b9));if(!fs[_0x46eaa5(0x1b6)]((_0xf84ed2+'/'+_0x24c135)[_0x46eaa5(0x1ba)](/(\\|\/)/g,'/')[_0x46eaa5(0x1ba)](/\/{2,}/g,'/'))){!fs['existsSync'](_0xf84ed2)&&fs[_0x46eaa5(0x1c5)](_0xf84ed2,{'recursive':!![]});const _0x55c50a=new exceljs[(_0x46eaa5(0x1da))]();await _0x55c50a[_0x46eaa5(0x1d9)][_0x46eaa5(0x1c8)]((_0xf84ed2+'/'+_0x24c135)[_0x46eaa5(0x1ba)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));}const _0x4c8a9c=new exceljs[(_0x46eaa5(0x1d7))][(_0x46eaa5(0x1d9))][(_0x46eaa5(0x1cc))]({'filename':(_0xf84ed2+'/'+_0x24c135)[_0x46eaa5(0x1ba)](/(\\|\/)/g,'/')[_0x46eaa5(0x1ba)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x231794=new exceljs['stream'][(_0x46eaa5(0x1d9))]['WorkbookReader']((_0xf84ed2+'/'+_0x24c135)['replace'](/(\\|\/)/g,'/')[_0x46eaa5(0x1ba)](/\/{2,}/g,'/'),{'worksheets':_0x46eaa5(0x1a9),'sharedStrings':_0x46eaa5(0x1d3),'hyperlinks':_0x46eaa5(0x1d3),'styles':_0x46eaa5(0x1d3)});return _0x466c23(new ExcelStream(_0x4c8a9c,_0x231794));});}async[a13_0x127596(0x1d0)](_0x388b2f,_0x345677,_0xe956c9=0x0){const _0x3d6d0b=a13_0x127596;var _0x36a19a,_0x55a117;const _0x4b916e=await this[_0x3d6d0b(0x1c6)](_0xe956c9,!![]),_0x2599b4={},_0x501066=[];for(const _0x589751 in _0x388b2f){_0x2599b4[_0x388b2f[_0x589751]['key']]=_0x388b2f[_0x589751][_0x3d6d0b(0x1b5)],_0x501066['push']({'header':_0x388b2f[_0x589751][_0x3d6d0b(0x1b5)],'key':(_0x36a19a=_0x388b2f[_0x589751])===null||_0x36a19a===void 0x0?void 0x0:_0x36a19a[_0x3d6d0b(0x1e0)][_0x3d6d0b(0x1ba)](/\./g,'_')});}(_0x4b916e===null||_0x4b916e===void 0x0?void 0x0:_0x4b916e[_0x3d6d0b(0x1d2)])!=_0x501066&&(_0x4b916e[_0x3d6d0b(0x1d2)]=_0x501066);for(const _0x1489e2 in _0x345677){const _0x2dfdb3=_0x345677[_0x1489e2],_0xb4bf6d=_0x4b916e['addRow']({});for(let _0x193bad in _0x388b2f){const _0x369261=_0x388b2f[_0x193bad][_0x3d6d0b(0x1e0)]['replace'](/\./g,'_'),_0x2a6bc4=_0x4b916e[_0x3d6d0b(0x1cf)](_0x369261),_0x1848d8=_0xb4bf6d===null||_0xb4bf6d===void 0x0?void 0x0:_0xb4bf6d[_0x3d6d0b(0x1aa)](_0x369261);typeof((_0x55a117=_0x388b2f[_0x193bad])===null||_0x55a117===void 0x0?void 0x0:_0x55a117[_0x3d6d0b(0x1eb)])==_0x3d6d0b(0x1e2)?_0x1848d8[_0x3d6d0b(0x1b3)]=await _0x388b2f[_0x193bad]['handler'](_0x2dfdb3,{'row':_0xb4bf6d,'col':_0x2a6bc4,'cell':_0x1848d8,'sheet':_0x4b916e})||'':_0x1848d8[_0x3d6d0b(0x1b3)]=lodash['get'](_0x2dfdb3,_0x388b2f[_0x193bad][_0x3d6d0b(0x1e0)],'');}}return this;}async[a13_0x127596(0x1bf)](_0x347552,_0x379b0e,_0x177225={'sheets':0x0}){const _0x388472=a13_0x127596;var _0x18fe42;const _0x3721bc=(_0x177225===null||_0x177225===void 0x0?void 0x0:_0x177225[_0x388472(0x1c0)])?Array[_0x388472(0x1e9)](_0x177225[_0x388472(0x1c0)])?_0x177225['sheets']:[_0x177225[_0x388472(0x1c0)]]:[0x0],_0x3649ff=_0x304ae8=>new Promise(async(_0x5c35cc,_0x2d8da9)=>{const _0x133637=_0x388472,_0x28a83d=_0x304ae8[_0x133637(0x1e3)](0x1),_0x1374bb=await new Promise(_0x2df378=>{const _0xf6b710=_0x133637,_0x1d2274={};_0x28a83d[_0xf6b710(0x1a6)]((_0x500b32,_0x2111de)=>{const _0x391a33=_0xf6b710;for(const _0x593b25 of _0x347552){if(_0x500b32[_0x391a33(0x1b3)]==_0x593b25[_0x391a33(0x1b5)])_0x1d2274[_0x593b25[_0x391a33(0x1e0)]]={'header':_0x500b32[_0x391a33(0x1ca)],'handler':_0x593b25['handler']};else{if(!_0x1d2274[_0x593b25[_0x391a33(0x1e0)]])try{const _0x37dfa1=_0x28a83d&&_0x28a83d[_0x391a33(0x1aa)](_0x593b25[_0x391a33(0x1b5)]);_0x37dfa1&&(_0x1d2274[_0x593b25[_0x391a33(0x1e0)]]={'header':_0x37dfa1['col'],'handler':_0x593b25[_0x391a33(0x1eb)]});}catch{}}}_0x28a83d['cellCount']==_0x2111de&&_0x2df378(_0x1d2274);});});_0x304ae8['on'](_0x133637(0x1ac),_0x47eaac=>_0x5c35cc(_0x304ae8)),_0x304ae8['on']('error',_0x375143=>_0x2d8da9(_0x375143)),_0x304ae8['on'](_0x133637(0x1e4),async _0x38ed14=>{const _0x296513=_0x133637;var _0x115b33;if(typeof(_0x38ed14===null||_0x38ed14===void 0x0?void 0x0:_0x38ed14[_0x296513(0x1aa)])==_0x296513(0x1e2)){const _0x47429b={};_0xc41664:for(const _0x1c2752 in _0x1374bb){if(_0x1374bb[_0x1c2752]['header']){const _0x471746=_0x38ed14[_0x296513(0x1aa)](_0x1374bb[_0x1c2752]['header']);if(!_0x471746)continue _0xc41664;try{_0x471746[_0x296513(0x1b2)]();}catch(_0xd46058){_0x471746['toString']=()=>{const _0x5595f2=_0x296513;var _0x4183ef;return''+(((_0x4183ef=_0x471746===null||_0x471746===void 0x0?void 0x0:_0x471746[_0x5595f2(0x1ea)])===null||_0x4183ef===void 0x0?void 0x0:_0x4183ef[_0x5595f2(0x1b3)])||'');};}typeof((_0x115b33=_0x1374bb[_0x1c2752])===null||_0x115b33===void 0x0?void 0x0:_0x115b33[_0x296513(0x1eb)])==_0x296513(0x1e2)?_0x47429b[_0x1c2752]=await _0x1374bb[_0x1c2752][_0x296513(0x1eb)](lodash[_0x296513(0x1ae)]({},_0x1c2752,(_0x471746===null||_0x471746===void 0x0?void 0x0:_0x471746[_0x296513(0x1b2)]())||''),_0x471746[_0x296513(0x1ea)]):_0x47429b[_0x1c2752]=(_0x471746===null||_0x471746===void 0x0?void 0x0:_0x471746[_0x296513(0x1b2)]())||'';}}Object[_0x296513(0x1dd)](_0x47429b)[_0x296513(0x1df)]>0x0&&Object[_0x296513(0x1c2)](_0x47429b)[_0x296513(0x1bc)](_0x30a6cb=>_0x30a6cb!='')[_0x296513(0x1df)]>0x0&&await _0x379b0e(_0x47429b,{'sheet':_0x304ae8,'row':_0x38ed14});}}),await _0x304ae8['read']();});for(const _0x56b8bb of _0x3721bc){const _0x28359d=lodash[_0x388472(0x1cb)](_0x56b8bb)?((_0x18fe42=this[_0x388472(0x1b1)][_0x388472(0x1c7)])===null||_0x18fe42===void 0x0?void 0x0:_0x18fe42[_0x56b8bb])||undefined:this[_0x388472(0x1b1)][_0x388472(0x1e8)](_0x56b8bb);_0x28359d&&await _0x3649ff(_0x28359d);}}async['save'](){const _0x57e76b=a13_0x127596;return await this[_0x57e76b(0x1cc)][_0x57e76b(0x1d8)](),this;}async[a13_0x127596(0x1c6)](_0x137b10,_0x2157f9=![]){const _0x427f4a=a13_0x127596;let _0x1b763d=this[_0x427f4a(0x1cc)][_0x427f4a(0x1e8)](_0x137b10);return!_0x1b763d&&this[_0x427f4a(0x1e7)][_0x427f4a(0x1ad)](_0x137b10)&&(_0x1b763d=this[_0x427f4a(0x1e7)][_0x427f4a(0x1e1)](_0x137b10)),!_0x1b763d&&_0x2157f9&&(_0x1b763d=this[_0x427f4a(0x1cc)][_0x427f4a(0x1bd)](lodash[_0x427f4a(0x1cb)](_0x137b10)?undefined:''+_0x137b10,{'views':[{'state':_0x427f4a(0x1c9),'ySplit':0x0}]}),this[_0x427f4a(0x1e7)][_0x427f4a(0x1ae)](_0x137b10,_0x1b763d)),_0x1b763d;}}function a13_0x1982(){const _0x408b16=['includes','path','文件名格式错误','replace','xls','filter','addWorksheet','323612oCDQFj','reader','sheets','defineProperty','values','startsWith','981378cfexbg','mkdirSync','getWriterSheet','worksheets','writeFile','frozen','col','isNumber','WorkbookWriter','1042887TRNrSN','instance','getColumn','writer','884820xBJRxU','columns','ignore','exceljs','suffix','rootpath','stream','commit','xlsx','Workbook','1781575JohapI','9309280BQQPZj','keys','indexOf','length','key','get','function','getRow','row','(((.+)+)+)+$','constructor','WorksheetWriterMap','getWorksheet','isArray','model','handler','apply','ExcelStream','eachCell','2707537NFqNWv','4xCYRNS','emit','getCell','substring','finished','has','set','lastIndexOf','search','WorkbookReader','toString','value','dirname','header','existsSync'];a13_0x1982=function(){return _0x408b16;};return a13_0x1982();}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x1ab1f3=a14_0x1080;(function(_0x3f0d52,_0x4caa0f){var _0x4e2131=a14_0x1080,_0x498890=_0x3f0d52();while(!![]){try{var _0x1eec7f=-parseInt(_0x4e2131(0x1a3))/0x1*(-parseInt(_0x4e2131(0x19d))/0x2)+-parseInt(_0x4e2131(0x19f))/0x3*(-parseInt(_0x4e2131(0x1a2))/0x4)+parseInt(_0x4e2131(0x191))/0x5*(-parseInt(_0x4e2131(0x18d))/0x6)+parseInt(_0x4e2131(0x19e))/0x7*(parseInt(_0x4e2131(0x198))/0x8)+parseInt(_0x4e2131(0x196))/0x9+-parseInt(_0x4e2131(0x194))/0xa*(-parseInt(_0x4e2131(0x19a))/0xb)+-parseInt(_0x4e2131(0x1a4))/0xc;if(_0x1eec7f===_0x4caa0f)break;else _0x498890['push'](_0x498890['shift']());}catch(_0x4a29a5){_0x498890['push'](_0x498890['shift']());}}}(a14_0x5171,0xa794b));var a14_0x19ce2c=(function(){var _0x5dd017=!![];return function(_0x2a3731,_0x214d9a){var _0x4c3b55=_0x5dd017?function(){var _0x14e3c0=a14_0x1080;if(_0x214d9a){var _0x448df4=_0x214d9a[_0x14e3c0(0x19b)](_0x2a3731,arguments);return _0x214d9a=null,_0x448df4;}}:function(){};return _0x5dd017=![],_0x4c3b55;};}()),a14_0x22c0ce=a14_0x19ce2c(this,function(){var _0x46c6af=a14_0x1080;return a14_0x22c0ce[_0x46c6af(0x18c)]()[_0x46c6af(0x1a1)]('(((.+)+)+)+$')[_0x46c6af(0x18c)]()[_0x46c6af(0x195)](a14_0x22c0ce)[_0x46c6af(0x1a1)](_0x46c6af(0x19c));});a14_0x22c0ce();'use strict';Object[a14_0x1ab1f3(0x197)](exports,a14_0x1ab1f3(0x18e),{'value':!![]}),exports[a14_0x1ab1f3(0x190)]=exports[a14_0x1ab1f3(0x1a0)]=exports[a14_0x1ab1f3(0x199)]=exports[a14_0x1ab1f3(0x193)]=void 0x0,exports['ACTION_KEY']=a14_0x1ab1f3(0x192),exports[a14_0x1ab1f3(0x199)]=a14_0x1ab1f3(0x1a5),exports[a14_0x1ab1f3(0x1a0)]=a14_0x1ab1f3(0x18f);class AppsConfigTmp{}exports[a14_0x1ab1f3(0x190)]=AppsConfigTmp;function a14_0x1080(_0xaf3f0d,_0x784a39){var _0x10fcc7=a14_0x5171();return a14_0x1080=function(_0x22c0ce,_0x19ce2c){_0x22c0ce=_0x22c0ce-0x18c;var _0x517103=_0x10fcc7[_0x22c0ce];return _0x517103;},a14_0x1080(_0xaf3f0d,_0x784a39);}function a14_0x5171(){var _0x331640=['690746NkXCWE','130998qoLcuE','6YJoYMX','APPSCONFIG_KEY','search','1417292TdYdJY','1FDgrto','31758852hBNtDj','anncic-api:action:route','toString','258618iDzcsC','__esModule','anncic-api:apps:config','AppsConfigTmp','5PDwfgY','anncic-api:action','ACTION_KEY','190AcYdWp','constructor','9128763jjhbvW','defineProperty','392LVrKmE','ACTION_ROUTE_KEY','226237lTHaFI','apply','(((.+)+)+)+$'];a14_0x5171=function(){return _0x331640;};return a14_0x5171();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x59143c=a15_0x3e61;(function(_0x5dab62,_0xc8a461){var _0x3de53e=a15_0x3e61,_0x4584f9=_0x5dab62();while(!![]){try{var _0x1fbbb7=-parseInt(_0x3de53e(0x10f))/0x1*(parseInt(_0x3de53e(0x108))/0x2)+-parseInt(_0x3de53e(0x11f))/0x3+parseInt(_0x3de53e(0x128))/0x4+-parseInt(_0x3de53e(0x113))/0x5*(-parseInt(_0x3de53e(0x123))/0x6)+parseInt(_0x3de53e(0x11d))/0x7*(-parseInt(_0x3de53e(0x103))/0x8)+parseInt(_0x3de53e(0x119))/0x9*(-parseInt(_0x3de53e(0x101))/0xa)+-parseInt(_0x3de53e(0x104))/0xb*(-parseInt(_0x3de53e(0x10e))/0xc);if(_0x1fbbb7===_0xc8a461)break;else _0x4584f9['push'](_0x4584f9['shift']());}catch(_0x3584ee){_0x4584f9['push'](_0x4584f9['shift']());}}}(a15_0x3c40,0x42bdb));var a15_0x558295=(function(){var _0x376e35=!![];return function(_0x1a0090,_0x2b25a3){var _0x4255e4=_0x376e35?function(){var _0x233809=a15_0x3e61;if(_0x2b25a3){var _0x5545cc=_0x2b25a3[_0x233809(0x102)](_0x1a0090,arguments);return _0x2b25a3=null,_0x5545cc;}}:function(){};return _0x376e35=![],_0x4255e4;};}()),a15_0x4fdd6a=a15_0x558295(this,function(){var _0x45ccd4=a15_0x3e61;return a15_0x4fdd6a[_0x45ccd4(0x117)]()[_0x45ccd4(0x11b)](_0x45ccd4(0x115))['toString']()[_0x45ccd4(0x11c)](a15_0x4fdd6a)[_0x45ccd4(0x11b)](_0x45ccd4(0x115));});function a15_0x3e61(_0x466b5c,_0x3b9473){var _0x5b043c=a15_0x3c40();return a15_0x3e61=function(_0x4fdd6a,_0x558295){_0x4fdd6a=_0x4fdd6a-0xff;var _0x3c403e=_0x5b043c[_0x4fdd6a];return _0x3c403e;},a15_0x3e61(_0x466b5c,_0x3b9473);}function a15_0x3c40(){var _0x2dedb4=['1:是;0:否','metadata','integer','287676eFbuKR','@anncic-api/validator','_page','是否倒序','RuleType','__decorate','9012AysBDh','1dXMSCs','defineProperty','PageDTO','length','5SdXVOX','design:type','(((.+)+)+)+$','分页数量','toString','__esModule','606186onEgkB','string','search','constructor','10724PUqtTm','object','1091565ohdOdX','getOwnPropertyDescriptor','valid','decorate','1398102KXNhwZ','function','_order','prototype','Rule','411052FOvRXf','排序方式','trim','number','_size','min','70SxPZHh','apply','256AyPQCQ','14146rzuhne'];a15_0x3c40=function(){return _0x2dedb4;};return a15_0x3c40();}a15_0x4fdd6a();'use strict';var __decorate=this&&this[a15_0x59143c(0x10d)]||function(_0x149e6b,_0x405181,_0x6ecc14,_0x1a82dc){var _0x1c652a=a15_0x59143c,_0x214d2d=arguments[_0x1c652a(0x112)],_0x3ef55d=_0x214d2d<0x3?_0x405181:_0x1a82dc===null?_0x1a82dc=Object[_0x1c652a(0x120)](_0x405181,_0x6ecc14):_0x1a82dc,_0x4ca4b0;if(typeof Reflect===_0x1c652a(0x11e)&&typeof Reflect[_0x1c652a(0x122)]==='function')_0x3ef55d=Reflect[_0x1c652a(0x122)](_0x149e6b,_0x405181,_0x6ecc14,_0x1a82dc);else{for(var _0x5d3b96=_0x149e6b['length']-0x1;_0x5d3b96>=0x0;_0x5d3b96--)if(_0x4ca4b0=_0x149e6b[_0x5d3b96])_0x3ef55d=(_0x214d2d<0x3?_0x4ca4b0(_0x3ef55d):_0x214d2d>0x3?_0x4ca4b0(_0x405181,_0x6ecc14,_0x3ef55d):_0x4ca4b0(_0x405181,_0x6ecc14))||_0x3ef55d;}return _0x214d2d>0x3&&_0x3ef55d&&Object['defineProperty'](_0x405181,_0x6ecc14,_0x3ef55d),_0x3ef55d;},__metadata=this&&this['__metadata']||function(_0xf068d5,_0x40f8a9){var _0x94361a=a15_0x59143c;if(typeof Reflect==='object'&&typeof Reflect[_0x94361a(0x106)]===_0x94361a(0x124))return Reflect[_0x94361a(0x106)](_0xf068d5,_0x40f8a9);};Object[a15_0x59143c(0x110)](exports,a15_0x59143c(0x118),{'value':!![]}),exports[a15_0x59143c(0x111)]=void 0x0;const validator_1=require(a15_0x59143c(0x109));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a15_0x59143c(0x127)])('分页',validator_1['RuleType'][a15_0x59143c(0x12b)]()[a15_0x59143c(0x107)]()[a15_0x59143c(0x100)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x59143c(0x114),Number)],PageDTO[a15_0x59143c(0x126)],a15_0x59143c(0x10a),void 0x0),__decorate([(0x0,validator_1[a15_0x59143c(0x127)])(a15_0x59143c(0x116),validator_1[a15_0x59143c(0x10c)][a15_0x59143c(0x12b)]()[a15_0x59143c(0x107)]()[a15_0x59143c(0x100)](0x1)),__metadata(a15_0x59143c(0x114),Number)],PageDTO[a15_0x59143c(0x126)],a15_0x59143c(0xff),void 0x0),__decorate([(0x0,validator_1[a15_0x59143c(0x127)])(a15_0x59143c(0x129),validator_1[a15_0x59143c(0x10c)][a15_0x59143c(0x11a)]()[a15_0x59143c(0x12a)]()),__metadata(a15_0x59143c(0x114),String)],PageDTO[a15_0x59143c(0x126)],a15_0x59143c(0x125),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x59143c(0x10b),validator_1['RuleType']['number']()['integer']()[a15_0x59143c(0x121)](0x0,0x1),a15_0x59143c(0x105)),__metadata('design:type',Number)],PageDTO[a15_0x59143c(0x126)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a16_0x50de31=a16_0x2aa5;(function(_0x93fc8f,_0x3c13b2){var _0x1a7b90=a16_0x2aa5,_0x348b90=_0x93fc8f();while(!![]){try{var _0x5e3d60=-parseInt(_0x1a7b90(0xef))/0x1*(-parseInt(_0x1a7b90(0xf0))/0x2)+-parseInt(_0x1a7b90(0xec))/0x3+-parseInt(_0x1a7b90(0xe4))/0x4*(parseInt(_0x1a7b90(0xf1))/0x5)+-parseInt(_0x1a7b90(0xe8))/0x6+-parseInt(_0x1a7b90(0xee))/0x7*(-parseInt(_0x1a7b90(0xe1))/0x8)+-parseInt(_0x1a7b90(0xe9))/0x9+parseInt(_0x1a7b90(0xe3))/0xa*(parseInt(_0x1a7b90(0xe7))/0xb);if(_0x5e3d60===_0x3c13b2)break;else _0x348b90['push'](_0x348b90['shift']());}catch(_0x24beb1){_0x348b90['push'](_0x348b90['shift']());}}}(a16_0x5f11,0xb036a));var a16_0xbe0cbf=(function(){var _0x38f2fa=!![];return function(_0x28cc8b,_0xe23007){var _0x20bddd=_0x38f2fa?function(){var _0x246d6c=a16_0x2aa5;if(_0xe23007){var _0x324d6c=_0xe23007[_0x246d6c(0xf2)](_0x28cc8b,arguments);return _0xe23007=null,_0x324d6c;}}:function(){};return _0x38f2fa=![],_0x20bddd;};}()),a16_0x4415e9=a16_0xbe0cbf(this,function(){var _0x38c8a6=a16_0x2aa5;return a16_0x4415e9[_0x38c8a6(0xed)]()['search'](_0x38c8a6(0xf4))['toString']()[_0x38c8a6(0xf3)](a16_0x4415e9)[_0x38c8a6(0xe2)](_0x38c8a6(0xf4));});function a16_0x2aa5(_0x1d6203,_0x1023e3){var _0x3c7740=a16_0x5f11();return a16_0x2aa5=function(_0x4415e9,_0xbe0cbf){_0x4415e9=_0x4415e9-0xe0;var _0x5f1150=_0x3c7740[_0x4415e9];return _0x5f1150;},a16_0x2aa5(_0x1d6203,_0x1023e3);}a16_0x4415e9();'use strict';Object[a16_0x50de31(0xea)](exports,a16_0x50de31(0xe5),{'value':!![]}),exports[a16_0x50de31(0xe0)]=exports[a16_0x50de31(0xe6)]=void 0x0,exports[a16_0x50de31(0xe6)]=a16_0x50de31(0xeb);class InterceptTargetTmp{}exports[a16_0x50de31(0xe0)]=InterceptTargetTmp;function a16_0x5f11(){var _0x2c9c5f=['8106768svtnOc','11352249vKbUpm','defineProperty','anncic-api:intercept','2713443ZpcKag','toString','833uefaFc','15099KJkyOT','116cGKEqq','759180iAsLuF','apply','constructor','(((.+)+)+)+$','InterceptTargetTmp','85064aXJQjf','search','5410030ikUIau','16INtDCv','__esModule','INTERCEPT_KEY','55HmbBdl'];a16_0x5f11=function(){return _0x2c9c5f;};return a16_0x5f11();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.8",
|
|
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.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.8",
|
|
21
|
+
"@anncic-api/core": "^3.4.8",
|
|
22
|
+
"@anncic-api/event": "^3.4.8",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.8",
|
|
24
|
+
"@anncic-api/validator": "^3.4.8",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.12.8",
|
|
26
26
|
"@midwayjs/koa": "^3.12.8",
|
|
27
27
|
"@midwayjs/static-file": "^3.12.8",
|
|
28
28
|
"@midwayjs/upload": "^3.12.8",
|
|
29
|
-
"anncic-apihelper": "^3.4.
|
|
29
|
+
"anncic-apihelper": "^3.4.8",
|
|
30
30
|
"exceljs": "^4.4.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": "c9399a8f895a70af0f97577ca5c2e1107d159065"
|
|
39
39
|
}
|