anncic-api 3.4.7 → 3.4.9
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.d.ts +5 -0
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.d.ts +38 -0
- package/dist/service/ExcelStream.js +1 -0
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x5247d0=a0_0xa115;function a0_0xa115(_0x3ebf91,_0x47638a){var _0x1da646=a0_0x3bbc();return a0_0xa115=function(_0x3f4c25,_0x367445){_0x3f4c25=_0x3f4c25-0x70;var _0x3bbc7c=_0x1da646[_0x3f4c25];return _0x3bbc7c;},a0_0xa115(_0x3ebf91,_0x47638a);}(function(_0x17c0c8,_0x36b637){var _0x173e97=a0_0xa115,_0x2eac43=_0x17c0c8();while(!![]){try{var _0xf3b8cc=-parseInt(_0x173e97(0x76))/0x1*(parseInt(_0x173e97(0x7a))/0x2)+parseInt(_0x173e97(0x77))/0x3*(parseInt(_0x173e97(0x79))/0x4)+parseInt(_0x173e97(0x71))/0x5+parseInt(_0x173e97(0x84))/0x6+parseInt(_0x173e97(0x72))/0x7+parseInt(_0x173e97(0x82))/0x8+-parseInt(_0x173e97(0x83))/0x9;if(_0xf3b8cc===_0x36b637)break;else _0x2eac43['push'](_0x2eac43['shift']());}catch(_0x2163b3){_0x2eac43['push'](_0x2eac43['shift']());}}}(a0_0x3bbc,0xccfcf));var a0_0x367445=(function(){var _0x40bf4c=!![];return function(_0x1a2a14,_0x21bd24){var _0x37cf82=_0x40bf4c?function(){var _0x18d420=a0_0xa115;if(_0x21bd24){var _0x366fdb=_0x21bd24[_0x18d420(0x87)](_0x1a2a14,arguments);return _0x21bd24=null,_0x366fdb;}}:function(){};return _0x40bf4c=![],_0x37cf82;};}()),a0_0x3f4c25=a0_0x367445(this,function(){var _0x5d3606=a0_0xa115;return a0_0x3f4c25[_0x5d3606(0x81)]()[_0x5d3606(0x85)](_0x5d3606(0x73))[_0x5d3606(0x81)]()[_0x5d3606(0x7c)](a0_0x3f4c25)['search'](_0x5d3606(0x73));});function a0_0x3bbc(){var _0x5ad859=['9827152xecwaV','34459317MXUFMn','3379332ViAuPX','search','name','apply','default','appDir','7502355CmTHzp','2574642MuQHPH','(((.+)+)+)+$','dhauo1234420123gg3234901','xml','1LRfDMW','5844IcfFmO','20mb','2956mCFZbe','862042ybYEnf','form','constructor','zhiulanuiy7892387985hnoi','__esModule','_token','defineProperty','toString'];a0_0x3bbc=function(){return _0x5ad859;};return a0_0x3bbc();}a0_0x3f4c25();'use strict';Object[a0_0x5247d0(0x80)](exports,a0_0x5247d0(0x7e),{'value':!![]}),exports[a0_0x5247d0(0x88)]=_0x33364e=>{var _0x53c0b1=a0_0x5247d0;return{'apitest':!![],'keys':_0x33364e[_0x53c0b1(0x86)],'anncicapi':{'requestKey':_0x53c0b1(0x7f),'password':_0x53c0b1(0x7d),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x53c0b1(0x74)}}},'bodyParser':{'enableTypes':['json',_0x53c0b1(0x7b),'text',_0x53c0b1(0x75)],'formLimit':_0x53c0b1(0x78),'jsonLimit':_0x53c0b1(0x78),'textLimit':_0x53c0b1(0x78),'xmlLimit':_0x53c0b1(0x78),'enable':!![]},'upload':{'tmpdir':_0x33364e[_0x53c0b1(0x70)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3781f2=a1_0x3691;function a1_0x3691(_0x257dfb,_0x1c6ccb){var _0x94bea3=a1_0x241c();return a1_0x3691=function(_0xe34992,_0x559041){_0xe34992=_0xe34992-0x105;var _0x241c61=_0x94bea3[_0xe34992];return _0x241c61;},a1_0x3691(_0x257dfb,_0x1c6ccb);}(function(_0x195ae5,_0x5d6dff){var _0xd8a974=a1_0x3691,_0x306c46=_0x195ae5();while(!![]){try{var _0x2212b6=parseInt(_0xd8a974(0x108))/0x1+parseInt(_0xd8a974(0x111))/0x2*(-parseInt(_0xd8a974(0x10b))/0x3)+-parseInt(_0xd8a974(0x113))/0x4+-parseInt(_0xd8a974(0x110))/0x5*(-parseInt(_0xd8a974(0x114))/0x6)+parseInt(_0xd8a974(0x10c))/0x7+-parseInt(_0xd8a974(0x10e))/0x8*(-parseInt(_0xd8a974(0x10f))/0x9)+-parseInt(_0xd8a974(0x107))/0xa;if(_0x2212b6===_0x5d6dff)break;else _0x306c46['push'](_0x306c46['shift']());}catch(_0x23abf5){_0x306c46['push'](_0x306c46['shift']());}}}(a1_0x241c,0x84083));var a1_0x559041=(function(){var _0x312843=!![];return function(_0x425f97,_0x194a3f){var _0x48ecd2=_0x312843?function(){var _0x2e9e0a=a1_0x3691;if(_0x194a3f){var _0x574d11=_0x194a3f[_0x2e9e0a(0x112)](_0x425f97,arguments);return _0x194a3f=null,_0x574d11;}}:function(){};return _0x312843=![],_0x48ecd2;};}()),a1_0xe34992=a1_0x559041(this,function(){var _0x512995=a1_0x3691;return a1_0xe34992['toString']()[_0x512995(0x10d)]('(((.+)+)+)+$')[_0x512995(0x109)]()['constructor'](a1_0xe34992)[_0x512995(0x10d)](_0x512995(0x105));});function a1_0x241c(){var _0x28f04f=['toString','__esModule','3FSJlPl','4816357OzKKta','search','8625048dEymWP','9YMsqRP','15ZJVSTc','1323056fatwgq','apply','4000652nMYSsf','566166SMiFEF','(((.+)+)+)+$','default','3480600BSLiid','501289IFIixQ'];a1_0x241c=function(){return _0x28f04f;};return a1_0x241c();}a1_0xe34992();'use strict';Object['defineProperty'](exports,a1_0x3781f2(0x10a),{'value':!![]}),exports[a1_0x3781f2(0x106)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x579694=a2_0x5e5b;(function(_0x192439,_0x94756c){const _0x45e085=a2_0x5e5b,_0x86c5fd=_0x192439();while(!![]){try{const _0x62db4d=parseInt(_0x45e085(0x166))/0x1*(-parseInt(_0x45e085(0x15f))/0x2)+parseInt(_0x45e085(0x194))/0x3+-parseInt(_0x45e085(0x192))/0x4+parseInt(_0x45e085(0x1a2))/0x5+-parseInt(_0x45e085(0x13c))/0x6+-parseInt(_0x45e085(0x1c0))/0x7+parseInt(_0x45e085(0x180))/0x8;if(_0x62db4d===_0x94756c)break;else _0x86c5fd['push'](_0x86c5fd['shift']());}catch(_0x467753){_0x86c5fd['push'](_0x86c5fd['shift']());}}}(a2_0x3198,0xd7fd8));function a2_0x3198(){const _0x33f3ca=['encrypted','readdirSync','@midwayjs/static-file','prototype','isDevelopmentEnvironment','path','decorate','lastIndexOf','module','@midwayjs/cross-domain','2252CZsfHd','koa','ACTION_KEY','anncic-apihelper','clients','https://','koa-send','289vziJOR','__decorate','apimit','midwayLogger','@midwayjs/koa','hanlderApplications','MidwayDecoratorService','proceed','keys','anncic-api','./config/config.default','ApiService','defineProperties','__metadata','get','anncicapi','/runtime/apps-','intercept','undefined','requestMethod','DEFAULT','attachment','getConfiguration','ACTION_ROUTE_KEY','443','checksign','9729712ctvRrE','__esModule','constructor','design:type','./types/action','@anncic-api/typeorm','isDirectory','function','upload','getAppDir','handlerActionRoute','apply','http','search','App','_matchedRoute','./types/intercept','requestKey','3944264kSUSYi','application','2381283LdbGQr','startsWith','log','req','@anncic-api/event','defineProperty','REQUEST_OBJ_CTX_KEY','@anncic-api/cache','includes','handler','body','getAsync','loggerConfig','requestContext','3963095jeaIQJ','filepath','./service/ApiService','文件不存在','split','getBaseDir','metadata','decorator','device','@midwayjs/core','isFunction','method','isArray','http://','tagName','registerMethodHandler','/apps','input','statSync','object','MidwayEnvironmentService','mkdirSync','loggerService','app','Types','name','INTERCEPT_KEY','onReady','args','HEADERS_SIGNATURE','2376759yTNQnc','request','host','/apps/','./config/config.production','@anncic-api/validator','/runtime','InterceptTargetTmp','MidwayLoggerService','target','key','Configuration','assign','Anncic-api\x20static-file\x20:\x20mkdir\x20','headers','tmpdir','length','ApiError','CustomConfiguration','string','@anncic-api/core','getClassMetadata','APPSCONFIG_KEY','environment','staticFile','1601286ksBfzq','AppsConfigTmp','addObject','isString','devices','context','connection','filterConfig','createLogger','toString','dirs','dir','getApplications','.log','routerOptions','toLowerCase','existsSync','defaultsDeep','substring','isClass','(((.+)+)+)+$','parse','config','Inject','@midwayjs/upload'];a2_0x3198=function(){return _0x33f3ca;};return a2_0x3198();}const a2_0x2b1272=(function(){let _0x370b3d=!![];return function(_0x35f883,_0x2e216a){const _0x4d9bbd=_0x370b3d?function(){const _0x1565cb=a2_0x5e5b;if(_0x2e216a){const _0x37aeb6=_0x2e216a[_0x1565cb(0x18b)](_0x35f883,arguments);return _0x2e216a=null,_0x37aeb6;}}:function(){};return _0x370b3d=![],_0x4d9bbd;};}()),a2_0x49fe49=a2_0x2b1272(this,function(){const _0x5d9078=a2_0x5e5b;return a2_0x49fe49['toString']()[_0x5d9078(0x18d)]('(((.+)+)+)+$')[_0x5d9078(0x145)]()[_0x5d9078(0x182)](a2_0x49fe49)[_0x5d9078(0x18d)](_0x5d9078(0x150));});function a2_0x5e5b(_0x559fc5,_0x1c82f4){const _0x4271e7=a2_0x3198();return a2_0x5e5b=function(_0x49fe49,_0x2b1272){_0x49fe49=_0x49fe49-0x129;let _0x31986d=_0x4271e7[_0x49fe49];return _0x31986d;},a2_0x5e5b(_0x559fc5,_0x1c82f4);}a2_0x49fe49();'use strict';var __decorate=this&&this[a2_0x579694(0x167)]||function(_0x4fcbc4,_0x526e62,_0x23808,_0x47b2b2){const _0x167d43=a2_0x579694;var _0x191b7d=arguments[_0x167d43(0x133)],_0x54fc5f=_0x191b7d<0x3?_0x526e62:_0x47b2b2===null?_0x47b2b2=Object['getOwnPropertyDescriptor'](_0x526e62,_0x23808):_0x47b2b2,_0x5b0637;if(typeof Reflect===_0x167d43(0x1b5)&&typeof Reflect[_0x167d43(0x15b)]===_0x167d43(0x187))_0x54fc5f=Reflect['decorate'](_0x4fcbc4,_0x526e62,_0x23808,_0x47b2b2);else{for(var _0x57af15=_0x4fcbc4[_0x167d43(0x133)]-0x1;_0x57af15>=0x0;_0x57af15--)if(_0x5b0637=_0x4fcbc4[_0x57af15])_0x54fc5f=(_0x191b7d<0x3?_0x5b0637(_0x54fc5f):_0x191b7d>0x3?_0x5b0637(_0x526e62,_0x23808,_0x54fc5f):_0x5b0637(_0x526e62,_0x23808))||_0x54fc5f;}return _0x191b7d>0x3&&_0x54fc5f&&Object['defineProperty'](_0x526e62,_0x23808,_0x54fc5f),_0x54fc5f;},__metadata=this&&this[a2_0x579694(0x173)]||function(_0x106a53,_0xbb5a8e){const _0x1d0f2a=a2_0x579694;if(typeof Reflect==='object'&&typeof Reflect[_0x1d0f2a(0x1a8)]==='function')return Reflect[_0x1d0f2a(0x1a8)](_0x106a53,_0xbb5a8e);};Object[a2_0x579694(0x199)](exports,a2_0x579694(0x181),{'value':!![]}),exports[a2_0x579694(0x135)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x579694(0x1ab)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x579694(0x1a4)),intercept_1=require(a2_0x579694(0x190)),action_1=require(a2_0x579694(0x184)),fs=require('fs'),koasend=require(a2_0x579694(0x165)),koa=require(a2_0x579694(0x16a)),upload=require(a2_0x579694(0x154)),staticFile=require(a2_0x579694(0x157)),crossDomain=require(a2_0x579694(0x15e)),ConfigDefault=require(a2_0x579694(0x170)),ConfigProduction=require(a2_0x579694(0x1c4)),anncic=require(a2_0x579694(0x137)),anncicCache=require(a2_0x579694(0x19b)),anncicEvent=require(a2_0x579694(0x198)),anncicTypeorm=require(a2_0x579694(0x185)),anncicValidator=require(a2_0x579694(0x1c5)),anncicHelper=require(a2_0x579694(0x162));let CustomConfiguration=class CustomConfiguration{async[a2_0x579694(0x1bd)](){const _0x3d9a9f=a2_0x579694;await this[_0x3d9a9f(0x143)](),await this[_0x3d9a9f(0x1a0)](),await this['handlerActionRoute'](),await this[_0x3d9a9f(0x16b)]();}async[a2_0x579694(0x18a)](){const _0x2aeb18=a2_0x579694,_0x43bd9e=this[_0x2aeb18(0x152)][_0x2aeb18(0x17c)](),_0x4fcaad=(0x0,core_1['getClassMetadata'])(intercept_1[_0x2aeb18(0x1bc)],intercept_1[_0x2aeb18(0x12a)])||{};this[_0x2aeb18(0x1a9)][_0x2aeb18(0x1b1)](action_1[_0x2aeb18(0x17d)],_0x3fd2f7=>{const _0x41a9c1=_0x2aeb18;var _0x56ac00;const _0x42c2dc=(0x0,core_1['getClassMetadata'])(action_1[_0x41a9c1(0x139)],action_1[_0x41a9c1(0x13d)])||{},_0x122552=_0x3fd2f7['metadata'],_0x43a9b2=(0x0,core_1[_0x41a9c1(0x138)])(action_1[_0x41a9c1(0x161)],_0x3fd2f7['target'])||{},_0x32c126=((_0x56ac00=_0x43a9b2===null||_0x43a9b2===void 0x0?void 0x0:_0x43a9b2[_0x41a9c1(0x1a3)])===null||_0x56ac00===void 0x0?void 0x0:_0x56ac00[_0x41a9c1(0x14e)](0x0,_0x43a9b2[_0x41a9c1(0x1a3)][_0x41a9c1(0x15c)]('.')))||'',_0x28e355=(_0x43a9b2===null||_0x43a9b2===void 0x0?void 0x0:_0x43a9b2[_0x41a9c1(0x15d)])?(_0x42c2dc===null||_0x42c2dc===void 0x0?void 0x0:_0x42c2dc[_0x43a9b2[_0x41a9c1(0x15d)]])||{}:{};return{'before':async _0x27586f=>{const _0x2c77d0=_0x41a9c1;var _0xe34000,_0x10f1ea,_0x257fbd,_0x458cba;const _0x400177=(_0xe34000=_0x27586f===null||_0x27586f===void 0x0?void 0x0:_0x27586f[_0x2c77d0(0x12c)])===null||_0xe34000===void 0x0?void 0x0:_0xe34000[core_2['REQUEST_OBJ_CTX_KEY']],_0x568ea2=lodash[_0x2c77d0(0x14d)]({},_0x400177[_0x2c77d0(0x1c1)][_0x2c77d0(0x19e)]||_0x400177[_0x2c77d0(0x1c1)][((_0x10f1ea=_0x43bd9e===null||_0x43bd9e===void 0x0?void 0x0:_0x43bd9e['bodyXml'])===null||_0x10f1ea===void 0x0?void 0x0:_0x10f1ea[_0x2c77d0(0x12d)])||'body']||{},_0x400177[_0x2c77d0(0x1c1)]['query']||{});_0x400177['_matchedRouteMeta']={'module':(_0x28e355===null||_0x28e355===void 0x0?void 0x0:_0x28e355[_0x2c77d0(0x1bb)])||'','routePath':''+_0x400177[_0x2c77d0(0x15a)],'routeName':_0x43a9b2[_0x2c77d0(0x14a)][_0x2c77d0(0x1b0)]+'@'+_0x122552['routerName'],'routeMethod':((_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552[_0x2c77d0(0x179)])||_0x400177[_0x2c77d0(0x1ad)]||'')[_0x2c77d0(0x14b)](),'routeDescription':(_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552['description'])||'','filemethod':_0x32c126+'@'+(_0x122552['method']||'')};if(_0x400177&&(_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552[_0x2c77d0(0x168)]))try{const _0x46c58d=((_0x257fbd=_0x43bd9e===null||_0x43bd9e===void 0x0?void 0x0:_0x43bd9e['anncicapi'])===null||_0x257fbd===void 0x0?void 0x0:_0x257fbd[_0x2c77d0(0x191)])&&typeof(_0x568ea2===null||_0x568ea2===void 0x0?void 0x0:_0x568ea2[_0x43bd9e['anncicapi']['requestKey']])==_0x2c77d0(0x136)?JSON[_0x2c77d0(0x151)](base64_decode(_0x568ea2[_0x43bd9e[_0x2c77d0(0x175)][_0x2c77d0(0x191)]])||'{}')||{}:((_0x458cba=_0x400177===null||_0x400177===void 0x0?void 0x0:_0x400177['request'])===null||_0x458cba===void 0x0?void 0x0:_0x458cba[_0x2c77d0(0x131)])||{};if(!this[_0x2c77d0(0x171)][_0x2c77d0(0x17f)](_0x46c58d))throw new AnnError(ApiError_1[_0x2c77d0(0x134)][_0x2c77d0(0x1bf)]);}catch(_0x3fa0f3){if(_0x3fa0f3 instanceof AnnError)throw _0x3fa0f3;else throw new AnnError(ApiError_1['ApiError']['_UNKNOW_']);}},'around':async _0x2bae83=>{const _0x264b88=_0x41a9c1;var _0x47d8fc,_0x28ba13,_0x2c3b6b;const _0x3fed1b=(_0x47d8fc=_0x2bae83===null||_0x2bae83===void 0x0?void 0x0:_0x2bae83['target'])===null||_0x47d8fc===void 0x0?void 0x0:_0x47d8fc[core_2[_0x264b88(0x19a)]];if(_0x3fed1b&&(_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552[_0x264b88(0x168)])&&((_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552[_0x264b88(0x177)])||typeof(_0x122552===null||_0x122552===void 0x0?void 0x0:_0x122552[_0x264b88(0x177)])==_0x264b88(0x178))){if(((_0x28ba13=_0x3fed1b[_0x264b88(0x131)])===null||_0x28ba13===void 0x0?void 0x0:_0x28ba13[_0x264b88(0x1aa)])&&((_0x2c3b6b=_0x4fcaad===null||_0x4fcaad===void 0x0?void 0x0:_0x4fcaad[_0x3fed1b[_0x264b88(0x131)]['device']])===null||_0x2c3b6b===void 0x0?void 0x0:_0x2c3b6b[_0x264b88(0x133)])>0x0)for(const _0x328986 of _0x4fcaad[_0x3fed1b[_0x264b88(0x131)][_0x264b88(0x1aa)]]||[]){if(core_1[_0x264b88(0x1ba)][_0x264b88(0x14f)](_0x328986)){const _0x5d083f=await _0x3fed1b[_0x264b88(0x1a1)][_0x264b88(0x19f)](_0x328986);typeof(_0x5d083f===null||_0x5d083f===void 0x0?void 0x0:_0x5d083f['match'])==_0x264b88(0x187)?await _0x5d083f['match'](_0x3fed1b,typeof(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b['method'])==_0x264b88(0x136)&&(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)])?_0x3fed1b[_0x264b88(0x1ad)][_0x264b88(0x14b)]()+'@'+(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)]):undefined,_0x122552)&&await _0x5d083f[_0x264b88(0x19d)](_0x3fed1b,typeof(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b['method'])==_0x264b88(0x136)&&(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)])?_0x3fed1b[_0x264b88(0x1ad)]['toLowerCase']()+'@'+(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)]):undefined,_0x122552):await _0x5d083f[_0x264b88(0x19d)](_0x3fed1b,typeof(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x1ad)])==_0x264b88(0x136)&&(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b['_matchedRoute'])?_0x3fed1b['method'][_0x264b88(0x14b)]()+'@'+(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)]):undefined,_0x122552);}else core_1[_0x264b88(0x1ba)][_0x264b88(0x1ac)](_0x328986)&&await _0x328986(_0x3fed1b,typeof(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b['method'])==_0x264b88(0x136)&&(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)])?_0x3fed1b[_0x264b88(0x1ad)][_0x264b88(0x14b)]()+'@'+(_0x3fed1b===null||_0x3fed1b===void 0x0?void 0x0:_0x3fed1b[_0x264b88(0x18f)]):undefined,_0x122552);}}return await _0x2bae83[_0x264b88(0x16d)](..._0x2bae83[_0x264b88(0x1be)]);},'afterThrow':(_0x164fd5,_0x3b857f)=>{throw _0x3b857f;}};});}async[a2_0x579694(0x16b)](){const _0xd038db=a2_0x579694,_0x473538=this['config'][_0xd038db(0x17c)]();this['application'][_0xd038db(0x148)]([_0xd038db(0x160)])['forEach'](_0x1bf68e=>{const _0x5471c6=_0xd038db;(_0x1bf68e===null||_0x1bf68e===void 0x0?void 0x0:_0x1bf68e[_0x5471c6(0x141)])&&Object[_0x5471c6(0x172)](_0x1bf68e['context'],{'hosturl':{'configurable':![],'get':function(){const _0x15c06f=_0x5471c6;var _0x66ac8f,_0x379963,_0xc04a11,_0x3d15e1;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this[_0x15c06f(0x1c2)][_0x15c06f(0x195)](_0x15c06f(0x18c))){let _0x368efd=this['host'][_0x15c06f(0x1a6)](':');return['80',_0x15c06f(0x17e)][_0x15c06f(0x19c)](_0x368efd===null||_0x368efd===void 0x0?void 0x0:_0x368efd[0x1])?''+(!!((_0x379963=(_0x66ac8f=this===null||this===void 0x0?void 0x0:this[_0x15c06f(0x197)])===null||_0x66ac8f===void 0x0?void 0x0:_0x66ac8f[_0x15c06f(0x142)])===null||_0x379963===void 0x0?void 0x0:_0x379963[_0x15c06f(0x155)])||(_0x368efd===null||_0x368efd===void 0x0?void 0x0:_0x368efd[0x1])==_0x15c06f(0x17e)?'https://':_0x15c06f(0x1af))+_0x368efd[0x0]:''+(!!((_0x3d15e1=(_0xc04a11=this===null||this===void 0x0?void 0x0:this[_0x15c06f(0x197)])===null||_0xc04a11===void 0x0?void 0x0:_0xc04a11[_0x15c06f(0x142)])===null||_0x3d15e1===void 0x0?void 0x0:_0x3d15e1['encrypted'])?_0x15c06f(0x164):_0x15c06f(0x1af))+this[_0x15c06f(0x1c2)];}return'';}},'ok':{'value':function(_0x5807f4,_0x3df368,_0x813571=0x0){return{'code':_0x813571,'data':_0x5807f4,'extra':_0x3df368};}},'input':{'value':function(_0x226959,_0x553363){const _0x3fd015=_0x5471c6;var _0x276140;const _0x2bf664=lodash['defaultsDeep']({},this[_0x3fd015(0x1c1)][_0x3fd015(0x19e)]||this['request'][((_0x276140=_0x473538===null||_0x473538===void 0x0?void 0x0:_0x473538['bodyXml'])===null||_0x276140===void 0x0?void 0x0:_0x276140[_0x3fd015(0x12d)])||_0x3fd015(0x19e)]||{},this[_0x3fd015(0x1c1)]['query']||{});return _0x226959?lodash[_0x3fd015(0x174)](_0x2bf664,_0x226959,_0x553363):_0x2bf664;}},'when':{'value':async function(_0x5d9bfd,_0x167a92){const _0x13a13c=_0x5471c6,_0x4ba685=this[_0x13a13c(0x1b3)](_0x5d9bfd,null);if(!lodash['isNull'](_0x4ba685))return await _0x167a92(_0x4ba685);}},'only':{'value':function(_0x2a3b77){const _0x13957e=_0x5471c6,_0x3ff03b={};for(let _0x4e8421=0x0;_0x4e8421<_0x2a3b77[_0x13957e(0x133)];_0x4e8421++){lodash[_0x13957e(0x1ae)](_0x2a3b77[_0x4e8421])&&_0x2a3b77[_0x4e8421][_0x13957e(0x133)]>0x0&&lodash[_0x13957e(0x13f)](_0x2a3b77[_0x4e8421][0x0])&&(_0x3ff03b[_0x2a3b77[_0x4e8421][0x0]]=this[_0x13957e(0x1b3)](_0x2a3b77[_0x4e8421][0x0],_0x2a3b77[_0x4e8421][_0x13957e(0x133)]>0x1?_0x2a3b77[_0x4e8421][0x1]:null));}return _0x3ff03b;}},'koasend':{'value':async function(_0x3830fd,_0x3d3bba){const _0x13c5d4=_0x5471c6;if(_0x3830fd&&!fs[_0x13c5d4(0x14c)](_0x3830fd)&&!fs[_0x13c5d4(0x14c)](this['app'][_0x13c5d4(0x189)]()+'/'+_0x3830fd))return _0x13c5d4(0x1a5);return _0x3830fd=fs[_0x13c5d4(0x14c)](_0x3830fd)?_0x3830fd:this[_0x13c5d4(0x1b9)][_0x13c5d4(0x189)]()+'/'+_0x3830fd,this[_0x13c5d4(0x17b)](_0x3d3bba||_0x3830fd),await koasend(this,_0x3830fd);}}});});}async[a2_0x579694(0x1a0)](){const _0x5ea098=a2_0x579694;var _0x362b08,_0x40ca7e;if(fs['existsSync'](this[_0x5ea098(0x1b9)][_0x5ea098(0x1a7)]()+_0x5ea098(0x1b2))&&fs['statSync'](this[_0x5ea098(0x1b9)][_0x5ea098(0x1a7)]()+_0x5ea098(0x1b2))[_0x5ea098(0x186)]()){const _0x1d9cd6=this[_0x5ea098(0x152)][_0x5ea098(0x17c)](),_0x56b6da=((_0x362b08=_0x1d9cd6===null||_0x1d9cd6===void 0x0?void 0x0:_0x1d9cd6[_0x5ea098(0x169)])===null||_0x362b08===void 0x0?void 0x0:_0x362b08[_0x5ea098(0x163)])||{};for(const _0xac5c0e of fs[_0x5ea098(0x156)](this['app']['getBaseDir']()+_0x5ea098(0x1b2))){if(!fs[_0x5ea098(0x1b4)](this['app'][_0x5ea098(0x1a7)]()+_0x5ea098(0x1c3)+_0xac5c0e)['isDirectory']())continue;!(_0x56b6da===null||_0x56b6da===void 0x0?void 0x0:_0x56b6da[_0xac5c0e])&&(_0x56b6da[_0xac5c0e]=Object[_0x5ea098(0x12f)]({},((_0x40ca7e=_0x1d9cd6===null||_0x1d9cd6===void 0x0?void 0x0:_0x1d9cd6[_0x5ea098(0x169)])===null||_0x40ca7e===void 0x0?void 0x0:_0x40ca7e['default'])||{'maxSize':'1m','dir':this[_0x5ea098(0x1b9)][_0x5ea098(0x189)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x5ea098(0x13a)][_0x5ea098(0x159)](),'fileLogName':_0xac5c0e+_0x5ea098(0x149),'dir':this[_0x5ea098(0x1b9)][_0x5ea098(0x189)]()+_0x5ea098(0x176)+_0xac5c0e})),this['loggerService'][_0x5ea098(0x144)](_0xac5c0e,_0x56b6da[_0xac5c0e]);}Object[_0x5ea098(0x16e)](_0x56b6da)[_0x5ea098(0x133)]>0x0&&(!_0x1d9cd6[_0x5ea098(0x169)]&&(_0x1d9cd6[_0x5ea098(0x169)]={'default':{'maxSize':'1m','dir':this[_0x5ea098(0x1b9)][_0x5ea098(0x189)]()+_0x5ea098(0x129)}}),_0x1d9cd6[_0x5ea098(0x169)][_0x5ea098(0x163)]=_0x56b6da),this[_0x5ea098(0x152)][_0x5ea098(0x13e)](_0x1d9cd6);}}async['filterConfig'](){const _0x2a0b29=a2_0x579694;var _0x588c06,_0x4b7d2d,_0x78c64a,_0x43e874,_0x2c0202,_0x54150f;const _0x3c3162=this[_0x2a0b29(0x152)][_0x2a0b29(0x17c)]();((_0x4b7d2d=(_0x588c06=_0x3c3162===null||_0x3c3162===void 0x0?void 0x0:_0x3c3162[_0x2a0b29(0x175)])===null||_0x588c06===void 0x0?void 0x0:_0x588c06[_0x2a0b29(0x140)])===null||_0x4b7d2d===void 0x0?void 0x0:_0x4b7d2d[_0x2a0b29(0x17a)])&&Object[_0x2a0b29(0x16e)](_0x3c3162[_0x2a0b29(0x175)][_0x2a0b29(0x140)])[_0x2a0b29(0x133)]>0x1&&delete _0x3c3162[_0x2a0b29(0x175)]['devices']['DEFAULT'];if((_0x78c64a=_0x3c3162===null||_0x3c3162===void 0x0?void 0x0:_0x3c3162['staticFile'])===null||_0x78c64a===void 0x0?void 0x0:_0x78c64a[_0x2a0b29(0x146)])for(const _0x337ca4 in _0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)]){((_0x43e874=_0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)][_0x337ca4])===null||_0x43e874===void 0x0?void 0x0:_0x43e874[_0x2a0b29(0x147)])&&typeof((_0x2c0202=_0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)][_0x337ca4])===null||_0x2c0202===void 0x0?void 0x0:_0x2c0202[_0x2a0b29(0x147)])==_0x2a0b29(0x136)&&!fs['existsSync'](_0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)][_0x337ca4]['dir'])&&(fs[_0x2a0b29(0x1b7)](_0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)][_0x337ca4][_0x2a0b29(0x147)],{'recursive':!![]}),console[_0x2a0b29(0x196)](_0x2a0b29(0x130)+_0x3c3162[_0x2a0b29(0x13b)][_0x2a0b29(0x146)][_0x337ca4][_0x2a0b29(0x147)]));}((_0x54150f=_0x3c3162===null||_0x3c3162===void 0x0?void 0x0:_0x3c3162[_0x2a0b29(0x188)])===null||_0x54150f===void 0x0?void 0x0:_0x54150f[_0x2a0b29(0x132)])&&!fs['existsSync'](_0x3c3162[_0x2a0b29(0x188)][_0x2a0b29(0x132)])&&(fs[_0x2a0b29(0x1b7)](_0x3c3162[_0x2a0b29(0x188)][_0x2a0b29(0x132)],{'recursive':!![]}),console[_0x2a0b29(0x196)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x3c3162[_0x2a0b29(0x188)]['tmpdir'])),this['config'][_0x2a0b29(0x13e)](_0x3c3162);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a2_0x579694(0x18e)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a2_0x579694(0x1b9),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a2_0x579694(0x158)],a2_0x579694(0x152),void 0x0),__decorate([(0x0,core_1[a2_0x579694(0x153)])(),__metadata(a2_0x579694(0x183),core_2[a2_0x579694(0x16c)])],CustomConfiguration[a2_0x579694(0x158)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x579694(0x153)])(),__metadata(a2_0x579694(0x183),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x579694(0x158)],a2_0x579694(0x193),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x579694(0x183),core_2[a2_0x579694(0x1b6)])],CustomConfiguration[a2_0x579694(0x158)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x579694(0x153)])(),__metadata(a2_0x579694(0x183),core_1[a2_0x579694(0x12b)])],CustomConfiguration[a2_0x579694(0x158)],a2_0x579694(0x1b8),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x579694(0x183),ApiService_1[a2_0x579694(0x171)])],CustomConfiguration[a2_0x579694(0x158)],'ApiService',void 0x0),exports[a2_0x579694(0x135)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x579694(0x12e)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x579694(0x16f),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
function a2_0x120f(_0x2fd62f,_0xa4cb8b){const _0x54b728=a2_0x4ce9();return a2_0x120f=function(_0x5e3a2b,_0x43a8fb){_0x5e3a2b=_0x5e3a2b-0x1b3;let _0x4ce98a=_0x54b728[_0x5e3a2b];return _0x4ce98a;},a2_0x120f(_0x2fd62f,_0xa4cb8b);}const a2_0x4c5357=a2_0x120f;(function(_0x1d940a,_0x248dec){const _0x17b97f=a2_0x120f,_0x72cc2e=_0x1d940a();while(!![]){try{const _0x4a4ac1=-parseInt(_0x17b97f(0x243))/0x1*(parseInt(_0x17b97f(0x23c))/0x2)+parseInt(_0x17b97f(0x229))/0x3*(parseInt(_0x17b97f(0x1e4))/0x4)+parseInt(_0x17b97f(0x23f))/0x5*(-parseInt(_0x17b97f(0x219))/0x6)+-parseInt(_0x17b97f(0x1e8))/0x7*(parseInt(_0x17b97f(0x1d6))/0x8)+-parseInt(_0x17b97f(0x213))/0x9+-parseInt(_0x17b97f(0x1ed))/0xa+parseInt(_0x17b97f(0x20f))/0xb;if(_0x4a4ac1===_0x248dec)break;else _0x72cc2e['push'](_0x72cc2e['shift']());}catch(_0xd2a7c4){_0x72cc2e['push'](_0x72cc2e['shift']());}}}(a2_0x4ce9,0xca126));const a2_0x43a8fb=(function(){let _0x26ff15=!![];return function(_0x14d619,_0x40acd3){const _0x4f13b5=_0x26ff15?function(){const _0x10e99d=a2_0x120f;if(_0x40acd3){const _0x408fa0=_0x40acd3[_0x10e99d(0x1d7)](_0x14d619,arguments);return _0x40acd3=null,_0x408fa0;}}:function(){};return _0x26ff15=![],_0x4f13b5;};}()),a2_0x5e3a2b=a2_0x43a8fb(this,function(){const _0x24bfcc=a2_0x120f;return a2_0x5e3a2b['toString']()['search'](_0x24bfcc(0x244))[_0x24bfcc(0x1d9)]()[_0x24bfcc(0x1e7)](a2_0x5e3a2b)[_0x24bfcc(0x214)]('(((.+)+)+)+$');});a2_0x5e3a2b();'use strict';var __decorate=this&&this[a2_0x4c5357(0x209)]||function(_0x14e67b,_0x5378fb,_0x7e74c9,_0x3cde22){const _0x2ab75d=a2_0x4c5357;var _0xdcebf7=arguments[_0x2ab75d(0x1d2)],_0x3b8610=_0xdcebf7<0x3?_0x5378fb:_0x3cde22===null?_0x3cde22=Object[_0x2ab75d(0x247)](_0x5378fb,_0x7e74c9):_0x3cde22,_0x28f610;if(typeof Reflect===_0x2ab75d(0x227)&&typeof Reflect[_0x2ab75d(0x1b4)]===_0x2ab75d(0x204))_0x3b8610=Reflect['decorate'](_0x14e67b,_0x5378fb,_0x7e74c9,_0x3cde22);else{for(var _0x2058c8=_0x14e67b[_0x2ab75d(0x1d2)]-0x1;_0x2058c8>=0x0;_0x2058c8--)if(_0x28f610=_0x14e67b[_0x2058c8])_0x3b8610=(_0xdcebf7<0x3?_0x28f610(_0x3b8610):_0xdcebf7>0x3?_0x28f610(_0x5378fb,_0x7e74c9,_0x3b8610):_0x28f610(_0x5378fb,_0x7e74c9))||_0x3b8610;}return _0xdcebf7>0x3&&_0x3b8610&&Object[_0x2ab75d(0x207)](_0x5378fb,_0x7e74c9,_0x3b8610),_0x3b8610;},__metadata=this&&this[a2_0x4c5357(0x216)]||function(_0xd092a5,_0x2df330){const _0x31cefb=a2_0x4c5357;if(typeof Reflect===_0x31cefb(0x227)&&typeof Reflect['metadata']==='function')return Reflect[_0x31cefb(0x230)](_0xd092a5,_0x2df330);};function a2_0x4ce9(){const _0x3449da=['requestKey','name','staticFile','88136LtzIDK','dirs','@anncic-api/core','constructor','28LtFSsv','DEFAULT','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','clients','devices','11075770LzcCWi','/runtime','INTERCEPT_KEY','mkdirSync','ACTION_ROUTE_KEY','/runtime/apps-','getAppDir','getApplications','tmpdir','config','environment','host','module','.log','文件不存在','onReady','defaultsDeep','@anncic-api/cache','default','body','context','@midwayjs/upload','anncic-apihelper','function','__esModule','MidwayConfigService','defineProperty','input','__decorate','CustomConfiguration','https://','@midwayjs/static-file','isDirectory','requestMethod','40646639yTrnMK','http://','device','addObject','9574263hhlppE','search','log','__metadata','request','includes','30xAJKRV','isClass','target','headers','statSync','ApiError','REQUEST_OBJ_CTX_KEY','hanlderApplications','handler','createLogger','isFunction','ACTION_KEY','lastIndexOf','koa','object','AppsConfigTmp','204CcJclp','app','path','bodyXml','@midwayjs/koa','forEach','Types','metadata','application','ApiService','anncic-api','MidwayLoggerService','./exception/ApiError','getConfiguration','@midwayjs/core','startsWith','get','keys','koa-send','108348pbkPwN','connection','http','340165gREQMP','checksign','loggerConfig','req','25SeFIan','(((.+)+)+)+$','./types/intercept','method','getOwnPropertyDescriptor','loggerService','isDevelopmentEnvironment','assign','_matchedRouteMeta','decorate','tagName','parse','./config/config.default','_matchedRoute','midwayLogger','./types/action','dir','existsSync','string','toLowerCase','readdirSync','filterConfig','anncicapi','App','isArray','@midwayjs/cross-domain','upload','Anncic-api\x20static-file\x20:\x20mkdir\x20','decorator','match','getBaseDir','design:type','443','/apps','MidwayApplicationManager','attachment','_UNKNOW_','/apps/','./service/ApiService','length','undefined','Inject','substring','999752ltClxV','apply','getClassMetadata','toString','getAsync','defineProperties','prototype','key','apimit','handlerActionRoute','filepath'];a2_0x4ce9=function(){return _0x3449da;};return a2_0x4ce9();}Object[a2_0x4c5357(0x207)](exports,a2_0x4c5357(0x205),{'value':!![]}),exports[a2_0x4c5357(0x20a)]=void 0x0;const core_1=require(a2_0x4c5357(0x237)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4c5357(0x235)),ApiService_1=require(a2_0x4c5357(0x1d1)),intercept_1=require(a2_0x4c5357(0x245)),action_1=require(a2_0x4c5357(0x1ba)),fs=require('fs'),koasend=require(a2_0x4c5357(0x23b)),koa=require(a2_0x4c5357(0x22d)),upload=require(a2_0x4c5357(0x202)),staticFile=require(a2_0x4c5357(0x20c)),crossDomain=require(a2_0x4c5357(0x1c4)),ConfigDefault=require(a2_0x4c5357(0x1b7)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x4c5357(0x1e6)),anncicCache=require(a2_0x4c5357(0x1fe)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x4c5357(0x203));let CustomConfiguration=class CustomConfiguration{async[a2_0x4c5357(0x1fc)](){const _0xf1b9c9=a2_0x4c5357;await this[_0xf1b9c9(0x1c0)](),await this['loggerConfig'](),await this['handlerActionRoute'](),await this[_0xf1b9c9(0x220)]();}async[a2_0x4c5357(0x1df)](){const _0x1b6001=a2_0x4c5357,_0x371692=this[_0x1b6001(0x1f6)][_0x1b6001(0x236)](),_0x14dd8f=(0x0,core_1[_0x1b6001(0x1d8)])(intercept_1[_0x1b6001(0x1ef)],intercept_1['InterceptTargetTmp'])||{};this[_0x1b6001(0x1c7)]['registerMethodHandler'](action_1[_0x1b6001(0x1f1)],_0x370b67=>{const _0x3ed552=_0x1b6001;var _0x2e6c4e;const _0x24810c=(0x0,core_1[_0x3ed552(0x1d8)])(action_1['APPSCONFIG_KEY'],action_1[_0x3ed552(0x228)])||{},_0x5e7069=_0x370b67[_0x3ed552(0x230)],_0x4f1c24=(0x0,core_1['getClassMetadata'])(action_1[_0x3ed552(0x224)],_0x370b67[_0x3ed552(0x21b)])||{},_0x312047=((_0x2e6c4e=_0x4f1c24===null||_0x4f1c24===void 0x0?void 0x0:_0x4f1c24[_0x3ed552(0x1e0)])===null||_0x2e6c4e===void 0x0?void 0x0:_0x2e6c4e[_0x3ed552(0x1d5)](0x0,_0x4f1c24[_0x3ed552(0x1e0)][_0x3ed552(0x225)]('.')))||'',_0x45fb3b=(_0x4f1c24===null||_0x4f1c24===void 0x0?void 0x0:_0x4f1c24[_0x3ed552(0x1f9)])?(_0x24810c===null||_0x24810c===void 0x0?void 0x0:_0x24810c[_0x4f1c24[_0x3ed552(0x1f9)]])||{}:{};return{'before':async _0x28aa63=>{const _0x2f8976=_0x3ed552;var _0x3b80af,_0x319721,_0x34b097,_0x5e22ee;const _0x1f4d0a=(_0x3b80af=_0x28aa63===null||_0x28aa63===void 0x0?void 0x0:_0x28aa63[_0x2f8976(0x21b)])===null||_0x3b80af===void 0x0?void 0x0:_0x3b80af[core_2[_0x2f8976(0x21f)]],_0x28acf2=lodash[_0x2f8976(0x1fd)]({},_0x1f4d0a[_0x2f8976(0x217)][_0x2f8976(0x200)]||_0x1f4d0a[_0x2f8976(0x217)][((_0x319721=_0x371692===null||_0x371692===void 0x0?void 0x0:_0x371692[_0x2f8976(0x22c)])===null||_0x319721===void 0x0?void 0x0:_0x319721['key'])||_0x2f8976(0x200)]||{},_0x1f4d0a[_0x2f8976(0x217)]['query']||{});_0x1f4d0a[_0x2f8976(0x1b3)]={'module':(_0x45fb3b===null||_0x45fb3b===void 0x0?void 0x0:_0x45fb3b[_0x2f8976(0x1e2)])||'','routePath':''+_0x1f4d0a[_0x2f8976(0x22b)],'routeName':_0x4f1c24['routerOptions'][_0x2f8976(0x1b5)]+'@'+_0x5e7069['routerName'],'routeMethod':((_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069[_0x2f8976(0x20e)])||_0x1f4d0a['method']||'')['toLowerCase'](),'routeDescription':(_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069['description'])||'','filemethod':_0x312047+'@'+(_0x5e7069[_0x2f8976(0x246)]||'')};if(_0x1f4d0a&&(_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069[_0x2f8976(0x1de)]))try{const _0x1b2f08=((_0x34b097=_0x371692===null||_0x371692===void 0x0?void 0x0:_0x371692[_0x2f8976(0x1c1)])===null||_0x34b097===void 0x0?void 0x0:_0x34b097[_0x2f8976(0x1e1)])&&typeof(_0x28acf2===null||_0x28acf2===void 0x0?void 0x0:_0x28acf2[_0x371692['anncicapi']['requestKey']])==_0x2f8976(0x1bd)?JSON[_0x2f8976(0x1b6)](base64_decode(_0x28acf2[_0x371692[_0x2f8976(0x1c1)][_0x2f8976(0x1e1)]])||'{}')||{}:((_0x5e22ee=_0x1f4d0a===null||_0x1f4d0a===void 0x0?void 0x0:_0x1f4d0a[_0x2f8976(0x217)])===null||_0x5e22ee===void 0x0?void 0x0:_0x5e22ee[_0x2f8976(0x21c)])||{};if(!this[_0x2f8976(0x232)][_0x2f8976(0x240)](_0x1b2f08))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}catch(_0x4ce0a1){if(_0x4ce0a1 instanceof AnnError)throw _0x4ce0a1;else throw new AnnError(ApiError_1[_0x2f8976(0x21e)][_0x2f8976(0x1cf)]);}},'around':async _0x551a18=>{const _0x205878=_0x3ed552;var _0x4d8a18,_0x3f0d52,_0x51f221;const _0x4e10f4=(_0x4d8a18=_0x551a18===null||_0x551a18===void 0x0?void 0x0:_0x551a18[_0x205878(0x21b)])===null||_0x4d8a18===void 0x0?void 0x0:_0x4d8a18[core_2[_0x205878(0x21f)]];if(_0x4e10f4&&(_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069[_0x205878(0x1de)])&&((_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069['intercept'])||typeof(_0x5e7069===null||_0x5e7069===void 0x0?void 0x0:_0x5e7069['intercept'])==_0x205878(0x1d3))){if(((_0x3f0d52=_0x4e10f4[_0x205878(0x21c)])===null||_0x3f0d52===void 0x0?void 0x0:_0x3f0d52[_0x205878(0x211)])&&((_0x51f221=_0x14dd8f===null||_0x14dd8f===void 0x0?void 0x0:_0x14dd8f[_0x4e10f4[_0x205878(0x21c)][_0x205878(0x211)]])===null||_0x51f221===void 0x0?void 0x0:_0x51f221[_0x205878(0x1d2)])>0x0)for(const _0x5c47ca of _0x14dd8f[_0x4e10f4['headers'][_0x205878(0x211)]]||[]){if(core_1[_0x205878(0x22f)][_0x205878(0x21a)](_0x5c47ca)){const _0x54f29b=await _0x4e10f4['requestContext'][_0x205878(0x1da)](_0x5c47ca);typeof(_0x54f29b===null||_0x54f29b===void 0x0?void 0x0:_0x54f29b[_0x205878(0x1c8)])==_0x205878(0x204)?await _0x54f29b[_0x205878(0x1c8)](_0x4e10f4,typeof(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x246)])==_0x205878(0x1bd)&&(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x1b8)])?_0x4e10f4[_0x205878(0x246)][_0x205878(0x1be)]()+'@'+(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4['_matchedRoute']):undefined,_0x5e7069)&&await _0x54f29b[_0x205878(0x221)](_0x4e10f4,typeof(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x246)])==_0x205878(0x1bd)&&(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x1b8)])?_0x4e10f4[_0x205878(0x246)][_0x205878(0x1be)]()+'@'+(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4['_matchedRoute']):undefined,_0x5e7069):await _0x54f29b[_0x205878(0x221)](_0x4e10f4,typeof(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4['method'])==_0x205878(0x1bd)&&(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x1b8)])?_0x4e10f4[_0x205878(0x246)][_0x205878(0x1be)]()+'@'+(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4['_matchedRoute']):undefined,_0x5e7069);}else core_1['Types'][_0x205878(0x223)](_0x5c47ca)&&await _0x5c47ca(_0x4e10f4,typeof(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x246)])==_0x205878(0x1bd)&&(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4[_0x205878(0x1b8)])?_0x4e10f4[_0x205878(0x246)][_0x205878(0x1be)]()+'@'+(_0x4e10f4===null||_0x4e10f4===void 0x0?void 0x0:_0x4e10f4['_matchedRoute']):undefined,_0x5e7069);}}return await _0x551a18['proceed'](..._0x551a18['args']);},'afterThrow':(_0x33b48d,_0x1aaf04)=>{throw _0x1aaf04;}};});}async[a2_0x4c5357(0x220)](){const _0x3a4c7a=a2_0x4c5357,_0x5f02a0=this['config'][_0x3a4c7a(0x236)]();this[_0x3a4c7a(0x231)][_0x3a4c7a(0x1f4)]([_0x3a4c7a(0x226)])[_0x3a4c7a(0x22e)](_0x51eb88=>{const _0x24285c=_0x3a4c7a;(_0x51eb88===null||_0x51eb88===void 0x0?void 0x0:_0x51eb88[_0x24285c(0x201)])&&Object[_0x24285c(0x1db)](_0x51eb88[_0x24285c(0x201)],{'hosturl':{'configurable':![],'get':function(){const _0x132511=_0x24285c;var _0x45e583,_0x41f3e6,_0x1990a8,_0x4fd7db;if((this===null||this===void 0x0?void 0x0:this[_0x132511(0x1f8)])&&!this['host'][_0x132511(0x238)](_0x132511(0x23e))){let _0x8b3191=this[_0x132511(0x1f8)]['split'](':');return['80',_0x132511(0x1cb)][_0x132511(0x218)](_0x8b3191===null||_0x8b3191===void 0x0?void 0x0:_0x8b3191[0x1])?''+(!!((_0x41f3e6=(_0x45e583=this===null||this===void 0x0?void 0x0:this[_0x132511(0x242)])===null||_0x45e583===void 0x0?void 0x0:_0x45e583[_0x132511(0x23d)])===null||_0x41f3e6===void 0x0?void 0x0:_0x41f3e6['encrypted'])||(_0x8b3191===null||_0x8b3191===void 0x0?void 0x0:_0x8b3191[0x1])=='443'?_0x132511(0x20b):_0x132511(0x210))+_0x8b3191[0x0]:''+(!!((_0x4fd7db=(_0x1990a8=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x1990a8===void 0x0?void 0x0:_0x1990a8['connection'])===null||_0x4fd7db===void 0x0?void 0x0:_0x4fd7db['encrypted'])?_0x132511(0x20b):'http://')+this[_0x132511(0x1f8)];}return'';}},'ok':{'value':function(_0x223430,_0x904c99,_0x308dda=0x0){return{'code':_0x308dda,'data':_0x223430,'extra':_0x904c99};}},'input':{'value':function(_0x44c3ef,_0x1928aa){const _0x496b41=_0x24285c;var _0x5820ae;const _0x4cd00d=lodash['defaultsDeep']({},this['request'][_0x496b41(0x200)]||this['request'][((_0x5820ae=_0x5f02a0===null||_0x5f02a0===void 0x0?void 0x0:_0x5f02a0[_0x496b41(0x22c)])===null||_0x5820ae===void 0x0?void 0x0:_0x5820ae[_0x496b41(0x1dd)])||_0x496b41(0x200)]||{},this['request']['query']||{});return _0x44c3ef?lodash[_0x496b41(0x239)](_0x4cd00d,_0x44c3ef,_0x1928aa):_0x4cd00d;}},'when':{'value':async function(_0x371de7,_0x76c146){const _0x561696=_0x24285c,_0x2d48c9=this[_0x561696(0x208)](_0x371de7,null);if(!lodash['isNull'](_0x2d48c9))return await _0x76c146(_0x2d48c9);}},'only':{'value':function(_0x45b069){const _0x5b32b1=_0x24285c,_0x1c869d={};for(let _0x1a617d=0x0;_0x1a617d<_0x45b069[_0x5b32b1(0x1d2)];_0x1a617d++){lodash[_0x5b32b1(0x1c3)](_0x45b069[_0x1a617d])&&_0x45b069[_0x1a617d]['length']>0x0&&lodash['isString'](_0x45b069[_0x1a617d][0x0])&&(_0x1c869d[_0x45b069[_0x1a617d][0x0]]=this[_0x5b32b1(0x208)](_0x45b069[_0x1a617d][0x0],_0x45b069[_0x1a617d][_0x5b32b1(0x1d2)]>0x1?_0x45b069[_0x1a617d][0x1]:null));}return _0x1c869d;}},'koasend':{'value':async function(_0x2464dd,_0x20ad6c){const _0x72ef98=_0x24285c;if(_0x2464dd&&!fs[_0x72ef98(0x1bc)](_0x2464dd)&&!fs[_0x72ef98(0x1bc)](this[_0x72ef98(0x22a)][_0x72ef98(0x1f3)]()+'/'+_0x2464dd))return _0x72ef98(0x1fb);return _0x2464dd=fs[_0x72ef98(0x1bc)](_0x2464dd)?_0x2464dd:this['app']['getAppDir']()+'/'+_0x2464dd,this[_0x72ef98(0x1ce)](_0x20ad6c||_0x2464dd),await koasend(this,_0x2464dd);}}});});}async[a2_0x4c5357(0x241)](){const _0xb87d32=a2_0x4c5357;var _0x5d2cc4,_0x3154bf;if(fs[_0xb87d32(0x1bc)](this[_0xb87d32(0x22a)]['getBaseDir']()+'/apps')&&fs[_0xb87d32(0x21d)](this[_0xb87d32(0x22a)][_0xb87d32(0x1c9)]()+_0xb87d32(0x1cc))['isDirectory']()){const _0x301663=this['config'][_0xb87d32(0x236)](),_0x494830=((_0x5d2cc4=_0x301663===null||_0x301663===void 0x0?void 0x0:_0x301663[_0xb87d32(0x1b9)])===null||_0x5d2cc4===void 0x0?void 0x0:_0x5d2cc4[_0xb87d32(0x1eb)])||{};for(const _0xd03dcf of fs[_0xb87d32(0x1bf)](this[_0xb87d32(0x22a)][_0xb87d32(0x1c9)]()+_0xb87d32(0x1cc))){if(!fs[_0xb87d32(0x21d)](this['app']['getBaseDir']()+_0xb87d32(0x1d0)+_0xd03dcf)[_0xb87d32(0x20d)]())continue;!(_0x494830===null||_0x494830===void 0x0?void 0x0:_0x494830[_0xd03dcf])&&(_0x494830[_0xd03dcf]=Object[_0xb87d32(0x24a)]({},((_0x3154bf=_0x301663===null||_0x301663===void 0x0?void 0x0:_0x301663[_0xb87d32(0x1b9)])===null||_0x3154bf===void 0x0?void 0x0:_0x3154bf[_0xb87d32(0x1ff)])||{'maxSize':'1m','dir':this[_0xb87d32(0x22a)][_0xb87d32(0x1f3)]()+_0xb87d32(0x1ee)},{'enableJSON':!![],'enableConsole':this[_0xb87d32(0x1f7)][_0xb87d32(0x249)](),'fileLogName':_0xd03dcf+_0xb87d32(0x1fa),'dir':this['app'][_0xb87d32(0x1f3)]()+_0xb87d32(0x1f2)+_0xd03dcf})),this[_0xb87d32(0x248)][_0xb87d32(0x222)](_0xd03dcf,_0x494830[_0xd03dcf]);}Object[_0xb87d32(0x23a)](_0x494830)[_0xb87d32(0x1d2)]>0x0&&(!_0x301663['midwayLogger']&&(_0x301663[_0xb87d32(0x1b9)]={'default':{'maxSize':'1m','dir':this[_0xb87d32(0x22a)][_0xb87d32(0x1f3)]()+'/runtime'}}),_0x301663[_0xb87d32(0x1b9)]['clients']=_0x494830),this[_0xb87d32(0x1f6)][_0xb87d32(0x212)](_0x301663);}}async[a2_0x4c5357(0x1c0)](){const _0x1e12af=a2_0x4c5357;var _0xa0e829,_0x5273a1,_0x2423b8,_0x16f935,_0x353af2,_0x3dcc4e;const _0x1d950e=this[_0x1e12af(0x1f6)][_0x1e12af(0x236)]();((_0x5273a1=(_0xa0e829=_0x1d950e===null||_0x1d950e===void 0x0?void 0x0:_0x1d950e[_0x1e12af(0x1c1)])===null||_0xa0e829===void 0x0?void 0x0:_0xa0e829[_0x1e12af(0x1ec)])===null||_0x5273a1===void 0x0?void 0x0:_0x5273a1[_0x1e12af(0x1e9)])&&Object[_0x1e12af(0x23a)](_0x1d950e[_0x1e12af(0x1c1)][_0x1e12af(0x1ec)])[_0x1e12af(0x1d2)]>0x1&&delete _0x1d950e['anncicapi'][_0x1e12af(0x1ec)]['DEFAULT'];if((_0x2423b8=_0x1d950e===null||_0x1d950e===void 0x0?void 0x0:_0x1d950e[_0x1e12af(0x1e3)])===null||_0x2423b8===void 0x0?void 0x0:_0x2423b8['dirs'])for(const _0x2c238e in _0x1d950e[_0x1e12af(0x1e3)][_0x1e12af(0x1e5)]){((_0x16f935=_0x1d950e[_0x1e12af(0x1e3)][_0x1e12af(0x1e5)][_0x2c238e])===null||_0x16f935===void 0x0?void 0x0:_0x16f935['dir'])&&typeof((_0x353af2=_0x1d950e[_0x1e12af(0x1e3)][_0x1e12af(0x1e5)][_0x2c238e])===null||_0x353af2===void 0x0?void 0x0:_0x353af2[_0x1e12af(0x1bb)])=='string'&&!fs[_0x1e12af(0x1bc)](_0x1d950e['staticFile'][_0x1e12af(0x1e5)][_0x2c238e][_0x1e12af(0x1bb)])&&(fs[_0x1e12af(0x1f0)](_0x1d950e[_0x1e12af(0x1e3)]['dirs'][_0x2c238e][_0x1e12af(0x1bb)],{'recursive':!![]}),console[_0x1e12af(0x215)](_0x1e12af(0x1c6)+_0x1d950e[_0x1e12af(0x1e3)]['dirs'][_0x2c238e][_0x1e12af(0x1bb)]));}((_0x3dcc4e=_0x1d950e===null||_0x1d950e===void 0x0?void 0x0:_0x1d950e[_0x1e12af(0x1c5)])===null||_0x3dcc4e===void 0x0?void 0x0:_0x3dcc4e[_0x1e12af(0x1f5)])&&!fs[_0x1e12af(0x1bc)](_0x1d950e[_0x1e12af(0x1c5)][_0x1e12af(0x1f5)])&&(fs[_0x1e12af(0x1f0)](_0x1d950e['upload'][_0x1e12af(0x1f5)],{'recursive':!![]}),console[_0x1e12af(0x215)](_0x1e12af(0x1ea)+_0x1d950e[_0x1e12af(0x1c5)]['tmpdir'])),this[_0x1e12af(0x1f6)][_0x1e12af(0x212)](_0x1d950e);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a2_0x4c5357(0x1c2)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a2_0x4c5357(0x22a),void 0x0),__decorate([(0x0,core_1[a2_0x4c5357(0x1d4)])(),__metadata(a2_0x4c5357(0x1ca),core_2[a2_0x4c5357(0x206)])],CustomConfiguration[a2_0x4c5357(0x1dc)],a2_0x4c5357(0x1f6),void 0x0),__decorate([(0x0,core_1[a2_0x4c5357(0x1d4)])(),__metadata(a2_0x4c5357(0x1ca),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x4c5357(0x1dc)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x4c5357(0x1d4)])(),__metadata(a2_0x4c5357(0x1ca),core_2[a2_0x4c5357(0x1cd)])],CustomConfiguration[a2_0x4c5357(0x1dc)],a2_0x4c5357(0x231),void 0x0),__decorate([(0x0,core_1[a2_0x4c5357(0x1d4)])(),__metadata(a2_0x4c5357(0x1ca),core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x4c5357(0x1f7),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4c5357(0x1ca),core_1[a2_0x4c5357(0x234)])],CustomConfiguration[a2_0x4c5357(0x1dc)],a2_0x4c5357(0x248),void 0x0),__decorate([(0x0,core_1[a2_0x4c5357(0x1d4)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x4c5357(0x1dc)],a2_0x4c5357(0x232),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4c5357(0x233),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x2f29e2=a3_0x3b3e;(function(_0x27f48a,_0x461f8b){const _0x50a40b=a3_0x3b3e,_0x3815ca=_0x27f48a();while(!![]){try{const _0xe0d294=parseInt(_0x50a40b(0x1dd))/0x1*(parseInt(_0x50a40b(0x1ff))/0x2)+-parseInt(_0x50a40b(0x1e4))/0x3+-parseInt(_0x50a40b(0x218))/0x4*(-parseInt(_0x50a40b(0x216))/0x5)+-parseInt(_0x50a40b(0x1d4))/0x6*(-parseInt(_0x50a40b(0x219))/0x7)+parseInt(_0x50a40b(0x1eb))/0x8*(parseInt(_0x50a40b(0x1f9))/0x9)+-parseInt(_0x50a40b(0x1dc))/0xa+parseInt(_0x50a40b(0x208))/0xb;if(_0xe0d294===_0x461f8b)break;else _0x3815ca['push'](_0x3815ca['shift']());}catch(_0x5a6779){_0x3815ca['push'](_0x3815ca['shift']());}}}(a3_0x8b50,0xaa5dc));const a3_0x1a58c0=(function(){let _0x1d2074=!![];return function(_0x1a91c9,_0x117ca7){const _0x1d6807=_0x1d2074?function(){const _0x1e1921=a3_0x3b3e;if(_0x117ca7){const _0x1c632a=_0x117ca7[_0x1e1921(0x20f)](_0x1a91c9,arguments);return _0x117ca7=null,_0x1c632a;}}:function(){};return _0x1d2074=![],_0x1d6807;};}()),a3_0x5c192d=a3_0x1a58c0(this,function(){const _0x33768a=a3_0x3b3e;return a3_0x5c192d['toString']()[_0x33768a(0x206)]('(((.+)+)+)+$')[_0x33768a(0x1ee)]()[_0x33768a(0x1e7)](a3_0x5c192d)[_0x33768a(0x206)](_0x33768a(0x215));});function a3_0x8b50(){const _0xa22f8f=['Action','get','split','prefix','45RDVLhJ','isArray','routerName','substring','validate','join','958898CvDNDc','rootpath','createCustomMethodDecorator','startsWith','route','../types/action','attachClassMetadata','search','middlewareIgnore','10768395JCtcOt','intercept','trim','/apps/','apimit','ACTION_KEY','app/controller/','apply','ActionApi','string','@anncic-api/validator','AppsConfigTmp','filepath','(((.+)+)+)+$','1685cJezxF','/config.','4804YZmrDh','7ORQzpC','module','middleware','-action','RequestMapping','ACTION_ROUTE_KEY','\x20文件请放在app/controller/文件下','\x20文件请放在apps/','1344066UccAiz','-controller','saveModule','@midwayjs/core','indexOf','existsSync','toLowerCase','saveClassMetadata','13104650tXFSmA','1BKBCGJ','replace','tagName','defineProperty','endsWith','undefined','parseRoute','2289486sbwfUP','getClassMetadata','splice','constructor','validationOptions','__esModule','Controller','1094888krnLXq','apps/','cwd','toString','/controller/','match','filter','description','APPSCONFIG_KEY','length'];a3_0x8b50=function(){return _0xa22f8f;};return a3_0x8b50();}function a3_0x3b3e(_0x1ae91e,_0x2d4f9a){const _0x4be9dc=a3_0x8b50();return a3_0x3b3e=function(_0x5c192d,_0x1a58c0){_0x5c192d=_0x5c192d-0x1cd;let _0x8b5023=_0x4be9dc[_0x5c192d];return _0x8b5023;},a3_0x3b3e(_0x1ae91e,_0x2d4f9a);}a3_0x5c192d();'use strict';Object[a3_0x2f29e2(0x1e0)](exports,a3_0x2f29e2(0x1e9),{'value':!![]}),exports['parseRoute']=exports[a3_0x2f29e2(0x210)]=exports[a3_0x2f29e2(0x1f5)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x2f29e2(0x212)),core_1=require(a3_0x2f29e2(0x1d7)),core_2=require(a3_0x2f29e2(0x1d7)),action_1=require(a3_0x2f29e2(0x204));function Action(_0xfecbd7,_0x1e6740,_0x44f154={'middleware':[],'sensitive':!![]}){return _0x2ccadc=>{const _0x4c1706=a3_0x3b3e;var _0x4f23ce;_0x44f154[_0x4c1706(0x1df)]=_0x1e6740;const _0x4a3ed2=parseRoute(_0xfecbd7);if(_0x4a3ed2['module']){_0x44f154[_0x4c1706(0x1f8)]=_0x44f154[_0x4c1706(0x1f8)]?'/'+_0x4a3ed2[_0x4c1706(0x1cd)]+'/'+_0x44f154['prefix']:'/'+_0x4a3ed2[_0x4c1706(0x203)];_0x4a3ed2[_0x4c1706(0x1f8)]&&(_0x44f154[_0x4c1706(0x1f8)]='/'+_0x4a3ed2[_0x4c1706(0x1f8)]+'/'+_0x44f154[_0x4c1706(0x1f8)]);if(fs[_0x4c1706(0x1d9)](_0x4a3ed2[_0x4c1706(0x200)]+_0x4c1706(0x20b)+_0x4a3ed2[_0x4c1706(0x1cd)]+_0x4c1706(0x217)+(lodash[_0x4c1706(0x1e1)](_0x4a3ed2[_0x4c1706(0x214)],'ts')?'ts':'js'))){const _0x403d5f=include(_0x4a3ed2[_0x4c1706(0x200)]+_0x4c1706(0x20b)+_0x4a3ed2[_0x4c1706(0x1cd)]+'/config.'+(lodash[_0x4c1706(0x1e1)](_0x4a3ed2[_0x4c1706(0x214)],'ts')?'ts':'js'));if(lodash[_0x4c1706(0x1fa)](_0x403d5f[_0x4c1706(0x1ce)])&&_0x403d5f['middleware'][_0x4c1706(0x1f4)]>0x0)for(let _0x211ada in _0x403d5f[_0x4c1706(0x1ce)]){if(((_0x4f23ce=_0x403d5f===null||_0x403d5f===void 0x0?void 0x0:_0x403d5f['middlewareIgnore'])===null||_0x4f23ce===void 0x0?void 0x0:_0x4f23ce[_0x4c1706(0x1f4)])>0x0&&_0x403d5f['middlewareIgnore'][_0x4c1706(0x1d8)](_0x403d5f[_0x4c1706(0x1ce)][_0x211ada])!=-0x1)continue;_0x44f154[_0x4c1706(0x1ce)]['push'](_0x403d5f[_0x4c1706(0x1ce)][_0x211ada]);}const _0x2f8da1=(0x0,core_1[_0x4c1706(0x1e5)])(action_1[_0x4c1706(0x1f3)],action_1[_0x4c1706(0x213)])||{};_0x2f8da1[''+_0x4a3ed2[_0x4c1706(0x1cd)]]=_0x403d5f,(0x0,core_1[_0x4c1706(0x1db)])(action_1[_0x4c1706(0x1f3)],_0x2f8da1,action_1[_0x4c1706(0x213)]);}_0x44f154[_0x4c1706(0x1f8)]=_0x44f154[_0x4c1706(0x1f8)]['toLowerCase']()[_0x4c1706(0x1de)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x4c1706(0x20d)],_0x2ccadc),(0x0,core_1[_0x4c1706(0x1ea)])(_0x44f154['prefix'],_0x44f154)(_0x2ccadc),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x44f154['prefix'],'pprefix':_0x4a3ed2['prefix'],'module':_0x4a3ed2[_0x4c1706(0x1cd)],'filepath':_0x4a3ed2[_0x4c1706(0x214)],'routerOptions':_0x44f154},_0x2ccadc);}else _0x44f154[_0x4c1706(0x1f8)]=_0x44f154[_0x4c1706(0x1f8)]?'/'+_0x44f154['prefix']:'/'+_0x4a3ed2[_0x4c1706(0x203)],_0x4a3ed2[_0x4c1706(0x1f8)]&&(_0x44f154[_0x4c1706(0x1f8)]='/'+_0x4a3ed2[_0x4c1706(0x1f8)]+'/'+_0x44f154[_0x4c1706(0x1f8)]),_0x44f154[_0x4c1706(0x1f8)]=_0x44f154[_0x4c1706(0x1f8)][_0x4c1706(0x1da)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x4c1706(0x1d6)])(action_1[_0x4c1706(0x20d)],_0x2ccadc),(0x0,core_1[_0x4c1706(0x1ea)])(_0x44f154[_0x4c1706(0x1f8)],_0x44f154)(_0x2ccadc),(0x0,core_1['saveClassMetadata'])(action_1[_0x4c1706(0x20d)],{'prefix':_0x44f154[_0x4c1706(0x1f8)],'module':_0x4a3ed2[_0x4c1706(0x1cd)],'pprefix':_0x4a3ed2['prefix'],'filepath':_0x4a3ed2[_0x4c1706(0x214)],'routerOptions':_0x44f154},_0x2ccadc);};}exports[a3_0x2f29e2(0x1f5)]=Action,Action[a3_0x2f29e2(0x1f6)]=function(_0x3055d4,_0x4ef0db='/',_0x2215da={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4dbc8a,_0x1a7773,_0x5de642)=>{const _0x458461=a3_0x3b3e;ActionApi(_0x3055d4,_0x458461(0x1f6),_0x4ef0db,_0x2215da)(_0x4dbc8a,_0x1a7773,_0x5de642);};},Action['post']=function(_0x24faac,_0x55f4eb='/',_0x50d09e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4f7e5a,_0x13ecad,_0x546078)=>{ActionApi(_0x24faac,'post',_0x55f4eb,_0x50d09e)(_0x4f7e5a,_0x13ecad,_0x546078);};};function ActionApi(_0x49cffb,_0x10aec8=a3_0x2f29e2(0x1f6),_0x48e651='/',_0x2eb1bb={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x28ea00,_0x15d79d,_0x2e2ebf)=>{const _0x178fdc=a3_0x3b3e;var _0x40276e,_0x2a464e,_0x2f49d2;!_0x2eb1bb['middleware']&&(_0x2eb1bb[_0x178fdc(0x1ce)]=[]);!((_0x40276e=_0x2eb1bb===null||_0x2eb1bb===void 0x0?void 0x0:_0x2eb1bb[_0x178fdc(0x1fd)])===null||_0x40276e===void 0x0?void 0x0:_0x40276e[_0x178fdc(0x1e8)])&&(_0x2eb1bb['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x178fdc(0x211)}});if(!_0x48e651)_0x48e651='/';else typeof _0x48e651==_0x178fdc(0x211)&&(!_0x48e651[_0x178fdc(0x202)]('/')&&!_0x48e651[_0x178fdc(0x202)]('-')&&(_0x48e651='/'+_0x48e651));typeof _0x2eb1bb[_0x178fdc(0x20c)]==_0x178fdc(0x1e2)&&(_0x2eb1bb[_0x178fdc(0x20c)]=!![]);if(((_0x2a464e=_0x2eb1bb===null||_0x2eb1bb===void 0x0?void 0x0:_0x2eb1bb[_0x178fdc(0x1ce)])===null||_0x2a464e===void 0x0?void 0x0:_0x2a464e[_0x178fdc(0x1f4)])>0x0&&((_0x2f49d2=_0x2eb1bb===null||_0x2eb1bb===void 0x0?void 0x0:_0x2eb1bb[_0x178fdc(0x207)])===null||_0x2f49d2===void 0x0?void 0x0:_0x2f49d2[_0x178fdc(0x1f4)])>0x0)for(let _0x5bb1c5 in _0x2eb1bb[_0x178fdc(0x1ce)]){_0x2eb1bb[_0x178fdc(0x207)][_0x178fdc(0x1d8)](_0x2eb1bb[_0x178fdc(0x1ce)][_0x5bb1c5])!==-0x1&&(_0x2eb1bb[_0x178fdc(0x1ce)][_0x5bb1c5]=null);}_0x2eb1bb[_0x178fdc(0x1fb)]=_0x49cffb,(0x0,validator_1['Validator'])(_0x2eb1bb[_0x178fdc(0x1fd)])(_0x28ea00,_0x15d79d,_0x2e2ebf),(0x0,core_2[_0x178fdc(0x1d0)])(Object['assign'](_0x2eb1bb,{'path':_0x48e651,'requestMethod':(_0x10aec8||_0x178fdc(0x1f6))['toLowerCase']()}))(_0x28ea00,_0x15d79d,_0x2e2ebf),(0x0,core_2[_0x178fdc(0x205)])(action_1[_0x178fdc(0x1d1)],{'path':_0x48e651,'method':_0x15d79d,'apimit':_0x2eb1bb['apimit'],'intercept':_0x2eb1bb['intercept'],'routerName':_0x2eb1bb['routerName'],'description':_0x2eb1bb[_0x178fdc(0x1f2)],'middleware':(_0x2eb1bb['middleware']||[])[_0x178fdc(0x1f1)](_0x3d29c4=>!!_0x3d29c4),'requestMethod':(_0x10aec8||'get')[_0x178fdc(0x1da)]()},_0x28ea00),(0x0,core_2[_0x178fdc(0x201)])(action_1[_0x178fdc(0x1d1)],{'path':_0x48e651,'method':_0x15d79d,'apimit':_0x2eb1bb[_0x178fdc(0x20c)],'intercept':_0x2eb1bb[_0x178fdc(0x209)],'routerName':_0x2eb1bb[_0x178fdc(0x1fb)],'description':_0x2eb1bb[_0x178fdc(0x1f2)],'middleware':(_0x2eb1bb['middleware']||[])[_0x178fdc(0x1f1)](_0x237954=>!!_0x237954),'requestMethod':(_0x10aec8||_0x178fdc(0x1f6))[_0x178fdc(0x1da)]()})(_0x28ea00,_0x15d79d,_0x2e2ebf);};}exports['ActionApi']=ActionApi;function parseRoute(_0x43cc3c){const _0x3a3ad0=a3_0x2f29e2;_0x43cc3c=_0x43cc3c['replace'](/(\\|\/)/g,'/');const _0x28641e=process[_0x3a3ad0(0x1ed)]()[_0x3a3ad0(0x1de)](/(\\|\/)/g,'/'),_0x198b5d=_0x43cc3c[_0x3a3ad0(0x1fc)](0x0,_0x28641e[_0x3a3ad0(0x1f4)]+_0x43cc3c['substring'](_0x28641e['length']+0x1)['indexOf']('/')+0x1),_0x43dfee=_0x43cc3c['substring'](_0x198b5d[_0x3a3ad0(0x1f4)]+0x1)[_0x3a3ad0(0x1de)](/(\\|\/)/g,'/'),_0x3aaa20={'route':'','prefix':![],'module':![],'rootpath':_0x198b5d,'filepath':_0x43dfee};if(_0x43dfee[_0x3a3ad0(0x202)](_0x3a3ad0(0x20e))||_0x43dfee['startsWith']('basic/controller/')){const _0x2acbf5=_0x43dfee[_0x3a3ad0(0x1fc)]((_0x43dfee[_0x3a3ad0(0x202)](_0x3a3ad0(0x20e))?'app/controller/':'basic/controller/')['length'])[_0x3a3ad0(0x1f7)]('/')[_0x3a3ad0(0x1f1)](_0x4f60d0=>_0x4f60d0&&_0x4f60d0[_0x3a3ad0(0x20a)]());return _0x2acbf5[_0x3a3ad0(0x1f4)]>0x1&&(_0x3aaa20[_0x3a3ad0(0x1f8)]=_0x2acbf5[0x0][_0x3a3ad0(0x1da)](),_0x2acbf5['splice'](0x0,0x1)),_0x3aaa20[_0x3a3ad0(0x203)]=('/'+_0x2acbf5['join']('/'))[_0x3a3ad0(0x1de)](/(\.ts|\.js)$/,'')[_0x3a3ad0(0x1de)](/\/{2,}/g,'/')[_0x3a3ad0(0x1f0)](/[\/|A-Z]*[^A-Z]+/g)[_0x3a3ad0(0x1fe)]('-')['toLowerCase']()[_0x3a3ad0(0x1de)](/\/\-/g,'/'),_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1e1)](_0x3a3ad0(0x1cf))&&(_0x3aaa20[_0x3a3ad0(0x203)]=_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1fc)](0x0,_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1f4)]-0x7)),_0x3aaa20['route'][_0x3a3ad0(0x1e1)](_0x3a3ad0(0x1d5))&&(_0x3aaa20['route']=_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1fc)](0x0,_0x3aaa20['route'][_0x3a3ad0(0x1f4)]-0xb)),_0x3aaa20;}else{if(_0x43dfee[_0x3a3ad0(0x202)](_0x3a3ad0(0x1ec))){const _0x38e52e=_0x43dfee[_0x3a3ad0(0x1fc)](0x0,_0x43dfee[_0x3a3ad0(0x1d8)](_0x3a3ad0(0x20b))+0x5),_0x3f6d09=_0x43dfee[_0x3a3ad0(0x1fc)](_0x38e52e['length']+0x1)[_0x3a3ad0(0x1de)](/(\\|\/)/g,'/')[_0x3a3ad0(0x1f7)]('/')[0x0];if(_0x43dfee[_0x3a3ad0(0x202)](_0x3a3ad0(0x1ec)+_0x3f6d09+'/controller/')){const _0x55082f=_0x43dfee['substring']((_0x38e52e+'/'+_0x3f6d09+_0x3a3ad0(0x1ef))[_0x3a3ad0(0x1f4)])[_0x3a3ad0(0x1f7)]('/')[_0x3a3ad0(0x1f1)](_0x148b28=>_0x148b28&&_0x148b28[_0x3a3ad0(0x20a)]());return _0x55082f[_0x3a3ad0(0x1f4)]>0x1&&(_0x3aaa20['prefix']=_0x55082f[0x0][_0x3a3ad0(0x1da)](),_0x55082f[_0x3a3ad0(0x1e6)](0x0,0x1)),_0x3aaa20[_0x3a3ad0(0x1cd)]=_0x3f6d09,_0x3aaa20[_0x3a3ad0(0x203)]=('/'+_0x3f6d09+'/'+_0x55082f[_0x3a3ad0(0x1fe)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3a3ad0(0x1f0)](/[\/|A-Z]*[^A-Z]+/g)[_0x3a3ad0(0x1fe)]('-')[_0x3a3ad0(0x1da)]()[_0x3a3ad0(0x1de)](/\/\-/g,'/'),_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1e1)](_0x3a3ad0(0x1cf))&&(_0x3aaa20[_0x3a3ad0(0x203)]=_0x3aaa20[_0x3a3ad0(0x203)]['substring'](0x0,_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1f4)]-0x7)),_0x3aaa20['route'][_0x3a3ad0(0x1e1)](_0x3a3ad0(0x1d5))&&(_0x3aaa20[_0x3a3ad0(0x203)]=_0x3aaa20['route'][_0x3a3ad0(0x1fc)](0x0,_0x3aaa20[_0x3a3ad0(0x203)][_0x3a3ad0(0x1f4)]-0xb)),_0x3aaa20;}throw new Error(_0x43dfee+_0x3a3ad0(0x1d3)+_0x3f6d09+'/controller/文件下');}}throw new Error(_0x43dfee+_0x3a3ad0(0x1d2));}exports[a3_0x2f29e2(0x1e3)]=parseRoute;
|
|
1
|
+
const a3_0x4b174b=a3_0x15c7;(function(_0x38ec1e,_0x243927){const _0x3fb59f=a3_0x15c7,_0x408d3f=_0x38ec1e();while(!![]){try{const _0x3519ef=parseInt(_0x3fb59f(0xd7))/0x1*(parseInt(_0x3fb59f(0x11b))/0x2)+-parseInt(_0x3fb59f(0xda))/0x3*(parseInt(_0x3fb59f(0xfb))/0x4)+parseInt(_0x3fb59f(0x108))/0x5+parseInt(_0x3fb59f(0x110))/0x6*(parseInt(_0x3fb59f(0xe8))/0x7)+parseInt(_0x3fb59f(0x115))/0x8*(parseInt(_0x3fb59f(0x106))/0x9)+parseInt(_0x3fb59f(0x107))/0xa+-parseInt(_0x3fb59f(0xfe))/0xb*(parseInt(_0x3fb59f(0xe0))/0xc);if(_0x3519ef===_0x243927)break;else _0x408d3f['push'](_0x408d3f['shift']());}catch(_0x1be8c6){_0x408d3f['push'](_0x408d3f['shift']());}}}(a3_0x1143,0x7615e));const a3_0x481f4e=(function(){let _0x4478c0=!![];return function(_0x44e644,_0x32b8a4){const _0x23ac1b=_0x4478c0?function(){const _0x502645=a3_0x15c7;if(_0x32b8a4){const _0x23c41f=_0x32b8a4[_0x502645(0xf0)](_0x44e644,arguments);return _0x32b8a4=null,_0x23c41f;}}:function(){};return _0x4478c0=![],_0x23ac1b;};}()),a3_0x37bd30=a3_0x481f4e(this,function(){const _0x9388f1=a3_0x15c7;return a3_0x37bd30[_0x9388f1(0x109)]()[_0x9388f1(0x111)]('(((.+)+)+)+$')[_0x9388f1(0x109)]()['constructor'](a3_0x37bd30)[_0x9388f1(0x111)](_0x9388f1(0xfa));});a3_0x37bd30();'use strict';Object[a3_0x4b174b(0xef)](exports,a3_0x4b174b(0x120),{'value':!![]}),exports[a3_0x4b174b(0x10b)]=exports[a3_0x4b174b(0x102)]=exports[a3_0x4b174b(0xde)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x4b174b(0xf8)),core_1=require(a3_0x4b174b(0x119)),core_2=require('@midwayjs/core'),action_1=require(a3_0x4b174b(0xd8));function Action(_0xb640bb,_0x4ad6a7,_0x1711b6={'middleware':[],'sensitive':!![]}){return _0x571da1=>{const _0x9a3a3c=a3_0x15c7;var _0x3ca9aa;_0x1711b6['tagName']=_0x4ad6a7;const _0x788865=parseRoute(_0xb640bb);if(_0x788865[_0x9a3a3c(0xfd)]){_0x1711b6['prefix']=_0x1711b6[_0x9a3a3c(0xea)]?'/'+_0x788865[_0x9a3a3c(0xfd)]+'/'+_0x1711b6[_0x9a3a3c(0xea)]:'/'+_0x788865[_0x9a3a3c(0xe4)];_0x788865['prefix']&&(_0x1711b6[_0x9a3a3c(0xea)]='/'+_0x788865[_0x9a3a3c(0xea)]+'/'+_0x1711b6[_0x9a3a3c(0xea)]);if(fs[_0x9a3a3c(0xe9)](_0x788865[_0x9a3a3c(0xec)]+_0x9a3a3c(0xd6)+_0x788865[_0x9a3a3c(0xfd)]+'/config.'+(lodash['endsWith'](_0x788865[_0x9a3a3c(0x113)],'ts')?'ts':'js'))){const _0x4cd6cd=include(_0x788865[_0x9a3a3c(0xec)]+_0x9a3a3c(0xd6)+_0x788865['module']+_0x9a3a3c(0xdb)+(lodash[_0x9a3a3c(0xf1)](_0x788865['filepath'],'ts')?'ts':'js'));if(lodash[_0x9a3a3c(0xf9)](_0x4cd6cd[_0x9a3a3c(0x100)])&&_0x4cd6cd['middleware']['length']>0x0)for(let _0x50de7a in _0x4cd6cd[_0x9a3a3c(0x100)]){if(((_0x3ca9aa=_0x4cd6cd===null||_0x4cd6cd===void 0x0?void 0x0:_0x4cd6cd['middlewareIgnore'])===null||_0x3ca9aa===void 0x0?void 0x0:_0x3ca9aa[_0x9a3a3c(0x11c)])>0x0&&_0x4cd6cd[_0x9a3a3c(0xfc)]['indexOf'](_0x4cd6cd[_0x9a3a3c(0x100)][_0x50de7a])!=-0x1)continue;_0x1711b6[_0x9a3a3c(0x100)][_0x9a3a3c(0x117)](_0x4cd6cd['middleware'][_0x50de7a]);}const _0x1ef3f7=(0x0,core_1['getClassMetadata'])(action_1[_0x9a3a3c(0x121)],action_1[_0x9a3a3c(0x10a)])||{};_0x1ef3f7[''+_0x788865[_0x9a3a3c(0xfd)]]=_0x4cd6cd,(0x0,core_1[_0x9a3a3c(0xff)])(action_1[_0x9a3a3c(0x121)],_0x1ef3f7,action_1[_0x9a3a3c(0x10a)]);}_0x1711b6[_0x9a3a3c(0xea)]=_0x1711b6[_0x9a3a3c(0xea)][_0x9a3a3c(0x10f)]()[_0x9a3a3c(0xf4)](/\/{2,}/g,'/'),(0x0,core_1[_0x9a3a3c(0xeb)])(action_1[_0x9a3a3c(0xf2)],_0x571da1),(0x0,core_1[_0x9a3a3c(0xd9)])(_0x1711b6[_0x9a3a3c(0xea)],_0x1711b6)(_0x571da1),(0x0,core_1['saveClassMetadata'])(action_1[_0x9a3a3c(0xf2)],{'prefix':_0x1711b6[_0x9a3a3c(0xea)],'pprefix':_0x788865[_0x9a3a3c(0xea)],'module':_0x788865[_0x9a3a3c(0xfd)],'filepath':_0x788865['filepath'],'routerOptions':_0x1711b6},_0x571da1);}else _0x1711b6[_0x9a3a3c(0xea)]=_0x1711b6[_0x9a3a3c(0xea)]?'/'+_0x1711b6[_0x9a3a3c(0xea)]:'/'+_0x788865[_0x9a3a3c(0xe4)],_0x788865['prefix']&&(_0x1711b6['prefix']='/'+_0x788865['prefix']+'/'+_0x1711b6['prefix']),_0x1711b6[_0x9a3a3c(0xea)]=_0x1711b6[_0x9a3a3c(0xea)][_0x9a3a3c(0x10f)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x9a3a3c(0xeb)])(action_1[_0x9a3a3c(0xf2)],_0x571da1),(0x0,core_1['Controller'])(_0x1711b6['prefix'],_0x1711b6)(_0x571da1),(0x0,core_1[_0x9a3a3c(0xff)])(action_1[_0x9a3a3c(0xf2)],{'prefix':_0x1711b6[_0x9a3a3c(0xea)],'module':_0x788865[_0x9a3a3c(0xfd)],'pprefix':_0x788865[_0x9a3a3c(0xea)],'filepath':_0x788865[_0x9a3a3c(0x113)],'routerOptions':_0x1711b6},_0x571da1);};}exports[a3_0x4b174b(0xde)]=Action,Action['get']=function(_0x4921fc,_0x428400='/',_0x2d0382={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x44e347,_0x46c6b1,_0x459e65)=>{const _0x248f4f=a3_0x15c7;ActionApi(_0x4921fc,_0x248f4f(0x10e),_0x428400,_0x2d0382)(_0x44e347,_0x46c6b1,_0x459e65);};},Action[a3_0x4b174b(0x11e)]=function(_0x187ac1,_0x2e3b64='/',_0x40322={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2213fc,_0x2b3ed8,_0x20330e)=>{ActionApi(_0x187ac1,'post',_0x2e3b64,_0x40322)(_0x2213fc,_0x2b3ed8,_0x20330e);};};function ActionApi(_0x5c63b6,_0x1ed0c2=a3_0x4b174b(0x10e),_0x12e857='/',_0x559193={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3a6baf,_0x2becfd,_0x22b5c4)=>{const _0x654c38=a3_0x15c7;var _0x2db7d6,_0x5eb9ea,_0x505172;!_0x559193[_0x654c38(0x100)]&&(_0x559193[_0x654c38(0x100)]=[]);!((_0x2db7d6=_0x559193===null||_0x559193===void 0x0?void 0x0:_0x559193[_0x654c38(0xe3)])===null||_0x2db7d6===void 0x0?void 0x0:_0x2db7d6['validationOptions'])&&(_0x559193[_0x654c38(0xe3)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x654c38(0x104)}});if(!_0x12e857)_0x12e857='/';else typeof _0x12e857==_0x654c38(0x104)&&(!_0x12e857[_0x654c38(0xdc)]('/')&&!_0x12e857['startsWith']('-')&&(_0x12e857='/'+_0x12e857));typeof _0x559193[_0x654c38(0xe1)]==_0x654c38(0xee)&&(_0x559193[_0x654c38(0xe1)]=!![]);if(((_0x5eb9ea=_0x559193===null||_0x559193===void 0x0?void 0x0:_0x559193[_0x654c38(0x100)])===null||_0x5eb9ea===void 0x0?void 0x0:_0x5eb9ea['length'])>0x0&&((_0x505172=_0x559193===null||_0x559193===void 0x0?void 0x0:_0x559193[_0x654c38(0xfc)])===null||_0x505172===void 0x0?void 0x0:_0x505172[_0x654c38(0x11c)])>0x0)for(let _0xb264e6 in _0x559193[_0x654c38(0x100)]){_0x559193[_0x654c38(0xfc)]['indexOf'](_0x559193['middleware'][_0xb264e6])!==-0x1&&(_0x559193[_0x654c38(0x100)][_0xb264e6]=null);}_0x559193[_0x654c38(0x10d)]=_0x5c63b6,(0x0,validator_1[_0x654c38(0xe2)])(_0x559193[_0x654c38(0xe3)])(_0x3a6baf,_0x2becfd,_0x22b5c4),(0x0,core_2[_0x654c38(0x105)])(Object['assign'](_0x559193,{'path':_0x12e857,'requestMethod':(_0x1ed0c2||_0x654c38(0x10e))[_0x654c38(0x10f)]()}))(_0x3a6baf,_0x2becfd,_0x22b5c4),(0x0,core_2['attachClassMetadata'])(action_1[_0x654c38(0x11d)],{'path':_0x12e857,'method':_0x2becfd,'apimit':_0x559193[_0x654c38(0xe1)],'intercept':_0x559193[_0x654c38(0x101)],'routerName':_0x559193['routerName'],'description':_0x559193[_0x654c38(0xf6)],'middleware':(_0x559193['middleware']||[])[_0x654c38(0x112)](_0xf2cc49=>!!_0xf2cc49),'requestMethod':(_0x1ed0c2||'get')['toLowerCase']()},_0x3a6baf),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x654c38(0x11d)],{'path':_0x12e857,'method':_0x2becfd,'apimit':_0x559193['apimit'],'intercept':_0x559193[_0x654c38(0x101)],'routerName':_0x559193[_0x654c38(0x10d)],'description':_0x559193['description'],'middleware':(_0x559193[_0x654c38(0x100)]||[])[_0x654c38(0x112)](_0x369e97=>!!_0x369e97),'requestMethod':(_0x1ed0c2||_0x654c38(0x10e))['toLowerCase']()})(_0x3a6baf,_0x2becfd,_0x22b5c4);};}function a3_0x1143(){const _0x45c293=['Validator','validate','route','-controller','match','-action','406QnqKZz','existsSync','prefix','saveModule','rootpath','indexOf','undefined','defineProperty','apply','endsWith','ACTION_KEY','join','replace','\x20文件请放在apps/','description','apps/','@anncic-api/validator','isArray','(((.+)+)+)+$','12bhINUK','middlewareIgnore','module','396UVNLbn','saveClassMetadata','middleware','intercept','ActionApi','cwd','string','RequestMapping','11556wtEoiJ','1806810ZsCtPt','4526280ZWUWua','toString','AppsConfigTmp','parseRoute','splice','routerName','get','toLowerCase','67962XeKczy','search','filter','filepath','substring','488VXqzIS','basic/controller/','push','split','@midwayjs/core','\x20文件请放在app/controller/文件下','10232plWHri','length','ACTION_ROUTE_KEY','post','/controller/文件下','__esModule','APPSCONFIG_KEY','/apps/','157achQAg','../types/action','Controller','748497pMFWcV','/config.','startsWith','trim','Action','app/controller/','464088pBRBah','apimit'];a3_0x1143=function(){return _0x45c293;};return a3_0x1143();}function a3_0x15c7(_0x4046f3,_0xe6ba68){const _0x1a532b=a3_0x1143();return a3_0x15c7=function(_0x37bd30,_0x481f4e){_0x37bd30=_0x37bd30-0xd6;let _0x1143bb=_0x1a532b[_0x37bd30];return _0x1143bb;},a3_0x15c7(_0x4046f3,_0xe6ba68);}exports[a3_0x4b174b(0x102)]=ActionApi;function parseRoute(_0x36ff8f){const _0x52cd30=a3_0x4b174b;_0x36ff8f=_0x36ff8f[_0x52cd30(0xf4)](/(\\|\/)/g,'/');const _0x377790=process[_0x52cd30(0x103)]()[_0x52cd30(0xf4)](/(\\|\/)/g,'/'),_0x229c77=_0x36ff8f[_0x52cd30(0x114)](0x0,_0x377790['length']+_0x36ff8f['substring'](_0x377790[_0x52cd30(0x11c)]+0x1)[_0x52cd30(0xed)]('/')+0x1),_0x1e0a71=_0x36ff8f[_0x52cd30(0x114)](_0x229c77[_0x52cd30(0x11c)]+0x1)[_0x52cd30(0xf4)](/(\\|\/)/g,'/'),_0x1b2cc1={'route':'','prefix':![],'module':![],'rootpath':_0x229c77,'filepath':_0x1e0a71};if(_0x1e0a71[_0x52cd30(0xdc)](_0x52cd30(0xdf))||_0x1e0a71[_0x52cd30(0xdc)]('basic/controller/')){const _0x3091b4=_0x1e0a71[_0x52cd30(0x114)]((_0x1e0a71[_0x52cd30(0xdc)](_0x52cd30(0xdf))?_0x52cd30(0xdf):_0x52cd30(0x116))['length'])[_0x52cd30(0x118)]('/')['filter'](_0x4859af=>_0x4859af&&_0x4859af['trim']());return _0x3091b4[_0x52cd30(0x11c)]>0x1&&(_0x1b2cc1[_0x52cd30(0xea)]=_0x3091b4[0x0][_0x52cd30(0x10f)](),_0x3091b4['splice'](0x0,0x1)),_0x1b2cc1[_0x52cd30(0xe4)]=('/'+_0x3091b4['join']('/'))[_0x52cd30(0xf4)](/(\.ts|\.js)$/,'')[_0x52cd30(0xf4)](/\/{2,}/g,'/')[_0x52cd30(0xe6)](/[\/|A-Z]*[^A-Z]+/g)[_0x52cd30(0xf3)]('-')[_0x52cd30(0x10f)]()[_0x52cd30(0xf4)](/\/\-/g,'/'),_0x1b2cc1['route']['endsWith'](_0x52cd30(0xe7))&&(_0x1b2cc1[_0x52cd30(0xe4)]=_0x1b2cc1[_0x52cd30(0xe4)][_0x52cd30(0x114)](0x0,_0x1b2cc1['route'][_0x52cd30(0x11c)]-0x7)),_0x1b2cc1[_0x52cd30(0xe4)][_0x52cd30(0xf1)](_0x52cd30(0xe5))&&(_0x1b2cc1['route']=_0x1b2cc1['route']['substring'](0x0,_0x1b2cc1['route'][_0x52cd30(0x11c)]-0xb)),_0x1b2cc1;}else{if(_0x1e0a71[_0x52cd30(0xdc)](_0x52cd30(0xf7))){const _0x14f059=_0x1e0a71['substring'](0x0,_0x1e0a71['indexOf']('/apps/')+0x5),_0x1dc1ad=_0x1e0a71[_0x52cd30(0x114)](_0x14f059[_0x52cd30(0x11c)]+0x1)[_0x52cd30(0xf4)](/(\\|\/)/g,'/')[_0x52cd30(0x118)]('/')[0x0];if(_0x1e0a71[_0x52cd30(0xdc)]('apps/'+_0x1dc1ad+'/controller/')){const _0x3c83a1=_0x1e0a71[_0x52cd30(0x114)]((_0x14f059+'/'+_0x1dc1ad+'/controller/')[_0x52cd30(0x11c)])['split']('/')[_0x52cd30(0x112)](_0x539e86=>_0x539e86&&_0x539e86[_0x52cd30(0xdd)]());return _0x3c83a1[_0x52cd30(0x11c)]>0x1&&(_0x1b2cc1[_0x52cd30(0xea)]=_0x3c83a1[0x0]['toLowerCase'](),_0x3c83a1[_0x52cd30(0x10c)](0x0,0x1)),_0x1b2cc1[_0x52cd30(0xfd)]=_0x1dc1ad,_0x1b2cc1['route']=('/'+_0x1dc1ad+'/'+_0x3c83a1[_0x52cd30(0xf3)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x52cd30(0xf4)](/\/{2,}/g,'/')[_0x52cd30(0xe6)](/[\/|A-Z]*[^A-Z]+/g)[_0x52cd30(0xf3)]('-')[_0x52cd30(0x10f)]()[_0x52cd30(0xf4)](/\/\-/g,'/'),_0x1b2cc1[_0x52cd30(0xe4)]['endsWith'](_0x52cd30(0xe7))&&(_0x1b2cc1[_0x52cd30(0xe4)]=_0x1b2cc1['route'][_0x52cd30(0x114)](0x0,_0x1b2cc1['route']['length']-0x7)),_0x1b2cc1[_0x52cd30(0xe4)][_0x52cd30(0xf1)](_0x52cd30(0xe5))&&(_0x1b2cc1[_0x52cd30(0xe4)]=_0x1b2cc1[_0x52cd30(0xe4)]['substring'](0x0,_0x1b2cc1['route'][_0x52cd30(0x11c)]-0xb)),_0x1b2cc1;}throw new Error(_0x1e0a71+_0x52cd30(0xf5)+_0x1dc1ad+_0x52cd30(0x11f));}}throw new Error(_0x1e0a71+_0x52cd30(0x11a));}exports[a3_0x4b174b(0x10b)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x172583=a4_0x3c8f;(function(_0x1c506e,_0x517631){const _0x11828d=a4_0x3c8f,_0x3bcc15=_0x1c506e();while(!![]){try{const _0x1e5950=parseInt(_0x11828d(0x10d))/0x1+-parseInt(_0x11828d(0x112))/0x2*(parseInt(_0x11828d(0x110))/0x3)+-parseInt(_0x11828d(0x116))/0x4+parseInt(_0x11828d(0x11c))/0x5+-parseInt(_0x11828d(0x108))/0x6+-parseInt(_0x11828d(0x117))/0x7*(parseInt(_0x11828d(0x11b))/0x8)+parseInt(_0x11828d(0x119))/0x9*(parseInt(_0x11828d(0x101))/0xa);if(_0x1e5950===_0x517631)break;else _0x3bcc15['push'](_0x3bcc15['shift']());}catch(_0x52e13f){_0x3bcc15['push'](_0x3bcc15['shift']());}}}(a4_0x536f,0x236e1));function a4_0x3c8f(_0x5e3c56,_0x24d935){const _0x3589fc=a4_0x536f();return a4_0x3c8f=function(_0x5c1840,_0x581565){_0x5c1840=_0x5c1840-0x100;let _0x536f4d=_0x3589fc[_0x5c1840];return _0x536f4d;},a4_0x3c8f(_0x5e3c56,_0x24d935);}const a4_0x581565=(function(){let _0x421a76=!![];return function(_0x32ae68,_0x270f1a){const _0x11d82a=_0x421a76?function(){const _0x1772b9=a4_0x3c8f;if(_0x270f1a){const _0x3fa752=_0x270f1a[_0x1772b9(0x103)](_0x32ae68,arguments);return _0x270f1a=null,_0x3fa752;}}:function(){};return _0x421a76=![],_0x11d82a;};}()),a4_0x5c1840=a4_0x581565(this,function(){const _0x46a528=a4_0x3c8f;return a4_0x5c1840[_0x46a528(0x109)]()[_0x46a528(0x10a)](_0x46a528(0x10b))[_0x46a528(0x109)]()[_0x46a528(0x118)](a4_0x5c1840)[_0x46a528(0x10a)]('(((.+)+)+)+$');});a4_0x5c1840();'use strict';Object[a4_0x172583(0x107)](exports,a4_0x172583(0x104),{'value':!![]}),exports[a4_0x172583(0x100)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x172583(0x10f));function a4_0x536f(){const _0xef5c40=['Apitest','11740wYgsNv','ApitestService','apply','__esModule','getConfig','apidoc','defineProperty','1486722cnReoz','toString','search','(((.+)+)+)+$','getAsync','183927ETVpDo','value','../service/ApitestService','3bAWhHq','/apitest','490300aaTzwH','filepath','app','getApplicationContext','430008DVQeID','434pqKFHM','constructor','2988pFhDkr','isDevelopmentEnvironment','9544jxCViN','1229155aZcWWa'];a4_0x536f=function(){return _0xef5c40;};return a4_0x536f();}function Apitest(_0x42ab3e=a4_0x172583(0x111),_0x21bbf4){return(_0x483f1b,_0x19dca9,_0x43bf3b)=>{const _0x45aa64=a4_0x3c8f;return(0x0,core_1['RequestMapping'])({'path':_0x42ab3e,'requestMethod':'get'})(_0x483f1b,_0x19dca9,_0x43bf3b),_0x43bf3b[_0x45aa64(0x10e)]=async function(..._0x4d0316){const _0x274f55=_0x45aa64;var _0x3df238;const _0x52f4a8=(_0x3df238=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x3df238===void 0x0?void 0x0:_0x3df238[_0x274f55(0x114)];if(_0x52f4a8&&_0x52f4a8[_0x274f55(0x105)]('apitest')){const _0x10e63a=await _0x52f4a8[_0x274f55(0x115)]()[_0x274f55(0x10c)](ApitestService_1[_0x274f55(0x102)]),_0x10724e=await _0x52f4a8[_0x274f55(0x115)]()[_0x274f55(0x10c)](core_1['MidwayEnvironmentService']);return _0x10724e[_0x274f55(0x11a)]()&&(_0x21bbf4[_0x274f55(0x113)]=!![]),await _0x10e63a[_0x274f55(0x106)](_0x21bbf4);}return'';},_0x43bf3b;};}exports[a4_0x172583(0x100)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x15940c=a5_0x4168;(function(_0x24b719,_0xa85a2){const _0x21288e=a5_0x4168,_0x2a1be8=_0x24b719();while(!![]){try{const _0x37089e=parseInt(_0x21288e(0x71))/0x1*(-parseInt(_0x21288e(0x84))/0x2)+-parseInt(_0x21288e(0x79))/0x3*(parseInt(_0x21288e(0x83))/0x4)+-parseInt(_0x21288e(0x86))/0x5+-parseInt(_0x21288e(0x87))/0x6*(-parseInt(_0x21288e(0x80))/0x7)+parseInt(_0x21288e(0x6d))/0x8*(-parseInt(_0x21288e(0x73))/0x9)+-parseInt(_0x21288e(0x76))/0xa*(-parseInt(_0x21288e(0x82))/0xb)+-parseInt(_0x21288e(0x77))/0xc*(-parseInt(_0x21288e(0x78))/0xd);if(_0x37089e===_0xa85a2)break;else _0x2a1be8['push'](_0x2a1be8['shift']());}catch(_0x13385e){_0x2a1be8['push'](_0x2a1be8['shift']());}}}(a5_0x4664,0xe871c));const a5_0x41c5a5=(function(){let _0x2c65c9=!![];return function(_0x1efbbd,_0x58f626){const _0x5205ea=_0x2c65c9?function(){if(_0x58f626){const _0x4b61f8=_0x58f626['apply'](_0x1efbbd,arguments);return _0x58f626=null,_0x4b61f8;}}:function(){};return _0x2c65c9=![],_0x5205ea;};}()),a5_0x18815b=a5_0x41c5a5(this,function(){const _0x1a2b2b=a5_0x4168;return a5_0x18815b[_0x1a2b2b(0x85)]()[_0x1a2b2b(0x6c)]('(((.+)+)+)+$')['toString']()[_0x1a2b2b(0x81)](a5_0x18815b)[_0x1a2b2b(0x6c)](_0x1a2b2b(0x7b));});a5_0x18815b();function a5_0x4664(){const _0x33f056=['2424232GWyxyj','Scope','saveClassMetadata','../types/intercept','2BVaIjl','push','36BMqmjq','Intercept','Provide','18341110NeARzG','24OSXBte','17973839yWHepa','1676859Ahrfoq','__esModule','(((.+)+)+)+$','IIntercept','INTERCEPT_KEY','InterceptTargetTmp','ScopeEnum','37597FtthGM','constructor','11BFHSKZ','4DcPyDS','1856194TzTLVx','toString','2704745KQmFty','582ITosrk','getClassMetadata','Singleton','toUpperCase','defineProperty','search'];a5_0x4664=function(){return _0x33f056;};return a5_0x4664();}'use strict';Object[a5_0x15940c(0x6b)](exports,a5_0x15940c(0x7a),{'value':!![]}),exports[a5_0x15940c(0x7c)]=exports[a5_0x15940c(0x74)]=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x15940c(0x70));function Intercept(_0x12be6e){return _0x35df3b=>{const _0x480453=a5_0x4168,_0x33af05=(0x0,core_1[_0x480453(0x68)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x480453(0x7e)])||{};for(let _0x182fba of Array['isArray'](_0x12be6e)?_0x12be6e:[_0x12be6e]){_0x182fba=_0x182fba[_0x480453(0x6a)]();!(_0x33af05===null||_0x33af05===void 0x0?void 0x0:_0x33af05[_0x182fba])&&(_0x33af05[_0x182fba]=[]);if(_0x33af05[_0x182fba]['includes'](_0x35df3b))continue;_0x33af05[_0x182fba][_0x480453(0x72)](_0x35df3b);}(0x0,core_1[_0x480453(0x75)])()(_0x35df3b),(0x0,core_1[_0x480453(0x6e)])(core_1[_0x480453(0x7f)][_0x480453(0x69)])(_0x35df3b),(0x0,core_1[_0x480453(0x6f)])(intercept_1[_0x480453(0x7d)],_0x33af05,intercept_1[_0x480453(0x7e)]);};}exports[a5_0x15940c(0x74)]=Intercept;function a5_0x4168(_0xd3199b,_0x17f87c){const _0x4bf38c=a5_0x4664();return a5_0x4168=function(_0x18815b,_0x41c5a5){_0x18815b=_0x18815b-0x68;let _0x466494=_0x4bf38c[_0x18815b];return _0x466494;},a5_0x4168(_0xd3199b,_0x17f87c);}class IIntercept{async['match'](_0x5bea5d,_0x3e5cd0,_0x36ac0c){return!![];}}exports[a5_0x15940c(0x7c)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0xede1de=a6_0x2d20;(function(_0x1bccb4,_0x40af09){var _0x333271=a6_0x2d20,_0x2d749d=_0x1bccb4();while(!![]){try{var _0x5b0b5f=-parseInt(_0x333271(0x117))/0x1*(-parseInt(_0x333271(0x127))/0x2)+-parseInt(_0x333271(0x123))/0x3*(-parseInt(_0x333271(0x11d))/0x4)+parseInt(_0x333271(0x11b))/0x5*(parseInt(_0x333271(0x120))/0x6)+-parseInt(_0x333271(0x12b))/0x7+parseInt(_0x333271(0x116))/0x8*(parseInt(_0x333271(0x128))/0x9)+parseInt(_0x333271(0x113))/0xa+parseInt(_0x333271(0x122))/0xb*(-parseInt(_0x333271(0x11a))/0xc);if(_0x5b0b5f===_0x40af09)break;else _0x2d749d['push'](_0x2d749d['shift']());}catch(_0x12eb74){_0x2d749d['push'](_0x2d749d['shift']());}}}(a6_0x39e8,0xc6c9b));var a6_0x574fce=(function(){var _0x454331=!![];return function(_0x309364,_0x43d708){var _0x185b09=_0x454331?function(){var _0x436c2b=a6_0x2d20;if(_0x43d708){var _0x454cd0=_0x43d708[_0x436c2b(0x114)](_0x309364,arguments);return _0x43d708=null,_0x454cd0;}}:function(){};return _0x454331=![],_0x185b09;};}()),a6_0x4bd08a=a6_0x574fce(this,function(){var _0x17e251=a6_0x2d20;return a6_0x4bd08a[_0x17e251(0x124)]()['search']('(((.+)+)+)+$')[_0x17e251(0x124)]()[_0x17e251(0x11c)](a6_0x4bd08a)['search']('(((.+)+)+)+$');});a6_0x4bd08a();'use strict';var __decorate=this&&this[a6_0xede1de(0x119)]||function(_0x3d27ac,_0x48f00e,_0x5766ef,_0x2987f1){var _0x3f43ba=a6_0xede1de,_0x49e765=arguments[_0x3f43ba(0x118)],_0x5b7554=_0x49e765<0x3?_0x48f00e:_0x2987f1===null?_0x2987f1=Object[_0x3f43ba(0x125)](_0x48f00e,_0x5766ef):_0x2987f1,_0x44b2d4;if(typeof Reflect===_0x3f43ba(0x12e)&&typeof Reflect[_0x3f43ba(0x12d)]===_0x3f43ba(0x110))_0x5b7554=Reflect['decorate'](_0x3d27ac,_0x48f00e,_0x5766ef,_0x2987f1);else{for(var _0x17e24c=_0x3d27ac[_0x3f43ba(0x118)]-0x1;_0x17e24c>=0x0;_0x17e24c--)if(_0x44b2d4=_0x3d27ac[_0x17e24c])_0x5b7554=(_0x49e765<0x3?_0x44b2d4(_0x5b7554):_0x49e765>0x3?_0x44b2d4(_0x48f00e,_0x5766ef,_0x5b7554):_0x44b2d4(_0x48f00e,_0x5766ef))||_0x5b7554;}return _0x49e765>0x3&&_0x5b7554&&Object[_0x3f43ba(0x129)](_0x48f00e,_0x5766ef,_0x5b7554),_0x5b7554;},__metadata=this&&this[a6_0xede1de(0x126)]||function(_0x6cde0b,_0x1b56c9){var _0x435a3d=a6_0xede1de;if(typeof Reflect===_0x435a3d(0x12e)&&typeof Reflect[_0x435a3d(0x130)]===_0x435a3d(0x110))return Reflect[_0x435a3d(0x130)](_0x6cde0b,_0x1b56c9);};function a6_0x2d20(_0x597458,_0x426453){var _0xae188a=a6_0x39e8();return a6_0x2d20=function(_0x4bd08a,_0x574fce){_0x4bd08a=_0x4bd08a-0x10e;var _0x39e836=_0xae188a[_0x4bd08a];return _0x39e836;},a6_0x2d20(_0x597458,_0x426453);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a6_0xede1de(0x12a)]=void 0x0;function a6_0x39e8(){var _0x954a5c=['length','__decorate','12BzoPpt','2390jdVawF','constructor','8fqSOsE','signature验证失败','HEADERS_LACK','5280sNRRcI','验证失败,请重新登录','28794843vtQmKu','814218aLVlqe','toString','getOwnPropertyDescriptor','__metadata','2pAtcWz','4669299NCrPac','defineProperty','ApiError','5176192MgHDwm','HEADERS_SIGNATURE','decorate','object','TIMEOUT','metadata','请使用正确的设备','请求超时,请重试','function','HEADERS_CHECKCODE','HEADERS_DEVICE','16041570gTkOzY','apply','design:type','8HeGROG','1084984yRVTAN'];a6_0x39e8=function(){return _0x954a5c;};return a6_0x39e8();}class ApiError extends AnnError{}exports[a6_0xede1de(0x12a)]=ApiError,ApiError[a6_0xede1de(0x12f)]=0x19003,ApiError[a6_0xede1de(0x11f)]=0x18e72,ApiError[a6_0xede1de(0x112)]=0x18e73,ApiError[a6_0xede1de(0x12c)]=0x18e74,ApiError[a6_0xede1de(0x111)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a6_0xede1de(0x10f)),__metadata(a6_0xede1de(0x115),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0xede1de(0x115),Object)],ApiError,a6_0xede1de(0x11f),void 0x0),__decorate([AnnErrorMsg(a6_0xede1de(0x10e)),__metadata('design:type',Object)],ApiError,a6_0xede1de(0x112),void 0x0),__decorate([AnnErrorMsg(a6_0xede1de(0x11e)),__metadata(a6_0xede1de(0x115),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a6_0xede1de(0x121)),__metadata(a6_0xede1de(0x115),Object)],ApiError,a6_0xede1de(0x111),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a7_0x3e3c(_0x2dcb8c,_0x5355a8){const _0x5c15cb=a7_0x5ab4();return a7_0x3e3c=function(_0x466407,_0x5a41bb){_0x466407=_0x466407-0x89;let _0x5ab4e=_0x5c15cb[_0x466407];return _0x5ab4e;},a7_0x3e3c(_0x2dcb8c,_0x5355a8);}const a7_0x1a37a7=a7_0x3e3c;(function(_0x4edb2c,_0x4bdffb){const _0x8cd5f1=a7_0x3e3c,_0x14054c=_0x4edb2c();while(!![]){try{const _0x262f37=-parseInt(_0x8cd5f1(0x8d))/0x1*(-parseInt(_0x8cd5f1(0x92))/0x2)+-parseInt(_0x8cd5f1(0x98))/0x3+parseInt(_0x8cd5f1(0x94))/0x4*(-parseInt(_0x8cd5f1(0x90))/0x5)+parseInt(_0x8cd5f1(0x89))/0x6+parseInt(_0x8cd5f1(0x8e))/0x7+parseInt(_0x8cd5f1(0x97))/0x8*(parseInt(_0x8cd5f1(0x8c))/0x9)+-parseInt(_0x8cd5f1(0x9d))/0xa;if(_0x262f37===_0x4bdffb)break;else _0x14054c['push'](_0x14054c['shift']());}catch(_0x38cb4a){_0x14054c['push'](_0x14054c['shift']());}}}(a7_0x5ab4,0x97210));const a7_0x5a41bb=(function(){let _0x55d68a=!![];return function(_0x247919,_0x45c412){const _0xb71443=_0x55d68a?function(){if(_0x45c412){const _0xef2f9f=_0x45c412['apply'](_0x247919,arguments);return _0x45c412=null,_0xef2f9f;}}:function(){};return _0x55d68a=![],_0xb71443;};}()),a7_0x466407=a7_0x5a41bb(this,function(){const _0x12babf=a7_0x3e3c;return a7_0x466407['toString']()[_0x12babf(0x9b)](_0x12babf(0x96))['toString']()[_0x12babf(0x9e)](a7_0x466407)[_0x12babf(0x9b)](_0x12babf(0x96));});a7_0x466407();'use strict';Object[a7_0x1a37a7(0x99)](exports,a7_0x1a37a7(0x9a),{'value':!![]}),exports[a7_0x1a37a7(0x8f)]=void 0x0;const core_1=require(a7_0x1a37a7(0x9c)),action_1=require(a7_0x1a37a7(0x8b));function getAppsConfig(_0x6fc17e){const _0x1422f2=a7_0x1a37a7,_0x18daf3=(0x0,core_1[_0x1422f2(0x95)])(action_1[_0x1422f2(0x93)],action_1[_0x1422f2(0x8a)])||{};return _0x6fc17e?lodash[_0x1422f2(0x91)](_0x18daf3,_0x6fc17e):_0x18daf3;}function a7_0x5ab4(){const _0x410585=['search','@midwayjs/core','4228330bowsvY','constructor','6397056LAdpJJ','AppsConfigTmp','../types/action','4745367fbKPyz','411suZSCk','4411708nKwzKL','getAppsConfig','38435PEEZju','get','4618RwdUzK','APPSCONFIG_KEY','484elenoR','getClassMetadata','(((.+)+)+)+$','8vbQRIr','3602094EcBZFW','defineProperty','__esModule'];a7_0x5ab4=function(){return _0x410585;};return a7_0x5ab4();}exports[a7_0x1a37a7(0x8f)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x456a8a=a8_0x458d;function a8_0x458d(_0x5f0c53,_0x3d0eb0){const _0x5360f0=a8_0x3ac5();return a8_0x458d=function(_0x1ee11e,_0x2c4002){_0x1ee11e=_0x1ee11e-0xd2;let _0x3ac510=_0x5360f0[_0x1ee11e];return _0x3ac510;},a8_0x458d(_0x5f0c53,_0x3d0eb0);}(function(_0x2c7519,_0x32a61c){const _0x17a221=a8_0x458d,_0x51fcce=_0x2c7519();while(!![]){try{const _0x190911=-parseInt(_0x17a221(0x122))/0x1+parseInt(_0x17a221(0x12b))/0x2*(-parseInt(_0x17a221(0x114))/0x3)+parseInt(_0x17a221(0x10c))/0x4*(parseInt(_0x17a221(0x11c))/0x5)+parseInt(_0x17a221(0xd8))/0x6+parseInt(_0x17a221(0xe5))/0x7+parseInt(_0x17a221(0xdd))/0x8*(parseInt(_0x17a221(0x103))/0x9)+-parseInt(_0x17a221(0xf1))/0xa*(parseInt(_0x17a221(0x135))/0xb);if(_0x190911===_0x32a61c)break;else _0x51fcce['push'](_0x51fcce['shift']());}catch(_0x27504a){_0x51fcce['push'](_0x51fcce['shift']());}}}(a8_0x3ac5,0xd0ef5));function a8_0x3ac5(){const _0x133d54=['max','filepath','split','defineProperty','/static/apitest','items','11dxLcaF','文件上传-','endsWith','key','name','isArray','INJECT_CUSTOM_PARAM','__esModule','QUERY','keys','@midwayjs/core','method','1602276LmCDYi','allow','required','get','request','99608DdWqXZ','routes','array','prefix','PARAM','length','routerName','path','7623448JYXVIp','listModule','File','getMethodParamTypes','indexOf','flags.presence','body','description','type','RouteParamTypes','noreq','FILESSTREAM','11673850MIThsX','header','lodash','pprefix','string','startsWith','replace','HEADERS','String','constructor','flags.label','Number','routerOptions','filter','push','object','describe','Object','963qWVKek','BODY','metadata','FILESTREAM','RULES_KEY','children','../types/action','limit','intercept','165700NuUYUg','WEB_ROUTER_PARAM_KEY','title','min','(((.+)+)+)+$','file','requestMethod','query','3WHiNBm','module','apply','getClassMetadata','concat','ACTION_KEY','parameterIndex','args','190bfKKSY','FIELDS','只允许:[','search','toString','boolean','626278RPfnWb','default','static/apitest','find','iterator','Boolean','join','route','@anncic-api/validator','3226114LOCUoJ','propertyData','rules','summary'];a8_0x3ac5=function(){return _0x133d54;};return a8_0x3ac5();}const a8_0x2c4002=(function(){let _0x32aba9=!![];return function(_0x38bdfc,_0x3c8843){const _0x5c5bd7=_0x32aba9?function(){const _0x28cf98=a8_0x458d;if(_0x3c8843){const _0x40310b=_0x3c8843[_0x28cf98(0x116)](_0x38bdfc,arguments);return _0x3c8843=null,_0x40310b;}}:function(){};return _0x32aba9=![],_0x5c5bd7;};}()),a8_0x1ee11e=a8_0x2c4002(this,function(){const _0x53775e=a8_0x458d;return a8_0x1ee11e[_0x53775e(0x120)]()[_0x53775e(0x11f)](_0x53775e(0x110))[_0x53775e(0x120)]()[_0x53775e(0xfa)](a8_0x1ee11e)[_0x53775e(0x11f)](_0x53775e(0x110));});a8_0x1ee11e();'use strict';Object[a8_0x456a8a(0x132)](exports,a8_0x456a8a(0xd3),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x456a8a(0xf3)),validator_1=require(a8_0x456a8a(0x12a)),core_1=require(a8_0x456a8a(0xd6)),core_2=require('@midwayjs/core'),core_3=require(a8_0x456a8a(0xd6)),action_1=require(a8_0x456a8a(0x109));function getRoutes(_0x301b23={'prefix':'/','module':![]}){const _0x36f4ab=a8_0x456a8a;var _0x1797cf,_0x215509;const _0x241335=(0x0,core_3[_0x36f4ab(0xe6)])(action_1[_0x36f4ab(0x119)]),_0x7822d5={},_0xdaa51d=Array[_0x36f4ab(0x13a)](_0x301b23[_0x36f4ab(0xfe)]||[])?_0x301b23['filter']||[]:[_0x301b23[_0x36f4ab(0xfe)]];_0x1483fd:for(const _0x304873 of _0x241335){let _0x5c14c7=(0x0,core_3['getClassMetadata'])(action_1[_0x36f4ab(0x119)],_0x304873),_0x101a53=(0x0,core_3[_0x36f4ab(0x117)])(action_1['ACTION_ROUTE_KEY'],_0x304873);if(_0x5c14c7&&_0x101a53){let _0x5aed78=_0x5c14c7['prefix'],_0x2e1451={};if(_0x301b23['module']&&(0x0,lodash_1[_0x36f4ab(0xdb)])(_0x5c14c7,_0x36f4ab(0x115),![])!=_0x301b23[_0x36f4ab(0x115)])continue _0x1483fd;else{if(_0x301b23[_0x36f4ab(0x115)]===![]&&!!(0x0,lodash_1[_0x36f4ab(0xdb)])(_0x5c14c7,'module',null))continue _0x1483fd;}if(_0x301b23['prefix']&&!_0x5aed78['startsWith'](_0x301b23[_0x36f4ab(0xe0)]))continue _0x1483fd;_0x5aed78!=='/'?(_0x2e1451['summary']=(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7['routerOptions']['tagName'])||(/^\//['test'](_0x5aed78)?_0x5aed78[_0x36f4ab(0x131)]('/')[0x1]:_0x5aed78),_0x2e1451['description']=(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7[_0x36f4ab(0xfd)][_0x36f4ab(0xec)])||_0x2e1451['summary'],_0x2e1451[_0x36f4ab(0xde)]=[]):(_0x2e1451[_0x36f4ab(0x12e)]=(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7['routerOptions']['tagName'])||_0x36f4ab(0x123),_0x2e1451[_0x36f4ab(0xec)]=(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7['routerOptions']['description'])||'',_0x2e1451[_0x36f4ab(0xde)]=[]);_0x301b23['filepath']&&(_0x2e1451['filepath']=_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7[_0x36f4ab(0x130)]);(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7[_0x36f4ab(0xf4)])&&(_0x2e1451[_0x36f4ab(0xe0)]=_0x5c14c7[_0x36f4ab(0xf4)]);(_0x5c14c7===null||_0x5c14c7===void 0x0?void 0x0:_0x5c14c7['module'])&&(_0x2e1451[_0x36f4ab(0x115)]=_0x5c14c7[_0x36f4ab(0x115)]);let _0x1b024a=(0x0,core_3[_0x36f4ab(0x117)])(core_2[_0x36f4ab(0xd2)],_0x304873)||{};if(typeof _0x101a53[Symbol[_0x36f4ab(0x126)]]==='function')for(let _0x29c9eb of _0x101a53){if((_0x301b23===null||_0x301b23===void 0x0?void 0x0:_0x301b23[_0x36f4ab(0x10b)])&&!(_0x29c9eb===null||_0x29c9eb===void 0x0?void 0x0:_0x29c9eb[_0x36f4ab(0x10b)]))continue;let _0x508e4={};_0x508e4[_0x36f4ab(0xd7)]=_0x29c9eb[_0x36f4ab(0x112)],_0x508e4[_0x36f4ab(0x129)]=(_0x5aed78+_0x29c9eb[_0x36f4ab(0xe4)])[_0x36f4ab(0xf7)](/\/{2,}/g,'/'),_0x508e4['summary']=(_0x29c9eb===null||_0x29c9eb===void 0x0?void 0x0:_0x29c9eb[_0x36f4ab(0xe3)])||_0x2e1451['summary']||_0x36f4ab(0x123),_0x508e4[_0x36f4ab(0xec)]=(_0x29c9eb===null||_0x29c9eb===void 0x0?void 0x0:_0x29c9eb[_0x36f4ab(0xec)])||'',_0x508e4[_0x36f4ab(0xdc)]=[];_0x508e4[_0x36f4ab(0x129)][_0x36f4ab(0x137)]('/')&&(_0x508e4[_0x36f4ab(0x129)]=_0x508e4[_0x36f4ab(0x129)]['substring'](0x0,_0x508e4[_0x36f4ab(0x129)][_0x36f4ab(0xe2)]-0x1));if(!(0x0,lodash_1[_0x36f4ab(0xf6)])(_0x508e4[_0x36f4ab(0x129)],_0x36f4ab(0x124))&&!(0x0,lodash_1[_0x36f4ab(0xf6)])(_0x508e4[_0x36f4ab(0x129)],_0x36f4ab(0x133))&&_0xdaa51d[_0x36f4ab(0xe9)](_0x508e4[_0x36f4ab(0x129)])===-0x1){if(!(_0x301b23===null||_0x301b23===void 0x0?void 0x0:_0x301b23[_0x36f4ab(0xef)])){let _0x59cd86=(0x0,core_3[_0x36f4ab(0xe8)])(new _0x304873(),_0x29c9eb[_0x36f4ab(0xd7)]);for(const _0x591197 in _0x59cd86){let _0x594d06=(_0x1797cf=_0x1b024a[_0x29c9eb[_0x36f4ab(0xd7)]])===null||_0x1797cf===void 0x0?void 0x0:_0x1797cf[_0x36f4ab(0x125)](_0x42a7e4=>_0x42a7e4[_0x36f4ab(0x11a)]==_0x591197&&_0x42a7e4['key']===core_2[_0x36f4ab(0x10d)]&&(_0x42a7e4===null||_0x42a7e4===void 0x0?void 0x0:_0x42a7e4[_0x36f4ab(0x105)]));if(_0x594d06===null||_0x594d06===void 0x0?void 0x0:_0x594d06['metadata']){let _0x2723b6=convertTypeToString(_0x594d06[_0x36f4ab(0x105)][_0x36f4ab(0xed)]||0x0);if([_0x36f4ab(0x113),'body']['indexOf'](_0x2723b6)!=-0x1&&_0x594d06['metadata'][_0x36f4ab(0x12c)][_0x36f4ab(0xe9)](':')==-0x1&&!_0x508e4[_0x36f4ab(0xdc)][_0x36f4ab(0x125)](_0x4e7b1b=>_0x4e7b1b[_0x36f4ab(0x138)]==_0x594d06['metadata'][_0x36f4ab(0x12c)]))_0x508e4[_0x36f4ab(0xdc)][_0x36f4ab(0xff)]({'key':_0x594d06[_0x36f4ab(0x105)]['propertyData'],'title':_0x594d06[_0x36f4ab(0x105)][_0x36f4ab(0x12c)],'type':convertSchemaType(_0x59cd86[_0x594d06[_0x36f4ab(0x11a)]]['name']),'required':![],'default':'','desc':''});else{if(_0x2723b6==_0x36f4ab(0x111)){let _0x39a838=((_0x215509=_0x594d06===null||_0x594d06===void 0x0?void 0x0:_0x594d06['metadata'])===null||_0x215509===void 0x0?void 0x0:_0x215509[_0x36f4ab(0x12c)])||'file';_0x39a838[_0x36f4ab(0xe9)](':')==-0x1&&!_0x508e4[_0x36f4ab(0xdc)][_0x36f4ab(0x125)](_0x4dd16b=>_0x4dd16b[_0x36f4ab(0x138)]==_0x39a838&&_0x4dd16b[_0x36f4ab(0xed)]==_0x36f4ab(0x111))&&_0x508e4['request'][_0x36f4ab(0xff)]({'key':_0x39a838,'title':_0x36f4ab(0x136)+_0x39a838,'type':_0x36f4ab(0x111),'required':!![],'default':'','desc':''});}}}else{const _0x22d0ff=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x36f4ab(0x107)],_0x59cd86[_0x591197]);_0x22d0ff&&_0x508e4[_0x36f4ab(0xdc)][_0x36f4ab(0xff)](...getJoiRequest(_0x22d0ff));}}}_0x2e1451[_0x36f4ab(0xde)][_0x36f4ab(0xff)](_0x508e4);}}if(_0x2e1451['routes'][_0x36f4ab(0xe2)]>0x0){let _0x2c7a32=_0x7822d5[_0x5aed78];_0x2c7a32?(_0x2c7a32['summary']!=_0x2e1451['summary']&&(_0x2c7a32[_0x36f4ab(0x12e)]=_0x2c7a32[_0x36f4ab(0x12e)]+','+_0x2e1451[_0x36f4ab(0x12e)]),_0x2c7a32[_0x36f4ab(0xec)]!=_0x2e1451[_0x36f4ab(0xec)]&&(_0x2c7a32[_0x36f4ab(0xec)]=_0x2c7a32[_0x36f4ab(0xec)]+','+_0x2e1451['description']),_0x2c7a32['routes']=_0x2c7a32['routes'][_0x36f4ab(0x118)](_0x2e1451[_0x36f4ab(0xde)]),_0x7822d5[_0x5aed78]=_0x2c7a32):_0x7822d5[_0x5aed78]=_0x2e1451;}}}return _0x7822d5;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x56a60f){const _0x29abd6=a8_0x456a8a,_0x3928bb=[];for(let _0x4b5d44 in _0x56a60f){const _0x2ea7de={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x11ce2e=typeof _0x56a60f[_0x4b5d44][_0x29abd6(0x101)]=='function'?_0x56a60f[_0x4b5d44][_0x29abd6(0x101)]():_0x56a60f[_0x4b5d44];_0x2ea7de[_0x29abd6(0x138)]=_0x4b5d44,_0x2ea7de['type']=_0x11ce2e[_0x29abd6(0xed)],_0x2ea7de[_0x29abd6(0x10e)]=(0x0,lodash_1['get'])(_0x11ce2e,_0x29abd6(0xfb),_0x4b5d44),_0x2ea7de[_0x29abd6(0x123)]=(0x0,lodash_1[_0x29abd6(0xdb)])(_0x11ce2e,'flags.default',''),_0x2ea7de[_0x29abd6(0xda)]=(0x0,lodash_1[_0x29abd6(0xdb)])(_0x11ce2e,_0x29abd6(0xea),'')==_0x29abd6(0xda),_0x2ea7de[_0x29abd6(0xec)]=(0x0,lodash_1[_0x29abd6(0xdb)])(_0x11ce2e,'flags.description','');if(_0x11ce2e['type']==_0x29abd6(0x100))_0x2ea7de[_0x29abd6(0x108)]=getJoiRequest(_0x11ce2e[_0x29abd6(0xd5)]);else{if(_0x11ce2e['type']==_0x29abd6(0xdf)&&_0x11ce2e[_0x29abd6(0x134)]&&Array['isArray'](_0x11ce2e[_0x29abd6(0x134)])&&_0x11ce2e[_0x29abd6(0x134)][0x0]){}}_0x11ce2e[_0x29abd6(0xd9)]&&Array[_0x29abd6(0x13a)](_0x11ce2e['allow'])&&_0x11ce2e[_0x29abd6(0xd9)][_0x29abd6(0xe2)]>0x0&&(_0x2ea7de['description']=_0x29abd6(0x11e)+_0x11ce2e[_0x29abd6(0xd9)][_0x29abd6(0x128)](',')+'];'+_0x2ea7de['description']);if(_0x2ea7de[_0x29abd6(0x138)]&&_0x2ea7de[_0x29abd6(0xed)]){const _0x3c9955={};for(const _0x3a27c6 of _0x11ce2e[_0x29abd6(0x12d)]||[]){if(_0x3a27c6[_0x29abd6(0x139)]===_0x29abd6(0x10f)&&_0x3a27c6[_0x29abd6(0x11b)])_0x3c9955['min']=_0x3a27c6['args'][_0x29abd6(0x10a)];else _0x3a27c6[_0x29abd6(0x139)]===_0x29abd6(0x12f)&&(_0x3c9955['max']=_0x3a27c6['args'][_0x29abd6(0x10a)]);}_0x2ea7de['rules']=_0x3c9955;}_0x2ea7de[_0x29abd6(0x138)]&&_0x2ea7de[_0x29abd6(0x10e)]&&_0x3928bb[_0x29abd6(0xff)](_0x2ea7de);}return _0x3928bb;}function convertSchemaType(_0x283335){const _0x370b3e=a8_0x456a8a;switch(_0x283335){case _0x370b3e(0x102):return _0x370b3e(0x100);case _0x370b3e(0x127):return _0x370b3e(0x121);case _0x370b3e(0xfc):return'number';case _0x370b3e(0xf9):return _0x370b3e(0xf5);case _0x370b3e(0xe7):return _0x370b3e(0x111);default:return'string';}}function convertTypeToString(_0x379ffa){const _0x16d35e=a8_0x456a8a;switch(_0x379ffa){case core_1[_0x16d35e(0xee)][_0x16d35e(0xf8)]:return _0x16d35e(0xf2);case core_1[_0x16d35e(0xee)][_0x16d35e(0xd4)]:return _0x16d35e(0x113);case core_1[_0x16d35e(0xee)][_0x16d35e(0xe1)]:return _0x16d35e(0xe4);case core_1[_0x16d35e(0xee)][_0x16d35e(0x104)]:return _0x16d35e(0xeb);case core_1[_0x16d35e(0xee)][_0x16d35e(0x11d)]:case core_1[_0x16d35e(0xee)][_0x16d35e(0xf0)]:case core_1[_0x16d35e(0xee)][_0x16d35e(0x106)]:return _0x16d35e(0x111);default:return'header';}}
|
|
1
|
+
const a8_0x4e2de6=a8_0x5e68;function a8_0xb469(){const _0x58e3a6=['81666cKRfkA','header','description','endsWith','indexOf','args','metadata','children','FIELDS','max','4764572JXaeZz','intercept','routerOptions','body','array','concat','required','items','99MrEiAh','defineProperty','module','WEB_ROUTER_PARAM_KEY','route','1238552zyUVtj','name','min','routes','default','rules','FILESTREAM','allow','Boolean','string','get','path','request','String','apply','@midwayjs/core','type','../types/action','number','RouteParamTypes','isArray','title','文件上传-','push','BODY','flags.presence','File','只允许:[','QUERY','85MrjfuG','getMethodParamTypes','ACTION_ROUTE_KEY','HEADERS','parameterIndex','length','flags.default','file','@anncic-api/validator','search','PARAM','summary','154410HqlQYS','constructor','__esModule','filter','prefix','noreq','propertyData','tagName','key','INJECT_CUSTOM_PARAM','join','920338aqKYYF','flags.description','9285864IfmEoS','6583824OJgPnO','split','method','filepath','boolean','flags.label','6bKWMTl','listModule','startsWith','getRoutes','test','query','limit','pprefix','getClassMetadata','object','toString','ACTION_KEY','find','function'];a8_0xb469=function(){return _0x58e3a6;};return a8_0xb469();}(function(_0x5c455e,_0x71cac3){const _0x408521=a8_0x5e68,_0xbdfc4=_0x5c455e();while(!![]){try{const _0x330fc7=parseInt(_0x408521(0xa2))/0x1+-parseInt(_0x408521(0x6e))/0x2*(parseInt(_0x408521(0xab))/0x3)+parseInt(_0x408521(0xc3))/0x4+-parseInt(_0x408521(0x8b))/0x5*(parseInt(_0x408521(0xb9))/0x6)+parseInt(_0x408521(0xa4))/0x7+-parseInt(_0x408521(0xa5))/0x8+-parseInt(_0x408521(0x69))/0x9*(parseInt(_0x408521(0x97))/0xa);if(_0x330fc7===_0x71cac3)break;else _0xbdfc4['push'](_0xbdfc4['shift']());}catch(_0x59fb0c){_0xbdfc4['push'](_0xbdfc4['shift']());}}}(a8_0xb469,0xee1a1));const a8_0x5de6e3=(function(){let _0x1afa00=!![];return function(_0x21297c,_0x2840a9){const _0x3935d7=_0x1afa00?function(){const _0xb5e82a=a8_0x5e68;if(_0x2840a9){const _0x11ec60=_0x2840a9[_0xb5e82a(0x7c)](_0x21297c,arguments);return _0x2840a9=null,_0x11ec60;}}:function(){};return _0x1afa00=![],_0x3935d7;};}()),a8_0x2e7c6d=a8_0x5de6e3(this,function(){const _0x46c6db=a8_0x5e68;return a8_0x2e7c6d[_0x46c6db(0xb5)]()[_0x46c6db(0x94)]('(((.+)+)+)+$')[_0x46c6db(0xb5)]()[_0x46c6db(0x98)](a8_0x2e7c6d)[_0x46c6db(0x94)]('(((.+)+)+)+$');});a8_0x2e7c6d();'use strict';Object[a8_0x4e2de6(0x6a)](exports,a8_0x4e2de6(0x99),{'value':!![]}),exports[a8_0x4e2de6(0xae)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x4e2de6(0x93)),core_1=require(a8_0x4e2de6(0x7d)),core_2=require('@midwayjs/core'),core_3=require(a8_0x4e2de6(0x7d)),action_1=require(a8_0x4e2de6(0x7f));function getRoutes(_0x1276eb={'prefix':'/','module':![]}){const _0xb4f066=a8_0x4e2de6;var _0x1ed8cd,_0x8246fe;const _0x1f7dce=(0x0,core_3[_0xb4f066(0xac)])(action_1[_0xb4f066(0xb6)]),_0x5283a7={},_0x516425=Array[_0xb4f066(0x82)](_0x1276eb[_0xb4f066(0x9a)]||[])?_0x1276eb['filter']||[]:[_0x1276eb[_0xb4f066(0x9a)]];_0xb6c57:for(const _0x1dd04a of _0x1f7dce){let _0x563092=(0x0,core_3[_0xb4f066(0xb3)])(action_1[_0xb4f066(0xb6)],_0x1dd04a),_0x33e165=(0x0,core_3[_0xb4f066(0xb3)])(action_1[_0xb4f066(0x8d)],_0x1dd04a);if(_0x563092&&_0x33e165){let _0x3b0ed3=_0x563092[_0xb4f066(0x9b)],_0x1eb029={};if(_0x1276eb[_0xb4f066(0x6b)]&&(0x0,lodash_1[_0xb4f066(0x78)])(_0x563092,_0xb4f066(0x6b),![])!=_0x1276eb['module'])continue _0xb6c57;else{if(_0x1276eb[_0xb4f066(0x6b)]===![]&&!!(0x0,lodash_1[_0xb4f066(0x78)])(_0x563092,'module',null))continue _0xb6c57;}if(_0x1276eb['prefix']&&!_0x3b0ed3[_0xb4f066(0xad)](_0x1276eb[_0xb4f066(0x9b)]))continue _0xb6c57;_0x3b0ed3!=='/'?(_0x1eb029[_0xb4f066(0x96)]=(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092['routerOptions'][_0xb4f066(0x9e)])||(/^\//[_0xb4f066(0xaf)](_0x3b0ed3)?_0x3b0ed3[_0xb4f066(0xa6)]('/')[0x1]:_0x3b0ed3),_0x1eb029[_0xb4f066(0xbb)]=(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092[_0xb4f066(0xc5)][_0xb4f066(0xbb)])||_0x1eb029[_0xb4f066(0x96)],_0x1eb029['routes']=[]):(_0x1eb029['summary']=(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092[_0xb4f066(0xc5)][_0xb4f066(0x9e)])||_0xb4f066(0x72),_0x1eb029[_0xb4f066(0xbb)]=(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092[_0xb4f066(0xc5)]['description'])||'',_0x1eb029[_0xb4f066(0x71)]=[]);_0x1276eb[_0xb4f066(0xa8)]&&(_0x1eb029[_0xb4f066(0xa8)]=_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092['filepath']);(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092[_0xb4f066(0xb2)])&&(_0x1eb029[_0xb4f066(0x9b)]=_0x563092['pprefix']);(_0x563092===null||_0x563092===void 0x0?void 0x0:_0x563092[_0xb4f066(0x6b)])&&(_0x1eb029[_0xb4f066(0x6b)]=_0x563092[_0xb4f066(0x6b)]);let _0x535014=(0x0,core_3[_0xb4f066(0xb3)])(core_2[_0xb4f066(0xa0)],_0x1dd04a)||{};if(typeof _0x33e165[Symbol['iterator']]===_0xb4f066(0xb8))for(let _0x5a8738 of _0x33e165){if((_0x1276eb===null||_0x1276eb===void 0x0?void 0x0:_0x1276eb[_0xb4f066(0xc4)])&&!(_0x5a8738===null||_0x5a8738===void 0x0?void 0x0:_0x5a8738[_0xb4f066(0xc4)]))continue;let _0x419a77={};_0x419a77[_0xb4f066(0xa7)]=_0x5a8738['requestMethod'],_0x419a77['route']=(_0x3b0ed3+_0x5a8738[_0xb4f066(0x79)])['replace'](/\/{2,}/g,'/'),_0x419a77[_0xb4f066(0x96)]=(_0x5a8738===null||_0x5a8738===void 0x0?void 0x0:_0x5a8738['routerName'])||_0x1eb029[_0xb4f066(0x96)]||_0xb4f066(0x72),_0x419a77['description']=(_0x5a8738===null||_0x5a8738===void 0x0?void 0x0:_0x5a8738[_0xb4f066(0xbb)])||'',_0x419a77['request']=[];_0x419a77[_0xb4f066(0x6d)][_0xb4f066(0xbc)]('/')&&(_0x419a77[_0xb4f066(0x6d)]=_0x419a77[_0xb4f066(0x6d)]['substring'](0x0,_0x419a77[_0xb4f066(0x6d)][_0xb4f066(0x90)]-0x1));if(!(0x0,lodash_1[_0xb4f066(0xad)])(_0x419a77['route'],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x419a77[_0xb4f066(0x6d)],'/static/apitest')&&_0x516425[_0xb4f066(0xbd)](_0x419a77[_0xb4f066(0x6d)])===-0x1){if(!(_0x1276eb===null||_0x1276eb===void 0x0?void 0x0:_0x1276eb[_0xb4f066(0x9c)])){let _0x2f08c6=(0x0,core_3[_0xb4f066(0x8c)])(new _0x1dd04a(),_0x5a8738[_0xb4f066(0xa7)]);for(const _0x35b546 in _0x2f08c6){let _0x354a87=(_0x1ed8cd=_0x535014[_0x5a8738[_0xb4f066(0xa7)]])===null||_0x1ed8cd===void 0x0?void 0x0:_0x1ed8cd[_0xb4f066(0xb7)](_0x5f4094=>_0x5f4094[_0xb4f066(0x8f)]==_0x35b546&&_0x5f4094['key']===core_2[_0xb4f066(0x6c)]&&(_0x5f4094===null||_0x5f4094===void 0x0?void 0x0:_0x5f4094[_0xb4f066(0xbf)]));if(_0x354a87===null||_0x354a87===void 0x0?void 0x0:_0x354a87[_0xb4f066(0xbf)]){let _0x1957e5=convertTypeToString(_0x354a87[_0xb4f066(0xbf)][_0xb4f066(0x7e)]||0x0);if(['query','body'][_0xb4f066(0xbd)](_0x1957e5)!=-0x1&&_0x354a87[_0xb4f066(0xbf)]['propertyData'][_0xb4f066(0xbd)](':')==-0x1&&!_0x419a77[_0xb4f066(0x7a)][_0xb4f066(0xb7)](_0x25343d=>_0x25343d[_0xb4f066(0x9f)]==_0x354a87[_0xb4f066(0xbf)][_0xb4f066(0x9d)]))_0x419a77['request'][_0xb4f066(0x85)]({'key':_0x354a87[_0xb4f066(0xbf)][_0xb4f066(0x9d)],'title':_0x354a87['metadata'][_0xb4f066(0x9d)],'type':convertSchemaType(_0x2f08c6[_0x354a87[_0xb4f066(0x8f)]][_0xb4f066(0x6f)]),'required':![],'default':'','desc':''});else{if(_0x1957e5==_0xb4f066(0x92)){let _0x252353=((_0x8246fe=_0x354a87===null||_0x354a87===void 0x0?void 0x0:_0x354a87[_0xb4f066(0xbf)])===null||_0x8246fe===void 0x0?void 0x0:_0x8246fe[_0xb4f066(0x9d)])||_0xb4f066(0x92);_0x252353[_0xb4f066(0xbd)](':')==-0x1&&!_0x419a77[_0xb4f066(0x7a)][_0xb4f066(0xb7)](_0x3de43d=>_0x3de43d['key']==_0x252353&&_0x3de43d[_0xb4f066(0x7e)]=='file')&&_0x419a77[_0xb4f066(0x7a)][_0xb4f066(0x85)]({'key':_0x252353,'title':_0xb4f066(0x84)+_0x252353,'type':_0xb4f066(0x92),'required':!![],'default':'','desc':''});}}}else{const _0x5784b1=(0x0,core_3['getClassExtendedMetadata'])(validator_1['RULES_KEY'],_0x2f08c6[_0x35b546]);_0x5784b1&&_0x419a77[_0xb4f066(0x7a)][_0xb4f066(0x85)](...getJoiRequest(_0x5784b1));}}}_0x1eb029[_0xb4f066(0x71)]['push'](_0x419a77);}}if(_0x1eb029[_0xb4f066(0x71)][_0xb4f066(0x90)]>0x0){let _0x3fde37=_0x5283a7[_0x3b0ed3];_0x3fde37?(_0x3fde37[_0xb4f066(0x96)]!=_0x1eb029[_0xb4f066(0x96)]&&(_0x3fde37[_0xb4f066(0x96)]=_0x3fde37['summary']+','+_0x1eb029['summary']),_0x3fde37[_0xb4f066(0xbb)]!=_0x1eb029[_0xb4f066(0xbb)]&&(_0x3fde37['description']=_0x3fde37['description']+','+_0x1eb029[_0xb4f066(0xbb)]),_0x3fde37[_0xb4f066(0x71)]=_0x3fde37[_0xb4f066(0x71)][_0xb4f066(0x66)](_0x1eb029[_0xb4f066(0x71)]),_0x5283a7[_0x3b0ed3]=_0x3fde37):_0x5283a7[_0x3b0ed3]=_0x1eb029;}}}return _0x5283a7;}exports['getRoutes']=getRoutes;function getJoiRequest(_0xad8cb3){const _0x45db21=a8_0x4e2de6,_0x1fc951=[];for(let _0x9925d7 in _0xad8cb3){const _0x5ac9f9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x35cdfb=typeof _0xad8cb3[_0x9925d7]['describe']=='function'?_0xad8cb3[_0x9925d7]['describe']():_0xad8cb3[_0x9925d7];_0x5ac9f9[_0x45db21(0x9f)]=_0x9925d7,_0x5ac9f9['type']=_0x35cdfb[_0x45db21(0x7e)],_0x5ac9f9['title']=(0x0,lodash_1[_0x45db21(0x78)])(_0x35cdfb,_0x45db21(0xaa),_0x9925d7),_0x5ac9f9['default']=(0x0,lodash_1['get'])(_0x35cdfb,_0x45db21(0x91),''),_0x5ac9f9['required']=(0x0,lodash_1[_0x45db21(0x78)])(_0x35cdfb,_0x45db21(0x87),'')==_0x45db21(0x67),_0x5ac9f9[_0x45db21(0xbb)]=(0x0,lodash_1[_0x45db21(0x78)])(_0x35cdfb,_0x45db21(0xa3),'');if(_0x35cdfb[_0x45db21(0x7e)]=='object')_0x5ac9f9[_0x45db21(0xc0)]=getJoiRequest(_0x35cdfb['keys']);else{if(_0x35cdfb['type']==_0x45db21(0x65)&&_0x35cdfb[_0x45db21(0x68)]&&Array[_0x45db21(0x82)](_0x35cdfb[_0x45db21(0x68)])&&_0x35cdfb[_0x45db21(0x68)][0x0]){}}_0x35cdfb[_0x45db21(0x75)]&&Array[_0x45db21(0x82)](_0x35cdfb[_0x45db21(0x75)])&&_0x35cdfb[_0x45db21(0x75)][_0x45db21(0x90)]>0x0&&(_0x5ac9f9[_0x45db21(0xbb)]=_0x45db21(0x89)+_0x35cdfb[_0x45db21(0x75)][_0x45db21(0xa1)](',')+'];'+_0x5ac9f9[_0x45db21(0xbb)]);if(_0x5ac9f9[_0x45db21(0x9f)]&&_0x5ac9f9['type']){const _0x240814={};for(const _0x30a6c1 of _0x35cdfb[_0x45db21(0x73)]||[]){if(_0x30a6c1[_0x45db21(0x6f)]==='min'&&_0x30a6c1[_0x45db21(0xbe)])_0x240814[_0x45db21(0x70)]=_0x30a6c1[_0x45db21(0xbe)][_0x45db21(0xb1)];else _0x30a6c1[_0x45db21(0x6f)]===_0x45db21(0xc2)&&(_0x240814['max']=_0x30a6c1[_0x45db21(0xbe)][_0x45db21(0xb1)]);}_0x5ac9f9[_0x45db21(0x73)]=_0x240814;}_0x5ac9f9['key']&&_0x5ac9f9[_0x45db21(0x83)]&&_0x1fc951[_0x45db21(0x85)](_0x5ac9f9);}return _0x1fc951;}function a8_0x5e68(_0x458648,_0x18f0ba){const _0x17c423=a8_0xb469();return a8_0x5e68=function(_0x2e7c6d,_0x5de6e3){_0x2e7c6d=_0x2e7c6d-0x65;let _0xb4690e=_0x17c423[_0x2e7c6d];return _0xb4690e;},a8_0x5e68(_0x458648,_0x18f0ba);}function convertSchemaType(_0x832e7c){const _0x546940=a8_0x4e2de6;switch(_0x832e7c){case'Object':return _0x546940(0xb4);case _0x546940(0x76):return _0x546940(0xa9);case'Number':return _0x546940(0x80);case _0x546940(0x7b):return _0x546940(0x77);case _0x546940(0x88):return'file';default:return _0x546940(0x77);}}function convertTypeToString(_0x3d0810){const _0xd12649=a8_0x4e2de6;switch(_0x3d0810){case core_1[_0xd12649(0x81)][_0xd12649(0x8e)]:return'header';case core_1[_0xd12649(0x81)][_0xd12649(0x8a)]:return _0xd12649(0xb0);case core_1[_0xd12649(0x81)][_0xd12649(0x95)]:return'path';case core_1[_0xd12649(0x81)][_0xd12649(0x86)]:return _0xd12649(0xc6);case core_1[_0xd12649(0x81)][_0xd12649(0xc1)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1['RouteParamTypes'][_0xd12649(0x74)]:return _0xd12649(0x92);default:return _0xd12649(0xba);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x30d061=a9_0x4c20;(function(_0x4c6fc0,_0x314f0d){var _0x5ed4fc=a9_0x4c20,_0x59f74a=_0x4c6fc0();while(!![]){try{var _0x53c8ea=parseInt(_0x5ed4fc(0x198))/0x1+-parseInt(_0x5ed4fc(0x173))/0x2+parseInt(_0x5ed4fc(0x17e))/0x3*(-parseInt(_0x5ed4fc(0x197))/0x4)+parseInt(_0x5ed4fc(0x185))/0x5+parseInt(_0x5ed4fc(0x193))/0x6+-parseInt(_0x5ed4fc(0x19f))/0x7+-parseInt(_0x5ed4fc(0x1a9))/0x8;if(_0x53c8ea===_0x314f0d)break;else _0x59f74a['push'](_0x59f74a['shift']());}catch(_0xfede1a){_0x59f74a['push'](_0x59f74a['shift']());}}}(a9_0x3bfc,0x7cded));var a9_0x2ef7a3=(function(){var _0x49f522=!![];return function(_0x53b342,_0x51154c){var _0x1bba22=_0x49f522?function(){var _0x52447b=a9_0x4c20;if(_0x51154c){var _0x6bebf5=_0x51154c[_0x52447b(0x191)](_0x53b342,arguments);return _0x51154c=null,_0x6bebf5;}}:function(){};return _0x49f522=![],_0x1bba22;};}()),a9_0x1f6d2c=a9_0x2ef7a3(this,function(){var _0x546c22=a9_0x4c20;return a9_0x1f6d2c['toString']()[_0x546c22(0x1a1)](_0x546c22(0x17f))[_0x546c22(0x196)]()[_0x546c22(0x184)](a9_0x1f6d2c)['search']('(((.+)+)+)+$');});a9_0x1f6d2c();'use strict';var __createBinding=this&&this[a9_0x30d061(0x177)]||(Object[a9_0x30d061(0x18c)]?function(_0x8ed834,_0x37da2e,_0x290303,_0x1fd413){var _0x218d33=a9_0x30d061;if(_0x1fd413===undefined)_0x1fd413=_0x290303;var _0x586941=Object['getOwnPropertyDescriptor'](_0x37da2e,_0x290303);(!_0x586941||('get'in _0x586941?!_0x37da2e[_0x218d33(0x1a8)]:_0x586941['writable']||_0x586941['configurable']))&&(_0x586941={'enumerable':!![],'get':function(){return _0x37da2e[_0x290303];}}),Object['defineProperty'](_0x8ed834,_0x1fd413,_0x586941);}:function(_0x50dbf2,_0x423edc,_0x13138c,_0x387fed){if(_0x387fed===undefined)_0x387fed=_0x13138c;_0x50dbf2[_0x387fed]=_0x423edc[_0x13138c];}),__exportStar=this&&this['__exportStar']||function(_0x43be8e,_0x56d261){var _0x262c9d=a9_0x30d061;for(var _0x10b45f in _0x43be8e)if(_0x10b45f!==_0x262c9d(0x186)&&!Object[_0x262c9d(0x19d)][_0x262c9d(0x1ae)][_0x262c9d(0x1a4)](_0x56d261,_0x10b45f))__createBinding(_0x56d261,_0x43be8e,_0x10b45f);};Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x1a8),{'value':!![]}),exports[a9_0x30d061(0x181)]=exports[a9_0x30d061(0x190)]=exports[a9_0x30d061(0x182)]=exports['Scope']=exports[a9_0x30d061(0x18e)]=exports[a9_0x30d061(0x188)]=exports[a9_0x30d061(0x17d)]=exports[a9_0x30d061(0x175)]=exports[a9_0x30d061(0x187)]=exports[a9_0x30d061(0x17c)]=exports[a9_0x30d061(0x192)]=exports[a9_0x30d061(0x174)]=exports[a9_0x30d061(0x1a5)]=exports[a9_0x30d061(0x1a3)]=exports['Fields']=exports[a9_0x30d061(0x1a2)]=exports['File']=exports[a9_0x30d061(0x18d)]=exports[a9_0x30d061(0x1a0)]=exports[a9_0x30d061(0x18b)]=exports[a9_0x30d061(0x1a7)]=exports[a9_0x30d061(0x19a)]=exports[a9_0x30d061(0x199)]=exports[a9_0x30d061(0x1aa)]=exports[a9_0x30d061(0x19b)]=exports[a9_0x30d061(0x183)]=exports['IIntercept']=exports[a9_0x30d061(0x19c)]=exports[a9_0x30d061(0x195)]=exports[a9_0x30d061(0x180)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x181),{'enumerable':!![],'get':function(){var _0x425992=a9_0x30d061;return getAppsConfig_1[_0x425992(0x181)];}}),__exportStar(require(a9_0x30d061(0x1ab)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a9_0x30d061(0x1ac));Object['defineProperty'](exports,a9_0x30d061(0x180),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x195),{'enumerable':!![],'get':function(){var _0xef71cd=a9_0x30d061;return ActionApitest_1[_0xef71cd(0x195)];}});var Intercept_1=require(a9_0x30d061(0x194));Object['defineProperty'](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x19efd1=a9_0x30d061;return Intercept_1[_0x19efd1(0x19c)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x19e),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a9_0x30d061(0x18f));Object['defineProperty'](exports,a9_0x30d061(0x183),{'enumerable':!![],'get':function(){var _0x2e6a87=a9_0x30d061;return getRoutes_1[_0x2e6a87(0x183)];}});function a9_0x4c20(_0x291782,_0x38ee55){var _0x55223f=a9_0x3bfc();return a9_0x4c20=function(_0x1f6d2c,_0x2ef7a3){_0x1f6d2c=_0x1f6d2c-0x173;var _0x3bfce3=_0x55223f[_0x1f6d2c];return _0x3bfce3;},a9_0x4c20(_0x291782,_0x38ee55);}var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a9_0x30d061(0x19b),{'enumerable':!![],'get':function(){var _0x4c0f22=a9_0x30d061;return ApiError_1[_0x4c0f22(0x19b)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x30d061(0x176)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x250429=a9_0x30d061;return cache_1[_0x250429(0x1aa)];}});var event_1=require('@anncic-api/event');Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x199),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x30d061(0x17a));function a9_0x3bfc(){var _0x27b9d8=['File','Init','Logger','815370yzEsiU','(((.+)+)+)+$','Action','getAppsConfig','Singleton','getRoutes','constructor','5016780qQTARt','default','App','Provide','Scope','@anncic-api/validator','ValidatorError','create','Configuration','Inject','./helper/getRoutes','ScopeEnum','apply','Headers','4821012xcvTBb','./decorator/Intercept','Apitest','toString','4ShMlYj','311067wILGtH','EventService','ApiService','ApiError','Intercept','prototype','IIntercept','4552107XsYKgA','ValidatorService','search','Files','Body','call','Param','CustomConfiguration','ExcelService','__esModule','4585400FWMgyn','CacheService','./types/common','./decorator/Action','./configuration','hasOwnProperty','./service/ExcelService','222380wYjAkb','Query','Config','defineProperty','__createBinding','@midwayjs/core','Fields','./service/ApiService'];a9_0x3bfc=function(){return _0x27b9d8;};return a9_0x3bfc();}Object[a9_0x30d061(0x176)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x232d22=a9_0x30d061;return ApiService_1[_0x232d22(0x19a)];}});var ExcelService_1=require(a9_0x30d061(0x1af));Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x1a7),{'enumerable':!![],'get':function(){var _0x5f023a=a9_0x30d061;return ExcelService_1[_0x5f023a(0x1a7)];}});var validator_1=require(a9_0x30d061(0x18a));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x53d477=a9_0x30d061;return validator_1[_0x53d477(0x18b)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x1a0),{'enumerable':!![],'get':function(){var _0x447d72=a9_0x30d061;return validator_1[_0x447d72(0x1a0)];}});var configuration_1=require(a9_0x30d061(0x1ad));Object[a9_0x30d061(0x176)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2f69fe=a9_0x30d061;return configuration_1[_0x2f69fe(0x1a6)];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,a9_0x30d061(0x17b),{'enumerable':!![],'get':function(){var _0x3e86da=a9_0x30d061;return core_1[_0x3e86da(0x17b)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x1a2),{'enumerable':!![],'get':function(){var _0x35202d=a9_0x30d061;return core_1[_0x35202d(0x1a2)];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x44074a=a9_0x30d061;return core_1[_0x44074a(0x179)];}}),Object['defineProperty'](exports,a9_0x30d061(0x1a3),{'enumerable':!![],'get':function(){var _0x467662=a9_0x30d061;return core_1[_0x467662(0x1a3)];}}),Object[a9_0x30d061(0x176)](exports,'Param',{'enumerable':!![],'get':function(){var _0x246c67=a9_0x30d061;return core_1[_0x246c67(0x1a5)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x174),{'enumerable':!![],'get':function(){var _0x4b12d6=a9_0x30d061;return core_1[_0x4b12d6(0x174)];}}),Object['defineProperty'](exports,a9_0x30d061(0x192),{'enumerable':!![],'get':function(){var _0x1d433b=a9_0x30d061;return core_1[_0x1d433b(0x192)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x17c),{'enumerable':!![],'get':function(){var _0x45a00b=a9_0x30d061;return core_1[_0x45a00b(0x17c)];}});var core_2=require(a9_0x30d061(0x178));Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x175),{'enumerable':!![],'get':function(){var _0x50c800=a9_0x30d061;return core_2[_0x50c800(0x175)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x17d),{'enumerable':!![],'get':function(){var _0x424521=a9_0x30d061;return core_2[_0x424521(0x17d)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x188),{'enumerable':!![],'get':function(){var _0x36cdad=a9_0x30d061;return core_2[_0x36cdad(0x188)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x18e),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x189),{'enumerable':!![],'get':function(){var _0x46a5d9=a9_0x30d061;return core_2[_0x46a5d9(0x189)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x182),{'enumerable':!![],'get':function(){var _0x2b367e=a9_0x30d061;return core_2[_0x2b367e(0x182)];}}),Object[a9_0x30d061(0x176)](exports,a9_0x30d061(0x190),{'enumerable':!![],'get':function(){var _0x3920f6=a9_0x30d061;return core_2[_0x3920f6(0x190)];}}),global[a9_0x30d061(0x181)]=getAppsConfig_1[a9_0x30d061(0x181)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x516384=a10_0x78b0;(function(_0x531d1a,_0x485422){var _0x170a71=a10_0x78b0,_0x26c80e=_0x531d1a();while(!![]){try{var _0x4d9d46=parseInt(_0x170a71(0xec))/0x1*(-parseInt(_0x170a71(0xe9))/0x2)+parseInt(_0x170a71(0xe5))/0x3+-parseInt(_0x170a71(0xf9))/0x4*(-parseInt(_0x170a71(0xce))/0x5)+-parseInt(_0x170a71(0xca))/0x6+-parseInt(_0x170a71(0xf4))/0x7*(parseInt(_0x170a71(0xd0))/0x8)+parseInt(_0x170a71(0xf1))/0x9*(parseInt(_0x170a71(0xe7))/0xa)+parseInt(_0x170a71(0xe0))/0xb;if(_0x4d9d46===_0x485422)break;else _0x26c80e['push'](_0x26c80e['shift']());}catch(_0x1bf80a){_0x26c80e['push'](_0x26c80e['shift']());}}}(a10_0x3301,0xa0b07));var a10_0x2a46d9=(function(){var _0x462d0b=!![];return function(_0x482bda,_0x539811){var _0x7871e=_0x462d0b?function(){var _0x5da281=a10_0x78b0;if(_0x539811){var _0x5ec7f7=_0x539811[_0x5da281(0xdb)](_0x482bda,arguments);return _0x539811=null,_0x5ec7f7;}}:function(){};return _0x462d0b=![],_0x7871e;};}()),a10_0x3a7790=a10_0x2a46d9(this,function(){var _0x1afbb3=a10_0x78b0;return a10_0x3a7790['toString']()[_0x1afbb3(0xd7)](_0x1afbb3(0xeb))['toString']()[_0x1afbb3(0xf7)](a10_0x3a7790)[_0x1afbb3(0xd7)](_0x1afbb3(0xeb));});a10_0x3a7790();function a10_0x78b0(_0x4e2c1c,_0xeb44c4){var _0x18f195=a10_0x3301();return a10_0x78b0=function(_0x3a7790,_0x2a46d9){_0x3a7790=_0x3a7790-0xbf;var _0x3301a7=_0x18f195[_0x3a7790];return _0x3301a7;},a10_0x78b0(_0x4e2c1c,_0xeb44c4);}'use strict';var __decorate=this&&this[a10_0x516384(0xf6)]||function(_0x2f0247,_0x291da6,_0x153ded,_0x3e14cd){var _0x5f15b4=a10_0x516384,_0x2d84c1=arguments[_0x5f15b4(0x101)],_0x51f866=_0x2d84c1<0x3?_0x291da6:_0x3e14cd===null?_0x3e14cd=Object['getOwnPropertyDescriptor'](_0x291da6,_0x153ded):_0x3e14cd,_0x57fa28;if(typeof Reflect===_0x5f15b4(0xe2)&&typeof Reflect[_0x5f15b4(0xe1)]===_0x5f15b4(0xda))_0x51f866=Reflect[_0x5f15b4(0xe1)](_0x2f0247,_0x291da6,_0x153ded,_0x3e14cd);else{for(var _0x89f08c=_0x2f0247[_0x5f15b4(0x101)]-0x1;_0x89f08c>=0x0;_0x89f08c--)if(_0x57fa28=_0x2f0247[_0x89f08c])_0x51f866=(_0x2d84c1<0x3?_0x57fa28(_0x51f866):_0x2d84c1>0x3?_0x57fa28(_0x291da6,_0x153ded,_0x51f866):_0x57fa28(_0x291da6,_0x153ded))||_0x51f866;}return _0x2d84c1>0x3&&_0x51f866&&Object[_0x5f15b4(0xff)](_0x291da6,_0x153ded,_0x51f866),_0x51f866;},__metadata=this&&this['__metadata']||function(_0x87a310,_0x36472f){var _0x19b9ee=a10_0x516384;if(typeof Reflect==='object'&&typeof Reflect[_0x19b9ee(0xc2)]===_0x19b9ee(0xda))return Reflect[_0x19b9ee(0xc2)](_0x87a310,_0x36472f);};Object[a10_0x516384(0xff)](exports,a10_0x516384(0xde),{'value':!![]}),exports[a10_0x516384(0xcf)]=void 0x0;const crypto_js_1=require(a10_0x516384(0xe4)),core_1=require(a10_0x516384(0xc6)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0x53fed6){var _0x20668=a10_0x516384,_0x5b3ed5;return _0x53fed6?(0x0,crypto_js_1[_0x20668(0xf5)])(''+_0x53fed6+(0x0,crypto_js_1[_0x20668(0xf5)])((0x0,crypto_js_1[_0x20668(0xf5)])(''+_0x53fed6)[_0x20668(0x100)]()+(''+((_0x5b3ed5=this['config'])===null||_0x5b3ed5===void 0x0?void 0x0:_0x5b3ed5['password'])))[_0x20668(0x100)]())[_0x20668(0x100)]():'';}[a10_0x516384(0xe6)](_0x25d27,_0x486542,_0x5e6fb8=Date[a10_0x516384(0xfa)]()){var _0x26969b=a10_0x516384;return{'Token':_0x25d27,'Logintime':_0x5e6fb8,'Checkcode':this[_0x26969b(0xc7)](_0x25d27,_0x486542,_0x5e6fb8)};}[a10_0x516384(0xd9)](_0x4fcfa9={}){var _0x19911d=a10_0x516384,_0x49d1f6,_0x2dbaa7;const _0x1f7b59=[],_0x351356=Object['fromEntries'](Object['entries'](_0x4fcfa9)[_0x19911d(0xbf)](_0x5f42f3=>[_0x5f42f3[0x0][_0x19911d(0xdf)](),_0x5f42f3[0x1]]));for(let _0x172429 of[_0x19911d(0xef),_0x19911d(0xf8),_0x19911d(0xf3),_0x19911d(0xd1),_0x19911d(0xc7)]){if(typeof _0x351356[_0x172429]==_0x19911d(0xd8))throw new AnnError(ApiError_1[_0x19911d(0xf2)][_0x19911d(0xfe)],{'message':'验证失败'});_0x1f7b59[_0x19911d(0xfb)](_0x172429+'='+_0x351356[_0x172429]);}_0x351356['requesttime']&&((_0x49d1f6=_0x351356[_0x19911d(0xf8)])===null||_0x49d1f6===void 0x0?void 0x0:_0x49d1f6[_0x19911d(0x101)])==0xa&&(_0x351356[_0x19911d(0xf8)]=_0x351356['requesttime']*0x3e8);if(this[_0x19911d(0xc1)][_0x19911d(0xc8)]&&parseInt((''+Date[_0x19911d(0xfa)]())['substring'](0x0,0xd)['padEnd'](0xd,'0'))-parseInt((''+Math[_0x19911d(0xfd)](_0x351356['requesttime']))[_0x19911d(0xdc)](0x0,0xd)[_0x19911d(0xcc)](0xd,'0'))>parseInt(this[_0x19911d(0xc1)][_0x19911d(0xc8)]))throw new AnnError(ApiError_1[_0x19911d(0xf2)]['TIMEOUT'],{'message':_0x19911d(0xe8),'requesttime':_0x351356['requesttime'],'timestamp':Date[_0x19911d(0xfa)]()});if((((_0x2dbaa7=this[_0x19911d(0xc1)][_0x19911d(0xc0)][_0x351356['device']])===null||_0x2dbaa7===void 0x0?void 0x0:_0x2dbaa7[_0x19911d(0xf0)])||0x0)>0x0&&Date['now']()-Math[_0x19911d(0xfd)](_0x351356[_0x19911d(0xd1)])>this['config'][_0x19911d(0xc0)][_0x351356['device']][_0x19911d(0xf0)])throw new AnnError(ApiError_1[_0x19911d(0xf2)][_0x19911d(0xc4)]);if(!this[_0x19911d(0xc1)][_0x19911d(0xc0)][_0x351356['device']]||!this[_0x19911d(0xc1)][_0x19911d(0xc0)][_0x351356[_0x19911d(0xef)]][_0x19911d(0xee)]||!this[_0x19911d(0xc1)]['devices'][_0x351356['device']][_0x19911d(0xc7)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x351356[_0x19911d(0xf3)]&&_0x351356[_0x19911d(0xc7)]!=this[_0x19911d(0xc7)](_0x351356[_0x19911d(0xf3)],_0x351356[_0x19911d(0xef)],_0x351356[_0x19911d(0xd1)]))throw new AnnError(ApiError_1[_0x19911d(0xf2)][_0x19911d(0xd4)]);return _0x1f7b59[_0x19911d(0xfb)](_0x19911d(0xd2)+this['config'][_0x19911d(0xc0)][_0x351356[_0x19911d(0xef)]][_0x19911d(0xee)]),(0x0,crypto_js_1[_0x19911d(0xf5)])(_0x1f7b59[_0x19911d(0xc3)]()[_0x19911d(0xe3)](''))['toString']();}[a10_0x516384(0xc7)](_0x368f01,_0x4277de,_0x3ae27a=Date['now']()){var _0x37085f=a10_0x516384,_0x2288d8,_0x345f62,_0x2a3ec7;if(!((_0x2288d8=this[_0x37085f(0xc1)])===null||_0x2288d8===void 0x0?void 0x0:_0x2288d8[_0x37085f(0xc0)][_0x4277de])||!((_0x2a3ec7=(_0x345f62=this[_0x37085f(0xc1)])===null||_0x345f62===void 0x0?void 0x0:_0x345f62[_0x37085f(0xc0)][_0x4277de])===null||_0x2a3ec7===void 0x0?void 0x0:_0x2a3ec7[_0x37085f(0xc7)]))throw new AnnError(ApiError_1[_0x37085f(0xf2)][_0x37085f(0xcd)]);return(0x0,crypto_js_1[_0x37085f(0xf5)])(''+_0x368f01+(0x0,crypto_js_1[_0x37085f(0xf5)])(''+_0x3ae27a+(''+this[_0x37085f(0xc1)]['devices'][_0x4277de][_0x37085f(0xc7)]))['toString']())['toString']();}[a10_0x516384(0xed)](_0xa80c5d={}){var _0x285b8a=a10_0x516384;const _0x2ccc8f=Object['fromEntries'](Object[_0x285b8a(0xd3)](_0xa80c5d)[_0x285b8a(0xbf)](_0x4afd88=>[_0x4afd88[0x0][_0x285b8a(0xdf)](),_0x4afd88[0x1]]));if(!(_0x2ccc8f===null||_0x2ccc8f===void 0x0?void 0x0:_0x2ccc8f[_0x285b8a(0xd6)]))throw new AnnError(ApiError_1['ApiError'][_0x285b8a(0xfe)],{'message':_0x285b8a(0xc5)});if((_0x2ccc8f===null||_0x2ccc8f===void 0x0?void 0x0:_0x2ccc8f[_0x285b8a(0xd6)])!=this[_0x285b8a(0xd9)](_0x2ccc8f))throw new AnnError(ApiError_1[_0x285b8a(0xf2)][_0x285b8a(0xea)],{'message':_0x285b8a(0xc5)});return!![];}};function a10_0x3301(){var _0x156038=['constructor','requesttime','66188wbHamc','now','push','Singleton','abs','HEADERS_LACK','defineProperty','toString','length','map','devices','config','metadata','sort','TIMEOUT_LOGINTIME','验证失败','@midwayjs/core','checkcode','timeout','Provide','4171380KWcjah','design:type','padEnd','HEADERS_DEVICE','290JTXWAx','ApiService','5250984kmdvpP','logintime','secret=','entries','HEADERS_CHECKCODE','ScopeEnum','signature','search','undefined','getsign','function','apply','substring','prototype','__esModule','toLowerCase','23411278ahcYRC','decorate','object','join','crypto-js','250881veVulE','getcheck','808090DQWXRd','请求超时,请重试或改善网络环境','2vHiUUM','HEADERS_SIGNATURE','(((.+)+)+)+$','1242674GeTNen','checksign','secret','device','logintimeout','9GpQAOY','ApiError','token','7ahYFDv','MD5','__decorate'];a10_0x3301=function(){return _0x156038;};return a10_0x3301();}exports[a10_0x516384(0xcf)]=ApiService,__decorate([(0x0,core_1['Config'])('anncicapi'),__metadata(a10_0x516384(0xcb),Object)],ApiService[a10_0x516384(0xdd)],a10_0x516384(0xc1),void 0x0),exports[a10_0x516384(0xcf)]=ApiService=__decorate([(0x0,core_1[a10_0x516384(0xc9)])(),(0x0,core_1['Scope'])(core_1[a10_0x516384(0xd5)][a10_0x516384(0xfc)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x2843f1=a11_0x3193;(function(_0x5e52b2,_0x48d92b){const _0x5b547b=a11_0x3193,_0x1d0d9f=_0x5e52b2();while(!![]){try{const _0x462c31=parseInt(_0x5b547b(0xca))/0x1+-parseInt(_0x5b547b(0xa5))/0x2*(-parseInt(_0x5b547b(0xe3))/0x3)+parseInt(_0x5b547b(0xda))/0x4*(-parseInt(_0x5b547b(0xd7))/0x5)+-parseInt(_0x5b547b(0xcb))/0x6+parseInt(_0x5b547b(0x9f))/0x7*(parseInt(_0x5b547b(0xae))/0x8)+-parseInt(_0x5b547b(0xdc))/0x9+parseInt(_0x5b547b(0xac))/0xa;if(_0x462c31===_0x48d92b)break;else _0x1d0d9f['push'](_0x1d0d9f['shift']());}catch(_0x117d5a){_0x1d0d9f['push'](_0x1d0d9f['shift']());}}}(a11_0x5c84,0xbb89b));function a11_0x5c84(){const _0x3e1aa9=['__param','description','ApitestStaticController','stringify','apitestmodule','__apiList__','455343QqWgbG','4887546KqgAjQ','config','Inject','length','apply','function','decorate','existsSync','devices','/apiteststatic/*','set','design:paramtypes','29960SYxbYh','/apitest','Get','984rCKLNy','constructor','2969847KjAHWK','.css','filepath','apitest','url','request','metadata','1443588ZOvhvm','substring','toString','../../public/index.html','apitesthtml','Environment','module','Param','__devices__','Controller','cache-control','ApitestService','design:type','Request','design:returntype','../../public/','3403274YojJEn','path','ScopeEnum','public,\x20max-age=604800','apiteststatic','__metadata','2rtByBo','apidoc','prefix','ctx','utf-8','readFileSync','extname','14778580qnnwIx','routes','16TYKHuF','summary','object','anncicapi','replace','getOwnPropertyDescriptor','(((.+)+)+)+$','isDevelopmentEnvironment','application/javascript;\x20charset=utf-8','route','content-type','defineProperty','search','MidwayEnvironmentService','__esModule','Scope','push','prototype','../helper/getRoutes','Config','join','@midwayjs/core'];a11_0x5c84=function(){return _0x3e1aa9;};return a11_0x5c84();}function a11_0x3193(_0x43d767,_0x474119){const _0x34c25c=a11_0x5c84();return a11_0x3193=function(_0x5a3d70,_0x588f6f){_0x5a3d70=_0x5a3d70-0x91;let _0x5c847f=_0x34c25c[_0x5a3d70];return _0x5c847f;},a11_0x3193(_0x43d767,_0x474119);}const a11_0x588f6f=(function(){let _0x35618b=!![];return function(_0x564d6d,_0x605361){const _0x33667d=_0x35618b?function(){const _0x55fee5=a11_0x3193;if(_0x605361){const _0x3b291f=_0x605361[_0x55fee5(0xcf)](_0x564d6d,arguments);return _0x605361=null,_0x3b291f;}}:function(){};return _0x35618b=![],_0x33667d;};}()),a11_0x5a3d70=a11_0x588f6f(this,function(){const _0x252907=a11_0x3193;return a11_0x5a3d70[_0x252907(0x91)]()['search'](_0x252907(0xb4))[_0x252907(0x91)]()[_0x252907(0xdb)](a11_0x5a3d70)[_0x252907(0xba)]('(((.+)+)+)+$');});a11_0x5a3d70();'use strict';var __decorate=this&&this['__decorate']||function(_0x180883,_0x3eace9,_0x52ca33,_0x18eedd){const _0x590036=a11_0x3193;var _0x1962fc=arguments[_0x590036(0xce)],_0x4975ef=_0x1962fc<0x3?_0x3eace9:_0x18eedd===null?_0x18eedd=Object[_0x590036(0xb3)](_0x3eace9,_0x52ca33):_0x18eedd,_0xffe0bc;if(typeof Reflect===_0x590036(0xb0)&&typeof Reflect['decorate']===_0x590036(0xd0))_0x4975ef=Reflect[_0x590036(0xd1)](_0x180883,_0x3eace9,_0x52ca33,_0x18eedd);else{for(var _0x246e4a=_0x180883['length']-0x1;_0x246e4a>=0x0;_0x246e4a--)if(_0xffe0bc=_0x180883[_0x246e4a])_0x4975ef=(_0x1962fc<0x3?_0xffe0bc(_0x4975ef):_0x1962fc>0x3?_0xffe0bc(_0x3eace9,_0x52ca33,_0x4975ef):_0xffe0bc(_0x3eace9,_0x52ca33))||_0x4975ef;}return _0x1962fc>0x3&&_0x4975ef&&Object[_0x590036(0xb9)](_0x3eace9,_0x52ca33,_0x4975ef),_0x4975ef;},__metadata=this&&this[a11_0x2843f1(0xa4)]||function(_0x7f2a70,_0x3c145a){const _0x3a83d8=a11_0x2843f1;if(typeof Reflect===_0x3a83d8(0xb0)&&typeof Reflect[_0x3a83d8(0xe2)]===_0x3a83d8(0xd0))return Reflect[_0x3a83d8(0xe2)](_0x7f2a70,_0x3c145a);},__param=this&&this[a11_0x2843f1(0xc4)]||function(_0x2f3456,_0x3e9cf4){return function(_0x538ac4,_0xe336a7){_0x3e9cf4(_0x538ac4,_0xe336a7,_0x2f3456);};};Object['defineProperty'](exports,a11_0x2843f1(0xbc),{'value':!![]}),exports['ApitestStaticController']=exports[a11_0x2843f1(0x9a)]=void 0x0;const path_1=require(a11_0x2843f1(0xa0)),fs_1=require('fs'),core_1=require(a11_0x2843f1(0xc3)),core_2=require(a11_0x2843f1(0xc3)),core_3=require(a11_0x2843f1(0xc3)),getRoutes_1=require(a11_0x2843f1(0xc0));let ApitestService=class ApitestService{async[a11_0x2843f1(0xa6)](_0x336c3e){const _0x1b0220=a11_0x2843f1,_0x253e26=(0x0,getRoutes_1['getRoutes'])(_0x336c3e),_0x4a4f2d=[];for(let _0x9dfa4 in _0x253e26){for(let _0x5dd40e in _0x253e26[_0x9dfa4][_0x1b0220(0xad)]){let _0x44a42a=_0x253e26[_0x9dfa4][_0x1b0220(0xad)][_0x5dd40e],_0x4905d4=[];for(let _0x8d46b8 in _0x44a42a[_0x1b0220(0xe1)]){_0x4905d4[_0x1b0220(0xbe)](_0x44a42a[_0x1b0220(0xe1)][_0x8d46b8]);}_0x4a4f2d[_0x1b0220(0xbe)]({'title':_0x253e26[_0x9dfa4][_0x1b0220(0xaf)]+':'+_0x44a42a['summary'],'prefix':_0x253e26[_0x9dfa4][_0x1b0220(0xa7)],'router':_0x44a42a[_0x1b0220(0xb7)],'method':_0x44a42a['method'],'describe':_0x44a42a[_0x1b0220(0xc5)]||'','filepath':_0x253e26[_0x9dfa4][_0x1b0220(0xde)]||'','request':_0x4905d4});}}const _0x5c3620=(0x0,path_1[_0x1b0220(0xc2)])(__dirname,_0x1b0220(0x92));return(0x0,fs_1[_0x1b0220(0xaa)])(_0x5c3620,{'encoding':_0x1b0220(0xa9)})[_0x1b0220(0xb2)](/__res__/g,'/apiteststatic/')[_0x1b0220(0xb2)](_0x1b0220(0xc9),JSON['stringify'](_0x4a4f2d))[_0x1b0220(0xb2)](_0x1b0220(0x97),JSON[_0x1b0220(0xc7)](this['config'][_0x1b0220(0xd3)]));}};exports[a11_0x2843f1(0x9a)]=ApitestService,__decorate([(0x0,core_3[a11_0x2843f1(0xc1)])(a11_0x2843f1(0xb1)),__metadata('design:type',Object)],ApitestService[a11_0x2843f1(0xbf)],a11_0x2843f1(0xcc),void 0x0),exports[a11_0x2843f1(0x9a)]=ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x2843f1(0xdf)),(0x0,core_3[a11_0x2843f1(0xbd)])(core_3[a11_0x2843f1(0xa1)]['Singleton'])],ApitestService);let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x21cfaf=a11_0x2843f1;if(this[_0x21cfaf(0xdf)]){const _0x6d83ca={'module':![]};return this[_0x21cfaf(0x94)][_0x21cfaf(0xb5)]()&&(_0x6d83ca[_0x21cfaf(0xde)]=!![]),await this[_0x21cfaf(0x9a)][_0x21cfaf(0xa6)](_0x6d83ca);}return'';}async[a11_0x2843f1(0xc8)](_0x3494a8){const _0x369cf4=a11_0x2843f1;if(this[_0x369cf4(0xdf)]){const _0x1e35c3={'module':_0x3494a8};return this[_0x369cf4(0x94)]['isDevelopmentEnvironment']()&&(_0x1e35c3[_0x369cf4(0xde)]=!![]),await this[_0x369cf4(0x9a)][_0x369cf4(0xa6)](_0x1e35c3);}return'';}async[a11_0x2843f1(0xa3)](){const _0x3d0f8a=a11_0x2843f1;if((0x0,path_1['extname'])(this[_0x3d0f8a(0xa8)][_0x3d0f8a(0xe1)][_0x3d0f8a(0xe0)])){var _0x109763=(0x0,path_1[_0x3d0f8a(0xc2)])(__dirname,_0x3d0f8a(0x9e)+this[_0x3d0f8a(0xa8)][_0x3d0f8a(0xe1)]['url'][_0x3d0f8a(0xb2)]('/apiteststatic/','/'));if(_0x109763[_0x3d0f8a(0xe4)](_0x109763[_0x3d0f8a(0xce)]-0xb)!='/index.html'){this['ctx'][_0x3d0f8a(0xd5)](_0x3d0f8a(0x99),_0x3d0f8a(0xa2));if((0x0,path_1[_0x3d0f8a(0xab)])(this[_0x3d0f8a(0xa8)][_0x3d0f8a(0xe1)][_0x3d0f8a(0xe0)])=='.js')this[_0x3d0f8a(0xa8)]['set'](_0x3d0f8a(0xb8),_0x3d0f8a(0xb6));else(0x0,path_1[_0x3d0f8a(0xab)])(this[_0x3d0f8a(0xa8)]['request'][_0x3d0f8a(0xe0)])==_0x3d0f8a(0xdd)&&this[_0x3d0f8a(0xa8)][_0x3d0f8a(0xd5)](_0x3d0f8a(0xb8),'text/css;\x20charset=utf-8');return(0x0,fs_1[_0x3d0f8a(0xd2)])(_0x109763)&&(0x0,fs_1[_0x3d0f8a(0xaa)])(_0x109763,{'encoding':'utf-8'});}}return'';}};exports['ApitestStaticController']=ApitestStaticController,__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x2843f1(0xbf)],a11_0x2843f1(0xa8),void 0x0),__decorate([(0x0,core_3[a11_0x2843f1(0xcd)])(),__metadata(a11_0x2843f1(0x9b),core_1[a11_0x2843f1(0xbb)])],ApitestStaticController[a11_0x2843f1(0xbf)],a11_0x2843f1(0x94),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x2843f1(0x9b),ApitestService)],ApitestStaticController['prototype'],a11_0x2843f1(0x9a),void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x2843f1(0xdf)),__metadata(a11_0x2843f1(0x9b),Boolean)],ApitestStaticController[a11_0x2843f1(0xbf)],a11_0x2843f1(0xdf),void 0x0),__decorate([(0x0,core_3[a11_0x2843f1(0xc1)])(a11_0x2843f1(0xb1)),__metadata(a11_0x2843f1(0x9b),Object)],ApitestStaticController['prototype'],a11_0x2843f1(0xcc),void 0x0),__decorate([(0x0,core_2[a11_0x2843f1(0xd9)])(a11_0x2843f1(0xd8)),__metadata(a11_0x2843f1(0x9b),Function),__metadata(a11_0x2843f1(0xd6),[]),__metadata(a11_0x2843f1(0x9d),Promise)],ApitestStaticController[a11_0x2843f1(0xbf)],a11_0x2843f1(0x93),null),__decorate([(0x0,core_2[a11_0x2843f1(0xd9)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x2843f1(0x96)])(a11_0x2843f1(0x95))),__metadata(a11_0x2843f1(0x9b),Function),__metadata(a11_0x2843f1(0xd6),[String]),__metadata(a11_0x2843f1(0x9d),Promise)],ApitestStaticController['prototype'],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x2843f1(0xd9)])(a11_0x2843f1(0xd4)),__metadata(a11_0x2843f1(0x9b),Function),__metadata(a11_0x2843f1(0xd6),[]),__metadata(a11_0x2843f1(0x9d),Promise)],ApitestStaticController[a11_0x2843f1(0xbf)],'apiteststatic',null),exports[a11_0x2843f1(0xc6)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x2843f1(0x98)])('/'),(0x0,core_3[a11_0x2843f1(0xbd)])(core_3['ScopeEnum'][a11_0x2843f1(0x9c)])],ApitestStaticController);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as exceljs from 'exceljs';
|
|
2
2
|
import { IMidwayApplication } from '@midwayjs/core';
|
|
3
|
+
import { ExcelStream } from './ExcelStream';
|
|
3
4
|
interface ExcelColumn {
|
|
4
5
|
key: string;
|
|
5
6
|
header: string;
|
|
@@ -29,6 +30,10 @@ export declare class ExcelService {
|
|
|
29
30
|
filename: string;
|
|
30
31
|
filepath: string;
|
|
31
32
|
}>;
|
|
33
|
+
stream(file: string, option?: {
|
|
34
|
+
root?: string;
|
|
35
|
+
suffix?: string[];
|
|
36
|
+
}): Promise<ExcelStream>;
|
|
32
37
|
download(ctx: any, filepath: string): Promise<void>;
|
|
33
38
|
}
|
|
34
39
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0xaedff0=a12_0x2ed7;function a12_0x2ed7(_0x2fe138,_0x2c84f7){const _0x9f861=a12_0xa9df();return a12_0x2ed7=function(_0x14ee59,_0x208c35){_0x14ee59=_0x14ee59-0x15f;let _0xa9dfed=_0x9f861[_0x14ee59];return _0xa9dfed;},a12_0x2ed7(_0x2fe138,_0x2c84f7);}(function(_0x78be8d,_0x1e3f18){const _0x4b38d5=a12_0x2ed7,_0x3c1ea5=_0x78be8d();while(!![]){try{const _0x42455a=-parseInt(_0x4b38d5(0x17e))/0x1*(parseInt(_0x4b38d5(0x196))/0x2)+-parseInt(_0x4b38d5(0x162))/0x3+-parseInt(_0x4b38d5(0x166))/0x4+-parseInt(_0x4b38d5(0x193))/0x5*(parseInt(_0x4b38d5(0x180))/0x6)+parseInt(_0x4b38d5(0x19f))/0x7+-parseInt(_0x4b38d5(0x1a5))/0x8+parseInt(_0x4b38d5(0x171))/0x9*(parseInt(_0x4b38d5(0x192))/0xa);if(_0x42455a===_0x1e3f18)break;else _0x3c1ea5['push'](_0x3c1ea5['shift']());}catch(_0x59e921){_0x3c1ea5['push'](_0x3c1ea5['shift']());}}}(a12_0xa9df,0x827f4));const a12_0x208c35=(function(){let _0x4143b0=!![];return function(_0x5adda6,_0x33ec1a){const _0x1462de=_0x4143b0?function(){const _0x1586e9=a12_0x2ed7;if(_0x33ec1a){const _0x388cf9=_0x33ec1a[_0x1586e9(0x1a6)](_0x5adda6,arguments);return _0x33ec1a=null,_0x388cf9;}}:function(){};return _0x4143b0=![],_0x1462de;};}()),a12_0x14ee59=a12_0x208c35(this,function(){const _0x26ea34=a12_0x2ed7;return a12_0x14ee59[_0x26ea34(0x1a3)]()[_0x26ea34(0x17a)](_0x26ea34(0x198))[_0x26ea34(0x1a3)]()[_0x26ea34(0x190)](a12_0x14ee59)[_0x26ea34(0x17a)](_0x26ea34(0x198));});a12_0x14ee59();function a12_0xa9df(){const _0x357d2d=['3687572EjbKrN','isNumber','instance','./ExcelStream','readFile','Sheet\x201','@midwayjs/core','getRow','getWorksheet','design:type','app','9xopdFT','worksheets','__esModule','format','push','getOwnPropertyDescriptor','col','/public/xlsx/','eachCell','search','export','getColumn','addWorksheet','4ZdIDUm','log','6JMULsp','replace','startsWith','findRows','ExcelService','cellCount','xlsx','endsWith','length','Singleton','Workbook','Api\x20Excel\x20Error:\x20','value','substring','header','get','constructor','parse','29569210XRlwio','338780EBbHcl','object','stream','386318jwzfkI','koa-send','(((.+)+)+)+$','writeFile','getAppDir','filter','getCell','Provide','model','5600420ZoKGHK','metadata','prototype','function','toString','__decorate','5184016fbGbvj','apply','handler','key','frozen','YYYY/MM/DD','existsSync','rowCount','ExcelStream','2436534peuMFw','App','decorate','defineProperty'];a12_0xa9df=function(){return _0x357d2d;};return a12_0xa9df();}'use strict';var __decorate=this&&this[a12_0xaedff0(0x1a4)]||function(_0x31aa90,_0x453dca,_0x11eeec,_0x25afab){const _0x3bf024=a12_0xaedff0;var _0x5d98d0=arguments[_0x3bf024(0x188)],_0x47b3ee=_0x5d98d0<0x3?_0x453dca:_0x25afab===null?_0x25afab=Object[_0x3bf024(0x176)](_0x453dca,_0x11eeec):_0x25afab,_0x37c707;if(typeof Reflect===_0x3bf024(0x194)&&typeof Reflect[_0x3bf024(0x164)]===_0x3bf024(0x1a2))_0x47b3ee=Reflect['decorate'](_0x31aa90,_0x453dca,_0x11eeec,_0x25afab);else{for(var _0x4869c9=_0x31aa90[_0x3bf024(0x188)]-0x1;_0x4869c9>=0x0;_0x4869c9--)if(_0x37c707=_0x31aa90[_0x4869c9])_0x47b3ee=(_0x5d98d0<0x3?_0x37c707(_0x47b3ee):_0x5d98d0>0x3?_0x37c707(_0x453dca,_0x11eeec,_0x47b3ee):_0x37c707(_0x453dca,_0x11eeec))||_0x47b3ee;}return _0x5d98d0>0x3&&_0x47b3ee&&Object[_0x3bf024(0x165)](_0x453dca,_0x11eeec,_0x47b3ee),_0x47b3ee;},__metadata=this&&this['__metadata']||function(_0x183dff,_0x37812c){const _0x2307c1=a12_0xaedff0;if(typeof Reflect==='object'&&typeof Reflect[_0x2307c1(0x1a0)]==='function')return Reflect['metadata'](_0x183dff,_0x37812c);};Object['defineProperty'](exports,a12_0xaedff0(0x173),{'value':!![]}),exports[a12_0xaedff0(0x184)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0xaedff0(0x197)),core_1=require(a12_0xaedff0(0x16c)),ExcelStream_1=require(a12_0xaedff0(0x169));let ExcelService=class ExcelService{async[a12_0xaedff0(0x191)](_0x1674d9,_0x3bba30,_0xb56b5d=[0x0]){const _0x373feb=a12_0xaedff0;var _0x2715d4,_0x414ef4;const _0x395d23=new exceljs['Workbook'](),_0x2de581=[];let _0x2dd664=_0x1674d9[_0x373feb(0x181)](/(\\|\/)/g,'/')[_0x373feb(0x181)](/\/{2,}/g,'/');!(_0x2dd664===null||_0x2dd664===void 0x0?void 0x0:_0x2dd664['startsWith']('/'))&&(_0x2dd664=this[_0x373feb(0x170)][_0x373feb(0x19a)]()+'/'+_0x2dd664);try{await _0x395d23[_0x373feb(0x186)][_0x373feb(0x16a)](_0x2dd664);}catch(_0x3a6ae6){return console[_0x373feb(0x17f)](_0x373feb(0x18b)+_0x2dd664+'\x20is\x20read\x20fail'),_0x2de581;}for(const _0xbec229 of _0xb56b5d){const _0x3e4ab3=lodash[_0x373feb(0x167)](_0xbec229)?((_0x2715d4=_0x395d23[_0x373feb(0x172)])===null||_0x2715d4===void 0x0?void 0x0:_0x2715d4[_0xbec229])||undefined:_0x395d23[_0x373feb(0x16e)](_0xbec229);if(_0x3e4ab3){var _0x1b1751=0x1;const _0x1f60e1=_0x3e4ab3[_0x373feb(0x16d)](0x1),_0x29ce1b=await new Promise(_0x2d817d=>{const _0x4a1b73=_0x373feb,_0x473d29={};_0x1f60e1[_0x4a1b73(0x179)]((_0x3caee9,_0x23a3fa)=>{const _0x38ad11=_0x4a1b73;for(const _0x397a1b of _0x3bba30){if(_0x3caee9[_0x38ad11(0x18c)]==_0x397a1b[_0x38ad11(0x18e)])_0x1b1751=0x2,_0x473d29[_0x397a1b[_0x38ad11(0x1a8)]]={'header':_0x3caee9[_0x38ad11(0x177)],'handler':_0x397a1b[_0x38ad11(0x1a7)]};else{if(!_0x473d29[_0x397a1b[_0x38ad11(0x1a8)]])try{const _0x593f99=_0x1f60e1&&_0x1f60e1[_0x38ad11(0x19c)](_0x397a1b['header']);_0x593f99&&(_0x473d29[_0x397a1b[_0x38ad11(0x1a8)]]={'header':_0x593f99[_0x38ad11(0x177)],'handler':_0x397a1b['handler']});}catch{}}}_0x1f60e1[_0x38ad11(0x185)]==_0x23a3fa&&_0x2d817d(_0x473d29);});});_0x200d0e:for(const _0x42fcf9 of _0x3e4ab3[_0x373feb(0x183)](_0x1b1751,_0x3e4ab3[_0x373feb(0x160)])){if(typeof(_0x42fcf9===null||_0x42fcf9===void 0x0?void 0x0:_0x42fcf9[_0x373feb(0x19c)])!='function')continue _0x200d0e;const _0x908b07={};_0xbc98dd:for(const _0x395b1f in _0x29ce1b){if(_0x29ce1b[_0x395b1f]['header']){const _0xa9f993=_0x42fcf9[_0x373feb(0x19c)](_0x29ce1b[_0x395b1f]['header']);if(!_0xa9f993)continue _0xbc98dd;try{_0xa9f993[_0x373feb(0x1a3)]();}catch(_0x4e4f98){_0xa9f993[_0x373feb(0x1a3)]=()=>{var _0x5c38d3;return''+(((_0x5c38d3=_0xa9f993===null||_0xa9f993===void 0x0?void 0x0:_0xa9f993['model'])===null||_0x5c38d3===void 0x0?void 0x0:_0x5c38d3['value'])||'');};}typeof((_0x414ef4=_0x29ce1b[_0x395b1f])===null||_0x414ef4===void 0x0?void 0x0:_0x414ef4[_0x373feb(0x1a7)])=='function'?_0x908b07[_0x395b1f]=await _0x29ce1b[_0x395b1f]['handler'](lodash['set']({},_0x395b1f,(_0xa9f993===null||_0xa9f993===void 0x0?void 0x0:_0xa9f993[_0x373feb(0x1a3)]())||''),_0xa9f993[_0x373feb(0x19e)]):_0x908b07[_0x395b1f]=(_0xa9f993===null||_0xa9f993===void 0x0?void 0x0:_0xa9f993[_0x373feb(0x1a3)]())||'';}}Object['keys'](_0x908b07)[_0x373feb(0x188)]>0x0&&Object['values'](_0x908b07)[_0x373feb(0x19b)](_0x420d88=>_0x420d88!='')[_0x373feb(0x188)]>0x0&&_0x2de581[_0x373feb(0x175)](_0x908b07);}}}return _0x2de581;}async[a12_0xaedff0(0x17b)](_0x59c97e,_0x15db7b,_0x506296,_0x5543fc,_0x22fa37){const _0x109002=a12_0xaedff0;var _0x108cb1,_0x40f22e;const _0x27607d=new exceljs[(_0x109002(0x18a))](),_0x3b9384={},_0x40e27f=[],_0x370733=_0x27607d[_0x109002(0x17d)](_0x109002(0x16b),{'views':[{'state':_0x109002(0x1a9),'ySplit':0x1}]});for(const _0x405b8d in _0x15db7b){_0x3b9384[_0x15db7b[_0x405b8d][_0x109002(0x1a8)]]=_0x15db7b[_0x405b8d][_0x109002(0x18e)],_0x40e27f['push']({'header':_0x15db7b[_0x405b8d][_0x109002(0x18e)],'key':(_0x108cb1=_0x15db7b[_0x405b8d])===null||_0x108cb1===void 0x0?void 0x0:_0x108cb1['key']['replace'](/\./g,'_')});}_0x370733['columns']=_0x40e27f;for(const _0x20ad4d in _0x506296){const _0x283f64=_0x506296[_0x20ad4d],_0x429a4b=_0x370733['addRow']({});for(let _0x432dca in _0x15db7b){const _0x10e6e8=_0x15db7b[_0x432dca][_0x109002(0x1a8)][_0x109002(0x181)](/\./g,'_'),_0x1441f3=_0x370733[_0x109002(0x17c)](_0x10e6e8),_0x438b07=_0x429a4b===null||_0x429a4b===void 0x0?void 0x0:_0x429a4b['getCell'](_0x10e6e8);typeof((_0x40f22e=_0x15db7b[_0x432dca])===null||_0x40f22e===void 0x0?void 0x0:_0x40f22e[_0x109002(0x1a7)])=='function'?_0x438b07[_0x109002(0x18c)]=await _0x15db7b[_0x432dca][_0x109002(0x1a7)](_0x283f64,{'row':_0x429a4b,'col':_0x1441f3,'cell':_0x438b07,'sheet':_0x370733})||'':_0x438b07[_0x109002(0x18c)]=lodash[_0x109002(0x18f)](_0x283f64,_0x15db7b[_0x432dca][_0x109002(0x1a8)],'');}}typeof _0x22fa37==_0x109002(0x1a2)&&await _0x22fa37({'workbook':_0x27607d,'worksheet':_0x370733});let _0x143d3e='';const _0x1db135=_0x59c97e+'.xlsx';if(_0x5543fc&&_0x5543fc['startsWith']('/'))_0x143d3e=''+_0x5543fc;else _0x5543fc&&!_0x5543fc[_0x109002(0x182)]('/')&&!_0x5543fc['startsWith']('\x5c')?_0x143d3e=this[_0x109002(0x170)][_0x109002(0x19a)]()+'/'+_0x5543fc:_0x143d3e=this[_0x109002(0x170)][_0x109002(0x19a)]()+_0x109002(0x178)+dayjs()[_0x109002(0x174)](_0x109002(0x1aa));return(_0x143d3e[_0x109002(0x187)]('/')||_0x143d3e['endsWith']('\x5c'))&&(_0x143d3e=_0x143d3e['substring'](0x0,_0x143d3e['length']-0x1)),_0x143d3e=_0x143d3e[_0x109002(0x181)](/(\\|\/)/g,'/')[_0x109002(0x181)](/\/{2,}/g,'/'),!fs[_0x109002(0x15f)](_0x143d3e)&&fs['mkdirSync'](_0x143d3e,{'recursive':!![]}),await _0x27607d['xlsx'][_0x109002(0x199)]((_0x143d3e+'/'+_0x1db135)[_0x109002(0x181)](/(\\|\/)/g,'/')[_0x109002(0x181)](/\/{2,}/g,'/')),{'filename':_0x1db135,'filepath':(_0x143d3e[_0x109002(0x18d)]((''+this['app'][_0x109002(0x19a)]())['length'])+'/'+_0x1db135)[_0x109002(0x181)](/(\\|\/)/g,'/')[_0x109002(0x181)](/\/{2,}/g,'/')};}async[a12_0xaedff0(0x195)](_0x1b5b96,_0x47faf8={'suffix':['xls',a12_0xaedff0(0x186)]}){const _0x3220dd=a12_0xaedff0;return await ExcelStream_1[_0x3220dd(0x161)][_0x3220dd(0x168)](_0x1b5b96,_0x47faf8);}async['download'](_0x133df1,_0x26bbc0){return await koasend(_0x133df1,''+_0x26bbc0);}};exports[a12_0xaedff0(0x184)]=ExcelService,__decorate([(0x0,core_1[a12_0xaedff0(0x163)])(),__metadata(a12_0xaedff0(0x16f),Object)],ExcelService[a12_0xaedff0(0x1a1)],a12_0xaedff0(0x170),void 0x0),exports[a12_0xaedff0(0x184)]=ExcelService=__decorate([(0x0,core_1[a12_0xaedff0(0x19d)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a12_0xaedff0(0x189)])],ExcelService);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as exceljs from 'exceljs';
|
|
2
|
+
interface ExcelColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
header: string;
|
|
5
|
+
handler?: (row: any, options?: {
|
|
6
|
+
row: exceljs.Row;
|
|
7
|
+
col: exceljs.Column;
|
|
8
|
+
cell: exceljs.Cell;
|
|
9
|
+
sheet: exceljs.Worksheet;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
}
|
|
12
|
+
interface ExcelImportColumn {
|
|
13
|
+
key: string;
|
|
14
|
+
header: string;
|
|
15
|
+
handler?: (row: any, rowCell?: exceljs.CellModel) => Promise<any>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ExcelStream {
|
|
18
|
+
protected readonly WorkbookReader: exceljs.stream.xlsx.WorkbookReader;
|
|
19
|
+
protected readonly WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter;
|
|
20
|
+
protected WorksheetWriterMap: Map<number | string, exceljs.Worksheet>;
|
|
21
|
+
constructor(WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter, WorkbookReader: exceljs.stream.xlsx.WorkbookReader);
|
|
22
|
+
static instance(file: string, option?: {
|
|
23
|
+
rootpath?: string;
|
|
24
|
+
suffix?: string[];
|
|
25
|
+
}): Promise<ExcelStream>;
|
|
26
|
+
writer(column: Array<ExcelColumn>, columnDatas: Array<{
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, sheet?: number | string): Promise<this>;
|
|
29
|
+
reader(column: ExcelImportColumn[], callback: (row: any, option: {
|
|
30
|
+
sheet: exceljs.Worksheet;
|
|
31
|
+
row: exceljs.Row;
|
|
32
|
+
}) => Promise<void>, options?: {
|
|
33
|
+
sheets?: number | string | Array<number | string>;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
save(): Promise<this>;
|
|
36
|
+
protected getWriterSheet(sheet: number | string, notFindCreate?: boolean): Promise<exceljs.Worksheet>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a13_0x1e66(){const _0x353126=['isNumber','includes','getWorksheet','key','push','addRow','function','WorkbookReader','keys','ignore','model','WorksheetWriterMap','constructor','exceljs','WorkbookWriter','addWorksheet','xls','1585iPfkty','getWriterSheet','getRow','finished','substring','writeFile','header','indexOf','dirname','row','rootpath','Workbook','read','eachCell','filter','83470seweob','emit','values','657VOaHkk','196824Rcbotd','cellCount','search','existsSync','563658khdPya','defineProperty','has','getCell','value','reader','commit','col','54bJJDOw','toString','replace','length','ExcelStream','path','get','xlsx','18109xncrCC','sheets','apply','stream','set','isArray','1082780yzgUpV','suffix','handler','frozen','lastIndexOf','instance','842820qAJvol','148qiCEiF','(((.+)+)+)+$'];a13_0x1e66=function(){return _0x353126;};return a13_0x1e66();}const a13_0x3d6208=a13_0x16e9;(function(_0x3b96f4,_0x4af838){const _0x322d34=a13_0x16e9,_0x3d7bf2=_0x3b96f4();while(!![]){try{const _0x56b78c=-parseInt(_0x322d34(0x99))/0x1*(-parseInt(_0x322d34(0x86))/0x2)+-parseInt(_0x322d34(0x69))/0x3+-parseInt(_0x322d34(0x85))/0x4+-parseInt(_0x322d34(0x7f))/0x5+parseInt(_0x322d34(0x71))/0x6*(-parseInt(_0x322d34(0x79))/0x7)+parseInt(_0x322d34(0x65))/0x8+parseInt(_0x322d34(0x64))/0x9*(parseInt(_0x322d34(0xa8))/0xa);if(_0x56b78c===_0x4af838)break;else _0x3d7bf2['push'](_0x3d7bf2['shift']());}catch(_0x14d2e5){_0x3d7bf2['push'](_0x3d7bf2['shift']());}}}(a13_0x1e66,0x1b89a));const a13_0x599a1c=(function(){let _0x5c8ad5=!![];return function(_0x4ab558,_0x1ae38a){const _0x2a9bd3=_0x5c8ad5?function(){const _0x4627e4=a13_0x16e9;if(_0x1ae38a){const _0x50d2cb=_0x1ae38a[_0x4627e4(0x7b)](_0x4ab558,arguments);return _0x1ae38a=null,_0x50d2cb;}}:function(){};return _0x5c8ad5=![],_0x2a9bd3;};}()),a13_0x11a3fe=a13_0x599a1c(this,function(){const _0x3eae1a=a13_0x16e9;return a13_0x11a3fe[_0x3eae1a(0x72)]()[_0x3eae1a(0x67)](_0x3eae1a(0x87))[_0x3eae1a(0x72)]()[_0x3eae1a(0x94)](a13_0x11a3fe)['search']('(((.+)+)+)+$');});a13_0x11a3fe();'use strict';Object[a13_0x3d6208(0x6a)](exports,'__esModule',{'value':!![]}),exports['ExcelStream']=void 0x0;const fs=require('fs'),path=require(a13_0x3d6208(0x76)),exceljs=require(a13_0x3d6208(0x95));class ExcelStream{constructor(_0x440c92,_0x4f9755){const _0x27f763=a13_0x3d6208;this[_0x27f763(0x93)]=new Map(),(this[_0x27f763(0x96)]=_0x440c92,this[_0x27f763(0x8f)]=_0x4f9755);}static[a13_0x3d6208(0x84)](_0x1e3d0c,_0x53165d={'suffix':[a13_0x3d6208(0x98),'xlsx']}){return new Promise(async(_0xcefa47,_0x4c4b30)=>{const _0xbc9146=a13_0x16e9,_0x181a2c=_0x1e3d0c[_0xbc9146(0x9d)]((_0x1e3d0c[_0xbc9146(0xa0)]('/')>-0x1?_0x1e3d0c[_0xbc9146(0x83)]('/'):_0x1e3d0c['lastIndexOf']('\x5c'))+0x1),_0x46ee4c=path[_0xbc9146(0xa1)](((_0x53165d===null||_0x53165d===void 0x0?void 0x0:_0x53165d['rootpath'])&&!_0x1e3d0c['startsWith'](_0x53165d[_0xbc9146(0xa3)])?_0x53165d[_0xbc9146(0xa3)]+'/'+_0x1e3d0c:'/'+_0x1e3d0c)[_0xbc9146(0x73)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));if(!((_0x53165d===null||_0x53165d===void 0x0?void 0x0:_0x53165d[_0xbc9146(0x80)])?_0x53165d['suffix']:['xls',_0xbc9146(0x78)])[_0xbc9146(0x89)](_0x181a2c[_0xbc9146(0x9d)](_0x181a2c[_0xbc9146(0x83)]('.')+0x1)))return _0x4c4b30('文件名格式错误');if(!fs[_0xbc9146(0x68)]((_0x46ee4c+'/'+_0x181a2c)[_0xbc9146(0x73)](/(\\|\/)/g,'/')[_0xbc9146(0x73)](/\/{2,}/g,'/'))){!fs[_0xbc9146(0x68)](_0x46ee4c)&&fs['mkdirSync'](_0x46ee4c,{'recursive':!![]});const _0x4de115=new exceljs[(_0xbc9146(0xa4))]();await _0x4de115[_0xbc9146(0x78)][_0xbc9146(0x9e)]((_0x46ee4c+'/'+_0x181a2c)['replace'](/(\\|\/)/g,'/')[_0xbc9146(0x73)](/\/{2,}/g,'/'));}const _0x57b872=new exceljs[(_0xbc9146(0x7c))][(_0xbc9146(0x78))][(_0xbc9146(0x96))]({'filename':(_0x46ee4c+'/'+_0x181a2c)[_0xbc9146(0x73)](/(\\|\/)/g,'/')[_0xbc9146(0x73)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x12d890=new exceljs[(_0xbc9146(0x7c))][(_0xbc9146(0x78))][(_0xbc9146(0x8f))]((_0x46ee4c+'/'+_0x181a2c)['replace'](/(\\|\/)/g,'/')[_0xbc9146(0x73)](/\/{2,}/g,'/'),{'worksheets':_0xbc9146(0xa9),'sharedStrings':_0xbc9146(0x91),'hyperlinks':_0xbc9146(0x91),'styles':_0xbc9146(0x91)});return _0xcefa47(new ExcelStream(_0x57b872,_0x12d890));});}async['writer'](_0x1a8974,_0x383903,_0x185f57=0x0){const _0x2d5571=a13_0x3d6208;var _0x141145,_0x405c25;const _0x2194a4=await this['getWriterSheet'](_0x185f57,!![]),_0x2c3c45={},_0x3c2e5e=[];for(const _0x37ba26 in _0x1a8974){_0x2c3c45[_0x1a8974[_0x37ba26][_0x2d5571(0x8b)]]=_0x1a8974[_0x37ba26][_0x2d5571(0x9f)],_0x3c2e5e[_0x2d5571(0x8c)]({'header':_0x1a8974[_0x37ba26][_0x2d5571(0x9f)],'key':(_0x141145=_0x1a8974[_0x37ba26])===null||_0x141145===void 0x0?void 0x0:_0x141145[_0x2d5571(0x8b)][_0x2d5571(0x73)](/\./g,'_')});}(_0x2194a4===null||_0x2194a4===void 0x0?void 0x0:_0x2194a4['columns'])!=_0x3c2e5e&&(_0x2194a4['columns']=_0x3c2e5e);for(const _0x1b0f2d in _0x383903){const _0x27dbce=_0x383903[_0x1b0f2d],_0x1670a6=_0x2194a4[_0x2d5571(0x8d)]({});for(let _0x1abeb1 in _0x1a8974){const _0x1eb575=_0x1a8974[_0x1abeb1][_0x2d5571(0x8b)][_0x2d5571(0x73)](/\./g,'_'),_0x42ac2b=_0x2194a4['getColumn'](_0x1eb575),_0x14700c=_0x1670a6===null||_0x1670a6===void 0x0?void 0x0:_0x1670a6[_0x2d5571(0x6c)](_0x1eb575);typeof((_0x405c25=_0x1a8974[_0x1abeb1])===null||_0x405c25===void 0x0?void 0x0:_0x405c25[_0x2d5571(0x81)])==_0x2d5571(0x8e)?_0x14700c[_0x2d5571(0x6d)]=await _0x1a8974[_0x1abeb1][_0x2d5571(0x81)](_0x27dbce,{'row':_0x1670a6,'col':_0x42ac2b,'cell':_0x14700c,'sheet':_0x2194a4})||'':_0x14700c[_0x2d5571(0x6d)]=lodash['get'](_0x27dbce,_0x1a8974[_0x1abeb1][_0x2d5571(0x8b)],'');}}return this;}async[a13_0x3d6208(0x6e)](_0x35b37a,_0x5d00df,_0x450ca3={'sheets':0x0}){const _0x1802de=a13_0x3d6208;var _0x3bb922;const _0x179a5d=(_0x450ca3===null||_0x450ca3===void 0x0?void 0x0:_0x450ca3[_0x1802de(0x7a)])?Array[_0x1802de(0x7e)](_0x450ca3['sheets'])?_0x450ca3['sheets']:[_0x450ca3['sheets']]:[0x0],_0x47a699=_0x433107=>new Promise(async(_0x1bdda7,_0xaa4497)=>{const _0x3e4c3e=_0x1802de,_0x269938=_0x433107[_0x3e4c3e(0x9b)](0x1),_0x3174b2=await new Promise(_0x5dbb15=>{const _0xf1b4f6=_0x3e4c3e,_0x219f8a={};_0x269938[_0xf1b4f6(0xa6)]((_0x430010,_0x3facd6)=>{const _0x10450b=_0xf1b4f6;for(const _0xbac0c2 of _0x35b37a){if(_0x430010['value']==_0xbac0c2[_0x10450b(0x9f)])_0x219f8a[_0xbac0c2[_0x10450b(0x8b)]]={'header':_0x430010['col'],'handler':_0xbac0c2[_0x10450b(0x81)]};else{if(!_0x219f8a[_0xbac0c2[_0x10450b(0x8b)]])try{const _0x2f5944=_0x269938&&_0x269938[_0x10450b(0x6c)](_0xbac0c2[_0x10450b(0x9f)]);_0x2f5944&&(_0x219f8a[_0xbac0c2['key']]={'header':_0x2f5944[_0x10450b(0x70)],'handler':_0xbac0c2[_0x10450b(0x81)]});}catch{}}}_0x269938[_0x10450b(0x66)]==_0x3facd6&&_0x5dbb15(_0x219f8a);});});_0x433107['on'](_0x3e4c3e(0x9c),_0x1d3124=>_0x1bdda7(_0x433107)),_0x433107['on']('error',_0x300c01=>_0xaa4497(_0x300c01)),_0x433107['on'](_0x3e4c3e(0xa2),async _0x1593cb=>{const _0x186f7a=_0x3e4c3e;var _0x27a32b;if(typeof(_0x1593cb===null||_0x1593cb===void 0x0?void 0x0:_0x1593cb[_0x186f7a(0x6c)])==_0x186f7a(0x8e)){const _0x30cce7={};_0x2c5f86:for(const _0xbbe418 in _0x3174b2){if(_0x3174b2[_0xbbe418][_0x186f7a(0x9f)]){const _0x1b5181=_0x1593cb[_0x186f7a(0x6c)](_0x3174b2[_0xbbe418][_0x186f7a(0x9f)]);if(!_0x1b5181)continue _0x2c5f86;try{_0x1b5181[_0x186f7a(0x72)]();}catch(_0x194d09){_0x1b5181[_0x186f7a(0x72)]=()=>{const _0x2b73cc=_0x186f7a;var _0x35da52;return''+(((_0x35da52=_0x1b5181===null||_0x1b5181===void 0x0?void 0x0:_0x1b5181['model'])===null||_0x35da52===void 0x0?void 0x0:_0x35da52[_0x2b73cc(0x6d)])||'');};}typeof((_0x27a32b=_0x3174b2[_0xbbe418])===null||_0x27a32b===void 0x0?void 0x0:_0x27a32b['handler'])=='function'?_0x30cce7[_0xbbe418]=await _0x3174b2[_0xbbe418][_0x186f7a(0x81)](lodash[_0x186f7a(0x7d)]({},_0xbbe418,(_0x1b5181===null||_0x1b5181===void 0x0?void 0x0:_0x1b5181[_0x186f7a(0x72)]())||''),_0x1b5181[_0x186f7a(0x92)]):_0x30cce7[_0xbbe418]=(_0x1b5181===null||_0x1b5181===void 0x0?void 0x0:_0x1b5181['toString']())||'';}}Object[_0x186f7a(0x90)](_0x30cce7)[_0x186f7a(0x74)]>0x0&&Object[_0x186f7a(0xaa)](_0x30cce7)[_0x186f7a(0xa7)](_0x2cf099=>_0x2cf099!='')[_0x186f7a(0x74)]>0x0&&await _0x5d00df(_0x30cce7,{'sheet':_0x433107,'row':_0x1593cb});}}),await _0x433107[_0x3e4c3e(0xa5)]();});for(const _0x130f2a of _0x179a5d){const _0x177a1e=lodash['isNumber'](_0x130f2a)?((_0x3bb922=this[_0x1802de(0x8f)]['worksheets'])===null||_0x3bb922===void 0x0?void 0x0:_0x3bb922[_0x130f2a])||undefined:this['WorkbookReader']['getWorksheet'](_0x130f2a);_0x177a1e&&await _0x47a699(_0x177a1e);}}async['save'](){const _0x2b3403=a13_0x3d6208;return await this[_0x2b3403(0x96)][_0x2b3403(0x6f)](),this;}async[a13_0x3d6208(0x9a)](_0x55fdaa,_0x20d5dd=![]){const _0x1c59fe=a13_0x3d6208;let _0x37038a=this[_0x1c59fe(0x96)][_0x1c59fe(0x8a)](_0x55fdaa);return!_0x37038a&&this[_0x1c59fe(0x93)][_0x1c59fe(0x6b)](_0x55fdaa)&&(_0x37038a=this[_0x1c59fe(0x93)][_0x1c59fe(0x77)](_0x55fdaa)),!_0x37038a&&_0x20d5dd&&(_0x37038a=this[_0x1c59fe(0x96)][_0x1c59fe(0x97)](lodash[_0x1c59fe(0x88)](_0x55fdaa)?undefined:''+_0x55fdaa,{'views':[{'state':_0x1c59fe(0x82),'ySplit':0x0}]}),this[_0x1c59fe(0x93)][_0x1c59fe(0x7d)](_0x55fdaa,_0x37038a)),_0x37038a;}}function a13_0x16e9(_0x4648a1,_0x49a7af){const _0x20881f=a13_0x1e66();return a13_0x16e9=function(_0x11a3fe,_0x599a1c){_0x11a3fe=_0x11a3fe-0x64;let _0x1e66cf=_0x20881f[_0x11a3fe];return _0x1e66cf;},a13_0x16e9(_0x4648a1,_0x49a7af);}exports[a13_0x3d6208(0x75)]=ExcelStream;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x4f07f1=a14_0x2a7f;(function(_0x461970,_0x5eb8e9){var _0x41d482=a14_0x2a7f,_0x3dc0c2=_0x461970();while(!![]){try{var _0x13fab7=-parseInt(_0x41d482(0xd6))/0x1*(parseInt(_0x41d482(0xd7))/0x2)+parseInt(_0x41d482(0xca))/0x3+-parseInt(_0x41d482(0xcc))/0x4*(-parseInt(_0x41d482(0xd8))/0x5)+-parseInt(_0x41d482(0xd9))/0x6+parseInt(_0x41d482(0xd0))/0x7+-parseInt(_0x41d482(0xdb))/0x8+-parseInt(_0x41d482(0xcf))/0x9*(parseInt(_0x41d482(0xd4))/0xa);if(_0x13fab7===_0x5eb8e9)break;else _0x3dc0c2['push'](_0x3dc0c2['shift']());}catch(_0x37f506){_0x3dc0c2['push'](_0x3dc0c2['shift']());}}}(a14_0x5c59,0x4224f));function a14_0x2a7f(_0x14ac32,_0x55b2da){var _0x58e755=a14_0x5c59();return a14_0x2a7f=function(_0x4a28e6,_0x32e79d){_0x4a28e6=_0x4a28e6-0xc8;var _0x5c59aa=_0x58e755[_0x4a28e6];return _0x5c59aa;},a14_0x2a7f(_0x14ac32,_0x55b2da);}var a14_0x32e79d=(function(){var _0x29b1db=!![];return function(_0x24a6fa,_0x2b9f18){var _0x3a66f2=_0x29b1db?function(){var _0x2c2a3d=a14_0x2a7f;if(_0x2b9f18){var _0x54cd39=_0x2b9f18[_0x2c2a3d(0xc9)](_0x24a6fa,arguments);return _0x2b9f18=null,_0x54cd39;}}:function(){};return _0x29b1db=![],_0x3a66f2;};}()),a14_0x4a28e6=a14_0x32e79d(this,function(){var _0x522fd2=a14_0x2a7f;return a14_0x4a28e6[_0x522fd2(0xd2)]()[_0x522fd2(0xdd)](_0x522fd2(0xda))['toString']()[_0x522fd2(0xcb)](a14_0x4a28e6)['search'](_0x522fd2(0xda));});a14_0x4a28e6();'use strict';Object[a14_0x4f07f1(0xd5)](exports,a14_0x4f07f1(0xd3),{'value':!![]}),exports[a14_0x4f07f1(0xc8)]=exports[a14_0x4f07f1(0xcd)]=exports[a14_0x4f07f1(0xd1)]=exports[a14_0x4f07f1(0xde)]=void 0x0,exports[a14_0x4f07f1(0xde)]=a14_0x4f07f1(0xdf),exports[a14_0x4f07f1(0xd1)]=a14_0x4f07f1(0xdc),exports[a14_0x4f07f1(0xcd)]=a14_0x4f07f1(0xce);class AppsConfigTmp{}function a14_0x5c59(){var _0x4b2e89=['1EanneN','94348KkGVfq','605KYeBSZ','2079570MkXbxM','(((.+)+)+)+$','2653576rQvZgL','anncic-api:action:route','search','ACTION_KEY','anncic-api:action','AppsConfigTmp','apply','1586541DlpKMY','constructor','10160TVxvSs','APPSCONFIG_KEY','anncic-api:apps:config','81dteeZS','2350635bSgUTE','ACTION_ROUTE_KEY','toString','__esModule','195110DSjsbd','defineProperty'];a14_0x5c59=function(){return _0x4b2e89;};return a14_0x5c59();}exports[a14_0x4f07f1(0xc8)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x333cb9=a15_0x3c96;(function(_0x142119,_0x4c9885){var _0x3b407b=a15_0x3c96,_0x4eb6d6=_0x142119();while(!![]){try{var _0x149b39=-parseInt(_0x3b407b(0x196))/0x1*(-parseInt(_0x3b407b(0x198))/0x2)+-parseInt(_0x3b407b(0x197))/0x3+parseInt(_0x3b407b(0x1a6))/0x4*(-parseInt(_0x3b407b(0x1b6))/0x5)+-parseInt(_0x3b407b(0x19f))/0x6*(parseInt(_0x3b407b(0x1b0))/0x7)+-parseInt(_0x3b407b(0x190))/0x8*(parseInt(_0x3b407b(0x19d))/0x9)+-parseInt(_0x3b407b(0x195))/0xa+-parseInt(_0x3b407b(0x1a0))/0xb*(-parseInt(_0x3b407b(0x192))/0xc);if(_0x149b39===_0x4c9885)break;else _0x4eb6d6['push'](_0x4eb6d6['shift']());}catch(_0x29d615){_0x4eb6d6['push'](_0x4eb6d6['shift']());}}}(a15_0x54e6,0x2d8c8));var a15_0x3cbac6=(function(){var _0x5829f7=!![];return function(_0x4655a7,_0x373b97){var _0x37edce=_0x5829f7?function(){var _0x5c45fe=a15_0x3c96;if(_0x373b97){var _0x5206b6=_0x373b97[_0x5c45fe(0x18e)](_0x4655a7,arguments);return _0x373b97=null,_0x5206b6;}}:function(){};return _0x5829f7=![],_0x37edce;};}()),a15_0x32a27b=a15_0x3cbac6(this,function(){var _0x5477d7=a15_0x3c96;return a15_0x32a27b['toString']()[_0x5477d7(0x1a2)](_0x5477d7(0x1a4))[_0x5477d7(0x1b1)]()[_0x5477d7(0x1a9)](a15_0x32a27b)[_0x5477d7(0x1a2)](_0x5477d7(0x1a4));});a15_0x32a27b();'use strict';var __decorate=this&&this[a15_0x333cb9(0x19b)]||function(_0x3e1700,_0x38c89e,_0x34d337,_0x31f0b8){var _0x4f128f=a15_0x333cb9,_0x160164=arguments[_0x4f128f(0x194)],_0x4455db=_0x160164<0x3?_0x38c89e:_0x31f0b8===null?_0x31f0b8=Object['getOwnPropertyDescriptor'](_0x38c89e,_0x34d337):_0x31f0b8,_0x4a23c4;if(typeof Reflect===_0x4f128f(0x1b4)&&typeof Reflect['decorate']===_0x4f128f(0x1aa))_0x4455db=Reflect[_0x4f128f(0x1a1)](_0x3e1700,_0x38c89e,_0x34d337,_0x31f0b8);else{for(var _0x268e7d=_0x3e1700[_0x4f128f(0x194)]-0x1;_0x268e7d>=0x0;_0x268e7d--)if(_0x4a23c4=_0x3e1700[_0x268e7d])_0x4455db=(_0x160164<0x3?_0x4a23c4(_0x4455db):_0x160164>0x3?_0x4a23c4(_0x38c89e,_0x34d337,_0x4455db):_0x4a23c4(_0x38c89e,_0x34d337))||_0x4455db;}return _0x160164>0x3&&_0x4455db&&Object[_0x4f128f(0x191)](_0x38c89e,_0x34d337,_0x4455db),_0x4455db;},__metadata=this&&this['__metadata']||function(_0x5a507b,_0xc776f5){var _0x2c164c=a15_0x333cb9;if(typeof Reflect===_0x2c164c(0x1b4)&&typeof Reflect[_0x2c164c(0x1a8)]===_0x2c164c(0x1aa))return Reflect[_0x2c164c(0x1a8)](_0x5a507b,_0xc776f5);};function a15_0x3c96(_0x3e06de,_0x267fb8){var _0x40746d=a15_0x54e6();return a15_0x3c96=function(_0x32a27b,_0x3cbac6){_0x32a27b=_0x32a27b-0x18e;var _0x54e656=_0x40746d[_0x32a27b];return _0x54e656;},a15_0x3c96(_0x3e06de,_0x267fb8);}function a15_0x54e6(){var _0x275a7e=['min','apply','design:type','16ORIFim','defineProperty','180uLDhqk','number','length','3133490diWrpP','1fCFzjQ','540354jqmASy','253670rYaClg','integer','PageDTO','__decorate','Rule','1135674SRXomr','_order','282uIVrnM','711887wUERQq','decorate','search','_page','(((.+)+)+)+$','RuleType','56ByCqLI','是否倒序','metadata','constructor','function','trim','_size','__esModule','1:是;0:否','valid','6209yYNIOK','toString','string','分页数量','object','prototype','44105KuFoIn'];a15_0x54e6=function(){return _0x275a7e;};return a15_0x54e6();}Object[a15_0x333cb9(0x191)](exports,a15_0x333cb9(0x1ad),{'value':!![]}),exports[a15_0x333cb9(0x19a)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}exports[a15_0x333cb9(0x19a)]=PageDTO,__decorate([(0x0,validator_1[a15_0x333cb9(0x19c)])('分页',validator_1['RuleType']['number']()[a15_0x333cb9(0x199)]()[a15_0x333cb9(0x1b7)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x333cb9(0x18f),Number)],PageDTO[a15_0x333cb9(0x1b5)],a15_0x333cb9(0x1a3),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x333cb9(0x1b3),validator_1['RuleType'][a15_0x333cb9(0x193)]()[a15_0x333cb9(0x199)]()['min'](0x1)),__metadata(a15_0x333cb9(0x18f),Number)],PageDTO[a15_0x333cb9(0x1b5)],a15_0x333cb9(0x1ac),void 0x0),__decorate([(0x0,validator_1[a15_0x333cb9(0x19c)])('排序方式',validator_1[a15_0x333cb9(0x1a5)][a15_0x333cb9(0x1b2)]()[a15_0x333cb9(0x1ab)]()),__metadata(a15_0x333cb9(0x18f),String)],PageDTO[a15_0x333cb9(0x1b5)],a15_0x333cb9(0x19e),void 0x0),__decorate([(0x0,validator_1[a15_0x333cb9(0x19c)])(a15_0x333cb9(0x1a7),validator_1[a15_0x333cb9(0x1a5)][a15_0x333cb9(0x193)]()['integer']()[a15_0x333cb9(0x1af)](0x0,0x1),a15_0x333cb9(0x1ae)),__metadata(a15_0x333cb9(0x18f),Number)],PageDTO[a15_0x333cb9(0x1b5)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x4d16bf=a16_0x25fb;(function(_0x467f85,_0x1308af){var _0x1599d2=a16_0x25fb,_0x3bf92e=_0x467f85();while(!![]){try{var _0x314c0a=parseInt(_0x1599d2(0x7d))/0x1+-parseInt(_0x1599d2(0x7a))/0x2+parseInt(_0x1599d2(0x87))/0x3+parseInt(_0x1599d2(0x86))/0x4+-parseInt(_0x1599d2(0x84))/0x5+parseInt(_0x1599d2(0x82))/0x6*(-parseInt(_0x1599d2(0x81))/0x7)+-parseInt(_0x1599d2(0x7b))/0x8*(-parseInt(_0x1599d2(0x83))/0x9);if(_0x314c0a===_0x1308af)break;else _0x3bf92e['push'](_0x3bf92e['shift']());}catch(_0x237412){_0x3bf92e['push'](_0x3bf92e['shift']());}}}(a16_0x1e0c,0xf0481));function a16_0x25fb(_0x44563f,_0x468acf){var _0x1a3a17=a16_0x1e0c();return a16_0x25fb=function(_0x5a6368,_0x1cd0dd){_0x5a6368=_0x5a6368-0x77;var _0x1e0c0a=_0x1a3a17[_0x5a6368];return _0x1e0c0a;},a16_0x25fb(_0x44563f,_0x468acf);}function a16_0x1e0c(){var _0x2c267e=['6944pZbFrs','defineProperty','1838451VuWmnm','anncic-api:intercept','toString','__esModule','602567DQaiYd','66zkyiNI','1719SRVKkd','1627920XCCuvd','constructor','1731984WMUkfH','4661532qKEZYb','apply','search','INTERCEPT_KEY','InterceptTargetTmp','3468822sUVXiS'];a16_0x1e0c=function(){return _0x2c267e;};return a16_0x1e0c();}var a16_0x1cd0dd=(function(){var _0x3a4f7b=!![];return function(_0x2bb545,_0x5edfa0){var _0x3f1483=_0x3a4f7b?function(){var _0x122ab8=a16_0x25fb;if(_0x5edfa0){var _0x40b33e=_0x5edfa0[_0x122ab8(0x88)](_0x2bb545,arguments);return _0x5edfa0=null,_0x40b33e;}}:function(){};return _0x3a4f7b=![],_0x3f1483;};}()),a16_0x5a6368=a16_0x1cd0dd(this,function(){var _0x3a51d4=a16_0x25fb;return a16_0x5a6368[_0x3a51d4(0x7f)]()[_0x3a51d4(0x77)]('(((.+)+)+)+$')[_0x3a51d4(0x7f)]()[_0x3a51d4(0x85)](a16_0x5a6368)[_0x3a51d4(0x77)]('(((.+)+)+)+$');});a16_0x5a6368();'use strict';Object[a16_0x4d16bf(0x7c)](exports,a16_0x4d16bf(0x80),{'value':!![]}),exports[a16_0x4d16bf(0x79)]=exports['INTERCEPT_KEY']=void 0x0,exports[a16_0x4d16bf(0x78)]=a16_0x4d16bf(0x7e);class InterceptTargetTmp{}exports[a16_0x4d16bf(0x79)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.9",
|
|
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.9",
|
|
21
|
+
"@anncic-api/core": "^3.4.9",
|
|
22
|
+
"@anncic-api/event": "^3.4.9",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.9",
|
|
24
|
+
"@anncic-api/validator": "^3.4.9",
|
|
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.9",
|
|
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": "6d493e304dc1e1bed59f5e66f49fdb01e46c616d"
|
|
39
39
|
}
|