anncic-api 3.4.24 → 3.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.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
|
+
function a0_0x50b6(){var _0x32c6a6=['13163896bpUJXk','20mb','__esModule','name','dhauo1234420123gg3234901','toString','10101jBfieA','search','2128YJNfJI','/runtime/.upload','695012xKEdiO','592157eoEZGs','2277483wHhSeS','1482rArNqH','27404991tradXH','defineProperty','(((.+)+)+)+$','8600EDwaCp','zhiulanuiy7892387985hnoi','xml','json'];a0_0x50b6=function(){return _0x32c6a6;};return a0_0x50b6();}var a0_0x1dca17=a0_0xea65;function a0_0xea65(_0x3c3011,_0x46e4fc){var _0x413b8b=a0_0x50b6();return a0_0xea65=function(_0xb77761,_0x1e7666){_0xb77761=_0xb77761-0xb8;var _0x50b6d6=_0x413b8b[_0xb77761];return _0x50b6d6;},a0_0xea65(_0x3c3011,_0x46e4fc);}(function(_0x4ca63e,_0x3aba66){var _0x199483=a0_0xea65,_0x104f8d=_0x4ca63e();while(!![]){try{var _0x472639=parseInt(_0x199483(0xb9))/0x1+-parseInt(_0x199483(0xb8))/0x2+parseInt(_0x199483(0xba))/0x3+-parseInt(_0x199483(0xcb))/0x4*(-parseInt(_0x199483(0xbf))/0x5)+-parseInt(_0x199483(0xbb))/0x6*(-parseInt(_0x199483(0xc9))/0x7)+parseInt(_0x199483(0xc3))/0x8+-parseInt(_0x199483(0xbc))/0x9;if(_0x472639===_0x3aba66)break;else _0x104f8d['push'](_0x104f8d['shift']());}catch(_0x7d2b05){_0x104f8d['push'](_0x104f8d['shift']());}}}(a0_0x50b6,0xd5cf1));var a0_0x1e7666=(function(){var _0x51b076=!![];return function(_0x5e8539,_0x24c014){var _0x128135=_0x51b076?function(){if(_0x24c014){var _0x408cdd=_0x24c014['apply'](_0x5e8539,arguments);return _0x24c014=null,_0x408cdd;}}:function(){};return _0x51b076=![],_0x128135;};}()),a0_0xb77761=a0_0x1e7666(this,function(){var _0x27b249=a0_0xea65;return a0_0xb77761[_0x27b249(0xc8)]()[_0x27b249(0xca)](_0x27b249(0xbe))[_0x27b249(0xc8)]()['constructor'](a0_0xb77761)['search'](_0x27b249(0xbe));});a0_0xb77761();'use strict';Object[a0_0x1dca17(0xbd)](exports,a0_0x1dca17(0xc5),{'value':!![]}),exports['default']=_0x9c1762=>{var _0x353a17=a0_0x1dca17;return{'apitest':!![],'keys':_0x9c1762[_0x353a17(0xc6)],'anncicapi':{'requestKey':'_token','password':_0x353a17(0xc0),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x353a17(0xc7)}}},'bodyParser':{'enableTypes':[_0x353a17(0xc2),'form','text',_0x353a17(0xc1)],'formLimit':_0x353a17(0xc4),'jsonLimit':'20mb','textLimit':_0x353a17(0xc4),'xmlLimit':_0x353a17(0xc4),'enable':!![]},'upload':{'tmpdir':_0x9c1762['appDir']+_0x353a17(0xcc),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a1_0x1cec(){var _0x32a3d3=['426960WjXmVr','search','545394UKbAZl','__esModule','(((.+)+)+)+$','2537542BoLrGP','85cYgbZM','71426FqbYcu','toString','332iPNZtv','15jBBcSd','3634536hVCpDE','650352exIFVO','default','apply'];a1_0x1cec=function(){return _0x32a3d3;};return a1_0x1cec();}var a1_0x8f36a=a1_0x1b48;(function(_0x39d90c,_0x462943){var _0xd871be=a1_0x1b48,_0xc4b289=_0x39d90c();while(!![]){try{var _0x3ebec3=-parseInt(_0xd871be(0x15b))/0x1+-parseInt(_0xd871be(0x151))/0x2*(-parseInt(_0xd871be(0x154))/0x3)+parseInt(_0xd871be(0x153))/0x4*(-parseInt(_0xd871be(0x150))/0x5)+-parseInt(_0xd871be(0x156))/0x6+parseInt(_0xd871be(0x14f))/0x7+parseInt(_0xd871be(0x155))/0x8+-parseInt(_0xd871be(0x159))/0x9;if(_0x3ebec3===_0x462943)break;else _0xc4b289['push'](_0xc4b289['shift']());}catch(_0x49d667){_0xc4b289['push'](_0xc4b289['shift']());}}}(a1_0x1cec,0x4778f));var a1_0xbdca1f=(function(){var _0x5716c9=!![];return function(_0x41f438,_0xc9b990){var _0x58a5e0=_0x5716c9?function(){var _0x510927=a1_0x1b48;if(_0xc9b990){var _0x1c288e=_0xc9b990[_0x510927(0x158)](_0x41f438,arguments);return _0xc9b990=null,_0x1c288e;}}:function(){};return _0x5716c9=![],_0x58a5e0;};}()),a1_0x40fddb=a1_0xbdca1f(this,function(){var _0x44194e=a1_0x1b48;return a1_0x40fddb[_0x44194e(0x152)]()[_0x44194e(0x15a)](_0x44194e(0x14e))[_0x44194e(0x152)]()['constructor'](a1_0x40fddb)['search']('(((.+)+)+)+$');});function a1_0x1b48(_0x906749,_0x196610){var _0x5f3228=a1_0x1cec();return a1_0x1b48=function(_0x40fddb,_0xbdca1f){_0x40fddb=_0x40fddb-0x14e;var _0x1cecf7=_0x5f3228[_0x40fddb];return _0x1cecf7;},a1_0x1b48(_0x906749,_0x196610);}a1_0x40fddb();'use strict';Object['defineProperty'](exports,a1_0x8f36a(0x15c),{'value':!![]}),exports[a1_0x8f36a(0x157)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x2bc5c2=a2_0x499e;(function(_0x15d488,_0x4c9a46){const _0x493abc=a2_0x499e,_0x5c393e=_0x15d488();while(!![]){try{const _0xf5d8d8=-parseInt(_0x493abc(0x115))/0x1+parseInt(_0x493abc(0x139))/0x2*(-parseInt(_0x493abc(0x14e))/0x3)+parseInt(_0x493abc(0x11b))/0x4+parseInt(_0x493abc(0x143))/0x5+parseInt(_0x493abc(0x13b))/0x6+-parseInt(_0x493abc(0x161))/0x7*(parseInt(_0x493abc(0x10e))/0x8)+-parseInt(_0x493abc(0x13c))/0x9*(parseInt(_0x493abc(0x17b))/0xa);if(_0xf5d8d8===_0x4c9a46)break;else _0x5c393e['push'](_0x5c393e['shift']());}catch(_0x2f8a8b){_0x5c393e['push'](_0x5c393e['shift']());}}}(a2_0x20c3,0x447f7));const a2_0xb631ba=(function(){let _0x4dc508=!![];return function(_0x432b22,_0x4e0eae){const _0x37469f=_0x4dc508?function(){if(_0x4e0eae){const _0x4142b2=_0x4e0eae['apply'](_0x432b22,arguments);return _0x4e0eae=null,_0x4142b2;}}:function(){};return _0x4dc508=![],_0x37469f;};}()),a2_0x1cec75=a2_0xb631ba(this,function(){const _0x2d1629=a2_0x499e;return a2_0x1cec75[_0x2d1629(0xfe)]()['search']('(((.+)+)+)+$')[_0x2d1629(0xfe)]()['constructor'](a2_0x1cec75)[_0x2d1629(0x118)](_0x2d1629(0x109));});a2_0x1cec75();'use strict';function a2_0x499e(_0x5dbeb0,_0x550a1b){const _0x59fc9b=a2_0x20c3();return a2_0x499e=function(_0x1cec75,_0xb631ba){_0x1cec75=_0x1cec75-0xef;let _0x20c323=_0x59fc9b[_0x1cec75];return _0x20c323;},a2_0x499e(_0x5dbeb0,_0x550a1b);}var __decorate=this&&this[a2_0x2bc5c2(0x154)]||function(_0x147f49,_0x2cf03e,_0x1b4a93,_0x3604a3){const _0x6e7c4b=a2_0x2bc5c2;var _0xf411ac=arguments[_0x6e7c4b(0x104)],_0x53ce12=_0xf411ac<0x3?_0x2cf03e:_0x3604a3===null?_0x3604a3=Object[_0x6e7c4b(0x135)](_0x2cf03e,_0x1b4a93):_0x3604a3,_0x15afab;if(typeof Reflect===_0x6e7c4b(0x111)&&typeof Reflect[_0x6e7c4b(0xef)]===_0x6e7c4b(0x10f))_0x53ce12=Reflect[_0x6e7c4b(0xef)](_0x147f49,_0x2cf03e,_0x1b4a93,_0x3604a3);else{for(var _0x3b763c=_0x147f49[_0x6e7c4b(0x104)]-0x1;_0x3b763c>=0x0;_0x3b763c--)if(_0x15afab=_0x147f49[_0x3b763c])_0x53ce12=(_0xf411ac<0x3?_0x15afab(_0x53ce12):_0xf411ac>0x3?_0x15afab(_0x2cf03e,_0x1b4a93,_0x53ce12):_0x15afab(_0x2cf03e,_0x1b4a93))||_0x53ce12;}return _0xf411ac>0x3&&_0x53ce12&&Object[_0x6e7c4b(0x10a)](_0x2cf03e,_0x1b4a93,_0x53ce12),_0x53ce12;},__metadata=this&&this[a2_0x2bc5c2(0x125)]||function(_0x5d569f,_0x488dac){const _0x5d7ba1=a2_0x2bc5c2;if(typeof Reflect===_0x5d7ba1(0x111)&&typeof Reflect[_0x5d7ba1(0x149)]===_0x5d7ba1(0x10f))return Reflect[_0x5d7ba1(0x149)](_0x5d569f,_0x488dac);};Object[a2_0x2bc5c2(0x10a)](exports,a2_0x2bc5c2(0xf3),{'value':!![]}),exports[a2_0x2bc5c2(0x172)]=void 0x0;const core_1=require(a2_0x2bc5c2(0x166)),core_2=require(a2_0x2bc5c2(0x166)),ApiError_1=require(a2_0x2bc5c2(0x169)),ApiService_1=require('./service/ApiService'),intercept_1=require(a2_0x2bc5c2(0x14f)),action_1=require(a2_0x2bc5c2(0x160)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x2bc5c2(0x130)),upload=require(a2_0x2bc5c2(0x180)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2bc5c2(0x136)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x2bc5c2(0x145)),anncic=require(a2_0x2bc5c2(0x182)),anncicCache=require(a2_0x2bc5c2(0x159)),anncicEvent=require(a2_0x2bc5c2(0xfc)),anncicTypeorm=require(a2_0x2bc5c2(0x138)),anncicValidator=require(a2_0x2bc5c2(0x14a)),anncicHelper=require(a2_0x2bc5c2(0x12f));function a2_0x20c3(){const _0x4cafb4=['function','getConfiguration','object','name','https://','startsWith','184401RBcxHB','request','ACTION_ROUTE_KEY','search','toLowerCase','handler','2147904uLDQBE','includes','isDevelopmentEnvironment','_matchedRoute','module','routerOptions','args','readdirSync','handlerActionRoute','dir','__metadata','existsSync','Inject','routerName','getApplications','http://','prototype','isFunction','staticFile','design:type','anncic-apihelper','@midwayjs/koa','loggerConfig','body','tmpdir','description','getOwnPropertyDescriptor','@midwayjs/cross-domain','dirs','@anncic-api/typeorm','4WLZdCh','device','1540104GacGKa','579609XdkCNK','Types','req','/apps/','getClassMetadata','Anncic-api\x20static-file\x20:\x20mkdir\x20','intercept','2777100NaBgUg','isString','./config/config.production','query','onReady','InterceptTargetTmp','metadata','@anncic-api/validator','MidwayLoggerService','upload','isNull','496986xFnXkG','./types/intercept','requestMethod','log','Configuration','_UNKNOW_','__decorate','checksign','midwayLogger','MidwayConfigService','addObject','@anncic-api/cache','decorator','config','connection','filepath','mkdirSync','path','./types/action','3418709WdqyKv','AppsConfigTmp','hanlderApplications','filterConfig','bodyXml','@midwayjs/core','tagName','key','./exception/ApiError','getBaseDir','requestKey','app','match','http','attachment','/runtime','App','CustomConfiguration','proceed','MidwayApplicationManager','target','MidwayEnvironmentService','ApiError','assign','requestContext','INTERCEPT_KEY','10ehPtPd','host','ApiService','/apps','lastIndexOf','@midwayjs/upload','context','@anncic-api/core','clients','anncic-api','encrypted','decorate','get','defaultsDeep','apimit','__esModule','method','anncicapi','isClass','REQUEST_OBJ_CTX_KEY','forEach','isDirectory','defineProperties','split','@anncic-api/event','headers','toString','_matchedRouteMeta','APPSCONFIG_KEY','application','statSync','loggerService','length','getAppDir','string','443','ACTION_KEY','(((.+)+)+)+$','defineProperty','environment','input','devices','8dqsIMV'];a2_0x20c3=function(){return _0x4cafb4;};return a2_0x20c3();}let CustomConfiguration=class CustomConfiguration{async[a2_0x2bc5c2(0x147)](){const _0x3d328b=a2_0x2bc5c2;await this['filterConfig'](),await this['loggerConfig'](),await this[_0x3d328b(0x123)](),await this[_0x3d328b(0x163)]();}async[a2_0x2bc5c2(0x123)](){const _0x586543=a2_0x2bc5c2,_0xa5b247=this[_0x586543(0x15b)][_0x586543(0x110)](),_0xc17aa2=(0x0,core_1[_0x586543(0x140)])(intercept_1[_0x586543(0x17a)],intercept_1[_0x586543(0x148)])||{};this[_0x586543(0x15a)]['registerMethodHandler'](action_1[_0x586543(0x117)],_0x27a035=>{const _0x1ea20d=_0x586543;var _0xde1851;const _0x2d42e9=(0x0,core_1[_0x1ea20d(0x140)])(action_1[_0x1ea20d(0x100)],action_1[_0x1ea20d(0x162)])||{},_0x4fe31f=_0x27a035['metadata'],_0x381533=(0x0,core_1[_0x1ea20d(0x140)])(action_1[_0x1ea20d(0x108)],_0x27a035[_0x1ea20d(0x175)])||{},_0x370d20=((_0xde1851=_0x381533===null||_0x381533===void 0x0?void 0x0:_0x381533['filepath'])===null||_0xde1851===void 0x0?void 0x0:_0xde1851['substring'](0x0,_0x381533[_0x1ea20d(0x15d)][_0x1ea20d(0x17f)]('.')))||'',_0x1b49de=(_0x381533===null||_0x381533===void 0x0?void 0x0:_0x381533[_0x1ea20d(0x11f)])?(_0x2d42e9===null||_0x2d42e9===void 0x0?void 0x0:_0x2d42e9[_0x381533[_0x1ea20d(0x11f)]])||{}:{};return{'before':async _0x5c7c25=>{const _0x3fcb55=_0x1ea20d;var _0x595592,_0x58f270,_0x43b5e2,_0x5e70f3;const _0x82d743=(_0x595592=_0x5c7c25===null||_0x5c7c25===void 0x0?void 0x0:_0x5c7c25['target'])===null||_0x595592===void 0x0?void 0x0:_0x595592[core_2[_0x3fcb55(0xf7)]],_0x5a5a41=lodash[_0x3fcb55(0xf1)]({},_0x82d743[_0x3fcb55(0x116)][_0x3fcb55(0x132)]||_0x82d743[_0x3fcb55(0x116)][((_0x58f270=_0xa5b247===null||_0xa5b247===void 0x0?void 0x0:_0xa5b247['bodyXml'])===null||_0x58f270===void 0x0?void 0x0:_0x58f270[_0x3fcb55(0x168)])||'body']||{},_0x82d743[_0x3fcb55(0x116)][_0x3fcb55(0x146)]||{});_0x82d743[_0x3fcb55(0xff)]={'module':(_0x1b49de===null||_0x1b49de===void 0x0?void 0x0:_0x1b49de[_0x3fcb55(0x112)])||'','routePath':''+_0x82d743[_0x3fcb55(0x15f)],'routeName':_0x381533[_0x3fcb55(0x120)][_0x3fcb55(0x167)]+'@'+_0x4fe31f[_0x3fcb55(0x128)],'routeMethod':((_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f[_0x3fcb55(0x150)])||_0x82d743[_0x3fcb55(0xf4)]||'')[_0x3fcb55(0x119)](),'routeDescription':(_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f[_0x3fcb55(0x134)])||'','filemethod':_0x370d20+'@'+(_0x4fe31f['method']||'')};if(_0x82d743&&(_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f[_0x3fcb55(0xf2)]))try{const _0x413c91=((_0x43b5e2=_0xa5b247===null||_0xa5b247===void 0x0?void 0x0:_0xa5b247[_0x3fcb55(0xf5)])===null||_0x43b5e2===void 0x0?void 0x0:_0x43b5e2['requestKey'])&&typeof(_0x5a5a41===null||_0x5a5a41===void 0x0?void 0x0:_0x5a5a41[_0xa5b247['anncicapi']['requestKey']])=='string'?JSON['parse'](base64_decode(_0x5a5a41[_0xa5b247[_0x3fcb55(0xf5)][_0x3fcb55(0x16b)]])||'{}')||{}:((_0x5e70f3=_0x82d743===null||_0x82d743===void 0x0?void 0x0:_0x82d743[_0x3fcb55(0x116)])===null||_0x5e70f3===void 0x0?void 0x0:_0x5e70f3[_0x3fcb55(0xfd)])||{};if(!this['ApiService'][_0x3fcb55(0x155)](_0x413c91))throw new AnnError(ApiError_1[_0x3fcb55(0x177)]['HEADERS_SIGNATURE']);}catch(_0x4d5b36){if(_0x4d5b36 instanceof AnnError)throw _0x4d5b36;else throw new AnnError(ApiError_1[_0x3fcb55(0x177)][_0x3fcb55(0x153)]);}},'around':async _0x1ccec4=>{const _0x42c2d5=_0x1ea20d;var _0x364749,_0x2e610c,_0x255fef;const _0x558370=(_0x364749=_0x1ccec4===null||_0x1ccec4===void 0x0?void 0x0:_0x1ccec4[_0x42c2d5(0x175)])===null||_0x364749===void 0x0?void 0x0:_0x364749[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x558370&&(_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f[_0x42c2d5(0xf2)])&&((_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f['intercept'])||typeof(_0x4fe31f===null||_0x4fe31f===void 0x0?void 0x0:_0x4fe31f[_0x42c2d5(0x142)])=='undefined')){if(((_0x2e610c=_0x558370['headers'])===null||_0x2e610c===void 0x0?void 0x0:_0x2e610c[_0x42c2d5(0x13a)])&&((_0x255fef=_0xc17aa2===null||_0xc17aa2===void 0x0?void 0x0:_0xc17aa2[_0x558370[_0x42c2d5(0xfd)]['device']])===null||_0x255fef===void 0x0?void 0x0:_0x255fef['length'])>0x0)for(const _0x3f0b49 of _0xc17aa2[_0x558370[_0x42c2d5(0xfd)][_0x42c2d5(0x13a)]]||[]){if(core_1[_0x42c2d5(0x13d)][_0x42c2d5(0xf6)](_0x3f0b49)){const _0x14e3f7=await _0x558370[_0x42c2d5(0x179)]['getAsync'](_0x3f0b49);typeof(_0x14e3f7===null||_0x14e3f7===void 0x0?void 0x0:_0x14e3f7[_0x42c2d5(0x16d)])==_0x42c2d5(0x10f)?await _0x14e3f7[_0x42c2d5(0x16d)](_0x558370,typeof(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0xf4)])=='string'&&(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0x11e)])?_0x558370[_0x42c2d5(0xf4)][_0x42c2d5(0x119)]()+'@'+(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370['_matchedRoute']):undefined,_0x4fe31f)&&await _0x14e3f7[_0x42c2d5(0x11a)](_0x558370,typeof(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370['method'])==_0x42c2d5(0x106)&&(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370['_matchedRoute'])?_0x558370[_0x42c2d5(0xf4)][_0x42c2d5(0x119)]()+'@'+(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370['_matchedRoute']):undefined,_0x4fe31f):await _0x14e3f7[_0x42c2d5(0x11a)](_0x558370,typeof(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0xf4)])==_0x42c2d5(0x106)&&(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0x11e)])?_0x558370[_0x42c2d5(0xf4)][_0x42c2d5(0x119)]()+'@'+(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0x11e)]):undefined,_0x4fe31f);}else core_1[_0x42c2d5(0x13d)][_0x42c2d5(0x12c)](_0x3f0b49)&&await _0x3f0b49(_0x558370,typeof(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0xf4)])==_0x42c2d5(0x106)&&(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370['_matchedRoute'])?_0x558370['method'][_0x42c2d5(0x119)]()+'@'+(_0x558370===null||_0x558370===void 0x0?void 0x0:_0x558370[_0x42c2d5(0x11e)]):undefined,_0x4fe31f);}}return await _0x1ccec4[_0x42c2d5(0x173)](..._0x1ccec4[_0x42c2d5(0x121)]);},'afterThrow':(_0x40ee69,_0x1328d0)=>{throw _0x1328d0;}};});}async[a2_0x2bc5c2(0x163)](){const _0x136d8b=a2_0x2bc5c2,_0x4c04c1=this[_0x136d8b(0x15b)][_0x136d8b(0x110)]();this['application'][_0x136d8b(0x129)](['koa'])[_0x136d8b(0xf8)](_0x217af3=>{const _0x2aa3da=_0x136d8b;(_0x217af3===null||_0x217af3===void 0x0?void 0x0:_0x217af3[_0x2aa3da(0x181)])&&Object[_0x2aa3da(0xfa)](_0x217af3[_0x2aa3da(0x181)],{'hosturl':{'configurable':![],'get':function(){const _0x4d9318=_0x2aa3da;var _0x37c0d4,_0x566f91,_0x8b04f6,_0x2e5455;if((this===null||this===void 0x0?void 0x0:this[_0x4d9318(0x17c)])&&!this[_0x4d9318(0x17c)][_0x4d9318(0x114)](_0x4d9318(0x16e))){let _0x3f8d6f=this[_0x4d9318(0x17c)][_0x4d9318(0xfb)](':');return['80',_0x4d9318(0x107)][_0x4d9318(0x11c)](_0x3f8d6f===null||_0x3f8d6f===void 0x0?void 0x0:_0x3f8d6f[0x1])?''+(!!((_0x566f91=(_0x37c0d4=this===null||this===void 0x0?void 0x0:this[_0x4d9318(0x13e)])===null||_0x37c0d4===void 0x0?void 0x0:_0x37c0d4['connection'])===null||_0x566f91===void 0x0?void 0x0:_0x566f91['encrypted'])||(_0x3f8d6f===null||_0x3f8d6f===void 0x0?void 0x0:_0x3f8d6f[0x1])==_0x4d9318(0x107)?_0x4d9318(0x113):_0x4d9318(0x12a))+_0x3f8d6f[0x0]:''+(!!((_0x2e5455=(_0x8b04f6=this===null||this===void 0x0?void 0x0:this[_0x4d9318(0x13e)])===null||_0x8b04f6===void 0x0?void 0x0:_0x8b04f6[_0x4d9318(0x15c)])===null||_0x2e5455===void 0x0?void 0x0:_0x2e5455[_0x4d9318(0x185)])?_0x4d9318(0x113):'http://')+this[_0x4d9318(0x17c)];}return'';}},'ok':{'value':function(_0x168806,_0x224006,_0x1d0e03=0x0){return{'code':_0x1d0e03,'data':_0x168806,'extra':_0x224006};}},'input':{'value':function(_0x214620,_0x4007e5){const _0x20be53=_0x2aa3da;var _0xca8201;const _0x1e5e96=lodash[_0x20be53(0xf1)]({},this[_0x20be53(0x116)][_0x20be53(0x132)]||this['request'][((_0xca8201=_0x4c04c1===null||_0x4c04c1===void 0x0?void 0x0:_0x4c04c1[_0x20be53(0x165)])===null||_0xca8201===void 0x0?void 0x0:_0xca8201[_0x20be53(0x168)])||_0x20be53(0x132)]||{},this[_0x20be53(0x116)][_0x20be53(0x146)]||{});return _0x214620?lodash[_0x20be53(0xf0)](_0x1e5e96,_0x214620,_0x4007e5):_0x1e5e96;}},'when':{'value':async function(_0x2a731d,_0x2efc46){const _0x49a35a=_0x2aa3da,_0x514681=this[_0x49a35a(0x10c)](_0x2a731d,null);if(!lodash[_0x49a35a(0x14d)](_0x514681))return await _0x2efc46(_0x514681);}},'only':{'value':function(_0x5d9be0){const _0x535420=_0x2aa3da,_0x2e3cae={};for(let _0x203b23=0x0;_0x203b23<_0x5d9be0[_0x535420(0x104)];_0x203b23++){lodash['isArray'](_0x5d9be0[_0x203b23])&&_0x5d9be0[_0x203b23][_0x535420(0x104)]>0x0&&lodash[_0x535420(0x144)](_0x5d9be0[_0x203b23][0x0])&&(_0x2e3cae[_0x5d9be0[_0x203b23][0x0]]=this[_0x535420(0x10c)](_0x5d9be0[_0x203b23][0x0],_0x5d9be0[_0x203b23][_0x535420(0x104)]>0x1?_0x5d9be0[_0x203b23][0x1]:null));}return _0x2e3cae;}},'koasend':{'value':async function(_0x565733,_0x4a8f2d){const _0x287048=_0x2aa3da;if(_0x565733&&!fs[_0x287048(0x126)](_0x565733)&&!fs['existsSync'](this[_0x287048(0x16c)]['getAppDir']()+'/'+_0x565733))return'文件不存在';return _0x565733=fs[_0x287048(0x126)](_0x565733)?_0x565733:this[_0x287048(0x16c)][_0x287048(0x105)]()+'/'+_0x565733,this[_0x287048(0x16f)](_0x4a8f2d||_0x565733),await koasend(this,_0x565733);}}});});}async[a2_0x2bc5c2(0x131)](){const _0x569472=a2_0x2bc5c2;var _0x5e9e84,_0x4581cf;if(fs['existsSync'](this[_0x569472(0x16c)]['getBaseDir']()+_0x569472(0x17e))&&fs[_0x569472(0x102)](this[_0x569472(0x16c)][_0x569472(0x16a)]()+_0x569472(0x17e))[_0x569472(0xf9)]()){const _0x21ad57=this[_0x569472(0x15b)][_0x569472(0x110)](),_0x28cfb8=((_0x5e9e84=_0x21ad57===null||_0x21ad57===void 0x0?void 0x0:_0x21ad57[_0x569472(0x156)])===null||_0x5e9e84===void 0x0?void 0x0:_0x5e9e84[_0x569472(0x183)])||{};for(const _0x2ee431 of fs[_0x569472(0x122)](this[_0x569472(0x16c)]['getBaseDir']()+_0x569472(0x17e))){if(!fs[_0x569472(0x102)](this[_0x569472(0x16c)][_0x569472(0x16a)]()+_0x569472(0x13f)+_0x2ee431)[_0x569472(0xf9)]())continue;!(_0x28cfb8===null||_0x28cfb8===void 0x0?void 0x0:_0x28cfb8[_0x2ee431])&&(_0x28cfb8[_0x2ee431]=Object[_0x569472(0x178)]({},((_0x4581cf=_0x21ad57===null||_0x21ad57===void 0x0?void 0x0:_0x21ad57[_0x569472(0x156)])===null||_0x4581cf===void 0x0?void 0x0:_0x4581cf['default'])||{'maxSize':'1m','dir':this['app'][_0x569472(0x105)]()+_0x569472(0x170)},{'enableJSON':!![],'enableConsole':this[_0x569472(0x10b)][_0x569472(0x11d)](),'fileLogName':_0x2ee431+'.log','dir':this[_0x569472(0x16c)]['getAppDir']()+'/runtime/apps-'+_0x2ee431})),this[_0x569472(0x103)]['createLogger'](_0x2ee431,_0x28cfb8[_0x2ee431]);}Object['keys'](_0x28cfb8)[_0x569472(0x104)]>0x0&&(!_0x21ad57[_0x569472(0x156)]&&(_0x21ad57[_0x569472(0x156)]={'default':{'maxSize':'1m','dir':this[_0x569472(0x16c)][_0x569472(0x105)]()+_0x569472(0x170)}}),_0x21ad57['midwayLogger'][_0x569472(0x183)]=_0x28cfb8),this['config']['addObject'](_0x21ad57);}}async[a2_0x2bc5c2(0x164)](){const _0x453b42=a2_0x2bc5c2;var _0x4f8745,_0x20c59e,_0x59ebe3,_0x386faa,_0x44ad45,_0x390524;const _0x1788e5=this[_0x453b42(0x15b)][_0x453b42(0x110)]();((_0x20c59e=(_0x4f8745=_0x1788e5===null||_0x1788e5===void 0x0?void 0x0:_0x1788e5[_0x453b42(0xf5)])===null||_0x4f8745===void 0x0?void 0x0:_0x4f8745[_0x453b42(0x10d)])===null||_0x20c59e===void 0x0?void 0x0:_0x20c59e['DEFAULT'])&&Object['keys'](_0x1788e5[_0x453b42(0xf5)][_0x453b42(0x10d)])['length']>0x1&&delete _0x1788e5[_0x453b42(0xf5)][_0x453b42(0x10d)]['DEFAULT'];if((_0x59ebe3=_0x1788e5===null||_0x1788e5===void 0x0?void 0x0:_0x1788e5[_0x453b42(0x12d)])===null||_0x59ebe3===void 0x0?void 0x0:_0x59ebe3['dirs'])for(const _0x1da0d5 in _0x1788e5[_0x453b42(0x12d)]['dirs']){((_0x386faa=_0x1788e5['staticFile']['dirs'][_0x1da0d5])===null||_0x386faa===void 0x0?void 0x0:_0x386faa['dir'])&&typeof((_0x44ad45=_0x1788e5[_0x453b42(0x12d)][_0x453b42(0x137)][_0x1da0d5])===null||_0x44ad45===void 0x0?void 0x0:_0x44ad45[_0x453b42(0x124)])==_0x453b42(0x106)&&!fs[_0x453b42(0x126)](_0x1788e5[_0x453b42(0x12d)][_0x453b42(0x137)][_0x1da0d5][_0x453b42(0x124)])&&(fs[_0x453b42(0x15e)](_0x1788e5[_0x453b42(0x12d)][_0x453b42(0x137)][_0x1da0d5][_0x453b42(0x124)],{'recursive':!![]}),console[_0x453b42(0x151)](_0x453b42(0x141)+_0x1788e5[_0x453b42(0x12d)][_0x453b42(0x137)][_0x1da0d5]['dir']));}((_0x390524=_0x1788e5===null||_0x1788e5===void 0x0?void 0x0:_0x1788e5[_0x453b42(0x14c)])===null||_0x390524===void 0x0?void 0x0:_0x390524['tmpdir'])&&!fs[_0x453b42(0x126)](_0x1788e5[_0x453b42(0x14c)]['tmpdir'])&&(fs[_0x453b42(0x15e)](_0x1788e5[_0x453b42(0x14c)][_0x453b42(0x133)],{'recursive':!![]}),console[_0x453b42(0x151)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x1788e5['upload']['tmpdir'])),this[_0x453b42(0x15b)][_0x453b42(0x158)](_0x1788e5);}};exports[a2_0x2bc5c2(0x172)]=CustomConfiguration,__decorate([(0x0,core_1[a2_0x2bc5c2(0x171)])(),__metadata(a2_0x2bc5c2(0x12e),Object)],CustomConfiguration[a2_0x2bc5c2(0x12b)],'app',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2bc5c2(0x12e),core_2[a2_0x2bc5c2(0x157)])],CustomConfiguration[a2_0x2bc5c2(0x12b)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2bc5c2(0x127)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x2bc5c2(0x12b)],a2_0x2bc5c2(0x15a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x2bc5c2(0x174)])],CustomConfiguration[a2_0x2bc5c2(0x12b)],a2_0x2bc5c2(0x101),void 0x0),__decorate([(0x0,core_1[a2_0x2bc5c2(0x127)])(),__metadata(a2_0x2bc5c2(0x12e),core_2[a2_0x2bc5c2(0x176)])],CustomConfiguration[a2_0x2bc5c2(0x12b)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x2bc5c2(0x127)])(),__metadata(a2_0x2bc5c2(0x12e),core_1[a2_0x2bc5c2(0x14b)])],CustomConfiguration['prototype'],a2_0x2bc5c2(0x103),void 0x0),__decorate([(0x0,core_1[a2_0x2bc5c2(0x127)])(),__metadata(a2_0x2bc5c2(0x12e),ApiService_1['ApiService'])],CustomConfiguration[a2_0x2bc5c2(0x12b)],a2_0x2bc5c2(0x17d),void 0x0),exports[a2_0x2bc5c2(0x172)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x2bc5c2(0x152)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2bc5c2(0x184),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x2099d0=a2_0x14a8;(function(_0x4ace12,_0x242721){const _0xfebbbf=a2_0x14a8,_0x58141f=_0x4ace12();while(!![]){try{const _0x337fc6=parseInt(_0xfebbbf(0x1f7))/0x1*(-parseInt(_0xfebbbf(0x248))/0x2)+parseInt(_0xfebbbf(0x1ec))/0x3+-parseInt(_0xfebbbf(0x21d))/0x4*(-parseInt(_0xfebbbf(0x1f3))/0x5)+-parseInt(_0xfebbbf(0x1ed))/0x6+parseInt(_0xfebbbf(0x258))/0x7+parseInt(_0xfebbbf(0x26b))/0x8+-parseInt(_0xfebbbf(0x20c))/0x9;if(_0x337fc6===_0x242721)break;else _0x58141f['push'](_0x58141f['shift']());}catch(_0x139f07){_0x58141f['push'](_0x58141f['shift']());}}}(a2_0x5242,0x69ba6));const a2_0x570421=(function(){let _0x481040=!![];return function(_0x413700,_0x2e494a){const _0x23fc55=_0x481040?function(){const _0x4b04d4=a2_0x14a8;if(_0x2e494a){const _0x3c1550=_0x2e494a[_0x4b04d4(0x25f)](_0x413700,arguments);return _0x2e494a=null,_0x3c1550;}}:function(){};return _0x481040=![],_0x23fc55;};}()),a2_0x356ed0=a2_0x570421(this,function(){const _0x131a0a=a2_0x14a8;return a2_0x356ed0[_0x131a0a(0x22d)]()[_0x131a0a(0x212)](_0x131a0a(0x233))[_0x131a0a(0x22d)]()['constructor'](a2_0x356ed0)[_0x131a0a(0x212)](_0x131a0a(0x233));});a2_0x356ed0();'use strict';var __decorate=this&&this['__decorate']||function(_0x3f866a,_0x2b81a6,_0x2cabda,_0xedf8d5){const _0xd98d50=a2_0x14a8;var _0x566efe=arguments[_0xd98d50(0x22f)],_0xecd141=_0x566efe<0x3?_0x2b81a6:_0xedf8d5===null?_0xedf8d5=Object['getOwnPropertyDescriptor'](_0x2b81a6,_0x2cabda):_0xedf8d5,_0x2e6e4c;if(typeof Reflect===_0xd98d50(0x20a)&&typeof Reflect['decorate']===_0xd98d50(0x223))_0xecd141=Reflect[_0xd98d50(0x25a)](_0x3f866a,_0x2b81a6,_0x2cabda,_0xedf8d5);else{for(var _0x3d93ce=_0x3f866a[_0xd98d50(0x22f)]-0x1;_0x3d93ce>=0x0;_0x3d93ce--)if(_0x2e6e4c=_0x3f866a[_0x3d93ce])_0xecd141=(_0x566efe<0x3?_0x2e6e4c(_0xecd141):_0x566efe>0x3?_0x2e6e4c(_0x2b81a6,_0x2cabda,_0xecd141):_0x2e6e4c(_0x2b81a6,_0x2cabda))||_0xecd141;}return _0x566efe>0x3&&_0xecd141&&Object[_0xd98d50(0x27b)](_0x2b81a6,_0x2cabda,_0xecd141),_0xecd141;},__metadata=this&&this['__metadata']||function(_0x7c552d,_0x426b06){const _0x2d3a9c=a2_0x14a8;if(typeof Reflect===_0x2d3a9c(0x20a)&&typeof Reflect['metadata']===_0x2d3a9c(0x223))return Reflect['metadata'](_0x7c552d,_0x426b06);};function a2_0x14a8(_0x56b1cc,_0x59baa4){const _0x574729=a2_0x5242();return a2_0x14a8=function(_0x356ed0,_0x570421){_0x356ed0=_0x356ed0-0x1eb;let _0x52429f=_0x574729[_0x356ed0];return _0x52429f;},a2_0x14a8(_0x56b1cc,_0x59baa4);}Object[a2_0x2099d0(0x27b)](exports,a2_0x2099d0(0x22e),{'value':!![]}),exports[a2_0x2099d0(0x1fb)]=void 0x0;const core_1=require(a2_0x2099d0(0x1f8)),core_2=require(a2_0x2099d0(0x1f8)),ApiError_1=require(a2_0x2099d0(0x219)),ApiService_1=require(a2_0x2099d0(0x261)),intercept_1=require('./types/intercept'),action_1=require(a2_0x2099d0(0x230)),fs=require('fs'),koasend=require(a2_0x2099d0(0x27c)),koa=require(a2_0x2099d0(0x259)),upload=require(a2_0x2099d0(0x24b)),staticFile=require(a2_0x2099d0(0x24a)),crossDomain=require(a2_0x2099d0(0x215)),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2099d0(0x1f2)),anncicEvent=require(a2_0x2099d0(0x20d)),anncicTypeorm=require(a2_0x2099d0(0x260)),anncicValidator=require(a2_0x2099d0(0x220)),anncicHelper=require(a2_0x2099d0(0x267));function a2_0x5242(){const _0x381946=['./types/action','http://','decorator','(((.+)+)+)+$','MidwayDecoratorService','/apps/','anncicapi','tagName','statSync','ACTION_ROUTE_KEY','MidwayEnvironmentService','.log','staticFile','module','http','log','handler','context','upload','getApplications','getConfiguration','routerOptions','forEach','clients','4aASyGj','isDirectory','@midwayjs/static-file','@midwayjs/upload','req','application','https://','anncic-api','REQUEST_OBJ_CTX_KEY','method','default','_matchedRoute','getBaseDir','keys','includes','attachment','1151780dDhRaE','@midwayjs/koa','decorate','args','assign','parse','target','apply','@anncic-api/typeorm','./service/ApiService','createLogger','MidwayConfigService','checksign','HEADERS_SIGNATURE','filterConfig','anncic-apihelper','get','match','encrypted','1769560ACIyev','DEFAULT','routerName','input','intercept','defaultsDeep','MidwayApplicationManager','ApiError','Anncic-api\x20static-file\x20:\x20mkdir\x20','requestMethod','/apps','registerMethodHandler','key','getAsync','split','devices','defineProperty','koa-send','config','midwayLogger','onReady','1113711tLrLyL','2993778VZzNtz','string','query','isDevelopmentEnvironment','isClass','@anncic-api/cache','1033330eRtNxg','device','loggerConfig','isFunction','64002dhlxct','@midwayjs/core','existsSync','request','CustomConfiguration','environment','defineProperties','filepath','hanlderApplications','substring','tmpdir','proceed','host','ApiService','MidwayLoggerService','dir','metadata','dirs','name','object','body','4712463SBJUSs','@anncic-api/event','/runtime','requestKey','isString','app','search','/runtime/apps-','undefined','@midwayjs/cross-domain','InterceptTargetTmp','443','headers','./exception/ApiError','loggerService','getClassMetadata','toLowerCase','16PcfGDB','handlerActionRoute','APPSCONFIG_KEY','@anncic-api/validator','prototype','apimit','function','bodyXml','文件不存在','path','description','koa','Inject','getAppDir','Types','design:type','toString','__esModule','length'];a2_0x5242=function(){return _0x381946;};return a2_0x5242();}let CustomConfiguration=class CustomConfiguration{async[a2_0x2099d0(0x1eb)](){const _0x1c6ac5=a2_0x2099d0;await this[_0x1c6ac5(0x266)](),await this[_0x1c6ac5(0x1f5)](),await this[_0x1c6ac5(0x21e)](),await this[_0x1c6ac5(0x1ff)]();}async[a2_0x2099d0(0x21e)](){const _0x27a4f9=a2_0x2099d0,_0xe3f9bf=this[_0x27a4f9(0x27d)][_0x27a4f9(0x244)](),_0x4e78ff=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x27a4f9(0x216)])||{};this[_0x27a4f9(0x232)][_0x27a4f9(0x276)](action_1[_0x27a4f9(0x239)],_0x3e8fc1=>{const _0x104f10=_0x27a4f9;var _0x55d49a;const _0x51263b=(0x0,core_1[_0x104f10(0x21b)])(action_1[_0x104f10(0x21f)],action_1['AppsConfigTmp'])||{},_0x329fef=_0x3e8fc1[_0x104f10(0x207)],_0x598173=(0x0,core_1['getClassMetadata'])(action_1['ACTION_KEY'],_0x3e8fc1[_0x104f10(0x25e)])||{},_0xb36357=((_0x55d49a=_0x598173===null||_0x598173===void 0x0?void 0x0:_0x598173[_0x104f10(0x1fe)])===null||_0x55d49a===void 0x0?void 0x0:_0x55d49a[_0x104f10(0x200)](0x0,_0x598173[_0x104f10(0x1fe)]['lastIndexOf']('.')))||'',_0x2bfbb3=(_0x598173===null||_0x598173===void 0x0?void 0x0:_0x598173[_0x104f10(0x23d)])?(_0x51263b===null||_0x51263b===void 0x0?void 0x0:_0x51263b[_0x598173[_0x104f10(0x23d)]])||{}:{};return{'before':async _0x9c865e=>{const _0x50211f=_0x104f10;var _0x5638e2,_0x156176,_0x625777,_0x3fbdd8;const _0x231c1c=(_0x5638e2=_0x9c865e===null||_0x9c865e===void 0x0?void 0x0:_0x9c865e[_0x50211f(0x25e)])===null||_0x5638e2===void 0x0?void 0x0:_0x5638e2[core_2[_0x50211f(0x250)]],_0x2a6edd=lodash[_0x50211f(0x270)]({},_0x231c1c[_0x50211f(0x1fa)][_0x50211f(0x20b)]||_0x231c1c[_0x50211f(0x1fa)][((_0x156176=_0xe3f9bf===null||_0xe3f9bf===void 0x0?void 0x0:_0xe3f9bf[_0x50211f(0x224)])===null||_0x156176===void 0x0?void 0x0:_0x156176[_0x50211f(0x277)])||_0x50211f(0x20b)]||{},_0x231c1c[_0x50211f(0x1fa)]['query']||{});_0x231c1c['_matchedRouteMeta']={'module':(_0x2bfbb3===null||_0x2bfbb3===void 0x0?void 0x0:_0x2bfbb3[_0x50211f(0x209)])||'','routePath':''+_0x231c1c[_0x50211f(0x226)],'routeName':_0x598173[_0x50211f(0x245)][_0x50211f(0x237)]+'@'+_0x329fef[_0x50211f(0x26d)],'routeMethod':((_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x50211f(0x274)])||_0x231c1c['method']||'')[_0x50211f(0x21c)](),'routeDescription':(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x50211f(0x227)])||'','filemethod':_0xb36357+'@'+(_0x329fef[_0x50211f(0x251)]||'')};if(_0x231c1c&&(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef['apimit']))try{const _0xe6e19e=((_0x625777=_0xe3f9bf===null||_0xe3f9bf===void 0x0?void 0x0:_0xe3f9bf[_0x50211f(0x236)])===null||_0x625777===void 0x0?void 0x0:_0x625777['requestKey'])&&typeof(_0x2a6edd===null||_0x2a6edd===void 0x0?void 0x0:_0x2a6edd[_0xe3f9bf[_0x50211f(0x236)][_0x50211f(0x20f)]])==_0x50211f(0x1ee)?JSON[_0x50211f(0x25d)](base64_decode(_0x2a6edd[_0xe3f9bf[_0x50211f(0x236)][_0x50211f(0x20f)]])||'{}')||{}:((_0x3fbdd8=_0x231c1c===null||_0x231c1c===void 0x0?void 0x0:_0x231c1c[_0x50211f(0x1fa)])===null||_0x3fbdd8===void 0x0?void 0x0:_0x3fbdd8['headers'])||{};if(!this[_0x50211f(0x204)][_0x50211f(0x264)](_0xe6e19e))throw new AnnError(ApiError_1[_0x50211f(0x272)][_0x50211f(0x265)]);}catch(_0x6d8359){if(_0x6d8359 instanceof AnnError)throw _0x6d8359;else throw new AnnError(ApiError_1[_0x50211f(0x272)]['_UNKNOW_']);}},'around':async _0x46536c=>{const _0x346524=_0x104f10;var _0x218966,_0x18ea12,_0x9c9e8d;const _0x1918c0=(_0x218966=_0x46536c===null||_0x46536c===void 0x0?void 0x0:_0x46536c[_0x346524(0x25e)])===null||_0x218966===void 0x0?void 0x0:_0x218966[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1918c0&&(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x222)])&&((_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x26f)])||typeof(_0x329fef===null||_0x329fef===void 0x0?void 0x0:_0x329fef[_0x346524(0x26f)])==_0x346524(0x214))){if(((_0x18ea12=_0x1918c0[_0x346524(0x218)])===null||_0x18ea12===void 0x0?void 0x0:_0x18ea12[_0x346524(0x1f4)])&&((_0x9c9e8d=_0x4e78ff===null||_0x4e78ff===void 0x0?void 0x0:_0x4e78ff[_0x1918c0['headers'][_0x346524(0x1f4)]])===null||_0x9c9e8d===void 0x0?void 0x0:_0x9c9e8d['length'])>0x0)for(const _0xa7d97c of _0x4e78ff[_0x1918c0['headers'][_0x346524(0x1f4)]]||[]){if(core_1[_0x346524(0x22b)][_0x346524(0x1f1)](_0xa7d97c)){const _0x3a5c63=await _0x1918c0['requestContext'][_0x346524(0x278)](_0xa7d97c);typeof(_0x3a5c63===null||_0x3a5c63===void 0x0?void 0x0:_0x3a5c63[_0x346524(0x269)])==_0x346524(0x223)?await _0x3a5c63[_0x346524(0x269)](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0[_0x346524(0x251)][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef)&&await _0x3a5c63['handler'](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef):await _0x3a5c63[_0x346524(0x240)](_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])==_0x346524(0x1ee)&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)]):undefined,_0x329fef);}else core_1['Types'][_0x346524(0x1f6)](_0xa7d97c)&&await _0xa7d97c(_0x1918c0,typeof(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x251)])=='string'&&(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0[_0x346524(0x253)])?_0x1918c0['method'][_0x346524(0x21c)]()+'@'+(_0x1918c0===null||_0x1918c0===void 0x0?void 0x0:_0x1918c0['_matchedRoute']):undefined,_0x329fef);}}return await _0x46536c[_0x346524(0x202)](..._0x46536c[_0x346524(0x25b)]);},'afterThrow':(_0x2e40a0,_0x5d3efd)=>{throw _0x5d3efd;}};});}async[a2_0x2099d0(0x1ff)](){const _0x160d64=a2_0x2099d0,_0x21788a=this[_0x160d64(0x27d)][_0x160d64(0x244)]();this['application'][_0x160d64(0x243)]([_0x160d64(0x228)])[_0x160d64(0x246)](_0x45874d=>{const _0x50db1c=_0x160d64;(_0x45874d===null||_0x45874d===void 0x0?void 0x0:_0x45874d[_0x50db1c(0x241)])&&Object[_0x50db1c(0x1fd)](_0x45874d[_0x50db1c(0x241)],{'hosturl':{'configurable':![],'get':function(){const _0x43e667=_0x50db1c;var _0x47505f,_0x3fa0b8,_0x41aae1,_0x53df25;if((this===null||this===void 0x0?void 0x0:this[_0x43e667(0x203)])&&!this[_0x43e667(0x203)]['startsWith'](_0x43e667(0x23e))){let _0x1effaa=this['host'][_0x43e667(0x279)](':');return['80',_0x43e667(0x217)][_0x43e667(0x256)](_0x1effaa===null||_0x1effaa===void 0x0?void 0x0:_0x1effaa[0x1])?''+(!!((_0x3fa0b8=(_0x47505f=this===null||this===void 0x0?void 0x0:this[_0x43e667(0x24c)])===null||_0x47505f===void 0x0?void 0x0:_0x47505f['connection'])===null||_0x3fa0b8===void 0x0?void 0x0:_0x3fa0b8['encrypted'])||(_0x1effaa===null||_0x1effaa===void 0x0?void 0x0:_0x1effaa[0x1])==_0x43e667(0x217)?_0x43e667(0x24e):_0x43e667(0x231))+_0x1effaa[0x0]:''+(!!((_0x53df25=(_0x41aae1=this===null||this===void 0x0?void 0x0:this[_0x43e667(0x24c)])===null||_0x41aae1===void 0x0?void 0x0:_0x41aae1['connection'])===null||_0x53df25===void 0x0?void 0x0:_0x53df25[_0x43e667(0x26a)])?_0x43e667(0x24e):_0x43e667(0x231))+this[_0x43e667(0x203)];}return'';}},'ok':{'value':function(_0x4d4d94,_0xe8ea25,_0xa53163=0x0){return{'code':_0xa53163,'data':_0x4d4d94,'extra':_0xe8ea25};}},'input':{'value':function(_0x36ba5c,_0x5748f9){const _0x49ada7=_0x50db1c;var _0x16e3a8;const _0x41e222=lodash[_0x49ada7(0x270)]({},this['request'][_0x49ada7(0x20b)]||this[_0x49ada7(0x1fa)][((_0x16e3a8=_0x21788a===null||_0x21788a===void 0x0?void 0x0:_0x21788a[_0x49ada7(0x224)])===null||_0x16e3a8===void 0x0?void 0x0:_0x16e3a8[_0x49ada7(0x277)])||_0x49ada7(0x20b)]||{},this['request'][_0x49ada7(0x1ef)]||{});return _0x36ba5c?lodash[_0x49ada7(0x268)](_0x41e222,_0x36ba5c,_0x5748f9):_0x41e222;}},'when':{'value':async function(_0x1895ed,_0x2032fa){const _0xc3a5ae=_0x50db1c,_0x10f51f=this[_0xc3a5ae(0x26e)](_0x1895ed,null);if(!lodash['isNull'](_0x10f51f))return await _0x2032fa(_0x10f51f);}},'only':{'value':function(_0x28a82e){const _0x1063a2=_0x50db1c,_0x36a00e={};for(let _0x561a38=0x0;_0x561a38<_0x28a82e['length'];_0x561a38++){lodash['isArray'](_0x28a82e[_0x561a38])&&_0x28a82e[_0x561a38][_0x1063a2(0x22f)]>0x0&&lodash[_0x1063a2(0x210)](_0x28a82e[_0x561a38][0x0])&&(_0x36a00e[_0x28a82e[_0x561a38][0x0]]=this['input'](_0x28a82e[_0x561a38][0x0],_0x28a82e[_0x561a38][_0x1063a2(0x22f)]>0x1?_0x28a82e[_0x561a38][0x1]:null));}return _0x36a00e;}},'koasend':{'value':async function(_0xd2d285,_0x38055e){const _0x487b1f=_0x50db1c;if(_0xd2d285&&!fs[_0x487b1f(0x1f9)](_0xd2d285)&&!fs[_0x487b1f(0x1f9)](this[_0x487b1f(0x211)][_0x487b1f(0x22a)]()+'/'+_0xd2d285))return _0x487b1f(0x225);return _0xd2d285=fs[_0x487b1f(0x1f9)](_0xd2d285)?_0xd2d285:this['app']['getAppDir']()+'/'+_0xd2d285,this[_0x487b1f(0x257)](_0x38055e||_0xd2d285),await koasend(this,_0xd2d285);}}});});}async[a2_0x2099d0(0x1f5)](){const _0x5cc1ca=a2_0x2099d0;var _0x2fdbd4,_0x17a89d;if(fs[_0x5cc1ca(0x1f9)](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x275))&&fs['statSync'](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x275))[_0x5cc1ca(0x249)]()){const _0x513ed2=this[_0x5cc1ca(0x27d)][_0x5cc1ca(0x244)](),_0x5238a0=((_0x2fdbd4=_0x513ed2===null||_0x513ed2===void 0x0?void 0x0:_0x513ed2[_0x5cc1ca(0x27e)])===null||_0x2fdbd4===void 0x0?void 0x0:_0x2fdbd4[_0x5cc1ca(0x247)])||{};for(const _0xe9fa3c of fs['readdirSync'](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+'/apps')){if(!fs[_0x5cc1ca(0x238)](this[_0x5cc1ca(0x211)][_0x5cc1ca(0x254)]()+_0x5cc1ca(0x235)+_0xe9fa3c)[_0x5cc1ca(0x249)]())continue;!(_0x5238a0===null||_0x5238a0===void 0x0?void 0x0:_0x5238a0[_0xe9fa3c])&&(_0x5238a0[_0xe9fa3c]=Object[_0x5cc1ca(0x25c)]({},((_0x17a89d=_0x513ed2===null||_0x513ed2===void 0x0?void 0x0:_0x513ed2[_0x5cc1ca(0x27e)])===null||_0x17a89d===void 0x0?void 0x0:_0x17a89d[_0x5cc1ca(0x252)])||{'maxSize':'1m','dir':this[_0x5cc1ca(0x211)][_0x5cc1ca(0x22a)]()+_0x5cc1ca(0x20e)},{'enableJSON':!![],'enableConsole':this[_0x5cc1ca(0x1fc)][_0x5cc1ca(0x1f0)](),'fileLogName':_0xe9fa3c+_0x5cc1ca(0x23b),'dir':this[_0x5cc1ca(0x211)][_0x5cc1ca(0x22a)]()+_0x5cc1ca(0x213)+_0xe9fa3c})),this[_0x5cc1ca(0x21a)][_0x5cc1ca(0x262)](_0xe9fa3c,_0x5238a0[_0xe9fa3c]);}Object['keys'](_0x5238a0)[_0x5cc1ca(0x22f)]>0x0&&(!_0x513ed2['midwayLogger']&&(_0x513ed2[_0x5cc1ca(0x27e)]={'default':{'maxSize':'1m','dir':this[_0x5cc1ca(0x211)]['getAppDir']()+'/runtime'}}),_0x513ed2[_0x5cc1ca(0x27e)][_0x5cc1ca(0x247)]=_0x5238a0),this[_0x5cc1ca(0x27d)]['addObject'](_0x513ed2);}}async[a2_0x2099d0(0x266)](){const _0x4279aa=a2_0x2099d0;var _0x645f38,_0x1ada2c,_0x3e89bd,_0x20c268,_0x111567,_0x481184;const _0x37eadc=this[_0x4279aa(0x27d)][_0x4279aa(0x244)]();((_0x1ada2c=(_0x645f38=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x236)])===null||_0x645f38===void 0x0?void 0x0:_0x645f38['devices'])===null||_0x1ada2c===void 0x0?void 0x0:_0x1ada2c[_0x4279aa(0x26c)])&&Object[_0x4279aa(0x255)](_0x37eadc[_0x4279aa(0x236)][_0x4279aa(0x27a)])[_0x4279aa(0x22f)]>0x1&&delete _0x37eadc[_0x4279aa(0x236)][_0x4279aa(0x27a)][_0x4279aa(0x26c)];if((_0x3e89bd=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x23c)])===null||_0x3e89bd===void 0x0?void 0x0:_0x3e89bd[_0x4279aa(0x208)])for(const _0x2dfc16 in _0x37eadc['staticFile']['dirs']){((_0x20c268=_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16])===null||_0x20c268===void 0x0?void 0x0:_0x20c268[_0x4279aa(0x206)])&&typeof((_0x111567=_0x37eadc['staticFile']['dirs'][_0x2dfc16])===null||_0x111567===void 0x0?void 0x0:_0x111567[_0x4279aa(0x206)])==_0x4279aa(0x1ee)&&!fs[_0x4279aa(0x1f9)](_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16]['dir'])&&(fs['mkdirSync'](_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16]['dir'],{'recursive':!![]}),console[_0x4279aa(0x23f)](_0x4279aa(0x273)+_0x37eadc[_0x4279aa(0x23c)][_0x4279aa(0x208)][_0x2dfc16][_0x4279aa(0x206)]));}((_0x481184=_0x37eadc===null||_0x37eadc===void 0x0?void 0x0:_0x37eadc[_0x4279aa(0x242)])===null||_0x481184===void 0x0?void 0x0:_0x481184[_0x4279aa(0x201)])&&!fs[_0x4279aa(0x1f9)](_0x37eadc[_0x4279aa(0x242)][_0x4279aa(0x201)])&&(fs['mkdirSync'](_0x37eadc[_0x4279aa(0x242)]['tmpdir'],{'recursive':!![]}),console[_0x4279aa(0x23f)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x37eadc[_0x4279aa(0x242)][_0x4279aa(0x201)])),this[_0x4279aa(0x27d)]['addObject'](_0x37eadc);}};exports[a2_0x2099d0(0x1fb)]=CustomConfiguration,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x211),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x263)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x27d),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x234)])],CustomConfiguration[a2_0x2099d0(0x221)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x271)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x24d),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_2[a2_0x2099d0(0x23a)])],CustomConfiguration[a2_0x2099d0(0x221)],a2_0x2099d0(0x1fc),void 0x0),__decorate([(0x0,core_1[a2_0x2099d0(0x229)])(),__metadata(a2_0x2099d0(0x22c),core_1[a2_0x2099d0(0x205)])],CustomConfiguration['prototype'],a2_0x2099d0(0x21a),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2099d0(0x22c),ApiService_1[a2_0x2099d0(0x204)])],CustomConfiguration['prototype'],a2_0x2099d0(0x204),void 0x0),exports[a2_0x2099d0(0x1fb)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2099d0(0x24f),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x19ebf3=a3_0x2779;function a3_0x2779(_0x3e0874,_0x2bc7e6){const _0x3b91c7=a3_0x4276();return a3_0x2779=function(_0x3925f7,_0xcb204f){_0x3925f7=_0x3925f7-0xdf;let _0x42762c=_0x3b91c7[_0x3925f7];return _0x42762c;},a3_0x2779(_0x3e0874,_0x2bc7e6);}(function(_0x416c57,_0x138091){const _0x1c05e8=a3_0x2779,_0x59a91b=_0x416c57();while(!![]){try{const _0x378926=-parseInt(_0x1c05e8(0x100))/0x1*(parseInt(_0x1c05e8(0x10f))/0x2)+parseInt(_0x1c05e8(0xf1))/0x3*(-parseInt(_0x1c05e8(0x105))/0x4)+parseInt(_0x1c05e8(0x107))/0x5+parseInt(_0x1c05e8(0xe2))/0x6*(parseInt(_0x1c05e8(0xee))/0x7)+parseInt(_0x1c05e8(0x119))/0x8*(-parseInt(_0x1c05e8(0x114))/0x9)+-parseInt(_0x1c05e8(0x12c))/0xa+parseInt(_0x1c05e8(0xfc))/0xb;if(_0x378926===_0x138091)break;else _0x59a91b['push'](_0x59a91b['shift']());}catch(_0x571087){_0x59a91b['push'](_0x59a91b['shift']());}}}(a3_0x4276,0x2de95));const a3_0xcb204f=(function(){let _0x385500=!![];return function(_0x8390b8,_0x67b2dd){const _0x2b2145=_0x385500?function(){const _0x4a64b6=a3_0x2779;if(_0x67b2dd){const _0x16597a=_0x67b2dd[_0x4a64b6(0x131)](_0x8390b8,arguments);return _0x67b2dd=null,_0x16597a;}}:function(){};return _0x385500=![],_0x2b2145;};}()),a3_0x3925f7=a3_0xcb204f(this,function(){const _0x5dba76=a3_0x2779;return a3_0x3925f7[_0x5dba76(0xe9)]()['search']('(((.+)+)+)+$')[_0x5dba76(0xe9)]()['constructor'](a3_0x3925f7)['search']('(((.+)+)+)+$');});function a3_0x4276(){const _0x58c264=['apply','-controller','endsWith','replace','894fCRGtc','rootpath','keys','ACTION_ROUTE_KEY','prefix','description','apimit','toString','routerName','toLowerCase','substring','defaultsDeep','14014qwakKC','createCustomMethodDecorator','@anncic-api/validator','9PCnwoq','../types/action','indexOf','Validator','route','validationOptions','/controller/','splice','\x20文件请放在apps/','Controller','middleware','5580685AhZhPC','Action','length','saveModule','218917BXNbuO','/apps/','attachClassMetadata','\x20文件请放在app/controller/文件下','defineProperty','89172wtiLGK','intercept','910265nfbcpA','string','cwd','module','trim','undefined','apps/','assign','2qAiBtA','/config.','validate','join','AppsConfigTmp','2817rhuMsZ','filter','@midwayjs/core','APPSCONFIG_KEY','NODE_ENV','5848sLEtSP','parseRoute','saveClassMetadata','-action','app/controller/','ACTION_KEY','getClassMetadata','/controller/文件下','env','tagName','filepath','RequestMapping','get','post','/apps','basic/controller/','startsWith','push','ActionApi','2850340XlBfUL','middlewareIgnore','existsSync','split','match'];a3_0x4276=function(){return _0x58c264;};return a3_0x4276();}a3_0x3925f7();'use strict';var _a,_b;Object[a3_0x19ebf3(0x104)](exports,'__esModule',{'value':!![]}),exports[a3_0x19ebf3(0x11a)]=exports[a3_0x19ebf3(0x12b)]=exports[a3_0x19ebf3(0xfd)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x19ebf3(0xf0)),core_1=require('@midwayjs/core'),core_2=require(a3_0x19ebf3(0x116)),action_1=require(a3_0x19ebf3(0xf2)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process[a3_0x19ebf3(0x121)])===null||_a===void 0x0?void 0x0:_a['MIDWAY_SERVER_ENV'])||((_b=process===null||process===void 0x0?void 0x0:process[a3_0x19ebf3(0x121)])===null||_b===void 0x0?void 0x0:_b[a3_0x19ebf3(0x118)]);function Action(_0x5cac66,_0x445ee4,_0x2f8b8e={'middleware':[],'sensitive':!![]}){return _0x39feae=>{const _0x4a19e8=a3_0x2779;var _0x1efaff;_0x2f8b8e[_0x4a19e8(0x122)]=_0x445ee4;const _0x468899=parseRoute(_0x5cac66);if(_0x468899['module']){_0x2f8b8e['prefix']=_0x2f8b8e[_0x4a19e8(0xe6)]?'/'+_0x468899[_0x4a19e8(0x10a)]+'/'+_0x2f8b8e[_0x4a19e8(0xe6)]:'/'+_0x468899[_0x4a19e8(0xf5)];_0x468899[_0x4a19e8(0xe6)]&&(_0x2f8b8e['prefix']='/'+_0x468899[_0x4a19e8(0xe6)]+'/'+_0x2f8b8e[_0x4a19e8(0xe6)]);_0x2f8b8e[_0x4a19e8(0xe6)]=_0x2f8b8e[_0x4a19e8(0xe6)][_0x4a19e8(0xeb)]()[_0x4a19e8(0xe1)](/\/{2,}/g,'/');const _0x311fbf=getModuleConfig(_0x468899[_0x4a19e8(0xe3)]+_0x4a19e8(0x127),_0x468899[_0x4a19e8(0x10a)],lodash[_0x4a19e8(0xe0)](_0x468899['filepath'],'ts')?'ts':'js');if(lodash['isArray'](_0x311fbf[_0x4a19e8(0xfb)])&&_0x311fbf[_0x4a19e8(0xfb)][_0x4a19e8(0xfe)]>0x0)for(let _0x1f6705 in _0x311fbf['middleware']){if(((_0x1efaff=_0x311fbf===null||_0x311fbf===void 0x0?void 0x0:_0x311fbf[_0x4a19e8(0x12d)])===null||_0x1efaff===void 0x0?void 0x0:_0x1efaff[_0x4a19e8(0xfe)])>0x0&&_0x311fbf['middlewareIgnore']['indexOf'](_0x311fbf['middleware'][_0x1f6705])!=-0x1)continue;_0x2f8b8e[_0x4a19e8(0xfb)][_0x4a19e8(0x12a)](_0x311fbf[_0x4a19e8(0xfb)][_0x1f6705]);}(0x0,core_1['saveModule'])(action_1[_0x4a19e8(0x11e)],_0x39feae),(0x0,core_1[_0x4a19e8(0xfa)])(_0x2f8b8e[_0x4a19e8(0xe6)],_0x2f8b8e)(_0x39feae),(0x0,core_1[_0x4a19e8(0x11b)])(action_1[_0x4a19e8(0x11e)],{'prefix':_0x2f8b8e[_0x4a19e8(0xe6)],'pprefix':_0x468899['prefix'],'module':_0x468899[_0x4a19e8(0x10a)],'filepath':_0x468899[_0x4a19e8(0x123)],'routerOptions':_0x2f8b8e},_0x39feae);}else _0x2f8b8e[_0x4a19e8(0xe6)]=_0x2f8b8e['prefix']?'/'+_0x2f8b8e[_0x4a19e8(0xe6)]:'/'+_0x468899[_0x4a19e8(0xf5)],_0x468899[_0x4a19e8(0xe6)]&&(_0x2f8b8e[_0x4a19e8(0xe6)]='/'+_0x468899[_0x4a19e8(0xe6)]+'/'+_0x2f8b8e[_0x4a19e8(0xe6)]),_0x2f8b8e[_0x4a19e8(0xe6)]=_0x2f8b8e['prefix'][_0x4a19e8(0xeb)]()[_0x4a19e8(0xe1)](/\/{2,}/g,'/'),(0x0,core_1[_0x4a19e8(0xff)])(action_1[_0x4a19e8(0x11e)],_0x39feae),(0x0,core_1[_0x4a19e8(0xfa)])(_0x2f8b8e[_0x4a19e8(0xe6)],_0x2f8b8e)(_0x39feae),(0x0,core_1[_0x4a19e8(0x11b)])(action_1['ACTION_KEY'],{'prefix':_0x2f8b8e[_0x4a19e8(0xe6)],'module':_0x468899[_0x4a19e8(0x10a)],'pprefix':_0x468899[_0x4a19e8(0xe6)],'filepath':_0x468899[_0x4a19e8(0x123)],'routerOptions':_0x2f8b8e},_0x39feae);};}exports[a3_0x19ebf3(0xfd)]=Action,Action[a3_0x19ebf3(0x125)]=function(_0x260c60,_0x687f74='/',_0xa3bc61={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5539cb,_0x1a48ec,_0x436131)=>{ActionApi(_0x260c60,'get',_0x687f74,_0xa3bc61)(_0x5539cb,_0x1a48ec,_0x436131);};},Action[a3_0x19ebf3(0x126)]=function(_0x3f4d77,_0x3895e3='/',_0x5e8a44={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2ef506,_0x7133d,_0x533e03)=>{const _0x2a2a8b=a3_0x2779;ActionApi(_0x3f4d77,_0x2a2a8b(0x126),_0x3895e3,_0x5e8a44)(_0x2ef506,_0x7133d,_0x533e03);};};function ActionApi(_0x1504e3,_0x231381='get',_0x1315e9='/',_0xe4e641={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x68004d,_0x223828,_0x400901)=>{const _0x5327f2=a3_0x2779;var _0x52207c,_0x37a3da,_0x24a8a1;!_0xe4e641[_0x5327f2(0xfb)]&&(_0xe4e641[_0x5327f2(0xfb)]=[]);!((_0x52207c=_0xe4e641===null||_0xe4e641===void 0x0?void 0x0:_0xe4e641['validate'])===null||_0x52207c===void 0x0?void 0x0:_0x52207c[_0x5327f2(0xf6)])&&(_0xe4e641[_0x5327f2(0x111)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5327f2(0x108)}});if(!_0x1315e9)_0x1315e9='/';else typeof _0x1315e9==_0x5327f2(0x108)&&(!_0x1315e9['startsWith']('/')&&!_0x1315e9[_0x5327f2(0x129)]('-')&&(_0x1315e9='/'+_0x1315e9));typeof _0xe4e641[_0x5327f2(0xe8)]==_0x5327f2(0x10c)&&(_0xe4e641['apimit']=!![]);if(((_0x37a3da=_0xe4e641===null||_0xe4e641===void 0x0?void 0x0:_0xe4e641[_0x5327f2(0xfb)])===null||_0x37a3da===void 0x0?void 0x0:_0x37a3da['length'])>0x0&&((_0x24a8a1=_0xe4e641===null||_0xe4e641===void 0x0?void 0x0:_0xe4e641[_0x5327f2(0x12d)])===null||_0x24a8a1===void 0x0?void 0x0:_0x24a8a1[_0x5327f2(0xfe)])>0x0)for(let _0x1ab835 in _0xe4e641[_0x5327f2(0xfb)]){_0xe4e641[_0x5327f2(0x12d)][_0x5327f2(0xf3)](_0xe4e641[_0x5327f2(0xfb)][_0x1ab835])!==-0x1&&(_0xe4e641[_0x5327f2(0xfb)][_0x1ab835]=null);}_0xe4e641[_0x5327f2(0xea)]=_0x1504e3,(0x0,validator_1[_0x5327f2(0xf4)])(_0xe4e641['validate'])(_0x68004d,_0x223828,_0x400901),(0x0,core_2[_0x5327f2(0x124)])(Object[_0x5327f2(0x10e)](_0xe4e641,{'path':_0x1315e9,'requestMethod':(_0x231381||_0x5327f2(0x125))['toLowerCase']()}))(_0x68004d,_0x223828,_0x400901),(0x0,core_2[_0x5327f2(0x102)])(action_1[_0x5327f2(0xe5)],{'path':_0x1315e9,'method':_0x223828,'apimit':_0xe4e641['apimit'],'intercept':_0xe4e641[_0x5327f2(0x106)],'routerName':_0xe4e641['routerName'],'description':_0xe4e641[_0x5327f2(0xe7)],'middleware':(_0xe4e641[_0x5327f2(0xfb)]||[])[_0x5327f2(0x115)](_0x15356c=>!!_0x15356c),'requestMethod':(_0x231381||_0x5327f2(0x125))[_0x5327f2(0xeb)]()},_0x68004d),(0x0,core_2[_0x5327f2(0xef)])(action_1[_0x5327f2(0xe5)],{'path':_0x1315e9,'method':_0x223828,'apimit':_0xe4e641[_0x5327f2(0xe8)],'intercept':_0xe4e641[_0x5327f2(0x106)],'routerName':_0xe4e641[_0x5327f2(0xea)],'description':_0xe4e641[_0x5327f2(0xe7)],'middleware':(_0xe4e641['middleware']||[])[_0x5327f2(0x115)](_0xa6e641=>!!_0xa6e641),'requestMethod':(_0x231381||_0x5327f2(0x125))[_0x5327f2(0xeb)]()})(_0x68004d,_0x223828,_0x400901);};}exports[a3_0x19ebf3(0x12b)]=ActionApi;function parseRoute(_0x564c01){const _0x4cedec=a3_0x19ebf3;_0x564c01=_0x564c01['replace'](/(\\|\/)/g,'/');const _0x4f0254=process[_0x4cedec(0x109)]()[_0x4cedec(0xe1)](/(\\|\/)/g,'/'),_0x4e5685=_0x564c01['substring'](0x0,_0x4f0254[_0x4cedec(0xfe)]+_0x564c01['substring'](_0x4f0254['length']+0x1)[_0x4cedec(0xf3)]('/')+0x1),_0x464461=_0x564c01[_0x4cedec(0xec)](_0x4e5685[_0x4cedec(0xfe)]+0x1)[_0x4cedec(0xe1)](/(\\|\/)/g,'/'),_0x27f79c={'route':'','prefix':![],'module':![],'rootpath':_0x4e5685,'filepath':_0x464461};if(_0x464461[_0x4cedec(0x129)](_0x4cedec(0x11d))||_0x464461[_0x4cedec(0x129)](_0x4cedec(0x128))){const _0x2f3e65=_0x464461['substring']((_0x464461['startsWith'](_0x4cedec(0x11d))?_0x4cedec(0x11d):_0x4cedec(0x128))[_0x4cedec(0xfe)])['split']('/')['filter'](_0x1df199=>_0x1df199&&_0x1df199[_0x4cedec(0x10b)]());return _0x2f3e65['length']>0x1&&(_0x27f79c['prefix']=_0x2f3e65[0x0][_0x4cedec(0xeb)](),_0x2f3e65[_0x4cedec(0xf8)](0x0,0x1)),_0x27f79c['route']=('/'+_0x2f3e65[_0x4cedec(0x112)]('/'))[_0x4cedec(0xe1)](/(\.ts|\.js)$/,'')[_0x4cedec(0xe1)](/\/{2,}/g,'/')[_0x4cedec(0x130)](/[\/|A-Z]*[^A-Z]+/g)[_0x4cedec(0x112)]('-')[_0x4cedec(0xeb)]()['replace'](/\/\-/g,'/'),_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xe0)](_0x4cedec(0x11c))&&(_0x27f79c[_0x4cedec(0xf5)]=_0x27f79c['route'][_0x4cedec(0xec)](0x0,_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xfe)]-0x7)),_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xe0)](_0x4cedec(0xdf))&&(_0x27f79c[_0x4cedec(0xf5)]=_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xec)](0x0,_0x27f79c[_0x4cedec(0xf5)]['length']-0xb)),_0x27f79c;}else{if(_0x464461[_0x4cedec(0x129)](_0x4cedec(0x10d))){const _0x4330d6=_0x464461[_0x4cedec(0xec)](0x0,_0x464461[_0x4cedec(0xf3)](_0x4cedec(0x101))+0x5),_0x54bb89=_0x464461[_0x4cedec(0xec)](_0x4330d6[_0x4cedec(0xfe)]+0x1)[_0x4cedec(0xe1)](/(\\|\/)/g,'/')[_0x4cedec(0x12f)]('/')[0x0];if(_0x464461[_0x4cedec(0x129)](_0x4cedec(0x10d)+_0x54bb89+_0x4cedec(0xf7))){const _0x26be3b=_0x464461[_0x4cedec(0xec)]((_0x4330d6+'/'+_0x54bb89+'/controller/')['length'])[_0x4cedec(0x12f)]('/')[_0x4cedec(0x115)](_0x41551c=>_0x41551c&&_0x41551c[_0x4cedec(0x10b)]());return _0x26be3b['length']>0x1&&(_0x27f79c[_0x4cedec(0xe6)]=_0x26be3b[0x0][_0x4cedec(0xeb)](),_0x26be3b[_0x4cedec(0xf8)](0x0,0x1)),_0x27f79c[_0x4cedec(0x10a)]=_0x54bb89,_0x27f79c[_0x4cedec(0xf5)]=('/'+_0x54bb89+'/'+_0x26be3b['join']('/'))[_0x4cedec(0xe1)](/(\.ts|\.js)$/,'')[_0x4cedec(0xe1)](/\/{2,}/g,'/')[_0x4cedec(0x130)](/[\/|A-Z]*[^A-Z]+/g)[_0x4cedec(0x112)]('-')[_0x4cedec(0xeb)]()[_0x4cedec(0xe1)](/\/\-/g,'/'),_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xe0)](_0x4cedec(0x11c))&&(_0x27f79c[_0x4cedec(0xf5)]=_0x27f79c[_0x4cedec(0xf5)]['substring'](0x0,_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xfe)]-0x7)),_0x27f79c[_0x4cedec(0xf5)][_0x4cedec(0xe0)]('-controller')&&(_0x27f79c[_0x4cedec(0xf5)]=_0x27f79c['route']['substring'](0x0,_0x27f79c['route']['length']-0xb)),_0x27f79c;}throw new Error(_0x464461+_0x4cedec(0xf9)+_0x54bb89+_0x4cedec(0x120));}}throw new Error(_0x464461+_0x4cedec(0x103));}exports[a3_0x19ebf3(0x11a)]=parseRoute;const moduleConfigTmp=(0x0,core_1[a3_0x19ebf3(0x11f)])(action_1[a3_0x19ebf3(0x117)],action_1[a3_0x19ebf3(0x113)])||{};function getModuleConfig(_0x5b7665,_0x321d97,_0x1bec44){const _0xe91ca0=a3_0x19ebf3;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0x321d97])){let _0x4a09e5={};if(NODE_ENV&&fs['existsSync'](_0x5b7665+'/'+_0x321d97+'/config.'+NODE_ENV+'.'+_0x1bec44)){const _0x5af117=include(_0x5b7665+'/'+_0x321d97+_0xe91ca0(0x110)+NODE_ENV+'.'+_0x1bec44);Object[_0xe91ca0(0xe4)](_0x5af117)[_0xe91ca0(0xfe)]>0x0&&(_0x4a09e5=lodash[_0xe91ca0(0xed)](_0x4a09e5,_0x5af117));}if(fs[_0xe91ca0(0x12e)](_0x5b7665+_0xe91ca0(0x110)+_0x1bec44)){const _0x4b7cd0=include(_0x5b7665+_0xe91ca0(0x110)+_0x1bec44);Object['keys'](_0x4b7cd0)['length']>0x0&&(_0x4a09e5=lodash[_0xe91ca0(0xed)](_0x4a09e5,_0x4b7cd0));}moduleConfigTmp[_0x321d97]=_0x4a09e5,(0x0,core_1[_0xe91ca0(0x11b)])(action_1[_0xe91ca0(0x117)],moduleConfigTmp,action_1[_0xe91ca0(0x113)]);}return moduleConfigTmp[_0x321d97];}
|
|
1
|
+
const a3_0x30a7c7=a3_0x1d33;(function(_0x3f2722,_0x1cde1b){const _0x54ecb7=a3_0x1d33,_0x46dc28=_0x3f2722();while(!![]){try{const _0xdb5e40=-parseInt(_0x54ecb7(0x116))/0x1*(parseInt(_0x54ecb7(0x113))/0x2)+-parseInt(_0x54ecb7(0x110))/0x3+-parseInt(_0x54ecb7(0x152))/0x4+parseInt(_0x54ecb7(0x119))/0x5+-parseInt(_0x54ecb7(0x126))/0x6+parseInt(_0x54ecb7(0x111))/0x7+-parseInt(_0x54ecb7(0x15c))/0x8*(-parseInt(_0x54ecb7(0x11f))/0x9);if(_0xdb5e40===_0x1cde1b)break;else _0x46dc28['push'](_0x46dc28['shift']());}catch(_0xb1a2cd){_0x46dc28['push'](_0x46dc28['shift']());}}}(a3_0x18f8,0xbd19f));const a3_0x429c3e=(function(){let _0x10b3de=!![];return function(_0x1afc4f,_0x26b2cb){const _0x4d6455=_0x10b3de?function(){const _0x3b9829=a3_0x1d33;if(_0x26b2cb){const _0x4bd785=_0x26b2cb[_0x3b9829(0x130)](_0x1afc4f,arguments);return _0x26b2cb=null,_0x4bd785;}}:function(){};return _0x10b3de=![],_0x4d6455;};}()),a3_0x311921=a3_0x429c3e(this,function(){const _0x5e1604=a3_0x1d33;return a3_0x311921[_0x5e1604(0x115)]()['search'](_0x5e1604(0x11b))[_0x5e1604(0x115)]()[_0x5e1604(0x13f)](a3_0x311921)[_0x5e1604(0x13b)](_0x5e1604(0x11b));});a3_0x311921();'use strict';var _a,_b;Object['defineProperty'](exports,a3_0x30a7c7(0x12d),{'value':!![]}),exports['parseRoute']=exports['ActionApi']=exports['Action']=void 0x0;function a3_0x18f8(){const _0x4a4548=['Controller','NODE_ENV','__esModule','apps/','replace','apply','/controller/文件下','toLowerCase','endsWith','basic/controller/','routerName','assign','-action','AppsConfigTmp','ACTION_KEY','match','search','keys','validate','MIDWAY_SERVER_ENV','constructor','filter','saveClassMetadata','length','isArray','middleware','/controller/','startsWith','/apps','defaultsDeep','route','\x20文件请放在apps/','trim','-controller','apimit','RequestMapping','undefined','intercept','createCustomMethodDecorator','4503212hPJfCO','@midwayjs/core','middlewareIgnore','splice','prefix','existsSync','/apps/','ActionApi','filepath','APPSCONFIG_KEY','3744CKEUDt','attachClassMetadata','cwd','getClassMetadata','615111Egdqah','5749086TftdtJ','\x20文件请放在app/controller/文件下','2eetFRe','parseRoute','toString','714412ZLTRpu','saveModule','../types/action','3276910fzNShx','push','(((.+)+)+)+$','string','@anncic-api/validator','indexOf','28485yEVDwa','app/controller/','post','ACTION_ROUTE_KEY','/config.','split','description','828534zUbLex','substring','get','join','module'];a3_0x18f8=function(){return _0x4a4548;};return a3_0x18f8();}const fs=require('fs'),validator_1=require(a3_0x30a7c7(0x11d)),core_1=require(a3_0x30a7c7(0x153)),core_2=require(a3_0x30a7c7(0x153)),action_1=require(a3_0x30a7c7(0x118)),NODE_ENV=((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a[a3_0x30a7c7(0x13e)])||((_b=process===null||process===void 0x0?void 0x0:process['env'])===null||_b===void 0x0?void 0x0:_b[a3_0x30a7c7(0x12c)]);function Action(_0x41b403,_0x2394c5,_0x52cff8={'middleware':[],'sensitive':!![]}){return _0x16eb90=>{const _0x474fa9=a3_0x1d33;var _0x331da3;_0x52cff8['tagName']=_0x2394c5;const _0x319afc=parseRoute(_0x41b403);if(_0x319afc[_0x474fa9(0x12a)]){_0x52cff8['prefix']=_0x52cff8[_0x474fa9(0x156)]?'/'+_0x319afc[_0x474fa9(0x12a)]+'/'+_0x52cff8[_0x474fa9(0x156)]:'/'+_0x319afc[_0x474fa9(0x149)];_0x319afc[_0x474fa9(0x156)]&&(_0x52cff8['prefix']='/'+_0x319afc['prefix']+'/'+_0x52cff8['prefix']);_0x52cff8[_0x474fa9(0x156)]=_0x52cff8[_0x474fa9(0x156)]['toLowerCase']()['replace'](/\/{2,}/g,'/');const _0x1b3b27=getModuleConfig(_0x319afc['rootpath']+_0x474fa9(0x147),_0x319afc['module'],lodash[_0x474fa9(0x133)](_0x319afc[_0x474fa9(0x15a)],'ts')?'ts':'js');if(lodash[_0x474fa9(0x143)](_0x1b3b27['middleware'])&&_0x1b3b27[_0x474fa9(0x144)][_0x474fa9(0x142)]>0x0)for(let _0x2cdd23 in _0x1b3b27[_0x474fa9(0x144)]){if(((_0x331da3=_0x1b3b27===null||_0x1b3b27===void 0x0?void 0x0:_0x1b3b27[_0x474fa9(0x154)])===null||_0x331da3===void 0x0?void 0x0:_0x331da3[_0x474fa9(0x142)])>0x0&&_0x1b3b27[_0x474fa9(0x154)]['indexOf'](_0x1b3b27[_0x474fa9(0x144)][_0x2cdd23])!=-0x1)continue;_0x52cff8['middleware'][_0x474fa9(0x11a)](_0x1b3b27[_0x474fa9(0x144)][_0x2cdd23]);}(0x0,core_1[_0x474fa9(0x117)])(action_1[_0x474fa9(0x139)],_0x16eb90),(0x0,core_1['Controller'])(_0x52cff8[_0x474fa9(0x156)],_0x52cff8)(_0x16eb90),(0x0,core_1[_0x474fa9(0x141)])(action_1[_0x474fa9(0x139)],{'prefix':_0x52cff8[_0x474fa9(0x156)],'pprefix':_0x319afc['prefix'],'module':_0x319afc[_0x474fa9(0x12a)],'filepath':_0x319afc['filepath'],'routerOptions':_0x52cff8},_0x16eb90);}else _0x52cff8['prefix']=_0x52cff8[_0x474fa9(0x156)]?'/'+_0x52cff8[_0x474fa9(0x156)]:'/'+_0x319afc['route'],_0x319afc[_0x474fa9(0x156)]&&(_0x52cff8[_0x474fa9(0x156)]='/'+_0x319afc[_0x474fa9(0x156)]+'/'+_0x52cff8['prefix']),_0x52cff8[_0x474fa9(0x156)]=_0x52cff8['prefix'][_0x474fa9(0x132)]()[_0x474fa9(0x12f)](/\/{2,}/g,'/'),(0x0,core_1[_0x474fa9(0x117)])(action_1[_0x474fa9(0x139)],_0x16eb90),(0x0,core_1[_0x474fa9(0x12b)])(_0x52cff8['prefix'],_0x52cff8)(_0x16eb90),(0x0,core_1[_0x474fa9(0x141)])(action_1['ACTION_KEY'],{'prefix':_0x52cff8[_0x474fa9(0x156)],'module':_0x319afc['module'],'pprefix':_0x319afc[_0x474fa9(0x156)],'filepath':_0x319afc[_0x474fa9(0x15a)],'routerOptions':_0x52cff8},_0x16eb90);};}exports['Action']=Action,Action['get']=function(_0x33cec6,_0x1b3b67='/',_0x128dac={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2ecd15,_0x38bb4b,_0x1e04c4)=>{const _0x4f6c54=a3_0x1d33;ActionApi(_0x33cec6,_0x4f6c54(0x128),_0x1b3b67,_0x128dac)(_0x2ecd15,_0x38bb4b,_0x1e04c4);};},Action['post']=function(_0x3fa651,_0xccfc41='/',_0x267991={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x36206e,_0x57a529,_0x49a73d)=>{const _0x5cee32=a3_0x1d33;ActionApi(_0x3fa651,_0x5cee32(0x121),_0xccfc41,_0x267991)(_0x36206e,_0x57a529,_0x49a73d);};};function ActionApi(_0x25cdf3,_0x423633=a3_0x30a7c7(0x128),_0x155e10='/',_0xa86c76={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3a35b1,_0x4189a4,_0x3885af)=>{const _0x36146b=a3_0x1d33;var _0x9df35a,_0x1884a5,_0xebcff1;!_0xa86c76[_0x36146b(0x144)]&&(_0xa86c76['middleware']=[]);!((_0x9df35a=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76[_0x36146b(0x13d)])===null||_0x9df35a===void 0x0?void 0x0:_0x9df35a['validationOptions'])&&(_0xa86c76[_0x36146b(0x13d)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x36146b(0x11c)}});if(!_0x155e10)_0x155e10='/';else typeof _0x155e10==_0x36146b(0x11c)&&(!_0x155e10[_0x36146b(0x146)]('/')&&!_0x155e10[_0x36146b(0x146)]('-')&&(_0x155e10='/'+_0x155e10));typeof _0xa86c76['apimit']==_0x36146b(0x14f)&&(_0xa86c76[_0x36146b(0x14d)]=!![]);if(((_0x1884a5=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76['middleware'])===null||_0x1884a5===void 0x0?void 0x0:_0x1884a5['length'])>0x0&&((_0xebcff1=_0xa86c76===null||_0xa86c76===void 0x0?void 0x0:_0xa86c76[_0x36146b(0x154)])===null||_0xebcff1===void 0x0?void 0x0:_0xebcff1['length'])>0x0)for(let _0x4ebea7 in _0xa86c76[_0x36146b(0x144)]){_0xa86c76[_0x36146b(0x154)][_0x36146b(0x11e)](_0xa86c76[_0x36146b(0x144)][_0x4ebea7])!==-0x1&&(_0xa86c76['middleware'][_0x4ebea7]=null);}_0xa86c76[_0x36146b(0x135)]=_0x25cdf3,(0x0,validator_1['Validator'])(_0xa86c76[_0x36146b(0x13d)])(_0x3a35b1,_0x4189a4,_0x3885af),(0x0,core_2[_0x36146b(0x14e)])(Object[_0x36146b(0x136)](_0xa86c76,{'path':_0x155e10,'requestMethod':(_0x423633||'get')[_0x36146b(0x132)]()}))(_0x3a35b1,_0x4189a4,_0x3885af),(0x0,core_2[_0x36146b(0x15d)])(action_1[_0x36146b(0x122)],{'path':_0x155e10,'method':_0x4189a4,'apimit':_0xa86c76['apimit'],'intercept':_0xa86c76[_0x36146b(0x150)],'routerName':_0xa86c76[_0x36146b(0x135)],'description':_0xa86c76['description'],'middleware':(_0xa86c76[_0x36146b(0x144)]||[])[_0x36146b(0x140)](_0x189142=>!!_0x189142),'requestMethod':(_0x423633||'get')[_0x36146b(0x132)]()},_0x3a35b1),(0x0,core_2[_0x36146b(0x151)])(action_1[_0x36146b(0x122)],{'path':_0x155e10,'method':_0x4189a4,'apimit':_0xa86c76[_0x36146b(0x14d)],'intercept':_0xa86c76[_0x36146b(0x150)],'routerName':_0xa86c76[_0x36146b(0x135)],'description':_0xa86c76[_0x36146b(0x125)],'middleware':(_0xa86c76['middleware']||[])['filter'](_0x2db13d=>!!_0x2db13d),'requestMethod':(_0x423633||_0x36146b(0x128))[_0x36146b(0x132)]()})(_0x3a35b1,_0x4189a4,_0x3885af);};}exports[a3_0x30a7c7(0x159)]=ActionApi;function parseRoute(_0x536f69){const _0x31b7bb=a3_0x30a7c7;_0x536f69=_0x536f69[_0x31b7bb(0x12f)](/(\\|\/)/g,'/');const _0x464597=process[_0x31b7bb(0x15e)]()[_0x31b7bb(0x12f)](/(\\|\/)/g,'/'),_0x377855=_0x536f69[_0x31b7bb(0x127)](0x0,_0x464597[_0x31b7bb(0x142)]+_0x536f69[_0x31b7bb(0x127)](_0x464597[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x11e)]('/')+0x1),_0x4c1dd5=_0x536f69['substring'](_0x377855[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x12f)](/(\\|\/)/g,'/'),_0x29e20f={'route':'','prefix':![],'module':![],'rootpath':_0x377855,'filepath':_0x4c1dd5};if(_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x120))||_0x4c1dd5[_0x31b7bb(0x146)]('basic/controller/')){const _0x43719b=_0x4c1dd5[_0x31b7bb(0x127)]((_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x120))?'app/controller/':_0x31b7bb(0x134))[_0x31b7bb(0x142)])[_0x31b7bb(0x124)]('/')[_0x31b7bb(0x140)](_0x43725d=>_0x43725d&&_0x43725d[_0x31b7bb(0x14b)]());return _0x43719b[_0x31b7bb(0x142)]>0x1&&(_0x29e20f['prefix']=_0x43719b[0x0]['toLowerCase'](),_0x43719b[_0x31b7bb(0x155)](0x0,0x1)),_0x29e20f[_0x31b7bb(0x149)]=('/'+_0x43719b[_0x31b7bb(0x129)]('/'))[_0x31b7bb(0x12f)](/(\.ts|\.js)$/,'')[_0x31b7bb(0x12f)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x31b7bb(0x129)]('-')['toLowerCase']()[_0x31b7bb(0x12f)](/\/\-/g,'/'),_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x133)](_0x31b7bb(0x137))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0x7)),_0x29e20f['route']['endsWith'](_0x31b7bb(0x14c))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0xb)),_0x29e20f;}else{if(_0x4c1dd5[_0x31b7bb(0x146)](_0x31b7bb(0x12e))){const _0xce8ec3=_0x4c1dd5['substring'](0x0,_0x4c1dd5['indexOf'](_0x31b7bb(0x158))+0x5),_0x4f5cfa=_0x4c1dd5[_0x31b7bb(0x127)](_0xce8ec3[_0x31b7bb(0x142)]+0x1)[_0x31b7bb(0x12f)](/(\\|\/)/g,'/')[_0x31b7bb(0x124)]('/')[0x0];if(_0x4c1dd5[_0x31b7bb(0x146)]('apps/'+_0x4f5cfa+'/controller/')){const _0xfa97c5=_0x4c1dd5['substring']((_0xce8ec3+'/'+_0x4f5cfa+_0x31b7bb(0x145))[_0x31b7bb(0x142)])[_0x31b7bb(0x124)]('/')[_0x31b7bb(0x140)](_0x33a2e0=>_0x33a2e0&&_0x33a2e0['trim']());return _0xfa97c5[_0x31b7bb(0x142)]>0x1&&(_0x29e20f['prefix']=_0xfa97c5[0x0][_0x31b7bb(0x132)](),_0xfa97c5[_0x31b7bb(0x155)](0x0,0x1)),_0x29e20f[_0x31b7bb(0x12a)]=_0x4f5cfa,_0x29e20f[_0x31b7bb(0x149)]=('/'+_0x4f5cfa+'/'+_0xfa97c5[_0x31b7bb(0x129)]('/'))[_0x31b7bb(0x12f)](/(\.ts|\.js)$/,'')[_0x31b7bb(0x12f)](/\/{2,}/g,'/')[_0x31b7bb(0x13a)](/[\/|A-Z]*[^A-Z]+/g)[_0x31b7bb(0x129)]('-')['toLowerCase']()[_0x31b7bb(0x12f)](/\/\-/g,'/'),_0x29e20f['route'][_0x31b7bb(0x133)](_0x31b7bb(0x137))&&(_0x29e20f[_0x31b7bb(0x149)]=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x142)]-0x7)),_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x133)]('-controller')&&(_0x29e20f['route']=_0x29e20f[_0x31b7bb(0x149)][_0x31b7bb(0x127)](0x0,_0x29e20f['route'][_0x31b7bb(0x142)]-0xb)),_0x29e20f;}throw new Error(_0x4c1dd5+_0x31b7bb(0x14a)+_0x4f5cfa+_0x31b7bb(0x131));}}throw new Error(_0x4c1dd5+_0x31b7bb(0x112));}exports[a3_0x30a7c7(0x114)]=parseRoute;function a3_0x1d33(_0xfe2ab1,_0x2d2b77){const _0x57ff98=a3_0x18f8();return a3_0x1d33=function(_0x311921,_0x429c3e){_0x311921=_0x311921-0x110;let _0x18f8c5=_0x57ff98[_0x311921];return _0x18f8c5;},a3_0x1d33(_0xfe2ab1,_0x2d2b77);}const moduleConfigTmp=(0x0,core_1[a3_0x30a7c7(0x15f)])(action_1[a3_0x30a7c7(0x15b)],action_1[a3_0x30a7c7(0x138)])||{};function getModuleConfig(_0x312f74,_0xbe875b,_0x1357a3){const _0x5b5f03=a3_0x30a7c7;if(!(moduleConfigTmp===null||moduleConfigTmp===void 0x0?void 0x0:moduleConfigTmp[_0xbe875b])){let _0x519ecb={};if(NODE_ENV&&fs[_0x5b5f03(0x157)](_0x312f74+'/'+_0xbe875b+_0x5b5f03(0x123)+NODE_ENV+'.'+_0x1357a3)){const _0x3dd4ff=include(_0x312f74+'/'+_0xbe875b+'/config.'+NODE_ENV+'.'+_0x1357a3);Object[_0x5b5f03(0x13c)](_0x3dd4ff)[_0x5b5f03(0x142)]>0x0&&(_0x519ecb=lodash[_0x5b5f03(0x148)](_0x519ecb,_0x3dd4ff));}if(fs[_0x5b5f03(0x157)](_0x312f74+_0x5b5f03(0x123)+_0x1357a3)){const _0x3f0c0d=include(_0x312f74+_0x5b5f03(0x123)+_0x1357a3);Object[_0x5b5f03(0x13c)](_0x3f0c0d)[_0x5b5f03(0x142)]>0x0&&(_0x519ecb=lodash[_0x5b5f03(0x148)](_0x519ecb,_0x3f0c0d));}moduleConfigTmp[_0xbe875b]=_0x519ecb,(0x0,core_1[_0x5b5f03(0x141)])(action_1[_0x5b5f03(0x15b)],moduleConfigTmp,action_1[_0x5b5f03(0x138)]);}return moduleConfigTmp[_0xbe875b];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x111b50=a4_0x599a;(function(_0x3f8a82,_0x3f47a3){const _0x2c19a9=a4_0x599a,_0x4f0e0f=_0x3f8a82();while(!![]){try{const _0x5364d8=-parseInt(_0x2c19a9(0x1e8))/0x1+parseInt(_0x2c19a9(0x1de))/0x2+parseInt(_0x2c19a9(0x1d4))/0x3*(-parseInt(_0x2c19a9(0x1d0))/0x4)+-parseInt(_0x2c19a9(0x1c9))/0x5*(parseInt(_0x2c19a9(0x1db))/0x6)+-parseInt(_0x2c19a9(0x1d7))/0x7*(parseInt(_0x2c19a9(0x1e4))/0x8)+parseInt(_0x2c19a9(0x1d8))/0x9*(-parseInt(_0x2c19a9(0x1d3))/0xa)+parseInt(_0x2c19a9(0x1e1))/0xb*(parseInt(_0x2c19a9(0x1cc))/0xc);if(_0x5364d8===_0x3f47a3)break;else _0x4f0e0f['push'](_0x4f0e0f['shift']());}catch(_0xf9e045){_0x4f0e0f['push'](_0x4f0e0f['shift']());}}}(a4_0x2f5d,0x4bdc6));const a4_0x4b5c7c=(function(){let _0xbe2b11=!![];return function(_0x54133d,_0x5d4d05){const _0x4f6b90=_0xbe2b11?function(){if(_0x5d4d05){const _0x166a46=_0x5d4d05['apply'](_0x54133d,arguments);return _0x5d4d05=null,_0x166a46;}}:function(){};return _0xbe2b11=![],_0x4f6b90;};}()),a4_0x315af2=a4_0x4b5c7c(this,function(){const _0xcf6b14=a4_0x599a;return a4_0x315af2['toString']()[_0xcf6b14(0x1e6)](_0xcf6b14(0x1d2))[_0xcf6b14(0x1da)]()[_0xcf6b14(0x1dd)](a4_0x315af2)[_0xcf6b14(0x1e6)](_0xcf6b14(0x1d2));});a4_0x315af2();function a4_0x2f5d(){const _0x47507b=['RequestMapping','9422787sQfVXZ','/apitest','filepath','2591376KwXOaa','getConfig','search','../service/ApitestService','491118kuxeIF','20cQIGxO','isDevelopmentEnvironment','ApitestService','24VccXqw','getApplicationContext','Apitest','defineProperty','4KjQprL','REQUEST_OBJ_CTX_KEY','(((.+)+)+)+$','41770pGNBQZ','1779783irppre','get','apitest','7JsHiog','234GFbwyc','MidwayEnvironmentService','toString','80502tvozLe','getAsync','constructor','336126PwWhBj','value'];a4_0x2f5d=function(){return _0x47507b;};return a4_0x2f5d();}function a4_0x599a(_0x5380b7,_0x203622){const _0x2bec41=a4_0x2f5d();return a4_0x599a=function(_0x315af2,_0x4b5c7c){_0x315af2=_0x315af2-0x1c9;let _0x2f5d73=_0x2bec41[_0x315af2];return _0x2f5d73;},a4_0x599a(_0x5380b7,_0x203622);}'use strict';Object[a4_0x111b50(0x1cf)](exports,'__esModule',{'value':!![]}),exports[a4_0x111b50(0x1ce)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x111b50(0x1e7));function Apitest(_0x135896=a4_0x111b50(0x1e2),_0x118e04){return(_0xc57966,_0x210b44,_0x4209d1)=>{const _0x5e6750=a4_0x599a;return(0x0,core_1[_0x5e6750(0x1e0)])({'path':_0x135896,'requestMethod':_0x5e6750(0x1d5)})(_0xc57966,_0x210b44,_0x4209d1),_0x4209d1[_0x5e6750(0x1df)]=async function(..._0x5be662){const _0x2e3fb8=_0x5e6750;var _0xb40d48;const _0x3e3187=(_0xb40d48=this[core_1[_0x2e3fb8(0x1d1)]])===null||_0xb40d48===void 0x0?void 0x0:_0xb40d48['app'];if(_0x3e3187&&_0x3e3187[_0x2e3fb8(0x1e5)](_0x2e3fb8(0x1d6))){const _0x50dbcf=await _0x3e3187[_0x2e3fb8(0x1cd)]()['getAsync'](ApitestService_1[_0x2e3fb8(0x1cb)]),_0x176b04=await _0x3e3187[_0x2e3fb8(0x1cd)]()[_0x2e3fb8(0x1dc)](core_1[_0x2e3fb8(0x1d9)]);return _0x176b04[_0x2e3fb8(0x1ca)]()&&(_0x118e04[_0x2e3fb8(0x1e3)]=!![]),await _0x50dbcf['apidoc'](_0x118e04);}return'';},_0x4209d1;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x219398=a5_0x4d16;(function(_0x4aa4a8,_0x34e52a){const _0x2c784e=a5_0x4d16,_0x128ff3=_0x4aa4a8();while(!![]){try{const _0x412df9=-parseInt(_0x2c784e(0xc8))/0x1*(parseInt(_0x2c784e(0xb7))/0x2)+-parseInt(_0x2c784e(0xc6))/0x3*(parseInt(_0x2c784e(0xb5))/0x4)+-parseInt(_0x2c784e(0xbd))/0x5+-parseInt(_0x2c784e(0xb4))/0x6+parseInt(_0x2c784e(0xbc))/0x7+parseInt(_0x2c784e(0xc5))/0x8*(parseInt(_0x2c784e(0xbb))/0x9)+parseInt(_0x2c784e(0xbf))/0xa;if(_0x412df9===_0x34e52a)break;else _0x128ff3['push'](_0x128ff3['shift']());}catch(_0xd60036){_0x128ff3['push'](_0x128ff3['shift']());}}}(a5_0x4e08,0x734b7));function a5_0x4e08(){const _0x128ffb=['18psdAHL','Provide','../types/intercept','ScopeEnum','108ofSfQo','5853127xCgRLj','226040tHAAMp','toString','10413020VXFboJ','defineProperty','Intercept','search','apply','INTERCEPT_KEY','215776HgsMAB','117dSydBc','Singleton','76274PIMxfL','InterceptTargetTmp','isArray','constructor','__esModule','includes','saveClassMetadata','IIntercept','2435328BvpgSo','60648btvqda','push'];a5_0x4e08=function(){return _0x128ffb;};return a5_0x4e08();}const a5_0x19b133=(function(){let _0x241d7f=!![];return function(_0x246571,_0x30d207){const _0x4e7c04=_0x241d7f?function(){const _0x11dd26=a5_0x4d16;if(_0x30d207){const _0x379a21=_0x30d207[_0x11dd26(0xc3)](_0x246571,arguments);return _0x30d207=null,_0x379a21;}}:function(){};return _0x241d7f=![],_0x4e7c04;};}()),a5_0x397e9e=a5_0x19b133(this,function(){const _0x2baaab=a5_0x4d16;return a5_0x397e9e[_0x2baaab(0xbe)]()['search']('(((.+)+)+)+$')[_0x2baaab(0xbe)]()[_0x2baaab(0xcb)](a5_0x397e9e)[_0x2baaab(0xc2)]('(((.+)+)+)+$');});a5_0x397e9e();function a5_0x4d16(_0x32a297,_0x5bec07){const _0x1ba6e4=a5_0x4e08();return a5_0x4d16=function(_0x397e9e,_0x19b133){_0x397e9e=_0x397e9e-0xb4;let _0x4e08ee=_0x1ba6e4[_0x397e9e];return _0x4e08ee;},a5_0x4d16(_0x32a297,_0x5bec07);}'use strict';Object[a5_0x219398(0xc0)](exports,a5_0x219398(0xcc),{'value':!![]}),exports[a5_0x219398(0xcf)]=exports[a5_0x219398(0xc1)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x219398(0xb9));function Intercept(_0x516c3d){return _0x2050e1=>{const _0x53ccc2=a5_0x4d16,_0x1125c5=(0x0,core_1['getClassMetadata'])(intercept_1[_0x53ccc2(0xc4)],intercept_1['InterceptTargetTmp'])||{};for(let _0x9bf7ca of Array[_0x53ccc2(0xca)](_0x516c3d)?_0x516c3d:[_0x516c3d]){_0x9bf7ca=_0x9bf7ca['toUpperCase']();!(_0x1125c5===null||_0x1125c5===void 0x0?void 0x0:_0x1125c5[_0x9bf7ca])&&(_0x1125c5[_0x9bf7ca]=[]);if(_0x1125c5[_0x9bf7ca][_0x53ccc2(0xcd)](_0x2050e1))continue;_0x1125c5[_0x9bf7ca][_0x53ccc2(0xb6)](_0x2050e1);}(0x0,core_1[_0x53ccc2(0xb8)])()(_0x2050e1),(0x0,core_1['Scope'])(core_1[_0x53ccc2(0xba)][_0x53ccc2(0xc7)])(_0x2050e1),(0x0,core_1[_0x53ccc2(0xce)])(intercept_1[_0x53ccc2(0xc4)],_0x1125c5,intercept_1[_0x53ccc2(0xc9)]);};}exports['Intercept']=Intercept;class IIntercept{async['match'](_0x17cd01,_0x57b61c,_0x40b0eb){return!![];}}exports[a5_0x219398(0xcf)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a6_0x2920(){var _0xe129e4=['__decorate','1221LiIqPe','21650ZlArFX','HEADERS_DEVICE','__metadata','86185XXLsaO','7CKvnsx','toString','TIMEOUT_LOGINTIME','5assTHF','ApiError','apply','271868WTOImE','HEADERS_SIGNATURE','length','signature验证失败','(((.+)+)+)+$','9kqfWEA','function','metadata','请求头信息不完整','请使用正确的设备','452776LQMNJb','1448262UNIihI','HEADERS_LACK','design:type','search','3XrzWfj','请求超时,请重试','30160qAhPBK','TIMEOUT','object','验证失败,请重新登录','2499012NeHrOj'];a6_0x2920=function(){return _0xe129e4;};return a6_0x2920();}var a6_0x1539ad=a6_0x1f99;(function(_0x2843f0,_0x51d563){var _0x4eb959=a6_0x1f99,_0x3ec7cd=_0x2843f0();while(!![]){try{var _0x4eb220=parseInt(_0x4eb959(0x14f))/0x1+-parseInt(_0x4eb959(0x13e))/0x2*(-parseInt(_0x4eb959(0x143))/0x3)+-parseInt(_0x4eb959(0x134))/0x4*(-parseInt(_0x4eb959(0x131))/0x5)+-parseInt(_0x4eb959(0x13f))/0x6*(-parseInt(_0x4eb959(0x150))/0x7)+-parseInt(_0x4eb959(0x145))/0x8*(-parseInt(_0x4eb959(0x139))/0x9)+parseInt(_0x4eb959(0x14c))/0xa*(-parseInt(_0x4eb959(0x14b))/0xb)+-parseInt(_0x4eb959(0x149))/0xc;if(_0x4eb220===_0x51d563)break;else _0x3ec7cd['push'](_0x3ec7cd['shift']());}catch(_0x3b5dc2){_0x3ec7cd['push'](_0x3ec7cd['shift']());}}}(a6_0x2920,0x2b3e1));var a6_0x162881=(function(){var _0x24cfc1=!![];return function(_0x2e1a7a,_0x2a51f9){var _0x287d8a=_0x24cfc1?function(){var _0x5f0bee=a6_0x1f99;if(_0x2a51f9){var _0xc73c63=_0x2a51f9[_0x5f0bee(0x133)](_0x2e1a7a,arguments);return _0x2a51f9=null,_0xc73c63;}}:function(){};return _0x24cfc1=![],_0x287d8a;};}()),a6_0x3430e8=a6_0x162881(this,function(){var _0x53a603=a6_0x1f99;return a6_0x3430e8[_0x53a603(0x12f)]()[_0x53a603(0x142)](_0x53a603(0x138))['toString']()['constructor'](a6_0x3430e8)[_0x53a603(0x142)](_0x53a603(0x138));});a6_0x3430e8();function a6_0x1f99(_0x799190,_0x1f0a89){var _0x473bf1=a6_0x2920();return a6_0x1f99=function(_0x3430e8,_0x162881){_0x3430e8=_0x3430e8-0x12f;var _0x29205d=_0x473bf1[_0x3430e8];return _0x29205d;},a6_0x1f99(_0x799190,_0x1f0a89);}'use strict';var __decorate=this&&this[a6_0x1539ad(0x14a)]||function(_0xdd2cdd,_0x2256ce,_0x5a20a2,_0x462900){var _0x16eb8c=a6_0x1539ad,_0x413572=arguments[_0x16eb8c(0x136)],_0x12846d=_0x413572<0x3?_0x2256ce:_0x462900===null?_0x462900=Object['getOwnPropertyDescriptor'](_0x2256ce,_0x5a20a2):_0x462900,_0x4485b;if(typeof Reflect===_0x16eb8c(0x147)&&typeof Reflect['decorate']===_0x16eb8c(0x13a))_0x12846d=Reflect['decorate'](_0xdd2cdd,_0x2256ce,_0x5a20a2,_0x462900);else{for(var _0xb3c9b8=_0xdd2cdd[_0x16eb8c(0x136)]-0x1;_0xb3c9b8>=0x0;_0xb3c9b8--)if(_0x4485b=_0xdd2cdd[_0xb3c9b8])_0x12846d=(_0x413572<0x3?_0x4485b(_0x12846d):_0x413572>0x3?_0x4485b(_0x2256ce,_0x5a20a2,_0x12846d):_0x4485b(_0x2256ce,_0x5a20a2))||_0x12846d;}return _0x413572>0x3&&_0x12846d&&Object['defineProperty'](_0x2256ce,_0x5a20a2,_0x12846d),_0x12846d;},__metadata=this&&this[a6_0x1539ad(0x14e)]||function(_0x734ff,_0x1f4df4){var _0x39f7d6=a6_0x1539ad;if(typeof Reflect===_0x39f7d6(0x147)&&typeof Reflect[_0x39f7d6(0x13b)]==='function')return Reflect['metadata'](_0x734ff,_0x1f4df4);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a6_0x1539ad(0x132)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x1539ad(0x132)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError[a6_0x1539ad(0x14d)]=0x18e73,ApiError[a6_0x1539ad(0x135)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a6_0x1539ad(0x130)]=0x18e76,__decorate([AnnErrorMsg(a6_0x1539ad(0x144)),__metadata(a6_0x1539ad(0x141),Object)],ApiError,a6_0x1539ad(0x146),void 0x0),__decorate([AnnErrorMsg(a6_0x1539ad(0x13c)),__metadata(a6_0x1539ad(0x141),Object)],ApiError,a6_0x1539ad(0x140),void 0x0),__decorate([AnnErrorMsg(a6_0x1539ad(0x13d)),__metadata(a6_0x1539ad(0x141),Object)],ApiError,a6_0x1539ad(0x14d),void 0x0),__decorate([AnnErrorMsg(a6_0x1539ad(0x137)),__metadata('design:type',Object)],ApiError,a6_0x1539ad(0x135),void 0x0),__decorate([AnnErrorMsg(a6_0x1539ad(0x148)),__metadata(a6_0x1539ad(0x141),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a6_0x1539ad(0x141),Object)],ApiError,a6_0x1539ad(0x130),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x3a59(){const _0x4399d9=['12lnzXkN','search','2109345bXeLSb','get','345621FooxXt','4310218MGhfQR','constructor','5803LGHmxA','(((.+)+)+)+$','11096zCrUyP','409086KTolFb','1drBwJX','defineProperty','toString','9vOQTrZ','10652690tKobzT','getClassMetadata','783348RPiICN','36XxrLVL','getAppsConfig'];a7_0x3a59=function(){return _0x4399d9;};return a7_0x3a59();}const a7_0x50cc4e=a7_0x239d;(function(_0x36b665,_0x240339){const _0x106a8d=a7_0x239d,_0x24543d=_0x36b665();while(!![]){try{const _0x1affe2=parseInt(_0x106a8d(0xc2))/0x1*(parseInt(_0x106a8d(0xc8))/0x2)+-parseInt(_0x106a8d(0xcf))/0x3*(parseInt(_0x106a8d(0xcb))/0x4)+-parseInt(_0x106a8d(0xcd))/0x5+-parseInt(_0x106a8d(0xc1))/0x6+parseInt(_0x106a8d(0xbe))/0x7*(parseInt(_0x106a8d(0xc0))/0x8)+-parseInt(_0x106a8d(0xc5))/0x9*(-parseInt(_0x106a8d(0xc6))/0xa)+parseInt(_0x106a8d(0xd0))/0xb*(-parseInt(_0x106a8d(0xc9))/0xc);if(_0x1affe2===_0x240339)break;else _0x24543d['push'](_0x24543d['shift']());}catch(_0x5d0b7d){_0x24543d['push'](_0x24543d['shift']());}}}(a7_0x3a59,0x9167d));function a7_0x239d(_0x2ec379,_0x22cc1d){const _0x9289d3=a7_0x3a59();return a7_0x239d=function(_0x262f53,_0xdb7630){_0x262f53=_0x262f53-0xbd;let _0x3a597d=_0x9289d3[_0x262f53];return _0x3a597d;},a7_0x239d(_0x2ec379,_0x22cc1d);}const a7_0xdb7630=(function(){let _0x4d3430=!![];return function(_0x2c91a0,_0x4e1c28){const _0x5d54cd=_0x4d3430?function(){if(_0x4e1c28){const _0x672864=_0x4e1c28['apply'](_0x2c91a0,arguments);return _0x4e1c28=null,_0x672864;}}:function(){};return _0x4d3430=![],_0x5d54cd;};}()),a7_0x262f53=a7_0xdb7630(this,function(){const _0xe4edd4=a7_0x239d;return a7_0x262f53[_0xe4edd4(0xc4)]()[_0xe4edd4(0xcc)](_0xe4edd4(0xbf))[_0xe4edd4(0xc4)]()[_0xe4edd4(0xbd)](a7_0x262f53)[_0xe4edd4(0xcc)]('(((.+)+)+)+$');});a7_0x262f53();'use strict';Object[a7_0x50cc4e(0xc3)](exports,'__esModule',{'value':!![]}),exports[a7_0x50cc4e(0xca)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x160f60){const _0x231ef1=a7_0x50cc4e,_0x1b751e=(0x0,core_1[_0x231ef1(0xc7)])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x160f60?lodash[_0x231ef1(0xce)](_0x1b751e,_0x160f60):_0x1b751e;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a8_0x5145(){const _0x299bff=['flags.description','metadata','(((.+)+)+)+$','filepath','args','BODY','routerName','344XXKqeo','join','key','route','INJECT_CUSTOM_PARAM','name','title','3BBlfhz','1947370HPnEia','allow','apply','split','replace','@midwayjs/core','get','listModule','function','array','toString','prefix','tagName','RouteParamTypes','body','search','28uBGpZg','length','11yCLPjm','/static/apitest','../types/action','max','QUERY','HEADERS','intercept','isArray','routes','items','header','concat','default','filter','FILESTREAM','substring','5650836Vrcirq','summary','Number','noreq','2170PqWrxU','rules','2004xvXqKq','find','indexOf','required','endsWith','file','test','只允许:[','path','parameterIndex','module','ACTION_KEY','string','describe','min','limit','number','130926zeVrKe','boolean','push','pprefix','flags.default','query','Boolean','description','propertyData','keys','request','method','getClassMetadata','String','getClassExtendedMetadata','startsWith','object','19674gZFofc','type','routerOptions','constructor','RULES_KEY','iterator','getMethodParamTypes','112116DfRCQJ','220474yDHcGv','static/apitest','FILESSTREAM','File'];a8_0x5145=function(){return _0x299bff;};return a8_0x5145();}function a8_0x5a25(_0x9dc559,_0x3f4819){const _0x192a5f=a8_0x5145();return a8_0x5a25=function(_0x5622fa,_0x45e61a){_0x5622fa=_0x5622fa-0x13f;let _0x5145bc=_0x192a5f[_0x5622fa];return _0x5145bc;},a8_0x5a25(_0x9dc559,_0x3f4819);}const a8_0x265503=a8_0x5a25;(function(_0x49f1b5,_0x2bcab6){const _0x79d80f=a8_0x5a25,_0x212e3c=_0x49f1b5();while(!![]){try{const _0xa8660c=-parseInt(_0x79d80f(0x149))/0x1+-parseInt(_0x79d80f(0x195))/0x2*(parseInt(_0x79d80f(0x15b))/0x3)+parseInt(_0x79d80f(0x184))/0x4*(-parseInt(_0x79d80f(0x182))/0x5)+parseInt(_0x79d80f(0x148))/0x6*(parseInt(_0x79d80f(0x16c))/0x7)+parseInt(_0x79d80f(0x154))/0x8*(-parseInt(_0x79d80f(0x141))/0x9)+parseInt(_0x79d80f(0x15c))/0xa+-parseInt(_0x79d80f(0x16e))/0xb*(-parseInt(_0x79d80f(0x17e))/0xc);if(_0xa8660c===_0x2bcab6)break;else _0x212e3c['push'](_0x212e3c['shift']());}catch(_0x215739){_0x212e3c['push'](_0x212e3c['shift']());}}}(a8_0x5145,0x22ea7));const a8_0x45e61a=(function(){let _0x17b283=!![];return function(_0xcfccf9,_0x3bb1e1){const _0x120dc9=_0x17b283?function(){const _0x54d185=a8_0x5a25;if(_0x3bb1e1){const _0xfa0b51=_0x3bb1e1[_0x54d185(0x15e)](_0xcfccf9,arguments);return _0x3bb1e1=null,_0xfa0b51;}}:function(){};return _0x17b283=![],_0x120dc9;};}()),a8_0x5622fa=a8_0x45e61a(this,function(){const _0x383a71=a8_0x5a25;return a8_0x5622fa[_0x383a71(0x166)]()[_0x383a71(0x16b)](_0x383a71(0x14f))[_0x383a71(0x166)]()[_0x383a71(0x144)](a8_0x5622fa)[_0x383a71(0x16b)]('(((.+)+)+)+$');});a8_0x5622fa();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x265503(0x161)),core_2=require(a8_0x265503(0x161)),core_3=require('@midwayjs/core'),action_1=require(a8_0x265503(0x170));function getRoutes(_0xda785={'prefix':'/','module':![]}){const _0xe2d145=a8_0x265503;var _0x1e25fb,_0x1244a2;const _0x51020d=(0x0,core_3[_0xe2d145(0x163)])(action_1[_0xe2d145(0x18f)]),_0x37f129={},_0xa397fe=Array[_0xe2d145(0x175)](_0xda785[_0xe2d145(0x17b)]||[])?_0xda785[_0xe2d145(0x17b)]||[]:[_0xda785['filter']];_0x362272:for(const _0x3913c3 of _0x51020d){let _0x4e03f8=(0x0,core_3[_0xe2d145(0x1a1)])(action_1[_0xe2d145(0x18f)],_0x3913c3),_0x28ba06=(0x0,core_3[_0xe2d145(0x1a1)])(action_1['ACTION_ROUTE_KEY'],_0x3913c3);if(_0x4e03f8&&_0x28ba06){let _0x5dbdc4=_0x4e03f8[_0xe2d145(0x167)],_0x57d64d={};if(_0xda785[_0xe2d145(0x18e)]&&(0x0,lodash_1[_0xe2d145(0x162)])(_0x4e03f8,_0xe2d145(0x18e),![])!=_0xda785[_0xe2d145(0x18e)])continue _0x362272;else{if(_0xda785[_0xe2d145(0x18e)]===![]&&!!(0x0,lodash_1['get'])(_0x4e03f8,'module',null))continue _0x362272;}if(_0xda785[_0xe2d145(0x167)]&&!_0x5dbdc4['startsWith'](_0xda785[_0xe2d145(0x167)]))continue _0x362272;_0x5dbdc4!=='/'?(_0x57d64d['summary']=(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8[_0xe2d145(0x143)][_0xe2d145(0x168)])||(/^\//[_0xe2d145(0x18a)](_0x5dbdc4)?_0x5dbdc4[_0xe2d145(0x15f)]('/')[0x1]:_0x5dbdc4),_0x57d64d[_0xe2d145(0x19c)]=(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8[_0xe2d145(0x143)][_0xe2d145(0x19c)])||_0x57d64d[_0xe2d145(0x17f)],_0x57d64d[_0xe2d145(0x176)]=[]):(_0x57d64d[_0xe2d145(0x17f)]=(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8[_0xe2d145(0x143)][_0xe2d145(0x168)])||'default',_0x57d64d[_0xe2d145(0x19c)]=(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8['routerOptions'][_0xe2d145(0x19c)])||'',_0x57d64d[_0xe2d145(0x176)]=[]);_0xda785[_0xe2d145(0x150)]&&(_0x57d64d[_0xe2d145(0x150)]=_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8[_0xe2d145(0x150)]);(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8['pprefix'])&&(_0x57d64d['prefix']=_0x4e03f8[_0xe2d145(0x198)]);(_0x4e03f8===null||_0x4e03f8===void 0x0?void 0x0:_0x4e03f8[_0xe2d145(0x18e)])&&(_0x57d64d[_0xe2d145(0x18e)]=_0x4e03f8[_0xe2d145(0x18e)]);let _0x1c178e=(0x0,core_3['getClassMetadata'])(core_2[_0xe2d145(0x158)],_0x3913c3)||{};if(typeof _0x28ba06[Symbol[_0xe2d145(0x146)]]===_0xe2d145(0x164))for(let _0x2f2c92 of _0x28ba06){if((_0xda785===null||_0xda785===void 0x0?void 0x0:_0xda785[_0xe2d145(0x174)])&&!(_0x2f2c92===null||_0x2f2c92===void 0x0?void 0x0:_0x2f2c92['intercept']))continue;let _0x58585c={};_0x58585c[_0xe2d145(0x1a0)]=_0x2f2c92['requestMethod'],_0x58585c[_0xe2d145(0x157)]=(_0x5dbdc4+_0x2f2c92[_0xe2d145(0x18c)])[_0xe2d145(0x160)](/\/{2,}/g,'/'),_0x58585c[_0xe2d145(0x17f)]=(_0x2f2c92===null||_0x2f2c92===void 0x0?void 0x0:_0x2f2c92[_0xe2d145(0x153)])||_0x57d64d['summary']||_0xe2d145(0x17a),_0x58585c[_0xe2d145(0x19c)]=(_0x2f2c92===null||_0x2f2c92===void 0x0?void 0x0:_0x2f2c92[_0xe2d145(0x19c)])||'',_0x58585c[_0xe2d145(0x19f)]=[];_0x58585c[_0xe2d145(0x157)][_0xe2d145(0x188)]('/')&&(_0x58585c['route']=_0x58585c[_0xe2d145(0x157)][_0xe2d145(0x17d)](0x0,_0x58585c[_0xe2d145(0x157)][_0xe2d145(0x16d)]-0x1));if(!(0x0,lodash_1[_0xe2d145(0x13f)])(_0x58585c[_0xe2d145(0x157)],_0xe2d145(0x14a))&&!(0x0,lodash_1[_0xe2d145(0x13f)])(_0x58585c[_0xe2d145(0x157)],_0xe2d145(0x16f))&&_0xa397fe[_0xe2d145(0x186)](_0x58585c[_0xe2d145(0x157)])===-0x1){if(!(_0xda785===null||_0xda785===void 0x0?void 0x0:_0xda785[_0xe2d145(0x181)])){let _0x515cb6=(0x0,core_3[_0xe2d145(0x147)])(new _0x3913c3(),_0x2f2c92[_0xe2d145(0x1a0)]);for(const _0x5a6fe5 in _0x515cb6){let _0x16013d=(_0x1e25fb=_0x1c178e[_0x2f2c92[_0xe2d145(0x1a0)]])===null||_0x1e25fb===void 0x0?void 0x0:_0x1e25fb['find'](_0x3bfd1a=>_0x3bfd1a[_0xe2d145(0x18d)]==_0x5a6fe5&&_0x3bfd1a[_0xe2d145(0x156)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x3bfd1a===null||_0x3bfd1a===void 0x0?void 0x0:_0x3bfd1a[_0xe2d145(0x14e)]));if(_0x16013d===null||_0x16013d===void 0x0?void 0x0:_0x16013d['metadata']){let _0x21f4e5=convertTypeToString(_0x16013d[_0xe2d145(0x14e)][_0xe2d145(0x142)]||0x0);if(['query',_0xe2d145(0x16a)][_0xe2d145(0x186)](_0x21f4e5)!=-0x1&&_0x16013d['metadata'][_0xe2d145(0x19d)][_0xe2d145(0x186)](':')==-0x1&&!_0x58585c[_0xe2d145(0x19f)][_0xe2d145(0x185)](_0x54bffe=>_0x54bffe[_0xe2d145(0x156)]==_0x16013d[_0xe2d145(0x14e)][_0xe2d145(0x19d)]))_0x58585c['request'][_0xe2d145(0x197)]({'key':_0x16013d[_0xe2d145(0x14e)][_0xe2d145(0x19d)],'title':_0x16013d['metadata'][_0xe2d145(0x19d)],'type':convertSchemaType(_0x515cb6[_0x16013d[_0xe2d145(0x18d)]][_0xe2d145(0x159)]),'required':![],'default':'','desc':''});else{if(_0x21f4e5=='file'){let _0x4b1288=((_0x1244a2=_0x16013d===null||_0x16013d===void 0x0?void 0x0:_0x16013d[_0xe2d145(0x14e)])===null||_0x1244a2===void 0x0?void 0x0:_0x1244a2[_0xe2d145(0x19d)])||_0xe2d145(0x189);_0x4b1288[_0xe2d145(0x186)](':')==-0x1&&!_0x58585c['request'][_0xe2d145(0x185)](_0x353b95=>_0x353b95[_0xe2d145(0x156)]==_0x4b1288&&_0x353b95[_0xe2d145(0x142)]==_0xe2d145(0x189))&&_0x58585c['request']['push']({'key':_0x4b1288,'title':'文件上传-'+_0x4b1288,'type':_0xe2d145(0x189),'required':!![],'default':'','desc':''});}}}else{const _0x5c09c0=(0x0,core_3[_0xe2d145(0x1a3)])(validator_1[_0xe2d145(0x145)],_0x515cb6[_0x5a6fe5]);_0x5c09c0&&_0x58585c[_0xe2d145(0x19f)]['push'](...getJoiRequest(_0x5c09c0));}}}_0x57d64d['routes'][_0xe2d145(0x197)](_0x58585c);}}if(_0x57d64d[_0xe2d145(0x176)]['length']>0x0){let _0x5452fd=_0x37f129[_0x5dbdc4];_0x5452fd?(_0x5452fd[_0xe2d145(0x17f)]!=_0x57d64d['summary']&&(_0x5452fd[_0xe2d145(0x17f)]=_0x5452fd[_0xe2d145(0x17f)]+','+_0x57d64d[_0xe2d145(0x17f)]),_0x5452fd['description']!=_0x57d64d['description']&&(_0x5452fd[_0xe2d145(0x19c)]=_0x5452fd[_0xe2d145(0x19c)]+','+_0x57d64d[_0xe2d145(0x19c)]),_0x5452fd['routes']=_0x5452fd[_0xe2d145(0x176)][_0xe2d145(0x179)](_0x57d64d[_0xe2d145(0x176)]),_0x37f129[_0x5dbdc4]=_0x5452fd):_0x37f129[_0x5dbdc4]=_0x57d64d;}}}return _0x37f129;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x5c2c2b){const _0x78b9d6=a8_0x265503,_0x17fd59=[];for(let _0x710f2 in _0x5c2c2b){const _0x1375d9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xef6e34=typeof _0x5c2c2b[_0x710f2][_0x78b9d6(0x191)]==_0x78b9d6(0x164)?_0x5c2c2b[_0x710f2][_0x78b9d6(0x191)]():_0x5c2c2b[_0x710f2];_0x1375d9['key']=_0x710f2,_0x1375d9[_0x78b9d6(0x142)]=_0xef6e34[_0x78b9d6(0x142)],_0x1375d9[_0x78b9d6(0x15a)]=(0x0,lodash_1['get'])(_0xef6e34,'flags.label',_0x710f2),_0x1375d9[_0x78b9d6(0x17a)]=(0x0,lodash_1[_0x78b9d6(0x162)])(_0xef6e34,_0x78b9d6(0x199),''),_0x1375d9[_0x78b9d6(0x187)]=(0x0,lodash_1[_0x78b9d6(0x162)])(_0xef6e34,'flags.presence','')=='required',_0x1375d9[_0x78b9d6(0x19c)]=(0x0,lodash_1['get'])(_0xef6e34,_0x78b9d6(0x14d),'');if(_0xef6e34[_0x78b9d6(0x142)]==_0x78b9d6(0x140))_0x1375d9['children']=getJoiRequest(_0xef6e34[_0x78b9d6(0x19e)]);else{if(_0xef6e34[_0x78b9d6(0x142)]==_0x78b9d6(0x165)&&_0xef6e34[_0x78b9d6(0x177)]&&Array[_0x78b9d6(0x175)](_0xef6e34[_0x78b9d6(0x177)])&&_0xef6e34[_0x78b9d6(0x177)][0x0]){}}_0xef6e34[_0x78b9d6(0x15d)]&&Array['isArray'](_0xef6e34[_0x78b9d6(0x15d)])&&_0xef6e34['allow']['length']>0x0&&(_0x1375d9[_0x78b9d6(0x19c)]=_0x78b9d6(0x18b)+_0xef6e34[_0x78b9d6(0x15d)][_0x78b9d6(0x155)](',')+'];'+_0x1375d9['description']);if(_0x1375d9[_0x78b9d6(0x156)]&&_0x1375d9['type']){const _0x9a5fbf={};for(const _0x25a2da of _0xef6e34[_0x78b9d6(0x183)]||[]){if(_0x25a2da[_0x78b9d6(0x159)]===_0x78b9d6(0x192)&&_0x25a2da[_0x78b9d6(0x151)])_0x9a5fbf[_0x78b9d6(0x192)]=_0x25a2da[_0x78b9d6(0x151)]['limit'];else _0x25a2da[_0x78b9d6(0x159)]===_0x78b9d6(0x171)&&(_0x9a5fbf[_0x78b9d6(0x171)]=_0x25a2da[_0x78b9d6(0x151)][_0x78b9d6(0x193)]);}_0x1375d9[_0x78b9d6(0x183)]=_0x9a5fbf;}_0x1375d9['key']&&_0x1375d9['title']&&_0x17fd59[_0x78b9d6(0x197)](_0x1375d9);}return _0x17fd59;}function convertSchemaType(_0x175807){const _0x38f71d=a8_0x265503;switch(_0x175807){case'Object':return _0x38f71d(0x140);case _0x38f71d(0x19b):return _0x38f71d(0x196);case _0x38f71d(0x180):return _0x38f71d(0x194);case _0x38f71d(0x1a2):return _0x38f71d(0x190);case _0x38f71d(0x14c):return _0x38f71d(0x189);default:return _0x38f71d(0x190);}}function convertTypeToString(_0x2facc7){const _0x444c48=a8_0x265503;switch(_0x2facc7){case core_1[_0x444c48(0x169)][_0x444c48(0x173)]:return _0x444c48(0x178);case core_1['RouteParamTypes'][_0x444c48(0x172)]:return _0x444c48(0x19a);case core_1['RouteParamTypes']['PARAM']:return'path';case core_1[_0x444c48(0x169)][_0x444c48(0x152)]:return _0x444c48(0x16a);case core_1['RouteParamTypes']['FIELDS']:case core_1[_0x444c48(0x169)][_0x444c48(0x14b)]:case core_1['RouteParamTypes'][_0x444c48(0x17c)]:return _0x444c48(0x189);default:return'header';}}
|
|
1
|
+
const a8_0x4d2d88=a8_0x5c67;(function(_0x2f8f65,_0x3d37c7){const _0x246c2f=a8_0x5c67,_0x5de2a2=_0x2f8f65();while(!![]){try{const _0x1f5e78=-parseInt(_0x246c2f(0x151))/0x1*(parseInt(_0x246c2f(0x105))/0x2)+-parseInt(_0x246c2f(0x148))/0x3+parseInt(_0x246c2f(0x13d))/0x4+parseInt(_0x246c2f(0x11b))/0x5*(-parseInt(_0x246c2f(0x118))/0x6)+parseInt(_0x246c2f(0x10f))/0x7*(-parseInt(_0x246c2f(0x113))/0x8)+-parseInt(_0x246c2f(0x11c))/0x9+-parseInt(_0x246c2f(0x159))/0xa*(-parseInt(_0x246c2f(0x153))/0xb);if(_0x1f5e78===_0x3d37c7)break;else _0x5de2a2['push'](_0x5de2a2['shift']());}catch(_0x3e9e92){_0x5de2a2['push'](_0x5de2a2['shift']());}}}(a8_0x5f45,0x43cd6));const a8_0x35ab8a=(function(){let _0x20ef69=!![];return function(_0x84e618,_0x48742e){const _0xa413cd=_0x20ef69?function(){if(_0x48742e){const _0x5125a0=_0x48742e['apply'](_0x84e618,arguments);return _0x48742e=null,_0x5125a0;}}:function(){};return _0x20ef69=![],_0xa413cd;};}()),a8_0x573091=a8_0x35ab8a(this,function(){const _0x8dea61=a8_0x5c67;return a8_0x573091[_0x8dea61(0x10d)]()[_0x8dea61(0x14d)](_0x8dea61(0x154))[_0x8dea61(0x10d)]()['constructor'](a8_0x573091)[_0x8dea61(0x14d)]('(((.+)+)+)+$');});a8_0x573091();'use strict';function a8_0x5f45(){const _0x5097d9=['String','concat','type','title','required','File','substring','Object','key','min','route','91940qvIPNf','indexOf','filter','query','flags.label','ACTION_ROUTE_KEY','describe','parameterIndex','description','items','string','868197lUYMKq','@midwayjs/core','pprefix','args','RouteParamTypes','search','function','request','push','1FrOESw','body','11TLzkRG','(((.+)+)+)+$','flags.presence','prefix','endsWith','FILESTREAM','15760070vhQLRK','iterator','RULES_KEY','FILESSTREAM','method','Boolean','array','summary','max','allow','HEADERS','getClassMetadata','static/apitest','join','module','Number','routerOptions','length','startsWith','492634jNEyue','header','FIELDS','name','children','file','/static/apitest','BODY','toString','defineProperty','7BMifQt','WEB_ROUTER_PARAM_KEY','requestMethod','flags.description','2138712XVFWky','只允许:[','keys','文件上传-','find','6tqHOUj','number','boolean','442945VMUlfx','3866670jNlxsZ','intercept','replace','tagName','__esModule','routerName','get','PARAM','getClassExtendedMetadata','isArray','path','noreq','metadata','QUERY','../types/action','@anncic-api/validator','ACTION_KEY','propertyData','routes','object','default','getRoutes'];a8_0x5f45=function(){return _0x5097d9;};return a8_0x5f45();}Object[a8_0x4d2d88(0x10e)](exports,a8_0x4d2d88(0x120),{'value':!![]}),exports[a8_0x4d2d88(0x131)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x4d2d88(0x12b)),core_1=require(a8_0x4d2d88(0x149)),core_2=require(a8_0x4d2d88(0x149)),core_3=require(a8_0x4d2d88(0x149)),action_1=require(a8_0x4d2d88(0x12a));function getRoutes(_0x5188eb={'prefix':'/','module':![]}){const _0x5b68bb=a8_0x4d2d88;var _0x1d91e1,_0x5afa84;const _0x5d11d3=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x3c1504={},_0x24ec02=Array[_0x5b68bb(0x125)](_0x5188eb[_0x5b68bb(0x13f)]||[])?_0x5188eb[_0x5b68bb(0x13f)]||[]:[_0x5188eb[_0x5b68bb(0x13f)]];_0x2e5840:for(const _0x8b0614 of _0x5d11d3){let _0x508905=(0x0,core_3[_0x5b68bb(0x164)])(action_1[_0x5b68bb(0x12c)],_0x8b0614),_0x1e04c1=(0x0,core_3[_0x5b68bb(0x164)])(action_1[_0x5b68bb(0x142)],_0x8b0614);if(_0x508905&&_0x1e04c1){let _0x5f2b5c=_0x508905[_0x5b68bb(0x156)],_0x448165={};if(_0x5188eb[_0x5b68bb(0x100)]&&(0x0,lodash_1['get'])(_0x508905,'module',![])!=_0x5188eb['module'])continue _0x2e5840;else{if(_0x5188eb[_0x5b68bb(0x100)]===![]&&!!(0x0,lodash_1[_0x5b68bb(0x122)])(_0x508905,_0x5b68bb(0x100),null))continue _0x2e5840;}if(_0x5188eb[_0x5b68bb(0x156)]&&!_0x5f2b5c[_0x5b68bb(0x104)](_0x5188eb[_0x5b68bb(0x156)]))continue _0x2e5840;_0x5f2b5c!=='/'?(_0x448165[_0x5b68bb(0x160)]=(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x102)][_0x5b68bb(0x11f)])||(/^\//['test'](_0x5f2b5c)?_0x5f2b5c['split']('/')[0x1]:_0x5f2b5c),_0x448165['description']=(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x102)][_0x5b68bb(0x145)])||_0x448165[_0x5b68bb(0x160)],_0x448165[_0x5b68bb(0x12e)]=[]):(_0x448165[_0x5b68bb(0x160)]=(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x102)][_0x5b68bb(0x11f)])||'default',_0x448165[_0x5b68bb(0x145)]=(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x102)][_0x5b68bb(0x145)])||'',_0x448165[_0x5b68bb(0x12e)]=[]);_0x5188eb['filepath']&&(_0x448165['filepath']=_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905['filepath']);(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x14a)])&&(_0x448165[_0x5b68bb(0x156)]=_0x508905[_0x5b68bb(0x14a)]);(_0x508905===null||_0x508905===void 0x0?void 0x0:_0x508905[_0x5b68bb(0x100)])&&(_0x448165[_0x5b68bb(0x100)]=_0x508905[_0x5b68bb(0x100)]);let _0x5b650f=(0x0,core_3[_0x5b68bb(0x164)])(core_2['INJECT_CUSTOM_PARAM'],_0x8b0614)||{};if(typeof _0x1e04c1[Symbol[_0x5b68bb(0x15a)]]===_0x5b68bb(0x14e))for(let _0x275cf3 of _0x1e04c1){if((_0x5188eb===null||_0x5188eb===void 0x0?void 0x0:_0x5188eb[_0x5b68bb(0x11d)])&&!(_0x275cf3===null||_0x275cf3===void 0x0?void 0x0:_0x275cf3[_0x5b68bb(0x11d)]))continue;let _0x28928={};_0x28928['method']=_0x275cf3[_0x5b68bb(0x111)],_0x28928[_0x5b68bb(0x13c)]=(_0x5f2b5c+_0x275cf3[_0x5b68bb(0x126)])[_0x5b68bb(0x11e)](/\/{2,}/g,'/'),_0x28928[_0x5b68bb(0x160)]=(_0x275cf3===null||_0x275cf3===void 0x0?void 0x0:_0x275cf3[_0x5b68bb(0x121)])||_0x448165[_0x5b68bb(0x160)]||_0x5b68bb(0x130),_0x28928[_0x5b68bb(0x145)]=(_0x275cf3===null||_0x275cf3===void 0x0?void 0x0:_0x275cf3[_0x5b68bb(0x145)])||'',_0x28928[_0x5b68bb(0x14f)]=[];_0x28928[_0x5b68bb(0x13c)][_0x5b68bb(0x157)]('/')&&(_0x28928[_0x5b68bb(0x13c)]=_0x28928[_0x5b68bb(0x13c)][_0x5b68bb(0x138)](0x0,_0x28928['route'][_0x5b68bb(0x103)]-0x1));if(!(0x0,lodash_1[_0x5b68bb(0x104)])(_0x28928[_0x5b68bb(0x13c)],_0x5b68bb(0xfe))&&!(0x0,lodash_1[_0x5b68bb(0x104)])(_0x28928[_0x5b68bb(0x13c)],_0x5b68bb(0x10b))&&_0x24ec02[_0x5b68bb(0x13e)](_0x28928[_0x5b68bb(0x13c)])===-0x1){if(!(_0x5188eb===null||_0x5188eb===void 0x0?void 0x0:_0x5188eb[_0x5b68bb(0x127)])){let _0x4fecd0=(0x0,core_3['getMethodParamTypes'])(new _0x8b0614(),_0x275cf3[_0x5b68bb(0x15d)]);for(const _0x2465b4 in _0x4fecd0){let _0x1ab56=(_0x1d91e1=_0x5b650f[_0x275cf3['method']])===null||_0x1d91e1===void 0x0?void 0x0:_0x1d91e1[_0x5b68bb(0x117)](_0x54002b=>_0x54002b[_0x5b68bb(0x144)]==_0x2465b4&&_0x54002b[_0x5b68bb(0x13a)]===core_2[_0x5b68bb(0x110)]&&(_0x54002b===null||_0x54002b===void 0x0?void 0x0:_0x54002b[_0x5b68bb(0x128)]));if(_0x1ab56===null||_0x1ab56===void 0x0?void 0x0:_0x1ab56[_0x5b68bb(0x128)]){let _0x14b217=convertTypeToString(_0x1ab56['metadata']['type']||0x0);if([_0x5b68bb(0x140),_0x5b68bb(0x152)][_0x5b68bb(0x13e)](_0x14b217)!=-0x1&&_0x1ab56[_0x5b68bb(0x128)][_0x5b68bb(0x12d)][_0x5b68bb(0x13e)](':')==-0x1&&!_0x28928['request'][_0x5b68bb(0x117)](_0x315d2e=>_0x315d2e['key']==_0x1ab56['metadata'][_0x5b68bb(0x12d)]))_0x28928[_0x5b68bb(0x14f)]['push']({'key':_0x1ab56['metadata'][_0x5b68bb(0x12d)],'title':_0x1ab56[_0x5b68bb(0x128)][_0x5b68bb(0x12d)],'type':convertSchemaType(_0x4fecd0[_0x1ab56['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x14b217=='file'){let _0xf3b3c9=((_0x5afa84=_0x1ab56===null||_0x1ab56===void 0x0?void 0x0:_0x1ab56[_0x5b68bb(0x128)])===null||_0x5afa84===void 0x0?void 0x0:_0x5afa84[_0x5b68bb(0x12d)])||_0x5b68bb(0x10a);_0xf3b3c9[_0x5b68bb(0x13e)](':')==-0x1&&!_0x28928[_0x5b68bb(0x14f)][_0x5b68bb(0x117)](_0xd91046=>_0xd91046[_0x5b68bb(0x13a)]==_0xf3b3c9&&_0xd91046[_0x5b68bb(0x134)]=='file')&&_0x28928[_0x5b68bb(0x14f)][_0x5b68bb(0x150)]({'key':_0xf3b3c9,'title':_0x5b68bb(0x116)+_0xf3b3c9,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x15232a=(0x0,core_3[_0x5b68bb(0x124)])(validator_1[_0x5b68bb(0x15b)],_0x4fecd0[_0x2465b4]);_0x15232a&&_0x28928[_0x5b68bb(0x14f)][_0x5b68bb(0x150)](...getJoiRequest(_0x15232a));}}}_0x448165['routes'][_0x5b68bb(0x150)](_0x28928);}}if(_0x448165[_0x5b68bb(0x12e)][_0x5b68bb(0x103)]>0x0){let _0x487184=_0x3c1504[_0x5f2b5c];_0x487184?(_0x487184[_0x5b68bb(0x160)]!=_0x448165[_0x5b68bb(0x160)]&&(_0x487184[_0x5b68bb(0x160)]=_0x487184['summary']+','+_0x448165['summary']),_0x487184[_0x5b68bb(0x145)]!=_0x448165[_0x5b68bb(0x145)]&&(_0x487184[_0x5b68bb(0x145)]=_0x487184[_0x5b68bb(0x145)]+','+_0x448165[_0x5b68bb(0x145)]),_0x487184['routes']=_0x487184[_0x5b68bb(0x12e)][_0x5b68bb(0x133)](_0x448165[_0x5b68bb(0x12e)]),_0x3c1504[_0x5f2b5c]=_0x487184):_0x3c1504[_0x5f2b5c]=_0x448165;}}}return _0x3c1504;}exports[a8_0x4d2d88(0x131)]=getRoutes;function getJoiRequest(_0x3b7d2e){const _0x55938f=a8_0x4d2d88,_0x134845=[];for(let _0x3ca667 in _0x3b7d2e){const _0xe2e4c={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x44e01e=typeof _0x3b7d2e[_0x3ca667][_0x55938f(0x143)]=='function'?_0x3b7d2e[_0x3ca667][_0x55938f(0x143)]():_0x3b7d2e[_0x3ca667];_0xe2e4c[_0x55938f(0x13a)]=_0x3ca667,_0xe2e4c[_0x55938f(0x134)]=_0x44e01e[_0x55938f(0x134)],_0xe2e4c[_0x55938f(0x135)]=(0x0,lodash_1['get'])(_0x44e01e,_0x55938f(0x141),_0x3ca667),_0xe2e4c['default']=(0x0,lodash_1[_0x55938f(0x122)])(_0x44e01e,'flags.default',''),_0xe2e4c['required']=(0x0,lodash_1[_0x55938f(0x122)])(_0x44e01e,_0x55938f(0x155),'')==_0x55938f(0x136),_0xe2e4c['description']=(0x0,lodash_1[_0x55938f(0x122)])(_0x44e01e,_0x55938f(0x112),'');if(_0x44e01e[_0x55938f(0x134)]==_0x55938f(0x12f))_0xe2e4c[_0x55938f(0x109)]=getJoiRequest(_0x44e01e[_0x55938f(0x115)]);else{if(_0x44e01e[_0x55938f(0x134)]==_0x55938f(0x15f)&&_0x44e01e[_0x55938f(0x146)]&&Array['isArray'](_0x44e01e[_0x55938f(0x146)])&&_0x44e01e[_0x55938f(0x146)][0x0]){}}_0x44e01e[_0x55938f(0x162)]&&Array[_0x55938f(0x125)](_0x44e01e[_0x55938f(0x162)])&&_0x44e01e['allow'][_0x55938f(0x103)]>0x0&&(_0xe2e4c['description']=_0x55938f(0x114)+_0x44e01e[_0x55938f(0x162)][_0x55938f(0xff)](',')+'];'+_0xe2e4c['description']);if(_0xe2e4c['key']&&_0xe2e4c[_0x55938f(0x134)]){const _0x347a67={};for(const _0x23c145 of _0x44e01e['rules']||[]){if(_0x23c145[_0x55938f(0x108)]==='min'&&_0x23c145['args'])_0x347a67[_0x55938f(0x13b)]=_0x23c145[_0x55938f(0x14b)]['limit'];else _0x23c145[_0x55938f(0x108)]==='max'&&(_0x347a67[_0x55938f(0x161)]=_0x23c145['args']['limit']);}_0xe2e4c['rules']=_0x347a67;}_0xe2e4c['key']&&_0xe2e4c[_0x55938f(0x135)]&&_0x134845[_0x55938f(0x150)](_0xe2e4c);}return _0x134845;}function a8_0x5c67(_0x1a724e,_0x4b6018){const _0x5a50d6=a8_0x5f45();return a8_0x5c67=function(_0x573091,_0x35ab8a){_0x573091=_0x573091-0xfe;let _0x5f4528=_0x5a50d6[_0x573091];return _0x5f4528;},a8_0x5c67(_0x1a724e,_0x4b6018);}function convertSchemaType(_0x16c1f9){const _0x4363cc=a8_0x4d2d88;switch(_0x16c1f9){case _0x4363cc(0x139):return'object';case _0x4363cc(0x15e):return _0x4363cc(0x11a);case _0x4363cc(0x101):return _0x4363cc(0x119);case _0x4363cc(0x132):return'string';case _0x4363cc(0x137):return _0x4363cc(0x10a);default:return _0x4363cc(0x147);}}function convertTypeToString(_0x5cd68e){const _0x525907=a8_0x4d2d88;switch(_0x5cd68e){case core_1[_0x525907(0x14c)][_0x525907(0x163)]:return _0x525907(0x106);case core_1['RouteParamTypes'][_0x525907(0x129)]:return'query';case core_1[_0x525907(0x14c)][_0x525907(0x123)]:return _0x525907(0x126);case core_1[_0x525907(0x14c)][_0x525907(0x10c)]:return'body';case core_1[_0x525907(0x14c)][_0x525907(0x107)]:case core_1['RouteParamTypes'][_0x525907(0x15c)]:case core_1[_0x525907(0x14c)][_0x525907(0x158)]:return'file';default:return _0x525907(0x106);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x5f3b8e=a9_0x42f6;(function(_0x4bb91f,_0x312b10){var _0x5334b6=a9_0x42f6,_0x52a50e=_0x4bb91f();while(!![]){try{var _0x2749e1=-parseInt(_0x5334b6(0xd5))/0x1+-parseInt(_0x5334b6(0xab))/0x2+-parseInt(_0x5334b6(0xb9))/0x3*(parseInt(_0x5334b6(0xca))/0x4)+-parseInt(_0x5334b6(0x96))/0x5+parseInt(_0x5334b6(0xcd))/0x6*(-parseInt(_0x5334b6(0xcf))/0x7)+-parseInt(_0x5334b6(0x9c))/0x8*(parseInt(_0x5334b6(0xa3))/0x9)+parseInt(_0x5334b6(0xc2))/0xa;if(_0x2749e1===_0x312b10)break;else _0x52a50e['push'](_0x52a50e['shift']());}catch(_0x1015e1){_0x52a50e['push'](_0x52a50e['shift']());}}}(a9_0x1ff9,0x40901));var a9_0x9bf306=(function(){var _0x5524de=!![];return function(_0x1507f0,_0x6cfe24){var _0x50d403=_0x5524de?function(){var _0x3c5ea2=a9_0x42f6;if(_0x6cfe24){var _0x434562=_0x6cfe24[_0x3c5ea2(0x98)](_0x1507f0,arguments);return _0x6cfe24=null,_0x434562;}}:function(){};return _0x5524de=![],_0x50d403;};}()),a9_0xc11378=a9_0x9bf306(this,function(){var _0x4d8a06=a9_0x42f6;return a9_0xc11378[_0x4d8a06(0xc5)]()['search'](_0x4d8a06(0xc9))[_0x4d8a06(0xc5)]()[_0x4d8a06(0xbd)](a9_0xc11378)[_0x4d8a06(0xd4)](_0x4d8a06(0xc9));});a9_0xc11378();'use strict';var __createBinding=this&&this[a9_0x5f3b8e(0xa1)]||(Object[a9_0x5f3b8e(0xc0)]?function(_0x45c1aa,_0x4988d1,_0x2a3df0,_0x8036fa){var _0x1b953b=a9_0x5f3b8e;if(_0x8036fa===undefined)_0x8036fa=_0x2a3df0;var _0x293103=Object[_0x1b953b(0xc4)](_0x4988d1,_0x2a3df0);(!_0x293103||(_0x1b953b(0xce)in _0x293103?!_0x4988d1[_0x1b953b(0xbb)]:_0x293103[_0x1b953b(0xa7)]||_0x293103[_0x1b953b(0x9f)]))&&(_0x293103={'enumerable':!![],'get':function(){return _0x4988d1[_0x2a3df0];}}),Object[_0x1b953b(0xd7)](_0x45c1aa,_0x8036fa,_0x293103);}:function(_0x3bf0dd,_0x4b912d,_0x3f8b1b,_0x587f3f){if(_0x587f3f===undefined)_0x587f3f=_0x3f8b1b;_0x3bf0dd[_0x587f3f]=_0x4b912d[_0x3f8b1b];}),__exportStar=this&&this[a9_0x5f3b8e(0xd3)]||function(_0x5be564,_0x20aea2){var _0x20bffc=a9_0x5f3b8e;for(var _0x13119c in _0x5be564)if(_0x13119c!==_0x20bffc(0xad)&&!Object[_0x20bffc(0xcb)][_0x20bffc(0xa6)][_0x20bffc(0xa2)](_0x20aea2,_0x13119c))__createBinding(_0x20aea2,_0x5be564,_0x13119c);};Object['defineProperty'](exports,a9_0x5f3b8e(0xbb),{'value':!![]}),exports[a9_0x5f3b8e(0xc8)]=exports[a9_0x5f3b8e(0xcc)]=exports[a9_0x5f3b8e(0xa8)]=exports['Scope']=exports[a9_0x5f3b8e(0xa9)]=exports[a9_0x5f3b8e(0xbe)]=exports[a9_0x5f3b8e(0xac)]=exports[a9_0x5f3b8e(0x9b)]=exports[a9_0x5f3b8e(0xa4)]=exports[a9_0x5f3b8e(0xa5)]=exports[a9_0x5f3b8e(0x9a)]=exports[a9_0x5f3b8e(0xb6)]=exports['Param']=exports[a9_0x5f3b8e(0xb5)]=exports[a9_0x5f3b8e(0xc6)]=exports[a9_0x5f3b8e(0xb0)]=exports[a9_0x5f3b8e(0xaa)]=exports[a9_0x5f3b8e(0x95)]=exports[a9_0x5f3b8e(0xbc)]=exports[a9_0x5f3b8e(0x9e)]=exports[a9_0x5f3b8e(0xc1)]=exports[a9_0x5f3b8e(0xb8)]=exports[a9_0x5f3b8e(0xb1)]=exports[a9_0x5f3b8e(0x97)]=exports[a9_0x5f3b8e(0xba)]=exports['getRoutes']=exports[a9_0x5f3b8e(0xbf)]=exports[a9_0x5f3b8e(0xda)]=exports['Apitest']=exports[a9_0x5f3b8e(0xb7)]=void 0x0;const getAppsConfig_1=require(a9_0x5f3b8e(0xb3));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xc8),{'enumerable':!![],'get':function(){var _0x530f79=a9_0x5f3b8e;return getAppsConfig_1[_0x530f79(0xc8)];}}),__exportStar(require('./types/common'),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a9_0x5f3b8e(0xd8));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xb7),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x5f3b8e(0xd9));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xc3),{'enumerable':!![],'get':function(){var _0x14afff=a9_0x5f3b8e;return ActionApitest_1[_0x14afff(0xc3)];}});var Intercept_1=require(a9_0x5f3b8e(0xc7));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xda),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xbf),{'enumerable':!![],'get':function(){var _0x176e94=a9_0x5f3b8e;return Intercept_1[_0x176e94(0xbf)];}});var getRoutes_1=require(a9_0x5f3b8e(0xd1));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0x99),{'enumerable':!![],'get':function(){var _0x3d175c=a9_0x5f3b8e;return getRoutes_1[_0x3d175c(0x99)];}});var ApiError_1=require(a9_0x5f3b8e(0xd0));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xba),{'enumerable':!![],'get':function(){var _0x1822b9=a9_0x5f3b8e;return ApiError_1[_0x1822b9(0xba)];}});var cache_1=require(a9_0x5f3b8e(0xaf));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0x97),{'enumerable':!![],'get':function(){var _0x691a9c=a9_0x5f3b8e;return cache_1[_0x691a9c(0x97)];}});var event_1=require(a9_0x5f3b8e(0xa0));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xb1),{'enumerable':!![],'get':function(){var _0x4f53ea=a9_0x5f3b8e;return event_1[_0x4f53ea(0xb1)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xb8),{'enumerable':!![],'get':function(){var _0x52f367=a9_0x5f3b8e;return ApiService_1[_0x52f367(0xb8)];}});var ExcelService_1=require(a9_0x5f3b8e(0xae));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xc1),{'enumerable':!![],'get':function(){var _0x2c9a98=a9_0x5f3b8e;return ExcelService_1[_0x2c9a98(0xc1)];}});function a9_0x1ff9(){var _0x52d591=['create','ExcelService','18870160BneMPo','Apitest','getOwnPropertyDescriptor','toString','Fields','./decorator/Intercept','getAppsConfig','(((.+)+)+)+$','8odruEF','prototype','ScopeEnum','669876BndlBz','get','21wJdjiA','./exception/ApiError','./helper/getRoutes','@anncic-api/validator','__exportStar','search','106031IQXWmG','Param','defineProperty','./decorator/Action','./decorator/ActionApitest','Intercept','Configuration','366715ZRTgsv','CacheService','apply','getRoutes','Headers','Config','4074360zJqdbX','Scope','ValidatorError','configurable','@anncic-api/event','__createBinding','call','9tiYffy','App','Init','hasOwnProperty','writable','Singleton','Inject','File','951884BRmsRK','Logger','default','./service/ExcelService','@anncic-api/cache','Files','EventService','@midwayjs/core','./helper/getAppsConfig','CustomConfiguration','Body','Query','Action','ApiService','184527SHcUsr','ApiError','__esModule','ValidatorService','constructor','Provide','IIntercept'];a9_0x1ff9=function(){return _0x52d591;};return a9_0x1ff9();}var validator_1=require(a9_0x5f3b8e(0xd2));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0x9e),{'enumerable':!![],'get':function(){var _0x5a6854=a9_0x5f3b8e;return validator_1[_0x5a6854(0x9e)];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xbc),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a9_0x5f3b8e(0xd7)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x5c5709=a9_0x5f3b8e;return configuration_1[_0x5c5709(0xb4)];}});var core_1=require(a9_0x5f3b8e(0xb2));Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xaa),{'enumerable':!![],'get':function(){var _0x46a65b=a9_0x5f3b8e;return core_1[_0x46a65b(0xaa)];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xb0),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xc6),{'enumerable':!![],'get':function(){var _0x3ddb5a=a9_0x5f3b8e;return core_1[_0x3ddb5a(0xc6)];}}),Object[a9_0x5f3b8e(0xd7)](exports,'Body',{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object['defineProperty'](exports,a9_0x5f3b8e(0xd6),{'enumerable':!![],'get':function(){var _0x382b05=a9_0x5f3b8e;return core_1[_0x382b05(0xd6)];}}),Object[a9_0x5f3b8e(0xd7)](exports,'Query',{'enumerable':!![],'get':function(){var _0x5f100d=a9_0x5f3b8e;return core_1[_0x5f100d(0xb6)];}}),Object[a9_0x5f3b8e(0xd7)](exports,'Headers',{'enumerable':!![],'get':function(){var _0x4822fc=a9_0x5f3b8e;return core_1[_0x4822fc(0x9a)];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xa5),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require('@midwayjs/core');function a9_0x42f6(_0x5c784e,_0x535d72){var _0x2f50a8=a9_0x1ff9();return a9_0x42f6=function(_0xc11378,_0x9bf306){_0xc11378=_0xc11378-0x95;var _0x1ff91f=_0x2f50a8[_0xc11378];return _0x1ff91f;},a9_0x42f6(_0x5c784e,_0x535d72);}Object[a9_0x5f3b8e(0xd7)](exports,'App',{'enumerable':!![],'get':function(){var _0x5e0e47=a9_0x5f3b8e;return core_2[_0x5e0e47(0xa4)];}}),Object[a9_0x5f3b8e(0xd7)](exports,'Config',{'enumerable':!![],'get':function(){var _0x56c43e=a9_0x5f3b8e;return core_2[_0x56c43e(0x9b)];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xac),{'enumerable':!![],'get':function(){var _0x19b5f7=a9_0x5f3b8e;return core_2[_0x19b5f7(0xac)];}}),Object[a9_0x5f3b8e(0xd7)](exports,'Provide',{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a9_0x5f3b8e(0xa9),{'enumerable':!![],'get':function(){var _0xe08b17=a9_0x5f3b8e;return core_2[_0xe08b17(0xa9)];}}),Object['defineProperty'](exports,a9_0x5f3b8e(0x9d),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xa8),{'enumerable':!![],'get':function(){var _0x449de6=a9_0x5f3b8e;return core_2[_0x449de6(0xa8)];}}),Object[a9_0x5f3b8e(0xd7)](exports,a9_0x5f3b8e(0xcc),{'enumerable':!![],'get':function(){var _0x5c1908=a9_0x5f3b8e;return core_2[_0x5c1908(0xcc)];}}),global[a9_0x5f3b8e(0xc8)]=getAppsConfig_1[a9_0x5f3b8e(0xc8)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10_0x12b3(_0x479839,_0x352f70){var _0x3e893a=a10_0x2f2d();return a10_0x12b3=function(_0x141af7,_0x12bc8f){_0x141af7=_0x141af7-0x14f;var _0x2f2dbe=_0x3e893a[_0x141af7];return _0x2f2dbe;},a10_0x12b3(_0x479839,_0x352f70);}var a10_0x25a285=a10_0x12b3;(function(_0x3d4bb9,_0x1ecfa6){var _0x22005e=a10_0x12b3,_0x2ac998=_0x3d4bb9();while(!![]){try{var _0x5ba8f2=parseInt(_0x22005e(0x189))/0x1+-parseInt(_0x22005e(0x191))/0x2*(parseInt(_0x22005e(0x192))/0x3)+parseInt(_0x22005e(0x18b))/0x4*(-parseInt(_0x22005e(0x181))/0x5)+parseInt(_0x22005e(0x16b))/0x6*(-parseInt(_0x22005e(0x17d))/0x7)+-parseInt(_0x22005e(0x154))/0x8+-parseInt(_0x22005e(0x177))/0x9+parseInt(_0x22005e(0x18d))/0xa;if(_0x5ba8f2===_0x1ecfa6)break;else _0x2ac998['push'](_0x2ac998['shift']());}catch(_0x15f728){_0x2ac998['push'](_0x2ac998['shift']());}}}(a10_0x2f2d,0x22a0f));var a10_0x12bc8f=(function(){var _0x5f8560=!![];return function(_0x120264,_0x4c804d){var _0x3f2a46=_0x5f8560?function(){var _0x4c6c03=a10_0x12b3;if(_0x4c804d){var _0xd20fe6=_0x4c804d[_0x4c6c03(0x17a)](_0x120264,arguments);return _0x4c804d=null,_0xd20fe6;}}:function(){};return _0x5f8560=![],_0x3f2a46;};}()),a10_0x141af7=a10_0x12bc8f(this,function(){var _0x180884=a10_0x12b3;return a10_0x141af7[_0x180884(0x180)]()['search'](_0x180884(0x151))[_0x180884(0x180)]()[_0x180884(0x173)](a10_0x141af7)[_0x180884(0x16a)](_0x180884(0x151));});function a10_0x2f2d(){var _0x3ec7cd=['entries','Scope','checkcode','logintime','../exception/ApiError','constructor','defineProperty','ScopeEnum','device','1393119nszTos','Singleton','length','apply','timeout','Config','7ATEYtr','token','metadata','toString','1895srCLHr','ApiService','getOwnPropertyDescriptor','HEADERS_DEVICE','logintimeout','abs','@midwayjs/core','checksign','240655ZvgIth','验证失败','2636NvSeVI','TIMEOUT_LOGINTIME','6051350CVDgJJ','map','Provide','ApiError','202466tCNrYG','3fMoUQb','function','getsign','(((.+)+)+)+$','object','padEnd','1294440byOqdD','now','toLowerCase','HEADERS_SIGNATURE','prototype','请求超时,请重试或改善网络环境','push','design:type','undefined','secret=','fromEntries','requesttime','signature','__metadata','substring','secret','config','MD5','join','anncicapi','__esModule','password','search','218166zpJmVh','sort','devices'];a10_0x2f2d=function(){return _0x3ec7cd;};return a10_0x2f2d();}a10_0x141af7();'use strict';var __decorate=this&&this['__decorate']||function(_0x4f0a8b,_0x3d96fd,_0x569a24,_0x2bf990){var _0x592369=a10_0x12b3,_0x5c695c=arguments[_0x592369(0x179)],_0x1a0431=_0x5c695c<0x3?_0x3d96fd:_0x2bf990===null?_0x2bf990=Object[_0x592369(0x183)](_0x3d96fd,_0x569a24):_0x2bf990,_0xd76f06;if(typeof Reflect===_0x592369(0x152)&&typeof Reflect['decorate']===_0x592369(0x14f))_0x1a0431=Reflect['decorate'](_0x4f0a8b,_0x3d96fd,_0x569a24,_0x2bf990);else{for(var _0x29aee8=_0x4f0a8b[_0x592369(0x179)]-0x1;_0x29aee8>=0x0;_0x29aee8--)if(_0xd76f06=_0x4f0a8b[_0x29aee8])_0x1a0431=(_0x5c695c<0x3?_0xd76f06(_0x1a0431):_0x5c695c>0x3?_0xd76f06(_0x3d96fd,_0x569a24,_0x1a0431):_0xd76f06(_0x3d96fd,_0x569a24))||_0x1a0431;}return _0x5c695c>0x3&&_0x1a0431&&Object[_0x592369(0x174)](_0x3d96fd,_0x569a24,_0x1a0431),_0x1a0431;},__metadata=this&&this[a10_0x25a285(0x161)]||function(_0x5c4ec4,_0x5b420d){var _0x5e9366=a10_0x25a285;if(typeof Reflect==='object'&&typeof Reflect[_0x5e9366(0x17f)]===_0x5e9366(0x14f))return Reflect[_0x5e9366(0x17f)](_0x5c4ec4,_0x5b420d);};Object['defineProperty'](exports,a10_0x25a285(0x168),{'value':!![]}),exports[a10_0x25a285(0x182)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0x25a285(0x187)),ApiError_1=require(a10_0x25a285(0x172));let ApiService=class ApiService{[a10_0x25a285(0x169)](_0x51e20e){var _0xe16f6=a10_0x25a285,_0x1065fd;return _0x51e20e?(0x0,crypto_js_1[_0xe16f6(0x165)])(''+_0x51e20e+(0x0,crypto_js_1[_0xe16f6(0x165)])((0x0,crypto_js_1[_0xe16f6(0x165)])(''+_0x51e20e)[_0xe16f6(0x180)]()+(''+((_0x1065fd=this[_0xe16f6(0x164)])===null||_0x1065fd===void 0x0?void 0x0:_0x1065fd[_0xe16f6(0x169)])))[_0xe16f6(0x180)]())[_0xe16f6(0x180)]():'';}['getcheck'](_0x3b3d9b,_0x685b9,_0x2d47c7=Date[a10_0x25a285(0x155)]()){return{'Token':_0x3b3d9b,'Logintime':_0x2d47c7,'Checkcode':this['checkcode'](_0x3b3d9b,_0x685b9,_0x2d47c7)};}[a10_0x25a285(0x150)](_0x4a5cd4={}){var _0x5cc15e=a10_0x25a285,_0x7ac555,_0x4bba3a;const _0x7a675a=[],_0x5221d5=Object[_0x5cc15e(0x15e)](Object[_0x5cc15e(0x16e)](_0x4a5cd4)[_0x5cc15e(0x18e)](_0x43c3aa=>[_0x43c3aa[0x0][_0x5cc15e(0x156)](),_0x43c3aa[0x1]]));for(let _0x123a4c of[_0x5cc15e(0x176),_0x5cc15e(0x15f),'token',_0x5cc15e(0x171),_0x5cc15e(0x170)]){if(typeof _0x5221d5[_0x123a4c]==_0x5cc15e(0x15c))throw new AnnError(ApiError_1[_0x5cc15e(0x190)]['HEADERS_LACK'],{'message':_0x5cc15e(0x18a)});_0x7a675a[_0x5cc15e(0x15a)](_0x123a4c+'='+_0x5221d5[_0x123a4c]);}_0x5221d5[_0x5cc15e(0x15f)]&&((_0x7ac555=_0x5221d5['requesttime'])===null||_0x7ac555===void 0x0?void 0x0:_0x7ac555[_0x5cc15e(0x179)])==0xa&&(_0x5221d5[_0x5cc15e(0x15f)]=_0x5221d5[_0x5cc15e(0x15f)]*0x3e8);if(this[_0x5cc15e(0x164)][_0x5cc15e(0x17b)]&&parseInt((''+Date[_0x5cc15e(0x155)]())[_0x5cc15e(0x162)](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x5cc15e(0x186)](_0x5221d5['requesttime']))[_0x5cc15e(0x162)](0x0,0xd)[_0x5cc15e(0x153)](0xd,'0'))>parseInt(this[_0x5cc15e(0x164)][_0x5cc15e(0x17b)]))throw new AnnError(ApiError_1['ApiError']['TIMEOUT'],{'message':_0x5cc15e(0x159),'requesttime':_0x5221d5[_0x5cc15e(0x15f)],'timestamp':Date['now']()});if((((_0x4bba3a=this[_0x5cc15e(0x164)][_0x5cc15e(0x16d)][_0x5221d5['device']])===null||_0x4bba3a===void 0x0?void 0x0:_0x4bba3a[_0x5cc15e(0x185)])||0x0)>0x0&&Date[_0x5cc15e(0x155)]()-Math[_0x5cc15e(0x186)](_0x5221d5[_0x5cc15e(0x171)])>this[_0x5cc15e(0x164)][_0x5cc15e(0x16d)][_0x5221d5['device']][_0x5cc15e(0x185)])throw new AnnError(ApiError_1[_0x5cc15e(0x190)][_0x5cc15e(0x18c)]);if(!this['config']['devices'][_0x5221d5['device']]||!this[_0x5cc15e(0x164)][_0x5cc15e(0x16d)][_0x5221d5['device']][_0x5cc15e(0x163)]||!this[_0x5cc15e(0x164)][_0x5cc15e(0x16d)][_0x5221d5[_0x5cc15e(0x176)]][_0x5cc15e(0x170)])throw new AnnError(ApiError_1['ApiError'][_0x5cc15e(0x184)]);if(_0x5221d5[_0x5cc15e(0x17e)]&&_0x5221d5[_0x5cc15e(0x170)]!=this[_0x5cc15e(0x170)](_0x5221d5[_0x5cc15e(0x17e)],_0x5221d5[_0x5cc15e(0x176)],_0x5221d5[_0x5cc15e(0x171)]))throw new AnnError(ApiError_1[_0x5cc15e(0x190)]['HEADERS_CHECKCODE']);return _0x7a675a[_0x5cc15e(0x15a)](_0x5cc15e(0x15d)+this[_0x5cc15e(0x164)][_0x5cc15e(0x16d)][_0x5221d5[_0x5cc15e(0x176)]]['secret']),(0x0,crypto_js_1[_0x5cc15e(0x165)])(_0x7a675a[_0x5cc15e(0x16c)]()[_0x5cc15e(0x166)](''))[_0x5cc15e(0x180)]();}[a10_0x25a285(0x170)](_0x188c44,_0x45255f,_0x518619=Date['now']()){var _0x4c8532=a10_0x25a285,_0x1d97b1,_0x682dad,_0x1f4bc7;if(!((_0x1d97b1=this[_0x4c8532(0x164)])===null||_0x1d97b1===void 0x0?void 0x0:_0x1d97b1[_0x4c8532(0x16d)][_0x45255f])||!((_0x1f4bc7=(_0x682dad=this[_0x4c8532(0x164)])===null||_0x682dad===void 0x0?void 0x0:_0x682dad['devices'][_0x45255f])===null||_0x1f4bc7===void 0x0?void 0x0:_0x1f4bc7[_0x4c8532(0x170)]))throw new AnnError(ApiError_1[_0x4c8532(0x190)]['HEADERS_DEVICE']);return(0x0,crypto_js_1['MD5'])(''+_0x188c44+(0x0,crypto_js_1[_0x4c8532(0x165)])(''+_0x518619+(''+this[_0x4c8532(0x164)][_0x4c8532(0x16d)][_0x45255f][_0x4c8532(0x170)]))[_0x4c8532(0x180)]())[_0x4c8532(0x180)]();}[a10_0x25a285(0x188)](_0x39c8cc={}){var _0x2b7622=a10_0x25a285;const _0x17924a=Object[_0x2b7622(0x15e)](Object[_0x2b7622(0x16e)](_0x39c8cc)['map'](_0x150cd7=>[_0x150cd7[0x0][_0x2b7622(0x156)](),_0x150cd7[0x1]]));if(!(_0x17924a===null||_0x17924a===void 0x0?void 0x0:_0x17924a[_0x2b7622(0x160)]))throw new AnnError(ApiError_1[_0x2b7622(0x190)]['HEADERS_LACK'],{'message':_0x2b7622(0x18a)});if((_0x17924a===null||_0x17924a===void 0x0?void 0x0:_0x17924a[_0x2b7622(0x160)])!=this[_0x2b7622(0x150)](_0x17924a))throw new AnnError(ApiError_1['ApiError'][_0x2b7622(0x157)],{'message':_0x2b7622(0x18a)});return!![];}};exports[a10_0x25a285(0x182)]=ApiService,__decorate([(0x0,core_1[a10_0x25a285(0x17c)])(a10_0x25a285(0x167)),__metadata(a10_0x25a285(0x15b),Object)],ApiService[a10_0x25a285(0x158)],a10_0x25a285(0x164),void 0x0),exports['ApiService']=ApiService=__decorate([(0x0,core_1[a10_0x25a285(0x18f)])(),(0x0,core_1[a10_0x25a285(0x16f)])(core_1[a10_0x25a285(0x175)][a10_0x25a285(0x178)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x4552e5=a11_0x2a7e;(function(_0x11df63,_0x520c5c){const _0x1d5dc2=a11_0x2a7e,_0x53976d=_0x11df63();while(!![]){try{const _0x467562=parseInt(_0x1d5dc2(0xe6))/0x1+parseInt(_0x1d5dc2(0xe9))/0x2+parseInt(_0x1d5dc2(0xe7))/0x3*(parseInt(_0x1d5dc2(0xf0))/0x4)+-parseInt(_0x1d5dc2(0xb5))/0x5*(-parseInt(_0x1d5dc2(0xb4))/0x6)+-parseInt(_0x1d5dc2(0xf3))/0x7+-parseInt(_0x1d5dc2(0xc9))/0x8+parseInt(_0x1d5dc2(0xfa))/0x9*(-parseInt(_0x1d5dc2(0xcb))/0xa);if(_0x467562===_0x520c5c)break;else _0x53976d['push'](_0x53976d['shift']());}catch(_0x4e7521){_0x53976d['push'](_0x53976d['shift']());}}}(a11_0x5502,0xe8437));const a11_0xd2a819=(function(){let _0x37bb8f=!![];return function(_0x2271ed,_0x50f12e){const _0x4c0eb1=_0x37bb8f?function(){const _0x73f335=a11_0x2a7e;if(_0x50f12e){const _0x556f47=_0x50f12e[_0x73f335(0xdd)](_0x2271ed,arguments);return _0x50f12e=null,_0x556f47;}}:function(){};return _0x37bb8f=![],_0x4c0eb1;};}()),a11_0x5d292d=a11_0xd2a819(this,function(){const _0x4c4390=a11_0x2a7e;return a11_0x5d292d[_0x4c4390(0xb3)]()[_0x4c4390(0xdf)](_0x4c4390(0xe0))[_0x4c4390(0xb3)]()['constructor'](a11_0x5d292d)[_0x4c4390(0xdf)](_0x4c4390(0xe0));});a11_0x5d292d();'use strict';var __decorate=this&&this['__decorate']||function(_0x3f1718,_0x1e2fd0,_0xa1a174,_0x119c3f){const _0x2a80b1=a11_0x2a7e;var _0x3969af=arguments['length'],_0x547a78=_0x3969af<0x3?_0x1e2fd0:_0x119c3f===null?_0x119c3f=Object[_0x2a80b1(0xdc)](_0x1e2fd0,_0xa1a174):_0x119c3f,_0x4c458e;if(typeof Reflect===_0x2a80b1(0xb1)&&typeof Reflect[_0x2a80b1(0xe8)]===_0x2a80b1(0xe1))_0x547a78=Reflect[_0x2a80b1(0xe8)](_0x3f1718,_0x1e2fd0,_0xa1a174,_0x119c3f);else{for(var _0x4c7fa4=_0x3f1718[_0x2a80b1(0xc6)]-0x1;_0x4c7fa4>=0x0;_0x4c7fa4--)if(_0x4c458e=_0x3f1718[_0x4c7fa4])_0x547a78=(_0x3969af<0x3?_0x4c458e(_0x547a78):_0x3969af>0x3?_0x4c458e(_0x1e2fd0,_0xa1a174,_0x547a78):_0x4c458e(_0x1e2fd0,_0xa1a174))||_0x547a78;}return _0x3969af>0x3&&_0x547a78&&Object['defineProperty'](_0x1e2fd0,_0xa1a174,_0x547a78),_0x547a78;},__metadata=this&&this[a11_0x4552e5(0xab)]||function(_0x2d31ae,_0x18f0a3){const _0x3af343=a11_0x4552e5;if(typeof Reflect===_0x3af343(0xb1)&&typeof Reflect['metadata']===_0x3af343(0xe1))return Reflect['metadata'](_0x2d31ae,_0x18f0a3);},__param=this&&this[a11_0x4552e5(0xd3)]||function(_0x431e6d,_0x25283d){return function(_0x5c17fc,_0x44a091){_0x25283d(_0x5c17fc,_0x44a091,_0x431e6d);};};Object[a11_0x4552e5(0xe4)](exports,a11_0x4552e5(0xda),{'value':!![]}),exports[a11_0x4552e5(0xa9)]=exports[a11_0x4552e5(0xd4)]=void 0x0;const path_1=require(a11_0x4552e5(0xf6)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x4552e5(0xf7)),core_3=require(a11_0x4552e5(0xf7)),getRoutes_1=require(a11_0x4552e5(0xcf));let ApitestService=class ApitestService{async['apidoc'](_0x31a856){const _0x1aa5ac=a11_0x4552e5,_0x12130a=(0x0,getRoutes_1[_0x1aa5ac(0xca)])(_0x31a856),_0x8d9301=[];for(let _0x5c748d in _0x12130a){for(let _0x3d872c in _0x12130a[_0x5c748d][_0x1aa5ac(0xb7)]){let _0x60faf5=_0x12130a[_0x5c748d][_0x1aa5ac(0xb7)][_0x3d872c],_0x385e16=[];for(let _0x347580 in _0x60faf5[_0x1aa5ac(0xe5)]){_0x385e16[_0x1aa5ac(0xed)](_0x60faf5[_0x1aa5ac(0xe5)][_0x347580]);}_0x8d9301[_0x1aa5ac(0xed)]({'title':_0x12130a[_0x5c748d][_0x1aa5ac(0xbc)]+':'+_0x60faf5[_0x1aa5ac(0xbc)],'prefix':_0x12130a[_0x5c748d][_0x1aa5ac(0xcd)],'router':_0x60faf5[_0x1aa5ac(0xdb)],'method':_0x60faf5[_0x1aa5ac(0xd7)],'describe':_0x60faf5['description']||'','filepath':_0x12130a[_0x5c748d][_0x1aa5ac(0xc7)]||'','request':_0x385e16});}}const _0x48dd2f=(0x0,path_1[_0x1aa5ac(0xb6)])(__dirname,_0x1aa5ac(0xb8));return(0x0,fs_1[_0x1aa5ac(0xae)])(_0x48dd2f,{'encoding':'utf-8'})[_0x1aa5ac(0xb0)](/__res__/g,'/apiteststatic/')[_0x1aa5ac(0xb0)](_0x1aa5ac(0xe2),JSON[_0x1aa5ac(0xaf)](_0x8d9301))[_0x1aa5ac(0xb0)](_0x1aa5ac(0xf9),JSON[_0x1aa5ac(0xaf)](this[_0x1aa5ac(0xbe)][_0x1aa5ac(0xef)]));}};exports[a11_0x4552e5(0xd4)]=ApitestService,__decorate([(0x0,core_3['Config'])(a11_0x4552e5(0xf4)),__metadata(a11_0x4552e5(0xf2),Object)],ApitestService[a11_0x4552e5(0xea)],'config',void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2['Provide'])('apitest'),(0x0,core_3[a11_0x4552e5(0xd0)])(core_3['ScopeEnum'][a11_0x4552e5(0xc4)])],ApitestService);function a11_0x2a7e(_0x9689a0,_0x80325d){const _0x56ff6c=a11_0x5502();return a11_0x2a7e=function(_0x5d292d,_0xd2a819){_0x5d292d=_0x5d292d-0xa9;let _0x55025f=_0x56ff6c[_0x5d292d];return _0x55025f;},a11_0x2a7e(_0x9689a0,_0x80325d);}let ApitestStaticController=class ApitestStaticController{async[a11_0x4552e5(0xaa)](){const _0x41fb95=a11_0x4552e5;if(this['apitest']){const _0x19a766={'module':![]};return this['Environment'][_0x41fb95(0xc0)]()&&(_0x19a766[_0x41fb95(0xc7)]=!![]),await this[_0x41fb95(0xd4)][_0x41fb95(0xfb)](_0x19a766);}return'';}async['apitestmodule'](_0x381bf8){const _0x2b0b93=a11_0x4552e5;if(this[_0x2b0b93(0xd8)]){const _0x1d61a4={'module':_0x381bf8};return this['Environment'][_0x2b0b93(0xc0)]()&&(_0x1d61a4[_0x2b0b93(0xc7)]=!![]),await this[_0x2b0b93(0xd4)][_0x2b0b93(0xfb)](_0x1d61a4);}return'';}async['apiteststatic'](){const _0x43f885=a11_0x4552e5;if((0x0,path_1[_0x43f885(0xd6)])(this[_0x43f885(0xf5)][_0x43f885(0xe5)][_0x43f885(0xec)])){var _0x1ea85b=(0x0,path_1[_0x43f885(0xb6)])(__dirname,_0x43f885(0xcc)+this['ctx'][_0x43f885(0xe5)][_0x43f885(0xec)][_0x43f885(0xb0)]('/apiteststatic/','/'));if(_0x1ea85b[_0x43f885(0xbb)](_0x1ea85b[_0x43f885(0xc6)]-0xb)!=_0x43f885(0xac)){this['ctx']['set']('cache-control','public,\x20max-age=604800');if((0x0,path_1[_0x43f885(0xd6)])(this['ctx']['request']['url'])=='.js')this['ctx'][_0x43f885(0xb9)]('content-type',_0x43f885(0xee));else(0x0,path_1[_0x43f885(0xd6)])(this['ctx'][_0x43f885(0xe5)][_0x43f885(0xec)])==_0x43f885(0xde)&&this[_0x43f885(0xf5)][_0x43f885(0xb9)](_0x43f885(0xd1),_0x43f885(0xba));return(0x0,fs_1['existsSync'])(_0x1ea85b)&&(0x0,fs_1[_0x43f885(0xae)])(_0x1ea85b,{'encoding':_0x43f885(0xb2)});}}return'';}};exports[a11_0x4552e5(0xa9)]=ApitestStaticController,__decorate([(0x0,core_3[a11_0x4552e5(0xf8)])(),__metadata(a11_0x4552e5(0xf2),Object)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xf5),void 0x0),__decorate([(0x0,core_3[a11_0x4552e5(0xf8)])(),__metadata('design:type',core_1[a11_0x4552e5(0xc8)])],ApitestStaticController['prototype'],a11_0x4552e5(0xeb),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xd4),void 0x0),__decorate([(0x0,core_3[a11_0x4552e5(0xc5)])(a11_0x4552e5(0xd8)),__metadata(a11_0x4552e5(0xf2),Boolean)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xd8),void 0x0),__decorate([(0x0,core_3[a11_0x4552e5(0xc5)])(a11_0x4552e5(0xf4)),__metadata(a11_0x4552e5(0xf2),Object)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xbe),void 0x0),__decorate([(0x0,core_2[a11_0x4552e5(0xc1)])(a11_0x4552e5(0xd2)),__metadata(a11_0x4552e5(0xf2),Function),__metadata(a11_0x4552e5(0xbf),[]),__metadata(a11_0x4552e5(0xad),Promise)],ApitestStaticController[a11_0x4552e5(0xea)],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x4552e5(0xc1)])(a11_0x4552e5(0xc2)),__param(0x0,(0x0,core_2[a11_0x4552e5(0xbd)])(a11_0x4552e5(0xd5))),__metadata(a11_0x4552e5(0xf2),Function),__metadata(a11_0x4552e5(0xbf),[String]),__metadata(a11_0x4552e5(0xad),Promise)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xce),null),__decorate([(0x0,core_2[a11_0x4552e5(0xc1)])(a11_0x4552e5(0xc3)),__metadata(a11_0x4552e5(0xf2),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x4552e5(0xad),Promise)],ApitestStaticController[a11_0x4552e5(0xea)],a11_0x4552e5(0xe3),null),exports[a11_0x4552e5(0xa9)]=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a11_0x4552e5(0xd0)])(core_3[a11_0x4552e5(0xd9)][a11_0x4552e5(0xf1)])],ApitestStaticController);function a11_0x5502(){const _0x4402a2=['__esModule','route','getOwnPropertyDescriptor','apply','.css','search','(((.+)+)+)+$','function','__apiList__','apiteststatic','defineProperty','request','1157262tkpKWv','78wEQimZ','decorate','507956qBRvck','prototype','Environment','url','push','application/javascript;\x20charset=utf-8','devices','212060LXrneU','Request','design:type','1096592ZytElU','anncicapi','ctx','path','@midwayjs/core','Inject','__devices__','45lVYMqw','apidoc','ApitestStaticController','apitesthtml','__metadata','/index.html','design:returntype','readFileSync','stringify','replace','object','utf-8','toString','73722ddGmrd','70sQZGiT','join','routes','../../public/index.html','set','text/css;\x20charset=utf-8','substring','summary','Param','config','design:paramtypes','isDevelopmentEnvironment','Get','/apitest-:module','/apiteststatic/*','Singleton','Config','length','filepath','MidwayEnvironmentService','4644848blfyny','getRoutes','2546070nXPErU','../../public/','prefix','apitestmodule','../helper/getRoutes','Scope','content-type','/apitest','__param','ApitestService','module','extname','method','apitest','ScopeEnum'];a11_0x5502=function(){return _0x4402a2;};return a11_0x5502();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0xded8f7=a12_0x22de;(function(_0x846b20,_0x428d45){const _0xd9b070=a12_0x22de,_0x42d4e2=_0x846b20();while(!![]){try{const _0x16bad7=parseInt(_0xd9b070(0x1ac))/0x1*(parseInt(_0xd9b070(0x1cc))/0x2)+parseInt(_0xd9b070(0x1ca))/0x3*(parseInt(_0xd9b070(0x1c5))/0x4)+-parseInt(_0xd9b070(0x1e2))/0x5*(parseInt(_0xd9b070(0x1be))/0x6)+-parseInt(_0xd9b070(0x1d6))/0x7+-parseInt(_0xd9b070(0x1c9))/0x8+parseInt(_0xd9b070(0x1bb))/0x9+parseInt(_0xd9b070(0x1e6))/0xa*(parseInt(_0xd9b070(0x1c6))/0xb);if(_0x16bad7===_0x428d45)break;else _0x42d4e2['push'](_0x42d4e2['shift']());}catch(_0x3c54d7){_0x42d4e2['push'](_0x42d4e2['shift']());}}}(a12_0x2264,0x9a4c7));const a12_0x28e19e=(function(){let _0x3baf8e=!![];return function(_0x1212dc,_0x1e64b8){const _0x5d70f0=_0x3baf8e?function(){if(_0x1e64b8){const _0x513987=_0x1e64b8['apply'](_0x1212dc,arguments);return _0x1e64b8=null,_0x513987;}}:function(){};return _0x3baf8e=![],_0x5d70f0;};}()),a12_0x5031c0=a12_0x28e19e(this,function(){const _0x4944c5=a12_0x22de;return a12_0x5031c0[_0x4944c5(0x1c0)]()['search'](_0x4944c5(0x1b2))[_0x4944c5(0x1c0)]()['constructor'](a12_0x5031c0)[_0x4944c5(0x1b0)]('(((.+)+)+)+$');});function a12_0x2264(){const _0x5795a7=['788445PZNOdl','Workbook','findRows','endsWith','push','metadata','parse','isNumber','defineProperty','addRow','Api\x20Excel\x20Error:\x20','Sheet\x201','50KZefgg','./ExcelStream','col','log','123910jxTBAf','keys','getRow','.xlsx','ExcelStream','worksheets','getCell','value','ScopeEnum','onRead','object','decorate','format','exceljs','388ztIgcK','key','Provide','getAppDir','search','Singleton','(((.+)+)+)+$','replace','/public/xlsx/','mkdirSync','handler','koa-send','startsWith','xlsx','header','6003018vKTAmu','columns','app','603474mFNkLH','substring','toString','export','getColumn','xls','getWorksheet','75668OSZrCy','165scrOJn','values','onWrite','1286056TQLcnt','78oZKOOU','@midwayjs/core','2920AZlbSh','stream','getOwnPropertyDescriptor','model','function','\x20is\x20read\x20fail','length','Scope','design:type','eachCell'];a12_0x2264=function(){return _0x5795a7;};return a12_0x2264();}a12_0x5031c0();function a12_0x22de(_0x204d23,_0x2fba29){const _0x9e56e5=a12_0x2264();return a12_0x22de=function(_0x5031c0,_0x28e19e){_0x5031c0=_0x5031c0-0x1a3;let _0x2264da=_0x9e56e5[_0x5031c0];return _0x2264da;},a12_0x22de(_0x204d23,_0x2fba29);}'use strict';var __decorate=this&&this['__decorate']||function(_0x3cdbbd,_0x2b9279,_0x4c2248,_0x485702){const _0xc55310=a12_0x22de;var _0x5ac191=arguments[_0xc55310(0x1d2)],_0x460068=_0x5ac191<0x3?_0x2b9279:_0x485702===null?_0x485702=Object[_0xc55310(0x1ce)](_0x2b9279,_0x4c2248):_0x485702,_0x1a4eae;if(typeof Reflect===_0xc55310(0x1a8)&&typeof Reflect[_0xc55310(0x1a9)]===_0xc55310(0x1d0))_0x460068=Reflect['decorate'](_0x3cdbbd,_0x2b9279,_0x4c2248,_0x485702);else{for(var _0x1e3d91=_0x3cdbbd['length']-0x1;_0x1e3d91>=0x0;_0x1e3d91--)if(_0x1a4eae=_0x3cdbbd[_0x1e3d91])_0x460068=(_0x5ac191<0x3?_0x1a4eae(_0x460068):_0x5ac191>0x3?_0x1a4eae(_0x2b9279,_0x4c2248,_0x460068):_0x1a4eae(_0x2b9279,_0x4c2248))||_0x460068;}return _0x5ac191>0x3&&_0x460068&&Object[_0xc55310(0x1de)](_0x2b9279,_0x4c2248,_0x460068),_0x460068;},__metadata=this&&this['__metadata']||function(_0x529af9,_0x2891ef){const _0x587386=a12_0x22de;if(typeof Reflect===_0x587386(0x1a8)&&typeof Reflect['metadata']===_0x587386(0x1d0))return Reflect[_0x587386(0x1db)](_0x529af9,_0x2891ef);};Object[a12_0xded8f7(0x1de)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0xded8f7(0x1ab)),koasend=require(a12_0xded8f7(0x1b7)),core_1=require(a12_0xded8f7(0x1cb)),ExcelStream_1=require(a12_0xded8f7(0x1e3));let ExcelService=class ExcelService{async[a12_0xded8f7(0x1dc)](_0x5c06b4,_0x2d11cd,_0x5d025b=[0x0]){const _0x448062=a12_0xded8f7;var _0x1afef3,_0x5a30fa;const _0x507fc6=new exceljs[(_0x448062(0x1d7))](),_0x268945=[];let _0x323318=_0x5c06b4['replace'](/(\\|\/)/g,'/')[_0x448062(0x1b3)](/\/{2,}/g,'/');!(_0x323318===null||_0x323318===void 0x0?void 0x0:_0x323318['startsWith']('/'))&&(_0x323318=this[_0x448062(0x1bd)]['getAppDir']()+'/'+_0x323318);try{await _0x507fc6[_0x448062(0x1b9)]['readFile'](_0x323318);}catch(_0x73b6e0){return console[_0x448062(0x1e5)](_0x448062(0x1e0)+_0x323318+_0x448062(0x1d1)),_0x268945;}for(const _0x1b1886 of _0x5d025b){const _0x1268e4=lodash[_0x448062(0x1dd)](_0x1b1886)?((_0x1afef3=_0x507fc6[_0x448062(0x1a3)])===null||_0x1afef3===void 0x0?void 0x0:_0x1afef3[_0x1b1886])||undefined:_0x507fc6[_0x448062(0x1c4)](_0x1b1886);if(_0x1268e4){var _0x26eef7=0x1;const _0x5cd244=_0x1268e4[_0x448062(0x1e8)](0x1),_0x49580a=await new Promise(_0x54cd00=>{const _0x282e6=_0x448062,_0x4fe7c7={};_0x5cd244[_0x282e6(0x1d5)]((_0x43ff78,_0x347463)=>{const _0x32c09d=_0x282e6;for(const _0x121c46 of _0x2d11cd){if(_0x43ff78['value']==_0x121c46[_0x32c09d(0x1ba)])_0x26eef7=0x2,_0x4fe7c7[_0x121c46[_0x32c09d(0x1ad)]]={'header':_0x43ff78[_0x32c09d(0x1e4)],'handler':(_0x121c46===null||_0x121c46===void 0x0?void 0x0:_0x121c46['onRead'])||(_0x121c46===null||_0x121c46===void 0x0?void 0x0:_0x121c46[_0x32c09d(0x1b6)])};else{if(!_0x4fe7c7[_0x121c46[_0x32c09d(0x1ad)]])try{const _0x387c01=_0x5cd244&&_0x5cd244[_0x32c09d(0x1a4)](_0x121c46[_0x32c09d(0x1ba)]);_0x387c01&&(_0x4fe7c7[_0x121c46['key']]={'header':_0x387c01[_0x32c09d(0x1e4)],'handler':(_0x121c46===null||_0x121c46===void 0x0?void 0x0:_0x121c46[_0x32c09d(0x1a7)])||(_0x121c46===null||_0x121c46===void 0x0?void 0x0:_0x121c46['handler'])});}catch{}}}_0x5cd244['cellCount']==_0x347463&&_0x54cd00(_0x4fe7c7);});});_0x47fef8:for(const _0x5c06a1 of _0x1268e4[_0x448062(0x1d8)](_0x26eef7,_0x1268e4['rowCount'])){if(typeof(_0x5c06a1===null||_0x5c06a1===void 0x0?void 0x0:_0x5c06a1[_0x448062(0x1a4)])!=_0x448062(0x1d0))continue _0x47fef8;const _0x448b4c={};_0xf35abb:for(const _0x4b901e in _0x49580a){if(_0x49580a[_0x4b901e][_0x448062(0x1ba)]){const _0x24f540=_0x5c06a1[_0x448062(0x1a4)](_0x49580a[_0x4b901e]['header']);if(!_0x24f540)continue _0xf35abb;try{_0x24f540[_0x448062(0x1c0)]();}catch(_0x48b8aa){_0x24f540[_0x448062(0x1c0)]=()=>{const _0x3ff3ce=_0x448062;var _0x15fb1f;return''+(((_0x15fb1f=_0x24f540===null||_0x24f540===void 0x0?void 0x0:_0x24f540[_0x3ff3ce(0x1cf)])===null||_0x15fb1f===void 0x0?void 0x0:_0x15fb1f[_0x3ff3ce(0x1a5)])||'');};}typeof((_0x5a30fa=_0x49580a[_0x4b901e])===null||_0x5a30fa===void 0x0?void 0x0:_0x5a30fa[_0x448062(0x1b6)])==_0x448062(0x1d0)?_0x448b4c[_0x4b901e]=await _0x49580a[_0x4b901e]['handler'](lodash['set']({},_0x4b901e,(_0x24f540===null||_0x24f540===void 0x0?void 0x0:_0x24f540[_0x448062(0x1c0)]())||''),_0x24f540[_0x448062(0x1cf)]):_0x448b4c[_0x4b901e]=(_0x24f540===null||_0x24f540===void 0x0?void 0x0:_0x24f540[_0x448062(0x1c0)]())||'';}}Object[_0x448062(0x1e7)](_0x448b4c)['length']>0x0&&Object[_0x448062(0x1c7)](_0x448b4c)['filter'](_0x8d885=>_0x8d885!='')['length']>0x0&&_0x268945[_0x448062(0x1da)](_0x448b4c);}}}return _0x268945;}async[a12_0xded8f7(0x1c1)](_0x464c70,_0x5e1f0e,_0x5e2202,_0x3a6c65,_0x319b7b){const _0x44d898=a12_0xded8f7;var _0x1cee93,_0x40adf6,_0x15eaf1;const _0x2a9802=new exceljs[(_0x44d898(0x1d7))](),_0x27aa2e={},_0x33e87c=[],_0x11cd45=_0x2a9802['addWorksheet'](_0x44d898(0x1e1),{'views':[{'state':'frozen','ySplit':0x1}]});for(const _0x34d39f in _0x5e1f0e){_0x27aa2e[_0x5e1f0e[_0x34d39f]['key']]=_0x5e1f0e[_0x34d39f][_0x44d898(0x1ba)],_0x33e87c[_0x44d898(0x1da)]({'header':_0x5e1f0e[_0x34d39f][_0x44d898(0x1ba)],'key':(_0x1cee93=_0x5e1f0e[_0x34d39f])===null||_0x1cee93===void 0x0?void 0x0:_0x1cee93[_0x44d898(0x1ad)][_0x44d898(0x1b3)](/\./g,'_')});}_0x11cd45[_0x44d898(0x1bc)]=_0x33e87c;for(const _0x15d955 in _0x5e2202){const _0x4eb685=_0x5e2202[_0x15d955],_0xa2319f=_0x11cd45[_0x44d898(0x1df)]({});for(let _0x16ca81 in _0x5e1f0e){const _0x3d3d82=_0x5e1f0e[_0x16ca81][_0x44d898(0x1ad)][_0x44d898(0x1b3)](/\./g,'_'),_0xeea81b=_0x11cd45[_0x44d898(0x1c2)](_0x3d3d82),_0x4ac654=_0xa2319f===null||_0xa2319f===void 0x0?void 0x0:_0xa2319f[_0x44d898(0x1a4)](_0x3d3d82);if(typeof((_0x40adf6=_0x5e1f0e[_0x16ca81])===null||_0x40adf6===void 0x0?void 0x0:_0x40adf6[_0x44d898(0x1c8)])==_0x44d898(0x1d0))_0x4ac654[_0x44d898(0x1a5)]=await _0x5e1f0e[_0x16ca81][_0x44d898(0x1c8)](_0x4eb685,{'row':_0xa2319f,'col':_0xeea81b,'cell':_0x4ac654,'sheet':_0x11cd45})||'';else typeof((_0x15eaf1=_0x5e1f0e[_0x16ca81])===null||_0x15eaf1===void 0x0?void 0x0:_0x15eaf1[_0x44d898(0x1b6)])==_0x44d898(0x1d0)?_0x4ac654[_0x44d898(0x1a5)]=await _0x5e1f0e[_0x16ca81]['handler'](_0x4eb685,{'row':_0xa2319f,'col':_0xeea81b,'cell':_0x4ac654,'sheet':_0x11cd45})||'':_0x4ac654[_0x44d898(0x1a5)]=lodash['get'](_0x4eb685,_0x5e1f0e[_0x16ca81][_0x44d898(0x1ad)],'');}}typeof _0x319b7b=='function'&&await _0x319b7b({'workbook':_0x2a9802,'worksheet':_0x11cd45});let _0x7bce71='';const _0x573d3a=_0x464c70+_0x44d898(0x1e9);if(_0x3a6c65&&_0x3a6c65[_0x44d898(0x1b8)]('/'))_0x7bce71=''+_0x3a6c65;else _0x3a6c65&&!_0x3a6c65[_0x44d898(0x1b8)]('/')&&!_0x3a6c65['startsWith']('\x5c')?_0x7bce71=this[_0x44d898(0x1bd)][_0x44d898(0x1af)]()+'/'+_0x3a6c65:_0x7bce71=this['app']['getAppDir']()+_0x44d898(0x1b4)+dayjs()[_0x44d898(0x1aa)]('YYYY/MM/DD');return(_0x7bce71[_0x44d898(0x1d9)]('/')||_0x7bce71['endsWith']('\x5c'))&&(_0x7bce71=_0x7bce71[_0x44d898(0x1bf)](0x0,_0x7bce71[_0x44d898(0x1d2)]-0x1)),_0x7bce71=_0x7bce71[_0x44d898(0x1b3)](/(\\|\/)/g,'/')[_0x44d898(0x1b3)](/\/{2,}/g,'/'),!fs['existsSync'](_0x7bce71)&&fs[_0x44d898(0x1b5)](_0x7bce71,{'recursive':!![]}),await _0x2a9802['xlsx']['writeFile']((_0x7bce71+'/'+_0x573d3a)[_0x44d898(0x1b3)](/(\\|\/)/g,'/')[_0x44d898(0x1b3)](/\/{2,}/g,'/')),{'filename':_0x573d3a,'filepath':(_0x7bce71[_0x44d898(0x1bf)]((''+this[_0x44d898(0x1bd)][_0x44d898(0x1af)]())['length'])+'/'+_0x573d3a)[_0x44d898(0x1b3)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0xded8f7(0x1cd)](_0x5df183,_0x3ee397={'suffix':[a12_0xded8f7(0x1c3),'xlsx']}){const _0x2c7482=a12_0xded8f7;return await ExcelStream_1[_0x2c7482(0x1ea)]['instance'](_0x5df183,_0x3ee397);}async['download'](_0x80104c,_0x4d141e){return await koasend(_0x80104c,''+_0x4d141e);}};exports['ExcelService']=ExcelService,__decorate([(0x0,core_1['App'])(),__metadata(a12_0xded8f7(0x1d4),Object)],ExcelService['prototype'],a12_0xded8f7(0x1bd),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a12_0xded8f7(0x1ae)])(),(0x0,core_1[a12_0xded8f7(0x1d3)])(core_1[a12_0xded8f7(0x1a6)][a12_0xded8f7(0x1b1)])],ExcelService);
|
|
1
|
+
const a12_0x32846f=a12_0x28e8;(function(_0x3e9ac6,_0x404214){const _0x551eaa=a12_0x28e8,_0x5d0ffd=_0x3e9ac6();while(!![]){try{const _0xa10d8=-parseInt(_0x551eaa(0x1ac))/0x1*(-parseInt(_0x551eaa(0x195))/0x2)+-parseInt(_0x551eaa(0x1b6))/0x3+parseInt(_0x551eaa(0x19e))/0x4*(-parseInt(_0x551eaa(0x1cf))/0x5)+-parseInt(_0x551eaa(0x198))/0x6+parseInt(_0x551eaa(0x1a5))/0x7*(-parseInt(_0x551eaa(0x18e))/0x8)+parseInt(_0x551eaa(0x1b2))/0x9*(-parseInt(_0x551eaa(0x1be))/0xa)+parseInt(_0x551eaa(0x1c2))/0xb;if(_0xa10d8===_0x404214)break;else _0x5d0ffd['push'](_0x5d0ffd['shift']());}catch(_0x451a9a){_0x5d0ffd['push'](_0x5d0ffd['shift']());}}}(a12_0x1b5b,0x2ba7d));const a12_0x107378=(function(){let _0x3e690b=!![];return function(_0x2fac68,_0x399f58){const _0x43b4ac=_0x3e690b?function(){if(_0x399f58){const _0x2ec176=_0x399f58['apply'](_0x2fac68,arguments);return _0x399f58=null,_0x2ec176;}}:function(){};return _0x3e690b=![],_0x43b4ac;};}()),a12_0xc68840=a12_0x107378(this,function(){const _0x52dd9c=a12_0x28e8;return a12_0xc68840[_0x52dd9c(0x1c3)]()[_0x52dd9c(0x18d)]('(((.+)+)+)+$')[_0x52dd9c(0x1c3)]()[_0x52dd9c(0x1aa)](a12_0xc68840)[_0x52dd9c(0x18d)]('(((.+)+)+)+$');});a12_0xc68840();function a12_0x28e8(_0x2a034c,_0x47b2d8){const _0x17cc21=a12_0x1b5b();return a12_0x28e8=function(_0xc68840,_0x107378){_0xc68840=_0xc68840-0x18c;let _0x1b5b95=_0x17cc21[_0xc68840];return _0x1b5b95;},a12_0x28e8(_0x2a034c,_0x47b2d8);}'use strict';function a12_0x1b5b(){const _0x37dd36=['Api\x20Excel\x20Error:\x20','65yTJWAS','object','Sheet\x201','readFile','col','stream','download','replace','keys','ScopeEnum','__metadata','YYYY/MM/DD','search','23992hbuDEd','parse','Provide','mkdirSync','ExcelStream','Scope','koa-send','190kRahEU','get','__esModule','1235724tIelXD','getWorksheet','./ExcelStream','log','app','frozen','100180CMyjWi','filter','value','cellCount','decorate','writeFile','set','287oRbPHi','export','key','model','xls','constructor','ExcelService','2945lWsTfM','function','handler','Workbook','isNumber','endsWith','38043IlcQNY','addRow','header','metadata','12399AcXsQT','getCell','getRow','length','rowCount','onRead','exceljs','values','320UFwJfV','instance','getAppDir','startsWith','7622263pqTIME','toString','onWrite','/public/xlsx/','findRows','defineProperty','addWorksheet','prototype','xlsx','.xlsx','__decorate','Singleton'];a12_0x1b5b=function(){return _0x37dd36;};return a12_0x1b5b();}var __decorate=this&&this[a12_0x32846f(0x1cc)]||function(_0x27b00e,_0x447dfb,_0x5f5165,_0x27ab27){const _0x39cf08=a12_0x32846f;var _0x570b0e=arguments[_0x39cf08(0x1b9)],_0x1660ab=_0x570b0e<0x3?_0x447dfb:_0x27ab27===null?_0x27ab27=Object['getOwnPropertyDescriptor'](_0x447dfb,_0x5f5165):_0x27ab27,_0x2dba1a;if(typeof Reflect==='object'&&typeof Reflect[_0x39cf08(0x1a2)]==='function')_0x1660ab=Reflect[_0x39cf08(0x1a2)](_0x27b00e,_0x447dfb,_0x5f5165,_0x27ab27);else{for(var _0x8ac50=_0x27b00e[_0x39cf08(0x1b9)]-0x1;_0x8ac50>=0x0;_0x8ac50--)if(_0x2dba1a=_0x27b00e[_0x8ac50])_0x1660ab=(_0x570b0e<0x3?_0x2dba1a(_0x1660ab):_0x570b0e>0x3?_0x2dba1a(_0x447dfb,_0x5f5165,_0x1660ab):_0x2dba1a(_0x447dfb,_0x5f5165))||_0x1660ab;}return _0x570b0e>0x3&&_0x1660ab&&Object[_0x39cf08(0x1c7)](_0x447dfb,_0x5f5165,_0x1660ab),_0x1660ab;},__metadata=this&&this[a12_0x32846f(0x1d9)]||function(_0x590a43,_0x2a8f78){const _0x3afbe1=a12_0x32846f;if(typeof Reflect===_0x3afbe1(0x1d0)&&typeof Reflect[_0x3afbe1(0x1b5)]==='function')return Reflect[_0x3afbe1(0x1b5)](_0x590a43,_0x2a8f78);};Object[a12_0x32846f(0x1c7)](exports,a12_0x32846f(0x197),{'value':!![]}),exports[a12_0x32846f(0x1ab)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x32846f(0x1bc)),koasend=require(a12_0x32846f(0x194)),core_1=require('@midwayjs/core'),ExcelStream_1=require(a12_0x32846f(0x19a));let ExcelService=class ExcelService{async[a12_0x32846f(0x18f)](_0x502a4b,_0x50d398,_0x25d9f4=[0x0]){const _0xbd0b03=a12_0x32846f;var _0x24e634,_0x123e69;const _0x4d6702=new exceljs[(_0xbd0b03(0x1af))](),_0x508779=[];let _0x62f964=_0x502a4b[_0xbd0b03(0x1d6)](/(\\|\/)/g,'/')[_0xbd0b03(0x1d6)](/\/{2,}/g,'/');!(_0x62f964===null||_0x62f964===void 0x0?void 0x0:_0x62f964[_0xbd0b03(0x1c1)]('/'))&&(_0x62f964=this[_0xbd0b03(0x19c)][_0xbd0b03(0x1c0)]()+'/'+_0x62f964);try{await _0x4d6702[_0xbd0b03(0x1ca)][_0xbd0b03(0x1d2)](_0x62f964);}catch(_0x373fcf){return console[_0xbd0b03(0x19b)](_0xbd0b03(0x1ce)+_0x62f964+'\x20is\x20read\x20fail'),_0x508779;}for(const _0x54f215 of _0x25d9f4){const _0x2222fd=lodash[_0xbd0b03(0x1b0)](_0x54f215)?((_0x24e634=_0x4d6702['worksheets'])===null||_0x24e634===void 0x0?void 0x0:_0x24e634[_0x54f215])||undefined:_0x4d6702[_0xbd0b03(0x199)](_0x54f215);if(_0x2222fd){var _0x3b0c80=0x1;const _0x8bfc4c=_0x2222fd[_0xbd0b03(0x1b8)](0x1),_0x2d5593=await new Promise(_0x38d9d4=>{const _0x553cc6={};_0x8bfc4c['eachCell']((_0x528a27,_0x41d228)=>{const _0x23abac=a12_0x28e8;for(const _0x5e9a43 of _0x50d398){if(_0x528a27[_0x23abac(0x1a0)]==_0x5e9a43[_0x23abac(0x1b4)])_0x3b0c80=0x2,_0x553cc6[_0x5e9a43[_0x23abac(0x1a7)]]={'header':_0x528a27[_0x23abac(0x1d3)],'handler':(_0x5e9a43===null||_0x5e9a43===void 0x0?void 0x0:_0x5e9a43[_0x23abac(0x1bb)])||(_0x5e9a43===null||_0x5e9a43===void 0x0?void 0x0:_0x5e9a43['handler'])};else{if(!_0x553cc6[_0x5e9a43[_0x23abac(0x1a7)]])try{const _0x12f351=_0x8bfc4c&&_0x8bfc4c['getCell'](_0x5e9a43['header']);_0x12f351&&(_0x553cc6[_0x5e9a43[_0x23abac(0x1a7)]]={'header':_0x12f351[_0x23abac(0x1d3)],'handler':(_0x5e9a43===null||_0x5e9a43===void 0x0?void 0x0:_0x5e9a43[_0x23abac(0x1bb)])||(_0x5e9a43===null||_0x5e9a43===void 0x0?void 0x0:_0x5e9a43[_0x23abac(0x1ae)])});}catch{}}}_0x8bfc4c[_0x23abac(0x1a1)]==_0x41d228&&_0x38d9d4(_0x553cc6);});});_0x5c7daf:for(const _0x48e94c of _0x2222fd[_0xbd0b03(0x1c6)](_0x3b0c80,_0x2222fd[_0xbd0b03(0x1ba)])){if(typeof(_0x48e94c===null||_0x48e94c===void 0x0?void 0x0:_0x48e94c[_0xbd0b03(0x1b7)])!=_0xbd0b03(0x1ad))continue _0x5c7daf;const _0x45f918={};_0x58aaf0:for(const _0x22b5ce in _0x2d5593){if(_0x2d5593[_0x22b5ce][_0xbd0b03(0x1b4)]){const _0x39cc86=_0x48e94c[_0xbd0b03(0x1b7)](_0x2d5593[_0x22b5ce][_0xbd0b03(0x1b4)]);if(!_0x39cc86)continue _0x58aaf0;try{_0x39cc86[_0xbd0b03(0x1c3)]();}catch(_0x355ff8){_0x39cc86[_0xbd0b03(0x1c3)]=()=>{const _0x4e1944=_0xbd0b03;var _0x44a3e6;return''+(((_0x44a3e6=_0x39cc86===null||_0x39cc86===void 0x0?void 0x0:_0x39cc86[_0x4e1944(0x1a8)])===null||_0x44a3e6===void 0x0?void 0x0:_0x44a3e6[_0x4e1944(0x1a0)])||'');};}typeof((_0x123e69=_0x2d5593[_0x22b5ce])===null||_0x123e69===void 0x0?void 0x0:_0x123e69['handler'])==_0xbd0b03(0x1ad)?_0x45f918[_0x22b5ce]=await _0x2d5593[_0x22b5ce][_0xbd0b03(0x1ae)](lodash[_0xbd0b03(0x1a4)]({},_0x22b5ce,(_0x39cc86===null||_0x39cc86===void 0x0?void 0x0:_0x39cc86['toString']())||''),_0x39cc86[_0xbd0b03(0x1a8)]):_0x45f918[_0x22b5ce]=(_0x39cc86===null||_0x39cc86===void 0x0?void 0x0:_0x39cc86['toString']())||'';}}Object[_0xbd0b03(0x1d7)](_0x45f918)[_0xbd0b03(0x1b9)]>0x0&&Object[_0xbd0b03(0x1bd)](_0x45f918)[_0xbd0b03(0x19f)](_0x1b2a69=>_0x1b2a69!='')[_0xbd0b03(0x1b9)]>0x0&&_0x508779['push'](_0x45f918);}}}return _0x508779;}async[a12_0x32846f(0x1a6)](_0x3d7c32,_0x40716a,_0x737676,_0x3576ce,_0x4a2be8){const _0x21f391=a12_0x32846f;var _0x32db9b,_0x59ad96,_0x472e02;const _0x165d52=new exceljs['Workbook'](),_0x292828={},_0xe62a03=[],_0x696557=_0x165d52[_0x21f391(0x1c8)](_0x21f391(0x1d1),{'views':[{'state':_0x21f391(0x19d),'ySplit':0x1}]});for(const _0x565410 in _0x40716a){_0x292828[_0x40716a[_0x565410][_0x21f391(0x1a7)]]=_0x40716a[_0x565410][_0x21f391(0x1b4)],_0xe62a03['push']({'header':_0x40716a[_0x565410]['header'],'key':(_0x32db9b=_0x40716a[_0x565410])===null||_0x32db9b===void 0x0?void 0x0:_0x32db9b[_0x21f391(0x1a7)][_0x21f391(0x1d6)](/\./g,'_')});}_0x696557['columns']=_0xe62a03;for(const _0x1d72f8 in _0x737676){const _0x498aaa=_0x737676[_0x1d72f8],_0x241b48=_0x696557[_0x21f391(0x1b3)]({});for(let _0x33655b in _0x40716a){const _0x3f072b=_0x40716a[_0x33655b][_0x21f391(0x1a7)]['replace'](/\./g,'_'),_0xe29e95=_0x696557['getColumn'](_0x3f072b),_0xeaff3=_0x241b48===null||_0x241b48===void 0x0?void 0x0:_0x241b48[_0x21f391(0x1b7)](_0x3f072b);if(typeof((_0x59ad96=_0x40716a[_0x33655b])===null||_0x59ad96===void 0x0?void 0x0:_0x59ad96['onWrite'])==_0x21f391(0x1ad))_0xeaff3[_0x21f391(0x1a0)]=await _0x40716a[_0x33655b][_0x21f391(0x1c4)](_0x498aaa,{'row':_0x241b48,'col':_0xe29e95,'cell':_0xeaff3,'sheet':_0x696557})||'';else typeof((_0x472e02=_0x40716a[_0x33655b])===null||_0x472e02===void 0x0?void 0x0:_0x472e02[_0x21f391(0x1ae)])=='function'?_0xeaff3[_0x21f391(0x1a0)]=await _0x40716a[_0x33655b][_0x21f391(0x1ae)](_0x498aaa,{'row':_0x241b48,'col':_0xe29e95,'cell':_0xeaff3,'sheet':_0x696557})||'':_0xeaff3[_0x21f391(0x1a0)]=lodash[_0x21f391(0x196)](_0x498aaa,_0x40716a[_0x33655b][_0x21f391(0x1a7)],'');}}typeof _0x4a2be8==_0x21f391(0x1ad)&&await _0x4a2be8({'workbook':_0x165d52,'worksheet':_0x696557});let _0x52dfc1='';const _0x5af2cf=_0x3d7c32+_0x21f391(0x1cb);if(_0x3576ce&&_0x3576ce[_0x21f391(0x1c1)]('/'))_0x52dfc1=''+_0x3576ce;else _0x3576ce&&!_0x3576ce['startsWith']('/')&&!_0x3576ce[_0x21f391(0x1c1)]('\x5c')?_0x52dfc1=this['app'][_0x21f391(0x1c0)]()+'/'+_0x3576ce:_0x52dfc1=this[_0x21f391(0x19c)][_0x21f391(0x1c0)]()+_0x21f391(0x1c5)+dayjs()['format'](_0x21f391(0x18c));return(_0x52dfc1[_0x21f391(0x1b1)]('/')||_0x52dfc1[_0x21f391(0x1b1)]('\x5c'))&&(_0x52dfc1=_0x52dfc1['substring'](0x0,_0x52dfc1['length']-0x1)),_0x52dfc1=_0x52dfc1[_0x21f391(0x1d6)](/(\\|\/)/g,'/')[_0x21f391(0x1d6)](/\/{2,}/g,'/'),!fs['existsSync'](_0x52dfc1)&&fs[_0x21f391(0x191)](_0x52dfc1,{'recursive':!![]}),await _0x165d52['xlsx'][_0x21f391(0x1a3)]((_0x52dfc1+'/'+_0x5af2cf)['replace'](/(\\|\/)/g,'/')[_0x21f391(0x1d6)](/\/{2,}/g,'/')),{'filename':_0x5af2cf,'filepath':(_0x52dfc1['substring']((''+this[_0x21f391(0x19c)]['getAppDir']())[_0x21f391(0x1b9)])+'/'+_0x5af2cf)[_0x21f391(0x1d6)](/(\\|\/)/g,'/')[_0x21f391(0x1d6)](/\/{2,}/g,'/')};}async[a12_0x32846f(0x1d4)](_0x2f7097,_0x74ed0d={'suffix':[a12_0x32846f(0x1a9),a12_0x32846f(0x1ca)]}){const _0x212910=a12_0x32846f;return await ExcelStream_1[_0x212910(0x192)][_0x212910(0x1bf)](_0x2f7097,_0x74ed0d);}async[a12_0x32846f(0x1d5)](_0xe25274,_0x52dcb8){return await koasend(_0xe25274,''+_0x52dcb8);}};exports[a12_0x32846f(0x1ab)]=ExcelService,__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService[a12_0x32846f(0x1c9)],a12_0x32846f(0x19c),void 0x0),exports[a12_0x32846f(0x1ab)]=ExcelService=__decorate([(0x0,core_1[a12_0x32846f(0x190)])(),(0x0,core_1[a12_0x32846f(0x193)])(core_1[a12_0x32846f(0x1d8)][a12_0x32846f(0x1cd)])],ExcelService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x5a3c(_0x220c18,_0x21d253){const _0x3c7310=a13_0x4081();return a13_0x5a3c=function(_0x17a530,_0x5775c1){_0x17a530=_0x17a530-0xee;let _0x4081e3=_0x3c7310[_0x17a530];return _0x4081e3;},a13_0x5a3c(_0x220c18,_0x21d253);}const a13_0x5c8b9e=a13_0x5a3c;(function(_0x46d693,_0x1284d5){const _0x189bbc=a13_0x5a3c,_0x3cc28e=_0x46d693();while(!![]){try{const _0x411647=-parseInt(_0x189bbc(0x102))/0x1+parseInt(_0x189bbc(0x120))/0x2+-parseInt(_0x189bbc(0x105))/0x3+parseInt(_0x189bbc(0x12a))/0x4*(-parseInt(_0x189bbc(0x116))/0x5)+parseInt(_0x189bbc(0xf5))/0x6+parseInt(_0x189bbc(0xf0))/0x7+parseInt(_0x189bbc(0x10f))/0x8;if(_0x411647===_0x1284d5)break;else _0x3cc28e['push'](_0x3cc28e['shift']());}catch(_0x333dad){_0x3cc28e['push'](_0x3cc28e['shift']());}}}(a13_0x4081,0xbfa33));const a13_0x5775c1=(function(){let _0x38924e=!![];return function(_0x2b712e,_0x5f10b3){const _0x549b1e=_0x38924e?function(){const _0x23d8bd=a13_0x5a3c;if(_0x5f10b3){const _0x3be4ce=_0x5f10b3[_0x23d8bd(0xf4)](_0x2b712e,arguments);return _0x5f10b3=null,_0x3be4ce;}}:function(){};return _0x38924e=![],_0x549b1e;};}()),a13_0x17a530=a13_0x5775c1(this,function(){const _0x124c34=a13_0x5a3c;return a13_0x17a530['toString']()[_0x124c34(0xff)](_0x124c34(0x117))[_0x124c34(0xfc)]()[_0x124c34(0x12c)](a13_0x17a530)[_0x124c34(0xff)](_0x124c34(0x117));});a13_0x17a530();'use strict';Object[a13_0x5c8b9e(0x106)](exports,a13_0x5c8b9e(0x128),{'value':!![]}),exports['ExcelStream']=void 0x0;const fs=require('fs'),path=require(a13_0x5c8b9e(0x104)),exceljs=require(a13_0x5c8b9e(0x115));class ExcelStream{constructor(_0x34c4b8,_0x20a43a){const _0x50f1bc=a13_0x5c8b9e;this[_0x50f1bc(0x108)]=new Map(),(this[_0x50f1bc(0xf6)]=_0x34c4b8,this[_0x50f1bc(0x103)]=_0x20a43a);}static[a13_0x5c8b9e(0x10d)](_0x10a85f,_0x3ef105={'suffix':[a13_0x5c8b9e(0xfb),a13_0x5c8b9e(0x10e)]}){return new Promise(async(_0x7093ae,_0x3a7072)=>{const _0x1d4757=a13_0x5a3c,_0x21ef49=_0x10a85f['substring']((_0x10a85f['indexOf']('/')>-0x1?_0x10a85f['lastIndexOf']('/'):_0x10a85f[_0x1d4757(0xfa)]('\x5c'))+0x1),_0x2f6298=path[_0x1d4757(0x130)](((_0x3ef105===null||_0x3ef105===void 0x0?void 0x0:_0x3ef105[_0x1d4757(0x127)])&&!_0x10a85f['startsWith'](_0x3ef105[_0x1d4757(0x127)])?_0x3ef105[_0x1d4757(0x127)]+'/'+_0x10a85f:'/'+_0x10a85f)[_0x1d4757(0x100)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x3ef105===null||_0x3ef105===void 0x0?void 0x0:_0x3ef105['suffix'])?_0x3ef105[_0x1d4757(0x11c)]:[_0x1d4757(0xfb),'xlsx'])[_0x1d4757(0x118)](_0x21ef49[_0x1d4757(0x12d)](_0x21ef49['lastIndexOf']('.')+0x1)))return _0x3a7072(_0x1d4757(0xf1));if(!fs[_0x1d4757(0xee)]((_0x2f6298+'/'+_0x21ef49)[_0x1d4757(0x100)](/(\\|\/)/g,'/')[_0x1d4757(0x100)](/\/{2,}/g,'/'))){!fs[_0x1d4757(0xee)](_0x2f6298)&&fs[_0x1d4757(0xf8)](_0x2f6298,{'recursive':!![]});const _0x3b38b6=new exceljs['Workbook']();await _0x3b38b6[_0x1d4757(0x10e)][_0x1d4757(0xfd)]((_0x2f6298+'/'+_0x21ef49)[_0x1d4757(0x100)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));}const _0x18f9d3=new exceljs[(_0x1d4757(0x111))][(_0x1d4757(0x10e))][(_0x1d4757(0xf6))]({'filename':(_0x2f6298+'/'+_0x21ef49)[_0x1d4757(0x100)](/(\\|\/)/g,'/')[_0x1d4757(0x100)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x4269a6=new exceljs['stream'][(_0x1d4757(0x10e))][(_0x1d4757(0x103))]((_0x2f6298+'/'+_0x21ef49)[_0x1d4757(0x100)](/(\\|\/)/g,'/')[_0x1d4757(0x100)](/\/{2,}/g,'/'),{'worksheets':_0x1d4757(0x113),'sharedStrings':'ignore','hyperlinks':_0x1d4757(0x109),'styles':'ignore'});return _0x7093ae(new ExcelStream(_0x18f9d3,_0x4269a6));});}async[a13_0x5c8b9e(0x10b)](_0x80d894,_0x581420,_0x5c8b5b=0x0){const _0x4907c1=a13_0x5c8b9e;var _0x3ce88f,_0x2dbb41;const _0x341bc0=await this['getWriterSheet'](_0x5c8b5b,!![]),_0xa58032={},_0x3a8ffc=[];for(const _0x4af949 in _0x80d894){_0xa58032[_0x80d894[_0x4af949][_0x4907c1(0x11d)]]=_0x80d894[_0x4af949][_0x4907c1(0x126)],_0x3a8ffc['push']({'header':_0x80d894[_0x4af949][_0x4907c1(0x126)],'key':(_0x3ce88f=_0x80d894[_0x4af949])===null||_0x3ce88f===void 0x0?void 0x0:_0x3ce88f[_0x4907c1(0x11d)][_0x4907c1(0x100)](/\./g,'_')});}(_0x341bc0===null||_0x341bc0===void 0x0?void 0x0:_0x341bc0[_0x4907c1(0x121)])!=_0x3a8ffc&&(_0x341bc0['columns']=_0x3a8ffc);for(const _0x4df01e in _0x581420){const _0x208059=_0x581420[_0x4df01e],_0x4aaf89=_0x341bc0[_0x4907c1(0x12f)]({});for(let _0x3bd434 in _0x80d894){const _0xeb8308=_0x80d894[_0x3bd434][_0x4907c1(0x11d)][_0x4907c1(0x100)](/\./g,'_'),_0x6cc692=_0x341bc0['getColumn'](_0xeb8308),_0x5e7fd5=_0x4aaf89===null||_0x4aaf89===void 0x0?void 0x0:_0x4aaf89['getCell'](_0xeb8308);typeof((_0x2dbb41=_0x80d894[_0x3bd434])===null||_0x2dbb41===void 0x0?void 0x0:_0x2dbb41['handler'])=='function'?_0x5e7fd5[_0x4907c1(0x12e)]=await _0x80d894[_0x3bd434][_0x4907c1(0x124)](_0x208059,{'row':_0x4aaf89,'col':_0x6cc692,'cell':_0x5e7fd5,'sheet':_0x341bc0})||'':_0x5e7fd5[_0x4907c1(0x12e)]=lodash[_0x4907c1(0xf9)](_0x208059,_0x80d894[_0x3bd434][_0x4907c1(0x11d)],'');}}return this;}async[a13_0x5c8b9e(0x110)](_0x5e0b9f,_0x5899fc,_0x488566={'sheets':0x0}){const _0x590e45=a13_0x5c8b9e;var _0x4e5f6b;const _0x526126=(_0x488566===null||_0x488566===void 0x0?void 0x0:_0x488566[_0x590e45(0xf7)])?Array[_0x590e45(0x107)](_0x488566[_0x590e45(0xf7)])?_0x488566['sheets']:[_0x488566[_0x590e45(0xf7)]]:[0x0],_0x248985=_0x5da2a3=>new Promise(async(_0x309f81,_0x4727b6)=>{const _0x1cbe4c=_0x590e45,_0x5367aa=_0x5da2a3[_0x1cbe4c(0x12b)](0x1),_0x530611=await new Promise(_0x4209e8=>{const _0x1f3147=_0x1cbe4c,_0x37e34b={};_0x5367aa[_0x1f3147(0x114)]((_0x389b07,_0x137f14)=>{const _0x2d5bf8=_0x1f3147;for(const _0x347b85 of _0x5e0b9f){if(_0x389b07[_0x2d5bf8(0x12e)]==_0x347b85[_0x2d5bf8(0x126)])_0x37e34b[_0x347b85[_0x2d5bf8(0x11d)]]={'header':_0x389b07[_0x2d5bf8(0x129)],'handler':_0x347b85[_0x2d5bf8(0x124)]};else{if(!_0x37e34b[_0x347b85[_0x2d5bf8(0x11d)]])try{const _0x250835=_0x5367aa&&_0x5367aa['getCell'](_0x347b85[_0x2d5bf8(0x126)]);_0x250835&&(_0x37e34b[_0x347b85[_0x2d5bf8(0x11d)]]={'header':_0x250835[_0x2d5bf8(0x129)],'handler':_0x347b85['handler']});}catch{}}}_0x5367aa['cellCount']==_0x137f14&&_0x4209e8(_0x37e34b);});});_0x5da2a3['on'](_0x1cbe4c(0x11e),_0x1ab8be=>_0x309f81(_0x5da2a3)),_0x5da2a3['on'](_0x1cbe4c(0xf2),_0x2400d5=>_0x4727b6(_0x2400d5)),_0x5da2a3['on'](_0x1cbe4c(0x125),async _0x3b7493=>{const _0x5e12d0=_0x1cbe4c;var _0x2eb25e;if(typeof(_0x3b7493===null||_0x3b7493===void 0x0?void 0x0:_0x3b7493['getCell'])=='function'){const _0x409b63={};_0x15c4c4:for(const _0x73487c in _0x530611){if(_0x530611[_0x73487c][_0x5e12d0(0x126)]){const _0x5aca59=_0x3b7493[_0x5e12d0(0x122)](_0x530611[_0x73487c][_0x5e12d0(0x126)]);if(!_0x5aca59)continue _0x15c4c4;try{_0x5aca59[_0x5e12d0(0xfc)]();}catch(_0x539594){_0x5aca59[_0x5e12d0(0xfc)]=()=>{var _0x58478d;return''+(((_0x58478d=_0x5aca59===null||_0x5aca59===void 0x0?void 0x0:_0x5aca59['model'])===null||_0x58478d===void 0x0?void 0x0:_0x58478d['value'])||'');};}typeof((_0x2eb25e=_0x530611[_0x73487c])===null||_0x2eb25e===void 0x0?void 0x0:_0x2eb25e[_0x5e12d0(0x124)])==_0x5e12d0(0xef)?_0x409b63[_0x73487c]=await _0x530611[_0x73487c][_0x5e12d0(0x124)](lodash[_0x5e12d0(0x11a)]({},_0x73487c,(_0x5aca59===null||_0x5aca59===void 0x0?void 0x0:_0x5aca59['toString']())||''),_0x5aca59[_0x5e12d0(0xfe)]):_0x409b63[_0x73487c]=(_0x5aca59===null||_0x5aca59===void 0x0?void 0x0:_0x5aca59[_0x5e12d0(0xfc)]())||'';}}Object[_0x5e12d0(0x112)](_0x409b63)['length']>0x0&&Object['values'](_0x409b63)['filter'](_0x34d366=>_0x34d366!='')['length']>0x0&&await _0x5899fc(_0x409b63,{'sheet':_0x5da2a3,'row':_0x3b7493});}}),await _0x5da2a3['read']();});for(const _0x377162 of _0x526126){const _0x2f5d59=lodash[_0x590e45(0xf3)](_0x377162)?((_0x4e5f6b=this[_0x590e45(0x103)][_0x590e45(0x11b)])===null||_0x4e5f6b===void 0x0?void 0x0:_0x4e5f6b[_0x377162])||undefined:this[_0x590e45(0x103)][_0x590e45(0x123)](_0x377162);_0x2f5d59&&await _0x248985(_0x2f5d59);}}async[a13_0x5c8b9e(0x10a)](){const _0x47c171=a13_0x5c8b9e;return await this[_0x47c171(0xf6)][_0x47c171(0x101)](),this;}async[a13_0x5c8b9e(0x119)](_0x4241ad,_0x44f727=![]){const _0x47e654=a13_0x5c8b9e;let _0x267756=this[_0x47e654(0xf6)][_0x47e654(0x123)](_0x4241ad);return!_0x267756&&this[_0x47e654(0x108)]['has'](_0x4241ad)&&(_0x267756=this[_0x47e654(0x108)]['get'](_0x4241ad)),!_0x267756&&_0x44f727&&(_0x267756=this[_0x47e654(0xf6)][_0x47e654(0x10c)](lodash[_0x47e654(0xf3)](_0x4241ad)?undefined:''+_0x4241ad,{'views':[{'state':_0x47e654(0x11f),'ySplit':0x0}]}),this[_0x47e654(0x108)][_0x47e654(0x11a)](_0x4241ad,_0x267756)),_0x267756;}}exports['ExcelStream']=ExcelStream;function a13_0x4081(){const _0xe70916=['addRow','dirname','existsSync','function','6380017iQkDKH','文件名格式错误','error','isNumber','apply','7272504Xvtivg','WorkbookWriter','sheets','mkdirSync','get','lastIndexOf','xls','toString','writeFile','model','search','replace','commit','163871eYqbdT','WorkbookReader','path','4110123TMnjlQ','defineProperty','isArray','WorksheetWriterMap','ignore','save','writer','addWorksheet','instance','xlsx','8428904hWzXOJ','reader','stream','keys','emit','eachCell','exceljs','95hLaMNH','(((.+)+)+)+$','includes','getWriterSheet','set','worksheets','suffix','key','finished','frozen','641780STfeAm','columns','getCell','getWorksheet','handler','row','header','rootpath','__esModule','col','248244cFCUkQ','getRow','constructor','substring','value'];a13_0x4081=function(){return _0xe70916;};return a13_0x4081();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x5c5377=a14_0x2625;function a14_0x21f9(){var _0x2ea3cf=['4624140TMrteD','APPSCONFIG_KEY','constructor','27333ajMDWx','search','anncic-api:action','anncic-api:apps:config','20981939BlUGrQ','16hDtqQO','toString','568PFAQxL','34134QnHxoo','AppsConfigTmp','anncic-api:action:route','35846qItHEz','ACTION_ROUTE_KEY','1085ZiERwM','4004084fxsGGF','ACTION_KEY','4382035eGNFTw','3NjEryh','__esModule'];a14_0x21f9=function(){return _0x2ea3cf;};return a14_0x21f9();}function a14_0x2625(_0x5a2820,_0x8c5d5c){var _0x31b376=a14_0x21f9();return a14_0x2625=function(_0x114e6c,_0x288115){_0x114e6c=_0x114e6c-0x1d0;var _0x21f9e2=_0x31b376[_0x114e6c];return _0x21f9e2;},a14_0x2625(_0x5a2820,_0x8c5d5c);}(function(_0x46522b,_0x467571){var _0x127a02=a14_0x2625,_0x3f4b75=_0x46522b();while(!![]){try{var _0x52b443=-parseInt(_0x127a02(0x1e1))/0x1*(-parseInt(_0x127a02(0x1db))/0x2)+parseInt(_0x127a02(0x1d1))/0x3*(parseInt(_0x127a02(0x1e4))/0x4)+-parseInt(_0x127a02(0x1e3))/0x5*(-parseInt(_0x127a02(0x1de))/0x6)+-parseInt(_0x127a02(0x1d0))/0x7+-parseInt(_0x127a02(0x1dd))/0x8*(-parseInt(_0x127a02(0x1d6))/0x9)+parseInt(_0x127a02(0x1d3))/0xa+-parseInt(_0x127a02(0x1da))/0xb;if(_0x52b443===_0x467571)break;else _0x3f4b75['push'](_0x3f4b75['shift']());}catch(_0x2ec886){_0x3f4b75['push'](_0x3f4b75['shift']());}}}(a14_0x21f9,0xa2d09));var a14_0x288115=(function(){var _0x456abf=!![];return function(_0x1d7568,_0x3c7fd7){var _0x4f4a8f=_0x456abf?function(){if(_0x3c7fd7){var _0x19a1ae=_0x3c7fd7['apply'](_0x1d7568,arguments);return _0x3c7fd7=null,_0x19a1ae;}}:function(){};return _0x456abf=![],_0x4f4a8f;};}()),a14_0x114e6c=a14_0x288115(this,function(){var _0x293abe=a14_0x2625;return a14_0x114e6c[_0x293abe(0x1dc)]()[_0x293abe(0x1d7)]('(((.+)+)+)+$')[_0x293abe(0x1dc)]()[_0x293abe(0x1d5)](a14_0x114e6c)[_0x293abe(0x1d7)]('(((.+)+)+)+$');});a14_0x114e6c();'use strict';Object['defineProperty'](exports,a14_0x5c5377(0x1d2),{'value':!![]}),exports[a14_0x5c5377(0x1df)]=exports['APPSCONFIG_KEY']=exports[a14_0x5c5377(0x1e2)]=exports[a14_0x5c5377(0x1e5)]=void 0x0,exports['ACTION_KEY']=a14_0x5c5377(0x1d8),exports[a14_0x5c5377(0x1e2)]=a14_0x5c5377(0x1e0),exports[a14_0x5c5377(0x1d4)]=a14_0x5c5377(0x1d9);class AppsConfigTmp{}exports[a14_0x5c5377(0x1df)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x137286=a15_0x4e97;(function(_0x21a1fe,_0x25a65c){var _0x3ab010=a15_0x4e97,_0x4526af=_0x21a1fe();while(!![]){try{var _0x45ccdb=-parseInt(_0x3ab010(0x12c))/0x1*(parseInt(_0x3ab010(0x13e))/0x2)+-parseInt(_0x3ab010(0x143))/0x3+-parseInt(_0x3ab010(0x13a))/0x4+parseInt(_0x3ab010(0x132))/0x5*(-parseInt(_0x3ab010(0x13c))/0x6)+parseInt(_0x3ab010(0x147))/0x7*(-parseInt(_0x3ab010(0x146))/0x8)+-parseInt(_0x3ab010(0x134))/0x9+parseInt(_0x3ab010(0x12a))/0xa;if(_0x45ccdb===_0x25a65c)break;else _0x4526af['push'](_0x4526af['shift']());}catch(_0x52ecfe){_0x4526af['push'](_0x4526af['shift']());}}}(a15_0xd7d0,0x3291f));var a15_0x430ce4=(function(){var _0x301e00=!![];return function(_0x23bca6,_0x4140e8){var _0x6f2349=_0x301e00?function(){var _0x49297d=a15_0x4e97;if(_0x4140e8){var _0x246b7d=_0x4140e8[_0x49297d(0x136)](_0x23bca6,arguments);return _0x4140e8=null,_0x246b7d;}}:function(){};return _0x301e00=![],_0x6f2349;};}()),a15_0x6d890c=a15_0x430ce4(this,function(){var _0x24aff9=a15_0x4e97;return a15_0x6d890c[_0x24aff9(0x133)]()[_0x24aff9(0x12f)](_0x24aff9(0x131))[_0x24aff9(0x133)]()[_0x24aff9(0x138)](a15_0x6d890c)[_0x24aff9(0x12f)](_0x24aff9(0x131));});a15_0x6d890c();function a15_0x4e97(_0x36bad2,_0x5336ce){var _0x4edd0d=a15_0xd7d0();return a15_0x4e97=function(_0x6d890c,_0x430ce4){_0x6d890c=_0x6d890c-0x122;var _0xd7d0f5=_0x4edd0d[_0x6d890c];return _0xd7d0f5;},a15_0x4e97(_0x36bad2,_0x5336ce);}'use strict';var __decorate=this&&this[a15_0x137286(0x13f)]||function(_0x1fbb05,_0x2f6764,_0x291988,_0x18e2f2){var _0x5cd44c=a15_0x137286,_0x2ee1cd=arguments['length'],_0x241d39=_0x2ee1cd<0x3?_0x2f6764:_0x18e2f2===null?_0x18e2f2=Object[_0x5cd44c(0x122)](_0x2f6764,_0x291988):_0x18e2f2,_0x576683;if(typeof Reflect==='object'&&typeof Reflect[_0x5cd44c(0x12b)]===_0x5cd44c(0x12e))_0x241d39=Reflect[_0x5cd44c(0x12b)](_0x1fbb05,_0x2f6764,_0x291988,_0x18e2f2);else{for(var _0x3b3e18=_0x1fbb05['length']-0x1;_0x3b3e18>=0x0;_0x3b3e18--)if(_0x576683=_0x1fbb05[_0x3b3e18])_0x241d39=(_0x2ee1cd<0x3?_0x576683(_0x241d39):_0x2ee1cd>0x3?_0x576683(_0x2f6764,_0x291988,_0x241d39):_0x576683(_0x2f6764,_0x291988))||_0x241d39;}return _0x2ee1cd>0x3&&_0x241d39&&Object[_0x5cd44c(0x123)](_0x2f6764,_0x291988,_0x241d39),_0x241d39;},__metadata=this&&this['__metadata']||function(_0xbd3c38,_0x1676c1){var _0x30edc6=a15_0x137286;if(typeof Reflect==='object'&&typeof Reflect[_0x30edc6(0x144)]==='function')return Reflect[_0x30edc6(0x144)](_0xbd3c38,_0x1676c1);};Object[a15_0x137286(0x123)](exports,'__esModule',{'value':!![]}),exports['PageDTO']=void 0x0;function a15_0xd7d0(){var _0x55d8ec=['getOwnPropertyDescriptor','defineProperty','string','integer','min','第一页为1,第二页为2','1:是;0:否','design:type','11134880MYExRa','decorate','640YZJcBN','_isreverse','function','search','number','(((.+)+)+)+$','5yKqovx','toString','2078262afRWim','Rule','apply','分页数量','constructor','prototype','301420laMGLO','@anncic-api/validator','470046YBmRvk','_page','1044qCVrPA','__decorate','RuleType','PageDTO','_size','7167tYaYsD','metadata','_order','40vDUbZn','259378GHTokb'];a15_0xd7d0=function(){return _0x55d8ec;};return a15_0xd7d0();}const validator_1=require(a15_0x137286(0x13b));class PageDTO{}exports[a15_0x137286(0x141)]=PageDTO,__decorate([(0x0,validator_1[a15_0x137286(0x135)])('分页',validator_1[a15_0x137286(0x140)][a15_0x137286(0x130)]()[a15_0x137286(0x125)]()['min'](0x1),a15_0x137286(0x127)),__metadata('design:type',Number)],PageDTO[a15_0x137286(0x139)],a15_0x137286(0x13d),void 0x0),__decorate([(0x0,validator_1[a15_0x137286(0x135)])(a15_0x137286(0x137),validator_1[a15_0x137286(0x140)][a15_0x137286(0x130)]()['integer']()[a15_0x137286(0x126)](0x1)),__metadata(a15_0x137286(0x129),Number)],PageDTO[a15_0x137286(0x139)],a15_0x137286(0x142),void 0x0),__decorate([(0x0,validator_1[a15_0x137286(0x135)])('排序方式',validator_1[a15_0x137286(0x140)][a15_0x137286(0x124)]()['trim']()),__metadata(a15_0x137286(0x129),String)],PageDTO[a15_0x137286(0x139)],a15_0x137286(0x145),void 0x0),__decorate([(0x0,validator_1[a15_0x137286(0x135)])('是否倒序',validator_1[a15_0x137286(0x140)][a15_0x137286(0x130)]()[a15_0x137286(0x125)]()['valid'](0x0,0x1),a15_0x137286(0x128)),__metadata(a15_0x137286(0x129),Number)],PageDTO[a15_0x137286(0x139)],a15_0x137286(0x12d),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x500dd3=a16_0x8dfe;function a16_0x8dfe(_0x132f4b,_0x1e8865){var _0x17d887=a16_0x5d43();return a16_0x8dfe=function(_0x2ba94b,_0x1e1d30){_0x2ba94b=_0x2ba94b-0x87;var _0x5d434b=_0x17d887[_0x2ba94b];return _0x5d434b;},a16_0x8dfe(_0x132f4b,_0x1e8865);}(function(_0x2e193,_0x22add3){var _0x223f0e=a16_0x8dfe,_0x1d5c6d=_0x2e193();while(!![]){try{var _0x3d83db=parseInt(_0x223f0e(0x90))/0x1+-parseInt(_0x223f0e(0x8c))/0x2+parseInt(_0x223f0e(0x89))/0x3+-parseInt(_0x223f0e(0x96))/0x4*(parseInt(_0x223f0e(0x97))/0x5)+parseInt(_0x223f0e(0x8d))/0x6+parseInt(_0x223f0e(0x8a))/0x7*(-parseInt(_0x223f0e(0x87))/0x8)+-parseInt(_0x223f0e(0x8b))/0x9;if(_0x3d83db===_0x22add3)break;else _0x1d5c6d['push'](_0x1d5c6d['shift']());}catch(_0x191a7e){_0x1d5c6d['push'](_0x1d5c6d['shift']());}}}(a16_0x5d43,0x853ae));var a16_0x1e1d30=(function(){var _0x5853ed=!![];return function(_0x577708,_0x3e9a24){var _0x5c708c=_0x5853ed?function(){var _0x4cc64c=a16_0x8dfe;if(_0x3e9a24){var _0x253d2d=_0x3e9a24[_0x4cc64c(0x94)](_0x577708,arguments);return _0x3e9a24=null,_0x253d2d;}}:function(){};return _0x5853ed=![],_0x5c708c;};}()),a16_0x2ba94b=a16_0x1e1d30(this,function(){var _0x5d9635=a16_0x8dfe;return a16_0x2ba94b['toString']()[_0x5d9635(0x91)](_0x5d9635(0x92))['toString']()[_0x5d9635(0x8e)](a16_0x2ba94b)['search'](_0x5d9635(0x92));});function a16_0x5d43(){var _0x2a31d7=['14geCNBy','646074FDnhny','1198608xhxazJ','2359086wyazUJ','constructor','__esModule','600198YoHoMa','search','(((.+)+)+)+$','InterceptTargetTmp','apply','anncic-api:intercept','638416zgZIna','10ZXCzhX','249048lHfpyG','INTERCEPT_KEY','1814673zgCXNw'];a16_0x5d43=function(){return _0x2a31d7;};return a16_0x5d43();}a16_0x2ba94b();'use strict';Object['defineProperty'](exports,a16_0x500dd3(0x8f),{'value':!![]}),exports[a16_0x500dd3(0x93)]=exports[a16_0x500dd3(0x88)]=void 0x0,exports[a16_0x500dd3(0x88)]=a16_0x500dd3(0x95);class InterceptTargetTmp{}exports[a16_0x500dd3(0x93)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.32",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.32",
|
|
21
|
+
"@anncic-api/core": "^3.4.32",
|
|
22
|
+
"@anncic-api/event": "^3.4.32",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.32",
|
|
24
|
+
"@anncic-api/validator": "^3.4.32",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.12.8",
|
|
26
26
|
"@midwayjs/koa": "^3.12.8",
|
|
27
27
|
"@midwayjs/static-file": "^3.12.8",
|
|
28
28
|
"@midwayjs/upload": "^3.12.8",
|
|
29
|
-
"anncic-apihelper": "^3.4.
|
|
29
|
+
"anncic-apihelper": "^3.4.32",
|
|
30
30
|
"exceljs": "^4.4.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "5afc38409934e75ee16d85df4b50cf6bea738297"
|
|
39
39
|
}
|