anncic-api 3.7.27 → 3.7.28
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_0x241320=a0_0x1669;function a0_0x1122(){var _0x51c1c3=['280907erVnAB','1182156PIaEUH','defineProperty','search','toString','6236010dakapj','270d','60322oeBOIK','78NPsuLn','__esModule','file','6380496ihpyXv','8ZUFbOG','appDir','6sswHQz','default','constructor','name','/runtime','284795wVhSTN','env','6952183eEQbYU','230hMWDcV','dhauo1234420123gg3234901','/runtime/.upload','form','xml','(((.+)+)+)+$','20mb','zhiulanuiy7892387985hnoi','json'];a0_0x1122=function(){return _0x51c1c3;};return a0_0x1122();}function a0_0x1669(_0x64f2c8,_0x45e98e){var _0x210c35=a0_0x1122();return a0_0x1669=function(_0x23d94c,_0x4f91bd){_0x23d94c=_0x23d94c-0xf6;var _0x112284=_0x210c35[_0x23d94c];return _0x112284;},a0_0x1669(_0x64f2c8,_0x45e98e);}(function(_0x2091b5,_0x1c1abb){var _0x5c6234=a0_0x1669,_0x3a635b=_0x2091b5();while(!![]){try{var _0x513b7e=parseInt(_0x5c6234(0x103))/0x1+parseInt(_0x5c6234(0x109))/0x2*(-parseInt(_0x5c6234(0x110))/0x3)+parseInt(_0x5c6234(0x10d))/0x4+-parseInt(_0x5c6234(0xf6))/0x5*(parseInt(_0x5c6234(0x10a))/0x6)+-parseInt(_0x5c6234(0xf8))/0x7+-parseInt(_0x5c6234(0x10e))/0x8*(parseInt(_0x5c6234(0x107))/0x9)+parseInt(_0x5c6234(0xf9))/0xa*(parseInt(_0x5c6234(0x102))/0xb);if(_0x513b7e===_0x1c1abb)break;else _0x3a635b['push'](_0x3a635b['shift']());}catch(_0x8c5610){_0x3a635b['push'](_0x3a635b['shift']());}}}(a0_0x1122,0xd64d7));var a0_0x4f91bd=(function(){var _0x124f4c=!![];return function(_0x455e09,_0x15291f){var _0x4b7795=_0x124f4c?function(){if(_0x15291f){var _0x4a7d97=_0x15291f['apply'](_0x455e09,arguments);return _0x15291f=null,_0x4a7d97;}}:function(){};return _0x124f4c=![],_0x4b7795;};}()),a0_0x23d94c=a0_0x4f91bd(this,function(){var _0x5292d7=a0_0x1669;return a0_0x23d94c[_0x5292d7(0x106)]()[_0x5292d7(0x105)](_0x5292d7(0xfe))['toString']()[_0x5292d7(0x112)](a0_0x23d94c)[_0x5292d7(0x105)](_0x5292d7(0xfe));});a0_0x23d94c();'use strict';Object[a0_0x241320(0x104)](exports,a0_0x241320(0x10b),{'value':!![]}),exports[a0_0x241320(0x111)]=_0xa1c337=>{var _0x20ec45=a0_0x241320;return{'apitest':!![],'keys':_0xa1c337[_0x20ec45(0x113)],'anncicapi':{'requestKey':'_token','password':_0x20ec45(0x100),'devices':{'DEFAULT':{'secret':_0x20ec45(0xfa),'checkcode':'dhauo1234420123gg3234901'}}},'koa':{'proxy':!![]},'midwayLogger':{'default':{'maxSize':'1m','maxFiles':_0x20ec45(0x108),'dir':_0xa1c337['appDir']+_0x20ec45(0x114)}},'bodyParser':{'enableTypes':[_0x20ec45(0x101),_0x20ec45(0xfc),'text',_0x20ec45(0xfd)],'formLimit':'20mb','jsonLimit':'20mb','textLimit':_0x20ec45(0xff),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0xa1c337[_0x20ec45(0x10f)]+_0x20ec45(0xfb),'cleanTimeout':0x5265c00},'busboy':{'mode':_0x20ec45(0x10c),'tmpdir':_0xa1c337[_0x20ec45(0x10f)]+'/runtime/.upload','cleanTimeout':0x5265c00},'bull':{'defaultQueueOptions':{'prefix':'{midway-bull}{'+_0xa1c337[_0x20ec45(0x113)]+':'+((_0xa1c337===null||_0xa1c337===void 0x0?void 0x0:_0xa1c337[_0x20ec45(0xf7)])?_0xa1c337[_0x20ec45(0xf7)]+':':'')+')'}}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x322a(_0x36a8bf,_0x295ba9){var _0x1831a5=a1_0x4c1c();return a1_0x322a=function(_0xaafbcd,_0x24ff45){_0xaafbcd=_0xaafbcd-0x77;var _0x4c1c0b=_0x1831a5[_0xaafbcd];return _0x4c1c0b;},a1_0x322a(_0x36a8bf,_0x295ba9);}var a1_0x1427b6=a1_0x322a;(function(_0x3715fb,_0x5d44d4){var _0x431532=a1_0x322a,_0x5e443f=_0x3715fb();while(!![]){try{var _0x22d320=parseInt(_0x431532(0x7b))/0x1+-parseInt(_0x431532(0x78))/0x2+parseInt(_0x431532(0x81))/0x3+parseInt(_0x431532(0x7a))/0x4*(parseInt(_0x431532(0x7d))/0x5)+parseInt(_0x431532(0x77))/0x6+parseInt(_0x431532(0x7f))/0x7+-parseInt(_0x431532(0x80))/0x8;if(_0x22d320===_0x5d44d4)break;else _0x5e443f['push'](_0x5e443f['shift']());}catch(_0x3ff335){_0x5e443f['push'](_0x5e443f['shift']());}}}(a1_0x4c1c,0xd1471));var a1_0x24ff45=(function(){var _0x44cce2=!![];return function(_0x2cc9c3,_0x42fa69){var _0x2fe589=_0x44cce2?function(){var _0x43978b=a1_0x322a;if(_0x42fa69){var _0x8d95b4=_0x42fa69[_0x43978b(0x79)](_0x2cc9c3,arguments);return _0x42fa69=null,_0x8d95b4;}}:function(){};return _0x44cce2=![],_0x2fe589;};}()),a1_0xaafbcd=a1_0x24ff45(this,function(){var _0x465275=a1_0x322a;return a1_0xaafbcd['toString']()[_0x465275(0x84)]('(((.+)+)+)+$')['toString']()[_0x465275(0x7c)](a1_0xaafbcd)[_0x465275(0x84)]('(((.+)+)+)+$');});a1_0xaafbcd();'use strict';Object[a1_0x1427b6(0x7e)](exports,a1_0x1427b6(0x82),{'value':!![]}),exports[a1_0x1427b6(0x83)]=_0x4dba67=>{return{'koa':{'proxy':![]}};};function a1_0x4c1c(){var _0x1b21ed=['4467680XIpQAw','2463861MDEHyU','__esModule','default','search','2008422FOFiWL','2509422IBcmOZ','apply','4noCVdU','943075kJymaB','constructor','2260040gWraoK','defineProperty','834855JaBBrp'];a1_0x4c1c=function(){return _0x1b21ed;};return a1_0x4c1c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x53fc28=a2_0x3c3f;(function(_0x3b342d,_0x21bb11){var _0x460ba8=a2_0x3c3f,_0x77107b=_0x3b342d();while(!![]){try{var _0x3b6d4f=parseInt(_0x460ba8(0x87))/0x1+-parseInt(_0x460ba8(0x86))/0x2+parseInt(_0x460ba8(0x8c))/0x3*(-parseInt(_0x460ba8(0x8b))/0x4)+-parseInt(_0x460ba8(0x81))/0x5+-parseInt(_0x460ba8(0x83))/0x6*(parseInt(_0x460ba8(0x82))/0x7)+parseInt(_0x460ba8(0x7f))/0x8*(-parseInt(_0x460ba8(0x8e))/0x9)+-parseInt(_0x460ba8(0x85))/0xa*(-parseInt(_0x460ba8(0x80))/0xb);if(_0x3b6d4f===_0x21bb11)break;else _0x77107b['push'](_0x77107b['shift']());}catch(_0x1b6ec9){_0x77107b['push'](_0x77107b['shift']());}}}(a2_0x34f5,0xe78cb));function a2_0x34f5(){var _0x5dae36=['defineProperty','10IIfsYr','481830ZYjezp','199013qIltYd','default','__esModule','toString','620mwUvZW','7161QRekEm','constructor','9rdyIgG','(((.+)+)+)+$','search','10150552OoWRdY','61665505bVYdoJ','6810715KTEMMt','49357NDTkXA','1374bpvGEb'];a2_0x34f5=function(){return _0x5dae36;};return a2_0x34f5();}var a2_0x4581a6=(function(){var _0x204c3c=!![];return function(_0x56004e,_0x1a301b){var _0x371c92=_0x204c3c?function(){if(_0x1a301b){var _0x3dca31=_0x1a301b['apply'](_0x56004e,arguments);return _0x1a301b=null,_0x3dca31;}}:function(){};return _0x204c3c=![],_0x371c92;};}()),a2_0x4c84ac=a2_0x4581a6(this,function(){var _0x1639c7=a2_0x3c3f;return a2_0x4c84ac[_0x1639c7(0x8a)]()[_0x1639c7(0x90)](_0x1639c7(0x8f))[_0x1639c7(0x8a)]()[_0x1639c7(0x8d)](a2_0x4c84ac)[_0x1639c7(0x90)](_0x1639c7(0x8f));});function a2_0x3c3f(_0x9d29d6,_0x139a28){var _0x24a1f1=a2_0x34f5();return a2_0x3c3f=function(_0x4c84ac,_0x4581a6){_0x4c84ac=_0x4c84ac-0x7f;var _0x34f5f8=_0x24a1f1[_0x4c84ac];return _0x34f5f8;},a2_0x3c3f(_0x9d29d6,_0x139a28);}a2_0x4c84ac();'use strict';Object[a2_0x53fc28(0x84)](exports,a2_0x53fc28(0x89),{'value':!![]}),exports[a2_0x53fc28(0x88)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x475699=a3_0x11e4;(function(_0xf9787e,_0xeed857){const _0x4261ee=a3_0x11e4,_0x1241a7=_0xf9787e();while(!![]){try{const _0x5c7206=-parseInt(_0x4261ee(0x129))/0x1*(parseInt(_0x4261ee(0xd2))/0x2)+parseInt(_0x4261ee(0xc0))/0x3*(-parseInt(_0x4261ee(0xee))/0x4)+parseInt(_0x4261ee(0x111))/0x5+-parseInt(_0x4261ee(0x130))/0x6+-parseInt(_0x4261ee(0x137))/0x7+-parseInt(_0x4261ee(0xb4))/0x8*(parseInt(_0x4261ee(0xad))/0x9)+parseInt(_0x4261ee(0x103))/0xa;if(_0x5c7206===_0xeed857)break;else _0x1241a7['push'](_0x1241a7['shift']());}catch(_0x3592e1){_0x1241a7['push'](_0x1241a7['shift']());}}}(a3_0x4f8c,0x6caed));const a3_0x1f20d4=(function(){let _0xf3e37a=!![];return function(_0x446644,_0x545790){const _0x4df674=_0xf3e37a?function(){if(_0x545790){const _0x5a7bc4=_0x545790['apply'](_0x446644,arguments);return _0x545790=null,_0x5a7bc4;}}:function(){};return _0xf3e37a=![],_0x4df674;};}()),a3_0x3fb2ed=a3_0x1f20d4(this,function(){const _0x54db13=a3_0x11e4;return a3_0x3fb2ed[_0x54db13(0xfc)]()[_0x54db13(0xd6)]('(((.+)+)+)+$')['toString']()[_0x54db13(0x10c)](a3_0x3fb2ed)[_0x54db13(0xd6)]('(((.+)+)+)+$');});a3_0x3fb2ed();function a3_0x11e4(_0x10eb31,_0x3ca3ea){const _0x521b76=a3_0x4f8c();return a3_0x11e4=function(_0x3fb2ed,_0x1f20d4){_0x3fb2ed=_0x3fb2ed-0xac;let _0x4f8c55=_0x521b76[_0x3fb2ed];return _0x4f8c55;},a3_0x11e4(_0x10eb31,_0x3ca3ea);}'use strict';var __decorate=this&&this[a3_0x475699(0xb0)]||function(_0x41fa31,_0x51776e,_0x378d4a,_0x455d87){const _0x558e66=a3_0x475699;var _0x397ffd=arguments['length'],_0x58f9d0=_0x397ffd<0x3?_0x51776e:_0x455d87===null?_0x455d87=Object[_0x558e66(0xef)](_0x51776e,_0x378d4a):_0x455d87,_0x395d08;if(typeof Reflect===_0x558e66(0x13b)&&typeof Reflect[_0x558e66(0xaf)]===_0x558e66(0xd9))_0x58f9d0=Reflect[_0x558e66(0xaf)](_0x41fa31,_0x51776e,_0x378d4a,_0x455d87);else{for(var _0x1aafea=_0x41fa31[_0x558e66(0x128)]-0x1;_0x1aafea>=0x0;_0x1aafea--)if(_0x395d08=_0x41fa31[_0x1aafea])_0x58f9d0=(_0x397ffd<0x3?_0x395d08(_0x58f9d0):_0x397ffd>0x3?_0x395d08(_0x51776e,_0x378d4a,_0x58f9d0):_0x395d08(_0x51776e,_0x378d4a))||_0x58f9d0;}return _0x397ffd>0x3&&_0x58f9d0&&Object[_0x558e66(0xba)](_0x51776e,_0x378d4a,_0x58f9d0),_0x58f9d0;},__metadata=this&&this[a3_0x475699(0x12f)]||function(_0xd0906b,_0x18ff9d){const _0x47c1e4=a3_0x475699;if(typeof Reflect==='object'&&typeof Reflect[_0x47c1e4(0x127)]===_0x47c1e4(0xd9))return Reflect[_0x47c1e4(0x127)](_0xd0906b,_0x18ff9d);};Object[a3_0x475699(0xba)](exports,a3_0x475699(0x12b),{'value':!![]}),exports[a3_0x475699(0xf3)]=void 0x0;function a3_0x4f8c(){const _0x421cac=['getBaseDir','MidwayDecoratorService','29483530CayKEP','@midwayjs/koa','request','@midwayjs/busboy','substring','upload','loggerConfig','anncic-apihelper','apps-','constructor','routerName','getAppDir','bodyXml','@anncic-api/cache','416520ZtPgrO','filepath','string','270d','isArray','http','createLogger','443','req','lastIndexOf','@midwayjs/core','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','config','prototype','koa','body','application','join','@midwayjs/static-file','midwayLogger','dirs','get','metadata','length','2HBzatT','isDevelopmentEnvironment','__esModule','staticFile','runtime','target','__metadata','4519068rXcpCl','intercept','device','basic','startsWith','isDirectory','./types/action','4648000Cxkqis','module','loggerService','parse','object','app','./config/config.production','AppsConfigTmp','includes','handler','input','_matchedRouteMeta','Types','3735xcxKhL','headers','decorate','__decorate','ApiError','http://','undefined','10088wACjtZ','@anncic-api/event','_matchedRoute','./service/ApiService','https://','tagName','defineProperty','HEADERS_SIGNATURE','/basic','addObject','dir','MidwayEnvironmentService','37983CpZiAP','apimit','/apps','basic.log','MidwayApplicationManager','requestContext','log','isString','isFunction','koa-send','match','getConfiguration','design:type','devices','environment','method','split','APPSCONFIG_KEY','430762mrYkED','REQUEST_OBJ_CTX_KEY','handlerActionRoute','toLowerCase','search','query','mkdirSync','function','InterceptTargetTmp','requestKey','MidwayLoggerService','existsSync','hanlderApplications','host','attachment','path','./types/intercept','statSync','@midwayjs/cross-domain','getClassMetadata','proceed','anncic-api','context','defineProperties','onReady','Anncic-api\x20static-file\x20:\x20mkdir\x20','文件不存在','tmpdir','68yIMCKP','getOwnPropertyDescriptor','@anncic-api/core','clients','/app','CustomConfiguration','filterConfig','ApiService','.log','App','decorator','keys','Inject','defaultsDeep','toString','_UNKNOW_','DEFAULT','anncicapi','readdirSync'];a3_0x4f8c=function(){return _0x421cac;};return a3_0x4f8c();}const core_1=require(a3_0x475699(0x11b)),core_2=require(a3_0x475699(0x11b)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a3_0x475699(0xb7)),intercept_1=require(a3_0x475699(0xe2)),action_1=require(a3_0x475699(0x136)),fs=require('fs'),path=require(a3_0x475699(0xe1)),koasend=require(a3_0x475699(0xc9)),koa=require(a3_0x475699(0x104)),upload=require(a3_0x475699(0x106)),staticFile=require(a3_0x475699(0x123)),crossDomain=require(a3_0x475699(0xe4)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a3_0x475699(0x13d)),anncic=require(a3_0x475699(0xf0)),anncicCache=require(a3_0x475699(0x110)),anncicEvent=require(a3_0x475699(0xb5)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a3_0x475699(0x10a));let CustomConfiguration=class CustomConfiguration{async[a3_0x475699(0xea)](){const _0x54d435=a3_0x475699;await this[_0x54d435(0xf4)](),await this['loggerConfig'](),await this[_0x54d435(0xd4)](),await this[_0x54d435(0xde)]();}async[a3_0x475699(0xd4)](){const _0xa57fee=a3_0x475699,_0x15fb86=this[_0xa57fee(0x11d)][_0xa57fee(0xcb)](),_0x4b5d60=(0x0,core_1[_0xa57fee(0xe5)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0xa57fee(0xda)])||{};this[_0xa57fee(0xf8)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0xfe8464=>{const _0x1d120c=_0xa57fee;var _0x38757e;const _0x29bf9c=(0x0,core_1['getClassMetadata'])(action_1[_0x1d120c(0xd1)],action_1[_0x1d120c(0x13e)])||{},_0x3a1e39=_0xfe8464[_0x1d120c(0x127)],_0x31bde2=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0xfe8464['target'])||{},_0x32dee8=((_0x38757e=_0x31bde2===null||_0x31bde2===void 0x0?void 0x0:_0x31bde2[_0x1d120c(0x112)])===null||_0x38757e===void 0x0?void 0x0:_0x38757e[_0x1d120c(0x107)](0x0,_0x31bde2[_0x1d120c(0x112)][_0x1d120c(0x11a)]('.')))||'',_0x3ba36e=(_0x31bde2===null||_0x31bde2===void 0x0?void 0x0:_0x31bde2[_0x1d120c(0x138)])?(_0x29bf9c===null||_0x29bf9c===void 0x0?void 0x0:_0x29bf9c[_0x31bde2['module']])||{}:{};return{'before':async _0x559ba0=>{const _0x26883e=_0x1d120c;var _0x426015,_0x42c4b5,_0x12fdcc,_0x138440;const _0xdf075c=(_0x426015=_0x559ba0===null||_0x559ba0===void 0x0?void 0x0:_0x559ba0[_0x26883e(0x12e)])===null||_0x426015===void 0x0?void 0x0:_0x426015[core_2[_0x26883e(0xd3)]],_0x519bdf=lodash[_0x26883e(0xfb)]({},_0xdf075c[_0x26883e(0x105)]['body']||_0xdf075c[_0x26883e(0x105)][((_0x42c4b5=_0x15fb86===null||_0x15fb86===void 0x0?void 0x0:_0x15fb86[_0x26883e(0x10f)])===null||_0x42c4b5===void 0x0?void 0x0:_0x42c4b5['key'])||_0x26883e(0x120)]||{},_0xdf075c[_0x26883e(0x105)][_0x26883e(0xd7)]||{});_0xdf075c[_0x26883e(0x142)]={'module':(_0x3ba36e===null||_0x3ba36e===void 0x0?void 0x0:_0x3ba36e['name'])||'','routePath':''+_0xdf075c[_0x26883e(0xe1)],'routeName':_0x31bde2['routerOptions'][_0x26883e(0xb9)]+'@'+_0x3a1e39[_0x26883e(0x10d)],'routeMethod':((_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39['requestMethod'])||_0xdf075c[_0x26883e(0xcf)]||'')[_0x26883e(0xd5)](),'routeDescription':(_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39['description'])||'','filemethod':_0x32dee8+'@'+(_0x3a1e39[_0x26883e(0xcf)]||'')};if(_0xdf075c&&(_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39['apimit']))try{const _0x2ffe11=((_0x12fdcc=_0x15fb86===null||_0x15fb86===void 0x0?void 0x0:_0x15fb86[_0x26883e(0xff)])===null||_0x12fdcc===void 0x0?void 0x0:_0x12fdcc[_0x26883e(0xdb)])&&typeof(_0x519bdf===null||_0x519bdf===void 0x0?void 0x0:_0x519bdf[_0x15fb86[_0x26883e(0xff)][_0x26883e(0xdb)]])==_0x26883e(0x113)?JSON[_0x26883e(0x13a)](base64_decode(_0x519bdf[_0x15fb86[_0x26883e(0xff)][_0x26883e(0xdb)]])||'{}')||{}:((_0x138440=_0xdf075c===null||_0xdf075c===void 0x0?void 0x0:_0xdf075c[_0x26883e(0x105)])===null||_0x138440===void 0x0?void 0x0:_0x138440[_0x26883e(0xae)])||{};if(!this[_0x26883e(0xf5)]['checksign'](_0x2ffe11))throw new AnnError(ApiError_1[_0x26883e(0xb1)][_0x26883e(0xbb)]);for(const _0x52f212 in _0x2ffe11||{}){_0xdf075c[_0x26883e(0xae)][_0x52f212]=_0x2ffe11[_0x52f212];}}catch(_0xbad7a8){if(_0xbad7a8 instanceof AnnError)throw _0xbad7a8;else throw new AnnError(ApiError_1['ApiError'][_0x26883e(0xfd)]);}},'around':async _0x205633=>{const _0x4e1830=_0x1d120c;var _0xe09643,_0x437b0,_0x535a85;const _0x5d7a01=(_0xe09643=_0x205633===null||_0x205633===void 0x0?void 0x0:_0x205633[_0x4e1830(0x12e)])===null||_0xe09643===void 0x0?void 0x0:_0xe09643[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x5d7a01&&(_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39[_0x4e1830(0xc1)])&&((_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39[_0x4e1830(0x131)])||typeof(_0x3a1e39===null||_0x3a1e39===void 0x0?void 0x0:_0x3a1e39['intercept'])==_0x4e1830(0xb3))){if(((_0x437b0=_0x5d7a01[_0x4e1830(0xae)])===null||_0x437b0===void 0x0?void 0x0:_0x437b0[_0x4e1830(0x132)])&&((_0x535a85=_0x4b5d60===null||_0x4b5d60===void 0x0?void 0x0:_0x4b5d60[_0x5d7a01[_0x4e1830(0xae)][_0x4e1830(0x132)]])===null||_0x535a85===void 0x0?void 0x0:_0x535a85[_0x4e1830(0x128)])>0x0)for(const _0x35dc5c of _0x4b5d60[_0x5d7a01['headers'][_0x4e1830(0x132)]]||[]){if(core_1[_0x4e1830(0xac)]['isClass'](_0x35dc5c)){const _0x148c7c=await _0x5d7a01[_0x4e1830(0xc5)]['getAsync'](_0x35dc5c);typeof(_0x148c7c===null||_0x148c7c===void 0x0?void 0x0:_0x148c7c[_0x4e1830(0xca)])==_0x4e1830(0xd9)?await _0x148c7c[_0x4e1830(0xca)](_0x5d7a01,typeof(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xcf)])==_0x4e1830(0x113)&&(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)])?_0x5d7a01[_0x4e1830(0xcf)][_0x4e1830(0xd5)]()+'@'+(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01['_matchedRoute']):undefined,_0x3a1e39)&&await _0x148c7c[_0x4e1830(0x140)](_0x5d7a01,typeof(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xcf)])=='string'&&(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)])?_0x5d7a01['method'][_0x4e1830(0xd5)]()+'@'+(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)]):undefined,_0x3a1e39):await _0x148c7c['handler'](_0x5d7a01,typeof(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xcf)])=='string'&&(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)])?_0x5d7a01[_0x4e1830(0xcf)][_0x4e1830(0xd5)]()+'@'+(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)]):undefined,_0x3a1e39);}else core_1['Types'][_0x4e1830(0xc8)](_0x35dc5c)&&await _0x35dc5c(_0x5d7a01,typeof(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xcf)])=='string'&&(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01['_matchedRoute'])?_0x5d7a01[_0x4e1830(0xcf)][_0x4e1830(0xd5)]()+'@'+(_0x5d7a01===null||_0x5d7a01===void 0x0?void 0x0:_0x5d7a01[_0x4e1830(0xb6)]):undefined,_0x3a1e39);}}return await _0x205633[_0x4e1830(0xe6)](..._0x205633['args']);},'afterThrow':(_0x4864ee,_0x274d7b)=>{throw _0x274d7b;}};});}async[a3_0x475699(0xde)](){const _0x596770=a3_0x475699,_0x2190e2=this[_0x596770(0x11d)]['getConfiguration']();this[_0x596770(0x121)]['getApplications']([_0x596770(0x11f)])['forEach'](_0x4f7507=>{const _0x586acf=_0x596770;(_0x4f7507===null||_0x4f7507===void 0x0?void 0x0:_0x4f7507[_0x586acf(0xe8)])&&Object[_0x586acf(0xe9)](_0x4f7507[_0x586acf(0xe8)],{'hosturl':{'configurable':![],'get':function(){const _0x41ba1f=_0x586acf;var _0x504edf,_0xfda9af,_0x4e72c0,_0x276d4b;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x41ba1f(0xdf)][_0x41ba1f(0x134)](_0x41ba1f(0x116))){let _0x3335fc=this[_0x41ba1f(0xdf)][_0x41ba1f(0xd0)](':');return['80','443'][_0x41ba1f(0x13f)](_0x3335fc===null||_0x3335fc===void 0x0?void 0x0:_0x3335fc[0x1])?''+(!!((_0xfda9af=(_0x504edf=this===null||this===void 0x0?void 0x0:this[_0x41ba1f(0x119)])===null||_0x504edf===void 0x0?void 0x0:_0x504edf['connection'])===null||_0xfda9af===void 0x0?void 0x0:_0xfda9af['encrypted'])||(_0x3335fc===null||_0x3335fc===void 0x0?void 0x0:_0x3335fc[0x1])==_0x41ba1f(0x118)?'https://':_0x41ba1f(0xb2))+_0x3335fc[0x0]:''+(!!((_0x276d4b=(_0x4e72c0=this===null||this===void 0x0?void 0x0:this[_0x41ba1f(0x119)])===null||_0x4e72c0===void 0x0?void 0x0:_0x4e72c0['connection'])===null||_0x276d4b===void 0x0?void 0x0:_0x276d4b['encrypted'])?_0x41ba1f(0xb8):_0x41ba1f(0xb2))+this[_0x41ba1f(0xdf)];}return'';}},'ok':{'value':function(_0xb22a2,_0x244a46,_0x4b367c=0x0){return{'code':_0x4b367c,'data':_0xb22a2,'extra':_0x244a46};}},'input':{'value':function(_0x21c582,_0x20502c){const _0x36bdc6=_0x586acf;var _0x375aef;const _0x3fde9f=lodash['defaultsDeep']({},this['request']['body']||this['request'][((_0x375aef=_0x2190e2===null||_0x2190e2===void 0x0?void 0x0:_0x2190e2[_0x36bdc6(0x10f)])===null||_0x375aef===void 0x0?void 0x0:_0x375aef['key'])||_0x36bdc6(0x120)]||{},this[_0x36bdc6(0x105)][_0x36bdc6(0xd7)]||{});return _0x21c582?lodash[_0x36bdc6(0x126)](_0x3fde9f,_0x21c582,_0x20502c):_0x3fde9f;}},'when':{'value':async function(_0x35f1b0,_0x530341){const _0x53bb4e=this['input'](_0x35f1b0,null);if(!lodash['isNull'](_0x53bb4e))return await _0x530341(_0x53bb4e);}},'only':{'value':function(_0x3c21b5){const _0x128708=_0x586acf,_0x49ee9c={};for(let _0x5e9b65=0x0;_0x5e9b65<_0x3c21b5['length'];_0x5e9b65++){lodash[_0x128708(0x115)](_0x3c21b5[_0x5e9b65])&&_0x3c21b5[_0x5e9b65]['length']>0x0&&lodash[_0x128708(0xc7)](_0x3c21b5[_0x5e9b65][0x0])&&(_0x49ee9c[_0x3c21b5[_0x5e9b65][0x0]]=this[_0x128708(0x141)](_0x3c21b5[_0x5e9b65][0x0],_0x3c21b5[_0x5e9b65][_0x128708(0x128)]>0x1?_0x3c21b5[_0x5e9b65][0x1]:null));}return _0x49ee9c;}},'koasend':{'value':async function(_0x41a702,_0x34ade4){const _0x3a2837=_0x586acf;if(_0x41a702&&!fs['existsSync'](_0x41a702)&&!fs[_0x3a2837(0xdd)](this[_0x3a2837(0x13c)][_0x3a2837(0x10e)]()+'/'+_0x41a702))return _0x3a2837(0xec);return _0x41a702=fs[_0x3a2837(0xdd)](_0x41a702)?_0x41a702:this[_0x3a2837(0x13c)][_0x3a2837(0x10e)]()+'/'+_0x41a702,this[_0x3a2837(0xe0)](_0x34ade4||_0x41a702),await koasend(this,_0x41a702);}}});});}async[a3_0x475699(0x109)](){const _0xb0c1ac=a3_0x475699;var _0x2e5a92;if(fs['existsSync'](this['app'][_0xb0c1ac(0x101)]()+_0xb0c1ac(0xc2))&&fs[_0xb0c1ac(0xe3)](this[_0xb0c1ac(0x13c)][_0xb0c1ac(0x101)]()+_0xb0c1ac(0xc2))[_0xb0c1ac(0x135)]()){const _0x3327c1=this[_0xb0c1ac(0x11d)]['getConfiguration'](),_0x136bff=((_0x2e5a92=_0x3327c1===null||_0x3327c1===void 0x0?void 0x0:_0x3327c1[_0xb0c1ac(0x124)])===null||_0x2e5a92===void 0x0?void 0x0:_0x2e5a92[_0xb0c1ac(0xf1)])||{};!fs[_0xb0c1ac(0xdd)](this['app'][_0xb0c1ac(0x101)]()+_0xb0c1ac(0xf2))&&(_0x136bff['app']={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this['environment'][_0xb0c1ac(0x12a)](),'fileLogName':'app.log','dir':path[_0xb0c1ac(0x122)](this['app'][_0xb0c1ac(0x10e)](),_0xb0c1ac(0x12d),'app')});!fs['existsSync'](this[_0xb0c1ac(0x13c)][_0xb0c1ac(0x101)]()+_0xb0c1ac(0xbc))&&(_0x136bff[_0xb0c1ac(0x133)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0xb0c1ac(0xce)][_0xb0c1ac(0x12a)](),'fileLogName':_0xb0c1ac(0xc3),'dir':path[_0xb0c1ac(0x122)](this[_0xb0c1ac(0x13c)]['getAppDir'](),_0xb0c1ac(0x12d),'basic')});for(const _0x51f490 of fs[_0xb0c1ac(0x100)](this[_0xb0c1ac(0x13c)][_0xb0c1ac(0x101)]()+_0xb0c1ac(0xc2))){if(!fs[_0xb0c1ac(0xe3)](this[_0xb0c1ac(0x13c)]['getBaseDir']()+'/apps/'+_0x51f490)[_0xb0c1ac(0x135)]())continue;!(_0x136bff===null||_0x136bff===void 0x0?void 0x0:_0x136bff[_0x51f490])&&(_0x136bff[_0x51f490]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0xb0c1ac(0xce)][_0xb0c1ac(0x12a)](),'fileLogName':_0x51f490+_0xb0c1ac(0xf6),'dir':path[_0xb0c1ac(0x122)](this[_0xb0c1ac(0x13c)][_0xb0c1ac(0x10e)](),_0xb0c1ac(0x12d),_0xb0c1ac(0x10b)+_0x51f490)}),this[_0xb0c1ac(0x139)][_0xb0c1ac(0x117)](_0x51f490,_0x136bff[_0x51f490]);}Object[_0xb0c1ac(0xf9)](_0x136bff)[_0xb0c1ac(0x128)]>0x0&&(!_0x3327c1[_0xb0c1ac(0x124)]&&(_0x3327c1['midwayLogger']={'default':{'maxSize':'1m','maxFiles':_0xb0c1ac(0x114),'dir':path[_0xb0c1ac(0x122)](this[_0xb0c1ac(0x13c)][_0xb0c1ac(0x10e)](),_0xb0c1ac(0x12d))}}),_0x3327c1[_0xb0c1ac(0x124)][_0xb0c1ac(0xf1)]=_0x136bff),this[_0xb0c1ac(0x11d)][_0xb0c1ac(0xbd)](_0x3327c1);}}async['filterConfig'](){const _0x527fb8=a3_0x475699;var _0x3c3d13,_0x108778,_0x11d6c0,_0x79c8c4,_0x3ee2dd,_0x68101;const _0xfcbabd=this['config'][_0x527fb8(0xcb)]();((_0x108778=(_0x3c3d13=_0xfcbabd===null||_0xfcbabd===void 0x0?void 0x0:_0xfcbabd[_0x527fb8(0xff)])===null||_0x3c3d13===void 0x0?void 0x0:_0x3c3d13[_0x527fb8(0xcd)])===null||_0x108778===void 0x0?void 0x0:_0x108778[_0x527fb8(0xfe)])&&Object[_0x527fb8(0xf9)](_0xfcbabd[_0x527fb8(0xff)]['devices'])[_0x527fb8(0x128)]>0x1&&delete _0xfcbabd['anncicapi'][_0x527fb8(0xcd)][_0x527fb8(0xfe)];if((_0x11d6c0=_0xfcbabd===null||_0xfcbabd===void 0x0?void 0x0:_0xfcbabd[_0x527fb8(0x12c)])===null||_0x11d6c0===void 0x0?void 0x0:_0x11d6c0['dirs'])for(const _0x4b76d2 in _0xfcbabd['staticFile']['dirs']){((_0x79c8c4=_0xfcbabd['staticFile'][_0x527fb8(0x125)][_0x4b76d2])===null||_0x79c8c4===void 0x0?void 0x0:_0x79c8c4[_0x527fb8(0xbe)])&&typeof((_0x3ee2dd=_0xfcbabd['staticFile'][_0x527fb8(0x125)][_0x4b76d2])===null||_0x3ee2dd===void 0x0?void 0x0:_0x3ee2dd[_0x527fb8(0xbe)])==_0x527fb8(0x113)&&!fs[_0x527fb8(0xdd)](_0xfcbabd['staticFile'][_0x527fb8(0x125)][_0x4b76d2]['dir'])&&(fs[_0x527fb8(0xd8)](_0xfcbabd[_0x527fb8(0x12c)]['dirs'][_0x4b76d2][_0x527fb8(0xbe)],{'recursive':!![]}),console[_0x527fb8(0xc6)](_0x527fb8(0xeb)+_0xfcbabd[_0x527fb8(0x12c)][_0x527fb8(0x125)][_0x4b76d2]['dir']));}((_0x68101=_0xfcbabd===null||_0xfcbabd===void 0x0?void 0x0:_0xfcbabd[_0x527fb8(0x108)])===null||_0x68101===void 0x0?void 0x0:_0x68101[_0x527fb8(0xed)])&&!fs['existsSync'](_0xfcbabd[_0x527fb8(0x108)][_0x527fb8(0xed)])&&(fs[_0x527fb8(0xd8)](_0xfcbabd['upload'][_0x527fb8(0xed)],{'recursive':!![]}),console['log'](_0x527fb8(0x11c)+_0xfcbabd[_0x527fb8(0x108)][_0x527fb8(0xed)])),this[_0x527fb8(0x11d)]['addObject'](_0xfcbabd);}};__decorate([(0x0,core_1[a3_0x475699(0xf7)])(),__metadata(a3_0x475699(0xcc),Object)],CustomConfiguration['prototype'],a3_0x475699(0x13c),void 0x0),__decorate([(0x0,core_1[a3_0x475699(0xfa)])(),__metadata(a3_0x475699(0xcc),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a3_0x475699(0x11d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a3_0x475699(0xcc),core_2[a3_0x475699(0x102)])],CustomConfiguration['prototype'],a3_0x475699(0xf8),void 0x0),__decorate([(0x0,core_1[a3_0x475699(0xfa)])(),__metadata('design:type',core_2[a3_0x475699(0xc4)])],CustomConfiguration[a3_0x475699(0x11e)],a3_0x475699(0x121),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a3_0x475699(0xbf)])],CustomConfiguration[a3_0x475699(0x11e)],'environment',void 0x0),__decorate([(0x0,core_1[a3_0x475699(0xfa)])(),__metadata(a3_0x475699(0xcc),core_1[a3_0x475699(0xdc)])],CustomConfiguration['prototype'],a3_0x475699(0x139),void 0x0),__decorate([(0x0,core_1[a3_0x475699(0xfa)])(),__metadata(a3_0x475699(0xcc),ApiService_1[a3_0x475699(0xf5)])],CustomConfiguration[a3_0x475699(0x11e)],a3_0x475699(0xf5),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x475699(0xe7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a3_0x475699(0xf3)]=CustomConfiguration;
|
|
1
|
+
function a3_0x5944(_0x109eb3,_0x432dd4){const _0x21e9f1=a3_0x3677();return a3_0x5944=function(_0x5989db,_0x218211){_0x5989db=_0x5989db-0x10c;let _0x3677d6=_0x21e9f1[_0x5989db];return _0x3677d6;},a3_0x5944(_0x109eb3,_0x432dd4);}const a3_0x5dd428=a3_0x5944;(function(_0x588989,_0x5e5de2){const _0x16f67a=a3_0x5944,_0x308e90=_0x588989();while(!![]){try{const _0x2c3206=parseInt(_0x16f67a(0x120))/0x1*(parseInt(_0x16f67a(0x16a))/0x2)+-parseInt(_0x16f67a(0x14b))/0x3+parseInt(_0x16f67a(0x16f))/0x4+parseInt(_0x16f67a(0x154))/0x5*(parseInt(_0x16f67a(0x10d))/0x6)+parseInt(_0x16f67a(0x157))/0x7+parseInt(_0x16f67a(0x17d))/0x8*(parseInt(_0x16f67a(0x18f))/0x9)+-parseInt(_0x16f67a(0x112))/0xa;if(_0x2c3206===_0x5e5de2)break;else _0x308e90['push'](_0x308e90['shift']());}catch(_0x543f48){_0x308e90['push'](_0x308e90['shift']());}}}(a3_0x3677,0xe190a));const a3_0x218211=(function(){let _0x370271=!![];return function(_0x13378c,_0x2dad13){const _0x3f9f23=_0x370271?function(){if(_0x2dad13){const _0x758f3b=_0x2dad13['apply'](_0x13378c,arguments);return _0x2dad13=null,_0x758f3b;}}:function(){};return _0x370271=![],_0x3f9f23;};}()),a3_0x5989db=a3_0x218211(this,function(){const _0x5329ec=a3_0x5944;return a3_0x5989db[_0x5329ec(0x12d)]()[_0x5329ec(0x13c)](_0x5329ec(0x143))['toString']()[_0x5329ec(0x190)](a3_0x5989db)[_0x5329ec(0x13c)](_0x5329ec(0x143));});a3_0x5989db();'use strict';function a3_0x3677(){const _0x96d571=['decorate','getAppDir','ACTION_KEY','join','registerMethodHandler','getClassMetadata','log','/basic','device','apps-','ApiService','64RVJfQt','./service/ApiService','function','AppsConfigTmp','@midwayjs/cross-domain','3257180gxfxwm','Types','defineProperties','apimit','staticFile','tagName','270d','__decorate','intercept','defineProperty','@anncic-api/core','body','app.log','Inject','72bSiUkE','App','object','hanlderApplications','https://','__esModule','./types/action','requestKey','filepath','string','application','dirs','http','requestContext','length','module','clients','_matchedRoute','753705dhycEt','constructor','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','koa-send','method','/apps','@anncic-api/validator','@midwayjs/koa','prototype','request','metadata','forEach','_matchedRouteMeta','getAsync','existsSync','encrypted','InterceptTargetTmp','defaultsDeep','./exception/ApiError','name','INTERCEPT_KEY','@midwayjs/static-file','ApiError','createLogger','6qDqfRI','handler','koa','app','isString','47693710AWtUGr','dir','./config/config.production','/apps/','proceed','description','checksign','isFunction','loggerConfig','keys','routerName','addObject','connection','APPSCONFIG_KEY','53052ZczPjy','design:type','split','anncic-apihelper','bodyXml','mkdirSync','basic.log','isDevelopmentEnvironment','__metadata','routerOptions','decorator','文件不存在','toLowerCase','toString','match','443','requestMethod','handlerActionRoute','basic','devices','headers','./config/config.default','HEADERS_SIGNATURE','path','environment','ACTION_ROUTE_KEY','http://','MidwayConfigService','search','getConfiguration','host','config','getBaseDir','REQUEST_OBJ_CTX_KEY','parse','(((.+)+)+)+$','isDirectory','DEFAULT','includes','getApplications','req','@anncic-api/cache','filterConfig','3046536UojEic','midwayLogger','CustomConfiguration','key','substring','tmpdir','query','input','onReady','7992455dglxFB','loggerService','runtime','12912494cubNJi','/app','@midwayjs/busboy','context','MidwayEnvironmentService','anncic-api','anncicapi','target'];a3_0x3677=function(){return _0x96d571;};return a3_0x3677();}var __decorate=this&&this[a3_0x5dd428(0x176)]||function(_0x33cc19,_0xdf940d,_0x5c81f9,_0x16ea57){const _0x3cbe27=a3_0x5dd428;var _0xd4ceac=arguments[_0x3cbe27(0x18b)],_0x1edfc5=_0xd4ceac<0x3?_0xdf940d:_0x16ea57===null?_0x16ea57=Object['getOwnPropertyDescriptor'](_0xdf940d,_0x5c81f9):_0x16ea57,_0x1e14b4;if(typeof Reflect===_0x3cbe27(0x17f)&&typeof Reflect[_0x3cbe27(0x15f)]==='function')_0x1edfc5=Reflect[_0x3cbe27(0x15f)](_0x33cc19,_0xdf940d,_0x5c81f9,_0x16ea57);else{for(var _0x467db7=_0x33cc19[_0x3cbe27(0x18b)]-0x1;_0x467db7>=0x0;_0x467db7--)if(_0x1e14b4=_0x33cc19[_0x467db7])_0x1edfc5=(_0xd4ceac<0x3?_0x1e14b4(_0x1edfc5):_0xd4ceac>0x3?_0x1e14b4(_0xdf940d,_0x5c81f9,_0x1edfc5):_0x1e14b4(_0xdf940d,_0x5c81f9))||_0x1edfc5;}return _0xd4ceac>0x3&&_0x1edfc5&&Object[_0x3cbe27(0x178)](_0xdf940d,_0x5c81f9,_0x1edfc5),_0x1edfc5;},__metadata=this&&this[a3_0x5dd428(0x128)]||function(_0x51d265,_0x5b5722){const _0xe67fd8=a3_0x5dd428;if(typeof Reflect===_0xe67fd8(0x17f)&&typeof Reflect[_0xe67fd8(0x199)]===_0xe67fd8(0x16c))return Reflect[_0xe67fd8(0x199)](_0x51d265,_0x5b5722);};Object[a3_0x5dd428(0x178)](exports,a3_0x5dd428(0x182),{'value':!![]}),exports[a3_0x5dd428(0x14d)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a3_0x5dd428(0x1a1)),ApiService_1=require(a3_0x5dd428(0x16b)),intercept_1=require('./types/intercept'),action_1=require(a3_0x5dd428(0x183)),fs=require('fs'),path=require('path'),koasend=require(a3_0x5dd428(0x192)),koa=require(a3_0x5dd428(0x196)),upload=require(a3_0x5dd428(0x159)),staticFile=require(a3_0x5dd428(0x1a4)),crossDomain=require(a3_0x5dd428(0x16e)),ConfigDefault=require(a3_0x5dd428(0x135)),ConfigProduction=require(a3_0x5dd428(0x114)),anncic=require(a3_0x5dd428(0x179)),anncicCache=require(a3_0x5dd428(0x149)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a3_0x5dd428(0x195)),anncicHelper=require(a3_0x5dd428(0x123));let CustomConfiguration=class CustomConfiguration{async[a3_0x5dd428(0x153)](){const _0x25dd72=a3_0x5dd428;await this[_0x25dd72(0x14a)](),await this[_0x25dd72(0x11a)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a3_0x5dd428(0x131)](){const _0x572c83=a3_0x5dd428,_0x24bbee=this[_0x572c83(0x13f)][_0x572c83(0x13d)](),_0x1daa91=(0x0,core_1[_0x572c83(0x164)])(intercept_1[_0x572c83(0x1a3)],intercept_1[_0x572c83(0x19f)])||{};this['decorator'][_0x572c83(0x163)](action_1[_0x572c83(0x139)],_0x507d4b=>{const _0x4c2cb3=_0x572c83;var _0xb9dec0;const _0x46ff0e=(0x0,core_1[_0x4c2cb3(0x164)])(action_1[_0x4c2cb3(0x11f)],action_1[_0x4c2cb3(0x16d)])||{},_0x475328=_0x507d4b[_0x4c2cb3(0x199)],_0x26ccc1=(0x0,core_1['getClassMetadata'])(action_1[_0x4c2cb3(0x161)],_0x507d4b[_0x4c2cb3(0x15e)])||{},_0x1211ff=((_0xb9dec0=_0x26ccc1===null||_0x26ccc1===void 0x0?void 0x0:_0x26ccc1[_0x4c2cb3(0x185)])===null||_0xb9dec0===void 0x0?void 0x0:_0xb9dec0[_0x4c2cb3(0x14f)](0x0,_0x26ccc1[_0x4c2cb3(0x185)]['lastIndexOf']('.')))||'',_0x3cf93a=(_0x26ccc1===null||_0x26ccc1===void 0x0?void 0x0:_0x26ccc1[_0x4c2cb3(0x18c)])?(_0x46ff0e===null||_0x46ff0e===void 0x0?void 0x0:_0x46ff0e[_0x26ccc1[_0x4c2cb3(0x18c)]])||{}:{};return{'before':async _0x10f78f=>{const _0x4824d2=_0x4c2cb3;var _0x61b2ed,_0x42c9f4,_0x7eed3c,_0x4268ea;const _0x4e50c3=(_0x61b2ed=_0x10f78f===null||_0x10f78f===void 0x0?void 0x0:_0x10f78f['target'])===null||_0x61b2ed===void 0x0?void 0x0:_0x61b2ed[core_2[_0x4824d2(0x141)]],_0x537145=lodash['defaultsDeep']({},_0x4e50c3[_0x4824d2(0x198)][_0x4824d2(0x17a)]||_0x4e50c3[_0x4824d2(0x198)][((_0x42c9f4=_0x24bbee===null||_0x24bbee===void 0x0?void 0x0:_0x24bbee['bodyXml'])===null||_0x42c9f4===void 0x0?void 0x0:_0x42c9f4[_0x4824d2(0x14e)])||_0x4824d2(0x17a)]||{},_0x4e50c3['request']['query']||{});_0x4e50c3[_0x4824d2(0x19b)]={'module':(_0x3cf93a===null||_0x3cf93a===void 0x0?void 0x0:_0x3cf93a[_0x4824d2(0x1a2)])||'','routePath':''+_0x4e50c3[_0x4824d2(0x137)],'routeName':_0x26ccc1[_0x4824d2(0x129)][_0x4824d2(0x174)]+'@'+_0x475328[_0x4824d2(0x11c)],'routeMethod':((_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328[_0x4824d2(0x130)])||_0x4e50c3[_0x4824d2(0x193)]||'')[_0x4824d2(0x12c)](),'routeDescription':(_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328[_0x4824d2(0x117)])||'','filemethod':_0x1211ff+'@'+(_0x475328[_0x4824d2(0x193)]||'')};if(_0x4e50c3&&(_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328[_0x4824d2(0x172)]))try{const _0x4b4381=((_0x7eed3c=_0x24bbee===null||_0x24bbee===void 0x0?void 0x0:_0x24bbee['anncicapi'])===null||_0x7eed3c===void 0x0?void 0x0:_0x7eed3c[_0x4824d2(0x184)])&&typeof(_0x537145===null||_0x537145===void 0x0?void 0x0:_0x537145[_0x24bbee[_0x4824d2(0x15d)][_0x4824d2(0x184)]])==_0x4824d2(0x186)?JSON[_0x4824d2(0x142)](base64_decode(_0x537145[_0x24bbee[_0x4824d2(0x15d)][_0x4824d2(0x184)]])||'{}')||{}:((_0x4268ea=_0x4e50c3===null||_0x4e50c3===void 0x0?void 0x0:_0x4e50c3['request'])===null||_0x4268ea===void 0x0?void 0x0:_0x4268ea['headers'])||{};if(!this[_0x4824d2(0x169)][_0x4824d2(0x118)](_0x4b4381))throw new AnnError(ApiError_1[_0x4824d2(0x1a5)][_0x4824d2(0x136)]);for(const _0x64a3c8 in _0x4b4381||{}){_0x4e50c3[_0x4824d2(0x134)][_0x64a3c8]=_0x4b4381[_0x64a3c8];}}catch(_0xd7f207){if(_0xd7f207 instanceof AnnError)throw _0xd7f207;else throw new AnnError(ApiError_1['ApiError']['_UNKNOW_']);}},'around':async _0x125a02=>{const _0x7fc507=_0x4c2cb3;var _0x1e53de,_0x498926,_0x2667e4;const _0x295fb4=(_0x1e53de=_0x125a02===null||_0x125a02===void 0x0?void 0x0:_0x125a02[_0x7fc507(0x15e)])===null||_0x1e53de===void 0x0?void 0x0:_0x1e53de[core_2[_0x7fc507(0x141)]];if(_0x295fb4&&(_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328[_0x7fc507(0x172)])&&((_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328['intercept'])||typeof(_0x475328===null||_0x475328===void 0x0?void 0x0:_0x475328[_0x7fc507(0x177)])=='undefined')){if(((_0x498926=_0x295fb4[_0x7fc507(0x134)])===null||_0x498926===void 0x0?void 0x0:_0x498926[_0x7fc507(0x167)])&&((_0x2667e4=_0x1daa91===null||_0x1daa91===void 0x0?void 0x0:_0x1daa91[_0x295fb4[_0x7fc507(0x134)]['device']])===null||_0x2667e4===void 0x0?void 0x0:_0x2667e4[_0x7fc507(0x18b)])>0x0)for(const _0x30af63 of _0x1daa91[_0x295fb4[_0x7fc507(0x134)][_0x7fc507(0x167)]]||[]){if(core_1['Types']['isClass'](_0x30af63)){const _0x4e44de=await _0x295fb4[_0x7fc507(0x18a)][_0x7fc507(0x19c)](_0x30af63);typeof(_0x4e44de===null||_0x4e44de===void 0x0?void 0x0:_0x4e44de[_0x7fc507(0x12e)])==_0x7fc507(0x16c)?await _0x4e44de[_0x7fc507(0x12e)](_0x295fb4,typeof(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x193)])==_0x7fc507(0x186)&&(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)])?_0x295fb4[_0x7fc507(0x193)][_0x7fc507(0x12c)]()+'@'+(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)]):undefined,_0x475328)&&await _0x4e44de[_0x7fc507(0x10e)](_0x295fb4,typeof(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x193)])==_0x7fc507(0x186)&&(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4['_matchedRoute'])?_0x295fb4[_0x7fc507(0x193)][_0x7fc507(0x12c)]()+'@'+(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)]):undefined,_0x475328):await _0x4e44de['handler'](_0x295fb4,typeof(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4['method'])==_0x7fc507(0x186)&&(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)])?_0x295fb4['method'][_0x7fc507(0x12c)]()+'@'+(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)]):undefined,_0x475328);}else core_1[_0x7fc507(0x170)][_0x7fc507(0x119)](_0x30af63)&&await _0x30af63(_0x295fb4,typeof(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x193)])==_0x7fc507(0x186)&&(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4['_matchedRoute'])?_0x295fb4['method']['toLowerCase']()+'@'+(_0x295fb4===null||_0x295fb4===void 0x0?void 0x0:_0x295fb4[_0x7fc507(0x18e)]):undefined,_0x475328);}}return await _0x125a02[_0x7fc507(0x116)](..._0x125a02['args']);},'afterThrow':(_0x3f0cbd,_0x3c1b7a)=>{throw _0x3c1b7a;}};});}async[a3_0x5dd428(0x180)](){const _0x21c86b=a3_0x5dd428,_0x3de754=this[_0x21c86b(0x13f)]['getConfiguration']();this['application'][_0x21c86b(0x147)]([_0x21c86b(0x10f)])[_0x21c86b(0x19a)](_0x1c78e8=>{const _0x43447f=_0x21c86b;(_0x1c78e8===null||_0x1c78e8===void 0x0?void 0x0:_0x1c78e8['context'])&&Object[_0x43447f(0x171)](_0x1c78e8[_0x43447f(0x15a)],{'hosturl':{'configurable':![],'get':function(){const _0x5ee44b=_0x43447f;var _0x1e32bf,_0x1c8bcd,_0x5eba0b,_0x301373;if((this===null||this===void 0x0?void 0x0:this[_0x5ee44b(0x13e)])&&!this['host']['startsWith'](_0x5ee44b(0x189))){let _0x5a89fd=this[_0x5ee44b(0x13e)][_0x5ee44b(0x122)](':');return['80',_0x5ee44b(0x12f)][_0x5ee44b(0x146)](_0x5a89fd===null||_0x5a89fd===void 0x0?void 0x0:_0x5a89fd[0x1])?''+(!!((_0x1c8bcd=(_0x1e32bf=this===null||this===void 0x0?void 0x0:this[_0x5ee44b(0x148)])===null||_0x1e32bf===void 0x0?void 0x0:_0x1e32bf['connection'])===null||_0x1c8bcd===void 0x0?void 0x0:_0x1c8bcd['encrypted'])||(_0x5a89fd===null||_0x5a89fd===void 0x0?void 0x0:_0x5a89fd[0x1])==_0x5ee44b(0x12f)?_0x5ee44b(0x181):_0x5ee44b(0x13a))+_0x5a89fd[0x0]:''+(!!((_0x301373=(_0x5eba0b=this===null||this===void 0x0?void 0x0:this[_0x5ee44b(0x148)])===null||_0x5eba0b===void 0x0?void 0x0:_0x5eba0b[_0x5ee44b(0x11e)])===null||_0x301373===void 0x0?void 0x0:_0x301373[_0x5ee44b(0x19e)])?_0x5ee44b(0x181):'http://')+this[_0x5ee44b(0x13e)];}return'';}},'ok':{'value':function(_0x54c32f,_0x2cbf99,_0x2ea295=0x0){return{'code':_0x2ea295,'data':_0x54c32f,'extra':_0x2cbf99};}},'input':{'value':function(_0xe9a010,_0x3fee67){const _0x4ec0dc=_0x43447f;var _0x204d0d;const _0x5435d5=lodash[_0x4ec0dc(0x1a0)]({},this[_0x4ec0dc(0x198)][_0x4ec0dc(0x17a)]||this['request'][((_0x204d0d=_0x3de754===null||_0x3de754===void 0x0?void 0x0:_0x3de754[_0x4ec0dc(0x124)])===null||_0x204d0d===void 0x0?void 0x0:_0x204d0d[_0x4ec0dc(0x14e)])||_0x4ec0dc(0x17a)]||{},this[_0x4ec0dc(0x198)][_0x4ec0dc(0x151)]||{});return _0xe9a010?lodash['get'](_0x5435d5,_0xe9a010,_0x3fee67):_0x5435d5;}},'when':{'value':async function(_0x4b593d,_0x381ebe){const _0x559f24=_0x43447f,_0x3e55c8=this[_0x559f24(0x152)](_0x4b593d,null);if(!lodash['isNull'](_0x3e55c8))return await _0x381ebe(_0x3e55c8);}},'only':{'value':function(_0x2a745d){const _0x360cb7=_0x43447f,_0x1e4baa={};for(let _0x567c58=0x0;_0x567c58<_0x2a745d['length'];_0x567c58++){lodash['isArray'](_0x2a745d[_0x567c58])&&_0x2a745d[_0x567c58][_0x360cb7(0x18b)]>0x0&&lodash[_0x360cb7(0x111)](_0x2a745d[_0x567c58][0x0])&&(_0x1e4baa[_0x2a745d[_0x567c58][0x0]]=this['input'](_0x2a745d[_0x567c58][0x0],_0x2a745d[_0x567c58]['length']>0x1?_0x2a745d[_0x567c58][0x1]:null));}return _0x1e4baa;}},'koasend':{'value':async function(_0x30ba16,_0x19ea35){const _0x3ae688=_0x43447f;if(_0x30ba16&&!fs[_0x3ae688(0x19d)](_0x30ba16)&&!fs['existsSync'](this['app'][_0x3ae688(0x160)]()+'/'+_0x30ba16))return _0x3ae688(0x12b);return _0x30ba16=fs[_0x3ae688(0x19d)](_0x30ba16)?_0x30ba16:this['app'][_0x3ae688(0x160)]()+'/'+_0x30ba16,this['attachment'](_0x19ea35||_0x30ba16),await koasend(this,_0x30ba16);}}});});}async['loggerConfig'](){const _0x4816a3=a3_0x5dd428;var _0x478b11;if(fs[_0x4816a3(0x19d)](this[_0x4816a3(0x110)][_0x4816a3(0x140)]()+'/apps')&&fs['statSync'](this[_0x4816a3(0x110)][_0x4816a3(0x140)]()+'/apps')[_0x4816a3(0x144)]()){const _0x3a2a64=this['config']['getConfiguration'](),_0x1a6e38=((_0x478b11=_0x3a2a64===null||_0x3a2a64===void 0x0?void 0x0:_0x3a2a64['midwayLogger'])===null||_0x478b11===void 0x0?void 0x0:_0x478b11[_0x4816a3(0x18d)])||{};!fs[_0x4816a3(0x19d)](this[_0x4816a3(0x110)][_0x4816a3(0x140)]()+_0x4816a3(0x158))&&(_0x1a6e38['app']={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x4816a3(0x138)][_0x4816a3(0x127)](),'fileLogName':_0x4816a3(0x17b),'dir':path[_0x4816a3(0x162)](this['app'][_0x4816a3(0x160)](),_0x4816a3(0x156),_0x4816a3(0x110))});!fs[_0x4816a3(0x19d)](this[_0x4816a3(0x110)][_0x4816a3(0x140)]()+_0x4816a3(0x166))&&(_0x1a6e38[_0x4816a3(0x132)]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x4816a3(0x138)][_0x4816a3(0x127)](),'fileLogName':_0x4816a3(0x126),'dir':path[_0x4816a3(0x162)](this[_0x4816a3(0x110)][_0x4816a3(0x160)](),_0x4816a3(0x156),'basic')});for(const _0x321eb4 of fs['readdirSync'](this[_0x4816a3(0x110)]['getBaseDir']()+_0x4816a3(0x194))){if(!fs['statSync'](this['app']['getBaseDir']()+_0x4816a3(0x115)+_0x321eb4)[_0x4816a3(0x144)]())continue;!(_0x1a6e38===null||_0x1a6e38===void 0x0?void 0x0:_0x1a6e38[_0x321eb4])&&(_0x1a6e38[_0x321eb4]={'lazyLoad':!![],'enableJSON':!![],'enableConsole':this[_0x4816a3(0x138)][_0x4816a3(0x127)](),'fileLogName':_0x321eb4+'.log','dir':path[_0x4816a3(0x162)](this[_0x4816a3(0x110)]['getAppDir'](),_0x4816a3(0x156),_0x4816a3(0x168)+_0x321eb4)}),this[_0x4816a3(0x155)][_0x4816a3(0x10c)](_0x321eb4,_0x1a6e38[_0x321eb4]);}Object['keys'](_0x1a6e38)[_0x4816a3(0x18b)]>0x0&&(!_0x3a2a64[_0x4816a3(0x14c)]&&(_0x3a2a64[_0x4816a3(0x14c)]={'default':{'maxSize':'1m','maxFiles':_0x4816a3(0x175),'dir':path['join'](this[_0x4816a3(0x110)][_0x4816a3(0x160)](),_0x4816a3(0x156))}}),_0x3a2a64[_0x4816a3(0x14c)][_0x4816a3(0x18d)]=_0x1a6e38),this[_0x4816a3(0x13f)][_0x4816a3(0x11d)](_0x3a2a64);}}async[a3_0x5dd428(0x14a)](){const _0x148996=a3_0x5dd428;var _0x1776d0,_0xa78356,_0x419493,_0x519546,_0x22e7ef,_0xe81d6e;const _0x3afd14=this[_0x148996(0x13f)]['getConfiguration']();((_0xa78356=(_0x1776d0=_0x3afd14===null||_0x3afd14===void 0x0?void 0x0:_0x3afd14[_0x148996(0x15d)])===null||_0x1776d0===void 0x0?void 0x0:_0x1776d0[_0x148996(0x133)])===null||_0xa78356===void 0x0?void 0x0:_0xa78356[_0x148996(0x145)])&&Object[_0x148996(0x11b)](_0x3afd14[_0x148996(0x15d)][_0x148996(0x133)])[_0x148996(0x18b)]>0x1&&delete _0x3afd14[_0x148996(0x15d)][_0x148996(0x133)][_0x148996(0x145)];if((_0x419493=_0x3afd14===null||_0x3afd14===void 0x0?void 0x0:_0x3afd14['staticFile'])===null||_0x419493===void 0x0?void 0x0:_0x419493[_0x148996(0x188)])for(const _0xef9c1 in _0x3afd14['staticFile'][_0x148996(0x188)]){((_0x519546=_0x3afd14[_0x148996(0x173)]['dirs'][_0xef9c1])===null||_0x519546===void 0x0?void 0x0:_0x519546[_0x148996(0x113)])&&typeof((_0x22e7ef=_0x3afd14[_0x148996(0x173)][_0x148996(0x188)][_0xef9c1])===null||_0x22e7ef===void 0x0?void 0x0:_0x22e7ef[_0x148996(0x113)])==_0x148996(0x186)&&!fs[_0x148996(0x19d)](_0x3afd14[_0x148996(0x173)][_0x148996(0x188)][_0xef9c1][_0x148996(0x113)])&&(fs[_0x148996(0x125)](_0x3afd14[_0x148996(0x173)][_0x148996(0x188)][_0xef9c1][_0x148996(0x113)],{'recursive':!![]}),console[_0x148996(0x165)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x3afd14[_0x148996(0x173)][_0x148996(0x188)][_0xef9c1][_0x148996(0x113)]));}((_0xe81d6e=_0x3afd14===null||_0x3afd14===void 0x0?void 0x0:_0x3afd14['upload'])===null||_0xe81d6e===void 0x0?void 0x0:_0xe81d6e[_0x148996(0x150)])&&!fs['existsSync'](_0x3afd14['upload'][_0x148996(0x150)])&&(fs[_0x148996(0x125)](_0x3afd14['upload']['tmpdir'],{'recursive':!![]}),console[_0x148996(0x165)](_0x148996(0x191)+_0x3afd14['upload']['tmpdir'])),this[_0x148996(0x13f)][_0x148996(0x11d)](_0x3afd14);}};__decorate([(0x0,core_1[a3_0x5dd428(0x17e)])(),__metadata(a3_0x5dd428(0x121),Object)],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x110),void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata('design:type',core_2[a3_0x5dd428(0x13b)])],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x13f),void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata(a3_0x5dd428(0x121),core_2['MidwayDecoratorService'])],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x12a),void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata(a3_0x5dd428(0x121),core_2['MidwayApplicationManager'])],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x187),void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata(a3_0x5dd428(0x121),core_2[a3_0x5dd428(0x15b)])],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x138),void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata(a3_0x5dd428(0x121),core_1['MidwayLoggerService'])],CustomConfiguration[a3_0x5dd428(0x197)],'loggerService',void 0x0),__decorate([(0x0,core_1[a3_0x5dd428(0x17c)])(),__metadata(a3_0x5dd428(0x121),ApiService_1[a3_0x5dd428(0x169)])],CustomConfiguration[a3_0x5dd428(0x197)],a3_0x5dd428(0x169),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a3_0x5dd428(0x15c),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a3_0x5dd428(0x14d)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x330b9b=a4_0x4abd;(function(_0x5b4b84,_0x308ce8){const _0x450d65=a4_0x4abd,_0x32e032=_0x5b4b84();while(!![]){try{const _0x1bb618=parseInt(_0x450d65(0x10e))/0x1*(-parseInt(_0x450d65(0x116))/0x2)+parseInt(_0x450d65(0x14b))/0x3*(-parseInt(_0x450d65(0x13c))/0x4)+parseInt(_0x450d65(0x143))/0x5+-parseInt(_0x450d65(0x10b))/0x6*(parseInt(_0x450d65(0x129))/0x7)+-parseInt(_0x450d65(0x134))/0x8*(parseInt(_0x450d65(0x102))/0x9)+-parseInt(_0x450d65(0x151))/0xa*(parseInt(_0x450d65(0x146))/0xb)+parseInt(_0x450d65(0x148))/0xc;if(_0x1bb618===_0x308ce8)break;else _0x32e032['push'](_0x32e032['shift']());}catch(_0x379352){_0x32e032['push'](_0x32e032['shift']());}}}(a4_0x5ddd,0xcb191));const a4_0x3f0caf=(function(){let _0x13189e=!![];return function(_0x1bfad4,_0x37ec5f){const _0x5aa581=_0x13189e?function(){const _0x23c2fd=a4_0x4abd;if(_0x37ec5f){const _0x62695e=_0x37ec5f[_0x23c2fd(0x13f)](_0x1bfad4,arguments);return _0x37ec5f=null,_0x62695e;}}:function(){};return _0x13189e=![],_0x5aa581;};}()),a4_0x225c70=a4_0x3f0caf(this,function(){const _0xdd1c7a=a4_0x4abd;return a4_0x225c70['toString']()[_0xdd1c7a(0x108)]('(((.+)+)+)+$')['toString']()['constructor'](a4_0x225c70)[_0xdd1c7a(0x108)](_0xdd1c7a(0x12d));});a4_0x225c70();'use strict';var _a,_b;Object[a4_0x330b9b(0x144)](exports,'__esModule',{'value':!![]}),exports[a4_0x330b9b(0x122)]=exports[a4_0x330b9b(0x110)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a4_0x330b9b(0x12e)),action_1=require(a4_0x330b9b(0x11f)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a[a4_0x330b9b(0x14a)])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x330b9b(0x127)])===null||_b===void 0x0?void 0x0:_b[a4_0x330b9b(0x152)]);function a4_0x4abd(_0x85ac2a,_0x5df4b8){const _0x131a41=a4_0x5ddd();return a4_0x4abd=function(_0x225c70,_0x3f0caf){_0x225c70=_0x225c70-0xfe;let _0x5ddd2e=_0x131a41[_0x225c70];return _0x5ddd2e;},a4_0x4abd(_0x85ac2a,_0x5df4b8);}function a4_0x5ddd(){const _0x2f0aa7=['ActionApi','validationOptions','routerName','isArray','middlewareIgnore','replace','2PtQbJR','saveClassMetadata','filepath','/controller/文件下','indexOf','ACTION_KEY','RequestMapping','rootpath','ACTION_RESPONSE_KEY','../types/action','string','description','parseRoute','middleware','createCustomMethodDecorator','intercept','substring','env','split','7qJsnja','join','ACTION_ROUTE_KEY','length','(((.+)+)+)+$','@midwayjs/core','/config.default.','prefix','apimit','get','saveModule','1560424IUlQtC','filter','trim','/controller/','cwd','match','toLowerCase','basic/controller/','1500QGFzGr','-action','keys','apply','\x20文件请放在apps/','defaultsDeep','module','4145385dcArVl','defineProperty','APPSCONFIG_KEY','22yuzSan','validate','40074168zBleyD','/apps/','MIDWAY_SERVER_ENV','11871VSGaiP','attachClassMetadata','tagName','AppsConfigTmp','Controller','app/controller/','1701680wYPkFO','NODE_ENV','-controller','splice','/config.','getClassMetadata','endsWith','27NvQagK','values','apps/','Validator','route','\x20文件请放在app/controller/文件下','search','post','Action','2577276GMbTVb','push','existsSync','497786XpXBGh','startsWith'];a4_0x5ddd=function(){return _0x2f0aa7;};return a4_0x5ddd();}function Action(_0x3550e0,_0x117f29,_0x781dec={'middleware':[],'sensitive':!![]}){return _0xf78a92=>{const _0x39ae43=a4_0x4abd;var _0x3019da;_0x781dec[_0x39ae43(0x14d)]=_0x117f29;const _0x5e69f6=parseRoute(_0x3550e0);if(_0x5e69f6['module']){_0x781dec[_0x39ae43(0x130)]=_0x781dec['prefix']?'/'+_0x5e69f6[_0x39ae43(0x142)]+'/'+_0x781dec[_0x39ae43(0x130)]:'/'+_0x5e69f6[_0x39ae43(0x106)];_0x5e69f6['prefix']&&(_0x781dec[_0x39ae43(0x130)]='/'+_0x5e69f6[_0x39ae43(0x130)]+'/'+_0x781dec[_0x39ae43(0x130)]);_0x781dec['prefix']=_0x781dec['prefix'][_0x39ae43(0x13a)]()[_0x39ae43(0x115)](/\/{2,}/g,'/');const _0x2e5bb0=getModuleConfig(_0x5e69f6[_0x39ae43(0x11d)]+'/apps',_0x5e69f6[_0x39ae43(0x142)],lodash[_0x39ae43(0x101)](_0x5e69f6[_0x39ae43(0x118)],'ts')?'ts':'js');if(lodash[_0x39ae43(0x113)](_0x2e5bb0[_0x39ae43(0x123)])&&_0x2e5bb0[_0x39ae43(0x123)][_0x39ae43(0x12c)]>0x0)for(let _0x2a43a8 in _0x2e5bb0[_0x39ae43(0x123)]){if(((_0x3019da=_0x2e5bb0===null||_0x2e5bb0===void 0x0?void 0x0:_0x2e5bb0[_0x39ae43(0x114)])===null||_0x3019da===void 0x0?void 0x0:_0x3019da[_0x39ae43(0x12c)])>0x0&&_0x2e5bb0[_0x39ae43(0x114)][_0x39ae43(0x11a)](_0x2e5bb0[_0x39ae43(0x123)][_0x2a43a8])!=-0x1)continue;_0x781dec[_0x39ae43(0x123)][_0x39ae43(0x10c)](_0x2e5bb0[_0x39ae43(0x123)][_0x2a43a8]);}(0x0,core_1['saveModule'])(action_1[_0x39ae43(0x11b)],_0xf78a92),(0x0,core_1[_0x39ae43(0x14f)])(_0x781dec['prefix'],_0x781dec)(_0xf78a92),(0x0,core_1[_0x39ae43(0x117)])(action_1[_0x39ae43(0x11b)],{'prefix':_0x781dec[_0x39ae43(0x130)],'pprefix':_0x5e69f6['prefix'],'module':_0x5e69f6[_0x39ae43(0x142)],'filepath':_0x5e69f6[_0x39ae43(0x118)],'routerOptions':_0x781dec},_0xf78a92);}else _0x781dec[_0x39ae43(0x130)]=_0x781dec[_0x39ae43(0x130)]?'/'+_0x781dec[_0x39ae43(0x130)]:'/'+_0x5e69f6[_0x39ae43(0x106)],_0x5e69f6[_0x39ae43(0x130)]&&(_0x781dec[_0x39ae43(0x130)]='/'+_0x5e69f6['prefix']+'/'+_0x781dec[_0x39ae43(0x130)]),_0x781dec[_0x39ae43(0x130)]=_0x781dec[_0x39ae43(0x130)]['toLowerCase']()[_0x39ae43(0x115)](/\/{2,}/g,'/'),(0x0,core_1[_0x39ae43(0x133)])(action_1[_0x39ae43(0x11b)],_0xf78a92),(0x0,core_1[_0x39ae43(0x14f)])(_0x781dec['prefix'],_0x781dec)(_0xf78a92),(0x0,core_1[_0x39ae43(0x117)])(action_1['ACTION_KEY'],{'prefix':_0x781dec[_0x39ae43(0x130)],'module':_0x5e69f6[_0x39ae43(0x142)],'pprefix':_0x5e69f6[_0x39ae43(0x130)],'filepath':_0x5e69f6[_0x39ae43(0x118)],'routerOptions':_0x781dec},_0xf78a92);};}exports[a4_0x330b9b(0x10a)]=Action,Action[a4_0x330b9b(0x132)]=function(_0x2d6ed6,_0x116fed='/',_0x45bc9c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x10f31d,_0x2a8a3b,_0x10a51b)=>{const _0x33b1a1=a4_0x4abd;ActionApi(_0x2d6ed6,_0x33b1a1(0x132),_0x116fed,_0x45bc9c)(_0x10f31d,_0x2a8a3b,_0x10a51b);};},Action['post']=function(_0x3f185e,_0x5f734f='/',_0x33a8ac={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x402e03,_0x3431c3,_0x19c703)=>{const _0x373b7e=a4_0x4abd;ActionApi(_0x3f185e,_0x373b7e(0x109),_0x5f734f,_0x33a8ac)(_0x402e03,_0x3431c3,_0x19c703);};};function ActionApi(_0x115e66,_0x847786=a4_0x330b9b(0x132),_0x24e34d='/',_0x4c694a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3bdf60,_0x2a9301,_0x5514de)=>{const _0x3620a0=a4_0x4abd;var _0x4ef85f,_0x2842ab,_0x168468;!_0x4c694a['middleware']&&(_0x4c694a[_0x3620a0(0x123)]=[]);!((_0x4ef85f=_0x4c694a===null||_0x4c694a===void 0x0?void 0x0:_0x4c694a[_0x3620a0(0x147)])===null||_0x4ef85f===void 0x0?void 0x0:_0x4ef85f[_0x3620a0(0x111)])&&(_0x4c694a[_0x3620a0(0x147)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3620a0(0x120)}});if(!_0x24e34d)_0x24e34d='/';else typeof _0x24e34d==_0x3620a0(0x120)&&(!_0x24e34d[_0x3620a0(0x10f)]('/')&&!_0x24e34d['startsWith']('-')&&(_0x24e34d='/'+_0x24e34d));typeof _0x4c694a[_0x3620a0(0x131)]=='undefined'&&(_0x4c694a[_0x3620a0(0x131)]=!![]);if(((_0x2842ab=_0x4c694a===null||_0x4c694a===void 0x0?void 0x0:_0x4c694a['middleware'])===null||_0x2842ab===void 0x0?void 0x0:_0x2842ab['length'])>0x0&&((_0x168468=_0x4c694a===null||_0x4c694a===void 0x0?void 0x0:_0x4c694a[_0x3620a0(0x114)])===null||_0x168468===void 0x0?void 0x0:_0x168468[_0x3620a0(0x12c)])>0x0)for(let _0x380d89 in _0x4c694a[_0x3620a0(0x123)]){_0x4c694a['middlewareIgnore'][_0x3620a0(0x11a)](_0x4c694a[_0x3620a0(0x123)][_0x380d89])!==-0x1&&(_0x4c694a['middleware'][_0x380d89]=null);}_0x4c694a[_0x3620a0(0x112)]=_0x115e66,(0x0,validator_1[_0x3620a0(0x105)])(_0x4c694a['validate'])(_0x3bdf60,_0x2a9301,_0x5514de),(0x0,core_2[_0x3620a0(0x11c)])(Object['assign'](_0x4c694a,{'path':_0x24e34d,'requestMethod':(_0x847786||_0x3620a0(0x132))[_0x3620a0(0x13a)]()}))(_0x3bdf60,_0x2a9301,_0x5514de),(0x0,core_2[_0x3620a0(0x14c)])(action_1[_0x3620a0(0x12b)],{'path':_0x24e34d,'method':_0x2a9301,'apimit':_0x4c694a[_0x3620a0(0x131)],'intercept':_0x4c694a['intercept'],'routerName':_0x4c694a[_0x3620a0(0x112)],'description':_0x4c694a[_0x3620a0(0x121)],'middleware':(_0x4c694a['middleware']||[])[_0x3620a0(0x135)](_0x34b396=>!!_0x34b396),'requestMethod':(_0x847786||_0x3620a0(0x132))[_0x3620a0(0x13a)]()},_0x3bdf60),(0x0,core_2[_0x3620a0(0x124)])(action_1[_0x3620a0(0x12b)],{'path':_0x24e34d,'method':_0x2a9301,'apimit':_0x4c694a['apimit'],'intercept':_0x4c694a[_0x3620a0(0x125)],'routerName':_0x4c694a['routerName'],'description':_0x4c694a[_0x3620a0(0x121)],'middleware':(_0x4c694a[_0x3620a0(0x123)]||[])[_0x3620a0(0x135)](_0x17f7eb=>!!_0x17f7eb),'requestMethod':(_0x847786||'get')[_0x3620a0(0x13a)]()})(_0x3bdf60,_0x2a9301,_0x5514de),_0x4c694a['response']&&(0x0,core_2[_0x3620a0(0x14c)])(action_1[_0x3620a0(0x11e)],{'method':_0x2a9301,..._0x4c694a['response']},_0x3bdf60);};}exports['ActionApi']=ActionApi;function parseRoute(_0x2d3af8){const _0x734fea=a4_0x330b9b;_0x2d3af8=_0x2d3af8[_0x734fea(0x115)](/(\\|\/)/g,'/');const _0x4f50f0=process[_0x734fea(0x138)]()['replace'](/(\\|\/)/g,'/'),_0x404843=_0x2d3af8['substring'](0x0,_0x4f50f0[_0x734fea(0x12c)]+_0x2d3af8[_0x734fea(0x126)](_0x4f50f0[_0x734fea(0x12c)]+0x1)[_0x734fea(0x11a)]('/')+0x1),_0x2c4b2a=_0x2d3af8[_0x734fea(0x126)](_0x404843['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x541a81={'route':'','prefix':![],'module':![],'rootpath':_0x404843,'filepath':_0x2c4b2a};if(_0x2c4b2a[_0x734fea(0x10f)](_0x734fea(0x150))||_0x2c4b2a[_0x734fea(0x10f)](_0x734fea(0x13b))){const _0x5c678e=_0x2c4b2a[_0x734fea(0x126)]((_0x2c4b2a[_0x734fea(0x10f)](_0x734fea(0x150))?_0x734fea(0x150):_0x734fea(0x13b))[_0x734fea(0x12c)])[_0x734fea(0x128)]('/')[_0x734fea(0x135)](_0x5596e2=>_0x5596e2&&_0x5596e2['trim']());return _0x5c678e[_0x734fea(0x12c)]>0x1&&(_0x541a81[_0x734fea(0x130)]=_0x5c678e[0x0]['toLowerCase'](),_0x5c678e[_0x734fea(0xfe)](0x0,0x1)),_0x541a81[_0x734fea(0x106)]=('/'+_0x5c678e['join']('/'))[_0x734fea(0x115)](/(\.ts|\.js)$/,'')[_0x734fea(0x115)](/\/{2,}/g,'/')[_0x734fea(0x139)](/[\/|A-Z]*[^A-Z]+/g)[_0x734fea(0x12a)]('-')[_0x734fea(0x13a)]()[_0x734fea(0x115)](/\/\-/g,'/'),_0x541a81['route'][_0x734fea(0x101)](_0x734fea(0x13d))&&(_0x541a81[_0x734fea(0x106)]=_0x541a81['route']['substring'](0x0,_0x541a81['route'][_0x734fea(0x12c)]-0x7)),_0x541a81[_0x734fea(0x106)][_0x734fea(0x101)](_0x734fea(0x153))&&(_0x541a81[_0x734fea(0x106)]=_0x541a81[_0x734fea(0x106)][_0x734fea(0x126)](0x0,_0x541a81[_0x734fea(0x106)][_0x734fea(0x12c)]-0xb)),_0x541a81;}else{if(_0x2c4b2a[_0x734fea(0x10f)](_0x734fea(0x104))){const _0x144d08=_0x2c4b2a[_0x734fea(0x126)](0x0,_0x2c4b2a[_0x734fea(0x11a)](_0x734fea(0x149))+0x5),_0x220d82=_0x2c4b2a['substring'](_0x144d08[_0x734fea(0x12c)]+0x1)[_0x734fea(0x115)](/(\\|\/)/g,'/')[_0x734fea(0x128)]('/')[0x0];if(_0x2c4b2a[_0x734fea(0x10f)](_0x734fea(0x104)+_0x220d82+_0x734fea(0x137))){const _0x12cb82=_0x2c4b2a[_0x734fea(0x126)]((_0x144d08+'/'+_0x220d82+_0x734fea(0x137))[_0x734fea(0x12c)])[_0x734fea(0x128)]('/')['filter'](_0x36b524=>_0x36b524&&_0x36b524[_0x734fea(0x136)]());return _0x12cb82['length']>0x1&&(_0x541a81[_0x734fea(0x130)]=_0x12cb82[0x0][_0x734fea(0x13a)](),_0x12cb82[_0x734fea(0xfe)](0x0,0x1)),_0x541a81['module']=_0x220d82,_0x541a81[_0x734fea(0x106)]=('/'+_0x220d82+'/'+_0x12cb82[_0x734fea(0x12a)]('/'))[_0x734fea(0x115)](/(\.ts|\.js)$/,'')[_0x734fea(0x115)](/\/{2,}/g,'/')[_0x734fea(0x139)](/[\/|A-Z]*[^A-Z]+/g)[_0x734fea(0x12a)]('-')[_0x734fea(0x13a)]()[_0x734fea(0x115)](/\/\-/g,'/'),_0x541a81[_0x734fea(0x106)][_0x734fea(0x101)]('-action')&&(_0x541a81[_0x734fea(0x106)]=_0x541a81['route'][_0x734fea(0x126)](0x0,_0x541a81[_0x734fea(0x106)][_0x734fea(0x12c)]-0x7)),_0x541a81['route']['endsWith'](_0x734fea(0x153))&&(_0x541a81[_0x734fea(0x106)]=_0x541a81[_0x734fea(0x106)][_0x734fea(0x126)](0x0,_0x541a81[_0x734fea(0x106)][_0x734fea(0x12c)]-0xb)),_0x541a81;}throw new Error(_0x2c4b2a+_0x734fea(0x140)+_0x220d82+_0x734fea(0x119));}}throw new Error(_0x2c4b2a+_0x734fea(0x107));}exports[a4_0x330b9b(0x122)]=parseRoute;const moduleConfigTmp=(0x0,core_1[a4_0x330b9b(0x100)])(action_1[a4_0x330b9b(0x145)],action_1[a4_0x330b9b(0x14e)])||{};function getModuleConfig(_0xca8a50,_0x18393e,_0x478abe){const _0x53f822=a4_0x330b9b;if(Object[_0x53f822(0x103)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x18393e])||{})[_0x53f822(0x12c)]==0x0){let _0x3ac6a3={};if(NODE_ENV&&fs[_0x53f822(0x10d)](_0xca8a50+'/'+_0x18393e+_0x53f822(0xff)+NODE_ENV+'.'+_0x478abe)){const _0x1f6b5d=include(_0xca8a50+'/'+_0x18393e+_0x53f822(0xff)+NODE_ENV+'.'+_0x478abe);Object[_0x53f822(0x13e)](_0x1f6b5d)[_0x53f822(0x12c)]>0x0&&(_0x3ac6a3=lodash[_0x53f822(0x141)](_0x3ac6a3,_0x1f6b5d));}if(fs['existsSync'](_0xca8a50+'/'+_0x18393e+_0x53f822(0x12f)+_0x478abe)){const _0x2445bd=include(_0xca8a50+'/'+_0x18393e+_0x53f822(0x12f)+_0x478abe);Object['keys'](_0x2445bd)[_0x53f822(0x12c)]>0x0&&(_0x3ac6a3=lodash['defaultsDeep'](_0x3ac6a3,_0x2445bd));}if(fs[_0x53f822(0x10d)](_0xca8a50+'/'+_0x18393e+_0x53f822(0xff)+_0x478abe)){const _0x3b53ab=include(_0xca8a50+'/'+_0x18393e+_0x53f822(0xff)+_0x478abe);Object[_0x53f822(0x13e)](_0x3b53ab)[_0x53f822(0x12c)]>0x0&&(_0x3ac6a3=lodash[_0x53f822(0x141)](_0x3ac6a3,_0x3b53ab));}moduleConfigTmp[_0x18393e]=_0x3ac6a3,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1[_0x53f822(0x14e)]);}return moduleConfigTmp[_0x18393e];}
|
|
1
|
+
const a4_0x15abda=a4_0x52d0;(function(_0x461fe7,_0x2a26bf){const _0x1cca6f=a4_0x52d0,_0x1d5d81=_0x461fe7();while(!![]){try{const _0x1851cb=parseInt(_0x1cca6f(0xd6))/0x1*(-parseInt(_0x1cca6f(0x101))/0x2)+parseInt(_0x1cca6f(0x117))/0x3*(parseInt(_0x1cca6f(0xf5))/0x4)+-parseInt(_0x1cca6f(0xec))/0x5+-parseInt(_0x1cca6f(0xde))/0x6+-parseInt(_0x1cca6f(0xf9))/0x7*(-parseInt(_0x1cca6f(0xf0))/0x8)+parseInt(_0x1cca6f(0x10c))/0x9*(-parseInt(_0x1cca6f(0xf4))/0xa)+-parseInt(_0x1cca6f(0xfb))/0xb*(-parseInt(_0x1cca6f(0x110))/0xc);if(_0x1851cb===_0x2a26bf)break;else _0x1d5d81['push'](_0x1d5d81['shift']());}catch(_0x54005a){_0x1d5d81['push'](_0x1d5d81['shift']());}}}(a4_0x1a25,0x1bb55));function a4_0x1a25(){const _0x1611cc=['get','262088drmCTI','ACTION_KEY','substring','@anncic-api/validator','1095090fGJIKM','1436dztTte','basic/controller/','filepath','match','21wgtlQe','length','33NOTVxA','route','/apps','/config.','\x20文件请放在apps/','getClassMetadata','15900NcJMOM','description','prefix','validate','apimit','-action','ACTION_ROUTE_KEY','intercept','env','defaultsDeep','toString','9Cbrqid','values','trim','__esModule','2185692uvWDVj','tagName','-controller','cwd','Action','/controller/','join','9RkoRmi','Controller','splice','middlewareIgnore','isArray','toLowerCase','attachClassMetadata','string','RequestMapping','response','keys','split','startsWith','23Emhxxq','app/controller/','/config.default.','post','defineProperty','replace','(((.+)+)+)+$','apps/','1027068kuGIIU','ActionApi','middleware','module','routerName','endsWith','filter','search','saveClassMetadata','indexOf','undefined','@midwayjs/core','existsSync','push','343765ptUbmO','ACTION_RESPONSE_KEY','../types/action'];a4_0x1a25=function(){return _0x1611cc;};return a4_0x1a25();}const a4_0x37bc95=(function(){let _0x4d1522=!![];return function(_0x40a2a5,_0xcde043){const _0x3c4382=_0x4d1522?function(){if(_0xcde043){const _0x5837a1=_0xcde043['apply'](_0x40a2a5,arguments);return _0xcde043=null,_0x5837a1;}}:function(){};return _0x4d1522=![],_0x3c4382;};}()),a4_0x18eeaf=a4_0x37bc95(this,function(){const _0x36e3b8=a4_0x52d0;return a4_0x18eeaf[_0x36e3b8(0x10b)]()[_0x36e3b8(0xe5)](_0x36e3b8(0xdc))[_0x36e3b8(0x10b)]()['constructor'](a4_0x18eeaf)[_0x36e3b8(0xe5)]('(((.+)+)+)+$');});function a4_0x52d0(_0x2aa08b,_0x248e68){const _0x2a0f5d=a4_0x1a25();return a4_0x52d0=function(_0x18eeaf,_0x37bc95){_0x18eeaf=_0x18eeaf-0xd5;let _0x1a2523=_0x2a0f5d[_0x18eeaf];return _0x1a2523;},a4_0x52d0(_0x2aa08b,_0x248e68);}a4_0x18eeaf();'use strict';var _a,_b;Object[a4_0x15abda(0xda)](exports,a4_0x15abda(0x10f),{'value':!![]}),exports['parseRoute']=exports[a4_0x15abda(0xdf)]=exports[a4_0x15abda(0x114)]=void 0x0;const fs=require('fs'),validator_1=require(a4_0x15abda(0xf3)),core_1=require(a4_0x15abda(0xe9)),core_2=require(a4_0x15abda(0xe9)),action_1=require(a4_0x15abda(0xee)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a4_0x15abda(0x109)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a4_0x15abda(0x109)])===null||_b===void 0x0?void 0x0:_b['NODE_ENV']);function Action(_0xfb6b10,_0x391168,_0x8ae06e={'middleware':[],'sensitive':!![]}){return _0x610f0d=>{const _0xebf2c=a4_0x52d0;var _0x57a167;_0x8ae06e[_0xebf2c(0x111)]=_0x391168;const _0x365795=parseRoute(_0xfb6b10);if(_0x365795[_0xebf2c(0xe1)]){_0x8ae06e[_0xebf2c(0x103)]=_0x8ae06e[_0xebf2c(0x103)]?'/'+_0x365795[_0xebf2c(0xe1)]+'/'+_0x8ae06e['prefix']:'/'+_0x365795[_0xebf2c(0xfc)];_0x365795[_0xebf2c(0x103)]&&(_0x8ae06e['prefix']='/'+_0x365795[_0xebf2c(0x103)]+'/'+_0x8ae06e[_0xebf2c(0x103)]);_0x8ae06e[_0xebf2c(0x103)]=_0x8ae06e[_0xebf2c(0x103)][_0xebf2c(0x11c)]()[_0xebf2c(0xdb)](/\/{2,}/g,'/');const _0xda70b=getModuleConfig(_0x365795['rootpath']+_0xebf2c(0xfd),_0x365795[_0xebf2c(0xe1)],lodash['endsWith'](_0x365795[_0xebf2c(0xf7)],'ts')?'ts':'js');if(lodash[_0xebf2c(0x11b)](_0xda70b[_0xebf2c(0xe0)])&&_0xda70b[_0xebf2c(0xe0)][_0xebf2c(0xfa)]>0x0)for(let _0x55b157 in _0xda70b['middleware']){if(((_0x57a167=_0xda70b===null||_0xda70b===void 0x0?void 0x0:_0xda70b['middlewareIgnore'])===null||_0x57a167===void 0x0?void 0x0:_0x57a167['length'])>0x0&&_0xda70b[_0xebf2c(0x11a)][_0xebf2c(0xe7)](_0xda70b['middleware'][_0x55b157])!=-0x1)continue;_0x8ae06e['middleware'][_0xebf2c(0xeb)](_0xda70b[_0xebf2c(0xe0)][_0x55b157]);}(0x0,core_1['saveModule'])(action_1[_0xebf2c(0xf1)],_0x610f0d),(0x0,core_1[_0xebf2c(0x118)])(_0x8ae06e['prefix'],_0x8ae06e)(_0x610f0d),(0x0,core_1[_0xebf2c(0xe6)])(action_1[_0xebf2c(0xf1)],{'prefix':_0x8ae06e[_0xebf2c(0x103)],'pprefix':_0x365795[_0xebf2c(0x103)],'module':_0x365795[_0xebf2c(0xe1)],'filepath':_0x365795[_0xebf2c(0xf7)],'routerOptions':_0x8ae06e},_0x610f0d);}else _0x8ae06e[_0xebf2c(0x103)]=_0x8ae06e[_0xebf2c(0x103)]?'/'+_0x8ae06e[_0xebf2c(0x103)]:'/'+_0x365795['route'],_0x365795[_0xebf2c(0x103)]&&(_0x8ae06e[_0xebf2c(0x103)]='/'+_0x365795[_0xebf2c(0x103)]+'/'+_0x8ae06e[_0xebf2c(0x103)]),_0x8ae06e['prefix']=_0x8ae06e[_0xebf2c(0x103)][_0xebf2c(0x11c)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0xebf2c(0xf1)],_0x610f0d),(0x0,core_1['Controller'])(_0x8ae06e[_0xebf2c(0x103)],_0x8ae06e)(_0x610f0d),(0x0,core_1[_0xebf2c(0xe6)])(action_1[_0xebf2c(0xf1)],{'prefix':_0x8ae06e[_0xebf2c(0x103)],'module':_0x365795['module'],'pprefix':_0x365795[_0xebf2c(0x103)],'filepath':_0x365795['filepath'],'routerOptions':_0x8ae06e},_0x610f0d);};}exports[a4_0x15abda(0x114)]=Action,Action['get']=function(_0x5d6839,_0x31176d='/',_0x15efa1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x43ae95,_0x18b5a2,_0x2f0ce1)=>{const _0x1376bf=a4_0x52d0;ActionApi(_0x5d6839,_0x1376bf(0xef),_0x31176d,_0x15efa1)(_0x43ae95,_0x18b5a2,_0x2f0ce1);};},Action[a4_0x15abda(0xd9)]=function(_0xe01b22,_0x402868='/',_0x249d0c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x34a31e,_0x5ae30a,_0x2218c9)=>{const _0x52c222=a4_0x52d0;ActionApi(_0xe01b22,_0x52c222(0xd9),_0x402868,_0x249d0c)(_0x34a31e,_0x5ae30a,_0x2218c9);};};function ActionApi(_0x558d80,_0x3565b3=a4_0x15abda(0xef),_0x470f95='/',_0x137ba8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x18fab0,_0x5bca42,_0x55c332)=>{const _0x3fa500=a4_0x52d0;var _0x5004cd,_0x2d0688,_0x32047e;!_0x137ba8[_0x3fa500(0xe0)]&&(_0x137ba8[_0x3fa500(0xe0)]=[]);!((_0x5004cd=_0x137ba8===null||_0x137ba8===void 0x0?void 0x0:_0x137ba8['validate'])===null||_0x5004cd===void 0x0?void 0x0:_0x5004cd['validationOptions'])&&(_0x137ba8[_0x3fa500(0x104)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x470f95)_0x470f95='/';else typeof _0x470f95==_0x3fa500(0x11e)&&(!_0x470f95[_0x3fa500(0xd5)]('/')&&!_0x470f95[_0x3fa500(0xd5)]('-')&&(_0x470f95='/'+_0x470f95));typeof _0x137ba8[_0x3fa500(0x105)]==_0x3fa500(0xe8)&&(_0x137ba8['apimit']=!![]);if(((_0x2d0688=_0x137ba8===null||_0x137ba8===void 0x0?void 0x0:_0x137ba8[_0x3fa500(0xe0)])===null||_0x2d0688===void 0x0?void 0x0:_0x2d0688[_0x3fa500(0xfa)])>0x0&&((_0x32047e=_0x137ba8===null||_0x137ba8===void 0x0?void 0x0:_0x137ba8[_0x3fa500(0x11a)])===null||_0x32047e===void 0x0?void 0x0:_0x32047e[_0x3fa500(0xfa)])>0x0)for(let _0x3b7697 in _0x137ba8[_0x3fa500(0xe0)]){_0x137ba8[_0x3fa500(0x11a)][_0x3fa500(0xe7)](_0x137ba8[_0x3fa500(0xe0)][_0x3b7697])!==-0x1&&(_0x137ba8[_0x3fa500(0xe0)][_0x3b7697]=null);}_0x137ba8[_0x3fa500(0xe2)]=_0x558d80,(0x0,validator_1['Validator'])(_0x137ba8[_0x3fa500(0x104)])(_0x18fab0,_0x5bca42,_0x55c332),(0x0,core_2[_0x3fa500(0x11f)])(Object['assign'](_0x137ba8,{'path':_0x470f95,'requestMethod':(_0x3565b3||_0x3fa500(0xef))[_0x3fa500(0x11c)]()}))(_0x18fab0,_0x5bca42,_0x55c332),(0x0,core_2[_0x3fa500(0x11d)])(action_1[_0x3fa500(0x107)],{'path':_0x470f95,'method':_0x5bca42,'apimit':_0x137ba8[_0x3fa500(0x105)],'intercept':_0x137ba8['intercept'],'routerName':_0x137ba8[_0x3fa500(0xe2)],'description':_0x137ba8['description'],'middleware':(_0x137ba8['middleware']||[])['filter'](_0x44f5b8=>!!_0x44f5b8),'requestMethod':(_0x3565b3||_0x3fa500(0xef))[_0x3fa500(0x11c)]()},_0x18fab0),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x3fa500(0x107)],{'path':_0x470f95,'method':_0x5bca42,'apimit':_0x137ba8[_0x3fa500(0x105)],'intercept':_0x137ba8[_0x3fa500(0x108)],'routerName':_0x137ba8[_0x3fa500(0xe2)],'description':_0x137ba8[_0x3fa500(0x102)],'middleware':(_0x137ba8[_0x3fa500(0xe0)]||[])[_0x3fa500(0xe4)](_0x201c32=>!!_0x201c32),'requestMethod':(_0x3565b3||'get')[_0x3fa500(0x11c)]()})(_0x18fab0,_0x5bca42,_0x55c332),_0x137ba8[_0x3fa500(0x120)]&&(0x0,core_2[_0x3fa500(0x11d)])(action_1[_0x3fa500(0xed)],{'method':_0x5bca42,..._0x137ba8[_0x3fa500(0x120)]},_0x18fab0);};}exports['ActionApi']=ActionApi;function parseRoute(_0x39f226){const _0x4697a5=a4_0x15abda;_0x39f226=_0x39f226[_0x4697a5(0xdb)](/(\\|\/)/g,'/');const _0x5a0035=process[_0x4697a5(0x113)]()[_0x4697a5(0xdb)](/(\\|\/)/g,'/'),_0x1127be=_0x39f226[_0x4697a5(0xf2)](0x0,_0x5a0035[_0x4697a5(0xfa)]+_0x39f226[_0x4697a5(0xf2)](_0x5a0035[_0x4697a5(0xfa)]+0x1)[_0x4697a5(0xe7)]('/')+0x1),_0x471383=_0x39f226[_0x4697a5(0xf2)](_0x1127be[_0x4697a5(0xfa)]+0x1)[_0x4697a5(0xdb)](/(\\|\/)/g,'/'),_0x50522d={'route':'','prefix':![],'module':![],'rootpath':_0x1127be,'filepath':_0x471383};if(_0x471383['startsWith']('app/controller/')||_0x471383[_0x4697a5(0xd5)](_0x4697a5(0xf6))){const _0x152fb6=_0x471383[_0x4697a5(0xf2)]((_0x471383['startsWith'](_0x4697a5(0xd7))?_0x4697a5(0xd7):_0x4697a5(0xf6))[_0x4697a5(0xfa)])[_0x4697a5(0x122)]('/')['filter'](_0x16fd00=>_0x16fd00&&_0x16fd00[_0x4697a5(0x10e)]());return _0x152fb6['length']>0x1&&(_0x50522d['prefix']=_0x152fb6[0x0][_0x4697a5(0x11c)](),_0x152fb6[_0x4697a5(0x119)](0x0,0x1)),_0x50522d[_0x4697a5(0xfc)]=('/'+_0x152fb6[_0x4697a5(0x116)]('/'))[_0x4697a5(0xdb)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x4697a5(0xf8)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x4697a5(0xdb)](/\/\-/g,'/'),_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xe3)]('-action')&&(_0x50522d['route']=_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xf2)](0x0,_0x50522d['route'][_0x4697a5(0xfa)]-0x7)),_0x50522d[_0x4697a5(0xfc)]['endsWith'](_0x4697a5(0x112))&&(_0x50522d[_0x4697a5(0xfc)]=_0x50522d['route'][_0x4697a5(0xf2)](0x0,_0x50522d[_0x4697a5(0xfc)]['length']-0xb)),_0x50522d;}else{if(_0x471383[_0x4697a5(0xd5)](_0x4697a5(0xdd))){const _0x4ac6e2=_0x471383[_0x4697a5(0xf2)](0x0,_0x471383['indexOf']('/apps/')+0x5),_0x4f59dd=_0x471383[_0x4697a5(0xf2)](_0x4ac6e2[_0x4697a5(0xfa)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x471383[_0x4697a5(0xd5)](_0x4697a5(0xdd)+_0x4f59dd+_0x4697a5(0x115))){const _0x124e33=_0x471383[_0x4697a5(0xf2)]((_0x4ac6e2+'/'+_0x4f59dd+_0x4697a5(0x115))[_0x4697a5(0xfa)])['split']('/')[_0x4697a5(0xe4)](_0x23ec13=>_0x23ec13&&_0x23ec13[_0x4697a5(0x10e)]());return _0x124e33['length']>0x1&&(_0x50522d[_0x4697a5(0x103)]=_0x124e33[0x0][_0x4697a5(0x11c)](),_0x124e33[_0x4697a5(0x119)](0x0,0x1)),_0x50522d['module']=_0x4f59dd,_0x50522d[_0x4697a5(0xfc)]=('/'+_0x4f59dd+'/'+_0x124e33[_0x4697a5(0x116)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x4697a5(0xf8)](/[\/|A-Z]*[^A-Z]+/g)[_0x4697a5(0x116)]('-')['toLowerCase']()[_0x4697a5(0xdb)](/\/\-/g,'/'),_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xe3)](_0x4697a5(0x106))&&(_0x50522d[_0x4697a5(0xfc)]=_0x50522d['route'][_0x4697a5(0xf2)](0x0,_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xfa)]-0x7)),_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xe3)]('-controller')&&(_0x50522d[_0x4697a5(0xfc)]=_0x50522d[_0x4697a5(0xfc)][_0x4697a5(0xf2)](0x0,_0x50522d['route'][_0x4697a5(0xfa)]-0xb)),_0x50522d;}throw new Error(_0x471383+_0x4697a5(0xff)+_0x4f59dd+'/controller/文件下');}}throw new Error(_0x471383+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;const moduleConfigTmp=(0x0,core_1[a4_0x15abda(0x100)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};function getModuleConfig(_0x52f28f,_0x118860,_0x149284){const _0x4a5e7d=a4_0x15abda;if(Object[_0x4a5e7d(0x10d)]((moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x118860])||{})['length']==0x0){let _0x1d888a={};if(NODE_ENV&&fs[_0x4a5e7d(0xea)](_0x52f28f+'/'+_0x118860+'/config.'+NODE_ENV+'.'+_0x149284)){const _0x633c20=include(_0x52f28f+'/'+_0x118860+_0x4a5e7d(0xfe)+NODE_ENV+'.'+_0x149284);Object[_0x4a5e7d(0x121)](_0x633c20)[_0x4a5e7d(0xfa)]>0x0&&(_0x1d888a=lodash[_0x4a5e7d(0x10a)](_0x1d888a,_0x633c20));}if(fs[_0x4a5e7d(0xea)](_0x52f28f+'/'+_0x118860+_0x4a5e7d(0xd8)+_0x149284)){const _0x343c3b=include(_0x52f28f+'/'+_0x118860+_0x4a5e7d(0xd8)+_0x149284);Object[_0x4a5e7d(0x121)](_0x343c3b)[_0x4a5e7d(0xfa)]>0x0&&(_0x1d888a=lodash[_0x4a5e7d(0x10a)](_0x1d888a,_0x343c3b));}if(fs[_0x4a5e7d(0xea)](_0x52f28f+'/'+_0x118860+_0x4a5e7d(0xfe)+_0x149284)){const _0x5d7011=include(_0x52f28f+'/'+_0x118860+_0x4a5e7d(0xfe)+_0x149284);Object[_0x4a5e7d(0x121)](_0x5d7011)[_0x4a5e7d(0xfa)]>0x0&&(_0x1d888a=lodash[_0x4a5e7d(0x10a)](_0x1d888a,_0x5d7011));}moduleConfigTmp[_0x118860]=_0x1d888a,(0x0,core_1[_0x4a5e7d(0xe6)])(action_1['APPSCONFIG_KEY'],moduleConfigTmp,action_1['AppsConfigTmp']);}return moduleConfigTmp[_0x118860];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x14c3(_0x57024c,_0xea14f5){const _0xce6eba=a5_0x251a();return a5_0x14c3=function(_0xbb07a4,_0x14192b){_0xbb07a4=_0xbb07a4-0x168;let _0x251a30=_0xce6eba[_0xbb07a4];return _0x251a30;},a5_0x14c3(_0x57024c,_0xea14f5);}const a5_0x4120fa=a5_0x14c3;(function(_0x44133a,_0x1c0efb){const _0x4bfecc=a5_0x14c3,_0x237109=_0x44133a();while(!![]){try{const _0x4b127b=-parseInt(_0x4bfecc(0x16d))/0x1+parseInt(_0x4bfecc(0x185))/0x2*(-parseInt(_0x4bfecc(0x16f))/0x3)+-parseInt(_0x4bfecc(0x184))/0x4*(parseInt(_0x4bfecc(0x174))/0x5)+-parseInt(_0x4bfecc(0x168))/0x6+-parseInt(_0x4bfecc(0x180))/0x7*(-parseInt(_0x4bfecc(0x170))/0x8)+parseInt(_0x4bfecc(0x172))/0x9*(-parseInt(_0x4bfecc(0x16e))/0xa)+-parseInt(_0x4bfecc(0x182))/0xb*(-parseInt(_0x4bfecc(0x17f))/0xc);if(_0x4b127b===_0x1c0efb)break;else _0x237109['push'](_0x237109['shift']());}catch(_0x5a021c){_0x237109['push'](_0x237109['shift']());}}}(a5_0x251a,0x5c55b));const a5_0x14192b=(function(){let _0x25aeb1=!![];return function(_0x16c261,_0x388d04){const _0xf46b2b=_0x25aeb1?function(){if(_0x388d04){const _0x7d6a75=_0x388d04['apply'](_0x16c261,arguments);return _0x388d04=null,_0x7d6a75;}}:function(){};return _0x25aeb1=![],_0xf46b2b;};}()),a5_0xbb07a4=a5_0x14192b(this,function(){const _0x1256b0=a5_0x14c3;return a5_0xbb07a4[_0x1256b0(0x17d)]()[_0x1256b0(0x17b)]('(((.+)+)+)+$')[_0x1256b0(0x17d)]()[_0x1256b0(0x169)](a5_0xbb07a4)[_0x1256b0(0x17b)](_0x1256b0(0x171));});a5_0xbb07a4();'use strict';Object[a5_0x4120fa(0x176)](exports,a5_0x4120fa(0x186),{'value':!![]}),exports[a5_0x4120fa(0x17a)]=void 0x0;function a5_0x251a(){const _0x2fbb41=['__esModule','2051580BcAXFZ','constructor','getApplicationContext','app','apitest','543561CuSNAp','510nrprbp','1635lrFcae','112tHFHjt','(((.+)+)+)+$','67923KfvbtC','../service/ApitestService','10DJdmzP','@midwayjs/core','defineProperty','getAsync','/apitest','get','Apitest','search','MidwayEnvironmentService','toString','apidoc','36ETkKow','200879KQTeGF','isDevelopmentEnvironment','8072196cYlJcU','getConfig','656940GOVHbc','2298jArMTf'];a5_0x251a=function(){return _0x2fbb41;};return a5_0x251a();}const core_1=require(a5_0x4120fa(0x175)),ApitestService_1=require(a5_0x4120fa(0x173));function Apitest(_0x4d4623=a5_0x4120fa(0x178),_0xc4a580){return(_0x117294,_0x32abb9,_0x1bd9ce)=>{const _0x267bfa=a5_0x14c3;return(0x0,core_1['RequestMapping'])({'path':_0x4d4623,'requestMethod':_0x267bfa(0x179)})(_0x117294,_0x32abb9,_0x1bd9ce),_0x1bd9ce['value']=async function(..._0x5387fa){const _0x51ef02=_0x267bfa;var _0x4cb965;const _0x3e53d4=(_0x4cb965=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x4cb965===void 0x0?void 0x0:_0x4cb965[_0x51ef02(0x16b)];if(_0x3e53d4&&_0x3e53d4[_0x51ef02(0x183)](_0x51ef02(0x16c))){const _0x162013=await _0x3e53d4[_0x51ef02(0x16a)]()[_0x51ef02(0x177)](ApitestService_1['ApitestService']),_0x364eef=await _0x3e53d4['getApplicationContext']()[_0x51ef02(0x177)](core_1[_0x51ef02(0x17c)]);return _0x364eef[_0x51ef02(0x181)]()&&(_0xc4a580['filepath']=!![]),await _0x162013[_0x51ef02(0x17e)](_0xc4a580);}return'';},_0x1bd9ce;};}exports[a5_0x4120fa(0x17a)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x32dafa=a6_0x2231;function a6_0x916d(){const _0x3a8679=['__esModule','2118510ISvWZg','38095iMMvuF','toString','Intercept','@midwayjs/core','InterceptTargetTmp','match','499428YXgSpA','saveClassMetadata','push','Provide','143046woqQjZ','search','getClassMetadata','includes','77oCnPEA','Singleton','414TYFUpY','1943848oRBbrr','Scope','IIntercept','toUpperCase','(((.+)+)+)+$','1332860rQDNfB','ScopeEnum','../types/intercept','7QtZYJY','26HkaKrH','isArray','9ehnEbr','9681kCGxwe','INTERCEPT_KEY'];a6_0x916d=function(){return _0x3a8679;};return a6_0x916d();}(function(_0x4ddade,_0x1ce436){const _0x22243d=a6_0x2231,_0x13dafd=_0x4ddade();while(!![]){try{const _0x3801f3=parseInt(_0x22243d(0x149))/0x1+-parseInt(_0x22243d(0x138))/0x2*(-parseInt(_0x22243d(0x13b))/0x3)+parseInt(_0x22243d(0x134))/0x4+parseInt(_0x22243d(0x13f))/0x5*(-parseInt(_0x22243d(0x14f))/0x6)+-parseInt(_0x22243d(0x137))/0x7*(-parseInt(_0x22243d(0x150))/0x8)+parseInt(_0x22243d(0x13a))/0x9*(-parseInt(_0x22243d(0x13e))/0xa)+parseInt(_0x22243d(0x14d))/0xb*(parseInt(_0x22243d(0x145))/0xc);if(_0x3801f3===_0x1ce436)break;else _0x13dafd['push'](_0x13dafd['shift']());}catch(_0x293d11){_0x13dafd['push'](_0x13dafd['shift']());}}}(a6_0x916d,0x4ce54));const a6_0x57946d=(function(){let _0x10aad7=!![];return function(_0x164fc0,_0xaaf63d){const _0x232afd=_0x10aad7?function(){if(_0xaaf63d){const _0x78eb7f=_0xaaf63d['apply'](_0x164fc0,arguments);return _0xaaf63d=null,_0x78eb7f;}}:function(){};return _0x10aad7=![],_0x232afd;};}()),a6_0x1cb88f=a6_0x57946d(this,function(){const _0x425237=a6_0x2231;return a6_0x1cb88f[_0x425237(0x140)]()[_0x425237(0x14a)](_0x425237(0x154))[_0x425237(0x140)]()['constructor'](a6_0x1cb88f)[_0x425237(0x14a)](_0x425237(0x154));});a6_0x1cb88f();function a6_0x2231(_0x33a47e,_0x3d62d4){const _0x3e6206=a6_0x916d();return a6_0x2231=function(_0x1cb88f,_0x57946d){_0x1cb88f=_0x1cb88f-0x134;let _0x916d1d=_0x3e6206[_0x1cb88f];return _0x916d1d;},a6_0x2231(_0x33a47e,_0x3d62d4);}'use strict';Object['defineProperty'](exports,a6_0x32dafa(0x13d),{'value':!![]}),exports[a6_0x32dafa(0x152)]=exports[a6_0x32dafa(0x141)]=void 0x0;const core_1=require(a6_0x32dafa(0x142)),intercept_1=require(a6_0x32dafa(0x136));function Intercept(_0x284119){return _0x1d4754=>{const _0x1e0def=a6_0x2231,_0x7aa420=(0x0,core_1[_0x1e0def(0x14b)])(intercept_1[_0x1e0def(0x13c)],intercept_1[_0x1e0def(0x143)])||{};for(let _0x53e9cf of Array[_0x1e0def(0x139)](_0x284119)?_0x284119:[_0x284119]){_0x53e9cf=_0x53e9cf[_0x1e0def(0x153)]();!(_0x7aa420===null||_0x7aa420===void 0x0?void 0x0:_0x7aa420[_0x53e9cf])&&(_0x7aa420[_0x53e9cf]=[]);if(_0x7aa420[_0x53e9cf][_0x1e0def(0x14c)](_0x1d4754))continue;_0x7aa420[_0x53e9cf][_0x1e0def(0x147)](_0x1d4754);}(0x0,core_1[_0x1e0def(0x148)])()(_0x1d4754),(0x0,core_1[_0x1e0def(0x151)])(core_1[_0x1e0def(0x135)][_0x1e0def(0x14e)])(_0x1d4754),(0x0,core_1[_0x1e0def(0x146)])(intercept_1[_0x1e0def(0x13c)],_0x7aa420,intercept_1[_0x1e0def(0x143)]);};}exports[a6_0x32dafa(0x141)]=Intercept;class IIntercept{async[a6_0x32dafa(0x144)](_0x2402a5,_0x369057,_0x4a8aa3){return!![];}}exports[a6_0x32dafa(0x152)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0xb776c3=a7_0x1a66;(function(_0x16d178,_0x32dfd0){var _0x39f9c2=a7_0x1a66,_0x2e9d3e=_0x16d178();while(!![]){try{var _0x1d34b5=-parseInt(_0x39f9c2(0x87))/0x1+parseInt(_0x39f9c2(0x8a))/0x2*(parseInt(_0x39f9c2(0xa1))/0x3)+parseInt(_0x39f9c2(0x97))/0x4*(parseInt(_0x39f9c2(0x9f))/0x5)+-parseInt(_0x39f9c2(0xa4))/0x6+-parseInt(_0x39f9c2(0x91))/0x7+parseInt(_0x39f9c2(0x90))/0x8+-parseInt(_0x39f9c2(0x89))/0x9;if(_0x1d34b5===_0x32dfd0)break;else _0x2e9d3e['push'](_0x2e9d3e['shift']());}catch(_0x5b2b94){_0x2e9d3e['push'](_0x2e9d3e['shift']());}}}(a7_0x2135,0xc941c));var a7_0xc35ffe=(function(){var _0x491c03=!![];return function(_0x32a0ce,_0x3e89eb){var _0x54a1de=_0x491c03?function(){var _0x5d7586=a7_0x1a66;if(_0x3e89eb){var _0x112dba=_0x3e89eb[_0x5d7586(0x8d)](_0x32a0ce,arguments);return _0x3e89eb=null,_0x112dba;}}:function(){};return _0x491c03=![],_0x54a1de;};}()),a7_0x40caee=a7_0xc35ffe(this,function(){var _0x459932=a7_0x1a66;return a7_0x40caee[_0x459932(0x9e)]()['search'](_0x459932(0x9d))['toString']()[_0x459932(0x93)](a7_0x40caee)[_0x459932(0xa2)](_0x459932(0x9d));});a7_0x40caee();'use strict';var __decorate=this&&this[a7_0xb776c3(0x8f)]||function(_0x54d1c3,_0x3c9a6e,_0x368a3a,_0x6d5954){var _0x5412b5=a7_0xb776c3,_0x54764d=arguments['length'],_0x4a4332=_0x54764d<0x3?_0x3c9a6e:_0x6d5954===null?_0x6d5954=Object['getOwnPropertyDescriptor'](_0x3c9a6e,_0x368a3a):_0x6d5954,_0x22e2de;if(typeof Reflect==='object'&&typeof Reflect[_0x5412b5(0x8b)]===_0x5412b5(0xa3))_0x4a4332=Reflect[_0x5412b5(0x8b)](_0x54d1c3,_0x3c9a6e,_0x368a3a,_0x6d5954);else{for(var _0xf27966=_0x54d1c3[_0x5412b5(0xa5)]-0x1;_0xf27966>=0x0;_0xf27966--)if(_0x22e2de=_0x54d1c3[_0xf27966])_0x4a4332=(_0x54764d<0x3?_0x22e2de(_0x4a4332):_0x54764d>0x3?_0x22e2de(_0x3c9a6e,_0x368a3a,_0x4a4332):_0x22e2de(_0x3c9a6e,_0x368a3a))||_0x4a4332;}return _0x54764d>0x3&&_0x4a4332&&Object[_0x5412b5(0x88)](_0x3c9a6e,_0x368a3a,_0x4a4332),_0x4a4332;},__metadata=this&&this['__metadata']||function(_0x271814,_0x3e2797){var _0x376ab7=a7_0xb776c3;if(typeof Reflect===_0x376ab7(0x9a)&&typeof Reflect[_0x376ab7(0x92)]===_0x376ab7(0xa3))return Reflect[_0x376ab7(0x92)](_0x271814,_0x3e2797);};Object[a7_0xb776c3(0x88)](exports,'__esModule',{'value':!![]}),exports[a7_0xb776c3(0x84)]=void 0x0;function a7_0x2135(){var _0x3bb6fe=['__decorate','2366256ihPplI','3077893kHyQaE','metadata','constructor','TIMEOUT','HEADERS_CHECKCODE','请求头信息不完整','65524sGJtac','HEADERS_SIGNATURE','HEADERS_DEVICE','object','请使用正确的设备','登录超时,请重新登录','(((.+)+)+)+$','toString','470YxgfHc','请求超时,请重试','3nASYZk','search','function','2591994qGSBln','length','ApiError','验证失败,请重新登录','design:type','151028HaHjkB','defineProperty','5753799BzGsvg','1301578TKKUnh','decorate','TIMEOUT_LOGINTIME','apply','HEADERS_LACK'];a7_0x2135=function(){return _0x3bb6fe;};return a7_0x2135();}function a7_0x1a66(_0x2b7f82,_0x483c84){var _0x450b85=a7_0x2135();return a7_0x1a66=function(_0x40caee,_0xc35ffe){_0x40caee=_0x40caee-0x84;var _0x213517=_0x450b85[_0x40caee];return _0x213517;},a7_0x1a66(_0x2b7f82,_0x483c84);}class ApiError extends AnnError{}ApiError[a7_0xb776c3(0x94)]=0x19003,ApiError[a7_0xb776c3(0x8e)]=0x18e72,ApiError[a7_0xb776c3(0x99)]=0x18e73,ApiError[a7_0xb776c3(0x98)]=0x18e74,ApiError[a7_0xb776c3(0x95)]=0x18e75,ApiError[a7_0xb776c3(0x8c)]=0x18e76,__decorate([AnnErrorMsg(a7_0xb776c3(0xa0)),__metadata(a7_0xb776c3(0x86),Object)],ApiError,a7_0xb776c3(0x94),void 0x0),__decorate([AnnErrorMsg(a7_0xb776c3(0x96)),__metadata(a7_0xb776c3(0x86),Object)],ApiError,a7_0xb776c3(0x8e),void 0x0),__decorate([AnnErrorMsg(a7_0xb776c3(0x9b)),__metadata(a7_0xb776c3(0x86),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0xb776c3(0x85)),__metadata(a7_0xb776c3(0x86),Object)],ApiError,a7_0xb776c3(0x95),void 0x0),__decorate([AnnErrorMsg(a7_0xb776c3(0x9c)),__metadata(a7_0xb776c3(0x86),Object)],ApiError,a7_0xb776c3(0x8c),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a8_0x2d71(){const _0x34b555=['2512862eoqqfB','apply','749006UccAml','775UNQXSc','constructor','3qBIhCG','(((.+)+)+)+$','2051052obCWXr','106713NoITfi','3614954qFpjMS','AppsConfigTmp','307049OfYvZx','@midwayjs/core','toString','getAppsConfig','10964JZHwDp','200ZalMbA','get','30KiOjcw','search'];a8_0x2d71=function(){return _0x34b555;};return a8_0x2d71();}const a8_0xf1d55a=a8_0x4aca;(function(_0x168f76,_0x369763){const _0xe4cc43=a8_0x4aca,_0x361728=_0x168f76();while(!![]){try{const _0x14aef7=-parseInt(_0xe4cc43(0x8f))/0x1+-parseInt(_0xe4cc43(0x9a))/0x2*(-parseInt(_0xe4cc43(0x9d))/0x3)+-parseInt(_0xe4cc43(0x93))/0x4*(-parseInt(_0xe4cc43(0x9b))/0x5)+-parseInt(_0xe4cc43(0x8b))/0x6+parseInt(_0xe4cc43(0x8d))/0x7+-parseInt(_0xe4cc43(0x94))/0x8*(-parseInt(_0xe4cc43(0x8c))/0x9)+parseInt(_0xe4cc43(0x96))/0xa*(-parseInt(_0xe4cc43(0x98))/0xb);if(_0x14aef7===_0x369763)break;else _0x361728['push'](_0x361728['shift']());}catch(_0x2ae01a){_0x361728['push'](_0x361728['shift']());}}}(a8_0x2d71,0x43de4));const a8_0x12bada=(function(){let _0x56d3de=!![];return function(_0x3d1ecb,_0xa16293){const _0x362cdb=_0x56d3de?function(){const _0x267cd1=a8_0x4aca;if(_0xa16293){const _0x2899e9=_0xa16293[_0x267cd1(0x99)](_0x3d1ecb,arguments);return _0xa16293=null,_0x2899e9;}}:function(){};return _0x56d3de=![],_0x362cdb;};}()),a8_0x2a66d2=a8_0x12bada(this,function(){const _0x925e04=a8_0x4aca;return a8_0x2a66d2[_0x925e04(0x91)]()[_0x925e04(0x97)]('(((.+)+)+)+$')[_0x925e04(0x91)]()[_0x925e04(0x9c)](a8_0x2a66d2)['search'](_0x925e04(0x8a));});a8_0x2a66d2();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0xf1d55a(0x92)]=void 0x0;const core_1=require(a8_0xf1d55a(0x90)),action_1=require('../types/action');function a8_0x4aca(_0xdea1ad,_0x5a6525){const _0x592267=a8_0x2d71();return a8_0x4aca=function(_0x2a66d2,_0x12bada){_0x2a66d2=_0x2a66d2-0x8a;let _0x2d710b=_0x592267[_0x2a66d2];return _0x2d710b;},a8_0x4aca(_0xdea1ad,_0x5a6525);}function getAppsConfig(_0x36d48e,_0x3ab978){const _0x200c96=a8_0xf1d55a,_0x4f50fb=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1[_0x200c96(0x8e)])||{};return _0x36d48e?lodash[_0x200c96(0x95)](_0x4f50fb,_0x36d48e,_0x3ab978):_0x4f50fb;}exports[a8_0xf1d55a(0x92)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x543c3d=a9_0x4a70;(function(_0x3a716c,_0x29fa12){const _0xd91766=a9_0x4a70,_0x41a589=_0x3a716c();while(!![]){try{const _0x173980=parseInt(_0xd91766(0x1ae))/0x1+parseInt(_0xd91766(0x198))/0x2+parseInt(_0xd91766(0x1c4))/0x3+-parseInt(_0xd91766(0x1e7))/0x4*(parseInt(_0xd91766(0x1b7))/0x5)+parseInt(_0xd91766(0x1ed))/0x6*(-parseInt(_0xd91766(0x1ab))/0x7)+parseInt(_0xd91766(0x1a5))/0x8+parseInt(_0xd91766(0x1b0))/0x9*(-parseInt(_0xd91766(0x1da))/0xa);if(_0x173980===_0x29fa12)break;else _0x41a589['push'](_0x41a589['shift']());}catch(_0x2c2bf9){_0x41a589['push'](_0x41a589['shift']());}}}(a9_0x119a,0xd7e0d));const a9_0x12c7e7=(function(){let _0x4d223f=!![];return function(_0x3f987a,_0x507ed8){const _0x40905d=_0x4d223f?function(){const _0x36c113=a9_0x4a70;if(_0x507ed8){const _0x406266=_0x507ed8[_0x36c113(0x1d2)](_0x3f987a,arguments);return _0x507ed8=null,_0x406266;}}:function(){};return _0x4d223f=![],_0x40905d;};}()),a9_0x26d497=a9_0x12c7e7(this,function(){const _0x2e4822=a9_0x4a70;return a9_0x26d497[_0x2e4822(0x19e)]()[_0x2e4822(0x1d0)](_0x2e4822(0x18b))[_0x2e4822(0x19e)]()['constructor'](a9_0x26d497)[_0x2e4822(0x1d0)](_0x2e4822(0x18b));});a9_0x26d497();function a9_0x4a70(_0x571725,_0x2ee3f4){const _0x40ede0=a9_0x119a();return a9_0x4a70=function(_0x26d497,_0x12c7e7){_0x26d497=_0x26d497-0x187;let _0x119a0c=_0x40ede0[_0x26d497];return _0x119a0c;},a9_0x4a70(_0x571725,_0x2ee3f4);}'use strict';function a9_0x119a(){const _0x504a3e=['tagName','4743710DGkNoW','flags.label','Boolean','prefix','__esModule','find','@anncic-api/validator','@midwayjs/core','concat','description','get','properties','只允许:[','4430604EyUeOX','body','isArray','endsWith','HEADERS','Number','136638QIsDAI','listModule','array','ACTION_RESPONSE_KEY','number','max','RULES_KEY','response','string','describe','Object','flags.description','(((.+)+)+)+$','metadata','some','routes','replace','parameterIndex','summary','FILESSTREAM','object','iterator','File','header','allow','2768860fWTCrQ','method','request','QUERY','path','name','toString','min','substring','join','items','requestMethod','split','8557440qsdlnj','route','FILESTREAM','propertyData','filtercustom','startsWith','238tHzafW','routerOptions','getMethodParamTypes','533672wNrWXW','getClassExtendedMetadata','9ILanoc','test','push','module','required','static/apitest','flags.presence','5VlkgeS','args','filepath','default','children','getRoutes','pprefix','function','query','routerName','rules','keys','errors','758277usUURx','indexOf','format','getClassMetadata','String','length','key','WEB_ROUTER_PARAM_KEY','limit','FIELDS','INJECT_CUSTOM_PARAM','file','search','type','apply','filterprefix','noreq','ACTION_KEY','title','RouteParamTypes','intercept'];a9_0x119a=function(){return _0x504a3e;};return a9_0x119a();}Object['defineProperty'](exports,a9_0x543c3d(0x1de),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x543c3d(0x1e0)),core_1=require(a9_0x543c3d(0x1e1)),core_2=require(a9_0x543c3d(0x1e1)),core_3=require(a9_0x543c3d(0x1e1)),action_1=require('../types/action');function getRoutes(_0xa1f36a={'prefix':'/','module':![]}){const _0xef0a8f=a9_0x543c3d;var _0xcbcbcc,_0x284171;const _0x3a219c=(0x0,core_3[_0xef0a8f(0x1ee)])(action_1[_0xef0a8f(0x1d5)]),_0x7f02c={},_0x45009a=Array['isArray'](_0xa1f36a['filter']||[])?_0xa1f36a['filter']||[]:[_0xa1f36a['filter']];_0xa1f36a['prefix']&&(_0xa1f36a[_0xef0a8f(0x1dd)]=Array[_0xef0a8f(0x1e9)](_0xa1f36a[_0xef0a8f(0x1dd)])?_0xa1f36a[_0xef0a8f(0x1dd)]:[_0xa1f36a[_0xef0a8f(0x1dd)]]);_0xa1f36a[_0xef0a8f(0x1d3)]&&(_0xa1f36a[_0xef0a8f(0x1d3)]=Array[_0xef0a8f(0x1e9)](_0xa1f36a['filterprefix'])?_0xa1f36a[_0xef0a8f(0x1d3)]:[_0xa1f36a[_0xef0a8f(0x1d3)]]);_0x417743:for(const _0x52e85a of _0x3a219c){let _0x224ec2=(0x0,core_3[_0xef0a8f(0x1c7)])(action_1[_0xef0a8f(0x1d5)],_0x52e85a),_0xd05b7b=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x52e85a);if(_0x224ec2&&_0xd05b7b){let _0x118a4d=_0x224ec2[_0xef0a8f(0x1dd)],_0x27140a={};if(_0xa1f36a[_0xef0a8f(0x1b3)]){if(typeof _0xa1f36a['module']===_0xef0a8f(0x187)&&(0x0,lodash_1[_0xef0a8f(0x1e4)])(_0x224ec2,_0xef0a8f(0x1b3),![])!=_0xa1f36a[_0xef0a8f(0x1b3)])continue _0x417743;}else{if(_0xa1f36a[_0xef0a8f(0x1b3)]===![]&&!!(0x0,lodash_1[_0xef0a8f(0x1e4)])(_0x224ec2,_0xef0a8f(0x1b3),null))continue _0x417743;}if(_0xa1f36a[_0xef0a8f(0x1dd)]&&!_0xa1f36a[_0xef0a8f(0x1dd)][_0xef0a8f(0x18d)](_0x255950=>_0x118a4d[_0xef0a8f(0x1aa)](_0x255950)))continue _0x417743;if(_0xa1f36a['filterprefix']&&_0xa1f36a[_0xef0a8f(0x1d3)][_0xef0a8f(0x18d)](_0x3c5316=>_0x118a4d[_0xef0a8f(0x1aa)](_0x3c5316)))continue _0x417743;if(_0xa1f36a['filtercustom']&&typeof _0xa1f36a[_0xef0a8f(0x1a9)]==_0xef0a8f(0x1be)&&_0xa1f36a[_0xef0a8f(0x1a9)](_0x224ec2))continue _0x417743;_0x118a4d!=='/'?(_0x27140a[_0xef0a8f(0x191)]=(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2[_0xef0a8f(0x1ac)][_0xef0a8f(0x1d9)])||(/^\//[_0xef0a8f(0x1b1)](_0x118a4d)?_0x118a4d[_0xef0a8f(0x1a4)]('/')[0x1]:_0x118a4d),_0x27140a[_0xef0a8f(0x1e3)]=(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2['routerOptions'][_0xef0a8f(0x1e3)])||_0x27140a['summary'],_0x27140a[_0xef0a8f(0x18e)]=[]):(_0x27140a[_0xef0a8f(0x191)]=(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2[_0xef0a8f(0x1ac)]['tagName'])||'default',_0x27140a[_0xef0a8f(0x1e3)]=(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2[_0xef0a8f(0x1ac)][_0xef0a8f(0x1e3)])||'',_0x27140a[_0xef0a8f(0x18e)]=[]);_0xa1f36a[_0xef0a8f(0x1b9)]&&(_0x27140a[_0xef0a8f(0x1b9)]=_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2['filepath']);(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2[_0xef0a8f(0x1bd)])&&(_0x27140a[_0xef0a8f(0x1dd)]=_0x224ec2['pprefix']);(_0x224ec2===null||_0x224ec2===void 0x0?void 0x0:_0x224ec2[_0xef0a8f(0x1b3)])&&(_0x27140a[_0xef0a8f(0x1b3)]=_0x224ec2['module']);let _0x2d87c1=(0x0,core_3[_0xef0a8f(0x1c7)])(core_2[_0xef0a8f(0x1ce)],_0x52e85a)||{};if(typeof _0xd05b7b[Symbol[_0xef0a8f(0x194)]]===_0xef0a8f(0x1be))for(let _0x193bdb of _0xd05b7b){if((_0xa1f36a===null||_0xa1f36a===void 0x0?void 0x0:_0xa1f36a[_0xef0a8f(0x1d8)])&&!(_0x193bdb===null||_0x193bdb===void 0x0?void 0x0:_0x193bdb['intercept']))continue;let _0x3b25fb={};_0x3b25fb[_0xef0a8f(0x199)]=_0x193bdb[_0xef0a8f(0x1a3)],_0x3b25fb[_0xef0a8f(0x1a6)]=(_0x118a4d+_0x193bdb[_0xef0a8f(0x19c)])[_0xef0a8f(0x18f)](/\/{2,}/g,'/'),_0x3b25fb[_0xef0a8f(0x191)]=(_0x193bdb===null||_0x193bdb===void 0x0?void 0x0:_0x193bdb[_0xef0a8f(0x1c0)])||_0x27140a[_0xef0a8f(0x191)]||_0xef0a8f(0x1ba),_0x3b25fb[_0xef0a8f(0x1e3)]=(_0x193bdb===null||_0x193bdb===void 0x0?void 0x0:_0x193bdb['description'])||'',_0x3b25fb[_0xef0a8f(0x19a)]=[],_0x3b25fb[_0xef0a8f(0x1f4)]=getMethodResponse(_0x52e85a,_0x193bdb[_0xef0a8f(0x199)]);_0x3b25fb[_0xef0a8f(0x1a6)][_0xef0a8f(0x1ea)]('/')&&(_0x3b25fb[_0xef0a8f(0x1a6)]=_0x3b25fb[_0xef0a8f(0x1a6)][_0xef0a8f(0x1a0)](0x0,_0x3b25fb[_0xef0a8f(0x1a6)][_0xef0a8f(0x1c9)]-0x1));if(!(0x0,lodash_1[_0xef0a8f(0x1aa)])(_0x3b25fb[_0xef0a8f(0x1a6)],_0xef0a8f(0x1b5))&&!(0x0,lodash_1['startsWith'])(_0x3b25fb[_0xef0a8f(0x1a6)],'/static/apitest')&&_0x45009a[_0xef0a8f(0x1c5)](_0x3b25fb[_0xef0a8f(0x1a6)])===-0x1){if(!(_0xa1f36a===null||_0xa1f36a===void 0x0?void 0x0:_0xa1f36a[_0xef0a8f(0x1d4)])){let _0x511817=(0x0,core_3[_0xef0a8f(0x1ad)])(new _0x52e85a(),_0x193bdb[_0xef0a8f(0x199)]);for(const _0x16ac95 in _0x511817){let _0x4948d3=(_0xcbcbcc=_0x2d87c1[_0x193bdb[_0xef0a8f(0x199)]])===null||_0xcbcbcc===void 0x0?void 0x0:_0xcbcbcc[_0xef0a8f(0x1df)](_0xbe31a0=>_0xbe31a0[_0xef0a8f(0x190)]==_0x16ac95&&_0xbe31a0[_0xef0a8f(0x1ca)]===core_2[_0xef0a8f(0x1cb)]&&(_0xbe31a0===null||_0xbe31a0===void 0x0?void 0x0:_0xbe31a0[_0xef0a8f(0x18c)]));if(_0x4948d3===null||_0x4948d3===void 0x0?void 0x0:_0x4948d3['metadata']){let _0x249ec7=convertTypeToString(_0x4948d3[_0xef0a8f(0x18c)]['type']||0x0);if([_0xef0a8f(0x1bf),_0xef0a8f(0x1e8)]['indexOf'](_0x249ec7)!=-0x1&&_0x4948d3['metadata']['propertyData'][_0xef0a8f(0x1c5)](':')==-0x1&&!_0x3b25fb[_0xef0a8f(0x19a)]['find'](_0x2c285b=>_0x2c285b[_0xef0a8f(0x1ca)]==_0x4948d3[_0xef0a8f(0x18c)][_0xef0a8f(0x1a8)]))_0x3b25fb[_0xef0a8f(0x19a)][_0xef0a8f(0x1b2)]({'key':_0x4948d3['metadata'][_0xef0a8f(0x1a8)],'title':_0x4948d3[_0xef0a8f(0x18c)]['propertyData'],'type':convertSchemaType(_0x511817[_0x4948d3[_0xef0a8f(0x190)]][_0xef0a8f(0x19d)]),'required':![],'default':'','desc':''});else{if(_0x249ec7=='file'){let _0x2cee3b=((_0x284171=_0x4948d3===null||_0x4948d3===void 0x0?void 0x0:_0x4948d3[_0xef0a8f(0x18c)])===null||_0x284171===void 0x0?void 0x0:_0x284171[_0xef0a8f(0x1a8)])||_0xef0a8f(0x1cf);_0x2cee3b[_0xef0a8f(0x1c5)](':')==-0x1&&!_0x3b25fb[_0xef0a8f(0x19a)]['find'](_0x343916=>_0x343916[_0xef0a8f(0x1ca)]==_0x2cee3b&&_0x343916[_0xef0a8f(0x1d1)]==_0xef0a8f(0x1cf))&&_0x3b25fb[_0xef0a8f(0x19a)]['push']({'key':_0x2cee3b,'title':'文件上传-'+_0x2cee3b,'type':_0xef0a8f(0x1cf),'required':!![],'default':'','desc':''});}}}else{const _0x1a39be=(0x0,core_3[_0xef0a8f(0x1af)])(validator_1[_0xef0a8f(0x1f3)],_0x511817[_0x16ac95]);_0x1a39be&&_0x3b25fb[_0xef0a8f(0x19a)][_0xef0a8f(0x1b2)](...getJoiRequest(_0x1a39be));}}}_0x27140a[_0xef0a8f(0x18e)][_0xef0a8f(0x1b2)](_0x3b25fb);}}if(_0x27140a['routes'][_0xef0a8f(0x1c9)]>0x0){let _0x5db502=_0x7f02c[_0x118a4d];_0x5db502?(_0x5db502['summary']!=_0x27140a[_0xef0a8f(0x191)]&&(_0x5db502[_0xef0a8f(0x191)]=_0x5db502[_0xef0a8f(0x191)]+','+_0x27140a[_0xef0a8f(0x191)]),_0x5db502[_0xef0a8f(0x1e3)]!=_0x27140a[_0xef0a8f(0x1e3)]&&(_0x5db502[_0xef0a8f(0x1e3)]=_0x5db502[_0xef0a8f(0x1e3)]+','+_0x27140a['description']),_0x5db502['routes']=_0x5db502['routes'][_0xef0a8f(0x1e2)](_0x27140a['routes']),_0x7f02c[_0x118a4d]=_0x5db502):_0x7f02c[_0x118a4d]=_0x27140a;}}}return _0x7f02c;}exports[a9_0x543c3d(0x1bc)]=getRoutes;function getJoiRequest(_0x26c8bd){const _0x17a948=a9_0x543c3d;var _0x1e1ddc,_0x1e9ec0;const _0x27ad86=[];for(let _0x1eba3a in _0x26c8bd){const _0x97582b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x105f47=typeof _0x26c8bd[_0x1eba3a][_0x17a948(0x188)]==_0x17a948(0x1be)?_0x26c8bd[_0x1eba3a][_0x17a948(0x188)]():_0x26c8bd[_0x1eba3a];_0x97582b['key']=_0x1eba3a,_0x97582b['type']=_0x105f47[_0x17a948(0x1d1)],_0x97582b[_0x17a948(0x1d6)]=(0x0,lodash_1[_0x17a948(0x1e4)])(_0x105f47,_0x17a948(0x1db),_0x1eba3a),_0x97582b[_0x17a948(0x1ba)]=(0x0,lodash_1[_0x17a948(0x1e4)])(_0x105f47,'flags.default',''),_0x97582b[_0x17a948(0x1b4)]=(0x0,lodash_1['get'])(_0x105f47,_0x17a948(0x1b6),'')=='required',_0x97582b[_0x17a948(0x1e3)]=(0x0,lodash_1[_0x17a948(0x1e4)])(_0x105f47,_0x17a948(0x18a),'');if(_0x105f47[_0x17a948(0x1d1)]==_0x17a948(0x193))(_0x105f47===null||_0x105f47===void 0x0?void 0x0:_0x105f47[_0x17a948(0x1c2)])&&(_0x97582b[_0x17a948(0x1bb)]=getJoiRequest(_0x105f47[_0x17a948(0x1c2)]));else _0x105f47[_0x17a948(0x1d1)]==_0x17a948(0x1ef)&&_0x105f47[_0x17a948(0x1a2)]&&Array['isArray'](_0x105f47[_0x17a948(0x1a2)])&&(((_0x1e9ec0=(_0x1e1ddc=_0x105f47===null||_0x105f47===void 0x0?void 0x0:_0x105f47[_0x17a948(0x1a2)])===null||_0x1e1ddc===void 0x0?void 0x0:_0x1e1ddc[0x0])===null||_0x1e9ec0===void 0x0?void 0x0:_0x1e9ec0[_0x17a948(0x1c2)])&&(_0x97582b[_0x17a948(0x1bb)]=getJoiRequest(_0x105f47[_0x17a948(0x1a2)][0x0][_0x17a948(0x1c2)])));_0x105f47['allow']&&Array[_0x17a948(0x1e9)](_0x105f47[_0x17a948(0x197)])&&_0x105f47[_0x17a948(0x197)][_0x17a948(0x1c9)]>0x0&&(_0x97582b[_0x17a948(0x1e3)]=_0x17a948(0x1e6)+_0x105f47[_0x17a948(0x197)][_0x17a948(0x1a1)](',')+'];'+_0x97582b[_0x17a948(0x1e3)]);if(_0x97582b['key']&&_0x97582b[_0x17a948(0x1d1)]){const _0x4b3e60={};for(const _0x32923c of _0x105f47[_0x17a948(0x1c1)]||[]){if(_0x32923c['name']==='min'&&_0x32923c[_0x17a948(0x1b8)])_0x4b3e60[_0x17a948(0x19f)]=_0x32923c[_0x17a948(0x1b8)][_0x17a948(0x1cc)];else _0x32923c['name']==='max'&&(_0x4b3e60[_0x17a948(0x1f2)]=_0x32923c[_0x17a948(0x1b8)][_0x17a948(0x1cc)]);}_0x97582b[_0x17a948(0x1c1)]=_0x4b3e60;}_0x97582b[_0x17a948(0x1ca)]&&_0x97582b[_0x17a948(0x1d6)]&&_0x27ad86['push'](_0x97582b);}return _0x27ad86;}function convertSchemaType(_0x98e177){const _0x40ea02=a9_0x543c3d;switch(_0x98e177){case _0x40ea02(0x189):return _0x40ea02(0x193);case _0x40ea02(0x1dc):return'boolean';case _0x40ea02(0x1ec):return _0x40ea02(0x1f1);case _0x40ea02(0x1c8):return _0x40ea02(0x187);case _0x40ea02(0x195):return _0x40ea02(0x1cf);default:return'string';}}function convertTypeToString(_0x29fecd){const _0x579607=a9_0x543c3d;switch(_0x29fecd){case core_1['RouteParamTypes'][_0x579607(0x1eb)]:return'header';case core_1[_0x579607(0x1d7)][_0x579607(0x19b)]:return'query';case core_1['RouteParamTypes']['PARAM']:return _0x579607(0x19c);case core_1[_0x579607(0x1d7)]['BODY']:return'body';case core_1[_0x579607(0x1d7)][_0x579607(0x1cd)]:case core_1['RouteParamTypes'][_0x579607(0x192)]:case core_1[_0x579607(0x1d7)][_0x579607(0x1a7)]:return _0x579607(0x1cf);default:return _0x579607(0x196);}}function getMethodResponse(_0x474913,_0x33d35e){const _0x2c9d6a=a9_0x543c3d,_0x1b523c=(0x0,core_3['getClassMetadata'])(action_1[_0x2c9d6a(0x1f0)],_0x474913);if(!_0x1b523c)return null;const _0x1e3b21=_0x1b523c[_0x2c9d6a(0x1df)](_0x5bec67=>_0x5bec67['method']===_0x33d35e);if(!_0x1e3b21)return null;return{'format':_0x1e3b21[_0x2c9d6a(0x1c6)]||'default','type':_0x1e3b21[_0x2c9d6a(0x1d1)],'description':_0x1e3b21[_0x2c9d6a(0x1e3)]||'','properties':_0x1e3b21[_0x2c9d6a(0x1e5)]||[],'errors':_0x1e3b21[_0x2c9d6a(0x1c3)]||[]};}
|
|
1
|
+
function a9_0x2b7b(){const _0x2c1fe7=['key','457785OEdgEb','flags.label','RouteParamTypes','static/apitest','tagName','name','method','some','array','FIELDS','min','RULES_KEY','request','get','只允许:[','intercept','../types/action','166046PnxoBJ','path','rules','PARAM','title','properties','(((.+)+)+)+$','@midwayjs/core','format','push','BODY','routerOptions','required','flags.presence','describe','isArray','metadata','INJECT_CUSTOM_PARAM','max','description','filtercustom','propertyData','10414449BkuEzG','pprefix','getRoutes','keys','object','summary','filter','items','find','constructor','type','1991535jBfJpS','parameterIndex','@anncic-api/validator','replace','ACTION_KEY','requestMethod','prefix','36gdnTqe','flags.default','body','1104523nfUVHS','4947888MdCfQs','limit','function','indexOf','file','defineProperty','getMethodParamTypes','allow','filterprefix','endsWith','default','listModule','length','toString','文件上传-','apply','children','startsWith','HEADERS','args','route','routes','errors','filepath','getClassMetadata','iterator','header','module','FILESSTREAM','4NhrIFY','boolean','string','QUERY','3602832VMrOtB'];a9_0x2b7b=function(){return _0x2c1fe7;};return a9_0x2b7b();}const a9_0x19d474=a9_0x846e;(function(_0xa7f72,_0x394124){const _0x27a1b4=a9_0x846e,_0x1d0f66=_0xa7f72();while(!![]){try{const _0x5094c0=-parseInt(_0x27a1b4(0xa8))/0x1*(-parseInt(_0x27a1b4(0xbf))/0x2)+parseInt(_0x27a1b4(0x80))/0x3+-parseInt(_0x27a1b4(0x87))/0x4*(parseInt(_0x27a1b4(0xae))/0x5)+parseInt(_0x27a1b4(0x8b))/0x6+parseInt(_0x27a1b4(0x8a))/0x7+parseInt(_0x27a1b4(0xac))/0x8+-parseInt(_0x27a1b4(0x75))/0x9;if(_0x5094c0===_0x394124)break;else _0x1d0f66['push'](_0x1d0f66['shift']());}catch(_0xcbdbbc){_0x1d0f66['push'](_0x1d0f66['shift']());}}}(a9_0x2b7b,0x6d442));const a9_0x5705ee=(function(){let _0x2cf66a=!![];return function(_0x3d19d2,_0xfdac08){const _0x4a9ba4=_0x2cf66a?function(){const _0xea8b5c=a9_0x846e;if(_0xfdac08){const _0x42c06d=_0xfdac08[_0xea8b5c(0x9a)](_0x3d19d2,arguments);return _0xfdac08=null,_0x42c06d;}}:function(){};return _0x2cf66a=![],_0x4a9ba4;};}()),a9_0x1eb346=a9_0x5705ee(this,function(){const _0x416616=a9_0x846e;return a9_0x1eb346['toString']()['search'](_0x416616(0x65))[_0x416616(0x98)]()[_0x416616(0x7e)](a9_0x1eb346)['search'](_0x416616(0x65));});a9_0x1eb346();function a9_0x846e(_0xb0e6db,_0x190d1a){const _0x25b3c2=a9_0x2b7b();return a9_0x846e=function(_0x1eb346,_0x5705ee){_0x1eb346=_0x1eb346-0x65;let _0x2b7b64=_0x25b3c2[_0x1eb346];return _0x2b7b64;},a9_0x846e(_0xb0e6db,_0x190d1a);}'use strict';Object[a9_0x19d474(0x90)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x19d474(0x82)),core_1=require('@midwayjs/core'),core_2=require(a9_0x19d474(0x66)),core_3=require(a9_0x19d474(0x66)),action_1=require(a9_0x19d474(0xbe));function getRoutes(_0x4a33a6={'prefix':'/','module':![]}){const _0x3c4c31=a9_0x19d474;var _0x20eaeb,_0x2a7e0b;const _0xe8de9=(0x0,core_3[_0x3c4c31(0x96)])(action_1[_0x3c4c31(0x84)]),_0x3d2c49={},_0x5cd06a=Array[_0x3c4c31(0x6e)](_0x4a33a6[_0x3c4c31(0x7b)]||[])?_0x4a33a6[_0x3c4c31(0x7b)]||[]:[_0x4a33a6[_0x3c4c31(0x7b)]];_0x4a33a6[_0x3c4c31(0x86)]&&(_0x4a33a6[_0x3c4c31(0x86)]=Array[_0x3c4c31(0x6e)](_0x4a33a6['prefix'])?_0x4a33a6[_0x3c4c31(0x86)]:[_0x4a33a6[_0x3c4c31(0x86)]]);_0x4a33a6[_0x3c4c31(0x93)]&&(_0x4a33a6[_0x3c4c31(0x93)]=Array[_0x3c4c31(0x6e)](_0x4a33a6[_0x3c4c31(0x93)])?_0x4a33a6[_0x3c4c31(0x93)]:[_0x4a33a6['filterprefix']]);_0x24f739:for(const _0x1b64d9 of _0xe8de9){let _0x4a0d33=(0x0,core_3[_0x3c4c31(0xa3)])(action_1[_0x3c4c31(0x84)],_0x1b64d9),_0x3a31eb=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x1b64d9);if(_0x4a0d33&&_0x3a31eb){let _0x47ddc6=_0x4a0d33['prefix'],_0x4af520={};if(_0x4a33a6[_0x3c4c31(0xa6)]){if(typeof _0x4a33a6[_0x3c4c31(0xa6)]==='string'&&(0x0,lodash_1[_0x3c4c31(0xbb)])(_0x4a0d33,_0x3c4c31(0xa6),![])!=_0x4a33a6[_0x3c4c31(0xa6)])continue _0x24f739;}else{if(_0x4a33a6[_0x3c4c31(0xa6)]===![]&&!!(0x0,lodash_1[_0x3c4c31(0xbb)])(_0x4a0d33,'module',null))continue _0x24f739;}if(_0x4a33a6['prefix']&&!_0x4a33a6['prefix']['some'](_0xe56cb7=>_0x47ddc6[_0x3c4c31(0x9c)](_0xe56cb7)))continue _0x24f739;if(_0x4a33a6[_0x3c4c31(0x93)]&&_0x4a33a6[_0x3c4c31(0x93)][_0x3c4c31(0xb5)](_0x17af12=>_0x47ddc6['startsWith'](_0x17af12)))continue _0x24f739;if(_0x4a33a6[_0x3c4c31(0x73)]&&typeof _0x4a33a6['filtercustom']==_0x3c4c31(0x8d)&&_0x4a33a6[_0x3c4c31(0x73)](_0x4a0d33))continue _0x24f739;_0x47ddc6!=='/'?(_0x4af520[_0x3c4c31(0x7a)]=(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0x6a)][_0x3c4c31(0xb2)])||(/^\//['test'](_0x47ddc6)?_0x47ddc6['split']('/')[0x1]:_0x47ddc6),_0x4af520[_0x3c4c31(0x72)]=(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0x6a)]['description'])||_0x4af520['summary'],_0x4af520[_0x3c4c31(0xa0)]=[]):(_0x4af520[_0x3c4c31(0x7a)]=(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0x6a)][_0x3c4c31(0xb2)])||'default',_0x4af520[_0x3c4c31(0x72)]=(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0x6a)][_0x3c4c31(0x72)])||'',_0x4af520['routes']=[]);_0x4a33a6['filepath']&&(_0x4af520[_0x3c4c31(0xa2)]=_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0xa2)]);(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0x76)])&&(_0x4af520[_0x3c4c31(0x86)]=_0x4a0d33['pprefix']);(_0x4a0d33===null||_0x4a0d33===void 0x0?void 0x0:_0x4a0d33[_0x3c4c31(0xa6)])&&(_0x4af520[_0x3c4c31(0xa6)]=_0x4a0d33[_0x3c4c31(0xa6)]);let _0x518f08=(0x0,core_3['getClassMetadata'])(core_2[_0x3c4c31(0x70)],_0x1b64d9)||{};if(typeof _0x3a31eb[Symbol[_0x3c4c31(0xa4)]]===_0x3c4c31(0x8d))for(let _0x48da54 of _0x3a31eb){if((_0x4a33a6===null||_0x4a33a6===void 0x0?void 0x0:_0x4a33a6['intercept'])&&!(_0x48da54===null||_0x48da54===void 0x0?void 0x0:_0x48da54[_0x3c4c31(0xbd)]))continue;let _0x404619={};_0x404619['method']=_0x48da54[_0x3c4c31(0x85)],_0x404619[_0x3c4c31(0x9f)]=(_0x47ddc6+_0x48da54[_0x3c4c31(0xc0)])[_0x3c4c31(0x83)](/\/{2,}/g,'/'),_0x404619['summary']=(_0x48da54===null||_0x48da54===void 0x0?void 0x0:_0x48da54['routerName'])||_0x4af520[_0x3c4c31(0x7a)]||_0x3c4c31(0x95),_0x404619[_0x3c4c31(0x72)]=(_0x48da54===null||_0x48da54===void 0x0?void 0x0:_0x48da54[_0x3c4c31(0x72)])||'',_0x404619[_0x3c4c31(0xba)]=[],_0x404619['response']=getMethodResponse(_0x1b64d9,_0x48da54[_0x3c4c31(0xb4)]);_0x404619[_0x3c4c31(0x9f)][_0x3c4c31(0x94)]('/')&&(_0x404619['route']=_0x404619[_0x3c4c31(0x9f)]['substring'](0x0,_0x404619[_0x3c4c31(0x9f)][_0x3c4c31(0x97)]-0x1));if(!(0x0,lodash_1[_0x3c4c31(0x9c)])(_0x404619[_0x3c4c31(0x9f)],_0x3c4c31(0xb1))&&!(0x0,lodash_1['startsWith'])(_0x404619[_0x3c4c31(0x9f)],'/static/apitest')&&_0x5cd06a[_0x3c4c31(0x8e)](_0x404619[_0x3c4c31(0x9f)])===-0x1){if(!(_0x4a33a6===null||_0x4a33a6===void 0x0?void 0x0:_0x4a33a6['noreq'])){let _0x5229f1=(0x0,core_3[_0x3c4c31(0x91)])(new _0x1b64d9(),_0x48da54[_0x3c4c31(0xb4)]);for(const _0x28fd3e in _0x5229f1){let _0x159cb7=(_0x20eaeb=_0x518f08[_0x48da54[_0x3c4c31(0xb4)]])===null||_0x20eaeb===void 0x0?void 0x0:_0x20eaeb[_0x3c4c31(0x7d)](_0x21b949=>_0x21b949['parameterIndex']==_0x28fd3e&&_0x21b949['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x21b949===null||_0x21b949===void 0x0?void 0x0:_0x21b949[_0x3c4c31(0x6f)]));if(_0x159cb7===null||_0x159cb7===void 0x0?void 0x0:_0x159cb7[_0x3c4c31(0x6f)]){let _0x2292cd=convertTypeToString(_0x159cb7[_0x3c4c31(0x6f)][_0x3c4c31(0x7f)]||0x0);if(['query',_0x3c4c31(0x89)][_0x3c4c31(0x8e)](_0x2292cd)!=-0x1&&_0x159cb7[_0x3c4c31(0x6f)]['propertyData'][_0x3c4c31(0x8e)](':')==-0x1&&!_0x404619['request'][_0x3c4c31(0x7d)](_0x4bea89=>_0x4bea89[_0x3c4c31(0xad)]==_0x159cb7[_0x3c4c31(0x6f)][_0x3c4c31(0x74)]))_0x404619[_0x3c4c31(0xba)]['push']({'key':_0x159cb7[_0x3c4c31(0x6f)]['propertyData'],'title':_0x159cb7[_0x3c4c31(0x6f)]['propertyData'],'type':convertSchemaType(_0x5229f1[_0x159cb7[_0x3c4c31(0x81)]]['name']),'required':![],'default':'','desc':''});else{if(_0x2292cd==_0x3c4c31(0x8f)){let _0x3079c3=((_0x2a7e0b=_0x159cb7===null||_0x159cb7===void 0x0?void 0x0:_0x159cb7[_0x3c4c31(0x6f)])===null||_0x2a7e0b===void 0x0?void 0x0:_0x2a7e0b[_0x3c4c31(0x74)])||_0x3c4c31(0x8f);_0x3079c3[_0x3c4c31(0x8e)](':')==-0x1&&!_0x404619[_0x3c4c31(0xba)]['find'](_0x47e2a1=>_0x47e2a1['key']==_0x3079c3&&_0x47e2a1[_0x3c4c31(0x7f)]==_0x3c4c31(0x8f))&&_0x404619[_0x3c4c31(0xba)][_0x3c4c31(0x68)]({'key':_0x3079c3,'title':_0x3c4c31(0x99)+_0x3079c3,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xcbcf43=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3c4c31(0xb9)],_0x5229f1[_0x28fd3e]);_0xcbcf43&&_0x404619[_0x3c4c31(0xba)][_0x3c4c31(0x68)](...getJoiRequest(_0xcbcf43));}}}_0x4af520[_0x3c4c31(0xa0)][_0x3c4c31(0x68)](_0x404619);}}if(_0x4af520[_0x3c4c31(0xa0)][_0x3c4c31(0x97)]>0x0){let _0x2ad12f=_0x3d2c49[_0x47ddc6];_0x2ad12f?(_0x2ad12f[_0x3c4c31(0x7a)]!=_0x4af520['summary']&&(_0x2ad12f[_0x3c4c31(0x7a)]=_0x2ad12f[_0x3c4c31(0x7a)]+','+_0x4af520[_0x3c4c31(0x7a)]),_0x2ad12f[_0x3c4c31(0x72)]!=_0x4af520[_0x3c4c31(0x72)]&&(_0x2ad12f[_0x3c4c31(0x72)]=_0x2ad12f[_0x3c4c31(0x72)]+','+_0x4af520[_0x3c4c31(0x72)]),_0x2ad12f['routes']=_0x2ad12f['routes']['concat'](_0x4af520[_0x3c4c31(0xa0)]),_0x3d2c49[_0x47ddc6]=_0x2ad12f):_0x3d2c49[_0x47ddc6]=_0x4af520;}}}return _0x3d2c49;}exports[a9_0x19d474(0x77)]=getRoutes;function getJoiRequest(_0x503108){const _0x52110c=a9_0x19d474;var _0x178ed3,_0x375471;const _0x50c28c=[];for(let _0x36fc09 in _0x503108){const _0x440f29={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x474c5e=typeof _0x503108[_0x36fc09][_0x52110c(0x6d)]==_0x52110c(0x8d)?_0x503108[_0x36fc09]['describe']():_0x503108[_0x36fc09];_0x440f29['key']=_0x36fc09,_0x440f29[_0x52110c(0x7f)]=_0x474c5e[_0x52110c(0x7f)],_0x440f29[_0x52110c(0xc3)]=(0x0,lodash_1[_0x52110c(0xbb)])(_0x474c5e,_0x52110c(0xaf),_0x36fc09),_0x440f29[_0x52110c(0x95)]=(0x0,lodash_1[_0x52110c(0xbb)])(_0x474c5e,_0x52110c(0x88),''),_0x440f29[_0x52110c(0x6b)]=(0x0,lodash_1['get'])(_0x474c5e,_0x52110c(0x6c),'')=='required',_0x440f29['description']=(0x0,lodash_1[_0x52110c(0xbb)])(_0x474c5e,'flags.description','');if(_0x474c5e[_0x52110c(0x7f)]==_0x52110c(0x79))(_0x474c5e===null||_0x474c5e===void 0x0?void 0x0:_0x474c5e['keys'])&&(_0x440f29[_0x52110c(0x9b)]=getJoiRequest(_0x474c5e[_0x52110c(0x78)]));else _0x474c5e[_0x52110c(0x7f)]==_0x52110c(0xb6)&&_0x474c5e[_0x52110c(0x7c)]&&Array['isArray'](_0x474c5e[_0x52110c(0x7c)])&&(((_0x375471=(_0x178ed3=_0x474c5e===null||_0x474c5e===void 0x0?void 0x0:_0x474c5e[_0x52110c(0x7c)])===null||_0x178ed3===void 0x0?void 0x0:_0x178ed3[0x0])===null||_0x375471===void 0x0?void 0x0:_0x375471[_0x52110c(0x78)])&&(_0x440f29[_0x52110c(0x9b)]=getJoiRequest(_0x474c5e[_0x52110c(0x7c)][0x0][_0x52110c(0x78)])));_0x474c5e[_0x52110c(0x92)]&&Array[_0x52110c(0x6e)](_0x474c5e[_0x52110c(0x92)])&&_0x474c5e[_0x52110c(0x92)][_0x52110c(0x97)]>0x0&&(_0x440f29[_0x52110c(0x72)]=_0x52110c(0xbc)+_0x474c5e[_0x52110c(0x92)]['join'](',')+'];'+_0x440f29[_0x52110c(0x72)]);if(_0x440f29['key']&&_0x440f29['type']){const _0x42c40a={};for(const _0x139954 of _0x474c5e[_0x52110c(0xc1)]||[]){if(_0x139954[_0x52110c(0xb3)]===_0x52110c(0xb8)&&_0x139954[_0x52110c(0x9e)])_0x42c40a[_0x52110c(0xb8)]=_0x139954[_0x52110c(0x9e)][_0x52110c(0x8c)];else _0x139954[_0x52110c(0xb3)]==='max'&&(_0x42c40a[_0x52110c(0x71)]=_0x139954[_0x52110c(0x9e)][_0x52110c(0x8c)]);}_0x440f29[_0x52110c(0xc1)]=_0x42c40a;}_0x440f29['key']&&_0x440f29['title']&&_0x50c28c['push'](_0x440f29);}return _0x50c28c;}function convertSchemaType(_0x5be83e){const _0x9c8db5=a9_0x19d474;switch(_0x5be83e){case'Object':return _0x9c8db5(0x79);case'Boolean':return _0x9c8db5(0xa9);case'Number':return'number';case'String':return _0x9c8db5(0xaa);case'File':return _0x9c8db5(0x8f);default:return'string';}}function convertTypeToString(_0x466b7e){const _0x35a7f1=a9_0x19d474;switch(_0x466b7e){case core_1['RouteParamTypes'][_0x35a7f1(0x9d)]:return _0x35a7f1(0xa5);case core_1[_0x35a7f1(0xb0)][_0x35a7f1(0xab)]:return'query';case core_1[_0x35a7f1(0xb0)][_0x35a7f1(0xc2)]:return'path';case core_1[_0x35a7f1(0xb0)][_0x35a7f1(0x69)]:return _0x35a7f1(0x89);case core_1[_0x35a7f1(0xb0)][_0x35a7f1(0xb7)]:case core_1[_0x35a7f1(0xb0)][_0x35a7f1(0xa7)]:case core_1[_0x35a7f1(0xb0)]['FILESTREAM']:return _0x35a7f1(0x8f);default:return _0x35a7f1(0xa5);}}function getMethodResponse(_0xafba43,_0x2c9cb6){const _0xe32282=a9_0x19d474,_0x19bd92=(0x0,core_3[_0xe32282(0xa3)])(action_1['ACTION_RESPONSE_KEY'],_0xafba43);if(!_0x19bd92)return null;const _0x438394=_0x19bd92[_0xe32282(0x7d)](_0x67f29c=>_0x67f29c['method']===_0x2c9cb6);if(!_0x438394)return null;return{'format':_0x438394[_0xe32282(0x67)]||_0xe32282(0x95),'type':_0x438394[_0xe32282(0x7f)],'description':_0x438394[_0xe32282(0x72)]||'','properties':_0x438394[_0xe32282(0xc4)]||[],'errors':_0x438394[_0xe32282(0xa1)]||[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x4c36c5=a10_0x1e77;(function(_0x2ef50f,_0x5e1e6b){const _0x542a15=a10_0x1e77,_0x3f9990=_0x2ef50f();while(!![]){try{const _0x5c0874=parseInt(_0x542a15(0x10d))/0x1*(parseInt(_0x542a15(0xf0))/0x2)+-parseInt(_0x542a15(0x10f))/0x3*(-parseInt(_0x542a15(0xfa))/0x4)+-parseInt(_0x542a15(0x10a))/0x5+parseInt(_0x542a15(0x12d))/0x6+-parseInt(_0x542a15(0x132))/0x7*(-parseInt(_0x542a15(0x11b))/0x8)+parseInt(_0x542a15(0xe9))/0x9*(-parseInt(_0x542a15(0x113))/0xa)+parseInt(_0x542a15(0x124))/0xb*(-parseInt(_0x542a15(0x12b))/0xc);if(_0x5c0874===_0x5e1e6b)break;else _0x3f9990['push'](_0x3f9990['shift']());}catch(_0x245619){_0x3f9990['push'](_0x3f9990['shift']());}}}(a10_0x53dd,0xe3e16));const a10_0xfab4e6=(function(){let _0x4cf0e2=!![];return function(_0x313f4f,_0xd9fbcc){const _0x5d562a=_0x4cf0e2?function(){const _0x484a1e=a10_0x1e77;if(_0xd9fbcc){const _0x1e6527=_0xd9fbcc[_0x484a1e(0x12a)](_0x313f4f,arguments);return _0xd9fbcc=null,_0x1e6527;}}:function(){};return _0x4cf0e2=![],_0x5d562a;};}()),a10_0x4a4d3b=a10_0xfab4e6(this,function(){const _0x338e1e=a10_0x1e77;return a10_0x4a4d3b[_0x338e1e(0x149)]()[_0x338e1e(0x14f)](_0x338e1e(0x153))[_0x338e1e(0x149)]()[_0x338e1e(0x10b)](a10_0x4a4d3b)[_0x338e1e(0x14f)](_0x338e1e(0x153));});a10_0x4a4d3b();function a10_0x1e77(_0xc96995,_0x27cb49){const _0x197322=a10_0x53dd();return a10_0x1e77=function(_0x4a4d3b,_0xfab4e6){_0x4a4d3b=_0x4a4d3b-0xe9;let _0x53dd76=_0x197322[_0x4a4d3b];return _0x53dd76;},a10_0x1e77(_0xc96995,_0x27cb49);}'use strict';Object[a10_0x4c36c5(0x130)](exports,a10_0x4c36c5(0x109),{'value':!![]}),exports['getSwaggerJson']=void 0x0;const getRoutes_1=require(a10_0x4c36c5(0x11c)),MEDIA_TYPE_JSON='application/json',MEDIA_TYPE_FORM_DATA=a10_0x4c36c5(0x152),PARAM_IN_PATH=a10_0x4c36c5(0x129),PARAM_IN_QUERY=a10_0x4c36c5(0x116);function convertRouteToSwaggerFormat(_0x52103d){const _0x34c1c9=a10_0x4c36c5;return _0x52103d[_0x34c1c9(0x134)](/:([^\/]+)/g,_0x34c1c9(0xf6));}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x4c36c5(0xed),'properties':{'code':{'type':'integer','description':a10_0x4c36c5(0xfb)},'data':{'type':'object','description':a10_0x4c36c5(0x10e)},'extra':{'type':'object','description':a10_0x4c36c5(0x141)}},'required':[a10_0x4c36c5(0x138)]},'ApiResponseList':{'type':a10_0x4c36c5(0xed),'properties':{'code':{'type':a10_0x4c36c5(0x10c),'description':a10_0x4c36c5(0xfb)},'data':{'type':a10_0x4c36c5(0x139),'items':{'type':a10_0x4c36c5(0xed)},'description':a10_0x4c36c5(0x121)},'extra':{'type':'object','properties':{'pageinfo':{'type':a10_0x4c36c5(0xed),'description':a10_0x4c36c5(0x14a)},'pagetotal':{'type':a10_0x4c36c5(0x10c),'description':a10_0x4c36c5(0x147)}},'description':a10_0x4c36c5(0x141)}},'required':[a10_0x4c36c5(0x138)]},'ApiError':{'type':a10_0x4c36c5(0xed),'properties':{'code':{'type':a10_0x4c36c5(0x10c),'description':a10_0x4c36c5(0x133)},'message':{'type':a10_0x4c36c5(0x112),'description':a10_0x4c36c5(0x14c)}},'required':[a10_0x4c36c5(0x138),a10_0x4c36c5(0xf3)]}},BASE_RESPONSE_PROPERTIES={'code':{'type':'integer','description':a10_0x4c36c5(0x100)}};function getSwaggerJson(_0x151cba={'prefix':'/','module':![]}){const _0x27339e=a10_0x4c36c5,_0x30922d=(0x0,getRoutes_1['getRoutes'])(_0x151cba),_0x3b32e1=new Map(),_0x42ed99=new Map(),_0x188982=_0x151cba[_0x27339e(0x155)]?_0x151cba[_0x27339e(0x155)]:{...DEFAULT_DEFINITIONS,..._0x151cba['extraDefinitions']||{}},_0x335e35=_0x151cba[_0x27339e(0xec)]||_0x27339e(0x11a),_0x3d7da0=_0x151cba[_0x27339e(0xee)]||'/',_0x4ccef4=(_0x151cba[_0x27339e(0x131)]||[_0x27339e(0x135)])[0x0],_0x4faa4a={'openapi':_0x27339e(0x102),'info':{'title':_0x151cba[_0x27339e(0x14e)]||_0x27339e(0x122),'description':_0x151cba[_0x27339e(0x137)]||_0x27339e(0xf9),'version':_0x151cba[_0x27339e(0x123)]||_0x27339e(0xfc)},'servers':[{'url':_0x4ccef4+'://'+_0x335e35+_0x3d7da0,'description':'默认服务器'}],'tags':[],'paths':{},'components':{'schemas':_0x188982}};for(const _0x2f35ed in _0x30922d){const _0x2cb2e9=_0x30922d[_0x2f35ed],_0x39dc7c=(_0x2cb2e9===null||_0x2cb2e9===void 0x0?void 0x0:_0x2cb2e9[_0x27339e(0x137)])||(_0x2cb2e9===null||_0x2cb2e9===void 0x0?void 0x0:_0x2cb2e9[_0x27339e(0x13e)])||_0x27339e(0xff),_0x52d5c0=buildTagHierarchy(_0x2f35ed,_0x2cb2e9);addTagsToMap(_0x3b32e1,_0x52d5c0,_0x39dc7c);const _0x4cbf82=_0x52d5c0[_0x52d5c0['length']-0x1]||'';for(const _0x25a6db of(_0x2cb2e9===null||_0x2cb2e9===void 0x0?void 0x0:_0x2cb2e9[_0x27339e(0x119)])||[]){if(!_0x25a6db[_0x27339e(0x101)])continue;const _0x49484f=convertRouteToSwaggerFormat(_0x25a6db[_0x27339e(0x101)]);!_0x4faa4a[_0x27339e(0x107)][_0x49484f]&&(_0x4faa4a[_0x27339e(0x107)][_0x49484f]={});if(!_0x4faa4a[_0x27339e(0x107)][_0x49484f][_0x25a6db[_0x27339e(0x156)]]){const {parameters:_0x49dbec,requestBody:_0x256ceb,hasBody:_0x27ac5a}=buildParameters(_0x25a6db[_0x27339e(0x11d)]||[],_0x49484f,_0x25a6db[_0x27339e(0x156)]);_0x4faa4a[_0x27339e(0x107)][_0x49484f][_0x25a6db[_0x27339e(0x156)]]={'summary':_0x25a6db[_0x27339e(0x13e)],'description':(_0x25a6db===null||_0x25a6db===void 0x0?void 0x0:_0x25a6db[_0x27339e(0x137)])||'','tags':_0x4cbf82?[_0x4cbf82]:[],'operationId':buildOperationId(_0x49484f,_0x25a6db[_0x27339e(0x156)],_0x42ed99),'parameters':_0x49dbec,..._0x27ac5a&&{'requestBody':_0x256ceb},'responses':buildRouteResponse(_0x25a6db===null||_0x25a6db===void 0x0?void 0x0:_0x25a6db[_0x27339e(0x12e)])};}}}return _0x4faa4a[_0x27339e(0x108)]=Array['from'](_0x3b32e1[_0x27339e(0x12c)]())[_0x27339e(0x114)](_0xf28850=>{const _0x293e4c=_0x27339e;var _0x3afb41;return((_0x3afb41=_0xf28850[_0x293e4c(0x13f)])===null||_0x3afb41===void 0x0?void 0x0:_0x3afb41[_0x293e4c(0xf4)]())&&_0xf28850[_0x293e4c(0x13f)]!=='/';})[_0x27339e(0x144)](_0x36eaaf=>{const _0x1b6035=_0x27339e;var _0xf40183;return{'name':_0x36eaaf[_0x1b6035(0x13f)]['trim'](),'description':((_0xf40183=_0x36eaaf[_0x1b6035(0x137)])===null||_0xf40183===void 0x0?void 0x0:_0xf40183['trim']())||_0x36eaaf[_0x1b6035(0x13f)][_0x1b6035(0xf4)]()};})[_0x27339e(0xef)]((_0x3d753f,_0x32aebf)=>_0x3d753f[_0x27339e(0x13f)][_0x27339e(0x12f)](_0x32aebf[_0x27339e(0x13f)])),_0x4faa4a;}exports['getSwaggerJson']=getSwaggerJson;function a10_0x53dd(){const _0x2a6999=['root','POST','path','apply','12ukHaEc','values','7244736WyDFez','response','localeCompare','defineProperty','schemes','4689867RONrQV','错误码','replace','http','min','description','code','array','请求成功','路由参数:\x20','charAt','format','summary','name','prefix','附加数据,如分页信息','type','errors','map','includes','custom','总数量','toUpperCase','toString','分页参数','GET','错误信息','module','title','search','max','children','multipart/form-data','(((.+)+)+)+$','some','definitions','method','properties','531EmUmSJ','forEach','push','host','object','basePath','sort','2YmEjct','required','PUT','message','trim','set','{$1}','#/components/schemas/ApiError','split','本接口文档由API自动解析生成','28hvUUpk','状态码,0表示成功,其他为错误码','1.0.0','key','get','default','状态码,0表示成功','route','3.0.0','slice','length','minimum','#/components/schemas/ApiResponseList','paths','tags','__esModule','1429855KSyIPE','constructor','integer','200975vNlBlA','返回数据','54066wMLfUU','PATCH','indexOf','string','137500BhtbEH','filter','page','query','maximum','join','routes','localhost:7001','8JWZBjC','./getRoutes','request','#/components/schemas/ApiResponse','has','rules','返回数据列表','接口文档','version','1913417YOXaVy','date','file'];a10_0x53dd=function(){return _0x2a6999;};return a10_0x53dd();}function buildTagHierarchy(_0x167f6b,_0x238b5d){const _0x59f5e2=a10_0x4c36c5,_0x243b3a=(_0x238b5d===null||_0x238b5d===void 0x0?void 0x0:_0x238b5d[_0x59f5e2(0x140)])||null,_0x5cdca5=(_0x238b5d===null||_0x238b5d===void 0x0?void 0x0:_0x238b5d[_0x59f5e2(0x14d)])||null,_0x27ec5b=(_0x167f6b===null||_0x167f6b===void 0x0?void 0x0:_0x167f6b[_0x59f5e2(0xf4)]())||'';if(!_0x27ec5b||_0x27ec5b==='/')return[];if(!_0x243b3a&&!_0x5cdca5)return[_0x27ec5b];const _0x515ff7=[];_0x243b3a&&_0x243b3a!=='/'&&_0x243b3a!==''&&_0x515ff7['push'](..._0x243b3a[_0x59f5e2(0x134)](/^\/|\/$/g,'')[_0x59f5e2(0xf8)]('/')[_0x59f5e2(0x114)](Boolean));if(_0x5cdca5&&_0x5cdca5!==''){const _0x5350b0=_0x5cdca5[_0x59f5e2(0xf4)]();!_0x515ff7[_0x59f5e2(0x145)](_0x5350b0)&&_0x515ff7[_0x59f5e2(0xeb)](_0x5350b0);}let _0x453ba3=_0x27ec5b;const _0x1426ef=_0x515ff7[_0x59f5e2(0x118)]('/');_0x1426ef&&_0x453ba3[_0x59f5e2(0x145)](_0x1426ef)&&(_0x453ba3=_0x453ba3[_0x59f5e2(0x103)](_0x453ba3[_0x59f5e2(0x111)](_0x1426ef)+_0x1426ef['length']));_0x453ba3=_0x453ba3[_0x59f5e2(0x134)](/^\/|\/$/g,'')[_0x59f5e2(0xf4)]();_0x453ba3&&_0x515ff7['push'](_0x453ba3);const _0x549586=[];let _0x364d82='';for(const _0x11d1a8 of _0x515ff7){_0x364d82=_0x364d82?_0x364d82+'/'+_0x11d1a8:_0x11d1a8,_0x549586[_0x59f5e2(0xeb)](_0x364d82);}return _0x549586[_0x59f5e2(0x104)]>0x0?_0x549586:[_0x27ec5b];}function addTagsToMap(_0x483961,_0x567993,_0x233687){const _0x572a7f=a10_0x4c36c5;_0x567993[_0x572a7f(0xea)]((_0x48aea4,_0x4805b1)=>{const _0x135dc4=_0x572a7f;if(!_0x48aea4||_0x48aea4==='/')return;!_0x483961[_0x135dc4(0x11f)](_0x48aea4)&&_0x483961[_0x135dc4(0xf5)](_0x48aea4,{'name':_0x48aea4,'description':_0x4805b1===_0x567993[_0x135dc4(0x104)]-0x1?_0x233687:_0x48aea4});});}function buildOperationId(_0x4c9853,_0x3a5ceb,_0x461d17){const _0xf2fbfa=a10_0x4c36c5,_0x19b606=_0x4c9853['split']('/')[_0xf2fbfa(0x114)](Boolean)['map'](_0x5d382c=>{const _0x546d24=_0x5d382c['match'](/(?<=\{)[^\/]+(?=\})/);return _0x546d24?_0x546d24[0x0]:_0x5d382c;})[_0xf2fbfa(0x114)](_0x384ce0=>_0x384ce0[_0xf2fbfa(0x134)](/[^a-zA-Z0-9]/g,'')),_0x502828=_0x19b606['map'](_0x5ac426=>_0x5ac426[_0xf2fbfa(0x13c)](0x0)[_0xf2fbfa(0x148)]()+_0x5ac426['slice'](0x1))[_0xf2fbfa(0x118)](''),_0x47fcd2=_0x502828||_0xf2fbfa(0x127),_0x1b3a56=_0x461d17[_0xf2fbfa(0xfe)](_0x47fcd2)||0x0;return _0x461d17[_0xf2fbfa(0xf5)](_0x47fcd2,_0x1b3a56+0x1),_0x1b3a56>0x0?''+_0x47fcd2+(_0x3a5ceb[_0xf2fbfa(0x13c)](0x0)[_0xf2fbfa(0x148)]()+_0x3a5ceb[_0xf2fbfa(0x103)](0x1)):_0x47fcd2;}function buildParameters(_0x3deb52,_0x4e8cb8,_0x48f736=a10_0x4c36c5(0x14b)){const _0x1e783f=a10_0x4c36c5;var _0x3c15bb;const _0x3a55bc=[],_0x4ca522=[],_0x32de0f=[],_0x5af1bf=[_0x1e783f(0x128),_0x1e783f(0xf2),_0x1e783f(0x110)]['includes'](_0x48f736[_0x1e783f(0x148)]()),_0x3af5cc=_0x4e8cb8['match'](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x50700a of _0x3af5cc){_0x3a55bc[_0x1e783f(0xeb)]({'name':_0x50700a,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x1e783f(0x112)},'description':_0x1e783f(0x13b)+_0x50700a});}for(const _0x5630e7 of _0x3deb52){switch(_0x5630e7[_0x1e783f(0x142)]){case _0x1e783f(0x126):_0x32de0f['push'](_0x5630e7);break;case _0x1e783f(0x116):_0x3a55bc[_0x1e783f(0xeb)]({'name':_0x5630e7[_0x1e783f(0xfd)],'in':PARAM_IN_QUERY,'required':_0x5630e7[_0x1e783f(0xf1)]||![],'schema':normalizeTypeSchema(_0x5630e7,![]),'description':_0x5630e7['description']||_0x5630e7[_0x1e783f(0x14e)]||_0x5630e7['key']});break;case _0x1e783f(0x129):break;case'body':_0x4ca522[_0x1e783f(0xeb)](_0x5630e7);break;default:if(((_0x3c15bb=_0x5630e7[_0x1e783f(0x151)])===null||_0x3c15bb===void 0x0?void 0x0:_0x3c15bb[_0x1e783f(0x104)])>0x0)_0x4ca522[_0x1e783f(0xeb)](_0x5630e7);else _0x5af1bf?_0x4ca522[_0x1e783f(0xeb)](_0x5630e7):_0x3a55bc['push']({'name':_0x5630e7[_0x1e783f(0xfd)],'in':PARAM_IN_QUERY,'required':_0x5630e7[_0x1e783f(0xf1)]||![],'schema':normalizeTypeSchema(_0x5630e7,![]),'description':_0x5630e7[_0x1e783f(0x137)]||_0x5630e7[_0x1e783f(0x14e)]||_0x5630e7['key']});}}if(_0x32de0f[_0x1e783f(0x104)]>0x0)return{'parameters':_0x3a55bc,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x32de0f,..._0x4ca522])}},'required':!![]},'hasBody':!![]};if(_0x4ca522[_0x1e783f(0x104)]>0x0){const _0x2cebb6=_0x4ca522[_0x1e783f(0x114)](_0x3ac484=>_0x3ac484['required'])[_0x1e783f(0x144)](_0x5baf61=>_0x5baf61[_0x1e783f(0xfd)]),_0x597db3=buildProperties(_0x4ca522,![]);return{'parameters':_0x3a55bc,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x1e783f(0xed),'properties':_0x597db3,..._0x2cebb6[_0x1e783f(0x104)]>0x0&&{'required':_0x2cebb6}}}},'required':_0x4ca522[_0x1e783f(0x154)](_0x285707=>_0x285707[_0x1e783f(0xf1)])},'hasBody':!![]};}return{'parameters':_0x3a55bc,'hasBody':![]};}function buildMultipartFormDataSchema(_0x46e2d3){const _0x5253d0=a10_0x4c36c5,_0x35c5f0={},_0x120dc8=[];for(const _0x5411f9 of _0x46e2d3){const _0x1e30a4=_0x5411f9[_0x5253d0(0x142)]===_0x5253d0(0x126);_0x35c5f0[_0x5411f9['key']]=_0x1e30a4?{'type':_0x5253d0(0x112),'format':'binary'}:normalizeTypeSchema(_0x5411f9,![]);if(_0x5411f9[_0x5253d0(0xf1)])_0x120dc8[_0x5253d0(0xeb)](_0x5411f9[_0x5253d0(0xfd)]);}const _0x3ec4bf={'type':'object','properties':_0x35c5f0};if(_0x120dc8['length']>0x0)_0x3ec4bf[_0x5253d0(0xf1)]=_0x120dc8;return _0x3ec4bf;}function buildRouteResponse(_0x3d9bee){const _0x138463=a10_0x4c36c5;var _0x4a67d9;if(!_0x3d9bee)return{'description':_0x138463(0x13a),'content':{[MEDIA_TYPE_JSON]:{'schema':{'oneOf':[{'$ref':_0x138463(0x11e)},{'$ref':_0x138463(0x106)},{'$ref':_0x138463(0xf7)}]}}}};const _0x2013af=_0x3d9bee[_0x138463(0x13d)]||'default',_0x438c4d=[];return _0x2013af===_0x138463(0x146)?_0x438c4d[_0x138463(0xeb)]({'type':_0x138463(0xed),'properties':buildProperties(_0x3d9bee[_0x138463(0x157)]||[],!![])}):_0x438c4d[_0x138463(0xeb)](buildDefaultResponseSchema(_0x3d9bee)),((_0x4a67d9=_0x3d9bee[_0x138463(0x143)])===null||_0x4a67d9===void 0x0?void 0x0:_0x4a67d9[_0x138463(0x104)])>0x0&&_0x438c4d['push'](..._0x3d9bee['errors'][_0x138463(0x144)](_0x4eed1e=>({'type':_0x138463(0xed),'properties':{'code':{'type':_0x138463(0x10c),'description':'错误码:\x20'+_0x4eed1e[_0x138463(0x138)]},'message':{'type':_0x138463(0x112),'description':_0x4eed1e[_0x138463(0xf3)]}},'example':{'code':_0x4eed1e[_0x138463(0x138)],'message':_0x4eed1e['message']}}))),{'description':_0x3d9bee['description']||_0x138463(0x13a),'content':{[MEDIA_TYPE_JSON]:{'schema':_0x438c4d[_0x138463(0x104)]===0x1?_0x438c4d[0x0]:{'oneOf':_0x438c4d}}}};}function buildDefaultResponseSchema(_0x318702){const _0x4d8da2=a10_0x4c36c5,_0x5e4e01=buildProperties(_0x318702[_0x4d8da2(0x157)]||[],!![]);if(_0x318702[_0x4d8da2(0x142)]===_0x4d8da2(0x115))return{'type':_0x4d8da2(0xed),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x4d8da2(0x139),'items':_0x5e4e01,'description':_0x4d8da2(0x121)},'extra':{'type':_0x4d8da2(0xed),'properties':{'pageinfo':{'type':'object','description':_0x4d8da2(0x14a)},'pagetotal':{'type':_0x4d8da2(0x10c),'description':_0x4d8da2(0x147)}}}},'required':[_0x4d8da2(0x138)]};if(_0x318702[_0x4d8da2(0x142)]===_0x4d8da2(0x139))return{'type':'object','properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x4d8da2(0x139),'items':_0x5e4e01,'description':'返回数据列表'}},'required':['code']};return{'type':_0x4d8da2(0xed),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x5e4e01},'required':['code']};}function normalizeTypeSchema(_0x884e80,_0x36e632=![]){const _0x442d97=a10_0x4c36c5;var _0xbffd7f,_0x3f659d,_0x4ab6a1,_0x150d30;const _0x16ba6b=_0x884e80[_0x442d97(0x142)]||'string',_0x4209c7=_0x36e632?_0x884e80[_0x442d97(0x137)]||_0x884e80[_0x442d97(0xfd)]:_0x884e80[_0x442d97(0x137)]||_0x884e80[_0x442d97(0x14e)]||_0x884e80['key'];if(_0x16ba6b===_0x442d97(0x125)){const _0x568a0c={'type':_0x442d97(0x112),'format':_0x442d97(0x125),'description':_0x4209c7};return _0x884e80['default']!==undefined&&_0x884e80[_0x442d97(0xff)]!==''&&(_0x568a0c[_0x442d97(0xff)]=_0x884e80[_0x442d97(0xff)]),_0x568a0c;}if(_0x16ba6b==='array'){const _0x159fda=((_0xbffd7f=_0x884e80[_0x442d97(0x151)])===null||_0xbffd7f===void 0x0?void 0x0:_0xbffd7f[_0x442d97(0x104)])>0x0?buildProperties(_0x884e80[_0x442d97(0x151)],_0x36e632):{'type':_0x442d97(0x112)};return{'type':_0x442d97(0x139),'items':_0x159fda,'description':_0x4209c7};}if(_0x16ba6b===_0x442d97(0xed)){const _0x3ea21d=((_0x3f659d=_0x884e80[_0x442d97(0x151)])===null||_0x3f659d===void 0x0?void 0x0:_0x3f659d['length'])>0x0?buildProperties(_0x884e80['children'],_0x36e632):{};return{'type':_0x442d97(0xed),'properties':_0x3ea21d,'description':_0x4209c7};}const _0x1eea5b={'type':_0x16ba6b,'description':_0x4209c7};return _0x884e80[_0x442d97(0xff)]!==undefined&&_0x884e80['default']!==''&&(_0x1eea5b[_0x442d97(0xff)]=_0x884e80['default']),((_0x4ab6a1=_0x884e80[_0x442d97(0x120)])===null||_0x4ab6a1===void 0x0?void 0x0:_0x4ab6a1[_0x442d97(0x136)])!==undefined&&(_0x1eea5b[_0x442d97(0x105)]=_0x884e80[_0x442d97(0x120)]['min']),((_0x150d30=_0x884e80[_0x442d97(0x120)])===null||_0x150d30===void 0x0?void 0x0:_0x150d30[_0x442d97(0x150)])!==undefined&&(_0x1eea5b[_0x442d97(0x117)]=_0x884e80[_0x442d97(0x120)][_0x442d97(0x150)]),_0x1eea5b;}function buildProperties(_0x1d582c,_0x26f563=![]){const _0x227b6b=a10_0x4c36c5;if(!_0x1d582c||_0x1d582c['length']===0x0)return{};const _0x3c1b8f={};for(const _0x265505 of _0x1d582c){_0x3c1b8f[_0x265505[_0x227b6b(0xfd)]]=normalizeTypeSchema(_0x265505,_0x26f563);}return _0x3c1b8f;}
|
|
1
|
+
const a10_0x1f2c73=a10_0x59aa;function a10_0x108b(){const _0xfa1427=['page','分页参数','name','#/components/schemas/ApiResponse','654976EIGnNI','min','split','definitions','method','606198JPcxjp','path','integer','push','join','string','object','错误码','返回数据列表','8AEiaPJ','apply','http','://','toString','title','1.0.0','binary','slice','PUT','附加数据,如分页信息','max','file','required','3bfEcxm','rules','maximum','接口文档','{$1}','paths','errors','GET','host','code','get','总数量','application/json','返回数据','状态码,0表示成功,其他为错误码','1531010PPfWLV','constructor','(((.+)+)+)+$','description','charAt','values','extraDefinitions','getSwaggerJson','defineProperty','路由参数:\x20','has','3.0.0','routes','type','includes','__esModule','POST','key','#/components/schemas/ApiError','multipart/form-data','summary','properties','1654485bzTVPy','message','route','format','本接口文档由API自动解析生成','from','300429TczMDF','search','replace','schemes','length','默认服务器','localhost:7001','default','trim','body','match','localeCompare','3330520tNPRLD','map','sort','date','indexOf','query','filter','children','874521OFoFcw','PATCH','version','minimum','toUpperCase','tags','请求成功','set','6TldJcB','array'];a10_0x108b=function(){return _0xfa1427;};return a10_0x108b();}(function(_0x1fc810,_0x220662){const _0x45b7c2=a10_0x59aa,_0x4af6a4=_0x1fc810();while(!![]){try{const _0x4172ae=-parseInt(_0x45b7c2(0x1e7))/0x1+parseInt(_0x45b7c2(0x20e))/0x2*(parseInt(_0x45b7c2(0x225))/0x3)+-parseInt(_0x45b7c2(0x209))/0x4+-parseInt(_0x45b7c2(0x234))/0x5+parseInt(_0x45b7c2(0x203))/0x6*(parseInt(_0x45b7c2(0x24a))/0x7)+-parseInt(_0x45b7c2(0x217))/0x8*(-parseInt(_0x45b7c2(0x1fb))/0x9)+parseInt(_0x45b7c2(0x1f3))/0xa;if(_0x4172ae===_0x220662)break;else _0x4af6a4['push'](_0x4af6a4['shift']());}catch(_0x5bedc9){_0x4af6a4['push'](_0x4af6a4['shift']());}}}(a10_0x108b,0x30a84));const a10_0x36f829=(function(){let _0x41cf09=!![];return function(_0x3d95cb,_0x595d1f){const _0x4dac55=_0x41cf09?function(){const _0x18d8c8=a10_0x59aa;if(_0x595d1f){const _0x5187bb=_0x595d1f[_0x18d8c8(0x218)](_0x3d95cb,arguments);return _0x595d1f=null,_0x5187bb;}}:function(){};return _0x41cf09=![],_0x4dac55;};}()),a10_0x12732d=a10_0x36f829(this,function(){const _0x4028ab=a10_0x59aa;return a10_0x12732d[_0x4028ab(0x21b)]()[_0x4028ab(0x1e8)](_0x4028ab(0x236))['toString']()[_0x4028ab(0x235)](a10_0x12732d)[_0x4028ab(0x1e8)](_0x4028ab(0x236));});a10_0x12732d();'use strict';function a10_0x59aa(_0x20eff0,_0x336dbf){const _0x50c1d1=a10_0x108b();return a10_0x59aa=function(_0x12732d,_0x36f829){_0x12732d=_0x12732d-0x1e5;let _0x108b09=_0x50c1d1[_0x12732d];return _0x108b09;},a10_0x59aa(_0x20eff0,_0x336dbf);}Object[a10_0x1f2c73(0x23c)](exports,a10_0x1f2c73(0x243),{'value':!![]}),exports['getSwaggerJson']=void 0x0;const getRoutes_1=require('./getRoutes'),MEDIA_TYPE_JSON=a10_0x1f2c73(0x231),MEDIA_TYPE_FORM_DATA=a10_0x1f2c73(0x247),PARAM_IN_PATH=a10_0x1f2c73(0x20f),PARAM_IN_QUERY='query';function convertRouteToSwaggerFormat(_0x1d4475){const _0x30b3d2=a10_0x1f2c73;return _0x1d4475['replace'](/:([^\/]+)/g,_0x30b3d2(0x229));}const DEFAULT_DEFINITIONS={'ApiResponse':{'type':a10_0x1f2c73(0x214),'properties':{'code':{'type':a10_0x1f2c73(0x210),'description':a10_0x1f2c73(0x233)},'data':{'type':a10_0x1f2c73(0x214),'description':a10_0x1f2c73(0x232)},'extra':{'type':a10_0x1f2c73(0x214),'description':a10_0x1f2c73(0x221)}},'required':[a10_0x1f2c73(0x22e)]},'ApiResponseList':{'type':a10_0x1f2c73(0x214),'properties':{'code':{'type':'integer','description':a10_0x1f2c73(0x233)},'data':{'type':a10_0x1f2c73(0x204),'items':{'type':a10_0x1f2c73(0x214)},'description':a10_0x1f2c73(0x216)},'extra':{'type':a10_0x1f2c73(0x214),'properties':{'pageinfo':{'type':a10_0x1f2c73(0x214),'description':a10_0x1f2c73(0x206)},'pagetotal':{'type':a10_0x1f2c73(0x210),'description':a10_0x1f2c73(0x230)}},'description':a10_0x1f2c73(0x221)}},'required':[a10_0x1f2c73(0x22e)]},'ApiError':{'type':a10_0x1f2c73(0x214),'properties':{'code':{'type':'integer','description':a10_0x1f2c73(0x215)},'message':{'type':a10_0x1f2c73(0x213),'description':'错误信息'}},'required':[a10_0x1f2c73(0x22e),'message']}},BASE_RESPONSE_PROPERTIES={'code':{'type':a10_0x1f2c73(0x210),'description':'状态码,0表示成功'}};function getSwaggerJson(_0x44896f={'prefix':'/','module':![]}){const _0x5ee597=a10_0x1f2c73,_0x2fcaf4=(0x0,getRoutes_1['getRoutes'])(_0x44896f),_0x218e1d=new Map(),_0x436c1e=new Map(),_0xbe7aca=_0x44896f[_0x5ee597(0x20c)]?_0x44896f['definitions']:{...DEFAULT_DEFINITIONS,..._0x44896f[_0x5ee597(0x23a)]||{}},_0x392382=_0x44896f[_0x5ee597(0x22d)]||_0x5ee597(0x1ed),_0x43cb12=_0x44896f['basePath']||'/',_0x1dd977=(_0x44896f[_0x5ee597(0x1ea)]||[_0x5ee597(0x219)])[0x0],_0x29e229={'openapi':_0x5ee597(0x23f),'info':{'title':_0x44896f[_0x5ee597(0x21c)]||_0x5ee597(0x228),'description':_0x44896f[_0x5ee597(0x237)]||_0x5ee597(0x1e5),'version':_0x44896f[_0x5ee597(0x1fd)]||_0x5ee597(0x21d)},'servers':[{'url':_0x1dd977+_0x5ee597(0x21a)+_0x392382+_0x43cb12,'description':_0x5ee597(0x1ec)}],'tags':[],'paths':{},'components':{'schemas':_0xbe7aca}};for(const _0xcbf282 in _0x2fcaf4){const _0xa9c19e=_0x2fcaf4[_0xcbf282],_0x35620c=(_0xa9c19e===null||_0xa9c19e===void 0x0?void 0x0:_0xa9c19e['description'])||(_0xa9c19e===null||_0xa9c19e===void 0x0?void 0x0:_0xa9c19e[_0x5ee597(0x248)])||_0x5ee597(0x1ee),_0x551e71=buildTagHierarchy(_0xcbf282,_0xa9c19e);addTagsToMap(_0x218e1d,_0x551e71,_0x35620c);const _0x3a9dcd=_0x551e71[_0x551e71[_0x5ee597(0x1eb)]-0x1]||'';for(const _0x3c505e of(_0xa9c19e===null||_0xa9c19e===void 0x0?void 0x0:_0xa9c19e[_0x5ee597(0x240)])||[]){if(!_0x3c505e[_0x5ee597(0x24c)])continue;const _0x59c6c5=convertRouteToSwaggerFormat(_0x3c505e[_0x5ee597(0x24c)]);!_0x29e229[_0x5ee597(0x22a)][_0x59c6c5]&&(_0x29e229[_0x5ee597(0x22a)][_0x59c6c5]={});if(!_0x29e229['paths'][_0x59c6c5][_0x3c505e[_0x5ee597(0x20d)]]){const {parameters:_0x1fc48c,requestBody:_0x349384,hasBody:_0x173ae1}=buildParameters(_0x3c505e['request']||[],_0x59c6c5,_0x3c505e[_0x5ee597(0x20d)]);_0x29e229[_0x5ee597(0x22a)][_0x59c6c5][_0x3c505e[_0x5ee597(0x20d)]]={'summary':_0x3c505e[_0x5ee597(0x248)],'description':(_0x3c505e===null||_0x3c505e===void 0x0?void 0x0:_0x3c505e['description'])||'','tags':_0x3a9dcd?[_0x3a9dcd]:[],'operationId':buildOperationId(_0x59c6c5,_0x3c505e['method'],_0x436c1e),'parameters':_0x1fc48c,..._0x173ae1&&{'requestBody':_0x349384},'responses':buildRouteResponse(_0x3c505e===null||_0x3c505e===void 0x0?void 0x0:_0x3c505e['response'])};}}}return _0x29e229[_0x5ee597(0x200)]=Array[_0x5ee597(0x1e6)](_0x218e1d[_0x5ee597(0x239)]())[_0x5ee597(0x1f9)](_0x4705e5=>{const _0x2e7ab4=_0x5ee597;var _0x55edc8;return((_0x55edc8=_0x4705e5[_0x2e7ab4(0x207)])===null||_0x55edc8===void 0x0?void 0x0:_0x55edc8['trim']())&&_0x4705e5[_0x2e7ab4(0x207)]!=='/';})['map'](_0x36e0bf=>{const _0x55ba67=_0x5ee597;var _0x9ecad1;return{'name':_0x36e0bf[_0x55ba67(0x207)][_0x55ba67(0x1ef)](),'description':((_0x9ecad1=_0x36e0bf['description'])===null||_0x9ecad1===void 0x0?void 0x0:_0x9ecad1[_0x55ba67(0x1ef)]())||_0x36e0bf[_0x55ba67(0x207)][_0x55ba67(0x1ef)]()};})[_0x5ee597(0x1f5)]((_0x4b36e1,_0x3d65e)=>_0x4b36e1[_0x5ee597(0x207)][_0x5ee597(0x1f2)](_0x3d65e[_0x5ee597(0x207)])),_0x29e229;}exports[a10_0x1f2c73(0x23b)]=getSwaggerJson;function buildTagHierarchy(_0xbec1c1,_0x50f92a){const _0xed5598=a10_0x1f2c73,_0x2df621=(_0x50f92a===null||_0x50f92a===void 0x0?void 0x0:_0x50f92a['prefix'])||null,_0x2bdcc4=(_0x50f92a===null||_0x50f92a===void 0x0?void 0x0:_0x50f92a['module'])||null,_0xba04dc=(_0xbec1c1===null||_0xbec1c1===void 0x0?void 0x0:_0xbec1c1[_0xed5598(0x1ef)]())||'';if(!_0xba04dc||_0xba04dc==='/')return[];if(!_0x2df621&&!_0x2bdcc4)return[_0xba04dc];const _0x40e342=[];_0x2df621&&_0x2df621!=='/'&&_0x2df621!==''&&_0x40e342[_0xed5598(0x211)](..._0x2df621['replace'](/^\/|\/$/g,'')[_0xed5598(0x20b)]('/')['filter'](Boolean));if(_0x2bdcc4&&_0x2bdcc4!==''){const _0x301554=_0x2bdcc4[_0xed5598(0x1ef)]();!_0x40e342[_0xed5598(0x242)](_0x301554)&&_0x40e342[_0xed5598(0x211)](_0x301554);}let _0x20053d=_0xba04dc;const _0x21d799=_0x40e342['join']('/');_0x21d799&&_0x20053d[_0xed5598(0x242)](_0x21d799)&&(_0x20053d=_0x20053d[_0xed5598(0x21f)](_0x20053d[_0xed5598(0x1f7)](_0x21d799)+_0x21d799[_0xed5598(0x1eb)]));_0x20053d=_0x20053d[_0xed5598(0x1e9)](/^\/|\/$/g,'')[_0xed5598(0x1ef)]();_0x20053d&&_0x40e342[_0xed5598(0x211)](_0x20053d);const _0x5847cd=[];let _0x2afe86='';for(const _0x5ba899 of _0x40e342){_0x2afe86=_0x2afe86?_0x2afe86+'/'+_0x5ba899:_0x5ba899,_0x5847cd[_0xed5598(0x211)](_0x2afe86);}return _0x5847cd['length']>0x0?_0x5847cd:[_0xba04dc];}function addTagsToMap(_0x4a3d9c,_0x3af0f7,_0x1fe429){_0x3af0f7['forEach']((_0x41a2a7,_0x1312ed)=>{const _0x2a8c65=a10_0x59aa;if(!_0x41a2a7||_0x41a2a7==='/')return;!_0x4a3d9c[_0x2a8c65(0x23e)](_0x41a2a7)&&_0x4a3d9c[_0x2a8c65(0x202)](_0x41a2a7,{'name':_0x41a2a7,'description':_0x1312ed===_0x3af0f7[_0x2a8c65(0x1eb)]-0x1?_0x1fe429:_0x41a2a7});});}function buildOperationId(_0x48021c,_0x3b74e1,_0x33b96b){const _0x2605a1=a10_0x1f2c73,_0x33c001=_0x48021c['split']('/')[_0x2605a1(0x1f9)](Boolean)['map'](_0x344b52=>{const _0xd3cea2=_0x2605a1,_0x4d6280=_0x344b52[_0xd3cea2(0x1f1)](/(?<=\{)[^\/]+(?=\})/);return _0x4d6280?_0x4d6280[0x0]:_0x344b52;})['filter'](_0x13c84c=>_0x13c84c['replace'](/[^a-zA-Z0-9]/g,'')),_0x13af52=_0x33c001['map'](_0x5187f1=>_0x5187f1[_0x2605a1(0x238)](0x0)[_0x2605a1(0x1ff)]()+_0x5187f1[_0x2605a1(0x21f)](0x1))[_0x2605a1(0x212)]('.'),_0x43f2f7=_0x13af52||'root',_0x407cf5=_0x33b96b[_0x2605a1(0x22f)](_0x43f2f7)||0x0;return _0x33b96b[_0x2605a1(0x202)](_0x43f2f7,_0x407cf5+0x1),_0x407cf5>0x0?''+_0x43f2f7+(_0x3b74e1[_0x2605a1(0x238)](0x0)[_0x2605a1(0x1ff)]()+_0x3b74e1[_0x2605a1(0x21f)](0x1)):_0x43f2f7;}function buildParameters(_0x3f1dcb,_0x32bca2,_0x2f0c5d=a10_0x1f2c73(0x22c)){const _0x4fa06d=a10_0x1f2c73;var _0x520e73;const _0x3ffce9=[],_0x41d9fb=[],_0x3152ad=[],_0x5610ce=[_0x4fa06d(0x244),_0x4fa06d(0x220),_0x4fa06d(0x1fc)][_0x4fa06d(0x242)](_0x2f0c5d['toUpperCase']()),_0x412ed4=_0x32bca2['match'](/(?<=\{)[^\/]+(?=\})/g)||[];for(const _0x2b0c26 of _0x412ed4){_0x3ffce9['push']({'name':_0x2b0c26,'in':PARAM_IN_PATH,'required':!![],'schema':{'type':_0x4fa06d(0x213)},'description':_0x4fa06d(0x23d)+_0x2b0c26});}for(const _0x2b5a8b of _0x3f1dcb){switch(_0x2b5a8b[_0x4fa06d(0x241)]){case _0x4fa06d(0x223):_0x3152ad[_0x4fa06d(0x211)](_0x2b5a8b);break;case _0x4fa06d(0x1f8):_0x3ffce9['push']({'name':_0x2b5a8b['key'],'in':PARAM_IN_QUERY,'required':_0x2b5a8b[_0x4fa06d(0x224)]||![],'schema':normalizeTypeSchema(_0x2b5a8b,![]),'description':_0x2b5a8b[_0x4fa06d(0x237)]||_0x2b5a8b[_0x4fa06d(0x21c)]||_0x2b5a8b[_0x4fa06d(0x245)]});break;case'path':break;case _0x4fa06d(0x1f0):_0x41d9fb[_0x4fa06d(0x211)](_0x2b5a8b);break;default:if(((_0x520e73=_0x2b5a8b[_0x4fa06d(0x1fa)])===null||_0x520e73===void 0x0?void 0x0:_0x520e73['length'])>0x0)_0x41d9fb[_0x4fa06d(0x211)](_0x2b5a8b);else _0x5610ce?_0x41d9fb[_0x4fa06d(0x211)](_0x2b5a8b):_0x3ffce9[_0x4fa06d(0x211)]({'name':_0x2b5a8b[_0x4fa06d(0x245)],'in':PARAM_IN_QUERY,'required':_0x2b5a8b[_0x4fa06d(0x224)]||![],'schema':normalizeTypeSchema(_0x2b5a8b,![]),'description':_0x2b5a8b[_0x4fa06d(0x237)]||_0x2b5a8b['title']||_0x2b5a8b[_0x4fa06d(0x245)]});}}if(_0x3152ad[_0x4fa06d(0x1eb)]>0x0)return{'parameters':_0x3ffce9,'requestBody':{'content':{[MEDIA_TYPE_FORM_DATA]:{'schema':buildMultipartFormDataSchema([..._0x3152ad,..._0x41d9fb])}},'required':!![]},'hasBody':!![]};if(_0x41d9fb[_0x4fa06d(0x1eb)]>0x0){const _0x2a850e=_0x41d9fb[_0x4fa06d(0x1f9)](_0x22bceb=>_0x22bceb[_0x4fa06d(0x224)])[_0x4fa06d(0x1f4)](_0x57d762=>_0x57d762['key']),_0x57bda4=buildProperties(_0x41d9fb,![]);return{'parameters':_0x3ffce9,'requestBody':{'content':{[MEDIA_TYPE_JSON]:{'schema':{'type':_0x4fa06d(0x214),'properties':_0x57bda4,..._0x2a850e[_0x4fa06d(0x1eb)]>0x0&&{'required':_0x2a850e}}}},'required':_0x41d9fb['some'](_0x5aaf5d=>_0x5aaf5d['required'])},'hasBody':!![]};}return{'parameters':_0x3ffce9,'hasBody':![]};}function buildMultipartFormDataSchema(_0x28228c){const _0x4922dd=a10_0x1f2c73,_0x72debe={},_0x107b01=[];for(const _0x355204 of _0x28228c){const _0x2afd3c=_0x355204[_0x4922dd(0x241)]===_0x4922dd(0x223);_0x72debe[_0x355204['key']]=_0x2afd3c?{'type':_0x4922dd(0x213),'format':_0x4922dd(0x21e)}:normalizeTypeSchema(_0x355204,![]);if(_0x355204[_0x4922dd(0x224)])_0x107b01[_0x4922dd(0x211)](_0x355204['key']);}const _0x860855={'type':'object','properties':_0x72debe};if(_0x107b01['length']>0x0)_0x860855[_0x4922dd(0x224)]=_0x107b01;return _0x860855;}function buildRouteResponse(_0x5d64d6){const _0x2c79f7=a10_0x1f2c73;var _0x4b49b0;if(!_0x5d64d6)return{'description':_0x2c79f7(0x201),'content':{[MEDIA_TYPE_JSON]:{'schema':{'oneOf':[{'$ref':_0x2c79f7(0x208)},{'$ref':'#/components/schemas/ApiResponseList'},{'$ref':_0x2c79f7(0x246)}]}}}};const _0x3b27ab=_0x5d64d6[_0x2c79f7(0x24d)]||'default',_0x3c4708=[];return _0x3b27ab==='custom'?_0x3c4708[_0x2c79f7(0x211)]({'type':_0x2c79f7(0x214),'properties':buildProperties(_0x5d64d6[_0x2c79f7(0x249)]||[],!![])}):_0x3c4708[_0x2c79f7(0x211)](buildDefaultResponseSchema(_0x5d64d6)),((_0x4b49b0=_0x5d64d6['errors'])===null||_0x4b49b0===void 0x0?void 0x0:_0x4b49b0[_0x2c79f7(0x1eb)])>0x0&&_0x3c4708[_0x2c79f7(0x211)](..._0x5d64d6[_0x2c79f7(0x22b)][_0x2c79f7(0x1f4)](_0x341ac5=>({'type':_0x2c79f7(0x214),'properties':{'code':{'type':_0x2c79f7(0x210),'description':'错误码:\x20'+_0x341ac5['code']},'message':{'type':_0x2c79f7(0x213),'description':_0x341ac5[_0x2c79f7(0x24b)]}},'example':{'code':_0x341ac5[_0x2c79f7(0x22e)],'message':_0x341ac5['message']}}))),{'description':_0x5d64d6[_0x2c79f7(0x237)]||_0x2c79f7(0x201),'content':{[MEDIA_TYPE_JSON]:{'schema':_0x3c4708[_0x2c79f7(0x1eb)]===0x1?_0x3c4708[0x0]:{'oneOf':_0x3c4708}}}};}function buildDefaultResponseSchema(_0x16329d){const _0x82dc1=a10_0x1f2c73,_0x2ef4d6=buildProperties(_0x16329d['properties']||[],!![]);if(_0x16329d[_0x82dc1(0x241)]===_0x82dc1(0x205))return{'type':_0x82dc1(0x214),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x82dc1(0x204),'items':_0x2ef4d6,'description':'返回数据列表'},'extra':{'type':_0x82dc1(0x214),'properties':{'pageinfo':{'type':'object','description':'分页参数'},'pagetotal':{'type':'integer','description':_0x82dc1(0x230)}}}},'required':['code']};if(_0x16329d['type']===_0x82dc1(0x204))return{'type':_0x82dc1(0x214),'properties':{...BASE_RESPONSE_PROPERTIES,'data':{'type':_0x82dc1(0x204),'items':_0x2ef4d6,'description':_0x82dc1(0x216)}},'required':['code']};return{'type':_0x82dc1(0x214),'properties':{...BASE_RESPONSE_PROPERTIES,'data':_0x2ef4d6},'required':[_0x82dc1(0x22e)]};}function normalizeTypeSchema(_0x39b47d,_0x41c05d=![]){const _0x5976fc=a10_0x1f2c73;var _0x4fd039,_0x2c079c,_0x1917d0,_0x4a74cc;const _0x496956=_0x39b47d['type']||_0x5976fc(0x213),_0x5f3ca1=_0x41c05d?_0x39b47d['description']||_0x39b47d[_0x5976fc(0x245)]:_0x39b47d[_0x5976fc(0x237)]||_0x39b47d[_0x5976fc(0x21c)]||_0x39b47d[_0x5976fc(0x245)];if(_0x496956===_0x5976fc(0x1f6)){const _0x4fe44b={'type':'string','format':_0x5976fc(0x1f6),'description':_0x5f3ca1};return _0x39b47d['default']!==undefined&&_0x39b47d[_0x5976fc(0x1ee)]!==''&&(_0x4fe44b['default']=_0x39b47d[_0x5976fc(0x1ee)]),_0x4fe44b;}if(_0x496956==='array'){const _0x5d4beb=((_0x4fd039=_0x39b47d[_0x5976fc(0x1fa)])===null||_0x4fd039===void 0x0?void 0x0:_0x4fd039['length'])>0x0?buildProperties(_0x39b47d[_0x5976fc(0x1fa)],_0x41c05d):{'type':'string'};return{'type':_0x5976fc(0x204),'items':_0x5d4beb,'description':_0x5f3ca1};}if(_0x496956===_0x5976fc(0x214)){const _0x4c1a2e=((_0x2c079c=_0x39b47d['children'])===null||_0x2c079c===void 0x0?void 0x0:_0x2c079c[_0x5976fc(0x1eb)])>0x0?buildProperties(_0x39b47d[_0x5976fc(0x1fa)],_0x41c05d):{};return{'type':_0x5976fc(0x214),'properties':_0x4c1a2e,'description':_0x5f3ca1};}const _0x34f167={'type':_0x496956,'description':_0x5f3ca1};return _0x39b47d['default']!==undefined&&_0x39b47d['default']!==''&&(_0x34f167['default']=_0x39b47d['default']),((_0x1917d0=_0x39b47d[_0x5976fc(0x226)])===null||_0x1917d0===void 0x0?void 0x0:_0x1917d0['min'])!==undefined&&(_0x34f167[_0x5976fc(0x1fe)]=_0x39b47d[_0x5976fc(0x226)][_0x5976fc(0x20a)]),((_0x4a74cc=_0x39b47d['rules'])===null||_0x4a74cc===void 0x0?void 0x0:_0x4a74cc[_0x5976fc(0x222)])!==undefined&&(_0x34f167[_0x5976fc(0x227)]=_0x39b47d[_0x5976fc(0x226)][_0x5976fc(0x222)]),_0x34f167;}function buildProperties(_0x429db8,_0x9bd170=![]){const _0x4121a0=a10_0x1f2c73;if(!_0x429db8||_0x429db8[_0x4121a0(0x1eb)]===0x0)return{};const _0x599ecf={};for(const _0x16240f of _0x429db8){_0x599ecf[_0x16240f[_0x4121a0(0x245)]]=normalizeTypeSchema(_0x16240f,_0x9bd170);}return _0x599ecf;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a11_0x12a59f=a11_0x357b;(function(_0x436a3e,_0x4bc7c7){var _0x243376=a11_0x357b,_0x5a3918=_0x436a3e();while(!![]){try{var _0x4ba3f0=parseInt(_0x243376(0x74))/0x1+-parseInt(_0x243376(0x8a))/0x2+parseInt(_0x243376(0x99))/0x3*(parseInt(_0x243376(0xa6))/0x4)+-parseInt(_0x243376(0x8d))/0x5*(parseInt(_0x243376(0x77))/0x6)+-parseInt(_0x243376(0xa4))/0x7+parseInt(_0x243376(0xb2))/0x8+-parseInt(_0x243376(0x73))/0x9;if(_0x4ba3f0===_0x4bc7c7)break;else _0x5a3918['push'](_0x5a3918['shift']());}catch(_0x164c3d){_0x5a3918['push'](_0x5a3918['shift']());}}}(a11_0x14a6,0xa2d8d));var a11_0x199502=(function(){var _0x121ca5=!![];return function(_0x4af218,_0x20bc13){var _0x72ebac=_0x121ca5?function(){var _0xe647c6=a11_0x357b;if(_0x20bc13){var _0x809ab3=_0x20bc13[_0xe647c6(0x7e)](_0x4af218,arguments);return _0x20bc13=null,_0x809ab3;}}:function(){};return _0x121ca5=![],_0x72ebac;};}()),a11_0x260b14=a11_0x199502(this,function(){var _0x2a7dc0=a11_0x357b;return a11_0x260b14['toString']()[_0x2a7dc0(0x79)](_0x2a7dc0(0x97))[_0x2a7dc0(0x90)]()[_0x2a7dc0(0xb0)](a11_0x260b14)[_0x2a7dc0(0x79)](_0x2a7dc0(0x97));});a11_0x260b14();'use strict';var __createBinding=this&&this[a11_0x12a59f(0x83)]||(Object[a11_0x12a59f(0xad)]?function(_0x3a6a28,_0x497485,_0x4b80fa,_0x10a1cf){var _0xf97897=a11_0x12a59f;if(_0x10a1cf===undefined)_0x10a1cf=_0x4b80fa;var _0x2fca75=Object[_0xf97897(0xae)](_0x497485,_0x4b80fa);(!_0x2fca75||('get'in _0x2fca75?!_0x497485[_0xf97897(0x7d)]:_0x2fca75[_0xf97897(0xb3)]||_0x2fca75[_0xf97897(0x9d)]))&&(_0x2fca75={'enumerable':!![],'get':function(){return _0x497485[_0x4b80fa];}}),Object['defineProperty'](_0x3a6a28,_0x10a1cf,_0x2fca75);}:function(_0x7f108,_0x40c6fa,_0x4ea15c,_0x439529){if(_0x439529===undefined)_0x439529=_0x4ea15c;_0x7f108[_0x439529]=_0x40c6fa[_0x4ea15c];}),__exportStar=this&&this[a11_0x12a59f(0x81)]||function(_0x1a9d1a,_0x36481f){var _0x4a3863=a11_0x12a59f;for(var _0x2eab36 in _0x1a9d1a)if(_0x2eab36!=='default'&&!Object['prototype'][_0x4a3863(0x8c)][_0x4a3863(0x91)](_0x36481f,_0x2eab36))__createBinding(_0x36481f,_0x1a9d1a,_0x2eab36);};Object['defineProperty'](exports,a11_0x12a59f(0x7d),{'value':!![]}),exports['getAppsConfig']=exports['ScopeEnum']=exports[a11_0x12a59f(0xb4)]=exports[a11_0x12a59f(0x82)]=exports[a11_0x12a59f(0xb1)]=exports[a11_0x12a59f(0x9c)]=exports['Logger']=exports[a11_0x12a59f(0xac)]=exports[a11_0x12a59f(0x9a)]=exports[a11_0x12a59f(0x96)]=exports[a11_0x12a59f(0x8e)]=exports[a11_0x12a59f(0x9e)]=exports[a11_0x12a59f(0xa1)]=exports[a11_0x12a59f(0x93)]=exports[a11_0x12a59f(0xb5)]=exports[a11_0x12a59f(0x8b)]=exports[a11_0x12a59f(0x80)]=exports[a11_0x12a59f(0x92)]=exports['ValidatorService']=exports[a11_0x12a59f(0x9f)]=exports['ExcelService']=exports[a11_0x12a59f(0xa9)]=exports[a11_0x12a59f(0x9b)]=exports[a11_0x12a59f(0x86)]=exports[a11_0x12a59f(0xaf)]=exports['ApiError']=exports[a11_0x12a59f(0x76)]=exports[a11_0x12a59f(0x89)]=exports[a11_0x12a59f(0x75)]=exports[a11_0x12a59f(0xaa)]=exports['Apitest']=exports[a11_0x12a59f(0xa0)]=void 0x0;const getAppsConfig_1=require(a11_0x12a59f(0x87));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x88),{'enumerable':!![],'get':function(){var _0x39ced4=a11_0x12a59f;return getAppsConfig_1[_0x39ced4(0x88)];}}),__exportStar(require(a11_0x12a59f(0xa3)),exports),__exportStar(require(a11_0x12a59f(0x94)),exports);var Action_1=require('./decorator/Action');Object[a11_0x12a59f(0xa8)](exports,'Action',{'enumerable':!![],'get':function(){var _0x1e224f=a11_0x12a59f;return Action_1[_0x1e224f(0xa0)];}});var ActionApitest_1=require(a11_0x12a59f(0xa2));Object['defineProperty'](exports,a11_0x12a59f(0x72),{'enumerable':!![],'get':function(){var _0x1169a4=a11_0x12a59f;return ActionApitest_1[_0x1169a4(0x72)];}});var Intercept_1=require(a11_0x12a59f(0x71));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0xaa),{'enumerable':!![],'get':function(){var _0x27d8c9=a11_0x12a59f;return Intercept_1[_0x27d8c9(0xaa)];}}),Object[a11_0x12a59f(0xa8)](exports,'IIntercept',{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a11_0x12a59f(0x98));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x89),{'enumerable':!![],'get':function(){var _0x19fc6c=a11_0x12a59f;return getRoutes_1[_0x19fc6c(0x89)];}});var getSwaggerJson_1=require(a11_0x12a59f(0x8f));Object['defineProperty'](exports,a11_0x12a59f(0x76),{'enumerable':!![],'get':function(){var _0x3006c8=a11_0x12a59f;return getSwaggerJson_1[_0x3006c8(0x76)];}});var ApiError_1=require(a11_0x12a59f(0x7f));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x85),{'enumerable':!![],'get':function(){var _0x719d80=a11_0x12a59f;return ApiError_1[_0x719d80(0x85)];}});var cache_1=require(a11_0x12a59f(0x7a));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0xaf),{'enumerable':!![],'get':function(){var _0x3a1370=a11_0x12a59f;return cache_1[_0x3a1370(0xaf)];}});function a11_0x14a6(){var _0x57889d=['Config','create','getOwnPropertyDescriptor','CacheService','constructor','Inject','3514616aexMls','writable','Singleton','Fields','@midwayjs/core','./decorator/Intercept','Apitest','1716372vJMvCY','849147qixcDo','IIntercept','getSwaggerJson','186kRFtNL','Logger','search','@anncic-api/cache','CustomConfiguration','./service/ApiService','__esModule','apply','./exception/ApiError','File','__exportStar','Scope','__createBinding','ExcelService','ApiError','EventService','./helper/getAppsConfig','getAppsConfig','getRoutes','899498WFjNAR','Files','hasOwnProperty','122530BNMfGt','Headers','./helper/getSwaggerJson','toString','call','Configuration','Body','./service/ApitestService','@anncic-api/validator','Init','(((.+)+)+)+$','./helper/getRoutes','12ZcVAMB','App','ApiService','Provide','configurable','Query','ValidatorError','Action','Param','./decorator/ActionApitest','./types/common','3611398Aanxlp','./service/ExcelService','1294604QqPlZW','ScopeEnum','defineProperty','ExcelStream','Intercept','ValidatorService'];a11_0x14a6=function(){return _0x57889d;};return a11_0x14a6();}var event_1=require('@anncic-api/event');Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x86),{'enumerable':!![],'get':function(){var _0x2302ea=a11_0x12a59f;return event_1[_0x2302ea(0x86)];}});var ApiService_1=require(a11_0x12a59f(0x7c));Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x9b),{'enumerable':!![],'get':function(){var _0x5bb847=a11_0x12a59f;return ApiService_1[_0x5bb847(0x9b)];}});var ExcelStream_1=require('./service/ExcelStream');Object[a11_0x12a59f(0xa8)](exports,'ExcelStream',{'enumerable':!![],'get':function(){var _0x4aecaa=a11_0x12a59f;return ExcelStream_1[_0x4aecaa(0xa9)];}});var ExcelService_1=require(a11_0x12a59f(0xa5));Object['defineProperty'](exports,a11_0x12a59f(0x84),{'enumerable':!![],'get':function(){var _0x4b1cd5=a11_0x12a59f;return ExcelService_1[_0x4b1cd5(0x84)];}});var validator_1=require(a11_0x12a59f(0x95));function a11_0x357b(_0x5e449f,_0x572c11){var _0x55b0e2=a11_0x14a6();return a11_0x357b=function(_0x260b14,_0x199502){_0x260b14=_0x260b14-0x70;var _0x14a6af=_0x55b0e2[_0x260b14];return _0x14a6af;},a11_0x357b(_0x5e449f,_0x572c11);}Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x9f),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a11_0x12a59f(0xa8)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x9ec882=a11_0x12a59f;return validator_1[_0x9ec882(0xab)];}});var configuration_1=require('./configuration');Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x92),{'enumerable':!![],'get':function(){var _0x3ecdc5=a11_0x12a59f;return configuration_1[_0x3ecdc5(0x7b)];}});var core_1=require(a11_0x12a59f(0x70));Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x15c815=a11_0x12a59f;return core_1[_0x15c815(0x80)];}}),Object['defineProperty'](exports,a11_0x12a59f(0x8b),{'enumerable':!![],'get':function(){var _0x2204cc=a11_0x12a59f;return core_1[_0x2204cc(0x8b)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0xb5),{'enumerable':!![],'get':function(){var _0x3c0932=a11_0x12a59f;return core_1[_0x3c0932(0xb5)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x93),{'enumerable':!![],'get':function(){var _0x262c79=a11_0x12a59f;return core_1[_0x262c79(0x93)];}}),Object['defineProperty'](exports,a11_0x12a59f(0xa1),{'enumerable':!![],'get':function(){var _0xad0e03=a11_0x12a59f;return core_1[_0xad0e03(0xa1)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x9e),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object['defineProperty'](exports,a11_0x12a59f(0x8e),{'enumerable':!![],'get':function(){var _0x4bd172=a11_0x12a59f;return core_1[_0x4bd172(0x8e)];}}),Object['defineProperty'](exports,a11_0x12a59f(0x96),{'enumerable':!![],'get':function(){var _0x57b670=a11_0x12a59f;return core_1[_0x57b670(0x96)];}});var core_2=require(a11_0x12a59f(0x70));Object[a11_0x12a59f(0xa8)](exports,'App',{'enumerable':!![],'get':function(){var _0x2835b0=a11_0x12a59f;return core_2[_0x2835b0(0x9a)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0xac),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x78),{'enumerable':!![],'get':function(){var _0x5d0bce=a11_0x12a59f;return core_2[_0x5d0bce(0x78)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x9c),{'enumerable':!![],'get':function(){var _0x34feb1=a11_0x12a59f;return core_2[_0x34feb1(0x9c)];}}),Object[a11_0x12a59f(0xa8)](exports,'Inject',{'enumerable':!![],'get':function(){var _0xe24b55=a11_0x12a59f;return core_2[_0xe24b55(0xb1)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0x82),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x23095f=a11_0x12a59f;return core_2[_0x23095f(0xb4)];}}),Object[a11_0x12a59f(0xa8)](exports,a11_0x12a59f(0xa7),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a11_0x12a59f(0x88)]=getAppsConfig_1[a11_0x12a59f(0x88)];
|
|
1
|
+
var a11_0x339624=a11_0xc2e4;(function(_0x587f6c,_0x2cff72){var _0x10fcbb=a11_0xc2e4,_0x5bc813=_0x587f6c();while(!![]){try{var _0x41e44a=parseInt(_0x10fcbb(0x12e))/0x1*(parseInt(_0x10fcbb(0x120))/0x2)+parseInt(_0x10fcbb(0x106))/0x3+-parseInt(_0x10fcbb(0x11f))/0x4*(parseInt(_0x10fcbb(0x124))/0x5)+parseInt(_0x10fcbb(0x117))/0x6+-parseInt(_0x10fcbb(0xf2))/0x7*(-parseInt(_0x10fcbb(0xed))/0x8)+parseInt(_0x10fcbb(0x11e))/0x9+parseInt(_0x10fcbb(0x116))/0xa*(-parseInt(_0x10fcbb(0x130))/0xb);if(_0x41e44a===_0x2cff72)break;else _0x5bc813['push'](_0x5bc813['shift']());}catch(_0x4ee835){_0x5bc813['push'](_0x5bc813['shift']());}}}(a11_0x4cdc,0x6f107));var a11_0x3ee29b=(function(){var _0x3db473=!![];return function(_0x1dd9ed,_0x2a5bb3){var _0x4b0213=_0x3db473?function(){var _0x146514=a11_0xc2e4;if(_0x2a5bb3){var _0x1c0c1e=_0x2a5bb3[_0x146514(0xef)](_0x1dd9ed,arguments);return _0x2a5bb3=null,_0x1c0c1e;}}:function(){};return _0x3db473=![],_0x4b0213;};}()),a11_0x5c327c=a11_0x3ee29b(this,function(){var _0x2eadd2=a11_0xc2e4;return a11_0x5c327c[_0x2eadd2(0x125)]()[_0x2eadd2(0x12c)](_0x2eadd2(0x12d))[_0x2eadd2(0x125)]()[_0x2eadd2(0x107)](a11_0x5c327c)[_0x2eadd2(0x12c)]('(((.+)+)+)+$');});a11_0x5c327c();'use strict';var __createBinding=this&&this[a11_0x339624(0x131)]||(Object[a11_0x339624(0x10a)]?function(_0x4b3a13,_0x2531bb,_0x429917,_0x8e486f){var _0x618a8b=a11_0x339624;if(_0x8e486f===undefined)_0x8e486f=_0x429917;var _0x5abaae=Object[_0x618a8b(0x108)](_0x2531bb,_0x429917);(!_0x5abaae||('get'in _0x5abaae?!_0x2531bb[_0x618a8b(0x121)]:_0x5abaae['writable']||_0x5abaae[_0x618a8b(0x12b)]))&&(_0x5abaae={'enumerable':!![],'get':function(){return _0x2531bb[_0x429917];}}),Object[_0x618a8b(0x10d)](_0x4b3a13,_0x8e486f,_0x5abaae);}:function(_0x2a9785,_0x47b388,_0x6487e2,_0x4c84ac){if(_0x4c84ac===undefined)_0x4c84ac=_0x6487e2;_0x2a9785[_0x4c84ac]=_0x47b388[_0x6487e2];}),__exportStar=this&&this['__exportStar']||function(_0x56a727,_0xcb7b77){var _0x2cad7b=a11_0x339624;for(var _0x47d445 in _0x56a727)if(_0x47d445!==_0x2cad7b(0x127)&&!Object[_0x2cad7b(0xfc)][_0x2cad7b(0xff)]['call'](_0xcb7b77,_0x47d445))__createBinding(_0xcb7b77,_0x56a727,_0x47d445);};Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x121),{'value':!![]}),exports[a11_0x339624(0x12f)]=exports[a11_0x339624(0x101)]=exports[a11_0x339624(0x11d)]=exports[a11_0x339624(0xf9)]=exports['Inject']=exports[a11_0x339624(0x114)]=exports[a11_0x339624(0x115)]=exports[a11_0x339624(0x129)]=exports['App']=exports['Init']=exports[a11_0x339624(0x113)]=exports['Query']=exports[a11_0x339624(0x102)]=exports[a11_0x339624(0xf4)]=exports[a11_0x339624(0x10e)]=exports[a11_0x339624(0x128)]=exports[a11_0x339624(0x119)]=exports['Configuration']=exports[a11_0x339624(0x118)]=exports['ValidatorError']=exports[a11_0x339624(0x132)]=exports['ExcelStream']=exports['ApiService']=exports[a11_0x339624(0xf8)]=exports[a11_0x339624(0xf6)]=exports[a11_0x339624(0x110)]=exports[a11_0x339624(0x10c)]=exports[a11_0x339624(0x11c)]=exports[a11_0x339624(0xf3)]=exports[a11_0x339624(0x111)]=exports[a11_0x339624(0x10f)]=exports['Action']=void 0x0;const getAppsConfig_1=require(a11_0x339624(0xfa));Object[a11_0x339624(0x10d)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x340219=a11_0x339624;return getAppsConfig_1[_0x340219(0x12f)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a11_0x339624(0x11b)),exports);var Action_1=require(a11_0x339624(0x100));Object['defineProperty'](exports,a11_0x339624(0x112),{'enumerable':!![],'get':function(){var _0x28cdfe=a11_0x339624;return Action_1[_0x28cdfe(0x112)];}});var ActionApitest_1=require(a11_0x339624(0xf7));Object[a11_0x339624(0x10d)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x1bb440=a11_0x339624;return ActionApitest_1[_0x1bb440(0x10f)];}});var Intercept_1=require('./decorator/Intercept');Object[a11_0x339624(0x10d)](exports,'Intercept',{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object['defineProperty'](exports,a11_0x339624(0xf3),{'enumerable':!![],'get':function(){var _0x1f6a81=a11_0x339624;return Intercept_1[_0x1f6a81(0xf3)];}});var getRoutes_1=require(a11_0x339624(0x122));Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x11c),{'enumerable':!![],'get':function(){var _0x23887e=a11_0x339624;return getRoutes_1[_0x23887e(0x11c)];}});var getSwaggerJson_1=require(a11_0x339624(0x109));Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x10c),{'enumerable':!![],'get':function(){var _0x4ab74e=a11_0x339624;return getSwaggerJson_1[_0x4ab74e(0x10c)];}});var ApiError_1=require(a11_0x339624(0xf5));Object['defineProperty'](exports,a11_0x339624(0x110),{'enumerable':!![],'get':function(){var _0xb5e99b=a11_0x339624;return ApiError_1[_0xb5e99b(0x110)];}});var cache_1=require(a11_0x339624(0x104));Object['defineProperty'](exports,a11_0x339624(0xf6),{'enumerable':!![],'get':function(){var _0x329dc3=a11_0x339624;return cache_1[_0x329dc3(0xf6)];}});var event_1=require(a11_0x339624(0x11a));Object[a11_0x339624(0x10d)](exports,a11_0x339624(0xf8),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a11_0x339624(0x103));Object['defineProperty'](exports,a11_0x339624(0x105),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelStream_1=require('./service/ExcelStream');Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x10b),{'enumerable':!![],'get':function(){var _0x4b14b6=a11_0x339624;return ExcelStream_1[_0x4b14b6(0x10b)];}});var ExcelService_1=require('./service/ExcelService');Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x132),{'enumerable':!![],'get':function(){var _0x2a6379=a11_0x339624;return ExcelService_1[_0x2a6379(0x132)];}});var validator_1=require(a11_0x339624(0x126));Object[a11_0x339624(0x10d)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x4c72c3=a11_0x339624;return validator_1[_0x4c72c3(0x12a)];}}),Object['defineProperty'](exports,a11_0x339624(0x118),{'enumerable':!![],'get':function(){var _0x92cedf=a11_0x339624;return validator_1[_0x92cedf(0x118)];}});var configuration_1=require('./configuration');Object[a11_0x339624(0x10d)](exports,a11_0x339624(0xee),{'enumerable':!![],'get':function(){var _0x129ddc=a11_0x339624;return configuration_1[_0x129ddc(0xfd)];}});var core_1=require(a11_0x339624(0x123));Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x119),{'enumerable':!![],'get':function(){var _0x24a7b8=a11_0x339624;return core_1[_0x24a7b8(0x119)];}}),Object['defineProperty'](exports,'Files',{'enumerable':!![],'get':function(){var _0x146564=a11_0x339624;return core_1[_0x146564(0x128)];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x10e),{'enumerable':!![],'get':function(){var _0x35e767=a11_0x339624;return core_1[_0x35e767(0x10e)];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0xf4),{'enumerable':!![],'get':function(){var _0x327f2f=a11_0x339624;return core_1[_0x327f2f(0xf4)];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x102),{'enumerable':!![],'get':function(){var _0x521ee4=a11_0x339624;return core_1[_0x521ee4(0x102)];}}),Object[a11_0x339624(0x10d)](exports,'Query',{'enumerable':!![],'get':function(){var _0x5ce7c5=a11_0x339624;return core_1[_0x5ce7c5(0xfb)];}}),Object['defineProperty'](exports,a11_0x339624(0x113),{'enumerable':!![],'get':function(){var _0x28d1de=a11_0x339624;return core_1[_0x28d1de(0x113)];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0xf1),{'enumerable':!![],'get':function(){return core_1['Init'];}});function a11_0xc2e4(_0x1072d7,_0xaa2603){var _0x4b3c24=a11_0x4cdc();return a11_0xc2e4=function(_0x5c327c,_0x3ee29b){_0x5c327c=_0x5c327c-0xed;var _0x4cdca1=_0x4b3c24[_0x5c327c];return _0x4cdca1;},a11_0xc2e4(_0x1072d7,_0xaa2603);}var core_2=require(a11_0x339624(0x123));function a11_0x4cdc(){var _0x32fe99=['./helper/getSwaggerJson','create','ExcelStream','getSwaggerJson','defineProperty','Fields','Apitest','ApiError','Intercept','Action','Headers','Provide','Logger','10aDRXoe','2519616sYcytO','ValidatorService','File','@anncic-api/event','./service/ApitestService','getRoutes','Singleton','2320353UVlEkD','1064900EkQzpW','2QcCnPe','__esModule','./helper/getRoutes','@midwayjs/core','5wxzHdH','toString','@anncic-api/validator','default','Files','Config','ValidatorError','configurable','search','(((.+)+)+)+$','905031ehEtvF','getAppsConfig','23606836AoQOlJ','__createBinding','ExcelService','8IIYJon','Configuration','apply','App','Init','4427318QiZdsa','IIntercept','Body','./exception/ApiError','CacheService','./decorator/ActionApitest','EventService','Scope','./helper/getAppsConfig','Query','prototype','CustomConfiguration','Inject','hasOwnProperty','./decorator/Action','ScopeEnum','Param','./service/ApiService','@anncic-api/cache','ApiService','1955886UlxTWl','constructor','getOwnPropertyDescriptor'];a11_0x4cdc=function(){return _0x32fe99;};return a11_0x4cdc();}Object['defineProperty'](exports,a11_0x339624(0xf0),{'enumerable':!![],'get':function(){var _0x862c5=a11_0x339624;return core_2[_0x862c5(0xf0)];}}),Object[a11_0x339624(0x10d)](exports,'Config',{'enumerable':!![],'get':function(){var _0x330d72=a11_0x339624;return core_2[_0x330d72(0x129)];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x115),{'enumerable':!![],'get':function(){var _0x2546f4=a11_0x339624;return core_2[_0x2546f4(0x115)];}}),Object[a11_0x339624(0x10d)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x45ed28=a11_0x339624;return core_2[_0x45ed28(0x114)];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){var _0x765caf=a11_0x339624;return core_2[_0x765caf(0xfe)];}}),Object[a11_0x339624(0x10d)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x2a3c36=a11_0x339624;return core_2[_0x2a3c36(0xf9)];}}),Object[a11_0x339624(0x10d)](exports,'Singleton',{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a11_0x339624(0x10d)](exports,a11_0x339624(0x101),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global['getAppsConfig']=getAppsConfig_1[a11_0x339624(0x12f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a12_0x3f4a04=a12_0x1c1e;(function(_0xd174f2,_0x502f05){var _0x320b0f=a12_0x1c1e,_0xee7843=_0xd174f2();while(!![]){try{var _0x21cd0d=parseInt(_0x320b0f(0x10c))/0x1+parseInt(_0x320b0f(0x11b))/0x2*(-parseInt(_0x320b0f(0x130))/0x3)+parseInt(_0x320b0f(0x101))/0x4*(parseInt(_0x320b0f(0x128))/0x5)+-parseInt(_0x320b0f(0x112))/0x6+parseInt(_0x320b0f(0x124))/0x7*(-parseInt(_0x320b0f(0xfd))/0x8)+-parseInt(_0x320b0f(0x10f))/0x9+parseInt(_0x320b0f(0xff))/0xa*(parseInt(_0x320b0f(0x107))/0xb);if(_0x21cd0d===_0x502f05)break;else _0xee7843['push'](_0xee7843['shift']());}catch(_0x1772fb){_0xee7843['push'](_0xee7843['shift']());}}}(a12_0x2c07,0x7465a));var a12_0x55454=(function(){var _0x4cde6b=!![];return function(_0x48f52b,_0x1c24fb){var _0x4f1a1d=_0x4cde6b?function(){if(_0x1c24fb){var _0x429a2e=_0x1c24fb['apply'](_0x48f52b,arguments);return _0x1c24fb=null,_0x429a2e;}}:function(){};return _0x4cde6b=![],_0x4f1a1d;};}()),a12_0x4e2b58=a12_0x55454(this,function(){var _0x81f4f0=a12_0x1c1e;return a12_0x4e2b58[_0x81f4f0(0x13a)]()[_0x81f4f0(0x132)](_0x81f4f0(0x139))[_0x81f4f0(0x13a)]()[_0x81f4f0(0x135)](a12_0x4e2b58)['search']('(((.+)+)+)+$');});function a12_0x2c07(){var _0x2b4e6f=['ApiError','../exception/ApiError','TIMEOUT_LOGINTIME','5oQCIFh','Singleton','token','length','password','__esModule','padEnd','device','270sfSzWa','__decorate','search','entries','config','constructor','devices','HEADERS_CHECKCODE','defineProperty','(((.+)+)+)+$','toString','function','MD5','prototype','验证失败','53816IEBEyy','checksign','8516720YwVZGc','design:type','1096360sYvwDV','Provide','metadata','checkcode','decorate','ApiService','11gWKGGi','toLowerCase','HEADERS_LACK','requesttime','getsign','318599luMdIT','@midwayjs/core','undefined','2586537xIxkaI','sort','secret','292986ABJkyd','TIMEOUT','now','logintimeout','push','ScopeEnum','fromEntries','timeout','join','1324dzqJAc','abs','map','secret=','signature','HEADERS_SIGNATURE','getOwnPropertyDescriptor','object','substring','595lRmLkG'];a12_0x2c07=function(){return _0x2b4e6f;};return a12_0x2c07();}function a12_0x1c1e(_0xeebc50,_0x1dbe81){var _0x331ebb=a12_0x2c07();return a12_0x1c1e=function(_0x4e2b58,_0x55454){_0x4e2b58=_0x4e2b58-0xfc;var _0x2c07e9=_0x331ebb[_0x4e2b58];return _0x2c07e9;},a12_0x1c1e(_0xeebc50,_0x1dbe81);}a12_0x4e2b58();'use strict';var __decorate=this&&this[a12_0x3f4a04(0x131)]||function(_0x19a650,_0x4e7897,_0x2a8f65,_0x4197ea){var _0x3930d2=a12_0x3f4a04,_0x2312ab=arguments[_0x3930d2(0x12b)],_0x282e40=_0x2312ab<0x3?_0x4e7897:_0x4197ea===null?_0x4197ea=Object[_0x3930d2(0x121)](_0x4e7897,_0x2a8f65):_0x4197ea,_0x3eb085;if(typeof Reflect===_0x3930d2(0x122)&&typeof Reflect[_0x3930d2(0x105)]==='function')_0x282e40=Reflect['decorate'](_0x19a650,_0x4e7897,_0x2a8f65,_0x4197ea);else{for(var _0x1e107f=_0x19a650[_0x3930d2(0x12b)]-0x1;_0x1e107f>=0x0;_0x1e107f--)if(_0x3eb085=_0x19a650[_0x1e107f])_0x282e40=(_0x2312ab<0x3?_0x3eb085(_0x282e40):_0x2312ab>0x3?_0x3eb085(_0x4e7897,_0x2a8f65,_0x282e40):_0x3eb085(_0x4e7897,_0x2a8f65))||_0x282e40;}return _0x2312ab>0x3&&_0x282e40&&Object[_0x3930d2(0x138)](_0x4e7897,_0x2a8f65,_0x282e40),_0x282e40;},__metadata=this&&this['__metadata']||function(_0x3128a9,_0x36bf65){var _0x4c712d=a12_0x3f4a04;if(typeof Reflect===_0x4c712d(0x122)&&typeof Reflect[_0x4c712d(0x103)]===_0x4c712d(0x13b))return Reflect[_0x4c712d(0x103)](_0x3128a9,_0x36bf65);};Object[a12_0x3f4a04(0x138)](exports,a12_0x3f4a04(0x12d),{'value':!![]}),exports[a12_0x3f4a04(0x106)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a12_0x3f4a04(0x10d)),ApiError_1=require(a12_0x3f4a04(0x126));let ApiService=class ApiService{[a12_0x3f4a04(0x12c)](_0x4f084b){var _0x41def8=a12_0x3f4a04,_0xbd0c00;return _0x4f084b?(0x0,crypto_js_1[_0x41def8(0x13c)])(''+_0x4f084b+(0x0,crypto_js_1[_0x41def8(0x13c)])((0x0,crypto_js_1[_0x41def8(0x13c)])(''+_0x4f084b)[_0x41def8(0x13a)]()+(''+((_0xbd0c00=this[_0x41def8(0x134)])===null||_0xbd0c00===void 0x0?void 0x0:_0xbd0c00['password'])))[_0x41def8(0x13a)]())[_0x41def8(0x13a)]():'';}['getcheck'](_0x27f35a,_0x34c447,_0x3baa00=Date[a12_0x3f4a04(0x114)]()){return{'Token':_0x27f35a,'Logintime':_0x3baa00,'Checkcode':this['checkcode'](_0x27f35a,_0x34c447,_0x3baa00)};}[a12_0x3f4a04(0x10b)](_0x1c11f5={}){var _0x52d23e=a12_0x3f4a04,_0x30d25e,_0x1da255;const _0x30f571=[],_0x4ca71a=Object[_0x52d23e(0x118)](Object[_0x52d23e(0x133)](_0x1c11f5)['map'](_0x4837c2=>[_0x4837c2[0x0][_0x52d23e(0x108)](),_0x4837c2[0x1]]));for(let _0x52e45e of[_0x52d23e(0x12f),'requesttime','token','logintime',_0x52d23e(0x104)]){if(typeof _0x4ca71a[_0x52e45e]==_0x52d23e(0x10e))throw new AnnError(ApiError_1[_0x52d23e(0x125)][_0x52d23e(0x109)],{'message':_0x52d23e(0xfc)});_0x30f571['push'](_0x52e45e+'='+_0x4ca71a[_0x52e45e]);}_0x4ca71a[_0x52d23e(0x10a)]&&((_0x30d25e=_0x4ca71a[_0x52d23e(0x10a)])===null||_0x30d25e===void 0x0?void 0x0:_0x30d25e[_0x52d23e(0x12b)])==0xa&&(_0x4ca71a['requesttime']=_0x4ca71a[_0x52d23e(0x10a)]*0x3e8);if(this[_0x52d23e(0x134)][_0x52d23e(0x119)]&&parseInt((''+Date[_0x52d23e(0x114)]())[_0x52d23e(0x123)](0x0,0xd)[_0x52d23e(0x12e)](0xd,'0'))-parseInt((''+Math[_0x52d23e(0x11c)](_0x4ca71a[_0x52d23e(0x10a)]))[_0x52d23e(0x123)](0x0,0xd)[_0x52d23e(0x12e)](0xd,'0'))>parseInt(this[_0x52d23e(0x134)][_0x52d23e(0x119)]))throw new AnnError(ApiError_1[_0x52d23e(0x125)][_0x52d23e(0x113)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x4ca71a['requesttime'],'timestamp':Date[_0x52d23e(0x114)]()});if((((_0x1da255=this['config'][_0x52d23e(0x136)][_0x4ca71a[_0x52d23e(0x12f)]])===null||_0x1da255===void 0x0?void 0x0:_0x1da255[_0x52d23e(0x115)])||0x0)>0x0&&Date['now']()-Math[_0x52d23e(0x11c)](_0x4ca71a['logintime'])>this[_0x52d23e(0x134)]['devices'][_0x4ca71a['device']][_0x52d23e(0x115)])throw new AnnError(ApiError_1[_0x52d23e(0x125)][_0x52d23e(0x127)]);if(!this['config'][_0x52d23e(0x136)][_0x4ca71a[_0x52d23e(0x12f)]]||!this['config']['devices'][_0x4ca71a[_0x52d23e(0x12f)]][_0x52d23e(0x111)]||!this['config'][_0x52d23e(0x136)][_0x4ca71a[_0x52d23e(0x12f)]][_0x52d23e(0x104)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x4ca71a[_0x52d23e(0x12a)]&&_0x4ca71a[_0x52d23e(0x104)]!=this[_0x52d23e(0x104)](_0x4ca71a['token'],_0x4ca71a[_0x52d23e(0x12f)],_0x4ca71a['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x52d23e(0x137)]);return _0x30f571[_0x52d23e(0x116)](_0x52d23e(0x11e)+this[_0x52d23e(0x134)][_0x52d23e(0x136)][_0x4ca71a[_0x52d23e(0x12f)]][_0x52d23e(0x111)]),(0x0,crypto_js_1[_0x52d23e(0x13c)])(_0x30f571[_0x52d23e(0x110)]()[_0x52d23e(0x11a)](''))['toString']();}[a12_0x3f4a04(0x104)](_0x14355d,_0x3b0a63,_0x53b15d=Date[a12_0x3f4a04(0x114)]()){var _0x5cbf0e=a12_0x3f4a04,_0x398db3,_0x4f016f,_0x30cdd5;if(!((_0x398db3=this[_0x5cbf0e(0x134)])===null||_0x398db3===void 0x0?void 0x0:_0x398db3[_0x5cbf0e(0x136)][_0x3b0a63])||!((_0x30cdd5=(_0x4f016f=this[_0x5cbf0e(0x134)])===null||_0x4f016f===void 0x0?void 0x0:_0x4f016f[_0x5cbf0e(0x136)][_0x3b0a63])===null||_0x30cdd5===void 0x0?void 0x0:_0x30cdd5[_0x5cbf0e(0x104)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x5cbf0e(0x13c)])(''+_0x14355d+(0x0,crypto_js_1[_0x5cbf0e(0x13c)])(''+_0x53b15d+(''+this['config']['devices'][_0x3b0a63]['checkcode']))[_0x5cbf0e(0x13a)]())[_0x5cbf0e(0x13a)]();}[a12_0x3f4a04(0xfe)](_0x1051bc={}){var _0xf7354c=a12_0x3f4a04;const _0x452a53=Object['fromEntries'](Object['entries'](_0x1051bc)[_0xf7354c(0x11d)](_0x1e028b=>[_0x1e028b[0x0][_0xf7354c(0x108)](),_0x1e028b[0x1]]));if(!(_0x452a53===null||_0x452a53===void 0x0?void 0x0:_0x452a53[_0xf7354c(0x11f)]))throw new AnnError(ApiError_1[_0xf7354c(0x125)][_0xf7354c(0x109)],{'message':_0xf7354c(0xfc)});if((_0x452a53===null||_0x452a53===void 0x0?void 0x0:_0x452a53[_0xf7354c(0x11f)])!=this['getsign'](_0x452a53))throw new AnnError(ApiError_1['ApiError'][_0xf7354c(0x120)],{'message':_0xf7354c(0xfc)});return!![];}};__decorate([(0x0,core_1['Config'])('anncicapi'),__metadata(a12_0x3f4a04(0x100),Object)],ApiService[a12_0x3f4a04(0x13d)],a12_0x3f4a04(0x134),void 0x0),ApiService=__decorate([(0x0,core_1[a12_0x3f4a04(0x102)])(),(0x0,core_1['Scope'])(core_1[a12_0x3f4a04(0x117)][a12_0x3f4a04(0x129)])],ApiService),exports[a12_0x3f4a04(0x106)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x5b040f=a13_0x4158;(function(_0x1300c0,_0x30a6e9){const _0x48ca51=a13_0x4158,_0x56159b=_0x1300c0();while(!![]){try{const _0x23ffdc=-parseInt(_0x48ca51(0x235))/0x1*(-parseInt(_0x48ca51(0x22d))/0x2)+parseInt(_0x48ca51(0x212))/0x3+-parseInt(_0x48ca51(0x1fb))/0x4+parseInt(_0x48ca51(0x237))/0x5+parseInt(_0x48ca51(0x1f3))/0x6+-parseInt(_0x48ca51(0x21f))/0x7*(parseInt(_0x48ca51(0x214))/0x8)+-parseInt(_0x48ca51(0x1f0))/0x9*(parseInt(_0x48ca51(0x208))/0xa);if(_0x23ffdc===_0x30a6e9)break;else _0x56159b['push'](_0x56159b['shift']());}catch(_0x59f73e){_0x56159b['push'](_0x56159b['shift']());}}}(a13_0x4996,0xf0e78));const a13_0xc3c512=(function(){let _0x2c0f5b=!![];return function(_0x5ceec2,_0x5f09ac){const _0x43c8a8=_0x2c0f5b?function(){if(_0x5f09ac){const _0x5cb207=_0x5f09ac['apply'](_0x5ceec2,arguments);return _0x5f09ac=null,_0x5cb207;}}:function(){};return _0x2c0f5b=![],_0x43c8a8;};}()),a13_0x9f10e6=a13_0xc3c512(this,function(){const _0x19a1c9=a13_0x4158;return a13_0x9f10e6[_0x19a1c9(0x205)]()[_0x19a1c9(0x21e)](_0x19a1c9(0x1f7))[_0x19a1c9(0x205)]()[_0x19a1c9(0x20f)](a13_0x9f10e6)[_0x19a1c9(0x21e)]('(((.+)+)+)+$');});a13_0x9f10e6();'use strict';var __decorate=this&&this['__decorate']||function(_0x28b66d,_0x417322,_0x5de2c,_0x5e1c04){const _0x224527=a13_0x4158;var _0x41a8d3=arguments[_0x224527(0x200)],_0x64c2ea=_0x41a8d3<0x3?_0x417322:_0x5e1c04===null?_0x5e1c04=Object[_0x224527(0x233)](_0x417322,_0x5de2c):_0x5e1c04,_0x13df5b;if(typeof Reflect===_0x224527(0x202)&&typeof Reflect[_0x224527(0x236)]===_0x224527(0x22b))_0x64c2ea=Reflect[_0x224527(0x236)](_0x28b66d,_0x417322,_0x5de2c,_0x5e1c04);else{for(var _0x27facc=_0x28b66d[_0x224527(0x200)]-0x1;_0x27facc>=0x0;_0x27facc--)if(_0x13df5b=_0x28b66d[_0x27facc])_0x64c2ea=(_0x41a8d3<0x3?_0x13df5b(_0x64c2ea):_0x41a8d3>0x3?_0x13df5b(_0x417322,_0x5de2c,_0x64c2ea):_0x13df5b(_0x417322,_0x5de2c))||_0x64c2ea;}return _0x41a8d3>0x3&&_0x64c2ea&&Object[_0x224527(0x211)](_0x417322,_0x5de2c,_0x64c2ea),_0x64c2ea;},__metadata=this&&this[a13_0x5b040f(0x1f9)]||function(_0x47402b,_0x13d16e){const _0x2e626a=a13_0x5b040f;if(typeof Reflect==='object'&&typeof Reflect[_0x2e626a(0x23d)]==='function')return Reflect[_0x2e626a(0x23d)](_0x47402b,_0x13d16e);},__param=this&&this[a13_0x5b040f(0x217)]||function(_0x26f8b7,_0xb86d34){return function(_0x57c169,_0x1fbc32){_0xb86d34(_0x57c169,_0x1fbc32,_0x26f8b7);};};Object[a13_0x5b040f(0x211)](exports,a13_0x5b040f(0x218),{'value':!![]}),exports['ApitestStaticController']=exports[a13_0x5b040f(0x1ee)]=void 0x0;const path_1=require(a13_0x5b040f(0x1f1)),fs_1=require('fs'),core_1=require(a13_0x5b040f(0x232)),core_2=require(a13_0x5b040f(0x232)),core_3=require(a13_0x5b040f(0x232)),getRoutes_1=require(a13_0x5b040f(0x228));let ApitestService=class ApitestService{async[a13_0x5b040f(0x220)](_0x1f738a){const _0x1dd7f3=a13_0x5b040f,_0x2be8bf=(0x0,getRoutes_1['getRoutes'])(_0x1f738a),_0x57cd66=[];for(let _0x25c1e4 in _0x2be8bf){for(let _0x372bfa in _0x2be8bf[_0x25c1e4][_0x1dd7f3(0x238)]){let _0x165103=_0x2be8bf[_0x25c1e4][_0x1dd7f3(0x238)][_0x372bfa],_0x13ece4=[];for(let _0x279e27 in _0x165103['request']){_0x13ece4[_0x1dd7f3(0x22e)](_0x165103[_0x1dd7f3(0x22f)][_0x279e27]);}_0x57cd66[_0x1dd7f3(0x22e)]({'title':_0x2be8bf[_0x25c1e4]['summary']+':'+_0x165103[_0x1dd7f3(0x20d)],'prefix':_0x2be8bf[_0x25c1e4][_0x1dd7f3(0x1ff)],'router':_0x165103[_0x1dd7f3(0x230)],'method':_0x165103['method'],'describe':_0x165103['description']||'','filepath':_0x2be8bf[_0x25c1e4][_0x1dd7f3(0x1f8)]||'','request':_0x13ece4});}}const _0x52d20f=(0x0,path_1[_0x1dd7f3(0x215)])(__dirname,_0x1dd7f3(0x209));return(0x0,fs_1['readFileSync'])(_0x52d20f,{'encoding':_0x1dd7f3(0x1f5)})[_0x1dd7f3(0x201)](/__res__/g,'/apiteststatic/')['replace'](_0x1dd7f3(0x231),JSON[_0x1dd7f3(0x23b)](_0x57cd66))['replace'](_0x1dd7f3(0x20c),JSON['stringify'](this[_0x1dd7f3(0x21d)]['devices']));}};function a13_0x4996(){const _0x39c425=['application/javascript;\x20charset=utf-8','set','text/css;\x20charset=utf-8','/apitest-:module','../helper/getRoutes','Controller','MidwayEnvironmentService','function','Param','3923566ODxmef','push','request','route','__apiList__','@midwayjs/core','getOwnPropertyDescriptor','apitesthtml','1sqHZfi','decorate','8979885uqqNoq','routes','ctx','public,\x20max-age=604800','stringify','content-type','metadata','design:returntype','ApitestService','substring','1955628UpvEGz','path','ScopeEnum','8139306QKVAis','Inject','utf-8','../../public/','(((.+)+)+)+$','filepath','__metadata','url','2783620yRNkYW','existsSync','apitest','ApitestStaticController','prefix','length','replace','object','Provide','.js','toString','isDevelopmentEnvironment','Config','150hDMfsn','../../public/index.html','design:type','apitestmodule','__devices__','summary','Environment','constructor','/apitest','defineProperty','2330505PJJWUJ','design:paramtypes','584072yGUPaK','join','/index.html','__param','__esModule','Get','Singleton','anncicapi','prototype','config','search','91xfSFND','apidoc','Request','cache-control','apiteststatic'];a13_0x4996=function(){return _0x39c425;};return a13_0x4996();}__decorate([(0x0,core_3[a13_0x5b040f(0x207)])(a13_0x5b040f(0x21b)),__metadata(a13_0x5b040f(0x20a),Object)],ApitestService[a13_0x5b040f(0x21c)],a13_0x5b040f(0x21d),void 0x0),ApitestService=__decorate([(0x0,core_2[a13_0x5b040f(0x203)])(a13_0x5b040f(0x1fd)),(0x0,core_3['Scope'])(core_3[a13_0x5b040f(0x1f2)][a13_0x5b040f(0x21a)])],ApitestService),exports[a13_0x5b040f(0x1ee)]=ApitestService;function a13_0x4158(_0x10c161,_0x11cbf9){const _0x31b7c6=a13_0x4996();return a13_0x4158=function(_0x9f10e6,_0xc3c512){_0x9f10e6=_0x9f10e6-0x1ee;let _0x4996d9=_0x31b7c6[_0x9f10e6];return _0x4996d9;},a13_0x4158(_0x10c161,_0x11cbf9);}let ApitestStaticController=class ApitestStaticController{async[a13_0x5b040f(0x234)](){const _0x707672=a13_0x5b040f;if(this[_0x707672(0x1fd)]){const _0x5c1e69={'module':![]};return this['Environment'][_0x707672(0x206)]()&&(_0x5c1e69[_0x707672(0x1f8)]=!![]),await this[_0x707672(0x1ee)]['apidoc'](_0x5c1e69);}return'';}async[a13_0x5b040f(0x20b)](_0x549ef0){const _0x128de4=a13_0x5b040f;if(this[_0x128de4(0x1fd)]){const _0xf72da8={'module':_0x549ef0};return this['Environment']['isDevelopmentEnvironment']()&&(_0xf72da8[_0x128de4(0x1f8)]=!![]),await this['ApitestService'][_0x128de4(0x220)](_0xf72da8);}return'';}async[a13_0x5b040f(0x223)](){const _0x23f9f7=a13_0x5b040f;if((0x0,path_1['extname'])(this[_0x23f9f7(0x239)]['request'][_0x23f9f7(0x1fa)])){var _0x237ed4=(0x0,path_1['join'])(__dirname,_0x23f9f7(0x1f6)+this[_0x23f9f7(0x239)]['request'][_0x23f9f7(0x1fa)]['replace']('/apiteststatic/','/'));if(_0x237ed4[_0x23f9f7(0x1ef)](_0x237ed4[_0x23f9f7(0x200)]-0xb)!=_0x23f9f7(0x216)){this['ctx'][_0x23f9f7(0x225)](_0x23f9f7(0x222),_0x23f9f7(0x23a));if((0x0,path_1['extname'])(this[_0x23f9f7(0x239)]['request'][_0x23f9f7(0x1fa)])==_0x23f9f7(0x204))this[_0x23f9f7(0x239)][_0x23f9f7(0x225)](_0x23f9f7(0x23c),_0x23f9f7(0x224));else(0x0,path_1['extname'])(this[_0x23f9f7(0x239)]['request'][_0x23f9f7(0x1fa)])=='.css'&&this[_0x23f9f7(0x239)][_0x23f9f7(0x225)](_0x23f9f7(0x23c),_0x23f9f7(0x226));return(0x0,fs_1[_0x23f9f7(0x1fc)])(_0x237ed4)&&(0x0,fs_1['readFileSync'])(_0x237ed4,{'encoding':_0x23f9f7(0x1f5)});}}return'';}};__decorate([(0x0,core_3[a13_0x5b040f(0x1f4)])(),__metadata(a13_0x5b040f(0x20a),Object)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x239),void 0x0),__decorate([(0x0,core_3[a13_0x5b040f(0x1f4)])(),__metadata('design:type',core_1[a13_0x5b040f(0x22a)])],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x20e),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a13_0x5b040f(0x20a),ApitestService)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x1ee),void 0x0),__decorate([(0x0,core_3[a13_0x5b040f(0x207)])('apitest'),__metadata(a13_0x5b040f(0x20a),Boolean)],ApitestStaticController['prototype'],a13_0x5b040f(0x1fd),void 0x0),__decorate([(0x0,core_3[a13_0x5b040f(0x207)])(a13_0x5b040f(0x21b)),__metadata(a13_0x5b040f(0x20a),Object)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x21d),void 0x0),__decorate([(0x0,core_2[a13_0x5b040f(0x219)])(a13_0x5b040f(0x210)),__metadata('design:type',Function),__metadata(a13_0x5b040f(0x213),[]),__metadata(a13_0x5b040f(0x23e),Promise)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x234),null),__decorate([(0x0,core_2[a13_0x5b040f(0x219)])(a13_0x5b040f(0x227)),__param(0x0,(0x0,core_2[a13_0x5b040f(0x22c)])('module')),__metadata(a13_0x5b040f(0x20a),Function),__metadata('design:paramtypes',[String]),__metadata(a13_0x5b040f(0x23e),Promise)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x20b),null),__decorate([(0x0,core_2['Get'])('/apiteststatic/*'),__metadata(a13_0x5b040f(0x20a),Function),__metadata(a13_0x5b040f(0x213),[]),__metadata(a13_0x5b040f(0x23e),Promise)],ApitestStaticController[a13_0x5b040f(0x21c)],a13_0x5b040f(0x223),null),ApitestStaticController=__decorate([(0x0,core_2[a13_0x5b040f(0x229)])('/'),(0x0,core_3['Scope'])(core_3[a13_0x5b040f(0x1f2)][a13_0x5b040f(0x221)])],ApitestStaticController),exports[a13_0x5b040f(0x1fe)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14_0x561047=a14_0x4b24;function a14_0x4b24(_0x4336e5,_0x5b4500){const _0x18914f=a14_0x164d();return a14_0x4b24=function(_0x114500,_0x2a531e){_0x114500=_0x114500-0x13f;let _0x164d03=_0x18914f[_0x114500];return _0x164d03;},a14_0x4b24(_0x4336e5,_0x5b4500);}function a14_0x164d(){const _0x38bbe5=['design:type','2770qkGETM','length','App','rowCount','metadata','@midwayjs/core','toString','filter','(((.+)+)+)+$','.xlsx','function','exceljs','replace','863859aBNcRC','xlsx','stream','format','log','decorate','defineProperty','3268572RvafPi','keys','getOwnPropertyDescriptor','readFile','endsWith','./ExcelStream','col','header','startsWith','set','__esModule','Workbook','/public/xlsx/','isNumber','constructor','2836640KdJRyB','model','search','values','Singleton','instance','503853QlItAH','ScopeEnum','Scope','substring','\x20is\x20read\x20fail','columns','findRows','getCell','getAppDir','worksheets','app','parse','24188wAfKBv','eachCell','addRow','writeFile','7173KktsAu','784736JaiLSI','getColumn','onWrite','Api\x20Excel\x20Error:\x20','cellCount','ExcelService','object','push','getWorksheet','key','Sheet\x201','getRow','frozen','Provide','handler','value','5YndqgJ','xls','123MlCuyV'];a14_0x164d=function(){return _0x38bbe5;};return a14_0x164d();}(function(_0x12dce2,_0x30aea0){const _0x377b4e=a14_0x4b24,_0x4a31ab=_0x12dce2();while(!![]){try{const _0x4a0028=-parseInt(_0x377b4e(0x14b))/0x1+-parseInt(_0x377b4e(0x173))/0x2*(-parseInt(_0x377b4e(0x18a))/0x3)+parseInt(_0x377b4e(0x161))/0x4+parseInt(_0x377b4e(0x188))/0x5*(parseInt(_0x377b4e(0x152))/0x6)+-parseInt(_0x377b4e(0x167))/0x7+-parseInt(_0x377b4e(0x178))/0x8+parseInt(_0x377b4e(0x177))/0x9*(-parseInt(_0x377b4e(0x18c))/0xa);if(_0x4a0028===_0x30aea0)break;else _0x4a31ab['push'](_0x4a31ab['shift']());}catch(_0x11bb6c){_0x4a31ab['push'](_0x4a31ab['shift']());}}}(a14_0x164d,0x78de5));const a14_0x2a531e=(function(){let _0x35c2ac=!![];return function(_0x481c7d,_0x501409){const _0x5d31c7=_0x35c2ac?function(){if(_0x501409){const _0x2302be=_0x501409['apply'](_0x481c7d,arguments);return _0x501409=null,_0x2302be;}}:function(){};return _0x35c2ac=![],_0x5d31c7;};}()),a14_0x114500=a14_0x2a531e(this,function(){const _0x5b2b08=a14_0x4b24;return a14_0x114500[_0x5b2b08(0x144)]()[_0x5b2b08(0x163)]('(((.+)+)+)+$')[_0x5b2b08(0x144)]()[_0x5b2b08(0x160)](a14_0x114500)[_0x5b2b08(0x163)](_0x5b2b08(0x146));});a14_0x114500();'use strict';var __decorate=this&&this['__decorate']||function(_0x17fc07,_0x15b7eb,_0x5108b5,_0x5ef89a){const _0x58b8fc=a14_0x4b24;var _0x2b0b77=arguments[_0x58b8fc(0x13f)],_0x5597eb=_0x2b0b77<0x3?_0x15b7eb:_0x5ef89a===null?_0x5ef89a=Object[_0x58b8fc(0x154)](_0x15b7eb,_0x5108b5):_0x5ef89a,_0x238b14;if(typeof Reflect===_0x58b8fc(0x17e)&&typeof Reflect[_0x58b8fc(0x150)]===_0x58b8fc(0x148))_0x5597eb=Reflect[_0x58b8fc(0x150)](_0x17fc07,_0x15b7eb,_0x5108b5,_0x5ef89a);else{for(var _0x1e06f7=_0x17fc07[_0x58b8fc(0x13f)]-0x1;_0x1e06f7>=0x0;_0x1e06f7--)if(_0x238b14=_0x17fc07[_0x1e06f7])_0x5597eb=(_0x2b0b77<0x3?_0x238b14(_0x5597eb):_0x2b0b77>0x3?_0x238b14(_0x15b7eb,_0x5108b5,_0x5597eb):_0x238b14(_0x15b7eb,_0x5108b5))||_0x5597eb;}return _0x2b0b77>0x3&&_0x5597eb&&Object[_0x58b8fc(0x151)](_0x15b7eb,_0x5108b5,_0x5597eb),_0x5597eb;},__metadata=this&&this['__metadata']||function(_0x2924f7,_0x4ef7d6){const _0x204ac7=a14_0x4b24;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x204ac7(0x148))return Reflect[_0x204ac7(0x142)](_0x2924f7,_0x4ef7d6);};Object['defineProperty'](exports,a14_0x561047(0x15c),{'value':!![]}),exports[a14_0x561047(0x17d)]=void 0x0;const fs=require('fs'),exceljs=require(a14_0x561047(0x149)),koasend=require('koa-send'),core_1=require(a14_0x561047(0x143)),ExcelStream_1=require(a14_0x561047(0x157));let ExcelService=class ExcelService{async[a14_0x561047(0x172)](_0x464260,_0x440c61,_0x34fb87=[0x0]){const _0x4d34a9=a14_0x561047;var _0x438a5d,_0x5aa41c;const _0x125956=new exceljs[(_0x4d34a9(0x15d))](),_0x494221=[];let _0x3b52cc=_0x464260[_0x4d34a9(0x14a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x3b52cc===null||_0x3b52cc===void 0x0?void 0x0:_0x3b52cc['startsWith']('/'))&&(_0x3b52cc=this[_0x4d34a9(0x171)][_0x4d34a9(0x16f)]()+'/'+_0x3b52cc);try{await _0x125956[_0x4d34a9(0x14c)][_0x4d34a9(0x155)](_0x3b52cc);}catch(_0x1cf6cb){return console[_0x4d34a9(0x14f)](_0x4d34a9(0x17b)+_0x3b52cc+_0x4d34a9(0x16b)),_0x494221;}for(const _0x4c667e of _0x34fb87){const _0x5bb535=lodash[_0x4d34a9(0x15f)](_0x4c667e)?((_0x438a5d=_0x125956[_0x4d34a9(0x170)])===null||_0x438a5d===void 0x0?void 0x0:_0x438a5d[_0x4c667e])||undefined:_0x125956[_0x4d34a9(0x180)](_0x4c667e);if(_0x5bb535){var _0x225000=0x1;const _0x15fedb=_0x5bb535[_0x4d34a9(0x183)](0x1),_0x287a46=await new Promise(_0x176626=>{const _0x259546=_0x4d34a9,_0x48aa74={};_0x15fedb[_0x259546(0x174)]((_0x18dd1b,_0x36acf9)=>{const _0x137e16=_0x259546;for(const _0x8347c4 of _0x440c61){if(_0x18dd1b[_0x137e16(0x187)]==_0x8347c4['header'])_0x225000=0x2,_0x48aa74[_0x8347c4[_0x137e16(0x181)]]={'header':_0x18dd1b[_0x137e16(0x158)],'handler':(_0x8347c4===null||_0x8347c4===void 0x0?void 0x0:_0x8347c4['onRead'])||(_0x8347c4===null||_0x8347c4===void 0x0?void 0x0:_0x8347c4[_0x137e16(0x186)])};else{if(!_0x48aa74[_0x8347c4[_0x137e16(0x181)]])try{const _0x4810c6=_0x15fedb&&_0x15fedb[_0x137e16(0x16e)](_0x8347c4['header']);_0x4810c6&&(_0x48aa74[_0x8347c4['key']]={'header':_0x4810c6[_0x137e16(0x158)],'handler':(_0x8347c4===null||_0x8347c4===void 0x0?void 0x0:_0x8347c4['onRead'])||(_0x8347c4===null||_0x8347c4===void 0x0?void 0x0:_0x8347c4[_0x137e16(0x186)])});}catch{}}}_0x15fedb[_0x137e16(0x17c)]==_0x36acf9&&_0x176626(_0x48aa74);});});_0xcf4b7b:for(const _0x5a4abd of _0x5bb535[_0x4d34a9(0x16d)](_0x225000,_0x5bb535[_0x4d34a9(0x141)])){if(typeof(_0x5a4abd===null||_0x5a4abd===void 0x0?void 0x0:_0x5a4abd['getCell'])!=_0x4d34a9(0x148))continue _0xcf4b7b;const _0x34f362={};_0x2cc76e:for(const _0x3908fa in _0x287a46){if(_0x287a46[_0x3908fa][_0x4d34a9(0x159)]){const _0x33804b=_0x5a4abd[_0x4d34a9(0x16e)](_0x287a46[_0x3908fa][_0x4d34a9(0x159)]);if(!_0x33804b)continue _0x2cc76e;try{_0x33804b['toString']();}catch(_0x47f7a4){_0x33804b[_0x4d34a9(0x144)]=()=>{const _0x3ac4e5=_0x4d34a9;var _0x39d880;return''+(((_0x39d880=_0x33804b===null||_0x33804b===void 0x0?void 0x0:_0x33804b['model'])===null||_0x39d880===void 0x0?void 0x0:_0x39d880[_0x3ac4e5(0x187)])||'');};}typeof((_0x5aa41c=_0x287a46[_0x3908fa])===null||_0x5aa41c===void 0x0?void 0x0:_0x5aa41c['handler'])==_0x4d34a9(0x148)?_0x34f362[_0x3908fa]=await _0x287a46[_0x3908fa][_0x4d34a9(0x186)](lodash[_0x4d34a9(0x15b)]({},_0x3908fa,(_0x33804b===null||_0x33804b===void 0x0?void 0x0:_0x33804b[_0x4d34a9(0x144)]())||''),_0x33804b[_0x4d34a9(0x162)]):_0x34f362[_0x3908fa]=(_0x33804b===null||_0x33804b===void 0x0?void 0x0:_0x33804b[_0x4d34a9(0x144)]())||'';}}Object[_0x4d34a9(0x153)](_0x34f362)[_0x4d34a9(0x13f)]>0x0&&Object[_0x4d34a9(0x164)](_0x34f362)[_0x4d34a9(0x145)](_0xdb56ea=>_0xdb56ea!='')[_0x4d34a9(0x13f)]>0x0&&_0x494221[_0x4d34a9(0x17f)](_0x34f362);}}}return _0x494221;}async['export'](_0x535dbc,_0x1493d0,_0xc8337b,_0x1dba5f,_0x59ab23){const _0x1e4edd=a14_0x561047;var _0x43c400,_0x2b0643,_0x1e3b8f;const _0x1710c4=new exceljs[(_0x1e4edd(0x15d))](),_0x5f2134={},_0x4aa76e=[],_0x2840ae=_0x1710c4['addWorksheet'](_0x1e4edd(0x182),{'views':[{'state':_0x1e4edd(0x184),'ySplit':0x1}]});for(const _0x9e05f6 in _0x1493d0){_0x5f2134[_0x1493d0[_0x9e05f6][_0x1e4edd(0x181)]]=_0x1493d0[_0x9e05f6][_0x1e4edd(0x159)],_0x4aa76e['push']({'header':_0x1493d0[_0x9e05f6][_0x1e4edd(0x159)],'key':(_0x43c400=_0x1493d0[_0x9e05f6])===null||_0x43c400===void 0x0?void 0x0:_0x43c400[_0x1e4edd(0x181)][_0x1e4edd(0x14a)](/\./g,'_')});}_0x2840ae[_0x1e4edd(0x16c)]=_0x4aa76e;for(const _0x33d8aa in _0xc8337b){const _0x2d3a3e=_0xc8337b[_0x33d8aa],_0x40119c=_0x2840ae[_0x1e4edd(0x175)]({});for(let _0x2ea0b7 in _0x1493d0){const _0x920aaf=_0x1493d0[_0x2ea0b7][_0x1e4edd(0x181)][_0x1e4edd(0x14a)](/\./g,'_'),_0x27bdc5=_0x2840ae[_0x1e4edd(0x179)](_0x920aaf),_0x26482b=_0x40119c===null||_0x40119c===void 0x0?void 0x0:_0x40119c['getCell'](_0x920aaf);if(typeof((_0x2b0643=_0x1493d0[_0x2ea0b7])===null||_0x2b0643===void 0x0?void 0x0:_0x2b0643[_0x1e4edd(0x17a)])=='function')_0x26482b[_0x1e4edd(0x187)]=await _0x1493d0[_0x2ea0b7][_0x1e4edd(0x17a)](_0x2d3a3e,{'row':_0x40119c,'col':_0x27bdc5,'cell':_0x26482b,'sheet':_0x2840ae})||'';else typeof((_0x1e3b8f=_0x1493d0[_0x2ea0b7])===null||_0x1e3b8f===void 0x0?void 0x0:_0x1e3b8f[_0x1e4edd(0x186)])==_0x1e4edd(0x148)?_0x26482b[_0x1e4edd(0x187)]=await _0x1493d0[_0x2ea0b7][_0x1e4edd(0x186)](_0x2d3a3e,{'row':_0x40119c,'col':_0x27bdc5,'cell':_0x26482b,'sheet':_0x2840ae})||'':_0x26482b['value']=lodash['get'](_0x2d3a3e,_0x1493d0[_0x2ea0b7][_0x1e4edd(0x181)],'');}}typeof _0x59ab23=='function'&&await _0x59ab23({'workbook':_0x1710c4,'worksheet':_0x2840ae});let _0x236706='';const _0xbb045e=_0x535dbc+_0x1e4edd(0x147);if(_0x1dba5f&&_0x1dba5f['startsWith']('/'))_0x236706=''+_0x1dba5f;else _0x1dba5f&&!_0x1dba5f[_0x1e4edd(0x15a)]('/')&&!_0x1dba5f[_0x1e4edd(0x15a)]('\x5c')?_0x236706=this[_0x1e4edd(0x171)][_0x1e4edd(0x16f)]()+'/'+_0x1dba5f:_0x236706=this[_0x1e4edd(0x171)][_0x1e4edd(0x16f)]()+_0x1e4edd(0x15e)+dayjs()[_0x1e4edd(0x14e)]('YYYY/MM/DD');return(_0x236706[_0x1e4edd(0x156)]('/')||_0x236706[_0x1e4edd(0x156)]('\x5c'))&&(_0x236706=_0x236706[_0x1e4edd(0x16a)](0x0,_0x236706['length']-0x1)),_0x236706=_0x236706[_0x1e4edd(0x14a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x236706)&&fs['mkdirSync'](_0x236706,{'recursive':!![]}),await _0x1710c4['xlsx'][_0x1e4edd(0x176)]((_0x236706+'/'+_0xbb045e)[_0x1e4edd(0x14a)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0xbb045e,'filepath':(_0x236706[_0x1e4edd(0x16a)]((''+this[_0x1e4edd(0x171)][_0x1e4edd(0x16f)]())['length'])+'/'+_0xbb045e)[_0x1e4edd(0x14a)](/(\\|\/)/g,'/')[_0x1e4edd(0x14a)](/\/{2,}/g,'/')};}async[a14_0x561047(0x14d)](_0xa3d40e,_0x5da0ff={'suffix':[a14_0x561047(0x189),a14_0x561047(0x14c)]}){const _0x82fb46=a14_0x561047;return await ExcelStream_1['ExcelStream'][_0x82fb46(0x166)](_0xa3d40e,_0x5da0ff);}async['download'](_0xf0ebff,_0x5a2fbb){return await koasend(_0xf0ebff,''+_0x5a2fbb);}};__decorate([(0x0,core_1[a14_0x561047(0x140)])(),__metadata(a14_0x561047(0x18b),Object)],ExcelService['prototype'],a14_0x561047(0x171),void 0x0),ExcelService=__decorate([(0x0,core_1[a14_0x561047(0x185)])(),(0x0,core_1[a14_0x561047(0x169)])(core_1[a14_0x561047(0x168)][a14_0x561047(0x165)])],ExcelService),exports[a14_0x561047(0x17d)]=ExcelService;
|
|
1
|
+
const a14_0x157a4b=a14_0x456b;(function(_0x5a6f2d,_0x52515a){const _0x3d9fe1=a14_0x456b,_0x507beb=_0x5a6f2d();while(!![]){try{const _0x32810d=-parseInt(_0x3d9fe1(0x12f))/0x1+parseInt(_0x3d9fe1(0x10e))/0x2+-parseInt(_0x3d9fe1(0x10c))/0x3*(-parseInt(_0x3d9fe1(0x107))/0x4)+-parseInt(_0x3d9fe1(0x142))/0x5+-parseInt(_0x3d9fe1(0x132))/0x6*(-parseInt(_0x3d9fe1(0x103))/0x7)+-parseInt(_0x3d9fe1(0xf7))/0x8*(parseInt(_0x3d9fe1(0x113))/0x9)+-parseInt(_0x3d9fe1(0x11e))/0xa*(-parseInt(_0x3d9fe1(0x13a))/0xb);if(_0x32810d===_0x52515a)break;else _0x507beb['push'](_0x507beb['shift']());}catch(_0x3d5332){_0x507beb['push'](_0x507beb['shift']());}}}(a14_0x3a79,0xae4bf));const a14_0x533756=(function(){let _0x221076=!![];return function(_0x9fbc48,_0x43319f){const _0x121f1e=_0x221076?function(){const _0x450df2=a14_0x456b;if(_0x43319f){const _0x6ebc8=_0x43319f[_0x450df2(0x101)](_0x9fbc48,arguments);return _0x43319f=null,_0x6ebc8;}}:function(){};return _0x221076=![],_0x121f1e;};}()),a14_0x2ad00d=a14_0x533756(this,function(){const _0x309bcf=a14_0x456b;return a14_0x2ad00d[_0x309bcf(0xfc)]()['search']('(((.+)+)+)+$')[_0x309bcf(0xfc)]()[_0x309bcf(0xfe)](a14_0x2ad00d)[_0x309bcf(0x122)](_0x309bcf(0xfa));});a14_0x2ad00d();function a14_0x456b(_0x4c70f6,_0x148332){const _0x3bf365=a14_0x3a79();return a14_0x456b=function(_0x2ad00d,_0x533756){_0x2ad00d=_0x2ad00d-0xf7;let _0x3a79a2=_0x3bf365[_0x2ad00d];return _0x3a79a2;},a14_0x456b(_0x4c70f6,_0x148332);}'use strict';var __decorate=this&&this[a14_0x157a4b(0x11d)]||function(_0x27df70,_0x19dce7,_0x47e179,_0x5f0d7a){const _0x399f51=a14_0x157a4b;var _0x28f86e=arguments['length'],_0x29b9fc=_0x28f86e<0x3?_0x19dce7:_0x5f0d7a===null?_0x5f0d7a=Object[_0x399f51(0x12e)](_0x19dce7,_0x47e179):_0x5f0d7a,_0x525d3d;if(typeof Reflect===_0x399f51(0x115)&&typeof Reflect[_0x399f51(0x141)]==='function')_0x29b9fc=Reflect[_0x399f51(0x141)](_0x27df70,_0x19dce7,_0x47e179,_0x5f0d7a);else{for(var _0x396335=_0x27df70[_0x399f51(0x108)]-0x1;_0x396335>=0x0;_0x396335--)if(_0x525d3d=_0x27df70[_0x396335])_0x29b9fc=(_0x28f86e<0x3?_0x525d3d(_0x29b9fc):_0x28f86e>0x3?_0x525d3d(_0x19dce7,_0x47e179,_0x29b9fc):_0x525d3d(_0x19dce7,_0x47e179))||_0x29b9fc;}return _0x28f86e>0x3&&_0x29b9fc&&Object[_0x399f51(0x129)](_0x19dce7,_0x47e179,_0x29b9fc),_0x29b9fc;},__metadata=this&&this[a14_0x157a4b(0x118)]||function(_0x564aa1,_0x36af51){const _0x336b0e=a14_0x157a4b;if(typeof Reflect===_0x336b0e(0x115)&&typeof Reflect['metadata']==='function')return Reflect[_0x336b0e(0x130)](_0x564aa1,_0x36af51);};Object['defineProperty'](exports,a14_0x157a4b(0x106),{'value':!![]}),exports[a14_0x157a4b(0x10d)]=void 0x0;const fs=require('fs'),exceljs=require(a14_0x157a4b(0x116)),koasend=require(a14_0x157a4b(0x139)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a14_0x157a4b(0x111));let ExcelService=class ExcelService{async['parse'](_0x3af899,_0x1e7007,_0x184794=[0x0]){const _0x3b85d9=a14_0x157a4b;var _0x236bcd,_0x5587b8;const _0x59038e=new exceljs[(_0x3b85d9(0x109))](),_0x35703d=[];let _0x55c19c=_0x3af899['replace'](/(\\|\/)/g,'/')[_0x3b85d9(0x13b)](/\/{2,}/g,'/');!(_0x55c19c===null||_0x55c19c===void 0x0?void 0x0:_0x55c19c['startsWith']('/'))&&(_0x55c19c=this[_0x3b85d9(0x10a)][_0x3b85d9(0x12d)]()+'/'+_0x55c19c);try{await _0x59038e[_0x3b85d9(0x112)][_0x3b85d9(0x143)](_0x55c19c);}catch(_0x5f6d80){return console[_0x3b85d9(0x144)]('Api\x20Excel\x20Error:\x20'+_0x55c19c+_0x3b85d9(0x11f)),_0x35703d;}for(const _0x5c8d9f of _0x184794){const _0x4bb539=lodash['isNumber'](_0x5c8d9f)?((_0x236bcd=_0x59038e['worksheets'])===null||_0x236bcd===void 0x0?void 0x0:_0x236bcd[_0x5c8d9f])||undefined:_0x59038e[_0x3b85d9(0x102)](_0x5c8d9f);if(_0x4bb539){var _0x1922a2=0x1;const _0x5ec83e=_0x4bb539[_0x3b85d9(0x11a)](0x1),_0x5a1c4c=await new Promise(_0x18c55c=>{const _0x498d11=_0x3b85d9,_0x4712c9={};_0x5ec83e[_0x498d11(0x110)]((_0x262857,_0x3ee827)=>{const _0x42bb80=_0x498d11;for(const _0x497edc of _0x1e7007){if(_0x262857[_0x42bb80(0x133)]==_0x497edc['header'])_0x1922a2=0x2,_0x4712c9[_0x497edc[_0x42bb80(0x136)]]={'header':_0x262857[_0x42bb80(0x13c)],'handler':(_0x497edc===null||_0x497edc===void 0x0?void 0x0:_0x497edc[_0x42bb80(0x137)])||(_0x497edc===null||_0x497edc===void 0x0?void 0x0:_0x497edc['handler'])};else{if(!_0x4712c9[_0x497edc[_0x42bb80(0x136)]])try{const _0x3be62e=_0x5ec83e&&_0x5ec83e[_0x42bb80(0x121)](_0x497edc[_0x42bb80(0x13e)]);_0x3be62e&&(_0x4712c9[_0x497edc['key']]={'header':_0x3be62e[_0x42bb80(0x13c)],'handler':(_0x497edc===null||_0x497edc===void 0x0?void 0x0:_0x497edc[_0x42bb80(0x137)])||(_0x497edc===null||_0x497edc===void 0x0?void 0x0:_0x497edc[_0x42bb80(0x131)])});}catch{}}}_0x5ec83e['cellCount']==_0x3ee827&&_0x18c55c(_0x4712c9);});});_0x8691d4:for(const _0x318d0d of _0x4bb539[_0x3b85d9(0x134)](_0x1922a2,_0x4bb539[_0x3b85d9(0xf8)])){if(typeof(_0x318d0d===null||_0x318d0d===void 0x0?void 0x0:_0x318d0d['getCell'])!=_0x3b85d9(0xff))continue _0x8691d4;const _0x15434d={};_0x1eef7b:for(const _0x294967 in _0x5a1c4c){if(_0x5a1c4c[_0x294967][_0x3b85d9(0x13e)]){const _0x4963a7=_0x318d0d['getCell'](_0x5a1c4c[_0x294967][_0x3b85d9(0x13e)]);if(!_0x4963a7)continue _0x1eef7b;try{_0x4963a7[_0x3b85d9(0xfc)]();}catch(_0x1741ae){_0x4963a7[_0x3b85d9(0xfc)]=()=>{const _0x5814fc=_0x3b85d9;var _0x39f365;return''+(((_0x39f365=_0x4963a7===null||_0x4963a7===void 0x0?void 0x0:_0x4963a7['model'])===null||_0x39f365===void 0x0?void 0x0:_0x39f365[_0x5814fc(0x133)])||'');};}typeof((_0x5587b8=_0x5a1c4c[_0x294967])===null||_0x5587b8===void 0x0?void 0x0:_0x5587b8[_0x3b85d9(0x131)])==_0x3b85d9(0xff)?_0x15434d[_0x294967]=await _0x5a1c4c[_0x294967][_0x3b85d9(0x131)](lodash[_0x3b85d9(0xf9)]({},_0x294967,(_0x4963a7===null||_0x4963a7===void 0x0?void 0x0:_0x4963a7[_0x3b85d9(0xfc)]())||''),_0x4963a7['model']):_0x15434d[_0x294967]=(_0x4963a7===null||_0x4963a7===void 0x0?void 0x0:_0x4963a7[_0x3b85d9(0xfc)]())||'';}}Object[_0x3b85d9(0xfb)](_0x15434d)[_0x3b85d9(0x108)]>0x0&&Object[_0x3b85d9(0x11c)](_0x15434d)[_0x3b85d9(0x10b)](_0x2fed94=>_0x2fed94!='')['length']>0x0&&_0x35703d[_0x3b85d9(0x124)](_0x15434d);}}}return _0x35703d;}async['export'](_0x2cfead,_0x497f78,_0x2002ac,_0x3a4b6,_0x338179){const _0x2e3172=a14_0x157a4b;var _0x39b36b,_0x1f11aa,_0xac9118;const _0x49b811=new exceljs[(_0x2e3172(0x109))](),_0x1283c1={},_0x1b64d6=[],_0x3f4f7b=_0x49b811[_0x2e3172(0x138)](_0x2e3172(0x114),{'views':[{'state':'frozen','ySplit':0x1}]});for(const _0x159c6d in _0x497f78){_0x1283c1[_0x497f78[_0x159c6d][_0x2e3172(0x136)]]=_0x497f78[_0x159c6d][_0x2e3172(0x13e)],_0x1b64d6['push']({'header':_0x497f78[_0x159c6d][_0x2e3172(0x13e)],'key':(_0x39b36b=_0x497f78[_0x159c6d])===null||_0x39b36b===void 0x0?void 0x0:_0x39b36b[_0x2e3172(0x136)]['replace'](/\./g,'_')});}_0x3f4f7b['columns']=_0x1b64d6;for(const _0x32839a in _0x2002ac){const _0x19cf5a=_0x2002ac[_0x32839a],_0x85cbb3=_0x3f4f7b[_0x2e3172(0x127)]({});for(let _0x62f602 in _0x497f78){const _0x1bbfc7=_0x497f78[_0x62f602][_0x2e3172(0x136)]['replace'](/\./g,'_'),_0x1e9bf5=_0x3f4f7b[_0x2e3172(0x10f)](_0x1bbfc7),_0x318e70=_0x85cbb3===null||_0x85cbb3===void 0x0?void 0x0:_0x85cbb3[_0x2e3172(0x121)](_0x1bbfc7);if(typeof((_0x1f11aa=_0x497f78[_0x62f602])===null||_0x1f11aa===void 0x0?void 0x0:_0x1f11aa[_0x2e3172(0x11b)])==_0x2e3172(0xff))_0x318e70[_0x2e3172(0x133)]=await _0x497f78[_0x62f602][_0x2e3172(0x11b)](_0x19cf5a,{'row':_0x85cbb3,'col':_0x1e9bf5,'cell':_0x318e70,'sheet':_0x3f4f7b})||'';else typeof((_0xac9118=_0x497f78[_0x62f602])===null||_0xac9118===void 0x0?void 0x0:_0xac9118['handler'])==_0x2e3172(0xff)?_0x318e70[_0x2e3172(0x133)]=await _0x497f78[_0x62f602][_0x2e3172(0x131)](_0x19cf5a,{'row':_0x85cbb3,'col':_0x1e9bf5,'cell':_0x318e70,'sheet':_0x3f4f7b})||'':_0x318e70['value']=lodash[_0x2e3172(0x128)](_0x19cf5a,_0x497f78[_0x62f602][_0x2e3172(0x136)],'');}}typeof _0x338179==_0x2e3172(0xff)&&await _0x338179({'workbook':_0x49b811,'worksheet':_0x3f4f7b});let _0x10410a='';const _0x2a7f11=_0x2cfead+_0x2e3172(0x125);if(_0x3a4b6&&_0x3a4b6[_0x2e3172(0x100)]('/'))_0x10410a=''+_0x3a4b6;else _0x3a4b6&&!_0x3a4b6[_0x2e3172(0x100)]('/')&&!_0x3a4b6['startsWith']('\x5c')?_0x10410a=this[_0x2e3172(0x10a)][_0x2e3172(0x12d)]()+'/'+_0x3a4b6:_0x10410a=this['app'][_0x2e3172(0x12d)]()+_0x2e3172(0x104)+dayjs()[_0x2e3172(0x145)]('YYYY/MM/DD');return(_0x10410a[_0x2e3172(0x105)]('/')||_0x10410a[_0x2e3172(0x105)]('\x5c'))&&(_0x10410a=_0x10410a[_0x2e3172(0x126)](0x0,_0x10410a[_0x2e3172(0x108)]-0x1)),_0x10410a=_0x10410a['replace'](/(\\|\/)/g,'/')[_0x2e3172(0x13b)](/\/{2,}/g,'/'),!fs[_0x2e3172(0xfd)](_0x10410a)&&fs[_0x2e3172(0x12c)](_0x10410a,{'recursive':!![]}),await _0x49b811['xlsx'][_0x2e3172(0x117)]((_0x10410a+'/'+_0x2a7f11)['replace'](/(\\|\/)/g,'/')[_0x2e3172(0x13b)](/\/{2,}/g,'/')),{'filename':_0x2a7f11,'filepath':(_0x10410a[_0x2e3172(0x126)]((''+this['app'][_0x2e3172(0x12d)]())[_0x2e3172(0x108)])+'/'+_0x2a7f11)[_0x2e3172(0x13b)](/(\\|\/)/g,'/')[_0x2e3172(0x13b)](/\/{2,}/g,'/')};}async[a14_0x157a4b(0x123)](_0x2c5edc,_0x58442b={'suffix':['xls',a14_0x157a4b(0x112)]}){const _0x48ac0a=a14_0x157a4b;return await ExcelStream_1['ExcelStream'][_0x48ac0a(0x120)](_0x2c5edc,_0x58442b);}async['download'](_0xb28f31,_0x149744){return await koasend(_0xb28f31,''+_0x149744);}};__decorate([(0x0,core_1[a14_0x157a4b(0x13d)])(),__metadata(a14_0x157a4b(0x135),Object)],ExcelService[a14_0x157a4b(0x12a)],a14_0x157a4b(0x10a),void 0x0),ExcelService=__decorate([(0x0,core_1[a14_0x157a4b(0x140)])(),(0x0,core_1[a14_0x157a4b(0x12b)])(core_1[a14_0x157a4b(0x13f)][a14_0x157a4b(0x119)])],ExcelService),exports[a14_0x157a4b(0x10d)]=ExcelService;function a14_0x3a79(){const _0x373b43=['col','App','header','ScopeEnum','Provide','decorate','4211395Sukmhv','readFile','log','format','6592712nyMaZq','rowCount','set','(((.+)+)+)+$','keys','toString','existsSync','constructor','function','startsWith','apply','getWorksheet','7NSXsZq','/public/xlsx/','endsWith','__esModule','40gGukJz','length','Workbook','app','filter','225369VIpDPF','ExcelService','829358OVCYMR','getColumn','eachCell','./ExcelStream','xlsx','9DSCaQy','Sheet\x201','object','exceljs','writeFile','__metadata','Singleton','getRow','onWrite','values','__decorate','10937620ZSnVgF','\x20is\x20read\x20fail','instance','getCell','search','stream','push','.xlsx','substring','addRow','get','defineProperty','prototype','Scope','mkdirSync','getAppDir','getOwnPropertyDescriptor','641218oIbfkQ','metadata','handler','4571004lqbHHA','value','findRows','design:type','key','onRead','addWorksheet','koa-send','11CKsAJZ','replace'];a14_0x3a79=function(){return _0x373b43;};return a14_0x3a79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x2372a3=a15_0x47a6;function a15_0x47a6(_0x4af258,_0x730fcb){const _0xb9c6d1=a15_0x25b7();return a15_0x47a6=function(_0x202858,_0x5e6ec4){_0x202858=_0x202858-0x1dc;let _0x25b720=_0xb9c6d1[_0x202858];return _0x25b720;},a15_0x47a6(_0x4af258,_0x730fcb);}(function(_0x42dad3,_0x1cb1a9){const _0x3756f0=a15_0x47a6,_0x306c90=_0x42dad3();while(!![]){try{const _0x8a8ade=parseInt(_0x3756f0(0x20b))/0x1*(parseInt(_0x3756f0(0x213))/0x2)+parseInt(_0x3756f0(0x218))/0x3+-parseInt(_0x3756f0(0x219))/0x4+-parseInt(_0x3756f0(0x20f))/0x5*(parseInt(_0x3756f0(0x228))/0x6)+-parseInt(_0x3756f0(0x1ed))/0x7+-parseInt(_0x3756f0(0x1ec))/0x8*(-parseInt(_0x3756f0(0x1f8))/0x9)+-parseInt(_0x3756f0(0x1f6))/0xa*(parseInt(_0x3756f0(0x1e7))/0xb);if(_0x8a8ade===_0x1cb1a9)break;else _0x306c90['push'](_0x306c90['shift']());}catch(_0x406eae){_0x306c90['push'](_0x306c90['shift']());}}}(a15_0x25b7,0xddce7));const a15_0x5e6ec4=(function(){let _0x3e6e8d=!![];return function(_0x46958b,_0x3b13d0){const _0x22a924=_0x3e6e8d?function(){const _0x5ce02c=a15_0x47a6;if(_0x3b13d0){const _0x43a2f3=_0x3b13d0[_0x5ce02c(0x21d)](_0x46958b,arguments);return _0x3b13d0=null,_0x43a2f3;}}:function(){};return _0x3e6e8d=![],_0x22a924;};}()),a15_0x202858=a15_0x5e6ec4(this,function(){const _0x4f0b8d=a15_0x47a6;return a15_0x202858[_0x4f0b8d(0x223)]()[_0x4f0b8d(0x21e)](_0x4f0b8d(0x20a))[_0x4f0b8d(0x223)]()[_0x4f0b8d(0x1fb)](a15_0x202858)[_0x4f0b8d(0x21e)](_0x4f0b8d(0x20a));});function a15_0x25b7(){const _0xeb1a3b=['key','unpipe','worksheets','_WorkbookReader','col','lastIndexOf','getWorkbookWriterSheet','path','rootpath','resume','unlink','filepath','end','defineProperty','isArray','reader','header','exists','map','994818eowOqD','Transform','finished','pipe','stream','8EDEayn','101556zKRQGp','save','clear','emit','getColumn','文件名格式错误','__esModule','pause','getWorksheet','140AWnbjU','isNumber','7392789LxmbAw','function','extname','constructor','instance','keys','sheets','getCell','get','chunkArray','length','existsSync','startsWith','substring','getRow','ExcelStream','error','indexOf','(((.+)+)+)+$','463FaHMqg','destroy','addRow','commit','5ZRKAqQ','eachCell','ignore','xlsx','4462vXoiGe','WorkbookWriter','_WorksheetWriterMap','push','includes','3886443mupWOc','1091132lTILcW','handler','value','values','apply','search','model','exceljs','writer','dirname','toString','WorkbookReader','read','xls','replace','4127478qFxdgI','suffix','_WorkbookWriter'];a15_0x25b7=function(){return _0xeb1a3b;};return a15_0x25b7();}a15_0x202858();'use strict';Object[a15_0x2372a3(0x1e1)](exports,a15_0x2372a3(0x1f3),{'value':!![]}),exports[a15_0x2372a3(0x207)]=void 0x0;const fs=require('fs'),path=require(a15_0x2372a3(0x232)),lodash=require('lodash'),exceljs=require(a15_0x2372a3(0x220)),stream_1=require('stream');function isReadableStream(_0x26feb8){const _0x905d3=a15_0x2372a3;return _0x26feb8&&typeof _0x26feb8[_0x905d3(0x1ea)]==='function'&&typeof _0x26feb8['on']==='function'&&typeof _0x26feb8[_0x905d3(0x225)]===_0x905d3(0x1f9)&&typeof _0x26feb8[_0x905d3(0x1f4)]==='function'&&typeof _0x26feb8[_0x905d3(0x1dd)]==='function';}class ExcelStream{constructor(_0x3202dc){const _0x15e824=a15_0x2372a3;this[_0x15e824(0x215)]=new Map(),this[_0x15e824(0x1df)]=_0x3202dc;}get[a15_0x2372a3(0x224)](){const _0x55afb8=a15_0x2372a3;return!this[_0x55afb8(0x22e)]&&(this[_0x55afb8(0x22e)]=new exceljs[(_0x55afb8(0x1eb))][(_0x55afb8(0x212))][(_0x55afb8(0x224))](this[_0x55afb8(0x1df)],{'worksheets':_0x55afb8(0x1f0),'sharedStrings':_0x55afb8(0x211),'hyperlinks':_0x55afb8(0x211),'styles':_0x55afb8(0x211)})),this[_0x55afb8(0x22e)];}get[a15_0x2372a3(0x214)](){const _0xdabb3c=a15_0x2372a3;return!this[_0xdabb3c(0x22a)]&&(this['_WorkbookWriter']=new exceljs[(_0xdabb3c(0x1eb))]['xlsx'][(_0xdabb3c(0x214))]({'filename':this[_0xdabb3c(0x1df)],'useStyles':!![],'useSharedStrings':![]})),this[_0xdabb3c(0x22a)];}static[a15_0x2372a3(0x1fc)](_0x5827a8,_0x92be2d={'suffix':[a15_0x2372a3(0x226),a15_0x2372a3(0x212)]}){return new Promise(async(_0x16d7cc,_0x481788)=>{const _0x3b39f6=a15_0x47a6,_0x2cc68f=_0x5827a8[_0x3b39f6(0x205)]((_0x5827a8[_0x3b39f6(0x209)]('/')>-0x1?_0x5827a8[_0x3b39f6(0x230)]('/'):_0x5827a8[_0x3b39f6(0x230)]('\x5c'))+0x1),_0x42ac83=path[_0x3b39f6(0x222)](((_0x92be2d===null||_0x92be2d===void 0x0?void 0x0:_0x92be2d[_0x3b39f6(0x1dc)])&&!_0x5827a8[_0x3b39f6(0x204)](_0x92be2d[_0x3b39f6(0x1dc)])?_0x92be2d[_0x3b39f6(0x1dc)]+'/'+_0x5827a8:'/'+_0x5827a8)[_0x3b39f6(0x227)](/(\\|\/)/g,'/')[_0x3b39f6(0x227)](/\/{2,}/g,'/'));if(!((_0x92be2d===null||_0x92be2d===void 0x0?void 0x0:_0x92be2d[_0x3b39f6(0x229)])?_0x92be2d['suffix']:[_0x3b39f6(0x226),_0x3b39f6(0x212)])[_0x3b39f6(0x217)](_0x2cc68f['substring'](_0x2cc68f[_0x3b39f6(0x230)]('.')+0x1)))return _0x481788(_0x3b39f6(0x1f2));const _0xb56b10=(_0x42ac83+'/'+_0x2cc68f)[_0x3b39f6(0x227)](/(\\|\/)/g,'/')[_0x3b39f6(0x227)](/\/{2,}/g,'/');if(!fs[_0x3b39f6(0x203)](_0xb56b10)){!fs[_0x3b39f6(0x203)](_0x42ac83)&&fs['mkdirSync'](_0x42ac83,{'recursive':!![]});const _0x35a723=new exceljs['Workbook']();await _0x35a723[_0x3b39f6(0x212)]['writeFile'](_0xb56b10);}return _0x16d7cc(new ExcelStream(_0xb56b10));});}async[a15_0x2372a3(0x221)](_0x5586fb,_0x594383,_0x18bf0f={}){const _0x4a784c=a15_0x2372a3,{sheet:sheet=0x0,fileLimit:fileLimit=0x0}=_0x18bf0f,_0x20f42c=_0x5586fb[_0x4a784c(0x1e6)](_0x53095f=>({'header':_0x53095f['header'],'key':_0x53095f[_0x4a784c(0x22b)][_0x4a784c(0x227)](/\./g,'_')}));if(!Array['isArray'](_0x594383)&&!isReadableStream(_0x594383))return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0,'fileCount':0x0,'filepaths':[]};let _0x5017d9=0x0,_0x3fb9d4=0x0,_0x4a41bf=0x0,_0x3047f5=[],_0x5e6d81;const _0x8c403=async()=>{const _0x19d2e4=_0x4a784c;if(fileLimit>0x0){_0x3fb9d4>0x0&&(await this[_0x19d2e4(0x214)][_0x19d2e4(0x20e)](),this[_0x19d2e4(0x215)][_0x19d2e4(0x1ef)]());const _0xea71d6=path[_0x19d2e4(0x1fa)](this[_0x19d2e4(0x1df)]),_0x52ff1a=this[_0x19d2e4(0x1df)][_0x19d2e4(0x227)](_0xea71d6,''),_0x5b876b=_0x52ff1a+'-'+(_0x3fb9d4+0x1)+_0xea71d6;this[_0x19d2e4(0x22a)]=new exceljs[(_0x19d2e4(0x1eb))][(_0x19d2e4(0x212))][(_0x19d2e4(0x214))]({'filename':_0x5b876b,'useStyles':!![],'useSharedStrings':![]}),_0x3047f5[_0x19d2e4(0x216)](_0x5b876b),await fsplus[_0x19d2e4(0x1e5)](this['filepath'])&&await fsplus[_0x19d2e4(0x1de)](this['filepath']);}_0x5e6d81=this[_0x19d2e4(0x231)](sheet,!![]),_0x5e6d81['columns']=_0x20f42c;},_0x451871=0x64,_0x208da0=Array[_0x4a784c(0x1e2)](_0x594383)?stream_1['Readable']['from'](this['chunkArray'](_0x594383,_0x451871),{'objectMode':!![]}):_0x594383,_0x4de6c8=new stream_1[(_0x4a784c(0x1e8))]({'objectMode':!![],'highWaterMark':_0x451871,'transform':async function(_0xdef81b,_0x517e83,_0x3f447c){const _0xee1397=_0x4a784c;Array[_0xee1397(0x1e2)](_0xdef81b)&&_0xdef81b[_0xee1397(0x202)]>0x0&&_0xdef81b['forEach'](_0x328111=>{const _0x5d5143=_0xee1397;this[_0x5d5143(0x216)](_0x328111);}),_0x3f447c();}});await _0x8c403();const _0xfc6179=new stream_1['Writable']({'objectMode':!![],'highWaterMark':_0x451871,async 'write'(_0x5a0408,_0x58fdb8,_0xb8bd73){const _0x599c72=_0x4a784c;var _0xdaff81;try{fileLimit>0x0&&_0x4a41bf>=fileLimit&&(_0x3fb9d4++,_0x4a41bf=0x0,await _0x8c403());const _0x5041a5=_0x5e6d81[_0x599c72(0x20d)]({});for(let _0x41aa6f in _0x5586fb){const _0x5e26a0=_0x5586fb[_0x41aa6f][_0x599c72(0x22b)][_0x599c72(0x227)](/\./g,'_'),_0xc1473=_0x5e6d81[_0x599c72(0x1f1)](_0x5e26a0),_0xbca0fc=_0x5041a5===null||_0x5041a5===void 0x0?void 0x0:_0x5041a5['getCell'](_0x5e26a0);typeof((_0xdaff81=_0x5586fb[_0x41aa6f])===null||_0xdaff81===void 0x0?void 0x0:_0xdaff81[_0x599c72(0x21a)])=='function'?_0xbca0fc[_0x599c72(0x21b)]=await _0x5586fb[_0x41aa6f][_0x599c72(0x21a)](_0x5a0408,{'row':_0x5041a5,'col':_0xc1473,'cell':_0xbca0fc,'sheet':_0x5e6d81})||'':_0xbca0fc[_0x599c72(0x21b)]=lodash[_0x599c72(0x200)](_0x5a0408,_0x5586fb[_0x41aa6f][_0x599c72(0x22b)],'');}_0x5017d9++,_0x4a41bf++,_0x5041a5['commit'](),_0xb8bd73();}catch(_0x24665f){_0xb8bd73(_0x24665f);}},async 'final'(_0x4700d5){try{_0x4700d5();}catch(_0x26c293){_0x4700d5(_0x26c293);}}});return new Promise((_0x366130,_0x4cf388)=>{const _0x27d1e2=_0x4a784c,_0x1c8c20=_0x5d8bbb=>{const _0x205871=a15_0x47a6;_0x208da0[_0x205871(0x20c)](),_0x4de6c8[_0x205871(0x20c)](),_0xfc6179['destroy'](),_0x4cf388(_0x5d8bbb);};_0x208da0['on']('error',_0x1c8c20)['pipe'](_0x4de6c8)['on'](_0x27d1e2(0x208),_0x1c8c20)[_0x27d1e2(0x1ea)](_0xfc6179)['on']('error',_0x1c8c20)['on']('finish',()=>{const _0x58d24f=_0x27d1e2;try{_0x208da0[_0x58d24f(0x22c)](),_0x4de6c8['unpipe'](),_0x4de6c8[_0x58d24f(0x1e0)](),_0xfc6179[_0x58d24f(0x1e0)](),_0x366130({'rowCount':_0x5017d9,'worksheet':_0x5e6d81,'done':()=>_0x5e6d81['commit'](),'fileCount':_0x3fb9d4+0x1,'filepaths':_0x3047f5});}catch(_0x296466){_0x4cf388(_0x296466);}}),Array[_0x27d1e2(0x1e2)](_0x594383)&&_0x208da0[_0x27d1e2(0x1dd)]();});}async[a15_0x2372a3(0x1e3)](_0x805137,_0x582e56,_0x3698c3={'sheets':0x0}){const _0x16215d=a15_0x2372a3;var _0x18de36,_0x21d5c3,_0x54c5d5;const _0x18b93e=(_0x3698c3===null||_0x3698c3===void 0x0?void 0x0:_0x3698c3[_0x16215d(0x1fe)])?Array['isArray'](_0x3698c3[_0x16215d(0x1fe)])?_0x3698c3[_0x16215d(0x1fe)]:[_0x3698c3[_0x16215d(0x1fe)]]:[0x0],_0x570292=_0x539d0b=>new Promise(async(_0x23a00b,_0x419509)=>{const _0x144a97=_0x16215d,_0x52c4ff=_0x539d0b[_0x144a97(0x206)](0x1),_0x45234f=await new Promise(_0x35658e=>{const _0x22a0cf=_0x144a97,_0x4f094e={};_0x52c4ff[_0x22a0cf(0x210)]((_0x309d51,_0x900f2d)=>{const _0x33fd7f=_0x22a0cf;for(const _0x209dfc of _0x805137){if(_0x309d51[_0x33fd7f(0x21b)]==_0x209dfc[_0x33fd7f(0x1e4)])_0x4f094e[_0x209dfc['key']]={'header':_0x309d51[_0x33fd7f(0x22f)],'handler':_0x209dfc[_0x33fd7f(0x21a)]};else{if(!_0x4f094e[_0x209dfc[_0x33fd7f(0x22b)]])try{const _0x31fd89=_0x52c4ff&&_0x52c4ff['getCell'](_0x209dfc[_0x33fd7f(0x1e4)]);_0x31fd89&&(_0x4f094e[_0x209dfc['key']]={'header':_0x31fd89[_0x33fd7f(0x22f)],'handler':_0x209dfc[_0x33fd7f(0x21a)]});}catch{}}}_0x52c4ff['cellCount']==_0x900f2d&&_0x35658e(_0x4f094e);});});_0x539d0b['on'](_0x144a97(0x1e9),_0xfe352a=>_0x23a00b(_0x539d0b)),_0x539d0b['on'](_0x144a97(0x208),_0x3d73a7=>_0x419509(_0x3d73a7)),_0x539d0b['on']('row',async _0x5c5823=>{const _0x10d4f1=_0x144a97;var _0x235aad;if(typeof(_0x5c5823===null||_0x5c5823===void 0x0?void 0x0:_0x5c5823[_0x10d4f1(0x1ff)])=='function'){const _0x54ca2f={};_0x1b84c3:for(const _0x4e0b28 in _0x45234f){if(_0x45234f[_0x4e0b28][_0x10d4f1(0x1e4)]){const _0x51b2e2=_0x5c5823['getCell'](_0x45234f[_0x4e0b28][_0x10d4f1(0x1e4)]);if(!_0x51b2e2)continue _0x1b84c3;try{_0x51b2e2[_0x10d4f1(0x223)]();}catch(_0x200994){_0x51b2e2[_0x10d4f1(0x223)]=()=>{const _0x41467e=_0x10d4f1;var _0x285b15;return''+(((_0x285b15=_0x51b2e2===null||_0x51b2e2===void 0x0?void 0x0:_0x51b2e2[_0x41467e(0x21f)])===null||_0x285b15===void 0x0?void 0x0:_0x285b15['value'])||'');};}typeof((_0x235aad=_0x45234f[_0x4e0b28])===null||_0x235aad===void 0x0?void 0x0:_0x235aad[_0x10d4f1(0x21a)])==_0x10d4f1(0x1f9)?_0x54ca2f[_0x4e0b28]=await _0x45234f[_0x4e0b28][_0x10d4f1(0x21a)](lodash['set']({},_0x4e0b28,(_0x51b2e2===null||_0x51b2e2===void 0x0?void 0x0:_0x51b2e2[_0x10d4f1(0x223)]())||''),_0x51b2e2[_0x10d4f1(0x21f)]):_0x54ca2f[_0x4e0b28]=(_0x51b2e2===null||_0x51b2e2===void 0x0?void 0x0:_0x51b2e2['toString']())||'';}}Object[_0x10d4f1(0x1fd)](_0x54ca2f)['length']>0x0&&Object[_0x10d4f1(0x21c)](_0x54ca2f)['filter'](_0x5c361c=>_0x5c361c!='')[_0x10d4f1(0x202)]>0x0&&await _0x582e56(_0x54ca2f,{'sheet':_0x539d0b,'row':_0x5c5823});}}),await _0x539d0b[_0x144a97(0x225)]();});for(const _0x5234e6 of _0x18b93e){const _0xa50dd0=lodash[_0x16215d(0x1f7)](_0x5234e6)?((_0x21d5c3=(_0x18de36=this['WorkbookReader'])===null||_0x18de36===void 0x0?void 0x0:_0x18de36[_0x16215d(0x22d)])===null||_0x21d5c3===void 0x0?void 0x0:_0x21d5c3[_0x5234e6])||undefined:(_0x54c5d5=this[_0x16215d(0x224)])===null||_0x54c5d5===void 0x0?void 0x0:_0x54c5d5[_0x16215d(0x1f5)](_0x5234e6);_0xa50dd0&&await _0x570292(_0xa50dd0);}}[a15_0x2372a3(0x231)](_0x19770d,_0x4907b0=![]){const _0x59036c=a15_0x2372a3;var _0x56cc33,_0x2b0bc4;let _0x1af35b=this['_WorksheetWriterMap']['has'](_0x19770d)?this[_0x59036c(0x215)][_0x59036c(0x200)](_0x19770d):(_0x56cc33=this['WorkbookWriter'])===null||_0x56cc33===void 0x0?void 0x0:_0x56cc33[_0x59036c(0x1f5)](_0x19770d);return!_0x1af35b&&_0x4907b0&&(_0x1af35b=(_0x2b0bc4=this[_0x59036c(0x214)])===null||_0x2b0bc4===void 0x0?void 0x0:_0x2b0bc4['addWorksheet'](lodash[_0x59036c(0x1f7)](_0x19770d)?undefined:''+_0x19770d,{'views':[{'state':'frozen','ySplit':0x1}]}),this[_0x59036c(0x215)]['set'](_0x19770d,_0x1af35b)),_0x1af35b;}async[a15_0x2372a3(0x1ee)](){const _0x13d415=a15_0x2372a3;var _0x341ae4;return await((_0x341ae4=this['WorkbookWriter'])===null||_0x341ae4===void 0x0?void 0x0:_0x341ae4[_0x13d415(0x20e)]()),this;}*[a15_0x2372a3(0x201)](_0x54f465,_0x40365e){const _0x338481=a15_0x2372a3;for(let _0x3d81ef=0x0;_0x3d81ef<_0x54f465[_0x338481(0x202)];_0x3d81ef+=_0x40365e){yield _0x54f465['slice'](_0x3d81ef,_0x3d81ef+_0x40365e);}}}exports[a15_0x2372a3(0x207)]=ExcelStream;
|
|
1
|
+
const a15_0x1a672a=a15_0x458e;(function(_0x352c85,_0x209600){const _0x4768ad=a15_0x458e,_0x3ebd0e=_0x352c85();while(!![]){try{const _0x4408c8=parseInt(_0x4768ad(0x15f))/0x1+-parseInt(_0x4768ad(0x15b))/0x2+parseInt(_0x4768ad(0x173))/0x3+-parseInt(_0x4768ad(0x141))/0x4*(-parseInt(_0x4768ad(0x135))/0x5)+parseInt(_0x4768ad(0x140))/0x6+parseInt(_0x4768ad(0x145))/0x7*(-parseInt(_0x4768ad(0x182))/0x8)+-parseInt(_0x4768ad(0x154))/0x9;if(_0x4408c8===_0x209600)break;else _0x3ebd0e['push'](_0x3ebd0e['shift']());}catch(_0x311b86){_0x3ebd0e['push'](_0x3ebd0e['shift']());}}}(a15_0x27e6,0x2d53b));const a15_0x3a0fd1=(function(){let _0x13df62=!![];return function(_0x4748f8,_0x4c51f3){const _0x57abd8=_0x13df62?function(){const _0x48dede=a15_0x458e;if(_0x4c51f3){const _0x5e4695=_0x4c51f3[_0x48dede(0x130)](_0x4748f8,arguments);return _0x4c51f3=null,_0x5e4695;}}:function(){};return _0x13df62=![],_0x57abd8;};}()),a15_0x448395=a15_0x3a0fd1(this,function(){const _0x306f9e=a15_0x458e;return a15_0x448395['toString']()['search'](_0x306f9e(0x13a))[_0x306f9e(0x168)]()['constructor'](a15_0x448395)['search'](_0x306f9e(0x13a));});function a15_0x27e6(){const _0x1f1eb9=['WorkbookReader','row','getCell','466404gLQoMN','16TozfAI','header','getColumn','clear','689647laPooQ','key','model','ExcelStream','ignore','forEach','filter','length','existsSync','destroy','col','resume','stream','push','_WorkbookReader','252288jFoDyV','worksheets','exists','exceljs','isArray','emit','includes','601052jWZQyK','map','extname','reader','260708IDKzzz','replace','handler','end','frozen','Transform','unpipe','indexOf','Writable','toString','lastIndexOf','getWorkbookWriterSheet','_WorkbookWriter','dirname','isNumber','suffix','function','instance','defineProperty','writeFile','627240MMfKgf','sheets','columns','addWorksheet','xlsx','value','chunkArray','save','cellCount','addRow','rootpath','get','substring','__esModule','read','8vDIKjI','set','path','filepath','pause','lodash','error','apply','WorkbookWriter','from','has','Workbook','81520RKNqDP','_WorksheetWriterMap','commit','slice','startsWith','(((.+)+)+)+$','pipe','xls'];a15_0x27e6=function(){return _0x1f1eb9;};return a15_0x27e6();}a15_0x448395();'use strict';function a15_0x458e(_0x2bb476,_0x40d88c){const _0x57ce2a=a15_0x27e6();return a15_0x458e=function(_0x448395,_0x3a0fd1){_0x448395=_0x448395-0x12a;let _0x27e623=_0x57ce2a[_0x448395];return _0x27e623;},a15_0x458e(_0x2bb476,_0x40d88c);}Object[a15_0x1a672a(0x171)](exports,a15_0x1a672a(0x180),{'value':!![]}),exports[a15_0x1a672a(0x148)]=void 0x0;const fs=require('fs'),path=require(a15_0x1a672a(0x12b)),lodash=require(a15_0x1a672a(0x12e)),exceljs=require(a15_0x1a672a(0x157)),stream_1=require(a15_0x1a672a(0x151));function isReadableStream(_0x39b37f){const _0x1215df=a15_0x1a672a;return _0x39b37f&&typeof _0x39b37f['pipe']===_0x1215df(0x16f)&&typeof _0x39b37f['on']==='function'&&typeof _0x39b37f[_0x1215df(0x181)]==='function'&&typeof _0x39b37f[_0x1215df(0x12d)]===_0x1215df(0x16f)&&typeof _0x39b37f[_0x1215df(0x150)]==='function';}class ExcelStream{constructor(_0x54809e){const _0x257208=a15_0x1a672a;this[_0x257208(0x136)]=new Map(),this[_0x257208(0x12c)]=_0x54809e;}get['WorkbookReader'](){const _0x1bd5a8=a15_0x1a672a;return!this[_0x1bd5a8(0x153)]&&(this[_0x1bd5a8(0x153)]=new exceljs['stream'][(_0x1bd5a8(0x177))]['WorkbookReader'](this['filepath'],{'worksheets':_0x1bd5a8(0x159),'sharedStrings':'ignore','hyperlinks':_0x1bd5a8(0x149),'styles':_0x1bd5a8(0x149)})),this[_0x1bd5a8(0x153)];}get[a15_0x1a672a(0x131)](){const _0x47cfc9=a15_0x1a672a;return!this[_0x47cfc9(0x16b)]&&(this[_0x47cfc9(0x16b)]=new exceljs[(_0x47cfc9(0x151))][(_0x47cfc9(0x177))][(_0x47cfc9(0x131))]({'filename':this[_0x47cfc9(0x12c)],'useStyles':!![],'useSharedStrings':![]})),this[_0x47cfc9(0x16b)];}static[a15_0x1a672a(0x170)](_0x458270,_0xba92e4={'suffix':[a15_0x1a672a(0x13c),'xlsx']}){return new Promise(async(_0x2e3cf3,_0xa25bfc)=>{const _0x5cecaf=a15_0x458e,_0x5f54bb=_0x458270[_0x5cecaf(0x17f)]((_0x458270[_0x5cecaf(0x166)]('/')>-0x1?_0x458270[_0x5cecaf(0x169)]('/'):_0x458270['lastIndexOf']('\x5c'))+0x1),_0x20ab2c=path[_0x5cecaf(0x16c)](((_0xba92e4===null||_0xba92e4===void 0x0?void 0x0:_0xba92e4[_0x5cecaf(0x17d)])&&!_0x458270[_0x5cecaf(0x139)](_0xba92e4[_0x5cecaf(0x17d)])?_0xba92e4[_0x5cecaf(0x17d)]+'/'+_0x458270:'/'+_0x458270)['replace'](/(\\|\/)/g,'/')[_0x5cecaf(0x160)](/\/{2,}/g,'/'));if(!((_0xba92e4===null||_0xba92e4===void 0x0?void 0x0:_0xba92e4[_0x5cecaf(0x16e)])?_0xba92e4[_0x5cecaf(0x16e)]:[_0x5cecaf(0x13c),_0x5cecaf(0x177)])[_0x5cecaf(0x15a)](_0x5f54bb[_0x5cecaf(0x17f)](_0x5f54bb[_0x5cecaf(0x169)]('.')+0x1)))return _0xa25bfc('文件名格式错误');const _0x35ba31=(_0x20ab2c+'/'+_0x5f54bb)[_0x5cecaf(0x160)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');if(!fs['existsSync'](_0x35ba31)){!fs[_0x5cecaf(0x14d)](_0x20ab2c)&&fs['mkdirSync'](_0x20ab2c,{'recursive':!![]});const _0x115f9b=new exceljs[(_0x5cecaf(0x134))]();await _0x115f9b['xlsx'][_0x5cecaf(0x172)](_0x35ba31);}return _0x2e3cf3(new ExcelStream(_0x35ba31));});}async['writer'](_0x2d9a41,_0x326d0f,_0x376d89={}){const _0x188774=a15_0x1a672a,{sheet:sheet=0x0,fileLimit:fileLimit=0x0}=_0x376d89,_0x31d39f=_0x2d9a41[_0x188774(0x15c)](_0x10c963=>({'header':_0x10c963[_0x188774(0x142)],'key':_0x10c963[_0x188774(0x146)][_0x188774(0x160)](/\./g,'_')}));if(!Array[_0x188774(0x158)](_0x326d0f)&&!isReadableStream(_0x326d0f))return{'rowCount':0x0,'worksheet':undefined,'done':()=>void 0x0,'fileCount':0x0,'filepaths':[]};let _0x3203da=0x0,_0x2d0a51=0x0,_0x227668=0x0,_0x427d03=[],_0x4704d7;const _0x2003c9=async()=>{const _0x106566=_0x188774;if(fileLimit>0x0){_0x2d0a51>0x0&&(await this[_0x106566(0x131)][_0x106566(0x137)](),this[_0x106566(0x136)][_0x106566(0x144)]());const _0x4f978b=path[_0x106566(0x15d)](this[_0x106566(0x12c)]),_0x5ec8a8=this[_0x106566(0x12c)][_0x106566(0x160)](_0x4f978b,''),_0x2cca9e=_0x5ec8a8+'-'+(_0x2d0a51+0x1)+_0x4f978b;this[_0x106566(0x16b)]=new exceljs[(_0x106566(0x151))][(_0x106566(0x177))][(_0x106566(0x131))]({'filename':_0x2cca9e,'useStyles':!![],'useSharedStrings':![]}),_0x427d03[_0x106566(0x152)](_0x2cca9e),await fsplus[_0x106566(0x156)](this['filepath'])&&await fsplus['unlink'](this[_0x106566(0x12c)]);}_0x4704d7=this[_0x106566(0x16a)](sheet,!![]),_0x4704d7[_0x106566(0x175)]=_0x31d39f;},_0x21008b=0x64,_0x3f14e8=Array[_0x188774(0x158)](_0x326d0f)?stream_1['Readable'][_0x188774(0x132)](this[_0x188774(0x179)](_0x326d0f,_0x21008b),{'objectMode':!![]}):_0x326d0f,_0x50c7d5=new stream_1[(_0x188774(0x164))]({'objectMode':!![],'highWaterMark':_0x21008b,'transform':async function(_0x5160ed,_0x342821,_0x49a541){const _0x17fdaa=_0x188774;Array[_0x17fdaa(0x158)](_0x5160ed)&&_0x5160ed[_0x17fdaa(0x14c)]>0x0&&_0x5160ed[_0x17fdaa(0x14a)](_0xdabc4a=>{const _0x38a84a=_0x17fdaa;this[_0x38a84a(0x152)](_0xdabc4a);}),_0x49a541();}});await _0x2003c9();const _0x3717bf=new stream_1[(_0x188774(0x167))]({'objectMode':!![],'highWaterMark':_0x21008b,async 'write'(_0x24d770,_0x2216fe,_0x217270){const _0x2e5c79=_0x188774;var _0x1e65d4;try{fileLimit>0x0&&_0x227668>=fileLimit&&(_0x2d0a51++,_0x227668=0x0,await _0x2003c9());const _0x3194f9=_0x4704d7[_0x2e5c79(0x17c)]({});for(let _0x882f9b in _0x2d9a41){const _0x10001b=_0x2d9a41[_0x882f9b][_0x2e5c79(0x146)][_0x2e5c79(0x160)](/\./g,'_'),_0x27fc8d=_0x4704d7[_0x2e5c79(0x143)](_0x10001b),_0x3fd4a2=_0x3194f9===null||_0x3194f9===void 0x0?void 0x0:_0x3194f9[_0x2e5c79(0x13f)](_0x10001b);typeof((_0x1e65d4=_0x2d9a41[_0x882f9b])===null||_0x1e65d4===void 0x0?void 0x0:_0x1e65d4[_0x2e5c79(0x161)])=='function'?_0x3fd4a2[_0x2e5c79(0x178)]=await _0x2d9a41[_0x882f9b]['handler'](_0x24d770,{'row':_0x3194f9,'col':_0x27fc8d,'cell':_0x3fd4a2,'sheet':_0x4704d7})||'':_0x3fd4a2[_0x2e5c79(0x178)]=lodash[_0x2e5c79(0x17e)](_0x24d770,_0x2d9a41[_0x882f9b][_0x2e5c79(0x146)],'');}_0x3203da++,_0x227668++,_0x3194f9[_0x2e5c79(0x137)](),_0x217270();}catch(_0x5d218d){_0x217270(_0x5d218d);}},async 'final'(_0x455961){try{_0x455961();}catch(_0x5855f9){_0x455961(_0x5855f9);}}});return new Promise((_0xe7922b,_0x541a94)=>{const _0x430905=_0x188774,_0x517641=_0x1858ae=>{const _0x154374=a15_0x458e;_0x3f14e8[_0x154374(0x14e)](),_0x50c7d5['destroy'](),_0x3717bf[_0x154374(0x14e)](),_0x541a94(_0x1858ae);};_0x3f14e8['on'](_0x430905(0x12f),_0x517641)[_0x430905(0x13b)](_0x50c7d5)['on'](_0x430905(0x12f),_0x517641)[_0x430905(0x13b)](_0x3717bf)['on'](_0x430905(0x12f),_0x517641)['on']('finish',()=>{const _0x2d7367=_0x430905;try{_0x3f14e8[_0x2d7367(0x165)](),_0x50c7d5[_0x2d7367(0x165)](),_0x50c7d5[_0x2d7367(0x162)](),_0x3717bf[_0x2d7367(0x162)](),_0xe7922b({'rowCount':_0x3203da,'worksheet':_0x4704d7,'done':()=>_0x4704d7['commit'](),'fileCount':_0x2d0a51+0x1,'filepaths':_0x427d03});}catch(_0x3699eb){_0x541a94(_0x3699eb);}}),Array['isArray'](_0x326d0f)&&_0x3f14e8[_0x430905(0x150)]();});}async[a15_0x1a672a(0x15e)](_0x106343,_0x468437,_0x4f3440={'sheets':0x0}){const _0x368b1e=a15_0x1a672a;var _0x3cbfe7,_0x30114c,_0x3e2424;const _0x166a8e=(_0x4f3440===null||_0x4f3440===void 0x0?void 0x0:_0x4f3440['sheets'])?Array[_0x368b1e(0x158)](_0x4f3440[_0x368b1e(0x174)])?_0x4f3440[_0x368b1e(0x174)]:[_0x4f3440[_0x368b1e(0x174)]]:[0x0],_0x306bbd=_0x3cd5ef=>new Promise(async(_0x428584,_0x5da5cc)=>{const _0x352bfc=_0x368b1e,_0x2c0034=_0x3cd5ef['getRow'](0x1),_0x38a769=await new Promise(_0x2cc8e9=>{const _0x39f220={};_0x2c0034['eachCell']((_0x133241,_0x4c9e91)=>{const _0x3e4270=a15_0x458e;for(const _0x2e5d7b of _0x106343){if(_0x133241[_0x3e4270(0x178)]==_0x2e5d7b['header'])_0x39f220[_0x2e5d7b['key']]={'header':_0x133241[_0x3e4270(0x14f)],'handler':_0x2e5d7b[_0x3e4270(0x161)]};else{if(!_0x39f220[_0x2e5d7b[_0x3e4270(0x146)]])try{const _0x1dd0ce=_0x2c0034&&_0x2c0034[_0x3e4270(0x13f)](_0x2e5d7b['header']);_0x1dd0ce&&(_0x39f220[_0x2e5d7b['key']]={'header':_0x1dd0ce[_0x3e4270(0x14f)],'handler':_0x2e5d7b[_0x3e4270(0x161)]});}catch{}}}_0x2c0034[_0x3e4270(0x17b)]==_0x4c9e91&&_0x2cc8e9(_0x39f220);});});_0x3cd5ef['on']('finished',_0x286db5=>_0x428584(_0x3cd5ef)),_0x3cd5ef['on'](_0x352bfc(0x12f),_0x472d57=>_0x5da5cc(_0x472d57)),_0x3cd5ef['on'](_0x352bfc(0x13e),async _0x478024=>{const _0x5d6f38=_0x352bfc;var _0x4620b4;if(typeof(_0x478024===null||_0x478024===void 0x0?void 0x0:_0x478024['getCell'])==_0x5d6f38(0x16f)){const _0x12f72e={};_0x1ba0df:for(const _0x5a98b1 in _0x38a769){if(_0x38a769[_0x5a98b1]['header']){const _0x22ab7c=_0x478024['getCell'](_0x38a769[_0x5a98b1]['header']);if(!_0x22ab7c)continue _0x1ba0df;try{_0x22ab7c[_0x5d6f38(0x168)]();}catch(_0x559814){_0x22ab7c[_0x5d6f38(0x168)]=()=>{const _0x3bc1a4=_0x5d6f38;var _0x5f4b8d;return''+(((_0x5f4b8d=_0x22ab7c===null||_0x22ab7c===void 0x0?void 0x0:_0x22ab7c[_0x3bc1a4(0x147)])===null||_0x5f4b8d===void 0x0?void 0x0:_0x5f4b8d[_0x3bc1a4(0x178)])||'');};}typeof((_0x4620b4=_0x38a769[_0x5a98b1])===null||_0x4620b4===void 0x0?void 0x0:_0x4620b4[_0x5d6f38(0x161)])==_0x5d6f38(0x16f)?_0x12f72e[_0x5a98b1]=await _0x38a769[_0x5a98b1][_0x5d6f38(0x161)](lodash['set']({},_0x5a98b1,(_0x22ab7c===null||_0x22ab7c===void 0x0?void 0x0:_0x22ab7c[_0x5d6f38(0x168)]())||''),_0x22ab7c[_0x5d6f38(0x147)]):_0x12f72e[_0x5a98b1]=(_0x22ab7c===null||_0x22ab7c===void 0x0?void 0x0:_0x22ab7c[_0x5d6f38(0x168)]())||'';}}Object['keys'](_0x12f72e)[_0x5d6f38(0x14c)]>0x0&&Object['values'](_0x12f72e)[_0x5d6f38(0x14b)](_0x1f6052=>_0x1f6052!='')[_0x5d6f38(0x14c)]>0x0&&await _0x468437(_0x12f72e,{'sheet':_0x3cd5ef,'row':_0x478024});}}),await _0x3cd5ef[_0x352bfc(0x181)]();});for(const _0x4524e2 of _0x166a8e){const _0x2bfce3=lodash[_0x368b1e(0x16d)](_0x4524e2)?((_0x30114c=(_0x3cbfe7=this[_0x368b1e(0x13d)])===null||_0x3cbfe7===void 0x0?void 0x0:_0x3cbfe7[_0x368b1e(0x155)])===null||_0x30114c===void 0x0?void 0x0:_0x30114c[_0x4524e2])||undefined:(_0x3e2424=this['WorkbookReader'])===null||_0x3e2424===void 0x0?void 0x0:_0x3e2424['getWorksheet'](_0x4524e2);_0x2bfce3&&await _0x306bbd(_0x2bfce3);}}['getWorkbookWriterSheet'](_0x1da907,_0x4c64e9=![]){const _0x46517a=a15_0x1a672a;var _0x4e79ae,_0x559515;let _0x39b1a2=this[_0x46517a(0x136)][_0x46517a(0x133)](_0x1da907)?this[_0x46517a(0x136)][_0x46517a(0x17e)](_0x1da907):(_0x4e79ae=this[_0x46517a(0x131)])===null||_0x4e79ae===void 0x0?void 0x0:_0x4e79ae['getWorksheet'](_0x1da907);return!_0x39b1a2&&_0x4c64e9&&(_0x39b1a2=(_0x559515=this[_0x46517a(0x131)])===null||_0x559515===void 0x0?void 0x0:_0x559515[_0x46517a(0x176)](lodash[_0x46517a(0x16d)](_0x1da907)?undefined:''+_0x1da907,{'views':[{'state':_0x46517a(0x163),'ySplit':0x1}]}),this['_WorksheetWriterMap'][_0x46517a(0x12a)](_0x1da907,_0x39b1a2)),_0x39b1a2;}async[a15_0x1a672a(0x17a)](){const _0x493716=a15_0x1a672a;var _0x569493;return await((_0x569493=this[_0x493716(0x131)])===null||_0x569493===void 0x0?void 0x0:_0x569493[_0x493716(0x137)]()),this;}*[a15_0x1a672a(0x179)](_0x25bd01,_0x3c9f75){const _0x2ffcc1=a15_0x1a672a;for(let _0x51636b=0x0;_0x51636b<_0x25bd01[_0x2ffcc1(0x14c)];_0x51636b+=_0x3c9f75){yield _0x25bd01[_0x2ffcc1(0x138)](_0x51636b,_0x51636b+_0x3c9f75);}}}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a16_0x6484(_0x2049ea,_0x4d9283){var _0x515f86=a16_0x3444();return a16_0x6484=function(_0x4e291b,_0x39f715){_0x4e291b=_0x4e291b-0x19e;var _0x344459=_0x515f86[_0x4e291b];return _0x344459;},a16_0x6484(_0x2049ea,_0x4d9283);}function a16_0x3444(){var _0x372ac1=['search','AppsConfigTmp','8258598nyMlQA','2669303FgFmAe','137463GoBSBr','ACTION_KEY','3763115fdThWS','anncic-api:action','anncic-api:action:response','ACTION_RESPONSE_KEY','2640316UGqePy','defineProperty','18MVCGiD','APPSCONFIG_KEY','46QTzfND','ACTION_ROUTE_KEY','2092768NEeYPE','(((.+)+)+)+$','toString','__esModule','1940443ZDhLUi'];a16_0x3444=function(){return _0x372ac1;};return a16_0x3444();}var a16_0x4e5d7b=a16_0x6484;(function(_0x1ca7b3,_0x52038){var _0x4262c3=a16_0x6484,_0x90f59e=_0x1ca7b3();while(!![]){try{var _0x32a80e=-parseInt(_0x4262c3(0x1b2))/0x1+-parseInt(_0x4262c3(0x1ac))/0x2*(-parseInt(_0x4262c3(0x1a2))/0x3)+parseInt(_0x4262c3(0x1a8))/0x4+parseInt(_0x4262c3(0x1a4))/0x5+parseInt(_0x4262c3(0x1a0))/0x6+-parseInt(_0x4262c3(0x1a1))/0x7+-parseInt(_0x4262c3(0x1ae))/0x8*(parseInt(_0x4262c3(0x1aa))/0x9);if(_0x32a80e===_0x52038)break;else _0x90f59e['push'](_0x90f59e['shift']());}catch(_0x42d54c){_0x90f59e['push'](_0x90f59e['shift']());}}}(a16_0x3444,0xf3aa6));var a16_0x39f715=(function(){var _0x339a74=!![];return function(_0xe28f09,_0x5125e3){var _0x1cd0e0=_0x339a74?function(){if(_0x5125e3){var _0x5b4b00=_0x5125e3['apply'](_0xe28f09,arguments);return _0x5125e3=null,_0x5b4b00;}}:function(){};return _0x339a74=![],_0x1cd0e0;};}()),a16_0x4e291b=a16_0x39f715(this,function(){var _0x42e569=a16_0x6484;return a16_0x4e291b[_0x42e569(0x1b0)]()[_0x42e569(0x19e)](_0x42e569(0x1af))[_0x42e569(0x1b0)]()['constructor'](a16_0x4e291b)['search']('(((.+)+)+)+$');});a16_0x4e291b();'use strict';Object[a16_0x4e5d7b(0x1a9)](exports,a16_0x4e5d7b(0x1b1),{'value':!![]}),exports['AppsConfigTmp']=exports['APPSCONFIG_KEY']=exports['ACTION_RESPONSE_KEY']=exports['ACTION_ROUTE_KEY']=exports[a16_0x4e5d7b(0x1a3)]=void 0x0,exports[a16_0x4e5d7b(0x1a3)]=a16_0x4e5d7b(0x1a5),exports[a16_0x4e5d7b(0x1ad)]='anncic-api:action:route',exports[a16_0x4e5d7b(0x1a7)]=a16_0x4e5d7b(0x1a6),exports[a16_0x4e5d7b(0x1ab)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a16_0x4e5d7b(0x19f)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a17_0x4e5f(_0x6ed470,_0x3370d9){var _0x12fc39=a17_0x8ca1();return a17_0x4e5f=function(_0x22ea9b,_0x3dd098){_0x22ea9b=_0x22ea9b-0x1bb;var _0x8ca148=_0x12fc39[_0x22ea9b];return _0x8ca148;},a17_0x4e5f(_0x6ed470,_0x3370d9);}var a17_0x3847fa=a17_0x4e5f;(function(_0x37990e,_0x426340){var _0x411421=a17_0x4e5f,_0x18387a=_0x37990e();while(!![]){try{var _0x5713a1=parseInt(_0x411421(0x1d7))/0x1+parseInt(_0x411421(0x1c0))/0x2*(parseInt(_0x411421(0x1cb))/0x3)+-parseInt(_0x411421(0x1df))/0x4*(-parseInt(_0x411421(0x1d8))/0x5)+parseInt(_0x411421(0x1dc))/0x6*(-parseInt(_0x411421(0x1e2))/0x7)+parseInt(_0x411421(0x1c4))/0x8*(parseInt(_0x411421(0x1bb))/0x9)+parseInt(_0x411421(0x1be))/0xa*(parseInt(_0x411421(0x1ce))/0xb)+-parseInt(_0x411421(0x1bd))/0xc;if(_0x5713a1===_0x426340)break;else _0x18387a['push'](_0x18387a['shift']());}catch(_0x4253a2){_0x18387a['push'](_0x18387a['shift']());}}}(a17_0x8ca1,0xb3d1f));var a17_0x3dd098=(function(){var _0x1f1587=!![];return function(_0x392153,_0x42e17a){var _0x2299c3=_0x1f1587?function(){var _0x3bb62f=a17_0x4e5f;if(_0x42e17a){var _0x17bb9b=_0x42e17a[_0x3bb62f(0x1d5)](_0x392153,arguments);return _0x42e17a=null,_0x17bb9b;}}:function(){};return _0x1f1587=![],_0x2299c3;};}()),a17_0x22ea9b=a17_0x3dd098(this,function(){var _0x1c1719=a17_0x4e5f;return a17_0x22ea9b['toString']()[_0x1c1719(0x1d2)]('(((.+)+)+)+$')[_0x1c1719(0x1d9)]()['constructor'](a17_0x22ea9b)[_0x1c1719(0x1d2)]('(((.+)+)+)+$');});a17_0x22ea9b();'use strict';var __decorate=this&&this[a17_0x3847fa(0x1cd)]||function(_0x576671,_0x3c434e,_0x26c7ee,_0x2ad818){var _0x52fe43=a17_0x3847fa,_0x27fd06=arguments['length'],_0x45aa16=_0x27fd06<0x3?_0x3c434e:_0x2ad818===null?_0x2ad818=Object['getOwnPropertyDescriptor'](_0x3c434e,_0x26c7ee):_0x2ad818,_0x2981f9;if(typeof Reflect===_0x52fe43(0x1ca)&&typeof Reflect[_0x52fe43(0x1c5)]===_0x52fe43(0x1d1))_0x45aa16=Reflect[_0x52fe43(0x1c5)](_0x576671,_0x3c434e,_0x26c7ee,_0x2ad818);else{for(var _0x1e12cd=_0x576671['length']-0x1;_0x1e12cd>=0x0;_0x1e12cd--)if(_0x2981f9=_0x576671[_0x1e12cd])_0x45aa16=(_0x27fd06<0x3?_0x2981f9(_0x45aa16):_0x27fd06>0x3?_0x2981f9(_0x3c434e,_0x26c7ee,_0x45aa16):_0x2981f9(_0x3c434e,_0x26c7ee))||_0x45aa16;}return _0x27fd06>0x3&&_0x45aa16&&Object[_0x52fe43(0x1cf)](_0x3c434e,_0x26c7ee,_0x45aa16),_0x45aa16;},__metadata=this&&this[a17_0x3847fa(0x1c2)]||function(_0xcfc2a6,_0x13bc6d){var _0x5b0d92=a17_0x3847fa;if(typeof Reflect===_0x5b0d92(0x1ca)&&typeof Reflect[_0x5b0d92(0x1dd)]==='function')return Reflect[_0x5b0d92(0x1dd)](_0xcfc2a6,_0x13bc6d);};function a17_0x8ca1(){var _0x540c6b=['min','__metadata','_isreverse','179568lfLkyS','decorate','_page','@anncic-api/validator','prototype','排序方式','object','587463agzseE','第一页为1,第二页为2','__decorate','3828HwJyob','defineProperty','__esModule','function','search','integer','_order','apply','PageDTO','1291630TXlaZk','29215mrGBfm','toString','Rule','_size','6SGychd','metadata','design:type','628dXIDhv','RuleType','valid','2708664KVQWKT','number','162GPMjUK','trim','35841024rcXbDq','31770yGZdCw','分页数量','4yRpraZ'];a17_0x8ca1=function(){return _0x540c6b;};return a17_0x8ca1();}Object[a17_0x3847fa(0x1cf)](exports,a17_0x3847fa(0x1d0),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a17_0x3847fa(0x1c7));class PageDTO{}__decorate([(0x0,validator_1[a17_0x3847fa(0x1da)])('分页',validator_1[a17_0x3847fa(0x1e0)]['number']()[a17_0x3847fa(0x1d3)]()[a17_0x3847fa(0x1c1)](0x1),a17_0x3847fa(0x1cc)),__metadata('design:type',Number)],PageDTO[a17_0x3847fa(0x1c8)],a17_0x3847fa(0x1c6),void 0x0),__decorate([(0x0,validator_1[a17_0x3847fa(0x1da)])(a17_0x3847fa(0x1bf),validator_1[a17_0x3847fa(0x1e0)]['number']()[a17_0x3847fa(0x1d3)]()[a17_0x3847fa(0x1c1)](0x1)),__metadata('design:type',Number)],PageDTO[a17_0x3847fa(0x1c8)],a17_0x3847fa(0x1db),void 0x0),__decorate([(0x0,validator_1[a17_0x3847fa(0x1da)])(a17_0x3847fa(0x1c9),validator_1[a17_0x3847fa(0x1e0)]['string']()[a17_0x3847fa(0x1bc)]()),__metadata('design:type',String)],PageDTO[a17_0x3847fa(0x1c8)],a17_0x3847fa(0x1d4),void 0x0),__decorate([(0x0,validator_1[a17_0x3847fa(0x1da)])('是否倒序',validator_1[a17_0x3847fa(0x1e0)][a17_0x3847fa(0x1e3)]()[a17_0x3847fa(0x1d3)]()[a17_0x3847fa(0x1e1)](0x0,0x1),'1:是;0:否'),__metadata(a17_0x3847fa(0x1de),Number)],PageDTO[a17_0x3847fa(0x1c8)],a17_0x3847fa(0x1c3),void 0x0),exports[a17_0x3847fa(0x1d6)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a18_0x1a64fa=a18_0x46da;(function(_0x153da1,_0x5f1e9b){var _0x470252=a18_0x46da,_0x5a02a3=_0x153da1();while(!![]){try{var _0x550403=-parseInt(_0x470252(0xe1))/0x1+parseInt(_0x470252(0xe6))/0x2+parseInt(_0x470252(0xdd))/0x3*(-parseInt(_0x470252(0xda))/0x4)+parseInt(_0x470252(0xde))/0x5+-parseInt(_0x470252(0xdb))/0x6+parseInt(_0x470252(0xdf))/0x7*(-parseInt(_0x470252(0xe4))/0x8)+parseInt(_0x470252(0xe7))/0x9;if(_0x550403===_0x5f1e9b)break;else _0x5a02a3['push'](_0x5a02a3['shift']());}catch(_0x51912f){_0x5a02a3['push'](_0x5a02a3['shift']());}}}(a18_0x4712,0xcc636));function a18_0x46da(_0x405653,_0x24afca){var _0x3d7e12=a18_0x4712();return a18_0x46da=function(_0x151434,_0x3e68c9){_0x151434=_0x151434-0xd7;var _0x471235=_0x3d7e12[_0x151434];return _0x471235;},a18_0x46da(_0x405653,_0x24afca);}var a18_0x3e68c9=(function(){var _0x155c58=!![];return function(_0x24759b,_0x24cbc7){var _0xb2268=_0x155c58?function(){if(_0x24cbc7){var _0x2849a6=_0x24cbc7['apply'](_0x24759b,arguments);return _0x24cbc7=null,_0x2849a6;}}:function(){};return _0x155c58=![],_0xb2268;};}()),a18_0x151434=a18_0x3e68c9(this,function(){var _0x325665=a18_0x46da;return a18_0x151434[_0x325665(0xd8)]()[_0x325665(0xe5)]('(((.+)+)+)+$')[_0x325665(0xd8)]()[_0x325665(0xd9)](a18_0x151434)[_0x325665(0xe5)](_0x325665(0xd7));});a18_0x151434();'use strict';Object[a18_0x1a64fa(0xdc)](exports,'__esModule',{'value':!![]}),exports['InterceptTargetTmp']=exports[a18_0x1a64fa(0xe0)]=void 0x0,exports[a18_0x1a64fa(0xe0)]=a18_0x1a64fa(0xe3);function a18_0x4712(){var _0x3b1001=['INTERCEPT_KEY','1134294OOCtWS','InterceptTargetTmp','anncic-api:intercept','8uwUCVd','search','2820764AFPxKe','20107314jhnzuF','(((.+)+)+)+$','toString','constructor','8WMulqD','8347470HHUZfl','defineProperty','1945914HyIkzc','5227860PicRrx','210777vnAXlu'];a18_0x4712=function(){return _0x3b1001;};return a18_0x4712();}class InterceptTargetTmp{}exports[a18_0x1a64fa(0xe2)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.28",
|
|
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.28",
|
|
22
|
+
"@anncic-api/core": "^3.7.28",
|
|
23
|
+
"@anncic-api/event": "^3.7.28",
|
|
24
|
+
"@anncic-api/typeorm": "^3.7.28",
|
|
25
|
+
"@anncic-api/validator": "^3.7.28",
|
|
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.28",
|
|
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": "e5f44ad4532b61a63aadeb31572ac6d559b33d01"
|
|
42
42
|
}
|