anncic-api 3.7.7 → 3.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.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.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_0x11db57=a0_0x8b8a;function a0_0x8b8a(_0x337756,_0x32d8ae){var _0x28d220=a0_0x2e3e();return a0_0x8b8a=function(_0x3245bb,_0x32870a){_0x3245bb=_0x3245bb-0x1da;var _0x2e3e5c=_0x28d220[_0x3245bb];return _0x2e3e5c;},a0_0x8b8a(_0x337756,_0x32d8ae);}(function(_0x40896e,_0x77047d){var _0x17eda5=a0_0x8b8a,_0x849a37=_0x40896e();while(!![]){try{var _0x5c0742=-parseInt(_0x17eda5(0x1f6))/0x1*(parseInt(_0x17eda5(0x1f5))/0x2)+parseInt(_0x17eda5(0x1e6))/0x3*(parseInt(_0x17eda5(0x1e2))/0x4)+-parseInt(_0x17eda5(0x1f8))/0x5*(parseInt(_0x17eda5(0x1e5))/0x6)+parseInt(_0x17eda5(0x1da))/0x7+-parseInt(_0x17eda5(0x1e4))/0x8*(-parseInt(_0x17eda5(0x1f1))/0x9)+-parseInt(_0x17eda5(0x1e3))/0xa+-parseInt(_0x17eda5(0x1ec))/0xb;if(_0x5c0742===_0x77047d)break;else _0x849a37['push'](_0x849a37['shift']());}catch(_0x2dd8c0){_0x849a37['push'](_0x849a37['shift']());}}}(a0_0x2e3e,0x86643));var a0_0x32870a=(function(){var _0x1a20ef=!![];return function(_0x29de65,_0x217883){var _0x20df86=_0x1a20ef?function(){var _0x150e43=a0_0x8b8a;if(_0x217883){var _0x55ef36=_0x217883[_0x150e43(0x1e8)](_0x29de65,arguments);return _0x217883=null,_0x55ef36;}}:function(){};return _0x1a20ef=![],_0x20df86;};}()),a0_0x3245bb=a0_0x32870a(this,function(){var _0x3cf4a5=a0_0x8b8a;return a0_0x3245bb['toString']()[_0x3cf4a5(0x1e7)](_0x3cf4a5(0x1df))[_0x3cf4a5(0x1db)]()[_0x3cf4a5(0x1dc)](a0_0x3245bb)[_0x3cf4a5(0x1e7)](_0x3cf4a5(0x1df));});a0_0x3245bb();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x11db57(0x1ea)]=_0x7ff028=>{var _0x4b6385=a0_0x11db57;return{'apitest':!![],'keys':_0x7ff028[_0x4b6385(0x1ed)],'anncicapi':{'requestKey':'_token','password':_0x4b6385(0x1ef),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4b6385(0x1f4)}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':_0x4b6385(0x1ee),'dir':_0x7ff028[_0x4b6385(0x1f0)]+_0x4b6385(0x1e0)}},'bodyParser':{'enableTypes':[_0x4b6385(0x1f7),_0x4b6385(0x1f3),_0x4b6385(0x1e9),'xml'],'formLimit':_0x4b6385(0x1f2),'jsonLimit':'20mb','textLimit':'20mb','xmlLimit':_0x4b6385(0x1f2),'enable':!![]},'upload':{'tmpdir':_0x7ff028[_0x4b6385(0x1f0)]+'/runtime/.upload','cleanTimeout':0x5265c00},'busboy':{'mode':_0x4b6385(0x1de),'tmpdir':_0x7ff028[_0x4b6385(0x1f0)]+_0x4b6385(0x1eb),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x4b6385(0x1dd)+_0x7ff028[_0x4b6385(0x1ed)]+':'+((_0x7ff028===null||_0x7ff028===void 0x0?void 0x0:_0x7ff028[_0x4b6385(0x1e1)])?_0x7ff028['env']+':':'')+')'}}};};function a0_0x2e3e(){var _0xebb6a2=['211860Whhoia','8TFclIM','2834814ctRjFn','3224226YlwbSF','search','apply','text','default','/runtime/.upload','4455979ctlTke','name','270d','zhiulanuiy7892387985hnoi','appDir','593811ySfEfH','20mb','form','dhauo1234420123gg3234901','278476nlNHnD','2VKbtJg','json','5VFLWFB','4108762vnKJvm','toString','constructor','{midway-bull}{','file','(((.+)+)+)+$','/runtime','env','4galfwG'];a0_0x2e3e=function(){return _0xebb6a2;};return a0_0x2e3e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x107c53=a1_0x27a1;(function(_0x4868bc,_0x5d3f43){var _0x4e5b31=a1_0x27a1,_0x54ce40=_0x4868bc();while(!![]){try{var _0xfced4c=parseInt(_0x4e5b31(0x19a))/0x1+-parseInt(_0x4e5b31(0x1a1))/0x2+-parseInt(_0x4e5b31(0x19f))/0x3+parseInt(_0x4e5b31(0x198))/0x4*(parseInt(_0x4e5b31(0x19d))/0x5)+-parseInt(_0x4e5b31(0x19b))/0x6*(-parseInt(_0x4e5b31(0x1a6))/0x7)+-parseInt(_0x4e5b31(0x1a4))/0x8*(-parseInt(_0x4e5b31(0x197))/0x9)+parseInt(_0x4e5b31(0x19e))/0xa*(-parseInt(_0x4e5b31(0x1a7))/0xb);if(_0xfced4c===_0x5d3f43)break;else _0x54ce40['push'](_0x54ce40['shift']());}catch(_0x30f822){_0x54ce40['push'](_0x54ce40['shift']());}}}(a1_0x1329,0x5dfcf));var a1_0x25e9d7=(function(){var _0x188af4=!![];return function(_0x2f5583,_0x167407){var _0x52058a=_0x188af4?function(){var _0x427a8b=a1_0x27a1;if(_0x167407){var _0x2d3fc8=_0x167407[_0x427a8b(0x1a5)](_0x2f5583,arguments);return _0x167407=null,_0x2d3fc8;}}:function(){};return _0x188af4=![],_0x52058a;};}()),a1_0x4e3492=a1_0x25e9d7(this,function(){var _0x63ba1c=a1_0x27a1;return a1_0x4e3492[_0x63ba1c(0x199)]()[_0x63ba1c(0x1a2)]('(((.+)+)+)+$')[_0x63ba1c(0x199)]()[_0x63ba1c(0x1a3)](a1_0x4e3492)[_0x63ba1c(0x1a2)]('(((.+)+)+)+$');});a1_0x4e3492();'use strict';function a1_0x27a1(_0x1351ef,_0x408be1){var _0x3e442e=a1_0x1329();return a1_0x27a1=function(_0x4e3492,_0x25e9d7){_0x4e3492=_0x4e3492-0x197;var _0x132904=_0x3e442e[_0x4e3492];return _0x132904;},a1_0x27a1(_0x1351ef,_0x408be1);}function a1_0x1329(){var _0x2730c8=['174456cwPJKz','apply','211477DuerTD','11ifdITB','234IchOKs','290600HZfOPs','toString','161195VZtdMW','132EIJWJs','__esModule','40tyAzwa','10441670ikzxzJ','431469pdGjuU','default','802108xMvfrM','search','constructor'];a1_0x1329=function(){return _0x2730c8;};return a1_0x1329();}Object['defineProperty'](exports,a1_0x107c53(0x19c),{'value':!![]}),exports[a1_0x107c53(0x1a0)]=_0x48bf75=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a2_0x5bd5a4=a2_0x3936;function a2_0x26ca(){var _0x5a44b1=['9936010dcjkkM','search','222736pIcDWP','defineProperty','default','225FenuPN','5728618gEvFIo','13xXheLd','582955RihtDF','constructor','__esModule','4GtLuXv','1522464beASle','toString','116392sbrane','apply','2443554bCrHKT'];a2_0x26ca=function(){return _0x5a44b1;};return a2_0x26ca();}(function(_0x1ec251,_0x579f8f){var _0x34dd8b=a2_0x3936,_0xe1447c=_0x1ec251();while(!![]){try{var _0x4a2cca=-parseInt(_0x34dd8b(0xcc))/0x1*(parseInt(_0x34dd8b(0xd3))/0x2)+parseInt(_0x34dd8b(0xc4))/0x3+-parseInt(_0x34dd8b(0xd0))/0x4*(-parseInt(_0x34dd8b(0xcd))/0x5)+-parseInt(_0x34dd8b(0xd1))/0x6+parseInt(_0x34dd8b(0xcb))/0x7+parseInt(_0x34dd8b(0xc7))/0x8*(parseInt(_0x34dd8b(0xca))/0x9)+-parseInt(_0x34dd8b(0xc5))/0xa;if(_0x4a2cca===_0x579f8f)break;else _0xe1447c['push'](_0xe1447c['shift']());}catch(_0x5d2365){_0xe1447c['push'](_0xe1447c['shift']());}}}(a2_0x26ca,0x6bd28));var a2_0x4dba60=(function(){var _0x1e5081=!![];return function(_0x51186f,_0xee15bc){var _0x4be5be=_0x1e5081?function(){var _0x375470=a2_0x3936;if(_0xee15bc){var _0x1edce0=_0xee15bc[_0x375470(0xc3)](_0x51186f,arguments);return _0xee15bc=null,_0x1edce0;}}:function(){};return _0x1e5081=![],_0x4be5be;};}()),a2_0x5e3726=a2_0x4dba60(this,function(){var _0x2ce227=a2_0x3936;return a2_0x5e3726[_0x2ce227(0xd2)]()['search']('(((.+)+)+)+$')[_0x2ce227(0xd2)]()[_0x2ce227(0xce)](a2_0x5e3726)[_0x2ce227(0xc6)]('(((.+)+)+)+$');});a2_0x5e3726();'use strict';function a2_0x3936(_0x1c97d2,_0x567ed6){var _0x1e8b52=a2_0x26ca();return a2_0x3936=function(_0x5e3726,_0x4dba60){_0x5e3726=_0x5e3726-0xc3;var _0x26ca4a=_0x1e8b52[_0x5e3726];return _0x26ca4a;},a2_0x3936(_0x1c97d2,_0x567ed6);}Object[a2_0x5bd5a4(0xc8)](exports,a2_0x5bd5a4(0xcf),{'value':!![]}),exports[a2_0x5bd5a4(0xc9)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x21601b=a3_0x3a61;(function(_0x445dd5,_0x243598){const _0x298c0d=a3_0x3a61,_0x5d13b1=_0x445dd5();while(!![]){try{const _0x53b6a6=-parseInt(_0x298c0d(0x126))/0x1+parseInt(_0x298c0d(0x122))/0x2*(parseInt(_0x298c0d(0xf9))/0x3)+-parseInt(_0x298c0d(0x16f))/0x4*(-parseInt(_0x298c0d(0x120))/0x5)+parseInt(_0x298c0d(0x124))/0x6*(parseInt(_0x298c0d(0x10c))/0x7)+parseInt(_0x298c0d(0x114))/0x8*(parseInt(_0x298c0d(0x10a))/0x9)+parseInt(_0x298c0d(0x165))/0xa+-parseInt(_0x298c0d(0x183))/0xb*(parseInt(_0x298c0d(0x176))/0xc);if(_0x53b6a6===_0x243598)break;else _0x5d13b1['push'](_0x5d13b1['shift']());}catch(_0x5d3b6e){_0x5d13b1['push'](_0x5d13b1['shift']());}}}(a3_0x48f4,0x3af13));const a3_0x3661ec=(function(){let _0x433fc1=!![];return function(_0x2b0df8,_0x17a4e6){const _0x388fbd=_0x433fc1?function(){if(_0x17a4e6){const _0x3c3327=_0x17a4e6['apply'](_0x2b0df8,arguments);return _0x17a4e6=null,_0x3c3327;}}:function(){};return _0x433fc1=![],_0x388fbd;};}()),a3_0x2c6e92=a3_0x3661ec(this,function(){const _0x4fd691=a3_0x3a61;return a3_0x2c6e92[_0x4fd691(0xfa)]()['search'](_0x4fd691(0x158))[_0x4fd691(0xfa)]()[_0x4fd691(0xfc)](a3_0x2c6e92)[_0x4fd691(0x198)]('(((.+)+)+)+$');});function a3_0x48f4(){const _0x485a5c=['environment','filepath','string','requestMethod','substring','search','headers','hanlderApplications','1617MyxtWC','toString','application','constructor','mkdirSync','keys','http://','HEADERS_SIGNATURE','runtime','anncic-apihelper','CustomConfiguration','apimit','requestContext','app','addObject','_UNKNOW_','ApiService','702819BQQksz','@midwayjs/cross-domain','14OLnUaX','defaultsDeep','@anncic-api/cache','checksign','connection','./config/config.default','basic.log','upload','48LAmWpm','isString','getConfiguration','length','isArray','getAsync','isDirectory','match','_matchedRoute','defineProperty','toLowerCase','__esModule','5TCrWGn','anncicapi','1354xvjRCN','/apps','654618JmGjUo','function','138710FzZuQf','dir','@midwayjs/busboy','Inject','INTERCEPT_KEY','/apps/','./exception/ApiError','./config/config.production','isClass','DEFAULT','handler','includes','__metadata','req','split','getBaseDir','intercept','config','http','routerOptions','onReady','ACTION_KEY','handlerActionRoute','prototype','readdirSync','apps-','Types','@anncic-api/validator','encrypted','./service/ApiService','name','attachment','./types/intercept','文件不存在','APPSCONFIG_KEY','target','metadata','getAppDir','requestKey','/app','existsSync','isNull','anncic-api','koa-send','MidwayDecoratorService','bodyXml','input','MidwayConfigService','key','clients','(((.+)+)+)+$','@anncic-api/event','devices','./types/action','routerName','MidwayLoggerService','MidwayApplicationManager','270d','context','.log','log','defineProperties','host','1048820WtNXmc','Anncic-api\x20static-file\x20:\x20mkdir\x20','App','midwayLogger','isDevelopmentEnvironment','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/typeorm','parse','undefined','createLogger','62404XEcKoh','koa','@midwayjs/core','REQUEST_OBJ_CTX_KEY','getApplications','getOwnPropertyDescriptor','@midwayjs/static-file','9504012NtlRyf','MidwayEnvironmentService','path','statSync','/basic','decorate','basic','device','AppsConfigTmp','query','443','lastIndexOf','tmpdir','11gyaQdf','tagName','ApiError','forEach','method','getClassMetadata','decorator','get','request','join','filterConfig','staticFile','dirs','design:type','__decorate','module'];a3_0x48f4=function(){return _0x485a5c;};return a3_0x48f4();}a3_0x2c6e92();'use strict';var __decorate=this&&this[a3_0x21601b(0x191)]||function(_0x285e37,_0x3fec95,_0x57deea,_0x46bc01){const _0x342cea=a3_0x21601b;var _0x3e25e6=arguments[_0x342cea(0x117)],_0x14cc2e=_0x3e25e6<0x3?_0x3fec95:_0x46bc01===null?_0x46bc01=Object[_0x342cea(0x174)](_0x3fec95,_0x57deea):_0x46bc01,_0x1a9008;if(typeof Reflect==='object'&&typeof Reflect[_0x342cea(0x17b)]===_0x342cea(0x125))_0x14cc2e=Reflect[_0x342cea(0x17b)](_0x285e37,_0x3fec95,_0x57deea,_0x46bc01);else{for(var _0x671f3e=_0x285e37[_0x342cea(0x117)]-0x1;_0x671f3e>=0x0;_0x671f3e--)if(_0x1a9008=_0x285e37[_0x671f3e])_0x14cc2e=(_0x3e25e6<0x3?_0x1a9008(_0x14cc2e):_0x3e25e6>0x3?_0x1a9008(_0x3fec95,_0x57deea,_0x14cc2e):_0x1a9008(_0x3fec95,_0x57deea))||_0x14cc2e;}return _0x3e25e6>0x3&&_0x14cc2e&&Object[_0x342cea(0x11d)](_0x3fec95,_0x57deea,_0x14cc2e),_0x14cc2e;},__metadata=this&&this[a3_0x21601b(0x132)]||function(_0x21d8b4,_0x458687){const _0x53f678=a3_0x21601b;if(typeof Reflect==='object'&&typeof Reflect[_0x53f678(0x14a)]==='function')return Reflect[_0x53f678(0x14a)](_0x21d8b4,_0x458687);};Object[a3_0x21601b(0x11d)](exports,a3_0x21601b(0x11f),{'value':!![]}),exports[a3_0x21601b(0x103)]=void 0x0;const core_1=require(a3_0x21601b(0x171)),core_2=require(a3_0x21601b(0x171)),ApiError_1=require(a3_0x21601b(0x12c)),ApiService_1=require(a3_0x21601b(0x143)),intercept_1=require(a3_0x21601b(0x146)),action_1=require(a3_0x21601b(0x15b)),fs=require('fs'),path=require(a3_0x21601b(0x178)),koasend=require(a3_0x21601b(0x151)),koa=require('@midwayjs/koa'),upload=require(a3_0x21601b(0x128)),staticFile=require(a3_0x21601b(0x175)),crossDomain=require(a3_0x21601b(0x10b)),ConfigDefault=require(a3_0x21601b(0x111)),ConfigProduction=require(a3_0x21601b(0x12d)),anncic=require('@anncic-api/core'),anncicCache=require(a3_0x21601b(0x10e)),anncicEvent=require(a3_0x21601b(0x159)),anncicTypeorm=require(a3_0x21601b(0x16b)),anncicValidator=require(a3_0x21601b(0x141)),anncicHelper=require(a3_0x21601b(0x102));let CustomConfiguration=class CustomConfiguration{async[a3_0x21601b(0x13a)](){const _0x37f93d=a3_0x21601b;await this[_0x37f93d(0x18d)](),await this['loggerConfig'](),await this[_0x37f93d(0x13c)](),await this[_0x37f93d(0x19a)]();}async['handlerActionRoute'](){const _0x1e4b87=a3_0x21601b,_0x28db82=this['config']['getConfiguration'](),_0x5e1615=(0x0,core_1[_0x1e4b87(0x188)])(intercept_1[_0x1e4b87(0x12a)],intercept_1['InterceptTargetTmp'])||{};this[_0x1e4b87(0x189)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x5186a8=>{const _0x392bd9=_0x1e4b87;var _0x34db8e;const _0x16d98d=(0x0,core_1[_0x392bd9(0x188)])(action_1[_0x392bd9(0x148)],action_1[_0x392bd9(0x17e)])||{},_0x44e852=_0x5186a8[_0x392bd9(0x14a)],_0xdd02a4=(0x0,core_1[_0x392bd9(0x188)])(action_1[_0x392bd9(0x13b)],_0x5186a8[_0x392bd9(0x149)])||{},_0x3405ba=((_0x34db8e=_0xdd02a4===null||_0xdd02a4===void 0x0?void 0x0:_0xdd02a4[_0x392bd9(0x194)])===null||_0x34db8e===void 0x0?void 0x0:_0x34db8e[_0x392bd9(0x197)](0x0,_0xdd02a4[_0x392bd9(0x194)][_0x392bd9(0x181)]('.')))||'',_0x1d7326=(_0xdd02a4===null||_0xdd02a4===void 0x0?void 0x0:_0xdd02a4[_0x392bd9(0x192)])?(_0x16d98d===null||_0x16d98d===void 0x0?void 0x0:_0x16d98d[_0xdd02a4[_0x392bd9(0x192)]])||{}:{};return{'before':async _0x614c9a=>{const _0x11848a=_0x392bd9;var _0x3ffe50,_0x296f2f,_0x4ace9d,_0x1a9d00;const _0x4fd52c=(_0x3ffe50=_0x614c9a===null||_0x614c9a===void 0x0?void 0x0:_0x614c9a[_0x11848a(0x149)])===null||_0x3ffe50===void 0x0?void 0x0:_0x3ffe50[core_2['REQUEST_OBJ_CTX_KEY']],_0x10563c=lodash['defaultsDeep']({},_0x4fd52c[_0x11848a(0x18b)]['body']||_0x4fd52c[_0x11848a(0x18b)][((_0x296f2f=_0x28db82===null||_0x28db82===void 0x0?void 0x0:_0x28db82[_0x11848a(0x153)])===null||_0x296f2f===void 0x0?void 0x0:_0x296f2f[_0x11848a(0x156)])||'body']||{},_0x4fd52c[_0x11848a(0x18b)][_0x11848a(0x17f)]||{});_0x4fd52c['_matchedRouteMeta']={'module':(_0x1d7326===null||_0x1d7326===void 0x0?void 0x0:_0x1d7326[_0x11848a(0x144)])||'','routePath':''+_0x4fd52c[_0x11848a(0x178)],'routeName':_0xdd02a4[_0x11848a(0x139)][_0x11848a(0x184)]+'@'+_0x44e852[_0x11848a(0x15c)],'routeMethod':((_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x11848a(0x196)])||_0x4fd52c[_0x11848a(0x187)]||'')[_0x11848a(0x11e)](),'routeDescription':(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['description'])||'','filemethod':_0x3405ba+'@'+(_0x44e852['method']||'')};if(_0x4fd52c&&(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x11848a(0x104)]))try{const _0x36532b=((_0x4ace9d=_0x28db82===null||_0x28db82===void 0x0?void 0x0:_0x28db82[_0x11848a(0x121)])===null||_0x4ace9d===void 0x0?void 0x0:_0x4ace9d[_0x11848a(0x14c)])&&typeof(_0x10563c===null||_0x10563c===void 0x0?void 0x0:_0x10563c[_0x28db82['anncicapi']['requestKey']])==_0x11848a(0x195)?JSON[_0x11848a(0x16c)](base64_decode(_0x10563c[_0x28db82['anncicapi'][_0x11848a(0x14c)]])||'{}')||{}:((_0x1a9d00=_0x4fd52c===null||_0x4fd52c===void 0x0?void 0x0:_0x4fd52c[_0x11848a(0x18b)])===null||_0x1a9d00===void 0x0?void 0x0:_0x1a9d00[_0x11848a(0x199)])||{};if(!this[_0x11848a(0x109)][_0x11848a(0x10f)](_0x36532b))throw new AnnError(ApiError_1[_0x11848a(0x185)][_0x11848a(0x100)]);for(const _0x1f126d in _0x36532b||{}){_0x4fd52c[_0x11848a(0x199)][_0x1f126d]=_0x36532b[_0x1f126d];}}catch(_0x2346d9){if(_0x2346d9 instanceof AnnError)throw _0x2346d9;else throw new AnnError(ApiError_1[_0x11848a(0x185)][_0x11848a(0x108)]);}},'around':async _0x34438c=>{const _0x40b928=_0x392bd9;var _0x1ad0c4,_0x3b3e5d,_0x2cb52d;const _0x32d98f=(_0x1ad0c4=_0x34438c===null||_0x34438c===void 0x0?void 0x0:_0x34438c[_0x40b928(0x149)])===null||_0x1ad0c4===void 0x0?void 0x0:_0x1ad0c4[core_2[_0x40b928(0x172)]];if(_0x32d98f&&(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['apimit'])&&((_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852[_0x40b928(0x136)])||typeof(_0x44e852===null||_0x44e852===void 0x0?void 0x0:_0x44e852['intercept'])==_0x40b928(0x16d))){if(((_0x3b3e5d=_0x32d98f[_0x40b928(0x199)])===null||_0x3b3e5d===void 0x0?void 0x0:_0x3b3e5d[_0x40b928(0x17d)])&&((_0x2cb52d=_0x5e1615===null||_0x5e1615===void 0x0?void 0x0:_0x5e1615[_0x32d98f['headers'][_0x40b928(0x17d)]])===null||_0x2cb52d===void 0x0?void 0x0:_0x2cb52d[_0x40b928(0x117)])>0x0)for(const _0x1564c7 of _0x5e1615[_0x32d98f['headers'][_0x40b928(0x17d)]]||[]){if(core_1[_0x40b928(0x140)][_0x40b928(0x12e)](_0x1564c7)){const _0xec4242=await _0x32d98f[_0x40b928(0x105)][_0x40b928(0x119)](_0x1564c7);typeof(_0xec4242===null||_0xec4242===void 0x0?void 0x0:_0xec4242[_0x40b928(0x11b)])==_0x40b928(0x125)?await _0xec4242[_0x40b928(0x11b)](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f['method'])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f['method'][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852)&&await _0xec4242[_0x40b928(0x130)](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f['method'])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852):await _0xec4242['handler'](_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x187)])=='string'&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)]['toLowerCase']()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852);}else core_1[_0x40b928(0x140)]['isFunction'](_0x1564c7)&&await _0x1564c7(_0x32d98f,typeof(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x187)])==_0x40b928(0x195)&&(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)])?_0x32d98f[_0x40b928(0x187)][_0x40b928(0x11e)]()+'@'+(_0x32d98f===null||_0x32d98f===void 0x0?void 0x0:_0x32d98f[_0x40b928(0x11c)]):undefined,_0x44e852);}}return await _0x34438c['proceed'](..._0x34438c['args']);},'afterThrow':(_0x5a39e0,_0x3f8977)=>{throw _0x3f8977;}};});}async[a3_0x21601b(0x19a)](){const _0x2b4dff=a3_0x21601b,_0x491eb3=this[_0x2b4dff(0x137)]['getConfiguration']();this[_0x2b4dff(0xfb)][_0x2b4dff(0x173)]([_0x2b4dff(0x170)])[_0x2b4dff(0x186)](_0x38ceef=>{const _0x2d938b=_0x2b4dff;(_0x38ceef===null||_0x38ceef===void 0x0?void 0x0:_0x38ceef[_0x2d938b(0x160)])&&Object[_0x2d938b(0x163)](_0x38ceef[_0x2d938b(0x160)],{'hosturl':{'configurable':![],'get':function(){const _0x5f670b=_0x2d938b;var _0x160839,_0x20674b,_0x2eb102,_0x530664;if((this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x164)])&&!this[_0x5f670b(0x164)]['startsWith'](_0x5f670b(0x138))){let _0x592bb3=this['host'][_0x5f670b(0x134)](':');return['80',_0x5f670b(0x180)][_0x5f670b(0x131)](_0x592bb3===null||_0x592bb3===void 0x0?void 0x0:_0x592bb3[0x1])?''+(!!((_0x20674b=(_0x160839=this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x133)])===null||_0x160839===void 0x0?void 0x0:_0x160839[_0x5f670b(0x110)])===null||_0x20674b===void 0x0?void 0x0:_0x20674b[_0x5f670b(0x142)])||(_0x592bb3===null||_0x592bb3===void 0x0?void 0x0:_0x592bb3[0x1])==_0x5f670b(0x180)?'https://':_0x5f670b(0xff))+_0x592bb3[0x0]:''+(!!((_0x530664=(_0x2eb102=this===null||this===void 0x0?void 0x0:this[_0x5f670b(0x133)])===null||_0x2eb102===void 0x0?void 0x0:_0x2eb102['connection'])===null||_0x530664===void 0x0?void 0x0:_0x530664[_0x5f670b(0x142)])?'https://':_0x5f670b(0xff))+this['host'];}return'';}},'ok':{'value':function(_0x4e80e0,_0x692485,_0x2863e1=0x0){return{'code':_0x2863e1,'data':_0x4e80e0,'extra':_0x692485};}},'input':{'value':function(_0x99436f,_0xcd9cb6){const _0xe0907a=_0x2d938b;var _0x272bc3;const _0x5d03c3=lodash[_0xe0907a(0x10d)]({},this[_0xe0907a(0x18b)]['body']||this[_0xe0907a(0x18b)][((_0x272bc3=_0x491eb3===null||_0x491eb3===void 0x0?void 0x0:_0x491eb3[_0xe0907a(0x153)])===null||_0x272bc3===void 0x0?void 0x0:_0x272bc3[_0xe0907a(0x156)])||'body']||{},this[_0xe0907a(0x18b)][_0xe0907a(0x17f)]||{});return _0x99436f?lodash[_0xe0907a(0x18a)](_0x5d03c3,_0x99436f,_0xcd9cb6):_0x5d03c3;}},'when':{'value':async function(_0x899129,_0xc26de3){const _0xf979b2=_0x2d938b,_0x32d4ee=this[_0xf979b2(0x154)](_0x899129,null);if(!lodash[_0xf979b2(0x14f)](_0x32d4ee))return await _0xc26de3(_0x32d4ee);}},'only':{'value':function(_0x341f76){const _0x2f8f8b=_0x2d938b,_0x39547d={};for(let _0x56e08c=0x0;_0x56e08c<_0x341f76['length'];_0x56e08c++){lodash[_0x2f8f8b(0x118)](_0x341f76[_0x56e08c])&&_0x341f76[_0x56e08c]['length']>0x0&&lodash[_0x2f8f8b(0x115)](_0x341f76[_0x56e08c][0x0])&&(_0x39547d[_0x341f76[_0x56e08c][0x0]]=this[_0x2f8f8b(0x154)](_0x341f76[_0x56e08c][0x0],_0x341f76[_0x56e08c][_0x2f8f8b(0x117)]>0x1?_0x341f76[_0x56e08c][0x1]:null));}return _0x39547d;}},'koasend':{'value':async function(_0x8d6fa1,_0x23d2c1){const _0x3091bf=_0x2d938b;if(_0x8d6fa1&&!fs[_0x3091bf(0x14e)](_0x8d6fa1)&&!fs[_0x3091bf(0x14e)](this[_0x3091bf(0x106)]['getAppDir']()+'/'+_0x8d6fa1))return _0x3091bf(0x147);return _0x8d6fa1=fs[_0x3091bf(0x14e)](_0x8d6fa1)?_0x8d6fa1:this[_0x3091bf(0x106)][_0x3091bf(0x14b)]()+'/'+_0x8d6fa1,this[_0x3091bf(0x145)](_0x23d2c1||_0x8d6fa1),await koasend(this,_0x8d6fa1);}}});});}async['loggerConfig'](){const _0x1bdebc=a3_0x21601b;var _0x3f3612;if(fs[_0x1bdebc(0x14e)](this[_0x1bdebc(0x106)]['getBaseDir']()+_0x1bdebc(0x123))&&fs[_0x1bdebc(0x179)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x123))[_0x1bdebc(0x11a)]()){const _0x1fafe8=this[_0x1bdebc(0x137)][_0x1bdebc(0x116)](),_0x8d1418=((_0x3f3612=_0x1fafe8===null||_0x1fafe8===void 0x0?void 0x0:_0x1fafe8[_0x1bdebc(0x168)])===null||_0x3f3612===void 0x0?void 0x0:_0x3f3612[_0x1bdebc(0x157)])||{};!fs['existsSync'](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x14d))&&(_0x8d1418[_0x1bdebc(0x106)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':'app.log','dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),_0x1bdebc(0x101),_0x1bdebc(0x106))});!fs[_0x1bdebc(0x14e)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x17a))&&(_0x8d1418[_0x1bdebc(0x17c)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1bdebc(0x193)][_0x1bdebc(0x169)](),'fileLogName':_0x1bdebc(0x112),'dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),'runtime','basic')});for(const _0x12a829 of fs[_0x1bdebc(0x13e)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x123))){if(!fs[_0x1bdebc(0x179)](this[_0x1bdebc(0x106)][_0x1bdebc(0x135)]()+_0x1bdebc(0x12b)+_0x12a829)[_0x1bdebc(0x11a)]())continue;!(_0x8d1418===null||_0x8d1418===void 0x0?void 0x0:_0x8d1418[_0x12a829])&&(_0x8d1418[_0x12a829]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x1bdebc(0x193)][_0x1bdebc(0x169)](),'fileLogName':_0x12a829+_0x1bdebc(0x161),'dir':path['join'](this[_0x1bdebc(0x106)][_0x1bdebc(0x14b)](),_0x1bdebc(0x101),_0x1bdebc(0x13f)+_0x12a829)}),this['loggerService'][_0x1bdebc(0x16e)](_0x12a829,_0x8d1418[_0x12a829]);}Object[_0x1bdebc(0xfe)](_0x8d1418)[_0x1bdebc(0x117)]>0x0&&(!_0x1fafe8[_0x1bdebc(0x168)]&&(_0x1fafe8[_0x1bdebc(0x168)]={'default':{'maxSize':'1m','maxFiles':_0x1bdebc(0x15f),'dir':path[_0x1bdebc(0x18c)](this[_0x1bdebc(0x106)]['getAppDir'](),_0x1bdebc(0x101))}}),_0x1fafe8['midwayLogger'][_0x1bdebc(0x157)]=_0x8d1418),this[_0x1bdebc(0x137)][_0x1bdebc(0x107)](_0x1fafe8);}}async[a3_0x21601b(0x18d)](){const _0x14eb93=a3_0x21601b;var _0x334c01,_0x2471cb,_0x375d18,_0x5831db,_0x2eb0e1,_0x105211;const _0x38de5c=this[_0x14eb93(0x137)][_0x14eb93(0x116)]();((_0x2471cb=(_0x334c01=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c[_0x14eb93(0x121)])===null||_0x334c01===void 0x0?void 0x0:_0x334c01[_0x14eb93(0x15a)])===null||_0x2471cb===void 0x0?void 0x0:_0x2471cb[_0x14eb93(0x12f)])&&Object[_0x14eb93(0xfe)](_0x38de5c[_0x14eb93(0x121)]['devices'])[_0x14eb93(0x117)]>0x1&&delete _0x38de5c['anncicapi']['devices']['DEFAULT'];if((_0x375d18=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c['staticFile'])===null||_0x375d18===void 0x0?void 0x0:_0x375d18[_0x14eb93(0x18f)])for(const _0x50ca6e in _0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)]){((_0x5831db=_0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)][_0x50ca6e])===null||_0x5831db===void 0x0?void 0x0:_0x5831db[_0x14eb93(0x127)])&&typeof((_0x2eb0e1=_0x38de5c[_0x14eb93(0x18e)]['dirs'][_0x50ca6e])===null||_0x2eb0e1===void 0x0?void 0x0:_0x2eb0e1[_0x14eb93(0x127)])=='string'&&!fs[_0x14eb93(0x14e)](_0x38de5c[_0x14eb93(0x18e)][_0x14eb93(0x18f)][_0x50ca6e][_0x14eb93(0x127)])&&(fs[_0x14eb93(0xfd)](_0x38de5c[_0x14eb93(0x18e)]['dirs'][_0x50ca6e]['dir'],{'recursive':!![]}),console['log'](_0x14eb93(0x166)+_0x38de5c['staticFile']['dirs'][_0x50ca6e]['dir']));}((_0x105211=_0x38de5c===null||_0x38de5c===void 0x0?void 0x0:_0x38de5c[_0x14eb93(0x113)])===null||_0x105211===void 0x0?void 0x0:_0x105211[_0x14eb93(0x182)])&&!fs[_0x14eb93(0x14e)](_0x38de5c['upload'][_0x14eb93(0x182)])&&(fs['mkdirSync'](_0x38de5c[_0x14eb93(0x113)]['tmpdir'],{'recursive':!![]}),console[_0x14eb93(0x162)](_0x14eb93(0x16a)+_0x38de5c[_0x14eb93(0x113)][_0x14eb93(0x182)])),this[_0x14eb93(0x137)][_0x14eb93(0x107)](_0x38de5c);}};function a3_0x3a61(_0x5a9164,_0x1b2030){const _0x7e94d8=a3_0x48f4();return a3_0x3a61=function(_0x2c6e92,_0x3661ec){_0x2c6e92=_0x2c6e92-0xf9;let _0x48f450=_0x7e94d8[_0x2c6e92];return _0x48f450;},a3_0x3a61(_0x5a9164,_0x1b2030);}exports[a3_0x21601b(0x103)]=CustomConfiguration,__decorate([(0x0,core_1[a3_0x21601b(0x167)])(),__metadata(a3_0x21601b(0x190),Object)],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x106),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata('design:type',core_2[a3_0x21601b(0x155)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x137),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x152)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x189),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x15e)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0xfb),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_2[a3_0x21601b(0x177)])],CustomConfiguration[a3_0x21601b(0x13d)],a3_0x21601b(0x193),void 0x0),__decorate([(0x0,core_1[a3_0x21601b(0x129)])(),__metadata(a3_0x21601b(0x190),core_1[a3_0x21601b(0x15d)])],CustomConfiguration[a3_0x21601b(0x13d)],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x21601b(0x190),ApiService_1[a3_0x21601b(0x109)])],CustomConfiguration['prototype'],'ApiService',void 0x0),exports[a3_0x21601b(0x103)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x21601b(0x150),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
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);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x2f2f2c=a4_0x1e26;(function(_0x79a2a7,_0x362f8e){const _0x54473b=a4_0x1e26,_0x4c3c0d=_0x79a2a7();while(!![]){try{const _0x458016=-parseInt(_0x54473b(0x1e3))/0x1*(-parseInt(_0x54473b(0x19c))/0x2)+parseInt(_0x54473b(0x1d5))/0x3*(-parseInt(_0x54473b(0x1df))/0x4)+parseInt(_0x54473b(0x194))/0x5+-parseInt(_0x54473b(0x1d6))/0x6+parseInt(_0x54473b(0x1bc))/0x7*(parseInt(_0x54473b(0x1ce))/0x8)+-parseInt(_0x54473b(0x1bb))/0x9+parseInt(_0x54473b(0x1ba))/0xa*(parseInt(_0x54473b(0x197))/0xb);if(_0x458016===_0x362f8e)break;else _0x4c3c0d['push'](_0x4c3c0d['shift']());}catch(_0xbcbd68){_0x4c3c0d['push'](_0x4c3c0d['shift']());}}}(a4_0x684e,0x98874));const a4_0x5b60c7=(function(){let _0x129a99=!![];return function(_0xd1cbf9,_0x51ceac){const _0x4c6546=_0x129a99?function(){const _0x98bc18=a4_0x1e26;if(_0x51ceac){const _0x3e9cea=_0x51ceac[_0x98bc18(0x1a2)](_0xd1cbf9,arguments);return _0x51ceac=null,_0x3e9cea;}}:function(){};return _0x129a99=![],_0x4c6546;};}()),a4_0x1981d4=a4_0x5b60c7(this,function(){const _0x2a7ea4=a4_0x1e26;return a4_0x1981d4[_0x2a7ea4(0x1c5)]()[_0x2a7ea4(0x1d8)]('(((.+)+)+)+$')[_0x2a7ea4(0x1c5)]()[_0x2a7ea4(0x1ad)](a4_0x1981d4)[_0x2a7ea4(0x1d8)]('(((.+)+)+)+$');});a4_0x1981d4();'use strict';var _a,_b;Object[a4_0x2f2f2c(0x1ca)](exports,a4_0x2f2f2c(0x1be),{'value':!![]}),exports[a4_0x2f2f2c(0x1bd)]=Action,exports[a4_0x2f2f2c(0x1e5)]=ActionApi,exports[a4_0x2f2f2c(0x1a8)]=parseRoute;const fs=require('fs'),validator_1=require(a4_0x2f2f2c(0x1cc)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a4_0x2f2f2c(0x19b)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x2f2f2c(0x1bf)])===null||_a===void 0x0?void 0x0:_a[a4_0x2f2f2c(0x19d)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x2f2f2c(0x1bf)])===null||_b===void 0x0?void 0x0:_b[a4_0x2f2f2c(0x195)]);function Action(_0x640f68,_0x54b065,_0x6ecd86={'middleware':[],'sensitive':!![]}){return _0x242abd=>{const _0x3c2b57=a4_0x1e26;var _0x5f4187;_0x6ecd86[_0x3c2b57(0x1c2)]=_0x54b065;const _0x5b7014=parseRoute(_0x640f68);if(_0x5b7014[_0x3c2b57(0x1b7)]){_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86[_0x3c2b57(0x1ac)]?'/'+_0x5b7014[_0x3c2b57(0x1b7)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]:'/'+_0x5b7014['route'];_0x5b7014[_0x3c2b57(0x1ac)]&&(_0x6ecd86[_0x3c2b57(0x1ac)]='/'+_0x5b7014[_0x3c2b57(0x1ac)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]);_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86[_0x3c2b57(0x1ac)]['toLowerCase']()[_0x3c2b57(0x1e4)](/\/{2,}/g,'/');const _0x1769af=getModuleConfig(_0x5b7014[_0x3c2b57(0x1b2)]+_0x3c2b57(0x1e6),_0x5b7014['module'],lodash[_0x3c2b57(0x1b8)](_0x5b7014['filepath'],'ts')?'ts':'js');if(lodash['isArray'](_0x1769af[_0x3c2b57(0x1e2)])&&_0x1769af[_0x3c2b57(0x1e2)][_0x3c2b57(0x1d9)]>0x0)for(let _0x329e6c in _0x1769af[_0x3c2b57(0x1e2)]){if(((_0x5f4187=_0x1769af===null||_0x1769af===void 0x0?void 0x0:_0x1769af[_0x3c2b57(0x193)])===null||_0x5f4187===void 0x0?void 0x0:_0x5f4187[_0x3c2b57(0x1d9)])>0x0&&_0x1769af[_0x3c2b57(0x193)]['indexOf'](_0x1769af[_0x3c2b57(0x1e2)][_0x329e6c])!=-0x1)continue;_0x6ecd86[_0x3c2b57(0x1e2)][_0x3c2b57(0x1aa)](_0x1769af[_0x3c2b57(0x1e2)][_0x329e6c]);}(0x0,core_1['saveModule'])(action_1[_0x3c2b57(0x1cf)],_0x242abd),(0x0,core_1['Controller'])(_0x6ecd86[_0x3c2b57(0x1ac)],_0x6ecd86)(_0x242abd),(0x0,core_1['saveClassMetadata'])(action_1[_0x3c2b57(0x1cf)],{'prefix':_0x6ecd86[_0x3c2b57(0x1ac)],'pprefix':_0x5b7014['prefix'],'module':_0x5b7014[_0x3c2b57(0x1b7)],'filepath':_0x5b7014[_0x3c2b57(0x1c6)],'routerOptions':_0x6ecd86},_0x242abd);}else _0x6ecd86['prefix']=_0x6ecd86[_0x3c2b57(0x1ac)]?'/'+_0x6ecd86['prefix']:'/'+_0x5b7014[_0x3c2b57(0x1a4)],_0x5b7014[_0x3c2b57(0x1ac)]&&(_0x6ecd86[_0x3c2b57(0x1ac)]='/'+_0x5b7014[_0x3c2b57(0x1ac)]+'/'+_0x6ecd86[_0x3c2b57(0x1ac)]),_0x6ecd86[_0x3c2b57(0x1ac)]=_0x6ecd86['prefix']['toLowerCase']()[_0x3c2b57(0x1e4)](/\/{2,}/g,'/'),(0x0,core_1[_0x3c2b57(0x1dd)])(action_1[_0x3c2b57(0x1cf)],_0x242abd),(0x0,core_1['Controller'])(_0x6ecd86[_0x3c2b57(0x1ac)],_0x6ecd86)(_0x242abd),(0x0,core_1[_0x3c2b57(0x1d0)])(action_1[_0x3c2b57(0x1cf)],{'prefix':_0x6ecd86['prefix'],'module':_0x5b7014[_0x3c2b57(0x1b7)],'pprefix':_0x5b7014[_0x3c2b57(0x1ac)],'filepath':_0x5b7014[_0x3c2b57(0x1c6)],'routerOptions':_0x6ecd86},_0x242abd);};}Action[a4_0x2f2f2c(0x1c3)]=function(_0x47b1d0,_0x4767b2='/',_0x8e7a1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x162e96,_0xfd19ce,_0x5a62ca)=>{const _0x1073d1=a4_0x1e26;ActionApi(_0x47b1d0,_0x1073d1(0x1c3),_0x4767b2,_0x8e7a1)(_0x162e96,_0xfd19ce,_0x5a62ca);};},Action[a4_0x2f2f2c(0x1a6)]=function(_0x2d6d3f,_0x4690d4='/',_0x57982a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2b348b,_0x831bb8,_0x1b3c77)=>{ActionApi(_0x2d6d3f,'post',_0x4690d4,_0x57982a)(_0x2b348b,_0x831bb8,_0x1b3c77);};};function a4_0x684e(){const _0x5d0ff1=['middlewareIgnore','5186335eHVgqj','NODE_ENV','createCustomMethodDecorator','11ZzGDAg','string','Validator','APPSCONFIG_KEY','../types/action','6YpUVKV','MIDWAY_SERVER_ENV','values','match','AppsConfigTmp','ACTION_RESPONSE_KEY','apply','undefined','route','defaultsDeep','post','response','parseRoute','ACTION_ROUTE_KEY','push','cwd','prefix','constructor','app/controller/','-action','/apps/','getClassMetadata','rootpath','-controller','intercept','split','existsSync','module','endsWith','splice','1154630xCjyXT','7754112FrUVVK','127561XezALW','Action','__esModule','env','substring','basic/controller/','tagName','get','filter','toString','filepath','assign','toLowerCase','startsWith','defineProperty','trim','@anncic-api/validator','indexOf','464IQBNGJ','ACTION_KEY','saveClassMetadata','attachClassMetadata','\x20文件请放在app/controller/文件下','keys','apimit','60579xKrcpI','5992332SYqcUg','join','search','length','/config.default.','/config.','routerName','saveModule','validate','140GsvPJs','/controller/','apps/','middleware','327379oLBIzu','replace','ActionApi','/apps','validationOptions'];a4_0x684e=function(){return _0x5d0ff1;};return a4_0x684e();}function ActionApi(_0x1cf63c,_0x44f021='get',_0x4ce040='/',_0xe0c191={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3e972f,_0x25a7bf,_0x1925aa)=>{const _0x4b6d9c=a4_0x1e26;var _0x57ce00,_0x52258e,_0x6092e6;!_0xe0c191[_0x4b6d9c(0x1e2)]&&(_0xe0c191[_0x4b6d9c(0x1e2)]=[]);!((_0x57ce00=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x1de)])===null||_0x57ce00===void 0x0?void 0x0:_0x57ce00[_0x4b6d9c(0x1e7)])&&(_0xe0c191['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x4ce040)_0x4ce040='/';else typeof _0x4ce040==_0x4b6d9c(0x198)&&(!_0x4ce040[_0x4b6d9c(0x1c9)]('/')&&!_0x4ce040[_0x4b6d9c(0x1c9)]('-')&&(_0x4ce040='/'+_0x4ce040));typeof _0xe0c191[_0x4b6d9c(0x1d4)]==_0x4b6d9c(0x1a3)&&(_0xe0c191['apimit']=!![]);if(((_0x52258e=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x1e2)])===null||_0x52258e===void 0x0?void 0x0:_0x52258e[_0x4b6d9c(0x1d9)])>0x0&&((_0x6092e6=_0xe0c191===null||_0xe0c191===void 0x0?void 0x0:_0xe0c191[_0x4b6d9c(0x193)])===null||_0x6092e6===void 0x0?void 0x0:_0x6092e6[_0x4b6d9c(0x1d9)])>0x0)for(let _0xb784a7 in _0xe0c191[_0x4b6d9c(0x1e2)]){_0xe0c191[_0x4b6d9c(0x193)][_0x4b6d9c(0x1cd)](_0xe0c191[_0x4b6d9c(0x1e2)][_0xb784a7])!==-0x1&&(_0xe0c191[_0x4b6d9c(0x1e2)][_0xb784a7]=null);}_0xe0c191['routerName']=_0x1cf63c,(0x0,validator_1[_0x4b6d9c(0x199)])(_0xe0c191['validate'])(_0x3e972f,_0x25a7bf,_0x1925aa),(0x0,core_2['RequestMapping'])(Object[_0x4b6d9c(0x1c7)](_0xe0c191,{'path':_0x4ce040,'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))[_0x4b6d9c(0x1c8)]()}))(_0x3e972f,_0x25a7bf,_0x1925aa),(0x0,core_2[_0x4b6d9c(0x1d1)])(action_1[_0x4b6d9c(0x1a9)],{'path':_0x4ce040,'method':_0x25a7bf,'apimit':_0xe0c191['apimit'],'intercept':_0xe0c191[_0x4b6d9c(0x1b4)],'routerName':_0xe0c191[_0x4b6d9c(0x1dc)],'description':_0xe0c191['description'],'middleware':(_0xe0c191[_0x4b6d9c(0x1e2)]||[])[_0x4b6d9c(0x1c4)](_0x4254ca=>!!_0x4254ca),'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))[_0x4b6d9c(0x1c8)]()},_0x3e972f),(0x0,core_2[_0x4b6d9c(0x196)])(action_1[_0x4b6d9c(0x1a9)],{'path':_0x4ce040,'method':_0x25a7bf,'apimit':_0xe0c191['apimit'],'intercept':_0xe0c191[_0x4b6d9c(0x1b4)],'routerName':_0xe0c191['routerName'],'description':_0xe0c191['description'],'middleware':(_0xe0c191[_0x4b6d9c(0x1e2)]||[])['filter'](_0x2163f5=>!!_0x2163f5),'requestMethod':(_0x44f021||_0x4b6d9c(0x1c3))['toLowerCase']()})(_0x3e972f,_0x25a7bf,_0x1925aa),_0xe0c191[_0x4b6d9c(0x1a7)]&&(0x0,core_2['attachClassMetadata'])(action_1[_0x4b6d9c(0x1a1)],{'method':_0x25a7bf,..._0xe0c191[_0x4b6d9c(0x1a7)]},_0x3e972f);};}function a4_0x1e26(_0x3587db,_0x1c2c41){const _0x8ce2a=a4_0x684e();return a4_0x1e26=function(_0x1981d4,_0x5b60c7){_0x1981d4=_0x1981d4-0x193;let _0x684ed8=_0x8ce2a[_0x1981d4];return _0x684ed8;},a4_0x1e26(_0x3587db,_0x1c2c41);}function parseRoute(_0x55b411){const _0x424d97=a4_0x2f2f2c;_0x55b411=_0x55b411[_0x424d97(0x1e4)](/(\\|\/)/g,'/');const _0x2ab5a6=process[_0x424d97(0x1ab)]()[_0x424d97(0x1e4)](/(\\|\/)/g,'/'),_0x3f7e96=_0x55b411[_0x424d97(0x1c0)](0x0,_0x2ab5a6[_0x424d97(0x1d9)]+_0x55b411[_0x424d97(0x1c0)](_0x2ab5a6[_0x424d97(0x1d9)]+0x1)[_0x424d97(0x1cd)]('/')+0x1),_0xaef61a=_0x55b411['substring'](_0x3f7e96[_0x424d97(0x1d9)]+0x1)[_0x424d97(0x1e4)](/(\\|\/)/g,'/'),_0x67bc24={'route':'','prefix':![],'module':![],'rootpath':_0x3f7e96,'filepath':_0xaef61a};if(_0xaef61a[_0x424d97(0x1c9)]('app/controller/')||_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1c1))){const _0x2831b4=_0xaef61a['substring']((_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1ae))?'app/controller/':_0x424d97(0x1c1))[_0x424d97(0x1d9)])[_0x424d97(0x1b5)]('/')[_0x424d97(0x1c4)](_0x5b7dd7=>_0x5b7dd7&&_0x5b7dd7[_0x424d97(0x1cb)]());return _0x2831b4['length']>0x1&&(_0x67bc24[_0x424d97(0x1ac)]=_0x2831b4[0x0][_0x424d97(0x1c8)](),_0x2831b4[_0x424d97(0x1b9)](0x0,0x1)),_0x67bc24[_0x424d97(0x1a4)]=('/'+_0x2831b4[_0x424d97(0x1d7)]('/'))[_0x424d97(0x1e4)](/(\.ts|\.js)$/,'')[_0x424d97(0x1e4)](/\/{2,}/g,'/')[_0x424d97(0x19f)](/[\/|A-Z]*[^A-Z]+/g)[_0x424d97(0x1d7)]('-')[_0x424d97(0x1c8)]()[_0x424d97(0x1e4)](/\/\-/g,'/'),_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1b8)](_0x424d97(0x1af))&&(_0x67bc24['route']=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0x7)),_0x67bc24['route']['endsWith'](_0x424d97(0x1b3))&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24['route'][_0x424d97(0x1d9)]-0xb)),_0x67bc24;}else{if(_0xaef61a['startsWith'](_0x424d97(0x1e1))){const _0xff18ee=_0xaef61a[_0x424d97(0x1c0)](0x0,_0xaef61a[_0x424d97(0x1cd)](_0x424d97(0x1b0))+0x5),_0x5e1d8f=_0xaef61a[_0x424d97(0x1c0)](_0xff18ee[_0x424d97(0x1d9)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x424d97(0x1b5)]('/')[0x0];if(_0xaef61a[_0x424d97(0x1c9)](_0x424d97(0x1e1)+_0x5e1d8f+_0x424d97(0x1e0))){const _0x5f12cd=_0xaef61a[_0x424d97(0x1c0)]((_0xff18ee+'/'+_0x5e1d8f+_0x424d97(0x1e0))['length'])[_0x424d97(0x1b5)]('/')[_0x424d97(0x1c4)](_0x522a80=>_0x522a80&&_0x522a80['trim']());return _0x5f12cd[_0x424d97(0x1d9)]>0x1&&(_0x67bc24[_0x424d97(0x1ac)]=_0x5f12cd[0x0][_0x424d97(0x1c8)](),_0x5f12cd[_0x424d97(0x1b9)](0x0,0x1)),_0x67bc24[_0x424d97(0x1b7)]=_0x5e1d8f,_0x67bc24['route']=('/'+_0x5e1d8f+'/'+_0x5f12cd[_0x424d97(0x1d7)]('/'))[_0x424d97(0x1e4)](/(\.ts|\.js)$/,'')[_0x424d97(0x1e4)](/\/{2,}/g,'/')[_0x424d97(0x19f)](/[\/|A-Z]*[^A-Z]+/g)[_0x424d97(0x1d7)]('-')['toLowerCase']()[_0x424d97(0x1e4)](/\/\-/g,'/'),_0x67bc24[_0x424d97(0x1a4)]['endsWith']('-action')&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24['route'][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0x7)),_0x67bc24[_0x424d97(0x1a4)]['endsWith'](_0x424d97(0x1b3))&&(_0x67bc24[_0x424d97(0x1a4)]=_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1c0)](0x0,_0x67bc24[_0x424d97(0x1a4)][_0x424d97(0x1d9)]-0xb)),_0x67bc24;}throw new Error(_0xaef61a+'\x20文件请放在apps/'+_0x5e1d8f+'/controller/文件下');}}throw new Error(_0xaef61a+_0x424d97(0x1d2));}const moduleConfigTmp=(0x0,core_1[a4_0x2f2f2c(0x1b1)])(action_1['APPSCONFIG_KEY'],action_1[a4_0x2f2f2c(0x1a0)])||{};function getModuleConfig(_0x4c1485,_0x165724,_0x14eb08){const _0x2e9b99=a4_0x2f2f2c;if(Object[_0x2e9b99(0x19e)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x165724])||{})[_0x2e9b99(0x1d9)]==0x0){let _0x486598={};if(NODE_ENV&&fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1db)+NODE_ENV+'.'+_0x14eb08)){const _0x4a28ef=include(_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1db)+NODE_ENV+'.'+_0x14eb08);Object[_0x2e9b99(0x1d3)](_0x4a28ef)[_0x2e9b99(0x1d9)]>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x4a28ef));}if(fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1da)+_0x14eb08)){const _0x25d1c3=include(_0x4c1485+'/'+_0x165724+_0x2e9b99(0x1da)+_0x14eb08);Object[_0x2e9b99(0x1d3)](_0x25d1c3)[_0x2e9b99(0x1d9)]>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x25d1c3));}if(fs[_0x2e9b99(0x1b6)](_0x4c1485+'/'+_0x165724+'/config.'+_0x14eb08)){const _0x590e30=include(_0x4c1485+'/'+_0x165724+'/config.'+_0x14eb08);Object['keys'](_0x590e30)['length']>0x0&&(_0x486598=lodash[_0x2e9b99(0x1a5)](_0x486598,_0x590e30));}moduleConfigTmp[_0x165724]=_0x486598,(0x0,core_1['saveClassMetadata'])(action_1[_0x2e9b99(0x19a)],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x165724];}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x36ed20=a5_0x12dc;(function(_0x20eac3,_0x498bea){const _0x32e40c=a5_0x12dc,_0x2a81e0=_0x20eac3();while(!![]){try{const _0x3f20f5=parseInt(_0x32e40c(0x185))/0x1+parseInt(_0x32e40c(0x182))/0x2+-parseInt(_0x32e40c(0x170))/0x3+parseInt(_0x32e40c(0x180))/0x4+parseInt(_0x32e40c(0x175))/0x5+parseInt(_0x32e40c(0x172))/0x6*(-parseInt(_0x32e40c(0x187))/0x7)+-parseInt(_0x32e40c(0x177))/0x8;if(_0x3f20f5===_0x498bea)break;else _0x2a81e0['push'](_0x2a81e0['shift']());}catch(_0x37e421){_0x2a81e0['push'](_0x2a81e0['shift']());}}}(a5_0xab7f,0x4a763));const a5_0x29e6bf=(function(){let _0x4bced9=!![];return function(_0x526c35,_0x1efe9f){const _0x96b8de=_0x4bced9?function(){const _0x55c322=a5_0x12dc;if(_0x1efe9f){const _0x2cd997=_0x1efe9f[_0x55c322(0x17f)](_0x526c35,arguments);return _0x1efe9f=null,_0x2cd997;}}:function(){};return _0x4bced9=![],_0x96b8de;};}()),a5_0x365a33=a5_0x29e6bf(this,function(){const _0x44a95c=a5_0x12dc;return a5_0x365a33[_0x44a95c(0x183)]()[_0x44a95c(0x16d)](_0x44a95c(0x171))[_0x44a95c(0x183)]()[_0x44a95c(0x184)](a5_0x365a33)[_0x44a95c(0x16d)]('(((.+)+)+)+$');});a5_0x365a33();'use strict';Object[a5_0x36ed20(0x176)](exports,'__esModule',{'value':!![]}),exports[a5_0x36ed20(0x186)]=Apitest;const core_1=require(a5_0x36ed20(0x178)),ApitestService_1=require(a5_0x36ed20(0x179));function a5_0x12dc(_0x2e4340,_0x3b8219){const _0x14a1f8=a5_0xab7f();return a5_0x12dc=function(_0x365a33,_0x29e6bf){_0x365a33=_0x365a33-0x16b;let _0xab7f3a=_0x14a1f8[_0x365a33];return _0xab7f3a;},a5_0x12dc(_0x2e4340,_0x3b8219);}function a5_0xab7f(){const _0x2c6aa7=['toString','constructor','188621vIArdw','Apitest','7FWHJQo','getConfig','app','search','MidwayEnvironmentService','getApplicationContext','1186875PXyBza','(((.+)+)+)+$','2878866HcutJK','RequestMapping','apitest','2023815Uuuysk','defineProperty','447400JDeuUK','@midwayjs/core','../service/ApitestService','isDevelopmentEnvironment','REQUEST_OBJ_CTX_KEY','ApitestService','getAsync','/apitest','apply','1357644BakbCP','value','607122lDUaNA'];a5_0xab7f=function(){return _0x2c6aa7;};return a5_0xab7f();}function Apitest(_0x29d36a=a5_0x36ed20(0x17e),_0x51b3c0){return(_0x13206a,_0x8d5803,_0x1d692e)=>{const _0x33b243=a5_0x12dc;return(0x0,core_1[_0x33b243(0x173)])({'path':_0x29d36a,'requestMethod':'get'})(_0x13206a,_0x8d5803,_0x1d692e),_0x1d692e[_0x33b243(0x181)]=async function(..._0x37567f){const _0x312de2=_0x33b243;var _0x13399e;const _0x4eedef=(_0x13399e=this[core_1[_0x312de2(0x17b)]])===null||_0x13399e===void 0x0?void 0x0:_0x13399e[_0x312de2(0x16c)];if(_0x4eedef&&_0x4eedef[_0x312de2(0x16b)](_0x312de2(0x174))){const _0x1eda9f=await _0x4eedef[_0x312de2(0x16f)]()[_0x312de2(0x17d)](ApitestService_1[_0x312de2(0x17c)]),_0x4b7437=await _0x4eedef[_0x312de2(0x16f)]()[_0x312de2(0x17d)](core_1[_0x312de2(0x16e)]);return _0x4b7437[_0x312de2(0x17a)]()&&(_0x51b3c0['filepath']=!![]),await _0x1eda9f['apidoc'](_0x51b3c0);}return'';},_0x1d692e;};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a6_0x47d48d=a6_0x5ef5;function a6_0x5d27(){const _0x453468=['__esModule','Scope','search','63IFDKKK','177186zCNWEp','InterceptTargetTmp','match','includes','3248286IrglAs','ScopeEnum','push','255OgTphl','2104395HtJqCp','../types/intercept','Singleton','INTERCEPT_KEY','apply','getClassMetadata','Intercept','isArray','764020yHwDef','7858HRMWsc','578744SPzByW','(((.+)+)+)+$','IIntercept','7egbKju','@midwayjs/core','toString','2082440evNBQW'];a6_0x5d27=function(){return _0x453468;};return a6_0x5d27();}(function(_0x55dc16,_0x216169){const _0x1b6b49=a6_0x5ef5,_0x3d226a=_0x55dc16();while(!![]){try{const _0x1236ba=parseInt(_0x1b6b49(0x1dd))/0x1+parseInt(_0x1b6b49(0x1ee))/0x2*(-parseInt(_0x1b6b49(0x1e4))/0x3)+parseInt(_0x1b6b49(0x1ed))/0x4+parseInt(_0x1b6b49(0x1e5))/0x5+parseInt(_0x1b6b49(0x1e1))/0x6*(parseInt(_0x1b6b49(0x1f2))/0x7)+-parseInt(_0x1b6b49(0x1ef))/0x8*(parseInt(_0x1b6b49(0x1dc))/0x9)+-parseInt(_0x1b6b49(0x1f5))/0xa;if(_0x1236ba===_0x216169)break;else _0x3d226a['push'](_0x3d226a['shift']());}catch(_0x49f44a){_0x3d226a['push'](_0x3d226a['shift']());}}}(a6_0x5d27,0x44cf1));const a6_0x27008b=(function(){let _0x229ca8=!![];return function(_0x4febec,_0x9888fc){const _0x4f6172=_0x229ca8?function(){const _0x1f4aa8=a6_0x5ef5;if(_0x9888fc){const _0x255591=_0x9888fc[_0x1f4aa8(0x1e9)](_0x4febec,arguments);return _0x9888fc=null,_0x255591;}}:function(){};return _0x229ca8=![],_0x4f6172;};}()),a6_0x559597=a6_0x27008b(this,function(){const _0x4c657d=a6_0x5ef5;return a6_0x559597[_0x4c657d(0x1f4)]()[_0x4c657d(0x1db)](_0x4c657d(0x1f0))[_0x4c657d(0x1f4)]()['constructor'](a6_0x559597)[_0x4c657d(0x1db)](_0x4c657d(0x1f0));});a6_0x559597();'use strict';Object['defineProperty'](exports,a6_0x47d48d(0x1d9),{'value':!![]}),exports[a6_0x47d48d(0x1f1)]=void 0x0,exports[a6_0x47d48d(0x1eb)]=Intercept;const core_1=require(a6_0x47d48d(0x1f3)),intercept_1=require(a6_0x47d48d(0x1e6));function Intercept(_0x2d1cba){return _0x34e099=>{const _0x535e57=a6_0x5ef5,_0x6c46d=(0x0,core_1[_0x535e57(0x1ea)])(intercept_1[_0x535e57(0x1e8)],intercept_1[_0x535e57(0x1de)])||{};for(let _0x3f52b9 of Array[_0x535e57(0x1ec)](_0x2d1cba)?_0x2d1cba:[_0x2d1cba]){_0x3f52b9=_0x3f52b9['toUpperCase']();!(_0x6c46d===null||_0x6c46d===void 0x0?void 0x0:_0x6c46d[_0x3f52b9])&&(_0x6c46d[_0x3f52b9]=[]);if(_0x6c46d[_0x3f52b9][_0x535e57(0x1e0)](_0x34e099))continue;_0x6c46d[_0x3f52b9][_0x535e57(0x1e3)](_0x34e099);}(0x0,core_1['Provide'])()(_0x34e099),(0x0,core_1[_0x535e57(0x1da)])(core_1[_0x535e57(0x1e2)][_0x535e57(0x1e7)])(_0x34e099),(0x0,core_1['saveClassMetadata'])(intercept_1[_0x535e57(0x1e8)],_0x6c46d,intercept_1[_0x535e57(0x1de)]);};}function a6_0x5ef5(_0x429378,_0xbbc47b){const _0x22f4ac=a6_0x5d27();return a6_0x5ef5=function(_0x559597,_0x27008b){_0x559597=_0x559597-0x1d9;let _0x5d27a1=_0x22f4ac[_0x559597];return _0x5d27a1;},a6_0x5ef5(_0x429378,_0xbbc47b);}class IIntercept{async[a6_0x47d48d(0x1df)](_0x3340c3,_0xc80118,_0x5ba3ca){return!![];}}exports[a6_0x47d48d(0x1f1)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7_0x398c49=a7_0x1a81;(function(_0xcdd74,_0x28032b){var _0x36e399=a7_0x1a81,_0x2a236f=_0xcdd74();while(!![]){try{var _0x5b7a81=parseInt(_0x36e399(0x1fb))/0x1+parseInt(_0x36e399(0x1ff))/0x2*(parseInt(_0x36e399(0x1f0))/0x3)+-parseInt(_0x36e399(0x1f4))/0x4*(-parseInt(_0x36e399(0x201))/0x5)+-parseInt(_0x36e399(0x1f8))/0x6+-parseInt(_0x36e399(0x1e6))/0x7+-parseInt(_0x36e399(0x1e5))/0x8*(parseInt(_0x36e399(0x1e8))/0x9)+-parseInt(_0x36e399(0x1f1))/0xa*(-parseInt(_0x36e399(0x1f6))/0xb);if(_0x5b7a81===_0x28032b)break;else _0x2a236f['push'](_0x2a236f['shift']());}catch(_0x52f82a){_0x2a236f['push'](_0x2a236f['shift']());}}}(a7_0x2fbf,0x3afc4));var a7_0x29012c=(function(){var _0x44c740=!![];return function(_0x10943f,_0x5c14e4){var _0x45ad67=_0x44c740?function(){if(_0x5c14e4){var _0xe7672=_0x5c14e4['apply'](_0x10943f,arguments);return _0x5c14e4=null,_0xe7672;}}:function(){};return _0x44c740=![],_0x45ad67;};}()),a7_0x40ebf7=a7_0x29012c(this,function(){var _0x5cec84=a7_0x1a81;return a7_0x40ebf7[_0x5cec84(0x1fc)]()[_0x5cec84(0x1f2)]('(((.+)+)+)+$')[_0x5cec84(0x1fc)]()['constructor'](a7_0x40ebf7)[_0x5cec84(0x1f2)]('(((.+)+)+)+$');});a7_0x40ebf7();'use strict';function a7_0x1a81(_0x4500a9,_0x16dc36){var _0x377783=a7_0x2fbf();return a7_0x1a81=function(_0x40ebf7,_0x29012c){_0x40ebf7=_0x40ebf7-0x1e2;var _0x2fbf48=_0x377783[_0x40ebf7];return _0x2fbf48;},a7_0x1a81(_0x4500a9,_0x16dc36);}var __decorate=this&&this[a7_0x398c49(0x1f5)]||function(_0x55f41e,_0xaa94ee,_0x4a8b45,_0x4d0f11){var _0x3e9ba6=a7_0x398c49,_0x37e408=arguments[_0x3e9ba6(0x1f7)],_0x415815=_0x37e408<0x3?_0xaa94ee:_0x4d0f11===null?_0x4d0f11=Object['getOwnPropertyDescriptor'](_0xaa94ee,_0x4a8b45):_0x4d0f11,_0x32b219;if(typeof Reflect===_0x3e9ba6(0x1f9)&&typeof Reflect[_0x3e9ba6(0x1e9)]===_0x3e9ba6(0x1e4))_0x415815=Reflect[_0x3e9ba6(0x1e9)](_0x55f41e,_0xaa94ee,_0x4a8b45,_0x4d0f11);else{for(var _0x214cc1=_0x55f41e[_0x3e9ba6(0x1f7)]-0x1;_0x214cc1>=0x0;_0x214cc1--)if(_0x32b219=_0x55f41e[_0x214cc1])_0x415815=(_0x37e408<0x3?_0x32b219(_0x415815):_0x37e408>0x3?_0x32b219(_0xaa94ee,_0x4a8b45,_0x415815):_0x32b219(_0xaa94ee,_0x4a8b45))||_0x415815;}return _0x37e408>0x3&&_0x415815&&Object[_0x3e9ba6(0x1eb)](_0xaa94ee,_0x4a8b45,_0x415815),_0x415815;},__metadata=this&&this[a7_0x398c49(0x1fe)]||function(_0x304402,_0x4e5d7b){var _0x4c95c1=a7_0x398c49;if(typeof Reflect==='object'&&typeof Reflect[_0x4c95c1(0x1fd)]===_0x4c95c1(0x1e4))return Reflect[_0x4c95c1(0x1fd)](_0x304402,_0x4e5d7b);};Object[a7_0x398c49(0x1eb)](exports,'__esModule',{'value':!![]}),exports[a7_0x398c49(0x1ec)]=void 0x0;class ApiError extends AnnError{}function a7_0x2fbf(){var _0x3c687b=['function','72vZrwcJ','1442581NfZoLl','请使用正确的设备','283437bnGnjX','decorate','请求头信息不完整','defineProperty','ApiError','HEADERS_LACK','登录超时,请重新登录','HEADERS_SIGNATURE','928068ICWQxu','10GEPnbl','search','TIMEOUT_LOGINTIME','76OXQZiA','__decorate','762399jWMotU','length','1569888LwGsEC','object','design:type','258009jDPWDV','toString','metadata','__metadata','2ehKVnJ','请求超时,请重试','93710nGLlgr','TIMEOUT','验证失败,请重新登录','HEADERS_CHECKCODE','signature验证失败'];a7_0x2fbf=function(){return _0x3c687b;};return a7_0x2fbf();}exports[a7_0x398c49(0x1ec)]=ApiError,ApiError[a7_0x398c49(0x202)]=0x19003,ApiError[a7_0x398c49(0x1ed)]=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a7_0x398c49(0x1ef)]=0x18e74,ApiError[a7_0x398c49(0x1e2)]=0x18e75,ApiError[a7_0x398c49(0x1f3)]=0x18e76,__decorate([AnnErrorMsg(a7_0x398c49(0x200)),__metadata('design:type',Object)],ApiError,a7_0x398c49(0x202),void 0x0),__decorate([AnnErrorMsg(a7_0x398c49(0x1ea)),__metadata(a7_0x398c49(0x1fa),Object)],ApiError,a7_0x398c49(0x1ed),void 0x0),__decorate([AnnErrorMsg(a7_0x398c49(0x1e7)),__metadata(a7_0x398c49(0x1fa),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a7_0x398c49(0x1e3)),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0x398c49(0x203)),__metadata(a7_0x398c49(0x1fa),Object)],ApiError,a7_0x398c49(0x1e2),void 0x0),__decorate([AnnErrorMsg(a7_0x398c49(0x1ee)),__metadata(a7_0x398c49(0x1fa),Object)],ApiError,a7_0x398c49(0x1f3),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a8_0x3fba9d=a8_0x3780;(function(_0x1a021c,_0x88728b){const _0x58b946=a8_0x3780,_0x5b50bc=_0x1a021c();while(!![]){try{const _0x10ccd1=-parseInt(_0x58b946(0x1d0))/0x1+-parseInt(_0x58b946(0x1ce))/0x2*(parseInt(_0x58b946(0x1d5))/0x3)+-parseInt(_0x58b946(0x1d2))/0x4+-parseInt(_0x58b946(0x1cd))/0x5+parseInt(_0x58b946(0x1c3))/0x6*(parseInt(_0x58b946(0x1c8))/0x7)+parseInt(_0x58b946(0x1c4))/0x8+parseInt(_0x58b946(0x1c5))/0x9;if(_0x10ccd1===_0x88728b)break;else _0x5b50bc['push'](_0x5b50bc['shift']());}catch(_0x2b8fce){_0x5b50bc['push'](_0x5b50bc['shift']());}}}(a8_0x2634,0xd76e6));const a8_0x1826a0=(function(){let _0x17ef95=!![];return function(_0x196ddb,_0x24583d){const _0x1dc1e0=_0x17ef95?function(){if(_0x24583d){const _0x365f9b=_0x24583d['apply'](_0x196ddb,arguments);return _0x24583d=null,_0x365f9b;}}:function(){};return _0x17ef95=![],_0x1dc1e0;};}()),a8_0x2c8953=a8_0x1826a0(this,function(){const _0x48315e=a8_0x3780;return a8_0x2c8953['toString']()['search'](_0x48315e(0x1d4))[_0x48315e(0x1c6)]()['constructor'](a8_0x2c8953)['search']('(((.+)+)+)+$');});a8_0x2c8953();'use strict';function a8_0x3780(_0x17b362,_0x53dc52){const _0x57d1c2=a8_0x2634();return a8_0x3780=function(_0x2c8953,_0x1826a0){_0x2c8953=_0x2c8953-0x1c3;let _0x26341a=_0x57d1c2[_0x2c8953];return _0x26341a;},a8_0x3780(_0x17b362,_0x53dc52);}Object[a8_0x3fba9d(0x1c7)](exports,a8_0x3fba9d(0x1cb),{'value':!![]}),exports[a8_0x3fba9d(0x1cc)]=getAppsConfig;const core_1=require(a8_0x3fba9d(0x1ca)),action_1=require('../types/action');function a8_0x2634(){const _0x8bbadc=['36SeGzeJ','10351880NnFQLa','13520628wwbvcd','toString','defineProperty','1712375YANMzY','APPSCONFIG_KEY','@midwayjs/core','__esModule','getAppsConfig','7069905gztyef','34GzUFXS','getClassMetadata','209650CLblCs','get','2544844qjdFoJ','AppsConfigTmp','(((.+)+)+)+$','197961AAwTXL'];a8_0x2634=function(){return _0x8bbadc;};return a8_0x2634();}function getAppsConfig(_0x1ffa58,_0x25e3f7){const _0x21a222=a8_0x3fba9d,_0x3f555c=(0x0,core_1[_0x21a222(0x1cf)])(action_1[_0x21a222(0x1c9)],action_1[_0x21a222(0x1d3)])||{};return _0x1ffa58?lodash[_0x21a222(0x1d1)](_0x3f555c,_0x1ffa58,_0x25e3f7):_0x3f555c;}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0xfa1a60=a9_0x2fed;(function(_0x17771d,_0x597f15){const _0x42ee7c=a9_0x2fed,_0x3a2be0=_0x17771d();while(!![]){try{const _0x38dc45=parseInt(_0x42ee7c(0x20f))/0x1*(-parseInt(_0x42ee7c(0x1db))/0x2)+parseInt(_0x42ee7c(0x1c2))/0x3*(-parseInt(_0x42ee7c(0x1c8))/0x4)+parseInt(_0x42ee7c(0x1c0))/0x5+parseInt(_0x42ee7c(0x1ef))/0x6+parseInt(_0x42ee7c(0x1b9))/0x7+-parseInt(_0x42ee7c(0x1e9))/0x8*(parseInt(_0x42ee7c(0x20e))/0x9)+parseInt(_0x42ee7c(0x20d))/0xa*(parseInt(_0x42ee7c(0x1f9))/0xb);if(_0x38dc45===_0x597f15)break;else _0x3a2be0['push'](_0x3a2be0['shift']());}catch(_0x1f8642){_0x3a2be0['push'](_0x3a2be0['shift']());}}}(a9_0x4dba,0x7ae28));const a9_0x56a7db=(function(){let _0x5a885b=!![];return function(_0x3d2d68,_0x28871a){const _0x2a0a96=_0x5a885b?function(){if(_0x28871a){const _0x2ee791=_0x28871a['apply'](_0x3d2d68,arguments);return _0x28871a=null,_0x2ee791;}}:function(){};return _0x5a885b=![],_0x2a0a96;};}()),a9_0x26c2de=a9_0x56a7db(this,function(){const _0x1658b0=a9_0x2fed;return a9_0x26c2de['toString']()['search'](_0x1658b0(0x1d4))[_0x1658b0(0x20b)]()[_0x1658b0(0x1c1)](a9_0x26c2de)[_0x1658b0(0x1d6)](_0x1658b0(0x1d4));});function a9_0x4dba(){const _0x4cd2c5=['limit','ACTION_ROUTE_KEY','number','title','FIELDS','static/apitest','WEB_ROUTER_PARAM_KEY','path','default','allow','get','method','文件上传-','filter','join','@midwayjs/core','Boolean','indexOf','2570218IsPTUf','substring','body','query','filepath','name','isArray','1951405xGNkmp','constructor','6297MHDteb','array','只允许:[','noreq','defineProperty','header','1140QeGeEh','errors','length','split','items','min','required','pprefix','HEADERS','routerOptions','response','object','(((.+)+)+)+$','routerName','search','boolean','INJECT_CUSTOM_PARAM','file','ACTION_RESPONSE_KEY','645498YrMLsL','metadata','children','summary','/static/apitest','request','intercept','@anncic-api/validator','route','FILESTREAM','flags.description','__esModule','type','flags.label','7167800LhNecK','rules','Number','startsWith','routes','FILESSTREAM','1090350UajKPW','description','getClassMetadata','flags.presence','key','ACTION_KEY','module','find','getClassExtendedMetadata','parameterIndex','3762MmZTQc','push','args','propertyData','lodash','replace','QUERY','describe','PARAM','properties','endsWith','File','RouteParamTypes','tagName','string','flags.default','keys','function','toString','prefix','49820kKtRww','9LVMRxx','2kPjNoa'];a9_0x4dba=function(){return _0x4cd2c5;};return a9_0x4dba();}a9_0x26c2de();'use strict';Object[a9_0xfa1a60(0x1c6)](exports,a9_0xfa1a60(0x1e6),{'value':!![]}),exports['getRoutes']=getRoutes;const lodash_1=require(a9_0xfa1a60(0x1fd)),validator_1=require(a9_0xfa1a60(0x1e2)),core_1=require(a9_0xfa1a60(0x21f)),core_2=require(a9_0xfa1a60(0x21f)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function a9_0x2fed(_0x3d7906,_0x206c82){const _0x5958f5=a9_0x4dba();return a9_0x2fed=function(_0x26c2de,_0x56a7db){_0x26c2de=_0x26c2de-0x1b7;let _0x4dba=_0x5958f5[_0x26c2de];return _0x4dba;},a9_0x2fed(_0x3d7906,_0x206c82);}function getRoutes(_0x1b9375={'prefix':'/','module':![]}){const _0x496d1b=a9_0xfa1a60;var _0x8555c3,_0x33c935;const _0x5315c3=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x5a09de={},_0x255f8f=Array[_0x496d1b(0x1bf)](_0x1b9375['filter']||[])?_0x1b9375[_0x496d1b(0x21d)]||[]:[_0x1b9375[_0x496d1b(0x21d)]];_0x16fe61:for(const _0x594ff5 of _0x5315c3){let _0x2560cf=(0x0,core_3['getClassMetadata'])(action_1[_0x496d1b(0x1f4)],_0x594ff5),_0x5dd2b3=(0x0,core_3[_0x496d1b(0x1f1)])(action_1[_0x496d1b(0x211)],_0x594ff5);if(_0x2560cf&&_0x5dd2b3){let _0x3a85ea=_0x2560cf[_0x496d1b(0x20c)],_0x30d687={};if(_0x1b9375[_0x496d1b(0x1f5)]&&(0x0,lodash_1[_0x496d1b(0x21a)])(_0x2560cf,_0x496d1b(0x1f5),![])!=_0x1b9375[_0x496d1b(0x1f5)])continue _0x16fe61;else{if(_0x1b9375[_0x496d1b(0x1f5)]===![]&&!!(0x0,lodash_1[_0x496d1b(0x21a)])(_0x2560cf,'module',null))continue _0x16fe61;}if(_0x1b9375[_0x496d1b(0x20c)]&&!_0x3a85ea['startsWith'](_0x1b9375[_0x496d1b(0x20c)]))continue _0x16fe61;_0x3a85ea!=='/'?(_0x30d687['summary']=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x206)])||(/^\//['test'](_0x3a85ea)?_0x3a85ea[_0x496d1b(0x1cb)]('/')[0x1]:_0x3a85ea),_0x30d687[_0x496d1b(0x1f0)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x1f0)])||_0x30d687[_0x496d1b(0x1de)],_0x30d687[_0x496d1b(0x1ed)]=[]):(_0x30d687[_0x496d1b(0x1de)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x206)])||_0x496d1b(0x218),_0x30d687[_0x496d1b(0x1f0)]=(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1d1)][_0x496d1b(0x1f0)])||'',_0x30d687[_0x496d1b(0x1ed)]=[]);_0x1b9375['filepath']&&(_0x30d687[_0x496d1b(0x1bd)]=_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1bd)]);(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf['pprefix'])&&(_0x30d687[_0x496d1b(0x20c)]=_0x2560cf[_0x496d1b(0x1cf)]);(_0x2560cf===null||_0x2560cf===void 0x0?void 0x0:_0x2560cf[_0x496d1b(0x1f5)])&&(_0x30d687[_0x496d1b(0x1f5)]=_0x2560cf[_0x496d1b(0x1f5)]);let _0x3b6139=(0x0,core_3['getClassMetadata'])(core_2[_0x496d1b(0x1d8)],_0x594ff5)||{};if(typeof _0x5dd2b3[Symbol['iterator']]==='function')for(let _0x351a31 of _0x5dd2b3){if((_0x1b9375===null||_0x1b9375===void 0x0?void 0x0:_0x1b9375[_0x496d1b(0x1e1)])&&!(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31['intercept']))continue;let _0x1bf20e={};_0x1bf20e[_0x496d1b(0x21b)]=_0x351a31['requestMethod'],_0x1bf20e[_0x496d1b(0x1e3)]=(_0x3a85ea+_0x351a31['path'])[_0x496d1b(0x1fe)](/\/{2,}/g,'/'),_0x1bf20e[_0x496d1b(0x1de)]=(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31[_0x496d1b(0x1d5)])||_0x30d687[_0x496d1b(0x1de)]||_0x496d1b(0x218),_0x1bf20e[_0x496d1b(0x1f0)]=(_0x351a31===null||_0x351a31===void 0x0?void 0x0:_0x351a31[_0x496d1b(0x1f0)])||'',_0x1bf20e[_0x496d1b(0x1e0)]=[],_0x1bf20e[_0x496d1b(0x1d2)]=getMethodResponse(_0x594ff5,_0x351a31[_0x496d1b(0x21b)]);_0x1bf20e['route'][_0x496d1b(0x203)]('/')&&(_0x1bf20e['route']=_0x1bf20e['route'][_0x496d1b(0x1ba)](0x0,_0x1bf20e[_0x496d1b(0x1e3)][_0x496d1b(0x1ca)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x1bf20e['route'],_0x496d1b(0x215))&&!(0x0,lodash_1[_0x496d1b(0x1ec)])(_0x1bf20e[_0x496d1b(0x1e3)],_0x496d1b(0x1df))&&_0x255f8f[_0x496d1b(0x1b8)](_0x1bf20e[_0x496d1b(0x1e3)])===-0x1){if(!(_0x1b9375===null||_0x1b9375===void 0x0?void 0x0:_0x1b9375[_0x496d1b(0x1c5)])){let _0x19e8cb=(0x0,core_3['getMethodParamTypes'])(new _0x594ff5(),_0x351a31[_0x496d1b(0x21b)]);for(const _0x3bce3f in _0x19e8cb){let _0x1832ad=(_0x8555c3=_0x3b6139[_0x351a31[_0x496d1b(0x21b)]])===null||_0x8555c3===void 0x0?void 0x0:_0x8555c3[_0x496d1b(0x1f6)](_0xbc13f8=>_0xbc13f8[_0x496d1b(0x1f8)]==_0x3bce3f&&_0xbc13f8[_0x496d1b(0x1f3)]===core_2[_0x496d1b(0x216)]&&(_0xbc13f8===null||_0xbc13f8===void 0x0?void 0x0:_0xbc13f8[_0x496d1b(0x1dc)]));if(_0x1832ad===null||_0x1832ad===void 0x0?void 0x0:_0x1832ad['metadata']){let _0xe337f=convertTypeToString(_0x1832ad[_0x496d1b(0x1dc)]['type']||0x0);if([_0x496d1b(0x1bc),_0x496d1b(0x1bb)]['indexOf'](_0xe337f)!=-0x1&&_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)][_0x496d1b(0x1b8)](':')==-0x1&&!_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1f6)](_0x433e0e=>_0x433e0e[_0x496d1b(0x1f3)]==_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)]))_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1fa)]({'key':_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)],'title':_0x1832ad[_0x496d1b(0x1dc)][_0x496d1b(0x1fc)],'type':convertSchemaType(_0x19e8cb[_0x1832ad[_0x496d1b(0x1f8)]]['name']),'required':![],'default':'','desc':''});else{if(_0xe337f=='file'){let _0xe245b6=((_0x33c935=_0x1832ad===null||_0x1832ad===void 0x0?void 0x0:_0x1832ad['metadata'])===null||_0x33c935===void 0x0?void 0x0:_0x33c935[_0x496d1b(0x1fc)])||_0x496d1b(0x1d9);_0xe245b6[_0x496d1b(0x1b8)](':')==-0x1&&!_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1f6)](_0x2574fa=>_0x2574fa[_0x496d1b(0x1f3)]==_0xe245b6&&_0x2574fa[_0x496d1b(0x1e7)]==_0x496d1b(0x1d9))&&_0x1bf20e[_0x496d1b(0x1e0)][_0x496d1b(0x1fa)]({'key':_0xe245b6,'title':_0x496d1b(0x21c)+_0xe245b6,'type':_0x496d1b(0x1d9),'required':!![],'default':'','desc':''});}}}else{const _0x271811=(0x0,core_3[_0x496d1b(0x1f7)])(validator_1['RULES_KEY'],_0x19e8cb[_0x3bce3f]);_0x271811&&_0x1bf20e[_0x496d1b(0x1e0)]['push'](...getJoiRequest(_0x271811));}}}_0x30d687[_0x496d1b(0x1ed)]['push'](_0x1bf20e);}}if(_0x30d687[_0x496d1b(0x1ed)][_0x496d1b(0x1ca)]>0x0){let _0x57bf91=_0x5a09de[_0x3a85ea];_0x57bf91?(_0x57bf91['summary']!=_0x30d687[_0x496d1b(0x1de)]&&(_0x57bf91[_0x496d1b(0x1de)]=_0x57bf91[_0x496d1b(0x1de)]+','+_0x30d687[_0x496d1b(0x1de)]),_0x57bf91[_0x496d1b(0x1f0)]!=_0x30d687['description']&&(_0x57bf91[_0x496d1b(0x1f0)]=_0x57bf91[_0x496d1b(0x1f0)]+','+_0x30d687['description']),_0x57bf91[_0x496d1b(0x1ed)]=_0x57bf91[_0x496d1b(0x1ed)]['concat'](_0x30d687[_0x496d1b(0x1ed)]),_0x5a09de[_0x3a85ea]=_0x57bf91):_0x5a09de[_0x3a85ea]=_0x30d687;}}}return _0x5a09de;}function getJoiRequest(_0x5c2346){const _0x251e33=a9_0xfa1a60;var _0x2894ec,_0x151672;const _0x1430ef=[];for(let _0x195c60 in _0x5c2346){const _0x2e58a1={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x45c3db=typeof _0x5c2346[_0x195c60][_0x251e33(0x200)]==_0x251e33(0x20a)?_0x5c2346[_0x195c60]['describe']():_0x5c2346[_0x195c60];_0x2e58a1['key']=_0x195c60,_0x2e58a1[_0x251e33(0x1e7)]=_0x45c3db[_0x251e33(0x1e7)],_0x2e58a1[_0x251e33(0x213)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x1e8),_0x195c60),_0x2e58a1[_0x251e33(0x218)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x208),''),_0x2e58a1[_0x251e33(0x1ce)]=(0x0,lodash_1[_0x251e33(0x21a)])(_0x45c3db,_0x251e33(0x1f2),'')==_0x251e33(0x1ce),_0x2e58a1[_0x251e33(0x1f0)]=(0x0,lodash_1['get'])(_0x45c3db,_0x251e33(0x1e5),'');if(_0x45c3db[_0x251e33(0x1e7)]==_0x251e33(0x1d3))(_0x45c3db===null||_0x45c3db===void 0x0?void 0x0:_0x45c3db[_0x251e33(0x209)])&&(_0x2e58a1[_0x251e33(0x1dd)]=getJoiRequest(_0x45c3db[_0x251e33(0x209)]));else _0x45c3db[_0x251e33(0x1e7)]==_0x251e33(0x1c3)&&_0x45c3db[_0x251e33(0x1cc)]&&Array['isArray'](_0x45c3db[_0x251e33(0x1cc)])&&(((_0x151672=(_0x2894ec=_0x45c3db===null||_0x45c3db===void 0x0?void 0x0:_0x45c3db['items'])===null||_0x2894ec===void 0x0?void 0x0:_0x2894ec[0x0])===null||_0x151672===void 0x0?void 0x0:_0x151672['keys'])&&(_0x2e58a1['children']=getJoiRequest(_0x45c3db['items'][0x0][_0x251e33(0x209)])));_0x45c3db[_0x251e33(0x219)]&&Array['isArray'](_0x45c3db['allow'])&&_0x45c3db[_0x251e33(0x219)][_0x251e33(0x1ca)]>0x0&&(_0x2e58a1[_0x251e33(0x1f0)]=_0x251e33(0x1c4)+_0x45c3db[_0x251e33(0x219)][_0x251e33(0x21e)](',')+'];'+_0x2e58a1[_0x251e33(0x1f0)]);if(_0x2e58a1['key']&&_0x2e58a1[_0x251e33(0x1e7)]){const _0x1c58cc={};for(const _0x27b464 of _0x45c3db['rules']||[]){if(_0x27b464[_0x251e33(0x1be)]===_0x251e33(0x1cd)&&_0x27b464[_0x251e33(0x1fb)])_0x1c58cc['min']=_0x27b464[_0x251e33(0x1fb)][_0x251e33(0x210)];else _0x27b464[_0x251e33(0x1be)]==='max'&&(_0x1c58cc['max']=_0x27b464[_0x251e33(0x1fb)][_0x251e33(0x210)]);}_0x2e58a1[_0x251e33(0x1ea)]=_0x1c58cc;}_0x2e58a1[_0x251e33(0x1f3)]&&_0x2e58a1[_0x251e33(0x213)]&&_0x1430ef['push'](_0x2e58a1);}return _0x1430ef;}function convertSchemaType(_0x47aa82){const _0x484d5b=a9_0xfa1a60;switch(_0x47aa82){case'Object':return _0x484d5b(0x1d3);case _0x484d5b(0x1b7):return _0x484d5b(0x1d7);case _0x484d5b(0x1eb):return _0x484d5b(0x212);case'String':return _0x484d5b(0x207);case _0x484d5b(0x204):return _0x484d5b(0x1d9);default:return _0x484d5b(0x207);}}function convertTypeToString(_0x4f15ac){const _0x4739d3=a9_0xfa1a60;switch(_0x4f15ac){case core_1[_0x4739d3(0x205)][_0x4739d3(0x1d0)]:return _0x4739d3(0x1c7);case core_1[_0x4739d3(0x205)][_0x4739d3(0x1ff)]:return _0x4739d3(0x1bc);case core_1['RouteParamTypes'][_0x4739d3(0x201)]:return _0x4739d3(0x217);case core_1[_0x4739d3(0x205)]['BODY']:return _0x4739d3(0x1bb);case core_1[_0x4739d3(0x205)][_0x4739d3(0x214)]:case core_1[_0x4739d3(0x205)][_0x4739d3(0x1ee)]:case core_1[_0x4739d3(0x205)][_0x4739d3(0x1e4)]:return _0x4739d3(0x1d9);default:return _0x4739d3(0x1c7);}}function getMethodResponse(_0xf16b52,_0x3c6860){const _0x3ac178=a9_0xfa1a60,_0xb3baac=(0x0,core_3[_0x3ac178(0x1f1)])(action_1[_0x3ac178(0x1da)],_0xf16b52);if(!_0xb3baac)return null;const _0x50147c=_0xb3baac[_0x3ac178(0x1f6)](_0x1a2b83=>_0x1a2b83[_0x3ac178(0x21b)]===_0x3c6860);if(!_0x50147c)return null;return{'format':_0x50147c['format']||_0x3ac178(0x218),'type':_0x50147c[_0x3ac178(0x1e7)],'description':_0x50147c['description']||'','properties':_0x50147c[_0x3ac178(0x202)]||[],'errors':_0x50147c[_0x3ac178(0x1c9)]||[]};}
|
|
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 +1 @@
|
|
|
1
|
-
const a10_0x56d79f=a10_0x3e71;(function(_0x6aca98,_0x42aa15){const _0x183e67=a10_0x3e71,_0x1f32c3=_0x6aca98();while(!![]){try{const _0x13d1a2=-parseInt(_0x183e67(0x1a6))/0x1*(parseInt(_0x183e67(0x1b9))/0x2)+parseInt(_0x183e67(0x1b4))/0x3*(-parseInt(_0x183e67(0x1e4))/0x4)+-parseInt(_0x183e67(0x1a9))/0x5+parseInt(_0x183e67(0x1ca))/0x6+parseInt(_0x183e67(0x1e5))/0x7*(parseInt(_0x183e67(0x1cb))/0x8)+parseInt(_0x183e67(0x1c8))/0x9*(-parseInt(_0x183e67(0x1de))/0xa)+parseInt(_0x183e67(0x1aa))/0xb;if(_0x13d1a2===_0x42aa15)break;else _0x1f32c3['push'](_0x1f32c3['shift']());}catch(_0x24d819){_0x1f32c3['push'](_0x1f32c3['shift']());}}}(a10_0x53e9,0xa9af7));const a10_0x5b53be=(function(){let _0x2962b8=!![];return function(_0x1ca41e,_0x142216){const _0x2c705c=_0x2962b8?function(){const _0x156267=a10_0x3e71;if(_0x142216){const _0x55a7e7=_0x142216[_0x156267(0x1e2)](_0x1ca41e,arguments);return _0x142216=null,_0x55a7e7;}}:function(){};return _0x2962b8=![],_0x2c705c;};}()),a10_0x47a078=a10_0x5b53be(this,function(){const _0x47effd=a10_0x3e71;return a10_0x47a078[_0x47effd(0x1bf)]()[_0x47effd(0x1cd)]('(((.+)+)+)+$')['toString']()[_0x47effd(0x1d9)](a10_0x47a078)['search']('(((.+)+)+)+$');});a10_0x47a078();function a10_0x3e71(_0x295cae,_0x2988c5){const _0xf4918c=a10_0x53e9();return a10_0x3e71=function(_0x47a078,_0x5b53be){_0x47a078=_0x47a078-0x19f;let _0x53e97f=_0xf4918c[_0x47a078];return _0x53e97f;},a10_0x3e71(_0x295cae,_0x2988c5);}'use strict';Object[a10_0x56d79f(0x1d7)](exports,'__esModule',{'value':!![]}),exports['getSwaggerJson']=getSwaggerJson;const getRoutes_1=require(a10_0x56d79f(0x1cf)),DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x56d79f(0x1df),'properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':'状态码,0表示成功,其他为错误码'},'data':{'type':'object','description':a10_0x56d79f(0x1eb)},'extra':{'type':'object','description':a10_0x56d79f(0x1a0)}},'required':[a10_0x56d79f(0x1bb)]},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':a10_0x56d79f(0x1a2)},'data':{'type':a10_0x56d79f(0x1c7),'items':{'type':a10_0x56d79f(0x1df)},'description':a10_0x56d79f(0x1a8)},'extra':{'type':a10_0x56d79f(0x1df),'properties':{'pageinfo':{'type':'object','description':a10_0x56d79f(0x1d5)},'pagetotal':{'type':a10_0x56d79f(0x1dd),'description':'总数量'}},'description':a10_0x56d79f(0x1a0)}},'required':[a10_0x56d79f(0x1bb)]},'ApiError':{'type':'object','properties':{'code':{'type':a10_0x56d79f(0x1dd),'description':'错误码'},'message':{'type':a10_0x56d79f(0x1a5),'description':a10_0x56d79f(0x1c5)}},'required':['code',a10_0x56d79f(0x1be)]}},DEFAULT_RESPONSES={'200':{'description':a10_0x56d79f(0x1af),'schema':{'oneOf':[{'$ref':a10_0x56d79f(0x1e3)},{'$ref':a10_0x56d79f(0x1b7)},{'$ref':a10_0x56d79f(0x1d2)}]}}};function getSwaggerJson(_0x4e1501={'prefix':'/','module':![]}){const _0x5d45f8=a10_0x56d79f;var _0xdac9f7;const _0x5768b6=(0x0,getRoutes_1[_0x5d45f8(0x1a3)])(_0x4e1501),_0x3fde6d=new Map();let _0x5e3127;_0x4e1501['definitions']?_0x5e3127=_0x4e1501['definitions']:(_0x5e3127={...DEFAULT_DEFINITIONS},_0x4e1501[_0x5d45f8(0x1bd)]&&Object[_0x5d45f8(0x1e7)](_0x5e3127,_0x4e1501[_0x5d45f8(0x1bd)]));const _0x346fbc={'swagger':_0x5d45f8(0x1b5),'info':{'title':_0x4e1501[_0x5d45f8(0x1b3)]||_0x5d45f8(0x1d3),'description':_0x4e1501['description']||_0x5d45f8(0x1d6),'version':_0x4e1501[_0x5d45f8(0x1da)]||'1.0.0'},'host':_0x4e1501[_0x5d45f8(0x1ac)]||_0x5d45f8(0x1c4),'basePath':_0x4e1501[_0x5d45f8(0x1ea)]||'/','schemes':_0x4e1501['schemes']||[_0x5d45f8(0x1a1)],'tags':[],'paths':{},'definitions':_0x5e3127};for(const _0xe2e699 in _0x5768b6){const _0x4a8dcf=_0x5768b6[_0xe2e699],_0x47fbb7=(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1ab)])||(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1d4)])||_0x5d45f8(0x1b2),_0x1ba4f8=(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1c9)])||_0x47fbb7;(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf[_0x5d45f8(0x1d4)])&&_0x4a8dcf[_0x5d45f8(0x1d4)]!='/'&&(!_0x3fde6d[_0x5d45f8(0x1e6)](_0x47fbb7)&&_0x3fde6d[_0x5d45f8(0x1ec)](_0x47fbb7,{'name':_0x47fbb7,'description':_0x1ba4f8}));for(const _0x215680 of(_0x4a8dcf===null||_0x4a8dcf===void 0x0?void 0x0:_0x4a8dcf['routes'])||[]){if(_0x215680[_0x5d45f8(0x1c6)]){!_0x346fbc['paths'][_0x215680[_0x5d45f8(0x1c6)]]&&(_0x346fbc[_0x5d45f8(0x1e0)][_0x215680[_0x5d45f8(0x1c6)]]={});if(!_0x346fbc[_0x5d45f8(0x1e0)][_0x215680[_0x5d45f8(0x1c6)]][_0x215680['method']]){const _0x53e277=buildRouteResponse(_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1c3)]),_0x967054={'summary':_0x215680[_0x5d45f8(0x1ab)],'deprecated':![],'description':(_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1c9)])||'','tags':_0x47fbb7?[_0x47fbb7]:[],'consumes':[_0x5d45f8(0x1c0)],'produces':[_0x5d45f8(0x1c0)],'responses':_0x53e277,'parameters':[{'in':_0x5d45f8(0x1c2),'name':'body','required':((_0xdac9f7=_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680['request'])===null||_0xdac9f7===void 0x0?void 0x0:_0xdac9f7[_0x5d45f8(0x1db)])>0x0,'schema':getSwaggerJsonParametersSchema((_0x215680===null||_0x215680===void 0x0?void 0x0:_0x215680[_0x5d45f8(0x1ae)])||[])}]};_0x346fbc['paths'][_0x215680[_0x5d45f8(0x1c6)]][_0x215680[_0x5d45f8(0x1c1)]]=_0x967054;}}}}return _0x346fbc['tags']=Array[_0x5d45f8(0x1dc)](_0x3fde6d['values']()),_0x346fbc;}function getSwaggerJsonParametersSchema(_0x4c4775=[],_0x3bcf87=a10_0x56d79f(0x1df)){const _0x5a1f35=a10_0x56d79f;var _0x1e3b6b,_0x36a1bf,_0x3c3527;const _0x341cd9={'type':_0x3bcf87};if(_0x3bcf87==_0x5a1f35(0x1df)){_0x341cd9[_0x5a1f35(0x1ce)]={},_0x341cd9[_0x5a1f35(0x1e9)]=[];for(const _0x36f94f of _0x4c4775){_0x36f94f[_0x5a1f35(0x1e9)]&&!_0x341cd9[_0x5a1f35(0x1e9)][_0x5a1f35(0x1b0)](_0x36f94f['key'])&&_0x341cd9['required'][_0x5a1f35(0x1b6)](_0x36f94f['key']),((_0x1e3b6b=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f['children'])===null||_0x1e3b6b===void 0x0?void 0x0:_0x1e3b6b[_0x5a1f35(0x1db)])>0x0?_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f[_0x5a1f35(0x1e1)]]=getSwaggerJsonParametersSchema(_0x36f94f['children'],_0x36f94f[_0x5a1f35(0x1bc)]):(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f[_0x5a1f35(0x1e1)]]={'type':_0x36f94f[_0x5a1f35(0x1bc)],'title':_0x36f94f['title'],'default':_0x36f94f[_0x5a1f35(0x1b2)],'description':_0x36f94f[_0x5a1f35(0x1c9)]},((_0x36a1bf=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f[_0x5a1f35(0x19f)])===null||_0x36a1bf===void 0x0?void 0x0:_0x36a1bf['max'])&&(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f['key']][_0x5a1f35(0x1ad)]=_0x36f94f[_0x5a1f35(0x19f)]['max']),((_0x3c3527=_0x36f94f===null||_0x36f94f===void 0x0?void 0x0:_0x36f94f[_0x5a1f35(0x19f)])===null||_0x3c3527===void 0x0?void 0x0:_0x3c3527[_0x5a1f35(0x1d1)])&&(_0x341cd9[_0x5a1f35(0x1ce)][_0x36f94f['key']][_0x5a1f35(0x1cc)]=_0x36f94f['rules']['min']));}}else _0x3bcf87=='array'&&(_0x341cd9[_0x5a1f35(0x1a7)]=getSwaggerJsonParametersSchema(_0x4c4775,'object'));return _0x341cd9;}function buildRouteResponse(_0x32bcd0){const _0x4b9130=a10_0x56d79f;var _0x7f98f2;if(!_0x32bcd0)return DEFAULT_RESPONSES;const _0x46cdc3=_0x32bcd0[_0x4b9130(0x1e8)]||_0x4b9130(0x1b2),_0x3851ab=[];_0x46cdc3===_0x4b9130(0x1b8)?_0x3851ab['push'](buildPropertiesSchema(_0x32bcd0===null||_0x32bcd0===void 0x0?void 0x0:_0x32bcd0[_0x4b9130(0x1ce)])):_0x3851ab['push'](buildDefaultSchema(_0x32bcd0));if(((_0x7f98f2=_0x32bcd0[_0x4b9130(0x1d8)])===null||_0x7f98f2===void 0x0?void 0x0:_0x7f98f2[_0x4b9130(0x1db)])>0x0)for(const _0x311a65 of _0x32bcd0[_0x4b9130(0x1d8)]){_0x3851ab[_0x4b9130(0x1b6)]({'type':'object','properties':{'code':{'type':_0x4b9130(0x1dd),'description':_0x46cdc3===_0x4b9130(0x1b2)?_0x4b9130(0x1ba)+_0x311a65[_0x4b9130(0x1bb)]:undefined,'enum':[_0x311a65['code']]},'message':{'type':_0x4b9130(0x1a5),'description':_0x46cdc3===_0x4b9130(0x1b2)?_0x311a65['message']:undefined}},'example':{'code':_0x311a65[_0x4b9130(0x1bb)],'message':_0x311a65[_0x4b9130(0x1be)]}});}return{'200':{'description':_0x32bcd0[_0x4b9130(0x1c9)]||_0x4b9130(0x1b1),'schema':_0x3851ab[_0x4b9130(0x1db)]===0x1?_0x3851ab[0x0]:{'oneOf':_0x3851ab}}};}function buildDefaultSchema(_0x11d432){const _0x4a89f6=a10_0x56d79f,_0x375df8=buildPropertiesSchema(_0x11d432===null||_0x11d432===void 0x0?void 0x0:_0x11d432[_0x4a89f6(0x1ce)]),_0x44ded2={'code':{'type':_0x4a89f6(0x1dd),'description':'状态码,0表示成功','enum':[0x0]}};if(_0x11d432['type']===_0x4a89f6(0x1d0))return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':{'type':_0x4a89f6(0x1c7),'items':_0x375df8,'description':_0x4a89f6(0x1a8)},'extra':{'type':_0x4a89f6(0x1df),'properties':{'pageinfo':{'type':'object','description':_0x4a89f6(0x1d5)},'pagetotal':{'type':_0x4a89f6(0x1dd),'description':_0x4a89f6(0x1ed)}}}},'required':[_0x4a89f6(0x1bb)]};if(_0x11d432['type']==='array')return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':{'type':_0x4a89f6(0x1c7),'items':_0x375df8,'description':_0x4a89f6(0x1a8)}},'required':[_0x4a89f6(0x1bb)]};return{'type':_0x4a89f6(0x1df),'properties':{..._0x44ded2,'data':_0x375df8},'required':[_0x4a89f6(0x1bb)]};}function buildPropertiesSchema(_0x1f35c6,_0x4cf712=!![]){const _0x1ef76f=a10_0x56d79f;var _0x523f39;if(!_0x1f35c6||_0x1f35c6['length']===0x0)return _0x4cf712?{'type':_0x1ef76f(0x1df)}:{};const _0x41b52f={};for(const _0x5abdfd of _0x1f35c6){((_0x523f39=_0x5abdfd['children'])===null||_0x523f39===void 0x0?void 0x0:_0x523f39[_0x1ef76f(0x1db)])>0x0?_0x41b52f[_0x5abdfd[_0x1ef76f(0x1e1)]]=_0x5abdfd[_0x1ef76f(0x1bc)]===_0x1ef76f(0x1c7)?{'type':'array','items':{'type':'object','properties':buildPropertiesSchema(_0x5abdfd[_0x1ef76f(0x1a4)],![])}}:{'type':_0x5abdfd[_0x1ef76f(0x1bc)]||_0x1ef76f(0x1df),'properties':buildPropertiesSchema(_0x5abdfd[_0x1ef76f(0x1a4)],![]),'description':_0x5abdfd[_0x1ef76f(0x1c9)]||_0x5abdfd['key']}:_0x41b52f[_0x5abdfd[_0x1ef76f(0x1e1)]]={'type':_0x5abdfd[_0x1ef76f(0x1bc)]||'string','description':_0x5abdfd[_0x1ef76f(0x1c9)]||_0x5abdfd[_0x1ef76f(0x1e1)]};}return _0x4cf712?{'type':_0x1ef76f(0x1df),'properties':_0x41b52f}:_0x41b52f;}function a10_0x53e9(){const _0x4e708e=['body','response','localhost:7001','错误信息','route','array','9LzZlWf','description','8155890IEZbef','696JzGYBx','minimum','search','properties','./getRoutes','page','min','#/definitions/ApiError','接口文档','prefix','分页参数','本接口文档由API自动解析生成','defineProperty','errors','constructor','version','length','from','integer','3680350kSwObm','object','paths','key','apply','#/definitions/ApiResponse','32crImMS','56483MWwMhM','has','assign','format','required','basePath','返回数据','set','总数量','rules','附加数据,如分页信息','http','状态码,0表示成功,其他为错误码','getRoutes','children','string','1bvkmNn','items','返回数据列表','2484800urQchQ','14559688BaXzoc','summary','host','maximum','request','请求成功,具体结果请查看code字段','includes','请求成功','default','title','213351vpsTjO','2.0','push','#/definitions/ApiResponseList','custom','2511928OAPnHv','错误码:\x20','code','type','extraDefinitions','message','toString','application/json','method'];a10_0x53e9=function(){return _0x4e708e;};return a10_0x53e9();}
|
|
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;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a11_0x1c0289=a11_0x3525;(function(_0x35ef13,_0xf64194){var _0x276602=a11_0x3525,_0x2551e6=_0x35ef13();while(!![]){try{var _0x210cd4=-parseInt(_0x276602(0x21b))/0x1+parseInt(_0x276602(0x1e5))/0x2*(parseInt(_0x276602(0x1e0))/0x3)+parseInt(_0x276602(0x1f1))/0x4+-parseInt(_0x276602(0x214))/0x5+-parseInt(_0x276602(0x1f3))/0x6+parseInt(_0x276602(0x1f4))/0x7+parseInt(_0x276602(0x1df))/0x8;if(_0x210cd4===_0xf64194)break;else _0x2551e6['push'](_0x2551e6['shift']());}catch(_0x2022c3){_0x2551e6['push'](_0x2551e6['shift']());}}}(a11_0x38ba,0x6f351));var a11_0x5bd26e=(function(){var _0x2fa0d9=!![];return function(_0x390d65,_0x102c62){var _0x11b2a5=_0x2fa0d9?function(){if(_0x102c62){var _0x4c8b29=_0x102c62['apply'](_0x390d65,arguments);return _0x102c62=null,_0x4c8b29;}}:function(){};return _0x2fa0d9=![],_0x11b2a5;};}()),a11_0x159df2=a11_0x5bd26e(this,function(){var _0xa21912=a11_0x3525;return a11_0x159df2[_0xa21912(0x1f8)]()[_0xa21912(0x1eb)](_0xa21912(0x219))[_0xa21912(0x1f8)]()['constructor'](a11_0x159df2)['search'](_0xa21912(0x219));});a11_0x159df2();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a11_0x1c0289(0x212)]?function(_0x223f20,_0x5bf835,_0x56c269,_0x21b7c5){var _0xd79b12=a11_0x1c0289;if(_0x21b7c5===undefined)_0x21b7c5=_0x56c269;var _0x532410=Object[_0xd79b12(0x1dd)](_0x5bf835,_0x56c269);(!_0x532410||(_0xd79b12(0x1f2)in _0x532410?!_0x5bf835[_0xd79b12(0x1e2)]:_0x532410['writable']||_0x532410[_0xd79b12(0x21e)]))&&(_0x532410={'enumerable':!![],'get':function(){return _0x5bf835[_0x56c269];}}),Object[_0xd79b12(0x1fd)](_0x223f20,_0x21b7c5,_0x532410);}:function(_0x5c1fdc,_0x2c0095,_0x350245,_0x41acd7){if(_0x41acd7===undefined)_0x41acd7=_0x350245;_0x5c1fdc[_0x41acd7]=_0x2c0095[_0x350245];}),__exportStar=this&&this[a11_0x1c0289(0x208)]||function(_0x3fc15a,_0x12aa9b){var _0x19a12b=a11_0x1c0289;for(var _0x44fbcf in _0x3fc15a)if(_0x44fbcf!==_0x19a12b(0x1e9)&&!Object['prototype'][_0x19a12b(0x21f)][_0x19a12b(0x1e3)](_0x12aa9b,_0x44fbcf))__createBinding(_0x12aa9b,_0x3fc15a,_0x44fbcf);};Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e2),{'value':!![]}),exports['getAppsConfig']=exports[a11_0x1c0289(0x204)]=exports['Singleton']=exports[a11_0x1c0289(0x1f5)]=exports[a11_0x1c0289(0x201)]=exports[a11_0x1c0289(0x1e4)]=exports['Logger']=exports['Config']=exports[a11_0x1c0289(0x217)]=exports[a11_0x1c0289(0x21a)]=exports['Headers']=exports[a11_0x1c0289(0x209)]=exports[a11_0x1c0289(0x20a)]=exports[a11_0x1c0289(0x1de)]=exports[a11_0x1c0289(0x1ec)]=exports[a11_0x1c0289(0x21d)]=exports['File']=exports[a11_0x1c0289(0x1ff)]=exports['ValidatorService']=exports[a11_0x1c0289(0x200)]=exports[a11_0x1c0289(0x1f0)]=exports[a11_0x1c0289(0x210)]=exports['ApiService']=exports[a11_0x1c0289(0x1e1)]=exports['CacheService']=exports[a11_0x1c0289(0x1fe)]=exports[a11_0x1c0289(0x218)]=exports[a11_0x1c0289(0x1ef)]=exports[a11_0x1c0289(0x202)]=exports[a11_0x1c0289(0x1fa)]=exports['Apitest']=exports[a11_0x1c0289(0x1f7)]=void 0x0;const getAppsConfig_1=require(a11_0x1c0289(0x20b));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f9),{'enumerable':!![],'get':function(){var _0xcf2efd=a11_0x1c0289;return getAppsConfig_1[_0xcf2efd(0x1f9)];}}),__exportStar(require(a11_0x1c0289(0x206)),exports),__exportStar(require(a11_0x1c0289(0x1f6)),exports);function a11_0x3525(_0x49e75f,_0x19185b){var _0x51be30=a11_0x38ba();return a11_0x3525=function(_0x159df2,_0x5bd26e){_0x159df2=_0x159df2-0x1dd;var _0x38ba27=_0x51be30[_0x159df2];return _0x38ba27;},a11_0x3525(_0x49e75f,_0x19185b);}var Action_1=require(a11_0x1c0289(0x215));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f7),{'enumerable':!![],'get':function(){var _0x228e9f=a11_0x1c0289;return Action_1[_0x228e9f(0x1f7)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1ea),{'enumerable':!![],'get':function(){var _0x249ef9=a11_0x1c0289;return ActionApitest_1[_0x249ef9(0x1ea)];}});function a11_0x38ba(){var _0x432774=['ValidatorService','./types/common','./helper/getRoutes','__exportStar','Query','Param','./helper/getAppsConfig','CustomConfiguration','@anncic-api/validator','ApiService','./service/ApiService','ExcelStream','Logger','create','./decorator/Intercept','2283635jCZAfM','./decorator/Action','CacheService','App','getSwaggerJson','(((.+)+)+)+$','Init','561537XXJQuv','@anncic-api/event','Files','configurable','hasOwnProperty','getOwnPropertyDescriptor','Body','6660272vONuZA','1197321ntJChe','EventService','__esModule','call','Provide','4oGaQQr','File','@midwayjs/core','./configuration','default','Apitest','search','Fields','./service/ExcelStream','./service/ExcelService','getRoutes','ExcelService','1716424uSQAMX','get','4958520TnWSHF','1682345pYiQEK','Scope','./service/ApitestService','Action','toString','getAppsConfig','Intercept','Config','Headers','defineProperty','ApiError','Configuration','ValidatorError','Inject','IIntercept','Singleton','ScopeEnum'];a11_0x38ba=function(){return _0x432774;};return a11_0x38ba();}var Intercept_1=require(a11_0x1c0289(0x213));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fa),{'enumerable':!![],'get':function(){var _0x2a335f=a11_0x1c0289;return Intercept_1[_0x2a335f(0x1fa)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x202),{'enumerable':!![],'get':function(){var _0x392ccb=a11_0x1c0289;return Intercept_1[_0x392ccb(0x202)];}});var getRoutes_1=require(a11_0x1c0289(0x207));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1ef),{'enumerable':!![],'get':function(){var _0x55b008=a11_0x1c0289;return getRoutes_1[_0x55b008(0x1ef)];}});var getSwaggerJson_1=require('./helper/getSwaggerJson');Object[a11_0x1c0289(0x1fd)](exports,'getSwaggerJson',{'enumerable':!![],'get':function(){var _0x235696=a11_0x1c0289;return getSwaggerJson_1[_0x235696(0x218)];}});var ApiError_1=require('./exception/ApiError');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fe),{'enumerable':!![],'get':function(){var _0x2f8d25=a11_0x1c0289;return ApiError_1[_0x2f8d25(0x1fe)];}});var cache_1=require('@anncic-api/cache');Object[a11_0x1c0289(0x1fd)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x3a76cc=a11_0x1c0289;return cache_1[_0x3a76cc(0x216)];}});var event_1=require(a11_0x1c0289(0x21c));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e1),{'enumerable':!![],'get':function(){var _0x6289c9=a11_0x1c0289;return event_1[_0x6289c9(0x1e1)];}});var ApiService_1=require(a11_0x1c0289(0x20f));Object['defineProperty'](exports,a11_0x1c0289(0x20e),{'enumerable':!![],'get':function(){var _0x3f14fb=a11_0x1c0289;return ApiService_1[_0x3f14fb(0x20e)];}});var ExcelStream_1=require(a11_0x1c0289(0x1ed));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x210),{'enumerable':!![],'get':function(){var _0x2080e1=a11_0x1c0289;return ExcelStream_1[_0x2080e1(0x210)];}});var ExcelService_1=require(a11_0x1c0289(0x1ee));Object[a11_0x1c0289(0x1fd)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x4debeb=a11_0x1c0289;return ExcelService_1[_0x4debeb(0x1f0)];}});var validator_1=require(a11_0x1c0289(0x20d));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x200),{'enumerable':!![],'get':function(){var _0xee2992=a11_0x1c0289;return validator_1[_0xee2992(0x200)];}}),Object['defineProperty'](exports,a11_0x1c0289(0x205),{'enumerable':!![],'get':function(){var _0x3fffcf=a11_0x1c0289;return validator_1[_0x3fffcf(0x205)];}});var configuration_1=require(a11_0x1c0289(0x1e8));Object['defineProperty'](exports,a11_0x1c0289(0x1ff),{'enumerable':!![],'get':function(){var _0x41d1d7=a11_0x1c0289;return configuration_1[_0x41d1d7(0x20c)];}});var core_1=require(a11_0x1c0289(0x1e7));Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e6),{'enumerable':!![],'get':function(){var _0x10df84=a11_0x1c0289;return core_1[_0x10df84(0x1e6)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x21d),{'enumerable':!![],'get':function(){var _0x4ba5dc=a11_0x1c0289;return core_1[_0x4ba5dc(0x21d)];}}),Object[a11_0x1c0289(0x1fd)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x15664a=a11_0x1c0289;return core_1[_0x15664a(0x1ec)];}}),Object['defineProperty'](exports,a11_0x1c0289(0x1de),{'enumerable':!![],'get':function(){var _0x5ac967=a11_0x1c0289;return core_1[_0x5ac967(0x1de)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x20a),{'enumerable':!![],'get':function(){var _0x5df739=a11_0x1c0289;return core_1[_0x5df739(0x20a)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x209),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a11_0x1c0289(0x1fd)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x54f747=a11_0x1c0289;return core_1[_0x54f747(0x1fc)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x21a),{'enumerable':!![],'get':function(){var _0x42f331=a11_0x1c0289;return core_1[_0x42f331(0x21a)];}});var core_2=require('@midwayjs/core');Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x217),{'enumerable':!![],'get':function(){var _0x15c275=a11_0x1c0289;return core_2[_0x15c275(0x217)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1fb),{'enumerable':!![],'get':function(){var _0x3fb108=a11_0x1c0289;return core_2[_0x3fb108(0x1fb)];}}),Object[a11_0x1c0289(0x1fd)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x36cd4b=a11_0x1c0289;return core_2[_0x36cd4b(0x211)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1e4),{'enumerable':!![],'get':function(){var _0x4b29cd=a11_0x1c0289;return core_2[_0x4b29cd(0x1e4)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x201),{'enumerable':!![],'get':function(){var _0x2ad59c=a11_0x1c0289;return core_2[_0x2ad59c(0x201)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x1f5),{'enumerable':!![],'get':function(){var _0xf1e360=a11_0x1c0289;return core_2[_0xf1e360(0x1f5)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x203),{'enumerable':!![],'get':function(){var _0x36491f=a11_0x1c0289;return core_2[_0x36491f(0x203)];}}),Object[a11_0x1c0289(0x1fd)](exports,a11_0x1c0289(0x204),{'enumerable':!![],'get':function(){var _0x448df4=a11_0x1c0289;return core_2[_0x448df4(0x204)];}}),global[a11_0x1c0289(0x1f9)]=getAppsConfig_1[a11_0x1c0289(0x1f9)];
|
|
1
|
+
var a11_0x24b0db=a11_0x1f7f;function a11_0x1f7f(_0x2118d3,_0x1e665b){var _0x585b43=a11_0x1709();return a11_0x1f7f=function(_0x14d34e,_0x28fbd7){_0x14d34e=_0x14d34e-0xd1;var _0x170962=_0x585b43[_0x14d34e];return _0x170962;},a11_0x1f7f(_0x2118d3,_0x1e665b);}(function(_0x5d07a2,_0x575de0){var _0x3e0c3f=a11_0x1f7f,_0x1b0329=_0x5d07a2();while(!![]){try{var _0x2c448a=parseInt(_0x3e0c3f(0xf7))/0x1*(-parseInt(_0x3e0c3f(0x111))/0x2)+parseInt(_0x3e0c3f(0xe7))/0x3*(-parseInt(_0x3e0c3f(0xe3))/0x4)+parseInt(_0x3e0c3f(0x112))/0x5*(-parseInt(_0x3e0c3f(0xdd))/0x6)+-parseInt(_0x3e0c3f(0xee))/0x7*(-parseInt(_0x3e0c3f(0xed))/0x8)+parseInt(_0x3e0c3f(0xd4))/0x9*(-parseInt(_0x3e0c3f(0xe9))/0xa)+parseInt(_0x3e0c3f(0xf2))/0xb+parseInt(_0x3e0c3f(0xec))/0xc*(parseInt(_0x3e0c3f(0xd1))/0xd);if(_0x2c448a===_0x575de0)break;else _0x1b0329['push'](_0x1b0329['shift']());}catch(_0x9f6531){_0x1b0329['push'](_0x1b0329['shift']());}}}(a11_0x1709,0x29403));var a11_0x28fbd7=(function(){var _0x5700cd=!![];return function(_0x326365,_0x412d76){var _0x6ad960=_0x5700cd?function(){var _0x5aea31=a11_0x1f7f;if(_0x412d76){var _0x36432b=_0x412d76[_0x5aea31(0xef)](_0x326365,arguments);return _0x412d76=null,_0x36432b;}}:function(){};return _0x5700cd=![],_0x6ad960;};}()),a11_0x14d34e=a11_0x28fbd7(this,function(){var _0x362c10=a11_0x1f7f;return a11_0x14d34e[_0x362c10(0x110)]()[_0x362c10(0x101)](_0x362c10(0xea))[_0x362c10(0x110)]()[_0x362c10(0xd8)](a11_0x14d34e)[_0x362c10(0x101)]('(((.+)+)+)+$');});a11_0x14d34e();'use strict';var __createBinding=this&&this[a11_0x24b0db(0xf3)]||(Object[a11_0x24b0db(0x10b)]?function(_0x195e9e,_0x5a1ec2,_0x27c48c,_0x25daba){var _0x1f11a1=a11_0x24b0db;if(_0x25daba===undefined)_0x25daba=_0x27c48c;var _0x3925f4=Object['getOwnPropertyDescriptor'](_0x5a1ec2,_0x27c48c);(!_0x3925f4||(_0x1f11a1(0xe5)in _0x3925f4?!_0x5a1ec2['__esModule']:_0x3925f4['writable']||_0x3925f4[_0x1f11a1(0x106)]))&&(_0x3925f4={'enumerable':!![],'get':function(){return _0x5a1ec2[_0x27c48c];}}),Object['defineProperty'](_0x195e9e,_0x25daba,_0x3925f4);}:function(_0x4e0180,_0x5893b0,_0x2b7e6b,_0x32d78e){if(_0x32d78e===undefined)_0x32d78e=_0x2b7e6b;_0x4e0180[_0x32d78e]=_0x5893b0[_0x2b7e6b];}),__exportStar=this&&this[a11_0x24b0db(0x105)]||function(_0x3b5ef0,_0x27ed5c){var _0x219a29=a11_0x24b0db;for(var _0x401ff0 in _0x3b5ef0)if(_0x401ff0!==_0x219a29(0x115)&&!Object['prototype'][_0x219a29(0x100)][_0x219a29(0xe1)](_0x27ed5c,_0x401ff0))__createBinding(_0x27ed5c,_0x3b5ef0,_0x401ff0);};Object['defineProperty'](exports,a11_0x24b0db(0xf1),{'value':!![]}),exports[a11_0x24b0db(0x114)]=exports[a11_0x24b0db(0x113)]=exports[a11_0x24b0db(0xdb)]=exports['Scope']=exports[a11_0x24b0db(0xdc)]=exports[a11_0x24b0db(0xe6)]=exports['Logger']=exports[a11_0x24b0db(0xfa)]=exports[a11_0x24b0db(0xe8)]=exports['Init']=exports[a11_0x24b0db(0xfb)]=exports[a11_0x24b0db(0xd2)]=exports[a11_0x24b0db(0xfc)]=exports[a11_0x24b0db(0xde)]=exports['Fields']=exports[a11_0x24b0db(0xf5)]=exports[a11_0x24b0db(0xda)]=exports[a11_0x24b0db(0x117)]=exports[a11_0x24b0db(0xd3)]=exports[a11_0x24b0db(0xe0)]=exports['ExcelService']=exports['ExcelStream']=exports[a11_0x24b0db(0xf8)]=exports[a11_0x24b0db(0xd9)]=exports['CacheService']=exports[a11_0x24b0db(0xf4)]=exports[a11_0x24b0db(0x103)]=exports[a11_0x24b0db(0x108)]=exports['IIntercept']=exports['Intercept']=exports[a11_0x24b0db(0x10f)]=exports[a11_0x24b0db(0xe4)]=void 0x0;const getAppsConfig_1=require(a11_0x24b0db(0xdf));Object['defineProperty'](exports,a11_0x24b0db(0x114),{'enumerable':!![],'get':function(){var _0x12d4d0=a11_0x24b0db;return getAppsConfig_1[_0x12d4d0(0x114)];}}),__exportStar(require(a11_0x24b0db(0xff)),exports),__exportStar(require(a11_0x24b0db(0x109)),exports);var Action_1=require(a11_0x24b0db(0xd6));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xe4),{'enumerable':!![],'get':function(){var _0x611fee=a11_0x24b0db;return Action_1[_0x611fee(0xe4)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x10f),{'enumerable':!![],'get':function(){var _0x3c1f6b=a11_0x24b0db;return ActionApitest_1[_0x3c1f6b(0x10f)];}});var Intercept_1=require(a11_0x24b0db(0x10a));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x104),{'enumerable':!![],'get':function(){var _0x362509=a11_0x24b0db;return Intercept_1[_0x362509(0x104)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xfe),{'enumerable':!![],'get':function(){var _0x1065cd=a11_0x24b0db;return Intercept_1[_0x1065cd(0xfe)];}});var getRoutes_1=require(a11_0x24b0db(0x10c));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x108),{'enumerable':!![],'get':function(){var _0x17a232=a11_0x24b0db;return getRoutes_1[_0x17a232(0x108)];}});var getSwaggerJson_1=require(a11_0x24b0db(0xf6));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x103),{'enumerable':!![],'get':function(){return getSwaggerJson_1['getSwaggerJson'];}});function a11_0x1709(){var _0x6cc897=['get','Provide','16062dQNbnc','App','599110OFUrPL','(((.+)+)+)+$','CacheService','3953460pMgEsF','340072gOKgiQ','21iFlaWf','apply','CustomConfiguration','__esModule','3198888yxSUCh','__createBinding','ApiError','Files','./helper/getSwaggerJson','1kTHhIq','ApiService','Logger','Config','Headers','Param','@midwayjs/core','IIntercept','./types/common','hasOwnProperty','search','Scope','getSwaggerJson','Intercept','__exportStar','configurable','./service/ApiService','getRoutes','./service/ApitestService','./decorator/Intercept','create','./helper/getRoutes','defineProperty','@anncic-api/event','Apitest','toString','613532Rfxwnh','20WJOaKz','ScopeEnum','getAppsConfig','default','ExcelService','Configuration','13UZBoPj','Query','ValidatorService','9xfdJCE','Init','./decorator/Action','Fields','constructor','EventService','File','Singleton','Inject','85326rkuzaE','Body','./helper/getAppsConfig','ValidatorError','call','ExcelStream','116mrJZlE','Action'];a11_0x1709=function(){return _0x6cc897;};return a11_0x1709();}var ApiError_1=require('./exception/ApiError');Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xf4),{'enumerable':!![],'get':function(){var _0x48b7d8=a11_0x24b0db;return ApiError_1[_0x48b7d8(0xf4)];}});var cache_1=require('@anncic-api/cache');Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xeb),{'enumerable':!![],'get':function(){var _0x1bb7e7=a11_0x24b0db;return cache_1[_0x1bb7e7(0xeb)];}});var event_1=require(a11_0x24b0db(0x10e));Object['defineProperty'](exports,a11_0x24b0db(0xd9),{'enumerable':!![],'get':function(){var _0x570945=a11_0x24b0db;return event_1[_0x570945(0xd9)];}});var ApiService_1=require(a11_0x24b0db(0x107));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xf8),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelStream_1=require('./service/ExcelStream');Object['defineProperty'](exports,a11_0x24b0db(0xe2),{'enumerable':!![],'get':function(){var _0x551377=a11_0x24b0db;return ExcelStream_1[_0x551377(0xe2)];}});var ExcelService_1=require('./service/ExcelService');Object['defineProperty'](exports,a11_0x24b0db(0x116),{'enumerable':!![],'get':function(){var _0x306943=a11_0x24b0db;return ExcelService_1[_0x306943(0x116)];}});var validator_1=require('@anncic-api/validator');Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xe0),{'enumerable':!![],'get':function(){var _0x29216b=a11_0x24b0db;return validator_1[_0x29216b(0xe0)];}}),Object['defineProperty'](exports,a11_0x24b0db(0xd3),{'enumerable':!![],'get':function(){var _0x342c84=a11_0x24b0db;return validator_1[_0x342c84(0xd3)];}});var configuration_1=require('./configuration');Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x117),{'enumerable':!![],'get':function(){var _0x1f8e97=a11_0x24b0db;return configuration_1[_0x1f8e97(0xf0)];}});var core_1=require(a11_0x24b0db(0xfd));Object['defineProperty'](exports,a11_0x24b0db(0xda),{'enumerable':!![],'get':function(){var _0x3c2155=a11_0x24b0db;return core_1[_0x3c2155(0xda)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xf5),{'enumerable':!![],'get':function(){var _0x115bbd=a11_0x24b0db;return core_1[_0x115bbd(0xf5)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xd7),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a11_0x24b0db(0x10d)](exports,'Body',{'enumerable':!![],'get':function(){var _0x1f0112=a11_0x24b0db;return core_1[_0x1f0112(0xde)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xfc),{'enumerable':!![],'get':function(){var _0x27a09f=a11_0x24b0db;return core_1[_0x27a09f(0xfc)];}}),Object[a11_0x24b0db(0x10d)](exports,'Query',{'enumerable':!![],'get':function(){var _0xa77110=a11_0x24b0db;return core_1[_0xa77110(0xd2)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xfb),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object['defineProperty'](exports,a11_0x24b0db(0xd5),{'enumerable':!![],'get':function(){var _0x231815=a11_0x24b0db;return core_1[_0x231815(0xd5)];}});var core_2=require(a11_0x24b0db(0xfd));Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xe8),{'enumerable':!![],'get':function(){var _0x1ab3fd=a11_0x24b0db;return core_2[_0x1ab3fd(0xe8)];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xfa),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object['defineProperty'](exports,a11_0x24b0db(0xf9),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object['defineProperty'](exports,a11_0x24b0db(0xe6),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0xdc),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a11_0x24b0db(0x10d)](exports,a11_0x24b0db(0x102),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a11_0x24b0db(0x10d)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x4ebbdd=a11_0x24b0db;return core_2[_0x4ebbdd(0xdb)];}}),Object[a11_0x24b0db(0x10d)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a11_0x24b0db(0x114)]=getAppsConfig_1[a11_0x24b0db(0x114)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a12_0x2a6de7=a12_0x5902;(function(_0x33455a,_0x52169e){var _0x451cfc=a12_0x5902,_0x138ff9=_0x33455a();while(!![]){try{var _0x1d63d1=parseInt(_0x451cfc(0xfc))/0x1+parseInt(_0x451cfc(0x100))/0x2*(-parseInt(_0x451cfc(0x110))/0x3)+parseInt(_0x451cfc(0xe6))/0x4+-parseInt(_0x451cfc(0xe7))/0x5*(-parseInt(_0x451cfc(0x120))/0x6)+-parseInt(_0x451cfc(0xf5))/0x7*(-parseInt(_0x451cfc(0x11f))/0x8)+-parseInt(_0x451cfc(0xfe))/0x9*(-parseInt(_0x451cfc(0x104))/0xa)+-parseInt(_0x451cfc(0x118))/0xb*(parseInt(_0x451cfc(0x102))/0xc);if(_0x1d63d1===_0x52169e)break;else _0x138ff9['push'](_0x138ff9['shift']());}catch(_0x4476be){_0x138ff9['push'](_0x138ff9['shift']());}}}(a12_0xc40e,0x8092b));function a12_0x5902(_0x17989d,_0x4d2fa5){var _0x8b6cb6=a12_0xc40e();return a12_0x5902=function(_0x2abdcd,_0x25b799){_0x2abdcd=_0x2abdcd-0xe0;var _0xc40e2=_0x8b6cb6[_0x2abdcd];return _0xc40e2;},a12_0x5902(_0x17989d,_0x4d2fa5);}var a12_0x25b799=(function(){var _0x3645dd=!![];return function(_0x2fe003,_0x202e19){var _0x53f549=_0x3645dd?function(){var _0x4bdd4b=a12_0x5902;if(_0x202e19){var _0x277798=_0x202e19[_0x4bdd4b(0x122)](_0x2fe003,arguments);return _0x202e19=null,_0x277798;}}:function(){};return _0x3645dd=![],_0x53f549;};}()),a12_0x2abdcd=a12_0x25b799(this,function(){var _0x329bb7=a12_0x5902;return a12_0x2abdcd[_0x329bb7(0x114)]()[_0x329bb7(0x117)](_0x329bb7(0x113))[_0x329bb7(0x114)]()[_0x329bb7(0x10b)](a12_0x2abdcd)[_0x329bb7(0x117)](_0x329bb7(0x113));});a12_0x2abdcd();'use strict';var __decorate=this&&this[a12_0x2a6de7(0xfa)]||function(_0x1436ef,_0x55ea15,_0x4a07ab,_0x5a7b63){var _0xda33f1=a12_0x2a6de7,_0x467676=arguments[_0xda33f1(0xfd)],_0x177ceb=_0x467676<0x3?_0x55ea15:_0x5a7b63===null?_0x5a7b63=Object[_0xda33f1(0x115)](_0x55ea15,_0x4a07ab):_0x5a7b63,_0x40c204;if(typeof Reflect===_0xda33f1(0x119)&&typeof Reflect[_0xda33f1(0xe8)]===_0xda33f1(0x109))_0x177ceb=Reflect[_0xda33f1(0xe8)](_0x1436ef,_0x55ea15,_0x4a07ab,_0x5a7b63);else{for(var _0x5a8244=_0x1436ef[_0xda33f1(0xfd)]-0x1;_0x5a8244>=0x0;_0x5a8244--)if(_0x40c204=_0x1436ef[_0x5a8244])_0x177ceb=(_0x467676<0x3?_0x40c204(_0x177ceb):_0x467676>0x3?_0x40c204(_0x55ea15,_0x4a07ab,_0x177ceb):_0x40c204(_0x55ea15,_0x4a07ab))||_0x177ceb;}return _0x467676>0x3&&_0x177ceb&&Object[_0xda33f1(0xf3)](_0x55ea15,_0x4a07ab,_0x177ceb),_0x177ceb;},__metadata=this&&this['__metadata']||function(_0x27eb36,_0x27ee40){var _0x27f54d=a12_0x2a6de7;if(typeof Reflect===_0x27f54d(0x119)&&typeof Reflect['metadata']===_0x27f54d(0x109))return Reflect[_0x27f54d(0xf4)](_0x27eb36,_0x27ee40);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a12_0x2a6de7(0xe1)]=void 0x0;function a12_0xc40e(){var _0x48dde6=['join','HEADERS_LACK','secret','3jqdvEC','password','timeout','(((.+)+)+)+$','toString','getOwnPropertyDescriptor','logintime','search','726MUAHoc','object','验证失败','fromEntries','substring','HEADERS_SIGNATURE','abs','160592knKPai','12iUNIpS','Singleton','apply','MD5','getsign','TIMEOUT_LOGINTIME','ApiService','config','anncicapi','design:type','ApiError','996892xYdWdV','188095lIgcRN','decorate','token','signature','请求超时,请重试或改善网络环境','ScopeEnum','prototype','secret=','../exception/ApiError','TIMEOUT','now','checkcode','defineProperty','metadata','91NPlraO','getcheck','crypto-js','requesttime','devices','__decorate','push','189394JmxcZu','length','1204029Jhbsvd','entries','607636FVKWTV','logintimeout','38532xlCluH','device','20gCZAGE','HEADERS_DEVICE','toLowerCase','sort','undefined','function','padEnd','constructor','checksign'];a12_0xc40e=function(){return _0x48dde6;};return a12_0xc40e();}const crypto_js_1=require(a12_0x2a6de7(0xf7)),core_1=require('@midwayjs/core'),ApiError_1=require(a12_0x2a6de7(0xef));let ApiService=class ApiService{[a12_0x2a6de7(0x111)](_0x5208fc){var _0x1f468d=a12_0x2a6de7,_0x50a15e;return _0x5208fc?(0x0,crypto_js_1[_0x1f468d(0x123)])(''+_0x5208fc+(0x0,crypto_js_1[_0x1f468d(0x123)])((0x0,crypto_js_1[_0x1f468d(0x123)])(''+_0x5208fc)[_0x1f468d(0x114)]()+(''+((_0x50a15e=this[_0x1f468d(0xe2)])===null||_0x50a15e===void 0x0?void 0x0:_0x50a15e['password'])))['toString']())['toString']():'';}[a12_0x2a6de7(0xf6)](_0x31ffe2,_0x2cb3ee,_0x49821f=Date[a12_0x2a6de7(0xf1)]()){var _0x4dd760=a12_0x2a6de7;return{'Token':_0x31ffe2,'Logintime':_0x49821f,'Checkcode':this[_0x4dd760(0xf2)](_0x31ffe2,_0x2cb3ee,_0x49821f)};}[a12_0x2a6de7(0x124)](_0x5ba713={}){var _0x36ac15=a12_0x2a6de7,_0x4175a6,_0xaf490f;const _0xa8d4fc=[],_0x18f9ae=Object[_0x36ac15(0x11b)](Object[_0x36ac15(0xff)](_0x5ba713)['map'](_0x979bcd=>[_0x979bcd[0x0][_0x36ac15(0x106)](),_0x979bcd[0x1]]));for(let _0x51ecb5 of[_0x36ac15(0x103),_0x36ac15(0xf8),'token','logintime','checkcode']){if(typeof _0x18f9ae[_0x51ecb5]==_0x36ac15(0x108))throw new AnnError(ApiError_1[_0x36ac15(0xe5)][_0x36ac15(0x10e)],{'message':_0x36ac15(0x11a)});_0xa8d4fc['push'](_0x51ecb5+'='+_0x18f9ae[_0x51ecb5]);}_0x18f9ae[_0x36ac15(0xf8)]&&((_0x4175a6=_0x18f9ae[_0x36ac15(0xf8)])===null||_0x4175a6===void 0x0?void 0x0:_0x4175a6[_0x36ac15(0xfd)])==0xa&&(_0x18f9ae[_0x36ac15(0xf8)]=_0x18f9ae[_0x36ac15(0xf8)]*0x3e8);if(this[_0x36ac15(0xe2)][_0x36ac15(0x112)]&&parseInt((''+Date['now']())['substring'](0x0,0xd)[_0x36ac15(0x10a)](0xd,'0'))-parseInt((''+Math[_0x36ac15(0x11e)](_0x18f9ae[_0x36ac15(0xf8)]))[_0x36ac15(0x11c)](0x0,0xd)[_0x36ac15(0x10a)](0xd,'0'))>parseInt(this['config']['timeout']))throw new AnnError(ApiError_1[_0x36ac15(0xe5)][_0x36ac15(0xf0)],{'message':_0x36ac15(0xeb),'requesttime':_0x18f9ae[_0x36ac15(0xf8)],'timestamp':Date[_0x36ac15(0xf1)]()});if((((_0xaf490f=this[_0x36ac15(0xe2)][_0x36ac15(0xf9)][_0x18f9ae[_0x36ac15(0x103)]])===null||_0xaf490f===void 0x0?void 0x0:_0xaf490f[_0x36ac15(0x101)])||0x0)>0x0&&Date[_0x36ac15(0xf1)]()-Math[_0x36ac15(0x11e)](_0x18f9ae[_0x36ac15(0x116)])>this[_0x36ac15(0xe2)][_0x36ac15(0xf9)][_0x18f9ae[_0x36ac15(0x103)]][_0x36ac15(0x101)])throw new AnnError(ApiError_1[_0x36ac15(0xe5)][_0x36ac15(0xe0)]);if(!this['config'][_0x36ac15(0xf9)][_0x18f9ae['device']]||!this['config'][_0x36ac15(0xf9)][_0x18f9ae[_0x36ac15(0x103)]][_0x36ac15(0x10f)]||!this[_0x36ac15(0xe2)][_0x36ac15(0xf9)][_0x18f9ae[_0x36ac15(0x103)]]['checkcode'])throw new AnnError(ApiError_1['ApiError'][_0x36ac15(0x105)]);if(_0x18f9ae[_0x36ac15(0xe9)]&&_0x18f9ae[_0x36ac15(0xf2)]!=this['checkcode'](_0x18f9ae[_0x36ac15(0xe9)],_0x18f9ae['device'],_0x18f9ae['logintime']))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0xa8d4fc[_0x36ac15(0xfb)](_0x36ac15(0xee)+this[_0x36ac15(0xe2)]['devices'][_0x18f9ae[_0x36ac15(0x103)]][_0x36ac15(0x10f)]),(0x0,crypto_js_1[_0x36ac15(0x123)])(_0xa8d4fc[_0x36ac15(0x107)]()[_0x36ac15(0x10d)](''))['toString']();}[a12_0x2a6de7(0xf2)](_0x23d76f,_0x105d40,_0xeafb4e=Date[a12_0x2a6de7(0xf1)]()){var _0x1a05b1=a12_0x2a6de7,_0x4538c7,_0x1bc38c,_0x151f8b;if(!((_0x4538c7=this[_0x1a05b1(0xe2)])===null||_0x4538c7===void 0x0?void 0x0:_0x4538c7[_0x1a05b1(0xf9)][_0x105d40])||!((_0x151f8b=(_0x1bc38c=this[_0x1a05b1(0xe2)])===null||_0x1bc38c===void 0x0?void 0x0:_0x1bc38c['devices'][_0x105d40])===null||_0x151f8b===void 0x0?void 0x0:_0x151f8b[_0x1a05b1(0xf2)]))throw new AnnError(ApiError_1[_0x1a05b1(0xe5)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x1a05b1(0x123)])(''+_0x23d76f+(0x0,crypto_js_1[_0x1a05b1(0x123)])(''+_0xeafb4e+(''+this['config'][_0x1a05b1(0xf9)][_0x105d40][_0x1a05b1(0xf2)]))[_0x1a05b1(0x114)]())[_0x1a05b1(0x114)]();}[a12_0x2a6de7(0x10c)](_0x2ffed1={}){var _0x4b65ce=a12_0x2a6de7;const _0x213e98=Object['fromEntries'](Object[_0x4b65ce(0xff)](_0x2ffed1)['map'](_0x5aa74e=>[_0x5aa74e[0x0][_0x4b65ce(0x106)](),_0x5aa74e[0x1]]));if(!(_0x213e98===null||_0x213e98===void 0x0?void 0x0:_0x213e98[_0x4b65ce(0xea)]))throw new AnnError(ApiError_1['ApiError'][_0x4b65ce(0x10e)],{'message':_0x4b65ce(0x11a)});if((_0x213e98===null||_0x213e98===void 0x0?void 0x0:_0x213e98[_0x4b65ce(0xea)])!=this[_0x4b65ce(0x124)](_0x213e98))throw new AnnError(ApiError_1[_0x4b65ce(0xe5)][_0x4b65ce(0x11d)],{'message':_0x4b65ce(0x11a)});return!![];}};exports[a12_0x2a6de7(0xe1)]=ApiService,__decorate([(0x0,core_1['Config'])(a12_0x2a6de7(0xe3)),__metadata(a12_0x2a6de7(0xe4),Object)],ApiService[a12_0x2a6de7(0xed)],a12_0x2a6de7(0xe2),void 0x0),exports[a12_0x2a6de7(0xe1)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a12_0x2a6de7(0xec)][a12_0x2a6de7(0x121)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x139613=a13_0x1f0a;(function(_0x48d3c6,_0x592d06){const _0xfbe4b4=a13_0x1f0a,_0x25c23c=_0x48d3c6();while(!![]){try{const _0xc0771a=parseInt(_0xfbe4b4(0xd3))/0x1+-parseInt(_0xfbe4b4(0xf8))/0x2+parseInt(_0xfbe4b4(0xe7))/0x3*(parseInt(_0xfbe4b4(0xdb))/0x4)+parseInt(_0xfbe4b4(0xbd))/0x5*(-parseInt(_0xfbe4b4(0xcc))/0x6)+-parseInt(_0xfbe4b4(0xbf))/0x7*(parseInt(_0xfbe4b4(0xdc))/0x8)+parseInt(_0xfbe4b4(0xd7))/0x9*(parseInt(_0xfbe4b4(0xd5))/0xa)+parseInt(_0xfbe4b4(0xbc))/0xb;if(_0xc0771a===_0x592d06)break;else _0x25c23c['push'](_0x25c23c['shift']());}catch(_0x44ad76){_0x25c23c['push'](_0x25c23c['shift']());}}}(a13_0x5078,0x8b315));const a13_0x7a12de=(function(){let _0x419f0b=!![];return function(_0x2a52fa,_0x481cf4){const _0x1fc165=_0x419f0b?function(){const _0x2f5809=a13_0x1f0a;if(_0x481cf4){const _0x4d2779=_0x481cf4[_0x2f5809(0xfb)](_0x2a52fa,arguments);return _0x481cf4=null,_0x4d2779;}}:function(){};return _0x419f0b=![],_0x1fc165;};}()),a13_0x4e6df4=a13_0x7a12de(this,function(){const _0x2541ac=a13_0x1f0a;return a13_0x4e6df4['toString']()[_0x2541ac(0xe6)]('(((.+)+)+)+$')[_0x2541ac(0xe8)]()[_0x2541ac(0xd0)](a13_0x4e6df4)[_0x2541ac(0xe6)](_0x2541ac(0xc0));});a13_0x4e6df4();'use strict';var __decorate=this&&this[a13_0x139613(0xae)]||function(_0x4210d6,_0x57fbf4,_0x5ac204,_0x5e5fad){const _0x3710d3=a13_0x139613;var _0x55eec3=arguments[_0x3710d3(0xcf)],_0x52a4cd=_0x55eec3<0x3?_0x57fbf4:_0x5e5fad===null?_0x5e5fad=Object[_0x3710d3(0xe9)](_0x57fbf4,_0x5ac204):_0x5e5fad,_0x420775;if(typeof Reflect==='object'&&typeof Reflect[_0x3710d3(0xfa)]===_0x3710d3(0xe1))_0x52a4cd=Reflect[_0x3710d3(0xfa)](_0x4210d6,_0x57fbf4,_0x5ac204,_0x5e5fad);else{for(var _0x308421=_0x4210d6[_0x3710d3(0xcf)]-0x1;_0x308421>=0x0;_0x308421--)if(_0x420775=_0x4210d6[_0x308421])_0x52a4cd=(_0x55eec3<0x3?_0x420775(_0x52a4cd):_0x55eec3>0x3?_0x420775(_0x57fbf4,_0x5ac204,_0x52a4cd):_0x420775(_0x57fbf4,_0x5ac204))||_0x52a4cd;}return _0x55eec3>0x3&&_0x52a4cd&&Object[_0x3710d3(0xc9)](_0x57fbf4,_0x5ac204,_0x52a4cd),_0x52a4cd;},__metadata=this&&this[a13_0x139613(0xaf)]||function(_0x2d293a,_0x5293a3){const _0x2e6490=a13_0x139613;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x2e6490(0xcd)](_0x2d293a,_0x5293a3);},__param=this&&this[a13_0x139613(0xf6)]||function(_0x991c97,_0x3de8cf){return function(_0x2d6ec6,_0x46b410){_0x3de8cf(_0x2d6ec6,_0x46b410,_0x991c97);};};function a13_0x1f0a(_0x6db8fa,_0xb8b5d4){const _0xf18feb=a13_0x5078();return a13_0x1f0a=function(_0x4e6df4,_0x7a12de){_0x4e6df4=_0x4e6df4-0xac;let _0x50788f=_0xf18feb[_0x4e6df4];return _0x50788f;},a13_0x1f0a(_0x6db8fa,_0xb8b5d4);}Object[a13_0x139613(0xc9)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports['ApitestService']=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a13_0x139613(0xb5)),core_2=require(a13_0x139613(0xb5)),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a13_0x139613(0xdf)](_0x298e7c){const _0x528103=a13_0x139613,_0x6d8234=(0x0,getRoutes_1[_0x528103(0xf1)])(_0x298e7c),_0x1f7126=[];for(let _0x4bb748 in _0x6d8234){for(let _0x25ec03 in _0x6d8234[_0x4bb748][_0x528103(0xb0)]){let _0x122491=_0x6d8234[_0x4bb748][_0x528103(0xb0)][_0x25ec03],_0x2697f6=[];for(let _0x48cad0 in _0x122491[_0x528103(0xea)]){_0x2697f6[_0x528103(0xcb)](_0x122491['request'][_0x48cad0]);}_0x1f7126['push']({'title':_0x6d8234[_0x4bb748]['summary']+':'+_0x122491[_0x528103(0xef)],'prefix':_0x6d8234[_0x4bb748][_0x528103(0xda)],'router':_0x122491[_0x528103(0xd2)],'method':_0x122491[_0x528103(0xf4)],'describe':_0x122491['description']||'','filepath':_0x6d8234[_0x4bb748][_0x528103(0xb7)]||'','request':_0x2697f6});}}const _0xce7f00=(0x0,path_1['join'])(__dirname,_0x528103(0xb6));return(0x0,fs_1[_0x528103(0xf5)])(_0xce7f00,{'encoding':_0x528103(0xc4)})[_0x528103(0xe0)](/__res__/g,'/apiteststatic/')[_0x528103(0xe0)]('__apiList__',JSON[_0x528103(0xe4)](_0x1f7126))[_0x528103(0xe0)](_0x528103(0xbe),JSON['stringify'](this[_0x528103(0xc3)]['devices']));}};exports[a13_0x139613(0xf2)]=ApitestService,__decorate([(0x0,core_3[a13_0x139613(0xc8)])(a13_0x139613(0xb9)),__metadata('design:type',Object)],ApitestService['prototype'],a13_0x139613(0xc3),void 0x0),exports[a13_0x139613(0xf2)]=ApitestService=__decorate([(0x0,core_2[a13_0x139613(0xd9)])('apitest'),(0x0,core_3[a13_0x139613(0xe2)])(core_3[a13_0x139613(0xad)][a13_0x139613(0xc1)])],ApitestService);function a13_0x5078(){const _0x4fa321=['ctx','@midwayjs/core','../../public/index.html','filepath','/apitest-:module','anncicapi','url','extname','11535403UlRYvV','43640JYtVSq','__devices__','979489mQtsRl','(((.+)+)+)+$','Singleton','design:type','config','utf-8','/apiteststatic/','design:returntype','apitesthtml','Config','defineProperty','text/css;\x20charset=utf-8','push','618fVENsb','metadata','.css','length','constructor','Param','route','636340VtMLMB','Inject','20vIJZaX','apiteststatic','793053eArrbF','set','Provide','prefix','35832ESfnjn','16LODhgd','application/javascript;\x20charset=utf-8','Get','apidoc','replace','function','Scope','design:paramtypes','stringify','join','search','291sCHFbg','toString','getOwnPropertyDescriptor','request','apitest','Request','Environment','/apiteststatic/*','summary','.js','getRoutes','ApitestService','content-type','method','readFileSync','__param','substring','1962404UDZnaJ','/index.html','decorate','apply','prototype','ScopeEnum','__decorate','__metadata','routes','existsSync','ApitestStaticController','isDevelopmentEnvironment'];a13_0x5078=function(){return _0x4fa321;};return a13_0x5078();}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x24c5a8=a13_0x139613;if(this[_0x24c5a8(0xeb)]){const _0x17e702={'module':![]};return this[_0x24c5a8(0xed)][_0x24c5a8(0xb3)]()&&(_0x17e702[_0x24c5a8(0xb7)]=!![]),await this[_0x24c5a8(0xf2)][_0x24c5a8(0xdf)](_0x17e702);}return'';}async['apitestmodule'](_0x47ade1){const _0x2b0960=a13_0x139613;if(this[_0x2b0960(0xeb)]){const _0x4bdcf1={'module':_0x47ade1};return this['Environment'][_0x2b0960(0xb3)]()&&(_0x4bdcf1[_0x2b0960(0xb7)]=!![]),await this['ApitestService']['apidoc'](_0x4bdcf1);}return'';}async['apiteststatic'](){const _0x46461f=a13_0x139613;if((0x0,path_1[_0x46461f(0xbb)])(this[_0x46461f(0xb4)][_0x46461f(0xea)][_0x46461f(0xba)])){var _0x4287af=(0x0,path_1[_0x46461f(0xe5)])(__dirname,'../../public/'+this[_0x46461f(0xb4)][_0x46461f(0xea)][_0x46461f(0xba)]['replace'](_0x46461f(0xc5),'/'));if(_0x4287af[_0x46461f(0xf7)](_0x4287af[_0x46461f(0xcf)]-0xb)!=_0x46461f(0xf9)){this['ctx']['set']('cache-control','public,\x20max-age=604800');if((0x0,path_1[_0x46461f(0xbb)])(this[_0x46461f(0xb4)]['request'][_0x46461f(0xba)])==_0x46461f(0xf0))this[_0x46461f(0xb4)]['set']('content-type',_0x46461f(0xdd));else(0x0,path_1[_0x46461f(0xbb)])(this['ctx'][_0x46461f(0xea)]['url'])==_0x46461f(0xce)&&this[_0x46461f(0xb4)][_0x46461f(0xd8)](_0x46461f(0xf3),_0x46461f(0xca));return(0x0,fs_1[_0x46461f(0xb1)])(_0x4287af)&&(0x0,fs_1[_0x46461f(0xf5)])(_0x4287af,{'encoding':_0x46461f(0xc4)});}}return'';}};exports['ApitestStaticController']=ApitestStaticController,__decorate([(0x0,core_3[a13_0x139613(0xd4)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a13_0x139613(0xb4),void 0x0),__decorate([(0x0,core_3[a13_0x139613(0xd4)])(),__metadata(a13_0x139613(0xc2),core_1['MidwayEnvironmentService'])],ApitestStaticController[a13_0x139613(0xac)],a13_0x139613(0xed),void 0x0),__decorate([(0x0,core_3[a13_0x139613(0xd4)])(),__metadata(a13_0x139613(0xc2),ApitestService)],ApitestStaticController[a13_0x139613(0xac)],a13_0x139613(0xf2),void 0x0),__decorate([(0x0,core_3[a13_0x139613(0xc8)])(a13_0x139613(0xeb)),__metadata(a13_0x139613(0xc2),Boolean)],ApitestStaticController[a13_0x139613(0xac)],a13_0x139613(0xeb),void 0x0),__decorate([(0x0,core_3[a13_0x139613(0xc8)])(a13_0x139613(0xb9)),__metadata(a13_0x139613(0xc2),Object)],ApitestStaticController['prototype'],a13_0x139613(0xc3),void 0x0),__decorate([(0x0,core_2[a13_0x139613(0xde)])('/apitest'),__metadata(a13_0x139613(0xc2),Function),__metadata(a13_0x139613(0xe3),[]),__metadata(a13_0x139613(0xc6),Promise)],ApitestStaticController[a13_0x139613(0xac)],a13_0x139613(0xc7),null),__decorate([(0x0,core_2[a13_0x139613(0xde)])(a13_0x139613(0xb8)),__param(0x0,(0x0,core_2[a13_0x139613(0xd1)])('module')),__metadata('design:type',Function),__metadata('design:paramtypes',[String]),__metadata(a13_0x139613(0xc6),Promise)],ApitestStaticController[a13_0x139613(0xac)],'apitestmodule',null),__decorate([(0x0,core_2[a13_0x139613(0xde)])(a13_0x139613(0xee)),__metadata(a13_0x139613(0xc2),Function),__metadata('design:paramtypes',[]),__metadata(a13_0x139613(0xc6),Promise)],ApitestStaticController['prototype'],a13_0x139613(0xd6),null),exports[a13_0x139613(0xb2)]=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a13_0x139613(0xe2)])(core_3[a13_0x139613(0xad)][a13_0x139613(0xec)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a14_0xb3dd(_0x1f3029,_0x16db82){const _0xdc1d26=a14_0x5532();return a14_0xb3dd=function(_0xa07855,_0x567e14){_0xa07855=_0xa07855-0x199;let _0x553231=_0xdc1d26[_0xa07855];return _0x553231;},a14_0xb3dd(_0x1f3029,_0x16db82);}const a14_0x1c8ae5=a14_0xb3dd;function a14_0x5532(){const _0x72eac9=['log','16TgDbGT','YYYY/MM/DD','xlsx','stream','prototype','get','length','ScopeEnum','handler','apply','keys','decorate','./ExcelStream','__decorate','736184NmhHJb','getCell','search','download','readFile','isNumber','621405EglyEq','getAppDir','startsWith','475338okuhwo','8484dyQPva','header','ExcelService','2135ViRodb','format','exceljs','substring','getRow','constructor','push','endsWith','set','toString','addRow','filter','ExcelStream','col','defineProperty','\x20is\x20read\x20fail','Sheet\x201','Scope','onRead','value','(((.+)+)+)+$','.xlsx','model','replace','object','metadata','rowCount','3283455CclGPo','app','onWrite','getColumn','function','export','instance','Api\x20Excel\x20Error:\x20','Workbook','values','827235rlxPhH','design:type','key','findRows','13350PCIbcb','App','28FfNrKx','Provide','/public/xlsx/','eachCell','Singleton','worksheets','getOwnPropertyDescriptor','columns','getWorksheet','xls'];a14_0x5532=function(){return _0x72eac9;};return a14_0x5532();}(function(_0x1320ab,_0x5c6627){const _0x37955e=a14_0xb3dd,_0x2d666f=_0x1320ab();while(!![]){try{const _0x191a61=-parseInt(_0x37955e(0x1b4))/0x1+parseInt(_0x37955e(0x1d3))/0x2+parseInt(_0x37955e(0x1dc))/0x3*(parseInt(_0x37955e(0x1ba))/0x4)+parseInt(_0x37955e(0x1e0))/0x5*(-parseInt(_0x37955e(0x1dd))/0x6)+parseInt(_0x37955e(0x1aa))/0x7+parseInt(_0x37955e(0x1c5))/0x8*(parseInt(_0x37955e(0x1d9))/0x9)+parseInt(_0x37955e(0x1b8))/0xa;if(_0x191a61===_0x5c6627)break;else _0x2d666f['push'](_0x2d666f['shift']());}catch(_0xd3e0a7){_0x2d666f['push'](_0x2d666f['shift']());}}}(a14_0x5532,0x9fd63));const a14_0x567e14=(function(){let _0x59a505=!![];return function(_0x3fa042,_0x215fe7){const _0x537cb9=_0x59a505?function(){const _0x7e053=a14_0xb3dd;if(_0x215fe7){const _0x20232c=_0x215fe7[_0x7e053(0x1ce)](_0x3fa042,arguments);return _0x215fe7=null,_0x20232c;}}:function(){};return _0x59a505=![],_0x537cb9;};}()),a14_0xa07855=a14_0x567e14(this,function(){const _0xe8c9bf=a14_0xb3dd;return a14_0xa07855[_0xe8c9bf(0x1e9)]()[_0xe8c9bf(0x1d5)]('(((.+)+)+)+$')['toString']()[_0xe8c9bf(0x1e5)](a14_0xa07855)['search'](_0xe8c9bf(0x1a3));});a14_0xa07855();'use strict';var __decorate=this&&this[a14_0x1c8ae5(0x1d2)]||function(_0xc88f4c,_0x181374,_0x562f17,_0x55a8fd){const _0xaf67fc=a14_0x1c8ae5;var _0x160966=arguments[_0xaf67fc(0x1cb)],_0x3eca51=_0x160966<0x3?_0x181374:_0x55a8fd===null?_0x55a8fd=Object[_0xaf67fc(0x1c0)](_0x181374,_0x562f17):_0x55a8fd,_0x307ba5;if(typeof Reflect===_0xaf67fc(0x1a7)&&typeof Reflect['decorate']===_0xaf67fc(0x1ae))_0x3eca51=Reflect[_0xaf67fc(0x1d0)](_0xc88f4c,_0x181374,_0x562f17,_0x55a8fd);else{for(var _0x575227=_0xc88f4c[_0xaf67fc(0x1cb)]-0x1;_0x575227>=0x0;_0x575227--)if(_0x307ba5=_0xc88f4c[_0x575227])_0x3eca51=(_0x160966<0x3?_0x307ba5(_0x3eca51):_0x160966>0x3?_0x307ba5(_0x181374,_0x562f17,_0x3eca51):_0x307ba5(_0x181374,_0x562f17))||_0x3eca51;}return _0x160966>0x3&&_0x3eca51&&Object[_0xaf67fc(0x19d)](_0x181374,_0x562f17,_0x3eca51),_0x3eca51;},__metadata=this&&this['__metadata']||function(_0x1e01a3,_0x4d8793){const _0x27c5d3=a14_0x1c8ae5;if(typeof Reflect===_0x27c5d3(0x1a7)&&typeof Reflect[_0x27c5d3(0x1a8)]===_0x27c5d3(0x1ae))return Reflect[_0x27c5d3(0x1a8)](_0x1e01a3,_0x4d8793);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a14_0x1c8ae5(0x1df)]=void 0x0;const fs=require('fs'),exceljs=require(a14_0x1c8ae5(0x1e2)),koasend=require('koa-send'),core_1=require('@midwayjs/core'),ExcelStream_1=require(a14_0x1c8ae5(0x1d1));let ExcelService=class ExcelService{async['parse'](_0x4177c5,_0x251f14,_0x49857f=[0x0]){const _0x1afb08=a14_0x1c8ae5;var _0x8509fe,_0x485589;const _0x5debef=new exceljs[(_0x1afb08(0x1b2))](),_0x42fcc4=[];let _0x3ebee6=_0x4177c5[_0x1afb08(0x1a6)](/(\\|\/)/g,'/')[_0x1afb08(0x1a6)](/\/{2,}/g,'/');!(_0x3ebee6===null||_0x3ebee6===void 0x0?void 0x0:_0x3ebee6[_0x1afb08(0x1db)]('/'))&&(_0x3ebee6=this[_0x1afb08(0x1ab)][_0x1afb08(0x1da)]()+'/'+_0x3ebee6);try{await _0x5debef[_0x1afb08(0x1c7)][_0x1afb08(0x1d7)](_0x3ebee6);}catch(_0x38ec86){return console[_0x1afb08(0x1c4)](_0x1afb08(0x1b1)+_0x3ebee6+_0x1afb08(0x19e)),_0x42fcc4;}for(const _0x2525cf of _0x49857f){const _0x279862=lodash[_0x1afb08(0x1d8)](_0x2525cf)?((_0x8509fe=_0x5debef[_0x1afb08(0x1bf)])===null||_0x8509fe===void 0x0?void 0x0:_0x8509fe[_0x2525cf])||undefined:_0x5debef[_0x1afb08(0x1c2)](_0x2525cf);if(_0x279862){var _0xc03979=0x1;const _0x1ffde2=_0x279862[_0x1afb08(0x1e4)](0x1),_0x35e292=await new Promise(_0x43fcca=>{const _0x937952=_0x1afb08,_0x2582ad={};_0x1ffde2[_0x937952(0x1bd)]((_0x329a67,_0x3adb3d)=>{const _0x2fb03b=_0x937952;for(const _0x4c4f86 of _0x251f14){if(_0x329a67[_0x2fb03b(0x1a2)]==_0x4c4f86[_0x2fb03b(0x1de)])_0xc03979=0x2,_0x2582ad[_0x4c4f86[_0x2fb03b(0x1b6)]]={'header':_0x329a67[_0x2fb03b(0x19c)],'handler':(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86['onRead'])||(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1cd)])};else{if(!_0x2582ad[_0x4c4f86['key']])try{const _0x15e9c4=_0x1ffde2&&_0x1ffde2[_0x2fb03b(0x1d4)](_0x4c4f86[_0x2fb03b(0x1de)]);_0x15e9c4&&(_0x2582ad[_0x4c4f86[_0x2fb03b(0x1b6)]]={'header':_0x15e9c4[_0x2fb03b(0x19c)],'handler':(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1a1)])||(_0x4c4f86===null||_0x4c4f86===void 0x0?void 0x0:_0x4c4f86[_0x2fb03b(0x1cd)])});}catch{}}}_0x1ffde2['cellCount']==_0x3adb3d&&_0x43fcca(_0x2582ad);});});_0x343d94:for(const _0xf71e75 of _0x279862[_0x1afb08(0x1b7)](_0xc03979,_0x279862[_0x1afb08(0x1a9)])){if(typeof(_0xf71e75===null||_0xf71e75===void 0x0?void 0x0:_0xf71e75[_0x1afb08(0x1d4)])!=_0x1afb08(0x1ae))continue _0x343d94;const _0x5a2322={};_0x323eba:for(const _0x2fb82 in _0x35e292){if(_0x35e292[_0x2fb82][_0x1afb08(0x1de)]){const _0x3c855c=_0xf71e75['getCell'](_0x35e292[_0x2fb82][_0x1afb08(0x1de)]);if(!_0x3c855c)continue _0x323eba;try{_0x3c855c['toString']();}catch(_0x30808d){_0x3c855c[_0x1afb08(0x1e9)]=()=>{const _0x121541=_0x1afb08;var _0x31d4d6;return''+(((_0x31d4d6=_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x121541(0x1a5)])===null||_0x31d4d6===void 0x0?void 0x0:_0x31d4d6['value'])||'');};}typeof((_0x485589=_0x35e292[_0x2fb82])===null||_0x485589===void 0x0?void 0x0:_0x485589['handler'])==_0x1afb08(0x1ae)?_0x5a2322[_0x2fb82]=await _0x35e292[_0x2fb82][_0x1afb08(0x1cd)](lodash[_0x1afb08(0x1e8)]({},_0x2fb82,(_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x1afb08(0x1e9)]())||''),_0x3c855c[_0x1afb08(0x1a5)]):_0x5a2322[_0x2fb82]=(_0x3c855c===null||_0x3c855c===void 0x0?void 0x0:_0x3c855c[_0x1afb08(0x1e9)]())||'';}}Object[_0x1afb08(0x1cf)](_0x5a2322)['length']>0x0&&Object[_0x1afb08(0x1b3)](_0x5a2322)[_0x1afb08(0x19a)](_0x373636=>_0x373636!='')['length']>0x0&&_0x42fcc4['push'](_0x5a2322);}}}return _0x42fcc4;}async[a14_0x1c8ae5(0x1af)](_0x120877,_0xe72680,_0x52f7b5,_0xd78b73,_0x58ef00){const _0x581a52=a14_0x1c8ae5;var _0x25228d,_0x1efe70,_0x11553e;const _0x31ec5b=new exceljs[(_0x581a52(0x1b2))](),_0x328366={},_0x292330=[],_0x5b22a1=_0x31ec5b['addWorksheet'](_0x581a52(0x19f),{'views':[{'state':'frozen','ySplit':0x1}]});for(const _0x501e08 in _0xe72680){_0x328366[_0xe72680[_0x501e08][_0x581a52(0x1b6)]]=_0xe72680[_0x501e08][_0x581a52(0x1de)],_0x292330[_0x581a52(0x1e6)]({'header':_0xe72680[_0x501e08]['header'],'key':(_0x25228d=_0xe72680[_0x501e08])===null||_0x25228d===void 0x0?void 0x0:_0x25228d[_0x581a52(0x1b6)][_0x581a52(0x1a6)](/\./g,'_')});}_0x5b22a1[_0x581a52(0x1c1)]=_0x292330;for(const _0x45055d in _0x52f7b5){const _0x8c21ef=_0x52f7b5[_0x45055d],_0x6fe995=_0x5b22a1[_0x581a52(0x199)]({});for(let _0x5e9b18 in _0xe72680){const _0x14ccef=_0xe72680[_0x5e9b18][_0x581a52(0x1b6)][_0x581a52(0x1a6)](/\./g,'_'),_0x413572=_0x5b22a1[_0x581a52(0x1ad)](_0x14ccef),_0x1366ec=_0x6fe995===null||_0x6fe995===void 0x0?void 0x0:_0x6fe995[_0x581a52(0x1d4)](_0x14ccef);if(typeof((_0x1efe70=_0xe72680[_0x5e9b18])===null||_0x1efe70===void 0x0?void 0x0:_0x1efe70[_0x581a52(0x1ac)])==_0x581a52(0x1ae))_0x1366ec[_0x581a52(0x1a2)]=await _0xe72680[_0x5e9b18][_0x581a52(0x1ac)](_0x8c21ef,{'row':_0x6fe995,'col':_0x413572,'cell':_0x1366ec,'sheet':_0x5b22a1})||'';else typeof((_0x11553e=_0xe72680[_0x5e9b18])===null||_0x11553e===void 0x0?void 0x0:_0x11553e[_0x581a52(0x1cd)])==_0x581a52(0x1ae)?_0x1366ec[_0x581a52(0x1a2)]=await _0xe72680[_0x5e9b18][_0x581a52(0x1cd)](_0x8c21ef,{'row':_0x6fe995,'col':_0x413572,'cell':_0x1366ec,'sheet':_0x5b22a1})||'':_0x1366ec[_0x581a52(0x1a2)]=lodash[_0x581a52(0x1ca)](_0x8c21ef,_0xe72680[_0x5e9b18]['key'],'');}}typeof _0x58ef00==_0x581a52(0x1ae)&&await _0x58ef00({'workbook':_0x31ec5b,'worksheet':_0x5b22a1});let _0x563bd0='';const _0x1fa6e8=_0x120877+_0x581a52(0x1a4);if(_0xd78b73&&_0xd78b73['startsWith']('/'))_0x563bd0=''+_0xd78b73;else _0xd78b73&&!_0xd78b73[_0x581a52(0x1db)]('/')&&!_0xd78b73['startsWith']('\x5c')?_0x563bd0=this[_0x581a52(0x1ab)][_0x581a52(0x1da)]()+'/'+_0xd78b73:_0x563bd0=this[_0x581a52(0x1ab)][_0x581a52(0x1da)]()+_0x581a52(0x1bc)+dayjs()[_0x581a52(0x1e1)](_0x581a52(0x1c6));return(_0x563bd0[_0x581a52(0x1e7)]('/')||_0x563bd0[_0x581a52(0x1e7)]('\x5c'))&&(_0x563bd0=_0x563bd0[_0x581a52(0x1e3)](0x0,_0x563bd0[_0x581a52(0x1cb)]-0x1)),_0x563bd0=_0x563bd0['replace'](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/'),!fs['existsSync'](_0x563bd0)&&fs['mkdirSync'](_0x563bd0,{'recursive':!![]}),await _0x31ec5b[_0x581a52(0x1c7)]['writeFile']((_0x563bd0+'/'+_0x1fa6e8)['replace'](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/')),{'filename':_0x1fa6e8,'filepath':(_0x563bd0[_0x581a52(0x1e3)]((''+this['app'][_0x581a52(0x1da)]())[_0x581a52(0x1cb)])+'/'+_0x1fa6e8)[_0x581a52(0x1a6)](/(\\|\/)/g,'/')[_0x581a52(0x1a6)](/\/{2,}/g,'/')};}async[a14_0x1c8ae5(0x1c8)](_0x39d4c5,_0x169c20={'suffix':[a14_0x1c8ae5(0x1c3),'xlsx']}){const _0x8619b2=a14_0x1c8ae5;return await ExcelStream_1[_0x8619b2(0x19b)][_0x8619b2(0x1b0)](_0x39d4c5,_0x169c20);}async[a14_0x1c8ae5(0x1d6)](_0x102d19,_0x56332e){return await koasend(_0x102d19,''+_0x56332e);}};exports[a14_0x1c8ae5(0x1df)]=ExcelService,__decorate([(0x0,core_1[a14_0x1c8ae5(0x1b9)])(),__metadata(a14_0x1c8ae5(0x1b5),Object)],ExcelService[a14_0x1c8ae5(0x1c9)],a14_0x1c8ae5(0x1ab),void 0x0),exports[a14_0x1c8ae5(0x1df)]=ExcelService=__decorate([(0x0,core_1[a14_0x1c8ae5(0x1bb)])(),(0x0,core_1[a14_0x1c8ae5(0x1a0)])(core_1[a14_0x1c8ae5(0x1cc)][a14_0x1c8ae5(0x1be)])],ExcelService);
|
|
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 +1 @@
|
|
|
1
|
-
const a15_0x4c87bb=a15_0x5a12;(function(_0x37b009,_0x25f073){const _0x59adb5=a15_0x5a12,_0x4d004f=_0x37b009();while(!![]){try{const _0x333363=parseInt(_0x59adb5(0xd3))/0x1+parseInt(_0x59adb5(0x107))/0x2+-parseInt(_0x59adb5(0xe9))/0x3*(parseInt(_0x59adb5(0x101))/0x4)+-parseInt(_0x59adb5(0xec))/0x5+parseInt(_0x59adb5(0x103))/0x6*(-parseInt(_0x59adb5(0xf4))/0x7)+parseInt(_0x59adb5(0xbc))/0x8*(parseInt(_0x59adb5(0x104))/0x9)+parseInt(_0x59adb5(0xf8))/0xa;if(_0x333363===_0x25f073)break;else _0x4d004f['push'](_0x4d004f['shift']());}catch(_0xeac817){_0x4d004f['push'](_0x4d004f['shift']());}}}(a15_0x19d4,0x58493));const a15_0x18ec4e=(function(){let _0x198332=!![];return function(_0x4a70d1,_0x5b4190){const _0x1c41fd=_0x198332?function(){const _0x2b51e2=a15_0x5a12;if(_0x5b4190){const _0x5b7d45=_0x5b4190[_0x2b51e2(0xc9)](_0x4a70d1,arguments);return _0x5b4190=null,_0x5b7d45;}}:function(){};return _0x198332=![],_0x1c41fd;};}()),a15_0x5bfb69=a15_0x18ec4e(this,function(){const _0x2d512c=a15_0x5a12;return a15_0x5bfb69[_0x2d512c(0xd4)]()['search'](_0x2d512c(0xcf))[_0x2d512c(0xd4)]()[_0x2d512c(0xc3)](a15_0x5bfb69)[_0x2d512c(0xce)](_0x2d512c(0xcf));});function a15_0x19d4(){const _0x39c8e3=['Transform','filter','model','suffix','mkdirSync','worksheets','reader','pipe','ExcelStream','error','chunkArray','isArray','Writable','read','value','finish','sheets','xlsx','4113AqfOtP','destroy','getRow','2643635DaAqxn','getCell','length','WorkbookWriter','addWorksheet','getWorksheet','defineProperty','end','961891puHaBv','rootpath','pause','includes','12157560EGBRjm','columns','function','key','xls','resume','文件名格式错误','set','addRow','196tNMCGp','exceljs','30EhvZWZ','108adyOzQ','get','ignore','63906ENWCVl','isNumber','_WorkbookReader','existsSync','_WorksheetWriterMap','dirname','from','save','emit','WorkbookReader','handler','27080hXgKvH','_WorkbookWriter','Workbook','replace','commit','getWorkbookWriterSheet','eachCell','constructor','substring','writer','forEach','writeFile','header','apply','lastIndexOf','getColumn','col','finished','search','(((.+)+)+)+$','filepath','instance','row','356261BIabaq','toString','unpipe','stream'];a15_0x19d4=function(){return _0x39c8e3;};return a15_0x19d4();}a15_0x5bfb69();'use strict';Object[a15_0x4c87bb(0xf2)](exports,'__esModule',{'value':!![]}),exports[a15_0x4c87bb(0xdf)]=void 0x0;function a15_0x5a12(_0xcdf67e,_0x28e9b0){const _0x12d4c8=a15_0x19d4();return a15_0x5a12=function(_0x5bfb69,_0x18ec4e){_0x5bfb69=_0x5bfb69-0xbb;let _0x19d496=_0x12d4c8[_0x5bfb69];return _0x19d496;},a15_0x5a12(_0xcdf67e,_0x28e9b0);}const fs=require('fs'),path=require('path'),lodash=require('lodash'),exceljs=require(a15_0x4c87bb(0x102)),stream_1=require(a15_0x4c87bb(0xd6));function isReadableStream(_0x14798f){const _0x288f18=a15_0x4c87bb;return _0x14798f&&typeof _0x14798f[_0x288f18(0xde)]===_0x288f18(0xfa)&&typeof _0x14798f['on']===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xe4)]===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xf6)]===_0x288f18(0xfa)&&typeof _0x14798f[_0x288f18(0xfd)]===_0x288f18(0xfa);}class ExcelStream{constructor(_0x141bcb){const _0x4226fd=a15_0x4c87bb;this[_0x4226fd(0x10b)]=new Map(),this[_0x4226fd(0xd0)]=_0x141bcb;}get['WorkbookReader'](){const _0x321964=a15_0x4c87bb;return!this[_0x321964(0x109)]&&(this[_0x321964(0x109)]=new exceljs[(_0x321964(0xd6))]['xlsx'][(_0x321964(0x110))](this[_0x321964(0xd0)],{'worksheets':_0x321964(0x10f),'sharedStrings':'ignore','hyperlinks':_0x321964(0x106),'styles':_0x321964(0x106)})),this[_0x321964(0x109)];}get['WorkbookWriter'](){const _0x182d8a=a15_0x4c87bb;return!this[_0x182d8a(0xbd)]&&(this[_0x182d8a(0xbd)]=new exceljs['stream'][(_0x182d8a(0xe8))][(_0x182d8a(0xef))]({'filename':this[_0x182d8a(0xd0)],'useStyles':!![],'useSharedStrings':![]})),this['_WorkbookWriter'];}static[a15_0x4c87bb(0xd1)](_0x378d01,_0x2dcf8f={'suffix':[a15_0x4c87bb(0xfc),a15_0x4c87bb(0xe8)]}){return new Promise(async(_0x44560d,_0x436f98)=>{const _0x5f5038=a15_0x5a12,_0x5292f6=_0x378d01[_0x5f5038(0xc4)]((_0x378d01['indexOf']('/')>-0x1?_0x378d01[_0x5f5038(0xca)]('/'):_0x378d01[_0x5f5038(0xca)]('\x5c'))+0x1),_0xa56f9d=path[_0x5f5038(0x10c)](((_0x2dcf8f===null||_0x2dcf8f===void 0x0?void 0x0:_0x2dcf8f[_0x5f5038(0xf5)])&&!_0x378d01['startsWith'](_0x2dcf8f['rootpath'])?_0x2dcf8f[_0x5f5038(0xf5)]+'/'+_0x378d01:'/'+_0x378d01)[_0x5f5038(0xbf)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x2dcf8f===null||_0x2dcf8f===void 0x0?void 0x0:_0x2dcf8f[_0x5f5038(0xda)])?_0x2dcf8f[_0x5f5038(0xda)]:['xls',_0x5f5038(0xe8)])[_0x5f5038(0xf7)](_0x5292f6[_0x5f5038(0xc4)](_0x5292f6[_0x5f5038(0xca)]('.')+0x1)))return _0x436f98(_0x5f5038(0xfe));const _0x1c5063=(_0xa56f9d+'/'+_0x5292f6)[_0x5f5038(0xbf)](/(\\|\/)/g,'/')[_0x5f5038(0xbf)](/\/{2,}/g,'/');if(!fs[_0x5f5038(0x10a)](_0x1c5063)){!fs[_0x5f5038(0x10a)](_0xa56f9d)&&fs[_0x5f5038(0xdb)](_0xa56f9d,{'recursive':!![]});const _0x16f74c=new exceljs[(_0x5f5038(0xbe))]();await _0x16f74c[_0x5f5038(0xe8)][_0x5f5038(0xc7)](_0x1c5063);}return _0x44560d(new ExcelStream(_0x1c5063));});}async[a15_0x4c87bb(0xc5)](_0x479307,_0x14cac8,_0x328797=0x0){const _0xa2a405=a15_0x4c87bb;var _0x24fcd8;const _0x43490b=this[_0xa2a405(0xc1)](_0x328797,!![]),_0x32abbb={},_0x110319=[];if(_0x43490b&&(Array[_0xa2a405(0xe2)](_0x14cac8)||isReadableStream(_0x14cac8))){for(const _0x41102d in _0x479307){_0x32abbb[_0x479307[_0x41102d][_0xa2a405(0xfb)]]=_0x479307[_0x41102d][_0xa2a405(0xc8)],_0x110319['push']({'header':_0x479307[_0x41102d][_0xa2a405(0xc8)],'key':(_0x24fcd8=_0x479307[_0x41102d])===null||_0x24fcd8===void 0x0?void 0x0:_0x24fcd8[_0xa2a405(0xfb)][_0xa2a405(0xbf)](/\./g,'_')});}(_0x43490b===null||_0x43490b===void 0x0?void 0x0:_0x43490b[_0xa2a405(0xf9)])!=_0x110319&&(_0x43490b[_0xa2a405(0xf9)]=_0x110319);const _0x485b34=0x64,_0x7db53=Array[_0xa2a405(0xe2)](_0x14cac8)?stream_1['Readable'][_0xa2a405(0x10d)](this[_0xa2a405(0xe1)](_0x14cac8,_0x485b34),{'objectMode':!![]}):_0x14cac8,_0x2bcfe4=new stream_1[(_0xa2a405(0xd7))]({'objectMode':!![],'highWaterMark':_0x485b34,'transform':async function(_0x3ab190,_0x4f32d9,_0x2e0c1f){const _0x58ae74=_0xa2a405;Array[_0x58ae74(0xe2)](_0x3ab190)&&_0x3ab190[_0x58ae74(0xee)]>0x0&&_0x3ab190[_0x58ae74(0xc6)](_0x3ba43e=>{this['push'](_0x3ba43e);}),_0x2e0c1f();}});let _0x34460a=0x0;const _0x397790=new stream_1[(_0xa2a405(0xe3))]({'objectMode':!![],'highWaterMark':_0x485b34,async 'write'(_0x18c892,_0x340207,_0x46ddd3){const _0x5bbf5a=_0xa2a405;var _0x2be295;try{const _0x4ba543=_0x43490b[_0x5bbf5a(0x100)]({});for(let _0x5b714e in _0x479307){const _0x161404=_0x479307[_0x5b714e][_0x5bbf5a(0xfb)]['replace'](/\./g,'_'),_0x4380d1=_0x43490b[_0x5bbf5a(0xcb)](_0x161404),_0x7af9e=_0x4ba543===null||_0x4ba543===void 0x0?void 0x0:_0x4ba543[_0x5bbf5a(0xed)](_0x161404);typeof((_0x2be295=_0x479307[_0x5b714e])===null||_0x2be295===void 0x0?void 0x0:_0x2be295['handler'])==_0x5bbf5a(0xfa)?_0x7af9e[_0x5bbf5a(0xe5)]=await _0x479307[_0x5b714e][_0x5bbf5a(0xbb)](_0x18c892,{'row':_0x4ba543,'col':_0x4380d1,'cell':_0x7af9e,'sheet':_0x43490b})||'':_0x7af9e[_0x5bbf5a(0xe5)]=lodash[_0x5bbf5a(0x105)](_0x18c892,_0x479307[_0x5b714e][_0x5bbf5a(0xfb)],'');}_0x34460a++,_0x4ba543[_0x5bbf5a(0xc0)](),_0x46ddd3();}catch(_0x32371e){_0x46ddd3(_0x32371e);}},async 'final'(_0x3e4f5a){try{_0x3e4f5a();}catch(_0xc62a16){_0x3e4f5a(_0xc62a16);}}});return new Promise((_0x39ab88,_0x2aaaf8)=>{const _0x1e1a46=_0xa2a405,_0x2cf50d=_0x2ea563=>{const _0x5df651=a15_0x5a12;_0x7db53[_0x5df651(0xea)](),_0x2bcfe4['destroy'](),_0x397790[_0x5df651(0xea)](),_0x2aaaf8(_0x2ea563);};_0x7db53['on'](_0x1e1a46(0xe0),_0x2cf50d)['pipe'](_0x2bcfe4)['on'](_0x1e1a46(0xe0),_0x2cf50d)[_0x1e1a46(0xde)](_0x397790)['on'](_0x1e1a46(0xe0),_0x2cf50d)['on'](_0x1e1a46(0xe6),()=>{const _0x32cafd=_0x1e1a46;try{_0x7db53['unpipe'](),_0x2bcfe4[_0x32cafd(0xd5)](),_0x2bcfe4[_0x32cafd(0xf3)](),_0x397790[_0x32cafd(0xf3)](),_0x39ab88({'rowCount':_0x34460a,'worksheet':_0x43490b,'done':()=>_0x43490b[_0x32cafd(0xc0)]()});}catch(_0xd7a76){_0x2aaaf8(_0xd7a76);}}),Array[_0x1e1a46(0xe2)](_0x14cac8)&&_0x7db53[_0x1e1a46(0xfd)]();});}return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0};}async[a15_0x4c87bb(0xdd)](_0x56be07,_0x3e5fb0,_0x3a53f2={'sheets':0x0}){const _0x3eef70=a15_0x4c87bb;var _0x20be5a,_0x4be699,_0x393a42;const _0x4bdcd6=(_0x3a53f2===null||_0x3a53f2===void 0x0?void 0x0:_0x3a53f2['sheets'])?Array['isArray'](_0x3a53f2['sheets'])?_0x3a53f2[_0x3eef70(0xe7)]:[_0x3a53f2['sheets']]:[0x0],_0x367f91=_0x2ea692=>new Promise(async(_0x75401a,_0x16dffb)=>{const _0xbb955e=_0x3eef70,_0x30c954=_0x2ea692[_0xbb955e(0xeb)](0x1),_0x51fc4d=await new Promise(_0x5c3d9c=>{const _0x299c1c=_0xbb955e,_0x58951b={};_0x30c954[_0x299c1c(0xc2)]((_0x43e73c,_0x47a6aa)=>{const _0x1fd780=_0x299c1c;for(const _0x19f26e of _0x56be07){if(_0x43e73c[_0x1fd780(0xe5)]==_0x19f26e[_0x1fd780(0xc8)])_0x58951b[_0x19f26e['key']]={'header':_0x43e73c[_0x1fd780(0xcc)],'handler':_0x19f26e[_0x1fd780(0xbb)]};else{if(!_0x58951b[_0x19f26e[_0x1fd780(0xfb)]])try{const _0xda652c=_0x30c954&&_0x30c954[_0x1fd780(0xed)](_0x19f26e[_0x1fd780(0xc8)]);_0xda652c&&(_0x58951b[_0x19f26e[_0x1fd780(0xfb)]]={'header':_0xda652c[_0x1fd780(0xcc)],'handler':_0x19f26e[_0x1fd780(0xbb)]});}catch{}}}_0x30c954['cellCount']==_0x47a6aa&&_0x5c3d9c(_0x58951b);});});_0x2ea692['on'](_0xbb955e(0xcd),_0x5baf58=>_0x75401a(_0x2ea692)),_0x2ea692['on'](_0xbb955e(0xe0),_0x165c80=>_0x16dffb(_0x165c80)),_0x2ea692['on'](_0xbb955e(0xd2),async _0x5b2d0b=>{const _0x5db759=_0xbb955e;var _0x123090;if(typeof(_0x5b2d0b===null||_0x5b2d0b===void 0x0?void 0x0:_0x5b2d0b[_0x5db759(0xed)])=='function'){const _0x26fc9e={};_0x2638bd:for(const _0x45d437 in _0x51fc4d){if(_0x51fc4d[_0x45d437][_0x5db759(0xc8)]){const _0x34fd54=_0x5b2d0b[_0x5db759(0xed)](_0x51fc4d[_0x45d437]['header']);if(!_0x34fd54)continue _0x2638bd;try{_0x34fd54[_0x5db759(0xd4)]();}catch(_0x215c06){_0x34fd54[_0x5db759(0xd4)]=()=>{const _0x251560=_0x5db759;var _0x5d9e8a;return''+(((_0x5d9e8a=_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x251560(0xd9)])===null||_0x5d9e8a===void 0x0?void 0x0:_0x5d9e8a['value'])||'');};}typeof((_0x123090=_0x51fc4d[_0x45d437])===null||_0x123090===void 0x0?void 0x0:_0x123090[_0x5db759(0xbb)])==_0x5db759(0xfa)?_0x26fc9e[_0x45d437]=await _0x51fc4d[_0x45d437]['handler'](lodash['set']({},_0x45d437,(_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x5db759(0xd4)]())||''),_0x34fd54[_0x5db759(0xd9)]):_0x26fc9e[_0x45d437]=(_0x34fd54===null||_0x34fd54===void 0x0?void 0x0:_0x34fd54[_0x5db759(0xd4)]())||'';}}Object['keys'](_0x26fc9e)[_0x5db759(0xee)]>0x0&&Object['values'](_0x26fc9e)[_0x5db759(0xd8)](_0xad2348=>_0xad2348!='')[_0x5db759(0xee)]>0x0&&await _0x3e5fb0(_0x26fc9e,{'sheet':_0x2ea692,'row':_0x5b2d0b});}}),await _0x2ea692['read']();});for(const _0x29ab58 of _0x4bdcd6){const _0x2167ca=lodash[_0x3eef70(0x108)](_0x29ab58)?((_0x4be699=(_0x20be5a=this['WorkbookReader'])===null||_0x20be5a===void 0x0?void 0x0:_0x20be5a[_0x3eef70(0xdc)])===null||_0x4be699===void 0x0?void 0x0:_0x4be699[_0x29ab58])||undefined:(_0x393a42=this[_0x3eef70(0x110)])===null||_0x393a42===void 0x0?void 0x0:_0x393a42[_0x3eef70(0xf1)](_0x29ab58);_0x2167ca&&await _0x367f91(_0x2167ca);}}[a15_0x4c87bb(0xc1)](_0x584786,_0x3efc68=![]){const _0x5a7ace=a15_0x4c87bb;var _0x132cd7,_0x14e467;let _0x4b5a5a=this[_0x5a7ace(0x10b)]['has'](_0x584786)?this['_WorksheetWriterMap'][_0x5a7ace(0x105)](_0x584786):(_0x132cd7=this['WorkbookWriter'])===null||_0x132cd7===void 0x0?void 0x0:_0x132cd7[_0x5a7ace(0xf1)](_0x584786);return!_0x4b5a5a&&_0x3efc68&&(_0x4b5a5a=(_0x14e467=this[_0x5a7ace(0xef)])===null||_0x14e467===void 0x0?void 0x0:_0x14e467[_0x5a7ace(0xf0)](lodash['isNumber'](_0x584786)?undefined:''+_0x584786,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x5a7ace(0x10b)][_0x5a7ace(0xff)](_0x584786,_0x4b5a5a)),_0x4b5a5a;}async[a15_0x4c87bb(0x10e)](){const _0x46181b=a15_0x4c87bb;var _0xa2b0d7;return await((_0xa2b0d7=this[_0x46181b(0xef)])===null||_0xa2b0d7===void 0x0?void 0x0:_0xa2b0d7[_0x46181b(0xc0)]()),this;}*[a15_0x4c87bb(0xe1)](_0x40df08,_0x413d44){const _0x4f88f6=a15_0x4c87bb;for(let _0x3fad9b=0x0;_0x3fad9b<_0x40df08[_0x4f88f6(0xee)];_0x3fad9b+=_0x413d44){yield _0x40df08['slice'](_0x3fad9b,_0x3fad9b+_0x413d44);}}}exports['ExcelStream']=ExcelStream;
|
|
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;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0xb67781=a16_0x5a44;function a16_0x8c80(){var _0x34c680=['APPSCONFIG_KEY','234755AqKCwz','ACTION_RESPONSE_KEY','5961896bsSTwV','ACTION_ROUTE_KEY','__esModule','defineProperty','apply','11sKgmmI','5076267nGOCTf','2RQkLsD','anncic-api:action','7rLqcwX','anncic-api:apps:config','18FmFbhq','3886996fcUgEh','AppsConfigTmp','5636710SEtYxX','(((.+)+)+)+$','toString','ACTION_KEY','6708050UdEjaI','2731818BcMFeL','anncic-api:action:response'];a16_0x8c80=function(){return _0x34c680;};return a16_0x8c80();}function a16_0x5a44(_0x5dcc21,_0x5dd4bd){var _0x4f9121=a16_0x8c80();return a16_0x5a44=function(_0x589eab,_0xc3cc5){_0x589eab=_0x589eab-0x1b6;var _0x8c8020=_0x4f9121[_0x589eab];return _0x8c8020;},a16_0x5a44(_0x5dcc21,_0x5dd4bd);}(function(_0x14a5e4,_0x5057d7){var _0x466f82=a16_0x5a44,_0x6ba144=_0x14a5e4();while(!![]){try{var _0x42ddff=-parseInt(_0x466f82(0x1c6))/0x1*(parseInt(_0x466f82(0x1b7))/0x2)+-parseInt(_0x466f82(0x1b6))/0x3+parseInt(_0x466f82(0x1bc))/0x4+parseInt(_0x466f82(0x1c2))/0x5+parseInt(_0x466f82(0x1c3))/0x6*(-parseInt(_0x466f82(0x1b9))/0x7)+parseInt(_0x466f82(0x1c8))/0x8*(parseInt(_0x466f82(0x1bb))/0x9)+-parseInt(_0x466f82(0x1be))/0xa*(parseInt(_0x466f82(0x1cd))/0xb);if(_0x42ddff===_0x5057d7)break;else _0x6ba144['push'](_0x6ba144['shift']());}catch(_0xbe44a0){_0x6ba144['push'](_0x6ba144['shift']());}}}(a16_0x8c80,0xd179f));var a16_0xc3cc5=(function(){var _0x18e9f8=!![];return function(_0x4fe155,_0x2491f3){var _0x5e8ad0=_0x18e9f8?function(){var _0x5aebef=a16_0x5a44;if(_0x2491f3){var _0xb44f46=_0x2491f3[_0x5aebef(0x1cc)](_0x4fe155,arguments);return _0x2491f3=null,_0xb44f46;}}:function(){};return _0x18e9f8=![],_0x5e8ad0;};}()),a16_0x589eab=a16_0xc3cc5(this,function(){var _0x2c831e=a16_0x5a44;return a16_0x589eab[_0x2c831e(0x1c0)]()['search']('(((.+)+)+)+$')[_0x2c831e(0x1c0)]()['constructor'](a16_0x589eab)['search'](_0x2c831e(0x1bf));});a16_0x589eab();'use strict';Object[a16_0xb67781(0x1cb)](exports,a16_0xb67781(0x1ca),{'value':!![]}),exports[a16_0xb67781(0x1bd)]=exports[a16_0xb67781(0x1c5)]=exports['ACTION_RESPONSE_KEY']=exports['ACTION_ROUTE_KEY']=exports[a16_0xb67781(0x1c1)]=void 0x0,exports[a16_0xb67781(0x1c1)]=a16_0xb67781(0x1b8),exports[a16_0xb67781(0x1c9)]='anncic-api:action:route',exports[a16_0xb67781(0x1c7)]=a16_0xb67781(0x1c4),exports['APPSCONFIG_KEY']=a16_0xb67781(0x1ba);class AppsConfigTmp{}exports[a16_0xb67781(0x1bd)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x3b0cd9=a17_0x5652;(function(_0x21eed5,_0x5780af){var _0x1fb4b2=a17_0x5652,_0x5ddb35=_0x21eed5();while(!![]){try{var _0x1a47a5=-parseInt(_0x1fb4b2(0x9e))/0x1+parseInt(_0x1fb4b2(0xbb))/0x2*(parseInt(_0x1fb4b2(0xad))/0x3)+parseInt(_0x1fb4b2(0xa1))/0x4+-parseInt(_0x1fb4b2(0xb8))/0x5*(parseInt(_0x1fb4b2(0xb5))/0x6)+-parseInt(_0x1fb4b2(0xa4))/0x7*(parseInt(_0x1fb4b2(0xbc))/0x8)+parseInt(_0x1fb4b2(0xab))/0x9+-parseInt(_0x1fb4b2(0x9a))/0xa;if(_0x1a47a5===_0x5780af)break;else _0x5ddb35['push'](_0x5ddb35['shift']());}catch(_0x3730b2){_0x5ddb35['push'](_0x5ddb35['shift']());}}}(a17_0x1ded,0xcdda7));function a17_0x1ded(){var _0x439af7=['(((.+)+)+)+$','@anncic-api/validator','是否倒序','__esModule','5337430rmzfVc','_order','_page','_isreverse','108672rmOEEe','metadata','constructor','5076708VBMyPk','function','排序方式','91SRwEiM','PageDTO','getOwnPropertyDescriptor','1:是;0:否','length','RuleType','toString','8437509PHFeRE','object','9EDXshq','__decorate','prototype','defineProperty','分页数量','number','第一页为1,第二页为2','design:type','36FAhOKd','search','__metadata','1003020OYtbRW','min','Rule','1056962TkJtFc','678712dDjxgV','decorate','integer','trim'];a17_0x1ded=function(){return _0x439af7;};return a17_0x1ded();}function a17_0x5652(_0x4ad655,_0x6cc769){var _0x331cac=a17_0x1ded();return a17_0x5652=function(_0x59e2f8,_0x31abd7){_0x59e2f8=_0x59e2f8-0x93;var _0x1ded21=_0x331cac[_0x59e2f8];return _0x1ded21;},a17_0x5652(_0x4ad655,_0x6cc769);}var a17_0x31abd7=(function(){var _0x211787=!![];return function(_0x1e05c3,_0x8dc79a){var _0x13fca1=_0x211787?function(){if(_0x8dc79a){var _0x400bbd=_0x8dc79a['apply'](_0x1e05c3,arguments);return _0x8dc79a=null,_0x400bbd;}}:function(){};return _0x211787=![],_0x13fca1;};}()),a17_0x59e2f8=a17_0x31abd7(this,function(){var _0xefe94d=a17_0x5652;return a17_0x59e2f8['toString']()[_0xefe94d(0xb6)]('(((.+)+)+)+$')[_0xefe94d(0xaa)]()[_0xefe94d(0xa0)](a17_0x59e2f8)[_0xefe94d(0xb6)](_0xefe94d(0x96));});a17_0x59e2f8();'use strict';var __decorate=this&&this[a17_0x3b0cd9(0xae)]||function(_0x248922,_0x7410ec,_0xb58856,_0x2fba19){var _0x10165c=a17_0x3b0cd9,_0x1aee93=arguments[_0x10165c(0xa8)],_0x5075f0=_0x1aee93<0x3?_0x7410ec:_0x2fba19===null?_0x2fba19=Object[_0x10165c(0xa6)](_0x7410ec,_0xb58856):_0x2fba19,_0x3e739c;if(typeof Reflect===_0x10165c(0xac)&&typeof Reflect[_0x10165c(0x93)]===_0x10165c(0xa2))_0x5075f0=Reflect[_0x10165c(0x93)](_0x248922,_0x7410ec,_0xb58856,_0x2fba19);else{for(var _0x5e4cc4=_0x248922['length']-0x1;_0x5e4cc4>=0x0;_0x5e4cc4--)if(_0x3e739c=_0x248922[_0x5e4cc4])_0x5075f0=(_0x1aee93<0x3?_0x3e739c(_0x5075f0):_0x1aee93>0x3?_0x3e739c(_0x7410ec,_0xb58856,_0x5075f0):_0x3e739c(_0x7410ec,_0xb58856))||_0x5075f0;}return _0x1aee93>0x3&&_0x5075f0&&Object[_0x10165c(0xb0)](_0x7410ec,_0xb58856,_0x5075f0),_0x5075f0;},__metadata=this&&this[a17_0x3b0cd9(0xb7)]||function(_0x29a0c0,_0x1f0976){var _0x289d4d=a17_0x3b0cd9;if(typeof Reflect===_0x289d4d(0xac)&&typeof Reflect[_0x289d4d(0x9f)]===_0x289d4d(0xa2))return Reflect['metadata'](_0x29a0c0,_0x1f0976);};Object['defineProperty'](exports,a17_0x3b0cd9(0x99),{'value':!![]}),exports[a17_0x3b0cd9(0xa5)]=void 0x0;const validator_1=require(a17_0x3b0cd9(0x97));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a17_0x3b0cd9(0xba)])('分页',validator_1['RuleType'][a17_0x3b0cd9(0xb2)]()['integer']()[a17_0x3b0cd9(0xb9)](0x1),a17_0x3b0cd9(0xb3)),__metadata(a17_0x3b0cd9(0xb4),Number)],PageDTO['prototype'],a17_0x3b0cd9(0x9c),void 0x0),__decorate([(0x0,validator_1['Rule'])(a17_0x3b0cd9(0xb1),validator_1['RuleType'][a17_0x3b0cd9(0xb2)]()[a17_0x3b0cd9(0x94)]()[a17_0x3b0cd9(0xb9)](0x1)),__metadata(a17_0x3b0cd9(0xb4),Number)],PageDTO[a17_0x3b0cd9(0xaf)],'_size',void 0x0),__decorate([(0x0,validator_1['Rule'])(a17_0x3b0cd9(0xa3),validator_1[a17_0x3b0cd9(0xa9)]['string']()[a17_0x3b0cd9(0x95)]()),__metadata('design:type',String)],PageDTO['prototype'],a17_0x3b0cd9(0x9b),void 0x0),__decorate([(0x0,validator_1[a17_0x3b0cd9(0xba)])(a17_0x3b0cd9(0x98),validator_1[a17_0x3b0cd9(0xa9)][a17_0x3b0cd9(0xb2)]()['integer']()['valid'](0x0,0x1),a17_0x3b0cd9(0xa7)),__metadata('design:type',Number)],PageDTO['prototype'],a17_0x3b0cd9(0x9d),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a18_0x389040=a18_0xf0d6;function a18_0xf0d6(_0x1045d,_0x38b73e){var _0x2eb39f=a18_0x22cd();return a18_0xf0d6=function(_0x342003,_0x10208e){_0x342003=_0x342003-0x1b3;var _0x22cd7a=_0x2eb39f[_0x342003];return _0x22cd7a;},a18_0xf0d6(_0x1045d,_0x38b73e);}(function(_0x195ec4,_0x34e48f){var _0x25caa2=a18_0xf0d6,_0x480d7f=_0x195ec4();while(!![]){try{var _0x3d1ae7=parseInt(_0x25caa2(0x1b4))/0x1+parseInt(_0x25caa2(0x1b5))/0x2+-parseInt(_0x25caa2(0x1bd))/0x3*(parseInt(_0x25caa2(0x1c1))/0x4)+-parseInt(_0x25caa2(0x1bf))/0x5*(parseInt(_0x25caa2(0x1c0))/0x6)+parseInt(_0x25caa2(0x1ba))/0x7*(-parseInt(_0x25caa2(0x1b3))/0x8)+-parseInt(_0x25caa2(0x1bb))/0x9*(-parseInt(_0x25caa2(0x1b8))/0xa)+parseInt(_0x25caa2(0x1c3))/0xb*(parseInt(_0x25caa2(0x1c2))/0xc);if(_0x3d1ae7===_0x34e48f)break;else _0x480d7f['push'](_0x480d7f['shift']());}catch(_0x23477c){_0x480d7f['push'](_0x480d7f['shift']());}}}(a18_0x22cd,0x33679));var a18_0x10208e=(function(){var _0x13a188=!![];return function(_0x1585b6,_0x2966d9){var _0xb84924=_0x13a188?function(){if(_0x2966d9){var _0x5a99c6=_0x2966d9['apply'](_0x1585b6,arguments);return _0x2966d9=null,_0x5a99c6;}}:function(){};return _0x13a188=![],_0xb84924;};}()),a18_0x342003=a18_0x10208e(this,function(){var _0x25aa83=a18_0xf0d6;return a18_0x342003[_0x25aa83(0x1b6)]()[_0x25aa83(0x1c4)](_0x25aa83(0x1bc))['toString']()[_0x25aa83(0x1b7)](a18_0x342003)[_0x25aa83(0x1c4)]('(((.+)+)+)+$');});a18_0x342003();'use strict';Object[a18_0x389040(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a18_0x389040(0x1b9)]=exports[a18_0x389040(0x1be)]=void 0x0,exports['INTERCEPT_KEY']='anncic-api:intercept';class InterceptTargetTmp{}exports[a18_0x389040(0x1b9)]=InterceptTargetTmp;function a18_0x22cd(){var _0x4527ca=['InterceptTargetTmp','42259vTCPah','2925099ISvtjn','(((.+)+)+)+$','210297puRHXv','INTERCEPT_KEY','480365yKZURF','24uudNbc','4ensrDx','792fOGFPL','22352yViIiR','search','defineProperty','88vnVuDv','114182WAlOmm','316092uqhUso','toString','constructor','10Zadnpu'];a18_0x22cd=function(){return _0x4527ca;};return a18_0x22cd();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.8",
|
|
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.8",
|
|
22
|
+
"@anncic-api/core": "^3.7.8",
|
|
23
|
+
"@anncic-api/event": "^3.7.8",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.8",
|
|
25
|
+
"@anncic-api/validator": "^3.7.8",
|
|
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.8",
|
|
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": "de3191dd5e413a4a7bb9d199c0bf0d99f997c6f2"
|
|
42
42
|
}
|