anncic-api 3.4.5 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/index.d.ts +32 -32
- package/package.json +8 -8
- package/public/apitest.js +945 -945
- package/public/config.js +94 -94
- package/public/index.html +109 -109
- package/public/style/apitest.css +128 -128
- package/public/style/bootstrap/bootstrap.css +6799 -6799
- package/public/style/bootstrap/bootstrap.js +2363 -2363
- package/public/style/bootstrap.css +6798 -6798
- package/public/style/jquery/jquery.min.js +6 -6
- package/public/style/pinyin.js +45 -45
- package/public/style/pretty-json/backbone-min.js +1 -1
- package/public/style/pretty-json/pretty-json-min.js +334 -334
- package/public/style/pretty-json/pretty-json.css +47 -47
- package/public/style/pretty-json/underscore-min.js +5 -5
- package/public/style/pretty-json.css +47 -47
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x59c2a0=a0_0x3a75;(function(_0x19dce4,_0x3cd15d){var _0x4b84b3=a0_0x3a75,_0x21d171=_0x19dce4();while(!![]){try{var _0x299c04=parseInt(_0x4b84b3(0x8b))/0x1+parseInt(_0x4b84b3(0x82))/0x2*(-parseInt(_0x4b84b3(0x8e))/0x3)+parseInt(_0x4b84b3(0x8c))/0x4+parseInt(_0x4b84b3(0x85))/0x5*(parseInt(_0x4b84b3(0x83))/0x6)+-parseInt(_0x4b84b3(0x7d))/0x7+parseInt(_0x4b84b3(0x84))/0x8*(parseInt(_0x4b84b3(0x87))/0x9)+parseInt(_0x4b84b3(0x8a))/0xa;if(_0x299c04===_0x3cd15d)break;else _0x21d171['push'](_0x21d171['shift']());}catch(_0x2a548f){_0x21d171['push'](_0x21d171['shift']());}}}(a0_0x6cad,0xa275a));function a0_0x3a75(_0x558432,_0x5300a9){var _0x3b0869=a0_0x6cad();return a0_0x3a75=function(_0x360374,_0x2336ef){_0x360374=_0x360374-0x79;var _0x6cad05=_0x3b0869[_0x360374];return _0x6cad05;},a0_0x3a75(_0x558432,_0x5300a9);}var a0_0x2336ef=(function(){var _0x497d9d=!![];return function(_0x4b2de3,_0x575770){var _0x25f563=_0x497d9d?function(){var _0x6ad7f3=a0_0x3a75;if(_0x575770){var _0x40f910=_0x575770[_0x6ad7f3(0x86)](_0x4b2de3,arguments);return _0x575770=null,_0x40f910;}}:function(){};return _0x497d9d=![],_0x25f563;};}()),a0_0x360374=a0_0x2336ef(this,function(){var _0x207686=a0_0x3a75;return a0_0x360374['toString']()[_0x207686(0x88)](_0x207686(0x7f))[_0x207686(0x8f)]()[_0x207686(0x81)](a0_0x360374)['search'](_0x207686(0x7f));});a0_0x360374();function a0_0x6cad(){var _0x584f16=['16707580jYTNRX','431116KwKAfJ','418196pgkPXA','name','15486HMgbhq','toString','/runtime/.upload','appDir','default','dhauo1234420123gg3234901','20mb','7550655cqScdM','__esModule','(((.+)+)+)+$','_token','constructor','502QQqxOV','38634ggACIh','1760eHHXzB','110zZAJjN','apply','28296Jkmcsn','search','xml'];a0_0x6cad=function(){return _0x584f16;};return a0_0x6cad();}'use strict';Object['defineProperty'](exports,a0_0x59c2a0(0x7e),{'value':!![]}),exports[a0_0x59c2a0(0x7a)]=_0x218365=>{var _0x5ced7c=a0_0x59c2a0;return{'apitest':!![],'keys':_0x218365[_0x5ced7c(0x8d)],'anncicapi':{'requestKey':_0x5ced7c(0x80),'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x5ced7c(0x7b),'checkcode':_0x5ced7c(0x7b)}}},'bodyParser':{'enableTypes':['json','form','text',_0x5ced7c(0x89)],'formLimit':_0x5ced7c(0x7c),'jsonLimit':_0x5ced7c(0x7c),'textLimit':_0x5ced7c(0x7c),'xmlLimit':_0x5ced7c(0x7c),'enable':!![]},'upload':{'tmpdir':_0x218365[_0x5ced7c(0x79)]+_0x5ced7c(0x90),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x34c3bd=a1_0x239a;(function(_0x2f5db8,_0x29dc30){var _0xb53a5e=a1_0x239a,_0x465a26=_0x2f5db8();while(!![]){try{var _0x5bfec6=-parseInt(_0xb53a5e(0x1bc))/0x1*(parseInt(_0xb53a5e(0x1b3))/0x2)+-parseInt(_0xb53a5e(0x1be))/0x3+-parseInt(_0xb53a5e(0x1b4))/0x4*(parseInt(_0xb53a5e(0x1bf))/0x5)+parseInt(_0xb53a5e(0x1c2))/0x6+parseInt(_0xb53a5e(0x1ba))/0x7*(parseInt(_0xb53a5e(0x1c1))/0x8)+parseInt(_0xb53a5e(0x1b6))/0x9+-parseInt(_0xb53a5e(0x1b7))/0xa*(parseInt(_0xb53a5e(0x1b1))/0xb);if(_0x5bfec6===_0x29dc30)break;else _0x465a26['push'](_0x465a26['shift']());}catch(_0x33a7f9){_0x465a26['push'](_0x465a26['shift']());}}}(a1_0x5eac,0x58858));var a1_0x157310=(function(){var _0x59682b=!![];return function(_0x51ac09,_0x593126){var _0x45dcaf=_0x59682b?function(){var _0x437bc4=a1_0x239a;if(_0x593126){var _0xea9f09=_0x593126[_0x437bc4(0x1c0)](_0x51ac09,arguments);return _0x593126=null,_0xea9f09;}}:function(){};return _0x59682b=![],_0x45dcaf;};}()),a1_0x5191cf=a1_0x157310(this,function(){var _0x3c1dc7=a1_0x239a;return a1_0x5191cf['toString']()[_0x3c1dc7(0x1bb)](_0x3c1dc7(0x1b2))[_0x3c1dc7(0x1b5)]()[_0x3c1dc7(0x1b8)](a1_0x5191cf)[_0x3c1dc7(0x1bb)](_0x3c1dc7(0x1b2));});a1_0x5191cf();function a1_0x239a(_0x1446ea,_0x49aa4e){var _0x1eae7e=a1_0x5eac();return a1_0x239a=function(_0x5191cf,_0x157310){_0x5191cf=_0x5191cf-0x1b1;var _0x5eac5f=_0x1eae7e[_0x5191cf];return _0x5eac5f;},a1_0x239a(_0x1446ea,_0x49aa4e);}function a1_0x5eac(){var _0x235806=['toString','3677760zxTXrt','130MDBxEX','constructor','__esModule','1022tTEMAJ','search','38783kkUVUE','defineProperty','255177iMExUF','1045835nhhVPL','apply','31856KXiDQf','3870312yOQYCN','60071LBeVfx','(((.+)+)+)+$','36NegZvp','8ZuRwMi'];a1_0x5eac=function(){return _0x235806;};return a1_0x5eac();}'use strict';Object[a1_0x34c3bd(0x1bd)](exports,a1_0x34c3bd(0x1b9),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x270d61=a2_0x5d3c;(function(_0x46f8ff,_0x2a6043){const _0x14804d=a2_0x5d3c,_0x1a5d20=_0x46f8ff();while(!![]){try{const _0x11f365=-parseInt(_0x14804d(0x11b))/0x1*(-parseInt(_0x14804d(0x129))/0x2)+parseInt(_0x14804d(0x119))/0x3+-parseInt(_0x14804d(0x152))/0x4*(-parseInt(_0x14804d(0x120))/0x5)+parseInt(_0x14804d(0x15b))/0x6*(parseInt(_0x14804d(0x146))/0x7)+parseInt(_0x14804d(0x183))/0x8+-parseInt(_0x14804d(0x12d))/0x9*(parseInt(_0x14804d(0x192))/0xa)+-parseInt(_0x14804d(0x139))/0xb;if(_0x11f365===_0x2a6043)break;else _0x1a5d20['push'](_0x1a5d20['shift']());}catch(_0x234ffe){_0x1a5d20['push'](_0x1a5d20['shift']());}}}(a2_0x4737,0x8cdc4));const a2_0x1d11ad=(function(){let _0x3e768c=!![];return function(_0x29c57d,_0x1bef6b){const _0x4db6d1=_0x3e768c?function(){if(_0x1bef6b){const _0x1fa141=_0x1bef6b['apply'](_0x29c57d,arguments);return _0x1bef6b=null,_0x1fa141;}}:function(){};return _0x3e768c=![],_0x4db6d1;};}()),a2_0xb3586=a2_0x1d11ad(this,function(){const _0x499a5e=a2_0x5d3c;return a2_0xb3586['toString']()['search']('(((.+)+)+)+$')[_0x499a5e(0x10d)]()[_0x499a5e(0x109)](a2_0xb3586)[_0x499a5e(0x166)](_0x499a5e(0x12b));});a2_0xb3586();'use strict';var __decorate=this&&this['__decorate']||function(_0x3e16c8,_0x5cc2ee,_0x12192e,_0x1b9565){const _0x53a29b=a2_0x5d3c;var _0x34ce7d=arguments['length'],_0x516d98=_0x34ce7d<0x3?_0x5cc2ee:_0x1b9565===null?_0x1b9565=Object[_0x53a29b(0x198)](_0x5cc2ee,_0x12192e):_0x1b9565,_0xcd7ef3;if(typeof Reflect===_0x53a29b(0x110)&&typeof Reflect[_0x53a29b(0x10a)]==='function')_0x516d98=Reflect[_0x53a29b(0x10a)](_0x3e16c8,_0x5cc2ee,_0x12192e,_0x1b9565);else{for(var _0x4d90dc=_0x3e16c8[_0x53a29b(0x15a)]-0x1;_0x4d90dc>=0x0;_0x4d90dc--)if(_0xcd7ef3=_0x3e16c8[_0x4d90dc])_0x516d98=(_0x34ce7d<0x3?_0xcd7ef3(_0x516d98):_0x34ce7d>0x3?_0xcd7ef3(_0x5cc2ee,_0x12192e,_0x516d98):_0xcd7ef3(_0x5cc2ee,_0x12192e))||_0x516d98;}return _0x34ce7d>0x3&&_0x516d98&&Object[_0x53a29b(0x189)](_0x5cc2ee,_0x12192e,_0x516d98),_0x516d98;},__metadata=this&&this[a2_0x270d61(0x12a)]||function(_0x1e1aa3,_0x2f7dca){const _0xb91555=a2_0x270d61;if(typeof Reflect===_0xb91555(0x110)&&typeof Reflect[_0xb91555(0x156)]==='function')return Reflect[_0xb91555(0x156)](_0x1e1aa3,_0x2f7dca);};function a2_0x5d3c(_0x2b8172,_0x846f83){const _0x1b4269=a2_0x4737();return a2_0x5d3c=function(_0xb3586,_0x1d11ad){_0xb3586=_0xb3586-0x105;let _0x4737c5=_0x1b4269[_0xb3586];return _0x4737c5;},a2_0x5d3c(_0x2b8172,_0x846f83);}Object[a2_0x270d61(0x189)](exports,a2_0x270d61(0x138),{'value':!![]}),exports[a2_0x270d61(0x115)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x270d61(0x163)),ApiError_1=require(a2_0x270d61(0x127)),ApiService_1=require(a2_0x270d61(0x13c)),intercept_1=require(a2_0x270d61(0x10b)),action_1=require(a2_0x270d61(0x112)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x270d61(0x162)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x270d61(0x155)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x270d61(0x111)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x270d61(0x14d)),anncicEvent=require(a2_0x270d61(0x164)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x270d61(0x13f));function a2_0x4737(){const _0x3f3bfe=['mkdirSync','1vDGltV','requestMethod','statSync','getApplications','design:type','230znUDKG','body','proceed','encrypted','prototype','connection','getClassMetadata','./exception/ApiError','REQUEST_OBJ_CTX_KEY','1681758YJSqsw','__metadata','(((.+)+)+)+$','log','31068KnFVwQ','clients','apimit','context','request','routerOptions','defineProperties','ACTION_ROUTE_KEY','bodyXml','default','toLowerCase','__esModule','21737716Ilbahi','upload','https://','./service/ApiService','/runtime/apps-','ApiError','anncic-apihelper','Anncic-api\x20static-file\x20:\x20mkdir\x20','input','/apps','method','_UNKNOW_','Inject','3678535dWwdlf','dir','registerMethodHandler','文件不存在','443','path','.log','@anncic-api/cache','getBaseDir','target','InterceptTargetTmp','attachment','55324PUdrTq','ApiService','_matchedRouteMeta','@midwayjs/static-file','metadata','substring','midwayLogger','MidwayEnvironmentService','length','6kOSfUt','App','requestKey','match','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','app','anncic-api','@midwayjs/koa','@midwayjs/core','@anncic-api/event','anncicapi','search','handlerActionRoute','defaultsDeep','routerName','_matchedRoute','devices','config','host','filterConfig','Types','/apps/','isArray','onReady','startsWith','requestContext','filepath','forEach','dirs','isDirectory','application','MidwayLoggerService','HEADERS_SIGNATURE','handler','isClass','MidwayApplicationManager','readdirSync','addObject','APPSCONFIG_KEY','query','6726352DChSeG','hanlderApplications','tmpdir','getAppDir','existsSync','split','defineProperty','decorator','MidwayDecoratorService','loggerService','http://','keys','headers','isDevelopmentEnvironment','AppsConfigTmp','1180rCHkWM','createLogger','device','tagName','assign','get','getOwnPropertyDescriptor','staticFile','DEFAULT','description','MidwayConfigService','constructor','decorate','./types/intercept','module','toString','/runtime','string','object','./config/config.default','./types/action','key','undefined','CustomConfiguration','function','getConfiguration','ACTION_KEY','351156BfKVQJ'];a2_0x4737=function(){return _0x3f3bfe;};return a2_0x4737();}let CustomConfiguration=exports[a2_0x270d61(0x115)]=class CustomConfiguration{async[a2_0x270d61(0x172)](){const _0x253b3b=a2_0x270d61;await this[_0x253b3b(0x16e)](),await this['loggerConfig'](),await this['handlerActionRoute'](),await this[_0x253b3b(0x184)]();}async[a2_0x270d61(0x167)](){const _0x20f6e2=a2_0x270d61,_0x1d6d08=this[_0x20f6e2(0x16c)]['getConfiguration'](),_0x2981b3=(0x0,core_1[_0x20f6e2(0x126)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x20f6e2(0x150)])||{};this[_0x20f6e2(0x18a)][_0x20f6e2(0x148)](action_1[_0x20f6e2(0x134)],_0x2cb6c2=>{const _0x8ff195=_0x20f6e2;var _0xe05d62;const _0x4ad969=(0x0,core_1['getClassMetadata'])(action_1[_0x8ff195(0x181)],action_1[_0x8ff195(0x191)])||{},_0x351b4e=_0x2cb6c2[_0x8ff195(0x156)],_0x171ce4=(0x0,core_1[_0x8ff195(0x126)])(action_1[_0x8ff195(0x118)],_0x2cb6c2['target'])||{},_0x1a4ccf=((_0xe05d62=_0x171ce4===null||_0x171ce4===void 0x0?void 0x0:_0x171ce4[_0x8ff195(0x175)])===null||_0xe05d62===void 0x0?void 0x0:_0xe05d62[_0x8ff195(0x157)](0x0,_0x171ce4[_0x8ff195(0x175)]['lastIndexOf']('.')))||'',_0x33708b=(_0x171ce4===null||_0x171ce4===void 0x0?void 0x0:_0x171ce4[_0x8ff195(0x10c)])?(_0x4ad969===null||_0x4ad969===void 0x0?void 0x0:_0x4ad969[_0x171ce4[_0x8ff195(0x10c)]])||{}:{};return{'before':async _0x55342d=>{const _0x1b6914=_0x8ff195;var _0x69fea2,_0x854a7b,_0xae585,_0x3d2f35;const _0x41fc95=(_0x69fea2=_0x55342d===null||_0x55342d===void 0x0?void 0x0:_0x55342d[_0x1b6914(0x14f)])===null||_0x69fea2===void 0x0?void 0x0:_0x69fea2[core_2['REQUEST_OBJ_CTX_KEY']],_0x1b14df=lodash[_0x1b6914(0x168)]({},_0x41fc95[_0x1b6914(0x131)][_0x1b6914(0x121)]||_0x41fc95['request'][((_0x854a7b=_0x1d6d08===null||_0x1d6d08===void 0x0?void 0x0:_0x1d6d08[_0x1b6914(0x135)])===null||_0x854a7b===void 0x0?void 0x0:_0x854a7b[_0x1b6914(0x113)])||_0x1b6914(0x121)]||{},_0x41fc95['request']['query']||{});_0x41fc95[_0x1b6914(0x154)]={'module':(_0x33708b===null||_0x33708b===void 0x0?void 0x0:_0x33708b['name'])||'','routePath':''+_0x41fc95[_0x1b6914(0x14b)],'routeName':_0x171ce4[_0x1b6914(0x132)][_0x1b6914(0x195)]+'@'+_0x351b4e[_0x1b6914(0x169)],'routeMethod':((_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e[_0x1b6914(0x11c)])||_0x41fc95[_0x1b6914(0x143)]||'')[_0x1b6914(0x137)](),'routeDescription':(_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e[_0x1b6914(0x107)])||'','filemethod':_0x1a4ccf+'@'+(_0x351b4e[_0x1b6914(0x143)]||'')};if(_0x41fc95&&(_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e[_0x1b6914(0x12f)]))try{const _0x22288d=((_0xae585=_0x1d6d08===null||_0x1d6d08===void 0x0?void 0x0:_0x1d6d08[_0x1b6914(0x165)])===null||_0xae585===void 0x0?void 0x0:_0xae585[_0x1b6914(0x15d)])&&typeof(_0x1b14df===null||_0x1b14df===void 0x0?void 0x0:_0x1b14df[_0x1d6d08[_0x1b6914(0x165)][_0x1b6914(0x15d)]])==_0x1b6914(0x10f)?JSON['parse'](base64_decode(_0x1b14df[_0x1d6d08[_0x1b6914(0x165)][_0x1b6914(0x15d)]])||'{}')||{}:((_0x3d2f35=_0x41fc95===null||_0x41fc95===void 0x0?void 0x0:_0x41fc95[_0x1b6914(0x131)])===null||_0x3d2f35===void 0x0?void 0x0:_0x3d2f35[_0x1b6914(0x18f)])||{};if(!this[_0x1b6914(0x153)]['checksign'](_0x22288d))throw new AnnError(ApiError_1[_0x1b6914(0x13e)][_0x1b6914(0x17b)]);}catch(_0x58e168){if(_0x58e168 instanceof AnnError)throw _0x58e168;else throw new AnnError(ApiError_1[_0x1b6914(0x13e)][_0x1b6914(0x144)]);}},'around':async _0x4b00d1=>{const _0x1f42df=_0x8ff195;var _0x5cbe1a,_0xd2c073,_0xc0aa9f;const _0x16cec4=(_0x5cbe1a=_0x4b00d1===null||_0x4b00d1===void 0x0?void 0x0:_0x4b00d1[_0x1f42df(0x14f)])===null||_0x5cbe1a===void 0x0?void 0x0:_0x5cbe1a[core_2[_0x1f42df(0x128)]];if(_0x16cec4&&(_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e[_0x1f42df(0x12f)])&&((_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e['intercept'])||typeof(_0x351b4e===null||_0x351b4e===void 0x0?void 0x0:_0x351b4e['intercept'])==_0x1f42df(0x114))){if(((_0xd2c073=_0x16cec4['headers'])===null||_0xd2c073===void 0x0?void 0x0:_0xd2c073['device'])&&((_0xc0aa9f=_0x2981b3===null||_0x2981b3===void 0x0?void 0x0:_0x2981b3[_0x16cec4['headers'][_0x1f42df(0x194)]])===null||_0xc0aa9f===void 0x0?void 0x0:_0xc0aa9f[_0x1f42df(0x15a)])>0x0)for(const _0xaa0a15 of _0x2981b3[_0x16cec4[_0x1f42df(0x18f)]['device']]||[]){if(core_1[_0x1f42df(0x16f)][_0x1f42df(0x17d)](_0xaa0a15)){const _0x47aa6a=await _0x16cec4[_0x1f42df(0x174)]['getAsync'](_0xaa0a15);typeof(_0x47aa6a===null||_0x47aa6a===void 0x0?void 0x0:_0x47aa6a[_0x1f42df(0x15e)])==_0x1f42df(0x116)?await _0x47aa6a[_0x1f42df(0x15e)](_0x16cec4,typeof(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x143)])==_0x1f42df(0x10f)&&(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)])?_0x16cec4[_0x1f42df(0x143)][_0x1f42df(0x137)]()+'@'+(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)]):undefined,_0x351b4e)&&await _0x47aa6a[_0x1f42df(0x17c)](_0x16cec4,typeof(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x143)])=='string'&&(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)])?_0x16cec4[_0x1f42df(0x143)][_0x1f42df(0x137)]()+'@'+(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)]):undefined,_0x351b4e):await _0x47aa6a['handler'](_0x16cec4,typeof(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x143)])==_0x1f42df(0x10f)&&(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)])?_0x16cec4[_0x1f42df(0x143)][_0x1f42df(0x137)]()+'@'+(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)]):undefined,_0x351b4e);}else core_1[_0x1f42df(0x16f)]['isFunction'](_0xaa0a15)&&await _0xaa0a15(_0x16cec4,typeof(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4['method'])=='string'&&(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)])?_0x16cec4['method'][_0x1f42df(0x137)]()+'@'+(_0x16cec4===null||_0x16cec4===void 0x0?void 0x0:_0x16cec4[_0x1f42df(0x16a)]):undefined,_0x351b4e);}}return await _0x4b00d1[_0x1f42df(0x122)](..._0x4b00d1['args']);},'afterThrow':(_0x4b9154,_0x1bf316)=>{throw _0x1bf316;}};});}async[a2_0x270d61(0x184)](){const _0x51600f=a2_0x270d61,_0x357f13=this[_0x51600f(0x16c)]['getConfiguration']();this[_0x51600f(0x179)][_0x51600f(0x11e)](['koa'])[_0x51600f(0x176)](_0xee49f6=>{const _0x7d0b53=_0x51600f;(_0xee49f6===null||_0xee49f6===void 0x0?void 0x0:_0xee49f6[_0x7d0b53(0x130)])&&Object[_0x7d0b53(0x133)](_0xee49f6[_0x7d0b53(0x130)],{'hosturl':{'configurable':![],'get':function(){const _0x4341b9=_0x7d0b53;var _0x1e22bd,_0x6fa8fa,_0x4f5794,_0x3901e8;if((this===null||this===void 0x0?void 0x0:this[_0x4341b9(0x16d)])&&!this[_0x4341b9(0x16d)][_0x4341b9(0x173)]('http')){let _0xad784a=this[_0x4341b9(0x16d)][_0x4341b9(0x188)](':');return['80',_0x4341b9(0x14a)]['includes'](_0xad784a===null||_0xad784a===void 0x0?void 0x0:_0xad784a[0x1])?''+(!!((_0x6fa8fa=(_0x1e22bd=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x1e22bd===void 0x0?void 0x0:_0x1e22bd['connection'])===null||_0x6fa8fa===void 0x0?void 0x0:_0x6fa8fa['encrypted'])||(_0xad784a===null||_0xad784a===void 0x0?void 0x0:_0xad784a[0x1])==_0x4341b9(0x14a)?_0x4341b9(0x13b):_0x4341b9(0x18d))+_0xad784a[0x0]:''+(!!((_0x3901e8=(_0x4f5794=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x4f5794===void 0x0?void 0x0:_0x4f5794[_0x4341b9(0x125)])===null||_0x3901e8===void 0x0?void 0x0:_0x3901e8[_0x4341b9(0x123)])?'https://':_0x4341b9(0x18d))+this[_0x4341b9(0x16d)];}return'';}},'ok':{'value':function(_0x1f0b47,_0x2098ed,_0x53407d=0x0){return{'code':_0x53407d,'data':_0x1f0b47,'extra':_0x2098ed};}},'input':{'value':function(_0x76adeb,_0x1aa1e7){const _0x484c79=_0x7d0b53;var _0x73e180;const _0xdd43e4=lodash[_0x484c79(0x168)]({},this['request']['body']||this['request'][((_0x73e180=_0x357f13===null||_0x357f13===void 0x0?void 0x0:_0x357f13[_0x484c79(0x135)])===null||_0x73e180===void 0x0?void 0x0:_0x73e180['key'])||_0x484c79(0x121)]||{},this['request'][_0x484c79(0x182)]||{});return _0x76adeb?lodash[_0x484c79(0x197)](_0xdd43e4,_0x76adeb,_0x1aa1e7):_0xdd43e4;}},'when':{'value':async function(_0x59d7fe,_0x39f57c){const _0x593738=_0x7d0b53,_0x14f300=this[_0x593738(0x141)](_0x59d7fe,null);if(!lodash['isNull'](_0x14f300))return await _0x39f57c(_0x14f300);}},'only':{'value':function(_0x2c1f14){const _0x554953=_0x7d0b53,_0xa48379={};for(let _0x1b11ae=0x0;_0x1b11ae<_0x2c1f14[_0x554953(0x15a)];_0x1b11ae++){lodash[_0x554953(0x171)](_0x2c1f14[_0x1b11ae])&&_0x2c1f14[_0x1b11ae]['length']>0x0&&lodash['isString'](_0x2c1f14[_0x1b11ae][0x0])&&(_0xa48379[_0x2c1f14[_0x1b11ae][0x0]]=this[_0x554953(0x141)](_0x2c1f14[_0x1b11ae][0x0],_0x2c1f14[_0x1b11ae][_0x554953(0x15a)]>0x1?_0x2c1f14[_0x1b11ae][0x1]:null));}return _0xa48379;}},'koasend':{'value':async function(_0x1557f5,_0x5b6e49){const _0x46efd6=_0x7d0b53;if(_0x1557f5&&!fs[_0x46efd6(0x187)](_0x1557f5)&&!fs[_0x46efd6(0x187)](this[_0x46efd6(0x160)]['getAppDir']()+'/'+_0x1557f5))return _0x46efd6(0x149);return _0x1557f5=fs['existsSync'](_0x1557f5)?_0x1557f5:this['app'][_0x46efd6(0x186)]()+'/'+_0x1557f5,this[_0x46efd6(0x151)](_0x5b6e49||_0x1557f5),await koasend(this,_0x1557f5);}}});});}async['loggerConfig'](){const _0x28abe6=a2_0x270d61;var _0xdac3b3,_0x27cb2c;if(fs['existsSync'](this[_0x28abe6(0x160)][_0x28abe6(0x14e)]()+_0x28abe6(0x142))&&fs[_0x28abe6(0x11d)](this['app'][_0x28abe6(0x14e)]()+_0x28abe6(0x142))[_0x28abe6(0x178)]()){const _0x1d4734=this[_0x28abe6(0x16c)][_0x28abe6(0x117)](),_0x22eef8=((_0xdac3b3=_0x1d4734===null||_0x1d4734===void 0x0?void 0x0:_0x1d4734['midwayLogger'])===null||_0xdac3b3===void 0x0?void 0x0:_0xdac3b3[_0x28abe6(0x12e)])||{};for(const _0x4aabdf of fs[_0x28abe6(0x17f)](this['app'][_0x28abe6(0x14e)]()+_0x28abe6(0x142))){if(!fs[_0x28abe6(0x11d)](this[_0x28abe6(0x160)][_0x28abe6(0x14e)]()+_0x28abe6(0x170)+_0x4aabdf)[_0x28abe6(0x178)]())continue;!(_0x22eef8===null||_0x22eef8===void 0x0?void 0x0:_0x22eef8[_0x4aabdf])&&(_0x22eef8[_0x4aabdf]=Object[_0x28abe6(0x196)]({},((_0x27cb2c=_0x1d4734===null||_0x1d4734===void 0x0?void 0x0:_0x1d4734[_0x28abe6(0x158)])===null||_0x27cb2c===void 0x0?void 0x0:_0x27cb2c[_0x28abe6(0x136)])||{'maxSize':'1m','dir':this[_0x28abe6(0x160)]['getAppDir']()+_0x28abe6(0x10e)},{'enableJSON':!![],'enableConsole':this['environment'][_0x28abe6(0x190)](),'fileLogName':_0x4aabdf+_0x28abe6(0x14c),'dir':this[_0x28abe6(0x160)][_0x28abe6(0x186)]()+_0x28abe6(0x13d)+_0x4aabdf})),this[_0x28abe6(0x18c)][_0x28abe6(0x193)](_0x4aabdf,_0x22eef8[_0x4aabdf]);}Object[_0x28abe6(0x18e)](_0x22eef8)[_0x28abe6(0x15a)]>0x0&&(!_0x1d4734[_0x28abe6(0x158)]&&(_0x1d4734[_0x28abe6(0x158)]={'default':{'maxSize':'1m','dir':this[_0x28abe6(0x160)][_0x28abe6(0x186)]()+_0x28abe6(0x10e)}}),_0x1d4734[_0x28abe6(0x158)][_0x28abe6(0x12e)]=_0x22eef8),this[_0x28abe6(0x16c)][_0x28abe6(0x180)](_0x1d4734);}}async[a2_0x270d61(0x16e)](){const _0xd06eff=a2_0x270d61;var _0x4e7ca8,_0x2fe603,_0x123b44,_0x42abae,_0x4b7d12,_0x5391ff;const _0x591640=this[_0xd06eff(0x16c)]['getConfiguration']();((_0x2fe603=(_0x4e7ca8=_0x591640===null||_0x591640===void 0x0?void 0x0:_0x591640['anncicapi'])===null||_0x4e7ca8===void 0x0?void 0x0:_0x4e7ca8[_0xd06eff(0x16b)])===null||_0x2fe603===void 0x0?void 0x0:_0x2fe603[_0xd06eff(0x106)])&&Object[_0xd06eff(0x18e)](_0x591640[_0xd06eff(0x165)]['devices'])[_0xd06eff(0x15a)]>0x1&&delete _0x591640[_0xd06eff(0x165)][_0xd06eff(0x16b)]['DEFAULT'];if((_0x123b44=_0x591640===null||_0x591640===void 0x0?void 0x0:_0x591640[_0xd06eff(0x105)])===null||_0x123b44===void 0x0?void 0x0:_0x123b44[_0xd06eff(0x177)])for(const _0x3bdc28 in _0x591640[_0xd06eff(0x105)][_0xd06eff(0x177)]){((_0x42abae=_0x591640[_0xd06eff(0x105)][_0xd06eff(0x177)][_0x3bdc28])===null||_0x42abae===void 0x0?void 0x0:_0x42abae['dir'])&&typeof((_0x4b7d12=_0x591640[_0xd06eff(0x105)][_0xd06eff(0x177)][_0x3bdc28])===null||_0x4b7d12===void 0x0?void 0x0:_0x4b7d12['dir'])==_0xd06eff(0x10f)&&!fs[_0xd06eff(0x187)](_0x591640[_0xd06eff(0x105)][_0xd06eff(0x177)][_0x3bdc28][_0xd06eff(0x147)])&&(fs[_0xd06eff(0x11a)](_0x591640[_0xd06eff(0x105)]['dirs'][_0x3bdc28][_0xd06eff(0x147)],{'recursive':!![]}),console[_0xd06eff(0x12c)](_0xd06eff(0x140)+_0x591640[_0xd06eff(0x105)]['dirs'][_0x3bdc28]['dir']));}((_0x5391ff=_0x591640===null||_0x591640===void 0x0?void 0x0:_0x591640[_0xd06eff(0x13a)])===null||_0x5391ff===void 0x0?void 0x0:_0x5391ff[_0xd06eff(0x185)])&&!fs[_0xd06eff(0x187)](_0x591640[_0xd06eff(0x13a)][_0xd06eff(0x185)])&&(fs[_0xd06eff(0x11a)](_0x591640['upload'][_0xd06eff(0x185)],{'recursive':!![]}),console[_0xd06eff(0x12c)](_0xd06eff(0x15f)+_0x591640['upload'][_0xd06eff(0x185)])),this[_0xd06eff(0x16c)][_0xd06eff(0x180)](_0x591640);}};__decorate([(0x0,core_1[a2_0x270d61(0x15c)])(),__metadata(a2_0x270d61(0x11f),Object)],CustomConfiguration['prototype'],a2_0x270d61(0x160),void 0x0),__decorate([(0x0,core_1[a2_0x270d61(0x145)])(),__metadata(a2_0x270d61(0x11f),core_2[a2_0x270d61(0x108)])],CustomConfiguration[a2_0x270d61(0x124)],a2_0x270d61(0x16c),void 0x0),__decorate([(0x0,core_1[a2_0x270d61(0x145)])(),__metadata(a2_0x270d61(0x11f),core_2[a2_0x270d61(0x18b)])],CustomConfiguration[a2_0x270d61(0x124)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x270d61(0x17e)])],CustomConfiguration[a2_0x270d61(0x124)],a2_0x270d61(0x179),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x270d61(0x11f),core_2[a2_0x270d61(0x159)])],CustomConfiguration[a2_0x270d61(0x124)],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x270d61(0x11f),core_1[a2_0x270d61(0x17a)])],CustomConfiguration['prototype'],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x270d61(0x11f),ApiService_1[a2_0x270d61(0x153)])],CustomConfiguration[a2_0x270d61(0x124)],a2_0x270d61(0x153),void 0x0),exports[a2_0x270d61(0x115)]=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x270d61(0x161),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x19dab8=a2_0x2df6;(function(_0xd84058,_0x29c473){const _0x4f911e=a2_0x2df6,_0x4425b8=_0xd84058();while(!![]){try{const _0x252c87=-parseInt(_0x4f911e(0x113))/0x1*(parseInt(_0x4f911e(0x17c))/0x2)+parseInt(_0x4f911e(0x135))/0x3+-parseInt(_0x4f911e(0x15c))/0x4+parseInt(_0x4f911e(0x12c))/0x5*(-parseInt(_0x4f911e(0x126))/0x6)+parseInt(_0x4f911e(0x15f))/0x7*(parseInt(_0x4f911e(0xed))/0x8)+parseInt(_0x4f911e(0x14a))/0x9*(-parseInt(_0x4f911e(0x152))/0xa)+-parseInt(_0x4f911e(0x119))/0xb*(-parseInt(_0x4f911e(0xf0))/0xc);if(_0x252c87===_0x29c473)break;else _0x4425b8['push'](_0x4425b8['shift']());}catch(_0x4759bb){_0x4425b8['push'](_0x4425b8['shift']());}}}(a2_0x371b,0x3302d));function a2_0x371b(){const _0xc5809d=['design:type','372760LOYORD','isArray','apimit','2393594wuEVZk','dir','ACTION_ROUTE_KEY','isDevelopmentEnvironment','split','substring','/apps/','startsWith','/apps','__decorate','APPSCONFIG_KEY','app','query','/runtime/apps-','function','文件不存在','@midwayjs/static-file','defineProperty','@midwayjs/cross-domain','https://','decorate','readdirSync','encrypted','.log','host','apply','@anncic-api/core','anncicapi','anncic-apihelper','81402juOYgM','koa-send','object','registerMethodHandler','default','get','8TpgHyt','headers','Types','300BuluGA','loggerService','getClassMetadata','Configuration','INTERCEPT_KEY','REQUEST_OBJ_CTX_KEY','dirs','bodyXml','__metadata','name','match','string','getAppDir','_UNKNOW_','module','mkdirSync','@anncic-api/event','input','includes','@anncic-api/validator','MidwayConfigService','isClass','AppsConfigTmp','isString','parse','_matchedRoute','./config/config.default','getAsync','MidwayLoggerService','toString','prototype','metadata','handlerActionRoute','requestKey','proceed','1tvrFMp','443','onReady','existsSync','__esModule','ApiService','233717eTCGgD','hanlderApplications','upload','addObject','statSync','midwayLogger','http','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','decorator','MidwayDecoratorService','@midwayjs/koa','context','InterceptTargetTmp','57786XVZlVC','MidwayApplicationManager','device','./service/ApiService','@anncic-api/cache','isDirectory','155VWoPbm','tmpdir','requestMethod','toLowerCase','CustomConfiguration','filterConfig','defineProperties','isNull','handler','407943rLoTuH','req','createLogger','config','requestContext','anncic-api','keys','koa','staticFile','getConfiguration','environment','key','application','devices','ApiError','getApplications','MidwayEnvironmentService','tagName','HEADERS_SIGNATURE','defaultsDeep','length','9HOIaCA','request','method','/runtime','App','ACTION_KEY','target','Anncic-api\x20static-file\x20:\x20mkdir\x20','3677050tFjxXz','clients','body','loggerConfig','intercept','getBaseDir','constructor','Inject','search'];a2_0x371b=function(){return _0xc5809d;};return a2_0x371b();}const a2_0x20dc8f=(function(){let _0x2c5a8f=!![];return function(_0x5069a8,_0x147a88){const _0x5703b8=_0x2c5a8f?function(){const _0x372649=a2_0x2df6;if(_0x147a88){const _0x35b62e=_0x147a88[_0x372649(0x178)](_0x5069a8,arguments);return _0x147a88=null,_0x35b62e;}}:function(){};return _0x2c5a8f=![],_0x5703b8;};}()),a2_0x40805c=a2_0x20dc8f(this,function(){const _0x2eca89=a2_0x2df6;return a2_0x40805c[_0x2eca89(0x10d)]()[_0x2eca89(0x15a)]('(((.+)+)+)+$')[_0x2eca89(0x10d)]()[_0x2eca89(0x158)](a2_0x40805c)[_0x2eca89(0x15a)]('(((.+)+)+)+$');});function a2_0x2df6(_0x233499,_0x44e8c8){const _0x1ab1d5=a2_0x371b();return a2_0x2df6=function(_0x40805c,_0x20dc8f){_0x40805c=_0x40805c-0xec;let _0x371b00=_0x1ab1d5[_0x40805c];return _0x371b00;},a2_0x2df6(_0x233499,_0x44e8c8);}a2_0x40805c();'use strict';var __decorate=this&&this[a2_0x19dab8(0x168)]||function(_0x3fd640,_0x527bff,_0x58c875,_0x263c45){const _0x198b87=a2_0x19dab8;var _0x260c2d=arguments[_0x198b87(0x149)],_0x1dbe36=_0x260c2d<0x3?_0x527bff:_0x263c45===null?_0x263c45=Object['getOwnPropertyDescriptor'](_0x527bff,_0x58c875):_0x263c45,_0x467a00;if(typeof Reflect===_0x198b87(0x17e)&&typeof Reflect[_0x198b87(0x173)]===_0x198b87(0x16d))_0x1dbe36=Reflect[_0x198b87(0x173)](_0x3fd640,_0x527bff,_0x58c875,_0x263c45);else{for(var _0x5bdc6c=_0x3fd640[_0x198b87(0x149)]-0x1;_0x5bdc6c>=0x0;_0x5bdc6c--)if(_0x467a00=_0x3fd640[_0x5bdc6c])_0x1dbe36=(_0x260c2d<0x3?_0x467a00(_0x1dbe36):_0x260c2d>0x3?_0x467a00(_0x527bff,_0x58c875,_0x1dbe36):_0x467a00(_0x527bff,_0x58c875))||_0x1dbe36;}return _0x260c2d>0x3&&_0x1dbe36&&Object['defineProperty'](_0x527bff,_0x58c875,_0x1dbe36),_0x1dbe36;},__metadata=this&&this[a2_0x19dab8(0xf8)]||function(_0x133459,_0x3438d3){const _0x3501b8=a2_0x19dab8;if(typeof Reflect===_0x3501b8(0x17e)&&typeof Reflect['metadata']===_0x3501b8(0x16d))return Reflect[_0x3501b8(0x10f)](_0x133459,_0x3438d3);};Object[a2_0x19dab8(0x170)](exports,a2_0x19dab8(0x117),{'value':!![]}),exports[a2_0x19dab8(0x130)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x19dab8(0x129)),intercept_1=require('./types/intercept'),action_1=require('./types/action'),fs=require('fs'),koasend=require(a2_0x19dab8(0x17d)),koa=require(a2_0x19dab8(0x123)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x19dab8(0x16f)),crossDomain=require(a2_0x19dab8(0x171)),ConfigDefault=require(a2_0x19dab8(0x10a)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x19dab8(0x179)),anncicCache=require(a2_0x19dab8(0x12a)),anncicEvent=require(a2_0x19dab8(0x100)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x19dab8(0x103)),anncicHelper=require(a2_0x19dab8(0x17b));let CustomConfiguration=class CustomConfiguration{async[a2_0x19dab8(0x115)](){const _0x2ed952=a2_0x19dab8;await this[_0x2ed952(0x131)](),await this[_0x2ed952(0x155)](),await this[_0x2ed952(0x110)](),await this[_0x2ed952(0x11a)]();}async[a2_0x19dab8(0x110)](){const _0x261556=a2_0x19dab8,_0x191779=this[_0x261556(0x138)][_0x261556(0x13e)](),_0x335d37=(0x0,core_1['getClassMetadata'])(intercept_1[_0x261556(0xf4)],intercept_1[_0x261556(0x125)])||{};this[_0x261556(0x121)][_0x261556(0x17f)](action_1[_0x261556(0x161)],_0x16d3b6=>{const _0x1aad82=_0x261556;var _0x4e7000;const _0x401ee7=(0x0,core_1[_0x1aad82(0xf2)])(action_1[_0x1aad82(0x169)],action_1[_0x1aad82(0x106)])||{},_0x57e8b7=_0x16d3b6[_0x1aad82(0x10f)],_0x445185=(0x0,core_1[_0x1aad82(0xf2)])(action_1[_0x1aad82(0x14f)],_0x16d3b6['target'])||{},_0x294e9f=((_0x4e7000=_0x445185===null||_0x445185===void 0x0?void 0x0:_0x445185['filepath'])===null||_0x4e7000===void 0x0?void 0x0:_0x4e7000[_0x1aad82(0x164)](0x0,_0x445185['filepath']['lastIndexOf']('.')))||'',_0x2b1c16=(_0x445185===null||_0x445185===void 0x0?void 0x0:_0x445185[_0x1aad82(0xfe)])?(_0x401ee7===null||_0x401ee7===void 0x0?void 0x0:_0x401ee7[_0x445185[_0x1aad82(0xfe)]])||{}:{};return{'before':async _0x515c8f=>{const _0x35002a=_0x1aad82;var _0x3768bb,_0x29889e,_0x594111,_0x4f732b;const _0xf30ec8=(_0x3768bb=_0x515c8f===null||_0x515c8f===void 0x0?void 0x0:_0x515c8f[_0x35002a(0x150)])===null||_0x3768bb===void 0x0?void 0x0:_0x3768bb[core_2['REQUEST_OBJ_CTX_KEY']],_0x2976d9=lodash[_0x35002a(0x148)]({},_0xf30ec8[_0x35002a(0x14b)][_0x35002a(0x154)]||_0xf30ec8[_0x35002a(0x14b)][((_0x29889e=_0x191779===null||_0x191779===void 0x0?void 0x0:_0x191779[_0x35002a(0xf7)])===null||_0x29889e===void 0x0?void 0x0:_0x29889e['key'])||_0x35002a(0x154)]||{},_0xf30ec8['request'][_0x35002a(0x16b)]||{});_0xf30ec8['_matchedRouteMeta']={'module':(_0x2b1c16===null||_0x2b1c16===void 0x0?void 0x0:_0x2b1c16[_0x35002a(0xf9)])||'','routePath':''+_0xf30ec8['path'],'routeName':_0x445185['routerOptions'][_0x35002a(0x146)]+'@'+_0x57e8b7['routerName'],'routeMethod':((_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x35002a(0x12e)])||_0xf30ec8[_0x35002a(0x14c)]||'')[_0x35002a(0x12f)](),'routeDescription':(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7['description'])||'','filemethod':_0x294e9f+'@'+(_0x57e8b7[_0x35002a(0x14c)]||'')};if(_0xf30ec8&&(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x35002a(0x15e)]))try{const _0x5a49d2=((_0x594111=_0x191779===null||_0x191779===void 0x0?void 0x0:_0x191779[_0x35002a(0x17a)])===null||_0x594111===void 0x0?void 0x0:_0x594111[_0x35002a(0x111)])&&typeof(_0x2976d9===null||_0x2976d9===void 0x0?void 0x0:_0x2976d9[_0x191779['anncicapi'][_0x35002a(0x111)]])==_0x35002a(0xfb)?JSON[_0x35002a(0x108)](base64_decode(_0x2976d9[_0x191779[_0x35002a(0x17a)][_0x35002a(0x111)]])||'{}')||{}:((_0x4f732b=_0xf30ec8===null||_0xf30ec8===void 0x0?void 0x0:_0xf30ec8[_0x35002a(0x14b)])===null||_0x4f732b===void 0x0?void 0x0:_0x4f732b[_0x35002a(0xee)])||{};if(!this[_0x35002a(0x118)]['checksign'](_0x5a49d2))throw new AnnError(ApiError_1[_0x35002a(0x143)][_0x35002a(0x147)]);}catch(_0x4d54cc){if(_0x4d54cc instanceof AnnError)throw _0x4d54cc;else throw new AnnError(ApiError_1[_0x35002a(0x143)][_0x35002a(0xfd)]);}},'around':async _0x440b10=>{const _0x1e5e1b=_0x1aad82;var _0x44a480,_0xb4c058,_0x2fab44;const _0xd2d47a=(_0x44a480=_0x440b10===null||_0x440b10===void 0x0?void 0x0:_0x440b10[_0x1e5e1b(0x150)])===null||_0x44a480===void 0x0?void 0x0:_0x44a480[core_2[_0x1e5e1b(0xf5)]];if(_0xd2d47a&&(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x15e)])&&((_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x156)])||typeof(_0x57e8b7===null||_0x57e8b7===void 0x0?void 0x0:_0x57e8b7[_0x1e5e1b(0x156)])=='undefined')){if(((_0xb4c058=_0xd2d47a['headers'])===null||_0xb4c058===void 0x0?void 0x0:_0xb4c058[_0x1e5e1b(0x128)])&&((_0x2fab44=_0x335d37===null||_0x335d37===void 0x0?void 0x0:_0x335d37[_0xd2d47a[_0x1e5e1b(0xee)][_0x1e5e1b(0x128)]])===null||_0x2fab44===void 0x0?void 0x0:_0x2fab44[_0x1e5e1b(0x149)])>0x0)for(const _0x42efad of _0x335d37[_0xd2d47a['headers']['device']]||[]){if(core_1[_0x1e5e1b(0xef)][_0x1e5e1b(0x105)](_0x42efad)){const _0x165dd0=await _0xd2d47a[_0x1e5e1b(0x139)][_0x1e5e1b(0x10b)](_0x42efad);typeof(_0x165dd0===null||_0x165dd0===void 0x0?void 0x0:_0x165dd0[_0x1e5e1b(0xfa)])==_0x1e5e1b(0x16d)?await _0x165dd0[_0x1e5e1b(0xfa)](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute'])?_0xd2d47a['method'][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7)&&await _0x165dd0[_0x1e5e1b(0x134)](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute'])?_0xd2d47a[_0x1e5e1b(0x14c)][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7):await _0x165dd0['handler'](_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])==_0x1e5e1b(0xfb)&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)])?_0xd2d47a[_0x1e5e1b(0x14c)]['toLowerCase']()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)]):undefined,_0x57e8b7);}else core_1[_0x1e5e1b(0xef)]['isFunction'](_0x42efad)&&await _0x42efad(_0xd2d47a,typeof(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x14c)])=='string'&&(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a[_0x1e5e1b(0x109)])?_0xd2d47a[_0x1e5e1b(0x14c)][_0x1e5e1b(0x12f)]()+'@'+(_0xd2d47a===null||_0xd2d47a===void 0x0?void 0x0:_0xd2d47a['_matchedRoute']):undefined,_0x57e8b7);}}return await _0x440b10[_0x1e5e1b(0x112)](..._0x440b10['args']);},'afterThrow':(_0x538b08,_0x205884)=>{throw _0x205884;}};});}async['hanlderApplications'](){const _0xfefbb8=a2_0x19dab8,_0x17a405=this[_0xfefbb8(0x138)][_0xfefbb8(0x13e)]();this[_0xfefbb8(0x141)][_0xfefbb8(0x144)]([_0xfefbb8(0x13c)])['forEach'](_0x5dbdfe=>{const _0x3b873c=_0xfefbb8;(_0x5dbdfe===null||_0x5dbdfe===void 0x0?void 0x0:_0x5dbdfe[_0x3b873c(0x124)])&&Object[_0x3b873c(0x132)](_0x5dbdfe['context'],{'hosturl':{'configurable':![],'get':function(){const _0x2d7be1=_0x3b873c;var _0x38b9cd,_0x163a06,_0x156c5a,_0x458d45;if((this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x177)])&&!this[_0x2d7be1(0x177)][_0x2d7be1(0x166)](_0x2d7be1(0x11f))){let _0x27426e=this[_0x2d7be1(0x177)][_0x2d7be1(0x163)](':');return['80',_0x2d7be1(0x114)][_0x2d7be1(0x102)](_0x27426e===null||_0x27426e===void 0x0?void 0x0:_0x27426e[0x1])?''+(!!((_0x163a06=(_0x38b9cd=this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x136)])===null||_0x38b9cd===void 0x0?void 0x0:_0x38b9cd['connection'])===null||_0x163a06===void 0x0?void 0x0:_0x163a06[_0x2d7be1(0x175)])||(_0x27426e===null||_0x27426e===void 0x0?void 0x0:_0x27426e[0x1])==_0x2d7be1(0x114)?_0x2d7be1(0x172):'http://')+_0x27426e[0x0]:''+(!!((_0x458d45=(_0x156c5a=this===null||this===void 0x0?void 0x0:this[_0x2d7be1(0x136)])===null||_0x156c5a===void 0x0?void 0x0:_0x156c5a['connection'])===null||_0x458d45===void 0x0?void 0x0:_0x458d45['encrypted'])?_0x2d7be1(0x172):'http://')+this[_0x2d7be1(0x177)];}return'';}},'ok':{'value':function(_0x3cbf73,_0x5899fb,_0x4526a7=0x0){return{'code':_0x4526a7,'data':_0x3cbf73,'extra':_0x5899fb};}},'input':{'value':function(_0x8569a6,_0x5af07e){const _0x15415d=_0x3b873c;var _0x3cd581;const _0x284eba=lodash[_0x15415d(0x148)]({},this['request']['body']||this[_0x15415d(0x14b)][((_0x3cd581=_0x17a405===null||_0x17a405===void 0x0?void 0x0:_0x17a405['bodyXml'])===null||_0x3cd581===void 0x0?void 0x0:_0x3cd581[_0x15415d(0x140)])||_0x15415d(0x154)]||{},this[_0x15415d(0x14b)][_0x15415d(0x16b)]||{});return _0x8569a6?lodash[_0x15415d(0xec)](_0x284eba,_0x8569a6,_0x5af07e):_0x284eba;}},'when':{'value':async function(_0x305999,_0x307b74){const _0x1d6173=_0x3b873c,_0x24c319=this[_0x1d6173(0x101)](_0x305999,null);if(!lodash[_0x1d6173(0x133)](_0x24c319))return await _0x307b74(_0x24c319);}},'only':{'value':function(_0x4f5d87){const _0x3a5326=_0x3b873c,_0x1899a9={};for(let _0x364868=0x0;_0x364868<_0x4f5d87[_0x3a5326(0x149)];_0x364868++){lodash[_0x3a5326(0x15d)](_0x4f5d87[_0x364868])&&_0x4f5d87[_0x364868][_0x3a5326(0x149)]>0x0&&lodash[_0x3a5326(0x107)](_0x4f5d87[_0x364868][0x0])&&(_0x1899a9[_0x4f5d87[_0x364868][0x0]]=this[_0x3a5326(0x101)](_0x4f5d87[_0x364868][0x0],_0x4f5d87[_0x364868]['length']>0x1?_0x4f5d87[_0x364868][0x1]:null));}return _0x1899a9;}},'koasend':{'value':async function(_0x178b68,_0x457063){const _0x45afea=_0x3b873c;if(_0x178b68&&!fs[_0x45afea(0x116)](_0x178b68)&&!fs[_0x45afea(0x116)](this['app']['getAppDir']()+'/'+_0x178b68))return _0x45afea(0x16e);return _0x178b68=fs[_0x45afea(0x116)](_0x178b68)?_0x178b68:this[_0x45afea(0x16a)][_0x45afea(0xfc)]()+'/'+_0x178b68,this['attachment'](_0x457063||_0x178b68),await koasend(this,_0x178b68);}}});});}async[a2_0x19dab8(0x155)](){const _0x265d75=a2_0x19dab8;var _0x339b73,_0x45fc48;if(fs[_0x265d75(0x116)](this[_0x265d75(0x16a)][_0x265d75(0x157)]()+_0x265d75(0x167))&&fs[_0x265d75(0x11d)](this['app'][_0x265d75(0x157)]()+_0x265d75(0x167))[_0x265d75(0x12b)]()){const _0xc22b39=this[_0x265d75(0x138)][_0x265d75(0x13e)](),_0x4d4f7c=((_0x339b73=_0xc22b39===null||_0xc22b39===void 0x0?void 0x0:_0xc22b39[_0x265d75(0x11e)])===null||_0x339b73===void 0x0?void 0x0:_0x339b73[_0x265d75(0x153)])||{};for(const _0x46a199 of fs[_0x265d75(0x174)](this[_0x265d75(0x16a)]['getBaseDir']()+_0x265d75(0x167))){if(!fs[_0x265d75(0x11d)](this[_0x265d75(0x16a)][_0x265d75(0x157)]()+_0x265d75(0x165)+_0x46a199)[_0x265d75(0x12b)]())continue;!(_0x4d4f7c===null||_0x4d4f7c===void 0x0?void 0x0:_0x4d4f7c[_0x46a199])&&(_0x4d4f7c[_0x46a199]=Object['assign']({},((_0x45fc48=_0xc22b39===null||_0xc22b39===void 0x0?void 0x0:_0xc22b39[_0x265d75(0x11e)])===null||_0x45fc48===void 0x0?void 0x0:_0x45fc48[_0x265d75(0x180)])||{'maxSize':'1m','dir':this[_0x265d75(0x16a)]['getAppDir']()+_0x265d75(0x14d)},{'enableJSON':!![],'enableConsole':this[_0x265d75(0x13f)][_0x265d75(0x162)](),'fileLogName':_0x46a199+_0x265d75(0x176),'dir':this[_0x265d75(0x16a)]['getAppDir']()+_0x265d75(0x16c)+_0x46a199})),this[_0x265d75(0xf1)][_0x265d75(0x137)](_0x46a199,_0x4d4f7c[_0x46a199]);}Object[_0x265d75(0x13b)](_0x4d4f7c)['length']>0x0&&(!_0xc22b39[_0x265d75(0x11e)]&&(_0xc22b39[_0x265d75(0x11e)]={'default':{'maxSize':'1m','dir':this[_0x265d75(0x16a)][_0x265d75(0xfc)]()+'/runtime'}}),_0xc22b39[_0x265d75(0x11e)][_0x265d75(0x153)]=_0x4d4f7c),this[_0x265d75(0x138)][_0x265d75(0x11c)](_0xc22b39);}}async[a2_0x19dab8(0x131)](){const _0x383cba=a2_0x19dab8;var _0x3744b4,_0x268a36,_0x2eb693,_0x530942,_0x48b73d,_0x50d772;const _0x14d2be=this['config'][_0x383cba(0x13e)]();((_0x268a36=(_0x3744b4=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x17a)])===null||_0x3744b4===void 0x0?void 0x0:_0x3744b4[_0x383cba(0x142)])===null||_0x268a36===void 0x0?void 0x0:_0x268a36['DEFAULT'])&&Object['keys'](_0x14d2be[_0x383cba(0x17a)][_0x383cba(0x142)])[_0x383cba(0x149)]>0x1&&delete _0x14d2be[_0x383cba(0x17a)][_0x383cba(0x142)]['DEFAULT'];if((_0x2eb693=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x13d)])===null||_0x2eb693===void 0x0?void 0x0:_0x2eb693[_0x383cba(0xf6)])for(const _0x129ad4 in _0x14d2be[_0x383cba(0x13d)]['dirs']){((_0x530942=_0x14d2be[_0x383cba(0x13d)]['dirs'][_0x129ad4])===null||_0x530942===void 0x0?void 0x0:_0x530942[_0x383cba(0x160)])&&typeof((_0x48b73d=_0x14d2be['staticFile'][_0x383cba(0xf6)][_0x129ad4])===null||_0x48b73d===void 0x0?void 0x0:_0x48b73d[_0x383cba(0x160)])==_0x383cba(0xfb)&&!fs[_0x383cba(0x116)](_0x14d2be[_0x383cba(0x13d)][_0x383cba(0xf6)][_0x129ad4]['dir'])&&(fs[_0x383cba(0xff)](_0x14d2be[_0x383cba(0x13d)]['dirs'][_0x129ad4][_0x383cba(0x160)],{'recursive':!![]}),console['log'](_0x383cba(0x151)+_0x14d2be[_0x383cba(0x13d)][_0x383cba(0xf6)][_0x129ad4][_0x383cba(0x160)]));}((_0x50d772=_0x14d2be===null||_0x14d2be===void 0x0?void 0x0:_0x14d2be[_0x383cba(0x11b)])===null||_0x50d772===void 0x0?void 0x0:_0x50d772[_0x383cba(0x12d)])&&!fs['existsSync'](_0x14d2be[_0x383cba(0x11b)][_0x383cba(0x12d)])&&(fs[_0x383cba(0xff)](_0x14d2be[_0x383cba(0x11b)][_0x383cba(0x12d)],{'recursive':!![]}),console['log'](_0x383cba(0x120)+_0x14d2be['upload'][_0x383cba(0x12d)])),this[_0x383cba(0x138)]['addObject'](_0x14d2be);}};exports[a2_0x19dab8(0x130)]=CustomConfiguration,__decorate([(0x0,core_1[a2_0x19dab8(0x14e)])(),__metadata(a2_0x19dab8(0x15b),Object)],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x16a),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x104)])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x138),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x122)])],CustomConfiguration[a2_0x19dab8(0x10e)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x19dab8(0x127)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_2[a2_0x19dab8(0x145)])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x13f),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),core_1[a2_0x19dab8(0x10c)])],CustomConfiguration['prototype'],a2_0x19dab8(0xf1),void 0x0),__decorate([(0x0,core_1[a2_0x19dab8(0x159)])(),__metadata(a2_0x19dab8(0x15b),ApiService_1['ApiService'])],CustomConfiguration[a2_0x19dab8(0x10e)],a2_0x19dab8(0x118),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x19dab8(0xf3)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x19dab8(0x13a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1d150e=a3_0x5894;(function(_0x116dfa,_0x2301da){const _0x18da9b=a3_0x5894,_0x3ba310=_0x116dfa();while(!![]){try{const _0x3897a3=parseInt(_0x18da9b(0x218))/0x1+parseInt(_0x18da9b(0x1e6))/0x2*(-parseInt(_0x18da9b(0x206))/0x3)+parseInt(_0x18da9b(0x1f8))/0x4+parseInt(_0x18da9b(0x219))/0x5+parseInt(_0x18da9b(0x212))/0x6+-parseInt(_0x18da9b(0x1e1))/0x7+parseInt(_0x18da9b(0x1ee))/0x8*(parseInt(_0x18da9b(0x1fc))/0x9);if(_0x3897a3===_0x2301da)break;else _0x3ba310['push'](_0x3ba310['shift']());}catch(_0xde34a6){_0x3ba310['push'](_0x3ba310['shift']());}}}(a3_0x4839,0xb6566));const a3_0x531815=(function(){let _0x31beb3=!![];return function(_0x43e74b,_0x3e1dc4){const _0x28f1a2=_0x31beb3?function(){const _0x1ed6d2=a3_0x5894;if(_0x3e1dc4){const _0x54359d=_0x3e1dc4[_0x1ed6d2(0x1e3)](_0x43e74b,arguments);return _0x3e1dc4=null,_0x54359d;}}:function(){};return _0x31beb3=![],_0x28f1a2;};}()),a3_0x1645ab=a3_0x531815(this,function(){const _0x403589=a3_0x5894;return a3_0x1645ab[_0x403589(0x228)]()[_0x403589(0x21b)](_0x403589(0x1f5))[_0x403589(0x228)]()[_0x403589(0x20f)](a3_0x1645ab)[_0x403589(0x21b)](_0x403589(0x1f5));});a3_0x1645ab();function a3_0x5894(_0x1c8e3e,_0x4f8364){const _0x2bdf1e=a3_0x4839();return a3_0x5894=function(_0x1645ab,_0x531815){_0x1645ab=_0x1645ab-0x1e0;let _0x4839c2=_0x2bdf1e[_0x1645ab];return _0x4839c2;},a3_0x5894(_0x1c8e3e,_0x4f8364);}'use strict';Object[a3_0x1d150e(0x203)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x1d150e(0x227)]=exports[a3_0x1d150e(0x1ed)]=void 0x0;const fs=require('fs'),validator_1=require(a3_0x1d150e(0x226)),core_1=require(a3_0x1d150e(0x1fd)),core_2=require(a3_0x1d150e(0x1fd)),action_1=require(a3_0x1d150e(0x21f));function Action(_0x553fbf,_0x351213,_0x4565a9={'middleware':[],'sensitive':!![]}){return _0x116c56=>{const _0x266df2=a3_0x5894;var _0xe1a7cf;_0x4565a9[_0x266df2(0x1e8)]=_0x351213;const _0x584f9f=parseRoute(_0x553fbf);if(_0x584f9f['module']){_0x4565a9['prefix']=_0x4565a9['prefix']?'/'+_0x584f9f['module']+'/'+_0x4565a9['prefix']:'/'+_0x584f9f[_0x266df2(0x216)];_0x584f9f[_0x266df2(0x1fb)]&&(_0x4565a9[_0x266df2(0x1fb)]='/'+_0x584f9f[_0x266df2(0x1fb)]+'/'+_0x4565a9[_0x266df2(0x1fb)]);if(fs[_0x266df2(0x20e)](_0x584f9f[_0x266df2(0x1eb)]+_0x266df2(0x1f1)+_0x584f9f['module']+_0x266df2(0x210)+(lodash[_0x266df2(0x21c)](_0x584f9f[_0x266df2(0x224)],'ts')?'ts':'js'))){const _0xa1dd8e=include(_0x584f9f[_0x266df2(0x1eb)]+'/apps/'+_0x584f9f[_0x266df2(0x205)]+_0x266df2(0x210)+(lodash[_0x266df2(0x21c)](_0x584f9f[_0x266df2(0x224)],'ts')?'ts':'js'));if(lodash[_0x266df2(0x20a)](_0xa1dd8e['middleware'])&&_0xa1dd8e['middleware'][_0x266df2(0x225)]>0x0)for(let _0xc38b9b in _0xa1dd8e['middleware']){if(((_0xe1a7cf=_0xa1dd8e===null||_0xa1dd8e===void 0x0?void 0x0:_0xa1dd8e[_0x266df2(0x20c)])===null||_0xe1a7cf===void 0x0?void 0x0:_0xe1a7cf[_0x266df2(0x225)])>0x0&&_0xa1dd8e[_0x266df2(0x20c)]['indexOf'](_0xa1dd8e[_0x266df2(0x201)][_0xc38b9b])!=-0x1)continue;_0x4565a9['middleware'][_0x266df2(0x1ef)](_0xa1dd8e[_0x266df2(0x201)][_0xc38b9b]);}const _0x37b521=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x37b521[''+_0x584f9f[_0x266df2(0x205)]]=_0xa1dd8e,(0x0,core_1[_0x266df2(0x1f0)])(action_1[_0x266df2(0x209)],_0x37b521,action_1[_0x266df2(0x1ec)]);}_0x4565a9['prefix']=_0x4565a9[_0x266df2(0x1fb)][_0x266df2(0x22a)]()[_0x266df2(0x221)](/\/{2,}/g,'/'),(0x0,core_1[_0x266df2(0x1e2)])(action_1[_0x266df2(0x1e9)],_0x116c56),(0x0,core_1[_0x266df2(0x202)])(_0x4565a9[_0x266df2(0x1fb)],_0x4565a9)(_0x116c56),(0x0,core_1['saveClassMetadata'])(action_1[_0x266df2(0x1e9)],{'prefix':_0x4565a9['prefix'],'pprefix':_0x584f9f[_0x266df2(0x1fb)],'module':_0x584f9f['module'],'filepath':_0x584f9f[_0x266df2(0x224)],'routerOptions':_0x4565a9},_0x116c56);}else _0x4565a9[_0x266df2(0x1fb)]=_0x4565a9[_0x266df2(0x1fb)]?'/'+_0x4565a9[_0x266df2(0x1fb)]:'/'+_0x584f9f[_0x266df2(0x216)],_0x584f9f[_0x266df2(0x1fb)]&&(_0x4565a9[_0x266df2(0x1fb)]='/'+_0x584f9f[_0x266df2(0x1fb)]+'/'+_0x4565a9[_0x266df2(0x1fb)]),_0x4565a9[_0x266df2(0x1fb)]=_0x4565a9[_0x266df2(0x1fb)][_0x266df2(0x22a)]()[_0x266df2(0x221)](/\/{2,}/g,'/'),(0x0,core_1[_0x266df2(0x1e2)])(action_1['ACTION_KEY'],_0x116c56),(0x0,core_1[_0x266df2(0x202)])(_0x4565a9['prefix'],_0x4565a9)(_0x116c56),(0x0,core_1[_0x266df2(0x1f0)])(action_1[_0x266df2(0x1e9)],{'prefix':_0x4565a9[_0x266df2(0x1fb)],'module':_0x584f9f[_0x266df2(0x205)],'pprefix':_0x584f9f['prefix'],'filepath':_0x584f9f[_0x266df2(0x224)],'routerOptions':_0x4565a9},_0x116c56);};}exports[a3_0x1d150e(0x1ed)]=Action,Action[a3_0x1d150e(0x223)]=function(_0x1abdee,_0x51e1e4='/',_0x3c42c8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2d803c,_0x2e9ff3,_0xf34435)=>{ActionApi(_0x1abdee,'get',_0x51e1e4,_0x3c42c8)(_0x2d803c,_0x2e9ff3,_0xf34435);};},Action[a3_0x1d150e(0x215)]=function(_0x1cf295,_0x580d2c='/',_0x9a941d={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x617f37,_0x5baed4,_0x8e1f10)=>{const _0x4b0f0a=a3_0x5894;ActionApi(_0x1cf295,_0x4b0f0a(0x215),_0x580d2c,_0x9a941d)(_0x617f37,_0x5baed4,_0x8e1f10);};};function ActionApi(_0x3c3667,_0x5cad48='get',_0x1c5f70='/',_0x1d3f1e={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x8f8100,_0x166fa2,_0x1b53ca)=>{const _0x366d42=a3_0x5894;var _0x3d8829,_0x21fd9f,_0x451514;!_0x1d3f1e[_0x366d42(0x201)]&&(_0x1d3f1e['middleware']=[]);!((_0x3d8829=_0x1d3f1e===null||_0x1d3f1e===void 0x0?void 0x0:_0x1d3f1e[_0x366d42(0x1fa)])===null||_0x3d8829===void 0x0?void 0x0:_0x3d8829[_0x366d42(0x229)])&&(_0x1d3f1e[_0x366d42(0x1fa)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x1c5f70)_0x1c5f70='/';else typeof _0x1c5f70==_0x366d42(0x214)&&(!_0x1c5f70[_0x366d42(0x217)]('/')&&!_0x1c5f70[_0x366d42(0x217)]('-')&&(_0x1c5f70='/'+_0x1c5f70));typeof _0x1d3f1e['apimit']==_0x366d42(0x200)&&(_0x1d3f1e['apimit']=!![]);if(((_0x21fd9f=_0x1d3f1e===null||_0x1d3f1e===void 0x0?void 0x0:_0x1d3f1e['middleware'])===null||_0x21fd9f===void 0x0?void 0x0:_0x21fd9f[_0x366d42(0x225)])>0x0&&((_0x451514=_0x1d3f1e===null||_0x1d3f1e===void 0x0?void 0x0:_0x1d3f1e['middlewareIgnore'])===null||_0x451514===void 0x0?void 0x0:_0x451514[_0x366d42(0x225)])>0x0)for(let _0x654701 in _0x1d3f1e[_0x366d42(0x201)]){_0x1d3f1e[_0x366d42(0x20c)]['indexOf'](_0x1d3f1e['middleware'][_0x654701])!==-0x1&&(_0x1d3f1e[_0x366d42(0x201)][_0x654701]=null);}_0x1d3f1e[_0x366d42(0x208)]=_0x3c3667,(0x0,validator_1[_0x366d42(0x20b)])(_0x1d3f1e['validate'])(_0x8f8100,_0x166fa2,_0x1b53ca),(0x0,core_2[_0x366d42(0x1ea)])(Object[_0x366d42(0x1ff)](_0x1d3f1e,{'path':_0x1c5f70,'requestMethod':(_0x5cad48||_0x366d42(0x223))[_0x366d42(0x22a)]()}))(_0x8f8100,_0x166fa2,_0x1b53ca),(0x0,core_2[_0x366d42(0x211)])(action_1[_0x366d42(0x1f3)],{'path':_0x1c5f70,'method':_0x166fa2,'apimit':_0x1d3f1e[_0x366d42(0x1e0)],'intercept':_0x1d3f1e['intercept'],'routerName':_0x1d3f1e[_0x366d42(0x208)],'description':_0x1d3f1e['description'],'middleware':(_0x1d3f1e[_0x366d42(0x201)]||[])['filter'](_0x42b961=>!!_0x42b961),'requestMethod':(_0x5cad48||'get')[_0x366d42(0x22a)]()},_0x8f8100),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x366d42(0x1f3)],{'path':_0x1c5f70,'method':_0x166fa2,'apimit':_0x1d3f1e[_0x366d42(0x1e0)],'intercept':_0x1d3f1e['intercept'],'routerName':_0x1d3f1e[_0x366d42(0x208)],'description':_0x1d3f1e[_0x366d42(0x213)],'middleware':(_0x1d3f1e['middleware']||[])[_0x366d42(0x21e)](_0x4e5734=>!!_0x4e5734),'requestMethod':(_0x5cad48||_0x366d42(0x223))[_0x366d42(0x22a)]()})(_0x8f8100,_0x166fa2,_0x1b53ca);};}exports[a3_0x1d150e(0x227)]=ActionApi;function parseRoute(_0x5dfaea){const _0x513d27=a3_0x1d150e;_0x5dfaea=_0x5dfaea[_0x513d27(0x221)](/(\\|\/)/g,'/');const _0x3a2b29=process[_0x513d27(0x1f6)]()[_0x513d27(0x221)](/(\\|\/)/g,'/'),_0x5674d0=_0x5dfaea['substring'](0x0,_0x3a2b29[_0x513d27(0x225)]+_0x5dfaea['substring'](_0x3a2b29[_0x513d27(0x225)]+0x1)[_0x513d27(0x1e7)]('/')+0x1),_0x133e8d=_0x5dfaea[_0x513d27(0x222)](_0x5674d0[_0x513d27(0x225)]+0x1)[_0x513d27(0x221)](/(\\|\/)/g,'/'),_0x279ca9={'route':'','prefix':![],'module':![],'rootpath':_0x5674d0,'filepath':_0x133e8d};if(_0x133e8d['startsWith']('app/controller/')||_0x133e8d[_0x513d27(0x217)]('basic/controller/')){const _0x3b140b=_0x133e8d[_0x513d27(0x222)]((_0x133e8d[_0x513d27(0x217)](_0x513d27(0x1f4))?_0x513d27(0x1f4):_0x513d27(0x21d))['length'])['split']('/')[_0x513d27(0x21e)](_0x19778a=>_0x19778a&&_0x19778a['trim']());return _0x3b140b['length']>0x1&&(_0x279ca9['prefix']=_0x3b140b[0x0][_0x513d27(0x22a)](),_0x3b140b[_0x513d27(0x21a)](0x0,0x1)),_0x279ca9[_0x513d27(0x216)]=('/'+_0x3b140b[_0x513d27(0x220)]('/'))[_0x513d27(0x221)](/(\.ts|\.js)$/,'')[_0x513d27(0x221)](/\/{2,}/g,'/')[_0x513d27(0x1f2)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x279ca9['route'][_0x513d27(0x21c)](_0x513d27(0x207))&&(_0x279ca9[_0x513d27(0x216)]=_0x279ca9[_0x513d27(0x216)][_0x513d27(0x222)](0x0,_0x279ca9[_0x513d27(0x216)][_0x513d27(0x225)]-0x7)),_0x279ca9[_0x513d27(0x216)][_0x513d27(0x21c)](_0x513d27(0x20d))&&(_0x279ca9['route']=_0x279ca9[_0x513d27(0x216)][_0x513d27(0x222)](0x0,_0x279ca9['route'][_0x513d27(0x225)]-0xb)),_0x279ca9;}else{if(_0x133e8d[_0x513d27(0x217)](_0x513d27(0x1f9))){const _0x54f012=_0x133e8d['substring'](0x0,_0x133e8d[_0x513d27(0x1e7)](_0x513d27(0x1f1))+0x5),_0x31bc0a=_0x133e8d[_0x513d27(0x222)](_0x54f012[_0x513d27(0x225)]+0x1)[_0x513d27(0x221)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x133e8d[_0x513d27(0x217)](_0x513d27(0x1f9)+_0x31bc0a+_0x513d27(0x1e5))){const _0x508799=_0x133e8d[_0x513d27(0x222)]((_0x54f012+'/'+_0x31bc0a+_0x513d27(0x1e5))[_0x513d27(0x225)])['split']('/')[_0x513d27(0x21e)](_0x2923ac=>_0x2923ac&&_0x2923ac[_0x513d27(0x1f7)]());return _0x508799[_0x513d27(0x225)]>0x1&&(_0x279ca9[_0x513d27(0x1fb)]=_0x508799[0x0]['toLowerCase'](),_0x508799['splice'](0x0,0x1)),_0x279ca9[_0x513d27(0x205)]=_0x31bc0a,_0x279ca9[_0x513d27(0x216)]=('/'+_0x31bc0a+'/'+_0x508799[_0x513d27(0x220)]('/'))[_0x513d27(0x221)](/(\.ts|\.js)$/,'')[_0x513d27(0x221)](/\/{2,}/g,'/')[_0x513d27(0x1f2)](/[\/|A-Z]*[^A-Z]+/g)[_0x513d27(0x220)]('-')[_0x513d27(0x22a)]()['replace'](/\/\-/g,'/'),_0x279ca9['route']['endsWith'](_0x513d27(0x207))&&(_0x279ca9[_0x513d27(0x216)]=_0x279ca9[_0x513d27(0x216)][_0x513d27(0x222)](0x0,_0x279ca9[_0x513d27(0x216)][_0x513d27(0x225)]-0x7)),_0x279ca9['route'][_0x513d27(0x21c)](_0x513d27(0x20d))&&(_0x279ca9['route']=_0x279ca9[_0x513d27(0x216)][_0x513d27(0x222)](0x0,_0x279ca9[_0x513d27(0x216)][_0x513d27(0x225)]-0xb)),_0x279ca9;}throw new Error(_0x133e8d+_0x513d27(0x204)+_0x31bc0a+'/controller/文件下');}}throw new Error(_0x133e8d+_0x513d27(0x1fe));}exports[a3_0x1d150e(0x1e4)]=parseRoute;function a3_0x4839(){const _0x36cbf4=['attachClassMetadata','4744254ugiPMV','description','string','post','route','startsWith','44940soXuEJ','6218780szixzQ','splice','search','endsWith','basic/controller/','filter','../types/action','join','replace','substring','get','filepath','length','@anncic-api/validator','ActionApi','toString','validationOptions','toLowerCase','apimit','7262346dgmTXl','saveModule','apply','parseRoute','/controller/','2189244WoJGKl','indexOf','tagName','ACTION_KEY','RequestMapping','rootpath','AppsConfigTmp','Action','2842656xtqEwi','push','saveClassMetadata','/apps/','match','ACTION_ROUTE_KEY','app/controller/','(((.+)+)+)+$','cwd','trim','355540CkpYGZ','apps/','validate','prefix','18lrwVJR','@midwayjs/core','\x20文件请放在app/controller/文件下','assign','undefined','middleware','Controller','defineProperty','\x20文件请放在apps/','module','3YiFxzx','-action','routerName','APPSCONFIG_KEY','isArray','Validator','middlewareIgnore','-controller','existsSync','constructor','/config.'];a3_0x4839=function(){return _0x36cbf4;};return a3_0x4839();}
|
|
1
|
+
const a3_0x1ee7cc=a3_0x5ce0;(function(_0x5099b4,_0x20ae83){const _0x486a2b=a3_0x5ce0,_0x1fa296=_0x5099b4();while(!![]){try{const _0x46921e=parseInt(_0x486a2b(0x15b))/0x1*(parseInt(_0x486a2b(0x14e))/0x2)+-parseInt(_0x486a2b(0x124))/0x3+-parseInt(_0x486a2b(0x161))/0x4+-parseInt(_0x486a2b(0x121))/0x5+-parseInt(_0x486a2b(0x158))/0x6+-parseInt(_0x486a2b(0x131))/0x7*(parseInt(_0x486a2b(0x152))/0x8)+-parseInt(_0x486a2b(0x142))/0x9*(-parseInt(_0x486a2b(0x13d))/0xa);if(_0x46921e===_0x20ae83)break;else _0x1fa296['push'](_0x1fa296['shift']());}catch(_0x2d7e3b){_0x1fa296['push'](_0x1fa296['shift']());}}}(a3_0x56c3,0x63a15));function a3_0x5ce0(_0x5291ba,_0x25a98a){const _0x2420fd=a3_0x56c3();return a3_0x5ce0=function(_0x1ea70e,_0x21be3b){_0x1ea70e=_0x1ea70e-0x11e;let _0x56c346=_0x2420fd[_0x1ea70e];return _0x56c346;},a3_0x5ce0(_0x5291ba,_0x25a98a);}const a3_0x21be3b=(function(){let _0x8f5ed0=!![];return function(_0x20d735,_0x3c3d53){const _0x382883=_0x8f5ed0?function(){if(_0x3c3d53){const _0x17518b=_0x3c3d53['apply'](_0x20d735,arguments);return _0x3c3d53=null,_0x17518b;}}:function(){};return _0x8f5ed0=![],_0x382883;};}()),a3_0x1ea70e=a3_0x21be3b(this,function(){const _0x504b0a=a3_0x5ce0;return a3_0x1ea70e[_0x504b0a(0x14a)]()[_0x504b0a(0x130)]('(((.+)+)+)+$')['toString']()[_0x504b0a(0x145)](a3_0x1ea70e)[_0x504b0a(0x130)](_0x504b0a(0x11e));});a3_0x1ea70e();'use strict';Object['defineProperty'](exports,a3_0x1ee7cc(0x154),{'value':!![]}),exports[a3_0x1ee7cc(0x143)]=exports[a3_0x1ee7cc(0x13a)]=exports[a3_0x1ee7cc(0x13b)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x1ee7cc(0x165)),core_2=require(a3_0x1ee7cc(0x165)),action_1=require(a3_0x1ee7cc(0x12b));function Action(_0x1278bd,_0x58b6ce,_0x5c95a1={'middleware':[],'sensitive':!![]}){return _0x461622=>{const _0x148f9c=a3_0x5ce0;var _0x41c550;_0x5c95a1[_0x148f9c(0x155)]=_0x58b6ce;const _0x1cc24b=parseRoute(_0x1278bd);if(_0x1cc24b[_0x148f9c(0x137)]){_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)]?'/'+_0x1cc24b[_0x148f9c(0x137)]+'/'+_0x5c95a1[_0x148f9c(0x136)]:'/'+_0x1cc24b[_0x148f9c(0x12d)];_0x1cc24b[_0x148f9c(0x136)]&&(_0x5c95a1[_0x148f9c(0x136)]='/'+_0x1cc24b[_0x148f9c(0x136)]+'/'+_0x5c95a1[_0x148f9c(0x136)]);if(fs[_0x148f9c(0x14b)](_0x1cc24b['rootpath']+_0x148f9c(0x163)+_0x1cc24b[_0x148f9c(0x137)]+'/config.'+(lodash['endsWith'](_0x1cc24b['filepath'],'ts')?'ts':'js'))){const _0x415b9c=include(_0x1cc24b[_0x148f9c(0x15a)]+_0x148f9c(0x163)+_0x1cc24b[_0x148f9c(0x137)]+_0x148f9c(0x141)+(lodash[_0x148f9c(0x166)](_0x1cc24b[_0x148f9c(0x14c)],'ts')?'ts':'js'));if(lodash[_0x148f9c(0x162)](_0x415b9c[_0x148f9c(0x123)])&&_0x415b9c['middleware']['length']>0x0)for(let _0x6b186b in _0x415b9c[_0x148f9c(0x123)]){if(((_0x41c550=_0x415b9c===null||_0x415b9c===void 0x0?void 0x0:_0x415b9c[_0x148f9c(0x14f)])===null||_0x41c550===void 0x0?void 0x0:_0x41c550['length'])>0x0&&_0x415b9c[_0x148f9c(0x14f)][_0x148f9c(0x122)](_0x415b9c['middleware'][_0x6b186b])!=-0x1)continue;_0x5c95a1[_0x148f9c(0x123)][_0x148f9c(0x147)](_0x415b9c['middleware'][_0x6b186b]);}const _0x134561=(0x0,core_1[_0x148f9c(0x135)])(action_1[_0x148f9c(0x126)],action_1[_0x148f9c(0x150)])||{};_0x134561[''+_0x1cc24b[_0x148f9c(0x137)]]=_0x415b9c,(0x0,core_1[_0x148f9c(0x151)])(action_1[_0x148f9c(0x126)],_0x134561,action_1['AppsConfigTmp']);}_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)][_0x148f9c(0x128)]()[_0x148f9c(0x125)](/\/{2,}/g,'/'),(0x0,core_1[_0x148f9c(0x144)])(action_1[_0x148f9c(0x11f)],_0x461622),(0x0,core_1[_0x148f9c(0x12a)])(_0x5c95a1[_0x148f9c(0x136)],_0x5c95a1)(_0x461622),(0x0,core_1['saveClassMetadata'])(action_1[_0x148f9c(0x11f)],{'prefix':_0x5c95a1[_0x148f9c(0x136)],'pprefix':_0x1cc24b[_0x148f9c(0x136)],'module':_0x1cc24b['module'],'filepath':_0x1cc24b[_0x148f9c(0x14c)],'routerOptions':_0x5c95a1},_0x461622);}else _0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1['prefix']?'/'+_0x5c95a1[_0x148f9c(0x136)]:'/'+_0x1cc24b['route'],_0x1cc24b[_0x148f9c(0x136)]&&(_0x5c95a1[_0x148f9c(0x136)]='/'+_0x1cc24b[_0x148f9c(0x136)]+'/'+_0x5c95a1[_0x148f9c(0x136)]),_0x5c95a1[_0x148f9c(0x136)]=_0x5c95a1[_0x148f9c(0x136)][_0x148f9c(0x128)]()[_0x148f9c(0x125)](/\/{2,}/g,'/'),(0x0,core_1[_0x148f9c(0x144)])(action_1[_0x148f9c(0x11f)],_0x461622),(0x0,core_1[_0x148f9c(0x12a)])(_0x5c95a1[_0x148f9c(0x136)],_0x5c95a1)(_0x461622),(0x0,core_1[_0x148f9c(0x151)])(action_1[_0x148f9c(0x11f)],{'prefix':_0x5c95a1[_0x148f9c(0x136)],'module':_0x1cc24b[_0x148f9c(0x137)],'pprefix':_0x1cc24b[_0x148f9c(0x136)],'filepath':_0x1cc24b[_0x148f9c(0x14c)],'routerOptions':_0x5c95a1},_0x461622);};}function a3_0x56c3(){const _0x494eac=['1456PjOqqp','match','intercept','validate','app/controller/','get','2199064mwXVqN','isArray','/apps/','apimit','@midwayjs/core','endsWith','string','(((.+)+)+)+$','ACTION_KEY','substring','2880500Qlgmkh','indexOf','middleware','1440819IflUsQ','replace','APPSCONFIG_KEY','length','toLowerCase','ACTION_ROUTE_KEY','Controller','../types/action','-controller','route','split','createCustomMethodDecorator','search','5467HOxKWl','filter','\x20文件请放在app/controller/文件下','splice','getClassMetadata','prefix','module','startsWith','attachClassMetadata','ActionApi','Action','-action','182580ocfhuQ','basic/controller/','description','RequestMapping','/config.','1485zWlhLX','parseRoute','saveModule','constructor','join','push','Validator','post','toString','existsSync','filepath','apps/','174fALfJx','middlewareIgnore','AppsConfigTmp','saveClassMetadata','6928UGoJJb','undefined','__esModule','tagName','\x20文件请放在apps/','/controller/文件下','2692032HhOqOr','routerName','rootpath'];a3_0x56c3=function(){return _0x494eac;};return a3_0x56c3();}exports[a3_0x1ee7cc(0x13b)]=Action,Action['get']=function(_0x33b555,_0x70b647='/',_0xb12d7={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1b5381,_0x3fcd24,_0x1f8d49)=>{const _0x276b9f=a3_0x5ce0;ActionApi(_0x33b555,_0x276b9f(0x160),_0x70b647,_0xb12d7)(_0x1b5381,_0x3fcd24,_0x1f8d49);};},Action[a3_0x1ee7cc(0x149)]=function(_0x455d10,_0x5a6707='/',_0x4ad4f0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x34f746,_0x8d6c55,_0x2d8795)=>{const _0x3dc975=a3_0x5ce0;ActionApi(_0x455d10,_0x3dc975(0x149),_0x5a6707,_0x4ad4f0)(_0x34f746,_0x8d6c55,_0x2d8795);};};function ActionApi(_0x24bb76,_0x43918b=a3_0x1ee7cc(0x160),_0x2b4215='/',_0x5de658={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x31032f,_0x5c47f2,_0x595566)=>{const _0x446cd5=a3_0x5ce0;var _0x34ce22,_0xbf1567,_0x5cd3bb;!_0x5de658[_0x446cd5(0x123)]&&(_0x5de658[_0x446cd5(0x123)]=[]);!((_0x34ce22=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x15e)])===null||_0x34ce22===void 0x0?void 0x0:_0x34ce22['validationOptions'])&&(_0x5de658[_0x446cd5(0x15e)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x446cd5(0x167)}});if(!_0x2b4215)_0x2b4215='/';else typeof _0x2b4215=='string'&&(!_0x2b4215['startsWith']('/')&&!_0x2b4215[_0x446cd5(0x138)]('-')&&(_0x2b4215='/'+_0x2b4215));typeof _0x5de658[_0x446cd5(0x164)]==_0x446cd5(0x153)&&(_0x5de658[_0x446cd5(0x164)]=!![]);if(((_0xbf1567=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x123)])===null||_0xbf1567===void 0x0?void 0x0:_0xbf1567[_0x446cd5(0x127)])>0x0&&((_0x5cd3bb=_0x5de658===null||_0x5de658===void 0x0?void 0x0:_0x5de658[_0x446cd5(0x14f)])===null||_0x5cd3bb===void 0x0?void 0x0:_0x5cd3bb[_0x446cd5(0x127)])>0x0)for(let _0x23976f in _0x5de658[_0x446cd5(0x123)]){_0x5de658[_0x446cd5(0x14f)][_0x446cd5(0x122)](_0x5de658[_0x446cd5(0x123)][_0x23976f])!==-0x1&&(_0x5de658['middleware'][_0x23976f]=null);}_0x5de658[_0x446cd5(0x159)]=_0x24bb76,(0x0,validator_1[_0x446cd5(0x148)])(_0x5de658[_0x446cd5(0x15e)])(_0x31032f,_0x5c47f2,_0x595566),(0x0,core_2[_0x446cd5(0x140)])(Object['assign'](_0x5de658,{'path':_0x2b4215,'requestMethod':(_0x43918b||_0x446cd5(0x160))[_0x446cd5(0x128)]()}))(_0x31032f,_0x5c47f2,_0x595566),(0x0,core_2[_0x446cd5(0x139)])(action_1[_0x446cd5(0x129)],{'path':_0x2b4215,'method':_0x5c47f2,'apimit':_0x5de658[_0x446cd5(0x164)],'intercept':_0x5de658['intercept'],'routerName':_0x5de658[_0x446cd5(0x159)],'description':_0x5de658[_0x446cd5(0x13f)],'middleware':(_0x5de658[_0x446cd5(0x123)]||[])[_0x446cd5(0x132)](_0x5d72f4=>!!_0x5d72f4),'requestMethod':(_0x43918b||_0x446cd5(0x160))['toLowerCase']()},_0x31032f),(0x0,core_2[_0x446cd5(0x12f)])(action_1[_0x446cd5(0x129)],{'path':_0x2b4215,'method':_0x5c47f2,'apimit':_0x5de658[_0x446cd5(0x164)],'intercept':_0x5de658[_0x446cd5(0x15d)],'routerName':_0x5de658[_0x446cd5(0x159)],'description':_0x5de658[_0x446cd5(0x13f)],'middleware':(_0x5de658[_0x446cd5(0x123)]||[])[_0x446cd5(0x132)](_0x9eddab=>!!_0x9eddab),'requestMethod':(_0x43918b||_0x446cd5(0x160))[_0x446cd5(0x128)]()})(_0x31032f,_0x5c47f2,_0x595566);};}exports[a3_0x1ee7cc(0x13a)]=ActionApi;function parseRoute(_0xd94d82){const _0x4e4509=a3_0x1ee7cc;_0xd94d82=_0xd94d82[_0x4e4509(0x125)](/(\\|\/)/g,'/');const _0x9e0a1c=process['cwd']()[_0x4e4509(0x125)](/(\\|\/)/g,'/'),_0x191b24=_0xd94d82[_0x4e4509(0x120)](0x0,_0x9e0a1c['length']+_0xd94d82['substring'](_0x9e0a1c[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x122)]('/')+0x1),_0x15a86e=_0xd94d82[_0x4e4509(0x120)](_0x191b24[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x125)](/(\\|\/)/g,'/'),_0x4d9198={'route':'','prefix':![],'module':![],'rootpath':_0x191b24,'filepath':_0x15a86e};if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x15f))||_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x13e))){const _0x235b2a=_0x15a86e['substring']((_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x15f))?_0x4e4509(0x15f):_0x4e4509(0x13e))['length'])[_0x4e4509(0x12e)]('/')[_0x4e4509(0x132)](_0x461547=>_0x461547&&_0x461547['trim']());return _0x235b2a[_0x4e4509(0x127)]>0x1&&(_0x4d9198[_0x4e4509(0x136)]=_0x235b2a[0x0][_0x4e4509(0x128)](),_0x235b2a[_0x4e4509(0x134)](0x0,0x1)),_0x4d9198[_0x4e4509(0x12d)]=('/'+_0x235b2a['join']('/'))[_0x4e4509(0x125)](/(\.ts|\.js)$/,'')[_0x4e4509(0x125)](/\/{2,}/g,'/')[_0x4e4509(0x15c)](/[\/|A-Z]*[^A-Z]+/g)[_0x4e4509(0x146)]('-')[_0x4e4509(0x128)]()['replace'](/\/\-/g,'/'),_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x166)](_0x4e4509(0x13c))&&(_0x4d9198['route']=_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0x7)),_0x4d9198['route'][_0x4e4509(0x166)](_0x4e4509(0x12c))&&(_0x4d9198[_0x4e4509(0x12d)]=_0x4d9198['route'][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0xb)),_0x4d9198;}else{if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x14d))){const _0x11cbbb=_0x15a86e[_0x4e4509(0x120)](0x0,_0x15a86e[_0x4e4509(0x122)]('/apps/')+0x5),_0x1840f1=_0x15a86e[_0x4e4509(0x120)](_0x11cbbb[_0x4e4509(0x127)]+0x1)[_0x4e4509(0x125)](/(\\|\/)/g,'/')[_0x4e4509(0x12e)]('/')[0x0];if(_0x15a86e[_0x4e4509(0x138)](_0x4e4509(0x14d)+_0x1840f1+'/controller/')){const _0x5e7672=_0x15a86e[_0x4e4509(0x120)]((_0x11cbbb+'/'+_0x1840f1+'/controller/')[_0x4e4509(0x127)])['split']('/')[_0x4e4509(0x132)](_0x2fe5ba=>_0x2fe5ba&&_0x2fe5ba['trim']());return _0x5e7672['length']>0x1&&(_0x4d9198[_0x4e4509(0x136)]=_0x5e7672[0x0]['toLowerCase'](),_0x5e7672[_0x4e4509(0x134)](0x0,0x1)),_0x4d9198[_0x4e4509(0x137)]=_0x1840f1,_0x4d9198['route']=('/'+_0x1840f1+'/'+_0x5e7672[_0x4e4509(0x146)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4e4509(0x125)](/\/{2,}/g,'/')[_0x4e4509(0x15c)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x4e4509(0x128)]()[_0x4e4509(0x125)](/\/\-/g,'/'),_0x4d9198['route'][_0x4e4509(0x166)](_0x4e4509(0x13c))&&(_0x4d9198['route']=_0x4d9198['route'][_0x4e4509(0x120)](0x0,_0x4d9198['route'][_0x4e4509(0x127)]-0x7)),_0x4d9198['route'][_0x4e4509(0x166)]('-controller')&&(_0x4d9198[_0x4e4509(0x12d)]=_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x120)](0x0,_0x4d9198[_0x4e4509(0x12d)][_0x4e4509(0x127)]-0xb)),_0x4d9198;}throw new Error(_0x15a86e+_0x4e4509(0x156)+_0x1840f1+_0x4e4509(0x157));}}throw new Error(_0x15a86e+_0x4e4509(0x133));}exports[a3_0x1ee7cc(0x143)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x58c5d9=a4_0x375b;(function(_0x116a03,_0x3184ba){const _0x292dc8=a4_0x375b,_0x30d4bf=_0x116a03();while(!![]){try{const _0x19d6fc=-parseInt(_0x292dc8(0xd7))/0x1*(parseInt(_0x292dc8(0xdf))/0x2)+parseInt(_0x292dc8(0xd9))/0x3*(parseInt(_0x292dc8(0xc7))/0x4)+-parseInt(_0x292dc8(0xcd))/0x5+parseInt(_0x292dc8(0xdb))/0x6*(-parseInt(_0x292dc8(0xd0))/0x7)+parseInt(_0x292dc8(0xd2))/0x8+-parseInt(_0x292dc8(0xcf))/0x9+parseInt(_0x292dc8(0xcb))/0xa;if(_0x19d6fc===_0x3184ba)break;else _0x30d4bf['push'](_0x30d4bf['shift']());}catch(_0x29f2a0){_0x30d4bf['push'](_0x30d4bf['shift']());}}}(a4_0x487c,0x2db8c));const a4_0x1fcb06=(function(){let _0x2a7fa7=!![];return function(_0x5c0a45,_0x444fd6){const _0x4d0dc3=_0x2a7fa7?function(){const _0x24fc7e=a4_0x375b;if(_0x444fd6){const _0x55538f=_0x444fd6[_0x24fc7e(0xda)](_0x5c0a45,arguments);return _0x444fd6=null,_0x55538f;}}:function(){};return _0x2a7fa7=![],_0x4d0dc3;};}()),a4_0x57fbb2=a4_0x1fcb06(this,function(){const _0xa653bb=a4_0x375b;return a4_0x57fbb2['toString']()['search'](_0xa653bb(0xc6))[_0xa653bb(0xd6)]()[_0xa653bb(0xdd)](a4_0x57fbb2)[_0xa653bb(0xd4)](_0xa653bb(0xc6));});a4_0x57fbb2();'use strict';function a4_0x375b(_0x5cf4e8,_0xf9fb37){const _0x44b403=a4_0x487c();return a4_0x375b=function(_0x57fbb2,_0x1fcb06){_0x57fbb2=_0x57fbb2-0xc3;let _0x487c50=_0x44b403[_0x57fbb2];return _0x487c50;},a4_0x375b(_0x5cf4e8,_0xf9fb37);}function a4_0x487c(){const _0x5e5640=['6892690jypZaS','getApplicationContext','691115RTQYEu','defineProperty','681543hsZugy','14baXOVk','/apitest','413464pCLrsj','getConfig','search','__esModule','toString','105044ZrrXwx','@midwayjs/core','201651wARnLz','apply','477084pgbLog','value','constructor','app','6IEeSxQ','apidoc','apitest','getAsync','(((.+)+)+)+$','8qtAERF','filepath','get','Apitest'];a4_0x487c=function(){return _0x5e5640;};return a4_0x487c();}Object[a4_0x58c5d9(0xce)](exports,a4_0x58c5d9(0xd5),{'value':!![]}),exports[a4_0x58c5d9(0xca)]=void 0x0;const core_1=require(a4_0x58c5d9(0xd8)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x101b59=a4_0x58c5d9(0xd1),_0x3a4384){return(_0x4f3232,_0x43fbc5,_0x581d27)=>{const _0x206279=a4_0x375b;return(0x0,core_1['RequestMapping'])({'path':_0x101b59,'requestMethod':_0x206279(0xc9)})(_0x4f3232,_0x43fbc5,_0x581d27),_0x581d27[_0x206279(0xdc)]=async function(..._0x2135d1){const _0xaf0963=_0x206279;var _0x399e0b;const _0xd6951f=(_0x399e0b=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x399e0b===void 0x0?void 0x0:_0x399e0b[_0xaf0963(0xde)];if(_0xd6951f&&_0xd6951f[_0xaf0963(0xd3)](_0xaf0963(0xc4))){const _0x2b2c6e=await _0xd6951f[_0xaf0963(0xcc)]()[_0xaf0963(0xc5)](ApitestService_1['ApitestService']),_0x2b482b=await _0xd6951f['getApplicationContext']()[_0xaf0963(0xc5)](core_1['MidwayEnvironmentService']);return _0x2b482b['isDevelopmentEnvironment']()&&(_0x3a4384[_0xaf0963(0xc8)]=!![]),await _0x2b2c6e[_0xaf0963(0xc3)](_0x3a4384);}return'';},_0x581d27;};}exports[a4_0x58c5d9(0xca)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x2a98(_0x5992fb,_0x14d61d){const _0x443462=a5_0x42ba();return a5_0x2a98=function(_0x23fefe,_0x864a1a){_0x23fefe=_0x23fefe-0x7c;let _0x42ba65=_0x443462[_0x23fefe];return _0x42ba65;},a5_0x2a98(_0x5992fb,_0x14d61d);}const a5_0x56df7f=a5_0x2a98;(function(_0x505a4d,_0x218330){const _0x2b8b6b=a5_0x2a98,_0x42afdb=_0x505a4d();while(!![]){try{const _0x5983c7=parseInt(_0x2b8b6b(0x8e))/0x1*(parseInt(_0x2b8b6b(0x80))/0x2)+parseInt(_0x2b8b6b(0x94))/0x3+parseInt(_0x2b8b6b(0x8d))/0x4+parseInt(_0x2b8b6b(0x85))/0x5+-parseInt(_0x2b8b6b(0x82))/0x6*(parseInt(_0x2b8b6b(0x97))/0x7)+parseInt(_0x2b8b6b(0x93))/0x8+parseInt(_0x2b8b6b(0x90))/0x9*(-parseInt(_0x2b8b6b(0x88))/0xa);if(_0x5983c7===_0x218330)break;else _0x42afdb['push'](_0x42afdb['shift']());}catch(_0x4caa9f){_0x42afdb['push'](_0x42afdb['shift']());}}}(a5_0x42ba,0xc2c53));const a5_0x864a1a=(function(){let _0x68d4ba=!![];return function(_0x17e5a0,_0x1e7d9a){const _0x558d47=_0x68d4ba?function(){const _0x19d4bf=a5_0x2a98;if(_0x1e7d9a){const _0x3d7dad=_0x1e7d9a[_0x19d4bf(0x7f)](_0x17e5a0,arguments);return _0x1e7d9a=null,_0x3d7dad;}}:function(){};return _0x68d4ba=![],_0x558d47;};}()),a5_0x23fefe=a5_0x864a1a(this,function(){const _0x116c84=a5_0x2a98;return a5_0x23fefe[_0x116c84(0x8f)]()[_0x116c84(0x86)](_0x116c84(0x81))[_0x116c84(0x8f)]()[_0x116c84(0x87)](a5_0x23fefe)[_0x116c84(0x86)](_0x116c84(0x81));});a5_0x23fefe();function a5_0x42ba(){const _0x2af349=['1970766cywXTM','@midwayjs/core','push','9393032dGzNGf','2040885IOqnZC','defineProperty','toUpperCase','3423868zGiiNQ','saveClassMetadata','includes','IIntercept','apply','485414VLOjlX','(((.+)+)+)+$','6DJuTcF','Singleton','Provide','6846850mOLVsJ','search','constructor','170KWELCE','match','ScopeEnum','InterceptTargetTmp','__esModule','3259356BIgrCG','4lmIYHV','toString'];a5_0x42ba=function(){return _0x2af349;};return a5_0x42ba();}'use strict';Object[a5_0x56df7f(0x95)](exports,a5_0x56df7f(0x8c),{'value':!![]}),exports[a5_0x56df7f(0x7e)]=exports['Intercept']=void 0x0;const core_1=require(a5_0x56df7f(0x91)),intercept_1=require('../types/intercept');function Intercept(_0x53f5e3){return _0x369b58=>{const _0x46687=a5_0x2a98,_0x3bed95=(0x0,core_1['getClassMetadata'])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x46687(0x8b)])||{};for(let _0x1a6907 of Array['isArray'](_0x53f5e3)?_0x53f5e3:[_0x53f5e3]){_0x1a6907=_0x1a6907[_0x46687(0x96)]();!(_0x3bed95===null||_0x3bed95===void 0x0?void 0x0:_0x3bed95[_0x1a6907])&&(_0x3bed95[_0x1a6907]=[]);if(_0x3bed95[_0x1a6907][_0x46687(0x7d)](_0x369b58))continue;_0x3bed95[_0x1a6907][_0x46687(0x92)](_0x369b58);}(0x0,core_1[_0x46687(0x84)])()(_0x369b58),(0x0,core_1['Scope'])(core_1[_0x46687(0x8a)][_0x46687(0x83)])(_0x369b58),(0x0,core_1[_0x46687(0x7c)])(intercept_1['INTERCEPT_KEY'],_0x3bed95,intercept_1[_0x46687(0x8b)]);};}exports['Intercept']=Intercept;class IIntercept{async[a5_0x56df7f(0x89)](_0x42f3f5,_0x380732,_0x7c434f){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x2aa79e=a6_0xac38;(function(_0x816eab,_0x39c551){var _0x1ed611=a6_0xac38,_0xa786da=_0x816eab();while(!![]){try{var _0x1f4fee=parseInt(_0x1ed611(0x1fa))/0x1*(parseInt(_0x1ed611(0x1f5))/0x2)+-parseInt(_0x1ed611(0x1ee))/0x3+-parseInt(_0x1ed611(0x1db))/0x4+-parseInt(_0x1ed611(0x1ea))/0x5+-parseInt(_0x1ed611(0x1f9))/0x6+parseInt(_0x1ed611(0x1dd))/0x7+-parseInt(_0x1ed611(0x1f8))/0x8*(-parseInt(_0x1ed611(0x1e3))/0x9);if(_0x1f4fee===_0x39c551)break;else _0xa786da['push'](_0xa786da['shift']());}catch(_0x350e56){_0xa786da['push'](_0xa786da['shift']());}}}(a6_0x5c7a,0xc0486));var a6_0x313cc8=(function(){var _0x1edbfd=!![];return function(_0x1b190c,_0x36b887){var _0x305103=_0x1edbfd?function(){var _0x2e4426=a6_0xac38;if(_0x36b887){var _0x5c7e6f=_0x36b887[_0x2e4426(0x1df)](_0x1b190c,arguments);return _0x36b887=null,_0x5c7e6f;}}:function(){};return _0x1edbfd=![],_0x305103;};}()),a6_0x2b12a2=a6_0x313cc8(this,function(){var _0x125273=a6_0xac38;return a6_0x2b12a2['toString']()[_0x125273(0x1f0)]('(((.+)+)+)+$')['toString']()[_0x125273(0x1e1)](a6_0x2b12a2)[_0x125273(0x1f0)](_0x125273(0x1eb));});a6_0x2b12a2();'use strict';var __decorate=this&&this[a6_0x2aa79e(0x1f3)]||function(_0x3bf4d2,_0x2d95e9,_0xafdd33,_0x4ef560){var _0x1223b9=a6_0x2aa79e,_0x586e1b=arguments[_0x1223b9(0x1da)],_0x43e3b2=_0x586e1b<0x3?_0x2d95e9:_0x4ef560===null?_0x4ef560=Object[_0x1223b9(0x1de)](_0x2d95e9,_0xafdd33):_0x4ef560,_0x596f3a;if(typeof Reflect===_0x1223b9(0x1dc)&&typeof Reflect[_0x1223b9(0x1ed)]===_0x1223b9(0x1f7))_0x43e3b2=Reflect[_0x1223b9(0x1ed)](_0x3bf4d2,_0x2d95e9,_0xafdd33,_0x4ef560);else{for(var _0x26eed6=_0x3bf4d2[_0x1223b9(0x1da)]-0x1;_0x26eed6>=0x0;_0x26eed6--)if(_0x596f3a=_0x3bf4d2[_0x26eed6])_0x43e3b2=(_0x586e1b<0x3?_0x596f3a(_0x43e3b2):_0x586e1b>0x3?_0x596f3a(_0x2d95e9,_0xafdd33,_0x43e3b2):_0x596f3a(_0x2d95e9,_0xafdd33))||_0x43e3b2;}return _0x586e1b>0x3&&_0x43e3b2&&Object['defineProperty'](_0x2d95e9,_0xafdd33,_0x43e3b2),_0x43e3b2;},__metadata=this&&this[a6_0x2aa79e(0x1f1)]||function(_0x538419,_0x110c3c){var _0x47b064=a6_0x2aa79e;if(typeof Reflect===_0x47b064(0x1dc)&&typeof Reflect[_0x47b064(0x1f6)]===_0x47b064(0x1f7))return Reflect[_0x47b064(0x1f6)](_0x538419,_0x110c3c);};Object['defineProperty'](exports,a6_0x2aa79e(0x1f4),{'value':!![]}),exports[a6_0x2aa79e(0x1e2)]=void 0x0;function a6_0xac38(_0x53e32b,_0x4b5eec){var _0x12969f=a6_0x5c7a();return a6_0xac38=function(_0x2b12a2,_0x313cc8){_0x2b12a2=_0x2b12a2-0x1d8;var _0x5c7af9=_0x12969f[_0x2b12a2];return _0x5c7af9;},a6_0xac38(_0x53e32b,_0x4b5eec);}function a6_0x5c7a(){var _0x50e2c1=['请求头信息不完整','__decorate','__esModule','2AIsbmr','metadata','function','23504VfPJZv','6286458nKWNpO','666704yHNtHA','请求超时,请重试','HEADERS_SIGNATURE','length','2899588dtvVCc','object','7328223APHAwj','getOwnPropertyDescriptor','apply','signature验证失败','constructor','ApiError','7686QBnVQi','HEADERS_CHECKCODE','HEADERS_LACK','TIMEOUT_LOGINTIME','TIMEOUT','design:type','登录超时,请重新登录','3878960PivSzN','(((.+)+)+)+$','请使用正确的设备','decorate','2659869ZOxPAv','HEADERS_DEVICE','search','__metadata'];a6_0x5c7a=function(){return _0x50e2c1;};return a6_0x5c7a();}class ApiError extends AnnError{}exports[a6_0x2aa79e(0x1e2)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a6_0x2aa79e(0x1e5)]=0x18e72,ApiError[a6_0x2aa79e(0x1ef)]=0x18e73,ApiError[a6_0x2aa79e(0x1d9)]=0x18e74,ApiError[a6_0x2aa79e(0x1e4)]=0x18e75,ApiError[a6_0x2aa79e(0x1e6)]=0x18e76,__decorate([AnnErrorMsg(a6_0x2aa79e(0x1d8)),__metadata(a6_0x2aa79e(0x1e8),Object)],ApiError,a6_0x2aa79e(0x1e7),void 0x0),__decorate([AnnErrorMsg(a6_0x2aa79e(0x1f2)),__metadata(a6_0x2aa79e(0x1e8),Object)],ApiError,a6_0x2aa79e(0x1e5),void 0x0),__decorate([AnnErrorMsg(a6_0x2aa79e(0x1ec)),__metadata(a6_0x2aa79e(0x1e8),Object)],ApiError,a6_0x2aa79e(0x1ef),void 0x0),__decorate([AnnErrorMsg(a6_0x2aa79e(0x1e0)),__metadata('design:type',Object)],ApiError,a6_0x2aa79e(0x1d9),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x2aa79e(0x1e9)),__metadata(a6_0x2aa79e(0x1e8),Object)],ApiError,a6_0x2aa79e(0x1e6),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x2dfc(_0x999d73,_0x49a7c3){const _0x5f1ec7=a7_0x12f2();return a7_0x2dfc=function(_0x36e532,_0x51c023){_0x36e532=_0x36e532-0x1d7;let _0x12f29f=_0x5f1ec7[_0x36e532];return _0x12f29f;},a7_0x2dfc(_0x999d73,_0x49a7c3);}const a7_0x6f7c5d=a7_0x2dfc;(function(_0x27310d,_0x46881b){const _0x2a6662=a7_0x2dfc,_0x544a3d=_0x27310d();while(!![]){try{const _0x58da4f=-parseInt(_0x2a6662(0x1d9))/0x1+-parseInt(_0x2a6662(0x1df))/0x2+-parseInt(_0x2a6662(0x1e3))/0x3+-parseInt(_0x2a6662(0x1de))/0x4+parseInt(_0x2a6662(0x1d8))/0x5+parseInt(_0x2a6662(0x1e0))/0x6*(parseInt(_0x2a6662(0x1dc))/0x7)+parseInt(_0x2a6662(0x1d7))/0x8*(parseInt(_0x2a6662(0x1e7))/0x9);if(_0x58da4f===_0x46881b)break;else _0x544a3d['push'](_0x544a3d['shift']());}catch(_0x1b64e4){_0x544a3d['push'](_0x544a3d['shift']());}}}(a7_0x12f2,0x38be9));const a7_0x51c023=(function(){let _0x5a1551=!![];return function(_0xbad860,_0x224979){const _0x17294f=_0x5a1551?function(){const _0x515759=a7_0x2dfc;if(_0x224979){const _0x4b21a8=_0x224979[_0x515759(0x1e2)](_0xbad860,arguments);return _0x224979=null,_0x4b21a8;}}:function(){};return _0x5a1551=![],_0x17294f;};}()),a7_0x36e532=a7_0x51c023(this,function(){const _0x5659b7=a7_0x2dfc;return a7_0x36e532['toString']()[_0x5659b7(0x1da)](_0x5659b7(0x1e4))[_0x5659b7(0x1e8)]()['constructor'](a7_0x36e532)[_0x5659b7(0x1da)]('(((.+)+)+)+$');});a7_0x36e532();'use strict';Object[a7_0x6f7c5d(0x1ea)](exports,a7_0x6f7c5d(0x1e6),{'value':!![]}),exports[a7_0x6f7c5d(0x1e5)]=void 0x0;function a7_0x12f2(){const _0x777725=['search','@midwayjs/core','3563lbBSGy','getClassMetadata','718796ihdnZk','391684NKGsVH','5352wiTapx','AppsConfigTmp','apply','612621qzSSth','(((.+)+)+)+$','getAppsConfig','__esModule','18PsRCvX','toString','APPSCONFIG_KEY','defineProperty','1313432HDAoAq','1866965CzlCDO','343606BywncN'];a7_0x12f2=function(){return _0x777725;};return a7_0x12f2();}const core_1=require(a7_0x6f7c5d(0x1db)),action_1=require('../types/action');function getAppsConfig(_0x47b1b7){const _0x1e75b2=a7_0x6f7c5d,_0x11608a=(0x0,core_1[_0x1e75b2(0x1dd)])(action_1[_0x1e75b2(0x1e9)],action_1[_0x1e75b2(0x1e1)])||{};return _0x47b1b7?lodash['get'](_0x11608a,_0x47b1b7):_0x11608a;}exports[a7_0x6f7c5d(0x1e5)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x1a1e6b=a8_0x3b09;(function(_0x3e9827,_0x5512e0){const _0x30beec=a8_0x3b09,_0xb02203=_0x3e9827();while(!![]){try{const _0x472332=parseInt(_0x30beec(0x1f2))/0x1+-parseInt(_0x30beec(0x1bd))/0x2*(-parseInt(_0x30beec(0x1bb))/0x3)+parseInt(_0x30beec(0x1cc))/0x4*(parseInt(_0x30beec(0x1fd))/0x5)+parseInt(_0x30beec(0x1f1))/0x6*(-parseInt(_0x30beec(0x1c1))/0x7)+-parseInt(_0x30beec(0x1ee))/0x8+parseInt(_0x30beec(0x1e4))/0x9*(-parseInt(_0x30beec(0x202))/0xa)+parseInt(_0x30beec(0x1ec))/0xb;if(_0x472332===_0x5512e0)break;else _0xb02203['push'](_0xb02203['shift']());}catch(_0x404c86){_0xb02203['push'](_0xb02203['shift']());}}}(a8_0x3832,0x65e16));const a8_0x7a84ee=(function(){let _0x18308f=!![];return function(_0x2c160c,_0x423753){const _0x87fd21=_0x18308f?function(){const _0x3a1a43=a8_0x3b09;if(_0x423753){const _0x4c0823=_0x423753[_0x3a1a43(0x1c8)](_0x2c160c,arguments);return _0x423753=null,_0x4c0823;}}:function(){};return _0x18308f=![],_0x87fd21;};}()),a8_0x365993=a8_0x7a84ee(this,function(){const _0xfdeeac=a8_0x3b09;return a8_0x365993['toString']()[_0xfdeeac(0x1e1)]('(((.+)+)+)+$')[_0xfdeeac(0x1bf)]()[_0xfdeeac(0x206)](a8_0x365993)[_0xfdeeac(0x1e1)](_0xfdeeac(0x1f9));});a8_0x365993();function a8_0x3b09(_0xa0d5b0,_0x4078b0){const _0x47a289=a8_0x3832();return a8_0x3b09=function(_0x365993,_0x7a84ee){_0x365993=_0x365993-0x1b2;let _0x383238=_0x47a289[_0x365993];return _0x383238;},a8_0x3b09(_0xa0d5b0,_0x4078b0);}'use strict';Object[a8_0x1a1e6b(0x20e)](exports,a8_0x1a1e6b(0x216),{'value':!![]}),exports[a8_0x1a1e6b(0x1dd)]=void 0x0;function a8_0x3832(){const _0x50f634=['constructor','array','HEADERS','request','PARAM','iterator','ACTION_KEY','BODY','defineProperty','flags.description','@anncic-api/validator','file','getClassExtendedMetadata','module','object','path','__esModule','文件上传-','listModule','propertyData','allow','WEB_ROUTER_PARAM_KEY','indexOf','routes','describe','split','tagName','limit','rules','push','name','30BMTxte','number','61810TSQvat','flags.default','toString','Boolean','156821oigZFY','string','substring','min','method','FIELDS','RouteParamTypes','apply','route','routerOptions','concat','4iHUjzj','query','File','ACTION_ROUTE_KEY','FILESTREAM','RULES_KEY','required','items','pprefix','filepath','summary','routerName','length','getClassMetadata','max','description','只允许:[','getRoutes','getMethodParamTypes','test','startsWith','search','intercept','flags.label','3611619MYtzeS','body','join','header','type','title','noreq','replace','12142174kaZnRB','isArray','6083776OTTvYC','requestMethod','default','54XgfoSM','248397OZLEgR','flags.presence','INJECT_CUSTOM_PARAM','QUERY','get','prefix','@midwayjs/core','(((.+)+)+)+$','args','parameterIndex','find','597055JKigrr','lodash','filter','children','../types/action','10CMTXJD','metadata','key','Number'];a8_0x3832=function(){return _0x50f634;};return a8_0x3832();}const lodash_1=require(a8_0x1a1e6b(0x1fe)),validator_1=require(a8_0x1a1e6b(0x210)),core_1=require(a8_0x1a1e6b(0x1f8)),core_2=require('@midwayjs/core'),core_3=require(a8_0x1a1e6b(0x1f8)),action_1=require(a8_0x1a1e6b(0x201));function getRoutes(_0x33912b={'prefix':'/','module':![]}){const _0x7b669d=a8_0x1a1e6b;var _0x2194e7,_0x35c5e6;const _0x30a661=(0x0,core_3[_0x7b669d(0x218)])(action_1[_0x7b669d(0x20c)]),_0x369428={},_0x21a2ea=Array[_0x7b669d(0x1ed)](_0x33912b[_0x7b669d(0x1ff)]||[])?_0x33912b[_0x7b669d(0x1ff)]||[]:[_0x33912b[_0x7b669d(0x1ff)]];_0x27ded5:for(const _0x5f4d72 of _0x30a661){let _0xba3843=(0x0,core_3[_0x7b669d(0x1d9)])(action_1[_0x7b669d(0x20c)],_0x5f4d72),_0x54c255=(0x0,core_3[_0x7b669d(0x1d9)])(action_1[_0x7b669d(0x1cf)],_0x5f4d72);if(_0xba3843&&_0x54c255){let _0x810cda=_0xba3843['prefix'],_0xbc5938={};if(_0x33912b[_0x7b669d(0x213)]&&(0x0,lodash_1[_0x7b669d(0x1f6)])(_0xba3843,'module',![])!=_0x33912b[_0x7b669d(0x213)])continue _0x27ded5;else{if(_0x33912b['module']===![]&&!!(0x0,lodash_1[_0x7b669d(0x1f6)])(_0xba3843,'module',null))continue _0x27ded5;}if(_0x33912b[_0x7b669d(0x1f7)]&&!_0x810cda[_0x7b669d(0x1e0)](_0x33912b[_0x7b669d(0x1f7)]))continue _0x27ded5;_0x810cda!=='/'?(_0xbc5938[_0x7b669d(0x1d6)]=(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x1ca)][_0x7b669d(0x1b6)])||(/^\//[_0x7b669d(0x1df)](_0x810cda)?_0x810cda[_0x7b669d(0x1b5)]('/')[0x1]:_0x810cda),_0xbc5938[_0x7b669d(0x1db)]=(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x1ca)][_0x7b669d(0x1db)])||_0xbc5938[_0x7b669d(0x1d6)],_0xbc5938['routes']=[]):(_0xbc5938['summary']=(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x1ca)][_0x7b669d(0x1b6)])||_0x7b669d(0x1f0),_0xbc5938[_0x7b669d(0x1db)]=(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843['routerOptions'][_0x7b669d(0x1db)])||'',_0xbc5938[_0x7b669d(0x1b3)]=[]);_0x33912b[_0x7b669d(0x1d5)]&&(_0xbc5938[_0x7b669d(0x1d5)]=_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x1d5)]);(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x1d4)])&&(_0xbc5938[_0x7b669d(0x1f7)]=_0xba3843['pprefix']);(_0xba3843===null||_0xba3843===void 0x0?void 0x0:_0xba3843[_0x7b669d(0x213)])&&(_0xbc5938[_0x7b669d(0x213)]=_0xba3843['module']);let _0x4e388b=(0x0,core_3[_0x7b669d(0x1d9)])(core_2[_0x7b669d(0x1f4)],_0x5f4d72)||{};if(typeof _0x54c255[Symbol[_0x7b669d(0x20b)]]==='function')for(let _0x421b4e of _0x54c255){if((_0x33912b===null||_0x33912b===void 0x0?void 0x0:_0x33912b[_0x7b669d(0x1e2)])&&!(_0x421b4e===null||_0x421b4e===void 0x0?void 0x0:_0x421b4e[_0x7b669d(0x1e2)]))continue;let _0x76b0a1={};_0x76b0a1[_0x7b669d(0x1c5)]=_0x421b4e[_0x7b669d(0x1ef)],_0x76b0a1[_0x7b669d(0x1c9)]=(_0x810cda+_0x421b4e[_0x7b669d(0x215)])[_0x7b669d(0x1eb)](/\/{2,}/g,'/'),_0x76b0a1[_0x7b669d(0x1d6)]=(_0x421b4e===null||_0x421b4e===void 0x0?void 0x0:_0x421b4e[_0x7b669d(0x1d7)])||_0xbc5938[_0x7b669d(0x1d6)]||'default',_0x76b0a1[_0x7b669d(0x1db)]=(_0x421b4e===null||_0x421b4e===void 0x0?void 0x0:_0x421b4e[_0x7b669d(0x1db)])||'',_0x76b0a1['request']=[];_0x76b0a1[_0x7b669d(0x1c9)]['endsWith']('/')&&(_0x76b0a1[_0x7b669d(0x1c9)]=_0x76b0a1[_0x7b669d(0x1c9)][_0x7b669d(0x1c3)](0x0,_0x76b0a1[_0x7b669d(0x1c9)][_0x7b669d(0x1d8)]-0x1));if(!(0x0,lodash_1[_0x7b669d(0x1e0)])(_0x76b0a1['route'],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x76b0a1[_0x7b669d(0x1c9)],'/static/apitest')&&_0x21a2ea[_0x7b669d(0x1b2)](_0x76b0a1[_0x7b669d(0x1c9)])===-0x1){if(!(_0x33912b===null||_0x33912b===void 0x0?void 0x0:_0x33912b[_0x7b669d(0x1ea)])){let _0x117013=(0x0,core_3[_0x7b669d(0x1de)])(new _0x5f4d72(),_0x421b4e[_0x7b669d(0x1c5)]);for(const _0x2bff85 in _0x117013){let _0x120254=(_0x2194e7=_0x4e388b[_0x421b4e[_0x7b669d(0x1c5)]])===null||_0x2194e7===void 0x0?void 0x0:_0x2194e7[_0x7b669d(0x1fc)](_0x3ca75f=>_0x3ca75f[_0x7b669d(0x1fb)]==_0x2bff85&&_0x3ca75f[_0x7b669d(0x204)]===core_2[_0x7b669d(0x21b)]&&(_0x3ca75f===null||_0x3ca75f===void 0x0?void 0x0:_0x3ca75f[_0x7b669d(0x203)]));if(_0x120254===null||_0x120254===void 0x0?void 0x0:_0x120254['metadata']){let _0x5b2980=convertTypeToString(_0x120254['metadata'][_0x7b669d(0x1e8)]||0x0);if([_0x7b669d(0x1cd),_0x7b669d(0x1e5)][_0x7b669d(0x1b2)](_0x5b2980)!=-0x1&&_0x120254[_0x7b669d(0x203)][_0x7b669d(0x219)]['indexOf'](':')==-0x1&&!_0x76b0a1[_0x7b669d(0x209)][_0x7b669d(0x1fc)](_0x418502=>_0x418502[_0x7b669d(0x204)]==_0x120254['metadata'][_0x7b669d(0x219)]))_0x76b0a1[_0x7b669d(0x209)][_0x7b669d(0x1b9)]({'key':_0x120254['metadata'][_0x7b669d(0x219)],'title':_0x120254[_0x7b669d(0x203)]['propertyData'],'type':convertSchemaType(_0x117013[_0x120254[_0x7b669d(0x1fb)]][_0x7b669d(0x1ba)]),'required':![],'default':'','desc':''});else{if(_0x5b2980==_0x7b669d(0x211)){let _0x4af9c8=((_0x35c5e6=_0x120254===null||_0x120254===void 0x0?void 0x0:_0x120254[_0x7b669d(0x203)])===null||_0x35c5e6===void 0x0?void 0x0:_0x35c5e6[_0x7b669d(0x219)])||_0x7b669d(0x211);_0x4af9c8[_0x7b669d(0x1b2)](':')==-0x1&&!_0x76b0a1[_0x7b669d(0x209)][_0x7b669d(0x1fc)](_0x2e62f9=>_0x2e62f9['key']==_0x4af9c8&&_0x2e62f9['type']==_0x7b669d(0x211))&&_0x76b0a1[_0x7b669d(0x209)][_0x7b669d(0x1b9)]({'key':_0x4af9c8,'title':_0x7b669d(0x217)+_0x4af9c8,'type':_0x7b669d(0x211),'required':!![],'default':'','desc':''});}}}else{const _0x345f31=(0x0,core_3[_0x7b669d(0x212)])(validator_1[_0x7b669d(0x1d1)],_0x117013[_0x2bff85]);_0x345f31&&_0x76b0a1[_0x7b669d(0x209)][_0x7b669d(0x1b9)](...getJoiRequest(_0x345f31));}}}_0xbc5938[_0x7b669d(0x1b3)][_0x7b669d(0x1b9)](_0x76b0a1);}}if(_0xbc5938[_0x7b669d(0x1b3)][_0x7b669d(0x1d8)]>0x0){let _0xba672c=_0x369428[_0x810cda];_0xba672c?(_0xba672c[_0x7b669d(0x1d6)]!=_0xbc5938[_0x7b669d(0x1d6)]&&(_0xba672c[_0x7b669d(0x1d6)]=_0xba672c[_0x7b669d(0x1d6)]+','+_0xbc5938['summary']),_0xba672c[_0x7b669d(0x1db)]!=_0xbc5938['description']&&(_0xba672c['description']=_0xba672c[_0x7b669d(0x1db)]+','+_0xbc5938[_0x7b669d(0x1db)]),_0xba672c[_0x7b669d(0x1b3)]=_0xba672c[_0x7b669d(0x1b3)][_0x7b669d(0x1cb)](_0xbc5938[_0x7b669d(0x1b3)]),_0x369428[_0x810cda]=_0xba672c):_0x369428[_0x810cda]=_0xbc5938;}}}return _0x369428;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x3cc1f2){const _0x182cc4=a8_0x1a1e6b,_0x3d7662=[];for(let _0x383397 in _0x3cc1f2){const _0x11e999={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3db979=typeof _0x3cc1f2[_0x383397][_0x182cc4(0x1b4)]=='function'?_0x3cc1f2[_0x383397]['describe']():_0x3cc1f2[_0x383397];_0x11e999['key']=_0x383397,_0x11e999[_0x182cc4(0x1e8)]=_0x3db979['type'],_0x11e999[_0x182cc4(0x1e9)]=(0x0,lodash_1[_0x182cc4(0x1f6)])(_0x3db979,_0x182cc4(0x1e3),_0x383397),_0x11e999[_0x182cc4(0x1f0)]=(0x0,lodash_1[_0x182cc4(0x1f6)])(_0x3db979,_0x182cc4(0x1be),''),_0x11e999[_0x182cc4(0x1d2)]=(0x0,lodash_1[_0x182cc4(0x1f6)])(_0x3db979,_0x182cc4(0x1f3),'')==_0x182cc4(0x1d2),_0x11e999['description']=(0x0,lodash_1[_0x182cc4(0x1f6)])(_0x3db979,_0x182cc4(0x20f),'');if(_0x3db979[_0x182cc4(0x1e8)]==_0x182cc4(0x214))_0x11e999[_0x182cc4(0x200)]=getJoiRequest(_0x3db979['keys']);else{if(_0x3db979[_0x182cc4(0x1e8)]==_0x182cc4(0x207)&&_0x3db979[_0x182cc4(0x1d3)]&&Array[_0x182cc4(0x1ed)](_0x3db979['items'])&&_0x3db979['items'][0x0]){}}_0x3db979[_0x182cc4(0x21a)]&&Array['isArray'](_0x3db979[_0x182cc4(0x21a)])&&_0x3db979[_0x182cc4(0x21a)][_0x182cc4(0x1d8)]>0x0&&(_0x11e999[_0x182cc4(0x1db)]=_0x182cc4(0x1dc)+_0x3db979[_0x182cc4(0x21a)][_0x182cc4(0x1e6)](',')+'];'+_0x11e999['description']);if(_0x11e999['key']&&_0x11e999[_0x182cc4(0x1e8)]){const _0x103d4e={};for(const _0x4e14df of _0x3db979[_0x182cc4(0x1b8)]||[]){if(_0x4e14df['name']===_0x182cc4(0x1c4)&&_0x4e14df[_0x182cc4(0x1fa)])_0x103d4e['min']=_0x4e14df[_0x182cc4(0x1fa)][_0x182cc4(0x1b7)];else _0x4e14df[_0x182cc4(0x1ba)]===_0x182cc4(0x1da)&&(_0x103d4e['max']=_0x4e14df[_0x182cc4(0x1fa)][_0x182cc4(0x1b7)]);}_0x11e999[_0x182cc4(0x1b8)]=_0x103d4e;}_0x11e999['key']&&_0x11e999[_0x182cc4(0x1e9)]&&_0x3d7662[_0x182cc4(0x1b9)](_0x11e999);}return _0x3d7662;}function convertSchemaType(_0x50170b){const _0x2824a0=a8_0x1a1e6b;switch(_0x50170b){case'Object':return'object';case _0x2824a0(0x1c0):return'boolean';case _0x2824a0(0x205):return _0x2824a0(0x1bc);case'String':return _0x2824a0(0x1c2);case _0x2824a0(0x1ce):return _0x2824a0(0x211);default:return _0x2824a0(0x1c2);}}function convertTypeToString(_0x286e1f){const _0x1fa45c=a8_0x1a1e6b;switch(_0x286e1f){case core_1['RouteParamTypes'][_0x1fa45c(0x208)]:return _0x1fa45c(0x1e7);case core_1[_0x1fa45c(0x1c7)][_0x1fa45c(0x1f5)]:return _0x1fa45c(0x1cd);case core_1[_0x1fa45c(0x1c7)][_0x1fa45c(0x20a)]:return'path';case core_1[_0x1fa45c(0x1c7)][_0x1fa45c(0x20d)]:return _0x1fa45c(0x1e5);case core_1[_0x1fa45c(0x1c7)][_0x1fa45c(0x1c6)]:case core_1[_0x1fa45c(0x1c7)]['FILESSTREAM']:case core_1[_0x1fa45c(0x1c7)][_0x1fa45c(0x1d0)]:return _0x1fa45c(0x211);default:return _0x1fa45c(0x1e7);}}
|
|
1
|
+
const a8_0x1826a1=a8_0x1f38;(function(_0x3f624a,_0x28fdd4){const _0x5156bf=a8_0x1f38,_0x59d3fb=_0x3f624a();while(!![]){try{const _0x55e8fe=parseInt(_0x5156bf(0x154))/0x1+-parseInt(_0x5156bf(0x18a))/0x2*(-parseInt(_0x5156bf(0x152))/0x3)+-parseInt(_0x5156bf(0x174))/0x4+-parseInt(_0x5156bf(0x16b))/0x5+-parseInt(_0x5156bf(0x1ac))/0x6*(parseInt(_0x5156bf(0x16d))/0x7)+-parseInt(_0x5156bf(0x189))/0x8+parseInt(_0x5156bf(0x15b))/0x9;if(_0x55e8fe===_0x28fdd4)break;else _0x59d3fb['push'](_0x59d3fb['shift']());}catch(_0x55e022){_0x59d3fb['push'](_0x59d3fb['shift']());}}}(a8_0x35fd,0xc4a83));const a8_0x4b13e3=(function(){let _0x50835a=!![];return function(_0x321dd8,_0x5df9a3){const _0x153504=_0x50835a?function(){if(_0x5df9a3){const _0x349c53=_0x5df9a3['apply'](_0x321dd8,arguments);return _0x5df9a3=null,_0x349c53;}}:function(){};return _0x50835a=![],_0x153504;};}()),a8_0xc75bb6=a8_0x4b13e3(this,function(){const _0x166085=a8_0x1f38;return a8_0xc75bb6[_0x166085(0x19d)]()[_0x166085(0x15d)](_0x166085(0x173))[_0x166085(0x19d)]()[_0x166085(0x15a)](a8_0xc75bb6)[_0x166085(0x15d)]('(((.+)+)+)+$');});a8_0xc75bb6();function a8_0x1f38(_0x3cb91c,_0x30c617){const _0x5afc2=a8_0x35fd();return a8_0x1f38=function(_0xc75bb6,_0x4b13e3){_0xc75bb6=_0xc75bb6-0x14e;let _0x35fdad=_0x5afc2[_0xc75bb6];return _0x35fdad;},a8_0x1f38(_0x3cb91c,_0x30c617);}'use strict';Object[a8_0x1826a1(0x197)](exports,a8_0x1826a1(0x16a),{'value':!![]}),exports[a8_0x1826a1(0x1aa)]=void 0x0;const lodash_1=require(a8_0x1826a1(0x155)),validator_1=require(a8_0x1826a1(0x1a7)),core_1=require(a8_0x1826a1(0x17a)),core_2=require(a8_0x1826a1(0x17a)),core_3=require(a8_0x1826a1(0x17a)),action_1=require('../types/action');function getRoutes(_0x595edf={'prefix':'/','module':![]}){const _0x23a326=a8_0x1826a1;var _0x165ed9,_0x2ccafa;const _0x49e356=(0x0,core_3[_0x23a326(0x163)])(action_1[_0x23a326(0x170)]),_0x2affd4={},_0x3778f3=Array[_0x23a326(0x159)](_0x595edf[_0x23a326(0x1ab)]||[])?_0x595edf[_0x23a326(0x1ab)]||[]:[_0x595edf[_0x23a326(0x1ab)]];_0x462b0f:for(const _0x2a6c1a of _0x49e356){let _0x25a459=(0x0,core_3[_0x23a326(0x178)])(action_1[_0x23a326(0x170)],_0x2a6c1a),_0x579562=(0x0,core_3[_0x23a326(0x178)])(action_1[_0x23a326(0x169)],_0x2a6c1a);if(_0x25a459&&_0x579562){let _0x58e45a=_0x25a459[_0x23a326(0x18f)],_0x51f138={};if(_0x595edf[_0x23a326(0x15c)]&&(0x0,lodash_1[_0x23a326(0x156)])(_0x25a459,'module',![])!=_0x595edf[_0x23a326(0x15c)])continue _0x462b0f;else{if(_0x595edf['module']===![]&&!!(0x0,lodash_1[_0x23a326(0x156)])(_0x25a459,_0x23a326(0x15c),null))continue _0x462b0f;}if(_0x595edf[_0x23a326(0x18f)]&&!_0x58e45a[_0x23a326(0x182)](_0x595edf[_0x23a326(0x18f)]))continue _0x462b0f;_0x58e45a!=='/'?(_0x51f138[_0x23a326(0x16e)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['tagName'])||(/^\//['test'](_0x58e45a)?_0x58e45a['split']('/')[0x1]:_0x58e45a),_0x51f138[_0x23a326(0x196)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459['routerOptions']['description'])||_0x51f138[_0x23a326(0x16e)],_0x51f138[_0x23a326(0x1a4)]=[]):(_0x51f138['summary']=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['tagName'])||'default',_0x51f138[_0x23a326(0x196)]=(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x186)]['description'])||'',_0x51f138[_0x23a326(0x1a4)]=[]);_0x595edf[_0x23a326(0x1a5)]&&(_0x51f138[_0x23a326(0x1a5)]=_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459['filepath']);(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x1a6)])&&(_0x51f138['prefix']=_0x25a459[_0x23a326(0x1a6)]);(_0x25a459===null||_0x25a459===void 0x0?void 0x0:_0x25a459[_0x23a326(0x15c)])&&(_0x51f138[_0x23a326(0x15c)]=_0x25a459['module']);let _0x3d3a9c=(0x0,core_3['getClassMetadata'])(core_2[_0x23a326(0x158)],_0x2a6c1a)||{};if(typeof _0x579562[Symbol[_0x23a326(0x179)]]===_0x23a326(0x14f))for(let _0x18d062 of _0x579562){if((_0x595edf===null||_0x595edf===void 0x0?void 0x0:_0x595edf[_0x23a326(0x192)])&&!(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x192)]))continue;let _0x1f9aa5={};_0x1f9aa5[_0x23a326(0x18b)]=_0x18d062[_0x23a326(0x18e)],_0x1f9aa5[_0x23a326(0x199)]=(_0x58e45a+_0x18d062[_0x23a326(0x153)])[_0x23a326(0x16f)](/\/{2,}/g,'/'),_0x1f9aa5['summary']=(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x198)])||_0x51f138['summary']||_0x23a326(0x15f),_0x1f9aa5['description']=(_0x18d062===null||_0x18d062===void 0x0?void 0x0:_0x18d062[_0x23a326(0x196)])||'',_0x1f9aa5[_0x23a326(0x1ad)]=[];_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x181)]('/')&&(_0x1f9aa5[_0x23a326(0x199)]=_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x180)](0x0,_0x1f9aa5[_0x23a326(0x199)][_0x23a326(0x191)]-0x1));if(!(0x0,lodash_1[_0x23a326(0x182)])(_0x1f9aa5[_0x23a326(0x199)],'static/apitest')&&!(0x0,lodash_1[_0x23a326(0x182)])(_0x1f9aa5[_0x23a326(0x199)],_0x23a326(0x15e))&&_0x3778f3[_0x23a326(0x19e)](_0x1f9aa5[_0x23a326(0x199)])===-0x1){if(!(_0x595edf===null||_0x595edf===void 0x0?void 0x0:_0x595edf[_0x23a326(0x17d)])){let _0x45b912=(0x0,core_3['getMethodParamTypes'])(new _0x2a6c1a(),_0x18d062[_0x23a326(0x18b)]);for(const _0x4ceff3 in _0x45b912){let _0x3151ba=(_0x165ed9=_0x3d3a9c[_0x18d062[_0x23a326(0x18b)]])===null||_0x165ed9===void 0x0?void 0x0:_0x165ed9[_0x23a326(0x168)](_0x4ea9e5=>_0x4ea9e5[_0x23a326(0x19c)]==_0x4ceff3&&_0x4ea9e5[_0x23a326(0x183)]===core_2[_0x23a326(0x150)]&&(_0x4ea9e5===null||_0x4ea9e5===void 0x0?void 0x0:_0x4ea9e5['metadata']));if(_0x3151ba===null||_0x3151ba===void 0x0?void 0x0:_0x3151ba[_0x23a326(0x177)]){let _0x398bd7=convertTypeToString(_0x3151ba['metadata'][_0x23a326(0x1a9)]||0x0);if([_0x23a326(0x17f),_0x23a326(0x160)][_0x23a326(0x19e)](_0x398bd7)!=-0x1&&_0x3151ba[_0x23a326(0x177)][_0x23a326(0x188)][_0x23a326(0x19e)](':')==-0x1&&!_0x1f9aa5[_0x23a326(0x1ad)][_0x23a326(0x168)](_0x466b44=>_0x466b44['key']==_0x3151ba[_0x23a326(0x177)][_0x23a326(0x188)]))_0x1f9aa5['request'][_0x23a326(0x18d)]({'key':_0x3151ba[_0x23a326(0x177)]['propertyData'],'title':_0x3151ba[_0x23a326(0x177)]['propertyData'],'type':convertSchemaType(_0x45b912[_0x3151ba[_0x23a326(0x19c)]][_0x23a326(0x151)]),'required':![],'default':'','desc':''});else{if(_0x398bd7==_0x23a326(0x1a8)){let _0x58380c=((_0x2ccafa=_0x3151ba===null||_0x3151ba===void 0x0?void 0x0:_0x3151ba[_0x23a326(0x177)])===null||_0x2ccafa===void 0x0?void 0x0:_0x2ccafa[_0x23a326(0x188)])||_0x23a326(0x1a8);_0x58380c[_0x23a326(0x19e)](':')==-0x1&&!_0x1f9aa5[_0x23a326(0x1ad)]['find'](_0x173da8=>_0x173da8[_0x23a326(0x183)]==_0x58380c&&_0x173da8[_0x23a326(0x1a9)]==_0x23a326(0x1a8))&&_0x1f9aa5['request'][_0x23a326(0x18d)]({'key':_0x58380c,'title':_0x23a326(0x185)+_0x58380c,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x3ddee6=(0x0,core_3[_0x23a326(0x17e)])(validator_1[_0x23a326(0x187)],_0x45b912[_0x4ceff3]);_0x3ddee6&&_0x1f9aa5['request'][_0x23a326(0x18d)](...getJoiRequest(_0x3ddee6));}}}_0x51f138[_0x23a326(0x1a4)]['push'](_0x1f9aa5);}}if(_0x51f138[_0x23a326(0x1a4)][_0x23a326(0x191)]>0x0){let _0x1ed293=_0x2affd4[_0x58e45a];_0x1ed293?(_0x1ed293['summary']!=_0x51f138['summary']&&(_0x1ed293[_0x23a326(0x16e)]=_0x1ed293[_0x23a326(0x16e)]+','+_0x51f138[_0x23a326(0x16e)]),_0x1ed293[_0x23a326(0x196)]!=_0x51f138[_0x23a326(0x196)]&&(_0x1ed293['description']=_0x1ed293[_0x23a326(0x196)]+','+_0x51f138['description']),_0x1ed293['routes']=_0x1ed293[_0x23a326(0x1a4)][_0x23a326(0x17c)](_0x51f138[_0x23a326(0x1a4)]),_0x2affd4[_0x58e45a]=_0x1ed293):_0x2affd4[_0x58e45a]=_0x51f138;}}}return _0x2affd4;}exports[a8_0x1826a1(0x1aa)]=getRoutes;function getJoiRequest(_0x526187){const _0xb29981=a8_0x1826a1,_0x2b2cda=[];for(let _0x7bd91e in _0x526187){const _0x4fd07f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x40cba2=typeof _0x526187[_0x7bd91e][_0xb29981(0x171)]==_0xb29981(0x14f)?_0x526187[_0x7bd91e][_0xb29981(0x171)]():_0x526187[_0x7bd91e];_0x4fd07f['key']=_0x7bd91e,_0x4fd07f[_0xb29981(0x1a9)]=_0x40cba2[_0xb29981(0x1a9)],_0x4fd07f[_0xb29981(0x1a1)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,'flags.label',_0x7bd91e),_0x4fd07f[_0xb29981(0x15f)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,'flags.default',''),_0x4fd07f[_0xb29981(0x167)]=(0x0,lodash_1['get'])(_0x40cba2,_0xb29981(0x190),'')==_0xb29981(0x167),_0x4fd07f[_0xb29981(0x196)]=(0x0,lodash_1[_0xb29981(0x156)])(_0x40cba2,_0xb29981(0x175),'');if(_0x40cba2[_0xb29981(0x1a9)]==_0xb29981(0x184))_0x4fd07f[_0xb29981(0x14e)]=getJoiRequest(_0x40cba2['keys']);else{if(_0x40cba2[_0xb29981(0x1a9)]=='array'&&_0x40cba2['items']&&Array[_0xb29981(0x159)](_0x40cba2[_0xb29981(0x194)])&&_0x40cba2[_0xb29981(0x194)][0x0]){}}_0x40cba2[_0xb29981(0x165)]&&Array[_0xb29981(0x159)](_0x40cba2[_0xb29981(0x165)])&&_0x40cba2[_0xb29981(0x165)][_0xb29981(0x191)]>0x0&&(_0x4fd07f[_0xb29981(0x196)]=_0xb29981(0x172)+_0x40cba2['allow']['join'](',')+'];'+_0x4fd07f[_0xb29981(0x196)]);if(_0x4fd07f[_0xb29981(0x183)]&&_0x4fd07f[_0xb29981(0x1a9)]){const _0x890d05={};for(const _0x3057f1 of _0x40cba2['rules']||[]){if(_0x3057f1[_0xb29981(0x151)]===_0xb29981(0x1a3)&&_0x3057f1['args'])_0x890d05[_0xb29981(0x1a3)]=_0x3057f1['args'][_0xb29981(0x162)];else _0x3057f1['name']===_0xb29981(0x164)&&(_0x890d05['max']=_0x3057f1[_0xb29981(0x18c)]['limit']);}_0x4fd07f[_0xb29981(0x193)]=_0x890d05;}_0x4fd07f['key']&&_0x4fd07f[_0xb29981(0x1a1)]&&_0x2b2cda[_0xb29981(0x18d)](_0x4fd07f);}return _0x2b2cda;}function convertSchemaType(_0x5b0a35){const _0x5c4fdd=a8_0x1826a1;switch(_0x5b0a35){case'Object':return _0x5c4fdd(0x184);case _0x5c4fdd(0x19a):return _0x5c4fdd(0x19f);case'Number':return'number';case _0x5c4fdd(0x19b):return _0x5c4fdd(0x157);case _0x5c4fdd(0x1a0):return _0x5c4fdd(0x1a8);default:return'string';}}function convertTypeToString(_0x2f99fc){const _0x258deb=a8_0x1826a1;switch(_0x2f99fc){case core_1['RouteParamTypes'][_0x258deb(0x195)]:return _0x258deb(0x161);case core_1[_0x258deb(0x17b)][_0x258deb(0x16c)]:return _0x258deb(0x17f);case core_1['RouteParamTypes']['PARAM']:return _0x258deb(0x153);case core_1[_0x258deb(0x17b)][_0x258deb(0x166)]:return _0x258deb(0x160);case core_1[_0x258deb(0x17b)][_0x258deb(0x176)]:case core_1[_0x258deb(0x17b)][_0x258deb(0x1a2)]:case core_1[_0x258deb(0x17b)]['FILESTREAM']:return _0x258deb(0x1a8);default:return _0x258deb(0x161);}}function a8_0x35fd(){const _0x4f2bbe=['QUERY','56441UWJhsv','summary','replace','ACTION_KEY','describe','只允许:[','(((.+)+)+)+$','1294860MJclOy','flags.description','FIELDS','metadata','getClassMetadata','iterator','@midwayjs/core','RouteParamTypes','concat','noreq','getClassExtendedMetadata','query','substring','endsWith','startsWith','key','object','文件上传-','routerOptions','RULES_KEY','propertyData','4729896NYbsHy','404NAWOhI','method','args','push','requestMethod','prefix','flags.presence','length','intercept','rules','items','HEADERS','description','defineProperty','routerName','route','Boolean','String','parameterIndex','toString','indexOf','boolean','File','title','FILESSTREAM','min','routes','filepath','pprefix','@anncic-api/validator','file','type','getRoutes','filter','138zXIFpT','request','children','function','WEB_ROUTER_PARAM_KEY','name','7473VQvdIv','path','1353250vhpNbI','lodash','get','string','INJECT_CUSTOM_PARAM','isArray','constructor','1317654rlqGdI','module','search','/static/apitest','default','body','header','limit','listModule','max','allow','BODY','required','find','ACTION_ROUTE_KEY','__esModule','484650fXwLEd'];a8_0x35fd=function(){return _0x4f2bbe;};return a8_0x35fd();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0xac81bf=a9_0x706f;(function(_0x2cacd8,_0x4f1ec9){var _0x2ab68e=a9_0x706f,_0x1c40f8=_0x2cacd8();while(!![]){try{var _0xcee48a=parseInt(_0x2ab68e(0x213))/0x1+-parseInt(_0x2ab68e(0x1f2))/0x2+parseInt(_0x2ab68e(0x221))/0x3+-parseInt(_0x2ab68e(0x216))/0x4+-parseInt(_0x2ab68e(0x1ea))/0x5*(parseInt(_0x2ab68e(0x1e6))/0x6)+-parseInt(_0x2ab68e(0x1e1))/0x7+parseInt(_0x2ab68e(0x217))/0x8*(parseInt(_0x2ab68e(0x1ee))/0x9);if(_0xcee48a===_0x4f1ec9)break;else _0x1c40f8['push'](_0x1c40f8['shift']());}catch(_0x2b8f09){_0x1c40f8['push'](_0x1c40f8['shift']());}}}(a9_0x40d8,0x527dd));var a9_0x4db1e0=(function(){var _0x4d6dfe=!![];return function(_0x3e16a6,_0x349b5e){var _0x1b138a=_0x4d6dfe?function(){var _0x2b7c83=a9_0x706f;if(_0x349b5e){var _0x4c1ef6=_0x349b5e[_0x2b7c83(0x1e2)](_0x3e16a6,arguments);return _0x349b5e=null,_0x4c1ef6;}}:function(){};return _0x4d6dfe=![],_0x1b138a;};}()),a9_0x26cafc=a9_0x4db1e0(this,function(){var _0x1eeaab=a9_0x706f;return a9_0x26cafc[_0x1eeaab(0x1f0)]()['search']('(((.+)+)+)+$')[_0x1eeaab(0x1f0)]()[_0x1eeaab(0x21a)](a9_0x26cafc)[_0x1eeaab(0x219)](_0x1eeaab(0x1f9));});a9_0x26cafc();'use strict';var __createBinding=this&&this[a9_0xac81bf(0x1ff)]||(Object[a9_0xac81bf(0x202)]?function(_0x35f5e2,_0x3733ac,_0x253926,_0x58fd09){var _0x2f02b5=a9_0xac81bf;if(_0x58fd09===undefined)_0x58fd09=_0x253926;var _0x1aa6b2=Object[_0x2f02b5(0x203)](_0x3733ac,_0x253926);(!_0x1aa6b2||(_0x2f02b5(0x220)in _0x1aa6b2?!_0x3733ac[_0x2f02b5(0x1f6)]:_0x1aa6b2[_0x2f02b5(0x214)]||_0x1aa6b2['configurable']))&&(_0x1aa6b2={'enumerable':!![],'get':function(){return _0x3733ac[_0x253926];}}),Object['defineProperty'](_0x35f5e2,_0x58fd09,_0x1aa6b2);}:function(_0x3a9a65,_0x4bad3d,_0xbcd805,_0x1ff7f9){if(_0x1ff7f9===undefined)_0x1ff7f9=_0xbcd805;_0x3a9a65[_0x1ff7f9]=_0x4bad3d[_0xbcd805];}),__exportStar=this&&this[a9_0xac81bf(0x207)]||function(_0x36dac6,_0x1b98ba){var _0x5a23d9=a9_0xac81bf;for(var _0x216d5b in _0x36dac6)if(_0x216d5b!==_0x5a23d9(0x1e5)&&!Object['prototype']['hasOwnProperty'][_0x5a23d9(0x21c)](_0x1b98ba,_0x216d5b))__createBinding(_0x1b98ba,_0x36dac6,_0x216d5b);};Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1f6),{'value':!![]}),exports['getAppsConfig']=exports[a9_0xac81bf(0x1f8)]=exports[a9_0xac81bf(0x211)]=exports['Scope']=exports[a9_0xac81bf(0x209)]=exports[a9_0xac81bf(0x21d)]=exports[a9_0xac81bf(0x1eb)]=exports['Config']=exports[a9_0xac81bf(0x1fb)]=exports['Init']=exports[a9_0xac81bf(0x20f)]=exports[a9_0xac81bf(0x218)]=exports[a9_0xac81bf(0x1fa)]=exports[a9_0xac81bf(0x1f1)]=exports[a9_0xac81bf(0x20e)]=exports[a9_0xac81bf(0x1ef)]=exports[a9_0xac81bf(0x1fd)]=exports[a9_0xac81bf(0x1e3)]=exports[a9_0xac81bf(0x206)]=exports[a9_0xac81bf(0x21e)]=exports[a9_0xac81bf(0x1e0)]=exports[a9_0xac81bf(0x20a)]=exports['EventService']=exports[a9_0xac81bf(0x21b)]=exports['ApiError']=exports['getRoutes']=exports[a9_0xac81bf(0x1df)]=exports['Intercept']=exports[a9_0xac81bf(0x1e4)]=exports['Action']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0xac81bf(0x1fc),{'enumerable':!![],'get':function(){var _0x4e570b=a9_0xac81bf;return getAppsConfig_1[_0x4e570b(0x1fc)];}}),__exportStar(require(a9_0xac81bf(0x1ec)),exports),__exportStar(require(a9_0xac81bf(0x204)),exports);var Action_1=require(a9_0xac81bf(0x20d));Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x20c),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0xac81bf(0x20b));Object['defineProperty'](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x2339d3=a9_0xac81bf;return ActionApitest_1[_0x2339d3(0x1e4)];}});var Intercept_1=require(a9_0xac81bf(0x1f5));Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1e7),{'enumerable':!![],'get':function(){var _0x349bf7=a9_0xac81bf;return Intercept_1[_0x349bf7(0x1e7)];}}),Object['defineProperty'](exports,a9_0xac81bf(0x1df),{'enumerable':!![],'get':function(){var _0x3f8fa2=a9_0xac81bf;return Intercept_1[_0x3f8fa2(0x1df)];}});var getRoutes_1=require(a9_0xac81bf(0x210));Object['defineProperty'](exports,a9_0xac81bf(0x215),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0xac81bf(0x222));Object['defineProperty'](exports,a9_0xac81bf(0x1f4),{'enumerable':!![],'get':function(){var _0x3c7a6c=a9_0xac81bf;return ApiError_1[_0x3c7a6c(0x1f4)];}});var cache_1=require(a9_0xac81bf(0x21f));Object['defineProperty'](exports,a9_0xac81bf(0x21b),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0xac81bf(0x201));Object['defineProperty'](exports,a9_0xac81bf(0x208),{'enumerable':!![],'get':function(){var _0x46ebcd=a9_0xac81bf;return event_1[_0x46ebcd(0x208)];}});var ApiService_1=require(a9_0xac81bf(0x1fe));Object[a9_0xac81bf(0x212)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x29b0f4=a9_0xac81bf;return ApiService_1[_0x29b0f4(0x20a)];}});var ExcelService_1=require(a9_0xac81bf(0x1ed));Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1e0),{'enumerable':!![],'get':function(){var _0x32e895=a9_0xac81bf;return ExcelService_1[_0x32e895(0x1e0)];}});var validator_1=require(a9_0xac81bf(0x1f3));Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x21e),{'enumerable':!![],'get':function(){var _0x233e96=a9_0xac81bf;return validator_1[_0x233e96(0x21e)];}}),Object[a9_0xac81bf(0x212)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x410c09=a9_0xac81bf;return validator_1[_0x410c09(0x206)];}});var configuration_1=require(a9_0xac81bf(0x1f7));function a9_0x40d8(){var _0x5c1a27=['App','getAppsConfig','File','./service/ApiService','__createBinding','Scope','@anncic-api/event','create','getOwnPropertyDescriptor','./service/ApitestService','Config','ValidatorService','__exportStar','EventService','Inject','ApiService','./decorator/ActionApitest','Action','./decorator/Action','Fields','Headers','./helper/getRoutes','Singleton','defineProperty','227535rOpyzw','writable','getRoutes','1852476ooNTnZ','584960CuHyqx','Query','search','constructor','CacheService','call','Provide','ValidatorError','@anncic-api/cache','get','1203726YOsONV','./exception/ApiError','IIntercept','ExcelService','3935477zPjagy','apply','Configuration','Apitest','default','2994jlYFHi','Intercept','@midwayjs/core','Init','4055GMIfYc','Logger','./types/common','./service/ExcelService','207BJadec','Files','toString','Body','1085266hRFXDW','@anncic-api/validator','ApiError','./decorator/Intercept','__esModule','./configuration','ScopeEnum','(((.+)+)+)+$','Param'];a9_0x40d8=function(){return _0x5c1a27;};return a9_0x40d8();}Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1e3),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0xac81bf(0x1e8));function a9_0x706f(_0x597d6a,_0x51999e){var _0x222fb8=a9_0x40d8();return a9_0x706f=function(_0x26cafc,_0x4db1e0){_0x26cafc=_0x26cafc-0x1df;var _0x40d869=_0x222fb8[_0x26cafc];return _0x40d869;},a9_0x706f(_0x597d6a,_0x51999e);}Object['defineProperty'](exports,a9_0xac81bf(0x1fd),{'enumerable':!![],'get':function(){var _0x4595d5=a9_0xac81bf;return core_1[_0x4595d5(0x1fd)];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1ef),{'enumerable':!![],'get':function(){var _0x513d9c=a9_0xac81bf;return core_1[_0x513d9c(0x1ef)];}}),Object[a9_0xac81bf(0x212)](exports,'Fields',{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1f1),{'enumerable':!![],'get':function(){var _0x306854=a9_0xac81bf;return core_1[_0x306854(0x1f1)];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1fa),{'enumerable':!![],'get':function(){var _0x39d3d7=a9_0xac81bf;return core_1[_0x39d3d7(0x1fa)];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){var _0x4b8c29=a9_0xac81bf;return core_1[_0x4b8c29(0x218)];}}),Object['defineProperty'](exports,a9_0xac81bf(0x20f),{'enumerable':!![],'get':function(){var _0x41c034=a9_0xac81bf;return core_1[_0x41c034(0x20f)];}}),Object['defineProperty'](exports,'Init',{'enumerable':!![],'get':function(){var _0xb5f37f=a9_0xac81bf;return core_1[_0xb5f37f(0x1e9)];}});var core_2=require(a9_0xac81bf(0x1e8));Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1fb),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x205),{'enumerable':!![],'get':function(){var _0x339387=a9_0xac81bf;return core_2[_0x339387(0x205)];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x1eb),{'enumerable':!![],'get':function(){var _0x2321e3=a9_0xac81bf;return core_2[_0x2321e3(0x1eb)];}}),Object[a9_0xac81bf(0x212)](exports,a9_0xac81bf(0x21d),{'enumerable':!![],'get':function(){var _0x9d504d=a9_0xac81bf;return core_2[_0x9d504d(0x21d)];}}),Object[a9_0xac81bf(0x212)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x41ef5b=a9_0xac81bf;return core_2[_0x41ef5b(0x209)];}}),Object['defineProperty'](exports,a9_0xac81bf(0x200),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0xac81bf(0x212)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x2f6a0b=a9_0xac81bf;return core_2[_0x2f6a0b(0x211)];}}),Object[a9_0xac81bf(0x212)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x2bde99=a9_0xac81bf;return core_2[_0x2bde99(0x1f8)];}}),global[a9_0xac81bf(0x1fc)]=getAppsConfig_1[a9_0xac81bf(0x1fc)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x5e4fc9=a10_0x7844;function a10_0x7844(_0x55a426,_0xfacb32){var _0x14b767=a10_0x23b8();return a10_0x7844=function(_0x3911cd,_0x20b352){_0x3911cd=_0x3911cd-0xcb;var _0x23b864=_0x14b767[_0x3911cd];return _0x23b864;},a10_0x7844(_0x55a426,_0xfacb32);}(function(_0x8bf736,_0x33df5e){var _0x4cc2a8=a10_0x7844,_0x1f1cda=_0x8bf736();while(!![]){try{var _0x431687=parseInt(_0x4cc2a8(0x100))/0x1*(-parseInt(_0x4cc2a8(0xef))/0x2)+-parseInt(_0x4cc2a8(0xfd))/0x3*(parseInt(_0x4cc2a8(0xe7))/0x4)+parseInt(_0x4cc2a8(0xcf))/0x5*(parseInt(_0x4cc2a8(0x107))/0x6)+-parseInt(_0x4cc2a8(0xf0))/0x7+-parseInt(_0x4cc2a8(0xec))/0x8+parseInt(_0x4cc2a8(0xee))/0x9+parseInt(_0x4cc2a8(0xe0))/0xa;if(_0x431687===_0x33df5e)break;else _0x1f1cda['push'](_0x1f1cda['shift']());}catch(_0x33ba7e){_0x1f1cda['push'](_0x1f1cda['shift']());}}}(a10_0x23b8,0xae06a));var a10_0x20b352=(function(){var _0x1e6bc9=!![];return function(_0x2d2b8b,_0x51cd4a){var _0xeb0a52=_0x1e6bc9?function(){if(_0x51cd4a){var _0x3d78df=_0x51cd4a['apply'](_0x2d2b8b,arguments);return _0x51cd4a=null,_0x3d78df;}}:function(){};return _0x1e6bc9=![],_0xeb0a52;};}()),a10_0x3911cd=a10_0x20b352(this,function(){var _0x5dcd70=a10_0x7844;return a10_0x3911cd['toString']()[_0x5dcd70(0xfb)](_0x5dcd70(0x101))[_0x5dcd70(0x10b)]()['constructor'](a10_0x3911cd)['search'](_0x5dcd70(0x101));});a10_0x3911cd();function a10_0x23b8(){var _0x5601fc=['__esModule','378084SBBDQM','HEADERS_CHECKCODE','checksign','37426DuAgqb','(((.+)+)+)+$','signature','HEADERS_DEVICE','Config','__decorate','abs','77784mHmWiV','token','password','padEnd','toString','anncicapi','timeout','design:type','HEADERS_LACK','fromEntries','请求超时,请重试或改善网络环境','length','465nEbWWI','getcheck','now','ApiService','验证失败','ScopeEnum','metadata','config','@midwayjs/core','devices','toLowerCase','Scope','secret=','device','function','ApiError','secret','22324460yIwLDY','logintimeout','crypto-js','object','MD5','sort','TIMEOUT','28neyHsp','getOwnPropertyDescriptor','requesttime','undefined','HEADERS_SIGNATURE','5202592jfMfVd','logintime','12769209JNCsjo','68yrvXGs','9373595hSSrzv','Provide','defineProperty','prototype','checkcode','entries','substring','map','decorate','TIMEOUT_LOGINTIME','push','search'];a10_0x23b8=function(){return _0x5601fc;};return a10_0x23b8();}'use strict';var __decorate=this&&this[a10_0x5e4fc9(0x105)]||function(_0x46682b,_0x3a3d2e,_0x5de056,_0x5092f7){var _0x546014=a10_0x5e4fc9,_0x22fb93=arguments[_0x546014(0xce)],_0x3b24f4=_0x22fb93<0x3?_0x3a3d2e:_0x5092f7===null?_0x5092f7=Object[_0x546014(0xe8)](_0x3a3d2e,_0x5de056):_0x5092f7,_0x499eac;if(typeof Reflect===_0x546014(0xe3)&&typeof Reflect[_0x546014(0xf8)]===_0x546014(0xdd))_0x3b24f4=Reflect[_0x546014(0xf8)](_0x46682b,_0x3a3d2e,_0x5de056,_0x5092f7);else{for(var _0x4e0881=_0x46682b[_0x546014(0xce)]-0x1;_0x4e0881>=0x0;_0x4e0881--)if(_0x499eac=_0x46682b[_0x4e0881])_0x3b24f4=(_0x22fb93<0x3?_0x499eac(_0x3b24f4):_0x22fb93>0x3?_0x499eac(_0x3a3d2e,_0x5de056,_0x3b24f4):_0x499eac(_0x3a3d2e,_0x5de056))||_0x3b24f4;}return _0x22fb93>0x3&&_0x3b24f4&&Object[_0x546014(0xf2)](_0x3a3d2e,_0x5de056,_0x3b24f4),_0x3b24f4;},__metadata=this&&this['__metadata']||function(_0x23ec98,_0x4fe1b7){var _0x750b2=a10_0x5e4fc9;if(typeof Reflect===_0x750b2(0xe3)&&typeof Reflect[_0x750b2(0xd5)]===_0x750b2(0xdd))return Reflect['metadata'](_0x23ec98,_0x4fe1b7);};Object[a10_0x5e4fc9(0xf2)](exports,a10_0x5e4fc9(0xfc),{'value':!![]}),exports[a10_0x5e4fc9(0xd2)]=void 0x0;const crypto_js_1=require(a10_0x5e4fc9(0xe2)),core_1=require(a10_0x5e4fc9(0xd7)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0x28d82b){var _0x2f83f0=a10_0x5e4fc9,_0xed8f2b;return _0x28d82b?(0x0,crypto_js_1[_0x2f83f0(0xe4)])(''+_0x28d82b+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x2f83f0(0xe4)])(''+_0x28d82b)[_0x2f83f0(0x10b)]()+(''+((_0xed8f2b=this[_0x2f83f0(0xd6)])===null||_0xed8f2b===void 0x0?void 0x0:_0xed8f2b[_0x2f83f0(0x109)])))[_0x2f83f0(0x10b)]())[_0x2f83f0(0x10b)]():'';}[a10_0x5e4fc9(0xd0)](_0x24d873,_0xa907d4,_0x1e754a=Date[a10_0x5e4fc9(0xd1)]()){var _0x2c8078=a10_0x5e4fc9;return{'Token':_0x24d873,'Logintime':_0x1e754a,'Checkcode':this[_0x2c8078(0xf4)](_0x24d873,_0xa907d4,_0x1e754a)};}['getsign'](_0x1a89c1={}){var _0x1b6df8=a10_0x5e4fc9,_0x2359a9,_0x1661e4;const _0x3f4aa7=[],_0x28015d=Object[_0x1b6df8(0xcc)](Object[_0x1b6df8(0xf5)](_0x1a89c1)[_0x1b6df8(0xf7)](_0x3ede6f=>[_0x3ede6f[0x0][_0x1b6df8(0xd9)](),_0x3ede6f[0x1]]));for(let _0x5073d7 of[_0x1b6df8(0xdc),_0x1b6df8(0xe9),_0x1b6df8(0x108),_0x1b6df8(0xed),_0x1b6df8(0xf4)]){if(typeof _0x28015d[_0x5073d7]==_0x1b6df8(0xea))throw new AnnError(ApiError_1[_0x1b6df8(0xde)][_0x1b6df8(0xcb)],{'message':'验证失败'});_0x3f4aa7[_0x1b6df8(0xfa)](_0x5073d7+'='+_0x28015d[_0x5073d7]);}_0x28015d['requesttime']&&((_0x2359a9=_0x28015d[_0x1b6df8(0xe9)])===null||_0x2359a9===void 0x0?void 0x0:_0x2359a9['length'])==0xa&&(_0x28015d[_0x1b6df8(0xe9)]=_0x28015d['requesttime']*0x3e8);if(this[_0x1b6df8(0xd6)][_0x1b6df8(0x10d)]&&parseInt((''+Date[_0x1b6df8(0xd1)]())[_0x1b6df8(0xf6)](0x0,0xd)[_0x1b6df8(0x10a)](0xd,'0'))-parseInt((''+Math[_0x1b6df8(0x106)](_0x28015d[_0x1b6df8(0xe9)]))[_0x1b6df8(0xf6)](0x0,0xd)[_0x1b6df8(0x10a)](0xd,'0'))>parseInt(this[_0x1b6df8(0xd6)][_0x1b6df8(0x10d)]))throw new AnnError(ApiError_1[_0x1b6df8(0xde)][_0x1b6df8(0xe6)],{'message':_0x1b6df8(0xcd),'requesttime':_0x28015d[_0x1b6df8(0xe9)],'timestamp':Date['now']()});if((((_0x1661e4=this[_0x1b6df8(0xd6)]['devices'][_0x28015d[_0x1b6df8(0xdc)]])===null||_0x1661e4===void 0x0?void 0x0:_0x1661e4[_0x1b6df8(0xe1)])||0x0)>0x0&&Date['now']()-Math[_0x1b6df8(0x106)](_0x28015d[_0x1b6df8(0xed)])>this['config']['devices'][_0x28015d['device']]['logintimeout'])throw new AnnError(ApiError_1[_0x1b6df8(0xde)][_0x1b6df8(0xf9)]);if(!this[_0x1b6df8(0xd6)][_0x1b6df8(0xd8)][_0x28015d[_0x1b6df8(0xdc)]]||!this['config'][_0x1b6df8(0xd8)][_0x28015d[_0x1b6df8(0xdc)]][_0x1b6df8(0xdf)]||!this['config']['devices'][_0x28015d['device']][_0x1b6df8(0xf4)])throw new AnnError(ApiError_1[_0x1b6df8(0xde)][_0x1b6df8(0x103)]);if(_0x28015d[_0x1b6df8(0x108)]&&_0x28015d[_0x1b6df8(0xf4)]!=this[_0x1b6df8(0xf4)](_0x28015d['token'],_0x28015d[_0x1b6df8(0xdc)],_0x28015d[_0x1b6df8(0xed)]))throw new AnnError(ApiError_1['ApiError'][_0x1b6df8(0xfe)]);return _0x3f4aa7['push'](_0x1b6df8(0xdb)+this[_0x1b6df8(0xd6)]['devices'][_0x28015d[_0x1b6df8(0xdc)]][_0x1b6df8(0xdf)]),(0x0,crypto_js_1[_0x1b6df8(0xe4)])(_0x3f4aa7[_0x1b6df8(0xe5)]()['join'](''))[_0x1b6df8(0x10b)]();}[a10_0x5e4fc9(0xf4)](_0x396b6f,_0x21665c,_0x3b00f6=Date[a10_0x5e4fc9(0xd1)]()){var _0x13b0c8=a10_0x5e4fc9,_0x30d415,_0x32838a,_0x472a57;if(!((_0x30d415=this[_0x13b0c8(0xd6)])===null||_0x30d415===void 0x0?void 0x0:_0x30d415[_0x13b0c8(0xd8)][_0x21665c])||!((_0x472a57=(_0x32838a=this[_0x13b0c8(0xd6)])===null||_0x32838a===void 0x0?void 0x0:_0x32838a[_0x13b0c8(0xd8)][_0x21665c])===null||_0x472a57===void 0x0?void 0x0:_0x472a57['checkcode']))throw new AnnError(ApiError_1[_0x13b0c8(0xde)][_0x13b0c8(0x103)]);return(0x0,crypto_js_1[_0x13b0c8(0xe4)])(''+_0x396b6f+(0x0,crypto_js_1[_0x13b0c8(0xe4)])(''+_0x3b00f6+(''+this[_0x13b0c8(0xd6)][_0x13b0c8(0xd8)][_0x21665c][_0x13b0c8(0xf4)]))[_0x13b0c8(0x10b)]())[_0x13b0c8(0x10b)]();}[a10_0x5e4fc9(0xff)](_0x269005={}){var _0x55aab3=a10_0x5e4fc9;const _0x2aed07=Object[_0x55aab3(0xcc)](Object['entries'](_0x269005)[_0x55aab3(0xf7)](_0x30e9e7=>[_0x30e9e7[0x0][_0x55aab3(0xd9)](),_0x30e9e7[0x1]]));if(!(_0x2aed07===null||_0x2aed07===void 0x0?void 0x0:_0x2aed07[_0x55aab3(0x102)]))throw new AnnError(ApiError_1['ApiError'][_0x55aab3(0xcb)],{'message':_0x55aab3(0xd3)});if((_0x2aed07===null||_0x2aed07===void 0x0?void 0x0:_0x2aed07[_0x55aab3(0x102)])!=this['getsign'](_0x2aed07))throw new AnnError(ApiError_1[_0x55aab3(0xde)][_0x55aab3(0xeb)],{'message':_0x55aab3(0xd3)});return!![];}};exports[a10_0x5e4fc9(0xd2)]=ApiService,__decorate([(0x0,core_1[a10_0x5e4fc9(0x104)])(a10_0x5e4fc9(0x10c)),__metadata(a10_0x5e4fc9(0x10e),Object)],ApiService[a10_0x5e4fc9(0xf3)],a10_0x5e4fc9(0xd6),void 0x0),exports[a10_0x5e4fc9(0xd2)]=ApiService=__decorate([(0x0,core_1[a10_0x5e4fc9(0xf1)])(),(0x0,core_1[a10_0x5e4fc9(0xda)])(core_1[a10_0x5e4fc9(0xd4)]['Singleton'])],ApiService);
|