anncic-api 3.7.8 → 3.7.10
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.local.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/helper/getSwaggerJson.d.ts +18 -9
- package/dist/helper/getSwaggerJson.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x584a47=a0_0xeff9;(function(_0x5bc3e9,_0x4c52e2){var _0x1c0aa8=a0_0xeff9,_0x5beb2c=_0x5bc3e9();while(!![]){try{var _0x14501b=-parseInt(_0x1c0aa8(0x1bd))/0x1+parseInt(_0x1c0aa8(0x1b5))/0x2*(parseInt(_0x1c0aa8(0x1bb))/0x3)+parseInt(_0x1c0aa8(0x1c8))/0x4+-parseInt(_0x1c0aa8(0x1cd))/0x5+-parseInt(_0x1c0aa8(0x1cb))/0x6*(-parseInt(_0x1c0aa8(0x1c4))/0x7)+-parseInt(_0x1c0aa8(0x1b9))/0x8*(parseInt(_0x1c0aa8(0x1ba))/0x9)+-parseInt(_0x1c0aa8(0x1b3))/0xa;if(_0x14501b===_0x4c52e2)break;else _0x5beb2c['push'](_0x5beb2c['shift']());}catch(_0x16856c){_0x5beb2c['push'](_0x5beb2c['shift']());}}}(a0_0x5f28,0x24237));var a0_0xf19ea9=(function(){var _0x202d00=!![];return function(_0x2fb0d6,_0xa8fe7){var _0x18675b=_0x202d00?function(){var _0x3f64e=a0_0xeff9;if(_0xa8fe7){var _0x504e20=_0xa8fe7[_0x3f64e(0x1c2)](_0x2fb0d6,arguments);return _0xa8fe7=null,_0x504e20;}}:function(){};return _0x202d00=![],_0x18675b;};}()),a0_0x1e9703=a0_0xf19ea9(this,function(){var _0x371750=a0_0xeff9;return a0_0x1e9703['toString']()[_0x371750(0x1cc)](_0x371750(0x1ca))[_0x371750(0x1c0)]()[_0x371750(0x1b4)](a0_0x1e9703)['search'](_0x371750(0x1ca));});a0_0x1e9703();function a0_0xeff9(_0x62a7f9,_0x5b05fa){var _0x31e447=a0_0x5f28();return a0_0xeff9=function(_0x1e9703,_0xf19ea9){_0x1e9703=_0x1e9703-0x1b3;var _0x5f280b=_0x31e447[_0x1e9703];return _0x5f280b;},a0_0xeff9(_0x62a7f9,_0x5b05fa);}'use strict';Object[a0_0x584a47(0x1be)](exports,a0_0x584a47(0x1c7),{'value':!![]}),exports[a0_0x584a47(0x1b6)]=_0x40fd7d=>{var _0x54182e=a0_0x584a47;return{'apitest':!![],'keys':_0x40fd7d[_0x54182e(0x1b7)],'anncicapi':{'requestKey':_0x54182e(0x1c1),'password':_0x54182e(0x1bf),'devices':{'DEFAULT':{'secret':_0x54182e(0x1c5),'checkcode':'dhauo1234420123gg3234901'}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':'270d','dir':_0x40fd7d[_0x54182e(0x1c9)]+'/runtime'}},'bodyParser':{'enableTypes':[_0x54182e(0x1b8),'form',_0x54182e(0x1bc),'xml'],'formLimit':_0x54182e(0x1c3),'jsonLimit':'20mb','textLimit':_0x54182e(0x1c3),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x40fd7d[_0x54182e(0x1c9)]+_0x54182e(0x1c6),'cleanTimeout':0x5265c00},'busboy':{'mode':_0x54182e(0x1cf),'tmpdir':_0x40fd7d[_0x54182e(0x1c9)]+'/runtime/.upload','cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x54182e(0x1ce)+_0x40fd7d[_0x54182e(0x1b7)]+':'+((_0x40fd7d===null||_0x40fd7d===void 0x0?void 0x0:_0x40fd7d[_0x54182e(0x1d0)])?_0x40fd7d['env']+':':'')+')'}}};};function a0_0x5f28(){var _0x36a9de=['1032310poHIvV','constructor','566416RgSXtP','default','name','json','1144UrdSyl','4518kElDyH','3qrEFQa','text','175880Ltxwdz','defineProperty','zhiulanuiy7892387985hnoi','toString','_token','apply','20mb','7GHJkHu','dhauo1234420123gg3234901','/runtime/.upload','__esModule','840420OWXVTt','appDir','(((.+)+)+)+$','1768476BJsaaK','search','1445695LtMdYX','{midway-bull}{','file','env'];a0_0x5f28=function(){return _0x36a9de;};return a0_0x5f28();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3294a7=a1_0x3c37;(function(_0x567617,_0x3fa50){var _0x1bce98=a1_0x3c37,_0x4411cb=_0x567617();while(!![]){try{var _0x319842=-parseInt(_0x1bce98(0x78))/0x1+-parseInt(_0x1bce98(0x84))/0x2+parseInt(_0x1bce98(0x81))/0x3*(parseInt(_0x1bce98(0x7b))/0x4)+parseInt(_0x1bce98(0x86))/0x5+parseInt(_0x1bce98(0x7d))/0x6+parseInt(_0x1bce98(0x87))/0x7*(-parseInt(_0x1bce98(0x7c))/0x8)+-parseInt(_0x1bce98(0x7f))/0x9*(-parseInt(_0x1bce98(0x7e))/0xa);if(_0x319842===_0x3fa50)break;else _0x4411cb['push'](_0x4411cb['shift']());}catch(_0x3c1d94){_0x4411cb['push'](_0x4411cb['shift']());}}}(a1_0x5b33,0xcad6d));var a1_0x4c3ebc=(function(){var _0x1e20d3=!![];return function(_0x47c37b,_0x577511){var _0x286dd9=_0x1e20d3?function(){var _0x1bbe84=a1_0x3c37;if(_0x577511){var _0xd65d2c=_0x577511[_0x1bbe84(0x7a)](_0x47c37b,arguments);return _0x577511=null,_0xd65d2c;}}:function(){};return _0x1e20d3=![],_0x286dd9;};}()),a1_0x598b67=a1_0x4c3ebc(this,function(){var _0x49c78d=a1_0x3c37;return a1_0x598b67[_0x49c78d(0x79)]()[_0x49c78d(0x80)]('(((.+)+)+)+$')[_0x49c78d(0x79)]()['constructor'](a1_0x598b67)['search'](_0x49c78d(0x83));});function a1_0x3c37(_0x8a7b18,_0x36d751){var _0x42ece7=a1_0x5b33();return a1_0x3c37=function(_0x598b67,_0x4c3ebc){_0x598b67=_0x598b67-0x77;var _0x5b33fb=_0x42ece7[_0x598b67];return _0x5b33fb;},a1_0x3c37(_0x8a7b18,_0x36d751);}a1_0x598b67();'use strict';function a1_0x5b33(){var _0x120631=['42HcKJpp','defineProperty','(((.+)+)+)+$','1530454kPorVK','default','3341270uCtPuu','644AFcnvG','__esModule','363064yjjxXl','toString','apply','169732KOgJLT','114344JirQwB','4752420uMnMvN','6098450ZISUQs','18AgIsZd','search'];a1_0x5b33=function(){return _0x120631;};return a1_0x5b33();}Object[a1_0x3294a7(0x82)](exports,a1_0x3294a7(0x77),{'value':!![]}),exports[a1_0x3294a7(0x85)]=_0x524db3=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a2_0x4cd1(_0x591af9,_0x75fe9a){var _0x4839f9=a2_0x1eb9();return a2_0x4cd1=function(_0x3cfc65,_0x1df69b){_0x3cfc65=_0x3cfc65-0x12f;var _0x1eb97f=_0x4839f9[_0x3cfc65];return _0x1eb97f;},a2_0x4cd1(_0x591af9,_0x75fe9a);}var a2_0xc3b8a6=a2_0x4cd1;(function(_0x266d63,_0x45b21c){var _0x19d8b9=a2_0x4cd1,_0x9a8f27=_0x266d63();while(!![]){try{var _0x5481e4=parseInt(_0x19d8b9(0x138))/0x1*(parseInt(_0x19d8b9(0x133))/0x2)+-parseInt(_0x19d8b9(0x130))/0x3*(-parseInt(_0x19d8b9(0x140))/0x4)+-parseInt(_0x19d8b9(0x139))/0x5+parseInt(_0x19d8b9(0x137))/0x6+parseInt(_0x19d8b9(0x13f))/0x7*(-parseInt(_0x19d8b9(0x13a))/0x8)+parseInt(_0x19d8b9(0x135))/0x9+-parseInt(_0x19d8b9(0x12f))/0xa*(-parseInt(_0x19d8b9(0x131))/0xb);if(_0x5481e4===_0x45b21c)break;else _0x9a8f27['push'](_0x9a8f27['shift']());}catch(_0x369108){_0x9a8f27['push'](_0x9a8f27['shift']());}}}(a2_0x1eb9,0xd2a3e));function a2_0x1eb9(){var _0x6e82ff=['2OQUdnI','7258035MWcGaD','53232kTUKqu','apply','(((.+)+)+)+$','toString','search','1358YIcqLT','1744388gmwIhT','870rpJOgz','3LqJUMA','94204OQcBle','defineProperty','14296wtgzgl','default','8313156svzUXf','constructor','8916720kuTVnq'];a2_0x1eb9=function(){return _0x6e82ff;};return a2_0x1eb9();}var a2_0x1df69b=(function(){var _0x520698=!![];return function(_0xc8cd34,_0x2377fc){var _0x9c6947=_0x520698?function(){var _0x202dfb=a2_0x4cd1;if(_0x2377fc){var _0x6b4eba=_0x2377fc[_0x202dfb(0x13b)](_0xc8cd34,arguments);return _0x2377fc=null,_0x6b4eba;}}:function(){};return _0x520698=![],_0x9c6947;};}()),a2_0x3cfc65=a2_0x1df69b(this,function(){var _0x4702bb=a2_0x4cd1;return a2_0x3cfc65['toString']()['search'](_0x4702bb(0x13c))[_0x4702bb(0x13d)]()[_0x4702bb(0x136)](a2_0x3cfc65)[_0x4702bb(0x13e)](_0x4702bb(0x13c));});a2_0x3cfc65();'use strict';Object[a2_0xc3b8a6(0x132)](exports,'__esModule',{'value':!![]}),exports[a2_0xc3b8a6(0x134)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0xd92a7e=a3_0x3df0;(function(_0x35582c,_0x2a5586){const _0x767ba=a3_0x3df0,_0x408956=_0x35582c();while(!![]){try{const _0x219e1e=parseInt(_0x767ba(0x205))/0x1+parseInt(_0x767ba(0x1e3))/0x2+parseInt(_0x767ba(0x1c8))/0x3+parseInt(_0x767ba(0x1f3))/0x4+-parseInt(_0x767ba(0x1e0))/0x5+-parseInt(_0x767ba(0x180))/0x6*(-parseInt(_0x767ba(0x19f))/0x7)+parseInt(_0x767ba(0x1a3))/0x8*(-parseInt(_0x767ba(0x1cb))/0x9);if(_0x219e1e===_0x2a5586)break;else _0x408956['push'](_0x408956['shift']());}catch(_0x5e959e){_0x408956['push'](_0x408956['shift']());}}}(a3_0x138f,0x733f5));function a3_0x138f(){const _0x2f644e=['defaultsDeep','routerOptions','Inject','match','request','function','checksign','key','context','attachment','forEach','method','hanlderApplications','ApiError','DEFAULT','metadata','https://','apply','@midwayjs/cross-domain','includes','devices','./config/config.production','mkdirSync','MidwayApplicationManager','name','clients','toLowerCase','886970HajRJv','substring','headers','loggerConfig','2991152tIjSsf','__metadata','registerMethodHandler','tmpdir','device','koa-send','query','get','@midwayjs/koa','apimit','bodyXml','_matchedRoute','CustomConfiguration','app.log','REQUEST_OBJ_CTX_KEY','dir','body','statSync','defineProperties','onReady','_matchedRouteMeta','config','isArray','getAppDir','object','req','./types/intercept','/apps/','keys','encrypted','@anncic-api/typeorm','module','_UNKNOW_','addObject','log','Configuration','isDirectory','1400322JnRCIK','@midwayjs/busboy','midwayLogger','36kSTwml','requestKey','isString','http://','APPSCONFIG_KEY','basic','parse','tagName','environment','__decorate','getOwnPropertyDescriptor','/basic','getAsync','getClassMetadata','getConfiguration','App','HEADERS_SIGNATURE','input','http','handler','270d','3997610IrFCxQ','@midwayjs/core','@anncic-api/core','1887972XsCVXk','runtime','./exception/ApiError','defineProperty','prototype','@anncic-api/validator','proceed','isDevelopmentEnvironment','MidwayLoggerService','@anncic-api/cache','isFunction','host','dirs','target','app','443','3615504aHRxqi','readdirSync','toString','koa','filterConfig','split','filepath','intercept','./config/config.default','connection','(((.+)+)+)+$','string','existsSync','decorate','upload','getBaseDir','startsWith','undefined','325805VahhAi','@anncic-api/event','/app','.log','staticFile','Types','join','MidwayDecoratorService','search','design:type','application','length','requestContext','basic.log','anncicapi','lastIndexOf','/apps','loggerService','path','6RPTfLR','ApiService','handlerActionRoute','decorator'];a3_0x138f=function(){return _0x2f644e;};return a3_0x138f();}const a3_0x37e6bb=(function(){let _0x27f867=!![];return function(_0x2d4d1a,_0x3b4853){const _0xa9288a=_0x27f867?function(){const _0x3b76e5=a3_0x3df0;if(_0x3b4853){const _0x181d42=_0x3b4853[_0x3b76e5(0x195)](_0x2d4d1a,arguments);return _0x3b4853=null,_0x181d42;}}:function(){};return _0x27f867=![],_0xa9288a;};}()),a3_0x40091b=a3_0x37e6bb(this,function(){const _0xcfc71c=a3_0x3df0;return a3_0x40091b[_0xcfc71c(0x1f5)]()[_0xcfc71c(0x20d)](_0xcfc71c(0x1fd))[_0xcfc71c(0x1f5)]()['constructor'](a3_0x40091b)['search'](_0xcfc71c(0x1fd));});function a3_0x3df0(_0x313fee,_0x18710a){const _0x42b69f=a3_0x138f();return a3_0x3df0=function(_0x40091b,_0x37e6bb){_0x40091b=_0x40091b-0x17c;let _0x138f55=_0x42b69f[_0x40091b];return _0x138f55;},a3_0x3df0(_0x313fee,_0x18710a);}a3_0x40091b();'use strict';var __decorate=this&&this[a3_0xd92a7e(0x1d4)]||function(_0x2509af,_0x14e22b,_0x20801c,_0x12e6a5){const _0x5795eb=a3_0xd92a7e;var _0x49f010=arguments['length'],_0x106a08=_0x49f010<0x3?_0x14e22b:_0x12e6a5===null?_0x12e6a5=Object[_0x5795eb(0x1d5)](_0x14e22b,_0x20801c):_0x12e6a5,_0x3345bc;if(typeof Reflect===_0x5795eb(0x1bb)&&typeof Reflect[_0x5795eb(0x200)]===_0x5795eb(0x189))_0x106a08=Reflect[_0x5795eb(0x200)](_0x2509af,_0x14e22b,_0x20801c,_0x12e6a5);else{for(var _0x214da8=_0x2509af[_0x5795eb(0x210)]-0x1;_0x214da8>=0x0;_0x214da8--)if(_0x3345bc=_0x2509af[_0x214da8])_0x106a08=(_0x49f010<0x3?_0x3345bc(_0x106a08):_0x49f010>0x3?_0x3345bc(_0x14e22b,_0x20801c,_0x106a08):_0x3345bc(_0x14e22b,_0x20801c))||_0x106a08;}return _0x49f010>0x3&&_0x106a08&&Object['defineProperty'](_0x14e22b,_0x20801c,_0x106a08),_0x106a08;},__metadata=this&&this[a3_0xd92a7e(0x1a4)]||function(_0x1d026e,_0x2f4ad3){const _0x2cd8d9=a3_0xd92a7e;if(typeof Reflect===_0x2cd8d9(0x1bb)&&typeof Reflect[_0x2cd8d9(0x193)]===_0x2cd8d9(0x189))return Reflect[_0x2cd8d9(0x193)](_0x1d026e,_0x2f4ad3);};Object[a3_0xd92a7e(0x1e6)](exports,'__esModule',{'value':!![]}),exports[a3_0xd92a7e(0x1af)]=void 0x0;const core_1=require(a3_0xd92a7e(0x1e1)),core_2=require('@midwayjs/core'),ApiError_1=require(a3_0xd92a7e(0x1e5)),ApiService_1=require('./service/ApiService'),intercept_1=require(a3_0xd92a7e(0x1bd)),action_1=require('./types/action'),fs=require('fs'),path=require(a3_0xd92a7e(0x17f)),koasend=require(a3_0xd92a7e(0x1a8)),koa=require(a3_0xd92a7e(0x1ab)),upload=require(a3_0xd92a7e(0x1c9)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a3_0xd92a7e(0x196)),ConfigDefault=require(a3_0xd92a7e(0x1fb)),ConfigProduction=require(a3_0xd92a7e(0x199)),anncic=require(a3_0xd92a7e(0x1e2)),anncicCache=require(a3_0xd92a7e(0x1ec)),anncicEvent=require(a3_0xd92a7e(0x206)),anncicTypeorm=require(a3_0xd92a7e(0x1c1)),anncicValidator=require(a3_0xd92a7e(0x1e8)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a3_0xd92a7e(0x1b6)](){const _0x5bb5ed=a3_0xd92a7e;await this[_0x5bb5ed(0x1f7)](),await this[_0x5bb5ed(0x1a2)](),await this[_0x5bb5ed(0x182)](),await this[_0x5bb5ed(0x190)]();}async[a3_0xd92a7e(0x182)](){const _0x2b656c=a3_0xd92a7e,_0x109e1f=this[_0x2b656c(0x1b8)][_0x2b656c(0x1d9)](),_0xa533e5=(0x0,core_1[_0x2b656c(0x1d8)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x2b656c(0x183)][_0x2b656c(0x1a5)](action_1['ACTION_ROUTE_KEY'],_0x4bf737=>{const _0x18ba79=_0x2b656c;var _0x303082;const _0x386dcc=(0x0,core_1['getClassMetadata'])(action_1[_0x18ba79(0x1cf)],action_1['AppsConfigTmp'])||{},_0x1f2553=_0x4bf737[_0x18ba79(0x193)],_0x5a3068=(0x0,core_1[_0x18ba79(0x1d8)])(action_1['ACTION_KEY'],_0x4bf737[_0x18ba79(0x1f0)])||{},_0x51c6d8=((_0x303082=_0x5a3068===null||_0x5a3068===void 0x0?void 0x0:_0x5a3068[_0x18ba79(0x1f9)])===null||_0x303082===void 0x0?void 0x0:_0x303082[_0x18ba79(0x1a0)](0x0,_0x5a3068['filepath'][_0x18ba79(0x17c)]('.')))||'',_0x8af6bc=(_0x5a3068===null||_0x5a3068===void 0x0?void 0x0:_0x5a3068[_0x18ba79(0x1c2)])?(_0x386dcc===null||_0x386dcc===void 0x0?void 0x0:_0x386dcc[_0x5a3068[_0x18ba79(0x1c2)]])||{}:{};return{'before':async _0x4d6e36=>{const _0x9c9b1a=_0x18ba79;var _0x27e921,_0x145637,_0x56bb4b,_0x596703;const _0x3d239a=(_0x27e921=_0x4d6e36===null||_0x4d6e36===void 0x0?void 0x0:_0x4d6e36[_0x9c9b1a(0x1f0)])===null||_0x27e921===void 0x0?void 0x0:_0x27e921[core_2['REQUEST_OBJ_CTX_KEY']],_0x3e53c=lodash[_0x9c9b1a(0x184)]({},_0x3d239a[_0x9c9b1a(0x188)]['body']||_0x3d239a[_0x9c9b1a(0x188)][((_0x145637=_0x109e1f===null||_0x109e1f===void 0x0?void 0x0:_0x109e1f['bodyXml'])===null||_0x145637===void 0x0?void 0x0:_0x145637[_0x9c9b1a(0x18b)])||'body']||{},_0x3d239a[_0x9c9b1a(0x188)][_0x9c9b1a(0x1a9)]||{});_0x3d239a[_0x9c9b1a(0x1b7)]={'module':(_0x8af6bc===null||_0x8af6bc===void 0x0?void 0x0:_0x8af6bc[_0x9c9b1a(0x19c)])||'','routePath':''+_0x3d239a[_0x9c9b1a(0x17f)],'routeName':_0x5a3068[_0x9c9b1a(0x185)][_0x9c9b1a(0x1d2)]+'@'+_0x1f2553['routerName'],'routeMethod':((_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553['requestMethod'])||_0x3d239a[_0x9c9b1a(0x18f)]||'')[_0x9c9b1a(0x19e)](),'routeDescription':(_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553['description'])||'','filemethod':_0x51c6d8+'@'+(_0x1f2553['method']||'')};if(_0x3d239a&&(_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553['apimit']))try{const _0x27d940=((_0x56bb4b=_0x109e1f===null||_0x109e1f===void 0x0?void 0x0:_0x109e1f['anncicapi'])===null||_0x56bb4b===void 0x0?void 0x0:_0x56bb4b[_0x9c9b1a(0x1cc)])&&typeof(_0x3e53c===null||_0x3e53c===void 0x0?void 0x0:_0x3e53c[_0x109e1f['anncicapi'][_0x9c9b1a(0x1cc)]])==_0x9c9b1a(0x1fe)?JSON[_0x9c9b1a(0x1d1)](base64_decode(_0x3e53c[_0x109e1f['anncicapi'][_0x9c9b1a(0x1cc)]])||'{}')||{}:((_0x596703=_0x3d239a===null||_0x3d239a===void 0x0?void 0x0:_0x3d239a[_0x9c9b1a(0x188)])===null||_0x596703===void 0x0?void 0x0:_0x596703[_0x9c9b1a(0x1a1)])||{};if(!this['ApiService'][_0x9c9b1a(0x18a)](_0x27d940))throw new AnnError(ApiError_1[_0x9c9b1a(0x191)][_0x9c9b1a(0x1db)]);for(const _0x2c04cb in _0x27d940||{}){_0x3d239a[_0x9c9b1a(0x1a1)][_0x2c04cb]=_0x27d940[_0x2c04cb];}}catch(_0x50ea62){if(_0x50ea62 instanceof AnnError)throw _0x50ea62;else throw new AnnError(ApiError_1[_0x9c9b1a(0x191)][_0x9c9b1a(0x1c3)]);}},'around':async _0x126f9a=>{const _0x581fd4=_0x18ba79;var _0x28728a,_0x208ac2,_0xfd9684;const _0x339ced=(_0x28728a=_0x126f9a===null||_0x126f9a===void 0x0?void 0x0:_0x126f9a[_0x581fd4(0x1f0)])===null||_0x28728a===void 0x0?void 0x0:_0x28728a[core_2[_0x581fd4(0x1b1)]];if(_0x339ced&&(_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553[_0x581fd4(0x1ac)])&&((_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553[_0x581fd4(0x1fa)])||typeof(_0x1f2553===null||_0x1f2553===void 0x0?void 0x0:_0x1f2553[_0x581fd4(0x1fa)])==_0x581fd4(0x204))){if(((_0x208ac2=_0x339ced[_0x581fd4(0x1a1)])===null||_0x208ac2===void 0x0?void 0x0:_0x208ac2[_0x581fd4(0x1a7)])&&((_0xfd9684=_0xa533e5===null||_0xa533e5===void 0x0?void 0x0:_0xa533e5[_0x339ced[_0x581fd4(0x1a1)]['device']])===null||_0xfd9684===void 0x0?void 0x0:_0xfd9684[_0x581fd4(0x210)])>0x0)for(const _0x41947a of _0xa533e5[_0x339ced[_0x581fd4(0x1a1)][_0x581fd4(0x1a7)]]||[]){if(core_1[_0x581fd4(0x20a)]['isClass'](_0x41947a)){const _0x25e568=await _0x339ced[_0x581fd4(0x211)][_0x581fd4(0x1d7)](_0x41947a);typeof(_0x25e568===null||_0x25e568===void 0x0?void 0x0:_0x25e568[_0x581fd4(0x187)])==_0x581fd4(0x189)?await _0x25e568[_0x581fd4(0x187)](_0x339ced,typeof(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x18f)])==_0x581fd4(0x1fe)&&(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)])?_0x339ced[_0x581fd4(0x18f)][_0x581fd4(0x19e)]()+'@'+(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced['_matchedRoute']):undefined,_0x1f2553)&&await _0x25e568[_0x581fd4(0x1de)](_0x339ced,typeof(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x18f)])==_0x581fd4(0x1fe)&&(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)])?_0x339ced[_0x581fd4(0x18f)][_0x581fd4(0x19e)]()+'@'+(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)]):undefined,_0x1f2553):await _0x25e568[_0x581fd4(0x1de)](_0x339ced,typeof(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced['method'])==_0x581fd4(0x1fe)&&(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)])?_0x339ced[_0x581fd4(0x18f)][_0x581fd4(0x19e)]()+'@'+(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)]):undefined,_0x1f2553);}else core_1[_0x581fd4(0x20a)][_0x581fd4(0x1ed)](_0x41947a)&&await _0x41947a(_0x339ced,typeof(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced['method'])==_0x581fd4(0x1fe)&&(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)])?_0x339ced[_0x581fd4(0x18f)]['toLowerCase']()+'@'+(_0x339ced===null||_0x339ced===void 0x0?void 0x0:_0x339ced[_0x581fd4(0x1ae)]):undefined,_0x1f2553);}}return await _0x126f9a[_0x581fd4(0x1e9)](..._0x126f9a['args']);},'afterThrow':(_0x1ef678,_0x361a99)=>{throw _0x361a99;}};});}async[a3_0xd92a7e(0x190)](){const _0x3c08c9=a3_0xd92a7e,_0x1b833b=this['config'][_0x3c08c9(0x1d9)]();this['application']['getApplications']([_0x3c08c9(0x1f6)])[_0x3c08c9(0x18e)](_0x4e9270=>{const _0x2a746b=_0x3c08c9;(_0x4e9270===null||_0x4e9270===void 0x0?void 0x0:_0x4e9270[_0x2a746b(0x18c)])&&Object[_0x2a746b(0x1b5)](_0x4e9270[_0x2a746b(0x18c)],{'hosturl':{'configurable':![],'get':function(){const _0x67108f=_0x2a746b;var _0xb717d6,_0x25b159,_0x977ca8,_0x22349a;if((this===null||this===void 0x0?void 0x0:this[_0x67108f(0x1ee)])&&!this[_0x67108f(0x1ee)][_0x67108f(0x203)](_0x67108f(0x1dd))){let _0x46a93a=this['host'][_0x67108f(0x1f8)](':');return['80',_0x67108f(0x1f2)][_0x67108f(0x197)](_0x46a93a===null||_0x46a93a===void 0x0?void 0x0:_0x46a93a[0x1])?''+(!!((_0x25b159=(_0xb717d6=this===null||this===void 0x0?void 0x0:this[_0x67108f(0x1bc)])===null||_0xb717d6===void 0x0?void 0x0:_0xb717d6[_0x67108f(0x1fc)])===null||_0x25b159===void 0x0?void 0x0:_0x25b159[_0x67108f(0x1c0)])||(_0x46a93a===null||_0x46a93a===void 0x0?void 0x0:_0x46a93a[0x1])==_0x67108f(0x1f2)?_0x67108f(0x194):_0x67108f(0x1ce))+_0x46a93a[0x0]:''+(!!((_0x22349a=(_0x977ca8=this===null||this===void 0x0?void 0x0:this[_0x67108f(0x1bc)])===null||_0x977ca8===void 0x0?void 0x0:_0x977ca8[_0x67108f(0x1fc)])===null||_0x22349a===void 0x0?void 0x0:_0x22349a[_0x67108f(0x1c0)])?_0x67108f(0x194):_0x67108f(0x1ce))+this[_0x67108f(0x1ee)];}return'';}},'ok':{'value':function(_0x2e97aa,_0x1cb90c,_0x2b20c2=0x0){return{'code':_0x2b20c2,'data':_0x2e97aa,'extra':_0x1cb90c};}},'input':{'value':function(_0x2bec6d,_0x24ea31){const _0x36d9e5=_0x2a746b;var _0x36f685;const _0x1121bc=lodash['defaultsDeep']({},this[_0x36d9e5(0x188)][_0x36d9e5(0x1b3)]||this[_0x36d9e5(0x188)][((_0x36f685=_0x1b833b===null||_0x1b833b===void 0x0?void 0x0:_0x1b833b[_0x36d9e5(0x1ad)])===null||_0x36f685===void 0x0?void 0x0:_0x36f685['key'])||_0x36d9e5(0x1b3)]||{},this[_0x36d9e5(0x188)][_0x36d9e5(0x1a9)]||{});return _0x2bec6d?lodash[_0x36d9e5(0x1aa)](_0x1121bc,_0x2bec6d,_0x24ea31):_0x1121bc;}},'when':{'value':async function(_0x412d94,_0x5ec2e9){const _0x266088=this['input'](_0x412d94,null);if(!lodash['isNull'](_0x266088))return await _0x5ec2e9(_0x266088);}},'only':{'value':function(_0xd0ff9f){const _0x3d7078=_0x2a746b,_0x13848a={};for(let _0x2281b0=0x0;_0x2281b0<_0xd0ff9f['length'];_0x2281b0++){lodash[_0x3d7078(0x1b9)](_0xd0ff9f[_0x2281b0])&&_0xd0ff9f[_0x2281b0][_0x3d7078(0x210)]>0x0&&lodash[_0x3d7078(0x1cd)](_0xd0ff9f[_0x2281b0][0x0])&&(_0x13848a[_0xd0ff9f[_0x2281b0][0x0]]=this[_0x3d7078(0x1dc)](_0xd0ff9f[_0x2281b0][0x0],_0xd0ff9f[_0x2281b0]['length']>0x1?_0xd0ff9f[_0x2281b0][0x1]:null));}return _0x13848a;}},'koasend':{'value':async function(_0x15ab5f,_0x544937){const _0x3c6d60=_0x2a746b;if(_0x15ab5f&&!fs[_0x3c6d60(0x1ff)](_0x15ab5f)&&!fs['existsSync'](this[_0x3c6d60(0x1f1)][_0x3c6d60(0x1ba)]()+'/'+_0x15ab5f))return'文件不存在';return _0x15ab5f=fs[_0x3c6d60(0x1ff)](_0x15ab5f)?_0x15ab5f:this[_0x3c6d60(0x1f1)]['getAppDir']()+'/'+_0x15ab5f,this[_0x3c6d60(0x18d)](_0x544937||_0x15ab5f),await koasend(this,_0x15ab5f);}}});});}async['loggerConfig'](){const _0x5db839=a3_0xd92a7e;var _0x511251;if(fs['existsSync'](this[_0x5db839(0x1f1)][_0x5db839(0x202)]()+_0x5db839(0x17d))&&fs['statSync'](this[_0x5db839(0x1f1)][_0x5db839(0x202)]()+_0x5db839(0x17d))[_0x5db839(0x1c7)]()){const _0x49f310=this[_0x5db839(0x1b8)][_0x5db839(0x1d9)](),_0x3d3095=((_0x511251=_0x49f310===null||_0x49f310===void 0x0?void 0x0:_0x49f310['midwayLogger'])===null||_0x511251===void 0x0?void 0x0:_0x511251[_0x5db839(0x19d)])||{};!fs[_0x5db839(0x1ff)](this[_0x5db839(0x1f1)][_0x5db839(0x202)]()+_0x5db839(0x207))&&(_0x3d3095['app']={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x5db839(0x1d3)][_0x5db839(0x1ea)](),'fileLogName':_0x5db839(0x1b0),'dir':path[_0x5db839(0x20b)](this['app'][_0x5db839(0x1ba)](),_0x5db839(0x1e4),'app')});!fs[_0x5db839(0x1ff)](this[_0x5db839(0x1f1)][_0x5db839(0x202)]()+_0x5db839(0x1d6))&&(_0x3d3095[_0x5db839(0x1d0)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x5db839(0x1d3)][_0x5db839(0x1ea)](),'fileLogName':_0x5db839(0x212),'dir':path[_0x5db839(0x20b)](this['app'][_0x5db839(0x1ba)](),_0x5db839(0x1e4),'basic')});for(const _0xddd65b of fs[_0x5db839(0x1f4)](this[_0x5db839(0x1f1)]['getBaseDir']()+'/apps')){if(!fs[_0x5db839(0x1b4)](this[_0x5db839(0x1f1)][_0x5db839(0x202)]()+_0x5db839(0x1be)+_0xddd65b)[_0x5db839(0x1c7)]())continue;!(_0x3d3095===null||_0x3d3095===void 0x0?void 0x0:_0x3d3095[_0xddd65b])&&(_0x3d3095[_0xddd65b]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x5db839(0x1d3)][_0x5db839(0x1ea)](),'fileLogName':_0xddd65b+_0x5db839(0x208),'dir':path[_0x5db839(0x20b)](this['app']['getAppDir'](),'runtime','apps-'+_0xddd65b)}),this[_0x5db839(0x17e)]['createLogger'](_0xddd65b,_0x3d3095[_0xddd65b]);}Object[_0x5db839(0x1bf)](_0x3d3095)['length']>0x0&&(!_0x49f310[_0x5db839(0x1ca)]&&(_0x49f310[_0x5db839(0x1ca)]={'default':{'maxSize':'1m','maxFiles':_0x5db839(0x1df),'dir':path['join'](this[_0x5db839(0x1f1)][_0x5db839(0x1ba)](),_0x5db839(0x1e4))}}),_0x49f310[_0x5db839(0x1ca)]['clients']=_0x3d3095),this[_0x5db839(0x1b8)][_0x5db839(0x1c4)](_0x49f310);}}async[a3_0xd92a7e(0x1f7)](){const _0x5729b5=a3_0xd92a7e;var _0x57378b,_0x409c82,_0x3b47c4,_0x381bf0,_0x15064b,_0x4f319c;const _0x157c09=this['config'][_0x5729b5(0x1d9)]();((_0x409c82=(_0x57378b=_0x157c09===null||_0x157c09===void 0x0?void 0x0:_0x157c09[_0x5729b5(0x213)])===null||_0x57378b===void 0x0?void 0x0:_0x57378b['devices'])===null||_0x409c82===void 0x0?void 0x0:_0x409c82['DEFAULT'])&&Object[_0x5729b5(0x1bf)](_0x157c09['anncicapi'][_0x5729b5(0x198)])[_0x5729b5(0x210)]>0x1&&delete _0x157c09[_0x5729b5(0x213)]['devices'][_0x5729b5(0x192)];if((_0x3b47c4=_0x157c09===null||_0x157c09===void 0x0?void 0x0:_0x157c09[_0x5729b5(0x209)])===null||_0x3b47c4===void 0x0?void 0x0:_0x3b47c4['dirs'])for(const _0x3e0e00 in _0x157c09[_0x5729b5(0x209)][_0x5729b5(0x1ef)]){((_0x381bf0=_0x157c09[_0x5729b5(0x209)][_0x5729b5(0x1ef)][_0x3e0e00])===null||_0x381bf0===void 0x0?void 0x0:_0x381bf0[_0x5729b5(0x1b2)])&&typeof((_0x15064b=_0x157c09[_0x5729b5(0x209)][_0x5729b5(0x1ef)][_0x3e0e00])===null||_0x15064b===void 0x0?void 0x0:_0x15064b[_0x5729b5(0x1b2)])==_0x5729b5(0x1fe)&&!fs[_0x5729b5(0x1ff)](_0x157c09[_0x5729b5(0x209)]['dirs'][_0x3e0e00][_0x5729b5(0x1b2)])&&(fs[_0x5729b5(0x19a)](_0x157c09[_0x5729b5(0x209)][_0x5729b5(0x1ef)][_0x3e0e00][_0x5729b5(0x1b2)],{'recursive':!![]}),console[_0x5729b5(0x1c5)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x157c09[_0x5729b5(0x209)][_0x5729b5(0x1ef)][_0x3e0e00]['dir']));}((_0x4f319c=_0x157c09===null||_0x157c09===void 0x0?void 0x0:_0x157c09['upload'])===null||_0x4f319c===void 0x0?void 0x0:_0x4f319c['tmpdir'])&&!fs[_0x5729b5(0x1ff)](_0x157c09[_0x5729b5(0x201)][_0x5729b5(0x1a6)])&&(fs[_0x5729b5(0x19a)](_0x157c09[_0x5729b5(0x201)][_0x5729b5(0x1a6)],{'recursive':!![]}),console[_0x5729b5(0x1c5)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x157c09['upload'][_0x5729b5(0x1a6)])),this[_0x5729b5(0x1b8)][_0x5729b5(0x1c4)](_0x157c09);}};exports[a3_0xd92a7e(0x1af)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0xd92a7e(0x1da)])(),__metadata(a3_0xd92a7e(0x20e),Object)],CustomConfiguration[a3_0xd92a7e(0x1e7)],a3_0xd92a7e(0x1f1),void 0x0),__decorate([(0x0,core_1[a3_0xd92a7e(0x186)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a3_0xd92a7e(0x1e7)],a3_0xd92a7e(0x1b8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0xd92a7e(0x20c)])],CustomConfiguration[a3_0xd92a7e(0x1e7)],'decorator',void 0x0),__decorate([(0x0,core_1[a3_0xd92a7e(0x186)])(),__metadata(a3_0xd92a7e(0x20e),core_2[a3_0xd92a7e(0x19b)])],CustomConfiguration[a3_0xd92a7e(0x1e7)],a3_0xd92a7e(0x20f),void 0x0),__decorate([(0x0,core_1[a3_0xd92a7e(0x186)])(),__metadata(a3_0xd92a7e(0x20e),core_2['MidwayEnvironmentService'])],CustomConfiguration[a3_0xd92a7e(0x1e7)],'environment',void 0x0),__decorate([(0x0,core_1[a3_0xd92a7e(0x186)])(),__metadata(a3_0xd92a7e(0x20e),core_1[a3_0xd92a7e(0x1eb)])],CustomConfiguration['prototype'],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0xd92a7e(0x186)])(),__metadata(a3_0xd92a7e(0x20e),ApiService_1[a3_0xd92a7e(0x181)])],CustomConfiguration[a3_0xd92a7e(0x1e7)],'ApiService',void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a3_0xd92a7e(0x1c6)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a3_0xb6d867=a3_0x51b0;(function(_0x58ce39,_0x29ea5e){const _0x58387d=a3_0x51b0,_0x49209f=_0x58ce39();while(!![]){try{const _0xd6f76=-parseInt(_0x58387d(0x138))/0x1+-parseInt(_0x58387d(0xd6))/0x2*(parseInt(_0x58387d(0x167))/0x3)+-parseInt(_0x58387d(0xda))/0x4+-parseInt(_0x58387d(0x14b))/0x5*(parseInt(_0x58387d(0x135))/0x6)+-parseInt(_0x58387d(0xe8))/0x7+-parseInt(_0x58387d(0x144))/0x8+parseInt(_0x58387d(0x114))/0x9*(parseInt(_0x58387d(0x125))/0xa);if(_0xd6f76===_0x29ea5e)break;else _0x49209f['push'](_0x49209f['shift']());}catch(_0x5c8fca){_0x49209f['push'](_0x49209f['shift']());}}}(a3_0x5496,0x4e753));const a3_0x14e8d7=(function(){let _0x4a94b9=!![];return function(_0x3e8059,_0x28ade1){const _0x2bc70a=_0x4a94b9?function(){if(_0x28ade1){const _0x5bfcb3=_0x28ade1['apply'](_0x3e8059,arguments);return _0x28ade1=null,_0x5bfcb3;}}:function(){};return _0x4a94b9=![],_0x2bc70a;};}()),a3_0x2a25aa=a3_0x14e8d7(this,function(){const _0x2fff9d=a3_0x51b0;return a3_0x2a25aa[_0x2fff9d(0xfd)]()[_0x2fff9d(0x118)]('(((.+)+)+)+$')['toString']()[_0x2fff9d(0x12e)](a3_0x2a25aa)[_0x2fff9d(0x118)](_0x2fff9d(0x156));});a3_0x2a25aa();'use strict';var __decorate=this&&this[a3_0xb6d867(0x11f)]||function(_0xa9f142,_0xa9a31,_0x34c5d7,_0x2ba594){const _0x59c088=a3_0xb6d867;var _0x1f5dd7=arguments['length'],_0x466271=_0x1f5dd7<0x3?_0xa9a31:_0x2ba594===null?_0x2ba594=Object[_0x59c088(0x15b)](_0xa9a31,_0x34c5d7):_0x2ba594,_0xf002cb;if(typeof Reflect===_0x59c088(0xfe)&&typeof Reflect['decorate']==='function')_0x466271=Reflect[_0x59c088(0xf1)](_0xa9f142,_0xa9a31,_0x34c5d7,_0x2ba594);else{for(var _0x3e416a=_0xa9f142[_0x59c088(0x16a)]-0x1;_0x3e416a>=0x0;_0x3e416a--)if(_0xf002cb=_0xa9f142[_0x3e416a])_0x466271=(_0x1f5dd7<0x3?_0xf002cb(_0x466271):_0x1f5dd7>0x3?_0xf002cb(_0xa9a31,_0x34c5d7,_0x466271):_0xf002cb(_0xa9a31,_0x34c5d7))||_0x466271;}return _0x1f5dd7>0x3&&_0x466271&&Object[_0x59c088(0x105)](_0xa9a31,_0x34c5d7,_0x466271),_0x466271;},__metadata=this&&this[a3_0xb6d867(0x11e)]||function(_0x16a5ea,_0x3a9792){const _0x444708=a3_0xb6d867;if(typeof Reflect===_0x444708(0xfe)&&typeof Reflect[_0x444708(0x153)]===_0x444708(0x15a))return Reflect[_0x444708(0x153)](_0x16a5ea,_0x3a9792);};Object['defineProperty'](exports,a3_0xb6d867(0x16e),{'value':!![]}),exports[a3_0xb6d867(0xd7)]=void 0x0;const core_1=require(a3_0xb6d867(0x172)),core_2=require('@midwayjs/core'),ApiError_1=require(a3_0xb6d867(0x123)),ApiService_1=require(a3_0xb6d867(0x106)),intercept_1=require(a3_0xb6d867(0x142)),action_1=require(a3_0xb6d867(0x13c)),fs=require('fs'),path=require(a3_0xb6d867(0x173)),koasend=require(a3_0xb6d867(0x14d)),koa=require(a3_0xb6d867(0xdf)),upload=require(a3_0xb6d867(0xef)),staticFile=require(a3_0xb6d867(0xf4)),crossDomain=require(a3_0xb6d867(0xdc)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a3_0xb6d867(0x149)),anncic=require(a3_0xb6d867(0x113)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a3_0xb6d867(0x112)),anncicTypeorm=require(a3_0xb6d867(0x139)),anncicValidator=require(a3_0xb6d867(0x111)),anncicHelper=require(a3_0xb6d867(0x126));let CustomConfiguration=class CustomConfiguration{async[a3_0xb6d867(0xfa)](){const _0x15d3bc=a3_0xb6d867;await this[_0x15d3bc(0x175)](),await this['loggerConfig'](),await this[_0x15d3bc(0x11d)](),await this[_0x15d3bc(0x159)]();}async[a3_0xb6d867(0x11d)](){const _0x495494=a3_0xb6d867,_0x3f526d=this[_0x495494(0x10d)]['getConfiguration'](),_0x42423d=(0x0,core_1[_0x495494(0x10b)])(intercept_1[_0x495494(0x16f)],intercept_1[_0x495494(0xd2)])||{};this['decorator'][_0x495494(0x121)](action_1[_0x495494(0x15c)],_0x1de2d4=>{const _0x5833d5=_0x495494;var _0x3e3f81;const _0x51f845=(0x0,core_1[_0x5833d5(0x10b)])(action_1[_0x5833d5(0xe3)],action_1[_0x5833d5(0x10a)])||{},_0x59a52b=_0x1de2d4[_0x5833d5(0x153)],_0x4667c5=(0x0,core_1[_0x5833d5(0x10b)])(action_1[_0x5833d5(0xf7)],_0x1de2d4[_0x5833d5(0xd9)])||{},_0x22f98f=((_0x3e3f81=_0x4667c5===null||_0x4667c5===void 0x0?void 0x0:_0x4667c5[_0x5833d5(0x14f)])===null||_0x3e3f81===void 0x0?void 0x0:_0x3e3f81[_0x5833d5(0x127)](0x0,_0x4667c5[_0x5833d5(0x14f)][_0x5833d5(0x14c)]('.')))||'',_0x4801fd=(_0x4667c5===null||_0x4667c5===void 0x0?void 0x0:_0x4667c5[_0x5833d5(0x160)])?(_0x51f845===null||_0x51f845===void 0x0?void 0x0:_0x51f845[_0x4667c5['module']])||{}:{};return{'before':async _0x1db638=>{const _0x16213c=_0x5833d5;var _0x1cd81,_0x201fe8,_0xb835e9,_0xaab317;const _0x4c6625=(_0x1cd81=_0x1db638===null||_0x1db638===void 0x0?void 0x0:_0x1db638['target'])===null||_0x1cd81===void 0x0?void 0x0:_0x1cd81[core_2[_0x16213c(0xd1)]],_0x4905ca=lodash[_0x16213c(0x162)]({},_0x4c6625[_0x16213c(0x137)]['body']||_0x4c6625[_0x16213c(0x137)][((_0x201fe8=_0x3f526d===null||_0x3f526d===void 0x0?void 0x0:_0x3f526d[_0x16213c(0x151)])===null||_0x201fe8===void 0x0?void 0x0:_0x201fe8[_0x16213c(0x150)])||_0x16213c(0x117)]||{},_0x4c6625[_0x16213c(0x137)][_0x16213c(0x169)]||{});_0x4c6625['_matchedRouteMeta']={'module':(_0x4801fd===null||_0x4801fd===void 0x0?void 0x0:_0x4801fd[_0x16213c(0x15f)])||'','routePath':''+_0x4c6625[_0x16213c(0x173)],'routeName':_0x4667c5['routerOptions'][_0x16213c(0xee)]+'@'+_0x59a52b[_0x16213c(0xe1)],'routeMethod':((_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b[_0x16213c(0x146)])||_0x4c6625['method']||'')[_0x16213c(0x12d)](),'routeDescription':(_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b[_0x16213c(0xed)])||'','filemethod':_0x22f98f+'@'+(_0x59a52b['method']||'')};if(_0x4c6625&&(_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b[_0x16213c(0xf5)]))try{const _0xe6a7b5=((_0xb835e9=_0x3f526d===null||_0x3f526d===void 0x0?void 0x0:_0x3f526d[_0x16213c(0x16b)])===null||_0xb835e9===void 0x0?void 0x0:_0xb835e9[_0x16213c(0x11c)])&&typeof(_0x4905ca===null||_0x4905ca===void 0x0?void 0x0:_0x4905ca[_0x3f526d[_0x16213c(0x16b)][_0x16213c(0x11c)]])==_0x16213c(0xeb)?JSON[_0x16213c(0xfc)](base64_decode(_0x4905ca[_0x3f526d[_0x16213c(0x16b)][_0x16213c(0x11c)]])||'{}')||{}:((_0xaab317=_0x4c6625===null||_0x4c6625===void 0x0?void 0x0:_0x4c6625[_0x16213c(0x137)])===null||_0xaab317===void 0x0?void 0x0:_0xaab317[_0x16213c(0xd5)])||{};if(!this['ApiService'][_0x16213c(0x110)](_0xe6a7b5))throw new AnnError(ApiError_1['ApiError'][_0x16213c(0x16c)]);for(const _0x3168ff in _0xe6a7b5||{}){_0x4c6625[_0x16213c(0xd5)][_0x3168ff]=_0xe6a7b5[_0x3168ff];}}catch(_0x596010){if(_0x596010 instanceof AnnError)throw _0x596010;else throw new AnnError(ApiError_1['ApiError'][_0x16213c(0x14e)]);}},'around':async _0x44f38e=>{const _0x359f5e=_0x5833d5;var _0x13bed9,_0x423eb9,_0x41fd55;const _0x3c0311=(_0x13bed9=_0x44f38e===null||_0x44f38e===void 0x0?void 0x0:_0x44f38e[_0x359f5e(0xd9)])===null||_0x13bed9===void 0x0?void 0x0:_0x13bed9[core_2[_0x359f5e(0xd1)]];if(_0x3c0311&&(_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b[_0x359f5e(0xf5)])&&((_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b[_0x359f5e(0x143)])||typeof(_0x59a52b===null||_0x59a52b===void 0x0?void 0x0:_0x59a52b['intercept'])==_0x359f5e(0x13e))){if(((_0x423eb9=_0x3c0311[_0x359f5e(0xd5)])===null||_0x423eb9===void 0x0?void 0x0:_0x423eb9[_0x359f5e(0xf0)])&&((_0x41fd55=_0x42423d===null||_0x42423d===void 0x0?void 0x0:_0x42423d[_0x3c0311[_0x359f5e(0xd5)]['device']])===null||_0x41fd55===void 0x0?void 0x0:_0x41fd55[_0x359f5e(0x16a)])>0x0)for(const _0x1a050e of _0x42423d[_0x3c0311[_0x359f5e(0xd5)][_0x359f5e(0xf0)]]||[]){if(core_1[_0x359f5e(0x102)]['isClass'](_0x1a050e)){const _0x49c949=await _0x3c0311[_0x359f5e(0x108)]['getAsync'](_0x1a050e);typeof(_0x49c949===null||_0x49c949===void 0x0?void 0x0:_0x49c949[_0x359f5e(0x12c)])=='function'?await _0x49c949[_0x359f5e(0x12c)](_0x3c0311,typeof(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311['method'])=='string'&&(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)])?_0x3c0311[_0x359f5e(0x174)][_0x359f5e(0x12d)]()+'@'+(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)]):undefined,_0x59a52b)&&await _0x49c949[_0x359f5e(0x13a)](_0x3c0311,typeof(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x174)])==_0x359f5e(0xeb)&&(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)])?_0x3c0311[_0x359f5e(0x174)][_0x359f5e(0x12d)]()+'@'+(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)]):undefined,_0x59a52b):await _0x49c949[_0x359f5e(0x13a)](_0x3c0311,typeof(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x174)])==_0x359f5e(0xeb)&&(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)])?_0x3c0311[_0x359f5e(0x174)][_0x359f5e(0x12d)]()+'@'+(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)]):undefined,_0x59a52b);}else core_1[_0x359f5e(0x102)][_0x359f5e(0x13d)](_0x1a050e)&&await _0x1a050e(_0x3c0311,typeof(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x174)])==_0x359f5e(0xeb)&&(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311['_matchedRoute'])?_0x3c0311[_0x359f5e(0x174)][_0x359f5e(0x12d)]()+'@'+(_0x3c0311===null||_0x3c0311===void 0x0?void 0x0:_0x3c0311[_0x359f5e(0x10c)]):undefined,_0x59a52b);}}return await _0x44f38e['proceed'](..._0x44f38e[_0x359f5e(0xea)]);},'afterThrow':(_0x3be1a7,_0x26b9ad)=>{throw _0x26b9ad;}};});}async[a3_0xb6d867(0x159)](){const _0xaaa4dd=a3_0xb6d867,_0x502833=this[_0xaaa4dd(0x10d)][_0xaaa4dd(0x124)]();this[_0xaaa4dd(0x115)][_0xaaa4dd(0xe5)](['koa'])[_0xaaa4dd(0xd4)](_0x22ce56=>{const _0x77fe72=_0xaaa4dd;(_0x22ce56===null||_0x22ce56===void 0x0?void 0x0:_0x22ce56[_0x77fe72(0x10e)])&&Object[_0x77fe72(0x161)](_0x22ce56[_0x77fe72(0x10e)],{'hosturl':{'configurable':![],'get':function(){const _0x4b1e10=_0x77fe72;var _0x46f26c,_0x2aa7db,_0x4a8af4,_0x4e99b6;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x4b1e10(0x166)][_0x4b1e10(0x104)](_0x4b1e10(0x119))){let _0x5aade3=this[_0x4b1e10(0x166)][_0x4b1e10(0x129)](':');return['80','443'][_0x4b1e10(0xe2)](_0x5aade3===null||_0x5aade3===void 0x0?void 0x0:_0x5aade3[0x1])?''+(!!((_0x2aa7db=(_0x46f26c=this===null||this===void 0x0?void 0x0:this[_0x4b1e10(0xe6)])===null||_0x46f26c===void 0x0?void 0x0:_0x46f26c[_0x4b1e10(0x165)])===null||_0x2aa7db===void 0x0?void 0x0:_0x2aa7db[_0x4b1e10(0x132)])||(_0x5aade3===null||_0x5aade3===void 0x0?void 0x0:_0x5aade3[0x1])==_0x4b1e10(0x101)?_0x4b1e10(0x148):'http://')+_0x5aade3[0x0]:''+(!!((_0x4e99b6=(_0x4a8af4=this===null||this===void 0x0?void 0x0:this[_0x4b1e10(0xe6)])===null||_0x4a8af4===void 0x0?void 0x0:_0x4a8af4[_0x4b1e10(0x165)])===null||_0x4e99b6===void 0x0?void 0x0:_0x4e99b6[_0x4b1e10(0x132)])?_0x4b1e10(0x148):_0x4b1e10(0xf8))+this[_0x4b1e10(0x166)];}return'';}},'ok':{'value':function(_0x559615,_0x587f85,_0x210783=0x0){return{'code':_0x210783,'data':_0x559615,'extra':_0x587f85};}},'input':{'value':function(_0x1bb061,_0x50b45f){const _0x414ecc=_0x77fe72;var _0x530b70;const _0x4eec63=lodash[_0x414ecc(0x162)]({},this[_0x414ecc(0x137)][_0x414ecc(0x117)]||this[_0x414ecc(0x137)][((_0x530b70=_0x502833===null||_0x502833===void 0x0?void 0x0:_0x502833[_0x414ecc(0x151)])===null||_0x530b70===void 0x0?void 0x0:_0x530b70['key'])||_0x414ecc(0x117)]||{},this['request'][_0x414ecc(0x169)]||{});return _0x1bb061?lodash[_0x414ecc(0x12f)](_0x4eec63,_0x1bb061,_0x50b45f):_0x4eec63;}},'when':{'value':async function(_0x1b946a,_0x375947){const _0x26fb96=_0x77fe72,_0x4f0525=this[_0x26fb96(0x155)](_0x1b946a,null);if(!lodash[_0x26fb96(0xf2)](_0x4f0525))return await _0x375947(_0x4f0525);}},'only':{'value':function(_0x5b6733){const _0x2be800=_0x77fe72,_0x294373={};for(let _0x4d82d5=0x0;_0x4d82d5<_0x5b6733[_0x2be800(0x16a)];_0x4d82d5++){lodash['isArray'](_0x5b6733[_0x4d82d5])&&_0x5b6733[_0x4d82d5][_0x2be800(0x16a)]>0x0&&lodash['isString'](_0x5b6733[_0x4d82d5][0x0])&&(_0x294373[_0x5b6733[_0x4d82d5][0x0]]=this[_0x2be800(0x155)](_0x5b6733[_0x4d82d5][0x0],_0x5b6733[_0x4d82d5]['length']>0x1?_0x5b6733[_0x4d82d5][0x1]:null));}return _0x294373;}},'koasend':{'value':async function(_0x78788b,_0x59143e){const _0x24915f=_0x77fe72;if(_0x78788b&&!fs[_0x24915f(0x145)](_0x78788b)&&!fs[_0x24915f(0x145)](this['app'][_0x24915f(0x133)]()+'/'+_0x78788b))return _0x24915f(0xe4);return _0x78788b=fs[_0x24915f(0x145)](_0x78788b)?_0x78788b:this['app'][_0x24915f(0x133)]()+'/'+_0x78788b,this[_0x24915f(0x16d)](_0x59143e||_0x78788b),await koasend(this,_0x78788b);}}});});}async[a3_0xb6d867(0x147)](){const _0x59b08e=a3_0xb6d867;var _0x58b5b5;if(fs[_0x59b08e(0x145)](this[_0x59b08e(0x131)]['getBaseDir']()+'/apps')&&fs['statSync'](this[_0x59b08e(0x131)][_0x59b08e(0x10f)]()+_0x59b08e(0x122))[_0x59b08e(0x130)]()){const _0x508f1d=this['config'][_0x59b08e(0x124)](),_0x2fa76a=((_0x58b5b5=_0x508f1d===null||_0x508f1d===void 0x0?void 0x0:_0x508f1d['midwayLogger'])===null||_0x58b5b5===void 0x0?void 0x0:_0x58b5b5[_0x59b08e(0xf3)])||{};!fs[_0x59b08e(0x145)](this['app'][_0x59b08e(0x10f)]()+'/app')&&(_0x2fa76a[_0x59b08e(0x131)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x59b08e(0x136)]['isDevelopmentEnvironment'](),'fileLogName':_0x59b08e(0xf9),'dir':path[_0x59b08e(0x158)](this[_0x59b08e(0x131)][_0x59b08e(0x133)](),_0x59b08e(0x164),_0x59b08e(0x131))});!fs[_0x59b08e(0x145)](this[_0x59b08e(0x131)]['getBaseDir']()+'/basic')&&(_0x2fa76a[_0x59b08e(0x13b)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x59b08e(0x136)][_0x59b08e(0x11a)](),'fileLogName':_0x59b08e(0x116),'dir':path[_0x59b08e(0x158)](this[_0x59b08e(0x131)][_0x59b08e(0x133)](),_0x59b08e(0x164),_0x59b08e(0x13b))});for(const _0x609de1 of fs[_0x59b08e(0x12b)](this['app'][_0x59b08e(0x10f)]()+_0x59b08e(0x122))){if(!fs[_0x59b08e(0x152)](this[_0x59b08e(0x131)]['getBaseDir']()+_0x59b08e(0x128)+_0x609de1)['isDirectory']())continue;!(_0x2fa76a===null||_0x2fa76a===void 0x0?void 0x0:_0x2fa76a[_0x609de1])&&(_0x2fa76a[_0x609de1]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x59b08e(0x136)]['isDevelopmentEnvironment'](),'fileLogName':_0x609de1+_0x59b08e(0xff),'dir':path['join'](this[_0x59b08e(0x131)]['getAppDir'](),_0x59b08e(0x164),_0x59b08e(0xe7)+_0x609de1)}),this[_0x59b08e(0x15d)][_0x59b08e(0x11b)](_0x609de1,_0x2fa76a[_0x609de1]);}Object[_0x59b08e(0x109)](_0x2fa76a)[_0x59b08e(0x16a)]>0x0&&(!_0x508f1d[_0x59b08e(0x120)]&&(_0x508f1d[_0x59b08e(0x120)]={'default':{'maxSize':'1m','maxFiles':_0x59b08e(0x15e),'dir':path[_0x59b08e(0x158)](this['app'][_0x59b08e(0x133)](),_0x59b08e(0x164))}}),_0x508f1d[_0x59b08e(0x120)][_0x59b08e(0xf3)]=_0x2fa76a),this['config'][_0x59b08e(0xec)](_0x508f1d);}}async[a3_0xb6d867(0x175)](){const _0x5534f4=a3_0xb6d867;var _0x48d25b,_0x4ee139,_0x530412,_0x2a2514,_0x506d27,_0x532108;const _0x4e80b1=this[_0x5534f4(0x10d)][_0x5534f4(0x124)]();((_0x4ee139=(_0x48d25b=_0x4e80b1===null||_0x4e80b1===void 0x0?void 0x0:_0x4e80b1[_0x5534f4(0x16b)])===null||_0x48d25b===void 0x0?void 0x0:_0x48d25b[_0x5534f4(0xdb)])===null||_0x4ee139===void 0x0?void 0x0:_0x4ee139[_0x5534f4(0xe9)])&&Object[_0x5534f4(0x109)](_0x4e80b1[_0x5534f4(0x16b)][_0x5534f4(0xdb)])['length']>0x1&&delete _0x4e80b1[_0x5534f4(0x16b)][_0x5534f4(0xdb)][_0x5534f4(0xe9)];if((_0x530412=_0x4e80b1===null||_0x4e80b1===void 0x0?void 0x0:_0x4e80b1['staticFile'])===null||_0x530412===void 0x0?void 0x0:_0x530412['dirs'])for(const _0x55488b in _0x4e80b1[_0x5534f4(0x170)][_0x5534f4(0xe0)]){((_0x2a2514=_0x4e80b1[_0x5534f4(0x170)][_0x5534f4(0xe0)][_0x55488b])===null||_0x2a2514===void 0x0?void 0x0:_0x2a2514[_0x5534f4(0x103)])&&typeof((_0x506d27=_0x4e80b1[_0x5534f4(0x170)][_0x5534f4(0xe0)][_0x55488b])===null||_0x506d27===void 0x0?void 0x0:_0x506d27[_0x5534f4(0x103)])==_0x5534f4(0xeb)&&!fs[_0x5534f4(0x145)](_0x4e80b1['staticFile'][_0x5534f4(0xe0)][_0x55488b][_0x5534f4(0x103)])&&(fs[_0x5534f4(0xde)](_0x4e80b1[_0x5534f4(0x170)][_0x5534f4(0xe0)][_0x55488b][_0x5534f4(0x103)],{'recursive':!![]}),console[_0x5534f4(0xd3)](_0x5534f4(0x100)+_0x4e80b1['staticFile'][_0x5534f4(0xe0)][_0x55488b][_0x5534f4(0x103)]));}((_0x532108=_0x4e80b1===null||_0x4e80b1===void 0x0?void 0x0:_0x4e80b1[_0x5534f4(0x140)])===null||_0x532108===void 0x0?void 0x0:_0x532108[_0x5534f4(0x12a)])&&!fs[_0x5534f4(0x145)](_0x4e80b1['upload'][_0x5534f4(0x12a)])&&(fs[_0x5534f4(0xde)](_0x4e80b1[_0x5534f4(0x140)][_0x5534f4(0x12a)],{'recursive':!![]}),console[_0x5534f4(0xd3)](_0x5534f4(0x14a)+_0x4e80b1[_0x5534f4(0x140)]['tmpdir'])),this[_0x5534f4(0x10d)][_0x5534f4(0xec)](_0x4e80b1);}};exports[a3_0xb6d867(0xd7)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0xb6d867(0x154)])(),__metadata('design:type',Object)],CustomConfiguration[a3_0xb6d867(0xfb)],a3_0xb6d867(0x131),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0xb6d867(0xd8),core_2[a3_0xb6d867(0x134)])],CustomConfiguration[a3_0xb6d867(0xfb)],a3_0xb6d867(0x10d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0xb6d867(0xd8),core_2[a3_0xb6d867(0x13f)])],CustomConfiguration['prototype'],a3_0xb6d867(0x157),void 0x0),__decorate([(0x0,core_1[a3_0xb6d867(0x141)])(),__metadata(a3_0xb6d867(0xd8),core_2[a3_0xb6d867(0x168)])],CustomConfiguration[a3_0xb6d867(0xfb)],a3_0xb6d867(0x115),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0xb6d867(0xd8),core_2[a3_0xb6d867(0x163)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1[a3_0xb6d867(0x141)])(),__metadata(a3_0xb6d867(0xd8),core_1[a3_0xb6d867(0xf6)])],CustomConfiguration[a3_0xb6d867(0xfb)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0xb6d867(0x141)])(),__metadata(a3_0xb6d867(0xd8),ApiService_1[a3_0xb6d867(0x107)])],CustomConfiguration[a3_0xb6d867(0xfb)],a3_0xb6d867(0x107),void 0x0),exports[a3_0xb6d867(0xd7)]=CustomConfiguration=__decorate([(0x0,core_1[a3_0xb6d867(0x171)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0xb6d867(0xdd),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a3_0x51b0(_0x4a31b2,_0x548849){const _0x576fd5=a3_0x5496();return a3_0x51b0=function(_0x2a25aa,_0x14e8d7){_0x2a25aa=_0x2a25aa-0xd1;let _0x549661=_0x576fd5[_0x2a25aa];return _0x549661;},a3_0x51b0(_0x4a31b2,_0x548849);}function a3_0x5496(){const _0x430ef1=['270d','name','module','defineProperties','defaultsDeep','MidwayEnvironmentService','runtime','connection','host','3yFDkQX','MidwayApplicationManager','query','length','anncicapi','HEADERS_SIGNATURE','attachment','__esModule','INTERCEPT_KEY','staticFile','Configuration','@midwayjs/core','path','method','filterConfig','REQUEST_OBJ_CTX_KEY','InterceptTargetTmp','log','forEach','headers','490034SCpFOm','CustomConfiguration','design:type','target','385468fYVsuJ','devices','@midwayjs/cross-domain','anncic-api','mkdirSync','@midwayjs/koa','dirs','routerName','includes','APPSCONFIG_KEY','文件不存在','getApplications','req','apps-','3168914gquRLo','DEFAULT','args','string','addObject','description','tagName','@midwayjs/busboy','device','decorate','isNull','clients','@midwayjs/static-file','apimit','MidwayLoggerService','ACTION_KEY','http://','app.log','onReady','prototype','parse','toString','object','.log','Anncic-api\x20static-file\x20:\x20mkdir\x20','443','Types','dir','startsWith','defineProperty','./service/ApiService','ApiService','requestContext','keys','AppsConfigTmp','getClassMetadata','_matchedRoute','config','context','getBaseDir','checksign','@anncic-api/validator','@anncic-api/event','@anncic-api/core','72UYDsxw','application','basic.log','body','search','http','isDevelopmentEnvironment','createLogger','requestKey','handlerActionRoute','__metadata','__decorate','midwayLogger','registerMethodHandler','/apps','./exception/ApiError','getConfiguration','2956540veVFSD','anncic-apihelper','substring','/apps/','split','tmpdir','readdirSync','match','toLowerCase','constructor','get','isDirectory','app','encrypted','getAppDir','MidwayConfigService','6nEnFCe','environment','request','242724fffNvv','@anncic-api/typeorm','handler','basic','./types/action','isFunction','undefined','MidwayDecoratorService','upload','Inject','./types/intercept','intercept','4810304MtSXIH','existsSync','requestMethod','loggerConfig','https://','./config/config.production','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','2028855jzhSCA','lastIndexOf','koa-send','_UNKNOW_','filepath','key','bodyXml','statSync','metadata','App','input','(((.+)+)+)+$','decorator','join','hanlderApplications','function','getOwnPropertyDescriptor','ACTION_ROUTE_KEY','loggerService'];a3_0x5496=function(){return _0x430ef1;};return a3_0x5496();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x2c3f1b=a4_0x4f40;(function(_0x4039ff,_0x2563ab){const _0x5077a2=a4_0x4f40,_0x15caad=_0x4039ff();while(!![]){try{const _0x1d7180=-parseInt(_0x5077a2(0x1a2))/0x1*(-parseInt(_0x5077a2(0x1b0))/0x2)+parseInt(_0x5077a2(0x1ac))/0x3+-parseInt(_0x5077a2(0x194))/0x4*(parseInt(_0x5077a2(0x182))/0x5)+-parseInt(_0x5077a2(0x1ad))/0x6+-parseInt(_0x5077a2(0x198))/0x7+-parseInt(_0x5077a2(0x16a))/0x8*(-parseInt(_0x5077a2(0x1a3))/0x9)+parseInt(_0x5077a2(0x181))/0xa;if(_0x1d7180===_0x2563ab)break;else _0x15caad['push'](_0x15caad['shift']());}catch(_0x2c339e){_0x15caad['push'](_0x15caad['shift']());}}}(a4_0x1dfd,0x8ccd0));const a4_0x5b75d4=(function(){let _0xf06e32=!![];return function(_0x229911,_0x4ab672){const _0x5a292f=_0xf06e32?function(){const _0xf78e9b=a4_0x4f40;if(_0x4ab672){const _0x5f120d=_0x4ab672[_0xf78e9b(0x1a7)](_0x229911,arguments);return _0x4ab672=null,_0x5f120d;}}:function(){};return _0xf06e32=![],_0x5a292f;};}()),a4_0x2a3de7=a4_0x5b75d4(this,function(){const _0x4f63e2=a4_0x4f40;return a4_0x2a3de7[_0x4f63e2(0x1a8)]()[_0x4f63e2(0x1b4)](_0x4f63e2(0x17e))[_0x4f63e2(0x1a8)]()['constructor'](a4_0x2a3de7)['search']('(((.+)+)+)+$');});a4_0x2a3de7();'use strict';var _a,_b;Object[a4_0x2c3f1b(0x19f)](exports,'__esModule',{'value':!![]}),exports[a4_0x2c3f1b(0x172)]=Action,exports[a4_0x2c3f1b(0x185)]=ActionApi,exports[a4_0x2c3f1b(0x188)]=parseRoute;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a4_0x2c3f1b(0x17d)),core_2=require('@midwayjs/core'),action_1=require(a4_0x2c3f1b(0x196)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x2c3f1b(0x189)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a4_0x2c3f1b(0x190)]);function Action(_0x287271,_0x49f138,_0x3ddf24={'middleware':[],'sensitive':!![]}){return _0x15e4b1=>{const _0x5f03c9=a4_0x4f40;var _0x290d82;_0x3ddf24['tagName']=_0x49f138;const _0x15105c=parseRoute(_0x287271);if(_0x15105c['module']){_0x3ddf24[_0x5f03c9(0x199)]=_0x3ddf24['prefix']?'/'+_0x15105c['module']+'/'+_0x3ddf24['prefix']:'/'+_0x15105c[_0x5f03c9(0x16e)];_0x15105c[_0x5f03c9(0x199)]&&(_0x3ddf24[_0x5f03c9(0x199)]='/'+_0x15105c[_0x5f03c9(0x199)]+'/'+_0x3ddf24[_0x5f03c9(0x199)]);_0x3ddf24[_0x5f03c9(0x199)]=_0x3ddf24[_0x5f03c9(0x199)][_0x5f03c9(0x18c)]()[_0x5f03c9(0x180)](/\/{2,}/g,'/');const _0x6ded57=getModuleConfig(_0x15105c[_0x5f03c9(0x1ab)]+_0x5f03c9(0x174),_0x15105c[_0x5f03c9(0x17c)],lodash[_0x5f03c9(0x16b)](_0x15105c['filepath'],'ts')?'ts':'js');if(lodash[_0x5f03c9(0x169)](_0x6ded57[_0x5f03c9(0x19d)])&&_0x6ded57['middleware'][_0x5f03c9(0x186)]>0x0)for(let _0x3340a2 in _0x6ded57['middleware']){if(((_0x290d82=_0x6ded57===null||_0x6ded57===void 0x0?void 0x0:_0x6ded57[_0x5f03c9(0x191)])===null||_0x290d82===void 0x0?void 0x0:_0x290d82[_0x5f03c9(0x186)])>0x0&&_0x6ded57['middlewareIgnore'][_0x5f03c9(0x19c)](_0x6ded57[_0x5f03c9(0x19d)][_0x3340a2])!=-0x1)continue;_0x3ddf24[_0x5f03c9(0x19d)][_0x5f03c9(0x167)](_0x6ded57['middleware'][_0x3340a2]);}(0x0,core_1[_0x5f03c9(0x166)])(action_1[_0x5f03c9(0x1b1)],_0x15e4b1),(0x0,core_1[_0x5f03c9(0x187)])(_0x3ddf24['prefix'],_0x3ddf24)(_0x15e4b1),(0x0,core_1[_0x5f03c9(0x19b)])(action_1[_0x5f03c9(0x1b1)],{'prefix':_0x3ddf24['prefix'],'pprefix':_0x15105c[_0x5f03c9(0x199)],'module':_0x15105c[_0x5f03c9(0x17c)],'filepath':_0x15105c[_0x5f03c9(0x197)],'routerOptions':_0x3ddf24},_0x15e4b1);}else _0x3ddf24[_0x5f03c9(0x199)]=_0x3ddf24[_0x5f03c9(0x199)]?'/'+_0x3ddf24['prefix']:'/'+_0x15105c[_0x5f03c9(0x16e)],_0x15105c[_0x5f03c9(0x199)]&&(_0x3ddf24[_0x5f03c9(0x199)]='/'+_0x15105c['prefix']+'/'+_0x3ddf24[_0x5f03c9(0x199)]),_0x3ddf24[_0x5f03c9(0x199)]=_0x3ddf24[_0x5f03c9(0x199)][_0x5f03c9(0x18c)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x5f03c9(0x166)])(action_1[_0x5f03c9(0x1b1)],_0x15e4b1),(0x0,core_1[_0x5f03c9(0x187)])(_0x3ddf24['prefix'],_0x3ddf24)(_0x15e4b1),(0x0,core_1['saveClassMetadata'])(action_1[_0x5f03c9(0x1b1)],{'prefix':_0x3ddf24['prefix'],'module':_0x15105c[_0x5f03c9(0x17c)],'pprefix':_0x15105c[_0x5f03c9(0x199)],'filepath':_0x15105c[_0x5f03c9(0x197)],'routerOptions':_0x3ddf24},_0x15e4b1);};}Action[a4_0x2c3f1b(0x1a9)]=function(_0x4ec46f,_0x1589c6='/',_0x52a4d4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xa9e480,_0x2946b4,_0x4b9896)=>{const _0x49c0f=a4_0x4f40;ActionApi(_0x4ec46f,_0x49c0f(0x1a9),_0x1589c6,_0x52a4d4)(_0xa9e480,_0x2946b4,_0x4b9896);};},Action[a4_0x2c3f1b(0x1a4)]=function(_0x35f305,_0x31c509='/',_0x2e202e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x264d26,_0x5f50e4,_0x5062d9)=>{const _0x3aeeef=a4_0x4f40;ActionApi(_0x35f305,_0x3aeeef(0x1a4),_0x31c509,_0x2e202e)(_0x264d26,_0x5f50e4,_0x5062d9);};};function ActionApi(_0x2b9915,_0x54a6d0=a4_0x2c3f1b(0x1a9),_0x53ad61='/',_0x14aa45={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x455c2d,_0xb05b89,_0x28d92c)=>{const _0x3d7701=a4_0x4f40;var _0x3c8bfc,_0x10bb10,_0x5f2a97;!_0x14aa45['middleware']&&(_0x14aa45[_0x3d7701(0x19d)]=[]);!((_0x3c8bfc=_0x14aa45===null||_0x14aa45===void 0x0?void 0x0:_0x14aa45[_0x3d7701(0x1b2)])===null||_0x3c8bfc===void 0x0?void 0x0:_0x3c8bfc['validationOptions'])&&(_0x14aa45[_0x3d7701(0x1b2)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3d7701(0x17a)}});if(!_0x53ad61)_0x53ad61='/';else typeof _0x53ad61=='string'&&(!_0x53ad61[_0x3d7701(0x175)]('/')&&!_0x53ad61['startsWith']('-')&&(_0x53ad61='/'+_0x53ad61));typeof _0x14aa45[_0x3d7701(0x192)]==_0x3d7701(0x177)&&(_0x14aa45[_0x3d7701(0x192)]=!![]);if(((_0x10bb10=_0x14aa45===null||_0x14aa45===void 0x0?void 0x0:_0x14aa45[_0x3d7701(0x19d)])===null||_0x10bb10===void 0x0?void 0x0:_0x10bb10['length'])>0x0&&((_0x5f2a97=_0x14aa45===null||_0x14aa45===void 0x0?void 0x0:_0x14aa45[_0x3d7701(0x191)])===null||_0x5f2a97===void 0x0?void 0x0:_0x5f2a97[_0x3d7701(0x186)])>0x0)for(let _0x543027 in _0x14aa45['middleware']){_0x14aa45['middlewareIgnore'][_0x3d7701(0x19c)](_0x14aa45[_0x3d7701(0x19d)][_0x543027])!==-0x1&&(_0x14aa45[_0x3d7701(0x19d)][_0x543027]=null);}_0x14aa45['routerName']=_0x2b9915,(0x0,validator_1[_0x3d7701(0x1a6)])(_0x14aa45[_0x3d7701(0x1b2)])(_0x455c2d,_0xb05b89,_0x28d92c),(0x0,core_2['RequestMapping'])(Object[_0x3d7701(0x17f)](_0x14aa45,{'path':_0x53ad61,'requestMethod':(_0x54a6d0||_0x3d7701(0x1a9))[_0x3d7701(0x18c)]()}))(_0x455c2d,_0xb05b89,_0x28d92c),(0x0,core_2[_0x3d7701(0x195)])(action_1[_0x3d7701(0x18d)],{'path':_0x53ad61,'method':_0xb05b89,'apimit':_0x14aa45[_0x3d7701(0x192)],'intercept':_0x14aa45[_0x3d7701(0x184)],'routerName':_0x14aa45[_0x3d7701(0x1aa)],'description':_0x14aa45[_0x3d7701(0x19a)],'middleware':(_0x14aa45[_0x3d7701(0x19d)]||[])[_0x3d7701(0x1a0)](_0x31efef=>!!_0x31efef),'requestMethod':(_0x54a6d0||_0x3d7701(0x1a9))[_0x3d7701(0x18c)]()},_0x455c2d),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x3d7701(0x18d)],{'path':_0x53ad61,'method':_0xb05b89,'apimit':_0x14aa45[_0x3d7701(0x192)],'intercept':_0x14aa45['intercept'],'routerName':_0x14aa45[_0x3d7701(0x1aa)],'description':_0x14aa45[_0x3d7701(0x19a)],'middleware':(_0x14aa45[_0x3d7701(0x19d)]||[])[_0x3d7701(0x1a0)](_0x417ffd=>!!_0x417ffd),'requestMethod':(_0x54a6d0||_0x3d7701(0x1a9))[_0x3d7701(0x18c)]()})(_0x455c2d,_0xb05b89,_0x28d92c),_0x14aa45[_0x3d7701(0x16f)]&&(0x0,core_2[_0x3d7701(0x195)])(action_1['ACTION_RESPONSE_KEY'],{'method':_0xb05b89,..._0x14aa45[_0x3d7701(0x16f)]},_0x455c2d);};}function parseRoute(_0x130961){const _0x4a8fda=a4_0x2c3f1b;_0x130961=_0x130961[_0x4a8fda(0x180)](/(\\|\/)/g,'/');const _0xde1120=process[_0x4a8fda(0x168)]()[_0x4a8fda(0x180)](/(\\|\/)/g,'/'),_0x4557e7=_0x130961[_0x4a8fda(0x19e)](0x0,_0xde1120['length']+_0x130961[_0x4a8fda(0x19e)](_0xde1120[_0x4a8fda(0x186)]+0x1)[_0x4a8fda(0x19c)]('/')+0x1),_0x26a6bb=_0x130961['substring'](_0x4557e7['length']+0x1)[_0x4a8fda(0x180)](/(\\|\/)/g,'/'),_0x385a9c={'route':'','prefix':![],'module':![],'rootpath':_0x4557e7,'filepath':_0x26a6bb};if(_0x26a6bb[_0x4a8fda(0x175)](_0x4a8fda(0x18b))||_0x26a6bb[_0x4a8fda(0x175)](_0x4a8fda(0x178))){const _0x1582d0=_0x26a6bb[_0x4a8fda(0x19e)]((_0x26a6bb[_0x4a8fda(0x175)](_0x4a8fda(0x18b))?_0x4a8fda(0x18b):_0x4a8fda(0x178))[_0x4a8fda(0x186)])[_0x4a8fda(0x18a)]('/')['filter'](_0x4b1fab=>_0x4b1fab&&_0x4b1fab[_0x4a8fda(0x183)]());return _0x1582d0[_0x4a8fda(0x186)]>0x1&&(_0x385a9c[_0x4a8fda(0x199)]=_0x1582d0[0x0][_0x4a8fda(0x18c)](),_0x1582d0[_0x4a8fda(0x18f)](0x0,0x1)),_0x385a9c[_0x4a8fda(0x16e)]=('/'+_0x1582d0[_0x4a8fda(0x171)]('/'))[_0x4a8fda(0x180)](/(\.ts|\.js)$/,'')[_0x4a8fda(0x180)](/\/{2,}/g,'/')[_0x4a8fda(0x18e)](/[\/|A-Z]*[^A-Z]+/g)[_0x4a8fda(0x171)]('-')[_0x4a8fda(0x18c)]()[_0x4a8fda(0x180)](/\/\-/g,'/'),_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x16b)](_0x4a8fda(0x176))&&(_0x385a9c[_0x4a8fda(0x16e)]=_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x19e)](0x0,_0x385a9c[_0x4a8fda(0x16e)]['length']-0x7)),_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x16b)](_0x4a8fda(0x1ae))&&(_0x385a9c[_0x4a8fda(0x16e)]=_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x19e)](0x0,_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x186)]-0xb)),_0x385a9c;}else{if(_0x26a6bb[_0x4a8fda(0x175)](_0x4a8fda(0x1af))){const _0xdec2f7=_0x26a6bb['substring'](0x0,_0x26a6bb[_0x4a8fda(0x19c)](_0x4a8fda(0x1a1))+0x5),_0x5cbd81=_0x26a6bb[_0x4a8fda(0x19e)](_0xdec2f7['length']+0x1)[_0x4a8fda(0x180)](/(\\|\/)/g,'/')[_0x4a8fda(0x18a)]('/')[0x0];if(_0x26a6bb['startsWith']('apps/'+_0x5cbd81+'/controller/')){const _0x1e3948=_0x26a6bb[_0x4a8fda(0x19e)]((_0xdec2f7+'/'+_0x5cbd81+_0x4a8fda(0x173))['length'])[_0x4a8fda(0x18a)]('/')[_0x4a8fda(0x1a0)](_0x15b9f5=>_0x15b9f5&&_0x15b9f5['trim']());return _0x1e3948['length']>0x1&&(_0x385a9c[_0x4a8fda(0x199)]=_0x1e3948[0x0][_0x4a8fda(0x18c)](),_0x1e3948[_0x4a8fda(0x18f)](0x0,0x1)),_0x385a9c['module']=_0x5cbd81,_0x385a9c[_0x4a8fda(0x16e)]=('/'+_0x5cbd81+'/'+_0x1e3948[_0x4a8fda(0x171)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4a8fda(0x180)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4a8fda(0x171)]('-')[_0x4a8fda(0x18c)]()[_0x4a8fda(0x180)](/\/\-/g,'/'),_0x385a9c[_0x4a8fda(0x16e)]['endsWith']('-action')&&(_0x385a9c[_0x4a8fda(0x16e)]=_0x385a9c[_0x4a8fda(0x16e)]['substring'](0x0,_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x186)]-0x7)),_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x16b)]('-controller')&&(_0x385a9c['route']=_0x385a9c[_0x4a8fda(0x16e)][_0x4a8fda(0x19e)](0x0,_0x385a9c['route'][_0x4a8fda(0x186)]-0xb)),_0x385a9c;}throw new Error(_0x26a6bb+_0x4a8fda(0x1b5)+_0x5cbd81+_0x4a8fda(0x1b6));}}throw new Error(_0x26a6bb+'\x20文件请放在app/controller/文件下');}function a4_0x1dfd(){const _0x5a453e=['toLowerCase','ACTION_ROUTE_KEY','match','splice','NODE_ENV','middlewareIgnore','apimit','APPSCONFIG_KEY','71524lMAeqI','attachClassMetadata','../types/action','filepath','4371612yahVSQ','prefix','description','saveClassMetadata','indexOf','middleware','substring','defineProperty','filter','/apps/','204jNWyEX','9SuiEzb','post','/config.','Validator','apply','toString','get','routerName','rootpath','2449197idBitf','6373542DmWxUQ','-controller','apps/','11008ccDuHt','ACTION_KEY','validate','/config.default.','search','\x20文件请放在apps/','/controller/文件下','saveModule','push','cwd','isArray','532696iNEJiV','endsWith','defaultsDeep','existsSync','route','response','keys','join','Action','/controller/','/apps','startsWith','-action','undefined','basic/controller/','AppsConfigTmp','string','values','module','@midwayjs/core','(((.+)+)+)+$','assign','replace','13484320ckzSwx','305RysHTx','trim','intercept','ActionApi','length','Controller','parseRoute','env','split','app/controller/'];a4_0x1dfd=function(){return _0x5a453e;};return a4_0x1dfd();}const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[a4_0x2c3f1b(0x179)])||{};function a4_0x4f40(_0x2b5374,_0xc8b9fd){const _0x2f1a4b=a4_0x1dfd();return a4_0x4f40=function(_0x2a3de7,_0x5b75d4){_0x2a3de7=_0x2a3de7-0x166;let _0x1dfdc1=_0x2f1a4b[_0x2a3de7];return _0x1dfdc1;},a4_0x4f40(_0x2b5374,_0xc8b9fd);}function getModuleConfig(_0x1002d1,_0x56cc75,_0x2ef25d){const _0x23ba61=a4_0x2c3f1b;if(Object[_0x23ba61(0x17b)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x56cc75])||{})[_0x23ba61(0x186)]==0x0){let _0x371491={};if(NODE_ENV&&fs[_0x23ba61(0x16d)](_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1a5)+NODE_ENV+'.'+_0x2ef25d)){const _0x1a4c96=include(_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1a5)+NODE_ENV+'.'+_0x2ef25d);Object[_0x23ba61(0x170)](_0x1a4c96)['length']>0x0&&(_0x371491=lodash['defaultsDeep'](_0x371491,_0x1a4c96));}if(fs[_0x23ba61(0x16d)](_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1b3)+_0x2ef25d)){const _0x45f035=include(_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1b3)+_0x2ef25d);Object['keys'](_0x45f035)[_0x23ba61(0x186)]>0x0&&(_0x371491=lodash[_0x23ba61(0x16c)](_0x371491,_0x45f035));}if(fs['existsSync'](_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1a5)+_0x2ef25d)){const _0xa42811=include(_0x1002d1+'/'+_0x56cc75+_0x23ba61(0x1a5)+_0x2ef25d);Object[_0x23ba61(0x170)](_0xa42811)[_0x23ba61(0x186)]>0x0&&(_0x371491=lodash[_0x23ba61(0x16c)](_0x371491,_0xa42811));}moduleConfigTmp[_0x56cc75]=_0x371491,(0x0,core_1[_0x23ba61(0x19b)])(action_1[_0x23ba61(0x193)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x56cc75];}
|
|
1
|
+
const a4_0x2b49a3=a4_0x6095;(function(_0x4ffaad,_0x3744b3){const _0xe3c9b=a4_0x6095,_0x321582=_0x4ffaad();while(!![]){try{const _0x201e7e=-parseInt(_0xe3c9b(0xf5))/0x1+-parseInt(_0xe3c9b(0x100))/0x2+parseInt(_0xe3c9b(0xd6))/0x3*(parseInt(_0xe3c9b(0xe9))/0x4)+-parseInt(_0xe3c9b(0xc1))/0x5+parseInt(_0xe3c9b(0xd1))/0x6*(-parseInt(_0xe3c9b(0xfe))/0x7)+parseInt(_0xe3c9b(0xde))/0x8*(parseInt(_0xe3c9b(0xfa))/0x9)+parseInt(_0xe3c9b(0x105))/0xa;if(_0x201e7e===_0x3744b3)break;else _0x321582['push'](_0x321582['shift']());}catch(_0xf89165){_0x321582['push'](_0x321582['shift']());}}}(a4_0x1743,0xc16e2));const a4_0x26a7f1=(function(){let _0x1add8f=!![];return function(_0x49fbe2,_0xec73ab){const _0x32babc=_0x1add8f?function(){const _0x9a3e15=a4_0x6095;if(_0xec73ab){const _0xe62779=_0xec73ab[_0x9a3e15(0xed)](_0x49fbe2,arguments);return _0xec73ab=null,_0xe62779;}}:function(){};return _0x1add8f=![],_0x32babc;};}()),a4_0x55627b=a4_0x26a7f1(this,function(){const _0x10ac01=a4_0x6095;return a4_0x55627b[_0x10ac01(0x109)]()[_0x10ac01(0x10a)](_0x10ac01(0xc5))[_0x10ac01(0x109)]()['constructor'](a4_0x55627b)[_0x10ac01(0x10a)](_0x10ac01(0xc5));});a4_0x55627b();'use strict';var _a,_b;Object[a4_0x2b49a3(0xe4)](exports,'__esModule',{'value':!![]}),exports[a4_0x2b49a3(0xd7)]=Action,exports[a4_0x2b49a3(0xf6)]=ActionApi,exports[a4_0x2b49a3(0xda)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x2b49a3(0xd8)),core_1=require(a4_0x2b49a3(0xd5)),core_2=require(a4_0x2b49a3(0xd5)),action_1=require(a4_0x2b49a3(0x107)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a4_0x2b49a3(0xbd)]);function Action(_0x56ecde,_0x5f1b57,_0x1268d8={'middleware':[],'sensitive':!![]}){return _0x52c461=>{const _0x2dc835=a4_0x6095;var _0x33b428;_0x1268d8[_0x2dc835(0xcb)]=_0x5f1b57;const _0x44b44b=parseRoute(_0x56ecde);if(_0x44b44b[_0x2dc835(0xf7)]){_0x1268d8[_0x2dc835(0xf3)]=_0x1268d8[_0x2dc835(0xf3)]?'/'+_0x44b44b[_0x2dc835(0xf7)]+'/'+_0x1268d8[_0x2dc835(0xf3)]:'/'+_0x44b44b['route'];_0x44b44b[_0x2dc835(0xf3)]&&(_0x1268d8['prefix']='/'+_0x44b44b[_0x2dc835(0xf3)]+'/'+_0x1268d8[_0x2dc835(0xf3)]);_0x1268d8[_0x2dc835(0xf3)]=_0x1268d8[_0x2dc835(0xf3)][_0x2dc835(0x104)]()['replace'](/\/{2,}/g,'/');const _0xf5a76=getModuleConfig(_0x44b44b[_0x2dc835(0xc6)]+_0x2dc835(0xf1),_0x44b44b[_0x2dc835(0xf7)],lodash[_0x2dc835(0xff)](_0x44b44b[_0x2dc835(0xdb)],'ts')?'ts':'js');if(lodash[_0x2dc835(0xd3)](_0xf5a76[_0x2dc835(0xeb)])&&_0xf5a76[_0x2dc835(0xeb)]['length']>0x0)for(let _0xa6e23e in _0xf5a76['middleware']){if(((_0x33b428=_0xf5a76===null||_0xf5a76===void 0x0?void 0x0:_0xf5a76[_0x2dc835(0x102)])===null||_0x33b428===void 0x0?void 0x0:_0x33b428['length'])>0x0&&_0xf5a76[_0x2dc835(0x102)][_0x2dc835(0xe3)](_0xf5a76[_0x2dc835(0xeb)][_0xa6e23e])!=-0x1)continue;_0x1268d8[_0x2dc835(0xeb)][_0x2dc835(0xdd)](_0xf5a76['middleware'][_0xa6e23e]);}(0x0,core_1[_0x2dc835(0x101)])(action_1[_0x2dc835(0xe7)],_0x52c461),(0x0,core_1[_0x2dc835(0xef)])(_0x1268d8[_0x2dc835(0xf3)],_0x1268d8)(_0x52c461),(0x0,core_1[_0x2dc835(0xfc)])(action_1[_0x2dc835(0xe7)],{'prefix':_0x1268d8[_0x2dc835(0xf3)],'pprefix':_0x44b44b[_0x2dc835(0xf3)],'module':_0x44b44b[_0x2dc835(0xf7)],'filepath':_0x44b44b['filepath'],'routerOptions':_0x1268d8},_0x52c461);}else _0x1268d8['prefix']=_0x1268d8[_0x2dc835(0xf3)]?'/'+_0x1268d8['prefix']:'/'+_0x44b44b[_0x2dc835(0xe1)],_0x44b44b[_0x2dc835(0xf3)]&&(_0x1268d8['prefix']='/'+_0x44b44b[_0x2dc835(0xf3)]+'/'+_0x1268d8['prefix']),_0x1268d8['prefix']=_0x1268d8[_0x2dc835(0xf3)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x2dc835(0x101)])(action_1[_0x2dc835(0xe7)],_0x52c461),(0x0,core_1[_0x2dc835(0xef)])(_0x1268d8[_0x2dc835(0xf3)],_0x1268d8)(_0x52c461),(0x0,core_1[_0x2dc835(0xfc)])(action_1[_0x2dc835(0xe7)],{'prefix':_0x1268d8[_0x2dc835(0xf3)],'module':_0x44b44b[_0x2dc835(0xf7)],'pprefix':_0x44b44b['prefix'],'filepath':_0x44b44b[_0x2dc835(0xdb)],'routerOptions':_0x1268d8},_0x52c461);};}Action[a4_0x2b49a3(0xbe)]=function(_0x310000,_0x2d8036='/',_0x40c994={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x243b27,_0x186164,_0x3c8ef9)=>{const _0x4ef482=a4_0x6095;ActionApi(_0x310000,_0x4ef482(0xbe),_0x2d8036,_0x40c994)(_0x243b27,_0x186164,_0x3c8ef9);};},Action['post']=function(_0x1fd6b4,_0x3a488b='/',_0x3c6381={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2465e2,_0x54c498,_0x579880)=>{ActionApi(_0x1fd6b4,'post',_0x3a488b,_0x3c6381)(_0x2465e2,_0x54c498,_0x579880);};};function a4_0x6095(_0x48c12c,_0x57c673){const _0x28987a=a4_0x1743();return a4_0x6095=function(_0x55627b,_0x26a7f1){_0x55627b=_0x55627b-0xbd;let _0x1743c8=_0x28987a[_0x55627b];return _0x1743c8;},a4_0x6095(_0x48c12c,_0x57c673);}function ActionApi(_0x4e0c2c,_0x17f8b8='get',_0xc41e32='/',_0x549b25={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x76383d,_0x3956cf,_0x18fd52)=>{const _0x30f476=a4_0x6095;var _0x1fd6dd,_0x489d8c,_0x3e355d;!_0x549b25[_0x30f476(0xeb)]&&(_0x549b25['middleware']=[]);!((_0x1fd6dd=_0x549b25===null||_0x549b25===void 0x0?void 0x0:_0x549b25[_0x30f476(0xd0)])===null||_0x1fd6dd===void 0x0?void 0x0:_0x1fd6dd[_0x30f476(0xc4)])&&(_0x549b25[_0x30f476(0xd0)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0xc41e32)_0xc41e32='/';else typeof _0xc41e32==_0x30f476(0xf4)&&(!_0xc41e32['startsWith']('/')&&!_0xc41e32['startsWith']('-')&&(_0xc41e32='/'+_0xc41e32));typeof _0x549b25['apimit']==_0x30f476(0xc0)&&(_0x549b25[_0x30f476(0xf2)]=!![]);if(((_0x489d8c=_0x549b25===null||_0x549b25===void 0x0?void 0x0:_0x549b25[_0x30f476(0xeb)])===null||_0x489d8c===void 0x0?void 0x0:_0x489d8c['length'])>0x0&&((_0x3e355d=_0x549b25===null||_0x549b25===void 0x0?void 0x0:_0x549b25[_0x30f476(0x102)])===null||_0x3e355d===void 0x0?void 0x0:_0x3e355d[_0x30f476(0xf0)])>0x0)for(let _0x3a011b in _0x549b25[_0x30f476(0xeb)]){_0x549b25[_0x30f476(0x102)][_0x30f476(0xe3)](_0x549b25[_0x30f476(0xeb)][_0x3a011b])!==-0x1&&(_0x549b25[_0x30f476(0xeb)][_0x3a011b]=null);}_0x549b25[_0x30f476(0xbf)]=_0x4e0c2c,(0x0,validator_1[_0x30f476(0x106)])(_0x549b25['validate'])(_0x76383d,_0x3956cf,_0x18fd52),(0x0,core_2[_0x30f476(0xe0)])(Object[_0x30f476(0xca)](_0x549b25,{'path':_0xc41e32,'requestMethod':(_0x17f8b8||_0x30f476(0xbe))['toLowerCase']()}))(_0x76383d,_0x3956cf,_0x18fd52),(0x0,core_2['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0xc41e32,'method':_0x3956cf,'apimit':_0x549b25['apimit'],'intercept':_0x549b25[_0x30f476(0x103)],'routerName':_0x549b25[_0x30f476(0xbf)],'description':_0x549b25[_0x30f476(0xee)],'middleware':(_0x549b25['middleware']||[])['filter'](_0x4d6e04=>!!_0x4d6e04),'requestMethod':(_0x17f8b8||_0x30f476(0xbe))[_0x30f476(0x104)]()},_0x76383d),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x30f476(0xf9)],{'path':_0xc41e32,'method':_0x3956cf,'apimit':_0x549b25[_0x30f476(0xf2)],'intercept':_0x549b25['intercept'],'routerName':_0x549b25['routerName'],'description':_0x549b25[_0x30f476(0xee)],'middleware':(_0x549b25['middleware']||[])[_0x30f476(0xdf)](_0x2d45df=>!!_0x2d45df),'requestMethod':(_0x17f8b8||_0x30f476(0xbe))[_0x30f476(0x104)]()})(_0x76383d,_0x3956cf,_0x18fd52),_0x549b25[_0x30f476(0xf8)]&&(0x0,core_2['attachClassMetadata'])(action_1[_0x30f476(0xc2)],{'method':_0x3956cf,..._0x549b25['response']},_0x76383d);};}function parseRoute(_0x596e76){const _0x2fdb9c=a4_0x2b49a3;_0x596e76=_0x596e76[_0x2fdb9c(0xdc)](/(\\|\/)/g,'/');const _0x346d24=process['cwd']()[_0x2fdb9c(0xdc)](/(\\|\/)/g,'/'),_0x14a538=_0x596e76[_0x2fdb9c(0x10d)](0x0,_0x346d24[_0x2fdb9c(0xf0)]+_0x596e76[_0x2fdb9c(0x10d)](_0x346d24['length']+0x1)[_0x2fdb9c(0xe3)]('/')+0x1),_0x29e4b5=_0x596e76[_0x2fdb9c(0x10d)](_0x14a538['length']+0x1)[_0x2fdb9c(0xdc)](/(\\|\/)/g,'/'),_0x1037ec={'route':'','prefix':![],'module':![],'rootpath':_0x14a538,'filepath':_0x29e4b5};if(_0x29e4b5[_0x2fdb9c(0xd4)](_0x2fdb9c(0xd9))||_0x29e4b5[_0x2fdb9c(0xd4)](_0x2fdb9c(0xe8))){const _0xc2c0a6=_0x29e4b5['substring']((_0x29e4b5[_0x2fdb9c(0xd4)](_0x2fdb9c(0xd9))?_0x2fdb9c(0xd9):_0x2fdb9c(0xe8))[_0x2fdb9c(0xf0)])[_0x2fdb9c(0x108)]('/')['filter'](_0xc92ea7=>_0xc92ea7&&_0xc92ea7['trim']());return _0xc2c0a6[_0x2fdb9c(0xf0)]>0x1&&(_0x1037ec[_0x2fdb9c(0xf3)]=_0xc2c0a6[0x0][_0x2fdb9c(0x104)](),_0xc2c0a6[_0x2fdb9c(0xe5)](0x0,0x1)),_0x1037ec[_0x2fdb9c(0xe1)]=('/'+_0xc2c0a6[_0x2fdb9c(0xd2)]('/'))[_0x2fdb9c(0xdc)](/(\.ts|\.js)$/,'')[_0x2fdb9c(0xdc)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x2fdb9c(0xd2)]('-')[_0x2fdb9c(0x104)]()['replace'](/\/\-/g,'/'),_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0xff)](_0x2fdb9c(0x10b))&&(_0x1037ec[_0x2fdb9c(0xe1)]=_0x1037ec['route'][_0x2fdb9c(0x10d)](0x0,_0x1037ec[_0x2fdb9c(0xe1)]['length']-0x7)),_0x1037ec['route'][_0x2fdb9c(0xff)]('-controller')&&(_0x1037ec[_0x2fdb9c(0xe1)]=_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0x10d)](0x0,_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0xf0)]-0xb)),_0x1037ec;}else{if(_0x29e4b5[_0x2fdb9c(0xd4)](_0x2fdb9c(0xe2))){const _0xe4fff9=_0x29e4b5[_0x2fdb9c(0x10d)](0x0,_0x29e4b5[_0x2fdb9c(0xe3)](_0x2fdb9c(0xc8))+0x5),_0x5dcbc2=_0x29e4b5[_0x2fdb9c(0x10d)](_0xe4fff9[_0x2fdb9c(0xf0)]+0x1)[_0x2fdb9c(0xdc)](/(\\|\/)/g,'/')[_0x2fdb9c(0x108)]('/')[0x0];if(_0x29e4b5[_0x2fdb9c(0xd4)]('apps/'+_0x5dcbc2+_0x2fdb9c(0x10c))){const _0x77e459=_0x29e4b5[_0x2fdb9c(0x10d)]((_0xe4fff9+'/'+_0x5dcbc2+_0x2fdb9c(0x10c))[_0x2fdb9c(0xf0)])[_0x2fdb9c(0x108)]('/')['filter'](_0x57c095=>_0x57c095&&_0x57c095[_0x2fdb9c(0xc7)]());return _0x77e459[_0x2fdb9c(0xf0)]>0x1&&(_0x1037ec['prefix']=_0x77e459[0x0][_0x2fdb9c(0x104)](),_0x77e459['splice'](0x0,0x1)),_0x1037ec[_0x2fdb9c(0xf7)]=_0x5dcbc2,_0x1037ec[_0x2fdb9c(0xe1)]=('/'+_0x5dcbc2+'/'+_0x77e459['join']('/'))[_0x2fdb9c(0xdc)](/(\.ts|\.js)$/,'')[_0x2fdb9c(0xdc)](/\/{2,}/g,'/')[_0x2fdb9c(0xce)](/[\/|A-Z]*[^A-Z]+/g)[_0x2fdb9c(0xd2)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0xff)](_0x2fdb9c(0x10b))&&(_0x1037ec[_0x2fdb9c(0xe1)]=_0x1037ec['route']['substring'](0x0,_0x1037ec[_0x2fdb9c(0xe1)]['length']-0x7)),_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0xff)](_0x2fdb9c(0xc9))&&(_0x1037ec[_0x2fdb9c(0xe1)]=_0x1037ec[_0x2fdb9c(0xe1)]['substring'](0x0,_0x1037ec[_0x2fdb9c(0xe1)][_0x2fdb9c(0xf0)]-0xb)),_0x1037ec;}throw new Error(_0x29e4b5+_0x2fdb9c(0xcd)+_0x5dcbc2+_0x2fdb9c(0xcc));}}throw new Error(_0x29e4b5+'\x20文件请放在app/controller/文件下');}const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a4_0x2b49a3(0xea)],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x432148,_0x297d5b,_0x23ea70){const _0x5dd9cb=a4_0x2b49a3;if(Object[_0x5dd9cb(0xfb)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x297d5b])||{})[_0x5dd9cb(0xf0)]==0x0){let _0x3dacf5={};if(NODE_ENV&&fs[_0x5dd9cb(0x10e)](_0x432148+'/'+_0x297d5b+_0x5dd9cb(0xe6)+NODE_ENV+'.'+_0x23ea70)){const _0x400e1f=include(_0x432148+'/'+_0x297d5b+'/config.'+NODE_ENV+'.'+_0x23ea70);Object[_0x5dd9cb(0xcf)](_0x400e1f)[_0x5dd9cb(0xf0)]>0x0&&(_0x3dacf5=lodash['defaultsDeep'](_0x3dacf5,_0x400e1f));}if(fs[_0x5dd9cb(0x10e)](_0x432148+'/'+_0x297d5b+'/config.default.'+_0x23ea70)){const _0x4a3b4a=include(_0x432148+'/'+_0x297d5b+_0x5dd9cb(0xfd)+_0x23ea70);Object['keys'](_0x4a3b4a)[_0x5dd9cb(0xf0)]>0x0&&(_0x3dacf5=lodash[_0x5dd9cb(0xc3)](_0x3dacf5,_0x4a3b4a));}if(fs[_0x5dd9cb(0x10e)](_0x432148+'/'+_0x297d5b+_0x5dd9cb(0xe6)+_0x23ea70)){const _0x338907=include(_0x432148+'/'+_0x297d5b+_0x5dd9cb(0xe6)+_0x23ea70);Object[_0x5dd9cb(0xcf)](_0x338907)[_0x5dd9cb(0xf0)]>0x0&&(_0x3dacf5=lodash['defaultsDeep'](_0x3dacf5,_0x338907));}moduleConfigTmp[_0x297d5b]=_0x3dacf5,(0x0,core_1[_0x5dd9cb(0xfc)])(action_1[_0x5dd9cb(0xea)],moduleConfigTmp,action_1[_0x5dd9cb(0xec)]);}return moduleConfigTmp[_0x297d5b];}function a4_0x1743(){const _0x7c7040=['substring','existsSync','NODE_ENV','get','routerName','undefined','2486915BHBWLS','ACTION_RESPONSE_KEY','defaultsDeep','validationOptions','(((.+)+)+)+$','rootpath','trim','/apps/','-controller','assign','tagName','/controller/文件下','\x20文件请放在apps/','match','keys','validate','174vVkIkS','join','isArray','startsWith','@midwayjs/core','3404751PPQWpc','Action','@anncic-api/validator','app/controller/','parseRoute','filepath','replace','push','584BXjqxS','filter','RequestMapping','route','apps/','indexOf','defineProperty','splice','/config.','ACTION_KEY','basic/controller/','4nQktSs','APPSCONFIG_KEY','middleware','AppsConfigTmp','apply','description','Controller','length','/apps','apimit','prefix','string','444919efUGCq','ActionApi','module','response','ACTION_ROUTE_KEY','141786vaTrqI','values','saveClassMetadata','/config.default.','353577SekRBf','endsWith','1686852CSlsiN','saveModule','middlewareIgnore','intercept','toLowerCase','17578780urkFqf','Validator','../types/action','split','toString','search','-action','/controller/'];a4_0x1743=function(){return _0x7c7040;};return a4_0x1743();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x598d(){const _0x40284b=['value','app','apitest','207twmzhn','defineProperty','1933uSRgTT','getAsync','904040RBwepp','5692880IhJKdh','../service/ApitestService','4AmObVN','827255AjZWZw','getApplicationContext','isDevelopmentEnvironment','(((.+)+)+)+$','__esModule','398301sJJPfo','@midwayjs/core','filepath','41220GRnPdh','388ukFLuK','216CcgrDZ','toString','74109MSWKGV','240GgVJwc','Apitest','apply','search'];a5_0x598d=function(){return _0x40284b;};return a5_0x598d();}const a5_0x470cc8=a5_0x1252;(function(_0x1d1bbd,_0x330c43){const _0x28a0ee=a5_0x1252,_0x329601=_0x1d1bbd();while(!![]){try{const _0x27fa03=-parseInt(_0x28a0ee(0xe0))/0x1*(parseInt(_0x28a0ee(0xef))/0x2)+parseInt(_0x28a0ee(0xeb))/0x3*(parseInt(_0x28a0ee(0xe5))/0x4)+parseInt(_0x28a0ee(0xe2))/0x5+parseInt(_0x28a0ee(0xf0))/0x6*(-parseInt(_0x28a0ee(0xf2))/0x7)+-parseInt(_0x28a0ee(0xe3))/0x8+parseInt(_0x28a0ee(0xde))/0x9*(parseInt(_0x28a0ee(0xee))/0xa)+-parseInt(_0x28a0ee(0xe6))/0xb*(-parseInt(_0x28a0ee(0xf3))/0xc);if(_0x27fa03===_0x330c43)break;else _0x329601['push'](_0x329601['shift']());}catch(_0x3fc2e6){_0x329601['push'](_0x329601['shift']());}}}(a5_0x598d,0x6c941));const a5_0x198691=(function(){let _0x4036ae=!![];return function(_0x4c79f0,_0x5ad20c){const _0x4c0630=_0x4036ae?function(){const _0xadb689=a5_0x1252;if(_0x5ad20c){const _0x79d60e=_0x5ad20c[_0xadb689(0xd9)](_0x4c79f0,arguments);return _0x5ad20c=null,_0x79d60e;}}:function(){};return _0x4036ae=![],_0x4c0630;};}()),a5_0x298180=a5_0x198691(this,function(){const _0x579709=a5_0x1252;return a5_0x298180[_0x579709(0xf1)]()[_0x579709(0xda)](_0x579709(0xe9))['toString']()['constructor'](a5_0x298180)[_0x579709(0xda)](_0x579709(0xe9));});function a5_0x1252(_0x48aaf7,_0x270d2e){const _0x1d5b9f=a5_0x598d();return a5_0x1252=function(_0x298180,_0x198691){_0x298180=_0x298180-0xd8;let _0x598d6d=_0x1d5b9f[_0x298180];return _0x598d6d;},a5_0x1252(_0x48aaf7,_0x270d2e);}a5_0x298180();'use strict';Object[a5_0x470cc8(0xdf)](exports,a5_0x470cc8(0xea),{'value':!![]}),exports[a5_0x470cc8(0xd8)]=Apitest;const core_1=require(a5_0x470cc8(0xec)),ApitestService_1=require(a5_0x470cc8(0xe4));function Apitest(_0x4a2741='/apitest',_0x520f56){return(_0x38ab4b,_0x403bac,_0xee672d)=>{const _0x1c8da8=a5_0x1252;return(0x0,core_1['RequestMapping'])({'path':_0x4a2741,'requestMethod':'get'})(_0x38ab4b,_0x403bac,_0xee672d),_0xee672d[_0x1c8da8(0xdb)]=async function(..._0x420397){const _0x1e481c=_0x1c8da8;var _0xa42a4c;const _0x490807=(_0xa42a4c=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0xa42a4c===void 0x0?void 0x0:_0xa42a4c[_0x1e481c(0xdc)];if(_0x490807&&_0x490807['getConfig'](_0x1e481c(0xdd))){const _0x400fd7=await _0x490807[_0x1e481c(0xe7)]()[_0x1e481c(0xe1)](ApitestService_1['ApitestService']),_0x3ec9fa=await _0x490807[_0x1e481c(0xe7)]()['getAsync'](core_1['MidwayEnvironmentService']);return _0x3ec9fa[_0x1e481c(0xe8)]()&&(_0x520f56[_0x1e481c(0xed)]=!![]),await _0x400fd7['apidoc'](_0x520f56);}return'';},_0xee672d;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x41528e=a6_0x1710;(function(_0x56a93e,_0x20dfc5){const _0x2ef14a=a6_0x1710,_0x5487ee=_0x56a93e();while(!![]){try{const _0x1a7788=parseInt(_0x2ef14a(0x176))/0x1+-parseInt(_0x2ef14a(0x160))/0x2*(parseInt(_0x2ef14a(0x15d))/0x3)+parseInt(_0x2ef14a(0x175))/0x4*(parseInt(_0x2ef14a(0x166))/0x5)+parseInt(_0x2ef14a(0x159))/0x6+parseInt(_0x2ef14a(0x162))/0x7*(-parseInt(_0x2ef14a(0x167))/0x8)+parseInt(_0x2ef14a(0x165))/0x9*(-parseInt(_0x2ef14a(0x16d))/0xa)+-parseInt(_0x2ef14a(0x16a))/0xb*(parseInt(_0x2ef14a(0x16b))/0xc);if(_0x1a7788===_0x20dfc5)break;else _0x5487ee['push'](_0x5487ee['shift']());}catch(_0x43f37d){_0x5487ee['push'](_0x5487ee['shift']());}}}(a6_0x56ac,0x4fed4));function a6_0x56ac(){const _0x5ec146=['apply','3751uwcKIM','3876ruHutU','../types/intercept','2386040NZhTAl','ScopeEnum','Scope','@midwayjs/core','defineProperty','InterceptTargetTmp','INTERCEPT_KEY','search','3064XZtoPK','643997OdwCRm','isArray','(((.+)+)+)+$','1823100zMFGEe','saveClassMetadata','__esModule','includes','417Xnvess','toString','Singleton','4972FCcZth','constructor','14TwcPXM','getClassMetadata','match','9LMzQrm','3810gTaMZm','2039432oDTNIL','Intercept'];a6_0x56ac=function(){return _0x5ec146;};return a6_0x56ac();}const a6_0x17ae24=(function(){let _0x275e81=!![];return function(_0x26347e,_0x360c96){const _0x1ceee3=_0x275e81?function(){const _0x620e7b=a6_0x1710;if(_0x360c96){const _0x5d367f=_0x360c96[_0x620e7b(0x169)](_0x26347e,arguments);return _0x360c96=null,_0x5d367f;}}:function(){};return _0x275e81=![],_0x1ceee3;};}()),a6_0x16f89a=a6_0x17ae24(this,function(){const _0x7d128c=a6_0x1710;return a6_0x16f89a[_0x7d128c(0x15e)]()[_0x7d128c(0x174)]('(((.+)+)+)+$')['toString']()[_0x7d128c(0x161)](a6_0x16f89a)[_0x7d128c(0x174)](_0x7d128c(0x158));});a6_0x16f89a();'use strict';Object[a6_0x41528e(0x171)](exports,a6_0x41528e(0x15b),{'value':!![]}),exports['IIntercept']=void 0x0,exports[a6_0x41528e(0x168)]=Intercept;function a6_0x1710(_0x141748,_0x1bacc0){const _0x339176=a6_0x56ac();return a6_0x1710=function(_0x16f89a,_0x17ae24){_0x16f89a=_0x16f89a-0x158;let _0x56acbc=_0x339176[_0x16f89a];return _0x56acbc;},a6_0x1710(_0x141748,_0x1bacc0);}const core_1=require(a6_0x41528e(0x170)),intercept_1=require(a6_0x41528e(0x16c));function Intercept(_0x331003){return _0x5de0a4=>{const _0x2bc92c=a6_0x1710,_0xb1f8a3=(0x0,core_1[_0x2bc92c(0x163)])(intercept_1[_0x2bc92c(0x173)],intercept_1[_0x2bc92c(0x172)])||{};for(let _0x23fa9f of Array[_0x2bc92c(0x177)](_0x331003)?_0x331003:[_0x331003]){_0x23fa9f=_0x23fa9f['toUpperCase']();!(_0xb1f8a3===null||_0xb1f8a3===void 0x0?void 0x0:_0xb1f8a3[_0x23fa9f])&&(_0xb1f8a3[_0x23fa9f]=[]);if(_0xb1f8a3[_0x23fa9f][_0x2bc92c(0x15c)](_0x5de0a4))continue;_0xb1f8a3[_0x23fa9f]['push'](_0x5de0a4);}(0x0,core_1['Provide'])()(_0x5de0a4),(0x0,core_1[_0x2bc92c(0x16f)])(core_1[_0x2bc92c(0x16e)][_0x2bc92c(0x15f)])(_0x5de0a4),(0x0,core_1[_0x2bc92c(0x15a)])(intercept_1['INTERCEPT_KEY'],_0xb1f8a3,intercept_1[_0x2bc92c(0x172)]);};}class IIntercept{async[a6_0x41528e(0x164)](_0x5bfe5e,_0x3e467c,_0x6a589b){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x203251=a7_0x4599;(function(_0x394fb3,_0xdc760){var _0xcaefe6=a7_0x4599,_0x296211=_0x394fb3();while(!![]){try{var _0x3eed87=-parseInt(_0xcaefe6(0xdf))/0x1*(-parseInt(_0xcaefe6(0xe0))/0x2)+parseInt(_0xcaefe6(0xd6))/0x3+-parseInt(_0xcaefe6(0xda))/0x4*(parseInt(_0xcaefe6(0xe9))/0x5)+parseInt(_0xcaefe6(0xd2))/0x6*(parseInt(_0xcaefe6(0xe3))/0x7)+parseInt(_0xcaefe6(0xe7))/0x8*(parseInt(_0xcaefe6(0xd3))/0x9)+-parseInt(_0xcaefe6(0xed))/0xa+-parseInt(_0xcaefe6(0xef))/0xb;if(_0x3eed87===_0xdc760)break;else _0x296211['push'](_0x296211['shift']());}catch(_0xf29a08){_0x296211['push'](_0x296211['shift']());}}}(a7_0x381d,0x55476));var a7_0x5c1926=(function(){var _0x5d722f=!![];return function(_0x42317a,_0x4fa9df){var _0x1d0d20=_0x5d722f?function(){var _0x3e79f6=a7_0x4599;if(_0x4fa9df){var _0x612edf=_0x4fa9df[_0x3e79f6(0xe4)](_0x42317a,arguments);return _0x4fa9df=null,_0x612edf;}}:function(){};return _0x5d722f=![],_0x1d0d20;};}()),a7_0x191402=a7_0x5c1926(this,function(){var _0x3424d8=a7_0x4599;return a7_0x191402['toString']()[_0x3424d8(0xd7)]('(((.+)+)+)+$')[_0x3424d8(0xcf)]()[_0x3424d8(0xea)](a7_0x191402)[_0x3424d8(0xd7)](_0x3424d8(0xe2));});a7_0x191402();'use strict';var __decorate=this&&this[a7_0x203251(0xd5)]||function(_0x4c8564,_0x218dbe,_0x4c8c44,_0x54a449){var _0xf2913c=a7_0x203251,_0x5a069b=arguments[_0xf2913c(0xd9)],_0x2a7c34=_0x5a069b<0x3?_0x218dbe:_0x54a449===null?_0x54a449=Object['getOwnPropertyDescriptor'](_0x218dbe,_0x4c8c44):_0x54a449,_0x2662cb;if(typeof Reflect===_0xf2913c(0xd0)&&typeof Reflect[_0xf2913c(0xdb)]===_0xf2913c(0xd8))_0x2a7c34=Reflect['decorate'](_0x4c8564,_0x218dbe,_0x4c8c44,_0x54a449);else{for(var _0x21bc4f=_0x4c8564[_0xf2913c(0xd9)]-0x1;_0x21bc4f>=0x0;_0x21bc4f--)if(_0x2662cb=_0x4c8564[_0x21bc4f])_0x2a7c34=(_0x5a069b<0x3?_0x2662cb(_0x2a7c34):_0x5a069b>0x3?_0x2662cb(_0x218dbe,_0x4c8c44,_0x2a7c34):_0x2662cb(_0x218dbe,_0x4c8c44))||_0x2a7c34;}return _0x5a069b>0x3&&_0x2a7c34&&Object[_0xf2913c(0xeb)](_0x218dbe,_0x4c8c44,_0x2a7c34),_0x2a7c34;},__metadata=this&&this['__metadata']||function(_0x9af93b,_0x1f6347){var _0x1e1a70=a7_0x203251;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x1e1a70(0xee)](_0x9af93b,_0x1f6347);};Object[a7_0x203251(0xeb)](exports,a7_0x203251(0xe5),{'value':!![]}),exports[a7_0x203251(0xec)]=void 0x0;class ApiError extends AnnError{}function a7_0x381d(){var _0x28a581=['TIMEOUT','验证失败,请重新登录','HEADERS_DEVICE','8aAunwY','20008PKLOVd','HEADERS_CHECKCODE','(((.+)+)+)+$','91LDdlHY','apply','__esModule','TIMEOUT_LOGINTIME','5183336xLRacZ','HEADERS_LACK','45yRwffz','constructor','defineProperty','ApiError','5573560wAvDOO','metadata','9128438XjmjbK','toString','object','登录超时,请重新登录','273702RiWyFn','9VfHYKE','design:type','__decorate','1810857gLaJjt','search','function','length','83588MFrAav','decorate'];a7_0x381d=function(){return _0x28a581;};return a7_0x381d();}function a7_0x4599(_0x2ebaa6,_0x3025b9){var _0x36879d=a7_0x381d();return a7_0x4599=function(_0x191402,_0x5c1926){_0x191402=_0x191402-0xcf;var _0x381d73=_0x36879d[_0x191402];return _0x381d73;},a7_0x4599(_0x2ebaa6,_0x3025b9);}exports[a7_0x203251(0xec)]=ApiError,ApiError[a7_0x203251(0xdc)]=0x19003,ApiError[a7_0x203251(0xe8)]=0x18e72,ApiError[a7_0x203251(0xde)]=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a7_0x203251(0xe1)]=0x18e75,ApiError[a7_0x203251(0xe6)]=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata('design:type',Object)],ApiError,a7_0x203251(0xdc),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a7_0x203251(0xe8),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a7_0x203251(0xd4),Object)],ApiError,a7_0x203251(0xde),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0x203251(0xdd)),__metadata(a7_0x203251(0xd4),Object)],ApiError,a7_0x203251(0xe1),void 0x0),__decorate([AnnErrorMsg(a7_0x203251(0xd1)),__metadata(a7_0x203251(0xd4),Object)],ApiError,a7_0x203251(0xe6),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x23f876=a8_0x4e50;(function(_0x3ae56b,_0x24d6b7){const _0x31b29f=a8_0x4e50,_0x382d6a=_0x3ae56b();while(!![]){try{const _0x53374f=-parseInt(_0x31b29f(0x134))/0x1*(-parseInt(_0x31b29f(0x136))/0x2)+parseInt(_0x31b29f(0x13b))/0x3*(parseInt(_0x31b29f(0x135))/0x4)+-parseInt(_0x31b29f(0x132))/0x5*(parseInt(_0x31b29f(0x12b))/0x6)+-parseInt(_0x31b29f(0x137))/0x7*(-parseInt(_0x31b29f(0x12d))/0x8)+parseInt(_0x31b29f(0x133))/0x9+-parseInt(_0x31b29f(0x12e))/0xa+parseInt(_0x31b29f(0x13c))/0xb*(-parseInt(_0x31b29f(0x12c))/0xc);if(_0x53374f===_0x24d6b7)break;else _0x382d6a['push'](_0x382d6a['shift']());}catch(_0x44ae1d){_0x382d6a['push'](_0x382d6a['shift']());}}}(a8_0x53fe,0xe3ffd));const a8_0x3c0a9e=(function(){let _0x1af42e=!![];return function(_0x256801,_0x3034e4){const _0x3e5751=_0x1af42e?function(){if(_0x3034e4){const _0xb74095=_0x3034e4['apply'](_0x256801,arguments);return _0x3034e4=null,_0xb74095;}}:function(){};return _0x1af42e=![],_0x3e5751;};}()),a8_0x348233=a8_0x3c0a9e(this,function(){const _0x4da277=a8_0x4e50;return a8_0x348233[_0x4da277(0x13a)]()[_0x4da277(0x129)](_0x4da277(0x130))[_0x4da277(0x13a)]()[_0x4da277(0x128)](a8_0x348233)['search'](_0x4da277(0x130));});function a8_0x4e50(_0x2dd68c,_0x54eb0e){const _0xf7556f=a8_0x53fe();return a8_0x4e50=function(_0x348233,_0x3c0a9e){_0x348233=_0x348233-0x128;let _0x53fe68=_0xf7556f[_0x348233];return _0x53fe68;},a8_0x4e50(_0x2dd68c,_0x54eb0e);}function a8_0x53fe(){const _0x42080f=['../types/action','constructor','search','__esModule','5810424yvcenU','24348zfRwYp','11986040jhzZHJ','15420850CHvHxR','get','(((.+)+)+)+$','@midwayjs/core','5QDBCIA','10815885anXzAM','7RMjGoq','1688JIkXZu','307178AoohHZ','7JkUjIi','AppsConfigTmp','getAppsConfig','toString','13068uNphwI','11759BhRIGA'];a8_0x53fe=function(){return _0x42080f;};return a8_0x53fe();}a8_0x348233();'use strict';Object['defineProperty'](exports,a8_0x23f876(0x12a),{'value':!![]}),exports[a8_0x23f876(0x139)]=getAppsConfig;const core_1=require(a8_0x23f876(0x131)),action_1=require(a8_0x23f876(0x13d));function getAppsConfig(_0x1a0fc1,_0x46075f){const _0x2ec54c=a8_0x23f876,_0x5e2c06=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x2ec54c(0x138)])||{};return _0x1a0fc1?lodash[_0x2ec54c(0x12f)](_0x5e2c06,_0x1a0fc1,_0x46075f):_0x5e2c06;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x3fedb1=a9_0x29f3;(function(_0x5ac0f7,_0x12c32b){const _0x56e0f7=a9_0x29f3,_0x49ace9=_0x5ac0f7();while(!![]){try{const _0x5858bf=parseInt(_0x56e0f7(0x1b7))/0x1+parseInt(_0x56e0f7(0x1b4))/0x2+parseInt(_0x56e0f7(0x19c))/0x3*(parseInt(_0x56e0f7(0x1c7))/0x4)+parseInt(_0x56e0f7(0x1be))/0x5+-parseInt(_0x56e0f7(0x1a9))/0x6+parseInt(_0x56e0f7(0x165))/0x7*(-parseInt(_0x56e0f7(0x1c3))/0x8)+-parseInt(_0x56e0f7(0x175))/0x9;if(_0x5858bf===_0x12c32b)break;else _0x49ace9['push'](_0x49ace9['shift']());}catch(_0x497b74){_0x49ace9['push'](_0x49ace9['shift']());}}}(a9_0x404f,0xc6fee));const a9_0x53d845=(function(){let _0x51ec7a=!![];return function(_0xf66e7e,_0x582a75){const _0x183be3=_0x51ec7a?function(){const _0x11f1b8=a9_0x29f3;if(_0x582a75){const _0x440cb4=_0x582a75[_0x11f1b8(0x16d)](_0xf66e7e,arguments);return _0x582a75=null,_0x440cb4;}}:function(){};return _0x51ec7a=![],_0x183be3;};}()),a9_0x25f455=a9_0x53d845(this,function(){const _0x32c78b=a9_0x29f3;return a9_0x25f455[_0x32c78b(0x1bb)]()[_0x32c78b(0x169)](_0x32c78b(0x17e))[_0x32c78b(0x1bb)]()[_0x32c78b(0x187)](a9_0x25f455)[_0x32c78b(0x169)](_0x32c78b(0x17e));});a9_0x25f455();'use strict';Object[a9_0x3fedb1(0x176)](exports,a9_0x3fedb1(0x1b2),{'value':!![]}),exports[a9_0x3fedb1(0x1a4)]=getRoutes;const lodash_1=require('lodash'),validator_1=require(a9_0x3fedb1(0x1b6)),core_1=require('@midwayjs/core'),core_2=require(a9_0x3fedb1(0x168)),core_3=require(a9_0x3fedb1(0x168)),action_1=require('../types/action');function getRoutes(_0x3d6df8={'prefix':'/','module':![]}){const _0x1c64f7=a9_0x3fedb1;var _0x593540,_0x245b1c;const _0x227983=(0x0,core_3[_0x1c64f7(0x181)])(action_1[_0x1c64f7(0x178)]),_0x3073a4={},_0x59d696=Array[_0x1c64f7(0x17c)](_0x3d6df8[_0x1c64f7(0x18a)]||[])?_0x3d6df8[_0x1c64f7(0x18a)]||[]:[_0x3d6df8[_0x1c64f7(0x18a)]];_0x414efc:for(const _0xcbea67 of _0x227983){let _0x380188=(0x0,core_3[_0x1c64f7(0x174)])(action_1[_0x1c64f7(0x178)],_0xcbea67),_0x27b6af=(0x0,core_3[_0x1c64f7(0x174)])(action_1[_0x1c64f7(0x1a1)],_0xcbea67);if(_0x380188&&_0x27b6af){let _0xdfbb31=_0x380188[_0x1c64f7(0x184)],_0x198f82={};if(_0x3d6df8[_0x1c64f7(0x1ba)]&&(0x0,lodash_1[_0x1c64f7(0x17a)])(_0x380188,_0x1c64f7(0x1ba),![])!=_0x3d6df8[_0x1c64f7(0x1ba)])continue _0x414efc;else{if(_0x3d6df8[_0x1c64f7(0x1ba)]===![]&&!!(0x0,lodash_1[_0x1c64f7(0x17a)])(_0x380188,'module',null))continue _0x414efc;}if(_0x3d6df8[_0x1c64f7(0x184)]&&!_0xdfbb31[_0x1c64f7(0x195)](_0x3d6df8['prefix']))continue _0x414efc;_0xdfbb31!=='/'?(_0x198f82[_0x1c64f7(0x198)]=(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x163)][_0x1c64f7(0x1a8)])||(/^\//[_0x1c64f7(0x160)](_0xdfbb31)?_0xdfbb31[_0x1c64f7(0x1c8)]('/')[0x1]:_0xdfbb31),_0x198f82['description']=(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x163)][_0x1c64f7(0x1a7)])||_0x198f82[_0x1c64f7(0x198)],_0x198f82['routes']=[]):(_0x198f82[_0x1c64f7(0x198)]=(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x163)][_0x1c64f7(0x1a8)])||_0x1c64f7(0x1c0),_0x198f82[_0x1c64f7(0x1a7)]=(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x163)][_0x1c64f7(0x1a7)])||'',_0x198f82[_0x1c64f7(0x15e)]=[]);_0x3d6df8[_0x1c64f7(0x197)]&&(_0x198f82[_0x1c64f7(0x197)]=_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x197)]);(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188['pprefix'])&&(_0x198f82[_0x1c64f7(0x184)]=_0x380188[_0x1c64f7(0x172)]);(_0x380188===null||_0x380188===void 0x0?void 0x0:_0x380188[_0x1c64f7(0x1ba)])&&(_0x198f82[_0x1c64f7(0x1ba)]=_0x380188[_0x1c64f7(0x1ba)]);let _0x10916e=(0x0,core_3[_0x1c64f7(0x174)])(core_2['INJECT_CUSTOM_PARAM'],_0xcbea67)||{};if(typeof _0x27b6af[Symbol[_0x1c64f7(0x18b)]]===_0x1c64f7(0x1a0))for(let _0x1ecddd of _0x27b6af){if((_0x3d6df8===null||_0x3d6df8===void 0x0?void 0x0:_0x3d6df8[_0x1c64f7(0x177)])&&!(_0x1ecddd===null||_0x1ecddd===void 0x0?void 0x0:_0x1ecddd[_0x1c64f7(0x177)]))continue;let _0x41ff0b={};_0x41ff0b[_0x1c64f7(0x18f)]=_0x1ecddd[_0x1c64f7(0x19f)],_0x41ff0b[_0x1c64f7(0x18d)]=(_0xdfbb31+_0x1ecddd[_0x1c64f7(0x1ac)])['replace'](/\/{2,}/g,'/'),_0x41ff0b[_0x1c64f7(0x198)]=(_0x1ecddd===null||_0x1ecddd===void 0x0?void 0x0:_0x1ecddd[_0x1c64f7(0x199)])||_0x198f82[_0x1c64f7(0x198)]||_0x1c64f7(0x1c0),_0x41ff0b['description']=(_0x1ecddd===null||_0x1ecddd===void 0x0?void 0x0:_0x1ecddd[_0x1c64f7(0x1a7)])||'',_0x41ff0b[_0x1c64f7(0x1b3)]=[],_0x41ff0b[_0x1c64f7(0x1b9)]=getMethodResponse(_0xcbea67,_0x1ecddd['method']);_0x41ff0b[_0x1c64f7(0x18d)][_0x1c64f7(0x16f)]('/')&&(_0x41ff0b['route']=_0x41ff0b[_0x1c64f7(0x18d)][_0x1c64f7(0x166)](0x0,_0x41ff0b[_0x1c64f7(0x18d)]['length']-0x1));if(!(0x0,lodash_1[_0x1c64f7(0x195)])(_0x41ff0b[_0x1c64f7(0x18d)],'static/apitest')&&!(0x0,lodash_1[_0x1c64f7(0x195)])(_0x41ff0b[_0x1c64f7(0x18d)],_0x1c64f7(0x16c))&&_0x59d696[_0x1c64f7(0x162)](_0x41ff0b[_0x1c64f7(0x18d)])===-0x1){if(!(_0x3d6df8===null||_0x3d6df8===void 0x0?void 0x0:_0x3d6df8[_0x1c64f7(0x188)])){let _0x254c83=(0x0,core_3[_0x1c64f7(0x183)])(new _0xcbea67(),_0x1ecddd['method']);for(const _0x2ec3e3 in _0x254c83){let _0x56a35a=(_0x593540=_0x10916e[_0x1ecddd['method']])===null||_0x593540===void 0x0?void 0x0:_0x593540[_0x1c64f7(0x1ae)](_0x1a85d8=>_0x1a85d8[_0x1c64f7(0x1c6)]==_0x2ec3e3&&_0x1a85d8['key']===core_2[_0x1c64f7(0x1bd)]&&(_0x1a85d8===null||_0x1a85d8===void 0x0?void 0x0:_0x1a85d8[_0x1c64f7(0x189)]));if(_0x56a35a===null||_0x56a35a===void 0x0?void 0x0:_0x56a35a[_0x1c64f7(0x189)]){let _0x293676=convertTypeToString(_0x56a35a[_0x1c64f7(0x189)][_0x1c64f7(0x19a)]||0x0);if([_0x1c64f7(0x1c2),'body'][_0x1c64f7(0x162)](_0x293676)!=-0x1&&_0x56a35a[_0x1c64f7(0x189)][_0x1c64f7(0x171)][_0x1c64f7(0x162)](':')==-0x1&&!_0x41ff0b[_0x1c64f7(0x1b3)]['find'](_0x32a219=>_0x32a219['key']==_0x56a35a[_0x1c64f7(0x189)]['propertyData']))_0x41ff0b[_0x1c64f7(0x1b3)][_0x1c64f7(0x185)]({'key':_0x56a35a['metadata']['propertyData'],'title':_0x56a35a['metadata'][_0x1c64f7(0x171)],'type':convertSchemaType(_0x254c83[_0x56a35a[_0x1c64f7(0x1c6)]][_0x1c64f7(0x1a2)]),'required':![],'default':'','desc':''});else{if(_0x293676==_0x1c64f7(0x191)){let _0x274ba3=((_0x245b1c=_0x56a35a===null||_0x56a35a===void 0x0?void 0x0:_0x56a35a[_0x1c64f7(0x189)])===null||_0x245b1c===void 0x0?void 0x0:_0x245b1c[_0x1c64f7(0x171)])||_0x1c64f7(0x191);_0x274ba3['indexOf'](':')==-0x1&&!_0x41ff0b['request'][_0x1c64f7(0x1ae)](_0x2e7ade=>_0x2e7ade[_0x1c64f7(0x173)]==_0x274ba3&&_0x2e7ade[_0x1c64f7(0x19a)]==_0x1c64f7(0x191))&&_0x41ff0b[_0x1c64f7(0x1b3)]['push']({'key':_0x274ba3,'title':'文件上传-'+_0x274ba3,'type':_0x1c64f7(0x191),'required':!![],'default':'','desc':''});}}}else{const _0x1d09c3=(0x0,core_3[_0x1c64f7(0x164)])(validator_1[_0x1c64f7(0x19d)],_0x254c83[_0x2ec3e3]);_0x1d09c3&&_0x41ff0b[_0x1c64f7(0x1b3)][_0x1c64f7(0x185)](...getJoiRequest(_0x1d09c3));}}}_0x198f82['routes'][_0x1c64f7(0x185)](_0x41ff0b);}}if(_0x198f82[_0x1c64f7(0x15e)][_0x1c64f7(0x16e)]>0x0){let _0x56450d=_0x3073a4[_0xdfbb31];_0x56450d?(_0x56450d['summary']!=_0x198f82[_0x1c64f7(0x198)]&&(_0x56450d[_0x1c64f7(0x198)]=_0x56450d[_0x1c64f7(0x198)]+','+_0x198f82[_0x1c64f7(0x198)]),_0x56450d[_0x1c64f7(0x1a7)]!=_0x198f82[_0x1c64f7(0x1a7)]&&(_0x56450d[_0x1c64f7(0x1a7)]=_0x56450d[_0x1c64f7(0x1a7)]+','+_0x198f82[_0x1c64f7(0x1a7)]),_0x56450d[_0x1c64f7(0x15e)]=_0x56450d[_0x1c64f7(0x15e)][_0x1c64f7(0x1b1)](_0x198f82[_0x1c64f7(0x15e)]),_0x3073a4[_0xdfbb31]=_0x56450d):_0x3073a4[_0xdfbb31]=_0x198f82;}}}return _0x3073a4;}function getJoiRequest(_0x25ad77){const _0x177617=a9_0x3fedb1;var _0xfa7414,_0xc99ba0;const _0x11e8fe=[];for(let _0x173d34 in _0x25ad77){const _0xd4378e={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x38b5ee=typeof _0x25ad77[_0x173d34][_0x177617(0x167)]==_0x177617(0x1a0)?_0x25ad77[_0x173d34][_0x177617(0x167)]():_0x25ad77[_0x173d34];_0xd4378e['key']=_0x173d34,_0xd4378e[_0x177617(0x19a)]=_0x38b5ee['type'],_0xd4378e['title']=(0x0,lodash_1[_0x177617(0x17a)])(_0x38b5ee,_0x177617(0x16a),_0x173d34),_0xd4378e['default']=(0x0,lodash_1[_0x177617(0x17a)])(_0x38b5ee,_0x177617(0x1bc),''),_0xd4378e['required']=(0x0,lodash_1['get'])(_0x38b5ee,_0x177617(0x1b5),'')==_0x177617(0x192),_0xd4378e['description']=(0x0,lodash_1['get'])(_0x38b5ee,_0x177617(0x1c4),'');if(_0x38b5ee['type']=='object')(_0x38b5ee===null||_0x38b5ee===void 0x0?void 0x0:_0x38b5ee[_0x177617(0x194)])&&(_0xd4378e[_0x177617(0x196)]=getJoiRequest(_0x38b5ee[_0x177617(0x194)]));else _0x38b5ee[_0x177617(0x19a)]==_0x177617(0x170)&&_0x38b5ee[_0x177617(0x17b)]&&Array[_0x177617(0x17c)](_0x38b5ee[_0x177617(0x17b)])&&(((_0xc99ba0=(_0xfa7414=_0x38b5ee===null||_0x38b5ee===void 0x0?void 0x0:_0x38b5ee['items'])===null||_0xfa7414===void 0x0?void 0x0:_0xfa7414[0x0])===null||_0xc99ba0===void 0x0?void 0x0:_0xc99ba0[_0x177617(0x194)])&&(_0xd4378e[_0x177617(0x196)]=getJoiRequest(_0x38b5ee[_0x177617(0x17b)][0x0][_0x177617(0x194)])));_0x38b5ee[_0x177617(0x19b)]&&Array['isArray'](_0x38b5ee[_0x177617(0x19b)])&&_0x38b5ee[_0x177617(0x19b)]['length']>0x0&&(_0xd4378e[_0x177617(0x1a7)]=_0x177617(0x186)+_0x38b5ee[_0x177617(0x19b)][_0x177617(0x19e)](',')+'];'+_0xd4378e['description']);if(_0xd4378e['key']&&_0xd4378e[_0x177617(0x19a)]){const _0x1b3ddb={};for(const _0x46287d of _0x38b5ee[_0x177617(0x17f)]||[]){if(_0x46287d[_0x177617(0x1a2)]===_0x177617(0x1ab)&&_0x46287d[_0x177617(0x1b8)])_0x1b3ddb[_0x177617(0x1ab)]=_0x46287d['args'][_0x177617(0x1c1)];else _0x46287d[_0x177617(0x1a2)]==='max'&&(_0x1b3ddb[_0x177617(0x1ad)]=_0x46287d[_0x177617(0x1b8)][_0x177617(0x1c1)]);}_0xd4378e[_0x177617(0x17f)]=_0x1b3ddb;}_0xd4378e[_0x177617(0x173)]&&_0xd4378e[_0x177617(0x193)]&&_0x11e8fe[_0x177617(0x185)](_0xd4378e);}return _0x11e8fe;}function a9_0x29f3(_0x29426b,_0x4a4e8d){const _0x4dabd2=a9_0x404f();return a9_0x29f3=function(_0x25f455,_0x53d845){_0x25f455=_0x25f455-0x15d;let _0x404f2b=_0x4dabd2[_0x25f455];return _0x404f2b;},a9_0x29f3(_0x29426b,_0x4a4e8d);}function convertSchemaType(_0x3e96e8){const _0x14c903=a9_0x3fedb1;switch(_0x3e96e8){case _0x14c903(0x179):return _0x14c903(0x161);case'Boolean':return _0x14c903(0x1aa);case _0x14c903(0x15f):return _0x14c903(0x15d);case _0x14c903(0x180):return'string';case _0x14c903(0x1a5):return'file';default:return _0x14c903(0x1bf);}}function a9_0x404f(){const _0x1e1b4e=['@anncic-api/validator','609474WKcpvU','args','response','module','toString','flags.default','WEB_ROUTER_PARAM_KEY','3421215iarwlD','string','default','limit','query','5998424RDxeQE','flags.description','ACTION_RESPONSE_KEY','parameterIndex','229492WgTgLA','split','number','routes','Number','test','object','indexOf','routerOptions','getClassExtendedMetadata','7gPqNYY','substring','describe','@midwayjs/core','search','flags.label','FILESTREAM','/static/apitest','apply','length','endsWith','array','propertyData','pprefix','key','getClassMetadata','14025699CUSlII','defineProperty','intercept','ACTION_KEY','Object','get','items','isArray','QUERY','(((.+)+)+)+$','rules','String','listModule','PARAM','getMethodParamTypes','prefix','push','只允许:[','constructor','noreq','metadata','filter','iterator','RouteParamTypes','route','errors','method','header','file','required','title','keys','startsWith','children','filepath','summary','routerName','type','allow','63eZksxg','RULES_KEY','join','requestMethod','function','ACTION_ROUTE_KEY','name','format','getRoutes','File','FILESSTREAM','description','tagName','4487280psgHNX','boolean','min','path','max','find','HEADERS','BODY','concat','__esModule','request','2745260mqEIqp','flags.presence'];a9_0x404f=function(){return _0x1e1b4e;};return a9_0x404f();}function convertTypeToString(_0x390aee){const _0x3c7382=a9_0x3fedb1;switch(_0x390aee){case core_1[_0x3c7382(0x18c)][_0x3c7382(0x1af)]:return _0x3c7382(0x190);case core_1[_0x3c7382(0x18c)][_0x3c7382(0x17d)]:return _0x3c7382(0x1c2);case core_1[_0x3c7382(0x18c)][_0x3c7382(0x182)]:return _0x3c7382(0x1ac);case core_1[_0x3c7382(0x18c)][_0x3c7382(0x1b0)]:return'body';case core_1['RouteParamTypes']['FIELDS']:case core_1['RouteParamTypes'][_0x3c7382(0x1a6)]:case core_1[_0x3c7382(0x18c)][_0x3c7382(0x16b)]:return'file';default:return _0x3c7382(0x190);}}function getMethodResponse(_0x2b3d40,_0x36a0c0){const _0x1731cc=a9_0x3fedb1,_0x99812e=(0x0,core_3[_0x1731cc(0x174)])(action_1[_0x1731cc(0x1c5)],_0x2b3d40);if(!_0x99812e)return null;const _0x174215=_0x99812e[_0x1731cc(0x1ae)](_0x193b75=>_0x193b75['method']===_0x36a0c0);if(!_0x174215)return null;return{'format':_0x174215[_0x1731cc(0x1a3)]||_0x1731cc(0x1c0),'type':_0x174215[_0x1731cc(0x19a)],'description':_0x174215[_0x1731cc(0x1a7)]||'','properties':_0x174215['properties']||[],'errors':_0x174215[_0x1731cc(0x18e)]||[]};}
|
|
1
|
+
const a9_0x7ed9d5=a9_0xd486;(function(_0x58e9a1,_0x2c2ded){const _0x1c2dff=a9_0xd486,_0x74ad9c=_0x58e9a1();while(!![]){try{const _0x1a585a=parseInt(_0x1c2dff(0x1c6))/0x1*(parseInt(_0x1c2dff(0x1c2))/0x2)+-parseInt(_0x1c2dff(0x214))/0x3*(parseInt(_0x1c2dff(0x1db))/0x4)+parseInt(_0x1c2dff(0x21f))/0x5+parseInt(_0x1c2dff(0x1bd))/0x6+parseInt(_0x1c2dff(0x1f9))/0x7*(-parseInt(_0x1c2dff(0x1e6))/0x8)+parseInt(_0x1c2dff(0x216))/0x9*(-parseInt(_0x1c2dff(0x1f4))/0xa)+-parseInt(_0x1c2dff(0x20f))/0xb;if(_0x1a585a===_0x2c2ded)break;else _0x74ad9c['push'](_0x74ad9c['shift']());}catch(_0x37a600){_0x74ad9c['push'](_0x74ad9c['shift']());}}}(a9_0x5325,0x9a9ee));const a9_0x302c70=(function(){let _0x3e6318=!![];return function(_0x2c5395,_0x2a0183){const _0x12520c=_0x3e6318?function(){const _0x430069=a9_0xd486;if(_0x2a0183){const _0x504268=_0x2a0183[_0x430069(0x1d3)](_0x2c5395,arguments);return _0x2a0183=null,_0x504268;}}:function(){};return _0x3e6318=![],_0x12520c;};}()),a9_0x5df47a=a9_0x302c70(this,function(){const _0x3611cb=a9_0xd486;return a9_0x5df47a['toString']()[_0x3611cb(0x1ef)](_0x3611cb(0x1d0))[_0x3611cb(0x1e5)]()[_0x3611cb(0x1f1)](a9_0x5df47a)[_0x3611cb(0x1ef)]('(((.+)+)+)+$');});a9_0x5df47a();'use strict';function a9_0xd486(_0x245d3c,_0x2f06b7){const _0x4d4cc1=a9_0x5325();return a9_0xd486=function(_0x5df47a,_0x302c70){_0x5df47a=_0x5df47a-0x1b6;let _0x5325f0=_0x4d4cc1[_0x5df47a];return _0x5325f0;},a9_0xd486(_0x245d3c,_0x2f06b7);}function a9_0x5325(){const _0x2e2b05=['7YDYaAw','file','metadata','routerName','args','/static/apitest','defineProperty','join','routes','FIELDS','filter','function','test','description','HEADERS','indexOf','object','summary','items','get','filepath','concat','15163225xgYkal','describe','只允许:[','request','getClassMetadata','849849tqQIjs','required','9dovPNb','iterator','lodash','find','max','flags.presence','substring','path','File','6231100TzBLXI','文件上传-','Object','RouteParamTypes','ACTION_RESPONSE_KEY','ACTION_KEY','RULES_KEY','response','boolean','getRoutes','intercept','array','6290172efWoWn','listModule','@midwayjs/core','keys','title','2175934PWtISk','min','string','propertyData','1TfNZFA','PARAM','length','isArray','key','Boolean','tagName','default','String','routerOptions','(((.+)+)+)+$','module','method','apply','query','children','number','../types/action','allow','@anncic-api/validator','rules','8kiJvdv','flags.default','type','static/apitest','prefix','route','format','name','BODY','WEB_ROUTER_PARAM_KEY','toString','838952vSqwkd','limit','body','FILESSTREAM','push','FILESTREAM','flags.label','properties','ACTION_ROUTE_KEY','search','pprefix','constructor','startsWith','flags.description','6993130AYGBJO','getClassExtendedMetadata','Number','header','parameterIndex'];a9_0x5325=function(){return _0x2e2b05;};return a9_0x5325();}Object[a9_0x7ed9d5(0x1ff)](exports,'__esModule',{'value':!![]}),exports[a9_0x7ed9d5(0x1ba)]=getRoutes;const lodash_1=require(a9_0x7ed9d5(0x218)),validator_1=require(a9_0x7ed9d5(0x1d9)),core_1=require(a9_0x7ed9d5(0x1bf)),core_2=require(a9_0x7ed9d5(0x1bf)),core_3=require(a9_0x7ed9d5(0x1bf)),action_1=require(a9_0x7ed9d5(0x1d7));function getRoutes(_0x4a6ce2={'prefix':'/','module':![]}){const _0x3602fb=a9_0x7ed9d5;var _0x17be4a,_0x54187e;const _0x3816a0=(0x0,core_3[_0x3602fb(0x1be)])(action_1[_0x3602fb(0x1b6)]),_0x5a00d2={},_0x543280=Array[_0x3602fb(0x1c9)](_0x4a6ce2[_0x3602fb(0x203)]||[])?_0x4a6ce2[_0x3602fb(0x203)]||[]:[_0x4a6ce2[_0x3602fb(0x203)]];_0xb8a26e:for(const _0x2076d0 of _0x3816a0){let _0x47fe43=(0x0,core_3[_0x3602fb(0x213)])(action_1[_0x3602fb(0x1b6)],_0x2076d0),_0x5832b9=(0x0,core_3[_0x3602fb(0x213)])(action_1[_0x3602fb(0x1ee)],_0x2076d0);if(_0x47fe43&&_0x5832b9){let _0x57e4ef=_0x47fe43[_0x3602fb(0x1df)],_0x5da75d={};if(_0x4a6ce2[_0x3602fb(0x1d1)]&&(0x0,lodash_1[_0x3602fb(0x20c)])(_0x47fe43,_0x3602fb(0x1d1),![])!=_0x4a6ce2[_0x3602fb(0x1d1)])continue _0xb8a26e;else{if(_0x4a6ce2[_0x3602fb(0x1d1)]===![]&&!!(0x0,lodash_1[_0x3602fb(0x20c)])(_0x47fe43,_0x3602fb(0x1d1),null))continue _0xb8a26e;}if(_0x4a6ce2[_0x3602fb(0x1df)]&&!_0x57e4ef[_0x3602fb(0x1f2)](_0x4a6ce2[_0x3602fb(0x1df)]))continue _0xb8a26e;_0x57e4ef!=='/'?(_0x5da75d[_0x3602fb(0x20a)]=(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43['routerOptions'][_0x3602fb(0x1cc)])||(/^\//[_0x3602fb(0x205)](_0x57e4ef)?_0x57e4ef['split']('/')[0x1]:_0x57e4ef),_0x5da75d['description']=(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43['routerOptions']['description'])||_0x5da75d[_0x3602fb(0x20a)],_0x5da75d[_0x3602fb(0x201)]=[]):(_0x5da75d[_0x3602fb(0x20a)]=(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43[_0x3602fb(0x1cf)][_0x3602fb(0x1cc)])||_0x3602fb(0x1cd),_0x5da75d[_0x3602fb(0x206)]=(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43[_0x3602fb(0x1cf)][_0x3602fb(0x206)])||'',_0x5da75d['routes']=[]);_0x4a6ce2[_0x3602fb(0x20d)]&&(_0x5da75d[_0x3602fb(0x20d)]=_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43[_0x3602fb(0x20d)]);(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43[_0x3602fb(0x1f0)])&&(_0x5da75d[_0x3602fb(0x1df)]=_0x47fe43[_0x3602fb(0x1f0)]);(_0x47fe43===null||_0x47fe43===void 0x0?void 0x0:_0x47fe43[_0x3602fb(0x1d1)])&&(_0x5da75d[_0x3602fb(0x1d1)]=_0x47fe43[_0x3602fb(0x1d1)]);let _0x3e9d80=(0x0,core_3[_0x3602fb(0x213)])(core_2['INJECT_CUSTOM_PARAM'],_0x2076d0)||{};if(typeof _0x5832b9[Symbol[_0x3602fb(0x217)]]==='function')for(let _0x360b1e of _0x5832b9){if((_0x4a6ce2===null||_0x4a6ce2===void 0x0?void 0x0:_0x4a6ce2[_0x3602fb(0x1bb)])&&!(_0x360b1e===null||_0x360b1e===void 0x0?void 0x0:_0x360b1e['intercept']))continue;let _0x1ad899={};_0x1ad899[_0x3602fb(0x1d2)]=_0x360b1e['requestMethod'],_0x1ad899['route']=(_0x57e4ef+_0x360b1e[_0x3602fb(0x21d)])['replace'](/\/{2,}/g,'/'),_0x1ad899[_0x3602fb(0x20a)]=(_0x360b1e===null||_0x360b1e===void 0x0?void 0x0:_0x360b1e[_0x3602fb(0x1fc)])||_0x5da75d[_0x3602fb(0x20a)]||_0x3602fb(0x1cd),_0x1ad899[_0x3602fb(0x206)]=(_0x360b1e===null||_0x360b1e===void 0x0?void 0x0:_0x360b1e[_0x3602fb(0x206)])||'',_0x1ad899[_0x3602fb(0x212)]=[],_0x1ad899[_0x3602fb(0x1b8)]=getMethodResponse(_0x2076d0,_0x360b1e[_0x3602fb(0x1d2)]);_0x1ad899[_0x3602fb(0x1e0)]['endsWith']('/')&&(_0x1ad899[_0x3602fb(0x1e0)]=_0x1ad899[_0x3602fb(0x1e0)][_0x3602fb(0x21c)](0x0,_0x1ad899[_0x3602fb(0x1e0)]['length']-0x1));if(!(0x0,lodash_1[_0x3602fb(0x1f2)])(_0x1ad899[_0x3602fb(0x1e0)],_0x3602fb(0x1de))&&!(0x0,lodash_1[_0x3602fb(0x1f2)])(_0x1ad899[_0x3602fb(0x1e0)],_0x3602fb(0x1fe))&&_0x543280[_0x3602fb(0x208)](_0x1ad899['route'])===-0x1){if(!(_0x4a6ce2===null||_0x4a6ce2===void 0x0?void 0x0:_0x4a6ce2['noreq'])){let _0x2fcee5=(0x0,core_3['getMethodParamTypes'])(new _0x2076d0(),_0x360b1e[_0x3602fb(0x1d2)]);for(const _0x544d12 in _0x2fcee5){let _0x55938f=(_0x17be4a=_0x3e9d80[_0x360b1e[_0x3602fb(0x1d2)]])===null||_0x17be4a===void 0x0?void 0x0:_0x17be4a[_0x3602fb(0x219)](_0x2b225c=>_0x2b225c[_0x3602fb(0x1f8)]==_0x544d12&&_0x2b225c[_0x3602fb(0x1ca)]===core_2[_0x3602fb(0x1e4)]&&(_0x2b225c===null||_0x2b225c===void 0x0?void 0x0:_0x2b225c[_0x3602fb(0x1fb)]));if(_0x55938f===null||_0x55938f===void 0x0?void 0x0:_0x55938f[_0x3602fb(0x1fb)]){let _0x40afbe=convertTypeToString(_0x55938f[_0x3602fb(0x1fb)][_0x3602fb(0x1dd)]||0x0);if([_0x3602fb(0x1d4),_0x3602fb(0x1e8)]['indexOf'](_0x40afbe)!=-0x1&&_0x55938f['metadata']['propertyData'][_0x3602fb(0x208)](':')==-0x1&&!_0x1ad899[_0x3602fb(0x212)][_0x3602fb(0x219)](_0x3f574e=>_0x3f574e['key']==_0x55938f['metadata']['propertyData']))_0x1ad899[_0x3602fb(0x212)]['push']({'key':_0x55938f[_0x3602fb(0x1fb)][_0x3602fb(0x1c5)],'title':_0x55938f['metadata'][_0x3602fb(0x1c5)],'type':convertSchemaType(_0x2fcee5[_0x55938f['parameterIndex']][_0x3602fb(0x1e2)]),'required':![],'default':'','desc':''});else{if(_0x40afbe==_0x3602fb(0x1fa)){let _0x1ff5b6=((_0x54187e=_0x55938f===null||_0x55938f===void 0x0?void 0x0:_0x55938f[_0x3602fb(0x1fb)])===null||_0x54187e===void 0x0?void 0x0:_0x54187e[_0x3602fb(0x1c5)])||_0x3602fb(0x1fa);_0x1ff5b6['indexOf'](':')==-0x1&&!_0x1ad899[_0x3602fb(0x212)]['find'](_0x55301d=>_0x55301d[_0x3602fb(0x1ca)]==_0x1ff5b6&&_0x55301d['type']==_0x3602fb(0x1fa))&&_0x1ad899[_0x3602fb(0x212)]['push']({'key':_0x1ff5b6,'title':_0x3602fb(0x220)+_0x1ff5b6,'type':_0x3602fb(0x1fa),'required':!![],'default':'','desc':''});}}}else{const _0x4546cf=(0x0,core_3[_0x3602fb(0x1f5)])(validator_1[_0x3602fb(0x1b7)],_0x2fcee5[_0x544d12]);_0x4546cf&&_0x1ad899[_0x3602fb(0x212)]['push'](...getJoiRequest(_0x4546cf));}}}_0x5da75d[_0x3602fb(0x201)][_0x3602fb(0x1ea)](_0x1ad899);}}if(_0x5da75d['routes'][_0x3602fb(0x1c8)]>0x0){let _0x17c607=_0x5a00d2[_0x57e4ef];_0x17c607?(_0x17c607['summary']!=_0x5da75d[_0x3602fb(0x20a)]&&(_0x17c607['summary']=_0x17c607[_0x3602fb(0x20a)]+','+_0x5da75d[_0x3602fb(0x20a)]),_0x17c607[_0x3602fb(0x206)]!=_0x5da75d['description']&&(_0x17c607[_0x3602fb(0x206)]=_0x17c607['description']+','+_0x5da75d['description']),_0x17c607['routes']=_0x17c607['routes'][_0x3602fb(0x20e)](_0x5da75d['routes']),_0x5a00d2[_0x57e4ef]=_0x17c607):_0x5a00d2[_0x57e4ef]=_0x5da75d;}}}return _0x5a00d2;}function getJoiRequest(_0x42ebc1){const _0x4b327e=a9_0x7ed9d5;var _0xd59a5a,_0x33bceb;const _0x47bc09=[];for(let _0xb0c0e1 in _0x42ebc1){const _0x5a7e08={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4f2fe3=typeof _0x42ebc1[_0xb0c0e1]['describe']==_0x4b327e(0x204)?_0x42ebc1[_0xb0c0e1][_0x4b327e(0x210)]():_0x42ebc1[_0xb0c0e1];_0x5a7e08[_0x4b327e(0x1ca)]=_0xb0c0e1,_0x5a7e08[_0x4b327e(0x1dd)]=_0x4f2fe3[_0x4b327e(0x1dd)],_0x5a7e08[_0x4b327e(0x1c1)]=(0x0,lodash_1[_0x4b327e(0x20c)])(_0x4f2fe3,_0x4b327e(0x1ec),_0xb0c0e1),_0x5a7e08['default']=(0x0,lodash_1[_0x4b327e(0x20c)])(_0x4f2fe3,_0x4b327e(0x1dc),''),_0x5a7e08[_0x4b327e(0x215)]=(0x0,lodash_1['get'])(_0x4f2fe3,_0x4b327e(0x21b),'')==_0x4b327e(0x215),_0x5a7e08['description']=(0x0,lodash_1[_0x4b327e(0x20c)])(_0x4f2fe3,_0x4b327e(0x1f3),'');if(_0x4f2fe3[_0x4b327e(0x1dd)]==_0x4b327e(0x209))(_0x4f2fe3===null||_0x4f2fe3===void 0x0?void 0x0:_0x4f2fe3[_0x4b327e(0x1c0)])&&(_0x5a7e08[_0x4b327e(0x1d5)]=getJoiRequest(_0x4f2fe3[_0x4b327e(0x1c0)]));else _0x4f2fe3[_0x4b327e(0x1dd)]==_0x4b327e(0x1bc)&&_0x4f2fe3[_0x4b327e(0x20b)]&&Array['isArray'](_0x4f2fe3[_0x4b327e(0x20b)])&&(((_0x33bceb=(_0xd59a5a=_0x4f2fe3===null||_0x4f2fe3===void 0x0?void 0x0:_0x4f2fe3['items'])===null||_0xd59a5a===void 0x0?void 0x0:_0xd59a5a[0x0])===null||_0x33bceb===void 0x0?void 0x0:_0x33bceb[_0x4b327e(0x1c0)])&&(_0x5a7e08[_0x4b327e(0x1d5)]=getJoiRequest(_0x4f2fe3[_0x4b327e(0x20b)][0x0]['keys'])));_0x4f2fe3['allow']&&Array['isArray'](_0x4f2fe3[_0x4b327e(0x1d8)])&&_0x4f2fe3[_0x4b327e(0x1d8)]['length']>0x0&&(_0x5a7e08[_0x4b327e(0x206)]=_0x4b327e(0x211)+_0x4f2fe3[_0x4b327e(0x1d8)][_0x4b327e(0x200)](',')+'];'+_0x5a7e08[_0x4b327e(0x206)]);if(_0x5a7e08[_0x4b327e(0x1ca)]&&_0x5a7e08[_0x4b327e(0x1dd)]){const _0xffa598={};for(const _0x5eba88 of _0x4f2fe3[_0x4b327e(0x1da)]||[]){if(_0x5eba88[_0x4b327e(0x1e2)]==='min'&&_0x5eba88[_0x4b327e(0x1fd)])_0xffa598[_0x4b327e(0x1c3)]=_0x5eba88[_0x4b327e(0x1fd)][_0x4b327e(0x1e7)];else _0x5eba88[_0x4b327e(0x1e2)]===_0x4b327e(0x21a)&&(_0xffa598[_0x4b327e(0x21a)]=_0x5eba88[_0x4b327e(0x1fd)][_0x4b327e(0x1e7)]);}_0x5a7e08['rules']=_0xffa598;}_0x5a7e08[_0x4b327e(0x1ca)]&&_0x5a7e08[_0x4b327e(0x1c1)]&&_0x47bc09[_0x4b327e(0x1ea)](_0x5a7e08);}return _0x47bc09;}function convertSchemaType(_0x5c1da1){const _0x1ff7d8=a9_0x7ed9d5;switch(_0x5c1da1){case _0x1ff7d8(0x221):return'object';case _0x1ff7d8(0x1cb):return _0x1ff7d8(0x1b9);case _0x1ff7d8(0x1f6):return _0x1ff7d8(0x1d6);case _0x1ff7d8(0x1ce):return _0x1ff7d8(0x1c4);case _0x1ff7d8(0x21e):return _0x1ff7d8(0x1fa);default:return _0x1ff7d8(0x1c4);}}function convertTypeToString(_0x2b8496){const _0x46ba6f=a9_0x7ed9d5;switch(_0x2b8496){case core_1[_0x46ba6f(0x222)][_0x46ba6f(0x207)]:return _0x46ba6f(0x1f7);case core_1[_0x46ba6f(0x222)]['QUERY']:return'query';case core_1['RouteParamTypes'][_0x46ba6f(0x1c7)]:return _0x46ba6f(0x21d);case core_1[_0x46ba6f(0x222)][_0x46ba6f(0x1e3)]:return _0x46ba6f(0x1e8);case core_1[_0x46ba6f(0x222)][_0x46ba6f(0x202)]:case core_1[_0x46ba6f(0x222)][_0x46ba6f(0x1e9)]:case core_1[_0x46ba6f(0x222)][_0x46ba6f(0x1eb)]:return _0x46ba6f(0x1fa);default:return _0x46ba6f(0x1f7);}}function getMethodResponse(_0x31385c,_0x3add52){const _0x4db748=a9_0x7ed9d5,_0x48f8cf=(0x0,core_3[_0x4db748(0x213)])(action_1[_0x4db748(0x223)],_0x31385c);if(!_0x48f8cf)return null;const _0x592252=_0x48f8cf[_0x4db748(0x219)](_0x5932a9=>_0x5932a9['method']===_0x3add52);if(!_0x592252)return null;return{'format':_0x592252[_0x4db748(0x1e1)]||_0x4db748(0x1cd),'type':_0x592252[_0x4db748(0x1dd)],'description':_0x592252[_0x4db748(0x206)]||'','properties':_0x592252[_0x4db748(0x1ed)]||[],'errors':_0x592252['errors']||[]};}
|
|
@@ -2,17 +2,11 @@ import { getRouteOption } from "./getRoutes";
|
|
|
2
2
|
export interface SwaggerDefinition {
|
|
3
3
|
type: string;
|
|
4
4
|
properties?: {
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: SchemaObject;
|
|
6
6
|
};
|
|
7
7
|
required?: string[];
|
|
8
8
|
description?: string;
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export interface SwaggerResponse {
|
|
12
|
-
description: string;
|
|
13
|
-
schema?: any;
|
|
14
|
-
headers?: any;
|
|
15
|
-
examples?: any;
|
|
9
|
+
items?: SchemaObject;
|
|
16
10
|
}
|
|
17
11
|
export interface SwaggerJsonOption extends getRouteOption {
|
|
18
12
|
host?: string;
|
|
@@ -28,4 +22,19 @@ export interface SwaggerJsonOption extends getRouteOption {
|
|
|
28
22
|
[key: string]: SwaggerDefinition;
|
|
29
23
|
};
|
|
30
24
|
}
|
|
31
|
-
|
|
25
|
+
interface SchemaObject {
|
|
26
|
+
type?: string;
|
|
27
|
+
format?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
default?: string | number | boolean;
|
|
30
|
+
properties?: Record<string, SchemaObject>;
|
|
31
|
+
items?: SchemaObject;
|
|
32
|
+
required?: string[];
|
|
33
|
+
minimum?: number;
|
|
34
|
+
maximum?: number;
|
|
35
|
+
enum?: (string | number)[];
|
|
36
|
+
oneOf?: SchemaObject[];
|
|
37
|
+
$ref?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function getSwaggerJson(filter?: SwaggerJsonOption): Record<string, any>;
|
|
40
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x1b1312=a10_0x521d;function a10_0x521d(_0x5ae300,_0x58c07a){const _0x5e6d63=a10_0x5429();return a10_0x521d=function(_0x1ecdbf,_0x3c1b2b){_0x1ecdbf=_0x1ecdbf-0x192;let _0x5429e1=_0x5e6d63[_0x1ecdbf];return _0x5429e1;},a10_0x521d(_0x5ae300,_0x58c07a);}function a10_0x5429(){const _0x53da1d=['7244531qVVywI','1.0.0','2005314VyIvTx','description','分页参数','summary','schemes','返回数据列表','#/definitions/ApiError','__esModule','min','http','request','format','extraDefinitions','version','#/definitions/ApiResponse','default','本接口文档由API自动解析生成','状态码,0表示成功','rules','required','prefix','apply','附加数据,如分页信息','7326856OEWKar','assign','2957250tTzbQb','返回数据','length','2.0','getSwaggerJson','errors','children','integer','438506eIVXfn','array','message','includes','type','664784dEjBSj','object','title','has','basePath','请求成功,具体结果请查看code字段','push','body','string','请求成功','from','状态码,0表示成功,其他为错误码','route','错误码:\x20','application/json','items','tags','toString','key','set','paths','properties','20eRDnPk','(((.+)+)+)+$','code','./getRoutes','search','1rDrcGj','definitions','max','42855201PHiXOt','总数量','page','maximum'];a10_0x5429=function(){return _0x53da1d;};return a10_0x5429();}(function(_0x13e05b,_0xdb1ec3){const _0x4e3bb1=a10_0x521d,_0x187aab=_0x13e05b();while(!![]){try{const _0x4c92d7=parseInt(_0x4e3bb1(0x1cf))/0x1*(-parseInt(_0x4e3bb1(0x1af))/0x2)+-parseInt(_0x4e3bb1(0x1a7))/0x3+parseInt(_0x4e3bb1(0x1b4))/0x4*(-parseInt(_0x4e3bb1(0x1ca))/0x5)+-parseInt(_0x4e3bb1(0x1d8))/0x6+-parseInt(_0x4e3bb1(0x1d6))/0x7+-parseInt(_0x4e3bb1(0x1a5))/0x8+parseInt(_0x4e3bb1(0x1d2))/0x9;if(_0x4c92d7===_0xdb1ec3)break;else _0x187aab['push'](_0x187aab['shift']());}catch(_0x5d60dc){_0x187aab['push'](_0x187aab['shift']());}}}(a10_0x5429,0x942ad));const a10_0x3c1b2b=(function(){let _0x230c35=!![];return function(_0x349c5b,_0xe63749){const _0x479fba=_0x230c35?function(){const _0x4e306b=a10_0x521d;if(_0xe63749){const _0x4e8a16=_0xe63749[_0x4e306b(0x1a3)](_0x349c5b,arguments);return _0xe63749=null,_0x4e8a16;}}:function(){};return _0x230c35=![],_0x479fba;};}()),a10_0x1ecdbf=a10_0x3c1b2b(this,function(){const _0xec2af4=a10_0x521d;return a10_0x1ecdbf['toString']()[_0xec2af4(0x1ce)](_0xec2af4(0x1cb))[_0xec2af4(0x1c5)]()['constructor'](a10_0x1ecdbf)['search'](_0xec2af4(0x1cb));});a10_0x1ecdbf();'use strict';Object['defineProperty'](exports,a10_0x1b1312(0x195),{'value':!![]}),exports[a10_0x1b1312(0x1ab)]=getSwaggerJson;const getRoutes_1=require(a10_0x1b1312(0x1cd)),DEFAULT_DEFINITIONS={'ApiResponse':{'type':'object','properties':{'code':{'type':'integer','description':'状态码,0表示成功,其他为错误码'},'data':{'type':a10_0x1b1312(0x1b5),'description':a10_0x1b1312(0x1a8)},'extra':{'type':a10_0x1b1312(0x1b5),'description':a10_0x1b1312(0x1a4)}},'required':['code']},'ApiResponseList':{'type':a10_0x1b1312(0x1b5),'properties':{'code':{'type':a10_0x1b1312(0x1ae),'description':a10_0x1b1312(0x1bf)},'data':{'type':'array','items':{'type':'object'},'description':a10_0x1b1312(0x193)},'extra':{'type':a10_0x1b1312(0x1b5),'properties':{'pageinfo':{'type':a10_0x1b1312(0x1b5),'description':a10_0x1b1312(0x1da)},'pagetotal':{'type':a10_0x1b1312(0x1ae),'description':a10_0x1b1312(0x1d3)}},'description':'附加数据,如分页信息'}},'required':['code']},'ApiError':{'type':a10_0x1b1312(0x1b5),'properties':{'code':{'type':a10_0x1b1312(0x1ae),'description':'错误码'},'message':{'type':'string','description':'错误信息'}},'required':['code',a10_0x1b1312(0x1b1)]}},DEFAULT_RESPONSES={'200':{'description':a10_0x1b1312(0x1b9),'schema':{'oneOf':[{'$ref':a10_0x1b1312(0x19c)},{'$ref':'#/definitions/ApiResponseList'},{'$ref':a10_0x1b1312(0x194)}]}}};function getSwaggerJson(_0x1b7760={'prefix':'/','module':![]}){const _0xcc197c=a10_0x1b1312;var _0x41f96a;const _0x51c9d2=(0x0,getRoutes_1['getRoutes'])(_0x1b7760),_0x4d5ff1=new Map();let _0x284496;_0x1b7760['definitions']?_0x284496=_0x1b7760[_0xcc197c(0x1d0)]:(_0x284496={...DEFAULT_DEFINITIONS},_0x1b7760[_0xcc197c(0x19a)]&&Object[_0xcc197c(0x1a6)](_0x284496,_0x1b7760[_0xcc197c(0x19a)]));const _0x52f428={'swagger':_0xcc197c(0x1aa),'info':{'title':_0x1b7760[_0xcc197c(0x1b6)]||'接口文档','description':_0x1b7760[_0xcc197c(0x1d9)]||_0xcc197c(0x19e),'version':_0x1b7760[_0xcc197c(0x19b)]||_0xcc197c(0x1d7)},'host':_0x1b7760['host']||'localhost:7001','basePath':_0x1b7760[_0xcc197c(0x1b8)]||'/','schemes':_0x1b7760[_0xcc197c(0x192)]||[_0xcc197c(0x197)],'tags':[],'paths':{},'definitions':_0x284496};for(const _0x46fed7 in _0x51c9d2){const _0x42ca48=_0x51c9d2[_0x46fed7],_0x26ef7c=(_0x42ca48===null||_0x42ca48===void 0x0?void 0x0:_0x42ca48[_0xcc197c(0x1db)])||(_0x42ca48===null||_0x42ca48===void 0x0?void 0x0:_0x42ca48['prefix'])||'default',_0x193097=(_0x42ca48===null||_0x42ca48===void 0x0?void 0x0:_0x42ca48['description'])||_0x26ef7c;(_0x42ca48===null||_0x42ca48===void 0x0?void 0x0:_0x42ca48[_0xcc197c(0x1a2)])&&_0x42ca48['prefix']!='/'&&(!_0x4d5ff1[_0xcc197c(0x1b7)](_0x26ef7c)&&_0x4d5ff1[_0xcc197c(0x1c7)](_0x26ef7c,{'name':_0x26ef7c,'description':_0x193097}));for(const _0x626e42 of(_0x42ca48===null||_0x42ca48===void 0x0?void 0x0:_0x42ca48['routes'])||[]){if(_0x626e42[_0xcc197c(0x1c0)]){!_0x52f428[_0xcc197c(0x1c8)][_0x626e42[_0xcc197c(0x1c0)]]&&(_0x52f428['paths'][_0x626e42['route']]={});if(!_0x52f428[_0xcc197c(0x1c8)][_0x626e42[_0xcc197c(0x1c0)]][_0x626e42['method']]){const _0x2007af=buildRouteResponse(_0x626e42===null||_0x626e42===void 0x0?void 0x0:_0x626e42['response']),_0x50ef9d={'summary':_0x626e42[_0xcc197c(0x1db)],'deprecated':![],'description':(_0x626e42===null||_0x626e42===void 0x0?void 0x0:_0x626e42[_0xcc197c(0x1d9)])||'','tags':_0x26ef7c?[_0x26ef7c]:[],'consumes':[_0xcc197c(0x1c2)],'produces':[_0xcc197c(0x1c2)],'responses':_0x2007af,'parameters':[{'in':'body','name':_0xcc197c(0x1bb),'required':((_0x41f96a=_0x626e42===null||_0x626e42===void 0x0?void 0x0:_0x626e42['request'])===null||_0x41f96a===void 0x0?void 0x0:_0x41f96a[_0xcc197c(0x1a9)])>0x0,'schema':getSwaggerJsonParametersSchema((_0x626e42===null||_0x626e42===void 0x0?void 0x0:_0x626e42[_0xcc197c(0x198)])||[])}]};_0x52f428[_0xcc197c(0x1c8)][_0x626e42['route']][_0x626e42['method']]=_0x50ef9d;}}}}return _0x52f428[_0xcc197c(0x1c4)]=Array[_0xcc197c(0x1be)](_0x4d5ff1['values']()),_0x52f428;}function getSwaggerJsonParametersSchema(_0x1b0cca=[],_0x5cc3ac='object'){const _0x4ada35=a10_0x1b1312;var _0x44d269,_0x7a1d0a,_0x3582b7;const _0x3c16c0={'type':_0x5cc3ac};if(_0x5cc3ac==_0x4ada35(0x1b5)){_0x3c16c0[_0x4ada35(0x1c9)]={},_0x3c16c0['required']=[];for(const _0x2b10d6 of _0x1b0cca){_0x2b10d6[_0x4ada35(0x1a1)]&&!_0x3c16c0[_0x4ada35(0x1a1)][_0x4ada35(0x1b2)](_0x2b10d6[_0x4ada35(0x1c6)])&&_0x3c16c0['required'][_0x4ada35(0x1ba)](_0x2b10d6[_0x4ada35(0x1c6)]),((_0x44d269=_0x2b10d6===null||_0x2b10d6===void 0x0?void 0x0:_0x2b10d6['children'])===null||_0x44d269===void 0x0?void 0x0:_0x44d269[_0x4ada35(0x1a9)])>0x0?_0x3c16c0[_0x4ada35(0x1c9)][_0x2b10d6[_0x4ada35(0x1c6)]]=getSwaggerJsonParametersSchema(_0x2b10d6[_0x4ada35(0x1ad)],_0x2b10d6['type']):(_0x3c16c0[_0x4ada35(0x1c9)][_0x2b10d6[_0x4ada35(0x1c6)]]={'type':_0x2b10d6[_0x4ada35(0x1b3)],'title':_0x2b10d6[_0x4ada35(0x1b6)],'default':_0x2b10d6[_0x4ada35(0x19d)],'description':_0x2b10d6[_0x4ada35(0x1d9)]},((_0x7a1d0a=_0x2b10d6===null||_0x2b10d6===void 0x0?void 0x0:_0x2b10d6[_0x4ada35(0x1a0)])===null||_0x7a1d0a===void 0x0?void 0x0:_0x7a1d0a[_0x4ada35(0x1d1)])&&(_0x3c16c0['properties'][_0x2b10d6[_0x4ada35(0x1c6)]][_0x4ada35(0x1d5)]=_0x2b10d6[_0x4ada35(0x1a0)][_0x4ada35(0x1d1)]),((_0x3582b7=_0x2b10d6===null||_0x2b10d6===void 0x0?void 0x0:_0x2b10d6['rules'])===null||_0x3582b7===void 0x0?void 0x0:_0x3582b7[_0x4ada35(0x196)])&&(_0x3c16c0[_0x4ada35(0x1c9)][_0x2b10d6['key']]['minimum']=_0x2b10d6[_0x4ada35(0x1a0)][_0x4ada35(0x196)]));}}else _0x5cc3ac==_0x4ada35(0x1b0)&&(_0x3c16c0[_0x4ada35(0x1c3)]=getSwaggerJsonParametersSchema(_0x1b0cca,_0x4ada35(0x1b5)));return _0x3c16c0;}function buildRouteResponse(_0x17f35d){const _0x4755c4=a10_0x1b1312;var _0x4a7d8a;if(!_0x17f35d)return DEFAULT_RESPONSES;const _0x3d5874=_0x17f35d[_0x4755c4(0x199)]||'default',_0xd072f8=[];_0x3d5874==='custom'?_0xd072f8[_0x4755c4(0x1ba)](buildPropertiesSchema(_0x17f35d===null||_0x17f35d===void 0x0?void 0x0:_0x17f35d[_0x4755c4(0x1c9)])):_0xd072f8['push'](buildDefaultSchema(_0x17f35d));if(((_0x4a7d8a=_0x17f35d[_0x4755c4(0x1ac)])===null||_0x4a7d8a===void 0x0?void 0x0:_0x4a7d8a[_0x4755c4(0x1a9)])>0x0)for(const _0x3575cd of _0x17f35d['errors']){_0xd072f8['push']({'type':_0x4755c4(0x1b5),'properties':{'code':{'type':_0x4755c4(0x1ae),'description':_0x3d5874===_0x4755c4(0x19d)?_0x4755c4(0x1c1)+_0x3575cd[_0x4755c4(0x1cc)]:undefined,'enum':[_0x3575cd[_0x4755c4(0x1cc)]]},'message':{'type':_0x4755c4(0x1bc),'description':_0x3d5874==='default'?_0x3575cd['message']:undefined}},'example':{'code':_0x3575cd[_0x4755c4(0x1cc)],'message':_0x3575cd[_0x4755c4(0x1b1)]}});}return{'200':{'description':_0x17f35d[_0x4755c4(0x1d9)]||_0x4755c4(0x1bd),'schema':_0xd072f8['length']===0x1?_0xd072f8[0x0]:{'oneOf':_0xd072f8}}};}function buildDefaultSchema(_0x384191){const _0x4e5cf3=a10_0x1b1312,_0x26d6ab=buildPropertiesSchema(_0x384191===null||_0x384191===void 0x0?void 0x0:_0x384191[_0x4e5cf3(0x1c9)]),_0x3692a1={'code':{'type':'integer','description':_0x4e5cf3(0x19f),'enum':[0x0]}};if(_0x384191[_0x4e5cf3(0x1b3)]===_0x4e5cf3(0x1d4))return{'type':_0x4e5cf3(0x1b5),'properties':{..._0x3692a1,'data':{'type':'array','items':_0x26d6ab,'description':_0x4e5cf3(0x193)},'extra':{'type':_0x4e5cf3(0x1b5),'properties':{'pageinfo':{'type':_0x4e5cf3(0x1b5),'description':_0x4e5cf3(0x1da)},'pagetotal':{'type':_0x4e5cf3(0x1ae),'description':_0x4e5cf3(0x1d3)}}}},'required':[_0x4e5cf3(0x1cc)]};if(_0x384191[_0x4e5cf3(0x1b3)]===_0x4e5cf3(0x1b0))return{'type':'object','properties':{..._0x3692a1,'data':{'type':_0x4e5cf3(0x1b0),'items':_0x26d6ab,'description':_0x4e5cf3(0x193)}},'required':[_0x4e5cf3(0x1cc)]};return{'type':_0x4e5cf3(0x1b5),'properties':{..._0x3692a1,'data':_0x26d6ab},'required':[_0x4e5cf3(0x1cc)]};}function buildPropertiesSchema(_0x1d5606,_0x257b22=!![]){const _0x44d5a6=a10_0x1b1312;var _0x11bde1;if(!_0x1d5606||_0x1d5606[_0x44d5a6(0x1a9)]===0x0)return _0x257b22?{'type':_0x44d5a6(0x1b5)}:{};const _0x285f71={};for(const _0x170690 of _0x1d5606){((_0x11bde1=_0x170690[_0x44d5a6(0x1ad)])===null||_0x11bde1===void 0x0?void 0x0:_0x11bde1[_0x44d5a6(0x1a9)])>0x0?_0x285f71[_0x170690['key']]=_0x170690[_0x44d5a6(0x1b3)]==='array'?{'type':'array','items':{'type':'object','properties':buildPropertiesSchema(_0x170690[_0x44d5a6(0x1ad)],![])}}:{'type':_0x170690[_0x44d5a6(0x1b3)]||_0x44d5a6(0x1b5),'properties':buildPropertiesSchema(_0x170690[_0x44d5a6(0x1ad)],![]),'description':_0x170690[_0x44d5a6(0x1d9)]||_0x170690[_0x44d5a6(0x1c6)]}:_0x285f71[_0x170690[_0x44d5a6(0x1c6)]]={'type':_0x170690[_0x44d5a6(0x1b3)]||_0x44d5a6(0x1bc),'description':_0x170690['description']||_0x170690[_0x44d5a6(0x1c6)]};}return _0x257b22?{'type':_0x44d5a6(0x1b5),'properties':_0x285f71}:_0x285f71;}
|
|
1
|
+
const a10_0x942d82=a10_0x571e;(function(_0x38d109,_0x1e62e7){const _0x30c49e=a10_0x571e,_0x5b0342=_0x38d109();while(!![]){try{const _0x4ec79e=-parseInt(_0x30c49e(0x21c))/0x1+-parseInt(_0x30c49e(0x224))/0x2+parseInt(_0x30c49e(0x1e0))/0x3+-parseInt(_0x30c49e(0x206))/0x4+parseInt(_0x30c49e(0x200))/0x5*(-parseInt(_0x30c49e(0x1fa))/0x6)+parseInt(_0x30c49e(0x237))/0x7*(parseInt(_0x30c49e(0x1e7))/0x8)+parseInt(_0x30c49e(0x22c))/0x9*(parseInt(_0x30c49e(0x1dd))/0xa);if(_0x4ec79e===_0x1e62e7)break;else _0x5b0342['push'](_0x5b0342['shift']());}catch(_0x3a2d25){_0x5b0342['push'](_0x5b0342['shift']());}}}(a10_0x34ba,0x87716));const a10_0x509c38=(function(){let _0xa7004e=!![];return function(_0x2b1247,_0x1765ed){const _0x1c0a62=_0xa7004e?function(){const _0x804fa5=a10_0x571e;if(_0x1765ed){const _0x15bcc0=_0x1765ed[_0x804fa5(0x21b)](_0x2b1247,arguments);return _0x1765ed=null,_0x15bcc0;}}:function(){};return _0xa7004e=![],_0x1c0a62;};}()),a10_0x1f0923=a10_0x509c38(this,function(){const _0x18e777=a10_0x571e;return a10_0x1f0923['toString']()[_0x18e777(0x1e5)](_0x18e777(0x20f))[_0x18e777(0x228)]()[_0x18e777(0x1eb)](a10_0x1f0923)[_0x18e777(0x1e5)](_0x18e777(0x20f));});a10_0x1f0923();'use strict';Object[a10_0x942d82(0x1f1)](exports,a10_0x942d82(0x1dc),{'value':!![]}),exports[a10_0x942d82(0x231)]=getSwaggerJson;const getRoutes_1=require(a10_0x942d82(0x22d)),MEDIA_TYPE_JSON=a10_0x942d82(0x215),MEDIA_TYPE_FORM_DATA=a10_0x942d82(0x1d1),PARAM_IN_PATH=a10_0x942d82(0x22f),PARAM_IN_QUERY=a10_0x942d82(0x214),DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x942d82(0x1fc),'properties':{'code':{'type':a10_0x942d82(0x20e),'description':a10_0x942d82(0x1f2)},'data':{'type':a10_0x942d82(0x1fc),'description':a10_0x942d82(0x221)},'extra':{'type':'object','description':'附加数据,如分页信息'}},'required':['code']},'ApiResponseList':{'type':a10_0x942d82(0x1fc),'properties':{'code':{'type':'integer','description':a10_0x942d82(0x1f2)},'data':{'type':a10_0x942d82(0x21a),'items':{'type':a10_0x942d82(0x1fc)},'description':'返回数据列表'},'extra':{'type':a10_0x942d82(0x1fc),'properties':{'pageinfo':{'type':'object','description':a10_0x942d82(0x22b)},'pagetotal':{'type':a10_0x942d82(0x20e),'description':a10_0x942d82(0x205)}},'description':a10_0x942d82(0x217)}},'required':[a10_0x942d82(0x1e1)]},'ApiError':{'type':a10_0x942d82(0x1fc),'properties':{'code':{'type':a10_0x942d82(0x20e),'description':a10_0x942d82(0x23a)},'message':{'type':a10_0x942d82(0x207),'description':'错误信息'}},'required':[a10_0x942d82(0x1e1),a10_0x942d82(0x22e)]}},BASE_RESPONSE_PROPERTIES={'code':{'type':a10_0x942d82(0x20e),'description':a10_0x942d82(0x1f6)}};function getSwaggerJson(_0xac8a97={'prefix':'/','module':![]}){const _0x1dcfaa=a10_0x942d82,_0x12591b=(0x0,getRoutes_1[_0x1dcfaa(0x1db)])(_0xac8a97),_0x53e233=new Map(),_0x4276d7=new Map(),_0x332c1c=_0xac8a97[_0x1dcfaa(0x239)]?_0xac8a97[_0x1dcfaa(0x239)]:{...DEFAULT_DEFINITIONS,..._0xac8a97[_0x1dcfaa(0x1d4)]||{}},_0x29fd23=_0xac8a97[_0x1dcfaa(0x218)]||_0x1dcfaa(0x1f7),_0x8df096=_0xac8a97[_0x1dcfaa(0x1ea)]||'/',_0x1ce0b6=(_0xac8a97[_0x1dcfaa(0x234)]||['http'])[0x0],_0x2d131e={'openapi':_0x1dcfaa(0x1ed),'info':{'title':_0xac8a97[_0x1dcfaa(0x230)]||_0x1dcfaa(0x208),'description':_0xac8a97[_0x1dcfaa(0x222)]||_0x1dcfaa(0x212),'version':_0xac8a97[_0x1dcfaa(0x1e4)]||_0x1dcfaa(0x20d)},'servers':[{'url':_0x1ce0b6+'://'+_0x29fd23+_0x8df096,'description':'默认服务器'}],'tags':[],'paths':{},'components':{'schemas':_0x332c1c}};for(const _0x4ae4c7 in _0x12591b){const _0x365d58=_0x12591b[_0x4ae4c7],_0x167abd=(_0x365d58===null||_0x365d58===void 0x0?void 0x0:_0x365d58[_0x1dcfaa(0x222)])||(_0x365d58===null||_0x365d58===void 0x0?void 0x0:_0x365d58[_0x1dcfaa(0x1d7)])||_0x1dcfaa(0x1ef),_0x3333a1=buildTagHierarchy(_0x4ae4c7,_0x365d58);addTagsToMap(_0x53e233,_0x3333a1,_0x167abd);const _0xc144f4=_0x3333a1[_0x3333a1['length']-0x1]||'';for(const _0x25a238 of(_0x365d58===null||_0x365d58===void 0x0?void 0x0:_0x365d58[_0x1dcfaa(0x1f3)])||[]){if(!_0x25a238['route'])continue;!_0x2d131e[_0x1dcfaa(0x1f4)][_0x25a238[_0x1dcfaa(0x1d9)]]&&(_0x2d131e[_0x1dcfaa(0x1f4)][_0x25a238[_0x1dcfaa(0x1d9)]]={});if(!_0x2d131e[_0x1dcfaa(0x1f4)][_0x25a238[_0x1dcfaa(0x1d9)]][_0x25a238['method']]){const {parameters:_0x21ec98,requestBody:_0x1b943e,hasBody:_0xde15ef}=buildParameters(_0x25a238[_0x1dcfaa(0x1e2)]||[],_0x25a238[_0x1dcfaa(0x1d9)]);_0x2d131e[_0x1dcfaa(0x1f4)][_0x25a238[_0x1dcfaa(0x1d9)]][_0x25a238[_0x1dcfaa(0x201)]]={'summary':_0x25a238[_0x1dcfaa(0x1d7)],'description':(_0x25a238===null||_0x25a238===void 0x0?void 0x0:_0x25a238['description'])||'','tags':_0xc144f4?[_0xc144f4]:[],'operationId':buildOperationId(_0x25a238[_0x1dcfaa(0x1d9)],_0x25a238[_0x1dcfaa(0x201)],_0x4276d7),'parameters':_0x21ec98,..._0xde15ef&&{'requestBody':_0x1b943e},'responses':buildRouteResponse(_0x25a238===null||_0x25a238===void 0x0?void 0x0:_0x25a238['response'])};}}}return _0x2d131e[_0x1dcfaa(0x229)]=Array[_0x1dcfaa(0x21d)](_0x53e233[_0x1dcfaa(0x220)]())[_0x1dcfaa(0x232)](_0x2baa06=>{const _0x4edd39=_0x1dcfaa;var _0xae7cc1;return((_0xae7cc1=_0x2baa06[_0x4edd39(0x21f)])===null||_0xae7cc1===void 0x0?void 0x0:_0xae7cc1[_0x4edd39(0x233)]())&&_0x2baa06[_0x4edd39(0x21f)]!=='/';})['map'](_0x136c9e=>{const _0x34761e=_0x1dcfaa;var _0x24040e;return{'name':_0x136c9e[_0x34761e(0x21f)][_0x34761e(0x233)](),'description':((_0x24040e=_0x136c9e[_0x34761e(0x222)])===null||_0x24040e===void 0x0?void 0x0:_0x24040e[_0x34761e(0x233)]())||_0x136c9e[_0x34761e(0x21f)][_0x34761e(0x233)]()};})[_0x1dcfaa(0x1d6)]((_0x58d2f5,_0xfeff08)=>_0x58d2f5[_0x1dcfaa(0x21f)][_0x1dcfaa(0x1fe)](_0xfeff08['name'])),_0x2d131e;}function a10_0x571e(_0x53fc30,_0x38ecff){const _0x1f85cd=a10_0x34ba();return a10_0x571e=function(_0x1f0923,_0x509c38){_0x1f0923=_0x1f0923-0x1d0;let _0x34bad7=_0x1f85cd[_0x1f0923];return _0x34bad7;},a10_0x571e(_0x53fc30,_0x38ecff);}function buildTagHierarchy(_0x3fa826,_0x244942){const _0x2f35f9=a10_0x942d82,_0x2a452a=(_0x244942===null||_0x244942===void 0x0?void 0x0:_0x244942[_0x2f35f9(0x22a)])||null,_0x34c0f4=(_0x244942===null||_0x244942===void 0x0?void 0x0:_0x244942[_0x2f35f9(0x1fd)])||null,_0x4f2b27=(_0x3fa826===null||_0x3fa826===void 0x0?void 0x0:_0x3fa826[_0x2f35f9(0x233)]())||'';if(!_0x4f2b27||_0x4f2b27==='/')return[];if(!_0x2a452a&&!_0x34c0f4)return[_0x4f2b27];const _0x2cc887=[];_0x2a452a&&_0x2a452a!=='/'&&_0x2a452a!==''&&_0x2cc887[_0x2f35f9(0x225)](..._0x2a452a['replace'](/^\/|\/$/g,'')[_0x2f35f9(0x216)]('/')[_0x2f35f9(0x232)](Boolean));if(_0x34c0f4&&_0x34c0f4!==''){const _0x55ce19=_0x34c0f4[_0x2f35f9(0x233)]();!_0x2cc887[_0x2f35f9(0x1e8)](_0x55ce19)&&_0x2cc887['push'](_0x55ce19);}let _0x37aa9e=_0x4f2b27;const _0x45e25a=_0x2cc887['join']('/');_0x45e25a&&_0x37aa9e[_0x2f35f9(0x1e8)](_0x45e25a)&&(_0x37aa9e=_0x37aa9e['slice'](_0x37aa9e[_0x2f35f9(0x223)](_0x45e25a)+_0x45e25a[_0x2f35f9(0x1d5)]));_0x37aa9e=_0x37aa9e[_0x2f35f9(0x1e9)](/^\/|\/$/g,'')[_0x2f35f9(0x233)]();_0x37aa9e&&_0x2cc887[_0x2f35f9(0x225)](_0x37aa9e);const _0x38824a=[];let _0x1bbee2='';for(const _0x3f7002 of _0x2cc887){_0x1bbee2=_0x1bbee2?_0x1bbee2+'/'+_0x3f7002:_0x3f7002,_0x38824a[_0x2f35f9(0x225)](_0x1bbee2);}return _0x38824a[_0x2f35f9(0x1d5)]>0x0?_0x38824a:[_0x4f2b27];}function addTagsToMap(_0x4feb20,_0x42e6b1,_0x1e6376){_0x42e6b1['forEach']((_0x168c37,_0xeb24e5)=>{const _0x35ad93=a10_0x571e;if(!_0x168c37||_0x168c37==='/')return;!_0x4feb20[_0x35ad93(0x1d3)](_0x168c37)&&_0x4feb20[_0x35ad93(0x1de)](_0x168c37,{'name':_0x168c37,'description':_0xeb24e5===_0x42e6b1['length']-0x1?_0x1e6376:_0x168c37});});}function buildOperationId(_0x27e2cd,_0x4b5c3e,_0x1e3b91){const _0x551bda=a10_0x942d82,_0x4f7f6b=_0x27e2cd[_0x551bda(0x216)]('/')[_0x551bda(0x232)](Boolean)['map'](_0x2863b6=>_0x2863b6[_0x551bda(0x1f8)](':')?_0x2863b6[_0x551bda(0x1ff)](0x1):_0x2863b6)[_0x551bda(0x232)](_0x401929=>_0x401929[_0x551bda(0x1e9)](/[^a-zA-Z0-9]/g,'')),_0x53df35=_0x4f7f6b[_0x551bda(0x1d0)](_0x7603cd=>_0x7603cd[_0x551bda(0x211)](0x0)[_0x551bda(0x1ec)]()+_0x7603cd[_0x551bda(0x1ff)](0x1))[_0x551bda(0x227)](''),_0x47197b=_0x53df35||_0x551bda(0x238),_0x32b2bf=_0x1e3b91[_0x551bda(0x204)](_0x47197b)||0x0;return _0x1e3b91[_0x551bda(0x1de)](_0x47197b,_0x32b2bf+0x1),_0x32b2bf>0x0?''+_0x47197b+(_0x4b5c3e[_0x551bda(0x211)](0x0)['toUpperCase']()+_0x4b5c3e['slice'](0x1)):_0x47197b;}function buildParameters(_0x424c53,_0x679d0){const _0x36e71d=a10_0x942d82;var _0x4a6714;const _0x3ceedc=[],_0x13179d=[],_0x52cbf2=[],_0x4ac3d3=(_0x679d0[_0x36e71d(0x235)](/:([^\/]+)/g)||[])[_0x36e71d(0x1d0)](_0x1c4c1d=>_0x1c4c1d[_0x36e71d(0x1ff)](0x1));for(const _0x1b290b of _0x4ac3d3){_0x3ceedc[_0x36e71d(0x225)]({'name':_0x1b290b,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':'string'},'description':_0x36e71d(0x1d2)+_0x1b290b});}for(const _0x2b1ed0 of _0x424c53){switch(_0x2b1ed0['type']){case _0x36e71d(0x236):_0x52cbf2[_0x36e71d(0x225)](_0x2b1ed0);break;case _0x36e71d(0x214):_0x3ceedc[_0x36e71d(0x225)]({'name':_0x2b1ed0['key'],'in':PARAM_IN_QUERY,'required':_0x2b1ed0['required']||![],'schema':normalizeTypeSchema(_0x2b1ed0,![]),'description':_0x2b1ed0[_0x36e71d(0x222)]||_0x2b1ed0['title']||_0x2b1ed0[_0x36e71d(0x209)]});break;case _0x36e71d(0x202):case'path':break;default:((_0x4a6714=_0x2b1ed0[_0x36e71d(0x1e6)])===null||_0x4a6714===void 0x0?void 0x0:_0x4a6714[_0x36e71d(0x1d5)])>0x0?_0x13179d[_0x36e71d(0x225)](_0x2b1ed0):_0x3ceedc[_0x36e71d(0x225)]({'name':_0x2b1ed0[_0x36e71d(0x209)],'in':PARAM_IN_QUERY,'required':_0x2b1ed0[_0x36e71d(0x219)]||![],'schema':normalizeTypeSchema(_0x2b1ed0,![]),'description':_0x2b1ed0['description']||_0x2b1ed0[_0x36e71d(0x230)]||_0x2b1ed0[_0x36e71d(0x209)]});}}if(_0x52cbf2['length']>0x0)return{'parameters':_0x3ceedc,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x52cbf2,..._0x13179d])}},'required':!![]},'hasBody':!![]};if(_0x13179d['length']>0x0){const _0x2de2a4=_0x13179d[_0x36e71d(0x232)](_0x348735=>_0x348735[_0x36e71d(0x219)])[_0x36e71d(0x1d0)](_0x27361e=>_0x27361e[_0x36e71d(0x209)]),_0x36f701=buildProperties(_0x13179d,![]);return{'parameters':_0x3ceedc,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x36e71d(0x1fc),'properties':_0x36f701,..._0x2de2a4[_0x36e71d(0x1d5)]>0x0&&{'required':_0x2de2a4}}}},'required':_0x13179d['some'](_0x234390=>_0x234390['required'])},'hasBody':!![]};}return{'parameters':_0x3ceedc,'hasBody':![]};}function a10_0x34ba(){const _0x7168a1=['routes','paths','rules','状态码,0表示成功','localhost:7001','startsWith','format','214632lxooiA','#/components/schemas/ApiResponse','object','module','localeCompare','slice','20mRPjNW','method','body','min','get','总数量','2995380oGpGOk','string','接口文档','key','errors','请求成功','max','1.0.0','integer','(((.+)+)+)+$','binary','charAt','本接口文档由API自动解析生成','#/components/schemas/ApiResponseList','query','application/json','split','附加数据,如分页信息','host','required','array','apply','1074993AedPFU','from','错误码:\x20','name','values','返回数据','description','indexOf','1952414ILuHQt','push','custom','join','toString','tags','prefix','分页参数','452313jycPlF','./getRoutes','message','path','title','getSwaggerJson','filter','trim','schemes','match','file','28qMZDLq','root','definitions','错误码','map','multipart/form-data','路由参数:\x20','has','extraDefinitions','length','sort','summary','type','route','#/components/schemas/ApiError','getRoutes','__esModule','590COkhZL','set','minimum','705804vaGUjd','code','request','返回数据列表','version','search','children','594952zqHest','includes','replace','basePath','constructor','toUpperCase','3.0.0','date','default','properties','defineProperty','状态码,0表示成功,其他为错误码'];a10_0x34ba=function(){return _0x7168a1;};return a10_0x34ba();}function buildMultipartFormDataSchema(_0x5b685a){const _0x4452c0=a10_0x942d82,_0x3f4374={},_0x586767=[];for(const _0x433fb7 of _0x5b685a){const _0x8f319b=_0x433fb7[_0x4452c0(0x1d8)]===_0x4452c0(0x236);_0x3f4374[_0x433fb7[_0x4452c0(0x209)]]=_0x8f319b?{'type':_0x4452c0(0x207),'format':_0x4452c0(0x210)}:normalizeTypeSchema(_0x433fb7,![]);if(_0x433fb7[_0x4452c0(0x219)])_0x586767['push'](_0x433fb7[_0x4452c0(0x209)]);}const _0x95077e={'type':_0x4452c0(0x1fc),'properties':_0x3f4374};if(_0x586767[_0x4452c0(0x1d5)]>0x0)_0x95077e[_0x4452c0(0x219)]=_0x586767;return _0x95077e;}function buildRouteResponse(_0x20c1ba){const _0x555dfc=a10_0x942d82;var _0x3d7646;if(!_0x20c1ba)return{'description':_0x555dfc(0x20b),'content':{[MEDIA_TYPE_JSON]:{'schema':{'oneOf':[{'$ref':_0x555dfc(0x1fb)},{'$ref':_0x555dfc(0x213)},{'$ref':_0x555dfc(0x1da)}]}}}};const _0x1d4a81=_0x20c1ba[_0x555dfc(0x1f9)]||_0x555dfc(0x1ef),_0x5e5abe=[];return _0x1d4a81===_0x555dfc(0x226)?_0x5e5abe[_0x555dfc(0x225)]({'type':'object','properties':buildProperties(_0x20c1ba[_0x555dfc(0x1f0)]||[],!![])}):_0x5e5abe[_0x555dfc(0x225)](buildDefaultResponseSchema(_0x20c1ba)),((_0x3d7646=_0x20c1ba[_0x555dfc(0x20a)])===null||_0x3d7646===void 0x0?void 0x0:_0x3d7646[_0x555dfc(0x1d5)])>0x0&&_0x5e5abe[_0x555dfc(0x225)](..._0x20c1ba[_0x555dfc(0x20a)]['map'](_0x472675=>({'type':_0x555dfc(0x1fc),'properties':{'code':{'type':_0x555dfc(0x20e),'description':_0x555dfc(0x21e)+_0x472675[_0x555dfc(0x1e1)]},'message':{'type':'string','description':_0x472675[_0x555dfc(0x22e)]}},'example':{'code':_0x472675[_0x555dfc(0x1e1)],'message':_0x472675[_0x555dfc(0x22e)]}}))),{'description':_0x20c1ba['description']||'请求成功','content':{[MEDIA_TYPE_JSON]:{'schema':_0x5e5abe['length']===0x1?_0x5e5abe[0x0]:{'oneOf':_0x5e5abe}}}};}function buildDefaultResponseSchema(_0x379186){const _0x511abd=a10_0x942d82,_0x20b613=buildProperties(_0x379186['properties']||[],!![]);if(_0x379186[_0x511abd(0x1d8)]==='page')return{'type':_0x511abd(0x1fc),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':'array','items':_0x20b613,'description':'返回数据列表'},'extra':{'type':_0x511abd(0x1fc),'properties':{'pageinfo':{'type':_0x511abd(0x1fc),'description':_0x511abd(0x22b)},'pagetotal':{'type':_0x511abd(0x20e),'description':_0x511abd(0x205)}}}},'required':['code']};if(_0x379186['type']===_0x511abd(0x21a))return{'type':_0x511abd(0x1fc),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x511abd(0x21a),'items':_0x20b613,'description':_0x511abd(0x1e3)}},'required':[_0x511abd(0x1e1)]};return{'type':_0x511abd(0x1fc),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x20b613},'required':['code']};}function normalizeTypeSchema(_0x3993b8,_0x5d5020=![]){const _0x2591fb=a10_0x942d82;var _0x9d3763,_0x4e59ae,_0x3a43ee,_0x3c1077;const _0x36ab03=_0x3993b8[_0x2591fb(0x1d8)]||_0x2591fb(0x207),_0x21ee23=_0x5d5020?_0x3993b8[_0x2591fb(0x222)]||_0x3993b8[_0x2591fb(0x209)]:_0x3993b8[_0x2591fb(0x222)]||_0x3993b8[_0x2591fb(0x230)]||_0x3993b8[_0x2591fb(0x209)];if(_0x36ab03===_0x2591fb(0x1ee)){const _0x236987={'type':_0x2591fb(0x207),'format':_0x2591fb(0x1ee),'description':_0x21ee23};return _0x3993b8[_0x2591fb(0x1ef)]!==undefined&&_0x3993b8[_0x2591fb(0x1ef)]!==''&&(_0x236987[_0x2591fb(0x1ef)]=_0x3993b8[_0x2591fb(0x1ef)]),_0x236987;}if(_0x36ab03===_0x2591fb(0x21a)){const _0x56e29e=((_0x9d3763=_0x3993b8[_0x2591fb(0x1e6)])===null||_0x9d3763===void 0x0?void 0x0:_0x9d3763[_0x2591fb(0x1d5)])>0x0?buildProperties(_0x3993b8['children'],_0x5d5020):{'type':'string'};return{'type':_0x2591fb(0x21a),'items':_0x56e29e,'description':_0x21ee23};}if(_0x36ab03===_0x2591fb(0x1fc)){const _0x5ede25=((_0x4e59ae=_0x3993b8[_0x2591fb(0x1e6)])===null||_0x4e59ae===void 0x0?void 0x0:_0x4e59ae[_0x2591fb(0x1d5)])>0x0?buildProperties(_0x3993b8[_0x2591fb(0x1e6)],_0x5d5020):{};return{'type':_0x2591fb(0x1fc),'properties':_0x5ede25,'description':_0x21ee23};}const _0x29b0ac={'type':_0x36ab03,'description':_0x21ee23};return _0x3993b8['default']!==undefined&&_0x3993b8[_0x2591fb(0x1ef)]!==''&&(_0x29b0ac[_0x2591fb(0x1ef)]=_0x3993b8[_0x2591fb(0x1ef)]),((_0x3a43ee=_0x3993b8[_0x2591fb(0x1f5)])===null||_0x3a43ee===void 0x0?void 0x0:_0x3a43ee['min'])!==undefined&&(_0x29b0ac[_0x2591fb(0x1df)]=_0x3993b8[_0x2591fb(0x1f5)][_0x2591fb(0x203)]),((_0x3c1077=_0x3993b8[_0x2591fb(0x1f5)])===null||_0x3c1077===void 0x0?void 0x0:_0x3c1077[_0x2591fb(0x20c)])!==undefined&&(_0x29b0ac['maximum']=_0x3993b8[_0x2591fb(0x1f5)][_0x2591fb(0x20c)]),_0x29b0ac;}function buildProperties(_0x1d7e92,_0x33144b=![]){const _0xce0ab7=a10_0x942d82;if(!_0x1d7e92||_0x1d7e92[_0xce0ab7(0x1d5)]===0x0)return{};const _0x3b011b={};for(const _0x2a2822 of _0x1d7e92){_0x3b011b[_0x2a2822[_0xce0ab7(0x209)]]=normalizeTypeSchema(_0x2a2822,_0x33144b);}return _0x3b011b;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x4f480e=a11_0x4c65;(function(_0x27c997,_0x2fdee4){var _0x5e2573=a11_0x4c65,_0x1e8341=_0x27c997();while(!![]){try{var _0x2b3f95=parseInt(_0x5e2573(0x130))/0x1+-parseInt(_0x5e2573(0xf4))/0x2*(parseInt(_0x5e2573(0x106))/0x3)+parseInt(_0x5e2573(0x134))/0x4*(-parseInt(_0x5e2573(0xfd))/0x5)+-parseInt(_0x5e2573(0x10d))/0x6+parseInt(_0x5e2573(0xf9))/0x7+parseInt(_0x5e2573(0x123))/0x8+-parseInt(_0x5e2573(0xf7))/0x9;if(_0x2b3f95===_0x2fdee4)break;else _0x1e8341['push'](_0x1e8341['shift']());}catch(_0x68d7fc){_0x1e8341['push'](_0x1e8341['shift']());}}}(a11_0x52a9,0xaf2dd));var a11_0x3eaad1=(function(){var _0xf42100=!![];return function(_0x3943cd,_0x367a8e){var _0x2695f3=_0xf42100?function(){if(_0x367a8e){var _0x49d66c=_0x367a8e['apply'](_0x3943cd,arguments);return _0x367a8e=null,_0x49d66c;}}:function(){};return _0xf42100=![],_0x2695f3;};}()),a11_0x121dbc=a11_0x3eaad1(this,function(){var _0x2cec99=a11_0x4c65;return a11_0x121dbc[_0x2cec99(0x107)]()[_0x2cec99(0x101)](_0x2cec99(0x104))[_0x2cec99(0x107)]()[_0x2cec99(0xf3)](a11_0x121dbc)[_0x2cec99(0x101)]('(((.+)+)+)+$');});function a11_0x52a9(){var _0x46c3b7=['prototype','getAppsConfig','5032296jvODrV','./service/ApiService','get','./decorator/ActionApitest','getSwaggerJson','@anncic-api/event','ValidatorService','./service/ExcelService','Config','Action','Init','Inject','./types/common','./decorator/Action','./exception/ApiError','CacheService','Fields','Provide','__createBinding','Intercept','ScopeEnum','default','7995320KYqVKh','Headers','EventService','getOwnPropertyDescriptor','./service/ExcelStream','ApiService','App','Query','Scope','@midwayjs/core','ExcelService','defineProperty','Body','1299391HObIKu','File','@anncic-api/validator','ValidatorError','26396oxVGhk','Configuration','__exportStar','@anncic-api/cache','./service/ApitestService','hasOwnProperty','./configuration','constructor','442542IfRVaY','Logger','Files','230553ohvLGP','CustomConfiguration','4105969adjYmV','./helper/getAppsConfig','writable','Singleton','820gKpEEq','Apitest','ApiError','configurable','search','getRoutes','IIntercept','(((.+)+)+)+$','./helper/getRoutes','3fDPbbw','toString','call','./helper/getSwaggerJson','Param'];a11_0x52a9=function(){return _0x46c3b7;};return a11_0x52a9();}a11_0x121dbc();'use strict';var __createBinding=this&&this[a11_0x4f480e(0x11f)]||(Object['create']?function(_0x24301a,_0x4a327f,_0x5004dd,_0x14963a){var _0x4d3a1d=a11_0x4f480e;if(_0x14963a===undefined)_0x14963a=_0x5004dd;var _0x2caf0d=Object[_0x4d3a1d(0x126)](_0x4a327f,_0x5004dd);(!_0x2caf0d||(_0x4d3a1d(0x10f)in _0x2caf0d?!_0x4a327f['__esModule']:_0x2caf0d[_0x4d3a1d(0xfb)]||_0x2caf0d[_0x4d3a1d(0x100)]))&&(_0x2caf0d={'enumerable':!![],'get':function(){return _0x4a327f[_0x5004dd];}}),Object['defineProperty'](_0x24301a,_0x14963a,_0x2caf0d);}:function(_0x571f31,_0x15e51b,_0x347f21,_0x575301){if(_0x575301===undefined)_0x575301=_0x347f21;_0x571f31[_0x575301]=_0x15e51b[_0x347f21];}),__exportStar=this&&this[a11_0x4f480e(0xee)]||function(_0x1c46fa,_0x5a8375){var _0x3dd075=a11_0x4f480e;for(var _0xf1b62a in _0x1c46fa)if(_0xf1b62a!==_0x3dd075(0x122)&&!Object[_0x3dd075(0x10b)][_0x3dd075(0xf1)][_0x3dd075(0x108)](_0x5a8375,_0xf1b62a))__createBinding(_0x5a8375,_0x1c46fa,_0xf1b62a);};Object[a11_0x4f480e(0x12e)](exports,'__esModule',{'value':!![]}),exports[a11_0x4f480e(0x10c)]=exports['ScopeEnum']=exports[a11_0x4f480e(0xfc)]=exports[a11_0x4f480e(0x12b)]=exports[a11_0x4f480e(0x118)]=exports[a11_0x4f480e(0x11e)]=exports[a11_0x4f480e(0xf5)]=exports[a11_0x4f480e(0x115)]=exports[a11_0x4f480e(0x129)]=exports[a11_0x4f480e(0x117)]=exports[a11_0x4f480e(0x124)]=exports[a11_0x4f480e(0x12a)]=exports[a11_0x4f480e(0x10a)]=exports[a11_0x4f480e(0x12f)]=exports[a11_0x4f480e(0x11d)]=exports[a11_0x4f480e(0xf6)]=exports[a11_0x4f480e(0x131)]=exports[a11_0x4f480e(0x135)]=exports[a11_0x4f480e(0x113)]=exports[a11_0x4f480e(0x133)]=exports['ExcelService']=exports['ExcelStream']=exports[a11_0x4f480e(0x128)]=exports[a11_0x4f480e(0x125)]=exports[a11_0x4f480e(0x11c)]=exports[a11_0x4f480e(0xff)]=exports[a11_0x4f480e(0x111)]=exports[a11_0x4f480e(0x102)]=exports[a11_0x4f480e(0x103)]=exports[a11_0x4f480e(0x120)]=exports[a11_0x4f480e(0xfe)]=exports[a11_0x4f480e(0x116)]=void 0x0;const getAppsConfig_1=require(a11_0x4f480e(0xfa));Object['defineProperty'](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x536c26=a11_0x4f480e;return getAppsConfig_1[_0x536c26(0x10c)];}}),__exportStar(require(a11_0x4f480e(0x119)),exports),__exportStar(require(a11_0x4f480e(0xf0)),exports);function a11_0x4c65(_0x415b41,_0x5486db){var _0x5f19c5=a11_0x52a9();return a11_0x4c65=function(_0x121dbc,_0x3eaad1){_0x121dbc=_0x121dbc-0xee;var _0x52a9c0=_0x5f19c5[_0x121dbc];return _0x52a9c0;},a11_0x4c65(_0x415b41,_0x5486db);}var Action_1=require(a11_0x4f480e(0x11a));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x116),{'enumerable':!![],'get':function(){var _0x5b0029=a11_0x4f480e;return Action_1[_0x5b0029(0x116)];}});var ActionApitest_1=require(a11_0x4f480e(0x110));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0xfe),{'enumerable':!![],'get':function(){var _0x3eb9ab=a11_0x4f480e;return ActionApitest_1[_0x3eb9ab(0xfe)];}});var Intercept_1=require('./decorator/Intercept');Object[a11_0x4f480e(0x12e)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x1ed433=a11_0x4f480e;return Intercept_1[_0x1ed433(0x120)];}}),Object[a11_0x4f480e(0x12e)](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x670422=a11_0x4f480e;return Intercept_1[_0x670422(0x103)];}});var getRoutes_1=require(a11_0x4f480e(0x105));Object['defineProperty'](exports,a11_0x4f480e(0x102),{'enumerable':!![],'get':function(){var _0x3a7cf8=a11_0x4f480e;return getRoutes_1[_0x3a7cf8(0x102)];}});var getSwaggerJson_1=require(a11_0x4f480e(0x109));Object['defineProperty'](exports,a11_0x4f480e(0x111),{'enumerable':!![],'get':function(){var _0x21e222=a11_0x4f480e;return getSwaggerJson_1[_0x21e222(0x111)];}});var ApiError_1=require(a11_0x4f480e(0x11b));Object[a11_0x4f480e(0x12e)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x42bece=a11_0x4f480e;return ApiError_1[_0x42bece(0xff)];}});var cache_1=require(a11_0x4f480e(0xef));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x11c),{'enumerable':!![],'get':function(){var _0x16dd8a=a11_0x4f480e;return cache_1[_0x16dd8a(0x11c)];}});var event_1=require(a11_0x4f480e(0x112));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x125),{'enumerable':!![],'get':function(){var _0x11acbd=a11_0x4f480e;return event_1[_0x11acbd(0x125)];}});var ApiService_1=require(a11_0x4f480e(0x10e));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x128),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelStream_1=require(a11_0x4f480e(0x127));Object[a11_0x4f480e(0x12e)](exports,'ExcelStream',{'enumerable':!![],'get':function(){return ExcelStream_1['ExcelStream'];}});var ExcelService_1=require(a11_0x4f480e(0x114));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x12d),{'enumerable':!![],'get':function(){var _0x1f50d3=a11_0x4f480e;return ExcelService_1[_0x1f50d3(0x12d)];}});var validator_1=require(a11_0x4f480e(0x132));Object[a11_0x4f480e(0x12e)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0xd54a2a=a11_0x4f480e;return validator_1[_0xd54a2a(0x133)];}}),Object[a11_0x4f480e(0x12e)](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a11_0x4f480e(0xf2));Object['defineProperty'](exports,a11_0x4f480e(0x135),{'enumerable':!![],'get':function(){var _0x14d2ed=a11_0x4f480e;return configuration_1[_0x14d2ed(0xf8)];}});var core_1=require(a11_0x4f480e(0x12c));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x131),{'enumerable':!![],'get':function(){var _0x7c664b=a11_0x4f480e;return core_1[_0x7c664b(0x131)];}}),Object['defineProperty'](exports,a11_0x4f480e(0xf6),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a11_0x4f480e(0x12e)](exports,'Body',{'enumerable':!![],'get':function(){var _0x468797=a11_0x4f480e;return core_1[_0x468797(0x12f)];}}),Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x10a),{'enumerable':!![],'get':function(){var _0x54139b=a11_0x4f480e;return core_1[_0x54139b(0x10a)];}}),Object[a11_0x4f480e(0x12e)](exports,'Query',{'enumerable':!![],'get':function(){var _0x425467=a11_0x4f480e;return core_1[_0x425467(0x12a)];}}),Object[a11_0x4f480e(0x12e)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x3fe3e6=a11_0x4f480e;return core_1[_0x3fe3e6(0x124)];}}),Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x117),{'enumerable':!![],'get':function(){var _0x106f2b=a11_0x4f480e;return core_1[_0x106f2b(0x117)];}});var core_2=require(a11_0x4f480e(0x12c));Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x129),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,a11_0x4f480e(0x115),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object['defineProperty'](exports,a11_0x4f480e(0xf5),{'enumerable':!![],'get':function(){var _0x27616b=a11_0x4f480e;return core_2[_0x27616b(0xf5)];}}),Object[a11_0x4f480e(0x12e)](exports,a11_0x4f480e(0x11e),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){var _0x145057=a11_0x4f480e;return core_2[_0x145057(0x118)];}}),Object['defineProperty'](exports,a11_0x4f480e(0x12b),{'enumerable':!![],'get':function(){var _0x22b307=a11_0x4f480e;return core_2[_0x22b307(0x12b)];}}),Object[a11_0x4f480e(0x12e)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x12011f=a11_0x4f480e;return core_2[_0x12011f(0xfc)];}}),Object['defineProperty'](exports,a11_0x4f480e(0x121),{'enumerable':!![],'get':function(){var _0x399978=a11_0x4f480e;return core_2[_0x399978(0x121)];}}),global['getAppsConfig']=getAppsConfig_1[a11_0x4f480e(0x10c)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a12_0x58b88b=a12_0x5536;(function(_0x1e96c1,_0x314f2e){var _0x45be49=a12_0x5536,_0x2a0091=_0x1e96c1();while(!![]){try{var _0x30999f=-parseInt(_0x45be49(0xb3))/0x1*(parseInt(_0x45be49(0xa5))/0x2)+-parseInt(_0x45be49(0xb6))/0x3*(parseInt(_0x45be49(0xdc))/0x4)+-parseInt(_0x45be49(0xc8))/0x5*(parseInt(_0x45be49(0xca))/0x6)+-parseInt(_0x45be49(0xdd))/0x7*(-parseInt(_0x45be49(0xcf))/0x8)+-parseInt(_0x45be49(0xa8))/0x9*(-parseInt(_0x45be49(0xcd))/0xa)+parseInt(_0x45be49(0xd1))/0xb+parseInt(_0x45be49(0xc2))/0xc;if(_0x30999f===_0x314f2e)break;else _0x2a0091['push'](_0x2a0091['shift']());}catch(_0x3fb824){_0x2a0091['push'](_0x2a0091['shift']());}}}(a12_0x117a,0x8dad4));function a12_0x5536(_0x960db6,_0x3e305f){var _0x487a33=a12_0x117a();return a12_0x5536=function(_0xccf2f2,_0x182775){_0xccf2f2=_0xccf2f2-0xa1;var _0x117ae2=_0x487a33[_0xccf2f2];return _0x117ae2;},a12_0x5536(_0x960db6,_0x3e305f);}var a12_0x182775=(function(){var _0x53e068=!![];return function(_0x4312e5,_0x3dbd99){var _0x51ed8a=_0x53e068?function(){var _0x4ed467=a12_0x5536;if(_0x3dbd99){var _0x395566=_0x3dbd99[_0x4ed467(0xd2)](_0x4312e5,arguments);return _0x3dbd99=null,_0x395566;}}:function(){};return _0x53e068=![],_0x51ed8a;};}()),a12_0xccf2f2=a12_0x182775(this,function(){var _0x2a251e=a12_0x5536;return a12_0xccf2f2['toString']()[_0x2a251e(0xce)]('(((.+)+)+)+$')['toString']()[_0x2a251e(0xde)](a12_0xccf2f2)['search'](_0x2a251e(0xa2));});a12_0xccf2f2();function a12_0x117a(){var _0x482c58=['metadata','requesttime','7653KQdwPS','验证失败','checksign','now','__esModule','getsign','padEnd','MD5','HEADERS_LACK','devices','ApiError','toLowerCase','5720412efQWQX','HEADERS_SIGNATURE','defineProperty','object','function','ApiService','3341260uSyHGI','Config','6TuehPj','secret','getOwnPropertyDescriptor','4902910SOwrRu','search','784zokuYY','logintime','11982751auIgzL','apply','__decorate','token','fromEntries','abs','map','join','entries','push','password','1616lEfeCl','16177AEAFoE','constructor','logintimeout','crypto-js','(((.+)+)+)+$','HEADERS_DEVICE','timeout','1042jVbuZt','checkcode','TIMEOUT_LOGINTIME','9SnGsOF','请求超时,请重试或改善网络环境','decorate','config','HEADERS_CHECKCODE','device','toString','signature','substring','@midwayjs/core','length','7QFhTOa'];a12_0x117a=function(){return _0x482c58;};return a12_0x117a();}'use strict';var __decorate=this&&this[a12_0x58b88b(0xd3)]||function(_0x207392,_0x57c60b,_0xc2a64b,_0x2be110){var _0x15274c=a12_0x58b88b,_0x1e0edf=arguments[_0x15274c(0xb2)],_0x4908cc=_0x1e0edf<0x3?_0x57c60b:_0x2be110===null?_0x2be110=Object[_0x15274c(0xcc)](_0x57c60b,_0xc2a64b):_0x2be110,_0x399943;if(typeof Reflect===_0x15274c(0xc5)&&typeof Reflect[_0x15274c(0xaa)]===_0x15274c(0xc6))_0x4908cc=Reflect[_0x15274c(0xaa)](_0x207392,_0x57c60b,_0xc2a64b,_0x2be110);else{for(var _0x278fd6=_0x207392['length']-0x1;_0x278fd6>=0x0;_0x278fd6--)if(_0x399943=_0x207392[_0x278fd6])_0x4908cc=(_0x1e0edf<0x3?_0x399943(_0x4908cc):_0x1e0edf>0x3?_0x399943(_0x57c60b,_0xc2a64b,_0x4908cc):_0x399943(_0x57c60b,_0xc2a64b))||_0x4908cc;}return _0x1e0edf>0x3&&_0x4908cc&&Object[_0x15274c(0xc4)](_0x57c60b,_0xc2a64b,_0x4908cc),_0x4908cc;},__metadata=this&&this['__metadata']||function(_0x5ae89e,_0x131ffe){var _0x45e785=a12_0x58b88b;if(typeof Reflect===_0x45e785(0xc5)&&typeof Reflect[_0x45e785(0xb4)]===_0x45e785(0xc6))return Reflect[_0x45e785(0xb4)](_0x5ae89e,_0x131ffe);};Object[a12_0x58b88b(0xc4)](exports,a12_0x58b88b(0xba),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a12_0x58b88b(0xa1)),core_1=require(a12_0x58b88b(0xb1)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a12_0x58b88b(0xdb)](_0x42b0f2){var _0x47c533=a12_0x58b88b,_0xdb4ba7;return _0x42b0f2?(0x0,crypto_js_1[_0x47c533(0xbd)])(''+_0x42b0f2+(0x0,crypto_js_1[_0x47c533(0xbd)])((0x0,crypto_js_1[_0x47c533(0xbd)])(''+_0x42b0f2)[_0x47c533(0xae)]()+(''+((_0xdb4ba7=this[_0x47c533(0xab)])===null||_0xdb4ba7===void 0x0?void 0x0:_0xdb4ba7['password'])))['toString']())['toString']():'';}['getcheck'](_0xe0e0e5,_0x2a08d8,_0x1847a2=Date[a12_0x58b88b(0xb9)]()){return{'Token':_0xe0e0e5,'Logintime':_0x1847a2,'Checkcode':this['checkcode'](_0xe0e0e5,_0x2a08d8,_0x1847a2)};}[a12_0x58b88b(0xbb)](_0x5c784e={}){var _0x2de3d1=a12_0x58b88b,_0x55b50d,_0x4e573b;const _0x386c6b=[],_0x154544=Object[_0x2de3d1(0xd5)](Object['entries'](_0x5c784e)[_0x2de3d1(0xd7)](_0x48c71e=>[_0x48c71e[0x0][_0x2de3d1(0xc1)](),_0x48c71e[0x1]]));for(let _0x568bd9 of['device','requesttime',_0x2de3d1(0xd4),_0x2de3d1(0xd0),_0x2de3d1(0xa6)]){if(typeof _0x154544[_0x568bd9]=='undefined')throw new AnnError(ApiError_1[_0x2de3d1(0xc0)]['HEADERS_LACK'],{'message':'验证失败'});_0x386c6b[_0x2de3d1(0xda)](_0x568bd9+'='+_0x154544[_0x568bd9]);}_0x154544[_0x2de3d1(0xb5)]&&((_0x55b50d=_0x154544['requesttime'])===null||_0x55b50d===void 0x0?void 0x0:_0x55b50d['length'])==0xa&&(_0x154544[_0x2de3d1(0xb5)]=_0x154544[_0x2de3d1(0xb5)]*0x3e8);if(this['config'][_0x2de3d1(0xa4)]&&parseInt((''+Date[_0x2de3d1(0xb9)]())[_0x2de3d1(0xb0)](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x2de3d1(0xd6)](_0x154544['requesttime']))[_0x2de3d1(0xb0)](0x0,0xd)[_0x2de3d1(0xbc)](0xd,'0'))>parseInt(this[_0x2de3d1(0xab)][_0x2de3d1(0xa4)]))throw new AnnError(ApiError_1['ApiError']['TIMEOUT'],{'message':_0x2de3d1(0xa9),'requesttime':_0x154544['requesttime'],'timestamp':Date[_0x2de3d1(0xb9)]()});if((((_0x4e573b=this[_0x2de3d1(0xab)][_0x2de3d1(0xbf)][_0x154544['device']])===null||_0x4e573b===void 0x0?void 0x0:_0x4e573b['logintimeout'])||0x0)>0x0&&Date[_0x2de3d1(0xb9)]()-Math['abs'](_0x154544[_0x2de3d1(0xd0)])>this[_0x2de3d1(0xab)][_0x2de3d1(0xbf)][_0x154544[_0x2de3d1(0xad)]][_0x2de3d1(0xdf)])throw new AnnError(ApiError_1[_0x2de3d1(0xc0)][_0x2de3d1(0xa7)]);if(!this[_0x2de3d1(0xab)][_0x2de3d1(0xbf)][_0x154544['device']]||!this[_0x2de3d1(0xab)]['devices'][_0x154544[_0x2de3d1(0xad)]][_0x2de3d1(0xcb)]||!this[_0x2de3d1(0xab)][_0x2de3d1(0xbf)][_0x154544[_0x2de3d1(0xad)]][_0x2de3d1(0xa6)])throw new AnnError(ApiError_1[_0x2de3d1(0xc0)][_0x2de3d1(0xa3)]);if(_0x154544[_0x2de3d1(0xd4)]&&_0x154544[_0x2de3d1(0xa6)]!=this[_0x2de3d1(0xa6)](_0x154544[_0x2de3d1(0xd4)],_0x154544[_0x2de3d1(0xad)],_0x154544['logintime']))throw new AnnError(ApiError_1[_0x2de3d1(0xc0)][_0x2de3d1(0xac)]);return _0x386c6b['push']('secret='+this[_0x2de3d1(0xab)][_0x2de3d1(0xbf)][_0x154544['device']][_0x2de3d1(0xcb)]),(0x0,crypto_js_1['MD5'])(_0x386c6b['sort']()[_0x2de3d1(0xd8)](''))[_0x2de3d1(0xae)]();}['checkcode'](_0x6f95e4,_0x470041,_0x3905a8=Date[a12_0x58b88b(0xb9)]()){var _0x25c705=a12_0x58b88b,_0x22ce0a,_0x16aef5,_0x170b1f;if(!((_0x22ce0a=this[_0x25c705(0xab)])===null||_0x22ce0a===void 0x0?void 0x0:_0x22ce0a[_0x25c705(0xbf)][_0x470041])||!((_0x170b1f=(_0x16aef5=this['config'])===null||_0x16aef5===void 0x0?void 0x0:_0x16aef5[_0x25c705(0xbf)][_0x470041])===null||_0x170b1f===void 0x0?void 0x0:_0x170b1f['checkcode']))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1['MD5'])(''+_0x6f95e4+(0x0,crypto_js_1[_0x25c705(0xbd)])(''+_0x3905a8+(''+this['config'][_0x25c705(0xbf)][_0x470041]['checkcode']))['toString']())[_0x25c705(0xae)]();}[a12_0x58b88b(0xb8)](_0x3c53bd={}){var _0x43801f=a12_0x58b88b;const _0x302aa2=Object[_0x43801f(0xd5)](Object[_0x43801f(0xd9)](_0x3c53bd)[_0x43801f(0xd7)](_0x517eff=>[_0x517eff[0x0]['toLowerCase'](),_0x517eff[0x1]]));if(!(_0x302aa2===null||_0x302aa2===void 0x0?void 0x0:_0x302aa2[_0x43801f(0xaf)]))throw new AnnError(ApiError_1[_0x43801f(0xc0)][_0x43801f(0xbe)],{'message':'验证失败'});if((_0x302aa2===null||_0x302aa2===void 0x0?void 0x0:_0x302aa2[_0x43801f(0xaf)])!=this[_0x43801f(0xbb)](_0x302aa2))throw new AnnError(ApiError_1['ApiError'][_0x43801f(0xc3)],{'message':_0x43801f(0xb7)});return!![];}};exports[a12_0x58b88b(0xc7)]=ApiService,__decorate([(0x0,core_1[a12_0x58b88b(0xc9)])('anncicapi'),__metadata('design:type',Object)],ApiService['prototype'],a12_0x58b88b(0xab),void 0x0),exports[a12_0x58b88b(0xc7)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1['ScopeEnum']['Singleton'])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x58c106=a13_0x7699;(function(_0x379465,_0x20faa7){const _0x119c17=a13_0x7699,_0x207d98=_0x379465();while(!![]){try{const _0x2bba8d=parseInt(_0x119c17(0x1e9))/0x1+parseInt(_0x119c17(0x1c7))/0x2*(parseInt(_0x119c17(0x1d3))/0x3)+-parseInt(_0x119c17(0x1c9))/0x4+parseInt(_0x119c17(0x1af))/0x5+parseInt(_0x119c17(0x1c3))/0x6+parseInt(_0x119c17(0x1d7))/0x7+-parseInt(_0x119c17(0x1ce))/0x8;if(_0x2bba8d===_0x20faa7)break;else _0x207d98['push'](_0x207d98['shift']());}catch(_0x5fc384){_0x207d98['push'](_0x207d98['shift']());}}}(a13_0xa9b9,0x43c49));const a13_0x3d6817=(function(){let _0x205357=!![];return function(_0x5b8379,_0x43ae7e){const _0x2a4b84=_0x205357?function(){if(_0x43ae7e){const _0x48d310=_0x43ae7e['apply'](_0x5b8379,arguments);return _0x43ae7e=null,_0x48d310;}}:function(){};return _0x205357=![],_0x2a4b84;};}()),a13_0x42cde8=a13_0x3d6817(this,function(){const _0x54e670=a13_0x7699;return a13_0x42cde8[_0x54e670(0x1db)]()[_0x54e670(0x1ee)](_0x54e670(0x1f3))['toString']()['constructor'](a13_0x42cde8)[_0x54e670(0x1ee)]('(((.+)+)+)+$');});a13_0x42cde8();function a13_0x7699(_0x3a0499,_0x1cfd18){const _0x24d89d=a13_0xa9b9();return a13_0x7699=function(_0x42cde8,_0x3d6817){_0x42cde8=_0x42cde8-0x1ad;let _0xa9b986=_0x24d89d[_0x42cde8];return _0xa9b986;},a13_0x7699(_0x3a0499,_0x1cfd18);}'use strict';var __decorate=this&&this['__decorate']||function(_0xf953ea,_0x1b4543,_0x1b7601,_0x564727){const _0x562ea7=a13_0x7699;var _0xe9080e=arguments[_0x562ea7(0x1b4)],_0x24ce09=_0xe9080e<0x3?_0x1b4543:_0x564727===null?_0x564727=Object[_0x562ea7(0x1e1)](_0x1b4543,_0x1b7601):_0x564727,_0x250a04;if(typeof Reflect===_0x562ea7(0x1bb)&&typeof Reflect['decorate']==='function')_0x24ce09=Reflect[_0x562ea7(0x1f7)](_0xf953ea,_0x1b4543,_0x1b7601,_0x564727);else{for(var _0x571fa1=_0xf953ea[_0x562ea7(0x1b4)]-0x1;_0x571fa1>=0x0;_0x571fa1--)if(_0x250a04=_0xf953ea[_0x571fa1])_0x24ce09=(_0xe9080e<0x3?_0x250a04(_0x24ce09):_0xe9080e>0x3?_0x250a04(_0x1b4543,_0x1b7601,_0x24ce09):_0x250a04(_0x1b4543,_0x1b7601))||_0x24ce09;}return _0xe9080e>0x3&&_0x24ce09&&Object[_0x562ea7(0x1b0)](_0x1b4543,_0x1b7601,_0x24ce09),_0x24ce09;},__metadata=this&&this['__metadata']||function(_0x462f4b,_0x41fdde){const _0x17bca8=a13_0x7699;if(typeof Reflect===_0x17bca8(0x1bb)&&typeof Reflect[_0x17bca8(0x1dd)]===_0x17bca8(0x1c4))return Reflect['metadata'](_0x462f4b,_0x41fdde);},__param=this&&this[a13_0x58c106(0x1bd)]||function(_0x42dc87,_0x270136){return function(_0x395062,_0x56e48){_0x270136(_0x395062,_0x56e48,_0x42dc87);};};Object[a13_0x58c106(0x1b0)](exports,a13_0x58c106(0x1eb),{'value':!![]}),exports[a13_0x58c106(0x1e3)]=exports[a13_0x58c106(0x1cf)]=void 0x0;const path_1=require(a13_0x58c106(0x1f9)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a13_0x58c106(0x1b9)),core_3=require(a13_0x58c106(0x1b9)),getRoutes_1=require(a13_0x58c106(0x1f6));let ApitestService=class ApitestService{async[a13_0x58c106(0x1bc)](_0x52221a){const _0x4fb08d=a13_0x58c106,_0x2c1b07=(0x0,getRoutes_1[_0x4fb08d(0x1da)])(_0x52221a),_0x35de2f=[];for(let _0x453a1a in _0x2c1b07){for(let _0x18400c in _0x2c1b07[_0x453a1a][_0x4fb08d(0x1b6)]){let _0x179b61=_0x2c1b07[_0x453a1a][_0x4fb08d(0x1b6)][_0x18400c],_0x15b67e=[];for(let _0xfb1fb1 in _0x179b61[_0x4fb08d(0x1b2)]){_0x15b67e['push'](_0x179b61['request'][_0xfb1fb1]);}_0x35de2f[_0x4fb08d(0x1d0)]({'title':_0x2c1b07[_0x453a1a][_0x4fb08d(0x1d4)]+':'+_0x179b61['summary'],'prefix':_0x2c1b07[_0x453a1a][_0x4fb08d(0x1f4)],'router':_0x179b61[_0x4fb08d(0x1d9)],'method':_0x179b61['method'],'describe':_0x179b61[_0x4fb08d(0x1ea)]||'','filepath':_0x2c1b07[_0x453a1a][_0x4fb08d(0x1ef)]||'','request':_0x15b67e});}}const _0x792d79=(0x0,path_1['join'])(__dirname,_0x4fb08d(0x1f0));return(0x0,fs_1[_0x4fb08d(0x1b7)])(_0x792d79,{'encoding':'utf-8'})['replace'](/__res__/g,_0x4fb08d(0x1c1))[_0x4fb08d(0x1cb)](_0x4fb08d(0x1c5),JSON[_0x4fb08d(0x1ed)](_0x35de2f))[_0x4fb08d(0x1cb)]('__devices__',JSON[_0x4fb08d(0x1ed)](this['config'][_0x4fb08d(0x1c2)]));}};exports[a13_0x58c106(0x1cf)]=ApitestService,__decorate([(0x0,core_3[a13_0x58c106(0x1e8)])(a13_0x58c106(0x1d1)),__metadata(a13_0x58c106(0x1d6),Object)],ApitestService[a13_0x58c106(0x1c6)],'config',void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2[a13_0x58c106(0x1ba)])(a13_0x58c106(0x1b3)),(0x0,core_3[a13_0x58c106(0x1f1)])(core_3['ScopeEnum']['Singleton'])],ApitestService);let ApitestStaticController=class ApitestStaticController{async[a13_0x58c106(0x1f5)](){const _0x2558ce=a13_0x58c106;if(this[_0x2558ce(0x1b3)]){const _0x12b9cd={'module':![]};return this[_0x2558ce(0x1e4)][_0x2558ce(0x1e6)]()&&(_0x12b9cd[_0x2558ce(0x1ef)]=!![]),await this[_0x2558ce(0x1cf)]['apidoc'](_0x12b9cd);}return'';}async[a13_0x58c106(0x1df)](_0xdf60bb){const _0x4872ab=a13_0x58c106;if(this['apitest']){const _0x33dcf8={'module':_0xdf60bb};return this[_0x4872ab(0x1e4)]['isDevelopmentEnvironment']()&&(_0x33dcf8[_0x4872ab(0x1ef)]=!![]),await this[_0x4872ab(0x1cf)]['apidoc'](_0x33dcf8);}return'';}async[a13_0x58c106(0x1b1)](){const _0x2f7971=a13_0x58c106;if((0x0,path_1[_0x2f7971(0x1f2)])(this[_0x2f7971(0x1de)][_0x2f7971(0x1b2)][_0x2f7971(0x1be)])){var _0xccd57e=(0x0,path_1['join'])(__dirname,_0x2f7971(0x1d2)+this['ctx'][_0x2f7971(0x1b2)][_0x2f7971(0x1be)][_0x2f7971(0x1cb)](_0x2f7971(0x1c1),'/'));if(_0xccd57e[_0x2f7971(0x1e5)](_0xccd57e[_0x2f7971(0x1b4)]-0xb)!=_0x2f7971(0x1ca)){this[_0x2f7971(0x1de)][_0x2f7971(0x1ec)]('cache-control',_0x2f7971(0x1c8));if((0x0,path_1[_0x2f7971(0x1f2)])(this[_0x2f7971(0x1de)][_0x2f7971(0x1b2)][_0x2f7971(0x1be)])==_0x2f7971(0x1e0))this[_0x2f7971(0x1de)][_0x2f7971(0x1ec)](_0x2f7971(0x1bf),_0x2f7971(0x1f8));else(0x0,path_1[_0x2f7971(0x1f2)])(this[_0x2f7971(0x1de)][_0x2f7971(0x1b2)]['url'])=='.css'&&this['ctx']['set'](_0x2f7971(0x1bf),_0x2f7971(0x1c0));return(0x0,fs_1['existsSync'])(_0xccd57e)&&(0x0,fs_1[_0x2f7971(0x1b7)])(_0xccd57e,{'encoding':'utf-8'});}}return'';}};exports['ApitestStaticController']=ApitestStaticController,__decorate([(0x0,core_3[a13_0x58c106(0x1e7)])(),__metadata(a13_0x58c106(0x1d6),Object)],ApitestStaticController[a13_0x58c106(0x1c6)],'ctx',void 0x0),__decorate([(0x0,core_3[a13_0x58c106(0x1e7)])(),__metadata('design:type',core_1[a13_0x58c106(0x1d8)])],ApitestStaticController[a13_0x58c106(0x1c6)],a13_0x58c106(0x1e4),void 0x0),__decorate([(0x0,core_3[a13_0x58c106(0x1e7)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a13_0x58c106(0x1c6)],a13_0x58c106(0x1cf),void 0x0),__decorate([(0x0,core_3[a13_0x58c106(0x1e8)])(a13_0x58c106(0x1b3)),__metadata(a13_0x58c106(0x1d6),Boolean)],ApitestStaticController[a13_0x58c106(0x1c6)],a13_0x58c106(0x1b3),void 0x0),__decorate([(0x0,core_3[a13_0x58c106(0x1e8)])(a13_0x58c106(0x1d1)),__metadata(a13_0x58c106(0x1d6),Object)],ApitestStaticController[a13_0x58c106(0x1c6)],a13_0x58c106(0x1e2),void 0x0),__decorate([(0x0,core_2[a13_0x58c106(0x1cc)])(a13_0x58c106(0x1d5)),__metadata(a13_0x58c106(0x1d6),Function),__metadata(a13_0x58c106(0x1cd),[]),__metadata(a13_0x58c106(0x1ad),Promise)],ApitestStaticController['prototype'],a13_0x58c106(0x1f5),null),__decorate([(0x0,core_2['Get'])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])(a13_0x58c106(0x1dc))),__metadata(a13_0x58c106(0x1d6),Function),__metadata(a13_0x58c106(0x1cd),[String]),__metadata(a13_0x58c106(0x1ad),Promise)],ApitestStaticController['prototype'],a13_0x58c106(0x1df),null),__decorate([(0x0,core_2[a13_0x58c106(0x1cc)])(a13_0x58c106(0x1b8)),__metadata('design:type',Function),__metadata(a13_0x58c106(0x1cd),[]),__metadata(a13_0x58c106(0x1ad),Promise)],ApitestStaticController[a13_0x58c106(0x1c6)],'apiteststatic',null),exports[a13_0x58c106(0x1e3)]=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a13_0x58c106(0x1f1)])(core_3[a13_0x58c106(0x1b5)][a13_0x58c106(0x1ae)])],ApitestStaticController);function a13_0xa9b9(){const _0x509970=['Provide','object','apidoc','__param','url','content-type','text/css;\x20charset=utf-8','/apiteststatic/','devices','1729476lknIPJ','function','__apiList__','prototype','90056ESGrox','public,\x20max-age=604800','271828rxeLpn','/index.html','replace','Get','design:paramtypes','8986448crrIju','ApitestService','push','anncicapi','../../public/','9knZOUY','summary','/apitest','design:type','2998723QTUZUn','MidwayEnvironmentService','route','getRoutes','toString','module','metadata','ctx','apitestmodule','.js','getOwnPropertyDescriptor','config','ApitestStaticController','Environment','substring','isDevelopmentEnvironment','Inject','Config','328755gvjRcU','description','__esModule','set','stringify','search','filepath','../../public/index.html','Scope','extname','(((.+)+)+)+$','prefix','apitesthtml','../helper/getRoutes','decorate','application/javascript;\x20charset=utf-8','path','design:returntype','Request','1441830QlWykx','defineProperty','apiteststatic','request','apitest','length','ScopeEnum','routes','readFileSync','/apiteststatic/*','@midwayjs/core'];a13_0xa9b9=function(){return _0x509970;};return a13_0xa9b9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0xd92308=a14_0x1df0;(function(_0x1c3657,_0x3ab189){const _0x1f72e1=a14_0x1df0,_0x41fb7f=_0x1c3657();while(!![]){try{const _0x446acc=parseInt(_0x1f72e1(0x104))/0x1+parseInt(_0x1f72e1(0x140))/0x2+-parseInt(_0x1f72e1(0x11e))/0x3+parseInt(_0x1f72e1(0x148))/0x4*(-parseInt(_0x1f72e1(0x13d))/0x5)+-parseInt(_0x1f72e1(0x12c))/0x6*(parseInt(_0x1f72e1(0x138))/0x7)+parseInt(_0x1f72e1(0x127))/0x8*(-parseInt(_0x1f72e1(0x121))/0x9)+parseInt(_0x1f72e1(0x13f))/0xa*(parseInt(_0x1f72e1(0x157))/0xb);if(_0x446acc===_0x3ab189)break;else _0x41fb7f['push'](_0x41fb7f['shift']());}catch(_0x18955c){_0x41fb7f['push'](_0x41fb7f['shift']());}}}(a14_0x5de8,0x61963));const a14_0x5b0f82=(function(){let _0x369f44=!![];return function(_0x2a98ea,_0x5ba0c3){const _0xdf6b3e=_0x369f44?function(){const _0x9f6898=a14_0x1df0;if(_0x5ba0c3){const _0x45b3bd=_0x5ba0c3[_0x9f6898(0x14f)](_0x2a98ea,arguments);return _0x5ba0c3=null,_0x45b3bd;}}:function(){};return _0x369f44=![],_0xdf6b3e;};}()),a14_0x36699d=a14_0x5b0f82(this,function(){const _0xf4786a=a14_0x1df0;return a14_0x36699d[_0xf4786a(0x139)]()[_0xf4786a(0x13a)](_0xf4786a(0x105))[_0xf4786a(0x139)]()[_0xf4786a(0x14b)](a14_0x36699d)[_0xf4786a(0x13a)]('(((.+)+)+)+$');});a14_0x36699d();'use strict';var __decorate=this&&this[a14_0xd92308(0x134)]||function(_0x132c5c,_0x640107,_0x1c57d2,_0x2b85c8){const _0x4d0cd6=a14_0xd92308;var _0x5f1304=arguments[_0x4d0cd6(0x129)],_0x15396b=_0x5f1304<0x3?_0x640107:_0x2b85c8===null?_0x2b85c8=Object[_0x4d0cd6(0x10d)](_0x640107,_0x1c57d2):_0x2b85c8,_0x3a6988;if(typeof Reflect===_0x4d0cd6(0x111)&&typeof Reflect[_0x4d0cd6(0x117)]===_0x4d0cd6(0x152))_0x15396b=Reflect[_0x4d0cd6(0x117)](_0x132c5c,_0x640107,_0x1c57d2,_0x2b85c8);else{for(var _0x7f4fcc=_0x132c5c[_0x4d0cd6(0x129)]-0x1;_0x7f4fcc>=0x0;_0x7f4fcc--)if(_0x3a6988=_0x132c5c[_0x7f4fcc])_0x15396b=(_0x5f1304<0x3?_0x3a6988(_0x15396b):_0x5f1304>0x3?_0x3a6988(_0x640107,_0x1c57d2,_0x15396b):_0x3a6988(_0x640107,_0x1c57d2))||_0x15396b;}return _0x5f1304>0x3&&_0x15396b&&Object[_0x4d0cd6(0x155)](_0x640107,_0x1c57d2,_0x15396b),_0x15396b;},__metadata=this&&this[a14_0xd92308(0x119)]||function(_0x4faf95,_0x470469){const _0x42015e=a14_0xd92308;if(typeof Reflect===_0x42015e(0x111)&&typeof Reflect[_0x42015e(0x147)]==='function')return Reflect[_0x42015e(0x147)](_0x4faf95,_0x470469);};Object[a14_0xd92308(0x155)](exports,a14_0xd92308(0x110),{'value':!![]}),exports[a14_0xd92308(0x10b)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a14_0xd92308(0x128)),core_1=require(a14_0xd92308(0x150)),ExcelStream_1=require(a14_0xd92308(0x13c));function a14_0x1df0(_0x27166e,_0x581cc7){const _0x237ab8=a14_0x5de8();return a14_0x1df0=function(_0x36699d,_0x5b0f82){_0x36699d=_0x36699d-0x103;let _0x5de8f7=_0x237ab8[_0x36699d];return _0x5de8f7;},a14_0x1df0(_0x27166e,_0x581cc7);}let ExcelService=class ExcelService{async['parse'](_0x282cfb,_0x5bc9d8,_0x101cd2=[0x0]){const _0x2e803c=a14_0xd92308;var _0x5aa3dc,_0x3e9320;const _0x8c6446=new exceljs[(_0x2e803c(0x109))](),_0x4754ee=[];let _0x502e6b=_0x282cfb['replace'](/(\\|\/)/g,'/')[_0x2e803c(0x120)](/\/{2,}/g,'/');!(_0x502e6b===null||_0x502e6b===void 0x0?void 0x0:_0x502e6b[_0x2e803c(0x116)]('/'))&&(_0x502e6b=this[_0x2e803c(0x12a)][_0x2e803c(0x125)]()+'/'+_0x502e6b);try{await _0x8c6446[_0x2e803c(0x112)][_0x2e803c(0x14e)](_0x502e6b);}catch(_0xbbedca){return console[_0x2e803c(0x126)](_0x2e803c(0x143)+_0x502e6b+_0x2e803c(0x133)),_0x4754ee;}for(const _0x131a79 of _0x101cd2){const _0x3bd926=lodash['isNumber'](_0x131a79)?((_0x5aa3dc=_0x8c6446[_0x2e803c(0x145)])===null||_0x5aa3dc===void 0x0?void 0x0:_0x5aa3dc[_0x131a79])||undefined:_0x8c6446[_0x2e803c(0x124)](_0x131a79);if(_0x3bd926){var _0x5443ee=0x1;const _0x5557ff=_0x3bd926[_0x2e803c(0x115)](0x1),_0x590370=await new Promise(_0x29a39e=>{const _0x2e967e=_0x2e803c,_0x5270a1={};_0x5557ff[_0x2e967e(0x12d)]((_0x59104a,_0xa191db)=>{const _0x496f5a=_0x2e967e;for(const _0x2a4bb7 of _0x5bc9d8){if(_0x59104a[_0x496f5a(0x106)]==_0x2a4bb7[_0x496f5a(0x146)])_0x5443ee=0x2,_0x5270a1[_0x2a4bb7['key']]={'header':_0x59104a['col'],'handler':(_0x2a4bb7===null||_0x2a4bb7===void 0x0?void 0x0:_0x2a4bb7[_0x496f5a(0x103)])||(_0x2a4bb7===null||_0x2a4bb7===void 0x0?void 0x0:_0x2a4bb7[_0x496f5a(0x131)])};else{if(!_0x5270a1[_0x2a4bb7[_0x496f5a(0x156)]])try{const _0x16bdd3=_0x5557ff&&_0x5557ff[_0x496f5a(0x11b)](_0x2a4bb7[_0x496f5a(0x146)]);_0x16bdd3&&(_0x5270a1[_0x2a4bb7[_0x496f5a(0x156)]]={'header':_0x16bdd3[_0x496f5a(0x141)],'handler':(_0x2a4bb7===null||_0x2a4bb7===void 0x0?void 0x0:_0x2a4bb7[_0x496f5a(0x103)])||(_0x2a4bb7===null||_0x2a4bb7===void 0x0?void 0x0:_0x2a4bb7[_0x496f5a(0x131)])});}catch{}}}_0x5557ff[_0x496f5a(0x10a)]==_0xa191db&&_0x29a39e(_0x5270a1);});});_0x1083a1:for(const _0x580696 of _0x3bd926['findRows'](_0x5443ee,_0x3bd926[_0x2e803c(0x108)])){if(typeof(_0x580696===null||_0x580696===void 0x0?void 0x0:_0x580696[_0x2e803c(0x11b)])!=_0x2e803c(0x152))continue _0x1083a1;const _0xc11322={};_0x19627f:for(const _0x18c607 in _0x590370){if(_0x590370[_0x18c607]['header']){const _0x47bb5d=_0x580696[_0x2e803c(0x11b)](_0x590370[_0x18c607][_0x2e803c(0x146)]);if(!_0x47bb5d)continue _0x19627f;try{_0x47bb5d['toString']();}catch(_0x4931f1){_0x47bb5d[_0x2e803c(0x139)]=()=>{const _0x42ddbb=_0x2e803c;var _0x36fed6;return''+(((_0x36fed6=_0x47bb5d===null||_0x47bb5d===void 0x0?void 0x0:_0x47bb5d[_0x42ddbb(0x11c)])===null||_0x36fed6===void 0x0?void 0x0:_0x36fed6[_0x42ddbb(0x106)])||'');};}typeof((_0x3e9320=_0x590370[_0x18c607])===null||_0x3e9320===void 0x0?void 0x0:_0x3e9320[_0x2e803c(0x131)])=='function'?_0xc11322[_0x18c607]=await _0x590370[_0x18c607][_0x2e803c(0x131)](lodash[_0x2e803c(0x12b)]({},_0x18c607,(_0x47bb5d===null||_0x47bb5d===void 0x0?void 0x0:_0x47bb5d[_0x2e803c(0x139)]())||''),_0x47bb5d['model']):_0xc11322[_0x18c607]=(_0x47bb5d===null||_0x47bb5d===void 0x0?void 0x0:_0x47bb5d[_0x2e803c(0x139)]())||'';}}Object[_0x2e803c(0x14a)](_0xc11322)[_0x2e803c(0x129)]>0x0&&Object[_0x2e803c(0x130)](_0xc11322)[_0x2e803c(0x10c)](_0x27c19f=>_0x27c19f!='')[_0x2e803c(0x129)]>0x0&&_0x4754ee[_0x2e803c(0x107)](_0xc11322);}}}return _0x4754ee;}async[a14_0xd92308(0x142)](_0x10eec5,_0xe8b5b5,_0x25f3fe,_0x381f6a,_0x2fedda){const _0x5cc79a=a14_0xd92308;var _0x2d03b8,_0x9f2ce0,_0xca0532;const _0x2771c6=new exceljs[(_0x5cc79a(0x109))](),_0x1de754={},_0x35f6ee=[],_0x484ce8=_0x2771c6[_0x5cc79a(0x122)](_0x5cc79a(0x132),{'views':[{'state':_0x5cc79a(0x123),'ySplit':0x1}]});for(const _0x28ada4 in _0xe8b5b5){_0x1de754[_0xe8b5b5[_0x28ada4][_0x5cc79a(0x156)]]=_0xe8b5b5[_0x28ada4][_0x5cc79a(0x146)],_0x35f6ee[_0x5cc79a(0x107)]({'header':_0xe8b5b5[_0x28ada4][_0x5cc79a(0x146)],'key':(_0x2d03b8=_0xe8b5b5[_0x28ada4])===null||_0x2d03b8===void 0x0?void 0x0:_0x2d03b8[_0x5cc79a(0x156)][_0x5cc79a(0x120)](/\./g,'_')});}_0x484ce8[_0x5cc79a(0x149)]=_0x35f6ee;for(const _0x537a80 in _0x25f3fe){const _0x1ab315=_0x25f3fe[_0x537a80],_0x2a6fd7=_0x484ce8[_0x5cc79a(0x114)]({});for(let _0x190627 in _0xe8b5b5){const _0x17f6e8=_0xe8b5b5[_0x190627]['key'][_0x5cc79a(0x120)](/\./g,'_'),_0x93102c=_0x484ce8['getColumn'](_0x17f6e8),_0x108c44=_0x2a6fd7===null||_0x2a6fd7===void 0x0?void 0x0:_0x2a6fd7[_0x5cc79a(0x11b)](_0x17f6e8);if(typeof((_0x9f2ce0=_0xe8b5b5[_0x190627])===null||_0x9f2ce0===void 0x0?void 0x0:_0x9f2ce0[_0x5cc79a(0x151)])==_0x5cc79a(0x152))_0x108c44[_0x5cc79a(0x106)]=await _0xe8b5b5[_0x190627][_0x5cc79a(0x151)](_0x1ab315,{'row':_0x2a6fd7,'col':_0x93102c,'cell':_0x108c44,'sheet':_0x484ce8})||'';else typeof((_0xca0532=_0xe8b5b5[_0x190627])===null||_0xca0532===void 0x0?void 0x0:_0xca0532[_0x5cc79a(0x131)])=='function'?_0x108c44[_0x5cc79a(0x106)]=await _0xe8b5b5[_0x190627][_0x5cc79a(0x131)](_0x1ab315,{'row':_0x2a6fd7,'col':_0x93102c,'cell':_0x108c44,'sheet':_0x484ce8})||'':_0x108c44[_0x5cc79a(0x106)]=lodash['get'](_0x1ab315,_0xe8b5b5[_0x190627][_0x5cc79a(0x156)],'');}}typeof _0x2fedda==_0x5cc79a(0x152)&&await _0x2fedda({'workbook':_0x2771c6,'worksheet':_0x484ce8});let _0x19514e='';const _0x3c1554=_0x10eec5+_0x5cc79a(0x153);if(_0x381f6a&&_0x381f6a[_0x5cc79a(0x116)]('/'))_0x19514e=''+_0x381f6a;else _0x381f6a&&!_0x381f6a['startsWith']('/')&&!_0x381f6a[_0x5cc79a(0x116)]('\x5c')?_0x19514e=this['app']['getAppDir']()+'/'+_0x381f6a:_0x19514e=this[_0x5cc79a(0x12a)][_0x5cc79a(0x125)]()+_0x5cc79a(0x13b)+dayjs()[_0x5cc79a(0x14c)]('YYYY/MM/DD');return(_0x19514e[_0x5cc79a(0x10e)]('/')||_0x19514e['endsWith']('\x5c'))&&(_0x19514e=_0x19514e[_0x5cc79a(0x14d)](0x0,_0x19514e['length']-0x1)),_0x19514e=_0x19514e[_0x5cc79a(0x120)](/(\\|\/)/g,'/')[_0x5cc79a(0x120)](/\/{2,}/g,'/'),!fs[_0x5cc79a(0x13e)](_0x19514e)&&fs[_0x5cc79a(0x137)](_0x19514e,{'recursive':!![]}),await _0x2771c6[_0x5cc79a(0x112)][_0x5cc79a(0x154)]((_0x19514e+'/'+_0x3c1554)[_0x5cc79a(0x120)](/(\\|\/)/g,'/')[_0x5cc79a(0x120)](/\/{2,}/g,'/')),{'filename':_0x3c1554,'filepath':(_0x19514e[_0x5cc79a(0x14d)]((''+this[_0x5cc79a(0x12a)]['getAppDir']())[_0x5cc79a(0x129)])+'/'+_0x3c1554)[_0x5cc79a(0x120)](/(\\|\/)/g,'/')[_0x5cc79a(0x120)](/\/{2,}/g,'/')};}async[a14_0xd92308(0x10f)](_0x1d45b9,_0x129f90={'suffix':[a14_0xd92308(0x136),a14_0xd92308(0x112)]}){const _0x1e9f6b=a14_0xd92308;return await ExcelStream_1[_0x1e9f6b(0x12f)]['instance'](_0x1d45b9,_0x129f90);}async[a14_0xd92308(0x144)](_0x3d154c,_0x538c8d){return await koasend(_0x3d154c,''+_0x538c8d);}};function a14_0x5de8(){const _0x4fccae=['(((.+)+)+)+$','value','push','rowCount','Workbook','cellCount','ExcelService','filter','getOwnPropertyDescriptor','endsWith','stream','__esModule','object','xlsx','prototype','addRow','getRow','startsWith','decorate','design:type','__metadata','Singleton','getCell','model','Scope','588729DWQSKM','ScopeEnum','replace','36ZXhVRy','addWorksheet','frozen','getWorksheet','getAppDir','log','1588096xlLWTG','koa-send','length','app','set','6igtZUe','eachCell','App','ExcelStream','values','handler','Sheet\x201','\x20is\x20read\x20fail','__decorate','Provide','xls','mkdirSync','1316959UZAxCo','toString','search','/public/xlsx/','./ExcelStream','79010wKNBdM','existsSync','113050jVepPA','375780fYoyhO','col','export','Api\x20Excel\x20Error:\x20','download','worksheets','header','metadata','152YaJWKF','columns','keys','constructor','format','substring','readFile','apply','@midwayjs/core','onWrite','function','.xlsx','writeFile','defineProperty','key','1507XGciQX','onRead','441944uhGTgv'];a14_0x5de8=function(){return _0x4fccae;};return a14_0x5de8();}exports[a14_0xd92308(0x10b)]=ExcelService,__decorate([(0x0,core_1[a14_0xd92308(0x12e)])(),__metadata(a14_0xd92308(0x118),Object)],ExcelService[a14_0xd92308(0x113)],'app',void 0x0),exports[a14_0xd92308(0x10b)]=ExcelService=__decorate([(0x0,core_1[a14_0xd92308(0x135)])(),(0x0,core_1[a14_0xd92308(0x11d)])(core_1[a14_0xd92308(0x11f)][a14_0xd92308(0x11a)])],ExcelService);
|
|
1
|
+
const a14_0x30ed65=a14_0x5b9e;(function(_0x434547,_0x134e9d){const _0x4d1dac=a14_0x5b9e,_0x3f1021=_0x434547();while(!![]){try{const _0xd7f3db=-parseInt(_0x4d1dac(0x158))/0x1+-parseInt(_0x4d1dac(0x127))/0x2*(parseInt(_0x4d1dac(0x12a))/0x3)+parseInt(_0x4d1dac(0x168))/0x4*(parseInt(_0x4d1dac(0x144))/0x5)+parseInt(_0x4d1dac(0x125))/0x6+parseInt(_0x4d1dac(0x159))/0x7+-parseInt(_0x4d1dac(0x11f))/0x8*(parseInt(_0x4d1dac(0x14b))/0x9)+-parseInt(_0x4d1dac(0x12c))/0xa*(-parseInt(_0x4d1dac(0x134))/0xb);if(_0xd7f3db===_0x134e9d)break;else _0x3f1021['push'](_0x3f1021['shift']());}catch(_0x2d0a0b){_0x3f1021['push'](_0x3f1021['shift']());}}}(a14_0x2431,0xe86d5));const a14_0x261192=(function(){let _0x4df6c1=!![];return function(_0x322d37,_0x2f1379){const _0x1b0fe4=_0x4df6c1?function(){if(_0x2f1379){const _0x1b84c6=_0x2f1379['apply'](_0x322d37,arguments);return _0x2f1379=null,_0x1b84c6;}}:function(){};return _0x4df6c1=![],_0x1b0fe4;};}()),a14_0x5dd9fa=a14_0x261192(this,function(){const _0x11aa5c=a14_0x5b9e;return a14_0x5dd9fa[_0x11aa5c(0x16b)]()['search'](_0x11aa5c(0x142))[_0x11aa5c(0x16b)]()['constructor'](a14_0x5dd9fa)['search'](_0x11aa5c(0x142));});a14_0x5dd9fa();'use strict';var __decorate=this&&this[a14_0x30ed65(0x15a)]||function(_0x2c8255,_0x5d1287,_0x1f8189,_0x361f91){const _0x3ba434=a14_0x30ed65;var _0x14a7dc=arguments[_0x3ba434(0x146)],_0x250d41=_0x14a7dc<0x3?_0x5d1287:_0x361f91===null?_0x361f91=Object[_0x3ba434(0x16d)](_0x5d1287,_0x1f8189):_0x361f91,_0x39971b;if(typeof Reflect===_0x3ba434(0x14d)&&typeof Reflect[_0x3ba434(0x130)]===_0x3ba434(0x123))_0x250d41=Reflect['decorate'](_0x2c8255,_0x5d1287,_0x1f8189,_0x361f91);else{for(var _0x27a172=_0x2c8255[_0x3ba434(0x146)]-0x1;_0x27a172>=0x0;_0x27a172--)if(_0x39971b=_0x2c8255[_0x27a172])_0x250d41=(_0x14a7dc<0x3?_0x39971b(_0x250d41):_0x14a7dc>0x3?_0x39971b(_0x5d1287,_0x1f8189,_0x250d41):_0x39971b(_0x5d1287,_0x1f8189))||_0x250d41;}return _0x14a7dc>0x3&&_0x250d41&&Object['defineProperty'](_0x5d1287,_0x1f8189,_0x250d41),_0x250d41;},__metadata=this&&this[a14_0x30ed65(0x14c)]||function(_0x2466a5,_0x459370){const _0xdce921=a14_0x30ed65;if(typeof Reflect===_0xdce921(0x14d)&&typeof Reflect[_0xdce921(0x132)]==='function')return Reflect[_0xdce921(0x132)](_0x2466a5,_0x459370);};Object[a14_0x30ed65(0x163)](exports,a14_0x30ed65(0x139),{'value':!![]}),exports[a14_0x30ed65(0x166)]=void 0x0;function a14_0x5b9e(_0x4d69ca,_0x344efd){const _0x1ec961=a14_0x2431();return a14_0x5b9e=function(_0x5dd9fa,_0x261192){_0x5dd9fa=_0x5dd9fa-0x11f;let _0x2431fa=_0x1ec961[_0x5dd9fa];return _0x2431fa;},a14_0x5b9e(_0x4d69ca,_0x344efd);}const fs=require('fs'),exceljs=require(a14_0x30ed65(0x13e)),koasend=require('koa-send'),core_1=require(a14_0x30ed65(0x120)),ExcelStream_1=require(a14_0x30ed65(0x156));let ExcelService=class ExcelService{async[a14_0x30ed65(0x155)](_0xf02a30,_0x35bd23,_0x17e56b=[0x0]){const _0x57e7b5=a14_0x30ed65;var _0x49cccc,_0x10d158;const _0x11ba34=new exceljs[(_0x57e7b5(0x160))](),_0x33aab3=[];let _0x1fb259=_0xf02a30[_0x57e7b5(0x152)](/(\\|\/)/g,'/')[_0x57e7b5(0x152)](/\/{2,}/g,'/');!(_0x1fb259===null||_0x1fb259===void 0x0?void 0x0:_0x1fb259[_0x57e7b5(0x122)]('/'))&&(_0x1fb259=this[_0x57e7b5(0x14f)]['getAppDir']()+'/'+_0x1fb259);try{await _0x11ba34[_0x57e7b5(0x165)][_0x57e7b5(0x161)](_0x1fb259);}catch(_0x325cfd){return console[_0x57e7b5(0x13a)](_0x57e7b5(0x141)+_0x1fb259+'\x20is\x20read\x20fail'),_0x33aab3;}for(const _0x1acebb of _0x17e56b){const _0x214ab0=lodash[_0x57e7b5(0x124)](_0x1acebb)?((_0x49cccc=_0x11ba34[_0x57e7b5(0x16c)])===null||_0x49cccc===void 0x0?void 0x0:_0x49cccc[_0x1acebb])||undefined:_0x11ba34['getWorksheet'](_0x1acebb);if(_0x214ab0){var _0x38f3e2=0x1;const _0x37ac9b=_0x214ab0[_0x57e7b5(0x151)](0x1),_0x5a04ff=await new Promise(_0x18490e=>{const _0x2b66a0=_0x57e7b5,_0x5cac62={};_0x37ac9b[_0x2b66a0(0x154)]((_0x1bd403,_0x50bbef)=>{const _0x4eb465=_0x2b66a0;for(const _0x346a8e of _0x35bd23){if(_0x1bd403['value']==_0x346a8e[_0x4eb465(0x12b)])_0x38f3e2=0x2,_0x5cac62[_0x346a8e[_0x4eb465(0x14a)]]={'header':_0x1bd403[_0x4eb465(0x145)],'handler':(_0x346a8e===null||_0x346a8e===void 0x0?void 0x0:_0x346a8e[_0x4eb465(0x121)])||(_0x346a8e===null||_0x346a8e===void 0x0?void 0x0:_0x346a8e['handler'])};else{if(!_0x5cac62[_0x346a8e[_0x4eb465(0x14a)]])try{const _0x21bf02=_0x37ac9b&&_0x37ac9b[_0x4eb465(0x15d)](_0x346a8e[_0x4eb465(0x12b)]);_0x21bf02&&(_0x5cac62[_0x346a8e[_0x4eb465(0x14a)]]={'header':_0x21bf02[_0x4eb465(0x145)],'handler':(_0x346a8e===null||_0x346a8e===void 0x0?void 0x0:_0x346a8e['onRead'])||(_0x346a8e===null||_0x346a8e===void 0x0?void 0x0:_0x346a8e[_0x4eb465(0x135)])});}catch{}}}_0x37ac9b[_0x4eb465(0x13d)]==_0x50bbef&&_0x18490e(_0x5cac62);});});_0x298508:for(const _0x4ae9bb of _0x214ab0[_0x57e7b5(0x162)](_0x38f3e2,_0x214ab0[_0x57e7b5(0x15c)])){if(typeof(_0x4ae9bb===null||_0x4ae9bb===void 0x0?void 0x0:_0x4ae9bb[_0x57e7b5(0x15d)])!=_0x57e7b5(0x123))continue _0x298508;const _0x232410={};_0x1685ba:for(const _0x1ce68d in _0x5a04ff){if(_0x5a04ff[_0x1ce68d][_0x57e7b5(0x12b)]){const _0x25f77c=_0x4ae9bb['getCell'](_0x5a04ff[_0x1ce68d][_0x57e7b5(0x12b)]);if(!_0x25f77c)continue _0x1685ba;try{_0x25f77c[_0x57e7b5(0x16b)]();}catch(_0x49e7a5){_0x25f77c[_0x57e7b5(0x16b)]=()=>{const _0x2c984f=_0x57e7b5;var _0x170b6f;return''+(((_0x170b6f=_0x25f77c===null||_0x25f77c===void 0x0?void 0x0:_0x25f77c[_0x2c984f(0x12d)])===null||_0x170b6f===void 0x0?void 0x0:_0x170b6f['value'])||'');};}typeof((_0x10d158=_0x5a04ff[_0x1ce68d])===null||_0x10d158===void 0x0?void 0x0:_0x10d158[_0x57e7b5(0x135)])==_0x57e7b5(0x123)?_0x232410[_0x1ce68d]=await _0x5a04ff[_0x1ce68d]['handler'](lodash[_0x57e7b5(0x12f)]({},_0x1ce68d,(_0x25f77c===null||_0x25f77c===void 0x0?void 0x0:_0x25f77c[_0x57e7b5(0x16b)]())||''),_0x25f77c[_0x57e7b5(0x12d)]):_0x232410[_0x1ce68d]=(_0x25f77c===null||_0x25f77c===void 0x0?void 0x0:_0x25f77c['toString']())||'';}}Object[_0x57e7b5(0x15f)](_0x232410)[_0x57e7b5(0x146)]>0x0&&Object['values'](_0x232410)[_0x57e7b5(0x13c)](_0x49630c=>_0x49630c!='')[_0x57e7b5(0x146)]>0x0&&_0x33aab3[_0x57e7b5(0x150)](_0x232410);}}}return _0x33aab3;}async['export'](_0x4e533d,_0x449db8,_0x406af0,_0x548e39,_0x34feb5){const _0x1e2d71=a14_0x30ed65;var _0x158b08,_0x230b63,_0x549114;const _0x12c6e5=new exceljs[(_0x1e2d71(0x160))](),_0x43aff0={},_0x5b4c15=[],_0x24df73=_0x12c6e5[_0x1e2d71(0x138)](_0x1e2d71(0x149),{'views':[{'state':_0x1e2d71(0x16a),'ySplit':0x1}]});for(const _0x1023dd in _0x449db8){_0x43aff0[_0x449db8[_0x1023dd]['key']]=_0x449db8[_0x1023dd][_0x1e2d71(0x12b)],_0x5b4c15[_0x1e2d71(0x150)]({'header':_0x449db8[_0x1023dd][_0x1e2d71(0x12b)],'key':(_0x158b08=_0x449db8[_0x1023dd])===null||_0x158b08===void 0x0?void 0x0:_0x158b08['key'][_0x1e2d71(0x152)](/\./g,'_')});}_0x24df73[_0x1e2d71(0x128)]=_0x5b4c15;for(const _0x1c5709 in _0x406af0){const _0x10e533=_0x406af0[_0x1c5709],_0x57c5b8=_0x24df73[_0x1e2d71(0x169)]({});for(let _0x436e21 in _0x449db8){const _0x400a89=_0x449db8[_0x436e21][_0x1e2d71(0x14a)][_0x1e2d71(0x152)](/\./g,'_'),_0x5be17e=_0x24df73[_0x1e2d71(0x15e)](_0x400a89),_0x5f5510=_0x57c5b8===null||_0x57c5b8===void 0x0?void 0x0:_0x57c5b8['getCell'](_0x400a89);if(typeof((_0x230b63=_0x449db8[_0x436e21])===null||_0x230b63===void 0x0?void 0x0:_0x230b63[_0x1e2d71(0x133)])==_0x1e2d71(0x123))_0x5f5510[_0x1e2d71(0x137)]=await _0x449db8[_0x436e21][_0x1e2d71(0x133)](_0x10e533,{'row':_0x57c5b8,'col':_0x5be17e,'cell':_0x5f5510,'sheet':_0x24df73})||'';else typeof((_0x549114=_0x449db8[_0x436e21])===null||_0x549114===void 0x0?void 0x0:_0x549114[_0x1e2d71(0x135)])==_0x1e2d71(0x123)?_0x5f5510[_0x1e2d71(0x137)]=await _0x449db8[_0x436e21][_0x1e2d71(0x135)](_0x10e533,{'row':_0x57c5b8,'col':_0x5be17e,'cell':_0x5f5510,'sheet':_0x24df73})||'':_0x5f5510[_0x1e2d71(0x137)]=lodash[_0x1e2d71(0x126)](_0x10e533,_0x449db8[_0x436e21][_0x1e2d71(0x14a)],'');}}typeof _0x34feb5=='function'&&await _0x34feb5({'workbook':_0x12c6e5,'worksheet':_0x24df73});let _0x2ad91b='';const _0x2c93ec=_0x4e533d+_0x1e2d71(0x129);if(_0x548e39&&_0x548e39[_0x1e2d71(0x122)]('/'))_0x2ad91b=''+_0x548e39;else _0x548e39&&!_0x548e39['startsWith']('/')&&!_0x548e39[_0x1e2d71(0x122)]('\x5c')?_0x2ad91b=this[_0x1e2d71(0x14f)]['getAppDir']()+'/'+_0x548e39:_0x2ad91b=this[_0x1e2d71(0x14f)]['getAppDir']()+_0x1e2d71(0x16e)+dayjs()['format'](_0x1e2d71(0x13b));return(_0x2ad91b[_0x1e2d71(0x16f)]('/')||_0x2ad91b[_0x1e2d71(0x16f)]('\x5c'))&&(_0x2ad91b=_0x2ad91b[_0x1e2d71(0x12e)](0x0,_0x2ad91b[_0x1e2d71(0x146)]-0x1)),_0x2ad91b=_0x2ad91b[_0x1e2d71(0x152)](/(\\|\/)/g,'/')[_0x1e2d71(0x152)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2ad91b)&&fs[_0x1e2d71(0x157)](_0x2ad91b,{'recursive':!![]}),await _0x12c6e5[_0x1e2d71(0x165)]['writeFile']((_0x2ad91b+'/'+_0x2c93ec)[_0x1e2d71(0x152)](/(\\|\/)/g,'/')[_0x1e2d71(0x152)](/\/{2,}/g,'/')),{'filename':_0x2c93ec,'filepath':(_0x2ad91b['substring']((''+this[_0x1e2d71(0x14f)][_0x1e2d71(0x167)]())[_0x1e2d71(0x146)])+'/'+_0x2c93ec)[_0x1e2d71(0x152)](/(\\|\/)/g,'/')[_0x1e2d71(0x152)](/\/{2,}/g,'/')};}async[a14_0x30ed65(0x136)](_0x2005ba,_0x9fa6be={'suffix':[a14_0x30ed65(0x148),'xlsx']}){const _0x54e46a=a14_0x30ed65;return await ExcelStream_1[_0x54e46a(0x131)]['instance'](_0x2005ba,_0x9fa6be);}async[a14_0x30ed65(0x15b)](_0x4693dc,_0x22c181){return await koasend(_0x4693dc,''+_0x22c181);}};function a14_0x2431(){const _0x3e829e=['__esModule','log','YYYY/MM/DD','filter','cellCount','exceljs','Singleton','ScopeEnum','Api\x20Excel\x20Error:\x20','(((.+)+)+)+$','Scope','440vLVCyK','col','length','design:type','xls','Sheet\x201','key','27jrSKbt','__metadata','object','App','app','push','getRow','replace','Provide','eachCell','parse','./ExcelStream','mkdirSync','1846912IKZMch','12057178QrKECB','__decorate','download','rowCount','getCell','getColumn','keys','Workbook','readFile','findRows','defineProperty','prototype','xlsx','ExcelService','getAppDir','8716stZjhc','addRow','frozen','toString','worksheets','getOwnPropertyDescriptor','/public/xlsx/','endsWith','3801272SyznlM','@midwayjs/core','onRead','startsWith','function','isNumber','6839352rfttWl','get','2VFkNkC','columns','.xlsx','5680245qYJMYq','header','30637270zHbqmT','model','substring','set','decorate','ExcelStream','metadata','onWrite','11QFJYWz','handler','stream','value','addWorksheet'];a14_0x2431=function(){return _0x3e829e;};return a14_0x2431();}exports[a14_0x30ed65(0x166)]=ExcelService,__decorate([(0x0,core_1[a14_0x30ed65(0x14e)])(),__metadata(a14_0x30ed65(0x147),Object)],ExcelService[a14_0x30ed65(0x164)],'app',void 0x0),exports[a14_0x30ed65(0x166)]=ExcelService=__decorate([(0x0,core_1[a14_0x30ed65(0x153)])(),(0x0,core_1[a14_0x30ed65(0x143)])(core_1[a14_0x30ed65(0x140)][a14_0x30ed65(0x13f)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x26099b=a15_0x1dce;(function(_0x5c1092,_0x13e844){const _0x3cdc7c=a15_0x1dce,_0x29f1e2=_0x5c1092();while(!![]){try{const _0x2721e5=-parseInt(_0x3cdc7c(0x23b))/0x1*(parseInt(_0x3cdc7c(0x218))/0x2)+-parseInt(_0x3cdc7c(0x20f))/0x3+-parseInt(_0x3cdc7c(0x23d))/0x4+parseInt(_0x3cdc7c(0x226))/0x5*(parseInt(_0x3cdc7c(0x20d))/0x6)+parseInt(_0x3cdc7c(0x216))/0x7+-parseInt(_0x3cdc7c(0x215))/0x8+parseInt(_0x3cdc7c(0x241))/0x9;if(_0x2721e5===_0x13e844)break;else _0x29f1e2['push'](_0x29f1e2['shift']());}catch(_0x5de9fd){_0x29f1e2['push'](_0x29f1e2['shift']());}}}(a15_0x2025,0x336a4));const a15_0x1a15dd=(function(){let _0x36b9d6=!![];return function(_0x34d5cf,_0x35652f){const _0xf07737=_0x36b9d6?function(){const _0x90af9=a15_0x1dce;if(_0x35652f){const _0x4fa8c8=_0x35652f[_0x90af9(0x221)](_0x34d5cf,arguments);return _0x35652f=null,_0x4fa8c8;}}:function(){};return _0x36b9d6=![],_0xf07737;};}()),a15_0x453ba3=a15_0x1a15dd(this,function(){const _0x4eb039=a15_0x1dce;return a15_0x453ba3[_0x4eb039(0x1f7)]()[_0x4eb039(0x200)](_0x4eb039(0x1f4))[_0x4eb039(0x1f7)]()['constructor'](a15_0x453ba3)[_0x4eb039(0x200)](_0x4eb039(0x1f4));});function a15_0x1dce(_0x267c02,_0x219f27){const _0x34089b=a15_0x2025();return a15_0x1dce=function(_0x453ba3,_0x1a15dd){_0x453ba3=_0x453ba3-0x1f0;let _0x2025d9=_0x34089b[_0x453ba3];return _0x2025d9;},a15_0x1dce(_0x267c02,_0x219f27);}a15_0x453ba3();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a15_0x26099b(0x227)]=void 0x0;const fs=require('fs'),path=require(a15_0x26099b(0x23a)),lodash=require('lodash'),exceljs=require(a15_0x26099b(0x242)),stream_1=require('stream');function isReadableStream(_0x52c77a){const _0x47cbe9=a15_0x26099b;return _0x52c77a&&typeof _0x52c77a['pipe']==='function'&&typeof _0x52c77a['on']===_0x47cbe9(0x21c)&&typeof _0x52c77a[_0x47cbe9(0x223)]===_0x47cbe9(0x21c)&&typeof _0x52c77a[_0x47cbe9(0x220)]==='function'&&typeof _0x52c77a[_0x47cbe9(0x1ff)]===_0x47cbe9(0x21c);}function a15_0x2025(){const _0xecc689=['655530ealDbe','key','230268kRmBEI','WorkbookReader','ignore','chunkArray','_WorksheetWriterMap','_WorkbookWriter','1990888WwNDYe','1800771APrARp','getColumn','4LfvAhv','WorkbookWriter','cellCount','get','function','indexOf','substring','replace','pause','apply','startsWith','read','keys','_WorkbookReader','10ngmllK','ExcelStream','header','existsSync','xlsx','Readable','suffix','filepath','error','eachCell','reader','getWorkbookWriterSheet','getCell','save','instance','frozen','value','row','set','finished','path','196653CqwcEa','values','297928fnAEKC','xls','addWorksheet','columns','4754142kfwFfi','exceljs','isArray','from','文件名格式错误','worksheets','length','dirname','(((.+)+)+)+$','sheets','emit','toString','slice','forEach','has','col','destroy','handler','pipe','resume','search','push','end','stream','rootpath','unpipe','model','getRow','lastIndexOf','commit','getWorksheet','Workbook','isNumber'];a15_0x2025=function(){return _0xecc689;};return a15_0x2025();}class ExcelStream{constructor(_0x5cb36e){const _0x3876cf=a15_0x26099b;this[_0x3876cf(0x213)]=new Map(),this[_0x3876cf(0x22d)]=_0x5cb36e;}get[a15_0x26099b(0x210)](){const _0xfbda6=a15_0x26099b;return!this[_0xfbda6(0x225)]&&(this[_0xfbda6(0x225)]=new exceljs[(_0xfbda6(0x203))][(_0xfbda6(0x22a))][(_0xfbda6(0x210))](this['filepath'],{'worksheets':_0xfbda6(0x1f6),'sharedStrings':'ignore','hyperlinks':_0xfbda6(0x211),'styles':_0xfbda6(0x211)})),this[_0xfbda6(0x225)];}get[a15_0x26099b(0x219)](){const _0xc4b6cf=a15_0x26099b;return!this[_0xc4b6cf(0x214)]&&(this[_0xc4b6cf(0x214)]=new exceljs[(_0xc4b6cf(0x203))][(_0xc4b6cf(0x22a))][(_0xc4b6cf(0x219))]({'filename':this[_0xc4b6cf(0x22d)],'useStyles':!![],'useSharedStrings':![]})),this[_0xc4b6cf(0x214)];}static[a15_0x26099b(0x234)](_0x232902,_0x4f1d={'suffix':['xls',a15_0x26099b(0x22a)]}){return new Promise(async(_0x4902db,_0x636d9a)=>{const _0x46994e=a15_0x1dce,_0x4644fc=_0x232902[_0x46994e(0x21e)]((_0x232902[_0x46994e(0x21d)]('/')>-0x1?_0x232902[_0x46994e(0x208)]('/'):_0x232902[_0x46994e(0x208)]('\x5c'))+0x1),_0x11759d=path[_0x46994e(0x1f3)](((_0x4f1d===null||_0x4f1d===void 0x0?void 0x0:_0x4f1d[_0x46994e(0x204)])&&!_0x232902[_0x46994e(0x222)](_0x4f1d[_0x46994e(0x204)])?_0x4f1d[_0x46994e(0x204)]+'/'+_0x232902:'/'+_0x232902)['replace'](/(\\|\/)/g,'/')[_0x46994e(0x21f)](/\/{2,}/g,'/'));if(!((_0x4f1d===null||_0x4f1d===void 0x0?void 0x0:_0x4f1d[_0x46994e(0x22c)])?_0x4f1d[_0x46994e(0x22c)]:[_0x46994e(0x23e),'xlsx'])['includes'](_0x4644fc[_0x46994e(0x21e)](_0x4644fc[_0x46994e(0x208)]('.')+0x1)))return _0x636d9a(_0x46994e(0x1f0));const _0x131ae5=(_0x11759d+'/'+_0x4644fc)[_0x46994e(0x21f)](/(\\|\/)/g,'/')[_0x46994e(0x21f)](/\/{2,}/g,'/');if(!fs[_0x46994e(0x229)](_0x131ae5)){!fs[_0x46994e(0x229)](_0x11759d)&&fs['mkdirSync'](_0x11759d,{'recursive':!![]});const _0x7b3216=new exceljs[(_0x46994e(0x20b))]();await _0x7b3216['xlsx']['writeFile'](_0x131ae5);}return _0x4902db(new ExcelStream(_0x131ae5));});}async['writer'](_0x4c1f12,_0x46ae54,_0x3a4f83=0x0){const _0x598ea5=a15_0x26099b;var _0x3838a5;const _0x5ceaf7=this['getWorkbookWriterSheet'](_0x3a4f83,!![]),_0x236f82={},_0x6c69d8=[];if(_0x5ceaf7&&(Array[_0x598ea5(0x243)](_0x46ae54)||isReadableStream(_0x46ae54))){for(const _0x38d153 in _0x4c1f12){_0x236f82[_0x4c1f12[_0x38d153][_0x598ea5(0x20e)]]=_0x4c1f12[_0x38d153][_0x598ea5(0x228)],_0x6c69d8[_0x598ea5(0x201)]({'header':_0x4c1f12[_0x38d153]['header'],'key':(_0x3838a5=_0x4c1f12[_0x38d153])===null||_0x3838a5===void 0x0?void 0x0:_0x3838a5[_0x598ea5(0x20e)][_0x598ea5(0x21f)](/\./g,'_')});}(_0x5ceaf7===null||_0x5ceaf7===void 0x0?void 0x0:_0x5ceaf7[_0x598ea5(0x240)])!=_0x6c69d8&&(_0x5ceaf7[_0x598ea5(0x240)]=_0x6c69d8);const _0x2fd30f=0x64,_0x570ae7=Array[_0x598ea5(0x243)](_0x46ae54)?stream_1[_0x598ea5(0x22b)][_0x598ea5(0x244)](this[_0x598ea5(0x212)](_0x46ae54,_0x2fd30f),{'objectMode':!![]}):_0x46ae54,_0x8d69f8=new stream_1['Transform']({'objectMode':!![],'highWaterMark':_0x2fd30f,'transform':async function(_0x58c1b6,_0xbb3c3b,_0x3ab04f){const _0x40b135=_0x598ea5;Array[_0x40b135(0x243)](_0x58c1b6)&&_0x58c1b6[_0x40b135(0x1f2)]>0x0&&_0x58c1b6[_0x40b135(0x1f9)](_0x358832=>{const _0x189aca=_0x40b135;this[_0x189aca(0x201)](_0x358832);}),_0x3ab04f();}});let _0x1b09ac=0x0;const _0x3cfd29=new stream_1['Writable']({'objectMode':!![],'highWaterMark':_0x2fd30f,async 'write'(_0x15dea3,_0x2b0d47,_0x217acb){const _0x2dd60d=_0x598ea5;var _0x40d9f0;try{const _0x45cd56=_0x5ceaf7['addRow']({});for(let _0x3f3694 in _0x4c1f12){const _0x2cd326=_0x4c1f12[_0x3f3694][_0x2dd60d(0x20e)][_0x2dd60d(0x21f)](/\./g,'_'),_0x4a30c5=_0x5ceaf7[_0x2dd60d(0x217)](_0x2cd326),_0x1c8c79=_0x45cd56===null||_0x45cd56===void 0x0?void 0x0:_0x45cd56[_0x2dd60d(0x232)](_0x2cd326);typeof((_0x40d9f0=_0x4c1f12[_0x3f3694])===null||_0x40d9f0===void 0x0?void 0x0:_0x40d9f0['handler'])=='function'?_0x1c8c79[_0x2dd60d(0x236)]=await _0x4c1f12[_0x3f3694]['handler'](_0x15dea3,{'row':_0x45cd56,'col':_0x4a30c5,'cell':_0x1c8c79,'sheet':_0x5ceaf7})||'':_0x1c8c79[_0x2dd60d(0x236)]=lodash[_0x2dd60d(0x21b)](_0x15dea3,_0x4c1f12[_0x3f3694][_0x2dd60d(0x20e)],'');}_0x1b09ac++,_0x45cd56[_0x2dd60d(0x209)](),_0x217acb();}catch(_0x589bb8){_0x217acb(_0x589bb8);}},async 'final'(_0x4c969d){try{_0x4c969d();}catch(_0x316947){_0x4c969d(_0x316947);}}});return new Promise((_0x2b3e7d,_0x256052)=>{const _0x10919c=_0x598ea5,_0x597fc2=_0x13e294=>{const _0x7b8ed7=a15_0x1dce;_0x570ae7['destroy'](),_0x8d69f8['destroy'](),_0x3cfd29[_0x7b8ed7(0x1fc)](),_0x256052(_0x13e294);};_0x570ae7['on'](_0x10919c(0x22e),_0x597fc2)[_0x10919c(0x1fe)](_0x8d69f8)['on']('error',_0x597fc2)[_0x10919c(0x1fe)](_0x3cfd29)['on'](_0x10919c(0x22e),_0x597fc2)['on']('finish',()=>{const _0x503566=_0x10919c;try{_0x570ae7[_0x503566(0x205)](),_0x8d69f8['unpipe'](),_0x8d69f8[_0x503566(0x202)](),_0x3cfd29['end'](),_0x2b3e7d({'rowCount':_0x1b09ac,'worksheet':_0x5ceaf7,'done':()=>_0x5ceaf7[_0x503566(0x209)]()});}catch(_0xff86ff){_0x256052(_0xff86ff);}}),Array[_0x10919c(0x243)](_0x46ae54)&&_0x570ae7[_0x10919c(0x1ff)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x26099b(0x230)](_0x5cae1c,_0x43714e,_0x1ce038={'sheets':0x0}){const _0x4bd2da=a15_0x26099b;var _0x3635a9,_0x5b3c25,_0x55447c;const _0x39b5ac=(_0x1ce038===null||_0x1ce038===void 0x0?void 0x0:_0x1ce038[_0x4bd2da(0x1f5)])?Array[_0x4bd2da(0x243)](_0x1ce038[_0x4bd2da(0x1f5)])?_0x1ce038[_0x4bd2da(0x1f5)]:[_0x1ce038[_0x4bd2da(0x1f5)]]:[0x0],_0x9a5891=_0x3f8540=>new Promise(async(_0x50c388,_0x49a00a)=>{const _0x3fc177=_0x4bd2da,_0x43057b=_0x3f8540[_0x3fc177(0x207)](0x1),_0x30610c=await new Promise(_0x476d0f=>{const _0x305c17=_0x3fc177,_0x1c37c6={};_0x43057b[_0x305c17(0x22f)]((_0x64e26,_0x1aaac3)=>{const _0x166418=_0x305c17;for(const _0x50ce22 of _0x5cae1c){if(_0x64e26['value']==_0x50ce22[_0x166418(0x228)])_0x1c37c6[_0x50ce22[_0x166418(0x20e)]]={'header':_0x64e26[_0x166418(0x1fb)],'handler':_0x50ce22[_0x166418(0x1fd)]};else{if(!_0x1c37c6[_0x50ce22[_0x166418(0x20e)]])try{const _0x5f436e=_0x43057b&&_0x43057b[_0x166418(0x232)](_0x50ce22[_0x166418(0x228)]);_0x5f436e&&(_0x1c37c6[_0x50ce22[_0x166418(0x20e)]]={'header':_0x5f436e[_0x166418(0x1fb)],'handler':_0x50ce22[_0x166418(0x1fd)]});}catch{}}}_0x43057b[_0x166418(0x21a)]==_0x1aaac3&&_0x476d0f(_0x1c37c6);});});_0x3f8540['on'](_0x3fc177(0x239),_0x3897ec=>_0x50c388(_0x3f8540)),_0x3f8540['on'](_0x3fc177(0x22e),_0x38a658=>_0x49a00a(_0x38a658)),_0x3f8540['on'](_0x3fc177(0x237),async _0x14a287=>{const _0x56d43e=_0x3fc177;var _0x3ff54e;if(typeof(_0x14a287===null||_0x14a287===void 0x0?void 0x0:_0x14a287[_0x56d43e(0x232)])==_0x56d43e(0x21c)){const _0x325386={};_0x1e43bd:for(const _0x104be2 in _0x30610c){if(_0x30610c[_0x104be2][_0x56d43e(0x228)]){const _0x4b940c=_0x14a287[_0x56d43e(0x232)](_0x30610c[_0x104be2][_0x56d43e(0x228)]);if(!_0x4b940c)continue _0x1e43bd;try{_0x4b940c['toString']();}catch(_0x486a8d){_0x4b940c[_0x56d43e(0x1f7)]=()=>{const _0x46fcf2=_0x56d43e;var _0x219903;return''+(((_0x219903=_0x4b940c===null||_0x4b940c===void 0x0?void 0x0:_0x4b940c[_0x46fcf2(0x206)])===null||_0x219903===void 0x0?void 0x0:_0x219903[_0x46fcf2(0x236)])||'');};}typeof((_0x3ff54e=_0x30610c[_0x104be2])===null||_0x3ff54e===void 0x0?void 0x0:_0x3ff54e['handler'])==_0x56d43e(0x21c)?_0x325386[_0x104be2]=await _0x30610c[_0x104be2][_0x56d43e(0x1fd)](lodash[_0x56d43e(0x238)]({},_0x104be2,(_0x4b940c===null||_0x4b940c===void 0x0?void 0x0:_0x4b940c[_0x56d43e(0x1f7)]())||''),_0x4b940c[_0x56d43e(0x206)]):_0x325386[_0x104be2]=(_0x4b940c===null||_0x4b940c===void 0x0?void 0x0:_0x4b940c[_0x56d43e(0x1f7)]())||'';}}Object[_0x56d43e(0x224)](_0x325386)[_0x56d43e(0x1f2)]>0x0&&Object[_0x56d43e(0x23c)](_0x325386)['filter'](_0x58ef93=>_0x58ef93!='')[_0x56d43e(0x1f2)]>0x0&&await _0x43714e(_0x325386,{'sheet':_0x3f8540,'row':_0x14a287});}}),await _0x3f8540['read']();});for(const _0x430627 of _0x39b5ac){const _0x4afac8=lodash[_0x4bd2da(0x20c)](_0x430627)?((_0x5b3c25=(_0x3635a9=this[_0x4bd2da(0x210)])===null||_0x3635a9===void 0x0?void 0x0:_0x3635a9[_0x4bd2da(0x1f1)])===null||_0x5b3c25===void 0x0?void 0x0:_0x5b3c25[_0x430627])||undefined:(_0x55447c=this['WorkbookReader'])===null||_0x55447c===void 0x0?void 0x0:_0x55447c[_0x4bd2da(0x20a)](_0x430627);_0x4afac8&&await _0x9a5891(_0x4afac8);}}[a15_0x26099b(0x231)](_0x906b7b,_0x1008a9=![]){const _0x3e0055=a15_0x26099b;var _0x2d183d,_0x360e68;let _0x522e9e=this[_0x3e0055(0x213)][_0x3e0055(0x1fa)](_0x906b7b)?this['_WorksheetWriterMap'][_0x3e0055(0x21b)](_0x906b7b):(_0x2d183d=this[_0x3e0055(0x219)])===null||_0x2d183d===void 0x0?void 0x0:_0x2d183d[_0x3e0055(0x20a)](_0x906b7b);return!_0x522e9e&&_0x1008a9&&(_0x522e9e=(_0x360e68=this[_0x3e0055(0x219)])===null||_0x360e68===void 0x0?void 0x0:_0x360e68[_0x3e0055(0x23f)](lodash[_0x3e0055(0x20c)](_0x906b7b)?undefined:''+_0x906b7b,{'views':[{'state':_0x3e0055(0x235),'ySplit':0x1}]}),this[_0x3e0055(0x213)]['set'](_0x906b7b,_0x522e9e)),_0x522e9e;}async[a15_0x26099b(0x233)](){const _0x572959=a15_0x26099b;var _0x1ef27b;return await((_0x1ef27b=this[_0x572959(0x219)])===null||_0x1ef27b===void 0x0?void 0x0:_0x1ef27b[_0x572959(0x209)]()),this;}*[a15_0x26099b(0x212)](_0x37799c,_0x5603b6){const _0x1b11de=a15_0x26099b;for(let _0x3e394c=0x0;_0x3e394c<_0x37799c[_0x1b11de(0x1f2)];_0x3e394c+=_0x5603b6){yield _0x37799c[_0x1b11de(0x1f8)](_0x3e394c,_0x3e394c+_0x5603b6);}}}exports[a15_0x26099b(0x227)]=ExcelStream;
|
|
1
|
+
const a15_0x287f77=a15_0x3c99;(function(_0x4aaf5a,_0xf89539){const _0x29854a=a15_0x3c99,_0xe96e59=_0x4aaf5a();while(!![]){try{const _0x24daaf=-parseInt(_0x29854a(0x1ef))/0x1+parseInt(_0x29854a(0x1dc))/0x2+parseInt(_0x29854a(0x1c7))/0x3+-parseInt(_0x29854a(0x1d6))/0x4+-parseInt(_0x29854a(0x1bd))/0x5*(-parseInt(_0x29854a(0x1fa))/0x6)+parseInt(_0x29854a(0x1b8))/0x7*(-parseInt(_0x29854a(0x1f2))/0x8)+parseInt(_0x29854a(0x1ad))/0x9*(-parseInt(_0x29854a(0x1de))/0xa);if(_0x24daaf===_0xf89539)break;else _0xe96e59['push'](_0xe96e59['shift']());}catch(_0x5ed3b0){_0xe96e59['push'](_0xe96e59['shift']());}}}(a15_0xc795,0xe15b4));const a15_0x229493=(function(){let _0x3ba95f=!![];return function(_0x4152fd,_0x3b64d1){const _0x4870dc=_0x3ba95f?function(){const _0x3fe159=a15_0x3c99;if(_0x3b64d1){const _0x9416d4=_0x3b64d1[_0x3fe159(0x1fb)](_0x4152fd,arguments);return _0x3b64d1=null,_0x9416d4;}}:function(){};return _0x3ba95f=![],_0x4870dc;};}()),a15_0x1fe32a=a15_0x229493(this,function(){const _0x3e5773=a15_0x3c99;return a15_0x1fe32a[_0x3e5773(0x1b5)]()[_0x3e5773(0x1c6)](_0x3e5773(0x1cd))[_0x3e5773(0x1b5)]()[_0x3e5773(0x1b9)](a15_0x1fe32a)[_0x3e5773(0x1c6)](_0x3e5773(0x1cd));});a15_0x1fe32a();'use strict';function a15_0xc795(){const _0x33a134=['toString','value','slice','6041emLDDF','constructor','end','getWorkbookWriterSheet','model','4387355lMHPVr','exceljs','resume','eachCell','col','error','replace','destroy','getWorksheet','search','3566616xDVABF','ExcelStream','suffix','push','Readable','indexOf','(((.+)+)+)+$','get','getCell','stream','rootpath','commit','sheets','defineProperty','getRow','2170384FNIPXd','Transform','instance','header','includes','from','1149836SPhCwF','filepath','669860VzCdjq','lastIndexOf','set','xls','reader','function','addWorksheet','startsWith','WorkbookWriter','values','handler','read','length','__esModule','_WorkbookReader','_WorkbookWriter','isNumber','633769rOHKNm','substring','existsSync','12536vUwRqP','finish','lodash','finished','pipe','isArray','addRow','emit','12ltMmgm','apply','chunkArray','columns','pause','xlsx','row','filter','mkdirSync','9LBXFDF','_WorksheetWriterMap','ignore','forEach','key','WorkbookReader','writer','Writable'];a15_0xc795=function(){return _0x33a134;};return a15_0xc795();}Object[a15_0x287f77(0x1d4)](exports,a15_0x287f77(0x1eb),{'value':!![]}),exports[a15_0x287f77(0x1c8)]=void 0x0;const fs=require('fs'),path=require('path'),lodash=require(a15_0x287f77(0x1f4)),exceljs=require(a15_0x287f77(0x1be)),stream_1=require(a15_0x287f77(0x1d0));function isReadableStream(_0x1c84f2){const _0x314c02=a15_0x287f77;return _0x1c84f2&&typeof _0x1c84f2[_0x314c02(0x1f6)]==='function'&&typeof _0x1c84f2['on']===_0x314c02(0x1e3)&&typeof _0x1c84f2['read']===_0x314c02(0x1e3)&&typeof _0x1c84f2[_0x314c02(0x1fe)]===_0x314c02(0x1e3)&&typeof _0x1c84f2['resume']===_0x314c02(0x1e3);}function a15_0x3c99(_0x2f0fad,_0x1197e6){const _0x557c89=a15_0xc795();return a15_0x3c99=function(_0x1fe32a,_0x229493){_0x1fe32a=_0x1fe32a-0x1aa;let _0xc79571=_0x557c89[_0x1fe32a];return _0xc79571;},a15_0x3c99(_0x2f0fad,_0x1197e6);}class ExcelStream{constructor(_0x447b05){const _0x1b4970=a15_0x287f77;this[_0x1b4970(0x1ae)]=new Map(),this[_0x1b4970(0x1dd)]=_0x447b05;}get[a15_0x287f77(0x1b2)](){const _0x360263=a15_0x287f77;return!this[_0x360263(0x1ec)]&&(this[_0x360263(0x1ec)]=new exceljs[(_0x360263(0x1d0))][(_0x360263(0x1ff))][(_0x360263(0x1b2))](this[_0x360263(0x1dd)],{'worksheets':_0x360263(0x1f9),'sharedStrings':_0x360263(0x1af),'hyperlinks':_0x360263(0x1af),'styles':_0x360263(0x1af)})),this[_0x360263(0x1ec)];}get[a15_0x287f77(0x1e6)](){const _0x59060c=a15_0x287f77;return!this[_0x59060c(0x1ed)]&&(this[_0x59060c(0x1ed)]=new exceljs[(_0x59060c(0x1d0))]['xlsx']['WorkbookWriter']({'filename':this[_0x59060c(0x1dd)],'useStyles':!![],'useSharedStrings':![]})),this['_WorkbookWriter'];}static[a15_0x287f77(0x1d8)](_0x17a393,_0xe8fba5={'suffix':[a15_0x287f77(0x1e1),a15_0x287f77(0x1ff)]}){return new Promise(async(_0x47bd10,_0x1988c8)=>{const _0x498436=a15_0x3c99,_0x4cefc5=_0x17a393[_0x498436(0x1f0)]((_0x17a393[_0x498436(0x1cc)]('/')>-0x1?_0x17a393[_0x498436(0x1df)]('/'):_0x17a393[_0x498436(0x1df)]('\x5c'))+0x1),_0x503a39=path['dirname'](((_0xe8fba5===null||_0xe8fba5===void 0x0?void 0x0:_0xe8fba5[_0x498436(0x1d1)])&&!_0x17a393[_0x498436(0x1e5)](_0xe8fba5['rootpath'])?_0xe8fba5[_0x498436(0x1d1)]+'/'+_0x17a393:'/'+_0x17a393)[_0x498436(0x1c3)](/(\\|\/)/g,'/')[_0x498436(0x1c3)](/\/{2,}/g,'/'));if(!((_0xe8fba5===null||_0xe8fba5===void 0x0?void 0x0:_0xe8fba5[_0x498436(0x1c9)])?_0xe8fba5[_0x498436(0x1c9)]:[_0x498436(0x1e1),_0x498436(0x1ff)])[_0x498436(0x1da)](_0x4cefc5[_0x498436(0x1f0)](_0x4cefc5[_0x498436(0x1df)]('.')+0x1)))return _0x1988c8('文件名格式错误');const _0x3144cf=(_0x503a39+'/'+_0x4cefc5)[_0x498436(0x1c3)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');if(!fs[_0x498436(0x1f1)](_0x3144cf)){!fs[_0x498436(0x1f1)](_0x503a39)&&fs[_0x498436(0x1ac)](_0x503a39,{'recursive':!![]});const _0x553836=new exceljs['Workbook']();await _0x553836['xlsx']['writeFile'](_0x3144cf);}return _0x47bd10(new ExcelStream(_0x3144cf));});}async[a15_0x287f77(0x1b3)](_0x29d950,_0x1ba8a8,_0x5694df=0x0){const _0x4ee4eb=a15_0x287f77;var _0x1bb718;const _0x59d55f=this[_0x4ee4eb(0x1bb)](_0x5694df,!![]),_0x457447={},_0x1ab119=[];if(_0x59d55f&&(Array[_0x4ee4eb(0x1f7)](_0x1ba8a8)||isReadableStream(_0x1ba8a8))){for(const _0x433427 in _0x29d950){_0x457447[_0x29d950[_0x433427][_0x4ee4eb(0x1b1)]]=_0x29d950[_0x433427]['header'],_0x1ab119[_0x4ee4eb(0x1ca)]({'header':_0x29d950[_0x433427][_0x4ee4eb(0x1d9)],'key':(_0x1bb718=_0x29d950[_0x433427])===null||_0x1bb718===void 0x0?void 0x0:_0x1bb718['key'][_0x4ee4eb(0x1c3)](/\./g,'_')});}(_0x59d55f===null||_0x59d55f===void 0x0?void 0x0:_0x59d55f[_0x4ee4eb(0x1fd)])!=_0x1ab119&&(_0x59d55f[_0x4ee4eb(0x1fd)]=_0x1ab119);const _0x353312=0x64,_0x50d54c=Array['isArray'](_0x1ba8a8)?stream_1[_0x4ee4eb(0x1cb)][_0x4ee4eb(0x1db)](this[_0x4ee4eb(0x1fc)](_0x1ba8a8,_0x353312),{'objectMode':!![]}):_0x1ba8a8,_0x45556a=new stream_1[(_0x4ee4eb(0x1d7))]({'objectMode':!![],'highWaterMark':_0x353312,'transform':async function(_0x5e8916,_0x29075d,_0x447b07){const _0x9b103d=_0x4ee4eb;Array[_0x9b103d(0x1f7)](_0x5e8916)&&_0x5e8916[_0x9b103d(0x1ea)]>0x0&&_0x5e8916[_0x9b103d(0x1b0)](_0xc87079=>{this['push'](_0xc87079);}),_0x447b07();}});let _0x5d9b66=0x0;const _0x598978=new stream_1[(_0x4ee4eb(0x1b4))]({'objectMode':!![],'highWaterMark':_0x353312,async 'write'(_0x215178,_0xec632f,_0x469935){const _0x435e6b=_0x4ee4eb;var _0x1f2b5a;try{const _0x5d669c=_0x59d55f[_0x435e6b(0x1f8)]({});for(let _0x5ac9f7 in _0x29d950){const _0x3a0d4a=_0x29d950[_0x5ac9f7][_0x435e6b(0x1b1)][_0x435e6b(0x1c3)](/\./g,'_'),_0xcf8993=_0x59d55f['getColumn'](_0x3a0d4a),_0x44822d=_0x5d669c===null||_0x5d669c===void 0x0?void 0x0:_0x5d669c[_0x435e6b(0x1cf)](_0x3a0d4a);typeof((_0x1f2b5a=_0x29d950[_0x5ac9f7])===null||_0x1f2b5a===void 0x0?void 0x0:_0x1f2b5a[_0x435e6b(0x1e8)])==_0x435e6b(0x1e3)?_0x44822d[_0x435e6b(0x1b6)]=await _0x29d950[_0x5ac9f7][_0x435e6b(0x1e8)](_0x215178,{'row':_0x5d669c,'col':_0xcf8993,'cell':_0x44822d,'sheet':_0x59d55f})||'':_0x44822d[_0x435e6b(0x1b6)]=lodash[_0x435e6b(0x1ce)](_0x215178,_0x29d950[_0x5ac9f7][_0x435e6b(0x1b1)],'');}_0x5d9b66++,_0x5d669c['commit'](),_0x469935();}catch(_0x255f41){_0x469935(_0x255f41);}},async 'final'(_0xe2d12d){try{_0xe2d12d();}catch(_0x51d382){_0xe2d12d(_0x51d382);}}});return new Promise((_0x4fb129,_0x3e4ba5)=>{const _0x385013=_0x4ee4eb,_0x30febf=_0x573da6=>{const _0x2ea2c1=a15_0x3c99;_0x50d54c[_0x2ea2c1(0x1c4)](),_0x45556a[_0x2ea2c1(0x1c4)](),_0x598978['destroy'](),_0x3e4ba5(_0x573da6);};_0x50d54c['on'](_0x385013(0x1c2),_0x30febf)['pipe'](_0x45556a)['on']('error',_0x30febf)[_0x385013(0x1f6)](_0x598978)['on'](_0x385013(0x1c2),_0x30febf)['on'](_0x385013(0x1f3),()=>{const _0x38b505=_0x385013;try{_0x50d54c['unpipe'](),_0x45556a['unpipe'](),_0x45556a[_0x38b505(0x1ba)](),_0x598978[_0x38b505(0x1ba)](),_0x4fb129({'rowCount':_0x5d9b66,'worksheet':_0x59d55f,'done':()=>_0x59d55f[_0x38b505(0x1d2)]()});}catch(_0x346fb1){_0x3e4ba5(_0x346fb1);}}),Array[_0x385013(0x1f7)](_0x1ba8a8)&&_0x50d54c[_0x385013(0x1bf)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x287f77(0x1e2)](_0xd6d69b,_0xb9ec5e,_0x551438={'sheets':0x0}){const _0x280181=a15_0x287f77;var _0xd981c0,_0x56fe3c,_0x17d1bd;const _0x3e2769=(_0x551438===null||_0x551438===void 0x0?void 0x0:_0x551438[_0x280181(0x1d3)])?Array[_0x280181(0x1f7)](_0x551438[_0x280181(0x1d3)])?_0x551438[_0x280181(0x1d3)]:[_0x551438[_0x280181(0x1d3)]]:[0x0],_0x188021=_0xef54df=>new Promise(async(_0x3a717b,_0x5c535a)=>{const _0x295baa=_0x280181,_0x4fc4ab=_0xef54df[_0x295baa(0x1d5)](0x1),_0x5f4a8a=await new Promise(_0x448826=>{const _0x5bc8d2=_0x295baa,_0x14e179={};_0x4fc4ab[_0x5bc8d2(0x1c0)]((_0x19942c,_0xbad6af)=>{const _0x58d934=_0x5bc8d2;for(const _0x398ca3 of _0xd6d69b){if(_0x19942c[_0x58d934(0x1b6)]==_0x398ca3[_0x58d934(0x1d9)])_0x14e179[_0x398ca3['key']]={'header':_0x19942c[_0x58d934(0x1c1)],'handler':_0x398ca3[_0x58d934(0x1e8)]};else{if(!_0x14e179[_0x398ca3['key']])try{const _0x4cc73e=_0x4fc4ab&&_0x4fc4ab[_0x58d934(0x1cf)](_0x398ca3[_0x58d934(0x1d9)]);_0x4cc73e&&(_0x14e179[_0x398ca3[_0x58d934(0x1b1)]]={'header':_0x4cc73e[_0x58d934(0x1c1)],'handler':_0x398ca3[_0x58d934(0x1e8)]});}catch{}}}_0x4fc4ab['cellCount']==_0xbad6af&&_0x448826(_0x14e179);});});_0xef54df['on'](_0x295baa(0x1f5),_0x5f1ed4=>_0x3a717b(_0xef54df)),_0xef54df['on'](_0x295baa(0x1c2),_0x3c2762=>_0x5c535a(_0x3c2762)),_0xef54df['on'](_0x295baa(0x1aa),async _0x52612e=>{const _0x124a7d=_0x295baa;var _0x113c09;if(typeof(_0x52612e===null||_0x52612e===void 0x0?void 0x0:_0x52612e[_0x124a7d(0x1cf)])==_0x124a7d(0x1e3)){const _0x355054={};_0x54f6e7:for(const _0x4268a7 in _0x5f4a8a){if(_0x5f4a8a[_0x4268a7][_0x124a7d(0x1d9)]){const _0x54f820=_0x52612e[_0x124a7d(0x1cf)](_0x5f4a8a[_0x4268a7][_0x124a7d(0x1d9)]);if(!_0x54f820)continue _0x54f6e7;try{_0x54f820[_0x124a7d(0x1b5)]();}catch(_0x90ab47){_0x54f820['toString']=()=>{const _0x116324=_0x124a7d;var _0x2b4dbf;return''+(((_0x2b4dbf=_0x54f820===null||_0x54f820===void 0x0?void 0x0:_0x54f820[_0x116324(0x1bc)])===null||_0x2b4dbf===void 0x0?void 0x0:_0x2b4dbf[_0x116324(0x1b6)])||'');};}typeof((_0x113c09=_0x5f4a8a[_0x4268a7])===null||_0x113c09===void 0x0?void 0x0:_0x113c09[_0x124a7d(0x1e8)])=='function'?_0x355054[_0x4268a7]=await _0x5f4a8a[_0x4268a7]['handler'](lodash[_0x124a7d(0x1e0)]({},_0x4268a7,(_0x54f820===null||_0x54f820===void 0x0?void 0x0:_0x54f820[_0x124a7d(0x1b5)]())||''),_0x54f820[_0x124a7d(0x1bc)]):_0x355054[_0x4268a7]=(_0x54f820===null||_0x54f820===void 0x0?void 0x0:_0x54f820[_0x124a7d(0x1b5)]())||'';}}Object['keys'](_0x355054)['length']>0x0&&Object[_0x124a7d(0x1e7)](_0x355054)[_0x124a7d(0x1ab)](_0x2c0095=>_0x2c0095!='')[_0x124a7d(0x1ea)]>0x0&&await _0xb9ec5e(_0x355054,{'sheet':_0xef54df,'row':_0x52612e});}}),await _0xef54df[_0x295baa(0x1e9)]();});for(const _0x3314c9 of _0x3e2769){const _0x7b0859=lodash[_0x280181(0x1ee)](_0x3314c9)?((_0x56fe3c=(_0xd981c0=this['WorkbookReader'])===null||_0xd981c0===void 0x0?void 0x0:_0xd981c0['worksheets'])===null||_0x56fe3c===void 0x0?void 0x0:_0x56fe3c[_0x3314c9])||undefined:(_0x17d1bd=this['WorkbookReader'])===null||_0x17d1bd===void 0x0?void 0x0:_0x17d1bd[_0x280181(0x1c5)](_0x3314c9);_0x7b0859&&await _0x188021(_0x7b0859);}}['getWorkbookWriterSheet'](_0xb2684d,_0x45c4a0=![]){const _0x274163=a15_0x287f77;var _0x4c6212,_0xf807cb;let _0x451f20=this[_0x274163(0x1ae)]['has'](_0xb2684d)?this['_WorksheetWriterMap'][_0x274163(0x1ce)](_0xb2684d):(_0x4c6212=this[_0x274163(0x1e6)])===null||_0x4c6212===void 0x0?void 0x0:_0x4c6212[_0x274163(0x1c5)](_0xb2684d);return!_0x451f20&&_0x45c4a0&&(_0x451f20=(_0xf807cb=this[_0x274163(0x1e6)])===null||_0xf807cb===void 0x0?void 0x0:_0xf807cb[_0x274163(0x1e4)](lodash[_0x274163(0x1ee)](_0xb2684d)?undefined:''+_0xb2684d,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x274163(0x1ae)][_0x274163(0x1e0)](_0xb2684d,_0x451f20)),_0x451f20;}async['save'](){const _0x5c5e49=a15_0x287f77;var _0x4b8ebb;return await((_0x4b8ebb=this['WorkbookWriter'])===null||_0x4b8ebb===void 0x0?void 0x0:_0x4b8ebb[_0x5c5e49(0x1d2)]()),this;}*[a15_0x287f77(0x1fc)](_0x400f8a,_0x16c8eb){const _0x5bca5b=a15_0x287f77;for(let _0x3f42b1=0x0;_0x3f42b1<_0x400f8a[_0x5bca5b(0x1ea)];_0x3f42b1+=_0x16c8eb){yield _0x400f8a[_0x5bca5b(0x1b7)](_0x3f42b1,_0x3f42b1+_0x16c8eb);}}}exports[a15_0x287f77(0x1c8)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x235333=a16_0x451c;(function(_0x4581a7,_0x4eb507){var _0x3c2090=a16_0x451c,_0x2523ef=_0x4581a7();while(!![]){try{var _0x2a26fd=-parseInt(_0x3c2090(0x1c3))/0x1*(parseInt(_0x3c2090(0x1be))/0x2)+parseInt(_0x3c2090(0x1c2))/0x3*(parseInt(_0x3c2090(0x1c5))/0x4)+-parseInt(_0x3c2090(0x1c9))/0x5*(parseInt(_0x3c2090(0x1cc))/0x6)+-parseInt(_0x3c2090(0x1d2))/0x7*(-parseInt(_0x3c2090(0x1bf))/0x8)+parseInt(_0x3c2090(0x1cd))/0x9*(-parseInt(_0x3c2090(0x1bd))/0xa)+parseInt(_0x3c2090(0x1c0))/0xb+-parseInt(_0x3c2090(0x1bb))/0xc*(-parseInt(_0x3c2090(0x1d3))/0xd);if(_0x2a26fd===_0x4eb507)break;else _0x2523ef['push'](_0x2523ef['shift']());}catch(_0x530112){_0x2523ef['push'](_0x2523ef['shift']());}}}(a16_0x48b2,0x4e9e6));var a16_0x345b1d=(function(){var _0x4e6e26=!![];return function(_0x1d4532,_0x51aa4b){var _0x1859f0=_0x4e6e26?function(){var _0x57b01c=a16_0x451c;if(_0x51aa4b){var _0x248640=_0x51aa4b[_0x57b01c(0x1c4)](_0x1d4532,arguments);return _0x51aa4b=null,_0x248640;}}:function(){};return _0x4e6e26=![],_0x1859f0;};}()),a16_0x193638=a16_0x345b1d(this,function(){var _0x592cb6=a16_0x451c;return a16_0x193638['toString']()[_0x592cb6(0x1cb)](_0x592cb6(0x1ca))[_0x592cb6(0x1bc)]()[_0x592cb6(0x1c8)](a16_0x193638)['search'](_0x592cb6(0x1ca));});function a16_0x451c(_0x1bc547,_0x5f3a47){var _0x22d721=a16_0x48b2();return a16_0x451c=function(_0x193638,_0x345b1d){_0x193638=_0x193638-0x1bb;var _0x48b25c=_0x22d721[_0x193638];return _0x48b25c;},a16_0x451c(_0x1bc547,_0x5f3a47);}a16_0x193638();'use strict';Object[a16_0x235333(0x1cf)](exports,'__esModule',{'value':!![]}),exports[a16_0x235333(0x1c7)]=exports[a16_0x235333(0x1c6)]=exports[a16_0x235333(0x1d0)]=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a16_0x235333(0x1d4)]=a16_0x235333(0x1d1),exports['ACTION_ROUTE_KEY']=a16_0x235333(0x1ce),exports[a16_0x235333(0x1d0)]=a16_0x235333(0x1c1),exports['APPSCONFIG_KEY']='anncic-api:apps:config';class AppsConfigTmp{}function a16_0x48b2(){var _0x128d3f=['(((.+)+)+)+$','search','6WwnqHC','1325529qjhRWU','anncic-api:action:route','defineProperty','ACTION_RESPONSE_KEY','anncic-api:action','63Clxhrf','26MVcbPI','ACTION_KEY','996756mtVsXw','toString','40LJQXCK','15920qPPxow','339064fTectz','5192341eSrVJQ','anncic-api:action:response','3003pgdluK','52KopjOq','apply','2444dypJRs','APPSCONFIG_KEY','AppsConfigTmp','constructor','1530745aoGpnc'];a16_0x48b2=function(){return _0x128d3f;};return a16_0x48b2();}exports[a16_0x235333(0x1c7)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x38b561=a17_0x4d51;(function(_0x2bff5f,_0x1cb0e2){var _0x1a9203=a17_0x4d51,_0x5a3dd8=_0x2bff5f();while(!![]){try{var _0x39c061=-parseInt(_0x1a9203(0xd5))/0x1*(parseInt(_0x1a9203(0xb2))/0x2)+parseInt(_0x1a9203(0xd1))/0x3+parseInt(_0x1a9203(0xb1))/0x4+parseInt(_0x1a9203(0xc4))/0x5*(-parseInt(_0x1a9203(0xb4))/0x6)+-parseInt(_0x1a9203(0xba))/0x7+parseInt(_0x1a9203(0xd0))/0x8+parseInt(_0x1a9203(0xc5))/0x9*(parseInt(_0x1a9203(0xb3))/0xa);if(_0x39c061===_0x1cb0e2)break;else _0x5a3dd8['push'](_0x5a3dd8['shift']());}catch(_0x4116b4){_0x5a3dd8['push'](_0x5a3dd8['shift']());}}}(a17_0x3b86,0xaeae5));var a17_0x4338c9=(function(){var _0x4bb724=!![];return function(_0x1aa682,_0x37230c){var _0x4d5ad7=_0x4bb724?function(){if(_0x37230c){var _0x6df211=_0x37230c['apply'](_0x1aa682,arguments);return _0x37230c=null,_0x6df211;}}:function(){};return _0x4bb724=![],_0x4d5ad7;};}()),a17_0x143490=a17_0x4338c9(this,function(){var _0x315798=a17_0x4d51;return a17_0x143490[_0x315798(0xae)]()[_0x315798(0xcb)](_0x315798(0xbc))[_0x315798(0xae)]()[_0x315798(0xcc)](a17_0x143490)[_0x315798(0xcb)](_0x315798(0xbc));});function a17_0x4d51(_0x4be391,_0x4f1d1f){var _0x11445d=a17_0x3b86();return a17_0x4d51=function(_0x143490,_0x4338c9){_0x143490=_0x143490-0xae;var _0x3b8686=_0x11445d[_0x143490];return _0x3b8686;},a17_0x4d51(_0x4be391,_0x4f1d1f);}a17_0x143490();'use strict';var __decorate=this&&this[a17_0x38b561(0xce)]||function(_0x4af0d5,_0x2e1937,_0x264278,_0x21c347){var _0x3c8c1a=a17_0x38b561,_0x357f73=arguments[_0x3c8c1a(0xb0)],_0x53ada6=_0x357f73<0x3?_0x2e1937:_0x21c347===null?_0x21c347=Object[_0x3c8c1a(0xd3)](_0x2e1937,_0x264278):_0x21c347,_0x29cb1c;if(typeof Reflect===_0x3c8c1a(0xc8)&&typeof Reflect[_0x3c8c1a(0xb7)]===_0x3c8c1a(0xaf))_0x53ada6=Reflect[_0x3c8c1a(0xb7)](_0x4af0d5,_0x2e1937,_0x264278,_0x21c347);else{for(var _0x23bca7=_0x4af0d5['length']-0x1;_0x23bca7>=0x0;_0x23bca7--)if(_0x29cb1c=_0x4af0d5[_0x23bca7])_0x53ada6=(_0x357f73<0x3?_0x29cb1c(_0x53ada6):_0x357f73>0x3?_0x29cb1c(_0x2e1937,_0x264278,_0x53ada6):_0x29cb1c(_0x2e1937,_0x264278))||_0x53ada6;}return _0x357f73>0x3&&_0x53ada6&&Object[_0x3c8c1a(0xd2)](_0x2e1937,_0x264278,_0x53ada6),_0x53ada6;},__metadata=this&&this[a17_0x38b561(0xc2)]||function(_0x1fc014,_0x4b6661){var _0x3e5ca8=a17_0x38b561;if(typeof Reflect===_0x3e5ca8(0xc8)&&typeof Reflect[_0x3e5ca8(0xb6)]===_0x3e5ca8(0xaf))return Reflect[_0x3e5ca8(0xb6)](_0x1fc014,_0x4b6661);};Object['defineProperty'](exports,a17_0x38b561(0xc6),{'value':!![]}),exports[a17_0x38b561(0xc7)]=void 0x0;function a17_0x3b86(){var _0x103fc6=['__metadata','_order','5169370SHhOBO','27bGUAzL','__esModule','PageDTO','object','Rule','是否倒序','search','constructor','排序方式','__decorate','number','5844608nwxalF','29877bBaawv','defineProperty','getOwnPropertyDescriptor','min','42989hKChat','toString','function','length','1794480mVdUQM','2KuIKsH','5635760gLyVIJ','6rUteRK','第一页为1,第二页为2','metadata','decorate','RuleType','design:type','7612689XoVsYU','integer','(((.+)+)+)+$','prototype','_isreverse','分页数量','string','_page'];a17_0x3b86=function(){return _0x103fc6;};return a17_0x3b86();}const validator_1=require('@anncic-api/validator');class PageDTO{}exports[a17_0x38b561(0xc7)]=PageDTO,__decorate([(0x0,validator_1[a17_0x38b561(0xc9)])('分页',validator_1[a17_0x38b561(0xb8)][a17_0x38b561(0xcf)]()[a17_0x38b561(0xbb)]()[a17_0x38b561(0xd4)](0x1),a17_0x38b561(0xb5)),__metadata('design:type',Number)],PageDTO[a17_0x38b561(0xbd)],a17_0x38b561(0xc1),void 0x0),__decorate([(0x0,validator_1[a17_0x38b561(0xc9)])(a17_0x38b561(0xbf),validator_1['RuleType']['number']()[a17_0x38b561(0xbb)]()[a17_0x38b561(0xd4)](0x1)),__metadata(a17_0x38b561(0xb9),Number)],PageDTO[a17_0x38b561(0xbd)],'_size',void 0x0),__decorate([(0x0,validator_1['Rule'])(a17_0x38b561(0xcd),validator_1[a17_0x38b561(0xb8)][a17_0x38b561(0xc0)]()['trim']()),__metadata(a17_0x38b561(0xb9),String)],PageDTO[a17_0x38b561(0xbd)],a17_0x38b561(0xc3),void 0x0),__decorate([(0x0,validator_1[a17_0x38b561(0xc9)])(a17_0x38b561(0xca),validator_1[a17_0x38b561(0xb8)]['number']()[a17_0x38b561(0xbb)]()['valid'](0x0,0x1),'1:是;0:否'),__metadata(a17_0x38b561(0xb9),Number)],PageDTO[a17_0x38b561(0xbd)],a17_0x38b561(0xbe),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a18_0x213d26=a18_0x2a2a;(function(_0x3478c3,_0x41c811){var _0x318148=a18_0x2a2a,_0x48cf63=_0x3478c3();while(!![]){try{var _0x382390=-parseInt(_0x318148(0xdd))/0x1+-parseInt(_0x318148(0xe8))/0x2*(-parseInt(_0x318148(0xe0))/0x3)+-parseInt(_0x318148(0xd7))/0x4+parseInt(_0x318148(0xde))/0x5*(-parseInt(_0x318148(0xe4))/0x6)+-parseInt(_0x318148(0xd4))/0x7*(-parseInt(_0x318148(0xe7))/0x8)+parseInt(_0x318148(0xd8))/0x9*(-parseInt(_0x318148(0xe5))/0xa)+parseInt(_0x318148(0xe6))/0xb*(parseInt(_0x318148(0xd5))/0xc);if(_0x382390===_0x41c811)break;else _0x48cf63['push'](_0x48cf63['shift']());}catch(_0x19b67e){_0x48cf63['push'](_0x48cf63['shift']());}}}(a18_0x4e58,0xf29cf));var a18_0xef37ea=(function(){var _0x54c315=!![];return function(_0x53d492,_0x413d86){var _0x309145=_0x54c315?function(){if(_0x413d86){var _0xd9579d=_0x413d86['apply'](_0x53d492,arguments);return _0x413d86=null,_0xd9579d;}}:function(){};return _0x54c315=![],_0x309145;};}()),a18_0x45eef0=a18_0xef37ea(this,function(){var _0x38dad0=a18_0x2a2a;return a18_0x45eef0[_0x38dad0(0xdb)]()['search'](_0x38dad0(0xda))[_0x38dad0(0xdb)]()[_0x38dad0(0xe1)](a18_0x45eef0)[_0x38dad0(0xe3)](_0x38dad0(0xda));});a18_0x45eef0();function a18_0x2a2a(_0x495f2b,_0x5dae10){var _0x1b4756=a18_0x4e58();return a18_0x2a2a=function(_0x45eef0,_0xef37ea){_0x45eef0=_0x45eef0-0xd4;var _0x4e586e=_0x1b4756[_0x45eef0];return _0x4e586e;},a18_0x2a2a(_0x495f2b,_0x5dae10);}'use strict';Object[a18_0x213d26(0xd6)](exports,a18_0x213d26(0xd9),{'value':!![]}),exports[a18_0x213d26(0xe2)]=exports[a18_0x213d26(0xdf)]=void 0x0,exports[a18_0x213d26(0xdf)]=a18_0x213d26(0xdc);class InterceptTargetTmp{}exports[a18_0x213d26(0xe2)]=InterceptTargetTmp;function a18_0x4e58(){var _0x51bc83=['18BEhnHT','6913977JJRKLZ','1298196dUMkFW','defineProperty','4607036AfJEWW','1629324nWdguZ','__esModule','(((.+)+)+)+$','toString','anncic-api:intercept','901832EWifdW','985cVbGqy','INTERCEPT_KEY','332187mWBvpv','constructor','InterceptTargetTmp','search','2076NyANnW','10NTYXLf','33bSfpLA','16gwhegw'];a18_0x4e58=function(){return _0x51bc83;};return a18_0x4e58();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.10",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@anncic-api/cache": "^3.7.
|
|
22
|
-
"@anncic-api/core": "^3.7.
|
|
23
|
-
"@anncic-api/event": "^3.7.
|
|
24
|
-
"@anncic-api/typeorm": "^3.7.
|
|
25
|
-
"@anncic-api/validator": "^3.7.
|
|
21
|
+
"@anncic-api/cache": "^3.7.10",
|
|
22
|
+
"@anncic-api/core": "^3.7.10",
|
|
23
|
+
"@anncic-api/event": "^3.7.10",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.10",
|
|
25
|
+
"@anncic-api/validator": "^3.7.10",
|
|
26
26
|
"@midwayjs/busboy": "^3.17.1",
|
|
27
27
|
"@midwayjs/cross-domain": "^3.17.1",
|
|
28
28
|
"@midwayjs/koa": "^3.17.1",
|
|
29
29
|
"@midwayjs/logger": "^3.4.2",
|
|
30
30
|
"@midwayjs/static-file": "^3.17.1",
|
|
31
|
-
"anncic-apihelper": "^3.7.
|
|
31
|
+
"anncic-apihelper": "^3.7.10",
|
|
32
32
|
"exceljs": "^4.4.0",
|
|
33
33
|
"koa-send": "^5.0.1",
|
|
34
34
|
"minimatch": "^10.1.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.2",
|
|
39
39
|
"typescript": "^5.5.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b8dae3f92737b85f4f053f694d4ed019c30e3bdc"
|
|
42
42
|
}
|