anncic-api 3.7.42 → 3.7.44
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_0x39436c=a0_0x3280;(function(_0x3efa4a,_0x433451){var _0x176e06=a0_0x3280,_0x220cb7=_0x3efa4a();while(!![]){try{var _0x7b969f=parseInt(_0x176e06(0xc1))/0x1*(-parseInt(_0x176e06(0xaf))/0x2)+-parseInt(_0x176e06(0xb2))/0x3+-parseInt(_0x176e06(0xb6))/0x4+parseInt(_0x176e06(0xb9))/0x5+parseInt(_0x176e06(0xb4))/0x6*(-parseInt(_0x176e06(0xc5))/0x7)+-parseInt(_0x176e06(0xc7))/0x8*(parseInt(_0x176e06(0xa9))/0x9)+parseInt(_0x176e06(0xc6))/0xa*(parseInt(_0x176e06(0xbb))/0xb);if(_0x7b969f===_0x433451)break;else _0x220cb7['push'](_0x220cb7['shift']());}catch(_0x100997){_0x220cb7['push'](_0x220cb7['shift']());}}}(a0_0x2b7c,0x87111));function a0_0x2b7c(){var _0x385cf5=['399363JANaeU','form','toString','search','164605pqrMhF','60hRRPRF','94552ubWKiA','json','747qjKxdi','constructor','name','__esModule','env','appDir','2OQfIQW','default','defineProperty','263046ICyKoX','/runtime','186ScuwTN','xml','1153524dLRckh','/runtime/.upload','20mb','3634155vlPMky','apply','4238245DIUjrI','{midway-bull}{','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','_token','(((.+)+)+)+$'];a0_0x2b7c=function(){return _0x385cf5;};return a0_0x2b7c();}var a0_0x4b0395=(function(){var _0x48e977=!![];return function(_0x29bacd,_0x343c4c){var _0x5751a4=_0x48e977?function(){var _0x49a363=a0_0x3280;if(_0x343c4c){var _0x1773df=_0x343c4c[_0x49a363(0xba)](_0x29bacd,arguments);return _0x343c4c=null,_0x1773df;}}:function(){};return _0x48e977=![],_0x5751a4;};}()),a0_0x49f97e=a0_0x4b0395(this,function(){var _0x25bccd=a0_0x3280;return a0_0x49f97e[_0x25bccd(0xc3)]()[_0x25bccd(0xc4)](_0x25bccd(0xc0))[_0x25bccd(0xc3)]()[_0x25bccd(0xaa)](a0_0x49f97e)[_0x25bccd(0xc4)](_0x25bccd(0xc0));});function a0_0x3280(_0x3c9e52,_0x496a20){var _0x3e1434=a0_0x2b7c();return a0_0x3280=function(_0x49f97e,_0x4b0395){_0x49f97e=_0x49f97e-0xa9;var _0x2b7c09=_0x3e1434[_0x49f97e];return _0x2b7c09;},a0_0x3280(_0x3c9e52,_0x496a20);}a0_0x49f97e();'use strict';Object[a0_0x39436c(0xb1)](exports,a0_0x39436c(0xac),{'value':!![]}),exports[a0_0x39436c(0xb0)]=_0x4027a6=>{var _0x1eab6f=a0_0x39436c;return{'apitest':!![],'keys':_0x4027a6[_0x1eab6f(0xab)],'anncicapi':{'requestKey':_0x1eab6f(0xbf),'password':_0x1eab6f(0xbd),'devices':{'DEFAULT':{'secret':_0x1eab6f(0xbe),'checkcode':_0x1eab6f(0xbe)}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':'270d','dir':_0x4027a6['appDir']+_0x1eab6f(0xb3)}},'bodyParser':{'enableTypes':[_0x1eab6f(0xc8),_0x1eab6f(0xc2),'text',_0x1eab6f(0xb5)],'formLimit':'20mb','jsonLimit':_0x1eab6f(0xb8),'textLimit':_0x1eab6f(0xb8),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x4027a6[_0x1eab6f(0xae)]+_0x1eab6f(0xb7),'cleanTimeout':0x5265c00},'busboy':{'mode':'file','tmpdir':_0x4027a6[_0x1eab6f(0xae)]+_0x1eab6f(0xb7),'cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':_0x1eab6f(0xbc)+_0x4027a6['name']+':'+((_0x4027a6===null||_0x4027a6===void 0x0?void 0x0:_0x4027a6[_0x1eab6f(0xad)])?_0x4027a6[_0x1eab6f(0xad)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x4a946c=a1_0x3d85;(function(_0xb42b5e,_0xbdaa7b){var _0x4b0d4d=a1_0x3d85,_0x4cd98d=_0xb42b5e();while(!![]){try{var _0x4ff8a3=parseInt(_0x4b0d4d(0xd3))/0x1*(parseInt(_0x4b0d4d(0xd0))/0x2)+parseInt(_0x4b0d4d(0xd7))/0x3+parseInt(_0x4b0d4d(0xca))/0x4+-parseInt(_0x4b0d4d(0xd4))/0x5+-parseInt(_0x4b0d4d(0xcb))/0x6*(parseInt(_0x4b0d4d(0xce))/0x7)+-parseInt(_0x4b0d4d(0xd1))/0x8+-parseInt(_0x4b0d4d(0xd5))/0x9*(-parseInt(_0x4b0d4d(0xd6))/0xa);if(_0x4ff8a3===_0xbdaa7b)break;else _0x4cd98d['push'](_0x4cd98d['shift']());}catch(_0xc6d643){_0x4cd98d['push'](_0x4cd98d['shift']());}}}(a1_0x5e9f,0x53ec9));var a1_0x378e63=(function(){var _0x35b859=!![];return function(_0x410f69,_0x1b0b9c){var _0x11918d=_0x35b859?function(){if(_0x1b0b9c){var _0x52a12d=_0x1b0b9c['apply'](_0x410f69,arguments);return _0x1b0b9c=null,_0x52a12d;}}:function(){};return _0x35b859=![],_0x11918d;};}()),a1_0x3e915b=a1_0x378e63(this,function(){var _0xaf1b18=a1_0x3d85;return a1_0x3e915b[_0xaf1b18(0xcd)]()['search'](_0xaf1b18(0xd2))[_0xaf1b18(0xcd)]()[_0xaf1b18(0xcf)](a1_0x3e915b)[_0xaf1b18(0xcc)](_0xaf1b18(0xd2));});a1_0x3e915b();function a1_0x3d85(_0x16e1a7,_0x44ed74){var _0x5124cf=a1_0x5e9f();return a1_0x3d85=function(_0x3e915b,_0x378e63){_0x3e915b=_0x3e915b-0xc8;var _0x5e9f3e=_0x5124cf[_0x3e915b];return _0x5e9f3e;},a1_0x3d85(_0x16e1a7,_0x44ed74);}'use strict';function a1_0x5e9f(){var _0x476372=['search','toString','3944045IhZunS','constructor','2GgnSJN','1664976trymUV','(((.+)+)+)+$','443353bgBAuq','2640700vRLbuY','63WkhVXx','412040LHQhfW','962310rhGmwp','defineProperty','__esModule','2363596vlIOmE','6IBhECX'];a1_0x5e9f=function(){return _0x476372;};return a1_0x5e9f();}Object[a1_0x4a946c(0xc8)](exports,a1_0x4a946c(0xc9),{'value':!![]}),exports['default']=_0x5c261e=>{return{'koa':{'proxy':![]}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x1745(){var _0x2cf564=['2546004rtBLnu','98247SHuKIb','9uVXPAm','__esModule','defineProperty','toString','12hKHxhS','11IgPDVH','3274390KLcypN','search','7949728KZrHKi','7sDvWCg','409911cuwVQg','apply','568805YTHWOp','(((.+)+)+)+$','1086980OobgWo'];a2_0x1745=function(){return _0x2cf564;};return a2_0x1745();}var a2_0x2c92da=a2_0x3b7b;(function(_0x53da6c,_0x4a7505){var _0xab9402=a2_0x3b7b,_0x4a0c17=_0x53da6c();while(!![]){try{var _0x5bc8ba=parseInt(_0xab9402(0x1ba))/0x1+-parseInt(_0xab9402(0x1ad))/0x2+-parseInt(_0xab9402(0x1af))/0x3*(parseInt(_0xab9402(0x1b4))/0x4)+-parseInt(_0xab9402(0x1ab))/0x5+-parseInt(_0xab9402(0x1ae))/0x6*(parseInt(_0xab9402(0x1b9))/0x7)+parseInt(_0xab9402(0x1b8))/0x8*(parseInt(_0xab9402(0x1b0))/0x9)+parseInt(_0xab9402(0x1b6))/0xa*(parseInt(_0xab9402(0x1b5))/0xb);if(_0x5bc8ba===_0x4a7505)break;else _0x4a0c17['push'](_0x4a0c17['shift']());}catch(_0x410483){_0x4a0c17['push'](_0x4a0c17['shift']());}}}(a2_0x1745,0x86942));function a2_0x3b7b(_0x5172a1,_0x59b3f5){var _0x302028=a2_0x1745();return a2_0x3b7b=function(_0x1bfc60,_0x4f4080){_0x1bfc60=_0x1bfc60-0x1aa;var _0x1745bd=_0x302028[_0x1bfc60];return _0x1745bd;},a2_0x3b7b(_0x5172a1,_0x59b3f5);}var a2_0x4f4080=(function(){var _0x53fcaa=!![];return function(_0x704ceb,_0x1312df){var _0x4ffc9d=_0x53fcaa?function(){var _0x4ad161=a2_0x3b7b;if(_0x1312df){var _0x3d9d9d=_0x1312df[_0x4ad161(0x1aa)](_0x704ceb,arguments);return _0x1312df=null,_0x3d9d9d;}}:function(){};return _0x53fcaa=![],_0x4ffc9d;};}()),a2_0x1bfc60=a2_0x4f4080(this,function(){var _0x5a29d7=a2_0x3b7b;return a2_0x1bfc60['toString']()[_0x5a29d7(0x1b7)]('(((.+)+)+)+$')[_0x5a29d7(0x1b3)]()['constructor'](a2_0x1bfc60)[_0x5a29d7(0x1b7)](_0x5a29d7(0x1ac));});a2_0x1bfc60();'use strict';Object[a2_0x2c92da(0x1b2)](exports,a2_0x2c92da(0x1b1),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x55a5(){const _0x280a26=['./service/ApiService','isFunction','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','getConfiguration','4347876LeMEFn','midwayLogger','@anncic-api/core','forEach','decorator','length','filepath','isClass','getClassMetadata','443','./config/config.default','filterConfig','REQUEST_OBJ_CTX_KEY','9qyQqog','app','文件不存在','mkdirSync','undefined','koa-send','tmpdir','statSync','/basic','https://','ApiError','routerName','toLowerCase','102008lZQxPW','request','split','ACTION_KEY','proceed','MidwayEnvironmentService','intercept','startsWith','getAsync','defaultsDeep','305xsJyZl','input','function','existsSync','headers','dir','anncic-apihelper','anncicapi','isDevelopmentEnvironment','@midwayjs/busboy','MidwayLoggerService','handler','@anncic-api/typeorm','args','hanlderApplications','metadata','isArray','2806302aJriHW','clients','loggerService','target','koa','/apps/','1473830kcuIHG','726572iLIXdt','createLogger','upload','__metadata','MidwayApplicationManager','module','AppsConfigTmp','key','parse','device','17934nMGQKA','INTERCEPT_KEY','onReady','application','Inject','registerMethodHandler','APPSCONFIG_KEY','basic','.log','HEADERS_SIGNATURE','connection','attachment','getApplications','addObject','prototype','@midwayjs/cross-domain','@midwayjs/static-file','tagName','apply','Anncic-api\x20static-file\x20:\x20mkdir\x20','defineProperty','requestContext','ACTION_ROUTE_KEY','checksign','defineProperties','Configuration','Types','(((.+)+)+)+$','MidwayDecoratorService','http://','host','bodyXml','MidwayConfigService','dirs','/app','getBaseDir','runtime','InterceptTargetTmp','_matchedRoute','@midwayjs/core','query','staticFile','DEFAULT','routerOptions','anncic-api','method','@anncic-api/validator','handlerActionRoute','apimit','getOwnPropertyDescriptor','_matchedRouteMeta','object','devices','join','requestMethod','getAppDir','toString','name','ApiService','encrypted','context','decorate','16ZKmJqB','log','design:type','body','4181849AFjibd','@anncic-api/cache','match','./types/action','string','search','description','path','apps-','requestKey','_UNKNOW_','config','CustomConfiguration','loggerConfig','__decorate','/apps','isDirectory','keys','app.log'];a3_0x55a5=function(){return _0x280a26;};return a3_0x55a5();}const a3_0x1676c0=a3_0x213d;(function(_0x5bc8e7,_0x4baf7e){const _0x258dab=a3_0x213d,_0x18af43=_0x5bc8e7();while(!![]){try{const _0x3d67bc=parseInt(_0x258dab(0x24a))/0x1+-parseInt(_0x258dab(0x1cd))/0x2+parseInt(_0x258dab(0x1c6))/0x3+-parseInt(_0x258dab(0x230))/0x4+-parseInt(_0x258dab(0x254))/0x5*(-parseInt(_0x258dab(0x1d7))/0x6)+parseInt(_0x258dab(0x219))/0x7*(parseInt(_0x258dab(0x215))/0x8)+parseInt(_0x258dab(0x23d))/0x9*(-parseInt(_0x258dab(0x1cc))/0xa);if(_0x3d67bc===_0x4baf7e)break;else _0x18af43['push'](_0x18af43['shift']());}catch(_0x5ded5a){_0x18af43['push'](_0x18af43['shift']());}}}(a3_0x55a5,0xc7733));const a3_0x51109f=(function(){let _0x4ea548=!![];return function(_0x47b770,_0x40f2f7){const _0x41c7f4=_0x4ea548?function(){const _0x58fd8d=a3_0x213d;if(_0x40f2f7){const _0x545207=_0x40f2f7[_0x58fd8d(0x1e9)](_0x47b770,arguments);return _0x40f2f7=null,_0x545207;}}:function(){};return _0x4ea548=![],_0x41c7f4;};}()),a3_0x1f2dbd=a3_0x51109f(this,function(){const _0x2da773=a3_0x213d;return a3_0x1f2dbd[_0x2da773(0x20f)]()[_0x2da773(0x21e)](_0x2da773(0x1f2))['toString']()['constructor'](a3_0x1f2dbd)[_0x2da773(0x21e)]('(((.+)+)+)+$');});a3_0x1f2dbd();function a3_0x213d(_0x2d7c3c,_0x2c1652){const _0x56b09b=a3_0x55a5();return a3_0x213d=function(_0x1f2dbd,_0x51109f){_0x1f2dbd=_0x1f2dbd-0x1ba;let _0x55a585=_0x56b09b[_0x1f2dbd];return _0x55a585;},a3_0x213d(_0x2d7c3c,_0x2c1652);}'use strict';var __decorate=this&&this[a3_0x1676c0(0x227)]||function(_0x37167d,_0xa87d55,_0x36007a,_0x35826b){const _0x2abeee=a3_0x1676c0;var _0x150e82=arguments[_0x2abeee(0x235)],_0x53f46c=_0x150e82<0x3?_0xa87d55:_0x35826b===null?_0x35826b=Object[_0x2abeee(0x208)](_0xa87d55,_0x36007a):_0x35826b,_0x205815;if(typeof Reflect===_0x2abeee(0x20a)&&typeof Reflect[_0x2abeee(0x214)]===_0x2abeee(0x256))_0x53f46c=Reflect[_0x2abeee(0x214)](_0x37167d,_0xa87d55,_0x36007a,_0x35826b);else{for(var _0x39855f=_0x37167d[_0x2abeee(0x235)]-0x1;_0x39855f>=0x0;_0x39855f--)if(_0x205815=_0x37167d[_0x39855f])_0x53f46c=(_0x150e82<0x3?_0x205815(_0x53f46c):_0x150e82>0x3?_0x205815(_0xa87d55,_0x36007a,_0x53f46c):_0x205815(_0xa87d55,_0x36007a))||_0x53f46c;}return _0x150e82>0x3&&_0x53f46c&&Object[_0x2abeee(0x1eb)](_0xa87d55,_0x36007a,_0x53f46c),_0x53f46c;},__metadata=this&&this[a3_0x1676c0(0x1d0)]||function(_0x54b91a,_0x1ec0be){const _0x3202f0=a3_0x1676c0;if(typeof Reflect===_0x3202f0(0x20a)&&typeof Reflect[_0x3202f0(0x1c4)]===_0x3202f0(0x256))return Reflect['metadata'](_0x54b91a,_0x1ec0be);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x1676c0(0x225)]=void 0x0;const core_1=require(a3_0x1676c0(0x1fe)),core_2=require(a3_0x1676c0(0x1fe)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a3_0x1676c0(0x22c)),intercept_1=require('./types/intercept'),action_1=require(a3_0x1676c0(0x21c)),fs=require('fs'),path=require(a3_0x1676c0(0x220)),koasend=require(a3_0x1676c0(0x242)),koa=require('@midwayjs/koa'),upload=require(a3_0x1676c0(0x1be)),staticFile=require(a3_0x1676c0(0x1e7)),crossDomain=require(a3_0x1676c0(0x1e6)),ConfigDefault=require(a3_0x1676c0(0x23a)),ConfigProduction=require('./config/config.production'),anncic=require(a3_0x1676c0(0x232)),anncicCache=require(a3_0x1676c0(0x21a)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a3_0x1676c0(0x1c1)),anncicValidator=require(a3_0x1676c0(0x205)),anncicHelper=require(a3_0x1676c0(0x1bb));let CustomConfiguration=class CustomConfiguration{async[a3_0x1676c0(0x1d9)](){const _0x1e6802=a3_0x1676c0;await this[_0x1e6802(0x23b)](),await this[_0x1e6802(0x226)](),await this[_0x1e6802(0x206)](),await this[_0x1e6802(0x1c3)]();}async[a3_0x1676c0(0x206)](){const _0x4d3be9=a3_0x1676c0,_0x4c66b5=this['config']['getConfiguration'](),_0x197183=(0x0,core_1['getClassMetadata'])(intercept_1[_0x4d3be9(0x1d8)],intercept_1[_0x4d3be9(0x1fc)])||{};this[_0x4d3be9(0x234)][_0x4d3be9(0x1dc)](action_1[_0x4d3be9(0x1ed)],_0x2b8e8c=>{const _0x5e526f=_0x4d3be9;var _0x59387c;const _0x31ecf4=(0x0,core_1['getClassMetadata'])(action_1[_0x5e526f(0x1dd)],action_1[_0x5e526f(0x1d3)])||{},_0x4bc995=_0x2b8e8c['metadata'],_0x2eae29=(0x0,core_1[_0x5e526f(0x238)])(action_1[_0x5e526f(0x24d)],_0x2b8e8c[_0x5e526f(0x1c9)])||{},_0x801b29=((_0x59387c=_0x2eae29===null||_0x2eae29===void 0x0?void 0x0:_0x2eae29[_0x5e526f(0x236)])===null||_0x59387c===void 0x0?void 0x0:_0x59387c['substring'](0x0,_0x2eae29[_0x5e526f(0x236)]['lastIndexOf']('.')))||'',_0x5d7549=(_0x2eae29===null||_0x2eae29===void 0x0?void 0x0:_0x2eae29[_0x5e526f(0x1d2)])?(_0x31ecf4===null||_0x31ecf4===void 0x0?void 0x0:_0x31ecf4[_0x2eae29[_0x5e526f(0x1d2)]])||{}:{};return{'before':async _0x484a8f=>{const _0x17a635=_0x5e526f;var _0x14aa11,_0x4751e8,_0x228825,_0x57dab9;const _0xdabc25=(_0x14aa11=_0x484a8f===null||_0x484a8f===void 0x0?void 0x0:_0x484a8f[_0x17a635(0x1c9)])===null||_0x14aa11===void 0x0?void 0x0:_0x14aa11[core_2[_0x17a635(0x23c)]],_0x12b774=lodash[_0x17a635(0x253)]({},_0xdabc25['request']['body']||_0xdabc25[_0x17a635(0x24b)][((_0x4751e8=_0x4c66b5===null||_0x4c66b5===void 0x0?void 0x0:_0x4c66b5[_0x17a635(0x1f6)])===null||_0x4751e8===void 0x0?void 0x0:_0x4751e8['key'])||_0x17a635(0x218)]||{},_0xdabc25[_0x17a635(0x24b)][_0x17a635(0x1ff)]||{});_0xdabc25[_0x17a635(0x209)]={'module':(_0x5d7549===null||_0x5d7549===void 0x0?void 0x0:_0x5d7549[_0x17a635(0x210)])||'','routePath':''+_0xdabc25[_0x17a635(0x220)],'routeName':_0x2eae29[_0x17a635(0x202)][_0x17a635(0x1e8)]+'@'+_0x4bc995[_0x17a635(0x248)],'routeMethod':((_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995[_0x17a635(0x20d)])||_0xdabc25[_0x17a635(0x204)]||'')['toLowerCase'](),'routeDescription':(_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995[_0x17a635(0x21f)])||'','filemethod':_0x801b29+'@'+(_0x4bc995[_0x17a635(0x204)]||'')};if(_0xdabc25&&(_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995['apimit']))try{const _0x10c205=((_0x228825=_0x4c66b5===null||_0x4c66b5===void 0x0?void 0x0:_0x4c66b5[_0x17a635(0x1bc)])===null||_0x228825===void 0x0?void 0x0:_0x228825['requestKey'])&&typeof(_0x12b774===null||_0x12b774===void 0x0?void 0x0:_0x12b774[_0x4c66b5[_0x17a635(0x1bc)][_0x17a635(0x222)]])==_0x17a635(0x21d)?JSON[_0x17a635(0x1d5)](base64_decode(_0x12b774[_0x4c66b5[_0x17a635(0x1bc)]['requestKey']])||'{}')||{}:((_0x57dab9=_0xdabc25===null||_0xdabc25===void 0x0?void 0x0:_0xdabc25[_0x17a635(0x24b)])===null||_0x57dab9===void 0x0?void 0x0:_0x57dab9[_0x17a635(0x258)])||{};if(!this[_0x17a635(0x211)][_0x17a635(0x1ee)](_0x10c205))throw new AnnError(ApiError_1[_0x17a635(0x247)][_0x17a635(0x1e0)]);for(const _0x3568b2 in _0x10c205||{}){_0xdabc25[_0x17a635(0x258)][_0x3568b2]=_0x10c205[_0x3568b2];}}catch(_0x42b04e){if(_0x42b04e instanceof AnnError)throw _0x42b04e;else throw new AnnError(ApiError_1['ApiError'][_0x17a635(0x223)]);}},'around':async _0x37371b=>{const _0x2244bb=_0x5e526f;var _0x3a3b7d,_0x4541c3,_0x55e5a8;const _0x1eeb3f=(_0x3a3b7d=_0x37371b===null||_0x37371b===void 0x0?void 0x0:_0x37371b[_0x2244bb(0x1c9)])===null||_0x3a3b7d===void 0x0?void 0x0:_0x3a3b7d[core_2[_0x2244bb(0x23c)]];if(_0x1eeb3f&&(_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995[_0x2244bb(0x207)])&&((_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995[_0x2244bb(0x250)])||typeof(_0x4bc995===null||_0x4bc995===void 0x0?void 0x0:_0x4bc995[_0x2244bb(0x250)])==_0x2244bb(0x241))){if(((_0x4541c3=_0x1eeb3f[_0x2244bb(0x258)])===null||_0x4541c3===void 0x0?void 0x0:_0x4541c3[_0x2244bb(0x1d6)])&&((_0x55e5a8=_0x197183===null||_0x197183===void 0x0?void 0x0:_0x197183[_0x1eeb3f[_0x2244bb(0x258)]['device']])===null||_0x55e5a8===void 0x0?void 0x0:_0x55e5a8['length'])>0x0)for(const _0x161bf1 of _0x197183[_0x1eeb3f[_0x2244bb(0x258)]['device']]||[]){if(core_1[_0x2244bb(0x1f1)][_0x2244bb(0x237)](_0x161bf1)){const _0x2f9300=await _0x1eeb3f[_0x2244bb(0x1ec)][_0x2244bb(0x252)](_0x161bf1);typeof(_0x2f9300===null||_0x2f9300===void 0x0?void 0x0:_0x2f9300[_0x2244bb(0x21b)])=='function'?await _0x2f9300[_0x2244bb(0x21b)](_0x1eeb3f,typeof(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x204)])=='string'&&(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x1fd)])?_0x1eeb3f[_0x2244bb(0x204)][_0x2244bb(0x249)]()+'@'+(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x1fd)]):undefined,_0x4bc995)&&await _0x2f9300['handler'](_0x1eeb3f,typeof(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x204)])==_0x2244bb(0x21d)&&(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f['_matchedRoute'])?_0x1eeb3f['method'][_0x2244bb(0x249)]()+'@'+(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x1fd)]):undefined,_0x4bc995):await _0x2f9300[_0x2244bb(0x1c0)](_0x1eeb3f,typeof(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x204)])==_0x2244bb(0x21d)&&(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f['_matchedRoute'])?_0x1eeb3f['method'][_0x2244bb(0x249)]()+'@'+(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f['_matchedRoute']):undefined,_0x4bc995);}else core_1[_0x2244bb(0x1f1)][_0x2244bb(0x22d)](_0x161bf1)&&await _0x161bf1(_0x1eeb3f,typeof(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x204)])=='string'&&(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f['_matchedRoute'])?_0x1eeb3f['method'][_0x2244bb(0x249)]()+'@'+(_0x1eeb3f===null||_0x1eeb3f===void 0x0?void 0x0:_0x1eeb3f[_0x2244bb(0x1fd)]):undefined,_0x4bc995);}}return await _0x37371b[_0x2244bb(0x24e)](..._0x37371b[_0x2244bb(0x1c2)]);},'afterThrow':(_0x39fd05,_0xe22be9)=>{throw _0xe22be9;}};});}async[a3_0x1676c0(0x1c3)](){const _0x165b30=a3_0x1676c0,_0x2bb15d=this[_0x165b30(0x224)][_0x165b30(0x22f)]();this[_0x165b30(0x1da)][_0x165b30(0x1e3)]([_0x165b30(0x1ca)])[_0x165b30(0x233)](_0x525b3f=>{const _0x1c1408=_0x165b30;(_0x525b3f===null||_0x525b3f===void 0x0?void 0x0:_0x525b3f['context'])&&Object[_0x1c1408(0x1ef)](_0x525b3f[_0x1c1408(0x213)],{'hosturl':{'configurable':![],'get':function(){const _0x24da02=_0x1c1408;var _0x14251b,_0x4154d1,_0x46c7ac,_0x9e557e;if((this===null||this===void 0x0?void 0x0:this[_0x24da02(0x1f5)])&&!this[_0x24da02(0x1f5)][_0x24da02(0x251)]('http')){let _0x19b61e=this[_0x24da02(0x1f5)][_0x24da02(0x24c)](':');return['80',_0x24da02(0x239)]['includes'](_0x19b61e===null||_0x19b61e===void 0x0?void 0x0:_0x19b61e[0x1])?''+(!!((_0x4154d1=(_0x14251b=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x14251b===void 0x0?void 0x0:_0x14251b[_0x24da02(0x1e1)])===null||_0x4154d1===void 0x0?void 0x0:_0x4154d1[_0x24da02(0x212)])||(_0x19b61e===null||_0x19b61e===void 0x0?void 0x0:_0x19b61e[0x1])=='443'?_0x24da02(0x246):'http://')+_0x19b61e[0x0]:''+(!!((_0x9e557e=(_0x46c7ac=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x46c7ac===void 0x0?void 0x0:_0x46c7ac[_0x24da02(0x1e1)])===null||_0x9e557e===void 0x0?void 0x0:_0x9e557e[_0x24da02(0x212)])?_0x24da02(0x246):_0x24da02(0x1f4))+this[_0x24da02(0x1f5)];}return'';}},'ok':{'value':function(_0x370dda,_0x190e45,_0x5a75ec=0x0){return{'code':_0x5a75ec,'data':_0x370dda,'extra':_0x190e45};}},'input':{'value':function(_0x4d8bb5,_0x137df2){const _0x41fbac=_0x1c1408;var _0x356036;const _0x1d4ea7=lodash[_0x41fbac(0x253)]({},this[_0x41fbac(0x24b)][_0x41fbac(0x218)]||this[_0x41fbac(0x24b)][((_0x356036=_0x2bb15d===null||_0x2bb15d===void 0x0?void 0x0:_0x2bb15d[_0x41fbac(0x1f6)])===null||_0x356036===void 0x0?void 0x0:_0x356036[_0x41fbac(0x1d4)])||_0x41fbac(0x218)]||{},this[_0x41fbac(0x24b)][_0x41fbac(0x1ff)]||{});return _0x4d8bb5?lodash['get'](_0x1d4ea7,_0x4d8bb5,_0x137df2):_0x1d4ea7;}},'when':{'value':async function(_0x37dc62,_0xc7e6d6){const _0x2524a1=_0x1c1408,_0x1a0cfb=this[_0x2524a1(0x255)](_0x37dc62,null);if(!lodash['isNull'](_0x1a0cfb))return await _0xc7e6d6(_0x1a0cfb);}},'only':{'value':function(_0x52503e){const _0x31d2ae=_0x1c1408,_0x423087={};for(let _0x50f012=0x0;_0x50f012<_0x52503e['length'];_0x50f012++){lodash[_0x31d2ae(0x1c5)](_0x52503e[_0x50f012])&&_0x52503e[_0x50f012][_0x31d2ae(0x235)]>0x0&&lodash['isString'](_0x52503e[_0x50f012][0x0])&&(_0x423087[_0x52503e[_0x50f012][0x0]]=this['input'](_0x52503e[_0x50f012][0x0],_0x52503e[_0x50f012][_0x31d2ae(0x235)]>0x1?_0x52503e[_0x50f012][0x1]:null));}return _0x423087;}},'koasend':{'value':async function(_0x29790f,_0xeb2e61){const _0x1c36f8=_0x1c1408;if(_0x29790f&&!fs[_0x1c36f8(0x257)](_0x29790f)&&!fs['existsSync'](this[_0x1c36f8(0x23e)]['getAppDir']()+'/'+_0x29790f))return _0x1c36f8(0x23f);return _0x29790f=fs[_0x1c36f8(0x257)](_0x29790f)?_0x29790f:this['app'][_0x1c36f8(0x20e)]()+'/'+_0x29790f,this[_0x1c36f8(0x1e2)](_0xeb2e61||_0x29790f),await koasend(this,_0x29790f);}}});});}async['loggerConfig'](){const _0x32d0d1=a3_0x1676c0;var _0x11c19c;if(fs[_0x32d0d1(0x257)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x1fa)]()+_0x32d0d1(0x228))&&fs[_0x32d0d1(0x244)](this['app'][_0x32d0d1(0x1fa)]()+'/apps')['isDirectory']()){const _0x345110=this['config']['getConfiguration'](),_0x30edf8=((_0x11c19c=_0x345110===null||_0x345110===void 0x0?void 0x0:_0x345110[_0x32d0d1(0x231)])===null||_0x11c19c===void 0x0?void 0x0:_0x11c19c[_0x32d0d1(0x1c7)])||{};!fs[_0x32d0d1(0x257)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x1fa)]()+_0x32d0d1(0x1f9))&&(_0x30edf8[_0x32d0d1(0x23e)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x32d0d1(0x1bd)](),'fileLogName':_0x32d0d1(0x22b),'dir':path[_0x32d0d1(0x20c)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x20e)](),_0x32d0d1(0x1fb),_0x32d0d1(0x23e))});!fs[_0x32d0d1(0x257)](this[_0x32d0d1(0x23e)]['getBaseDir']()+_0x32d0d1(0x245))&&(_0x30edf8[_0x32d0d1(0x1de)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x32d0d1(0x1bd)](),'fileLogName':'basic.log','dir':path[_0x32d0d1(0x20c)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x20e)](),_0x32d0d1(0x1fb),_0x32d0d1(0x1de))});for(const _0x10cf48 of fs['readdirSync'](this[_0x32d0d1(0x23e)][_0x32d0d1(0x1fa)]()+_0x32d0d1(0x228))){if(!fs[_0x32d0d1(0x244)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x1fa)]()+_0x32d0d1(0x1cb)+_0x10cf48)[_0x32d0d1(0x229)]())continue;!(_0x30edf8===null||_0x30edf8===void 0x0?void 0x0:_0x30edf8[_0x10cf48])&&(_0x30edf8[_0x10cf48]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x32d0d1(0x1bd)](),'fileLogName':_0x10cf48+_0x32d0d1(0x1df),'dir':path['join'](this['app'][_0x32d0d1(0x20e)](),_0x32d0d1(0x1fb),_0x32d0d1(0x221)+_0x10cf48)}),this[_0x32d0d1(0x1c8)][_0x32d0d1(0x1ce)](_0x10cf48,_0x30edf8[_0x10cf48]);}Object[_0x32d0d1(0x22a)](_0x30edf8)[_0x32d0d1(0x235)]>0x0&&(!_0x345110[_0x32d0d1(0x231)]&&(_0x345110[_0x32d0d1(0x231)]={'default':{'maxSize':'1m','maxFiles':'270d','dir':path[_0x32d0d1(0x20c)](this[_0x32d0d1(0x23e)][_0x32d0d1(0x20e)](),_0x32d0d1(0x1fb))}}),_0x345110[_0x32d0d1(0x231)][_0x32d0d1(0x1c7)]=_0x30edf8),this['config'][_0x32d0d1(0x1e4)](_0x345110);}}async[a3_0x1676c0(0x23b)](){const _0x4be6da=a3_0x1676c0;var _0x398144,_0x58e22c,_0x34985c,_0xce8ddf,_0x4687f8,_0x4ab863;const _0x65da8f=this['config']['getConfiguration']();((_0x58e22c=(_0x398144=_0x65da8f===null||_0x65da8f===void 0x0?void 0x0:_0x65da8f['anncicapi'])===null||_0x398144===void 0x0?void 0x0:_0x398144[_0x4be6da(0x20b)])===null||_0x58e22c===void 0x0?void 0x0:_0x58e22c['DEFAULT'])&&Object[_0x4be6da(0x22a)](_0x65da8f[_0x4be6da(0x1bc)][_0x4be6da(0x20b)])[_0x4be6da(0x235)]>0x1&&delete _0x65da8f[_0x4be6da(0x1bc)][_0x4be6da(0x20b)][_0x4be6da(0x201)];if((_0x34985c=_0x65da8f===null||_0x65da8f===void 0x0?void 0x0:_0x65da8f[_0x4be6da(0x200)])===null||_0x34985c===void 0x0?void 0x0:_0x34985c[_0x4be6da(0x1f8)])for(const _0x24b92b in _0x65da8f['staticFile'][_0x4be6da(0x1f8)]){((_0xce8ddf=_0x65da8f[_0x4be6da(0x200)]['dirs'][_0x24b92b])===null||_0xce8ddf===void 0x0?void 0x0:_0xce8ddf[_0x4be6da(0x1ba)])&&typeof((_0x4687f8=_0x65da8f['staticFile'][_0x4be6da(0x1f8)][_0x24b92b])===null||_0x4687f8===void 0x0?void 0x0:_0x4687f8[_0x4be6da(0x1ba)])=='string'&&!fs[_0x4be6da(0x257)](_0x65da8f['staticFile'][_0x4be6da(0x1f8)][_0x24b92b][_0x4be6da(0x1ba)])&&(fs[_0x4be6da(0x240)](_0x65da8f['staticFile'][_0x4be6da(0x1f8)][_0x24b92b][_0x4be6da(0x1ba)],{'recursive':!![]}),console[_0x4be6da(0x216)](_0x4be6da(0x1ea)+_0x65da8f[_0x4be6da(0x200)][_0x4be6da(0x1f8)][_0x24b92b][_0x4be6da(0x1ba)]));}((_0x4ab863=_0x65da8f===null||_0x65da8f===void 0x0?void 0x0:_0x65da8f[_0x4be6da(0x1cf)])===null||_0x4ab863===void 0x0?void 0x0:_0x4ab863['tmpdir'])&&!fs[_0x4be6da(0x257)](_0x65da8f[_0x4be6da(0x1cf)][_0x4be6da(0x243)])&&(fs[_0x4be6da(0x240)](_0x65da8f[_0x4be6da(0x1cf)][_0x4be6da(0x243)],{'recursive':!![]}),console['log'](_0x4be6da(0x22e)+_0x65da8f[_0x4be6da(0x1cf)][_0x4be6da(0x243)])),this[_0x4be6da(0x224)][_0x4be6da(0x1e4)](_0x65da8f);}};__decorate([(0x0,core_1['App'])(),__metadata(a3_0x1676c0(0x217),Object)],CustomConfiguration['prototype'],a3_0x1676c0(0x23e),void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),core_2[a3_0x1676c0(0x1f7)])],CustomConfiguration[a3_0x1676c0(0x1e5)],a3_0x1676c0(0x224),void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),core_2[a3_0x1676c0(0x1f3)])],CustomConfiguration[a3_0x1676c0(0x1e5)],'decorator',void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),core_2[a3_0x1676c0(0x1d1)])],CustomConfiguration[a3_0x1676c0(0x1e5)],a3_0x1676c0(0x1da),void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),core_2[a3_0x1676c0(0x24f)])],CustomConfiguration[a3_0x1676c0(0x1e5)],'environment',void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),core_1[a3_0x1676c0(0x1bf)])],CustomConfiguration[a3_0x1676c0(0x1e5)],a3_0x1676c0(0x1c8),void 0x0),__decorate([(0x0,core_1[a3_0x1676c0(0x1db)])(),__metadata(a3_0x1676c0(0x217),ApiService_1[a3_0x1676c0(0x211)])],CustomConfiguration[a3_0x1676c0(0x1e5)],a3_0x1676c0(0x211),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a3_0x1676c0(0x1f0)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x1676c0(0x203),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a3_0x1676c0(0x225)]=CustomConfiguration;
|
|
1
|
+
const a3_0x13d30c=a3_0x3619;(function(_0x18e2f9,_0x5befa8){const _0x92d891=a3_0x3619,_0x1ebc15=_0x18e2f9();while(!![]){try{const _0x191337=parseInt(_0x92d891(0x12a))/0x1+parseInt(_0x92d891(0x170))/0x2*(-parseInt(_0x92d891(0x16d))/0x3)+-parseInt(_0x92d891(0xfe))/0x4+-parseInt(_0x92d891(0xe3))/0x5*(parseInt(_0x92d891(0x11b))/0x6)+parseInt(_0x92d891(0x132))/0x7*(parseInt(_0x92d891(0xef))/0x8)+parseInt(_0x92d891(0x155))/0x9+-parseInt(_0x92d891(0x136))/0xa*(-parseInt(_0x92d891(0x163))/0xb);if(_0x191337===_0x5befa8)break;else _0x1ebc15['push'](_0x1ebc15['shift']());}catch(_0x221303){_0x1ebc15['push'](_0x1ebc15['shift']());}}}(a3_0xefa4,0x481da));const a3_0x233cc8=(function(){let _0x2fdd20=!![];return function(_0x2a3300,_0x5a242f){const _0x709d76=_0x2fdd20?function(){if(_0x5a242f){const _0x546cff=_0x5a242f['apply'](_0x2a3300,arguments);return _0x5a242f=null,_0x546cff;}}:function(){};return _0x2fdd20=![],_0x709d76;};}()),a3_0x167c4a=a3_0x233cc8(this,function(){const _0x565ba8=a3_0x3619;return a3_0x167c4a[_0x565ba8(0x13f)]()[_0x565ba8(0xe8)](_0x565ba8(0xfc))[_0x565ba8(0x13f)]()[_0x565ba8(0x15c)](a3_0x167c4a)[_0x565ba8(0xe8)](_0x565ba8(0xfc));});function a3_0xefa4(){const _0x3115b9=['20GRirZn','routerName','@midwayjs/koa','startsWith','@anncic-api/core','config','includes','defaultsDeep','proceed','toString','intercept','toLowerCase','_matchedRoute','split','isString','staticFile','@midwayjs/busboy','defineProperties','host','./config/config.production','query','args','App','design:type','DEFAULT','context','http://','REQUEST_OBJ_CTX_KEY','@anncic-api/typeorm','apimit','ApiError','4849020XkaJlV','koa-send','get','midwayLogger','path','metadata','request','constructor','object','getConfiguration','statSync','prototype','anncicapi','application','1037399IpJwZC','name','dir','_matchedRouteMeta','getApplications','APPSCONFIG_KEY','/apps','443','@midwayjs/static-file','existsSync','1389iMIgyS','headers','runtime','78aGBGoO','MidwayApplicationManager','input','requestMethod','ACTION_ROUTE_KEY','CustomConfiguration','match','device','ApiService','INTERCEPT_KEY','clients','bodyXml','tmpdir','25cHwNLr','lastIndexOf','.log','getBaseDir','dirs','search','body','parse','getAsync','handler','@midwayjs/cross-domain','loggerService','8sivqXJ','__metadata','basic','@midwayjs/core','hanlderApplications','join','upload','mkdirSync','_UNKNOW_','Types','filterConfig','Inject','key','(((.+)+)+)+$','keys','1543520LgWXXd','getClassMetadata','__esModule','createLogger','req','app','checksign','MidwayLoggerService','anncic-api','/app','isDirectory','@anncic-api/validator','HEADERS_SIGNATURE','http','undefined','connection','https://','MidwayEnvironmentService','target','./types/action','length','function','basic.log','log','requestKey','anncic-apihelper','isNull','isFunction','substring','629292BwJRjL','filepath','attachment','./config/config.default','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','__decorate','forEach','Anncic-api\x20static-file\x20:\x20mkdir\x20','devices','getOwnPropertyDescriptor','isDevelopmentEnvironment','270d','decorate','MidwayConfigService','addObject','396880PDnhGU','string','encrypted','getAppDir','Configuration','app.log','module','method','696185WewzRW','readdirSync','decorator','@anncic-api/cache'];a3_0xefa4=function(){return _0x3115b9;};return a3_0xefa4();}a3_0x167c4a();'use strict';var __decorate=this&&this[a3_0x13d30c(0x120)]||function(_0x1e23de,_0x4bc7f9,_0x84e05a,_0x47b9e8){const _0x490cca=a3_0x13d30c;var _0x3c7b6f=arguments['length'],_0x3d7e6f=_0x3c7b6f<0x3?_0x4bc7f9:_0x47b9e8===null?_0x47b9e8=Object[_0x490cca(0x124)](_0x4bc7f9,_0x84e05a):_0x47b9e8,_0x405406;if(typeof Reflect===_0x490cca(0x15d)&&typeof Reflect[_0x490cca(0x127)]==='function')_0x3d7e6f=Reflect[_0x490cca(0x127)](_0x1e23de,_0x4bc7f9,_0x84e05a,_0x47b9e8);else{for(var _0x1c2419=_0x1e23de[_0x490cca(0x112)]-0x1;_0x1c2419>=0x0;_0x1c2419--)if(_0x405406=_0x1e23de[_0x1c2419])_0x3d7e6f=(_0x3c7b6f<0x3?_0x405406(_0x3d7e6f):_0x3c7b6f>0x3?_0x405406(_0x4bc7f9,_0x84e05a,_0x3d7e6f):_0x405406(_0x4bc7f9,_0x84e05a))||_0x3d7e6f;}return _0x3c7b6f>0x3&&_0x3d7e6f&&Object['defineProperty'](_0x4bc7f9,_0x84e05a,_0x3d7e6f),_0x3d7e6f;},__metadata=this&&this[a3_0x13d30c(0xf0)]||function(_0xdd5fa3,_0x147699){const _0x13390e=a3_0x13d30c;if(typeof Reflect===_0x13390e(0x15d)&&typeof Reflect[_0x13390e(0x15a)]===_0x13390e(0x113))return Reflect[_0x13390e(0x15a)](_0xdd5fa3,_0x147699);};Object['defineProperty'](exports,a3_0x13d30c(0x100),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a3_0x13d30c(0xf2)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),intercept_1=require('./types/intercept'),action_1=require(a3_0x13d30c(0x111)),fs=require('fs'),path=require(a3_0x13d30c(0x159)),koasend=require(a3_0x13d30c(0x156)),koa=require(a3_0x13d30c(0x138)),upload=require(a3_0x13d30c(0x146)),staticFile=require(a3_0x13d30c(0x16b)),crossDomain=require(a3_0x13d30c(0xed)),ConfigDefault=require(a3_0x13d30c(0x11e)),ConfigProduction=require(a3_0x13d30c(0x149)),anncic=require(a3_0x13d30c(0x13a)),anncicCache=require(a3_0x13d30c(0x135)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a3_0x13d30c(0x152)),anncicValidator=require(a3_0x13d30c(0x109)),anncicHelper=require(a3_0x13d30c(0x117));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x353f0b=a3_0x13d30c;await this[_0x353f0b(0xf9)](),await this['loggerConfig'](),await this['handlerActionRoute'](),await this[_0x353f0b(0xf3)]();}async['handlerActionRoute'](){const _0x3b5c9e=a3_0x13d30c,_0x30358a=this[_0x3b5c9e(0x13b)][_0x3b5c9e(0x15e)](),_0x3e3948=(0x0,core_1[_0x3b5c9e(0xff)])(intercept_1[_0x3b5c9e(0xdf)],intercept_1['InterceptTargetTmp'])||{};this[_0x3b5c9e(0x134)]['registerMethodHandler'](action_1[_0x3b5c9e(0xda)],_0x5cc788=>{const _0x4dc853=_0x3b5c9e;var _0x31dd6c;const _0x1094e7=(0x0,core_1['getClassMetadata'])(action_1[_0x4dc853(0x168)],action_1['AppsConfigTmp'])||{},_0x43f671=_0x5cc788[_0x4dc853(0x15a)],_0x1670df=(0x0,core_1[_0x4dc853(0xff)])(action_1['ACTION_KEY'],_0x5cc788['target'])||{},_0x5a0c74=((_0x31dd6c=_0x1670df===null||_0x1670df===void 0x0?void 0x0:_0x1670df[_0x4dc853(0x11c)])===null||_0x31dd6c===void 0x0?void 0x0:_0x31dd6c[_0x4dc853(0x11a)](0x0,_0x1670df['filepath'][_0x4dc853(0xe4)]('.')))||'',_0x38ad6f=(_0x1670df===null||_0x1670df===void 0x0?void 0x0:_0x1670df[_0x4dc853(0x130)])?(_0x1094e7===null||_0x1094e7===void 0x0?void 0x0:_0x1094e7[_0x1670df[_0x4dc853(0x130)]])||{}:{};return{'before':async _0x5429f5=>{const _0x216a48=_0x4dc853;var _0x2d04ec,_0x51abbb,_0x12fbcf,_0x5da826;const _0x14d20e=(_0x2d04ec=_0x5429f5===null||_0x5429f5===void 0x0?void 0x0:_0x5429f5['target'])===null||_0x2d04ec===void 0x0?void 0x0:_0x2d04ec[core_2['REQUEST_OBJ_CTX_KEY']],_0x2aadff=lodash[_0x216a48(0x13d)]({},_0x14d20e[_0x216a48(0x15b)][_0x216a48(0xe9)]||_0x14d20e[_0x216a48(0x15b)][((_0x51abbb=_0x30358a===null||_0x30358a===void 0x0?void 0x0:_0x30358a[_0x216a48(0xe1)])===null||_0x51abbb===void 0x0?void 0x0:_0x51abbb[_0x216a48(0xfb)])||_0x216a48(0xe9)]||{},_0x14d20e[_0x216a48(0x15b)][_0x216a48(0x14a)]||{});_0x14d20e[_0x216a48(0x166)]={'module':(_0x38ad6f===null||_0x38ad6f===void 0x0?void 0x0:_0x38ad6f[_0x216a48(0x164)])||'','routePath':''+_0x14d20e[_0x216a48(0x159)],'routeName':_0x1670df['routerOptions']['tagName']+'@'+_0x43f671[_0x216a48(0x137)],'routeMethod':((_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671[_0x216a48(0xd9)])||_0x14d20e[_0x216a48(0x131)]||'')[_0x216a48(0x141)](),'routeDescription':(_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671['description'])||'','filemethod':_0x5a0c74+'@'+(_0x43f671[_0x216a48(0x131)]||'')};if(_0x14d20e&&(_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671[_0x216a48(0x153)]))try{const _0x5a849b=((_0x12fbcf=_0x30358a===null||_0x30358a===void 0x0?void 0x0:_0x30358a[_0x216a48(0x161)])===null||_0x12fbcf===void 0x0?void 0x0:_0x12fbcf[_0x216a48(0x116)])&&typeof(_0x2aadff===null||_0x2aadff===void 0x0?void 0x0:_0x2aadff[_0x30358a[_0x216a48(0x161)]['requestKey']])==_0x216a48(0x12b)?JSON[_0x216a48(0xea)](base64_decode(_0x2aadff[_0x30358a['anncicapi'][_0x216a48(0x116)]])||'{}')||{}:((_0x5da826=_0x14d20e===null||_0x14d20e===void 0x0?void 0x0:_0x14d20e[_0x216a48(0x15b)])===null||_0x5da826===void 0x0?void 0x0:_0x5da826[_0x216a48(0x16e)])||{};if(!this[_0x216a48(0xde)][_0x216a48(0x104)](_0x5a849b))throw new AnnError(ApiError_1[_0x216a48(0x154)][_0x216a48(0x10a)]);for(const _0x394d44 in _0x5a849b||{}){_0x14d20e[_0x216a48(0x16e)][_0x394d44]=_0x5a849b[_0x394d44];}}catch(_0x26c592){if(_0x26c592 instanceof AnnError)throw _0x26c592;else throw new AnnError(ApiError_1['ApiError'][_0x216a48(0xf7)]);}},'around':async _0xbd793c=>{const _0x192b9d=_0x4dc853;var _0x547e49,_0x309237,_0x57ef64;const _0x25a53d=(_0x547e49=_0xbd793c===null||_0xbd793c===void 0x0?void 0x0:_0xbd793c[_0x192b9d(0x110)])===null||_0x547e49===void 0x0?void 0x0:_0x547e49[core_2[_0x192b9d(0x151)]];if(_0x25a53d&&(_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671['apimit'])&&((_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671[_0x192b9d(0x140)])||typeof(_0x43f671===null||_0x43f671===void 0x0?void 0x0:_0x43f671['intercept'])==_0x192b9d(0x10c))){if(((_0x309237=_0x25a53d[_0x192b9d(0x16e)])===null||_0x309237===void 0x0?void 0x0:_0x309237[_0x192b9d(0xdd)])&&((_0x57ef64=_0x3e3948===null||_0x3e3948===void 0x0?void 0x0:_0x3e3948[_0x25a53d[_0x192b9d(0x16e)][_0x192b9d(0xdd)]])===null||_0x57ef64===void 0x0?void 0x0:_0x57ef64[_0x192b9d(0x112)])>0x0)for(const _0x59d0cb of _0x3e3948[_0x25a53d['headers'][_0x192b9d(0xdd)]]||[]){if(core_1[_0x192b9d(0xf8)]['isClass'](_0x59d0cb)){const _0x1c3a1a=await _0x25a53d['requestContext'][_0x192b9d(0xeb)](_0x59d0cb);typeof(_0x1c3a1a===null||_0x1c3a1a===void 0x0?void 0x0:_0x1c3a1a[_0x192b9d(0xdc)])==_0x192b9d(0x113)?await _0x1c3a1a[_0x192b9d(0xdc)](_0x25a53d,typeof(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d['method'])==_0x192b9d(0x12b)&&(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d['_matchedRoute'])?_0x25a53d[_0x192b9d(0x131)][_0x192b9d(0x141)]()+'@'+(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)]):undefined,_0x43f671)&&await _0x1c3a1a[_0x192b9d(0xec)](_0x25a53d,typeof(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d['method'])=='string'&&(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)])?_0x25a53d[_0x192b9d(0x131)][_0x192b9d(0x141)]()+'@'+(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)]):undefined,_0x43f671):await _0x1c3a1a[_0x192b9d(0xec)](_0x25a53d,typeof(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x131)])==_0x192b9d(0x12b)&&(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)])?_0x25a53d[_0x192b9d(0x131)]['toLowerCase']()+'@'+(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d['_matchedRoute']):undefined,_0x43f671);}else core_1[_0x192b9d(0xf8)][_0x192b9d(0x119)](_0x59d0cb)&&await _0x59d0cb(_0x25a53d,typeof(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x131)])==_0x192b9d(0x12b)&&(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)])?_0x25a53d[_0x192b9d(0x131)][_0x192b9d(0x141)]()+'@'+(_0x25a53d===null||_0x25a53d===void 0x0?void 0x0:_0x25a53d[_0x192b9d(0x142)]):undefined,_0x43f671);}}return await _0xbd793c[_0x192b9d(0x13e)](..._0xbd793c[_0x192b9d(0x14b)]);},'afterThrow':(_0x4f73f5,_0x591adb)=>{throw _0x591adb;}};});}async[a3_0x13d30c(0xf3)](){const _0x2250e9=a3_0x13d30c,_0x5c57b6=this[_0x2250e9(0x13b)][_0x2250e9(0x15e)]();this[_0x2250e9(0x162)][_0x2250e9(0x167)](['koa'])[_0x2250e9(0x121)](_0x53b7ea=>{const _0x4fce6c=_0x2250e9;(_0x53b7ea===null||_0x53b7ea===void 0x0?void 0x0:_0x53b7ea[_0x4fce6c(0x14f)])&&Object[_0x4fce6c(0x147)](_0x53b7ea[_0x4fce6c(0x14f)],{'hosturl':{'configurable':![],'get':function(){const _0x24cdab=_0x4fce6c;var _0x5eabe7,_0x118485,_0xacb4f2,_0x5e5aad;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x24cdab(0x148)][_0x24cdab(0x139)](_0x24cdab(0x10b))){let _0x56e15d=this[_0x24cdab(0x148)][_0x24cdab(0x143)](':');return['80',_0x24cdab(0x16a)][_0x24cdab(0x13c)](_0x56e15d===null||_0x56e15d===void 0x0?void 0x0:_0x56e15d[0x1])?''+(!!((_0x118485=(_0x5eabe7=this===null||this===void 0x0?void 0x0:this[_0x24cdab(0x102)])===null||_0x5eabe7===void 0x0?void 0x0:_0x5eabe7[_0x24cdab(0x10d)])===null||_0x118485===void 0x0?void 0x0:_0x118485[_0x24cdab(0x12c)])||(_0x56e15d===null||_0x56e15d===void 0x0?void 0x0:_0x56e15d[0x1])==_0x24cdab(0x16a)?_0x24cdab(0x10e):'http://')+_0x56e15d[0x0]:''+(!!((_0x5e5aad=(_0xacb4f2=this===null||this===void 0x0?void 0x0:this[_0x24cdab(0x102)])===null||_0xacb4f2===void 0x0?void 0x0:_0xacb4f2[_0x24cdab(0x10d)])===null||_0x5e5aad===void 0x0?void 0x0:_0x5e5aad['encrypted'])?_0x24cdab(0x10e):_0x24cdab(0x150))+this[_0x24cdab(0x148)];}return'';}},'ok':{'value':function(_0x33e16e,_0x5e4029,_0x1c08de=0x0){return{'code':_0x1c08de,'data':_0x33e16e,'extra':_0x5e4029};}},'input':{'value':function(_0x179e74,_0x38129a){const _0xde871e=_0x4fce6c;var _0x50d68b;const _0x31bb0e=lodash[_0xde871e(0x13d)]({},this[_0xde871e(0x15b)]['body']||this[_0xde871e(0x15b)][((_0x50d68b=_0x5c57b6===null||_0x5c57b6===void 0x0?void 0x0:_0x5c57b6[_0xde871e(0xe1)])===null||_0x50d68b===void 0x0?void 0x0:_0x50d68b[_0xde871e(0xfb)])||_0xde871e(0xe9)]||{},this[_0xde871e(0x15b)]['query']||{});return _0x179e74?lodash[_0xde871e(0x157)](_0x31bb0e,_0x179e74,_0x38129a):_0x31bb0e;}},'when':{'value':async function(_0x26ed24,_0x26eab1){const _0x29a484=_0x4fce6c,_0x46e5c5=this[_0x29a484(0x172)](_0x26ed24,null);if(!lodash[_0x29a484(0x118)](_0x46e5c5))return await _0x26eab1(_0x46e5c5);}},'only':{'value':function(_0x4db371){const _0x3277da=_0x4fce6c,_0x47ff57={};for(let _0x3e974e=0x0;_0x3e974e<_0x4db371['length'];_0x3e974e++){lodash['isArray'](_0x4db371[_0x3e974e])&&_0x4db371[_0x3e974e]['length']>0x0&&lodash[_0x3277da(0x144)](_0x4db371[_0x3e974e][0x0])&&(_0x47ff57[_0x4db371[_0x3e974e][0x0]]=this[_0x3277da(0x172)](_0x4db371[_0x3e974e][0x0],_0x4db371[_0x3e974e]['length']>0x1?_0x4db371[_0x3e974e][0x1]:null));}return _0x47ff57;}},'koasend':{'value':async function(_0x105c22,_0x385610){const _0x1cb7bc=_0x4fce6c;if(_0x105c22&&!fs['existsSync'](_0x105c22)&&!fs[_0x1cb7bc(0x16c)](this[_0x1cb7bc(0x103)]['getAppDir']()+'/'+_0x105c22))return'文件不存在';return _0x105c22=fs[_0x1cb7bc(0x16c)](_0x105c22)?_0x105c22:this[_0x1cb7bc(0x103)][_0x1cb7bc(0x12d)]()+'/'+_0x105c22,this[_0x1cb7bc(0x11d)](_0x385610||_0x105c22),await koasend(this,_0x105c22);}}});});}async['loggerConfig'](){const _0x20dbf9=a3_0x13d30c;var _0x48d262;if(fs['existsSync'](this[_0x20dbf9(0x103)][_0x20dbf9(0xe6)]()+_0x20dbf9(0x169))&&fs[_0x20dbf9(0x15f)](this[_0x20dbf9(0x103)][_0x20dbf9(0xe6)]()+_0x20dbf9(0x169))[_0x20dbf9(0x108)]()){const _0x227c43=this[_0x20dbf9(0x13b)][_0x20dbf9(0x15e)](),_0x2f73eb=((_0x48d262=_0x227c43===null||_0x227c43===void 0x0?void 0x0:_0x227c43[_0x20dbf9(0x158)])===null||_0x48d262===void 0x0?void 0x0:_0x48d262[_0x20dbf9(0xe0)])||{};!fs[_0x20dbf9(0x16c)](this[_0x20dbf9(0x103)]['getBaseDir']()+_0x20dbf9(0x107))&&(_0x2f73eb[_0x20dbf9(0x103)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0x20dbf9(0x125)](),'fileLogName':_0x20dbf9(0x12f),'dir':path[_0x20dbf9(0xf4)](this['app'][_0x20dbf9(0x12d)](),_0x20dbf9(0x16f),'app')});!fs[_0x20dbf9(0x16c)](this[_0x20dbf9(0x103)]['getBaseDir']()+'/basic')&&(_0x2f73eb[_0x20dbf9(0xf1)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x20dbf9(0x114),'dir':path[_0x20dbf9(0xf4)](this[_0x20dbf9(0x103)][_0x20dbf9(0x12d)](),_0x20dbf9(0x16f),_0x20dbf9(0xf1))});for(const _0x57e382 of fs[_0x20dbf9(0x133)](this['app'][_0x20dbf9(0xe6)]()+'/apps')){if(!fs['statSync'](this[_0x20dbf9(0x103)]['getBaseDir']()+'/apps/'+_0x57e382)[_0x20dbf9(0x108)]())continue;!(_0x2f73eb===null||_0x2f73eb===void 0x0?void 0x0:_0x2f73eb[_0x57e382])&&(_0x2f73eb[_0x57e382]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment']['isDevelopmentEnvironment'](),'fileLogName':_0x57e382+_0x20dbf9(0xe5),'dir':path[_0x20dbf9(0xf4)](this[_0x20dbf9(0x103)][_0x20dbf9(0x12d)](),_0x20dbf9(0x16f),'apps-'+_0x57e382)}),this[_0x20dbf9(0xee)][_0x20dbf9(0x101)](_0x57e382,_0x2f73eb[_0x57e382]);}Object[_0x20dbf9(0xfd)](_0x2f73eb)['length']>0x0&&(!_0x227c43[_0x20dbf9(0x158)]&&(_0x227c43[_0x20dbf9(0x158)]={'default':{'maxSize':'1m','maxFiles':_0x20dbf9(0x126),'dir':path[_0x20dbf9(0xf4)](this[_0x20dbf9(0x103)][_0x20dbf9(0x12d)](),'runtime')}}),_0x227c43[_0x20dbf9(0x158)]['clients']=_0x2f73eb),this[_0x20dbf9(0x13b)][_0x20dbf9(0x129)](_0x227c43);}}async[a3_0x13d30c(0xf9)](){const _0xe39bb=a3_0x13d30c;var _0x30fc06,_0x152454,_0x35fece,_0x22093f,_0x304d42,_0x14fdd7;const _0x4b1d5d=this['config'][_0xe39bb(0x15e)]();((_0x152454=(_0x30fc06=_0x4b1d5d===null||_0x4b1d5d===void 0x0?void 0x0:_0x4b1d5d[_0xe39bb(0x161)])===null||_0x30fc06===void 0x0?void 0x0:_0x30fc06[_0xe39bb(0x123)])===null||_0x152454===void 0x0?void 0x0:_0x152454[_0xe39bb(0x14e)])&&Object[_0xe39bb(0xfd)](_0x4b1d5d[_0xe39bb(0x161)][_0xe39bb(0x123)])[_0xe39bb(0x112)]>0x1&&delete _0x4b1d5d[_0xe39bb(0x161)][_0xe39bb(0x123)]['DEFAULT'];if((_0x35fece=_0x4b1d5d===null||_0x4b1d5d===void 0x0?void 0x0:_0x4b1d5d[_0xe39bb(0x145)])===null||_0x35fece===void 0x0?void 0x0:_0x35fece[_0xe39bb(0xe7)])for(const _0x7a7ec1 in _0x4b1d5d['staticFile'][_0xe39bb(0xe7)]){((_0x22093f=_0x4b1d5d[_0xe39bb(0x145)][_0xe39bb(0xe7)][_0x7a7ec1])===null||_0x22093f===void 0x0?void 0x0:_0x22093f[_0xe39bb(0x165)])&&typeof((_0x304d42=_0x4b1d5d[_0xe39bb(0x145)]['dirs'][_0x7a7ec1])===null||_0x304d42===void 0x0?void 0x0:_0x304d42[_0xe39bb(0x165)])=='string'&&!fs[_0xe39bb(0x16c)](_0x4b1d5d[_0xe39bb(0x145)]['dirs'][_0x7a7ec1][_0xe39bb(0x165)])&&(fs[_0xe39bb(0xf6)](_0x4b1d5d[_0xe39bb(0x145)][_0xe39bb(0xe7)][_0x7a7ec1]['dir'],{'recursive':!![]}),console['log'](_0xe39bb(0x122)+_0x4b1d5d[_0xe39bb(0x145)][_0xe39bb(0xe7)][_0x7a7ec1]['dir']));}((_0x14fdd7=_0x4b1d5d===null||_0x4b1d5d===void 0x0?void 0x0:_0x4b1d5d[_0xe39bb(0xf5)])===null||_0x14fdd7===void 0x0?void 0x0:_0x14fdd7[_0xe39bb(0xe2)])&&!fs[_0xe39bb(0x16c)](_0x4b1d5d[_0xe39bb(0xf5)][_0xe39bb(0xe2)])&&(fs[_0xe39bb(0xf6)](_0x4b1d5d['upload'][_0xe39bb(0xe2)],{'recursive':!![]}),console[_0xe39bb(0x115)](_0xe39bb(0x11f)+_0x4b1d5d[_0xe39bb(0xf5)][_0xe39bb(0xe2)])),this[_0xe39bb(0x13b)][_0xe39bb(0x129)](_0x4b1d5d);}};function a3_0x3619(_0x391cab,_0x31852e){const _0x406458=a3_0xefa4();return a3_0x3619=function(_0x167c4a,_0x233cc8){_0x167c4a=_0x167c4a-0xd9;let _0xefa4c9=_0x406458[_0x167c4a];return _0xefa4c9;},a3_0x3619(_0x391cab,_0x31852e);}__decorate([(0x0,core_1[a3_0x13d30c(0x14c)])(),__metadata(a3_0x13d30c(0x14d),Object)],CustomConfiguration[a3_0x13d30c(0x160)],'app',void 0x0),__decorate([(0x0,core_1[a3_0x13d30c(0xfa)])(),__metadata(a3_0x13d30c(0x14d),core_2[a3_0x13d30c(0x128)])],CustomConfiguration[a3_0x13d30c(0x160)],a3_0x13d30c(0x13b),void 0x0),__decorate([(0x0,core_1[a3_0x13d30c(0xfa)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a3_0x13d30c(0x160)],a3_0x13d30c(0x134),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x13d30c(0x171)])],CustomConfiguration[a3_0x13d30c(0x160)],a3_0x13d30c(0x162),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x13d30c(0x14d),core_2[a3_0x13d30c(0x10f)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1[a3_0x13d30c(0xfa)])(),__metadata(a3_0x13d30c(0x14d),core_1[a3_0x13d30c(0x105)])],CustomConfiguration[a3_0x13d30c(0x160)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0x13d30c(0xfa)])(),__metadata(a3_0x13d30c(0x14d),ApiService_1[a3_0x13d30c(0xde)])],CustomConfiguration[a3_0x13d30c(0x160)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a3_0x13d30c(0x12e)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x13d30c(0x106),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a3_0x13d30c(0xdb)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x571ea7=a4_0xe704;(function(_0x51a2e2,_0x1935a7){const _0x538caa=a4_0xe704,_0x421bff=_0x51a2e2();while(!![]){try{const _0x484f8c=-parseInt(_0x538caa(0x19e))/0x1*(parseInt(_0x538caa(0x1ac))/0x2)+-parseInt(_0x538caa(0x19c))/0x3*(parseInt(_0x538caa(0x17b))/0x4)+-parseInt(_0x538caa(0x192))/0x5+-parseInt(_0x538caa(0x179))/0x6*(-parseInt(_0x538caa(0x1aa))/0x7)+parseInt(_0x538caa(0x18f))/0x8*(parseInt(_0x538caa(0x18c))/0x9)+-parseInt(_0x538caa(0x183))/0xa+parseInt(_0x538caa(0x18d))/0xb;if(_0x484f8c===_0x1935a7)break;else _0x421bff['push'](_0x421bff['shift']());}catch(_0x2c4845){_0x421bff['push'](_0x421bff['shift']());}}}(a4_0x437f,0x30b7a));const a4_0x19503a=(function(){let _0x5f383a=!![];return function(_0x37af73,_0x26812c){const _0x2d139c=_0x5f383a?function(){const _0x5667b7=a4_0xe704;if(_0x26812c){const _0x43c12b=_0x26812c[_0x5667b7(0x185)](_0x37af73,arguments);return _0x26812c=null,_0x43c12b;}}:function(){};return _0x5f383a=![],_0x2d139c;};}()),a4_0x147eb6=a4_0x19503a(this,function(){const _0x4bfb40=a4_0xe704;return a4_0x147eb6[_0x4bfb40(0x180)]()[_0x4bfb40(0x1bc)]('(((.+)+)+)+$')['toString']()[_0x4bfb40(0x193)](a4_0x147eb6)[_0x4bfb40(0x1bc)](_0x4bfb40(0x19a));});a4_0x147eb6();'use strict';var _a,_b;function a4_0x437f(){const _0x3b6712=['4JJbWuf','defaultsDeep','filepath','get','AppsConfigTmp','toString','getClassMetadata','/config.','845330gUegfq','intercept','apply','replace','post','\x20文件请放在apps/','-action','apimit','/controller/','250812RsuanP','6647212SLIRUN','Validator','88HEFytP','attachClassMetadata','splice','1355080PPsSYG','constructor','-controller','Action','trim','module','middleware','APPSCONFIG_KEY','(((.+)+)+)+$','ACTION_KEY','118224KcOTiD','ActionApi','62lbsdfu','MIDWAY_SERVER_ENV','/apps','/config.default.','split','saveModule','substring','env','prefix','../types/action','RequestMapping','apps/','578431QUUzOs','undefined','12870yAPFht','\x20文件请放在app/controller/文件下','indexOf','Controller','parseRoute','rootpath','ACTION_ROUTE_KEY','ACTION_RESPONSE_KEY','toLowerCase','routerName','keys','validate','endsWith','/controller/文件下','@midwayjs/core','app/controller/','search','existsSync','middlewareIgnore','saveClassMetadata','length','join','@anncic-api/validator','filter','description','isArray','response','basic/controller/','startsWith','string','6RgxUgd','route'];a4_0x437f=function(){return _0x3b6712;};return a4_0x437f();}function a4_0xe704(_0x2d7866,_0x333fca){const _0x3874ca=a4_0x437f();return a4_0xe704=function(_0x147eb6,_0x19503a){_0x147eb6=_0x147eb6-0x16e;let _0x437fe3=_0x3874ca[_0x147eb6];return _0x437fe3;},a4_0xe704(_0x2d7866,_0x333fca);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a4_0x571ea7(0x19d)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a4_0x571ea7(0x171)),core_1=require('@midwayjs/core'),core_2=require(a4_0x571ea7(0x1ba)),action_1=require(a4_0x571ea7(0x1a7)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x571ea7(0x1a5)])===null||_a===void 0x0?void 0x0:_a[a4_0x571ea7(0x19f)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x571ea7(0x1a5)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x350bba,_0x2649c0,_0x394c58={'middleware':[],'sensitive':!![]}){return _0x54b168=>{const _0x4830c8=a4_0xe704;var _0x2989de;_0x394c58['tagName']=_0x2649c0;const _0x1d1672=parseRoute(_0x350bba);if(_0x1d1672[_0x4830c8(0x197)]){_0x394c58['prefix']=_0x394c58[_0x4830c8(0x1a6)]?'/'+_0x1d1672[_0x4830c8(0x197)]+'/'+_0x394c58['prefix']:'/'+_0x1d1672['route'];_0x1d1672['prefix']&&(_0x394c58['prefix']='/'+_0x1d1672['prefix']+'/'+_0x394c58[_0x4830c8(0x1a6)]);_0x394c58['prefix']=_0x394c58[_0x4830c8(0x1a6)][_0x4830c8(0x1b4)]()[_0x4830c8(0x186)](/\/{2,}/g,'/');const _0x360f02=getModuleConfig(_0x1d1672[_0x4830c8(0x1b1)]+_0x4830c8(0x1a0),_0x1d1672[_0x4830c8(0x197)],lodash['endsWith'](_0x1d1672['filepath'],'ts')?'ts':'js');if(lodash[_0x4830c8(0x174)](_0x360f02[_0x4830c8(0x198)])&&_0x360f02['middleware']['length']>0x0)for(let _0x2f0a34 in _0x360f02[_0x4830c8(0x198)]){if(((_0x2989de=_0x360f02===null||_0x360f02===void 0x0?void 0x0:_0x360f02['middlewareIgnore'])===null||_0x2989de===void 0x0?void 0x0:_0x2989de[_0x4830c8(0x16f)])>0x0&&_0x360f02[_0x4830c8(0x1be)][_0x4830c8(0x1ae)](_0x360f02['middleware'][_0x2f0a34])!=-0x1)continue;_0x394c58['middleware']['push'](_0x360f02[_0x4830c8(0x198)][_0x2f0a34]);}(0x0,core_1[_0x4830c8(0x1a3)])(action_1['ACTION_KEY'],_0x54b168),(0x0,core_1[_0x4830c8(0x1af)])(_0x394c58[_0x4830c8(0x1a6)],_0x394c58)(_0x54b168),(0x0,core_1[_0x4830c8(0x16e)])(action_1[_0x4830c8(0x19b)],{'prefix':_0x394c58[_0x4830c8(0x1a6)],'pprefix':_0x1d1672['prefix'],'module':_0x1d1672[_0x4830c8(0x197)],'filepath':_0x1d1672['filepath'],'routerOptions':_0x394c58},_0x54b168);}else _0x394c58['prefix']=_0x394c58[_0x4830c8(0x1a6)]?'/'+_0x394c58[_0x4830c8(0x1a6)]:'/'+_0x1d1672[_0x4830c8(0x17a)],_0x1d1672[_0x4830c8(0x1a6)]&&(_0x394c58['prefix']='/'+_0x1d1672[_0x4830c8(0x1a6)]+'/'+_0x394c58['prefix']),_0x394c58[_0x4830c8(0x1a6)]=_0x394c58[_0x4830c8(0x1a6)][_0x4830c8(0x1b4)]()[_0x4830c8(0x186)](/\/{2,}/g,'/'),(0x0,core_1[_0x4830c8(0x1a3)])(action_1['ACTION_KEY'],_0x54b168),(0x0,core_1[_0x4830c8(0x1af)])(_0x394c58['prefix'],_0x394c58)(_0x54b168),(0x0,core_1['saveClassMetadata'])(action_1[_0x4830c8(0x19b)],{'prefix':_0x394c58['prefix'],'module':_0x1d1672[_0x4830c8(0x197)],'pprefix':_0x1d1672[_0x4830c8(0x1a6)],'filepath':_0x1d1672[_0x4830c8(0x17d)],'routerOptions':_0x394c58},_0x54b168);};}exports[a4_0x571ea7(0x195)]=Action,Action[a4_0x571ea7(0x17e)]=function(_0x261614,_0x5540d2='/',_0x4054ab={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x32a2a2,_0x226036,_0x1884c0)=>{const _0x5108d1=a4_0xe704;ActionApi(_0x261614,_0x5108d1(0x17e),_0x5540d2,_0x4054ab)(_0x32a2a2,_0x226036,_0x1884c0);};},Action[a4_0x571ea7(0x187)]=function(_0x70ccaf,_0x5a9fa1='/',_0x92db2b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x404443,_0x262a17,_0x33b7f1)=>{const _0x23ed5d=a4_0xe704;ActionApi(_0x70ccaf,_0x23ed5d(0x187),_0x5a9fa1,_0x92db2b)(_0x404443,_0x262a17,_0x33b7f1);};};function ActionApi(_0x63960a,_0x1868d3='get',_0x51bb12='/',_0x5e8599={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x11faec,_0x199cf8,_0x5aee8a)=>{const _0xb78e59=a4_0xe704;var _0x57d5ca,_0x3c738a,_0xe60066;!_0x5e8599[_0xb78e59(0x198)]&&(_0x5e8599['middleware']=[]);!((_0x57d5ca=_0x5e8599===null||_0x5e8599===void 0x0?void 0x0:_0x5e8599[_0xb78e59(0x1b7)])===null||_0x57d5ca===void 0x0?void 0x0:_0x57d5ca['validationOptions'])&&(_0x5e8599['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xb78e59(0x178)}});if(!_0x51bb12)_0x51bb12='/';else typeof _0x51bb12==_0xb78e59(0x178)&&(!_0x51bb12[_0xb78e59(0x177)]('/')&&!_0x51bb12[_0xb78e59(0x177)]('-')&&(_0x51bb12='/'+_0x51bb12));typeof _0x5e8599['apimit']==_0xb78e59(0x1ab)&&(_0x5e8599[_0xb78e59(0x18a)]=!![]);if(((_0x3c738a=_0x5e8599===null||_0x5e8599===void 0x0?void 0x0:_0x5e8599[_0xb78e59(0x198)])===null||_0x3c738a===void 0x0?void 0x0:_0x3c738a[_0xb78e59(0x16f)])>0x0&&((_0xe60066=_0x5e8599===null||_0x5e8599===void 0x0?void 0x0:_0x5e8599[_0xb78e59(0x1be)])===null||_0xe60066===void 0x0?void 0x0:_0xe60066['length'])>0x0)for(let _0x322d79 in _0x5e8599[_0xb78e59(0x198)]){_0x5e8599[_0xb78e59(0x1be)]['indexOf'](_0x5e8599[_0xb78e59(0x198)][_0x322d79])!==-0x1&&(_0x5e8599['middleware'][_0x322d79]=null);}_0x5e8599[_0xb78e59(0x1b5)]=_0x63960a,(0x0,validator_1[_0xb78e59(0x18e)])(_0x5e8599[_0xb78e59(0x1b7)])(_0x11faec,_0x199cf8,_0x5aee8a),(0x0,core_2[_0xb78e59(0x1a8)])(Object['assign'](_0x5e8599,{'path':_0x51bb12,'requestMethod':(_0x1868d3||'get')[_0xb78e59(0x1b4)]()}))(_0x11faec,_0x199cf8,_0x5aee8a),(0x0,core_2[_0xb78e59(0x190)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x51bb12,'method':_0x199cf8,'apimit':_0x5e8599[_0xb78e59(0x18a)],'intercept':_0x5e8599[_0xb78e59(0x184)],'routerName':_0x5e8599[_0xb78e59(0x1b5)],'description':_0x5e8599['description'],'middleware':(_0x5e8599[_0xb78e59(0x198)]||[])[_0xb78e59(0x172)](_0x5d0aa2=>!!_0x5d0aa2),'requestMethod':(_0x1868d3||_0xb78e59(0x17e))[_0xb78e59(0x1b4)]()},_0x11faec),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0xb78e59(0x1b2)],{'path':_0x51bb12,'method':_0x199cf8,'apimit':_0x5e8599[_0xb78e59(0x18a)],'intercept':_0x5e8599['intercept'],'routerName':_0x5e8599[_0xb78e59(0x1b5)],'description':_0x5e8599[_0xb78e59(0x173)],'middleware':(_0x5e8599[_0xb78e59(0x198)]||[])['filter'](_0x5309c6=>!!_0x5309c6),'requestMethod':(_0x1868d3||_0xb78e59(0x17e))[_0xb78e59(0x1b4)]()})(_0x11faec,_0x199cf8,_0x5aee8a),_0x5e8599[_0xb78e59(0x175)]&&(0x0,core_2[_0xb78e59(0x190)])(action_1[_0xb78e59(0x1b3)],{'method':_0x199cf8,..._0x5e8599[_0xb78e59(0x175)]},_0x11faec);};}exports['ActionApi']=ActionApi;function parseRoute(_0x5733b3){const _0x4087e7=a4_0x571ea7;_0x5733b3=_0x5733b3[_0x4087e7(0x186)](/(\\|\/)/g,'/');const _0x1f8a6b=process['cwd']()[_0x4087e7(0x186)](/(\\|\/)/g,'/'),_0x553645=_0x5733b3[_0x4087e7(0x1a4)](0x0,_0x1f8a6b[_0x4087e7(0x16f)]+_0x5733b3[_0x4087e7(0x1a4)](_0x1f8a6b['length']+0x1)[_0x4087e7(0x1ae)]('/')+0x1),_0x27d7c1=_0x5733b3[_0x4087e7(0x1a4)](_0x553645[_0x4087e7(0x16f)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x13b615={'route':'','prefix':![],'module':![],'rootpath':_0x553645,'filepath':_0x27d7c1};if(_0x27d7c1['startsWith']('app/controller/')||_0x27d7c1['startsWith'](_0x4087e7(0x176))){const _0x561b23=_0x27d7c1[_0x4087e7(0x1a4)]((_0x27d7c1[_0x4087e7(0x177)](_0x4087e7(0x1bb))?_0x4087e7(0x1bb):_0x4087e7(0x176))[_0x4087e7(0x16f)])[_0x4087e7(0x1a2)]('/')['filter'](_0x41c63d=>_0x41c63d&&_0x41c63d[_0x4087e7(0x196)]());return _0x561b23['length']>0x1&&(_0x13b615[_0x4087e7(0x1a6)]=_0x561b23[0x0][_0x4087e7(0x1b4)](),_0x561b23[_0x4087e7(0x191)](0x0,0x1)),_0x13b615[_0x4087e7(0x17a)]=('/'+_0x561b23[_0x4087e7(0x170)]('/'))[_0x4087e7(0x186)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4087e7(0x170)]('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x13b615[_0x4087e7(0x17a)]['endsWith'](_0x4087e7(0x189))&&(_0x13b615[_0x4087e7(0x17a)]=_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x1a4)](0x0,_0x13b615['route'][_0x4087e7(0x16f)]-0x7)),_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x1b8)](_0x4087e7(0x194))&&(_0x13b615[_0x4087e7(0x17a)]=_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x1a4)](0x0,_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x16f)]-0xb)),_0x13b615;}else{if(_0x27d7c1[_0x4087e7(0x177)](_0x4087e7(0x1a9))){const _0x5c3bf9=_0x27d7c1[_0x4087e7(0x1a4)](0x0,_0x27d7c1[_0x4087e7(0x1ae)]('/apps/')+0x5),_0x50e851=_0x27d7c1['substring'](_0x5c3bf9[_0x4087e7(0x16f)]+0x1)[_0x4087e7(0x186)](/(\\|\/)/g,'/')[_0x4087e7(0x1a2)]('/')[0x0];if(_0x27d7c1[_0x4087e7(0x177)](_0x4087e7(0x1a9)+_0x50e851+_0x4087e7(0x18b))){const _0x16db48=_0x27d7c1[_0x4087e7(0x1a4)]((_0x5c3bf9+'/'+_0x50e851+'/controller/')[_0x4087e7(0x16f)])['split']('/')['filter'](_0x195e7b=>_0x195e7b&&_0x195e7b[_0x4087e7(0x196)]());return _0x16db48['length']>0x1&&(_0x13b615['prefix']=_0x16db48[0x0][_0x4087e7(0x1b4)](),_0x16db48[_0x4087e7(0x191)](0x0,0x1)),_0x13b615[_0x4087e7(0x197)]=_0x50e851,_0x13b615[_0x4087e7(0x17a)]=('/'+_0x50e851+'/'+_0x16db48['join']('/'))[_0x4087e7(0x186)](/(\.ts|\.js)$/,'')[_0x4087e7(0x186)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4087e7(0x170)]('-')['toLowerCase']()[_0x4087e7(0x186)](/\/\-/g,'/'),_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x1b8)](_0x4087e7(0x189))&&(_0x13b615['route']=_0x13b615[_0x4087e7(0x17a)]['substring'](0x0,_0x13b615['route']['length']-0x7)),_0x13b615[_0x4087e7(0x17a)]['endsWith']('-controller')&&(_0x13b615['route']=_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x1a4)](0x0,_0x13b615[_0x4087e7(0x17a)][_0x4087e7(0x16f)]-0xb)),_0x13b615;}throw new Error(_0x27d7c1+_0x4087e7(0x188)+_0x50e851+_0x4087e7(0x1b9));}}throw new Error(_0x27d7c1+_0x4087e7(0x1ad));}exports[a4_0x571ea7(0x1b0)]=parseRoute;const moduleConfigTmp=(0x0,core_1[a4_0x571ea7(0x181)])(action_1[a4_0x571ea7(0x199)],action_1[a4_0x571ea7(0x17f)])||{};function getModuleConfig(_0xd6b747,_0x209f70,_0x5b2ccd){const _0xffef5b=a4_0x571ea7;if(Object['values']((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x209f70])||{})[_0xffef5b(0x16f)]==0x0){let _0x17af18={};if(NODE_ENV&&fs[_0xffef5b(0x1bd)](_0xd6b747+'/'+_0x209f70+'/config.'+NODE_ENV+'.'+_0x5b2ccd)){const _0x442c8f=include(_0xd6b747+'/'+_0x209f70+'/config.'+NODE_ENV+'.'+_0x5b2ccd);Object[_0xffef5b(0x1b6)](_0x442c8f)['length']>0x0&&(_0x17af18=lodash[_0xffef5b(0x17c)](_0x17af18,_0x442c8f));}if(fs['existsSync'](_0xd6b747+'/'+_0x209f70+_0xffef5b(0x1a1)+_0x5b2ccd)){const _0x4634aa=include(_0xd6b747+'/'+_0x209f70+_0xffef5b(0x1a1)+_0x5b2ccd);Object[_0xffef5b(0x1b6)](_0x4634aa)[_0xffef5b(0x16f)]>0x0&&(_0x17af18=lodash['defaultsDeep'](_0x17af18,_0x4634aa));}if(fs['existsSync'](_0xd6b747+'/'+_0x209f70+_0xffef5b(0x182)+_0x5b2ccd)){const _0x234ccd=include(_0xd6b747+'/'+_0x209f70+_0xffef5b(0x182)+_0x5b2ccd);Object[_0xffef5b(0x1b6)](_0x234ccd)[_0xffef5b(0x16f)]>0x0&&(_0x17af18=lodash[_0xffef5b(0x17c)](_0x17af18,_0x234ccd));}moduleConfigTmp[_0x209f70]=_0x17af18,(0x0,core_1[_0xffef5b(0x16e)])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1[_0xffef5b(0x17f)]);}return moduleConfigTmp[_0x209f70];}
|
|
1
|
+
function a4_0x5b8a(){const _0x20c258=['ACTION_KEY','tagName','trim','@midwayjs/core','app/controller/','substring','/apps/','route','isArray','validate','/controller/','toLowerCase','undefined','keys','54JOtwlU','basic/controller/','1853EgeHdF','middlewareIgnore','AppsConfigTmp','toString','startsWith','Action','replace','constructor','ActionApi','__esModule','assign','apps/','-controller','saveClassMetadata','description','apply','response','module','defaultsDeep','string','attachClassMetadata','filepath','intercept','1020783zqeNGb','parseRoute','649190Fnrbhm','validationOptions','prefix','split','saveModule','104pAdWUh','indexOf','routerName','../types/action','1260568kTKlKh','MIDWAY_SERVER_ENV','\x20文件请放在apps/','filter','2CTqyex','endsWith','values','middleware','get','Validator','match','/controller/文件下','push','RequestMapping','length','search','APPSCONFIG_KEY','\x20文件请放在app/controller/文件下','/config.default.','82308rCQoeV','rootpath','ACTION_ROUTE_KEY','post','createCustomMethodDecorator','/config.','join','ACTION_RESPONSE_KEY','apimit','existsSync','env','139520UhYLtU','135233RUKPAX','(((.+)+)+)+$','-action','splice'];a4_0x5b8a=function(){return _0x20c258;};return a4_0x5b8a();}const a4_0x4406fc=a4_0x4e3c;(function(_0x2cf394,_0x19cd84){const _0x1ba91f=a4_0x4e3c,_0x2ca8d6=_0x2cf394();while(!![]){try{const _0x46f2db=-parseInt(_0x1ba91f(0xbb))/0x1*(parseInt(_0x1ba91f(0x8c))/0x2)+parseInt(_0x1ba91f(0x7d))/0x3+-parseInt(_0x1ba91f(0x88))/0x4+parseInt(_0x1ba91f(0xa6))/0x5+-parseInt(_0x1ba91f(0x9b))/0x6+-parseInt(_0x1ba91f(0xa7))/0x7*(parseInt(_0x1ba91f(0x84))/0x8)+parseInt(_0x1ba91f(0xb9))/0x9*(parseInt(_0x1ba91f(0x7f))/0xa);if(_0x46f2db===_0x19cd84)break;else _0x2ca8d6['push'](_0x2ca8d6['shift']());}catch(_0x50288e){_0x2ca8d6['push'](_0x2ca8d6['shift']());}}}(a4_0x5b8a,0x2aecb));const a4_0x155d9f=(function(){let _0x36e489=!![];return function(_0x117e6d,_0x7693bd){const _0x3d5b44=_0x36e489?function(){const _0x14a1c3=a4_0x4e3c;if(_0x7693bd){const _0x3388c7=_0x7693bd[_0x14a1c3(0x75)](_0x117e6d,arguments);return _0x7693bd=null,_0x3388c7;}}:function(){};return _0x36e489=![],_0x3d5b44;};}()),a4_0x400e3a=a4_0x155d9f(this,function(){const _0x83f5a9=a4_0x4e3c;return a4_0x400e3a['toString']()[_0x83f5a9(0x97)](_0x83f5a9(0xa8))[_0x83f5a9(0x69)]()[_0x83f5a9(0x6d)](a4_0x400e3a)[_0x83f5a9(0x97)](_0x83f5a9(0xa8));});a4_0x400e3a();'use strict';var _a,_b;Object['defineProperty'](exports,a4_0x4406fc(0x6f),{'value':!![]}),exports[a4_0x4406fc(0x7e)]=exports['ActionApi']=exports[a4_0x4406fc(0x6b)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a4_0x4406fc(0xae)),core_2=require(a4_0x4406fc(0xae)),action_1=require(a4_0x4406fc(0x87)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x4406fc(0xa5)])===null||_a===void 0x0?void 0x0:_a[a4_0x4406fc(0x89)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x4406fc(0xa5)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0x3dfe0a,_0x5e0477,_0x3a2bbe={'middleware':[],'sensitive':!![]}){return _0x121963=>{const _0x43df31=a4_0x4e3c;var _0xc4d3d1;_0x3a2bbe[_0x43df31(0xac)]=_0x5e0477;const _0x249e5a=parseRoute(_0x3dfe0a);if(_0x249e5a[_0x43df31(0x77)]){_0x3a2bbe[_0x43df31(0x81)]=_0x3a2bbe[_0x43df31(0x81)]?'/'+_0x249e5a[_0x43df31(0x77)]+'/'+_0x3a2bbe[_0x43df31(0x81)]:'/'+_0x249e5a[_0x43df31(0xb2)];_0x249e5a[_0x43df31(0x81)]&&(_0x3a2bbe[_0x43df31(0x81)]='/'+_0x249e5a[_0x43df31(0x81)]+'/'+_0x3a2bbe['prefix']);_0x3a2bbe['prefix']=_0x3a2bbe[_0x43df31(0x81)][_0x43df31(0xb6)]()[_0x43df31(0x6c)](/\/{2,}/g,'/');const _0x202a0f=getModuleConfig(_0x249e5a[_0x43df31(0x9c)]+'/apps',_0x249e5a[_0x43df31(0x77)],lodash['endsWith'](_0x249e5a[_0x43df31(0x7b)],'ts')?'ts':'js');if(lodash[_0x43df31(0xb3)](_0x202a0f[_0x43df31(0x8f)])&&_0x202a0f[_0x43df31(0x8f)][_0x43df31(0x96)]>0x0)for(let _0x7e97e6 in _0x202a0f[_0x43df31(0x8f)]){if(((_0xc4d3d1=_0x202a0f===null||_0x202a0f===void 0x0?void 0x0:_0x202a0f[_0x43df31(0xbc)])===null||_0xc4d3d1===void 0x0?void 0x0:_0xc4d3d1['length'])>0x0&&_0x202a0f[_0x43df31(0xbc)][_0x43df31(0x85)](_0x202a0f['middleware'][_0x7e97e6])!=-0x1)continue;_0x3a2bbe[_0x43df31(0x8f)][_0x43df31(0x94)](_0x202a0f[_0x43df31(0x8f)][_0x7e97e6]);}(0x0,core_1[_0x43df31(0x83)])(action_1[_0x43df31(0xab)],_0x121963),(0x0,core_1['Controller'])(_0x3a2bbe[_0x43df31(0x81)],_0x3a2bbe)(_0x121963),(0x0,core_1[_0x43df31(0x73)])(action_1[_0x43df31(0xab)],{'prefix':_0x3a2bbe[_0x43df31(0x81)],'pprefix':_0x249e5a[_0x43df31(0x81)],'module':_0x249e5a[_0x43df31(0x77)],'filepath':_0x249e5a[_0x43df31(0x7b)],'routerOptions':_0x3a2bbe},_0x121963);}else _0x3a2bbe['prefix']=_0x3a2bbe[_0x43df31(0x81)]?'/'+_0x3a2bbe[_0x43df31(0x81)]:'/'+_0x249e5a[_0x43df31(0xb2)],_0x249e5a['prefix']&&(_0x3a2bbe[_0x43df31(0x81)]='/'+_0x249e5a['prefix']+'/'+_0x3a2bbe[_0x43df31(0x81)]),_0x3a2bbe[_0x43df31(0x81)]=_0x3a2bbe[_0x43df31(0x81)][_0x43df31(0xb6)]()[_0x43df31(0x6c)](/\/{2,}/g,'/'),(0x0,core_1[_0x43df31(0x83)])(action_1[_0x43df31(0xab)],_0x121963),(0x0,core_1['Controller'])(_0x3a2bbe[_0x43df31(0x81)],_0x3a2bbe)(_0x121963),(0x0,core_1[_0x43df31(0x73)])(action_1[_0x43df31(0xab)],{'prefix':_0x3a2bbe[_0x43df31(0x81)],'module':_0x249e5a[_0x43df31(0x77)],'pprefix':_0x249e5a[_0x43df31(0x81)],'filepath':_0x249e5a[_0x43df31(0x7b)],'routerOptions':_0x3a2bbe},_0x121963);};}exports['Action']=Action,Action[a4_0x4406fc(0x90)]=function(_0x115fc4,_0xd6465f='/',_0x334969={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x339cc0,_0x3f2789,_0x26ec00)=>{const _0x11c8c5=a4_0x4e3c;ActionApi(_0x115fc4,_0x11c8c5(0x90),_0xd6465f,_0x334969)(_0x339cc0,_0x3f2789,_0x26ec00);};},Action[a4_0x4406fc(0x9e)]=function(_0x59ecfc,_0x2b7f60='/',_0x5c5b04={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2096bd,_0x217e5c,_0x243142)=>{const _0x32046b=a4_0x4e3c;ActionApi(_0x59ecfc,_0x32046b(0x9e),_0x2b7f60,_0x5c5b04)(_0x2096bd,_0x217e5c,_0x243142);};};function ActionApi(_0x2094c4,_0xe0bf5f='get',_0x28927c='/',_0x13c333={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x358c77,_0x5b1c12,_0x5af651)=>{const _0x3062fd=a4_0x4e3c;var _0x48eb48,_0x368209,_0x241426;!_0x13c333[_0x3062fd(0x8f)]&&(_0x13c333[_0x3062fd(0x8f)]=[]);!((_0x48eb48=_0x13c333===null||_0x13c333===void 0x0?void 0x0:_0x13c333[_0x3062fd(0xb4)])===null||_0x48eb48===void 0x0?void 0x0:_0x48eb48[_0x3062fd(0x80)])&&(_0x13c333[_0x3062fd(0xb4)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x28927c)_0x28927c='/';else typeof _0x28927c==_0x3062fd(0x79)&&(!_0x28927c[_0x3062fd(0x6a)]('/')&&!_0x28927c[_0x3062fd(0x6a)]('-')&&(_0x28927c='/'+_0x28927c));typeof _0x13c333[_0x3062fd(0xa3)]==_0x3062fd(0xb7)&&(_0x13c333[_0x3062fd(0xa3)]=!![]);if(((_0x368209=_0x13c333===null||_0x13c333===void 0x0?void 0x0:_0x13c333[_0x3062fd(0x8f)])===null||_0x368209===void 0x0?void 0x0:_0x368209['length'])>0x0&&((_0x241426=_0x13c333===null||_0x13c333===void 0x0?void 0x0:_0x13c333['middlewareIgnore'])===null||_0x241426===void 0x0?void 0x0:_0x241426[_0x3062fd(0x96)])>0x0)for(let _0x18b589 in _0x13c333[_0x3062fd(0x8f)]){_0x13c333[_0x3062fd(0xbc)][_0x3062fd(0x85)](_0x13c333[_0x3062fd(0x8f)][_0x18b589])!==-0x1&&(_0x13c333[_0x3062fd(0x8f)][_0x18b589]=null);}_0x13c333[_0x3062fd(0x86)]=_0x2094c4,(0x0,validator_1[_0x3062fd(0x91)])(_0x13c333['validate'])(_0x358c77,_0x5b1c12,_0x5af651),(0x0,core_2[_0x3062fd(0x95)])(Object[_0x3062fd(0x70)](_0x13c333,{'path':_0x28927c,'requestMethod':(_0xe0bf5f||_0x3062fd(0x90))[_0x3062fd(0xb6)]()}))(_0x358c77,_0x5b1c12,_0x5af651),(0x0,core_2[_0x3062fd(0x7a)])(action_1[_0x3062fd(0x9d)],{'path':_0x28927c,'method':_0x5b1c12,'apimit':_0x13c333['apimit'],'intercept':_0x13c333[_0x3062fd(0x7c)],'routerName':_0x13c333[_0x3062fd(0x86)],'description':_0x13c333[_0x3062fd(0x74)],'middleware':(_0x13c333[_0x3062fd(0x8f)]||[])[_0x3062fd(0x8b)](_0x391ba2=>!!_0x391ba2),'requestMethod':(_0xe0bf5f||_0x3062fd(0x90))[_0x3062fd(0xb6)]()},_0x358c77),(0x0,core_2[_0x3062fd(0x9f)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x28927c,'method':_0x5b1c12,'apimit':_0x13c333[_0x3062fd(0xa3)],'intercept':_0x13c333[_0x3062fd(0x7c)],'routerName':_0x13c333[_0x3062fd(0x86)],'description':_0x13c333['description'],'middleware':(_0x13c333[_0x3062fd(0x8f)]||[])['filter'](_0x17fc7d=>!!_0x17fc7d),'requestMethod':(_0xe0bf5f||_0x3062fd(0x90))[_0x3062fd(0xb6)]()})(_0x358c77,_0x5b1c12,_0x5af651),_0x13c333[_0x3062fd(0x76)]&&(0x0,core_2[_0x3062fd(0x7a)])(action_1[_0x3062fd(0xa2)],{'method':_0x5b1c12,..._0x13c333[_0x3062fd(0x76)]},_0x358c77);};}exports[a4_0x4406fc(0x6e)]=ActionApi;function parseRoute(_0x39b555){const _0xb24530=a4_0x4406fc;_0x39b555=_0x39b555[_0xb24530(0x6c)](/(\\|\/)/g,'/');const _0x3416b6=process['cwd']()[_0xb24530(0x6c)](/(\\|\/)/g,'/'),_0x5e9472=_0x39b555[_0xb24530(0xb0)](0x0,_0x3416b6['length']+_0x39b555[_0xb24530(0xb0)](_0x3416b6[_0xb24530(0x96)]+0x1)[_0xb24530(0x85)]('/')+0x1),_0x3035de=_0x39b555[_0xb24530(0xb0)](_0x5e9472[_0xb24530(0x96)]+0x1)[_0xb24530(0x6c)](/(\\|\/)/g,'/'),_0x5a5bf6={'route':'','prefix':![],'module':![],'rootpath':_0x5e9472,'filepath':_0x3035de};if(_0x3035de[_0xb24530(0x6a)](_0xb24530(0xaf))||_0x3035de[_0xb24530(0x6a)](_0xb24530(0xba))){const _0x4af55e=_0x3035de[_0xb24530(0xb0)]((_0x3035de['startsWith'](_0xb24530(0xaf))?_0xb24530(0xaf):_0xb24530(0xba))['length'])[_0xb24530(0x82)]('/')[_0xb24530(0x8b)](_0x12282c=>_0x12282c&&_0x12282c[_0xb24530(0xad)]());return _0x4af55e['length']>0x1&&(_0x5a5bf6[_0xb24530(0x81)]=_0x4af55e[0x0]['toLowerCase'](),_0x4af55e[_0xb24530(0xaa)](0x0,0x1)),_0x5a5bf6[_0xb24530(0xb2)]=('/'+_0x4af55e[_0xb24530(0xa1)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0xb24530(0x6c)](/\/{2,}/g,'/')[_0xb24530(0x92)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0xb24530(0xb6)]()[_0xb24530(0x6c)](/\/\-/g,'/'),_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0x8d)]('-action')&&(_0x5a5bf6[_0xb24530(0xb2)]=_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0xb0)](0x0,_0x5a5bf6['route'][_0xb24530(0x96)]-0x7)),_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0x8d)](_0xb24530(0x72))&&(_0x5a5bf6[_0xb24530(0xb2)]=_0x5a5bf6['route'][_0xb24530(0xb0)](0x0,_0x5a5bf6['route'][_0xb24530(0x96)]-0xb)),_0x5a5bf6;}else{if(_0x3035de['startsWith'](_0xb24530(0x71))){const _0x27f34d=_0x3035de[_0xb24530(0xb0)](0x0,_0x3035de[_0xb24530(0x85)](_0xb24530(0xb1))+0x5),_0x14357b=_0x3035de[_0xb24530(0xb0)](_0x27f34d['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0xb24530(0x82)]('/')[0x0];if(_0x3035de[_0xb24530(0x6a)](_0xb24530(0x71)+_0x14357b+_0xb24530(0xb5))){const _0x31ac9f=_0x3035de[_0xb24530(0xb0)]((_0x27f34d+'/'+_0x14357b+_0xb24530(0xb5))['length'])['split']('/')[_0xb24530(0x8b)](_0x50b228=>_0x50b228&&_0x50b228[_0xb24530(0xad)]());return _0x31ac9f[_0xb24530(0x96)]>0x1&&(_0x5a5bf6[_0xb24530(0x81)]=_0x31ac9f[0x0][_0xb24530(0xb6)](),_0x31ac9f[_0xb24530(0xaa)](0x0,0x1)),_0x5a5bf6[_0xb24530(0x77)]=_0x14357b,_0x5a5bf6[_0xb24530(0xb2)]=('/'+_0x14357b+'/'+_0x31ac9f[_0xb24530(0xa1)]('/'))[_0xb24530(0x6c)](/(\.ts|\.js)$/,'')[_0xb24530(0x6c)](/\/{2,}/g,'/')[_0xb24530(0x92)](/[\/|A-Z]*[^A-Z]+/g)[_0xb24530(0xa1)]('-')[_0xb24530(0xb6)]()[_0xb24530(0x6c)](/\/\-/g,'/'),_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0x8d)](_0xb24530(0xa9))&&(_0x5a5bf6['route']=_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0xb0)](0x0,_0x5a5bf6['route'][_0xb24530(0x96)]-0x7)),_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0x8d)]('-controller')&&(_0x5a5bf6['route']=_0x5a5bf6[_0xb24530(0xb2)]['substring'](0x0,_0x5a5bf6[_0xb24530(0xb2)][_0xb24530(0x96)]-0xb)),_0x5a5bf6;}throw new Error(_0x3035de+_0xb24530(0x8a)+_0x14357b+_0xb24530(0x93));}}throw new Error(_0x3035de+_0xb24530(0x99));}exports[a4_0x4406fc(0x7e)]=parseRoute;const moduleConfigTmp=(0x0,core_1['getClassMetadata'])(action_1[a4_0x4406fc(0x98)],action_1[a4_0x4406fc(0x68)])||{};function a4_0x4e3c(_0x353491,_0x370f46){const _0x45e27b=a4_0x5b8a();return a4_0x4e3c=function(_0x400e3a,_0x155d9f){_0x400e3a=_0x400e3a-0x68;let _0x5b8a14=_0x45e27b[_0x400e3a];return _0x5b8a14;},a4_0x4e3c(_0x353491,_0x370f46);}function getModuleConfig(_0x466347,_0x22c890,_0x4b2fad){const _0x1549d9=a4_0x4406fc;if(Object[_0x1549d9(0x8e)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x22c890])||{})[_0x1549d9(0x96)]==0x0){let _0x50ee1a={};if(NODE_ENV&&fs[_0x1549d9(0xa4)](_0x466347+'/'+_0x22c890+_0x1549d9(0xa0)+NODE_ENV+'.'+_0x4b2fad)){const _0x1a48d5=include(_0x466347+'/'+_0x22c890+'/config.'+NODE_ENV+'.'+_0x4b2fad);Object[_0x1549d9(0xb8)](_0x1a48d5)[_0x1549d9(0x96)]>0x0&&(_0x50ee1a=lodash[_0x1549d9(0x78)](_0x50ee1a,_0x1a48d5));}if(fs[_0x1549d9(0xa4)](_0x466347+'/'+_0x22c890+_0x1549d9(0x9a)+_0x4b2fad)){const _0x3e2da0=include(_0x466347+'/'+_0x22c890+_0x1549d9(0x9a)+_0x4b2fad);Object[_0x1549d9(0xb8)](_0x3e2da0)[_0x1549d9(0x96)]>0x0&&(_0x50ee1a=lodash[_0x1549d9(0x78)](_0x50ee1a,_0x3e2da0));}if(fs[_0x1549d9(0xa4)](_0x466347+'/'+_0x22c890+_0x1549d9(0xa0)+_0x4b2fad)){const _0x2f4075=include(_0x466347+'/'+_0x22c890+_0x1549d9(0xa0)+_0x4b2fad);Object[_0x1549d9(0xb8)](_0x2f4075)[_0x1549d9(0x96)]>0x0&&(_0x50ee1a=lodash[_0x1549d9(0x78)](_0x50ee1a,_0x2f4075));}moduleConfigTmp[_0x22c890]=_0x50ee1a,(0x0,core_1[_0x1549d9(0x73)])(action_1[_0x1549d9(0x98)],moduleConfigTmp,action_1[_0x1549d9(0x68)]);}return moduleConfigTmp[_0x22c890];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x3cfb(_0x21bc62,_0x3b9528){const _0x459099=a5_0x33eb();return a5_0x3cfb=function(_0x3799c0,_0x23207e){_0x3799c0=_0x3799c0-0x1a4;let _0x33ebf7=_0x459099[_0x3799c0];return _0x33ebf7;},a5_0x3cfb(_0x21bc62,_0x3b9528);}const a5_0x14c01d=a5_0x3cfb;(function(_0x165151,_0x563dee){const _0x16e47a=a5_0x3cfb,_0x379d65=_0x165151();while(!![]){try{const _0xc9ea04=parseInt(_0x16e47a(0x1b2))/0x1+-parseInt(_0x16e47a(0x1bc))/0x2+parseInt(_0x16e47a(0x1b6))/0x3+parseInt(_0x16e47a(0x1b8))/0x4*(-parseInt(_0x16e47a(0x1bf))/0x5)+-parseInt(_0x16e47a(0x1ba))/0x6*(-parseInt(_0x16e47a(0x1be))/0x7)+-parseInt(_0x16e47a(0x1c1))/0x8+parseInt(_0x16e47a(0x1a4))/0x9;if(_0xc9ea04===_0x563dee)break;else _0x379d65['push'](_0x379d65['shift']());}catch(_0x544dab){_0x379d65['push'](_0x379d65['shift']());}}}(a5_0x33eb,0x6905e));const a5_0x23207e=(function(){let _0x97d611=!![];return function(_0x15761a,_0xe4abc4){const _0x2d1bc0=_0x97d611?function(){const _0x470e7a=a5_0x3cfb;if(_0xe4abc4){const _0x6102d3=_0xe4abc4[_0x470e7a(0x1a6)](_0x15761a,arguments);return _0xe4abc4=null,_0x6102d3;}}:function(){};return _0x97d611=![],_0x2d1bc0;};}()),a5_0x3799c0=a5_0x23207e(this,function(){const _0x460c0b=a5_0x3cfb;return a5_0x3799c0[_0x460c0b(0x1af)]()['search'](_0x460c0b(0x1a8))[_0x460c0b(0x1af)]()[_0x460c0b(0x1ab)](a5_0x3799c0)[_0x460c0b(0x1ac)]('(((.+)+)+)+$');});function a5_0x33eb(){const _0x370f4a=['Apitest','toString','isDevelopmentEnvironment','@midwayjs/core','247545iJfuZs','value','get','REQUEST_OBJ_CTX_KEY','220929FvPpDJ','ApitestService','136ovPqTI','../service/ApitestService','4564242zErQGZ','apitest','666742rTGhVc','defineProperty','7PpewOZ','126025SWcQtX','getAsync','2824984qzLGNu','8025687btwYrp','getApplicationContext','apply','__esModule','(((.+)+)+)+$','app','getConfig','constructor','search','filepath'];a5_0x33eb=function(){return _0x370f4a;};return a5_0x33eb();}a5_0x3799c0();'use strict';Object[a5_0x14c01d(0x1bd)](exports,a5_0x14c01d(0x1a7),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a5_0x14c01d(0x1b1)),ApitestService_1=require(a5_0x14c01d(0x1b9));function Apitest(_0x4ebb0d='/apitest',_0x1d0041){return(_0x248228,_0x3e2620,_0xe316f1)=>{const _0x254261=a5_0x3cfb;return(0x0,core_1['RequestMapping'])({'path':_0x4ebb0d,'requestMethod':_0x254261(0x1b4)})(_0x248228,_0x3e2620,_0xe316f1),_0xe316f1[_0x254261(0x1b3)]=async function(..._0x2ff655){const _0x220ed1=_0x254261;var _0x49284b;const _0x3b4ac7=(_0x49284b=this[core_1[_0x220ed1(0x1b5)]])===null||_0x49284b===void 0x0?void 0x0:_0x49284b[_0x220ed1(0x1a9)];if(_0x3b4ac7&&_0x3b4ac7[_0x220ed1(0x1aa)](_0x220ed1(0x1bb))){const _0x2abf11=await _0x3b4ac7[_0x220ed1(0x1a5)]()[_0x220ed1(0x1c0)](ApitestService_1[_0x220ed1(0x1b7)]),_0x273a4f=await _0x3b4ac7[_0x220ed1(0x1a5)]()['getAsync'](core_1['MidwayEnvironmentService']);return _0x273a4f[_0x220ed1(0x1b0)]()&&(_0x1d0041[_0x220ed1(0x1ad)]=!![]),await _0x2abf11['apidoc'](_0x1d0041);}return'';},_0xe316f1;};}exports[a5_0x14c01d(0x1ae)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5e2e70=a6_0xca05;(function(_0x58ed9e,_0x151c61){const _0x36e382=a6_0xca05,_0x1e2a6c=_0x58ed9e();while(!![]){try{const _0x57b2ef=parseInt(_0x36e382(0xbd))/0x1*(-parseInt(_0x36e382(0xba))/0x2)+-parseInt(_0x36e382(0xa5))/0x3+parseInt(_0x36e382(0xa4))/0x4+parseInt(_0x36e382(0xaf))/0x5+-parseInt(_0x36e382(0xaa))/0x6+-parseInt(_0x36e382(0xa1))/0x7+parseInt(_0x36e382(0xb0))/0x8*(parseInt(_0x36e382(0xb8))/0x9);if(_0x57b2ef===_0x151c61)break;else _0x1e2a6c['push'](_0x1e2a6c['shift']());}catch(_0x380e73){_0x1e2a6c['push'](_0x1e2a6c['shift']());}}}(a6_0x3412,0x96a3b));const a6_0x16001e=(function(){let _0x206953=!![];return function(_0x4ab8c4,_0x37165c){const _0x51fd87=_0x206953?function(){const _0x235327=a6_0xca05;if(_0x37165c){const _0x5ba79f=_0x37165c[_0x235327(0xa8)](_0x4ab8c4,arguments);return _0x37165c=null,_0x5ba79f;}}:function(){};return _0x206953=![],_0x51fd87;};}()),a6_0x1aa471=a6_0x16001e(this,function(){const _0x2b4a5f=a6_0xca05;return a6_0x1aa471['toString']()[_0x2b4a5f(0xbf)](_0x2b4a5f(0xb4))[_0x2b4a5f(0xa2)]()[_0x2b4a5f(0xc0)](a6_0x1aa471)['search']('(((.+)+)+)+$');});a6_0x1aa471();function a6_0xca05(_0x17cde2,_0x4b749e){const _0x486afa=a6_0x3412();return a6_0xca05=function(_0x1aa471,_0x16001e){_0x1aa471=_0x1aa471-0xa1;let _0x3412fc=_0x486afa[_0x1aa471];return _0x3412fc;},a6_0xca05(_0x17cde2,_0x4b749e);}'use strict';Object[a6_0x5e2e70(0xb5)](exports,a6_0x5e2e70(0xbe),{'value':!![]}),exports[a6_0x5e2e70(0xab)]=exports[a6_0x5e2e70(0xb2)]=void 0x0;const core_1=require(a6_0x5e2e70(0xad)),intercept_1=require(a6_0x5e2e70(0xae));function Intercept(_0x11286c){return _0x35de93=>{const _0x17c9c6=a6_0xca05,_0x585457=(0x0,core_1[_0x17c9c6(0xb9)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};for(let _0x4b4027 of Array[_0x17c9c6(0xa9)](_0x11286c)?_0x11286c:[_0x11286c]){_0x4b4027=_0x4b4027[_0x17c9c6(0xbc)]();!(_0x585457===null||_0x585457===void 0x0?void 0x0:_0x585457[_0x4b4027])&&(_0x585457[_0x4b4027]=[]);if(_0x585457[_0x4b4027][_0x17c9c6(0xbb)](_0x35de93))continue;_0x585457[_0x4b4027]['push'](_0x35de93);}(0x0,core_1[_0x17c9c6(0xac)])()(_0x35de93),(0x0,core_1[_0x17c9c6(0xb3)])(core_1[_0x17c9c6(0xa7)][_0x17c9c6(0xb7)])(_0x35de93),(0x0,core_1[_0x17c9c6(0xa6)])(intercept_1[_0x17c9c6(0xa3)],_0x585457,intercept_1[_0x17c9c6(0xb1)]);};}exports[a6_0x5e2e70(0xb2)]=Intercept;class IIntercept{async[a6_0x5e2e70(0xb6)](_0xeba8bf,_0x1cbd0,_0x163cc4){return!![];}}function a6_0x3412(){const _0x38e845=['6285708CWYUHQ','IIntercept','Provide','@midwayjs/core','../types/intercept','4538925HkBGbP','29368OgkpvC','InterceptTargetTmp','Intercept','Scope','(((.+)+)+)+$','defineProperty','match','Singleton','3438WWVGTr','getClassMetadata','6aelAfu','includes','toUpperCase','233131GLmafW','__esModule','search','constructor','4028689AEwShv','toString','INTERCEPT_KEY','4669900DspGns','1614075wdTqzf','saveClassMetadata','ScopeEnum','apply','isArray'];a6_0x3412=function(){return _0x38e845;};return a6_0x3412();}exports[a6_0x5e2e70(0xab)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x3ce848=a7_0x2a6f;(function(_0x2cec46,_0x26bd59){var _0x23ae71=a7_0x2a6f,_0x312612=_0x2cec46();while(!![]){try{var _0x1adaf1=-parseInt(_0x23ae71(0xcd))/0x1+parseInt(_0x23ae71(0xc5))/0x2*(-parseInt(_0x23ae71(0xb5))/0x3)+-parseInt(_0x23ae71(0xb3))/0x4*(-parseInt(_0x23ae71(0xb0))/0x5)+-parseInt(_0x23ae71(0xc4))/0x6*(-parseInt(_0x23ae71(0xbd))/0x7)+-parseInt(_0x23ae71(0xc1))/0x8+-parseInt(_0x23ae71(0xcb))/0x9+parseInt(_0x23ae71(0xae))/0xa;if(_0x1adaf1===_0x26bd59)break;else _0x312612['push'](_0x312612['shift']());}catch(_0x395297){_0x312612['push'](_0x312612['shift']());}}}(a7_0x3e7a,0x7f919));var a7_0x1dfeec=(function(){var _0x3280cb=!![];return function(_0x10ed44,_0xcdf617){var _0x37fe93=_0x3280cb?function(){var _0xbf6573=a7_0x2a6f;if(_0xcdf617){var _0x4ac6d0=_0xcdf617[_0xbf6573(0xba)](_0x10ed44,arguments);return _0xcdf617=null,_0x4ac6d0;}}:function(){};return _0x3280cb=![],_0x37fe93;};}()),a7_0x4014a3=a7_0x1dfeec(this,function(){var _0x167443=a7_0x2a6f;return a7_0x4014a3['toString']()[_0x167443(0xb9)]('(((.+)+)+)+$')[_0x167443(0xbf)]()[_0x167443(0xb7)](a7_0x4014a3)[_0x167443(0xb9)](_0x167443(0xbb));});function a7_0x2a6f(_0x17900a,_0x4bb051){var _0x523a34=a7_0x3e7a();return a7_0x2a6f=function(_0x4014a3,_0x1dfeec){_0x4014a3=_0x4014a3-0xad;var _0x3e7aa5=_0x523a34[_0x4014a3];return _0x3e7aa5;},a7_0x2a6f(_0x17900a,_0x4bb051);}a7_0x4014a3();'use strict';var __decorate=this&&this['__decorate']||function(_0x39272,_0x3d2971,_0x153495,_0x5080c3){var _0x4a4164=a7_0x2a6f,_0x2ac1ce=arguments[_0x4a4164(0xad)],_0x3bf645=_0x2ac1ce<0x3?_0x3d2971:_0x5080c3===null?_0x5080c3=Object[_0x4a4164(0xcc)](_0x3d2971,_0x153495):_0x5080c3,_0x2e43fa;if(typeof Reflect==='object'&&typeof Reflect[_0x4a4164(0xc9)]===_0x4a4164(0xbc))_0x3bf645=Reflect['decorate'](_0x39272,_0x3d2971,_0x153495,_0x5080c3);else{for(var _0x27a67b=_0x39272[_0x4a4164(0xad)]-0x1;_0x27a67b>=0x0;_0x27a67b--)if(_0x2e43fa=_0x39272[_0x27a67b])_0x3bf645=(_0x2ac1ce<0x3?_0x2e43fa(_0x3bf645):_0x2ac1ce>0x3?_0x2e43fa(_0x3d2971,_0x153495,_0x3bf645):_0x2e43fa(_0x3d2971,_0x153495))||_0x3bf645;}return _0x2ac1ce>0x3&&_0x3bf645&&Object[_0x4a4164(0xca)](_0x3d2971,_0x153495,_0x3bf645),_0x3bf645;},__metadata=this&&this['__metadata']||function(_0x5c2c97,_0x5b05fb){var _0x5e61bb=a7_0x2a6f;if(typeof Reflect===_0x5e61bb(0xbe)&&typeof Reflect['metadata']===_0x5e61bb(0xbc))return Reflect['metadata'](_0x5c2c97,_0x5b05fb);};Object[a7_0x3ce848(0xca)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;function a7_0x3e7a(){var _0x3795dc=['apply','(((.+)+)+)+$','function','1155MvYYgs','object','toString','TIMEOUT_LOGINTIME','5503552uloAVw','HEADERS_LACK','signature验证失败','9048LRmadw','14124kxygIj','验证失败,请重新登录','请使用正确的设备','请求头信息不完整','decorate','defineProperty','6505956WIfibf','getOwnPropertyDescriptor','400096HUozMc','length','24308500RWxUbG','TIMEOUT','4565WHwDIi','HEADERS_SIGNATURE','登录超时,请重新登录','2660psTlZY','design:type','405DRNNXT','ApiError','constructor','HEADERS_DEVICE','search'];a7_0x3e7a=function(){return _0x3795dc;};return a7_0x3e7a();}class ApiError extends AnnError{}ApiError['TIMEOUT']=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a7_0x3ce848(0xb8)]=0x18e73,ApiError[a7_0x3ce848(0xb1)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a7_0x3ce848(0xb4),Object)],ApiError,a7_0x3ce848(0xaf),void 0x0),__decorate([AnnErrorMsg(a7_0x3ce848(0xc8)),__metadata('design:type',Object)],ApiError,a7_0x3ce848(0xc2),void 0x0),__decorate([AnnErrorMsg(a7_0x3ce848(0xc7)),__metadata(a7_0x3ce848(0xb4),Object)],ApiError,a7_0x3ce848(0xb8),void 0x0),__decorate([AnnErrorMsg(a7_0x3ce848(0xc3)),__metadata(a7_0x3ce848(0xb4),Object)],ApiError,a7_0x3ce848(0xb1),void 0x0),__decorate([AnnErrorMsg(a7_0x3ce848(0xc6)),__metadata(a7_0x3ce848(0xb4),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a7_0x3ce848(0xb2)),__metadata('design:type',Object)],ApiError,a7_0x3ce848(0xc0),void 0x0),exports[a7_0x3ce848(0xb6)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x5998(){const _0x4f6e4c=['40398VJQmkH','1138988vdTgso','apply','APPSCONFIG_KEY','8hoWusd','@midwayjs/core','3263232uGmBCR','toString','getAppsConfig','15DqKHNe','14872583ZJDaqI','765946mxVUQE','search','get','53990sUplMu','defineProperty','4841431ghoSmL','(((.+)+)+)+$','387ahnTjC','135YIigwd','constructor'];a8_0x5998=function(){return _0x4f6e4c;};return a8_0x5998();}const a8_0x21a38b=a8_0x40b8;(function(_0x46121f,_0x284908){const _0xcdd22c=a8_0x40b8,_0x501cba=_0x46121f();while(!![]){try{const _0x4239b8=-parseInt(_0xcdd22c(0x14b))/0x1+parseInt(_0xcdd22c(0x140))/0x2*(parseInt(_0xcdd22c(0x13e))/0x3)+parseInt(_0xcdd22c(0x150))/0x4+parseInt(_0xcdd22c(0x148))/0x5*(-parseInt(_0xcdd22c(0x14a))/0x6)+parseInt(_0xcdd22c(0x145))/0x7*(parseInt(_0xcdd22c(0x14e))/0x8)+parseInt(_0xcdd22c(0x147))/0x9*(parseInt(_0xcdd22c(0x143))/0xa)+-parseInt(_0xcdd22c(0x13f))/0xb;if(_0x4239b8===_0x284908)break;else _0x501cba['push'](_0x501cba['shift']());}catch(_0x44d9d8){_0x501cba['push'](_0x501cba['shift']());}}}(a8_0x5998,0xefa7f));const a8_0x348c3d=(function(){let _0x2c0a5c=!![];return function(_0x2d76f8,_0x49b201){const _0x2358a4=_0x2c0a5c?function(){const _0x451b49=a8_0x40b8;if(_0x49b201){const _0x55c463=_0x49b201[_0x451b49(0x14c)](_0x2d76f8,arguments);return _0x49b201=null,_0x55c463;}}:function(){};return _0x2c0a5c=![],_0x2358a4;};}()),a8_0x44a605=a8_0x348c3d(this,function(){const _0x28ef46=a8_0x40b8;return a8_0x44a605[_0x28ef46(0x151)]()[_0x28ef46(0x141)]('(((.+)+)+)+$')['toString']()[_0x28ef46(0x149)](a8_0x44a605)['search'](_0x28ef46(0x146));});a8_0x44a605();'use strict';Object[a8_0x21a38b(0x144)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;function a8_0x40b8(_0x1366dd,_0x466653){const _0x58bb40=a8_0x5998();return a8_0x40b8=function(_0x44a605,_0x348c3d){_0x44a605=_0x44a605-0x13d;let _0x5998c8=_0x58bb40[_0x44a605];return _0x5998c8;},a8_0x40b8(_0x1366dd,_0x466653);}const core_1=require(a8_0x21a38b(0x14f)),action_1=require('../types/action');function getAppsConfig(_0xd57403,_0x10b7f2){const _0x2a5e46=a8_0x21a38b,_0x49c6b6=(0x0,core_1['getClassMetadata'])(action_1[_0x2a5e46(0x14d)],action_1['AppsConfigTmp'])||{};return _0xd57403?lodash[_0x2a5e46(0x142)](_0x49c6b6,_0xd57403,_0x10b7f2):_0x49c6b6;}exports[a8_0x21a38b(0x13d)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x23c975=a9_0x5e83;(function(_0x5c9ba0,_0x9c854a){const _0x5377f8=a9_0x5e83,_0x38dc55=_0x5c9ba0();while(!![]){try{const _0x3140d5=parseInt(_0x5377f8(0x114))/0x1*(parseInt(_0x5377f8(0x101))/0x2)+-parseInt(_0x5377f8(0x108))/0x3*(parseInt(_0x5377f8(0xea))/0x4)+-parseInt(_0x5377f8(0x105))/0x5*(-parseInt(_0x5377f8(0xf1))/0x6)+-parseInt(_0x5377f8(0x118))/0x7*(-parseInt(_0x5377f8(0xbf))/0x8)+-parseInt(_0x5377f8(0xbc))/0x9+-parseInt(_0x5377f8(0xe7))/0xa+parseInt(_0x5377f8(0xeb))/0xb*(-parseInt(_0x5377f8(0xdd))/0xc);if(_0x3140d5===_0x9c854a)break;else _0x38dc55['push'](_0x38dc55['shift']());}catch(_0x4fae67){_0x38dc55['push'](_0x38dc55['shift']());}}}(a9_0x3656,0x3df09));const a9_0x15dece=(function(){let _0x5366ba=!![];return function(_0x5b1f31,_0x3eb5b8){const _0x1ac5a4=_0x5366ba?function(){const _0x37d30c=a9_0x5e83;if(_0x3eb5b8){const _0x3b6059=_0x3eb5b8[_0x37d30c(0xdf)](_0x5b1f31,arguments);return _0x3eb5b8=null,_0x3b6059;}}:function(){};return _0x5366ba=![],_0x1ac5a4;};}()),a9_0x3e3233=a9_0x15dece(this,function(){const _0x48205b=a9_0x5e83;return a9_0x3e3233[_0x48205b(0xc6)]()[_0x48205b(0xf3)](_0x48205b(0x100))[_0x48205b(0xc6)]()[_0x48205b(0xed)](a9_0x3e3233)[_0x48205b(0xf3)](_0x48205b(0x100));});a9_0x3e3233();function a9_0x5e83(_0x301c72,_0x57d3e9){const _0xe0c4d5=a9_0x3656();return a9_0x5e83=function(_0x3e3233,_0x15dece){_0x3e3233=_0x3e3233-0xb6;let _0x3656f9=_0xe0c4d5[_0x3e3233];return _0x3656f9;},a9_0x5e83(_0x301c72,_0x57d3e9);}'use strict';Object[a9_0x23c975(0xf4)](exports,'__esModule',{'value':!![]}),exports[a9_0x23c975(0xd4)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x23c975(0xc5)),core_1=require(a9_0x23c975(0xf2)),core_2=require(a9_0x23c975(0xf2)),core_3=require(a9_0x23c975(0xf2)),action_1=require(a9_0x23c975(0x116));function getRoutes(_0x4be376={'prefix':'/','module':![]}){const _0x1a6ba1=a9_0x23c975;var _0x336141,_0x3aa71a;const _0x56cff5=(0x0,core_3[_0x1a6ba1(0x115)])(action_1[_0x1a6ba1(0x11a)]),_0x396328={},_0x25aa05=Array[_0x1a6ba1(0xe5)](_0x4be376[_0x1a6ba1(0x103)]||[])?_0x4be376[_0x1a6ba1(0x103)]||[]:[_0x4be376[_0x1a6ba1(0x103)]];_0x4be376[_0x1a6ba1(0x11b)]&&(_0x4be376[_0x1a6ba1(0x11b)]=Array[_0x1a6ba1(0xe5)](_0x4be376['prefix'])?_0x4be376['prefix']:[_0x4be376[_0x1a6ba1(0x11b)]]);_0x4be376[_0x1a6ba1(0xcb)]&&(_0x4be376['filterprefix']=Array['isArray'](_0x4be376[_0x1a6ba1(0xcb)])?_0x4be376[_0x1a6ba1(0xcb)]:[_0x4be376[_0x1a6ba1(0xcb)]]);_0x572f02:for(const _0x184b54 of _0x56cff5){let _0x16df02=(0x0,core_3['getClassMetadata'])(action_1[_0x1a6ba1(0x11a)],_0x184b54),_0x55b09a=(0x0,core_3[_0x1a6ba1(0x107)])(action_1[_0x1a6ba1(0x112)],_0x184b54);if(_0x16df02&&_0x55b09a){let _0x4b9815=_0x16df02['prefix'],_0x333949={};if(_0x4be376[_0x1a6ba1(0xb7)]){if(typeof _0x4be376[_0x1a6ba1(0xb7)]===_0x1a6ba1(0xff)&&(0x0,lodash_1[_0x1a6ba1(0x111)])(_0x16df02,_0x1a6ba1(0xb7),![])!=_0x4be376[_0x1a6ba1(0xb7)])continue _0x572f02;}else{if(_0x4be376[_0x1a6ba1(0xb7)]===![]&&!!(0x0,lodash_1[_0x1a6ba1(0x111)])(_0x16df02,_0x1a6ba1(0xb7),null))continue _0x572f02;}if(_0x4be376[_0x1a6ba1(0x11b)]&&!_0x4be376[_0x1a6ba1(0x11b)][_0x1a6ba1(0xdc)](_0x24348b=>_0x4b9815[_0x1a6ba1(0xc8)](_0x24348b)))continue _0x572f02;if(_0x4be376[_0x1a6ba1(0xcb)]&&_0x4be376['filterprefix'][_0x1a6ba1(0xdc)](_0x236ad9=>_0x4b9815[_0x1a6ba1(0xc8)](_0x236ad9)))continue _0x572f02;if(_0x4be376[_0x1a6ba1(0xd7)]&&typeof _0x4be376[_0x1a6ba1(0xd7)]=='function'&&_0x4be376[_0x1a6ba1(0xd7)](_0x16df02))continue _0x572f02;_0x4b9815!=='/'?(_0x333949[_0x1a6ba1(0x11d)]=(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0x10f)][_0x1a6ba1(0xc1)])||(/^\//[_0x1a6ba1(0x109)](_0x4b9815)?_0x4b9815[_0x1a6ba1(0xe2)]('/')[0x1]:_0x4b9815),_0x333949[_0x1a6ba1(0xce)]=(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0x10f)]['description'])||_0x333949[_0x1a6ba1(0x11d)],_0x333949[_0x1a6ba1(0xbd)]=[]):(_0x333949[_0x1a6ba1(0x11d)]=(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0x10f)][_0x1a6ba1(0xc1)])||_0x1a6ba1(0xf6),_0x333949[_0x1a6ba1(0xce)]=(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0x10f)][_0x1a6ba1(0xce)])||'',_0x333949[_0x1a6ba1(0xbd)]=[]);_0x4be376['filepath']&&(_0x333949[_0x1a6ba1(0xb8)]=_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0xb8)]);(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02[_0x1a6ba1(0xf5)])&&(_0x333949['prefix']=_0x16df02['pprefix']);(_0x16df02===null||_0x16df02===void 0x0?void 0x0:_0x16df02['module'])&&(_0x333949[_0x1a6ba1(0xb7)]=_0x16df02[_0x1a6ba1(0xb7)]);let _0x5d9536=(0x0,core_3[_0x1a6ba1(0x107)])(core_2['INJECT_CUSTOM_PARAM'],_0x184b54)||{};if(typeof _0x55b09a[Symbol['iterator']]===_0x1a6ba1(0xd3))for(let _0xf78c1d of _0x55b09a){if((_0x4be376===null||_0x4be376===void 0x0?void 0x0:_0x4be376[_0x1a6ba1(0xf7)])&&!(_0xf78c1d===null||_0xf78c1d===void 0x0?void 0x0:_0xf78c1d['intercept']))continue;let _0x1ae0fb={};_0x1ae0fb[_0x1a6ba1(0xf9)]=_0xf78c1d[_0x1a6ba1(0xd6)],_0x1ae0fb['route']=(_0x4b9815+_0xf78c1d[_0x1a6ba1(0xcf)])['replace'](/\/{2,}/g,'/'),_0x1ae0fb[_0x1a6ba1(0x11d)]=(_0xf78c1d===null||_0xf78c1d===void 0x0?void 0x0:_0xf78c1d[_0x1a6ba1(0xc4)])||_0x333949['summary']||_0x1a6ba1(0xf6),_0x1ae0fb[_0x1a6ba1(0xce)]=(_0xf78c1d===null||_0xf78c1d===void 0x0?void 0x0:_0xf78c1d[_0x1a6ba1(0xce)])||'',_0x1ae0fb['request']=[],_0x1ae0fb['response']=getMethodResponse(_0x184b54,_0xf78c1d[_0x1a6ba1(0xf9)]);_0x1ae0fb[_0x1a6ba1(0xbb)]['endsWith']('/')&&(_0x1ae0fb[_0x1a6ba1(0xbb)]=_0x1ae0fb[_0x1a6ba1(0xbb)][_0x1a6ba1(0xe1)](0x0,_0x1ae0fb[_0x1a6ba1(0xbb)]['length']-0x1));if(!(0x0,lodash_1[_0x1a6ba1(0xc8)])(_0x1ae0fb[_0x1a6ba1(0xbb)],_0x1a6ba1(0xd2))&&!(0x0,lodash_1[_0x1a6ba1(0xc8)])(_0x1ae0fb['route'],_0x1a6ba1(0xef))&&_0x25aa05[_0x1a6ba1(0xfb)](_0x1ae0fb[_0x1a6ba1(0xbb)])===-0x1){if(!(_0x4be376===null||_0x4be376===void 0x0?void 0x0:_0x4be376[_0x1a6ba1(0xde)])){let _0x4782d1=(0x0,core_3[_0x1a6ba1(0x10d)])(new _0x184b54(),_0xf78c1d[_0x1a6ba1(0xf9)]);for(const _0x207de2 in _0x4782d1){let _0x231393=(_0x336141=_0x5d9536[_0xf78c1d[_0x1a6ba1(0xf9)]])===null||_0x336141===void 0x0?void 0x0:_0x336141[_0x1a6ba1(0xec)](_0x79301a=>_0x79301a[_0x1a6ba1(0x120)]==_0x207de2&&_0x79301a[_0x1a6ba1(0xd0)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x79301a===null||_0x79301a===void 0x0?void 0x0:_0x79301a[_0x1a6ba1(0xc2)]));if(_0x231393===null||_0x231393===void 0x0?void 0x0:_0x231393['metadata']){let _0xfc9a32=convertTypeToString(_0x231393[_0x1a6ba1(0xc2)][_0x1a6ba1(0x11f)]||0x0);if([_0x1a6ba1(0xf8),_0x1a6ba1(0xe6)][_0x1a6ba1(0xfb)](_0xfc9a32)!=-0x1&&_0x231393[_0x1a6ba1(0xc2)][_0x1a6ba1(0xe8)][_0x1a6ba1(0xfb)](':')==-0x1&&!_0x1ae0fb[_0x1a6ba1(0x102)][_0x1a6ba1(0xec)](_0x53bf9f=>_0x53bf9f[_0x1a6ba1(0xd0)]==_0x231393['metadata'][_0x1a6ba1(0xe8)]))_0x1ae0fb[_0x1a6ba1(0x102)][_0x1a6ba1(0xfc)]({'key':_0x231393['metadata']['propertyData'],'title':_0x231393[_0x1a6ba1(0xc2)][_0x1a6ba1(0xe8)],'type':convertSchemaType(_0x4782d1[_0x231393[_0x1a6ba1(0x120)]][_0x1a6ba1(0xb6)]),'required':![],'default':'','desc':''});else{if(_0xfc9a32==_0x1a6ba1(0x10a)){let _0x2ab337=((_0x3aa71a=_0x231393===null||_0x231393===void 0x0?void 0x0:_0x231393[_0x1a6ba1(0xc2)])===null||_0x3aa71a===void 0x0?void 0x0:_0x3aa71a[_0x1a6ba1(0xe8)])||'file';_0x2ab337['indexOf'](':')==-0x1&&!_0x1ae0fb[_0x1a6ba1(0x102)][_0x1a6ba1(0xec)](_0x59d867=>_0x59d867[_0x1a6ba1(0xd0)]==_0x2ab337&&_0x59d867[_0x1a6ba1(0x11f)]==_0x1a6ba1(0x10a))&&_0x1ae0fb['request'][_0x1a6ba1(0xfc)]({'key':_0x2ab337,'title':_0x1a6ba1(0x10b)+_0x2ab337,'type':_0x1a6ba1(0x10a),'required':!![],'default':'','desc':''});}}}else{const _0x4faf83=(0x0,core_3[_0x1a6ba1(0xfd)])(validator_1[_0x1a6ba1(0x117)],_0x4782d1[_0x207de2]);_0x4faf83&&_0x1ae0fb[_0x1a6ba1(0x102)]['push'](...getJoiRequest(_0x4faf83));}}}_0x333949[_0x1a6ba1(0xbd)]['push'](_0x1ae0fb);}}if(_0x333949[_0x1a6ba1(0xbd)][_0x1a6ba1(0x104)]>0x0){let _0x20b7ef=_0x396328[_0x4b9815];_0x20b7ef?(_0x20b7ef[_0x1a6ba1(0x11d)]!=_0x333949[_0x1a6ba1(0x11d)]&&(_0x20b7ef['summary']=_0x20b7ef[_0x1a6ba1(0x11d)]+','+_0x333949[_0x1a6ba1(0x11d)]),_0x20b7ef[_0x1a6ba1(0xce)]!=_0x333949[_0x1a6ba1(0xce)]&&(_0x20b7ef[_0x1a6ba1(0xce)]=_0x20b7ef['description']+','+_0x333949[_0x1a6ba1(0xce)]),_0x20b7ef['routes']=_0x20b7ef[_0x1a6ba1(0xbd)][_0x1a6ba1(0x11e)](_0x333949[_0x1a6ba1(0xbd)]),_0x396328[_0x4b9815]=_0x20b7ef):_0x396328[_0x4b9815]=_0x333949;}}}return _0x396328;}exports[a9_0x23c975(0xd4)]=getRoutes;function getJoiRequest(_0x2bde59){const _0x5945de=a9_0x23c975;var _0x592345,_0x39c498;const _0x2c3db2=[];for(let _0x389941 in _0x2bde59){const _0x2af685={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x189e4f=typeof _0x2bde59[_0x389941]['describe']==_0x5945de(0xd3)?_0x2bde59[_0x389941][_0x5945de(0xd1)]():_0x2bde59[_0x389941];_0x2af685[_0x5945de(0xd0)]=_0x389941,_0x2af685[_0x5945de(0x11f)]=_0x189e4f[_0x5945de(0x11f)],_0x2af685[_0x5945de(0xdb)]=(0x0,lodash_1[_0x5945de(0x111)])(_0x189e4f,'flags.label',_0x389941),_0x2af685[_0x5945de(0xf6)]=(0x0,lodash_1[_0x5945de(0x111)])(_0x189e4f,_0x5945de(0x113),''),_0x2af685[_0x5945de(0x119)]=(0x0,lodash_1[_0x5945de(0x111)])(_0x189e4f,_0x5945de(0xfe),'')==_0x5945de(0x119),_0x2af685[_0x5945de(0xce)]=(0x0,lodash_1[_0x5945de(0x111)])(_0x189e4f,_0x5945de(0xe9),'');if(_0x189e4f[_0x5945de(0x11f)]==_0x5945de(0xf0))(_0x189e4f===null||_0x189e4f===void 0x0?void 0x0:_0x189e4f['keys'])&&(_0x2af685[_0x5945de(0xfa)]=getJoiRequest(_0x189e4f[_0x5945de(0x106)]));else _0x189e4f[_0x5945de(0x11f)]=='array'&&_0x189e4f[_0x5945de(0x10e)]&&Array[_0x5945de(0xe5)](_0x189e4f[_0x5945de(0x10e)])&&(((_0x39c498=(_0x592345=_0x189e4f===null||_0x189e4f===void 0x0?void 0x0:_0x189e4f[_0x5945de(0x10e)])===null||_0x592345===void 0x0?void 0x0:_0x592345[0x0])===null||_0x39c498===void 0x0?void 0x0:_0x39c498[_0x5945de(0x106)])&&(_0x2af685[_0x5945de(0xfa)]=getJoiRequest(_0x189e4f[_0x5945de(0x10e)][0x0][_0x5945de(0x106)])));_0x189e4f['allow']&&Array[_0x5945de(0xe5)](_0x189e4f[_0x5945de(0xca)])&&_0x189e4f[_0x5945de(0xca)]['length']>0x0&&(_0x2af685[_0x5945de(0xce)]=_0x5945de(0xba)+_0x189e4f['allow']['join'](',')+'];'+_0x2af685[_0x5945de(0xce)]);if(_0x2af685[_0x5945de(0xd0)]&&_0x2af685[_0x5945de(0x11f)]){const _0x3ab1b1={};for(const _0x210b34 of _0x189e4f[_0x5945de(0xda)]||[]){if(_0x210b34[_0x5945de(0xb6)]===_0x5945de(0xd5)&&_0x210b34[_0x5945de(0xcd)])_0x3ab1b1['min']=_0x210b34[_0x5945de(0xcd)][_0x5945de(0xbe)];else _0x210b34['name']===_0x5945de(0xd9)&&(_0x3ab1b1[_0x5945de(0xd9)]=_0x210b34[_0x5945de(0xcd)][_0x5945de(0xbe)]);}_0x2af685[_0x5945de(0xda)]=_0x3ab1b1;}_0x2af685['key']&&_0x2af685[_0x5945de(0xdb)]&&_0x2c3db2[_0x5945de(0xfc)](_0x2af685);}return _0x2c3db2;}function convertSchemaType(_0x48072a){const _0x2d88f6=a9_0x23c975;switch(_0x48072a){case _0x2d88f6(0xb9):return _0x2d88f6(0xf0);case _0x2d88f6(0xc3):return'boolean';case _0x2d88f6(0x10c):return _0x2d88f6(0xcc);case _0x2d88f6(0xd8):return _0x2d88f6(0xff);case _0x2d88f6(0xc9):return _0x2d88f6(0x10a);default:return _0x2d88f6(0xff);}}function convertTypeToString(_0x19b175){const _0x20049d=a9_0x23c975;switch(_0x19b175){case core_1['RouteParamTypes']['HEADERS']:return _0x20049d(0x110);case core_1['RouteParamTypes'][_0x20049d(0xc0)]:return'query';case core_1[_0x20049d(0xe0)][_0x20049d(0xee)]:return'path';case core_1[_0x20049d(0xe0)]['BODY']:return _0x20049d(0xe6);case core_1[_0x20049d(0xe0)][_0x20049d(0x11c)]:case core_1[_0x20049d(0xe0)]['FILESSTREAM']:case core_1['RouteParamTypes']['FILESTREAM']:return _0x20049d(0x10a);default:return _0x20049d(0x110);}}function a9_0x3656(){const _0xff2a17=['find','constructor','PARAM','/static/apitest','object','53184MKdGTu','@midwayjs/core','search','defineProperty','pprefix','default','intercept','query','method','children','indexOf','push','getClassExtendedMetadata','flags.presence','string','(((.+)+)+)+$','474934ieXAJg','request','filter','length','260ZTwTYy','keys','getClassMetadata','3cmaKAB','test','file','文件上传-','Number','getMethodParamTypes','items','routerOptions','header','get','ACTION_ROUTE_KEY','flags.default','1tjzLJo','listModule','../types/action','RULES_KEY','7QVdTQa','required','ACTION_KEY','prefix','FIELDS','summary','concat','type','parameterIndex','name','module','filepath','Object','只允许:[','route','284760sYuirv','routes','limit','1545496kfXqDY','QUERY','tagName','metadata','Boolean','routerName','@anncic-api/validator','toString','ACTION_RESPONSE_KEY','startsWith','File','allow','filterprefix','number','args','description','path','key','describe','static/apitest','function','getRoutes','min','requestMethod','filtercustom','String','max','rules','title','some','11796VLDMpz','noreq','apply','RouteParamTypes','substring','split','properties','errors','isArray','body','1458750sxePZn','propertyData','flags.description','532092AQzVKv','3663psbeOm'];a9_0x3656=function(){return _0xff2a17;};return a9_0x3656();}function getMethodResponse(_0x3d28ac,_0x9fc1f1){const _0x4163b6=a9_0x23c975,_0x59d5ed=(0x0,core_3[_0x4163b6(0x107)])(action_1[_0x4163b6(0xc7)],_0x3d28ac);if(!_0x59d5ed)return null;const _0x12f341=_0x59d5ed[_0x4163b6(0xec)](_0x315407=>_0x315407['method']===_0x9fc1f1);if(!_0x12f341)return null;return{'format':_0x12f341['format']||_0x4163b6(0xf6),'type':_0x12f341[_0x4163b6(0x11f)],'description':_0x12f341[_0x4163b6(0xce)]||'','properties':_0x12f341[_0x4163b6(0xe3)]||[],'errors':_0x12f341[_0x4163b6(0xe4)]||[]};}
|
|
1
|
+
const a9_0xf7a73b=a9_0x3dc5;(function(_0x3eba6e,_0x1e3927){const _0x2d513c=a9_0x3dc5,_0x5036b1=_0x3eba6e();while(!![]){try{const _0x3e73a6=-parseInt(_0x2d513c(0x177))/0x1+-parseInt(_0x2d513c(0x146))/0x2*(-parseInt(_0x2d513c(0x192))/0x3)+-parseInt(_0x2d513c(0x131))/0x4*(-parseInt(_0x2d513c(0x170))/0x5)+-parseInt(_0x2d513c(0x16b))/0x6*(-parseInt(_0x2d513c(0x15b))/0x7)+parseInt(_0x2d513c(0x136))/0x8+-parseInt(_0x2d513c(0x140))/0x9+-parseInt(_0x2d513c(0x17b))/0xa*(parseInt(_0x2d513c(0x163))/0xb);if(_0x3e73a6===_0x1e3927)break;else _0x5036b1['push'](_0x5036b1['shift']());}catch(_0x291b56){_0x5036b1['push'](_0x5036b1['shift']());}}}(a9_0xe3e2,0x8121d));const a9_0x4c5044=(function(){let _0x262d17=!![];return function(_0x3397da,_0x3327fe){const _0x39724d=_0x262d17?function(){if(_0x3327fe){const _0x5d32ba=_0x3327fe['apply'](_0x3397da,arguments);return _0x3327fe=null,_0x5d32ba;}}:function(){};return _0x262d17=![],_0x39724d;};}()),a9_0xaa1098=a9_0x4c5044(this,function(){const _0x5d5556=a9_0x3dc5;return a9_0xaa1098[_0x5d5556(0x162)]()['search'](_0x5d5556(0x165))[_0x5d5556(0x162)]()['constructor'](a9_0xaa1098)[_0x5d5556(0x195)](_0x5d5556(0x165));});a9_0xaa1098();'use strict';Object[a9_0xf7a73b(0x13c)](exports,'__esModule',{'value':!![]}),exports[a9_0xf7a73b(0x17c)]=void 0x0;const lodash_1=require(a9_0xf7a73b(0x191)),validator_1=require(a9_0xf7a73b(0x133)),core_1=require(a9_0xf7a73b(0x18d)),core_2=require(a9_0xf7a73b(0x18d)),core_3=require('@midwayjs/core'),action_1=require(a9_0xf7a73b(0x145));function getRoutes(_0x39b38e={'prefix':'/','module':![]}){const _0x2d091d=a9_0xf7a73b;var _0x1d1d8a,_0x253623;const _0x5aec9b=(0x0,core_3[_0x2d091d(0x130)])(action_1[_0x2d091d(0x144)]),_0xcdc8a1={},_0x2d8460=Array[_0x2d091d(0x14f)](_0x39b38e['filter']||[])?_0x39b38e[_0x2d091d(0x16a)]||[]:[_0x39b38e[_0x2d091d(0x16a)]];_0x39b38e[_0x2d091d(0x14c)]&&(_0x39b38e['prefix']=Array[_0x2d091d(0x14f)](_0x39b38e[_0x2d091d(0x14c)])?_0x39b38e['prefix']:[_0x39b38e[_0x2d091d(0x14c)]]);_0x39b38e[_0x2d091d(0x16f)]&&(_0x39b38e[_0x2d091d(0x16f)]=Array[_0x2d091d(0x14f)](_0x39b38e[_0x2d091d(0x16f)])?_0x39b38e['filterprefix']:[_0x39b38e[_0x2d091d(0x16f)]]);_0x3b0846:for(const _0x212afa of _0x5aec9b){let _0x2f895e=(0x0,core_3[_0x2d091d(0x184)])(action_1[_0x2d091d(0x144)],_0x212afa),_0x16ca85=(0x0,core_3[_0x2d091d(0x184)])(action_1[_0x2d091d(0x13e)],_0x212afa);if(_0x2f895e&&_0x16ca85){let _0x5d2248=_0x2f895e[_0x2d091d(0x14c)],_0x4f3527={};if(_0x39b38e[_0x2d091d(0x176)]){if(typeof _0x39b38e['module']===_0x2d091d(0x13d)&&(0x0,lodash_1[_0x2d091d(0x160)])(_0x2f895e,_0x2d091d(0x176),![])!=_0x39b38e[_0x2d091d(0x176)])continue _0x3b0846;}else{if(_0x39b38e[_0x2d091d(0x176)]===![]&&!!(0x0,lodash_1[_0x2d091d(0x160)])(_0x2f895e,_0x2d091d(0x176),null))continue _0x3b0846;}if(_0x39b38e['prefix']&&!_0x39b38e[_0x2d091d(0x14c)][_0x2d091d(0x18e)](_0x74be74=>_0x5d2248[_0x2d091d(0x151)](_0x74be74)))continue _0x3b0846;if(_0x39b38e['filterprefix']&&_0x39b38e['filterprefix'][_0x2d091d(0x18e)](_0x209ff5=>_0x5d2248[_0x2d091d(0x151)](_0x209ff5)))continue _0x3b0846;if(_0x39b38e[_0x2d091d(0x194)]&&typeof _0x39b38e[_0x2d091d(0x194)]==_0x2d091d(0x150)&&_0x39b38e[_0x2d091d(0x194)](_0x2f895e))continue _0x3b0846;_0x5d2248!=='/'?(_0x4f3527[_0x2d091d(0x164)]=(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e[_0x2d091d(0x13a)]['tagName'])||(/^\//[_0x2d091d(0x155)](_0x5d2248)?_0x5d2248[_0x2d091d(0x13f)]('/')[0x1]:_0x5d2248),_0x4f3527[_0x2d091d(0x171)]=(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e['routerOptions'][_0x2d091d(0x171)])||_0x4f3527['summary'],_0x4f3527[_0x2d091d(0x157)]=[]):(_0x4f3527['summary']=(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e['routerOptions'][_0x2d091d(0x183)])||_0x2d091d(0x18a),_0x4f3527['description']=(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e[_0x2d091d(0x13a)][_0x2d091d(0x171)])||'',_0x4f3527[_0x2d091d(0x157)]=[]);_0x39b38e['filepath']&&(_0x4f3527[_0x2d091d(0x193)]=_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e[_0x2d091d(0x193)]);(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e[_0x2d091d(0x15f)])&&(_0x4f3527['prefix']=_0x2f895e[_0x2d091d(0x15f)]);(_0x2f895e===null||_0x2f895e===void 0x0?void 0x0:_0x2f895e[_0x2d091d(0x176)])&&(_0x4f3527[_0x2d091d(0x176)]=_0x2f895e[_0x2d091d(0x176)]);let _0x3a4680=(0x0,core_3[_0x2d091d(0x184)])(core_2[_0x2d091d(0x13b)],_0x212afa)||{};if(typeof _0x16ca85[Symbol['iterator']]==='function')for(let _0xdab750 of _0x16ca85){if((_0x39b38e===null||_0x39b38e===void 0x0?void 0x0:_0x39b38e['intercept'])&&!(_0xdab750===null||_0xdab750===void 0x0?void 0x0:_0xdab750['intercept']))continue;let _0x2fced0={};_0x2fced0[_0x2d091d(0x149)]=_0xdab750['requestMethod'],_0x2fced0[_0x2d091d(0x188)]=(_0x5d2248+_0xdab750[_0x2d091d(0x187)])[_0x2d091d(0x16e)](/\/{2,}/g,'/'),_0x2fced0[_0x2d091d(0x164)]=(_0xdab750===null||_0xdab750===void 0x0?void 0x0:_0xdab750[_0x2d091d(0x147)])||_0x4f3527[_0x2d091d(0x164)]||_0x2d091d(0x18a),_0x2fced0['description']=(_0xdab750===null||_0xdab750===void 0x0?void 0x0:_0xdab750[_0x2d091d(0x171)])||'',_0x2fced0['request']=[],_0x2fced0[_0x2d091d(0x166)]=getMethodResponse(_0x212afa,_0xdab750[_0x2d091d(0x149)]);_0x2fced0[_0x2d091d(0x188)]['endsWith']('/')&&(_0x2fced0['route']=_0x2fced0[_0x2d091d(0x188)]['substring'](0x0,_0x2fced0['route'][_0x2d091d(0x18f)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x2fced0[_0x2d091d(0x188)],'static/apitest')&&!(0x0,lodash_1[_0x2d091d(0x151)])(_0x2fced0[_0x2d091d(0x188)],_0x2d091d(0x17d))&&_0x2d8460['indexOf'](_0x2fced0[_0x2d091d(0x188)])===-0x1){if(!(_0x39b38e===null||_0x39b38e===void 0x0?void 0x0:_0x39b38e[_0x2d091d(0x152)])){let _0x391077=(0x0,core_3[_0x2d091d(0x156)])(new _0x212afa(),_0xdab750[_0x2d091d(0x149)]);for(const _0x45bd2d in _0x391077){let _0x273b8c=(_0x1d1d8a=_0x3a4680[_0xdab750[_0x2d091d(0x149)]])===null||_0x1d1d8a===void 0x0?void 0x0:_0x1d1d8a['find'](_0x1a6148=>_0x1a6148[_0x2d091d(0x17e)]==_0x45bd2d&&_0x1a6148[_0x2d091d(0x179)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x1a6148===null||_0x1a6148===void 0x0?void 0x0:_0x1a6148[_0x2d091d(0x138)]));if(_0x273b8c===null||_0x273b8c===void 0x0?void 0x0:_0x273b8c[_0x2d091d(0x138)]){let _0x3d8198=convertTypeToString(_0x273b8c[_0x2d091d(0x138)][_0x2d091d(0x14a)]||0x0);if(['query',_0x2d091d(0x16d)]['indexOf'](_0x3d8198)!=-0x1&&_0x273b8c[_0x2d091d(0x138)][_0x2d091d(0x189)][_0x2d091d(0x174)](':')==-0x1&&!_0x2fced0[_0x2d091d(0x148)][_0x2d091d(0x178)](_0x4956ca=>_0x4956ca[_0x2d091d(0x179)]==_0x273b8c[_0x2d091d(0x138)]['propertyData']))_0x2fced0[_0x2d091d(0x148)][_0x2d091d(0x132)]({'key':_0x273b8c[_0x2d091d(0x138)][_0x2d091d(0x189)],'title':_0x273b8c[_0x2d091d(0x138)][_0x2d091d(0x189)],'type':convertSchemaType(_0x391077[_0x273b8c[_0x2d091d(0x17e)]]['name']),'required':![],'default':'','desc':''});else{if(_0x3d8198==_0x2d091d(0x173)){let _0x460bae=((_0x253623=_0x273b8c===null||_0x273b8c===void 0x0?void 0x0:_0x273b8c[_0x2d091d(0x138)])===null||_0x253623===void 0x0?void 0x0:_0x253623[_0x2d091d(0x189)])||_0x2d091d(0x173);_0x460bae[_0x2d091d(0x174)](':')==-0x1&&!_0x2fced0[_0x2d091d(0x148)][_0x2d091d(0x178)](_0x251002=>_0x251002[_0x2d091d(0x179)]==_0x460bae&&_0x251002[_0x2d091d(0x14a)]==_0x2d091d(0x173))&&_0x2fced0[_0x2d091d(0x148)][_0x2d091d(0x132)]({'key':_0x460bae,'title':_0x2d091d(0x180)+_0x460bae,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x1311d1=(0x0,core_3[_0x2d091d(0x14b)])(validator_1['RULES_KEY'],_0x391077[_0x45bd2d]);_0x1311d1&&_0x2fced0['request'][_0x2d091d(0x132)](...getJoiRequest(_0x1311d1));}}}_0x4f3527[_0x2d091d(0x157)][_0x2d091d(0x132)](_0x2fced0);}}if(_0x4f3527[_0x2d091d(0x157)][_0x2d091d(0x18f)]>0x0){let _0x1e7176=_0xcdc8a1[_0x5d2248];_0x1e7176?(_0x1e7176[_0x2d091d(0x164)]!=_0x4f3527[_0x2d091d(0x164)]&&(_0x1e7176[_0x2d091d(0x164)]=_0x1e7176[_0x2d091d(0x164)]+','+_0x4f3527[_0x2d091d(0x164)]),_0x1e7176['description']!=_0x4f3527[_0x2d091d(0x171)]&&(_0x1e7176[_0x2d091d(0x171)]=_0x1e7176[_0x2d091d(0x171)]+','+_0x4f3527[_0x2d091d(0x171)]),_0x1e7176['routes']=_0x1e7176[_0x2d091d(0x157)][_0x2d091d(0x159)](_0x4f3527[_0x2d091d(0x157)]),_0xcdc8a1[_0x5d2248]=_0x1e7176):_0xcdc8a1[_0x5d2248]=_0x4f3527;}}}return _0xcdc8a1;}exports[a9_0xf7a73b(0x17c)]=getRoutes;function getJoiRequest(_0x48b38a){const _0x466488=a9_0xf7a73b;var _0x56334,_0x3a1b4e;const _0x4cf794=[];for(let _0x36c3c6 in _0x48b38a){const _0x2296da={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4417bd=typeof _0x48b38a[_0x36c3c6][_0x466488(0x14e)]==_0x466488(0x150)?_0x48b38a[_0x36c3c6][_0x466488(0x14e)]():_0x48b38a[_0x36c3c6];_0x2296da[_0x466488(0x179)]=_0x36c3c6,_0x2296da[_0x466488(0x14a)]=_0x4417bd[_0x466488(0x14a)],_0x2296da['title']=(0x0,lodash_1['get'])(_0x4417bd,_0x466488(0x137),_0x36c3c6),_0x2296da[_0x466488(0x18a)]=(0x0,lodash_1[_0x466488(0x160)])(_0x4417bd,_0x466488(0x15c),''),_0x2296da[_0x466488(0x181)]=(0x0,lodash_1[_0x466488(0x160)])(_0x4417bd,_0x466488(0x17f),'')==_0x466488(0x181),_0x2296da[_0x466488(0x171)]=(0x0,lodash_1[_0x466488(0x160)])(_0x4417bd,_0x466488(0x154),'');if(_0x4417bd[_0x466488(0x14a)]=='object')(_0x4417bd===null||_0x4417bd===void 0x0?void 0x0:_0x4417bd['keys'])&&(_0x2296da[_0x466488(0x12f)]=getJoiRequest(_0x4417bd[_0x466488(0x175)]));else _0x4417bd[_0x466488(0x14a)]=='array'&&_0x4417bd[_0x466488(0x15a)]&&Array[_0x466488(0x14f)](_0x4417bd[_0x466488(0x15a)])&&(((_0x3a1b4e=(_0x56334=_0x4417bd===null||_0x4417bd===void 0x0?void 0x0:_0x4417bd['items'])===null||_0x56334===void 0x0?void 0x0:_0x56334[0x0])===null||_0x3a1b4e===void 0x0?void 0x0:_0x3a1b4e[_0x466488(0x175)])&&(_0x2296da['children']=getJoiRequest(_0x4417bd[_0x466488(0x15a)][0x0]['keys'])));_0x4417bd['allow']&&Array[_0x466488(0x14f)](_0x4417bd['allow'])&&_0x4417bd[_0x466488(0x135)][_0x466488(0x18f)]>0x0&&(_0x2296da[_0x466488(0x171)]=_0x466488(0x185)+_0x4417bd[_0x466488(0x135)][_0x466488(0x172)](',')+'];'+_0x2296da[_0x466488(0x171)]);if(_0x2296da[_0x466488(0x179)]&&_0x2296da['type']){const _0x577e6d={};for(const _0x5c8b31 of _0x4417bd['rules']||[]){if(_0x5c8b31[_0x466488(0x186)]===_0x466488(0x169)&&_0x5c8b31['args'])_0x577e6d[_0x466488(0x169)]=_0x5c8b31['args'][_0x466488(0x190)];else _0x5c8b31[_0x466488(0x186)]===_0x466488(0x142)&&(_0x577e6d[_0x466488(0x142)]=_0x5c8b31[_0x466488(0x18b)][_0x466488(0x190)]);}_0x2296da[_0x466488(0x139)]=_0x577e6d;}_0x2296da[_0x466488(0x179)]&&_0x2296da[_0x466488(0x17a)]&&_0x4cf794[_0x466488(0x132)](_0x2296da);}return _0x4cf794;}function a9_0xe3e2(){const _0x7b4935=['split','5998284OWseiz','errors','max','PARAM','ACTION_KEY','../types/action','2Uuvnot','routerName','request','method','type','getClassExtendedMetadata','prefix','query','describe','isArray','function','startsWith','noreq','header','flags.description','test','getMethodParamTypes','routes','FILESSTREAM','concat','items','7GqKzsi','flags.default','number','object','pprefix','get','HEADERS','toString','13981jynzGq','summary','(((.+)+)+)+$','response','FILESTREAM','BODY','min','filter','1064454gljKAO','RouteParamTypes','body','replace','filterprefix','1313560JfpXxy','description','join','file','indexOf','keys','module','26620DebJiI','find','key','title','50RlRMiX','getRoutes','/static/apitest','parameterIndex','flags.presence','文件上传-','required','QUERY','tagName','getClassMetadata','只允许:[','name','path','route','propertyData','default','args','boolean','@midwayjs/core','some','length','limit','lodash','147519DDnKjf','filepath','filtercustom','search','children','listModule','8ZuXtSg','push','@anncic-api/validator','Object','allow','3810960rbASgS','flags.label','metadata','rules','routerOptions','INJECT_CUSTOM_PARAM','defineProperty','string','ACTION_ROUTE_KEY'];a9_0xe3e2=function(){return _0x7b4935;};return a9_0xe3e2();}function convertSchemaType(_0x349e06){const _0x2e4cf3=a9_0xf7a73b;switch(_0x349e06){case _0x2e4cf3(0x134):return _0x2e4cf3(0x15e);case'Boolean':return _0x2e4cf3(0x18c);case'Number':return _0x2e4cf3(0x15d);case'String':return'string';case'File':return _0x2e4cf3(0x173);default:return _0x2e4cf3(0x13d);}}function a9_0x3dc5(_0x450729,_0x300755){const _0x47e4e9=a9_0xe3e2();return a9_0x3dc5=function(_0xaa1098,_0x4c5044){_0xaa1098=_0xaa1098-0x12f;let _0xe3e2b4=_0x47e4e9[_0xaa1098];return _0xe3e2b4;},a9_0x3dc5(_0x450729,_0x300755);}function convertTypeToString(_0x304fa9){const _0x23f4ac=a9_0xf7a73b;switch(_0x304fa9){case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x161)]:return _0x23f4ac(0x153);case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x182)]:return _0x23f4ac(0x14d);case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x143)]:return _0x23f4ac(0x187);case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x168)]:return _0x23f4ac(0x16d);case core_1[_0x23f4ac(0x16c)]['FIELDS']:case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x158)]:case core_1[_0x23f4ac(0x16c)][_0x23f4ac(0x167)]:return'file';default:return'header';}}function getMethodResponse(_0x10addb,_0x27f388){const _0x1e85cd=a9_0xf7a73b,_0x2ada86=(0x0,core_3['getClassMetadata'])(action_1['ACTION_RESPONSE_KEY'],_0x10addb);if(!_0x2ada86)return null;const _0x443f0c=_0x2ada86[_0x1e85cd(0x178)](_0x277c83=>_0x277c83['method']===_0x27f388);if(!_0x443f0c)return null;return{'format':_0x443f0c['format']||'default','type':_0x443f0c['type'],'description':_0x443f0c[_0x1e85cd(0x171)]||'','properties':_0x443f0c['properties']||[],'errors':_0x443f0c[_0x1e85cd(0x141)]||[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x34bd07=a10_0xed20;function a10_0xed20(_0x560cd5,_0x413526){const _0x2d6803=a10_0x1967();return a10_0xed20=function(_0x4f1773,_0x4dee14){_0x4f1773=_0x4f1773-0x1ac;let _0x19671e=_0x2d6803[_0x4f1773];return _0x19671e;},a10_0xed20(_0x560cd5,_0x413526);}(function(_0x53f58f,_0x374d96){const _0x35d9d4=a10_0xed20,_0x22b379=_0x53f58f();while(!![]){try{const _0x4551d7=-parseInt(_0x35d9d4(0x1d3))/0x1+parseInt(_0x35d9d4(0x1e3))/0x2*(-parseInt(_0x35d9d4(0x210))/0x3)+parseInt(_0x35d9d4(0x1ca))/0x4*(-parseInt(_0x35d9d4(0x1be))/0x5)+-parseInt(_0x35d9d4(0x1e7))/0x6*(parseInt(_0x35d9d4(0x1e2))/0x7)+-parseInt(_0x35d9d4(0x1d0))/0x8+parseInt(_0x35d9d4(0x1f0))/0x9*(-parseInt(_0x35d9d4(0x1ae))/0xa)+parseInt(_0x35d9d4(0x1f8))/0xb;if(_0x4551d7===_0x374d96)break;else _0x22b379['push'](_0x22b379['shift']());}catch(_0x2e5cf9){_0x22b379['push'](_0x22b379['shift']());}}}(a10_0x1967,0x76451));const a10_0x4dee14=(function(){let _0x19a634=!![];return function(_0x2ed7e2,_0x3c8c9d){const _0x286cc3=_0x19a634?function(){const _0x69dae9=a10_0xed20;if(_0x3c8c9d){const _0x59413b=_0x3c8c9d[_0x69dae9(0x208)](_0x2ed7e2,arguments);return _0x3c8c9d=null,_0x59413b;}}:function(){};return _0x19a634=![],_0x286cc3;};}()),a10_0x4f1773=a10_0x4dee14(this,function(){const _0x5cbc30=a10_0xed20;return a10_0x4f1773[_0x5cbc30(0x1d8)]()[_0x5cbc30(0x1ed)](_0x5cbc30(0x1fd))['toString']()['constructor'](a10_0x4f1773)['search'](_0x5cbc30(0x1fd));});a10_0x4f1773();'use strict';Object[a10_0x34bd07(0x1eb)](exports,a10_0x34bd07(0x1f9),{'value':!![]}),exports['getSwaggerJson']=void 0x0;const getRoutes_1=require('./getRoutes'),MEDIA_TYPE_JSON=a10_0x34bd07(0x1c8),MEDIA_TYPE_FORM_DATA=a10_0x34bd07(0x1ef),PARAM_IN_PATH=a10_0x34bd07(0x1cf),PARAM_IN_QUERY='query';function convertRouteToSwaggerFormat(_0x23300e){const _0x394b8b=a10_0x34bd07;return _0x23300e[_0x394b8b(0x1f4)](/:([^\/]+)/g,'{$1}');}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x34bd07(0x1c4),'properties':{'code':{'type':a10_0x34bd07(0x211),'description':'状态码,0表示成功,其他为错误码'},'message':{'type':a10_0x34bd07(0x201),'description':'提示信息'},'data':{'type':a10_0x34bd07(0x1ce),'description':a10_0x34bd07(0x20f)},'extra':{'type':'any','description':a10_0x34bd07(0x207)}},'required':['code']},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x34bd07(0x211),'description':a10_0x34bd07(0x1c7)},'message':{'type':a10_0x34bd07(0x201),'description':'提示信息'},'data':{'type':a10_0x34bd07(0x1f1),'items':{'type':a10_0x34bd07(0x1ce)},'description':a10_0x34bd07(0x1ac)},'extra':{'type':'object','properties':{'pageinfo':{'type':a10_0x34bd07(0x1ce),'description':a10_0x34bd07(0x1b6)},'pagetotal':{'type':'integer','description':'总数量'}},'description':'附加数据,如分页信息'}},'required':['code']},'ApiError':{'type':a10_0x34bd07(0x1c4),'properties':{'code':{'type':a10_0x34bd07(0x211),'description':a10_0x34bd07(0x1b2)},'message':{'type':a10_0x34bd07(0x201),'description':'错误信息'}},'required':[a10_0x34bd07(0x20d),'message']}},BASE_RESPONSE_PROPERTIES={'code':{'type':'integer','description':'状态码,0表示成功'}};function getSwaggerJson(_0x209183={'prefix':'/','module':![]}){const _0x1dc332=a10_0x34bd07,_0x96709f=(0x0,getRoutes_1['getRoutes'])(_0x209183),_0x21a864=new Map(),_0x126597=new Map(),_0x3572eb=_0x209183[_0x1dc332(0x1fc)]?_0x209183[_0x1dc332(0x1fc)]:{...DEFAULT_DEFINITIONS,..._0x209183[_0x1dc332(0x1bf)]||{}},_0x5e14b9=_0x209183[_0x1dc332(0x1b8)]||'localhost:7001',_0x10e992=_0x209183['basePath']||'/',_0xc0fb5d=(_0x209183[_0x1dc332(0x1b5)]||[_0x1dc332(0x1c5)])[0x0],_0x4646e8={'openapi':_0x1dc332(0x1db),'info':{'title':_0x209183['title']||_0x1dc332(0x1e5),'description':_0x209183['description']||_0x1dc332(0x202),'version':_0x209183[_0x1dc332(0x1d5)]||_0x1dc332(0x1c0)},'servers':[{'url':_0xc0fb5d+_0x1dc332(0x1de)+_0x5e14b9+_0x10e992,'description':_0x1dc332(0x1e1)}],'tags':[],'paths':{},'components':{'schemas':_0x3572eb}};for(const _0x4f07ea in _0x96709f){const _0x3830e3=_0x96709f[_0x4f07ea],_0x464c5b=(_0x3830e3===null||_0x3830e3===void 0x0?void 0x0:_0x3830e3['description'])||(_0x3830e3===null||_0x3830e3===void 0x0?void 0x0:_0x3830e3['summary'])||'default',_0x1e2cf2=buildTagHierarchy(_0x4f07ea,_0x3830e3);addTagsToMap(_0x21a864,_0x1e2cf2,_0x464c5b);const _0x4d7188=_0x1e2cf2[_0x1e2cf2[_0x1dc332(0x1f3)]-0x1]||'';for(const _0x3195d4 of(_0x3830e3===null||_0x3830e3===void 0x0?void 0x0:_0x3830e3[_0x1dc332(0x1f7)])||[]){if(!_0x3195d4[_0x1dc332(0x205)])continue;const _0x312125=convertRouteToSwaggerFormat(_0x3195d4[_0x1dc332(0x205)]);!_0x4646e8[_0x1dc332(0x1e9)][_0x312125]&&(_0x4646e8[_0x1dc332(0x1e9)][_0x312125]={});if(!_0x4646e8[_0x1dc332(0x1e9)][_0x312125][_0x3195d4[_0x1dc332(0x1d7)]]){const {parameters:_0x58e5d8,requestBody:_0x5ec307,hasBody:_0x45cfbf}=buildParameters(_0x3195d4[_0x1dc332(0x1ad)]||[],_0x312125,_0x3195d4[_0x1dc332(0x1d7)]);_0x4646e8[_0x1dc332(0x1e9)][_0x312125][_0x3195d4[_0x1dc332(0x1d7)]]={'summary':_0x3195d4['summary'],'description':(_0x3195d4===null||_0x3195d4===void 0x0?void 0x0:_0x3195d4[_0x1dc332(0x20b)])||'','tags':_0x4d7188?[_0x4d7188]:[],'operationId':buildOperationId(_0x312125,_0x3195d4[_0x1dc332(0x1d7)],_0x126597),'parameters':_0x58e5d8,..._0x45cfbf&&{'requestBody':_0x5ec307},'responses':buildRouteResponse(_0x3195d4===null||_0x3195d4===void 0x0?void 0x0:_0x3195d4[_0x1dc332(0x1b1)])};}}}return _0x4646e8['tags']=Array[_0x1dc332(0x1b4)](_0x21a864[_0x1dc332(0x1fe)]())[_0x1dc332(0x1fa)](_0x5d6895=>{const _0x35007c=_0x1dc332;var _0x36e284;return((_0x36e284=_0x5d6895[_0x35007c(0x206)])===null||_0x36e284===void 0x0?void 0x0:_0x36e284[_0x35007c(0x1ba)]())&&_0x5d6895[_0x35007c(0x206)]!=='/';})['map'](_0x29fe11=>{const _0xf4db75=_0x1dc332;var _0x4365e5;return{'name':_0x29fe11[_0xf4db75(0x206)][_0xf4db75(0x1ba)](),'description':((_0x4365e5=_0x29fe11[_0xf4db75(0x20b)])===null||_0x4365e5===void 0x0?void 0x0:_0x4365e5[_0xf4db75(0x1ba)]())||_0x29fe11['name'][_0xf4db75(0x1ba)]()};})['sort']((_0x36314f,_0x5001b5)=>_0x36314f[_0x1dc332(0x206)][_0x1dc332(0x1bc)](_0x5001b5[_0x1dc332(0x206)])),_0x4646e8;}exports[a10_0x34bd07(0x1c1)]=getSwaggerJson;function buildTagHierarchy(_0x3007b7,_0x5ad4c2){const _0x41cbfe=a10_0x34bd07,_0x488b1f=(_0x5ad4c2===null||_0x5ad4c2===void 0x0?void 0x0:_0x5ad4c2['prefix'])||null,_0x84f1b0=(_0x5ad4c2===null||_0x5ad4c2===void 0x0?void 0x0:_0x5ad4c2['module'])||null,_0x2b112b=(_0x3007b7===null||_0x3007b7===void 0x0?void 0x0:_0x3007b7[_0x41cbfe(0x1ba)]())||'';if(!_0x2b112b||_0x2b112b==='/')return[];if(!_0x488b1f&&!_0x84f1b0)return[_0x2b112b];const _0x1e5bda=[];_0x488b1f&&_0x488b1f!=='/'&&_0x488b1f!==''&&_0x1e5bda['push'](..._0x488b1f['replace'](/^\/|\/$/g,'')[_0x41cbfe(0x1ec)]('/')[_0x41cbfe(0x1fa)](Boolean));if(_0x84f1b0&&_0x84f1b0!==''){const _0x1e65a0=_0x84f1b0[_0x41cbfe(0x1ba)]();!_0x1e5bda[_0x41cbfe(0x204)](_0x1e65a0)&&_0x1e5bda[_0x41cbfe(0x200)](_0x1e65a0);}let _0x4206f7=_0x2b112b;const _0x29e135=_0x1e5bda['join']('/');_0x29e135&&_0x4206f7[_0x41cbfe(0x204)](_0x29e135)&&(_0x4206f7=_0x4206f7[_0x41cbfe(0x1b9)](_0x4206f7[_0x41cbfe(0x1cb)](_0x29e135)+_0x29e135[_0x41cbfe(0x1f3)]));_0x4206f7=_0x4206f7[_0x41cbfe(0x1f4)](/^\/|\/$/g,'')['trim']();_0x4206f7&&_0x1e5bda[_0x41cbfe(0x200)](_0x4206f7);const _0x5b65a4=[];let _0x13ebac='';for(const _0x368057 of _0x1e5bda){_0x13ebac=_0x13ebac?_0x13ebac+'/'+_0x368057:_0x368057,_0x5b65a4[_0x41cbfe(0x200)](_0x13ebac);}return _0x5b65a4[_0x41cbfe(0x1f3)]>0x0?_0x5b65a4:[_0x2b112b];}function a10_0x1967(){const _0x4f6773=['root','min','默认服务器','2051bWMnQd','4yyaReY','body','接口文档','message','2796LCxGFL','title','paths','PATCH','defineProperty','split','search','key','multipart/form-data','2440062zGBvFW','array','custom','length','replace','errors','rules','routes','30620678DUYqXN','__esModule','filter','has','definitions','(((.+)+)+)+$','values','default','push','string','本接口文档由API自动解析生成','format','includes','route','name','附加数据,如分页信息','apply','date','max','description','toUpperCase','code','请求成功','返回数据','990885TJsjrW','integer','charAt','返回数据列表','request','10vDBFxp','match','总数量','response','错误码','maximum','from','schemes','分页参数','get','host','slice','trim','required','localeCompare','file','463455wDGCES','extraDefinitions','1.0.0','getSwaggerJson','错误码:\x20','properties','object','http','children','状态码,0表示成功,其他为错误码','application/json','some','28UMVwju','indexOf','POST','type','any','path','4502576QiWmqN','GET','query','19360ypTSoC','join','version','map','method','toString','set','forEach','3.0.0','#/components/schemas/ApiResponse','page','://'];a10_0x1967=function(){return _0x4f6773;};return a10_0x1967();}function addTagsToMap(_0x5384d3,_0x34a94f,_0x449ad0){const _0x4ff7fa=a10_0x34bd07;_0x34a94f[_0x4ff7fa(0x1da)]((_0x4d8d68,_0x19144e)=>{const _0x4aff57=_0x4ff7fa;if(!_0x4d8d68||_0x4d8d68==='/')return;!_0x5384d3[_0x4aff57(0x1fb)](_0x4d8d68)&&_0x5384d3['set'](_0x4d8d68,{'name':_0x4d8d68,'description':_0x19144e===_0x34a94f[_0x4aff57(0x1f3)]-0x1?_0x449ad0:_0x4d8d68});});}function buildOperationId(_0x1a0549,_0x45057d,_0xb04a0f){const _0x1c66e8=a10_0x34bd07,_0x42855d=_0x1a0549['split']('/')[_0x1c66e8(0x1fa)](Boolean)['map'](_0x394cf5=>{const _0x3cba02=_0x1c66e8,_0x4ad630=_0x394cf5[_0x3cba02(0x1af)](/(?<=\{)[^\/]+(?=\})/);return _0x4ad630?_0x4ad630[0x0]:_0x394cf5;})[_0x1c66e8(0x1fa)](_0x1002f8=>_0x1002f8[_0x1c66e8(0x1f4)](/[^a-zA-Z0-9]/g,'')),_0x4f9e37=_0x42855d[_0x1c66e8(0x1d6)](_0x40598b=>_0x40598b[_0x1c66e8(0x212)](0x0)[_0x1c66e8(0x20c)]()+_0x40598b[_0x1c66e8(0x1b9)](0x1))[_0x1c66e8(0x1d4)]('.'),_0x1b4b75=_0x4f9e37||_0x1c66e8(0x1df),_0x3d26e2=_0xb04a0f[_0x1c66e8(0x1b7)](_0x1b4b75)||0x0;return _0xb04a0f[_0x1c66e8(0x1d9)](_0x1b4b75,_0x3d26e2+0x1),_0x3d26e2>0x0?''+_0x1b4b75+(_0x45057d[_0x1c66e8(0x212)](0x0)[_0x1c66e8(0x20c)]()+_0x45057d['slice'](0x1)):_0x1b4b75;}function buildParameters(_0x538a86,_0x55297e,_0x36cc90=a10_0x34bd07(0x1d1)){const _0x2b43f9=a10_0x34bd07;var _0x239986;const _0x3646f5=[],_0x186cbd=[],_0x350ab8=[],_0x35d883=[_0x2b43f9(0x1cc),'PUT',_0x2b43f9(0x1ea)]['includes'](_0x36cc90['toUpperCase']()),_0x3cd968=_0x55297e[_0x2b43f9(0x1af)](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x84bb7b of _0x3cd968){_0x3646f5[_0x2b43f9(0x200)]({'name':_0x84bb7b,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x2b43f9(0x201)},'description':'路由参数:\x20'+_0x84bb7b});}for(const _0x2263f8 of _0x538a86){switch(_0x2263f8[_0x2b43f9(0x1cd)]){case _0x2b43f9(0x1bd):_0x350ab8[_0x2b43f9(0x200)](_0x2263f8);break;case _0x2b43f9(0x1d2):_0x3646f5['push']({'name':_0x2263f8['key'],'in':PARAM_IN_QUERY,'required':_0x2263f8[_0x2b43f9(0x1bb)]||![],'schema':normalizeTypeSchema(_0x2263f8,![]),'description':_0x2263f8['description']||_0x2263f8[_0x2b43f9(0x1e8)]||_0x2263f8[_0x2b43f9(0x1ee)]});break;case'path':break;case _0x2b43f9(0x1e4):_0x186cbd[_0x2b43f9(0x200)](_0x2263f8);break;default:if(((_0x239986=_0x2263f8[_0x2b43f9(0x1c6)])===null||_0x239986===void 0x0?void 0x0:_0x239986['length'])>0x0)_0x186cbd['push'](_0x2263f8);else _0x35d883?_0x186cbd['push'](_0x2263f8):_0x3646f5[_0x2b43f9(0x200)]({'name':_0x2263f8[_0x2b43f9(0x1ee)],'in':PARAM_IN_QUERY,'required':_0x2263f8[_0x2b43f9(0x1bb)]||![],'schema':normalizeTypeSchema(_0x2263f8,![]),'description':_0x2263f8[_0x2b43f9(0x20b)]||_0x2263f8[_0x2b43f9(0x1e8)]||_0x2263f8[_0x2b43f9(0x1ee)]});}}if(_0x350ab8[_0x2b43f9(0x1f3)]>0x0)return{'parameters':_0x3646f5,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x350ab8,..._0x186cbd])}},'required':!![]},'hasBody':!![]};if(_0x186cbd['length']>0x0){const _0x147af2=_0x186cbd['filter'](_0xe42402=>_0xe42402[_0x2b43f9(0x1bb)])['map'](_0x1cad2a=>_0x1cad2a[_0x2b43f9(0x1ee)]),_0xac637c=buildProperties(_0x186cbd,![]);return{'parameters':_0x3646f5,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':'object','properties':_0xac637c,..._0x147af2['length']>0x0&&{'required':_0x147af2}}}},'required':_0x186cbd[_0x2b43f9(0x1c9)](_0x1c564c=>_0x1c564c['required'])},'hasBody':!![]};}return{'parameters':_0x3646f5,'hasBody':![]};}function buildMultipartFormDataSchema(_0x4768e9){const _0x118f3a=a10_0x34bd07,_0x16980b={},_0x373cba=[];for(const _0x4421a8 of _0x4768e9){const _0x2584bc=_0x4421a8[_0x118f3a(0x1cd)]===_0x118f3a(0x1bd);_0x16980b[_0x4421a8[_0x118f3a(0x1ee)]]=_0x2584bc?{'type':_0x118f3a(0x201),'format':'binary'}:normalizeTypeSchema(_0x4421a8,![]);if(_0x4421a8['required'])_0x373cba[_0x118f3a(0x200)](_0x4421a8[_0x118f3a(0x1ee)]);}const _0x4b0c89={'type':_0x118f3a(0x1c4),'properties':_0x16980b};if(_0x373cba['length']>0x0)_0x4b0c89[_0x118f3a(0x1bb)]=_0x373cba;return _0x4b0c89;}function buildRouteResponse(_0x2c8ad5){const _0x1b218a=()=>{const _0x18a7c9=a10_0xed20;var _0x536844;if(!_0x2c8ad5)return{'description':'请求成功','content':{[MEDIA_TYPE_JSON]:{'schema':{'$ref':_0x18a7c9(0x1dc)}}}};const _0x2f5506=_0x2c8ad5[_0x18a7c9(0x203)]||_0x18a7c9(0x1ff),_0x48ff5e=[];return _0x2f5506===_0x18a7c9(0x1f2)?_0x48ff5e[_0x18a7c9(0x200)]({'type':_0x18a7c9(0x1c4),'properties':buildProperties(_0x2c8ad5[_0x18a7c9(0x1c3)]||[],!![])}):_0x48ff5e[_0x18a7c9(0x200)](buildDefaultResponseSchema(_0x2c8ad5)),((_0x536844=_0x2c8ad5[_0x18a7c9(0x1f5)])===null||_0x536844===void 0x0?void 0x0:_0x536844[_0x18a7c9(0x1f3)])>0x0&&_0x48ff5e[_0x18a7c9(0x200)](..._0x2c8ad5[_0x18a7c9(0x1f5)]['map'](_0x5ed47f=>({'type':_0x18a7c9(0x1c4),'properties':{'code':{'type':'integer','description':_0x18a7c9(0x1c2)+_0x5ed47f[_0x18a7c9(0x20d)]},'message':{'type':_0x18a7c9(0x201),'description':_0x5ed47f[_0x18a7c9(0x1e6)]}},'example':{'code':_0x5ed47f['code'],'message':_0x5ed47f[_0x18a7c9(0x1e6)]}}))),{'description':_0x2c8ad5[_0x18a7c9(0x20b)]||_0x18a7c9(0x20e),'content':{[MEDIA_TYPE_JSON]:{'schema':_0x48ff5e['length']===0x1?_0x48ff5e[0x0]:{'oneOf':_0x48ff5e}}}};};return{'200':_0x1b218a()};}function buildDefaultResponseSchema(_0x1c6a2f){const _0x36707e=a10_0x34bd07,_0x1bef56=buildProperties(_0x1c6a2f['properties']||[],!![]);if(_0x1c6a2f[_0x36707e(0x1cd)]===_0x36707e(0x1dd))return{'type':_0x36707e(0x1c4),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x36707e(0x1f1),'items':_0x1bef56,'description':_0x36707e(0x1ac)},'extra':{'type':_0x36707e(0x1c4),'properties':{'pageinfo':{'type':_0x36707e(0x1c4),'description':_0x36707e(0x1b6)},'pagetotal':{'type':_0x36707e(0x211),'description':_0x36707e(0x1b0)}}}},'required':[_0x36707e(0x20d)]};if(_0x1c6a2f['type']===_0x36707e(0x1f1))return{'type':_0x36707e(0x1c4),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x36707e(0x1f1),'items':_0x1bef56,'description':_0x36707e(0x1ac)}},'required':[_0x36707e(0x20d)]};return{'type':_0x36707e(0x1c4),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x1bef56},'required':[_0x36707e(0x20d)]};}function normalizeTypeSchema(_0x4fe16f,_0x307a34=![]){const _0xa9877a=a10_0x34bd07;var _0x52e768,_0x2f9925,_0x373c53,_0x26b314;const _0x249444=_0x4fe16f['type']||_0xa9877a(0x201),_0x107c14=_0x307a34?_0x4fe16f[_0xa9877a(0x20b)]||_0x4fe16f[_0xa9877a(0x1ee)]:_0x4fe16f[_0xa9877a(0x20b)]||_0x4fe16f[_0xa9877a(0x1e8)]||_0x4fe16f[_0xa9877a(0x1ee)];if(_0x249444===_0xa9877a(0x209)){const _0x2b7fba={'type':_0xa9877a(0x201),'format':_0xa9877a(0x209),'description':_0x107c14};return _0x4fe16f['default']!==undefined&&_0x4fe16f[_0xa9877a(0x1ff)]!==''&&(_0x2b7fba[_0xa9877a(0x1ff)]=_0x4fe16f['default']),_0x2b7fba;}if(_0x249444===_0xa9877a(0x1f1)){const _0xfd213e=((_0x52e768=_0x4fe16f[_0xa9877a(0x1c6)])===null||_0x52e768===void 0x0?void 0x0:_0x52e768[_0xa9877a(0x1f3)])>0x0?buildProperties(_0x4fe16f['children'],_0x307a34):{'type':'string'};return{'type':_0xa9877a(0x1f1),'items':_0xfd213e,'description':_0x107c14};}if(_0x249444===_0xa9877a(0x1c4)){const _0xe42a63=((_0x2f9925=_0x4fe16f['children'])===null||_0x2f9925===void 0x0?void 0x0:_0x2f9925[_0xa9877a(0x1f3)])>0x0?buildProperties(_0x4fe16f['children'],_0x307a34):{};return{'type':_0xa9877a(0x1c4),'properties':_0xe42a63,'description':_0x107c14};}const _0x28463c={'type':_0x249444,'description':_0x107c14};return _0x4fe16f[_0xa9877a(0x1ff)]!==undefined&&_0x4fe16f[_0xa9877a(0x1ff)]!==''&&(_0x28463c[_0xa9877a(0x1ff)]=_0x4fe16f[_0xa9877a(0x1ff)]),((_0x373c53=_0x4fe16f[_0xa9877a(0x1f6)])===null||_0x373c53===void 0x0?void 0x0:_0x373c53['min'])!==undefined&&(_0x28463c['minimum']=_0x4fe16f[_0xa9877a(0x1f6)][_0xa9877a(0x1e0)]),((_0x26b314=_0x4fe16f[_0xa9877a(0x1f6)])===null||_0x26b314===void 0x0?void 0x0:_0x26b314[_0xa9877a(0x20a)])!==undefined&&(_0x28463c[_0xa9877a(0x1b3)]=_0x4fe16f[_0xa9877a(0x1f6)][_0xa9877a(0x20a)]),_0x28463c;}function buildProperties(_0x3e440b,_0x54ff45=![]){const _0x1135a1=a10_0x34bd07;if(!_0x3e440b||_0x3e440b[_0x1135a1(0x1f3)]===0x0)return{};const _0x51a37b={};for(const _0x456bf8 of _0x3e440b){_0x51a37b[_0x456bf8['key']]=normalizeTypeSchema(_0x456bf8,_0x54ff45);}return _0x51a37b;}
|
|
1
|
+
const a10_0x4d0726=a10_0x5732;(function(_0xcef02a,_0x59bb43){const _0xb6540=a10_0x5732,_0x28a125=_0xcef02a();while(!![]){try{const _0x2e5a6c=parseInt(_0xb6540(0x112))/0x1*(parseInt(_0xb6540(0xc0))/0x2)+parseInt(_0xb6540(0xcf))/0x3+parseInt(_0xb6540(0xba))/0x4+parseInt(_0xb6540(0x111))/0x5*(parseInt(_0xb6540(0xb5))/0x6)+parseInt(_0xb6540(0xc5))/0x7*(parseInt(_0xb6540(0xd4))/0x8)+-parseInt(_0xb6540(0x117))/0x9+-parseInt(_0xb6540(0xbd))/0xa;if(_0x2e5a6c===_0x59bb43)break;else _0x28a125['push'](_0x28a125['shift']());}catch(_0x3c2e9f){_0x28a125['push'](_0x28a125['shift']());}}}(a10_0x32d1,0xefc08));const a10_0x5e687c=(function(){let _0x23e5f0=!![];return function(_0x39240e,_0x4e1c31){const _0x3124e9=_0x23e5f0?function(){const _0xf45b90=a10_0x5732;if(_0x4e1c31){const _0x318ecc=_0x4e1c31[_0xf45b90(0x110)](_0x39240e,arguments);return _0x4e1c31=null,_0x318ecc;}}:function(){};return _0x23e5f0=![],_0x3124e9;};}()),a10_0x527fc2=a10_0x5e687c(this,function(){const _0x548fc8=a10_0x5732;return a10_0x527fc2['toString']()[_0x548fc8(0xfa)](_0x548fc8(0xf8))[_0x548fc8(0x106)]()['constructor'](a10_0x527fc2)[_0x548fc8(0xfa)](_0x548fc8(0xf8));});a10_0x527fc2();'use strict';Object[a10_0x4d0726(0xb3)](exports,a10_0x4d0726(0xb7),{'value':!![]}),exports['getSwaggerJson']=void 0x0;const getRoutes_1=require('./getRoutes'),MEDIA_TYPE_JSON=a10_0x4d0726(0x10f),MEDIA_TYPE_FORM_DATA=a10_0x4d0726(0xc7),PARAM_IN_PATH='path',PARAM_IN_QUERY=a10_0x4d0726(0xe3);function a10_0x5732(_0x16bbc2,_0x171014){const _0x4ca1eb=a10_0x32d1();return a10_0x5732=function(_0x527fc2,_0x5e687c){_0x527fc2=_0x527fc2-0xb1;let _0x32d12a=_0x4ca1eb[_0x527fc2];return _0x32d12a;},a10_0x5732(_0x16bbc2,_0x171014);}function convertRouteToSwaggerFormat(_0x104db4){return _0x104db4['replace'](/:([^\/]+)/g,'{$1}');}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x4d0726(0xc3),'properties':{'code':{'type':a10_0x4d0726(0xcd),'description':a10_0x4d0726(0xb6)},'message':{'type':a10_0x4d0726(0xf5),'description':a10_0x4d0726(0xdb)},'data':{'type':a10_0x4d0726(0xef),'description':a10_0x4d0726(0xb1)},'extra':{'type':'any','description':'附加数据,如分页信息'}},'required':[a10_0x4d0726(0xdf)]},'ApiResponseList':{'type':'object','properties':{'code':{'type':a10_0x4d0726(0xcd),'description':a10_0x4d0726(0xb6)},'message':{'type':a10_0x4d0726(0xf5),'description':a10_0x4d0726(0xdb)},'data':{'type':'array','items':{'type':a10_0x4d0726(0xef)},'description':a10_0x4d0726(0xe5)},'extra':{'type':a10_0x4d0726(0xc3),'properties':{'pageinfo':{'type':a10_0x4d0726(0xef),'description':a10_0x4d0726(0xfb)},'pagetotal':{'type':a10_0x4d0726(0xcd),'description':a10_0x4d0726(0x10d)}},'description':a10_0x4d0726(0x11b)}},'required':[a10_0x4d0726(0xdf)]},'ApiError':{'type':a10_0x4d0726(0xc3),'properties':{'code':{'type':'integer','description':a10_0x4d0726(0x10c)},'message':{'type':a10_0x4d0726(0xf5),'description':'错误信息'}},'required':[a10_0x4d0726(0xdf),a10_0x4d0726(0xb8)]}},BASE_RESPONSE_PROPERTIES={'code':{'type':'integer','description':a10_0x4d0726(0xdc)}};function getSwaggerJson(_0x5073f0={'prefix':'/','module':![]}){const _0x1115f6=a10_0x4d0726,_0x2dc786=(0x0,getRoutes_1[_0x1115f6(0xfd)])(_0x5073f0),_0x19864c=new Map(),_0x1646db=new Map(),_0x36f20d=_0x5073f0[_0x1115f6(0xd0)]?_0x5073f0[_0x1115f6(0xd0)]:{...DEFAULT_DEFINITIONS,..._0x5073f0[_0x1115f6(0xb2)]||{}},_0x1d4616=_0x5073f0['host']||_0x1115f6(0x105),_0x18b90e=_0x5073f0[_0x1115f6(0xd8)]||'/',_0x4f9ad3=(_0x5073f0[_0x1115f6(0xeb)]||[_0x1115f6(0xd2)])[0x0],_0x475c3f={'openapi':_0x1115f6(0xe0),'info':{'title':_0x5073f0[_0x1115f6(0xdd)]||_0x1115f6(0xfe),'description':_0x5073f0['description']||_0x1115f6(0x104),'version':_0x5073f0['version']||_0x1115f6(0x11d)},'servers':[{'url':_0x4f9ad3+_0x1115f6(0xcc)+_0x1d4616+_0x18b90e,'description':_0x1115f6(0xd3)}],'tags':[],'paths':{},'components':{'schemas':_0x36f20d}};for(const _0xa83ee0 in _0x2dc786){const _0x471c2d=_0x2dc786[_0xa83ee0],_0xffc274=(_0x471c2d===null||_0x471c2d===void 0x0?void 0x0:_0x471c2d[_0x1115f6(0xc2)])||(_0x471c2d===null||_0x471c2d===void 0x0?void 0x0:_0x471c2d[_0x1115f6(0xc9)])||_0x1115f6(0xf1),_0x26e632=buildTagHierarchy(_0xa83ee0,_0x471c2d);addTagsToMap(_0x19864c,_0x26e632,_0xffc274);const _0x318d69=_0x26e632[_0x26e632['length']-0x1]||'';for(const _0x24280f of(_0x471c2d===null||_0x471c2d===void 0x0?void 0x0:_0x471c2d[_0x1115f6(0xec)])||[]){if(!_0x24280f[_0x1115f6(0x107)])continue;const _0x5298af=convertRouteToSwaggerFormat(_0x24280f[_0x1115f6(0x107)]);!_0x475c3f[_0x1115f6(0xde)][_0x5298af]&&(_0x475c3f['paths'][_0x5298af]={});if(!_0x475c3f[_0x1115f6(0xde)][_0x5298af][_0x24280f[_0x1115f6(0xc1)]]){const {parameters:_0xa711b2,requestBody:_0x2167cb,hasBody:_0x6edec8}=buildParameters(_0x24280f[_0x1115f6(0xf6)]||[],_0x5298af,_0x24280f[_0x1115f6(0xc1)]);_0x475c3f[_0x1115f6(0xde)][_0x5298af][_0x24280f[_0x1115f6(0xc1)]]={'summary':_0x24280f['summary'],'description':(_0x24280f===null||_0x24280f===void 0x0?void 0x0:_0x24280f[_0x1115f6(0xc2)])||'','tags':_0x318d69?[_0x318d69]:[],'operationId':buildOperationId(_0x5298af,_0x24280f[_0x1115f6(0xc1)],_0x1646db),'parameters':_0xa711b2,..._0x6edec8&&{'requestBody':_0x2167cb},'responses':buildRouteResponse(_0x24280f===null||_0x24280f===void 0x0?void 0x0:_0x24280f[_0x1115f6(0xda)])};}}}return _0x475c3f[_0x1115f6(0x10b)]=Array[_0x1115f6(0xbe)](_0x19864c[_0x1115f6(0xe9)]())[_0x1115f6(0xe7)](_0x1a47ec=>{const _0x325ec9=_0x1115f6;var _0x40a5e9;return((_0x40a5e9=_0x1a47ec[_0x325ec9(0xc6)])===null||_0x40a5e9===void 0x0?void 0x0:_0x40a5e9[_0x325ec9(0xe2)]())&&_0x1a47ec[_0x325ec9(0xc6)]!=='/';})['map'](_0xe171df=>{const _0x27c9d7=_0x1115f6;var _0x4848ae;return{'name':_0xe171df[_0x27c9d7(0xc6)][_0x27c9d7(0xe2)](),'description':((_0x4848ae=_0xe171df[_0x27c9d7(0xc2)])===null||_0x4848ae===void 0x0?void 0x0:_0x4848ae[_0x27c9d7(0xe2)]())||_0xe171df[_0x27c9d7(0xc6)][_0x27c9d7(0xe2)]()};})[_0x1115f6(0xce)]((_0x207787,_0x4267ab)=>_0x207787[_0x1115f6(0xc6)][_0x1115f6(0xd1)](_0x4267ab[_0x1115f6(0xc6)])),_0x475c3f;}exports[a10_0x4d0726(0x10a)]=getSwaggerJson;function buildTagHierarchy(_0x3f825,_0x53c3cd){const _0xb1cc7=a10_0x4d0726,_0x539f87=(_0x53c3cd===null||_0x53c3cd===void 0x0?void 0x0:_0x53c3cd[_0xb1cc7(0x101)])||null,_0x38287c=(_0x53c3cd===null||_0x53c3cd===void 0x0?void 0x0:_0x53c3cd[_0xb1cc7(0xd9)])||null,_0x52c949=(_0x3f825===null||_0x3f825===void 0x0?void 0x0:_0x3f825[_0xb1cc7(0xe2)]())||'';if(!_0x52c949||_0x52c949==='/')return[];if(!_0x539f87&&!_0x38287c)return[_0x52c949];const _0x195291=[];_0x539f87&&_0x539f87!=='/'&&_0x539f87!==''&&_0x195291['push'](..._0x539f87['replace'](/^\/|\/$/g,'')[_0xb1cc7(0xe4)]('/')[_0xb1cc7(0xe7)](Boolean));if(_0x38287c&&_0x38287c!==''){const _0x5a9f6b=_0x38287c['trim']();!_0x195291[_0xb1cc7(0xe8)](_0x5a9f6b)&&_0x195291[_0xb1cc7(0x11a)](_0x5a9f6b);}let _0x5422c6=_0x52c949;const _0x4aef37=_0x195291[_0xb1cc7(0xca)]('/');_0x4aef37&&_0x5422c6['includes'](_0x4aef37)&&(_0x5422c6=_0x5422c6[_0xb1cc7(0x103)](_0x5422c6[_0xb1cc7(0xf4)](_0x4aef37)+_0x4aef37['length']));_0x5422c6=_0x5422c6[_0xb1cc7(0xbc)](/^\/|\/$/g,'')[_0xb1cc7(0xe2)]();_0x5422c6&&_0x195291[_0xb1cc7(0x11a)](_0x5422c6);const _0x29a451=[];let _0x4314fc='';for(const _0x47b95c of _0x195291){_0x4314fc=_0x4314fc?_0x4314fc+'/'+_0x47b95c:_0x47b95c,_0x29a451[_0xb1cc7(0x11a)](_0x4314fc);}return _0x29a451[_0xb1cc7(0x113)]>0x0?_0x29a451:[_0x52c949];}function a10_0x32d1(){const _0x2401b9=['has','11857122qAKHYU','root','max','push','附加数据,如分页信息','PUT','1.0.0','get','返回数据','extraDefinitions','defineProperty','路由参数:\x20','5419674gNuuSq','状态码,0表示成功,其他为错误码','__esModule','message','children','3804444Xmhjcq','minimum','replace','16221130XUSPJx','from','map','90pNHNBz','method','description','object','array','7gVQtOf','name','multipart/form-data','file','summary','join','format','://','integer','sort','211656YjBIgq','definitions','localeCompare','http','默认服务器','6214392EnsRnd','charAt','path','PATCH','basePath','module','response','提示信息','状态码,0表示成功','title','paths','code','3.0.0','#/components/schemas/ApiResponse','trim','query','split','返回数据列表','rules','filter','includes','values','set','schemes','routes','body','GET','any','binary','default','toUpperCase','custom','indexOf','string','request','required','(((.+)+)+)+$','min','search','分页参数','page','getRoutes','接口文档','type','date','prefix','match','slice','本接口文档由API自动解析生成','localhost:7001','toString','route','key','forEach','getSwaggerJson','tags','错误码','总数量','properties','application/json','apply','10UMjCzi','7035KJeSJi','length','maximum','请求成功'];a10_0x32d1=function(){return _0x2401b9;};return a10_0x32d1();}function addTagsToMap(_0x150f8d,_0x4ea424,_0x3a85e3){const _0x269f74=a10_0x4d0726;_0x4ea424[_0x269f74(0x109)]((_0x135562,_0x426dec)=>{const _0x27d3c1=_0x269f74;if(!_0x135562||_0x135562==='/')return;!_0x150f8d[_0x27d3c1(0x116)](_0x135562)&&_0x150f8d[_0x27d3c1(0xea)](_0x135562,{'name':_0x135562,'description':_0x426dec===_0x4ea424[_0x27d3c1(0x113)]-0x1?_0x3a85e3:_0x135562});});}function buildOperationId(_0x473550,_0x4630a7,_0xda3281){const _0x33bc08=a10_0x4d0726,_0x49620c=_0x473550['split']('/')['filter'](Boolean)[_0x33bc08(0xbf)](_0x31565b=>{const _0x210202=_0x33bc08,_0x366535=_0x31565b[_0x210202(0x102)](/(?<=\{)[^\/]+(?=\})/);return _0x366535?_0x366535[0x0]:_0x31565b;})['filter'](_0x2eb076=>_0x2eb076[_0x33bc08(0xbc)](/[^a-zA-Z0-9]/g,'')),_0x5cfc96=_0x49620c['map'](_0x3e20cc=>_0x3e20cc[_0x33bc08(0xd5)](0x0)[_0x33bc08(0xf2)]()+_0x3e20cc[_0x33bc08(0x103)](0x1))[_0x33bc08(0xca)]('.'),_0x42ebc5=_0x5cfc96||_0x33bc08(0x118),_0x450220=_0xda3281[_0x33bc08(0x11e)](_0x42ebc5)||0x0;return _0xda3281[_0x33bc08(0xea)](_0x42ebc5,_0x450220+0x1),_0x450220>0x0?''+_0x42ebc5+(_0x4630a7['charAt'](0x0)[_0x33bc08(0xf2)]()+_0x4630a7['slice'](0x1)):_0x42ebc5;}function buildParameters(_0x312fcf,_0x3e4312,_0x22158a=a10_0x4d0726(0xee)){const _0x3e3e93=a10_0x4d0726;var _0x49715e;const _0x5bf086=[],_0x50f649=[],_0x40ab40=[],_0x351fef=['POST',_0x3e3e93(0x11c),_0x3e3e93(0xd7)]['includes'](_0x22158a[_0x3e3e93(0xf2)]()),_0x119489=_0x3e4312['match'](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x5033ec of _0x119489){_0x5bf086[_0x3e3e93(0x11a)]({'name':_0x5033ec,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x3e3e93(0xf5)},'description':_0x3e3e93(0xb4)+_0x5033ec});}for(const _0x2df4c7 of _0x312fcf){switch(_0x2df4c7[_0x3e3e93(0xff)]){case _0x3e3e93(0xc8):_0x40ab40['push'](_0x2df4c7);break;case _0x3e3e93(0xe3):_0x5bf086['push']({'name':_0x2df4c7['key'],'in':PARAM_IN_QUERY,'required':_0x2df4c7[_0x3e3e93(0xf7)]||![],'schema':normalizeTypeSchema(_0x2df4c7,![]),'description':_0x2df4c7[_0x3e3e93(0xc2)]||_0x2df4c7[_0x3e3e93(0xdd)]||_0x2df4c7[_0x3e3e93(0x108)]});break;case _0x3e3e93(0xd6):break;case _0x3e3e93(0xed):_0x50f649[_0x3e3e93(0x11a)](_0x2df4c7);break;default:if(((_0x49715e=_0x2df4c7[_0x3e3e93(0xb9)])===null||_0x49715e===void 0x0?void 0x0:_0x49715e[_0x3e3e93(0x113)])>0x0)_0x50f649[_0x3e3e93(0x11a)](_0x2df4c7);else _0x351fef?_0x50f649[_0x3e3e93(0x11a)](_0x2df4c7):_0x5bf086['push']({'name':_0x2df4c7['key'],'in':PARAM_IN_QUERY,'required':_0x2df4c7[_0x3e3e93(0xf7)]||![],'schema':normalizeTypeSchema(_0x2df4c7,![]),'description':_0x2df4c7[_0x3e3e93(0xc2)]||_0x2df4c7['title']||_0x2df4c7['key']});}}if(_0x40ab40[_0x3e3e93(0x113)]>0x0)return{'parameters':_0x5bf086,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x40ab40,..._0x50f649])}},'required':!![]},'hasBody':!![]};if(_0x50f649[_0x3e3e93(0x113)]>0x0){const _0x31faed=_0x50f649[_0x3e3e93(0xe7)](_0x4c0b2a=>_0x4c0b2a[_0x3e3e93(0xf7)])[_0x3e3e93(0xbf)](_0x293231=>_0x293231[_0x3e3e93(0x108)]),_0x4ef9bb=buildProperties(_0x50f649,![]);return{'parameters':_0x5bf086,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x3e3e93(0xc3),'properties':_0x4ef9bb,..._0x31faed[_0x3e3e93(0x113)]>0x0&&{'required':_0x31faed}}}},'required':_0x50f649['some'](_0x488e4b=>_0x488e4b['required'])},'hasBody':!![]};}return{'parameters':_0x5bf086,'hasBody':![]};}function buildMultipartFormDataSchema(_0x141fe3){const _0x53fd62=a10_0x4d0726,_0x4a0759={},_0x4b6729=[];for(const _0x4fb57d of _0x141fe3){const _0x1a7085=_0x4fb57d[_0x53fd62(0xff)]===_0x53fd62(0xc8);_0x4a0759[_0x4fb57d['key']]=_0x1a7085?{'type':_0x53fd62(0xf5),'format':_0x53fd62(0xf0)}:normalizeTypeSchema(_0x4fb57d,![]);if(_0x4fb57d['required'])_0x4b6729[_0x53fd62(0x11a)](_0x4fb57d[_0x53fd62(0x108)]);}const _0x45c481={'type':_0x53fd62(0xc3),'properties':_0x4a0759};if(_0x4b6729[_0x53fd62(0x113)]>0x0)_0x45c481[_0x53fd62(0xf7)]=_0x4b6729;return _0x45c481;}function buildRouteResponse(_0x4e8e3b){const _0xab6048=()=>{const _0x405421=a10_0x5732;var _0xf6b36d;if(!_0x4e8e3b)return{'description':_0x405421(0x115),'content':{[MEDIA_TYPE_JSON]:{'schema':{'$ref':_0x405421(0xe1)}}}};const _0x2ef6b8=_0x4e8e3b[_0x405421(0xcb)]||'default',_0x3cfb92=[];return _0x2ef6b8===_0x405421(0xf3)?_0x3cfb92['push']({'type':_0x405421(0xc3),'properties':buildProperties(_0x4e8e3b[_0x405421(0x10e)]||[],!![])}):_0x3cfb92[_0x405421(0x11a)](buildDefaultResponseSchema(_0x4e8e3b)),((_0xf6b36d=_0x4e8e3b['errors'])===null||_0xf6b36d===void 0x0?void 0x0:_0xf6b36d['length'])>0x0&&_0x3cfb92[_0x405421(0x11a)](..._0x4e8e3b['errors']['map'](_0x49b8f9=>({'type':_0x405421(0xc3),'properties':{'code':{'type':_0x405421(0xcd),'description':'错误码:\x20'+_0x49b8f9[_0x405421(0xdf)]},'message':{'type':_0x405421(0xf5),'description':_0x49b8f9[_0x405421(0xb8)]}},'example':{'code':_0x49b8f9[_0x405421(0xdf)],'message':_0x49b8f9['message']}}))),{'description':_0x4e8e3b[_0x405421(0xc2)]||_0x405421(0x115),'content':{[MEDIA_TYPE_JSON]:{'schema':_0x3cfb92[_0x405421(0x113)]===0x1?_0x3cfb92[0x0]:{'oneOf':_0x3cfb92}}}};};return{'200':_0xab6048()};}function buildDefaultResponseSchema(_0x121a6d){const _0x1da56e=a10_0x4d0726,_0x2874b1=buildProperties(_0x121a6d[_0x1da56e(0x10e)]||[],!![]);if(_0x121a6d[_0x1da56e(0xff)]===_0x1da56e(0xfc))return{'type':'object','properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x1da56e(0xc4),'items':_0x2874b1,'description':_0x1da56e(0xe5)},'extra':{'type':_0x1da56e(0xc3),'properties':{'pageinfo':{'type':'object','description':_0x1da56e(0xfb)},'pagetotal':{'type':_0x1da56e(0xcd),'description':'总数量'}}}},'required':[_0x1da56e(0xdf)]};if(_0x121a6d[_0x1da56e(0xff)]==='array')return{'type':_0x1da56e(0xc3),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x1da56e(0xc4),'items':_0x2874b1,'description':_0x1da56e(0xe5)}},'required':[_0x1da56e(0xdf)]};return{'type':_0x1da56e(0xc3),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x2874b1},'required':['code']};}function normalizeTypeSchema(_0x574871,_0x1b7a41=![]){const _0xc90596=a10_0x4d0726;var _0x1d9724,_0x6e19a1,_0x2eaeb8,_0x11e6b8;const _0x283694=_0x574871['type']||_0xc90596(0xf5),_0x2e4dc1=_0x1b7a41?_0x574871[_0xc90596(0xc2)]||_0x574871[_0xc90596(0x108)]:_0x574871[_0xc90596(0xc2)]||_0x574871[_0xc90596(0xdd)]||_0x574871[_0xc90596(0x108)];if(_0x283694==='date'){const _0x23ad98={'type':_0xc90596(0xf5),'format':_0xc90596(0x100),'description':_0x2e4dc1};return _0x574871[_0xc90596(0xf1)]!==undefined&&_0x574871[_0xc90596(0xf1)]!==''&&(_0x23ad98[_0xc90596(0xf1)]=_0x574871[_0xc90596(0xf1)]),_0x23ad98;}if(_0x283694===_0xc90596(0xc4)){const _0x41074a=((_0x1d9724=_0x574871[_0xc90596(0xb9)])===null||_0x1d9724===void 0x0?void 0x0:_0x1d9724['length'])>0x0?buildProperties(_0x574871[_0xc90596(0xb9)],_0x1b7a41):{'type':_0xc90596(0xf5)};return{'type':_0xc90596(0xc4),'items':_0x41074a,'description':_0x2e4dc1};}if(_0x283694===_0xc90596(0xc3)){const _0x9c624d=((_0x6e19a1=_0x574871[_0xc90596(0xb9)])===null||_0x6e19a1===void 0x0?void 0x0:_0x6e19a1[_0xc90596(0x113)])>0x0?buildProperties(_0x574871['children'],_0x1b7a41):{};return{'type':'object','properties':_0x9c624d,'description':_0x2e4dc1};}const _0x2b75f0={'type':_0x283694,'description':_0x2e4dc1};return _0x574871[_0xc90596(0xf1)]!==undefined&&_0x574871['default']!==''&&(_0x2b75f0[_0xc90596(0xf1)]=_0x574871[_0xc90596(0xf1)]),((_0x2eaeb8=_0x574871['rules'])===null||_0x2eaeb8===void 0x0?void 0x0:_0x2eaeb8[_0xc90596(0xf9)])!==undefined&&(_0x2b75f0[_0xc90596(0xbb)]=_0x574871['rules']['min']),((_0x11e6b8=_0x574871['rules'])===null||_0x11e6b8===void 0x0?void 0x0:_0x11e6b8['max'])!==undefined&&(_0x2b75f0[_0xc90596(0x114)]=_0x574871[_0xc90596(0xe6)][_0xc90596(0x119)]),_0x2b75f0;}function buildProperties(_0x4fb811,_0x1c6fd3=![]){const _0x243c57=a10_0x4d0726;if(!_0x4fb811||_0x4fb811[_0x243c57(0x113)]===0x0)return{};const _0x464af4={};for(const _0x3a459b of _0x4fb811){_0x464af4[_0x3a459b[_0x243c57(0x108)]]=normalizeTypeSchema(_0x3a459b,_0x1c6fd3);}return _0x464af4;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a11_0x271344=a11_0x2e33;(function(_0x3c4c42,_0x2545cf){var _0x42609f=a11_0x2e33,_0x13e282=_0x3c4c42();while(!![]){try{var _0x454e5c=parseInt(_0x42609f(0xd5))/0x1*(-parseInt(_0x42609f(0xb2))/0x2)+-parseInt(_0x42609f(0xc3))/0x3+parseInt(_0x42609f(0xb0))/0x4*(-parseInt(_0x42609f(0xcd))/0x5)+-parseInt(_0x42609f(0xd2))/0x6*(-parseInt(_0x42609f(0xa3))/0x7)+-parseInt(_0x42609f(0xca))/0x8*(-parseInt(_0x42609f(0xb1))/0x9)+-parseInt(_0x42609f(0xdd))/0xa*(-parseInt(_0x42609f(0xa8))/0xb)+-parseInt(_0x42609f(0xb6))/0xc*(-parseInt(_0x42609f(0xd6))/0xd);if(_0x454e5c===_0x2545cf)break;else _0x13e282['push'](_0x13e282['shift']());}catch(_0x210216){_0x13e282['push'](_0x13e282['shift']());}}}(a11_0x32dd,0x419fe));var a11_0x83ca10=(function(){var _0x473a1b=!![];return function(_0xd3423f,_0x47642c){var _0x3f6f1=_0x473a1b?function(){if(_0x47642c){var _0x216a30=_0x47642c['apply'](_0xd3423f,arguments);return _0x47642c=null,_0x216a30;}}:function(){};return _0x473a1b=![],_0x3f6f1;};}()),a11_0xeeeeed=a11_0x83ca10(this,function(){var _0x54ece4=a11_0x2e33;return a11_0xeeeeed[_0x54ece4(0xb3)]()[_0x54ece4(0xbb)]('(((.+)+)+)+$')[_0x54ece4(0xb3)]()[_0x54ece4(0xda)](a11_0xeeeeed)[_0x54ece4(0xbb)](_0x54ece4(0xcc));});a11_0xeeeeed();'use strict';var __createBinding=this&&this[a11_0x271344(0xae)]||(Object['create']?function(_0x1dbe04,_0x167826,_0x3f7f28,_0x2d8882){var _0x2f2549=a11_0x271344;if(_0x2d8882===undefined)_0x2d8882=_0x3f7f28;var _0x1b94dd=Object[_0x2f2549(0xdb)](_0x167826,_0x3f7f28);(!_0x1b94dd||(_0x2f2549(0xd3)in _0x1b94dd?!_0x167826[_0x2f2549(0x9e)]:_0x1b94dd[_0x2f2549(0xc7)]||_0x1b94dd['configurable']))&&(_0x1b94dd={'enumerable':!![],'get':function(){return _0x167826[_0x3f7f28];}}),Object[_0x2f2549(0xab)](_0x1dbe04,_0x2d8882,_0x1b94dd);}:function(_0x162166,_0x5bf04d,_0x29f581,_0x3ee9f6){if(_0x3ee9f6===undefined)_0x3ee9f6=_0x29f581;_0x162166[_0x3ee9f6]=_0x5bf04d[_0x29f581];}),__exportStar=this&&this[a11_0x271344(0xa7)]||function(_0xe1a775,_0x5ca961){var _0x563882=a11_0x271344;for(var _0xa6b789 in _0xe1a775)if(_0xa6b789!==_0x563882(0xb8)&&!Object[_0x563882(0xd7)][_0x563882(0xb7)]['call'](_0x5ca961,_0xa6b789))__createBinding(_0x5ca961,_0xe1a775,_0xa6b789);};Object[a11_0x271344(0xab)](exports,a11_0x271344(0x9e),{'value':!![]}),exports[a11_0x271344(0x9a)]=exports[a11_0x271344(0xa1)]=exports[a11_0x271344(0xd4)]=exports[a11_0x271344(0xb9)]=exports[a11_0x271344(0x9c)]=exports[a11_0x271344(0xbd)]=exports[a11_0x271344(0xaa)]=exports['Config']=exports[a11_0x271344(0xbc)]=exports[a11_0x271344(0x9b)]=exports[a11_0x271344(0xba)]=exports[a11_0x271344(0xaf)]=exports['Param']=exports[a11_0x271344(0xd1)]=exports[a11_0x271344(0xd9)]=exports[a11_0x271344(0xb4)]=exports[a11_0x271344(0xa2)]=exports[a11_0x271344(0xb5)]=exports['ValidatorService']=exports[a11_0x271344(0xc0)]=exports[a11_0x271344(0xbe)]=exports['ExcelStream']=exports[a11_0x271344(0xa6)]=exports[a11_0x271344(0xce)]=exports[a11_0x271344(0xcb)]=exports[a11_0x271344(0xdc)]=exports['getSwaggerJson']=exports[a11_0x271344(0xc8)]=exports[a11_0x271344(0xc9)]=exports[a11_0x271344(0xcf)]=exports[a11_0x271344(0xa9)]=exports['Action']=void 0x0;function a11_0x2e33(_0x10f51b,_0x404b1a){var _0x134f01=a11_0x32dd();return a11_0x2e33=function(_0xeeeeed,_0x83ca10){_0xeeeeed=_0xeeeeed-0x99;var _0x32dd90=_0x134f01[_0xeeeeed];return _0x32dd90;},a11_0x2e33(_0x10f51b,_0x404b1a);}const getAppsConfig_1=require(a11_0x271344(0x9d));Object[a11_0x271344(0xab)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x479ffa=a11_0x271344;return getAppsConfig_1[_0x479ffa(0x9a)];}}),__exportStar(require(a11_0x271344(0xde)),exports),__exportStar(require(a11_0x271344(0xc2)),exports);var Action_1=require(a11_0x271344(0xa0));Object['defineProperty'](exports,a11_0x271344(0x9f),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a11_0x271344(0xad));Object['defineProperty'](exports,a11_0x271344(0xa9),{'enumerable':!![],'get':function(){var _0x28b268=a11_0x271344;return ActionApitest_1[_0x28b268(0xa9)];}});var Intercept_1=require(a11_0x271344(0x99));Object[a11_0x271344(0xab)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x5ae825=a11_0x271344;return Intercept_1[_0x5ae825(0xcf)];}}),Object['defineProperty'](exports,a11_0x271344(0xc9),{'enumerable':!![],'get':function(){var _0x3cf7ad=a11_0x271344;return Intercept_1[_0x3cf7ad(0xc9)];}});var getRoutes_1=require(a11_0x271344(0xc4));Object[a11_0x271344(0xab)](exports,a11_0x271344(0xc8),{'enumerable':!![],'get':function(){var _0x385430=a11_0x271344;return getRoutes_1[_0x385430(0xc8)];}});var getSwaggerJson_1=require('./helper/getSwaggerJson');Object[a11_0x271344(0xab)](exports,a11_0x271344(0xc5),{'enumerable':!![],'get':function(){var _0x45f8aa=a11_0x271344;return getSwaggerJson_1[_0x45f8aa(0xc5)];}});var ApiError_1=require(a11_0x271344(0xd8));Object[a11_0x271344(0xab)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x1eb058=a11_0x271344;return ApiError_1[_0x1eb058(0xdc)];}});function a11_0x32dd(){var _0x49126c=['File','11459rXNniX','./service/ExcelStream','./configuration','ApiService','__exportStar','231KykeSb','Apitest','Logger','defineProperty','Config','./decorator/ActionApitest','__createBinding','Query','145532tzENlm','18KXVKMJ','2354SLgRKl','toString','Files','Configuration','1389516RJGSmo','hasOwnProperty','default','Scope','Headers','search','App','Provide','ExcelService','@anncic-api/validator','ValidatorError','ValidatorService','./service/ApitestService','1342287ZvPRmx','./helper/getRoutes','getSwaggerJson','Param','writable','getRoutes','IIntercept','1178264YNLhnu','CacheService','(((.+)+)+)+$','40JZlLFO','EventService','Intercept','@midwayjs/core','Body','1146bLGzha','get','Singleton','343Fsqmwu','78HXHyal','prototype','./exception/ApiError','Fields','constructor','getOwnPropertyDescriptor','ApiError','51910czumeC','./types/common','./decorator/Intercept','getAppsConfig','Init','Inject','./helper/getAppsConfig','__esModule','Action','./decorator/Action','ScopeEnum'];a11_0x32dd=function(){return _0x49126c;};return a11_0x32dd();}var cache_1=require('@anncic-api/cache');Object[a11_0x271344(0xab)](exports,a11_0x271344(0xcb),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a11_0x271344(0xab)](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a11_0x271344(0xab)](exports,a11_0x271344(0xa6),{'enumerable':!![],'get':function(){var _0x19660d=a11_0x271344;return ApiService_1[_0x19660d(0xa6)];}});var ExcelStream_1=require(a11_0x271344(0xa4));Object[a11_0x271344(0xab)](exports,'ExcelStream',{'enumerable':!![],'get':function(){return ExcelStream_1['ExcelStream'];}});var ExcelService_1=require('./service/ExcelService');Object[a11_0x271344(0xab)](exports,a11_0x271344(0xbe),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a11_0x271344(0xbf));Object[a11_0x271344(0xab)](exports,a11_0x271344(0xc0),{'enumerable':!![],'get':function(){var _0x5ba941=a11_0x271344;return validator_1[_0x5ba941(0xc0)];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xc1),{'enumerable':!![],'get':function(){var _0x2eda62=a11_0x271344;return validator_1[_0x2eda62(0xc1)];}});var configuration_1=require(a11_0x271344(0xa5));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,a11_0x271344(0xa2),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xb4),{'enumerable':!![],'get':function(){var _0x36ab96=a11_0x271344;return core_1[_0x36ab96(0xb4)];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xd9),{'enumerable':!![],'get':function(){var _0x3070a0=a11_0x271344;return core_1[_0x3070a0(0xd9)];}}),Object[a11_0x271344(0xab)](exports,'Body',{'enumerable':!![],'get':function(){var _0x2273aa=a11_0x271344;return core_1[_0x2273aa(0xd1)];}}),Object[a11_0x271344(0xab)](exports,'Param',{'enumerable':!![],'get':function(){var _0x5948ac=a11_0x271344;return core_1[_0x5948ac(0xc6)];}}),Object['defineProperty'](exports,a11_0x271344(0xaf),{'enumerable':!![],'get':function(){var _0x2e35be=a11_0x271344;return core_1[_0x2e35be(0xaf)];}}),Object['defineProperty'](exports,a11_0x271344(0xba),{'enumerable':!![],'get':function(){var _0x11ba23=a11_0x271344;return core_1[_0x11ba23(0xba)];}}),Object[a11_0x271344(0xab)](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a11_0x271344(0xd0));Object[a11_0x271344(0xab)](exports,a11_0x271344(0xbc),{'enumerable':!![],'get':function(){var _0xc0f40c=a11_0x271344;return core_2[_0xc0f40c(0xbc)];}}),Object[a11_0x271344(0xab)](exports,'Config',{'enumerable':!![],'get':function(){var _0x341953=a11_0x271344;return core_2[_0x341953(0xac)];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xaa),{'enumerable':!![],'get':function(){var _0x4c3ddb=a11_0x271344;return core_2[_0x4c3ddb(0xaa)];}}),Object[a11_0x271344(0xab)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x36459f=a11_0x271344;return core_2[_0x36459f(0xbd)];}}),Object['defineProperty'](exports,a11_0x271344(0x9c),{'enumerable':!![],'get':function(){var _0x211518=a11_0x271344;return core_2[_0x211518(0x9c)];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xb9),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xd4),{'enumerable':!![],'get':function(){var _0x51ba88=a11_0x271344;return core_2[_0x51ba88(0xd4)];}}),Object[a11_0x271344(0xab)](exports,a11_0x271344(0xa1),{'enumerable':!![],'get':function(){var _0x2d7adf=a11_0x271344;return core_2[_0x2d7adf(0xa1)];}}),global[a11_0x271344(0x9a)]=getAppsConfig_1[a11_0x271344(0x9a)];
|
|
1
|
+
var a11_0x493a4a=a11_0x2939;(function(_0xa23168,_0x35746c){var _0x5b9e27=a11_0x2939,_0xe5d861=_0xa23168();while(!![]){try{var _0x5c6a49=parseInt(_0x5b9e27(0x124))/0x1*(parseInt(_0x5b9e27(0x145))/0x2)+parseInt(_0x5b9e27(0x119))/0x3+-parseInt(_0x5b9e27(0x149))/0x4+parseInt(_0x5b9e27(0x122))/0x5+-parseInt(_0x5b9e27(0x114))/0x6+-parseInt(_0x5b9e27(0x11b))/0x7*(parseInt(_0x5b9e27(0x10d))/0x8)+-parseInt(_0x5b9e27(0x138))/0x9*(-parseInt(_0x5b9e27(0x10c))/0xa);if(_0x5c6a49===_0x35746c)break;else _0xe5d861['push'](_0xe5d861['shift']());}catch(_0x704e16){_0xe5d861['push'](_0xe5d861['shift']());}}}(a11_0x1d6a,0x3b6dc));var a11_0x212e5a=(function(){var _0x55533e=!![];return function(_0x357680,_0x2af121){var _0x2cdd0a=_0x55533e?function(){if(_0x2af121){var _0xec215b=_0x2af121['apply'](_0x357680,arguments);return _0x2af121=null,_0xec215b;}}:function(){};return _0x55533e=![],_0x2cdd0a;};}()),a11_0x3d14bc=a11_0x212e5a(this,function(){var _0x44f9f3=a11_0x2939;return a11_0x3d14bc['toString']()['search'](_0x44f9f3(0x133))[_0x44f9f3(0x10e)]()[_0x44f9f3(0x113)](a11_0x3d14bc)[_0x44f9f3(0x11a)](_0x44f9f3(0x133));});function a11_0x2939(_0x3f460c,_0x5ebe2d){var _0x25efbf=a11_0x1d6a();return a11_0x2939=function(_0x3d14bc,_0x212e5a){_0x3d14bc=_0x3d14bc-0x109;var _0x1d6a4e=_0x25efbf[_0x3d14bc];return _0x1d6a4e;},a11_0x2939(_0x3f460c,_0x5ebe2d);}a11_0x3d14bc();'use strict';var __createBinding=this&&this[a11_0x493a4a(0x128)]||(Object[a11_0x493a4a(0x116)]?function(_0x5cfc64,_0x508cb4,_0x297221,_0x425457){var _0x51b311=a11_0x493a4a;if(_0x425457===undefined)_0x425457=_0x297221;var _0x162194=Object[_0x51b311(0x11d)](_0x508cb4,_0x297221);(!_0x162194||(_0x51b311(0x10b)in _0x162194?!_0x508cb4[_0x51b311(0x14d)]:_0x162194[_0x51b311(0x126)]||_0x162194[_0x51b311(0x10a)]))&&(_0x162194={'enumerable':!![],'get':function(){return _0x508cb4[_0x297221];}}),Object['defineProperty'](_0x5cfc64,_0x425457,_0x162194);}:function(_0x5fafc4,_0x2199cb,_0x37ebda,_0x2cf485){if(_0x2cf485===undefined)_0x2cf485=_0x37ebda;_0x5fafc4[_0x2cf485]=_0x2199cb[_0x37ebda];}),__exportStar=this&&this['__exportStar']||function(_0x254edf,_0x45c1bd){var _0x3393a1=a11_0x493a4a;for(var _0x297115 in _0x254edf)if(_0x297115!==_0x3393a1(0x14a)&&!Object['prototype'][_0x3393a1(0x125)][_0x3393a1(0x13b)](_0x45c1bd,_0x297115))__createBinding(_0x45c1bd,_0x254edf,_0x297115);};Object[a11_0x493a4a(0x112)](exports,'__esModule',{'value':!![]}),exports[a11_0x493a4a(0x140)]=exports['ScopeEnum']=exports[a11_0x493a4a(0x117)]=exports['Scope']=exports[a11_0x493a4a(0x127)]=exports[a11_0x493a4a(0x13e)]=exports[a11_0x493a4a(0x130)]=exports[a11_0x493a4a(0x123)]=exports[a11_0x493a4a(0x135)]=exports[a11_0x493a4a(0x13a)]=exports[a11_0x493a4a(0x139)]=exports[a11_0x493a4a(0x144)]=exports['Param']=exports[a11_0x493a4a(0x12d)]=exports[a11_0x493a4a(0x12c)]=exports[a11_0x493a4a(0x115)]=exports['File']=exports[a11_0x493a4a(0x148)]=exports[a11_0x493a4a(0x14b)]=exports[a11_0x493a4a(0x136)]=exports[a11_0x493a4a(0x12e)]=exports[a11_0x493a4a(0x109)]=exports[a11_0x493a4a(0x12b)]=exports[a11_0x493a4a(0x11c)]=exports['CacheService']=exports[a11_0x493a4a(0x132)]=exports[a11_0x493a4a(0x141)]=exports['getRoutes']=exports[a11_0x493a4a(0x13f)]=exports[a11_0x493a4a(0x110)]=exports[a11_0x493a4a(0x11f)]=exports[a11_0x493a4a(0x147)]=void 0x0;const getAppsConfig_1=require(a11_0x493a4a(0x10f));Object[a11_0x493a4a(0x112)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a11_0x493a4a(0x118)),exports),__exportStar(require(a11_0x493a4a(0x129)),exports);var Action_1=require(a11_0x493a4a(0x12f));Object[a11_0x493a4a(0x112)](exports,'Action',{'enumerable':!![],'get':function(){var _0x3134a3=a11_0x493a4a;return Action_1[_0x3134a3(0x147)];}});var ActionApitest_1=require(a11_0x493a4a(0x143));Object[a11_0x493a4a(0x112)](exports,'Apitest',{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a11_0x493a4a(0x146));Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x110),{'enumerable':!![],'get':function(){var _0x5d7a85=a11_0x493a4a;return Intercept_1[_0x5d7a85(0x110)];}}),Object['defineProperty'](exports,a11_0x493a4a(0x13f),{'enumerable':!![],'get':function(){var _0x270476=a11_0x493a4a;return Intercept_1[_0x270476(0x13f)];}});var getRoutes_1=require(a11_0x493a4a(0x12a));Object['defineProperty'](exports,a11_0x493a4a(0x11e),{'enumerable':!![],'get':function(){var _0x3dab0d=a11_0x493a4a;return getRoutes_1[_0x3dab0d(0x11e)];}});var getSwaggerJson_1=require(a11_0x493a4a(0x13c));Object[a11_0x493a4a(0x112)](exports,'getSwaggerJson',{'enumerable':!![],'get':function(){return getSwaggerJson_1['getSwaggerJson'];}});var ApiError_1=require('./exception/ApiError');Object[a11_0x493a4a(0x112)](exports,'ApiError',{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var cache_1=require(a11_0x493a4a(0x14c));Object[a11_0x493a4a(0x112)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x327459=a11_0x493a4a;return cache_1[_0x327459(0x137)];}});var event_1=require('@anncic-api/event');function a11_0x1d6a(){var _0x24f1a9=['(((.+)+)+)+$','File','App','ValidatorError','CacheService','28422RuNOAy','Headers','Init','call','./helper/getSwaggerJson','Param','Provide','IIntercept','getAppsConfig','getSwaggerJson','@midwayjs/core','./decorator/ActionApitest','Query','2RrxoeC','./decorator/Intercept','Action','Configuration','915288ZEYDOY','default','ValidatorService','@anncic-api/cache','__esModule','ExcelStream','configurable','get','1250fxfTPF','8kTMzsg','toString','./helper/getAppsConfig','Intercept','./configuration','defineProperty','constructor','2881026kDprBp','Files','create','Singleton','./types/common','213663DjlERq','search','270669Ijoupl','EventService','getOwnPropertyDescriptor','getRoutes','Apitest','./service/ExcelService','ScopeEnum','1584285LSrSjK','Config','208252WKWYpZ','hasOwnProperty','writable','Inject','__createBinding','./service/ApitestService','./helper/getRoutes','ApiService','Fields','Body','ExcelService','./decorator/Action','Logger','Scope','ApiError'];a11_0x1d6a=function(){return _0x24f1a9;};return a11_0x1d6a();}Object[a11_0x493a4a(0x112)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x54d29b=a11_0x493a4a;return event_1[_0x54d29b(0x11c)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,a11_0x493a4a(0x12b),{'enumerable':!![],'get':function(){var _0x5922e5=a11_0x493a4a;return ApiService_1[_0x5922e5(0x12b)];}});var ExcelStream_1=require('./service/ExcelStream');Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x109),{'enumerable':!![],'get':function(){var _0x530fd9=a11_0x493a4a;return ExcelStream_1[_0x530fd9(0x109)];}});var ExcelService_1=require(a11_0x493a4a(0x120));Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x12e),{'enumerable':!![],'get':function(){var _0x36847f=a11_0x493a4a;return ExcelService_1[_0x36847f(0x12e)];}});var validator_1=require('@anncic-api/validator');Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x136),{'enumerable':!![],'get':function(){var _0x3e84de=a11_0x493a4a;return validator_1[_0x3e84de(0x136)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x14b),{'enumerable':!![],'get':function(){var _0xebe90e=a11_0x493a4a;return validator_1[_0xebe90e(0x14b)];}});var configuration_1=require(a11_0x493a4a(0x111));Object['defineProperty'](exports,a11_0x493a4a(0x148),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a11_0x493a4a(0x142));Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x5adf6f=a11_0x493a4a;return core_1[_0x5adf6f(0x134)];}}),Object['defineProperty'](exports,a11_0x493a4a(0x115),{'enumerable':!![],'get':function(){var _0x4d6bab=a11_0x493a4a;return core_1[_0x4d6bab(0x115)];}}),Object['defineProperty'](exports,a11_0x493a4a(0x12c),{'enumerable':!![],'get':function(){var _0x38d1f0=a11_0x493a4a;return core_1[_0x38d1f0(0x12c)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x12d),{'enumerable':!![],'get':function(){var _0x2228a1=a11_0x493a4a;return core_1[_0x2228a1(0x12d)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x13d),{'enumerable':!![],'get':function(){var _0x3319cd=a11_0x493a4a;return core_1[_0x3319cd(0x13d)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x144),{'enumerable':!![],'get':function(){var _0x3e1a7e=a11_0x493a4a;return core_1[_0x3e1a7e(0x144)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x139),{'enumerable':!![],'get':function(){var _0x5c94f3=a11_0x493a4a;return core_1[_0x5c94f3(0x139)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x13a),{'enumerable':!![],'get':function(){var _0x23e3b8=a11_0x493a4a;return core_1[_0x23e3b8(0x13a)];}});var core_2=require(a11_0x493a4a(0x142));Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x135),{'enumerable':!![],'get':function(){var _0xe020c4=a11_0x493a4a;return core_2[_0xe020c4(0x135)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x123),{'enumerable':!![],'get':function(){var _0x5693e1=a11_0x493a4a;return core_2[_0x5693e1(0x123)];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0x56c88a=a11_0x493a4a;return core_2[_0x56c88a(0x130)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x13e),{'enumerable':!![],'get':function(){var _0x1ec9a3=a11_0x493a4a;return core_2[_0x1ec9a3(0x13e)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x127),{'enumerable':!![],'get':function(){var _0x4cffcb=a11_0x493a4a;return core_2[_0x4cffcb(0x127)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x131),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a11_0x493a4a(0x112)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x448937=a11_0x493a4a;return core_2[_0x448937(0x117)];}}),Object[a11_0x493a4a(0x112)](exports,a11_0x493a4a(0x121),{'enumerable':!![],'get':function(){var _0x4ee0e9=a11_0x493a4a;return core_2[_0x4ee0e9(0x121)];}}),global['getAppsConfig']=getAppsConfig_1[a11_0x493a4a(0x140)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a12_0x138d9d=a12_0x1024;(function(_0x171417,_0x474757){var _0x91c782=a12_0x1024,_0x56c74d=_0x171417();while(!![]){try{var _0xeb6fb3=-parseInt(_0x91c782(0xc0))/0x1+parseInt(_0x91c782(0xa4))/0x2+-parseInt(_0x91c782(0xdc))/0x3+-parseInt(_0x91c782(0xbb))/0x4*(-parseInt(_0x91c782(0xaa))/0x5)+parseInt(_0x91c782(0xc5))/0x6*(-parseInt(_0x91c782(0xb1))/0x7)+parseInt(_0x91c782(0xcf))/0x8*(-parseInt(_0x91c782(0xa1))/0x9)+parseInt(_0x91c782(0xa0))/0xa*(parseInt(_0x91c782(0xd7))/0xb);if(_0xeb6fb3===_0x474757)break;else _0x56c74d['push'](_0x56c74d['shift']());}catch(_0x21f613){_0x56c74d['push'](_0x56c74d['shift']());}}}(a12_0x47a8,0xd7bbc));var a12_0x57d853=(function(){var _0x41dd06=!![];return function(_0x3fc89a,_0x48794c){var _0x4dfcd7=_0x41dd06?function(){var _0x32463c=a12_0x1024;if(_0x48794c){var _0x5d2896=_0x48794c[_0x32463c(0x9d)](_0x3fc89a,arguments);return _0x48794c=null,_0x5d2896;}}:function(){};return _0x41dd06=![],_0x4dfcd7;};}()),a12_0x4f9dd4=a12_0x57d853(this,function(){var _0x1f4356=a12_0x1024;return a12_0x4f9dd4[_0x1f4356(0xa7)]()[_0x1f4356(0xb5)](_0x1f4356(0xdd))['toString']()[_0x1f4356(0xd2)](a12_0x4f9dd4)[_0x1f4356(0xb5)](_0x1f4356(0xdd));});a12_0x4f9dd4();'use strict';var __decorate=this&&this[a12_0x138d9d(0xc1)]||function(_0x4b4ae6,_0xbc0807,_0x2faaf2,_0x19f0d7){var _0x277178=a12_0x138d9d,_0x341f9c=arguments['length'],_0x5372ef=_0x341f9c<0x3?_0xbc0807:_0x19f0d7===null?_0x19f0d7=Object[_0x277178(0xa9)](_0xbc0807,_0x2faaf2):_0x19f0d7,_0x134881;if(typeof Reflect===_0x277178(0xac)&&typeof Reflect['decorate']==='function')_0x5372ef=Reflect[_0x277178(0xcc)](_0x4b4ae6,_0xbc0807,_0x2faaf2,_0x19f0d7);else{for(var _0x4e5a59=_0x4b4ae6[_0x277178(0xb7)]-0x1;_0x4e5a59>=0x0;_0x4e5a59--)if(_0x134881=_0x4b4ae6[_0x4e5a59])_0x5372ef=(_0x341f9c<0x3?_0x134881(_0x5372ef):_0x341f9c>0x3?_0x134881(_0xbc0807,_0x2faaf2,_0x5372ef):_0x134881(_0xbc0807,_0x2faaf2))||_0x5372ef;}return _0x341f9c>0x3&&_0x5372ef&&Object[_0x277178(0x9a)](_0xbc0807,_0x2faaf2,_0x5372ef),_0x5372ef;},__metadata=this&&this[a12_0x138d9d(0xb3)]||function(_0x351de6,_0x3bc984){var _0x3683f0=a12_0x138d9d;if(typeof Reflect===_0x3683f0(0xac)&&typeof Reflect[_0x3683f0(0xde)]===_0x3683f0(0xa2))return Reflect[_0x3683f0(0xde)](_0x351de6,_0x3bc984);};Object[a12_0x138d9d(0x9a)](exports,'__esModule',{'value':!![]}),exports[a12_0x138d9d(0xdf)]=void 0x0;const crypto_js_1=require(a12_0x138d9d(0xc7)),core_1=require(a12_0x138d9d(0xd5)),ApiError_1=require('../exception/ApiError');function a12_0x1024(_0x18a773,_0xef7726){var _0x2a479b=a12_0x47a8();return a12_0x1024=function(_0x4f9dd4,_0x57d853){_0x4f9dd4=_0x4f9dd4-0x9a;var _0x47a8de=_0x2a479b[_0x4f9dd4];return _0x47a8de;},a12_0x1024(_0x18a773,_0xef7726);}let ApiService=class ApiService{[a12_0x138d9d(0xb8)](_0x33672f){var _0x4e2802=a12_0x138d9d,_0x139116;return _0x33672f?(0x0,crypto_js_1[_0x4e2802(0x9b)])(''+_0x33672f+(0x0,crypto_js_1[_0x4e2802(0x9b)])((0x0,crypto_js_1[_0x4e2802(0x9b)])(''+_0x33672f)['toString']()+(''+((_0x139116=this[_0x4e2802(0xa6)])===null||_0x139116===void 0x0?void 0x0:_0x139116[_0x4e2802(0xb8)])))[_0x4e2802(0xa7)]())[_0x4e2802(0xa7)]():'';}[a12_0x138d9d(0xd0)](_0x3c1e54,_0x2dbc21,_0x12e472=Date[a12_0x138d9d(0xc6)]()){var _0xb2c564=a12_0x138d9d;return{'Token':_0x3c1e54,'Logintime':_0x12e472,'Checkcode':this[_0xb2c564(0xbf)](_0x3c1e54,_0x2dbc21,_0x12e472)};}[a12_0x138d9d(0x9e)](_0xa3855b={}){var _0x1e3022=a12_0x138d9d,_0x4a2426,_0x31bb08;const _0x32f751=[],_0x307a5d=Object[_0x1e3022(0xa8)](Object[_0x1e3022(0x9f)](_0xa3855b)[_0x1e3022(0xd9)](_0x56e7cd=>[_0x56e7cd[0x0]['toLowerCase'](),_0x56e7cd[0x1]]));for(let _0x1b7f22 of[_0x1e3022(0xd3),_0x1e3022(0xbd),_0x1e3022(0xb6),_0x1e3022(0xd6),'checkcode']){if(typeof _0x307a5d[_0x1b7f22]==_0x1e3022(0xc2))throw new AnnError(ApiError_1[_0x1e3022(0xc4)][_0x1e3022(0xd4)],{'message':_0x1e3022(0xd8)});_0x32f751['push'](_0x1b7f22+'='+_0x307a5d[_0x1b7f22]);}_0x307a5d[_0x1e3022(0xbd)]&&((_0x4a2426=_0x307a5d[_0x1e3022(0xbd)])===null||_0x4a2426===void 0x0?void 0x0:_0x4a2426[_0x1e3022(0xb7)])==0xa&&(_0x307a5d['requesttime']=_0x307a5d[_0x1e3022(0xbd)]*0x3e8);if(this['config'][_0x1e3022(0xcd)]&&parseInt((''+Date[_0x1e3022(0xc6)]())[_0x1e3022(0xa5)](0x0,0xd)[_0x1e3022(0xad)](0xd,'0'))-parseInt((''+Math[_0x1e3022(0xe0)](_0x307a5d[_0x1e3022(0xbd)]))[_0x1e3022(0xa5)](0x0,0xd)[_0x1e3022(0xad)](0xd,'0'))>parseInt(this[_0x1e3022(0xa6)][_0x1e3022(0xcd)]))throw new AnnError(ApiError_1[_0x1e3022(0xc4)][_0x1e3022(0xa3)],{'message':_0x1e3022(0x9c),'requesttime':_0x307a5d[_0x1e3022(0xbd)],'timestamp':Date['now']()});if((((_0x31bb08=this[_0x1e3022(0xa6)][_0x1e3022(0xb9)][_0x307a5d[_0x1e3022(0xd3)]])===null||_0x31bb08===void 0x0?void 0x0:_0x31bb08['logintimeout'])||0x0)>0x0&&Date['now']()-Math['abs'](_0x307a5d['logintime'])>this['config']['devices'][_0x307a5d[_0x1e3022(0xd3)]]['logintimeout'])throw new AnnError(ApiError_1[_0x1e3022(0xc4)][_0x1e3022(0xae)]);if(!this[_0x1e3022(0xa6)][_0x1e3022(0xb9)][_0x307a5d['device']]||!this[_0x1e3022(0xa6)][_0x1e3022(0xb9)][_0x307a5d[_0x1e3022(0xd3)]][_0x1e3022(0xda)]||!this[_0x1e3022(0xa6)]['devices'][_0x307a5d[_0x1e3022(0xd3)]][_0x1e3022(0xbf)])throw new AnnError(ApiError_1[_0x1e3022(0xc4)][_0x1e3022(0xc3)]);if(_0x307a5d[_0x1e3022(0xb6)]&&_0x307a5d[_0x1e3022(0xbf)]!=this[_0x1e3022(0xbf)](_0x307a5d[_0x1e3022(0xb6)],_0x307a5d[_0x1e3022(0xd3)],_0x307a5d['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x1e3022(0xb0)]);return _0x32f751[_0x1e3022(0xca)](_0x1e3022(0xb4)+this[_0x1e3022(0xa6)]['devices'][_0x307a5d[_0x1e3022(0xd3)]]['secret']),(0x0,crypto_js_1[_0x1e3022(0x9b)])(_0x32f751[_0x1e3022(0xab)]()[_0x1e3022(0xbe)](''))['toString']();}[a12_0x138d9d(0xbf)](_0x1a9150,_0xc15628,_0x3dc58f=Date[a12_0x138d9d(0xc6)]()){var _0x46ea30=a12_0x138d9d,_0x3d9566,_0x2c0863,_0x3b8367;if(!((_0x3d9566=this['config'])===null||_0x3d9566===void 0x0?void 0x0:_0x3d9566[_0x46ea30(0xb9)][_0xc15628])||!((_0x3b8367=(_0x2c0863=this['config'])===null||_0x2c0863===void 0x0?void 0x0:_0x2c0863[_0x46ea30(0xb9)][_0xc15628])===null||_0x3b8367===void 0x0?void 0x0:_0x3b8367[_0x46ea30(0xbf)]))throw new AnnError(ApiError_1[_0x46ea30(0xc4)][_0x46ea30(0xc3)]);return(0x0,crypto_js_1[_0x46ea30(0x9b)])(''+_0x1a9150+(0x0,crypto_js_1['MD5'])(''+_0x3dc58f+(''+this[_0x46ea30(0xa6)][_0x46ea30(0xb9)][_0xc15628][_0x46ea30(0xbf)]))[_0x46ea30(0xa7)]())[_0x46ea30(0xa7)]();}[a12_0x138d9d(0xc8)](_0x898c73={}){var _0x1e886b=a12_0x138d9d;const _0x1fcc97=Object['fromEntries'](Object[_0x1e886b(0x9f)](_0x898c73)[_0x1e886b(0xd9)](_0x4bdbe7=>[_0x4bdbe7[0x0][_0x1e886b(0xc9)](),_0x4bdbe7[0x1]]));if(!(_0x1fcc97===null||_0x1fcc97===void 0x0?void 0x0:_0x1fcc97['signature']))throw new AnnError(ApiError_1[_0x1e886b(0xc4)][_0x1e886b(0xd4)],{'message':_0x1e886b(0xd8)});if((_0x1fcc97===null||_0x1fcc97===void 0x0?void 0x0:_0x1fcc97[_0x1e886b(0xdb)])!=this[_0x1e886b(0x9e)](_0x1fcc97))throw new AnnError(ApiError_1[_0x1e886b(0xc4)][_0x1e886b(0xaf)],{'message':_0x1e886b(0xd8)});return!![];}};function a12_0x47a8(){var _0x164f38=['ScopeEnum','61144lHgGmv','Config','requesttime','join','checkcode','1391528yIRWWU','__decorate','undefined','HEADERS_DEVICE','ApiError','9298998OPSNoA','now','crypto-js','checksign','toLowerCase','push','Provide','decorate','timeout','anncicapi','1156744mEhZhO','getcheck','Singleton','constructor','device','HEADERS_LACK','@midwayjs/core','logintime','11535205YzkZYP','验证失败','map','secret','signature','1364370ykVMmA','(((.+)+)+)+$','metadata','ApiService','abs','defineProperty','MD5','请求超时,请重试或改善网络环境','apply','getsign','entries','30NyQVkk','99IZBYMW','function','TIMEOUT','1963498UCGlgU','substring','config','toString','fromEntries','getOwnPropertyDescriptor','570WmWiMr','sort','object','padEnd','TIMEOUT_LOGINTIME','HEADERS_SIGNATURE','HEADERS_CHECKCODE','7XEqhrb','Scope','__metadata','secret=','search','token','length','password','devices'];a12_0x47a8=function(){return _0x164f38;};return a12_0x47a8();}__decorate([(0x0,core_1[a12_0x138d9d(0xbc)])(a12_0x138d9d(0xce)),__metadata('design:type',Object)],ApiService['prototype'],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a12_0x138d9d(0xcb)])(),(0x0,core_1[a12_0x138d9d(0xb2)])(core_1[a12_0x138d9d(0xba)][a12_0x138d9d(0xd1)])],ApiService),exports[a12_0x138d9d(0xdf)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x532864=a13_0x153a;(function(_0x10e8ea,_0x4d4359){const _0x5471cb=a13_0x153a,_0x499d65=_0x10e8ea();while(!![]){try{const _0x1d617a=parseInt(_0x5471cb(0x18d))/0x1*(-parseInt(_0x5471cb(0x178))/0x2)+-parseInt(_0x5471cb(0x175))/0x3+-parseInt(_0x5471cb(0x179))/0x4*(-parseInt(_0x5471cb(0x1b1))/0x5)+-parseInt(_0x5471cb(0x17d))/0x6+parseInt(_0x5471cb(0x182))/0x7*(-parseInt(_0x5471cb(0x19f))/0x8)+parseInt(_0x5471cb(0x1ad))/0x9+parseInt(_0x5471cb(0x165))/0xa;if(_0x1d617a===_0x4d4359)break;else _0x499d65['push'](_0x499d65['shift']());}catch(_0x29c68d){_0x499d65['push'](_0x499d65['shift']());}}}(a13_0x2dd0,0x6e8ad));const a13_0x322b43=(function(){let _0x265340=!![];return function(_0x4ab4d6,_0x35a694){const _0x1827d5=_0x265340?function(){const _0x36c4fb=a13_0x153a;if(_0x35a694){const _0x3c94dc=_0x35a694[_0x36c4fb(0x187)](_0x4ab4d6,arguments);return _0x35a694=null,_0x3c94dc;}}:function(){};return _0x265340=![],_0x1827d5;};}()),a13_0x44f360=a13_0x322b43(this,function(){const _0x71885d=a13_0x153a;return a13_0x44f360[_0x71885d(0x177)]()[_0x71885d(0x192)]('(((.+)+)+)+$')[_0x71885d(0x177)]()[_0x71885d(0x162)](a13_0x44f360)['search']('(((.+)+)+)+$');});a13_0x44f360();function a13_0x153a(_0x168480,_0x5276a2){const _0x17e07a=a13_0x2dd0();return a13_0x153a=function(_0x44f360,_0x322b43){_0x44f360=_0x44f360-0x160;let _0x2dd010=_0x17e07a[_0x44f360];return _0x2dd010;},a13_0x153a(_0x168480,_0x5276a2);}'use strict';var __decorate=this&&this[a13_0x532864(0x189)]||function(_0x234751,_0x3f190d,_0x1aa8bd,_0x1d6051){const _0x4c0e82=a13_0x532864;var _0x3a0059=arguments[_0x4c0e82(0x194)],_0x5e3d86=_0x3a0059<0x3?_0x3f190d:_0x1d6051===null?_0x1d6051=Object[_0x4c0e82(0x17f)](_0x3f190d,_0x1aa8bd):_0x1d6051,_0xc9715d;if(typeof Reflect==='object'&&typeof Reflect[_0x4c0e82(0x16c)]===_0x4c0e82(0x1ae))_0x5e3d86=Reflect[_0x4c0e82(0x16c)](_0x234751,_0x3f190d,_0x1aa8bd,_0x1d6051);else{for(var _0x5ce276=_0x234751[_0x4c0e82(0x194)]-0x1;_0x5ce276>=0x0;_0x5ce276--)if(_0xc9715d=_0x234751[_0x5ce276])_0x5e3d86=(_0x3a0059<0x3?_0xc9715d(_0x5e3d86):_0x3a0059>0x3?_0xc9715d(_0x3f190d,_0x1aa8bd,_0x5e3d86):_0xc9715d(_0x3f190d,_0x1aa8bd))||_0x5e3d86;}return _0x3a0059>0x3&&_0x5e3d86&&Object[_0x4c0e82(0x161)](_0x3f190d,_0x1aa8bd,_0x5e3d86),_0x5e3d86;},__metadata=this&&this[a13_0x532864(0x186)]||function(_0x1d1d40,_0x5c072f){const _0x5983bb=a13_0x532864;if(typeof Reflect===_0x5983bb(0x1b0)&&typeof Reflect['metadata']===_0x5983bb(0x1ae))return Reflect[_0x5983bb(0x1ac)](_0x1d1d40,_0x5c072f);},__param=this&&this['__param']||function(_0x2c4f2c,_0x46559f){return function(_0x2d46fe,_0x17fe51){_0x46559f(_0x2d46fe,_0x17fe51,_0x2c4f2c);};};Object[a13_0x532864(0x161)](exports,a13_0x532864(0x163),{'value':!![]}),exports[a13_0x532864(0x185)]=exports[a13_0x532864(0x18b)]=void 0x0;const path_1=require(a13_0x532864(0x181)),fs_1=require('fs'),core_1=require(a13_0x532864(0x184)),core_2=require(a13_0x532864(0x184)),core_3=require(a13_0x532864(0x184)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async['apidoc'](_0x34c68e){const _0x19e73a=a13_0x532864,_0x1cc3a2=(0x0,getRoutes_1[_0x19e73a(0x168)])(_0x34c68e),_0x46eaa6=[];for(let _0x56534e in _0x1cc3a2){for(let _0x23707d in _0x1cc3a2[_0x56534e][_0x19e73a(0x1a1)]){let _0xd76487=_0x1cc3a2[_0x56534e]['routes'][_0x23707d],_0xbbd704=[];for(let _0x5d9132 in _0xd76487[_0x19e73a(0x18c)]){_0xbbd704[_0x19e73a(0x197)](_0xd76487[_0x19e73a(0x18c)][_0x5d9132]);}_0x46eaa6['push']({'title':_0x1cc3a2[_0x56534e]['summary']+':'+_0xd76487[_0x19e73a(0x1a8)],'prefix':_0x1cc3a2[_0x56534e][_0x19e73a(0x188)],'router':_0xd76487[_0x19e73a(0x18e)],'method':_0xd76487[_0x19e73a(0x1a2)],'describe':_0xd76487['description']||'','filepath':_0x1cc3a2[_0x56534e][_0x19e73a(0x16a)]||'','request':_0xbbd704});}}const _0x26f5ec=(0x0,path_1['join'])(__dirname,_0x19e73a(0x1ab));return(0x0,fs_1[_0x19e73a(0x17e)])(_0x26f5ec,{'encoding':_0x19e73a(0x191)})[_0x19e73a(0x1a5)](/__res__/g,_0x19e73a(0x19a))['replace']('__apiList__',JSON[_0x19e73a(0x183)](_0x46eaa6))['replace'](_0x19e73a(0x1aa),JSON[_0x19e73a(0x183)](this[_0x19e73a(0x170)][_0x19e73a(0x1af)]));}};__decorate([(0x0,core_3[a13_0x532864(0x160)])(a13_0x532864(0x195)),__metadata('design:type',Object)],ApitestService['prototype'],a13_0x532864(0x170),void 0x0),ApitestService=__decorate([(0x0,core_2[a13_0x532864(0x1a4)])(a13_0x532864(0x1a3)),(0x0,core_3['Scope'])(core_3[a13_0x532864(0x190)][a13_0x532864(0x176)])],ApitestService),exports[a13_0x532864(0x18b)]=ApitestService;function a13_0x2dd0(){const _0x420a26=['__esModule','existsSync','11418190TKPJLQ','content-type','application/javascript;\x20charset=utf-8','getRoutes','/apiteststatic/*','filepath','ctx','decorate','Get','design:paramtypes','design:returntype','config','design:type','apiteststatic','text/css;\x20charset=utf-8','public,\x20max-age=604800','585879WcPEeE','Singleton','toString','2ZbNCvL','452NDAxVj','prototype','Request','cache-control','3238560PdNkug','readFileSync','getOwnPropertyDescriptor','apitestmodule','path','50071ubiNII','stringify','@midwayjs/core','ApitestStaticController','__metadata','apply','prefix','__decorate','../../public/','ApitestService','request','224831hKJthi','route','isDevelopmentEnvironment','ScopeEnum','utf-8','search','substring','length','anncicapi','Inject','push','Param','set','/apiteststatic/','Scope','.js','Environment','extname','744ooyqYW','apidoc','routes','method','apitest','Provide','replace','/apitest-:module','url','summary','/index.html','__devices__','../../public/index.html','metadata','5779458ftapmo','function','devices','object','13005nMdXKV','Controller','Config','defineProperty','constructor'];a13_0x2dd0=function(){return _0x420a26;};return a13_0x2dd0();}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x3af4a6=a13_0x532864;if(this[_0x3af4a6(0x1a3)]){const _0x2504ad={'module':![]};return this[_0x3af4a6(0x19d)][_0x3af4a6(0x18f)]()&&(_0x2504ad[_0x3af4a6(0x16a)]=!![]),await this[_0x3af4a6(0x18b)][_0x3af4a6(0x1a0)](_0x2504ad);}return'';}async[a13_0x532864(0x180)](_0x5916e5){const _0x17d667=a13_0x532864;if(this[_0x17d667(0x1a3)]){const _0x565df0={'module':_0x5916e5};return this[_0x17d667(0x19d)]['isDevelopmentEnvironment']()&&(_0x565df0[_0x17d667(0x16a)]=!![]),await this[_0x17d667(0x18b)][_0x17d667(0x1a0)](_0x565df0);}return'';}async[a13_0x532864(0x172)](){const _0x390e4a=a13_0x532864;if((0x0,path_1[_0x390e4a(0x19e)])(this[_0x390e4a(0x16b)]['request'][_0x390e4a(0x1a7)])){var _0x3948a5=(0x0,path_1['join'])(__dirname,_0x390e4a(0x18a)+this[_0x390e4a(0x16b)][_0x390e4a(0x18c)][_0x390e4a(0x1a7)]['replace'](_0x390e4a(0x19a),'/'));if(_0x3948a5[_0x390e4a(0x193)](_0x3948a5['length']-0xb)!=_0x390e4a(0x1a9)){this[_0x390e4a(0x16b)][_0x390e4a(0x199)](_0x390e4a(0x17c),_0x390e4a(0x174));if((0x0,path_1[_0x390e4a(0x19e)])(this['ctx'][_0x390e4a(0x18c)]['url'])==_0x390e4a(0x19c))this[_0x390e4a(0x16b)][_0x390e4a(0x199)]('content-type',_0x390e4a(0x167));else(0x0,path_1[_0x390e4a(0x19e)])(this[_0x390e4a(0x16b)][_0x390e4a(0x18c)][_0x390e4a(0x1a7)])=='.css'&&this[_0x390e4a(0x16b)][_0x390e4a(0x199)](_0x390e4a(0x166),_0x390e4a(0x173));return(0x0,fs_1[_0x390e4a(0x164)])(_0x3948a5)&&(0x0,fs_1[_0x390e4a(0x17e)])(_0x3948a5,{'encoding':_0x390e4a(0x191)});}}return'';}};__decorate([(0x0,core_3[a13_0x532864(0x196)])(),__metadata(a13_0x532864(0x171),Object)],ApitestStaticController[a13_0x532864(0x17a)],a13_0x532864(0x16b),void 0x0),__decorate([(0x0,core_3[a13_0x532864(0x196)])(),__metadata(a13_0x532864(0x171),core_1['MidwayEnvironmentService'])],ApitestStaticController['prototype'],a13_0x532864(0x19d),void 0x0),__decorate([(0x0,core_3[a13_0x532864(0x196)])(),__metadata(a13_0x532864(0x171),ApitestService)],ApitestStaticController[a13_0x532864(0x17a)],a13_0x532864(0x18b),void 0x0),__decorate([(0x0,core_3[a13_0x532864(0x160)])('apitest'),__metadata(a13_0x532864(0x171),Boolean)],ApitestStaticController[a13_0x532864(0x17a)],'apitest',void 0x0),__decorate([(0x0,core_3[a13_0x532864(0x160)])(a13_0x532864(0x195)),__metadata('design:type',Object)],ApitestStaticController[a13_0x532864(0x17a)],a13_0x532864(0x170),void 0x0),__decorate([(0x0,core_2[a13_0x532864(0x16d)])('/apitest'),__metadata(a13_0x532864(0x171),Function),__metadata(a13_0x532864(0x16e),[]),__metadata(a13_0x532864(0x16f),Promise)],ApitestStaticController[a13_0x532864(0x17a)],'apitesthtml',null),__decorate([(0x0,core_2[a13_0x532864(0x16d)])(a13_0x532864(0x1a6)),__param(0x0,(0x0,core_2[a13_0x532864(0x198)])('module')),__metadata(a13_0x532864(0x171),Function),__metadata('design:paramtypes',[String]),__metadata(a13_0x532864(0x16f),Promise)],ApitestStaticController[a13_0x532864(0x17a)],a13_0x532864(0x180),null),__decorate([(0x0,core_2['Get'])(a13_0x532864(0x169)),__metadata('design:type',Function),__metadata(a13_0x532864(0x16e),[]),__metadata(a13_0x532864(0x16f),Promise)],ApitestStaticController['prototype'],a13_0x532864(0x172),null),ApitestStaticController=__decorate([(0x0,core_2[a13_0x532864(0x1b2)])('/'),(0x0,core_3[a13_0x532864(0x19b)])(core_3[a13_0x532864(0x190)][a13_0x532864(0x17b)])],ApitestStaticController),exports[a13_0x532864(0x185)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0x401efe=a14_0x208d;(function(_0x430649,_0x18385d){const _0x37d4d0=a14_0x208d,_0x1649ba=_0x430649();while(!![]){try{const _0x427e18=parseInt(_0x37d4d0(0x192))/0x1+parseInt(_0x37d4d0(0x1a0))/0x2+-parseInt(_0x37d4d0(0x1ac))/0x3+parseInt(_0x37d4d0(0x1a5))/0x4+parseInt(_0x37d4d0(0x18c))/0x5+-parseInt(_0x37d4d0(0x199))/0x6*(-parseInt(_0x37d4d0(0x19c))/0x7)+-parseInt(_0x37d4d0(0x19b))/0x8;if(_0x427e18===_0x18385d)break;else _0x1649ba['push'](_0x1649ba['shift']());}catch(_0x1f34df){_0x1649ba['push'](_0x1649ba['shift']());}}}(a14_0x8ab1,0xc0fcb));const a14_0x3205e9=(function(){let _0x43b347=!![];return function(_0x4b9c2a,_0x200d59){const _0x246b6a=_0x43b347?function(){const _0x1dec2e=a14_0x208d;if(_0x200d59){const _0x4ef613=_0x200d59[_0x1dec2e(0x1a2)](_0x4b9c2a,arguments);return _0x200d59=null,_0x4ef613;}}:function(){};return _0x43b347=![],_0x246b6a;};}()),a14_0x52e465=a14_0x3205e9(this,function(){const _0x318793=a14_0x208d;return a14_0x52e465[_0x318793(0x18a)]()[_0x318793(0x19d)]('(((.+)+)+)+$')['toString']()['constructor'](a14_0x52e465)['search']('(((.+)+)+)+$');});a14_0x52e465();'use strict';function a14_0x8ab1(){const _0x366764=['cellCount','6wMqsUy','onRead','9281440jYUBAV','388962CrlWTu','search','defineProperty','App','2360782dUdKbY','set','apply','frozen','getOwnPropertyDescriptor','4457472GugEtf','onWrite','mkdirSync','push','ScopeEnum','Workbook','ExcelStream','3574455huuYpr','export','existsSync','Sheet\x201','prototype','getCell','getRow','get','isNumber','header','findRows','Api\x20Excel\x20Error:\x20','decorate','download','ExcelService','__esModule','xlsx','model','worksheets','./ExcelStream','replace','exceljs','object','log','length','key','parse','getAppDir','columns','app','value','col','handler','__decorate','toString','startsWith','470970YYveIm','filter','metadata','instance','rowCount','format','697621iITVXt','.xlsx','substring','Singleton','getColumn','endsWith'];a14_0x8ab1=function(){return _0x366764;};return a14_0x8ab1();}var __decorate=this&&this[a14_0x401efe(0x189)]||function(_0xd8eec2,_0x434ad8,_0x49c0eb,_0x4a9c5e){const _0x46ea2e=a14_0x401efe;var _0x56f7ea=arguments[_0x46ea2e(0x180)],_0x31ac5e=_0x56f7ea<0x3?_0x434ad8:_0x4a9c5e===null?_0x4a9c5e=Object[_0x46ea2e(0x1a4)](_0x434ad8,_0x49c0eb):_0x4a9c5e,_0x507871;if(typeof Reflect==='object'&&typeof Reflect[_0x46ea2e(0x174)]==='function')_0x31ac5e=Reflect['decorate'](_0xd8eec2,_0x434ad8,_0x49c0eb,_0x4a9c5e);else{for(var _0x3733b3=_0xd8eec2[_0x46ea2e(0x180)]-0x1;_0x3733b3>=0x0;_0x3733b3--)if(_0x507871=_0xd8eec2[_0x3733b3])_0x31ac5e=(_0x56f7ea<0x3?_0x507871(_0x31ac5e):_0x56f7ea>0x3?_0x507871(_0x434ad8,_0x49c0eb,_0x31ac5e):_0x507871(_0x434ad8,_0x49c0eb))||_0x31ac5e;}return _0x56f7ea>0x3&&_0x31ac5e&&Object[_0x46ea2e(0x19e)](_0x434ad8,_0x49c0eb,_0x31ac5e),_0x31ac5e;},__metadata=this&&this['__metadata']||function(_0xf45f95,_0x1c4054){const _0x4e9b06=a14_0x401efe;if(typeof Reflect===_0x4e9b06(0x17e)&&typeof Reflect[_0x4e9b06(0x18e)]==='function')return Reflect['metadata'](_0xf45f95,_0x1c4054);};Object[a14_0x401efe(0x19e)](exports,a14_0x401efe(0x177),{'value':!![]}),exports['ExcelService']=void 0x0;function a14_0x208d(_0x51f46d,_0xde5e53){const _0x3f2425=a14_0x8ab1();return a14_0x208d=function(_0x52e465,_0x3205e9){_0x52e465=_0x52e465-0x16e;let _0x8ab1c0=_0x3f2425[_0x52e465];return _0x8ab1c0;},a14_0x208d(_0x51f46d,_0xde5e53);}const fs=require('fs'),exceljs=require(a14_0x401efe(0x17d)),koasend=require('koa-send'),core_1=require('@midwayjs/core'),ExcelStream_1=require(a14_0x401efe(0x17b));let ExcelService=class ExcelService{async[a14_0x401efe(0x182)](_0x4f07c8,_0x17c136,_0x3705c6=[0x0]){const _0x5b43e1=a14_0x401efe;var _0x37e537,_0x248874;const _0x57fff1=new exceljs['Workbook'](),_0x55a67c=[];let _0x428901=_0x4f07c8[_0x5b43e1(0x17c)](/(\\|\/)/g,'/')[_0x5b43e1(0x17c)](/\/{2,}/g,'/');!(_0x428901===null||_0x428901===void 0x0?void 0x0:_0x428901[_0x5b43e1(0x18b)]('/'))&&(_0x428901=this[_0x5b43e1(0x185)][_0x5b43e1(0x183)]()+'/'+_0x428901);try{await _0x57fff1[_0x5b43e1(0x178)]['readFile'](_0x428901);}catch(_0x2c56ce){return console[_0x5b43e1(0x17f)](_0x5b43e1(0x173)+_0x428901+'\x20is\x20read\x20fail'),_0x55a67c;}for(const _0x569e3b of _0x3705c6){const _0x7dfc87=lodash[_0x5b43e1(0x170)](_0x569e3b)?((_0x37e537=_0x57fff1[_0x5b43e1(0x17a)])===null||_0x37e537===void 0x0?void 0x0:_0x37e537[_0x569e3b])||undefined:_0x57fff1['getWorksheet'](_0x569e3b);if(_0x7dfc87){var _0x2df2ed=0x1;const _0x2e9b09=_0x7dfc87[_0x5b43e1(0x16e)](0x1),_0x1db728=await new Promise(_0xa45a40=>{const _0x1ab06a={};_0x2e9b09['eachCell']((_0xbdb2eb,_0x4c77c6)=>{const _0x5f1d48=a14_0x208d;for(const _0x3bec5e of _0x17c136){if(_0xbdb2eb[_0x5f1d48(0x186)]==_0x3bec5e[_0x5f1d48(0x171)])_0x2df2ed=0x2,_0x1ab06a[_0x3bec5e[_0x5f1d48(0x181)]]={'header':_0xbdb2eb[_0x5f1d48(0x187)],'handler':(_0x3bec5e===null||_0x3bec5e===void 0x0?void 0x0:_0x3bec5e['onRead'])||(_0x3bec5e===null||_0x3bec5e===void 0x0?void 0x0:_0x3bec5e[_0x5f1d48(0x188)])};else{if(!_0x1ab06a[_0x3bec5e[_0x5f1d48(0x181)]])try{const _0x54fe09=_0x2e9b09&&_0x2e9b09['getCell'](_0x3bec5e['header']);_0x54fe09&&(_0x1ab06a[_0x3bec5e[_0x5f1d48(0x181)]]={'header':_0x54fe09['col'],'handler':(_0x3bec5e===null||_0x3bec5e===void 0x0?void 0x0:_0x3bec5e[_0x5f1d48(0x19a)])||(_0x3bec5e===null||_0x3bec5e===void 0x0?void 0x0:_0x3bec5e[_0x5f1d48(0x188)])});}catch{}}}_0x2e9b09[_0x5f1d48(0x198)]==_0x4c77c6&&_0xa45a40(_0x1ab06a);});});_0x453d22:for(const _0x230464 of _0x7dfc87[_0x5b43e1(0x172)](_0x2df2ed,_0x7dfc87[_0x5b43e1(0x190)])){if(typeof(_0x230464===null||_0x230464===void 0x0?void 0x0:_0x230464[_0x5b43e1(0x1b1)])!='function')continue _0x453d22;const _0x5d0726={};_0x38874a:for(const _0x139aee in _0x1db728){if(_0x1db728[_0x139aee][_0x5b43e1(0x171)]){const _0x427d12=_0x230464['getCell'](_0x1db728[_0x139aee][_0x5b43e1(0x171)]);if(!_0x427d12)continue _0x38874a;try{_0x427d12[_0x5b43e1(0x18a)]();}catch(_0xcd89f4){_0x427d12[_0x5b43e1(0x18a)]=()=>{const _0x1c2df1=_0x5b43e1;var _0x4b356a;return''+(((_0x4b356a=_0x427d12===null||_0x427d12===void 0x0?void 0x0:_0x427d12[_0x1c2df1(0x179)])===null||_0x4b356a===void 0x0?void 0x0:_0x4b356a[_0x1c2df1(0x186)])||'');};}typeof((_0x248874=_0x1db728[_0x139aee])===null||_0x248874===void 0x0?void 0x0:_0x248874[_0x5b43e1(0x188)])=='function'?_0x5d0726[_0x139aee]=await _0x1db728[_0x139aee][_0x5b43e1(0x188)](lodash[_0x5b43e1(0x1a1)]({},_0x139aee,(_0x427d12===null||_0x427d12===void 0x0?void 0x0:_0x427d12[_0x5b43e1(0x18a)]())||''),_0x427d12['model']):_0x5d0726[_0x139aee]=(_0x427d12===null||_0x427d12===void 0x0?void 0x0:_0x427d12[_0x5b43e1(0x18a)]())||'';}}Object['keys'](_0x5d0726)['length']>0x0&&Object['values'](_0x5d0726)[_0x5b43e1(0x18d)](_0x530e14=>_0x530e14!='')[_0x5b43e1(0x180)]>0x0&&_0x55a67c[_0x5b43e1(0x1a8)](_0x5d0726);}}}return _0x55a67c;}async[a14_0x401efe(0x1ad)](_0x316536,_0x1ff209,_0x291499,_0x3ad1f2,_0x5b0283){const _0x470639=a14_0x401efe;var _0x1df92d,_0x134bee,_0x5636cb;const _0x154519=new exceljs[(_0x470639(0x1aa))](),_0x519fc7={},_0x34e3df=[],_0x1caf3d=_0x154519['addWorksheet'](_0x470639(0x1af),{'views':[{'state':_0x470639(0x1a3),'ySplit':0x1}]});for(const _0x5b3508 in _0x1ff209){_0x519fc7[_0x1ff209[_0x5b3508][_0x470639(0x181)]]=_0x1ff209[_0x5b3508][_0x470639(0x171)],_0x34e3df[_0x470639(0x1a8)]({'header':_0x1ff209[_0x5b3508][_0x470639(0x171)],'key':(_0x1df92d=_0x1ff209[_0x5b3508])===null||_0x1df92d===void 0x0?void 0x0:_0x1df92d[_0x470639(0x181)][_0x470639(0x17c)](/\./g,'_')});}_0x1caf3d[_0x470639(0x184)]=_0x34e3df;for(const _0xb2a062 in _0x291499){const _0x2e213d=_0x291499[_0xb2a062],_0x1da15b=_0x1caf3d['addRow']({});for(let _0x2960cd in _0x1ff209){const _0x37b4bb=_0x1ff209[_0x2960cd][_0x470639(0x181)][_0x470639(0x17c)](/\./g,'_'),_0x52fa6f=_0x1caf3d[_0x470639(0x196)](_0x37b4bb),_0x334bf0=_0x1da15b===null||_0x1da15b===void 0x0?void 0x0:_0x1da15b['getCell'](_0x37b4bb);if(typeof((_0x134bee=_0x1ff209[_0x2960cd])===null||_0x134bee===void 0x0?void 0x0:_0x134bee['onWrite'])=='function')_0x334bf0[_0x470639(0x186)]=await _0x1ff209[_0x2960cd][_0x470639(0x1a6)](_0x2e213d,{'row':_0x1da15b,'col':_0x52fa6f,'cell':_0x334bf0,'sheet':_0x1caf3d})||'';else typeof((_0x5636cb=_0x1ff209[_0x2960cd])===null||_0x5636cb===void 0x0?void 0x0:_0x5636cb['handler'])=='function'?_0x334bf0[_0x470639(0x186)]=await _0x1ff209[_0x2960cd]['handler'](_0x2e213d,{'row':_0x1da15b,'col':_0x52fa6f,'cell':_0x334bf0,'sheet':_0x1caf3d})||'':_0x334bf0[_0x470639(0x186)]=lodash[_0x470639(0x16f)](_0x2e213d,_0x1ff209[_0x2960cd][_0x470639(0x181)],'');}}typeof _0x5b0283=='function'&&await _0x5b0283({'workbook':_0x154519,'worksheet':_0x1caf3d});let _0x4c689b='';const _0xb81d42=_0x316536+_0x470639(0x193);if(_0x3ad1f2&&_0x3ad1f2[_0x470639(0x18b)]('/'))_0x4c689b=''+_0x3ad1f2;else _0x3ad1f2&&!_0x3ad1f2[_0x470639(0x18b)]('/')&&!_0x3ad1f2[_0x470639(0x18b)]('\x5c')?_0x4c689b=this[_0x470639(0x185)][_0x470639(0x183)]()+'/'+_0x3ad1f2:_0x4c689b=this[_0x470639(0x185)]['getAppDir']()+'/public/xlsx/'+dayjs()[_0x470639(0x191)]('YYYY/MM/DD');return(_0x4c689b['endsWith']('/')||_0x4c689b[_0x470639(0x197)]('\x5c'))&&(_0x4c689b=_0x4c689b[_0x470639(0x194)](0x0,_0x4c689b[_0x470639(0x180)]-0x1)),_0x4c689b=_0x4c689b[_0x470639(0x17c)](/(\\|\/)/g,'/')[_0x470639(0x17c)](/\/{2,}/g,'/'),!fs[_0x470639(0x1ae)](_0x4c689b)&&fs[_0x470639(0x1a7)](_0x4c689b,{'recursive':!![]}),await _0x154519[_0x470639(0x178)]['writeFile']((_0x4c689b+'/'+_0xb81d42)[_0x470639(0x17c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0xb81d42,'filepath':(_0x4c689b[_0x470639(0x194)]((''+this['app'][_0x470639(0x183)]())[_0x470639(0x180)])+'/'+_0xb81d42)[_0x470639(0x17c)](/(\\|\/)/g,'/')[_0x470639(0x17c)](/\/{2,}/g,'/')};}async['stream'](_0x294c90,_0x5213e4={'suffix':['xls',a14_0x401efe(0x178)]}){const _0x400f1c=a14_0x401efe;return await ExcelStream_1[_0x400f1c(0x1ab)][_0x400f1c(0x18f)](_0x294c90,_0x5213e4);}async[a14_0x401efe(0x175)](_0x526850,_0x26dff9){return await koasend(_0x526850,''+_0x26dff9);}};__decorate([(0x0,core_1[a14_0x401efe(0x19f)])(),__metadata('design:type',Object)],ExcelService[a14_0x401efe(0x1b0)],a14_0x401efe(0x185),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a14_0x401efe(0x1a9)][a14_0x401efe(0x195)])],ExcelService),exports[a14_0x401efe(0x176)]=ExcelService;
|
|
1
|
+
const a14_0x354a9f=a14_0x442e;(function(_0x21530e,_0x46fc7a){const _0x2297ba=a14_0x442e,_0x218565=_0x21530e();while(!![]){try{const _0x4c159f=-parseInt(_0x2297ba(0x191))/0x1+parseInt(_0x2297ba(0x18a))/0x2*(-parseInt(_0x2297ba(0x179))/0x3)+parseInt(_0x2297ba(0x187))/0x4*(parseInt(_0x2297ba(0x174))/0x5)+-parseInt(_0x2297ba(0x185))/0x6*(-parseInt(_0x2297ba(0x198))/0x7)+-parseInt(_0x2297ba(0x1a7))/0x8+parseInt(_0x2297ba(0x195))/0x9*(parseInt(_0x2297ba(0x175))/0xa)+parseInt(_0x2297ba(0x1a2))/0xb*(parseInt(_0x2297ba(0x182))/0xc);if(_0x4c159f===_0x46fc7a)break;else _0x218565['push'](_0x218565['shift']());}catch(_0x24a5fa){_0x218565['push'](_0x218565['shift']());}}}(a14_0x4e7d,0xf170b));function a14_0x4e7d(){const _0x298584=['1288967bsYIYU','defineProperty','ExcelStream','handler','33192EpFUQF','value','model','581RfZGpV','function','col','substring','app','toString','download','\x20is\x20read\x20fail','YYYY/MM/DD','/public/xlsx/','11mvPeaM','frozen','push','Singleton','getRow','695504MDTipY','(((.+)+)+)+$','header','metadata','getAppDir','keys','mkdirSync','apply','export','eachCell','get','onWrite','key','exceljs','object','Provide','Scope','format','worksheets','filter','findRows','instance','getCell','9610yraoEN','2930PpIZeZ','isNumber','getWorksheet','onRead','2967kDzcxL','Workbook','stream','decorate','xlsx','getColumn','set','addWorksheet','@midwayjs/core','6043956AMdyNq','length','values','33990syqcBL','ExcelService','2836xNykVn','replace','cellCount','2128tjfrEM','startsWith','.xlsx','addRow','search','writeFile','columns'];a14_0x4e7d=function(){return _0x298584;};return a14_0x4e7d();}const a14_0x360755=(function(){let _0x163d64=!![];return function(_0x53d6bc,_0x484fae){const _0xeb20b5=_0x163d64?function(){const _0x32267c=a14_0x442e;if(_0x484fae){const _0x1705b4=_0x484fae[_0x32267c(0x164)](_0x53d6bc,arguments);return _0x484fae=null,_0x1705b4;}}:function(){};return _0x163d64=![],_0xeb20b5;};}()),a14_0x35013c=a14_0x360755(this,function(){const _0x18cdf6=a14_0x442e;return a14_0x35013c[_0x18cdf6(0x19d)]()[_0x18cdf6(0x18e)](_0x18cdf6(0x1a8))[_0x18cdf6(0x19d)]()['constructor'](a14_0x35013c)[_0x18cdf6(0x18e)]('(((.+)+)+)+$');});a14_0x35013c();function a14_0x442e(_0xfd78f3,_0x185267){const _0x50b71c=a14_0x4e7d();return a14_0x442e=function(_0x35013c,_0x360755){_0x35013c=_0x35013c-0x15f;let _0x4e7d9b=_0x50b71c[_0x35013c];return _0x4e7d9b;},a14_0x442e(_0xfd78f3,_0x185267);}'use strict';var __decorate=this&&this['__decorate']||function(_0x42e24f,_0x17d7ba,_0xda1c80,_0x100ac5){const _0x592bdf=a14_0x442e;var _0x218e5b=arguments[_0x592bdf(0x183)],_0x78aa17=_0x218e5b<0x3?_0x17d7ba:_0x100ac5===null?_0x100ac5=Object['getOwnPropertyDescriptor'](_0x17d7ba,_0xda1c80):_0x100ac5,_0x1b5228;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x592bdf(0x199))_0x78aa17=Reflect[_0x592bdf(0x17c)](_0x42e24f,_0x17d7ba,_0xda1c80,_0x100ac5);else{for(var _0x2e0c6d=_0x42e24f[_0x592bdf(0x183)]-0x1;_0x2e0c6d>=0x0;_0x2e0c6d--)if(_0x1b5228=_0x42e24f[_0x2e0c6d])_0x78aa17=(_0x218e5b<0x3?_0x1b5228(_0x78aa17):_0x218e5b>0x3?_0x1b5228(_0x17d7ba,_0xda1c80,_0x78aa17):_0x1b5228(_0x17d7ba,_0xda1c80))||_0x78aa17;}return _0x218e5b>0x3&&_0x78aa17&&Object[_0x592bdf(0x192)](_0x17d7ba,_0xda1c80,_0x78aa17),_0x78aa17;},__metadata=this&&this['__metadata']||function(_0x25ae59,_0x520cfc){const _0x36453c=a14_0x442e;if(typeof Reflect===_0x36453c(0x16b)&&typeof Reflect[_0x36453c(0x160)]===_0x36453c(0x199))return Reflect[_0x36453c(0x160)](_0x25ae59,_0x520cfc);};Object[a14_0x354a9f(0x192)](exports,'__esModule',{'value':!![]}),exports[a14_0x354a9f(0x186)]=void 0x0;const fs=require('fs'),exceljs=require(a14_0x354a9f(0x16a)),koasend=require('koa-send'),core_1=require(a14_0x354a9f(0x181)),ExcelStream_1=require('./ExcelStream');let ExcelService=class ExcelService{async['parse'](_0x51ac1d,_0x131c6b,_0xf7f066=[0x0]){const _0x4d47f5=a14_0x354a9f;var _0x593f57,_0x4ae32e;const _0x2fef2d=new exceljs[(_0x4d47f5(0x17a))](),_0x483213=[];let _0xc5bc3c=_0x51ac1d[_0x4d47f5(0x188)](/(\\|\/)/g,'/')[_0x4d47f5(0x188)](/\/{2,}/g,'/');!(_0xc5bc3c===null||_0xc5bc3c===void 0x0?void 0x0:_0xc5bc3c[_0x4d47f5(0x18b)]('/'))&&(_0xc5bc3c=this[_0x4d47f5(0x19c)][_0x4d47f5(0x161)]()+'/'+_0xc5bc3c);try{await _0x2fef2d['xlsx']['readFile'](_0xc5bc3c);}catch(_0x16589f){return console['log']('Api\x20Excel\x20Error:\x20'+_0xc5bc3c+_0x4d47f5(0x19f)),_0x483213;}for(const _0x44ff1c of _0xf7f066){const _0x3af4b7=lodash[_0x4d47f5(0x176)](_0x44ff1c)?((_0x593f57=_0x2fef2d[_0x4d47f5(0x16f)])===null||_0x593f57===void 0x0?void 0x0:_0x593f57[_0x44ff1c])||undefined:_0x2fef2d[_0x4d47f5(0x177)](_0x44ff1c);if(_0x3af4b7){var _0xbe81b3=0x1;const _0x4b9ede=_0x3af4b7[_0x4d47f5(0x1a6)](0x1),_0x1a69a3=await new Promise(_0x25a59e=>{const _0x284e77=_0x4d47f5,_0x54bb49={};_0x4b9ede[_0x284e77(0x166)]((_0x55c8c3,_0xdd894)=>{const _0x1a7475=_0x284e77;for(const _0x4ef97c of _0x131c6b){if(_0x55c8c3[_0x1a7475(0x196)]==_0x4ef97c[_0x1a7475(0x15f)])_0xbe81b3=0x2,_0x54bb49[_0x4ef97c[_0x1a7475(0x169)]]={'header':_0x55c8c3[_0x1a7475(0x19a)],'handler':(_0x4ef97c===null||_0x4ef97c===void 0x0?void 0x0:_0x4ef97c[_0x1a7475(0x178)])||(_0x4ef97c===null||_0x4ef97c===void 0x0?void 0x0:_0x4ef97c['handler'])};else{if(!_0x54bb49[_0x4ef97c[_0x1a7475(0x169)]])try{const _0x45f8b9=_0x4b9ede&&_0x4b9ede['getCell'](_0x4ef97c[_0x1a7475(0x15f)]);_0x45f8b9&&(_0x54bb49[_0x4ef97c[_0x1a7475(0x169)]]={'header':_0x45f8b9[_0x1a7475(0x19a)],'handler':(_0x4ef97c===null||_0x4ef97c===void 0x0?void 0x0:_0x4ef97c['onRead'])||(_0x4ef97c===null||_0x4ef97c===void 0x0?void 0x0:_0x4ef97c['handler'])});}catch{}}}_0x4b9ede[_0x1a7475(0x189)]==_0xdd894&&_0x25a59e(_0x54bb49);});});_0x198539:for(const _0x1de702 of _0x3af4b7[_0x4d47f5(0x171)](_0xbe81b3,_0x3af4b7['rowCount'])){if(typeof(_0x1de702===null||_0x1de702===void 0x0?void 0x0:_0x1de702[_0x4d47f5(0x173)])!=_0x4d47f5(0x199))continue _0x198539;const _0x2aae0b={};_0x39bdce:for(const _0x25e333 in _0x1a69a3){if(_0x1a69a3[_0x25e333][_0x4d47f5(0x15f)]){const _0x2bb667=_0x1de702[_0x4d47f5(0x173)](_0x1a69a3[_0x25e333][_0x4d47f5(0x15f)]);if(!_0x2bb667)continue _0x39bdce;try{_0x2bb667[_0x4d47f5(0x19d)]();}catch(_0x361d54){_0x2bb667[_0x4d47f5(0x19d)]=()=>{const _0x489a61=_0x4d47f5;var _0x54ee91;return''+(((_0x54ee91=_0x2bb667===null||_0x2bb667===void 0x0?void 0x0:_0x2bb667[_0x489a61(0x197)])===null||_0x54ee91===void 0x0?void 0x0:_0x54ee91[_0x489a61(0x196)])||'');};}typeof((_0x4ae32e=_0x1a69a3[_0x25e333])===null||_0x4ae32e===void 0x0?void 0x0:_0x4ae32e[_0x4d47f5(0x194)])=='function'?_0x2aae0b[_0x25e333]=await _0x1a69a3[_0x25e333][_0x4d47f5(0x194)](lodash[_0x4d47f5(0x17f)]({},_0x25e333,(_0x2bb667===null||_0x2bb667===void 0x0?void 0x0:_0x2bb667['toString']())||''),_0x2bb667[_0x4d47f5(0x197)]):_0x2aae0b[_0x25e333]=(_0x2bb667===null||_0x2bb667===void 0x0?void 0x0:_0x2bb667['toString']())||'';}}Object[_0x4d47f5(0x162)](_0x2aae0b)[_0x4d47f5(0x183)]>0x0&&Object[_0x4d47f5(0x184)](_0x2aae0b)[_0x4d47f5(0x170)](_0x3bfe07=>_0x3bfe07!='')[_0x4d47f5(0x183)]>0x0&&_0x483213[_0x4d47f5(0x1a4)](_0x2aae0b);}}}return _0x483213;}async[a14_0x354a9f(0x165)](_0x287beb,_0x448685,_0x43b23f,_0x59c8d7,_0x3e17c1){const _0x584521=a14_0x354a9f;var _0x3ebd50,_0x31dfe9,_0x32d913;const _0x208017=new exceljs[(_0x584521(0x17a))](),_0x458d26={},_0x7e4859=[],_0x46a9cc=_0x208017[_0x584521(0x180)]('Sheet\x201',{'views':[{'state':_0x584521(0x1a3),'ySplit':0x1}]});for(const _0x46392b in _0x448685){_0x458d26[_0x448685[_0x46392b][_0x584521(0x169)]]=_0x448685[_0x46392b][_0x584521(0x15f)],_0x7e4859[_0x584521(0x1a4)]({'header':_0x448685[_0x46392b][_0x584521(0x15f)],'key':(_0x3ebd50=_0x448685[_0x46392b])===null||_0x3ebd50===void 0x0?void 0x0:_0x3ebd50[_0x584521(0x169)]['replace'](/\./g,'_')});}_0x46a9cc[_0x584521(0x190)]=_0x7e4859;for(const _0x3a7a8b in _0x43b23f){const _0x3cf227=_0x43b23f[_0x3a7a8b],_0x26260e=_0x46a9cc[_0x584521(0x18d)]({});for(let _0x3d858e in _0x448685){const _0x15e7c1=_0x448685[_0x3d858e][_0x584521(0x169)][_0x584521(0x188)](/\./g,'_'),_0x142f67=_0x46a9cc[_0x584521(0x17e)](_0x15e7c1),_0x165b4c=_0x26260e===null||_0x26260e===void 0x0?void 0x0:_0x26260e['getCell'](_0x15e7c1);if(typeof((_0x31dfe9=_0x448685[_0x3d858e])===null||_0x31dfe9===void 0x0?void 0x0:_0x31dfe9[_0x584521(0x168)])=='function')_0x165b4c[_0x584521(0x196)]=await _0x448685[_0x3d858e][_0x584521(0x168)](_0x3cf227,{'row':_0x26260e,'col':_0x142f67,'cell':_0x165b4c,'sheet':_0x46a9cc})||'';else typeof((_0x32d913=_0x448685[_0x3d858e])===null||_0x32d913===void 0x0?void 0x0:_0x32d913[_0x584521(0x194)])=='function'?_0x165b4c[_0x584521(0x196)]=await _0x448685[_0x3d858e][_0x584521(0x194)](_0x3cf227,{'row':_0x26260e,'col':_0x142f67,'cell':_0x165b4c,'sheet':_0x46a9cc})||'':_0x165b4c[_0x584521(0x196)]=lodash[_0x584521(0x167)](_0x3cf227,_0x448685[_0x3d858e][_0x584521(0x169)],'');}}typeof _0x3e17c1==_0x584521(0x199)&&await _0x3e17c1({'workbook':_0x208017,'worksheet':_0x46a9cc});let _0x2cdcac='';const _0x36df8b=_0x287beb+_0x584521(0x18c);if(_0x59c8d7&&_0x59c8d7['startsWith']('/'))_0x2cdcac=''+_0x59c8d7;else _0x59c8d7&&!_0x59c8d7[_0x584521(0x18b)]('/')&&!_0x59c8d7[_0x584521(0x18b)]('\x5c')?_0x2cdcac=this[_0x584521(0x19c)]['getAppDir']()+'/'+_0x59c8d7:_0x2cdcac=this[_0x584521(0x19c)][_0x584521(0x161)]()+_0x584521(0x1a1)+dayjs()[_0x584521(0x16e)](_0x584521(0x1a0));return(_0x2cdcac['endsWith']('/')||_0x2cdcac['endsWith']('\x5c'))&&(_0x2cdcac=_0x2cdcac['substring'](0x0,_0x2cdcac[_0x584521(0x183)]-0x1)),_0x2cdcac=_0x2cdcac[_0x584521(0x188)](/(\\|\/)/g,'/')[_0x584521(0x188)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2cdcac)&&fs[_0x584521(0x163)](_0x2cdcac,{'recursive':!![]}),await _0x208017[_0x584521(0x17d)][_0x584521(0x18f)]((_0x2cdcac+'/'+_0x36df8b)[_0x584521(0x188)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x36df8b,'filepath':(_0x2cdcac[_0x584521(0x19b)]((''+this['app'][_0x584521(0x161)]())[_0x584521(0x183)])+'/'+_0x36df8b)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a14_0x354a9f(0x17b)](_0x6e4873,_0x1fdbcc={'suffix':['xls',a14_0x354a9f(0x17d)]}){const _0x38c2c1=a14_0x354a9f;return await ExcelStream_1[_0x38c2c1(0x193)][_0x38c2c1(0x172)](_0x6e4873,_0x1fdbcc);}async[a14_0x354a9f(0x19e)](_0x553d9b,_0xdbf3f){return await koasend(_0x553d9b,''+_0xdbf3f);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService['prototype'],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a14_0x354a9f(0x16c)])(),(0x0,core_1[a14_0x354a9f(0x16d)])(core_1['ScopeEnum'][a14_0x354a9f(0x1a5)])],ExcelService),exports[a14_0x354a9f(0x186)]=ExcelService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x4d55a4=a15_0x468d;(function(_0xa9d42e,_0x436942){const _0x581793=a15_0x468d,_0x1e5195=_0xa9d42e();while(!![]){try{const _0x1a5040=-parseInt(_0x581793(0x1f4))/0x1+-parseInt(_0x581793(0x1f2))/0x2*(-parseInt(_0x581793(0x229))/0x3)+-parseInt(_0x581793(0x234))/0x4*(-parseInt(_0x581793(0x1ef))/0x5)+parseInt(_0x581793(0x20f))/0x6+-parseInt(_0x581793(0x233))/0x7*(parseInt(_0x581793(0x228))/0x8)+-parseInt(_0x581793(0x1de))/0x9*(parseInt(_0x581793(0x1fa))/0xa)+parseInt(_0x581793(0x1e8))/0xb*(-parseInt(_0x581793(0x22e))/0xc);if(_0x1a5040===_0x436942)break;else _0x1e5195['push'](_0x1e5195['shift']());}catch(_0x389d82){_0x1e5195['push'](_0x1e5195['shift']());}}}(a15_0x2e9b,0x53786));function a15_0x2e9b(){const _0x5c3b94=['_WorkbookWriter','replace','68341ZEYRuD','12wEobsw','63cmjaBc','ExcelStream','read','filepath','commit','addRow','rootpath','row','columns','existsSync','167563TBxomf','values','emit','eachCell','save','set','finished','833970CIeqMr','lodash','stream','256726jnFtwP','search','375514vPjHQZ','ignore','extname','length','dirname','indexOf','46930VubVEA','(((.+)+)+)+$','文件名格式错误','writeFile','chunkArray','unpipe','finish','filter','Readable','isNumber','function','has','_WorksheetWriterMap','getCell','toString','unlink','cellCount','__esModule','constructor','worksheets','WorkbookReader','898818NfFeiS','substring','from','getWorkbookWriterSheet','xls','error','end','suffix','slice','handler','reader','col','resume','isArray','header','pipe','pause','get','xlsx','mkdirSync','forEach','exceljs','lastIndexOf','sheets','addWorksheet','32ypUPyi','15xmLVpX','model','value','key','instance','396MYIKjU','WorkbookWriter','keys'];a15_0x2e9b=function(){return _0x5c3b94;};return a15_0x2e9b();}const a15_0x1e6eb6=(function(){let _0x40cd6e=!![];return function(_0x52e847,_0x4aa06a){const _0x41ddca=_0x40cd6e?function(){if(_0x4aa06a){const _0x1082d5=_0x4aa06a['apply'](_0x52e847,arguments);return _0x4aa06a=null,_0x1082d5;}}:function(){};return _0x40cd6e=![],_0x41ddca;};}()),a15_0x2c8186=a15_0x1e6eb6(this,function(){const _0x1fbc8a=a15_0x468d;return a15_0x2c8186[_0x1fbc8a(0x208)]()['search'](_0x1fbc8a(0x1fb))[_0x1fbc8a(0x208)]()[_0x1fbc8a(0x20c)](a15_0x2c8186)[_0x1fbc8a(0x1f3)](_0x1fbc8a(0x1fb));});a15_0x2c8186();'use strict';Object['defineProperty'](exports,a15_0x4d55a4(0x20b),{'value':!![]}),exports[a15_0x4d55a4(0x1df)]=void 0x0;function a15_0x468d(_0x301444,_0x974019){const _0x26710d=a15_0x2e9b();return a15_0x468d=function(_0x2c8186,_0x1e6eb6){_0x2c8186=_0x2c8186-0x1de;let _0x2e9bbd=_0x26710d[_0x2c8186];return _0x2e9bbd;},a15_0x468d(_0x301444,_0x974019);}const fs=require('fs'),path=require('path'),lodash=require(a15_0x4d55a4(0x1f0)),exceljs=require(a15_0x4d55a4(0x224)),stream_1=require(a15_0x4d55a4(0x1f1));function isReadableStream(_0x3e524e){const _0x491c44=a15_0x4d55a4;return _0x3e524e&&typeof _0x3e524e[_0x491c44(0x21e)]==='function'&&typeof _0x3e524e['on']===_0x491c44(0x204)&&typeof _0x3e524e[_0x491c44(0x1e0)]===_0x491c44(0x204)&&typeof _0x3e524e[_0x491c44(0x21f)]===_0x491c44(0x204)&&typeof _0x3e524e[_0x491c44(0x21b)]===_0x491c44(0x204);}class ExcelStream{constructor(_0x5ce88d){const _0x2e6824=a15_0x4d55a4;this[_0x2e6824(0x206)]=new Map(),this[_0x2e6824(0x1e1)]=_0x5ce88d;}get['WorkbookReader'](){const _0x1af85a=a15_0x4d55a4;return!this['_WorkbookReader']&&(this['_WorkbookReader']=new exceljs[(_0x1af85a(0x1f1))][(_0x1af85a(0x221))][(_0x1af85a(0x20e))](this['filepath'],{'worksheets':_0x1af85a(0x1ea),'sharedStrings':'ignore','hyperlinks':_0x1af85a(0x1f5),'styles':_0x1af85a(0x1f5)})),this['_WorkbookReader'];}get[a15_0x4d55a4(0x22f)](){const _0x225f8c=a15_0x4d55a4;return!this[_0x225f8c(0x231)]&&(this[_0x225f8c(0x231)]=new exceljs[(_0x225f8c(0x1f1))][(_0x225f8c(0x221))][(_0x225f8c(0x22f))]({'filename':this['filepath'],'useStyles':!![],'useSharedStrings':![]})),this[_0x225f8c(0x231)];}static[a15_0x4d55a4(0x22d)](_0x4f32a9,_0x3cf60f={'suffix':[a15_0x4d55a4(0x213),a15_0x4d55a4(0x221)]}){return new Promise(async(_0x28afbc,_0xdabe25)=>{const _0x1877ed=a15_0x468d,_0x2b84d5=_0x4f32a9[_0x1877ed(0x210)]((_0x4f32a9[_0x1877ed(0x1f9)]('/')>-0x1?_0x4f32a9['lastIndexOf']('/'):_0x4f32a9[_0x1877ed(0x225)]('\x5c'))+0x1),_0x4b3887=path[_0x1877ed(0x1f8)](((_0x3cf60f===null||_0x3cf60f===void 0x0?void 0x0:_0x3cf60f['rootpath'])&&!_0x4f32a9['startsWith'](_0x3cf60f[_0x1877ed(0x1e4)])?_0x3cf60f[_0x1877ed(0x1e4)]+'/'+_0x4f32a9:'/'+_0x4f32a9)[_0x1877ed(0x232)](/(\\|\/)/g,'/')[_0x1877ed(0x232)](/\/{2,}/g,'/'));if(!((_0x3cf60f===null||_0x3cf60f===void 0x0?void 0x0:_0x3cf60f['suffix'])?_0x3cf60f[_0x1877ed(0x216)]:['xls','xlsx'])['includes'](_0x2b84d5[_0x1877ed(0x210)](_0x2b84d5[_0x1877ed(0x225)]('.')+0x1)))return _0xdabe25(_0x1877ed(0x1fc));const _0x34686c=(_0x4b3887+'/'+_0x2b84d5)[_0x1877ed(0x232)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');if(!fs[_0x1877ed(0x1e7)](_0x34686c)){!fs[_0x1877ed(0x1e7)](_0x4b3887)&&fs[_0x1877ed(0x222)](_0x4b3887,{'recursive':!![]});const _0x1e44c8=new exceljs['Workbook']();await _0x1e44c8[_0x1877ed(0x221)][_0x1877ed(0x1fd)](_0x34686c);}return _0x28afbc(new ExcelStream(_0x34686c));});}async['writer'](_0x4e817c,_0x166c6e,_0x4a4cd8={}){const _0x33708d=a15_0x4d55a4,{sheet:sheet=0x0,fileLimit:fileLimit=0x0}=_0x4a4cd8,_0xc0d852=_0x4e817c['map'](_0x9a34da=>({'header':_0x9a34da[_0x33708d(0x21d)],'key':_0x9a34da[_0x33708d(0x22c)][_0x33708d(0x232)](/\./g,'_')}));if(!Array[_0x33708d(0x21c)](_0x166c6e)&&!isReadableStream(_0x166c6e))return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0,'fileCount':0x0,'filepaths':[]};let _0xb0ccc1=0x0,_0x1a85cc=0x0,_0x29ecd3=0x0,_0x41a9d7=[],_0x322dc0;const _0x1b144d=async()=>{const _0x3d3a63=_0x33708d;if(fileLimit>0x0){_0x1a85cc>0x0&&(await this[_0x3d3a63(0x22f)][_0x3d3a63(0x1e2)](),this[_0x3d3a63(0x206)]['clear']());const _0x2534c8=path[_0x3d3a63(0x1f6)](this['filepath']),_0x1a8cbd=this[_0x3d3a63(0x1e1)][_0x3d3a63(0x232)](_0x2534c8,''),_0x7fb890=_0x1a8cbd+'-'+(_0x1a85cc+0x1)+_0x2534c8;this[_0x3d3a63(0x231)]=new exceljs[(_0x3d3a63(0x1f1))]['xlsx'][(_0x3d3a63(0x22f))]({'filename':_0x7fb890,'useStyles':!![],'useSharedStrings':![]}),_0x41a9d7['push'](_0x7fb890),await fsplus['exists'](this['filepath'])&&await fsplus[_0x3d3a63(0x209)](this['filepath']);}_0x322dc0=this[_0x3d3a63(0x212)](sheet,!![]),_0x322dc0[_0x3d3a63(0x1e6)]=_0xc0d852;},_0x34f501=0x64,_0x556049=Array[_0x33708d(0x21c)](_0x166c6e)?stream_1[_0x33708d(0x202)][_0x33708d(0x211)](this[_0x33708d(0x1fe)](_0x166c6e,_0x34f501),{'objectMode':!![]}):_0x166c6e,_0x518891=new stream_1['Transform']({'objectMode':!![],'highWaterMark':_0x34f501,'transform':async function(_0x559be2,_0x5b39e3,_0x31dcbe){const _0x327d4a=_0x33708d;Array[_0x327d4a(0x21c)](_0x559be2)&&_0x559be2[_0x327d4a(0x1f7)]>0x0&&_0x559be2[_0x327d4a(0x223)](_0x192506=>{this['push'](_0x192506);}),_0x31dcbe();}});await _0x1b144d();const _0x2562a4=new stream_1['Writable']({'objectMode':!![],'highWaterMark':_0x34f501,async 'write'(_0x23f164,_0x5cc90f,_0x141a97){const _0x2a2143=_0x33708d;var _0x59e32e;try{fileLimit>0x0&&_0x29ecd3>=fileLimit&&(_0x1a85cc++,_0x29ecd3=0x0,await _0x1b144d());const _0x1b331c=_0x322dc0[_0x2a2143(0x1e3)]({});for(let _0x2ff7bc in _0x4e817c){const _0x1c1a2c=_0x4e817c[_0x2ff7bc]['key'][_0x2a2143(0x232)](/\./g,'_'),_0x45003f=_0x322dc0['getColumn'](_0x1c1a2c),_0x2c1c4a=_0x1b331c===null||_0x1b331c===void 0x0?void 0x0:_0x1b331c[_0x2a2143(0x207)](_0x1c1a2c);typeof((_0x59e32e=_0x4e817c[_0x2ff7bc])===null||_0x59e32e===void 0x0?void 0x0:_0x59e32e[_0x2a2143(0x218)])=='function'?_0x2c1c4a[_0x2a2143(0x22b)]=await _0x4e817c[_0x2ff7bc][_0x2a2143(0x218)](_0x23f164,{'row':_0x1b331c,'col':_0x45003f,'cell':_0x2c1c4a,'sheet':_0x322dc0})||'':_0x2c1c4a[_0x2a2143(0x22b)]=lodash[_0x2a2143(0x220)](_0x23f164,_0x4e817c[_0x2ff7bc][_0x2a2143(0x22c)],'');}_0xb0ccc1++,_0x29ecd3++,_0x1b331c[_0x2a2143(0x1e2)](),_0x141a97();}catch(_0x474a80){_0x141a97(_0x474a80);}},async 'final'(_0x3b17f7){try{_0x3b17f7();}catch(_0x172bec){_0x3b17f7(_0x172bec);}}});return new Promise((_0x2feb1a,_0x1b098e)=>{const _0x3bf3c8=_0x33708d,_0x152998=_0x4a46f2=>{_0x556049['destroy'](),_0x518891['destroy'](),_0x2562a4['destroy'](),_0x1b098e(_0x4a46f2);};_0x556049['on']('error',_0x152998)[_0x3bf3c8(0x21e)](_0x518891)['on'](_0x3bf3c8(0x214),_0x152998)['pipe'](_0x2562a4)['on'](_0x3bf3c8(0x214),_0x152998)['on'](_0x3bf3c8(0x200),()=>{const _0x12e7ea=_0x3bf3c8;try{_0x556049[_0x12e7ea(0x1ff)](),_0x518891[_0x12e7ea(0x1ff)](),_0x518891[_0x12e7ea(0x215)](),_0x2562a4[_0x12e7ea(0x215)](),_0x2feb1a({'rowCount':_0xb0ccc1,'worksheet':_0x322dc0,'done':()=>_0x322dc0[_0x12e7ea(0x1e2)](),'fileCount':_0x1a85cc+0x1,'filepaths':_0x41a9d7});}catch(_0x1c92d3){_0x1b098e(_0x1c92d3);}}),Array[_0x3bf3c8(0x21c)](_0x166c6e)&&_0x556049[_0x3bf3c8(0x21b)]();});}async[a15_0x4d55a4(0x219)](_0x37c624,_0xbbebaf,_0x505ffe={'sheets':0x0}){const _0x101635=a15_0x4d55a4;var _0x2d6f43,_0x40d1d9,_0x4745db;const _0x49fe94=(_0x505ffe===null||_0x505ffe===void 0x0?void 0x0:_0x505ffe['sheets'])?Array[_0x101635(0x21c)](_0x505ffe['sheets'])?_0x505ffe[_0x101635(0x226)]:[_0x505ffe[_0x101635(0x226)]]:[0x0],_0x29660d=_0x26bbbd=>new Promise(async(_0x7ce1a3,_0x3ddf0f)=>{const _0x50c34c=_0x101635,_0x2941ef=_0x26bbbd['getRow'](0x1),_0x35ca1f=await new Promise(_0x510ed0=>{const _0x237c14=a15_0x468d,_0x196752={};_0x2941ef[_0x237c14(0x1eb)]((_0x1d99d9,_0x38322f)=>{const _0x1cbcab=_0x237c14;for(const _0xed5f89 of _0x37c624){if(_0x1d99d9['value']==_0xed5f89[_0x1cbcab(0x21d)])_0x196752[_0xed5f89['key']]={'header':_0x1d99d9[_0x1cbcab(0x21a)],'handler':_0xed5f89[_0x1cbcab(0x218)]};else{if(!_0x196752[_0xed5f89[_0x1cbcab(0x22c)]])try{const _0x30cd4c=_0x2941ef&&_0x2941ef['getCell'](_0xed5f89[_0x1cbcab(0x21d)]);_0x30cd4c&&(_0x196752[_0xed5f89['key']]={'header':_0x30cd4c[_0x1cbcab(0x21a)],'handler':_0xed5f89[_0x1cbcab(0x218)]});}catch{}}}_0x2941ef[_0x1cbcab(0x20a)]==_0x38322f&&_0x510ed0(_0x196752);});});_0x26bbbd['on'](_0x50c34c(0x1ee),_0x3385e5=>_0x7ce1a3(_0x26bbbd)),_0x26bbbd['on']('error',_0x37cb03=>_0x3ddf0f(_0x37cb03)),_0x26bbbd['on'](_0x50c34c(0x1e5),async _0x322750=>{const _0x3946dc=_0x50c34c;var _0x10dec7;if(typeof(_0x322750===null||_0x322750===void 0x0?void 0x0:_0x322750['getCell'])==_0x3946dc(0x204)){const _0x23a7f7={};_0x35443e:for(const _0x517b15 in _0x35ca1f){if(_0x35ca1f[_0x517b15]['header']){const _0x1d5f4c=_0x322750[_0x3946dc(0x207)](_0x35ca1f[_0x517b15][_0x3946dc(0x21d)]);if(!_0x1d5f4c)continue _0x35443e;try{_0x1d5f4c['toString']();}catch(_0x328979){_0x1d5f4c[_0x3946dc(0x208)]=()=>{const _0x32f080=_0x3946dc;var _0x504540;return''+(((_0x504540=_0x1d5f4c===null||_0x1d5f4c===void 0x0?void 0x0:_0x1d5f4c[_0x32f080(0x22a)])===null||_0x504540===void 0x0?void 0x0:_0x504540[_0x32f080(0x22b)])||'');};}typeof((_0x10dec7=_0x35ca1f[_0x517b15])===null||_0x10dec7===void 0x0?void 0x0:_0x10dec7[_0x3946dc(0x218)])==_0x3946dc(0x204)?_0x23a7f7[_0x517b15]=await _0x35ca1f[_0x517b15][_0x3946dc(0x218)](lodash[_0x3946dc(0x1ed)]({},_0x517b15,(_0x1d5f4c===null||_0x1d5f4c===void 0x0?void 0x0:_0x1d5f4c[_0x3946dc(0x208)]())||''),_0x1d5f4c['model']):_0x23a7f7[_0x517b15]=(_0x1d5f4c===null||_0x1d5f4c===void 0x0?void 0x0:_0x1d5f4c[_0x3946dc(0x208)]())||'';}}Object[_0x3946dc(0x230)](_0x23a7f7)[_0x3946dc(0x1f7)]>0x0&&Object[_0x3946dc(0x1e9)](_0x23a7f7)[_0x3946dc(0x201)](_0x2552cb=>_0x2552cb!='')[_0x3946dc(0x1f7)]>0x0&&await _0xbbebaf(_0x23a7f7,{'sheet':_0x26bbbd,'row':_0x322750});}}),await _0x26bbbd['read']();});for(const _0x20cf3c of _0x49fe94){const _0xa33cf7=lodash['isNumber'](_0x20cf3c)?((_0x40d1d9=(_0x2d6f43=this[_0x101635(0x20e)])===null||_0x2d6f43===void 0x0?void 0x0:_0x2d6f43[_0x101635(0x20d)])===null||_0x40d1d9===void 0x0?void 0x0:_0x40d1d9[_0x20cf3c])||undefined:(_0x4745db=this[_0x101635(0x20e)])===null||_0x4745db===void 0x0?void 0x0:_0x4745db['getWorksheet'](_0x20cf3c);_0xa33cf7&&await _0x29660d(_0xa33cf7);}}['getWorkbookWriterSheet'](_0x5385c4,_0x5af1b8=![]){const _0x1e0b09=a15_0x4d55a4;var _0x425a2d,_0x196ba2;let _0x9eef66=this['_WorksheetWriterMap'][_0x1e0b09(0x205)](_0x5385c4)?this['_WorksheetWriterMap'][_0x1e0b09(0x220)](_0x5385c4):(_0x425a2d=this[_0x1e0b09(0x22f)])===null||_0x425a2d===void 0x0?void 0x0:_0x425a2d['getWorksheet'](_0x5385c4);return!_0x9eef66&&_0x5af1b8&&(_0x9eef66=(_0x196ba2=this[_0x1e0b09(0x22f)])===null||_0x196ba2===void 0x0?void 0x0:_0x196ba2[_0x1e0b09(0x227)](lodash[_0x1e0b09(0x203)](_0x5385c4)?undefined:''+_0x5385c4,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x1e0b09(0x206)][_0x1e0b09(0x1ed)](_0x5385c4,_0x9eef66)),_0x9eef66;}async[a15_0x4d55a4(0x1ec)](){const _0x3bc265=a15_0x4d55a4;var _0x174c29;return await((_0x174c29=this[_0x3bc265(0x22f)])===null||_0x174c29===void 0x0?void 0x0:_0x174c29[_0x3bc265(0x1e2)]()),this;}*[a15_0x4d55a4(0x1fe)](_0x2e6486,_0x2c4763){const _0x41573d=a15_0x4d55a4;for(let _0x4b48b9=0x0;_0x4b48b9<_0x2e6486[_0x41573d(0x1f7)];_0x4b48b9+=_0x2c4763){yield _0x2e6486[_0x41573d(0x217)](_0x4b48b9,_0x4b48b9+_0x2c4763);}}}exports[a15_0x4d55a4(0x1df)]=ExcelStream;
|
|
1
|
+
const a15_0x314aa8=a15_0x4f6e;(function(_0x58975f,_0x4cc2bc){const _0x159586=a15_0x4f6e,_0x43e573=_0x58975f();while(!![]){try{const _0xf121bd=parseInt(_0x159586(0x145))/0x1+parseInt(_0x159586(0x132))/0x2+-parseInt(_0x159586(0x13b))/0x3*(parseInt(_0x159586(0x159))/0x4)+-parseInt(_0x159586(0x15b))/0x5+parseInt(_0x159586(0x10c))/0x6+-parseInt(_0x159586(0x151))/0x7+parseInt(_0x159586(0x135))/0x8;if(_0xf121bd===_0x4cc2bc)break;else _0x43e573['push'](_0x43e573['shift']());}catch(_0x1fe52b){_0x43e573['push'](_0x43e573['shift']());}}}(a15_0x121c,0xf0fbe));const a15_0x36aff7=(function(){let _0x35db78=!![];return function(_0x2233e3,_0x33c1fe){const _0x3000ad=_0x35db78?function(){if(_0x33c1fe){const _0x4927e5=_0x33c1fe['apply'](_0x2233e3,arguments);return _0x33c1fe=null,_0x4927e5;}}:function(){};return _0x35db78=![],_0x3000ad;};}()),a15_0x484064=a15_0x36aff7(this,function(){const _0x2cedb2=a15_0x4f6e;return a15_0x484064[_0x2cedb2(0x148)]()['search'](_0x2cedb2(0x13e))[_0x2cedb2(0x148)]()['constructor'](a15_0x484064)[_0x2cedb2(0x142)]('(((.+)+)+)+$');});a15_0x484064();'use strict';Object[a15_0x314aa8(0x158)](exports,a15_0x314aa8(0x156),{'value':!![]}),exports[a15_0x314aa8(0x131)]=void 0x0;const fs=require('fs'),path=require(a15_0x314aa8(0x112)),lodash=require(a15_0x314aa8(0x12b)),exceljs=require(a15_0x314aa8(0x146)),stream_1=require(a15_0x314aa8(0x157));function isReadableStream(_0x1700c0){const _0x2d676b=a15_0x314aa8;return _0x1700c0&&typeof _0x1700c0['pipe']===_0x2d676b(0x10f)&&typeof _0x1700c0['on']===_0x2d676b(0x10f)&&typeof _0x1700c0[_0x2d676b(0x10e)]===_0x2d676b(0x10f)&&typeof _0x1700c0[_0x2d676b(0x13f)]===_0x2d676b(0x10f)&&typeof _0x1700c0[_0x2d676b(0x113)]===_0x2d676b(0x10f);}class ExcelStream{constructor(_0x299951){const _0x4b0392=a15_0x314aa8;this['_WorksheetWriterMap']=new Map(),this[_0x4b0392(0x14e)]=_0x299951;}get[a15_0x314aa8(0x10a)](){const _0x1a8c40=a15_0x314aa8;return!this[_0x1a8c40(0x11b)]&&(this[_0x1a8c40(0x11b)]=new exceljs['stream']['xlsx'][(_0x1a8c40(0x10a))](this[_0x1a8c40(0x14e)],{'worksheets':_0x1a8c40(0x15e),'sharedStrings':_0x1a8c40(0x116),'hyperlinks':'ignore','styles':_0x1a8c40(0x116)})),this[_0x1a8c40(0x11b)];}get[a15_0x314aa8(0x139)](){const _0x29392d=a15_0x314aa8;return!this[_0x29392d(0x152)]&&(this[_0x29392d(0x152)]=new exceljs['stream']['xlsx'][(_0x29392d(0x139))]({'filename':this['filepath'],'useStyles':!![],'useSharedStrings':![]})),this['_WorkbookWriter'];}static[a15_0x314aa8(0x12e)](_0x18c871,_0x5b4b89={'suffix':[a15_0x314aa8(0x11a),'xlsx']}){return new Promise(async(_0x48a7a9,_0xfe36be)=>{const _0x23ef56=a15_0x4f6e,_0x4f9399=_0x18c871[_0x23ef56(0x13d)]((_0x18c871['indexOf']('/')>-0x1?_0x18c871[_0x23ef56(0x117)]('/'):_0x18c871[_0x23ef56(0x117)]('\x5c'))+0x1),_0x2b5717=path[_0x23ef56(0x12f)](((_0x5b4b89===null||_0x5b4b89===void 0x0?void 0x0:_0x5b4b89[_0x23ef56(0x14d)])&&!_0x18c871[_0x23ef56(0x122)](_0x5b4b89[_0x23ef56(0x14d)])?_0x5b4b89['rootpath']+'/'+_0x18c871:'/'+_0x18c871)[_0x23ef56(0x12a)](/(\\|\/)/g,'/')[_0x23ef56(0x12a)](/\/{2,}/g,'/'));if(!((_0x5b4b89===null||_0x5b4b89===void 0x0?void 0x0:_0x5b4b89[_0x23ef56(0x11e)])?_0x5b4b89[_0x23ef56(0x11e)]:[_0x23ef56(0x11a),'xlsx'])[_0x23ef56(0x14a)](_0x4f9399['substring'](_0x4f9399[_0x23ef56(0x117)]('.')+0x1)))return _0xfe36be('文件名格式错误');const _0x271518=(_0x2b5717+'/'+_0x4f9399)['replace'](/(\\|\/)/g,'/')[_0x23ef56(0x12a)](/\/{2,}/g,'/');if(!fs['existsSync'](_0x271518)){!fs['existsSync'](_0x2b5717)&&fs[_0x23ef56(0x144)](_0x2b5717,{'recursive':!![]});const _0x269b78=new exceljs[(_0x23ef56(0x153))]();await _0x269b78[_0x23ef56(0x13c)][_0x23ef56(0x126)](_0x271518);}return _0x48a7a9(new ExcelStream(_0x271518));});}async['writer'](_0x311fb1,_0x1f7d95,_0x42fc1f={}){const _0x52667a=a15_0x314aa8,{sheet:sheet=0x0,fileLimit:fileLimit=0x0}=_0x42fc1f,_0x5f56f8=_0x311fb1[_0x52667a(0x127)](_0x26bc63=>({'header':_0x26bc63[_0x52667a(0x134)],'key':_0x26bc63[_0x52667a(0x150)][_0x52667a(0x12a)](/\./g,'_')}));if(!Array['isArray'](_0x1f7d95)&&!isReadableStream(_0x1f7d95))return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0,'fileCount':0x0,'filepaths':[]};let _0x410d97=0x0,_0x801e56=0x0,_0xa40635=0x0,_0x485f38=[],_0x9dc334;const _0x1a3167=async()=>{const _0x2124b1=_0x52667a;if(fileLimit>0x0){_0x801e56>0x0&&(await this[_0x2124b1(0x139)]['commit'](),this[_0x2124b1(0x130)]['clear']());const _0x58bec1=path[_0x2124b1(0x13a)](this[_0x2124b1(0x14e)]),_0x6f6662=this[_0x2124b1(0x14e)]['replace'](_0x58bec1,''),_0x338275=_0x6f6662+'-'+(_0x801e56+0x1)+_0x58bec1;this[_0x2124b1(0x152)]=new exceljs[(_0x2124b1(0x157))]['xlsx'][(_0x2124b1(0x139))]({'filename':_0x338275,'useStyles':!![],'useSharedStrings':![]}),_0x485f38[_0x2124b1(0x14b)](_0x338275),await fsplus[_0x2124b1(0x14f)](this['filepath'])&&await fsplus[_0x2124b1(0x15d)](this[_0x2124b1(0x14e)]);}_0x9dc334=this[_0x2124b1(0x14c)](sheet,!![]),_0x9dc334[_0x2124b1(0x149)]=_0x5f56f8;},_0x4d9b11=0x64,_0x23d0e6=Array[_0x52667a(0x136)](_0x1f7d95)?stream_1['Readable']['from'](this[_0x52667a(0x125)](_0x1f7d95,_0x4d9b11),{'objectMode':!![]}):_0x1f7d95,_0x5a5592=new stream_1[(_0x52667a(0x114))]({'objectMode':!![],'highWaterMark':_0x4d9b11,'transform':async function(_0x3f4adb,_0x3873b4,_0x473b4e){const _0x5300e1=_0x52667a;Array[_0x5300e1(0x136)](_0x3f4adb)&&_0x3f4adb[_0x5300e1(0x160)]>0x0&&_0x3f4adb['forEach'](_0x1571a6=>{const _0x1f87f4=_0x5300e1;this[_0x1f87f4(0x14b)](_0x1571a6);}),_0x473b4e();}});await _0x1a3167();const _0x1abe24=new stream_1[(_0x52667a(0x12c))]({'objectMode':!![],'highWaterMark':_0x4d9b11,async 'write'(_0x1e4ae6,_0x2a4458,_0x16befd){const _0x1acde5=_0x52667a;var _0x3bfee3;try{fileLimit>0x0&&_0xa40635>=fileLimit&&(_0x801e56++,_0xa40635=0x0,await _0x1a3167());const _0x373172=_0x9dc334[_0x1acde5(0x15f)]({});for(let _0xdd91a6 in _0x311fb1){const _0x212f5d=_0x311fb1[_0xdd91a6][_0x1acde5(0x150)][_0x1acde5(0x12a)](/\./g,'_'),_0x3686b9=_0x9dc334[_0x1acde5(0x123)](_0x212f5d),_0x2a0b77=_0x373172===null||_0x373172===void 0x0?void 0x0:_0x373172[_0x1acde5(0x128)](_0x212f5d);typeof((_0x3bfee3=_0x311fb1[_0xdd91a6])===null||_0x3bfee3===void 0x0?void 0x0:_0x3bfee3[_0x1acde5(0x119)])=='function'?_0x2a0b77['value']=await _0x311fb1[_0xdd91a6]['handler'](_0x1e4ae6,{'row':_0x373172,'col':_0x3686b9,'cell':_0x2a0b77,'sheet':_0x9dc334})||'':_0x2a0b77[_0x1acde5(0x121)]=lodash['get'](_0x1e4ae6,_0x311fb1[_0xdd91a6][_0x1acde5(0x150)],'');}_0x410d97++,_0xa40635++,_0x373172[_0x1acde5(0x12d)](),_0x16befd();}catch(_0x2973e2){_0x16befd(_0x2973e2);}},async 'final'(_0x27df7a){try{_0x27df7a();}catch(_0x42f4d3){_0x27df7a(_0x42f4d3);}}});return new Promise((_0x5b219b,_0x21d1d3)=>{const _0x58fb1c=_0x52667a,_0x4f7fcf=_0x550524=>{const _0x7d5c0a=a15_0x4f6e;_0x23d0e6[_0x7d5c0a(0x133)](),_0x5a5592['destroy'](),_0x1abe24['destroy'](),_0x21d1d3(_0x550524);};_0x23d0e6['on'](_0x58fb1c(0x10d),_0x4f7fcf)['pipe'](_0x5a5592)['on'](_0x58fb1c(0x10d),_0x4f7fcf)[_0x58fb1c(0x147)](_0x1abe24)['on'](_0x58fb1c(0x10d),_0x4f7fcf)['on'](_0x58fb1c(0x11f),()=>{const _0x17ec5c=_0x58fb1c;try{_0x23d0e6[_0x17ec5c(0x115)](),_0x5a5592['unpipe'](),_0x5a5592[_0x17ec5c(0x154)](),_0x1abe24[_0x17ec5c(0x154)](),_0x5b219b({'rowCount':_0x410d97,'worksheet':_0x9dc334,'done':()=>_0x9dc334[_0x17ec5c(0x12d)](),'fileCount':_0x801e56+0x1,'filepaths':_0x485f38});}catch(_0x2829d2){_0x21d1d3(_0x2829d2);}}),Array[_0x58fb1c(0x136)](_0x1f7d95)&&_0x23d0e6[_0x58fb1c(0x113)]();});}async[a15_0x314aa8(0x137)](_0x10b379,_0x1134ee,_0x244b30={'sheets':0x0}){const _0x59ef2b=a15_0x314aa8;var _0xc6aaf,_0x272fa6,_0x531265;const _0x41de9c=(_0x244b30===null||_0x244b30===void 0x0?void 0x0:_0x244b30['sheets'])?Array['isArray'](_0x244b30[_0x59ef2b(0x143)])?_0x244b30['sheets']:[_0x244b30[_0x59ef2b(0x143)]]:[0x0],_0x5113ff=_0x954800=>new Promise(async(_0xaf947c,_0x3b9e62)=>{const _0x41e35b=_0x59ef2b,_0x393b84=_0x954800[_0x41e35b(0x140)](0x1),_0xf2b377=await new Promise(_0x26bf87=>{const _0x44396=_0x41e35b,_0x5dc993={};_0x393b84[_0x44396(0x118)]((_0x5ea9be,_0x2e5487)=>{const _0x3663ce=_0x44396;for(const _0x5d8bad of _0x10b379){if(_0x5ea9be[_0x3663ce(0x121)]==_0x5d8bad[_0x3663ce(0x134)])_0x5dc993[_0x5d8bad[_0x3663ce(0x150)]]={'header':_0x5ea9be[_0x3663ce(0x11d)],'handler':_0x5d8bad[_0x3663ce(0x119)]};else{if(!_0x5dc993[_0x5d8bad[_0x3663ce(0x150)]])try{const _0x3222f7=_0x393b84&&_0x393b84[_0x3663ce(0x128)](_0x5d8bad[_0x3663ce(0x134)]);_0x3222f7&&(_0x5dc993[_0x5d8bad[_0x3663ce(0x150)]]={'header':_0x3222f7['col'],'handler':_0x5d8bad[_0x3663ce(0x119)]});}catch{}}}_0x393b84[_0x3663ce(0x129)]==_0x2e5487&&_0x26bf87(_0x5dc993);});});_0x954800['on']('finished',_0x10a531=>_0xaf947c(_0x954800)),_0x954800['on'](_0x41e35b(0x10d),_0x151a55=>_0x3b9e62(_0x151a55)),_0x954800['on'](_0x41e35b(0x141),async _0x5bdd68=>{const _0x29b0f3=_0x41e35b;var _0xa60c00;if(typeof(_0x5bdd68===null||_0x5bdd68===void 0x0?void 0x0:_0x5bdd68[_0x29b0f3(0x128)])=='function'){const _0x56a0ec={};_0xd9915:for(const _0x3ee8cf in _0xf2b377){if(_0xf2b377[_0x3ee8cf]['header']){const _0x1887a6=_0x5bdd68['getCell'](_0xf2b377[_0x3ee8cf][_0x29b0f3(0x134)]);if(!_0x1887a6)continue _0xd9915;try{_0x1887a6[_0x29b0f3(0x148)]();}catch(_0x569952){_0x1887a6[_0x29b0f3(0x148)]=()=>{const _0x3943ac=_0x29b0f3;var _0x380c20;return''+(((_0x380c20=_0x1887a6===null||_0x1887a6===void 0x0?void 0x0:_0x1887a6['model'])===null||_0x380c20===void 0x0?void 0x0:_0x380c20[_0x3943ac(0x121)])||'');};}typeof((_0xa60c00=_0xf2b377[_0x3ee8cf])===null||_0xa60c00===void 0x0?void 0x0:_0xa60c00['handler'])==_0x29b0f3(0x10f)?_0x56a0ec[_0x3ee8cf]=await _0xf2b377[_0x3ee8cf][_0x29b0f3(0x119)](lodash[_0x29b0f3(0x10b)]({},_0x3ee8cf,(_0x1887a6===null||_0x1887a6===void 0x0?void 0x0:_0x1887a6['toString']())||''),_0x1887a6[_0x29b0f3(0x124)]):_0x56a0ec[_0x3ee8cf]=(_0x1887a6===null||_0x1887a6===void 0x0?void 0x0:_0x1887a6[_0x29b0f3(0x148)]())||'';}}Object[_0x29b0f3(0x111)](_0x56a0ec)['length']>0x0&&Object[_0x29b0f3(0x15a)](_0x56a0ec)[_0x29b0f3(0x11c)](_0x7cfb9b=>_0x7cfb9b!='')['length']>0x0&&await _0x1134ee(_0x56a0ec,{'sheet':_0x954800,'row':_0x5bdd68});}}),await _0x954800[_0x41e35b(0x10e)]();});for(const _0x254896 of _0x41de9c){const _0x548b9d=lodash[_0x59ef2b(0x120)](_0x254896)?((_0x272fa6=(_0xc6aaf=this[_0x59ef2b(0x10a)])===null||_0xc6aaf===void 0x0?void 0x0:_0xc6aaf['worksheets'])===null||_0x272fa6===void 0x0?void 0x0:_0x272fa6[_0x254896])||undefined:(_0x531265=this[_0x59ef2b(0x10a)])===null||_0x531265===void 0x0?void 0x0:_0x531265[_0x59ef2b(0x109)](_0x254896);_0x548b9d&&await _0x5113ff(_0x548b9d);}}[a15_0x314aa8(0x14c)](_0x29de2a,_0x1cb337=![]){const _0x559271=a15_0x314aa8;var _0x493b5e,_0x1580ce;let _0x34479c=this[_0x559271(0x130)]['has'](_0x29de2a)?this[_0x559271(0x130)][_0x559271(0x138)](_0x29de2a):(_0x493b5e=this['WorkbookWriter'])===null||_0x493b5e===void 0x0?void 0x0:_0x493b5e[_0x559271(0x109)](_0x29de2a);return!_0x34479c&&_0x1cb337&&(_0x34479c=(_0x1580ce=this[_0x559271(0x139)])===null||_0x1580ce===void 0x0?void 0x0:_0x1580ce[_0x559271(0x110)](lodash['isNumber'](_0x29de2a)?undefined:''+_0x29de2a,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x559271(0x130)][_0x559271(0x10b)](_0x29de2a,_0x34479c)),_0x34479c;}async[a15_0x314aa8(0x15c)](){const _0x387d04=a15_0x314aa8;var _0x520c8c;return await((_0x520c8c=this[_0x387d04(0x139)])===null||_0x520c8c===void 0x0?void 0x0:_0x520c8c[_0x387d04(0x12d)]()),this;}*[a15_0x314aa8(0x125)](_0x13e3e5,_0x2639fe){const _0x33af29=a15_0x314aa8;for(let _0x30c4bd=0x0;_0x30c4bd<_0x13e3e5[_0x33af29(0x160)];_0x30c4bd+=_0x2639fe){yield _0x13e3e5[_0x33af29(0x155)](_0x30c4bd,_0x30c4bd+_0x2639fe);}}}function a15_0x4f6e(_0x3c33d5,_0x113019){const _0x7a4170=a15_0x121c();return a15_0x4f6e=function(_0x484064,_0x36aff7){_0x484064=_0x484064-0x109;let _0x121cdd=_0x7a4170[_0x484064];return _0x121cdd;},a15_0x4f6e(_0x3c33d5,_0x113019);}function a15_0x121c(){const _0x4fa2f6=['filepath','exists','key','5373221RXLsqY','_WorkbookWriter','Workbook','end','slice','__esModule','stream','defineProperty','100216cbDGEj','values','5182765tDVdKI','save','unlink','emit','addRow','length','getWorksheet','WorkbookReader','set','4445136wHNonb','error','read','function','addWorksheet','keys','path','resume','Transform','unpipe','ignore','lastIndexOf','eachCell','handler','xls','_WorkbookReader','filter','col','suffix','finish','isNumber','value','startsWith','getColumn','model','chunkArray','writeFile','map','getCell','cellCount','replace','lodash','Writable','commit','instance','dirname','_WorksheetWriterMap','ExcelStream','874210DwLOSZ','destroy','header','1187392vaxQGG','isArray','reader','get','WorkbookWriter','extname','21LHTVNA','xlsx','substring','(((.+)+)+)+$','pause','getRow','row','search','sheets','mkdirSync','1640219mcloJs','exceljs','pipe','toString','columns','includes','push','getWorkbookWriterSheet','rootpath'];a15_0x121c=function(){return _0x4fa2f6;};return a15_0x121c();}exports[a15_0x314aa8(0x131)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x486796=a16_0x334d;(function(_0x3ea094,_0x56abda){var _0x6a4ef6=a16_0x334d,_0x6ce816=_0x3ea094();while(!![]){try{var _0x23e3e6=-parseInt(_0x6a4ef6(0x196))/0x1+parseInt(_0x6a4ef6(0x18e))/0x2*(-parseInt(_0x6a4ef6(0x19d))/0x3)+parseInt(_0x6a4ef6(0x1a3))/0x4*(-parseInt(_0x6a4ef6(0x19e))/0x5)+parseInt(_0x6a4ef6(0x192))/0x6*(-parseInt(_0x6a4ef6(0x191))/0x7)+parseInt(_0x6a4ef6(0x193))/0x8+-parseInt(_0x6a4ef6(0x195))/0x9*(parseInt(_0x6a4ef6(0x19b))/0xa)+-parseInt(_0x6a4ef6(0x19f))/0xb*(-parseInt(_0x6a4ef6(0x1a2))/0xc);if(_0x23e3e6===_0x56abda)break;else _0x6ce816['push'](_0x6ce816['shift']());}catch(_0x3d52af){_0x6ce816['push'](_0x6ce816['shift']());}}}(a16_0x1d07,0x672e3));var a16_0x2ff7b8=(function(){var _0x556805=!![];return function(_0xeeea7f,_0x2b651f){var _0x8ae3e9=_0x556805?function(){var _0x444d21=a16_0x334d;if(_0x2b651f){var _0x2f6a07=_0x2b651f[_0x444d21(0x194)](_0xeeea7f,arguments);return _0x2b651f=null,_0x2f6a07;}}:function(){};return _0x556805=![],_0x8ae3e9;};}()),a16_0x356387=a16_0x2ff7b8(this,function(){var _0x14c3e9=a16_0x334d;return a16_0x356387['toString']()[_0x14c3e9(0x1a1)](_0x14c3e9(0x197))[_0x14c3e9(0x198)]()[_0x14c3e9(0x1a0)](a16_0x356387)[_0x14c3e9(0x1a1)](_0x14c3e9(0x197));});a16_0x356387();'use strict';Object['defineProperty'](exports,a16_0x486796(0x18f),{'value':!![]}),exports[a16_0x486796(0x190)]=exports['APPSCONFIG_KEY']=exports[a16_0x486796(0x19c)]=exports['ACTION_ROUTE_KEY']=exports[a16_0x486796(0x19a)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports['ACTION_RESPONSE_KEY']=a16_0x486796(0x199),exports[a16_0x486796(0x18d)]=a16_0x486796(0x18c);function a16_0x334d(_0x5f246d,_0x233b43){var _0x1601a4=a16_0x1d07();return a16_0x334d=function(_0x356387,_0x2ff7b8){_0x356387=_0x356387-0x18c;var _0x1d073d=_0x1601a4[_0x356387];return _0x1d073d;},a16_0x334d(_0x5f246d,_0x233b43);}class AppsConfigTmp{}exports[a16_0x486796(0x190)]=AppsConfigTmp;function a16_0x1d07(){var _0x500f54=['14wNaRkb','__esModule','AppsConfigTmp','922019DjZSgP','6zTEaIo','6405304eAvMbL','apply','1356930cZAjyq','329681eAMSwZ','(((.+)+)+)+$','toString','anncic-api:action:response','ACTION_KEY','10XaeRSn','ACTION_RESPONSE_KEY','191841kHDtEQ','1910fRHNXh','9923925KgwDFu','constructor','search','12laGIKt','2308xGRcML','anncic-api:apps:config','APPSCONFIG_KEY'];a16_0x1d07=function(){return _0x500f54;};return a16_0x1d07();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a17_0x2767eb=a17_0x4c87;(function(_0x3c1e91,_0x119a24){var _0x54b669=a17_0x4c87,_0x1e7156=_0x3c1e91();while(!![]){try{var _0x4f90f1=parseInt(_0x54b669(0x11f))/0x1+-parseInt(_0x54b669(0x114))/0x2+parseInt(_0x54b669(0x12f))/0x3+-parseInt(_0x54b669(0x128))/0x4*(-parseInt(_0x54b669(0x130))/0x5)+-parseInt(_0x54b669(0x10c))/0x6+-parseInt(_0x54b669(0x129))/0x7*(parseInt(_0x54b669(0x12d))/0x8)+parseInt(_0x54b669(0x11b))/0x9;if(_0x4f90f1===_0x119a24)break;else _0x1e7156['push'](_0x1e7156['shift']());}catch(_0x2d667d){_0x1e7156['push'](_0x1e7156['shift']());}}}(a17_0x1610,0x985bf));var a17_0x3c15ae=(function(){var _0x1729ef=!![];return function(_0x3da563,_0x2ec2ea){var _0x474bf4=_0x1729ef?function(){var _0x116648=a17_0x4c87;if(_0x2ec2ea){var _0x57cf86=_0x2ec2ea[_0x116648(0x12b)](_0x3da563,arguments);return _0x2ec2ea=null,_0x57cf86;}}:function(){};return _0x1729ef=![],_0x474bf4;};}()),a17_0x202de3=a17_0x3c15ae(this,function(){var _0x632860=a17_0x4c87;return a17_0x202de3['toString']()[_0x632860(0x124)](_0x632860(0x10b))['toString']()[_0x632860(0x119)](a17_0x202de3)[_0x632860(0x124)](_0x632860(0x10b));});function a17_0x1610(){var _0x216551=['apply','integer','2986072pHCYYZ','__decorate','339042nUyVLE','2115735yQAwcU','function','(((.+)+)+)+$','2178618ZTuhUU','design:type','decorate','string','_size','PageDTO','defineProperty','分页数量','1644014HPkCmc','RuleType','@anncic-api/validator','_isreverse','length','constructor','getOwnPropertyDescriptor','7047171KayVHC','第一页为1,第二页为2','_page','metadata','1236511meaoMk','__metadata','Rule','number','min','search','valid','object','trim','4JvnSJw','14unbNUO','prototype'];a17_0x1610=function(){return _0x216551;};return a17_0x1610();}a17_0x202de3();'use strict';var __decorate=this&&this[a17_0x2767eb(0x12e)]||function(_0x251ce3,_0x496519,_0x32c177,_0x3ce435){var _0x427f4f=a17_0x2767eb,_0x215d47=arguments[_0x427f4f(0x118)],_0x12109b=_0x215d47<0x3?_0x496519:_0x3ce435===null?_0x3ce435=Object[_0x427f4f(0x11a)](_0x496519,_0x32c177):_0x3ce435,_0x5824e3;if(typeof Reflect===_0x427f4f(0x126)&&typeof Reflect['decorate']===_0x427f4f(0x131))_0x12109b=Reflect[_0x427f4f(0x10e)](_0x251ce3,_0x496519,_0x32c177,_0x3ce435);else{for(var _0x3add97=_0x251ce3['length']-0x1;_0x3add97>=0x0;_0x3add97--)if(_0x5824e3=_0x251ce3[_0x3add97])_0x12109b=(_0x215d47<0x3?_0x5824e3(_0x12109b):_0x215d47>0x3?_0x5824e3(_0x496519,_0x32c177,_0x12109b):_0x5824e3(_0x496519,_0x32c177))||_0x12109b;}return _0x215d47>0x3&&_0x12109b&&Object[_0x427f4f(0x112)](_0x496519,_0x32c177,_0x12109b),_0x12109b;},__metadata=this&&this[a17_0x2767eb(0x120)]||function(_0x27a1fa,_0x462202){var _0x519835=a17_0x2767eb;if(typeof Reflect===_0x519835(0x126)&&typeof Reflect[_0x519835(0x11e)]===_0x519835(0x131))return Reflect[_0x519835(0x11e)](_0x27a1fa,_0x462202);};function a17_0x4c87(_0x552995,_0x16a04f){var _0x5bdb1c=a17_0x1610();return a17_0x4c87=function(_0x202de3,_0x3c15ae){_0x202de3=_0x202de3-0x10b;var _0x161037=_0x5bdb1c[_0x202de3];return _0x161037;},a17_0x4c87(_0x552995,_0x16a04f);}Object[a17_0x2767eb(0x112)](exports,'__esModule',{'value':!![]}),exports[a17_0x2767eb(0x111)]=void 0x0;const validator_1=require(a17_0x2767eb(0x116));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1['RuleType']['number']()[a17_0x2767eb(0x12c)]()[a17_0x2767eb(0x123)](0x1),a17_0x2767eb(0x11c)),__metadata(a17_0x2767eb(0x10d),Number)],PageDTO['prototype'],a17_0x2767eb(0x11d),void 0x0),__decorate([(0x0,validator_1[a17_0x2767eb(0x121)])(a17_0x2767eb(0x113),validator_1['RuleType'][a17_0x2767eb(0x122)]()[a17_0x2767eb(0x12c)]()[a17_0x2767eb(0x123)](0x1)),__metadata(a17_0x2767eb(0x10d),Number)],PageDTO['prototype'],a17_0x2767eb(0x110),void 0x0),__decorate([(0x0,validator_1['Rule'])('排序方式',validator_1[a17_0x2767eb(0x115)][a17_0x2767eb(0x10f)]()[a17_0x2767eb(0x127)]()),__metadata(a17_0x2767eb(0x10d),String)],PageDTO[a17_0x2767eb(0x12a)],'_order',void 0x0),__decorate([(0x0,validator_1[a17_0x2767eb(0x121)])('是否倒序',validator_1[a17_0x2767eb(0x115)][a17_0x2767eb(0x122)]()[a17_0x2767eb(0x12c)]()[a17_0x2767eb(0x125)](0x0,0x1),'1:是;0:否'),__metadata(a17_0x2767eb(0x10d),Number)],PageDTO[a17_0x2767eb(0x12a)],a17_0x2767eb(0x117),void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a18_0x2924cf=a18_0xf3b8;(function(_0x270e7c,_0x54a645){var _0xd69e76=a18_0xf3b8,_0x349b35=_0x270e7c();while(!![]){try{var _0x1afc27=-parseInt(_0xd69e76(0x88))/0x1+parseInt(_0xd69e76(0x84))/0x2*(parseInt(_0xd69e76(0x8d))/0x3)+-parseInt(_0xd69e76(0x89))/0x4*(parseInt(_0xd69e76(0x87))/0x5)+-parseInt(_0xd69e76(0x91))/0x6*(-parseInt(_0xd69e76(0x81))/0x7)+-parseInt(_0xd69e76(0x8b))/0x8+-parseInt(_0xd69e76(0x8e))/0x9*(parseInt(_0xd69e76(0x80))/0xa)+parseInt(_0xd69e76(0x90))/0xb*(parseInt(_0xd69e76(0x82))/0xc);if(_0x1afc27===_0x54a645)break;else _0x349b35['push'](_0x349b35['shift']());}catch(_0xaf86cf){_0x349b35['push'](_0x349b35['shift']());}}}(a18_0x511f,0x667de));var a18_0x377fe8=(function(){var _0x243afc=!![];return function(_0x100479,_0x2e6140){var _0x2ee662=_0x243afc?function(){var _0x3e7900=a18_0xf3b8;if(_0x2e6140){var _0x33d2f5=_0x2e6140[_0x3e7900(0x8f)](_0x100479,arguments);return _0x2e6140=null,_0x33d2f5;}}:function(){};return _0x243afc=![],_0x2ee662;};}()),a18_0x5ce294=a18_0x377fe8(this,function(){var _0xe8cd52=a18_0xf3b8;return a18_0x5ce294[_0xe8cd52(0x85)]()[_0xe8cd52(0x83)]('(((.+)+)+)+$')[_0xe8cd52(0x85)]()['constructor'](a18_0x5ce294)[_0xe8cd52(0x83)](_0xe8cd52(0x86));});a18_0x5ce294();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a18_0x2924cf(0x8c)]=exports['INTERCEPT_KEY']=void 0x0,exports[a18_0x2924cf(0x8a)]='anncic-api:intercept';class InterceptTargetTmp{}function a18_0xf3b8(_0x5505a7,_0x3c1a72){var _0x539492=a18_0x511f();return a18_0xf3b8=function(_0x5ce294,_0x377fe8){_0x5ce294=_0x5ce294-0x80;var _0x511fb4=_0x539492[_0x5ce294];return _0x511fb4;},a18_0xf3b8(_0x5505a7,_0x3c1a72);}function a18_0x511f(){var _0x102214=['205443ywxUei','apply','23419esPUCu','79602zzYiJx','70MKVOpd','273WKJNTX','4848dmfgoE','search','34214uqupLn','toString','(((.+)+)+)+$','5FqkykH','537876znTCtz','1973876qdeatF','INTERCEPT_KEY','869832EEdJqf','InterceptTargetTmp','60ElOYLp'];a18_0x511f=function(){return _0x102214;};return a18_0x511f();}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.44",
|
|
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.44",
|
|
22
|
+
"@anncic-api/core": "^3.7.44",
|
|
23
|
+
"@anncic-api/event": "^3.7.44",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.44",
|
|
25
|
+
"@anncic-api/validator": "^3.7.44",
|
|
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.44",
|
|
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": "^4.9.5"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "ca61796fa416aa7222148e8eeca9fc43b0d651e2"
|
|
42
42
|
}
|