anncic-api 1.4.33 → 1.4.34
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.d.ts +0 -1
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.d.ts +1 -3
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.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/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0xb0693e=a0_0xe35d;(function(_0x5f2565,_0x1731bb){var _0x44c092=a0_0xe35d,_0x5674c8=_0x5f2565();while(!![]){try{var _0x4ed483=parseInt(_0x44c092(0x11c))/0x1+-parseInt(_0x44c092(0x117))/0x2+-parseInt(_0x44c092(0x12c))/0x3+parseInt(_0x44c092(0x123))/0x4+parseInt(_0x44c092(0x125))/0x5+-parseInt(_0x44c092(0x11e))/0x6+parseInt(_0x44c092(0x124))/0x7;if(_0x4ed483===_0x1731bb)break;else _0x5674c8['push'](_0x5674c8['shift']());}catch(_0x1e5ec0){_0x5674c8['push'](_0x5674c8['shift']());}}}(a0_0x4bf1,0x9a563));var a0_0x3783ec=(function(){var _0xae10b8=!![];return function(_0x1f419b,_0x11d188){var _0x188e41=_0xae10b8?function(){if(_0x11d188){var _0x43e7c9=_0x11d188['apply'](_0x1f419b,arguments);return _0x11d188=null,_0x43e7c9;}}:function(){};return _0xae10b8=![],_0x188e41;};}()),a0_0x5c7866=a0_0x3783ec(this,function(){var _0x416e14=a0_0xe35d;return a0_0x5c7866[_0x416e14(0x128)]()[_0x416e14(0x121)](_0x416e14(0x11a))['toString']()[_0x416e14(0x12d)](a0_0x5c7866)[_0x416e14(0x121)]('(((.+)+)+)+$');});a0_0x5c7866();function a0_0x4bf1(){var _0x4c3372=['2316834tDbovS','constructor','65014PYgpZY','form','name','(((.+)+)+)+$','xml','218170LQcjEW','defineProperty','6927714lszqER','/runtime/.upload','zhiulanuiy7892387985hnoi','search','20mb','4585696sBGCyZ','5604606eZnBER','2131575gOyjYj','__esModule','default','toString','text','dhauo1234420123gg3234901','json'];a0_0x4bf1=function(){return _0x4c3372;};return a0_0x4bf1();}'use strict';function a0_0xe35d(_0x4493d0,_0x23b43c){var _0x3b2043=a0_0x4bf1();return a0_0xe35d=function(_0x5c7866,_0x3783ec){_0x5c7866=_0x5c7866-0x117;var _0x4bf103=_0x3b2043[_0x5c7866];return _0x4bf103;},a0_0xe35d(_0x4493d0,_0x23b43c);}Object[a0_0xb0693e(0x11d)](exports,a0_0xb0693e(0x126),{'value':!![]}),exports[a0_0xb0693e(0x127)]=_0x30cbfd=>{var _0x5ef0c4=a0_0xb0693e;return{'apitest':!![],'keys':_0x30cbfd[_0x5ef0c4(0x119)],'anncicapi':{'password':_0x5ef0c4(0x120),'devices':{'DEFAULT':{'secret':_0x5ef0c4(0x12a),'checkcode':_0x5ef0c4(0x12a)}}},'bodyParser':{'enableTypes':[_0x5ef0c4(0x12b),_0x5ef0c4(0x118),_0x5ef0c4(0x129),_0x5ef0c4(0x11b)],'formLimit':'20mb','jsonLimit':'20mb','textLimit':_0x5ef0c4(0x122),'xmlLimit':_0x5ef0c4(0x122)},'upload':{'tmpdir':_0x30cbfd['appDir']+_0x5ef0c4(0x11f),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x5ce88c=a1_0x2c07;function a1_0x2c07(_0x43f7a1,_0x4f56d6){var _0x3b4219=a1_0x4e38();return a1_0x2c07=function(_0x448570,_0x13a03d){_0x448570=_0x448570-0x11b;var _0x4e38aa=_0x3b4219[_0x448570];return _0x4e38aa;},a1_0x2c07(_0x43f7a1,_0x4f56d6);}(function(_0x48dcf1,_0x5a674c){var _0x26cb28=a1_0x2c07,_0x12003b=_0x48dcf1();while(!![]){try{var _0x341390=-parseInt(_0x26cb28(0x124))/0x1*(parseInt(_0x26cb28(0x121))/0x2)+-parseInt(_0x26cb28(0x11b))/0x3+parseInt(_0x26cb28(0x11f))/0x4*(parseInt(_0x26cb28(0x128))/0x5)+-parseInt(_0x26cb28(0x129))/0x6+-parseInt(_0x26cb28(0x120))/0x7+parseInt(_0x26cb28(0x12b))/0x8*(parseInt(_0x26cb28(0x11d))/0x9)+parseInt(_0x26cb28(0x122))/0xa*(parseInt(_0x26cb28(0x11e))/0xb);if(_0x341390===_0x5a674c)break;else _0x12003b['push'](_0x12003b['shift']());}catch(_0x450779){_0x12003b['push'](_0x12003b['shift']());}}}(a1_0x4e38,0x6e562));var a1_0x13a03d=(function(){var _0x3536b0=!![];return function(_0x32c14f,_0x5a34f1){var _0x1c66f3=_0x3536b0?function(){var _0x3e1aa5=a1_0x2c07;if(_0x5a34f1){var _0xd41fb3=_0x5a34f1[_0x3e1aa5(0x12c)](_0x32c14f,arguments);return _0x5a34f1=null,_0xd41fb3;}}:function(){};return _0x3536b0=![],_0x1c66f3;};}()),a1_0x448570=a1_0x13a03d(this,function(){var _0x5d1987=a1_0x2c07;return a1_0x448570[_0x5d1987(0x12a)]()['search'](_0x5d1987(0x127))[_0x5d1987(0x12a)]()[_0x5d1987(0x126)](a1_0x448570)[_0x5d1987(0x123)](_0x5d1987(0x127));});function a1_0x4e38(){var _0x8e86f3=['__esModule','constructor','(((.+)+)+)+$','35055HlatFc','3013002ceRUyF','toString','2790104SQQGCO','apply','1944417kDZdCc','defineProperty','18LfRpkP','16049ldDoce','68BbnNZp','3421971vrbZtP','80266lsUGnH','10110vtbUCP','search','5CGhRCt'];a1_0x4e38=function(){return _0x8e86f3;};return a1_0x4e38();}a1_0x448570();'use strict';Object[a1_0x5ce88c(0x11c)](exports,a1_0x5ce88c(0x125),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x46f98a=a2_0x1e3c;function a2_0x2ab6(){const _0x1ac7cd=['isArray','@midwayjs/core','attachment','devices','midwayLogger','function','@anncic-api/typeorm','anncic-api','clients','/apps','staticFile','handler','ACTION_ROUTE_KEY','HEADERS_SIGNATURE','@midwayjs/upload','isClass','11fzKGIK','682925RsSgZd','isFunction','application','prototype','19607SPtmcj','app','headers','26765AjOwfW','length','@midwayjs/koa','context','/runtime/apps-','decorate','./config/config.production','registerMethodHandler','__metadata','CustomConfiguration','Inject','ApiService','onReady','undefined','./exception/ApiError','bodyXml','target','design:type','__decorate','DEFAULT','(((.+)+)+)+$','key','proceed','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','1576702ZGyQvg','filterConfig','existsSync','1408SJYoRN','MidwayEnvironmentService','environment','toLowerCase','anncicapi','@anncic-api/event','getAppDir','732vCubBo','defineProperty','forEach','hanlderApplications','__esModule','addObject','dirs','.log','/apps/','getOwnPropertyDescriptor','1015236Eewavr','REQUEST_OBJ_CTX_KEY','metadata','@anncic-api/cache','4PJIzUH','query','checksign','log','MidwayDecoratorService','@midwayjs/static-file','./service/ApiService','Types','dir','isNull','koa','checkConfigKeys','loggerConfig','constructor','App','assign','intercept','statSync','isDirectory','700gGmNuX','request','./types/action','@anncic-api/core','defaultsDeep','ApiError','args','requestContext','_matchedRoute','config','toString','@midwayjs/cross-domain','koa-send','body','search','@midwayjs/i18n','method','default','3969516vvEvYE','decorator','getBaseDir','anncic-apihelper','device','upload','keys','input','tmpdir','readdirSync','string','./config/config.default','apimit','/runtime','7083RFbrkj','apply'];a2_0x2ab6=function(){return _0x1ac7cd;};return a2_0x2ab6();}(function(_0x1d59c2,_0x2f1446){const _0x5752e7=a2_0x1e3c,_0x161efc=_0x1d59c2();while(!![]){try{const _0x573d50=parseInt(_0x5752e7(0x216))/0x1+-parseInt(_0x5752e7(0x1b8))/0x2+parseInt(_0x5752e7(0x1cc))/0x3*(-parseInt(_0x5752e7(0x1d0))/0x4)+parseInt(_0x5752e7(0x21d))/0x5*(parseInt(_0x5752e7(0x1c2))/0x6)+-parseInt(_0x5752e7(0x21a))/0x7*(-parseInt(_0x5752e7(0x1bb))/0x8)+-parseInt(_0x5752e7(0x203))/0x9*(-parseInt(_0x5752e7(0x1e3))/0xa)+-parseInt(_0x5752e7(0x215))/0xb*(parseInt(_0x5752e7(0x1f5))/0xc);if(_0x573d50===_0x2f1446)break;else _0x161efc['push'](_0x161efc['shift']());}catch(_0x5f3e76){_0x161efc['push'](_0x161efc['shift']());}}}(a2_0x2ab6,0x68205));const a2_0x2843b4=(function(){let _0x3b2efc=!![];return function(_0xd7aeab,_0x38452f){const _0x1b6379=_0x3b2efc?function(){const _0x4158dc=a2_0x1e3c;if(_0x38452f){const _0x2d5a0d=_0x38452f[_0x4158dc(0x204)](_0xd7aeab,arguments);return _0x38452f=null,_0x2d5a0d;}}:function(){};return _0x3b2efc=![],_0x1b6379;};}()),a2_0x27b614=a2_0x2843b4(this,function(){const _0x4b7035=a2_0x1e3c;return a2_0x27b614[_0x4b7035(0x1ed)]()[_0x4b7035(0x1f1)](_0x4b7035(0x1b4))[_0x4b7035(0x1ed)]()[_0x4b7035(0x1dd)](a2_0x27b614)[_0x4b7035(0x1f1)]('(((.+)+)+)+$');});function a2_0x1e3c(_0x471672,_0x16cbf0){const _0x1ea426=a2_0x2ab6();return a2_0x1e3c=function(_0x27b614,_0x2843b4){_0x27b614=_0x27b614-0x1a3;let _0x2ab6e3=_0x1ea426[_0x27b614];return _0x2ab6e3;},a2_0x1e3c(_0x471672,_0x16cbf0);}a2_0x27b614();'use strict';var __decorate=this&&this[a2_0x46f98a(0x1b2)]||function(_0x5f3bfa,_0x207e19,_0x33f0a9,_0x1d1e7d){const _0x4eab2c=a2_0x46f98a;var _0x503aa4=arguments['length'],_0x4c771f=_0x503aa4<0x3?_0x207e19:_0x1d1e7d===null?_0x1d1e7d=Object[_0x4eab2c(0x1cb)](_0x207e19,_0x33f0a9):_0x1d1e7d,_0x2a7406;if(typeof Reflect==='object'&&typeof Reflect[_0x4eab2c(0x1a5)]===_0x4eab2c(0x20a))_0x4c771f=Reflect['decorate'](_0x5f3bfa,_0x207e19,_0x33f0a9,_0x1d1e7d);else{for(var _0x23937f=_0x5f3bfa['length']-0x1;_0x23937f>=0x0;_0x23937f--)if(_0x2a7406=_0x5f3bfa[_0x23937f])_0x4c771f=(_0x503aa4<0x3?_0x2a7406(_0x4c771f):_0x503aa4>0x3?_0x2a7406(_0x207e19,_0x33f0a9,_0x4c771f):_0x2a7406(_0x207e19,_0x33f0a9))||_0x4c771f;}return _0x503aa4>0x3&&_0x4c771f&&Object[_0x4eab2c(0x1c3)](_0x207e19,_0x33f0a9,_0x4c771f),_0x4c771f;},__metadata=this&&this[a2_0x46f98a(0x1a8)]||function(_0x3f66ef,_0x298495){const _0x466045=a2_0x46f98a;if(typeof Reflect==='object'&&typeof Reflect[_0x466045(0x1ce)]===_0x466045(0x20a))return Reflect[_0x466045(0x1ce)](_0x3f66ef,_0x298495);};Object[a2_0x46f98a(0x1c3)](exports,a2_0x46f98a(0x1c6),{'value':!![]}),exports[a2_0x46f98a(0x1a9)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x46f98a(0x206)),ApiError_1=require(a2_0x46f98a(0x1ae)),ApiService_1=require(a2_0x46f98a(0x1d6)),action_1=require(a2_0x46f98a(0x1e5)),fs=require('fs'),koasend=require(a2_0x46f98a(0x1ef)),koa=require(a2_0x46f98a(0x21f)),i18n=require(a2_0x46f98a(0x1f2)),upload=require(a2_0x46f98a(0x213)),staticFile=require(a2_0x46f98a(0x1d5)),crossDomain=require(a2_0x46f98a(0x1ee)),ConfigDefault=require(a2_0x46f98a(0x200)),ConfigProduction=require(a2_0x46f98a(0x1a6)),anncic=require(a2_0x46f98a(0x1e6)),anncicCache=require(a2_0x46f98a(0x1cf)),anncicEvent=require(a2_0x46f98a(0x1c0)),anncicTypeorm=require(a2_0x46f98a(0x20b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x46f98a(0x1f8));let CustomConfiguration=class CustomConfiguration{async[a2_0x46f98a(0x1ac)](){const _0x3c8a58=a2_0x46f98a;await this[_0x3c8a58(0x1b9)](),await this[_0x3c8a58(0x1dc)](),await this[_0x3c8a58(0x1db)](),await this['handlerActionRoute'](),await this[_0x3c8a58(0x1c5)]();}async['checkConfigKeys'](){}async['handlerActionRoute'](){const _0x1c89ad=a2_0x46f98a,_0x57e51a=this['config']['getConfiguration']();this[_0x1c89ad(0x1f6)][_0x1c89ad(0x1a7)](action_1[_0x1c89ad(0x211)],_0x1d2f6d=>{const _0x23c0a7=_0x1c89ad,_0x2e4bcd=_0x1d2f6d[_0x23c0a7(0x1ce)];return{'before':async _0x589c1f=>{const _0x4cf5cc=_0x23c0a7;var _0x29b661,_0x570ab0;const _0x16647c=(_0x29b661=_0x589c1f===null||_0x589c1f===void 0x0?void 0x0:_0x589c1f[_0x4cf5cc(0x1b0)])===null||_0x29b661===void 0x0?void 0x0:_0x29b661[core_2[_0x4cf5cc(0x1cd)]];if(_0x16647c&&(_0x2e4bcd===null||_0x2e4bcd===void 0x0?void 0x0:_0x2e4bcd[_0x4cf5cc(0x201)])){if(!this[_0x4cf5cc(0x1ab)][_0x4cf5cc(0x1d2)]((_0x570ab0=_0x16647c===null||_0x16647c===void 0x0?void 0x0:_0x16647c['request'])===null||_0x570ab0===void 0x0?void 0x0:_0x570ab0[_0x4cf5cc(0x21c)]))throw new AnnError(ApiError_1[_0x4cf5cc(0x1e8)][_0x4cf5cc(0x212)]);}},'around':async _0x3b3bc9=>{const _0x108a83=_0x23c0a7;var _0x1256c8,_0x34aa18,_0x23ec37,_0x371407,_0x627af7;const _0x555428=(_0x1256c8=_0x3b3bc9===null||_0x3b3bc9===void 0x0?void 0x0:_0x3b3bc9[_0x108a83(0x1b0)])===null||_0x1256c8===void 0x0?void 0x0:_0x1256c8[core_2[_0x108a83(0x1cd)]];if(_0x555428&&(_0x2e4bcd===null||_0x2e4bcd===void 0x0?void 0x0:_0x2e4bcd[_0x108a83(0x201)])&&((_0x2e4bcd===null||_0x2e4bcd===void 0x0?void 0x0:_0x2e4bcd[_0x108a83(0x1e0)])||typeof(_0x2e4bcd===null||_0x2e4bcd===void 0x0?void 0x0:_0x2e4bcd[_0x108a83(0x1e0)])==_0x108a83(0x1ad))){if(((_0x34aa18=_0x555428[_0x108a83(0x21c)])===null||_0x34aa18===void 0x0?void 0x0:_0x34aa18[_0x108a83(0x1f9)])&&((_0x627af7=(_0x371407=(_0x23ec37=_0x57e51a===null||_0x57e51a===void 0x0?void 0x0:_0x57e51a[_0x108a83(0x1bf)])===null||_0x23ec37===void 0x0?void 0x0:_0x23ec37[_0x108a83(0x208)])===null||_0x371407===void 0x0?void 0x0:_0x371407[_0x555428[_0x108a83(0x21c)]['device']])===null||_0x627af7===void 0x0?void 0x0:_0x627af7[_0x108a83(0x1e0)])){const _0x37851c=Array[_0x108a83(0x205)](_0x57e51a[_0x108a83(0x1bf)][_0x108a83(0x208)][_0x555428[_0x108a83(0x21c)][_0x108a83(0x1f9)]][_0x108a83(0x1e0)])?_0x57e51a[_0x108a83(0x1bf)]['devices'][_0x555428['headers'][_0x108a83(0x1f9)]][_0x108a83(0x1e0)]:[_0x57e51a['anncicapi'][_0x108a83(0x208)][_0x555428['headers'][_0x108a83(0x1f9)]]['intercept']];for(const _0x45c810 of _0x37851c){if(core_1[_0x108a83(0x1d7)][_0x108a83(0x214)](_0x45c810)||typeof _0x45c810==_0x108a83(0x1ff)){const _0x14f37a=await _0x555428[_0x108a83(0x1ea)]['getAsync'](_0x45c810);typeof(_0x14f37a===null||_0x14f37a===void 0x0?void 0x0:_0x14f37a[_0x108a83(0x210)])==_0x108a83(0x20a)&&await _0x14f37a['handler'](typeof(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1f3)])=='string'&&(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1eb)])?_0x555428['method'][_0x108a83(0x1be)]()+'@'+(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1eb)]):undefined,_0x555428,_0x2e4bcd);}else core_1[_0x108a83(0x1d7)][_0x108a83(0x217)](_0x45c810)&&await _0x45c810(typeof(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1f3)])==_0x108a83(0x1ff)&&(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1eb)])?_0x555428['method'][_0x108a83(0x1be)]()+'@'+(_0x555428===null||_0x555428===void 0x0?void 0x0:_0x555428[_0x108a83(0x1eb)]):undefined,_0x555428,_0x2e4bcd);}}}return await _0x3b3bc9[_0x108a83(0x1b6)](..._0x3b3bc9[_0x108a83(0x1e9)]);},'afterThrow':(_0x302a7a,_0x53197c)=>{throw _0x53197c;}};});}async[a2_0x46f98a(0x1c5)](){const _0x4525da=a2_0x46f98a;this[_0x4525da(0x218)]['getApplications']([_0x4525da(0x1da)])[_0x4525da(0x1c4)](_0x54d9ba=>{const _0x22e9ee=_0x4525da;(_0x54d9ba===null||_0x54d9ba===void 0x0?void 0x0:_0x54d9ba[_0x22e9ee(0x1a3)])&&Object['defineProperties'](_0x54d9ba[_0x22e9ee(0x1a3)],{'ok':{'value':function(_0xf39af3,_0x2e3120,_0x5021dd=0x0){return{'code':_0x5021dd,'data':_0xf39af3,'extra':_0x2e3120};}},'input':{'value':function(_0x5a3156,_0x3b087a){const _0x8a3660=_0x22e9ee;var _0x277fc3;const _0x2c18b5=lodash[_0x8a3660(0x1e7)]({},this[_0x8a3660(0x1e4)][_0x8a3660(0x1f0)]||this['request'][((_0x277fc3=config===null||config===void 0x0?void 0x0:config[_0x8a3660(0x1af)])===null||_0x277fc3===void 0x0?void 0x0:_0x277fc3[_0x8a3660(0x1b5)])||'body']||{},this[_0x8a3660(0x1e4)][_0x8a3660(0x1d1)]||{});return _0x5a3156?lodash['get'](_0x2c18b5,_0x5a3156,_0x3b087a):_0x2c18b5;}},'when':{'value':async function(_0xc26c36,_0x5d41a2){const _0x1c843f=_0x22e9ee,_0x562e69=this['input'](_0xc26c36,null);if(!lodash[_0x1c843f(0x1d9)](_0x562e69))return await _0x5d41a2(_0x562e69);}},'only':{'value':function(_0xe0d94){const _0x41af2d=_0x22e9ee,_0x400392={};for(let _0x4e307b=0x0;_0x4e307b<_0xe0d94[_0x41af2d(0x21e)];_0x4e307b++){lodash[_0x41af2d(0x205)](_0xe0d94[_0x4e307b])&&_0xe0d94[_0x4e307b][_0x41af2d(0x21e)]>0x0&&lodash['isString'](_0xe0d94[_0x4e307b][0x0])&&(_0x400392[_0xe0d94[_0x4e307b][0x0]]=this[_0x41af2d(0x1fc)](_0xe0d94[_0x4e307b][0x0],_0xe0d94[_0x4e307b][_0x41af2d(0x21e)]>0x1?_0xe0d94[_0x4e307b][0x1]:null));}return _0x400392;}},'koasend':{'value':function(_0x3a7f0e,_0x3b2b8b){const _0x3c2237=_0x22e9ee;if(!fs['existsSync'](this['app'][_0x3c2237(0x1c1)]()+'/'+_0x3a7f0e))return'文件不存在';return this[_0x3c2237(0x207)](_0x3b2b8b||_0x3a7f0e),koasend(this,_0x3a7f0e);}}});});}async[a2_0x46f98a(0x1dc)](){const _0x37907f=a2_0x46f98a;var _0x5a05bf,_0x34ea74;if(fs[_0x37907f(0x1ba)](this[_0x37907f(0x21b)]['getBaseDir']()+_0x37907f(0x20e))&&fs[_0x37907f(0x1e1)](this['app'][_0x37907f(0x1f7)]()+'/apps')[_0x37907f(0x1e2)]()){const _0x1e2c6a=this[_0x37907f(0x1ec)]['getConfiguration'](),_0x100ad1=((_0x5a05bf=_0x1e2c6a===null||_0x1e2c6a===void 0x0?void 0x0:_0x1e2c6a[_0x37907f(0x209)])===null||_0x5a05bf===void 0x0?void 0x0:_0x5a05bf[_0x37907f(0x20d)])||{};for(const _0x323288 of fs[_0x37907f(0x1fe)](this[_0x37907f(0x21b)]['getBaseDir']()+_0x37907f(0x20e))){if(!fs[_0x37907f(0x1e1)](this['app']['getBaseDir']()+_0x37907f(0x1ca)+_0x323288)[_0x37907f(0x1e2)]())continue;if(_0x100ad1===null||_0x100ad1===void 0x0?void 0x0:_0x100ad1[_0x323288])continue;_0x100ad1[_0x323288]=Object[_0x37907f(0x1df)]({},((_0x34ea74=_0x1e2c6a===null||_0x1e2c6a===void 0x0?void 0x0:_0x1e2c6a[_0x37907f(0x209)])===null||_0x34ea74===void 0x0?void 0x0:_0x34ea74[_0x37907f(0x1f4)])||{'maxSize':'1m','dir':this[_0x37907f(0x21b)][_0x37907f(0x1c1)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x37907f(0x1bd)]['isDevelopmentEnvironment'](),'fileLogName':_0x323288+_0x37907f(0x1c9),'dir':this[_0x37907f(0x21b)][_0x37907f(0x1c1)]()+_0x37907f(0x1a4)+_0x323288+'-log'});}Object[_0x37907f(0x1fb)](_0x100ad1)[_0x37907f(0x21e)]>0x0&&(!_0x1e2c6a[_0x37907f(0x209)]&&(_0x1e2c6a[_0x37907f(0x209)]={'default':{'maxSize':'1m','dir':this['app']['getAppDir']()+_0x37907f(0x202)}}),_0x1e2c6a['midwayLogger'][_0x37907f(0x20d)]=_0x100ad1),this[_0x37907f(0x1ec)][_0x37907f(0x1c7)](_0x1e2c6a);}}async[a2_0x46f98a(0x1b9)](){const _0x36106f=a2_0x46f98a;var _0x51ad83,_0x45c395,_0xd5507a,_0x1905c2,_0x1504b0,_0x51d978;const _0x5e6957=this['config']['getConfiguration']();((_0x45c395=(_0x51ad83=_0x5e6957===null||_0x5e6957===void 0x0?void 0x0:_0x5e6957[_0x36106f(0x1bf)])===null||_0x51ad83===void 0x0?void 0x0:_0x51ad83[_0x36106f(0x208)])===null||_0x45c395===void 0x0?void 0x0:_0x45c395['DEFAULT'])&&Object[_0x36106f(0x1fb)](_0x5e6957[_0x36106f(0x1bf)]['devices'])[_0x36106f(0x21e)]>0x1&&delete _0x5e6957[_0x36106f(0x1bf)][_0x36106f(0x208)][_0x36106f(0x1b3)];if((_0xd5507a=_0x5e6957===null||_0x5e6957===void 0x0?void 0x0:_0x5e6957[_0x36106f(0x20f)])===null||_0xd5507a===void 0x0?void 0x0:_0xd5507a[_0x36106f(0x1c8)])for(const _0xa8b573 in _0x5e6957['staticFile']['dirs']){((_0x1905c2=_0x5e6957['staticFile'][_0x36106f(0x1c8)][_0xa8b573])===null||_0x1905c2===void 0x0?void 0x0:_0x1905c2['dir'])&&typeof((_0x1504b0=_0x5e6957[_0x36106f(0x20f)][_0x36106f(0x1c8)][_0xa8b573])===null||_0x1504b0===void 0x0?void 0x0:_0x1504b0[_0x36106f(0x1d8)])==_0x36106f(0x1ff)&&!fs[_0x36106f(0x1ba)](_0x5e6957[_0x36106f(0x20f)][_0x36106f(0x1c8)][_0xa8b573][_0x36106f(0x1d8)])&&(fs['mkdirSync'](_0x5e6957[_0x36106f(0x20f)]['dirs'][_0xa8b573][_0x36106f(0x1d8)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x5e6957[_0x36106f(0x20f)]['dirs'][_0xa8b573][_0x36106f(0x1d8)]));}((_0x51d978=_0x5e6957===null||_0x5e6957===void 0x0?void 0x0:_0x5e6957[_0x36106f(0x1fa)])===null||_0x51d978===void 0x0?void 0x0:_0x51d978[_0x36106f(0x1fd)])&&!fs[_0x36106f(0x1ba)](_0x5e6957[_0x36106f(0x1fa)][_0x36106f(0x1fd)])&&(fs['mkdirSync'](_0x5e6957['upload']['tmpdir'],{'recursive':!![]}),console[_0x36106f(0x1d3)](_0x36106f(0x1b7)+_0x5e6957['upload'][_0x36106f(0x1fd)])),this[_0x36106f(0x1ec)][_0x36106f(0x1c7)](_0x5e6957);}};__decorate([(0x0,core_1[a2_0x46f98a(0x1de)])(),__metadata(a2_0x46f98a(0x1b1),Object)],CustomConfiguration['prototype'],a2_0x46f98a(0x21b),void 0x0),__decorate([(0x0,core_1[a2_0x46f98a(0x1aa)])(),__metadata(a2_0x46f98a(0x1b1),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x46f98a(0x1ec),void 0x0),__decorate([(0x0,core_1[a2_0x46f98a(0x1aa)])(),__metadata(a2_0x46f98a(0x1b1),core_2[a2_0x46f98a(0x1d4)])],CustomConfiguration['prototype'],a2_0x46f98a(0x1f6),void 0x0),__decorate([(0x0,core_1[a2_0x46f98a(0x1aa)])(),__metadata(a2_0x46f98a(0x1b1),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x46f98a(0x219)],a2_0x46f98a(0x218),void 0x0),__decorate([(0x0,core_1[a2_0x46f98a(0x1aa)])(),__metadata(a2_0x46f98a(0x1b1),core_2[a2_0x46f98a(0x1bc)])],CustomConfiguration[a2_0x46f98a(0x219)],a2_0x46f98a(0x1bd),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',ApiService_1[a2_0x46f98a(0x1ab)])],CustomConfiguration['prototype'],a2_0x46f98a(0x1ab),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x46f98a(0x20c),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
function a2_0x2660(){const _0x5398f6=['prototype','config','length','toString','requestContext','defineProperty','REQUEST_OBJ_CTX_KEY','ApiService','search','/apps','handler','handlerActionRoute','984KFiWmu','./types/action','decorator','309090egFxNb','assign','anncicapi','App','dirs','tmpdir','176422hCtdYR','toLowerCase','dir','bodyXml','headers','statSync','onReady','get','@anncic-api/validator','midwayLogger','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','device','mkdirSync','getOwnPropertyDescriptor','5toTRuC','文件不存在','@midwayjs/core','ACTION_ROUTE_KEY','__metadata','app','query','environment','keys','input','clients','loggerConfig','isString','intercept','__esModule','staticFile','devices','__decorate','MidwayDecoratorService','373470IAMMyP','application','checkConfigKeys','target','args','forEach','259ymRleX','./config/config.default','proceed','DEFAULT','isFunction','defineProperties','existsSync','@midwayjs/upload','@midwayjs/cross-domain','koa-send','log','248616yZjXeC','@anncic-api/event','string','koa','defaultsDeep','readdirSync','request','registerMethodHandler','hanlderApplications','default','1364nzMHpR','context','(((.+)+)+)+$','HEADERS_SIGNATURE','getConfiguration','upload','apply','MidwayApplicationManager','MidwayConfigService','/runtime','addObject','Configuration','body','CustomConfiguration','_matchedRoute','metadata','1017tgfYDW','./service/ApiService','method','isDirectory','@midwayjs/static-file','object','@anncic-api/core','getApplications','design:type','checksign','getAsync','./config/config.production','anncic-api','getBaseDir','constructor','/apps/','apimit','Inject','MidwayEnvironmentService','isArray','getAppDir','@anncic-api/cache','function','3259440GaOXeU','filterConfig','decorate'];a2_0x2660=function(){return _0x5398f6;};return a2_0x2660();}const a2_0x281704=a2_0x2e3c;(function(_0x16d01a,_0x4200ce){const _0x3e2135=a2_0x2e3c,_0x3403de=_0x16d01a();while(!![]){try{const _0x446760=-parseInt(_0x3e2135(0x147))/0x1+parseInt(_0x3e2135(0x141))/0x2+parseInt(_0x3e2135(0x193))/0x3*(-parseInt(_0x3e2135(0x183))/0x4)+parseInt(_0x3e2135(0x155))/0x5*(-parseInt(_0x3e2135(0x168))/0x6)+-parseInt(_0x3e2135(0x16e))/0x7*(-parseInt(_0x3e2135(0x13e))/0x8)+-parseInt(_0x3e2135(0x179))/0x9+parseInt(_0x3e2135(0x12f))/0xa;if(_0x446760===_0x4200ce)break;else _0x3403de['push'](_0x3403de['shift']());}catch(_0x3e2493){_0x3403de['push'](_0x3403de['shift']());}}}(a2_0x2660,0x192ee));const a2_0x3118a1=(function(){let _0x30b970=!![];return function(_0x1efd58,_0x522480){const _0x104654=_0x30b970?function(){const _0x2542ea=a2_0x2e3c;if(_0x522480){const _0x5c1867=_0x522480[_0x2542ea(0x189)](_0x1efd58,arguments);return _0x522480=null,_0x5c1867;}}:function(){};return _0x30b970=![],_0x104654;};}()),a2_0x216eb5=a2_0x3118a1(this,function(){const _0x4d29ab=a2_0x2e3c;return a2_0x216eb5['toString']()[_0x4d29ab(0x13a)](_0x4d29ab(0x185))[_0x4d29ab(0x135)]()[_0x4d29ab(0x126)](a2_0x216eb5)[_0x4d29ab(0x13a)](_0x4d29ab(0x185));});function a2_0x2e3c(_0x5bc54f,_0x555f3b){const _0x3b5364=a2_0x2660();return a2_0x2e3c=function(_0x216eb5,_0x3118a1){_0x216eb5=_0x216eb5-0x122;let _0x2660bd=_0x3b5364[_0x216eb5];return _0x2660bd;},a2_0x2e3c(_0x5bc54f,_0x555f3b);}a2_0x216eb5();'use strict';var __decorate=this&&this[a2_0x281704(0x166)]||function(_0x531a33,_0x1e12d7,_0x3ceb2a,_0x131d20){const _0x5a9d15=a2_0x281704;var _0x4dc101=arguments[_0x5a9d15(0x134)],_0x30d159=_0x4dc101<0x3?_0x1e12d7:_0x131d20===null?_0x131d20=Object[_0x5a9d15(0x154)](_0x1e12d7,_0x3ceb2a):_0x131d20,_0x33a72b;if(typeof Reflect==='object'&&typeof Reflect[_0x5a9d15(0x131)]===_0x5a9d15(0x12e))_0x30d159=Reflect[_0x5a9d15(0x131)](_0x531a33,_0x1e12d7,_0x3ceb2a,_0x131d20);else{for(var _0x4fad5c=_0x531a33[_0x5a9d15(0x134)]-0x1;_0x4fad5c>=0x0;_0x4fad5c--)if(_0x33a72b=_0x531a33[_0x4fad5c])_0x30d159=(_0x4dc101<0x3?_0x33a72b(_0x30d159):_0x4dc101>0x3?_0x33a72b(_0x1e12d7,_0x3ceb2a,_0x30d159):_0x33a72b(_0x1e12d7,_0x3ceb2a))||_0x30d159;}return _0x4dc101>0x3&&_0x30d159&&Object['defineProperty'](_0x1e12d7,_0x3ceb2a,_0x30d159),_0x30d159;},__metadata=this&&this[a2_0x281704(0x159)]||function(_0x588a4c,_0x45d76a){const _0x3a0581=a2_0x281704;if(typeof Reflect===_0x3a0581(0x198)&&typeof Reflect[_0x3a0581(0x192)]===_0x3a0581(0x12e))return Reflect[_0x3a0581(0x192)](_0x588a4c,_0x45d76a);};Object[a2_0x281704(0x137)](exports,a2_0x281704(0x163),{'value':!![]}),exports[a2_0x281704(0x190)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x281704(0x157)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x281704(0x194)),action_1=require(a2_0x281704(0x13f)),fs=require('fs'),koasend=require(a2_0x281704(0x177)),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),upload=require(a2_0x281704(0x175)),staticFile=require(a2_0x281704(0x197)),crossDomain=require(a2_0x281704(0x176)),ConfigDefault=require(a2_0x281704(0x16f)),ConfigProduction=require(a2_0x281704(0x123)),anncic=require(a2_0x281704(0x199)),anncicCache=require(a2_0x281704(0x12d)),anncicEvent=require(a2_0x281704(0x17a)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x281704(0x14f)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x281704(0x14d)](){const _0x59d20c=a2_0x281704;await this[_0x59d20c(0x130)](),await this['loggerConfig'](),await this[_0x59d20c(0x16a)](),await this[_0x59d20c(0x13d)](),await this[_0x59d20c(0x181)]();}async['checkConfigKeys'](){}async[a2_0x281704(0x13d)](){const _0x35523f=a2_0x281704,_0x24c614=this[_0x35523f(0x133)][_0x35523f(0x187)]();this['decorator'][_0x35523f(0x180)](action_1[_0x35523f(0x158)],_0x4b208a=>{const _0x34a0b9=_0x35523f,_0x121cb0=_0x4b208a[_0x34a0b9(0x192)];return{'before':async _0x4c0ea1=>{const _0x1aad6b=_0x34a0b9;var _0x3e5161,_0x54ace2;const _0x2c787a=(_0x3e5161=_0x4c0ea1===null||_0x4c0ea1===void 0x0?void 0x0:_0x4c0ea1['target'])===null||_0x3e5161===void 0x0?void 0x0:_0x3e5161[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x2c787a&&(_0x121cb0===null||_0x121cb0===void 0x0?void 0x0:_0x121cb0[_0x1aad6b(0x128)])){if(!this[_0x1aad6b(0x139)][_0x1aad6b(0x19c)]((_0x54ace2=_0x2c787a===null||_0x2c787a===void 0x0?void 0x0:_0x2c787a[_0x1aad6b(0x17f)])===null||_0x54ace2===void 0x0?void 0x0:_0x54ace2['headers']))throw new AnnError(ApiError_1['ApiError'][_0x1aad6b(0x186)]);}},'around':async _0x52874a=>{const _0x562b38=_0x34a0b9;var _0x944b3f,_0x1536b8,_0x5059e6,_0x1deca0,_0x5b0176;const _0x20fc79=(_0x944b3f=_0x52874a===null||_0x52874a===void 0x0?void 0x0:_0x52874a[_0x562b38(0x16b)])===null||_0x944b3f===void 0x0?void 0x0:_0x944b3f[core_2[_0x562b38(0x138)]];if(_0x20fc79&&(_0x121cb0===null||_0x121cb0===void 0x0?void 0x0:_0x121cb0[_0x562b38(0x128)])&&((_0x121cb0===null||_0x121cb0===void 0x0?void 0x0:_0x121cb0[_0x562b38(0x162)])||typeof(_0x121cb0===null||_0x121cb0===void 0x0?void 0x0:_0x121cb0[_0x562b38(0x162)])=='undefined')){if(((_0x1536b8=_0x20fc79[_0x562b38(0x14b)])===null||_0x1536b8===void 0x0?void 0x0:_0x1536b8[_0x562b38(0x152)])&&((_0x5b0176=(_0x1deca0=(_0x5059e6=_0x24c614===null||_0x24c614===void 0x0?void 0x0:_0x24c614[_0x562b38(0x143)])===null||_0x5059e6===void 0x0?void 0x0:_0x5059e6[_0x562b38(0x165)])===null||_0x1deca0===void 0x0?void 0x0:_0x1deca0[_0x20fc79[_0x562b38(0x14b)][_0x562b38(0x152)]])===null||_0x5b0176===void 0x0?void 0x0:_0x5b0176[_0x562b38(0x162)])){const _0x9449b6=Array[_0x562b38(0x12b)](_0x24c614[_0x562b38(0x143)]['devices'][_0x20fc79[_0x562b38(0x14b)][_0x562b38(0x152)]][_0x562b38(0x162)])?_0x24c614['anncicapi'][_0x562b38(0x165)][_0x20fc79['headers'][_0x562b38(0x152)]][_0x562b38(0x162)]:[_0x24c614['anncicapi'][_0x562b38(0x165)][_0x20fc79['headers']['device']][_0x562b38(0x162)]];for(const _0x3bef85 of _0x9449b6){if(core_1['Types']['isClass'](_0x3bef85)||typeof _0x3bef85=='string'){const _0x1af2c0=await _0x20fc79[_0x562b38(0x136)][_0x562b38(0x122)](_0x3bef85);typeof(_0x1af2c0===null||_0x1af2c0===void 0x0?void 0x0:_0x1af2c0['handler'])=='function'&&await _0x1af2c0[_0x562b38(0x13c)](typeof(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79[_0x562b38(0x195)])==_0x562b38(0x17b)&&(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79[_0x562b38(0x191)])?_0x20fc79[_0x562b38(0x195)][_0x562b38(0x148)]()+'@'+(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79['_matchedRoute']):undefined,_0x20fc79,_0x121cb0);}else core_1['Types'][_0x562b38(0x172)](_0x3bef85)&&await _0x3bef85(typeof(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79[_0x562b38(0x195)])=='string'&&(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79[_0x562b38(0x191)])?_0x20fc79[_0x562b38(0x195)][_0x562b38(0x148)]()+'@'+(_0x20fc79===null||_0x20fc79===void 0x0?void 0x0:_0x20fc79[_0x562b38(0x191)]):undefined,_0x20fc79,_0x121cb0);}}}return await _0x52874a[_0x562b38(0x170)](..._0x52874a[_0x562b38(0x16c)]);},'afterThrow':(_0x35a7b2,_0x3c50fa)=>{throw _0x3c50fa;}};});}async[a2_0x281704(0x181)](){const _0x55b31c=a2_0x281704;this[_0x55b31c(0x169)][_0x55b31c(0x19a)]([_0x55b31c(0x17c)])[_0x55b31c(0x16d)](_0x5e4edf=>{const _0x18f395=_0x55b31c;(_0x5e4edf===null||_0x5e4edf===void 0x0?void 0x0:_0x5e4edf[_0x18f395(0x184)])&&Object[_0x18f395(0x173)](_0x5e4edf[_0x18f395(0x184)],{'ok':{'value':function(_0xeb5a0e,_0x41df81,_0x327e81=0x0){return{'code':_0x327e81,'data':_0xeb5a0e,'extra':_0x41df81};}},'input':{'value':function(_0x51590f,_0x4ec237){const _0x941ef4=_0x18f395;var _0x18c258;const _0x11d249=lodash[_0x941ef4(0x17d)]({},this[_0x941ef4(0x17f)][_0x941ef4(0x18f)]||this[_0x941ef4(0x17f)][((_0x18c258=config===null||config===void 0x0?void 0x0:config[_0x941ef4(0x14a)])===null||_0x18c258===void 0x0?void 0x0:_0x18c258['key'])||_0x941ef4(0x18f)]||{},this['request'][_0x941ef4(0x15b)]||{});return _0x51590f?lodash[_0x941ef4(0x14e)](_0x11d249,_0x51590f,_0x4ec237):_0x11d249;}},'when':{'value':async function(_0x4db67f,_0x3b6aef){const _0x30499a=this['input'](_0x4db67f,null);if(!lodash['isNull'](_0x30499a))return await _0x3b6aef(_0x30499a);}},'only':{'value':function(_0x4f95e5){const _0x5563be=_0x18f395,_0x44119b={};for(let _0x1b3eda=0x0;_0x1b3eda<_0x4f95e5[_0x5563be(0x134)];_0x1b3eda++){lodash['isArray'](_0x4f95e5[_0x1b3eda])&&_0x4f95e5[_0x1b3eda][_0x5563be(0x134)]>0x0&&lodash[_0x5563be(0x161)](_0x4f95e5[_0x1b3eda][0x0])&&(_0x44119b[_0x4f95e5[_0x1b3eda][0x0]]=this[_0x5563be(0x15e)](_0x4f95e5[_0x1b3eda][0x0],_0x4f95e5[_0x1b3eda]['length']>0x1?_0x4f95e5[_0x1b3eda][0x1]:null));}return _0x44119b;}},'koasend':{'value':function(_0x2edf07,_0x5e81e4){const _0x495239=_0x18f395;if(!fs[_0x495239(0x174)](this[_0x495239(0x15a)][_0x495239(0x12c)]()+'/'+_0x2edf07))return _0x495239(0x156);return this['attachment'](_0x5e81e4||_0x2edf07),koasend(this,_0x2edf07);}}});});}async[a2_0x281704(0x160)](){const _0x44fe2a=a2_0x281704;var _0x975330,_0x347f3c;if(fs[_0x44fe2a(0x174)](this[_0x44fe2a(0x15a)][_0x44fe2a(0x125)]()+_0x44fe2a(0x13b))&&fs[_0x44fe2a(0x14c)](this[_0x44fe2a(0x15a)][_0x44fe2a(0x125)]()+'/apps')['isDirectory']()){const _0x40183a=this[_0x44fe2a(0x133)][_0x44fe2a(0x187)](),_0x4b83ad=((_0x975330=_0x40183a===null||_0x40183a===void 0x0?void 0x0:_0x40183a[_0x44fe2a(0x150)])===null||_0x975330===void 0x0?void 0x0:_0x975330[_0x44fe2a(0x15f)])||{};for(const _0x17d19c of fs[_0x44fe2a(0x17e)](this[_0x44fe2a(0x15a)][_0x44fe2a(0x125)]()+_0x44fe2a(0x13b))){if(!fs[_0x44fe2a(0x14c)](this[_0x44fe2a(0x15a)][_0x44fe2a(0x125)]()+_0x44fe2a(0x127)+_0x17d19c)[_0x44fe2a(0x196)]())continue;if(_0x4b83ad===null||_0x4b83ad===void 0x0?void 0x0:_0x4b83ad[_0x17d19c])continue;_0x4b83ad[_0x17d19c]=Object[_0x44fe2a(0x142)]({},((_0x347f3c=_0x40183a===null||_0x40183a===void 0x0?void 0x0:_0x40183a[_0x44fe2a(0x150)])===null||_0x347f3c===void 0x0?void 0x0:_0x347f3c[_0x44fe2a(0x182)])||{'maxSize':'1m','dir':this['app'][_0x44fe2a(0x12c)]()+_0x44fe2a(0x18c)},{'enableJSON':!![],'enableConsole':this[_0x44fe2a(0x15c)]['isDevelopmentEnvironment'](),'fileLogName':_0x17d19c+'.log','dir':this[_0x44fe2a(0x15a)]['getAppDir']()+'/runtime/apps-'+_0x17d19c+'-log'});}Object['keys'](_0x4b83ad)['length']>0x0&&(!_0x40183a[_0x44fe2a(0x150)]&&(_0x40183a[_0x44fe2a(0x150)]={'default':{'maxSize':'1m','dir':this['app']['getAppDir']()+_0x44fe2a(0x18c)}}),_0x40183a[_0x44fe2a(0x150)][_0x44fe2a(0x15f)]=_0x4b83ad),this[_0x44fe2a(0x133)][_0x44fe2a(0x18d)](_0x40183a);}}async['filterConfig'](){const _0x52a7e0=a2_0x281704;var _0x21537d,_0x46930e,_0x194042,_0x45d651,_0x42c532,_0x537c38;const _0x141502=this[_0x52a7e0(0x133)][_0x52a7e0(0x187)]();((_0x46930e=(_0x21537d=_0x141502===null||_0x141502===void 0x0?void 0x0:_0x141502[_0x52a7e0(0x143)])===null||_0x21537d===void 0x0?void 0x0:_0x21537d[_0x52a7e0(0x165)])===null||_0x46930e===void 0x0?void 0x0:_0x46930e[_0x52a7e0(0x171)])&&Object[_0x52a7e0(0x15d)](_0x141502['anncicapi'][_0x52a7e0(0x165)])['length']>0x1&&delete _0x141502[_0x52a7e0(0x143)]['devices'][_0x52a7e0(0x171)];if((_0x194042=_0x141502===null||_0x141502===void 0x0?void 0x0:_0x141502['staticFile'])===null||_0x194042===void 0x0?void 0x0:_0x194042[_0x52a7e0(0x145)])for(const _0x126fc7 in _0x141502[_0x52a7e0(0x164)][_0x52a7e0(0x145)]){((_0x45d651=_0x141502['staticFile']['dirs'][_0x126fc7])===null||_0x45d651===void 0x0?void 0x0:_0x45d651['dir'])&&typeof((_0x42c532=_0x141502['staticFile'][_0x52a7e0(0x145)][_0x126fc7])===null||_0x42c532===void 0x0?void 0x0:_0x42c532[_0x52a7e0(0x149)])==_0x52a7e0(0x17b)&&!fs['existsSync'](_0x141502[_0x52a7e0(0x164)][_0x52a7e0(0x145)][_0x126fc7]['dir'])&&(fs[_0x52a7e0(0x153)](_0x141502[_0x52a7e0(0x164)][_0x52a7e0(0x145)][_0x126fc7][_0x52a7e0(0x149)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x141502[_0x52a7e0(0x164)][_0x52a7e0(0x145)][_0x126fc7][_0x52a7e0(0x149)]));}((_0x537c38=_0x141502===null||_0x141502===void 0x0?void 0x0:_0x141502[_0x52a7e0(0x188)])===null||_0x537c38===void 0x0?void 0x0:_0x537c38[_0x52a7e0(0x146)])&&!fs[_0x52a7e0(0x174)](_0x141502[_0x52a7e0(0x188)][_0x52a7e0(0x146)])&&(fs[_0x52a7e0(0x153)](_0x141502[_0x52a7e0(0x188)][_0x52a7e0(0x146)],{'recursive':!![]}),console[_0x52a7e0(0x178)](_0x52a7e0(0x151)+_0x141502[_0x52a7e0(0x188)][_0x52a7e0(0x146)])),this[_0x52a7e0(0x133)][_0x52a7e0(0x18d)](_0x141502);}};__decorate([(0x0,core_1[a2_0x281704(0x144)])(),__metadata(a2_0x281704(0x19b),Object)],CustomConfiguration[a2_0x281704(0x132)],a2_0x281704(0x15a),void 0x0),__decorate([(0x0,core_1[a2_0x281704(0x129)])(),__metadata(a2_0x281704(0x19b),core_2[a2_0x281704(0x18b)])],CustomConfiguration['prototype'],a2_0x281704(0x133),void 0x0),__decorate([(0x0,core_1[a2_0x281704(0x129)])(),__metadata('design:type',core_2[a2_0x281704(0x167)])],CustomConfiguration['prototype'],a2_0x281704(0x140),void 0x0),__decorate([(0x0,core_1[a2_0x281704(0x129)])(),__metadata('design:type',core_2[a2_0x281704(0x18a)])],CustomConfiguration[a2_0x281704(0x132)],a2_0x281704(0x169),void 0x0),__decorate([(0x0,core_1[a2_0x281704(0x129)])(),__metadata('design:type',core_2[a2_0x281704(0x12a)])],CustomConfiguration[a2_0x281704(0x132)],a2_0x281704(0x15c),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x281704(0x19b),ApiService_1[a2_0x281704(0x139)])],CustomConfiguration[a2_0x281704(0x132)],a2_0x281704(0x139),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x281704(0x18e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x281704(0x124),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3_0x1e7dc9=a3_0x89b8;(function(_0xff9f27,_0x20db3d){const _0x2e00a2=a3_0x89b8,_0x2ad3a1=_0xff9f27();while(!![]){try{const _0x2a2d29=-parseInt(_0x2e00a2(0x10a))/0x1*(parseInt(_0x2e00a2(0x119))/0x2)+parseInt(_0x2e00a2(0x108))/0x3+parseInt(_0x2e00a2(0x105))/0x4+-parseInt(_0x2e00a2(0x125))/0x5*(-parseInt(_0x2e00a2(0x132))/0x6)+-parseInt(_0x2e00a2(0x113))/0x7+parseInt(_0x2e00a2(0x13f))/0x8*(-parseInt(_0x2e00a2(0x139))/0x9)+-parseInt(_0x2e00a2(0x13d))/0xa*(parseInt(_0x2e00a2(0x11a))/0xb);if(_0x2a2d29===_0x20db3d)break;else _0x2ad3a1['push'](_0x2ad3a1['shift']());}catch(_0x326ce0){_0x2ad3a1['push'](_0x2ad3a1['shift']());}}}(a3_0x12dd,0xbb85c));const a3_0x143f28=(function(){let _0x4d7588=!![];return function(_0xa372d,_0x554cc2){const _0x1c29fd=_0x4d7588?function(){const _0x2fcd9a=a3_0x89b8;if(_0x554cc2){const _0x20faef=_0x554cc2[_0x2fcd9a(0x11c)](_0xa372d,arguments);return _0x554cc2=null,_0x20faef;}}:function(){};return _0x4d7588=![],_0x1c29fd;};}()),a3_0x3452d0=a3_0x143f28(this,function(){const _0x4cde91=a3_0x89b8;return a3_0x3452d0['toString']()[_0x4cde91(0x133)](_0x4cde91(0x138))[_0x4cde91(0x130)]()['constructor'](a3_0x3452d0)[_0x4cde91(0x133)](_0x4cde91(0x138));});a3_0x3452d0();function a3_0x89b8(_0x2a6e10,_0x32a7e4){const _0x10bcfe=a3_0x12dd();return a3_0x89b8=function(_0x3452d0,_0x143f28){_0x3452d0=_0x3452d0-0x104;let _0x12dd34=_0x10bcfe[_0x3452d0];return _0x12dd34;},a3_0x89b8(_0x2a6e10,_0x32a7e4);}'use strict';Object[a3_0x1e7dc9(0x128)](exports,a3_0x1e7dc9(0x12b),{'value':!![]}),exports['parseRoute']=exports['Action']=void 0x0;const fs=require('fs'),core_1=require(a3_0x1e7dc9(0x112)),action_1=require(a3_0x1e7dc9(0x10b));function Action(_0x1984cb,_0x5a2f01,_0x108d1a={'middleware':[],'sensitive':!![]}){return _0x5c6037=>{const _0x2c540e=a3_0x89b8;var _0x483122;_0x108d1a[_0x2c540e(0x131)]=_0x5a2f01;const _0xf913b0=parseRoute(_0x1984cb);if(_0xf913b0[_0x2c540e(0x106)]){_0x108d1a[_0x2c540e(0x11f)]=_0x108d1a[_0x2c540e(0x11f)]?'/'+_0xf913b0['module']+'/'+_0x108d1a[_0x2c540e(0x11f)]:'/'+_0xf913b0[_0x2c540e(0x124)];_0xf913b0[_0x2c540e(0x11f)]&&(_0x108d1a[_0x2c540e(0x11f)]='/'+_0xf913b0[_0x2c540e(0x11f)]+'/'+_0x108d1a[_0x2c540e(0x11f)]);if(fs[_0x2c540e(0x116)](_0xf913b0[_0x2c540e(0x129)]+_0x2c540e(0x13a)+_0xf913b0[_0x2c540e(0x106)]+'/config.'+(lodash['endsWith'](_0xf913b0[_0x2c540e(0x135)],'ts')?'ts':'js'))){const _0x244a90=include(_0xf913b0['rootpath']+'/apps/'+_0xf913b0[_0x2c540e(0x106)]+_0x2c540e(0x120)+(lodash['endsWith'](_0xf913b0[_0x2c540e(0x135)],'ts')?'ts':'js'));if(_0x244a90[_0x2c540e(0x10f)]&&lodash[_0x2c540e(0x11d)](_0x244a90[_0x2c540e(0x10f)])&&_0x244a90[_0x2c540e(0x10f)][_0x2c540e(0x111)]>0x0)for(let _0x202f8e in _0x244a90[_0x2c540e(0x10f)]){if(((_0x483122=_0x244a90===null||_0x244a90===void 0x0?void 0x0:_0x244a90['middlewareIgnore'])===null||_0x483122===void 0x0?void 0x0:_0x483122[_0x2c540e(0x111)])>0x0&&_0x244a90['middlewareIgnore'][_0x2c540e(0x134)](_0x244a90[_0x2c540e(0x10f)][_0x202f8e])!=-0x1)continue;_0x108d1a[_0x2c540e(0x10f)][_0x2c540e(0x109)](_0x244a90[_0x2c540e(0x10f)][_0x202f8e]);}const _0x35ff10=(0x0,core_1[_0x2c540e(0x13c)])(action_1[_0x2c540e(0x11e)],action_1['AppsConfigTmp'])||{};_0x35ff10[''+_0xf913b0[_0x2c540e(0x106)]]=_0x244a90,(0x0,core_1['saveClassMetadata'])(action_1[_0x2c540e(0x11e)],_0x35ff10,action_1[_0x2c540e(0x136)]);}_0x108d1a[_0x2c540e(0x11f)]=_0x108d1a[_0x2c540e(0x11f)][_0x2c540e(0x104)]()[_0x2c540e(0x10e)](/\/{2,}/g,'/'),(0x0,core_1[_0x2c540e(0x13e)])(action_1[_0x2c540e(0x122)],_0x5c6037),(0x0,core_1[_0x2c540e(0x13b)])(_0x108d1a[_0x2c540e(0x11f)],_0x108d1a)(_0x5c6037),(0x0,core_1[_0x2c540e(0x126)])(action_1['ACTION_KEY'],{'prefix':_0x108d1a[_0x2c540e(0x11f)],'pprefix':_0xf913b0[_0x2c540e(0x11f)],'module':_0xf913b0['module'],'filepath':_0xf913b0[_0x2c540e(0x135)],'routerOptions':_0x108d1a},_0x5c6037);}else _0x108d1a[_0x2c540e(0x11f)]=_0x108d1a['prefix']?'/'+_0x108d1a['prefix']:'/'+_0xf913b0[_0x2c540e(0x124)],_0xf913b0['prefix']&&(_0x108d1a[_0x2c540e(0x11f)]='/'+_0xf913b0[_0x2c540e(0x11f)]+'/'+_0x108d1a[_0x2c540e(0x11f)]),_0x108d1a[_0x2c540e(0x11f)]=_0x108d1a[_0x2c540e(0x11f)][_0x2c540e(0x104)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x2c540e(0x13e)])(action_1[_0x2c540e(0x122)],_0x5c6037),(0x0,core_1['Controller'])(_0x108d1a['prefix'],_0x108d1a)(_0x5c6037),(0x0,core_1[_0x2c540e(0x126)])(action_1[_0x2c540e(0x122)],{'prefix':_0x108d1a['prefix'],'module':_0xf913b0[_0x2c540e(0x106)],'pprefix':_0xf913b0[_0x2c540e(0x11f)],'filepath':_0xf913b0['filepath'],'routerOptions':_0x108d1a},_0x5c6037);};}exports[a3_0x1e7dc9(0x115)]=Action;function a3_0x12dd(){const _0x5888dd=['prefix','/config.','substring','ACTION_KEY','match','route','5nvoQqJ','saveClassMetadata','\x20文件请放在app/controller/文件下','defineProperty','rootpath','-action','__esModule','filter','-controller','\x20文件请放在apps/','endsWith','toString','tagName','2632542McRCYX','search','indexOf','filepath','AppsConfigTmp','join','(((.+)+)+)+$','495VzgCCt','/apps/','Controller','getClassMetadata','5483710aakphg','saveModule','70768KPIcKF','toLowerCase','3826436QAjvXC','module','parseRoute','3533004RnqSCH','push','163044vhFcvq','../types/action','app/controller/','/controller/','replace','middleware','basic/controller/','length','@midwayjs/core','1966363CnvIbW','apps/','Action','existsSync','split','startsWith','6mKgyRs','11xoHUYG','splice','apply','isArray','APPSCONFIG_KEY'];a3_0x12dd=function(){return _0x5888dd;};return a3_0x12dd();}function parseRoute(_0x1db15d){const _0x167b16=a3_0x1e7dc9;_0x1db15d=_0x1db15d[_0x167b16(0x10e)](/(\\|\/)/g,'/');const _0x441b3a=process['cwd']()[_0x167b16(0x10e)](/(\\|\/)/g,'/'),_0x2095c=_0x1db15d[_0x167b16(0x121)](0x0,_0x441b3a['length']+_0x1db15d[_0x167b16(0x121)](_0x441b3a[_0x167b16(0x111)]+0x1)[_0x167b16(0x134)]('/')+0x1),_0x153851=_0x1db15d[_0x167b16(0x121)](_0x2095c[_0x167b16(0x111)]+0x1)[_0x167b16(0x10e)](/(\\|\/)/g,'/'),_0x1533b8={'route':'','prefix':![],'module':![],'rootpath':_0x2095c,'filepath':_0x153851};if(_0x153851[_0x167b16(0x118)](_0x167b16(0x10c))||_0x153851['startsWith']('basic/controller/')){const _0x2745fd=_0x153851[_0x167b16(0x121)]((_0x153851[_0x167b16(0x118)](_0x167b16(0x10c))?_0x167b16(0x10c):_0x167b16(0x110))[_0x167b16(0x111)])[_0x167b16(0x117)]('/')[_0x167b16(0x12c)](_0x2d2381=>_0x2d2381&&_0x2d2381['trim']());return _0x2745fd[_0x167b16(0x111)]>0x1&&(_0x1533b8[_0x167b16(0x11f)]=_0x2745fd[0x0][_0x167b16(0x104)](),_0x2745fd[_0x167b16(0x11b)](0x0,0x1)),_0x1533b8[_0x167b16(0x124)]=('/'+_0x2745fd[_0x167b16(0x137)]('/'))[_0x167b16(0x10e)](/(\.ts|\.js)$/,'')[_0x167b16(0x10e)](/\/{2,}/g,'/')[_0x167b16(0x123)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x167b16(0x104)]()[_0x167b16(0x10e)](/\/\-/g,'/'),_0x1533b8['route'][_0x167b16(0x12f)](_0x167b16(0x12a))&&(_0x1533b8[_0x167b16(0x124)]=_0x1533b8['route'][_0x167b16(0x121)](0x0,_0x1533b8['route'][_0x167b16(0x111)]-0x7)),_0x1533b8[_0x167b16(0x124)]['endsWith'](_0x167b16(0x12d))&&(_0x1533b8['route']=_0x1533b8[_0x167b16(0x124)][_0x167b16(0x121)](0x0,_0x1533b8[_0x167b16(0x124)][_0x167b16(0x111)]-0xb)),_0x1533b8;}else{if(_0x153851[_0x167b16(0x118)](_0x167b16(0x114))){const _0x292002=_0x153851[_0x167b16(0x121)](0x0,_0x153851['indexOf']('/apps/')+0x5),_0x2fb364=_0x153851[_0x167b16(0x121)](_0x292002['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x167b16(0x117)]('/')[0x0];if(_0x153851[_0x167b16(0x118)]('apps/'+_0x2fb364+'/controller/')){const _0x164ba5=_0x153851['substring']((_0x292002+'/'+_0x2fb364+_0x167b16(0x10d))[_0x167b16(0x111)])[_0x167b16(0x117)]('/')[_0x167b16(0x12c)](_0x13a2cf=>_0x13a2cf&&_0x13a2cf['trim']());return _0x164ba5[_0x167b16(0x111)]>0x1&&(_0x1533b8['prefix']=_0x164ba5[0x0][_0x167b16(0x104)](),_0x164ba5[_0x167b16(0x11b)](0x0,0x1)),_0x1533b8[_0x167b16(0x106)]=_0x2fb364,_0x1533b8[_0x167b16(0x124)]=('/'+_0x2fb364+'/'+_0x164ba5[_0x167b16(0x137)]('/'))[_0x167b16(0x10e)](/(\.ts|\.js)$/,'')[_0x167b16(0x10e)](/\/{2,}/,'/')[_0x167b16(0x123)](/[\/|A-Z]*[^A-Z]+/g)[_0x167b16(0x137)]('-')[_0x167b16(0x104)]()[_0x167b16(0x10e)](/\/\-/g,'/'),_0x1533b8[_0x167b16(0x124)]['endsWith'](_0x167b16(0x12a))&&(_0x1533b8['route']=_0x1533b8['route'][_0x167b16(0x121)](0x0,_0x1533b8[_0x167b16(0x124)][_0x167b16(0x111)]-0x7)),_0x1533b8['route']['endsWith'](_0x167b16(0x12d))&&(_0x1533b8[_0x167b16(0x124)]=_0x1533b8[_0x167b16(0x124)][_0x167b16(0x121)](0x0,_0x1533b8[_0x167b16(0x124)][_0x167b16(0x111)]-0xb)),_0x1533b8;}throw new Error(_0x153851+_0x167b16(0x12e)+_0x2fb364+'/controller/文件下');}}throw new Error(_0x153851+_0x167b16(0x127));}exports[a3_0x1e7dc9(0x107)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x26430e=a4_0x4203;(function(_0x4acad8,_0x321628){const _0x1086fc=a4_0x4203,_0x44c928=_0x4acad8();while(!![]){try{const _0x5736e9=parseInt(_0x1086fc(0x1bd))/0x1+-parseInt(_0x1086fc(0x1cc))/0x2+-parseInt(_0x1086fc(0x1b7))/0x3+-parseInt(_0x1086fc(0x1c3))/0x4+-parseInt(_0x1086fc(0x1d1))/0x5*(parseInt(_0x1086fc(0x1cb))/0x6)+-parseInt(_0x1086fc(0x1cf))/0x7*(-parseInt(_0x1086fc(0x1c8))/0x8)+parseInt(_0x1086fc(0x1bf))/0x9;if(_0x5736e9===_0x321628)break;else _0x44c928['push'](_0x44c928['shift']());}catch(_0x4761bf){_0x44c928['push'](_0x44c928['shift']());}}}(a4_0x3c68,0x8df34));const a4_0x5e6098=(function(){let _0x29adfc=!![];return function(_0x1b0331,_0x40db72){const _0x51c952=_0x29adfc?function(){if(_0x40db72){const _0x3a596f=_0x40db72['apply'](_0x1b0331,arguments);return _0x40db72=null,_0x3a596f;}}:function(){};return _0x29adfc=![],_0x51c952;};}()),a4_0x6b2fd6=a4_0x5e6098(this,function(){const _0x119c33=a4_0x4203;return a4_0x6b2fd6[_0x119c33(0x1c7)]()[_0x119c33(0x1d3)](_0x119c33(0x1d7))[_0x119c33(0x1c7)]()[_0x119c33(0x1cd)](a4_0x6b2fd6)[_0x119c33(0x1d3)](_0x119c33(0x1d7));});a4_0x6b2fd6();'use strict';Object[a4_0x26430e(0x1ca)](exports,a4_0x26430e(0x1d2),{'value':!![]}),exports[a4_0x26430e(0x1c6)]=void 0x0;function a4_0x3c68(){const _0x41344e=['createCustomMethodDecorator','length','assign','398464NaUcMD','middleware','filter','Api','toString','1385392sQNIsl','../types/action','defineProperty','18084NQayGr','2209534kkenoV','constructor','toLowerCase','7xfLUYR','description','690JZDXkO','__esModule','search','validationOptions','get','del','(((.+)+)+)+$','routerName','3437457UzKRZR','middlewareIgnore','intercept','delete','validate','ACTION_ROUTE_KEY','998100odlxGq','apimit','19586592uFfrvd'];a4_0x3c68=function(){return _0x41344e;};return a4_0x3c68();}const validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),action_1=require(a4_0x26430e(0x1c9));function Api(_0x3a367b,_0x4848c8=a4_0x26430e(0x1d5),_0x33128e='/',_0xa8a67={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3a8a1d,_0x10f36b,_0x555d74)=>{const _0x44a973=a4_0x4203;var _0x483864,_0x28d29c,_0x2dbc83;!_0xa8a67[_0x44a973(0x1c4)]&&(_0xa8a67[_0x44a973(0x1c4)]=[]);!((_0x483864=_0xa8a67===null||_0xa8a67===void 0x0?void 0x0:_0xa8a67[_0x44a973(0x1bb)])===null||_0x483864===void 0x0?void 0x0:_0x483864[_0x44a973(0x1d4)])&&(_0xa8a67['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x28d29c=_0xa8a67===null||_0xa8a67===void 0x0?void 0x0:_0xa8a67[_0x44a973(0x1c4)])===null||_0x28d29c===void 0x0?void 0x0:_0x28d29c[_0x44a973(0x1c1)])>0x0&&((_0x2dbc83=_0xa8a67===null||_0xa8a67===void 0x0?void 0x0:_0xa8a67[_0x44a973(0x1b8)])===null||_0x2dbc83===void 0x0?void 0x0:_0x2dbc83[_0x44a973(0x1c1)])>0x0)for(let _0x1da002 in _0xa8a67[_0x44a973(0x1c4)]){_0xa8a67['middlewareIgnore']['indexOf'](_0xa8a67[_0x44a973(0x1c4)][_0x1da002])!==-0x1&&(_0xa8a67[_0x44a973(0x1c4)][_0x1da002]=null);}_0xa8a67[_0x44a973(0x1d8)]=_0x3a367b,(0x0,validator_1['Validator'])(_0xa8a67[_0x44a973(0x1bb)])(_0x3a8a1d,_0x10f36b,_0x555d74),(0x0,core_1['RequestMapping'])(Object[_0x44a973(0x1c2)](_0xa8a67,{'path':_0x33128e,'requestMethod':(_0x4848c8==_0x44a973(0x1d6)?_0x44a973(0x1ba):_0x4848c8)[_0x44a973(0x1ce)]()}))(_0x3a8a1d,_0x10f36b,_0x555d74),(0x0,core_1['attachClassMetadata'])(action_1[_0x44a973(0x1bc)],{'path':_0x33128e,'method':_0x10f36b,'apimit':_0xa8a67[_0x44a973(0x1be)],'intercept':_0xa8a67[_0x44a973(0x1b9)],'routerName':_0xa8a67[_0x44a973(0x1d8)],'description':_0xa8a67['description'],'middleware':(_0xa8a67[_0x44a973(0x1c4)]||[])[_0x44a973(0x1c5)](_0x29d713=>!!_0x29d713),'requestMethod':(_0x4848c8==_0x44a973(0x1d6)?_0x44a973(0x1ba):_0x4848c8)[_0x44a973(0x1ce)]()},_0x3a8a1d),(0x0,core_1[_0x44a973(0x1c0)])(action_1[_0x44a973(0x1bc)],{'path':_0x33128e,'method':_0x10f36b,'apimit':_0xa8a67[_0x44a973(0x1be)],'intercept':_0xa8a67['intercept'],'routerName':_0xa8a67['routerName'],'description':_0xa8a67[_0x44a973(0x1d0)],'middleware':(_0xa8a67[_0x44a973(0x1c4)]||[])[_0x44a973(0x1c5)](_0x1737f1=>!!_0x1737f1),'requestMethod':(_0x4848c8=='del'?_0x44a973(0x1ba):_0x4848c8)['toLowerCase']()})(_0x3a8a1d,_0x10f36b,_0x555d74);};}function a4_0x4203(_0x44b6e8,_0x29daec){const _0x292037=a4_0x3c68();return a4_0x4203=function(_0x6b2fd6,_0x5e6098){_0x6b2fd6=_0x6b2fd6-0x1b7;let _0x3c68c0=_0x292037[_0x6b2fd6];return _0x3c68c0;},a4_0x4203(_0x44b6e8,_0x29daec);}exports[a4_0x26430e(0x1c6)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x13ff6d=a5_0x3e54;(function(_0x542c89,_0x292ea3){const _0xc8e4e0=a5_0x3e54,_0x53a349=_0x542c89();while(!![]){try{const _0xdb5381=parseInt(_0xc8e4e0(0x174))/0x1+parseInt(_0xc8e4e0(0x176))/0x2*(parseInt(_0xc8e4e0(0x16e))/0x3)+parseInt(_0xc8e4e0(0x165))/0x4*(-parseInt(_0xc8e4e0(0x172))/0x5)+parseInt(_0xc8e4e0(0x17f))/0x6*(-parseInt(_0xc8e4e0(0x178))/0x7)+-parseInt(_0xc8e4e0(0x17c))/0x8+parseInt(_0xc8e4e0(0x167))/0x9*(parseInt(_0xc8e4e0(0x17a))/0xa)+parseInt(_0xc8e4e0(0x16c))/0xb;if(_0xdb5381===_0x292ea3)break;else _0x53a349['push'](_0x53a349['shift']());}catch(_0x57c790){_0x53a349['push'](_0x53a349['shift']());}}}(a5_0x24b1,0x84b58));const a5_0x251c13=(function(){let _0x345537=!![];return function(_0x480053,_0x28b54c){const _0x2bde52=_0x345537?function(){const _0x4f025b=a5_0x3e54;if(_0x28b54c){const _0x5d0e98=_0x28b54c[_0x4f025b(0x180)](_0x480053,arguments);return _0x28b54c=null,_0x5d0e98;}}:function(){};return _0x345537=![],_0x2bde52;};}()),a5_0x142550=a5_0x251c13(this,function(){const _0x39bd3b=a5_0x3e54;return a5_0x142550['toString']()['search'](_0x39bd3b(0x17d))['toString']()['constructor'](a5_0x142550)['search'](_0x39bd3b(0x17d));});function a5_0x3e54(_0x1a43d6,_0x1d13f5){const _0x1249ac=a5_0x24b1();return a5_0x3e54=function(_0x142550,_0x251c13){_0x142550=_0x142550-0x165;let _0x24b105=_0x1249ac[_0x142550];return _0x24b105;},a5_0x3e54(_0x1a43d6,_0x1d13f5);}a5_0x142550();'use strict';Object[a5_0x13ff6d(0x177)](exports,a5_0x13ff6d(0x170),{'value':!![]}),exports[a5_0x13ff6d(0x17e)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x13ff6d(0x16a));function a5_0x24b1(){const _0x4838a0=['apidoc','2JzVAoc','defineProperty','161714ENZhGN','getAsync','2530TBgRXn','get','1422248MppsqN','(((.+)+)+)+$','Apitest','24solPkx','apply','4yxOLVV','getApplicationContext','423EXRKpK','apitest','/apitest','../service/ApitestService','MidwayEnvironmentService','6135833FlACQI','filepath','3180891POybjv','app','__esModule','isDevelopmentEnvironment','4438535pZWgkh','value','71481xMxnNV'];a5_0x24b1=function(){return _0x4838a0;};return a5_0x24b1();}function Apitest(_0x4e03bc=a5_0x13ff6d(0x169),_0x1ef85c){return(_0x33180c,_0x40947c,_0x5e8ae4)=>{const _0x3dde77=a5_0x3e54;return(0x0,core_1['RequestMapping'])({'path':_0x4e03bc,'requestMethod':_0x3dde77(0x17b)})(_0x33180c,_0x40947c,_0x5e8ae4),_0x5e8ae4[_0x3dde77(0x173)]=async function(..._0x477098){const _0x521c2d=_0x3dde77;var _0x464e01;const _0x45e613=(_0x464e01=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x464e01===void 0x0?void 0x0:_0x464e01[_0x521c2d(0x16f)];if(_0x45e613&&_0x45e613['getConfig'](_0x521c2d(0x168))){const _0x2de4f4=await _0x45e613[_0x521c2d(0x166)]()[_0x521c2d(0x179)](ApitestService_1['ApitestService']),_0x11edb3=await _0x45e613['getApplicationContext']()[_0x521c2d(0x179)](core_1[_0x521c2d(0x16b)]);return _0x11edb3[_0x521c2d(0x171)]()&&(_0x1ef85c[_0x521c2d(0x16d)]=!![]),await _0x2de4f4[_0x521c2d(0x175)](_0x1ef85c);}return'';},_0x5e8ae4;};}exports[a5_0x13ff6d(0x17e)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a6_0x4de7(){var _0x4e0696=['登录超时,请重新登录','__metadata','length','HEADERS_SIGNATURE','226mZFbjg','signature验证失败','128270qaDcJY','4490980ELcXoL','__esModule','2612jVJuOL','1168659TNzstV','416349wXGquK','HEADERS_LACK','TIMEOUT_LOGINTIME','44ujdbbH','__decorate','function','7iLIqEe','getOwnPropertyDescriptor','defineProperty','ApiError','1500928idTByw','metadata','decorate','object','(((.+)+)+)+$','验证失败,请重新登录','HEADERS_DEVICE','请使用正确的设备','TIMEOUT','354342GZsirx','search','design:type','HEADERS_CHECKCODE'];a6_0x4de7=function(){return _0x4e0696;};return a6_0x4de7();}var a6_0x87f0ba=a6_0x505b;(function(_0x157a24,_0x5dd5cf){var _0x132882=a6_0x505b,_0x5b218d=_0x157a24();while(!![]){try{var _0x3271e2=parseInt(_0x132882(0x1e5))/0x1*(parseInt(_0x132882(0x1c8))/0x2)+parseInt(_0x132882(0x1ca))/0x3+parseInt(_0x132882(0x1cd))/0x4*(parseInt(_0x132882(0x1e7))/0x5)+-parseInt(_0x132882(0x1dd))/0x6*(parseInt(_0x132882(0x1d0))/0x7)+-parseInt(_0x132882(0x1d4))/0x8+parseInt(_0x132882(0x1c9))/0x9+-parseInt(_0x132882(0x1c6))/0xa;if(_0x3271e2===_0x5dd5cf)break;else _0x5b218d['push'](_0x5b218d['shift']());}catch(_0x541a1b){_0x5b218d['push'](_0x5b218d['shift']());}}}(a6_0x4de7,0x24ac5));var a6_0x1e11bb=(function(){var _0x1179bb=!![];return function(_0x16da6b,_0x4a7982){var _0x5cd9e6=_0x1179bb?function(){if(_0x4a7982){var _0x244904=_0x4a7982['apply'](_0x16da6b,arguments);return _0x4a7982=null,_0x244904;}}:function(){};return _0x1179bb=![],_0x5cd9e6;};}()),a6_0x491b41=a6_0x1e11bb(this,function(){var _0x106515=a6_0x505b;return a6_0x491b41['toString']()[_0x106515(0x1de)](_0x106515(0x1d8))['toString']()['constructor'](a6_0x491b41)['search'](_0x106515(0x1d8));});a6_0x491b41();function a6_0x505b(_0x340267,_0x1a4fd6){var _0x27a570=a6_0x4de7();return a6_0x505b=function(_0x491b41,_0x1e11bb){_0x491b41=_0x491b41-0x1c6;var _0x4de7ab=_0x27a570[_0x491b41];return _0x4de7ab;},a6_0x505b(_0x340267,_0x1a4fd6);}'use strict';var __decorate=this&&this[a6_0x87f0ba(0x1ce)]||function(_0x4397b2,_0x13bd86,_0x85ee4,_0x590ca1){var _0x46125d=a6_0x87f0ba,_0x41e07c=arguments[_0x46125d(0x1e3)],_0x33ef4b=_0x41e07c<0x3?_0x13bd86:_0x590ca1===null?_0x590ca1=Object[_0x46125d(0x1d1)](_0x13bd86,_0x85ee4):_0x590ca1,_0x3e3fb5;if(typeof Reflect===_0x46125d(0x1d7)&&typeof Reflect[_0x46125d(0x1d6)]==='function')_0x33ef4b=Reflect['decorate'](_0x4397b2,_0x13bd86,_0x85ee4,_0x590ca1);else{for(var _0xb17855=_0x4397b2[_0x46125d(0x1e3)]-0x1;_0xb17855>=0x0;_0xb17855--)if(_0x3e3fb5=_0x4397b2[_0xb17855])_0x33ef4b=(_0x41e07c<0x3?_0x3e3fb5(_0x33ef4b):_0x41e07c>0x3?_0x3e3fb5(_0x13bd86,_0x85ee4,_0x33ef4b):_0x3e3fb5(_0x13bd86,_0x85ee4))||_0x33ef4b;}return _0x41e07c>0x3&&_0x33ef4b&&Object['defineProperty'](_0x13bd86,_0x85ee4,_0x33ef4b),_0x33ef4b;},__metadata=this&&this[a6_0x87f0ba(0x1e2)]||function(_0x4a3eb9,_0x1060da){var _0x4049dd=a6_0x87f0ba;if(typeof Reflect===_0x4049dd(0x1d7)&&typeof Reflect['metadata']===_0x4049dd(0x1cf))return Reflect[_0x4049dd(0x1d5)](_0x4a3eb9,_0x1060da);};Object[a6_0x87f0ba(0x1d2)](exports,a6_0x87f0ba(0x1c7),{'value':!![]}),exports[a6_0x87f0ba(0x1d3)]=void 0x0;class ApiError{}ApiError[a6_0x87f0ba(0x1dc)]=0x3d7e31,ApiError['HEADERS_LACK']=0x3d7e32,ApiError[a6_0x87f0ba(0x1da)]=0x3d7e33,ApiError[a6_0x87f0ba(0x1e4)]=0x3d7e34,ApiError['HEADERS_CHECKCODE']=0x3d7e35,ApiError[a6_0x87f0ba(0x1cc)]=0x3d7e36,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a6_0x87f0ba(0x1df),Object)],ApiError,a6_0x87f0ba(0x1dc),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x87f0ba(0x1df),Object)],ApiError,a6_0x87f0ba(0x1cb),void 0x0),__decorate([AnnErrorMsg(a6_0x87f0ba(0x1db)),__metadata(a6_0x87f0ba(0x1df),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x87f0ba(0x1e6)),__metadata(a6_0x87f0ba(0x1df),Object)],ApiError,a6_0x87f0ba(0x1e4),void 0x0),__decorate([AnnErrorMsg(a6_0x87f0ba(0x1d9)),__metadata(a6_0x87f0ba(0x1df),Object)],ApiError,a6_0x87f0ba(0x1e0),void 0x0),__decorate([AnnErrorMsg(a6_0x87f0ba(0x1e1)),__metadata('design:type',Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports[a6_0x87f0ba(0x1d3)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x216e49=a7_0x4157;(function(_0x2ff58a,_0x4a8a44){const _0x386969=a7_0x4157,_0x55321f=_0x2ff58a();while(!![]){try{const _0x42310e=-parseInt(_0x386969(0xac))/0x1*(-parseInt(_0x386969(0xb2))/0x2)+-parseInt(_0x386969(0xaf))/0x3+parseInt(_0x386969(0xb0))/0x4+-parseInt(_0x386969(0xb4))/0x5*(parseInt(_0x386969(0xba))/0x6)+parseInt(_0x386969(0xae))/0x7+-parseInt(_0x386969(0xa8))/0x8+-parseInt(_0x386969(0xb3))/0x9*(-parseInt(_0x386969(0xab))/0xa);if(_0x42310e===_0x4a8a44)break;else _0x55321f['push'](_0x55321f['shift']());}catch(_0x4dd1d6){_0x55321f['push'](_0x55321f['shift']());}}}(a7_0x8125,0x22644));const a7_0x4f3b62=(function(){let _0x560210=!![];return function(_0x3b638e,_0x3c4e4d){const _0xab0a97=_0x560210?function(){const _0x23fa60=a7_0x4157;if(_0x3c4e4d){const _0x3ed99d=_0x3c4e4d[_0x23fa60(0xb8)](_0x3b638e,arguments);return _0x3c4e4d=null,_0x3ed99d;}}:function(){};return _0x560210=![],_0xab0a97;};}()),a7_0x30f596=a7_0x4f3b62(this,function(){const _0x448221=a7_0x4157;return a7_0x30f596[_0x448221(0xbc)]()[_0x448221(0xbb)](_0x448221(0xb1))[_0x448221(0xbc)]()[_0x448221(0xad)](a7_0x30f596)[_0x448221(0xbb)](_0x448221(0xb1));});a7_0x30f596();'use strict';Object[a7_0x216e49(0xb9)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require(a7_0x216e49(0xa7)),action_1=require(a7_0x216e49(0xb7));function getAppsConfig(_0x5c479f){const _0x2b1261=a7_0x216e49,_0x1a6bc8=(0x0,core_1[_0x2b1261(0xb5)])(action_1[_0x2b1261(0xa6)],action_1[_0x2b1261(0xaa)])||{};return _0x5c479f?lodash[_0x2b1261(0xb6)](_0x1a6bc8,_0x5c479f):_0x1a6bc8;}function a7_0x4157(_0x27c411,_0x4b5d15){const _0x33b872=a7_0x8125();return a7_0x4157=function(_0x30f596,_0x4f3b62){_0x30f596=_0x30f596-0xa6;let _0x812585=_0x33b872[_0x30f596];return _0x812585;},a7_0x4157(_0x27c411,_0x4b5d15);}function a7_0x8125(){const _0x419a94=['10wzuXfu','143VAaYWL','constructor','113022FZKZhn','714462ACCtyz','490260fYUrjy','(((.+)+)+)+$','202aqONgQ','5032917SDnXsL','105DyiCoM','getClassMetadata','get','../types/action','apply','defineProperty','63186bsSVlJ','search','toString','APPSCONFIG_KEY','@midwayjs/core','897552kgEeaT','getAppsConfig','AppsConfigTmp'];a7_0x8125=function(){return _0x419a94;};return a7_0x8125();}exports[a7_0x216e49(0xa9)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x577061=a8_0x4464;(function(_0x93c8b3,_0x2b218a){const _0x9e6700=a8_0x4464,_0x2bd3bc=_0x93c8b3();while(!![]){try{const _0x4bde7f=parseInt(_0x9e6700(0x150))/0x1*(parseInt(_0x9e6700(0x11e))/0x2)+-parseInt(_0x9e6700(0x149))/0x3*(parseInt(_0x9e6700(0x115))/0x4)+parseInt(_0x9e6700(0x15f))/0x5*(-parseInt(_0x9e6700(0x121))/0x6)+-parseInt(_0x9e6700(0x13f))/0x7*(-parseInt(_0x9e6700(0x114))/0x8)+-parseInt(_0x9e6700(0x11d))/0x9*(-parseInt(_0x9e6700(0x16b))/0xa)+-parseInt(_0x9e6700(0x117))/0xb*(-parseInt(_0x9e6700(0x10f))/0xc)+-parseInt(_0x9e6700(0x138))/0xd;if(_0x4bde7f===_0x2b218a)break;else _0x2bd3bc['push'](_0x2bd3bc['shift']());}catch(_0x4836a8){_0x2bd3bc['push'](_0x2bd3bc['shift']());}}}(a8_0x1e2f,0x41903));const a8_0x1a56c0=(function(){let _0xe8d5c6=!![];return function(_0x13bf52,_0x467afb){const _0x33f2ae=_0xe8d5c6?function(){if(_0x467afb){const _0x101eda=_0x467afb['apply'](_0x13bf52,arguments);return _0x467afb=null,_0x101eda;}}:function(){};return _0xe8d5c6=![],_0x33f2ae;};}()),a8_0x1dabf8=a8_0x1a56c0(this,function(){const _0xc1061a=a8_0x4464;return a8_0x1dabf8[_0xc1061a(0x11f)]()[_0xc1061a(0x111)](_0xc1061a(0x157))[_0xc1061a(0x11f)]()['constructor'](a8_0x1dabf8)[_0xc1061a(0x111)](_0xc1061a(0x157));});a8_0x1dabf8();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x577061(0x11c)),core_1=require(a8_0x577061(0x11b)),core_2=require(a8_0x577061(0x11b)),core_3=require(a8_0x577061(0x11b)),action_1=require(a8_0x577061(0x152));function a8_0x1e2f(){const _0x56cefd=['join','indexOf','/static/apitest','name','tagName','max','min','1053585GljdAe','ACTION_ROUTE_KEY','body','summary','filepath','propertyData','path','59822cTJKYK','Boolean','boolean','header','query','INJECT_CUSTOM_PARAM','test','default','RULES_KEY','getRoutes','3bPxJuk','filter','length','key','file','args','push','441793HsJRAZ','noreq','../types/action','required','routes','flags.label','log','(((.+)+)+)+$','getClassExtendedMetadata','PARAM','number','intercept','prefix','flags.default','split','7100bLbmrM','pprefix','getMethodParamTypes','rules','BODY','method','getClassMetadata','parameterIndex','array','type','module','flags.description','10MSrxdM','routerOptions','find','children','request','3492asVUGG','isArray','search','requestMethod','FIELDS','232lTFDNx','1895596kKcwbR','文件上传-','11473ScvnnD','description','title','function','@midwayjs/core','@anncic-api/validator','479619KjnHxV','2BvKfxW','toString','allow','942kKevCi','ACTION_KEY','startsWith','RouteParamTypes','static/apitest','replace','items','string','object','keys','get','route','listModule','只允许:[','routerName','metadata'];a8_0x1e2f=function(){return _0x56cefd;};return a8_0x1e2f();}function a8_0x4464(_0x42e364,_0x3b4721){const _0x49fefe=a8_0x1e2f();return a8_0x4464=function(_0x1dabf8,_0x1a56c0){_0x1dabf8=_0x1dabf8-0x10b;let _0x1e2f51=_0x49fefe[_0x1dabf8];return _0x1e2f51;},a8_0x4464(_0x42e364,_0x3b4721);}function getRoutes(_0x2f3b44={'prefix':'/','module':![]}){const _0x33f158=a8_0x577061;var _0x37fa20,_0x3fdd61;const _0x8969d3=(0x0,core_3[_0x33f158(0x12d)])(action_1[_0x33f158(0x122)]),_0x41350d={},_0x5b77dc=Array[_0x33f158(0x110)](_0x2f3b44[_0x33f158(0x14a)]||[])?_0x2f3b44['filter']||[]:[_0x2f3b44[_0x33f158(0x14a)]];_0x15e59b:for(const _0x3b3678 of _0x8969d3){let _0x21d052=(0x0,core_3[_0x33f158(0x165)])(action_1[_0x33f158(0x122)],_0x3b3678),_0x1d8461=(0x0,core_3[_0x33f158(0x165)])(action_1[_0x33f158(0x139)],_0x3b3678);if(_0x21d052&&_0x1d8461){let _0x2204ca=_0x21d052['prefix'],_0x97f296={};if(_0x2f3b44[_0x33f158(0x169)]&&(0x0,lodash_1[_0x33f158(0x12b)])(_0x21d052,'module',![])!=_0x2f3b44['module'])continue _0x15e59b;else{if(_0x2f3b44['module']===![]&&!!(0x0,lodash_1['get'])(_0x21d052,_0x33f158(0x169),null))continue _0x15e59b;}if(_0x2f3b44[_0x33f158(0x15c)]&&!_0x2204ca['startsWith'](_0x2f3b44[_0x33f158(0x15c)]))continue _0x15e59b;_0x2204ca!=='/'?(_0x97f296[_0x33f158(0x13b)]=(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052['routerOptions'][_0x33f158(0x135)])||(/^\//[_0x33f158(0x145)](_0x2204ca)?_0x2204ca[_0x33f158(0x15e)]('/')[0x1]:_0x2204ca),_0x97f296[_0x33f158(0x118)]=(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052[_0x33f158(0x10b)]['description'])||_0x97f296[_0x33f158(0x13b)],_0x97f296['routes']=[]):(_0x97f296[_0x33f158(0x13b)]=(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052[_0x33f158(0x10b)][_0x33f158(0x135)])||_0x33f158(0x146),_0x97f296[_0x33f158(0x118)]=(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052['routerOptions'][_0x33f158(0x118)])||'',_0x97f296[_0x33f158(0x154)]=[]);_0x2f3b44[_0x33f158(0x13c)]&&(_0x97f296['filepath']=_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052[_0x33f158(0x13c)]);(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052[_0x33f158(0x160)])&&(_0x97f296[_0x33f158(0x15c)]=_0x21d052[_0x33f158(0x160)]);(_0x21d052===null||_0x21d052===void 0x0?void 0x0:_0x21d052[_0x33f158(0x169)])&&(_0x97f296[_0x33f158(0x169)]=_0x21d052['module']);let _0xbf4907=(0x0,core_3[_0x33f158(0x165)])(core_2[_0x33f158(0x144)],_0x3b3678)||{};if(typeof _0x1d8461[Symbol['iterator']]===_0x33f158(0x11a))for(let _0x27beed of _0x1d8461){if((_0x2f3b44===null||_0x2f3b44===void 0x0?void 0x0:_0x2f3b44['intercept'])&&!(_0x27beed===null||_0x27beed===void 0x0?void 0x0:_0x27beed[_0x33f158(0x15b)]))continue;let _0x1f88e7={};_0x1f88e7[_0x33f158(0x164)]=_0x27beed[_0x33f158(0x112)],_0x1f88e7[_0x33f158(0x12c)]=(_0x2204ca+_0x27beed[_0x33f158(0x13e)])[_0x33f158(0x126)](/\/{1,}/,'/'),_0x1f88e7['summary']=(_0x27beed===null||_0x27beed===void 0x0?void 0x0:_0x27beed[_0x33f158(0x12f)])||_0x97f296['summary']||'default',_0x1f88e7['description']=(_0x27beed===null||_0x27beed===void 0x0?void 0x0:_0x27beed[_0x33f158(0x118)])||'',_0x1f88e7[_0x33f158(0x10e)]=[];if(!(0x0,lodash_1[_0x33f158(0x123)])(_0x1f88e7[_0x33f158(0x12c)],_0x33f158(0x125))&&!(0x0,lodash_1[_0x33f158(0x123)])(_0x1f88e7[_0x33f158(0x12c)],_0x33f158(0x133))&&_0x5b77dc[_0x33f158(0x132)](_0x1f88e7[_0x33f158(0x12c)])===-0x1){if(!(_0x2f3b44===null||_0x2f3b44===void 0x0?void 0x0:_0x2f3b44[_0x33f158(0x151)])){let _0x182a49=(0x0,core_3[_0x33f158(0x161)])(new _0x3b3678(),_0x27beed[_0x33f158(0x164)]);for(const _0x345d0f in _0x182a49){let _0x107b08=(_0x37fa20=_0xbf4907[_0x27beed[_0x33f158(0x164)]])===null||_0x37fa20===void 0x0?void 0x0:_0x37fa20[_0x33f158(0x10c)](_0xd61510=>_0xd61510[_0x33f158(0x166)]==_0x345d0f&&_0xd61510[_0x33f158(0x14c)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0xd61510===null||_0xd61510===void 0x0?void 0x0:_0xd61510[_0x33f158(0x130)]));if(_0x107b08===null||_0x107b08===void 0x0?void 0x0:_0x107b08[_0x33f158(0x130)]){let _0x588e7d=convertTypeToString(_0x107b08[_0x33f158(0x130)][_0x33f158(0x168)]||0x0);if([_0x33f158(0x143),_0x33f158(0x13a)][_0x33f158(0x132)](_0x588e7d)!=-0x1&&_0x107b08[_0x33f158(0x130)][_0x33f158(0x13d)][_0x33f158(0x132)](':')==-0x1&&!_0x1f88e7[_0x33f158(0x10e)][_0x33f158(0x10c)](_0x48aacc=>_0x48aacc['key']==_0x107b08[_0x33f158(0x130)][_0x33f158(0x13d)]))_0x1f88e7[_0x33f158(0x10e)][_0x33f158(0x14f)]({'key':_0x107b08[_0x33f158(0x130)][_0x33f158(0x13d)],'title':_0x107b08[_0x33f158(0x130)]['propertyData'],'type':convertSchemaType(_0x182a49[_0x107b08[_0x33f158(0x166)]][_0x33f158(0x134)]),'required':![],'default':'','desc':''});else{if(_0x588e7d==_0x33f158(0x14d)){let _0x19ba1f=((_0x3fdd61=_0x107b08===null||_0x107b08===void 0x0?void 0x0:_0x107b08[_0x33f158(0x130)])===null||_0x3fdd61===void 0x0?void 0x0:_0x3fdd61['propertyData'])||_0x33f158(0x14d);_0x19ba1f[_0x33f158(0x132)](':')==-0x1&&!_0x1f88e7[_0x33f158(0x10e)][_0x33f158(0x10c)](_0x5d6cee=>_0x5d6cee[_0x33f158(0x14c)]==_0x19ba1f&&_0x5d6cee['type']==_0x33f158(0x14d))&&_0x1f88e7['request'][_0x33f158(0x14f)]({'key':_0x19ba1f,'title':_0x33f158(0x116)+_0x19ba1f,'type':_0x33f158(0x14d),'required':!![],'default':'','desc':''});}}}else{const _0x627832=(0x0,core_3[_0x33f158(0x158)])(validator_1[_0x33f158(0x147)],_0x182a49[_0x345d0f]);_0x627832&&_0x1f88e7[_0x33f158(0x10e)]['push'](...getJoiRequest(_0x627832));}}}_0x97f296[_0x33f158(0x154)][_0x33f158(0x14f)](_0x1f88e7);}}if(_0x97f296[_0x33f158(0x154)][_0x33f158(0x14b)]>0x0){let _0x24b412=_0x41350d[_0x2204ca];_0x24b412?(_0x24b412['summary']!=_0x97f296['summary']&&(_0x24b412[_0x33f158(0x13b)]=_0x24b412[_0x33f158(0x13b)]+','+_0x97f296['summary']),_0x24b412[_0x33f158(0x118)]!=_0x97f296[_0x33f158(0x118)]&&(_0x24b412['description']=_0x24b412[_0x33f158(0x118)]+','+_0x97f296[_0x33f158(0x118)]),_0x24b412[_0x33f158(0x154)]=_0x24b412['routes']['concat'](_0x97f296[_0x33f158(0x154)]),_0x41350d[_0x2204ca]=_0x24b412):_0x41350d[_0x2204ca]=_0x97f296;}}}return _0x41350d;}exports[a8_0x577061(0x148)]=getRoutes;function getJoiRequest(_0x47a2d4){const _0x1e75c2=a8_0x577061,_0x784ce6=[];for(let _0x314855 in _0x47a2d4){const _0x5e22f1={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5e9059=typeof _0x47a2d4[_0x314855]['describe']==_0x1e75c2(0x11a)?_0x47a2d4[_0x314855]['describe']():_0x47a2d4[_0x314855];_0x5e22f1[_0x1e75c2(0x14c)]=_0x314855,_0x5e22f1[_0x1e75c2(0x168)]=_0x5e9059[_0x1e75c2(0x168)],_0x5e22f1[_0x1e75c2(0x119)]=(0x0,lodash_1[_0x1e75c2(0x12b)])(_0x5e9059,_0x1e75c2(0x155),_0x314855),_0x5e22f1[_0x1e75c2(0x146)]=(0x0,lodash_1[_0x1e75c2(0x12b)])(_0x5e9059,_0x1e75c2(0x15d),''),_0x5e22f1[_0x1e75c2(0x153)]=(0x0,lodash_1[_0x1e75c2(0x12b)])(_0x5e9059,'flags.presence','')==_0x1e75c2(0x153),_0x5e22f1[_0x1e75c2(0x118)]=(0x0,lodash_1[_0x1e75c2(0x12b)])(_0x5e9059,_0x1e75c2(0x16a),'');if(_0x5e9059[_0x1e75c2(0x168)]==_0x1e75c2(0x129))_0x5e22f1[_0x1e75c2(0x10d)]=getJoiRequest(_0x5e9059[_0x1e75c2(0x12a)]);else _0x5e9059[_0x1e75c2(0x168)]==_0x1e75c2(0x167)&&_0x5e9059[_0x1e75c2(0x127)]&&Array[_0x1e75c2(0x110)](_0x5e9059[_0x1e75c2(0x127)])&&_0x5e9059['items'][0x0]&&console[_0x1e75c2(0x156)](_0x314855+'-array',_0x5e9059);_0x5e9059[_0x1e75c2(0x120)]&&Array[_0x1e75c2(0x110)](_0x5e9059[_0x1e75c2(0x120)])&&_0x5e9059[_0x1e75c2(0x120)][_0x1e75c2(0x14b)]>0x0&&(_0x5e22f1['description']=_0x1e75c2(0x12e)+_0x5e9059[_0x1e75c2(0x120)][_0x1e75c2(0x131)](',')+'];'+_0x5e22f1[_0x1e75c2(0x118)]);if(_0x5e22f1['key']&&_0x5e22f1['type']){const _0x1afef7={};for(const _0x10e750 of _0x5e9059[_0x1e75c2(0x162)]||[]){if(_0x10e750[_0x1e75c2(0x134)]===_0x1e75c2(0x137)&&_0x10e750[_0x1e75c2(0x14e)])_0x1afef7[_0x1e75c2(0x137)]=_0x10e750[_0x1e75c2(0x14e)]['limit'];else _0x10e750[_0x1e75c2(0x134)]===_0x1e75c2(0x136)&&(_0x1afef7[_0x1e75c2(0x136)]=_0x10e750['args']['limit']);}_0x5e22f1[_0x1e75c2(0x162)]=_0x1afef7;}_0x5e22f1['key']&&_0x5e22f1[_0x1e75c2(0x119)]&&_0x784ce6[_0x1e75c2(0x14f)](_0x5e22f1);}return _0x784ce6;}function convertSchemaType(_0x4c74c6){const _0x452451=a8_0x577061;switch(_0x4c74c6){case'Object':return _0x452451(0x129);case _0x452451(0x140):return _0x452451(0x141);case'Number':return _0x452451(0x15a);case'String':return _0x452451(0x128);case'File':return _0x452451(0x14d);default:return _0x452451(0x128);}}function convertTypeToString(_0x478486){const _0x438900=a8_0x577061;switch(_0x478486){case core_1[_0x438900(0x124)]['HEADERS']:return _0x438900(0x142);case core_1[_0x438900(0x124)]['QUERY']:return _0x438900(0x143);case core_1[_0x438900(0x124)][_0x438900(0x159)]:return _0x438900(0x13e);case core_1[_0x438900(0x124)][_0x438900(0x163)]:return _0x438900(0x13a);case core_1[_0x438900(0x124)][_0x438900(0x113)]:case core_1[_0x438900(0x124)]['FILESSTREAM']:case core_1[_0x438900(0x124)]['FILESTREAM']:return _0x438900(0x14d);default:return'header';}}
|
|
1
|
+
const a8_0x5e3ad4=a8_0xfacb;(function(_0xa9b259,_0x50101b){const _0x17d867=a8_0xfacb,_0x18e512=_0xa9b259();while(!![]){try{const _0x5eb0c5=-parseInt(_0x17d867(0xc8))/0x1*(-parseInt(_0x17d867(0xc9))/0x2)+-parseInt(_0x17d867(0x110))/0x3+parseInt(_0x17d867(0xcd))/0x4+parseInt(_0x17d867(0xdb))/0x5+parseInt(_0x17d867(0xf8))/0x6+parseInt(_0x17d867(0x104))/0x7+parseInt(_0x17d867(0xfe))/0x8*(-parseInt(_0x17d867(0xe8))/0x9);if(_0x5eb0c5===_0x50101b)break;else _0x18e512['push'](_0x18e512['shift']());}catch(_0x3aae1e){_0x18e512['push'](_0x18e512['shift']());}}}(a8_0x1708,0x7c013));const a8_0x46c44a=(function(){let _0x169103=!![];return function(_0x41bf00,_0x377cad){const _0x54d32e=_0x169103?function(){const _0x1f8985=a8_0xfacb;if(_0x377cad){const _0x1d5c28=_0x377cad[_0x1f8985(0xcb)](_0x41bf00,arguments);return _0x377cad=null,_0x1d5c28;}}:function(){};return _0x169103=![],_0x54d32e;};}()),a8_0x5bfc86=a8_0x46c44a(this,function(){const _0x319843=a8_0xfacb;return a8_0x5bfc86[_0x319843(0xef)]()[_0x319843(0x108)](_0x319843(0x113))['toString']()['constructor'](a8_0x5bfc86)[_0x319843(0x108)](_0x319843(0x113));});a8_0x5bfc86();'use strict';Object[a8_0x5e3ad4(0x100)](exports,'__esModule',{'value':!![]}),exports[a8_0x5e3ad4(0x10b)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x5e3ad4(0x10e)),core_1=require(a8_0x5e3ad4(0x101)),core_2=require(a8_0x5e3ad4(0x101)),core_3=require('@midwayjs/core'),action_1=require('../types/action');function getRoutes(_0x506fde={'prefix':'/','module':![]}){const _0x30cae5=a8_0x5e3ad4;var _0x40545c,_0x11f703;const _0x346cf0=(0x0,core_3['listModule'])(action_1[_0x30cae5(0xf9)]),_0x20d9f6={},_0x1e8ae1=Array[_0x30cae5(0xde)](_0x506fde['filter']||[])?_0x506fde[_0x30cae5(0xb9)]||[]:[_0x506fde[_0x30cae5(0xb9)]];_0x473a:for(const _0x14bc08 of _0x346cf0){let _0x52e96d=(0x0,core_3['getClassMetadata'])(action_1[_0x30cae5(0xf9)],_0x14bc08),_0x2a9625=(0x0,core_3['getClassMetadata'])(action_1[_0x30cae5(0xbe)],_0x14bc08);if(_0x52e96d&&_0x2a9625){let _0x376887=_0x52e96d[_0x30cae5(0xce)],_0x27b2bd={};if(_0x506fde[_0x30cae5(0xbc)]&&(0x0,lodash_1[_0x30cae5(0xc5)])(_0x52e96d,'module',![])!=_0x506fde[_0x30cae5(0xbc)])continue _0x473a;else{if(_0x506fde[_0x30cae5(0xbc)]===![]&&!!(0x0,lodash_1['get'])(_0x52e96d,'module',null))continue _0x473a;}if(_0x506fde[_0x30cae5(0xce)]&&!_0x376887[_0x30cae5(0x112)](_0x506fde[_0x30cae5(0xce)]))continue _0x473a;_0x376887!=='/'?(_0x27b2bd['summary']=(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d[_0x30cae5(0xed)][_0x30cae5(0xe0)])||(/^\//[_0x30cae5(0xca)](_0x376887)?_0x376887['split']('/')[0x1]:_0x376887),_0x27b2bd[_0x30cae5(0xfa)]=(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d['routerOptions']['description'])||_0x27b2bd[_0x30cae5(0xf4)],_0x27b2bd[_0x30cae5(0xc4)]=[]):(_0x27b2bd[_0x30cae5(0xf4)]=(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d[_0x30cae5(0xed)]['tagName'])||_0x30cae5(0x102),_0x27b2bd[_0x30cae5(0xfa)]=(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d[_0x30cae5(0xed)]['description'])||'',_0x27b2bd[_0x30cae5(0xc4)]=[]);_0x506fde['filepath']&&(_0x27b2bd[_0x30cae5(0xf2)]=_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d[_0x30cae5(0xf2)]);(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d[_0x30cae5(0xc1)])&&(_0x27b2bd[_0x30cae5(0xce)]=_0x52e96d[_0x30cae5(0xc1)]);(_0x52e96d===null||_0x52e96d===void 0x0?void 0x0:_0x52e96d['module'])&&(_0x27b2bd[_0x30cae5(0xbc)]=_0x52e96d['module']);let _0x2b8ad7=(0x0,core_3[_0x30cae5(0xc6)])(core_2['INJECT_CUSTOM_PARAM'],_0x14bc08)||{};if(typeof _0x2a9625[Symbol[_0x30cae5(0xd0)]]===_0x30cae5(0x10d))for(let _0x1ecdb4 of _0x2a9625){if((_0x506fde===null||_0x506fde===void 0x0?void 0x0:_0x506fde[_0x30cae5(0x10f)])&&!(_0x1ecdb4===null||_0x1ecdb4===void 0x0?void 0x0:_0x1ecdb4[_0x30cae5(0x10f)]))continue;let _0x112a5e={};_0x112a5e[_0x30cae5(0xf1)]=_0x1ecdb4['requestMethod'],_0x112a5e[_0x30cae5(0x111)]=(_0x376887+_0x1ecdb4['path'])[_0x30cae5(0xba)](/\/{1,}/,'/'),_0x112a5e[_0x30cae5(0xf4)]=(_0x1ecdb4===null||_0x1ecdb4===void 0x0?void 0x0:_0x1ecdb4['routerName'])||_0x27b2bd['summary']||_0x30cae5(0x102),_0x112a5e['description']=(_0x1ecdb4===null||_0x1ecdb4===void 0x0?void 0x0:_0x1ecdb4[_0x30cae5(0xfa)])||'',_0x112a5e[_0x30cae5(0xd2)]=[];if(!(0x0,lodash_1[_0x30cae5(0x112)])(_0x112a5e[_0x30cae5(0x111)],_0x30cae5(0xe9))&&!(0x0,lodash_1[_0x30cae5(0x112)])(_0x112a5e['route'],'/static/apitest')&&_0x1e8ae1['indexOf'](_0x112a5e['route'])===-0x1){if(!(_0x506fde===null||_0x506fde===void 0x0?void 0x0:_0x506fde[_0x30cae5(0xff)])){let _0x2fc051=(0x0,core_3[_0x30cae5(0xda)])(new _0x14bc08(),_0x1ecdb4[_0x30cae5(0xf1)]);for(const _0x3f09af in _0x2fc051){let _0x22585c=(_0x40545c=_0x2b8ad7[_0x1ecdb4['method']])===null||_0x40545c===void 0x0?void 0x0:_0x40545c['find'](_0x313869=>_0x313869['parameterIndex']==_0x3f09af&&_0x313869[_0x30cae5(0xcf)]===core_2[_0x30cae5(0xf6)]&&(_0x313869===null||_0x313869===void 0x0?void 0x0:_0x313869[_0x30cae5(0xeb)]));if(_0x22585c===null||_0x22585c===void 0x0?void 0x0:_0x22585c['metadata']){let _0x52fd84=convertTypeToString(_0x22585c[_0x30cae5(0xeb)][_0x30cae5(0xbb)]||0x0);if([_0x30cae5(0xd5),_0x30cae5(0xe7)][_0x30cae5(0xcc)](_0x52fd84)!=-0x1&&_0x22585c[_0x30cae5(0xeb)][_0x30cae5(0xf7)]['indexOf'](':')==-0x1&&!_0x112a5e[_0x30cae5(0xd2)][_0x30cae5(0xd9)](_0x333146=>_0x333146['key']==_0x22585c[_0x30cae5(0xeb)][_0x30cae5(0xf7)]))_0x112a5e[_0x30cae5(0xd2)][_0x30cae5(0xc0)]({'key':_0x22585c[_0x30cae5(0xeb)][_0x30cae5(0xf7)],'title':_0x22585c[_0x30cae5(0xeb)][_0x30cae5(0xf7)],'type':convertSchemaType(_0x2fc051[_0x22585c['parameterIndex']][_0x30cae5(0xd8)]),'required':![],'default':'','desc':''});else{if(_0x52fd84==_0x30cae5(0xd4)){let _0x5e8cf4=((_0x11f703=_0x22585c===null||_0x22585c===void 0x0?void 0x0:_0x22585c[_0x30cae5(0xeb)])===null||_0x11f703===void 0x0?void 0x0:_0x11f703['propertyData'])||_0x30cae5(0xd4);_0x5e8cf4[_0x30cae5(0xcc)](':')==-0x1&&!_0x112a5e[_0x30cae5(0xd2)]['find'](_0x2d41b1=>_0x2d41b1[_0x30cae5(0xcf)]==_0x5e8cf4&&_0x2d41b1[_0x30cae5(0xbb)]==_0x30cae5(0xd4))&&_0x112a5e['request'][_0x30cae5(0xc0)]({'key':_0x5e8cf4,'title':'文件上传-'+_0x5e8cf4,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xd776b6=(0x0,core_3[_0x30cae5(0xee)])(validator_1['RULES_KEY'],_0x2fc051[_0x3f09af]);_0xd776b6&&_0x112a5e[_0x30cae5(0xd2)][_0x30cae5(0xc0)](...getJoiRequest(_0xd776b6));}}}_0x27b2bd[_0x30cae5(0xc4)][_0x30cae5(0xc0)](_0x112a5e);}}if(_0x27b2bd[_0x30cae5(0xc4)]['length']>0x0){let _0x5c0a24=_0x20d9f6[_0x376887];_0x5c0a24?(_0x5c0a24[_0x30cae5(0xf4)]!=_0x27b2bd[_0x30cae5(0xf4)]&&(_0x5c0a24[_0x30cae5(0xf4)]=_0x5c0a24['summary']+','+_0x27b2bd[_0x30cae5(0xf4)]),_0x5c0a24[_0x30cae5(0xfa)]!=_0x27b2bd[_0x30cae5(0xfa)]&&(_0x5c0a24[_0x30cae5(0xfa)]=_0x5c0a24[_0x30cae5(0xfa)]+','+_0x27b2bd[_0x30cae5(0xfa)]),_0x5c0a24[_0x30cae5(0xc4)]=_0x5c0a24['routes'][_0x30cae5(0xf3)](_0x27b2bd['routes']),_0x20d9f6[_0x376887]=_0x5c0a24):_0x20d9f6[_0x376887]=_0x27b2bd;}}}return _0x20d9f6;}function a8_0x1708(){const _0x499e9c=['BODY','join','allow','limit','header','body','17244432sLIkLJ','static/apitest','-array','metadata','flags.presence','routerOptions','getClassExtendedMetadata','toString','PARAM','method','filepath','concat','summary','只允许:[','WEB_ROUTER_PARAM_KEY','propertyData','4266612obfEeh','ACTION_KEY','description','Object','title','FILESSTREAM','8eDufkb','noreq','defineProperty','@midwayjs/core','default','args','2725765zCotPV','array','QUERY','FIELDS','search','describe','String','getRoutes','required','function','@anncic-api/validator','intercept','1689600WqHaxL','route','startsWith','(((.+)+)+)+$','rules','filter','replace','type','module','RouteParamTypes','ACTION_ROUTE_KEY','FILESTREAM','push','pprefix','File','children','routes','get','getClassMetadata','HEADERS','938679zxcJmR','2hjWPNc','test','apply','indexOf','1687016vgUjSa','prefix','key','iterator','object','request','items','file','query','boolean','max','name','find','getMethodParamTypes','2631205qGAxVY','number','flags.label','isArray','min','tagName','string'];a8_0x1708=function(){return _0x499e9c;};return a8_0x1708();}function a8_0xfacb(_0x53f111,_0x13d9d7){const _0xd9eb3=a8_0x1708();return a8_0xfacb=function(_0x5bfc86,_0x46c44a){_0x5bfc86=_0x5bfc86-0xb8;let _0x1708e4=_0xd9eb3[_0x5bfc86];return _0x1708e4;},a8_0xfacb(_0x53f111,_0x13d9d7);}exports['getRoutes']=getRoutes;function getJoiRequest(_0x59c23c){const _0x2a710d=a8_0x5e3ad4,_0x5a9aca=[];for(let _0x5519b1 in _0x59c23c){const _0x3a0677={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x20a5af=typeof _0x59c23c[_0x5519b1][_0x2a710d(0x109)]=='function'?_0x59c23c[_0x5519b1]['describe']():_0x59c23c[_0x5519b1];_0x3a0677[_0x2a710d(0xcf)]=_0x5519b1,_0x3a0677[_0x2a710d(0xbb)]=_0x20a5af[_0x2a710d(0xbb)],_0x3a0677[_0x2a710d(0xfc)]=(0x0,lodash_1[_0x2a710d(0xc5)])(_0x20a5af,_0x2a710d(0xdd),_0x5519b1),_0x3a0677['default']=(0x0,lodash_1['get'])(_0x20a5af,'flags.default',''),_0x3a0677[_0x2a710d(0x10c)]=(0x0,lodash_1['get'])(_0x20a5af,_0x2a710d(0xec),'')=='required',_0x3a0677[_0x2a710d(0xfa)]=(0x0,lodash_1['get'])(_0x20a5af,'flags.description','');if(_0x20a5af[_0x2a710d(0xbb)]==_0x2a710d(0xd1))_0x3a0677[_0x2a710d(0xc3)]=getJoiRequest(_0x20a5af['keys']);else _0x20a5af[_0x2a710d(0xbb)]==_0x2a710d(0x105)&&_0x20a5af[_0x2a710d(0xd3)]&&Array[_0x2a710d(0xde)](_0x20a5af[_0x2a710d(0xd3)])&&_0x20a5af[_0x2a710d(0xd3)][0x0]&&console['log'](_0x5519b1+_0x2a710d(0xea),_0x20a5af);_0x20a5af[_0x2a710d(0xe4)]&&Array[_0x2a710d(0xde)](_0x20a5af['allow'])&&_0x20a5af[_0x2a710d(0xe4)]['length']>0x0&&(_0x3a0677[_0x2a710d(0xfa)]=_0x2a710d(0xf5)+_0x20a5af[_0x2a710d(0xe4)][_0x2a710d(0xe3)](',')+'];'+_0x3a0677['description']);if(_0x3a0677['key']&&_0x3a0677[_0x2a710d(0xbb)]){const _0x4bc8b4={};for(const _0x334d93 of _0x20a5af[_0x2a710d(0xb8)]||[]){if(_0x334d93[_0x2a710d(0xd8)]===_0x2a710d(0xdf)&&_0x334d93[_0x2a710d(0x103)])_0x4bc8b4['min']=_0x334d93[_0x2a710d(0x103)][_0x2a710d(0xe5)];else _0x334d93[_0x2a710d(0xd8)]===_0x2a710d(0xd7)&&(_0x4bc8b4[_0x2a710d(0xd7)]=_0x334d93[_0x2a710d(0x103)][_0x2a710d(0xe5)]);}_0x3a0677[_0x2a710d(0xb8)]=_0x4bc8b4;}_0x3a0677['key']&&_0x3a0677[_0x2a710d(0xfc)]&&_0x5a9aca[_0x2a710d(0xc0)](_0x3a0677);}return _0x5a9aca;}function convertSchemaType(_0x15792){const _0x386563=a8_0x5e3ad4;switch(_0x15792){case _0x386563(0xfb):return _0x386563(0xd1);case'Boolean':return _0x386563(0xd6);case'Number':return _0x386563(0xdc);case _0x386563(0x10a):return _0x386563(0xe1);case _0x386563(0xc2):return _0x386563(0xd4);default:return'string';}}function convertTypeToString(_0x1230b2){const _0x13b970=a8_0x5e3ad4;switch(_0x1230b2){case core_1[_0x13b970(0xbd)][_0x13b970(0xc7)]:return _0x13b970(0xe6);case core_1[_0x13b970(0xbd)][_0x13b970(0x106)]:return'query';case core_1[_0x13b970(0xbd)][_0x13b970(0xf0)]:return'path';case core_1[_0x13b970(0xbd)][_0x13b970(0xe2)]:return'body';case core_1[_0x13b970(0xbd)][_0x13b970(0x107)]:case core_1[_0x13b970(0xbd)][_0x13b970(0xfd)]:case core_1[_0x13b970(0xbd)][_0x13b970(0xbf)]:return'file';default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x4ce37d=a9_0x521f;(function(_0x3faff6,_0x260f56){var _0x11a7a7=a9_0x521f,_0x2ffc0d=_0x3faff6();while(!![]){try{var _0x5b2a98=-parseInt(_0x11a7a7(0xd3))/0x1*(-parseInt(_0x11a7a7(0xff))/0x2)+parseInt(_0x11a7a7(0xe4))/0x3+-parseInt(_0x11a7a7(0x109))/0x4+parseInt(_0x11a7a7(0xfd))/0x5+parseInt(_0x11a7a7(0x10d))/0x6*(parseInt(_0x11a7a7(0xdd))/0x7)+-parseInt(_0x11a7a7(0xf7))/0x8*(parseInt(_0x11a7a7(0x103))/0x9)+-parseInt(_0x11a7a7(0xdf))/0xa;if(_0x5b2a98===_0x260f56)break;else _0x2ffc0d['push'](_0x2ffc0d['shift']());}catch(_0x1fcfc4){_0x2ffc0d['push'](_0x2ffc0d['shift']());}}}(a9_0x59c3,0x517d7));var a9_0xa6ee6f=(function(){var _0x346770=!![];return function(_0x1f47ae,_0x55c04b){var _0x157800=_0x346770?function(){var _0x4fe8da=a9_0x521f;if(_0x55c04b){var _0x39f6ad=_0x55c04b[_0x4fe8da(0x107)](_0x1f47ae,arguments);return _0x55c04b=null,_0x39f6ad;}}:function(){};return _0x346770=![],_0x157800;};}()),a9_0x4b6f95=a9_0xa6ee6f(this,function(){var _0x30b6f1=a9_0x521f;return a9_0x4b6f95['toString']()[_0x30b6f1(0xf9)]('(((.+)+)+)+$')['toString']()['constructor'](a9_0x4b6f95)[_0x30b6f1(0xf9)](_0x30b6f1(0x102));});a9_0x4b6f95();'use strict';var __createBinding=this&&this[a9_0x4ce37d(0xf8)]||(Object[a9_0x4ce37d(0xf5)]?function(_0x28b529,_0x4946ac,_0x486b39,_0x432e83){var _0x18e060=a9_0x4ce37d;if(_0x432e83===undefined)_0x432e83=_0x486b39;var _0x18b123=Object[_0x18e060(0xd7)](_0x4946ac,_0x486b39);(!_0x18b123||('get'in _0x18b123?!_0x4946ac[_0x18e060(0xe7)]:_0x18b123[_0x18e060(0x100)]||_0x18b123[_0x18e060(0xd9)]))&&(_0x18b123={'enumerable':!![],'get':function(){return _0x4946ac[_0x486b39];}}),Object[_0x18e060(0xea)](_0x28b529,_0x432e83,_0x18b123);}:function(_0x57955b,_0x173b4f,_0x17ed2e,_0x354102){if(_0x354102===undefined)_0x354102=_0x17ed2e;_0x57955b[_0x354102]=_0x173b4f[_0x17ed2e];}),__exportStar=this&&this['__exportStar']||function(_0x1450cb,_0x302efd){var _0x24b55c=a9_0x4ce37d;for(var _0x1c152f in _0x1450cb)if(_0x1c152f!==_0x24b55c(0x106)&&!Object['prototype'][_0x24b55c(0x10c)][_0x24b55c(0xd4)](_0x302efd,_0x1c152f))__createBinding(_0x302efd,_0x1450cb,_0x1c152f);};Object[a9_0x4ce37d(0xea)](exports,'__esModule',{'value':!![]}),exports[a9_0x4ce37d(0x101)]=exports[a9_0x4ce37d(0xda)]=exports[a9_0x4ce37d(0xec)]=exports[a9_0x4ce37d(0x108)]=exports[a9_0x4ce37d(0xef)]=exports[a9_0x4ce37d(0xd8)]=exports[a9_0x4ce37d(0x104)]=exports[a9_0x4ce37d(0xfb)]=exports['Init']=exports[a9_0x4ce37d(0x10e)]=exports['Query']=exports['Param']=exports['Body']=exports[a9_0x4ce37d(0xeb)]=exports[a9_0x4ce37d(0xe8)]=exports[a9_0x4ce37d(0xe9)]=exports['Configuration']=exports[a9_0x4ce37d(0xdc)]=exports[a9_0x4ce37d(0xf2)]=exports[a9_0x4ce37d(0xf6)]=exports[a9_0x4ce37d(0xd5)]=exports['EventService']=exports['CacheService']=exports['ApiError']=exports[a9_0x4ce37d(0xfc)]=exports[a9_0x4ce37d(0xf0)]=exports[a9_0x4ce37d(0xe6)]=exports['Api']=void 0x0;const getAppsConfig_1=require(a9_0x4ce37d(0xe0));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0x101),{'enumerable':!![],'get':function(){var _0x4067f1=a9_0x4ce37d;return getAppsConfig_1[_0x4067f1(0x101)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x4ce37d(0xf1)),exports);var ActionApi_1=require(a9_0x4ce37d(0xd6));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0x10a),{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require('./decorator/Action');Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xe6),{'enumerable':!![],'get':function(){var _0xbbb39e=a9_0x4ce37d;return Action_1[_0xbbb39e(0xe6)];}});var ActionApitest_1=require(a9_0x4ce37d(0x10b));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xf0),{'enumerable':!![],'get':function(){var _0x38489a=a9_0x4ce37d;return ActionApitest_1[_0x38489a(0xf0)];}});function a9_0x521f(_0xdbc3b2,_0x4fcff4){var _0x28a3b8=a9_0x59c3();return a9_0x521f=function(_0x4b6f95,_0xa6ee6f){_0x4b6f95=_0x4b6f95-0xd2;var _0x59c3fb=_0x28a3b8[_0x4b6f95];return _0x59c3fb;},a9_0x521f(_0xdbc3b2,_0x4fcff4);}var getRoutes_1=require(a9_0x4ce37d(0xe5));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xfc),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x4ce37d(0xd2));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xee),{'enumerable':!![],'get':function(){var _0x4793b5=a9_0x4ce37d;return ApiError_1[_0x4793b5(0xee)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xe2),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xf4),{'enumerable':!![],'get':function(){var _0x56508e=a9_0x4ce37d;return event_1[_0x56508e(0xf4)];}});var ApiService_1=require(a9_0x4ce37d(0xed));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xd5),{'enumerable':!![],'get':function(){var _0x5ce5aa=a9_0x4ce37d;return ApiService_1[_0x5ce5aa(0xd5)];}});var ExcelService_1=require(a9_0x4ce37d(0xe3));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xf6),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require('@anncic-api/validator');Object[a9_0x4ce37d(0xea)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x4aff00=a9_0x4ce37d;return validator_1[_0x4aff00(0xf2)];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xdc),{'enumerable':!![],'get':function(){var _0x38b8b8=a9_0x4ce37d;return validator_1[_0x38b8b8(0xdc)];}});var configuration_1=require(a9_0x4ce37d(0xde));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xf3),{'enumerable':!![],'get':function(){var _0x43f7cd=a9_0x4ce37d;return configuration_1[_0x43f7cd(0x105)];}});var core_1=require(a9_0x4ce37d(0xfa));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xe9),{'enumerable':!![],'get':function(){var _0x3fccea=a9_0x4ce37d;return core_1[_0x3fccea(0xe9)];}}),Object['defineProperty'](exports,a9_0x4ce37d(0xe8),{'enumerable':!![],'get':function(){var _0xbf97=a9_0x4ce37d;return core_1[_0xbf97(0xe8)];}}),Object[a9_0x4ce37d(0xea)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x55e92c=a9_0x4ce37d;return core_1[_0x55e92c(0xeb)];}}),Object[a9_0x4ce37d(0xea)](exports,'Body',{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xdb),{'enumerable':!![],'get':function(){var _0x380c00=a9_0x4ce37d;return core_1[_0x380c00(0xdb)];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xfe),{'enumerable':!![],'get':function(){var _0x292cd5=a9_0x4ce37d;return core_1[_0x292cd5(0xfe)];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0x10e),{'enumerable':!![],'get':function(){var _0x3243dc=a9_0x4ce37d;return core_1[_0x3243dc(0x10e)];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xe1),{'enumerable':!![],'get':function(){var _0x362c12=a9_0x4ce37d;return core_1[_0x362c12(0xe1)];}});function a9_0x59c3(){var _0x1cf6f8=['18787QZDJVI','call','ApiService','./decorator/ActionApi','getOwnPropertyDescriptor','Logger','configurable','ScopeEnum','Param','ValidatorService','35oCYUel','./configuration','1692490Ohznxs','./helper/getAppsConfig','Init','CacheService','./service/ExcelService','1379886noCEtM','./helper/getRoutes','Action','__esModule','Files','File','defineProperty','Fields','Scope','./service/ApiService','ApiError','Provide','Apitest','./service/ApitestService','ValidatorError','Configuration','EventService','create','ExcelService','1944KUbSnA','__createBinding','search','@midwayjs/core','App','getRoutes','479290gCRnZw','Query','58SvkUNG','writable','getAppsConfig','(((.+)+)+)+$','11232qBZCrj','Config','CustomConfiguration','default','apply','Inject','1637808itZKaS','Api','./decorator/ActionApitest','hasOwnProperty','138126uMOice','Headers','./exception/ApiError'];a9_0x59c3=function(){return _0x1cf6f8;};return a9_0x59c3();}var core_2=require(a9_0x4ce37d(0xfa));Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xfb),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,a9_0x4ce37d(0x104),{'enumerable':!![],'get':function(){var _0x2c6835=a9_0x4ce37d;return core_2[_0x2c6835(0x104)];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xd8),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x4ce37d(0xea)](exports,'Provide',{'enumerable':!![],'get':function(){var _0xb0ec=a9_0x4ce37d;return core_2[_0xb0ec(0xef)];}}),Object['defineProperty'](exports,a9_0x4ce37d(0x108),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xec),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x4ce37d(0xea)](exports,a9_0x4ce37d(0xda),{'enumerable':!![],'get':function(){var _0x33af62=a9_0x4ce37d;return core_2[_0x33af62(0xda)];}}),global[a9_0x4ce37d(0x101)]=getAppsConfig_1[a9_0x4ce37d(0x101)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x100ff5=a10_0x1a70;(function(_0x400e45,_0x3c3769){var _0x11f371=a10_0x1a70,_0x1b37e7=_0x400e45();while(!![]){try{var _0x5d3b72=-parseInt(_0x11f371(0x180))/0x1*(-parseInt(_0x11f371(0x17a))/0x2)+-parseInt(_0x11f371(0x14c))/0x3*(-parseInt(_0x11f371(0x17e))/0x4)+-parseInt(_0x11f371(0x16f))/0x5*(parseInt(_0x11f371(0x164))/0x6)+-parseInt(_0x11f371(0x177))/0x7*(-parseInt(_0x11f371(0x163))/0x8)+-parseInt(_0x11f371(0x15c))/0x9+-parseInt(_0x11f371(0x18b))/0xa*(parseInt(_0x11f371(0x17d))/0xb)+parseInt(_0x11f371(0x170))/0xc;if(_0x5d3b72===_0x3c3769)break;else _0x1b37e7['push'](_0x1b37e7['shift']());}catch(_0x194223){_0x1b37e7['push'](_0x1b37e7['shift']());}}}(a10_0x1f29,0x35936));function a10_0x1f29(){var _0x1a0bc1=['device','__decorate','timeout','ApiError','HEADERS_LACK','object','1445778pTewDj','secret','Singleton','requesttime','__metadata','getcheck','HEADERS_DEVICE','6008AWPfxP','6kKvqpE','getsign','__esModule','ApiService','length','checkcode','constructor','HEADERS_SIGNATURE','logintime','ScopeEnum','缺少头信息:signature','2163785xSKszg','6714948cYZnYI','请求超时,请重试或改善网络环境','abs','devices','Config','undefined','map','35CoCyhR','TIMEOUT','(((.+)+)+)+$','262jhHVvn','function','crypto-js','5027pbUiUm','303092TwjjQD','search','3284ExGbbx','checksign','push','prototype','logintimeout','HEADERS_CHECKCODE','token','password','../exception/ApiError','toLowerCase','now','7270usHWLN','@midwayjs/core','toString','design:type','entries','MD5','config','6ZcNfQn','secret=','sort','anncicapi','fromEntries','signature','decorate','TIMEOUT_LOGINTIME','defineProperty','join'];a10_0x1f29=function(){return _0x1a0bc1;};return a10_0x1f29();}var a10_0x45dbbe=(function(){var _0x2710fc=!![];return function(_0x39bf5a,_0x36de0e){var _0x53f146=_0x2710fc?function(){if(_0x36de0e){var _0x48a6f5=_0x36de0e['apply'](_0x39bf5a,arguments);return _0x36de0e=null,_0x48a6f5;}}:function(){};return _0x2710fc=![],_0x53f146;};}()),a10_0x53b76d=a10_0x45dbbe(this,function(){var _0x2e3344=a10_0x1a70;return a10_0x53b76d[_0x2e3344(0x147)]()[_0x2e3344(0x17f)](_0x2e3344(0x179))[_0x2e3344(0x147)]()[_0x2e3344(0x16a)](a10_0x53b76d)[_0x2e3344(0x17f)]('(((.+)+)+)+$');});a10_0x53b76d();'use strict';var __decorate=this&&this[a10_0x100ff5(0x157)]||function(_0x2f17c5,_0x4a9b11,_0x65c0e6,_0x46b5c6){var _0x27e421=a10_0x100ff5,_0x30456b=arguments[_0x27e421(0x168)],_0x3a36c4=_0x30456b<0x3?_0x4a9b11:_0x46b5c6===null?_0x46b5c6=Object['getOwnPropertyDescriptor'](_0x4a9b11,_0x65c0e6):_0x46b5c6,_0x3f5a6c;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x27e421(0x17b))_0x3a36c4=Reflect[_0x27e421(0x152)](_0x2f17c5,_0x4a9b11,_0x65c0e6,_0x46b5c6);else{for(var _0x3728a5=_0x2f17c5['length']-0x1;_0x3728a5>=0x0;_0x3728a5--)if(_0x3f5a6c=_0x2f17c5[_0x3728a5])_0x3a36c4=(_0x30456b<0x3?_0x3f5a6c(_0x3a36c4):_0x30456b>0x3?_0x3f5a6c(_0x4a9b11,_0x65c0e6,_0x3a36c4):_0x3f5a6c(_0x4a9b11,_0x65c0e6))||_0x3a36c4;}return _0x30456b>0x3&&_0x3a36c4&&Object[_0x27e421(0x154)](_0x4a9b11,_0x65c0e6,_0x3a36c4),_0x3a36c4;},__metadata=this&&this[a10_0x100ff5(0x160)]||function(_0x4f0fc2,_0x5a66eb){var _0x423e46=a10_0x100ff5;if(typeof Reflect===_0x423e46(0x15b)&&typeof Reflect['metadata']===_0x423e46(0x17b))return Reflect['metadata'](_0x4f0fc2,_0x5a66eb);};Object[a10_0x100ff5(0x154)](exports,a10_0x100ff5(0x166),{'value':!![]}),exports[a10_0x100ff5(0x167)]=void 0x0;const crypto_js_1=require(a10_0x100ff5(0x17c)),core_1=require(a10_0x100ff5(0x146)),ApiError_1=require(a10_0x100ff5(0x188));function a10_0x1a70(_0xba606,_0x414103){var _0x399c1c=a10_0x1f29();return a10_0x1a70=function(_0x53b76d,_0x45dbbe){_0x53b76d=_0x53b76d-0x146;var _0x1f294b=_0x399c1c[_0x53b76d];return _0x1f294b;},a10_0x1a70(_0xba606,_0x414103);}let ApiService=class ApiService{['password'](_0x3b346d){var _0x2736ff=a10_0x100ff5,_0x8e26a9;return _0x3b346d?(0x0,crypto_js_1['MD5'])(_0x3b346d+(0x0,crypto_js_1[_0x2736ff(0x14a)])((0x0,crypto_js_1[_0x2736ff(0x14a)])(_0x3b346d)[_0x2736ff(0x147)]()+((_0x8e26a9=this['config'])===null||_0x8e26a9===void 0x0?void 0x0:_0x8e26a9[_0x2736ff(0x187)]))[_0x2736ff(0x147)]())[_0x2736ff(0x147)]():'';}[a10_0x100ff5(0x161)](_0x3ef41a,_0x4aefe8,_0x57b70b=Date[a10_0x100ff5(0x18a)]()){var _0x3954f3=a10_0x100ff5;return{'Token':_0x3ef41a,'Logintime':_0x57b70b,'Checkcode':this[_0x3954f3(0x169)](_0x3ef41a,_0x4aefe8,_0x57b70b)};}['getsign'](_0x152563={}){var _0x3c64d4=a10_0x100ff5,_0x459d8f;const _0x927be8=[],_0x1690ff=Object[_0x3c64d4(0x150)](Object[_0x3c64d4(0x149)](_0x152563)[_0x3c64d4(0x176)](_0x168ab8=>[_0x168ab8[0x0][_0x3c64d4(0x189)](),_0x168ab8[0x1]]));for(let _0x472f25 of[_0x3c64d4(0x156),_0x3c64d4(0x15f),_0x3c64d4(0x186),'logintime',_0x3c64d4(0x169)]){if(typeof _0x1690ff[_0x472f25]==_0x3c64d4(0x175))throw new AnnError(ApiError_1[_0x3c64d4(0x159)][_0x3c64d4(0x15a)],{'message':'缺少头信息:'+_0x472f25});_0x927be8[_0x3c64d4(0x182)](_0x472f25+'='+_0x1690ff[_0x472f25]);}if(this[_0x3c64d4(0x14b)]['timeout']&&Date[_0x3c64d4(0x18a)]()-Math[_0x3c64d4(0x172)](_0x1690ff['requesttime'])>this[_0x3c64d4(0x14b)][_0x3c64d4(0x158)])throw new AnnError(ApiError_1[_0x3c64d4(0x159)][_0x3c64d4(0x178)],{'message':_0x3c64d4(0x171),'requesttime':_0x1690ff[_0x3c64d4(0x15f)],'timestamp':Date[_0x3c64d4(0x18a)]()});if((((_0x459d8f=this[_0x3c64d4(0x14b)][_0x3c64d4(0x173)][_0x1690ff[_0x3c64d4(0x156)]])===null||_0x459d8f===void 0x0?void 0x0:_0x459d8f[_0x3c64d4(0x184)])||0x0)>0x0&&Date['now']()-Math[_0x3c64d4(0x172)](_0x1690ff['logintime'])>this['config'][_0x3c64d4(0x173)][_0x1690ff[_0x3c64d4(0x156)]][_0x3c64d4(0x184)])throw new AnnError(ApiError_1[_0x3c64d4(0x159)][_0x3c64d4(0x153)]);if(!this[_0x3c64d4(0x14b)][_0x3c64d4(0x173)][_0x1690ff[_0x3c64d4(0x156)]]||!this[_0x3c64d4(0x14b)][_0x3c64d4(0x173)][_0x1690ff['device']][_0x3c64d4(0x15d)]||!this[_0x3c64d4(0x14b)][_0x3c64d4(0x173)][_0x1690ff[_0x3c64d4(0x156)]][_0x3c64d4(0x169)])throw new AnnError(ApiError_1[_0x3c64d4(0x159)]['HEADERS_DEVICE']);if(_0x1690ff[_0x3c64d4(0x186)]&&_0x1690ff['checkcode']!=this['checkcode'](_0x1690ff[_0x3c64d4(0x186)],_0x1690ff[_0x3c64d4(0x156)],_0x1690ff[_0x3c64d4(0x16c)]))throw new AnnError(ApiError_1[_0x3c64d4(0x159)][_0x3c64d4(0x185)]);return _0x927be8['push'](_0x3c64d4(0x14d)+this[_0x3c64d4(0x14b)][_0x3c64d4(0x173)][_0x1690ff[_0x3c64d4(0x156)]]['secret']),(0x0,crypto_js_1[_0x3c64d4(0x14a)])(_0x927be8[_0x3c64d4(0x14e)]()[_0x3c64d4(0x155)](''))['toString']();}['checkcode'](_0x1f4612,_0x14feac,_0x8a38de=Date[a10_0x100ff5(0x18a)]()){var _0xb56394=a10_0x100ff5,_0x1ca0da,_0x17f42b,_0x3bd2ed;if(!((_0x1ca0da=this[_0xb56394(0x14b)])===null||_0x1ca0da===void 0x0?void 0x0:_0x1ca0da[_0xb56394(0x173)][_0x14feac])||!((_0x3bd2ed=(_0x17f42b=this[_0xb56394(0x14b)])===null||_0x17f42b===void 0x0?void 0x0:_0x17f42b[_0xb56394(0x173)][_0x14feac])===null||_0x3bd2ed===void 0x0?void 0x0:_0x3bd2ed[_0xb56394(0x169)]))throw new AnnError(ApiError_1['ApiError'][_0xb56394(0x162)]);return(0x0,crypto_js_1['MD5'])(_0x1f4612+(0x0,crypto_js_1[_0xb56394(0x14a)])(_0x8a38de+this[_0xb56394(0x14b)][_0xb56394(0x173)][_0x14feac][_0xb56394(0x169)])['toString']())['toString']();}[a10_0x100ff5(0x181)](_0x501c14={}){var _0x5ce0ed=a10_0x100ff5;const _0x4f6daf=Object['fromEntries'](Object['entries'](_0x501c14)[_0x5ce0ed(0x176)](_0x1180ae=>[_0x1180ae[0x0][_0x5ce0ed(0x189)](),_0x1180ae[0x1]]));if(!(_0x4f6daf===null||_0x4f6daf===void 0x0?void 0x0:_0x4f6daf['signature']))throw new AnnError(ApiError_1[_0x5ce0ed(0x159)][_0x5ce0ed(0x15a)],{'message':_0x5ce0ed(0x16e)});if((_0x4f6daf===null||_0x4f6daf===void 0x0?void 0x0:_0x4f6daf[_0x5ce0ed(0x151)])!=this[_0x5ce0ed(0x165)](_0x4f6daf))throw new AnnError(ApiError_1['ApiError'][_0x5ce0ed(0x16b)]);return!![];}};__decorate([(0x0,core_1[a10_0x100ff5(0x174)])(a10_0x100ff5(0x14f)),__metadata(a10_0x100ff5(0x148),Object)],ApiService[a10_0x100ff5(0x183)],a10_0x100ff5(0x14b),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a10_0x100ff5(0x16d)][a10_0x100ff5(0x15e)])],ApiService),exports[a10_0x100ff5(0x167)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11_0x2fdb9b=a11_0x8e64;(function(_0x4a3ea2,_0x33e3ba){const _0x452bc9=a11_0x8e64,_0xf03b2d=_0x4a3ea2();while(!![]){try{const _0x535c8a=-parseInt(_0x452bc9(0x164))/0x1+parseInt(_0x452bc9(0x13d))/0x2+-parseInt(_0x452bc9(0x16f))/0x3*(parseInt(_0x452bc9(0x170))/0x4)+parseInt(_0x452bc9(0x15d))/0x5*(-parseInt(_0x452bc9(0x13a))/0x6)+parseInt(_0x452bc9(0x16d))/0x7+parseInt(_0x452bc9(0x15e))/0x8*(parseInt(_0x452bc9(0x158))/0x9)+-parseInt(_0x452bc9(0x131))/0xa*(parseInt(_0x452bc9(0x156))/0xb);if(_0x535c8a===_0x33e3ba)break;else _0xf03b2d['push'](_0xf03b2d['shift']());}catch(_0x5163ce){_0xf03b2d['push'](_0xf03b2d['shift']());}}}(a11_0x542b,0xe565c));const a11_0x53bccb=(function(){let _0x111e2b=!![];return function(_0x127d3c,_0x353a6e){const _0x237707=_0x111e2b?function(){const _0x47ff81=a11_0x8e64;if(_0x353a6e){const _0x2914d2=_0x353a6e[_0x47ff81(0x13c)](_0x127d3c,arguments);return _0x353a6e=null,_0x2914d2;}}:function(){};return _0x111e2b=![],_0x237707;};}()),a11_0x597001=a11_0x53bccb(this,function(){const _0x5ed627=a11_0x8e64;return a11_0x597001[_0x5ed627(0x168)]()[_0x5ed627(0x154)](_0x5ed627(0x169))[_0x5ed627(0x168)]()[_0x5ed627(0x176)](a11_0x597001)['search']('(((.+)+)+)+$');});a11_0x597001();function a11_0x8e64(_0x1b6ae8,_0x51b42c){const _0x4d7245=a11_0x542b();return a11_0x8e64=function(_0x597001,_0x53bccb){_0x597001=_0x597001-0x12e;let _0x542b85=_0x4d7245[_0x597001];return _0x542b85;},a11_0x8e64(_0x1b6ae8,_0x51b42c);}'use strict';var __decorate=this&&this[a11_0x2fdb9b(0x182)]||function(_0x425118,_0x4d971f,_0x5957fa,_0x4dce0a){const _0x56caf1=a11_0x2fdb9b;var _0x25968a=arguments[_0x56caf1(0x151)],_0x48a46=_0x25968a<0x3?_0x4d971f:_0x4dce0a===null?_0x4dce0a=Object['getOwnPropertyDescriptor'](_0x4d971f,_0x5957fa):_0x4dce0a,_0x56b6be;if(typeof Reflect===_0x56caf1(0x17e)&&typeof Reflect[_0x56caf1(0x133)]===_0x56caf1(0x17b))_0x48a46=Reflect[_0x56caf1(0x133)](_0x425118,_0x4d971f,_0x5957fa,_0x4dce0a);else{for(var _0x1b2c34=_0x425118['length']-0x1;_0x1b2c34>=0x0;_0x1b2c34--)if(_0x56b6be=_0x425118[_0x1b2c34])_0x48a46=(_0x25968a<0x3?_0x56b6be(_0x48a46):_0x25968a>0x3?_0x56b6be(_0x4d971f,_0x5957fa,_0x48a46):_0x56b6be(_0x4d971f,_0x5957fa))||_0x48a46;}return _0x25968a>0x3&&_0x48a46&&Object[_0x56caf1(0x136)](_0x4d971f,_0x5957fa,_0x48a46),_0x48a46;},__metadata=this&&this[a11_0x2fdb9b(0x15a)]||function(_0x163114,_0x52cb99){const _0x170c70=a11_0x2fdb9b;if(typeof Reflect===_0x170c70(0x17e)&&typeof Reflect[_0x170c70(0x138)]==='function')return Reflect[_0x170c70(0x138)](_0x163114,_0x52cb99);},__param=this&&this['__param']||function(_0x12f473,_0x1bc20d){return function(_0x394edd,_0x2fcd59){_0x1bc20d(_0x394edd,_0x2fcd59,_0x12f473);};};Object['defineProperty'](exports,a11_0x2fdb9b(0x179),{'value':!![]}),exports[a11_0x2fdb9b(0x171)]=exports['ApitestService']=void 0x0;function a11_0x542b(){const _0x90f953=['222SowgQO','Provide','apply','3086400fvAUom','filepath','MidwayEnvironmentService','prototype','existsSync','isDevelopmentEnvironment','text/css;\x20charset=utf-8','Param','ctx','/apiteststatic/','design:returntype','cache-control','apidoc','content-type','module','/apitest-:module','design:paramtypes','push','Environment','set','length','config','Get','search','__apiList__','5570983PtdtaO','summary','2389410nQROVE','stringify','__metadata','join','extname','36910RiGnLi','24RpJdCE','route','Scope','/index.html','apitestmodule','../../public/','946754DWMDCW','Request','method','request','toString','(((.+)+)+)+$','devices','__devices__','utf-8','11438581rIOycA','substring','162MRtkmG','21844CjObHf','ApitestStaticController','apiteststatic','application/javascript;\x20charset=utf-8','readFileSync','../../public/index.html','constructor','ScopeEnum','/apitest','__esModule','routes','function','../helper/getRoutes','apitest','object','design:type','anncicapi','prefix','__decorate','@midwayjs/core','ApitestService','public,\x20max-age=604800','30tBgKlY','apitesthtml','decorate','url','Inject','defineProperty','Config','metadata','replace'];a11_0x542b=function(){return _0x90f953;};return a11_0x542b();}const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x2fdb9b(0x12e)),core_2=require(a11_0x2fdb9b(0x12e)),core_3=require(a11_0x2fdb9b(0x12e)),getRoutes_1=require(a11_0x2fdb9b(0x17c));let ApitestService=class ApitestService{async['apidoc'](_0x19358b){const _0x2988f6=a11_0x2fdb9b,_0x1ba5c3=(0x0,getRoutes_1['getRoutes'])(_0x19358b),_0x35c91f=[];for(let _0x44a92a in _0x1ba5c3){for(let _0x29843a in _0x1ba5c3[_0x44a92a][_0x2988f6(0x17a)]){let _0x523120=_0x1ba5c3[_0x44a92a][_0x2988f6(0x17a)][_0x29843a],_0x5ad504=[];for(let _0x575e5c in _0x523120[_0x2988f6(0x167)]){_0x5ad504[_0x2988f6(0x14e)](_0x523120[_0x2988f6(0x167)][_0x575e5c]);}_0x35c91f['push']({'title':_0x1ba5c3[_0x44a92a][_0x2988f6(0x157)]+':'+_0x523120['summary'],'prefix':_0x1ba5c3[_0x44a92a][_0x2988f6(0x181)],'router':_0x523120[_0x2988f6(0x15f)],'method':_0x523120[_0x2988f6(0x166)],'describe':_0x523120['description']||'','filepath':_0x1ba5c3[_0x44a92a][_0x2988f6(0x13e)]||'','request':_0x5ad504});}}const _0x27bb9e=(0x0,path_1[_0x2988f6(0x15b)])(__dirname,_0x2988f6(0x175));return(0x0,fs_1[_0x2988f6(0x174)])(_0x27bb9e,{'encoding':_0x2988f6(0x16c)})[_0x2988f6(0x139)](/__res__/g,_0x2988f6(0x146))[_0x2988f6(0x139)](_0x2988f6(0x155),JSON[_0x2988f6(0x159)](_0x35c91f))['replace'](_0x2988f6(0x16b),JSON[_0x2988f6(0x159)](this[_0x2988f6(0x152)][_0x2988f6(0x16a)]));}};__decorate([(0x0,core_3['Config'])('anncicapi'),__metadata(a11_0x2fdb9b(0x17f),Object)],ApitestService[a11_0x2fdb9b(0x140)],a11_0x2fdb9b(0x152),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x2fdb9b(0x13b)])(a11_0x2fdb9b(0x17d)),(0x0,core_3[a11_0x2fdb9b(0x160)])(core_3[a11_0x2fdb9b(0x177)]['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x53b022=a11_0x2fdb9b;if(this['apitest']){const _0x3c3be2={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x3c3be2['filepath']=!![]),await this[_0x53b022(0x12f)][_0x53b022(0x149)](_0x3c3be2);}return'';}async[a11_0x2fdb9b(0x162)](_0x4d2f4c){const _0x2bc96d=a11_0x2fdb9b;if(this[_0x2bc96d(0x17d)]){const _0x5d3108={'module':_0x4d2f4c};return this[_0x2bc96d(0x14f)][_0x2bc96d(0x142)]()&&(_0x5d3108[_0x2bc96d(0x13e)]=!![]),await this[_0x2bc96d(0x12f)]['apidoc'](_0x5d3108);}return'';}async[a11_0x2fdb9b(0x172)](){const _0x1972f8=a11_0x2fdb9b;if((0x0,path_1['extname'])(this[_0x1972f8(0x145)][_0x1972f8(0x167)][_0x1972f8(0x134)])){var _0x224e3b=(0x0,path_1[_0x1972f8(0x15b)])(__dirname,_0x1972f8(0x163)+this[_0x1972f8(0x145)][_0x1972f8(0x167)][_0x1972f8(0x134)][_0x1972f8(0x139)](_0x1972f8(0x146),'/'));if(_0x224e3b[_0x1972f8(0x16e)](_0x224e3b[_0x1972f8(0x151)]-0xb)!=_0x1972f8(0x161)){this['ctx'][_0x1972f8(0x150)](_0x1972f8(0x148),_0x1972f8(0x130));if((0x0,path_1[_0x1972f8(0x15c)])(this[_0x1972f8(0x145)][_0x1972f8(0x167)]['url'])=='.js')this[_0x1972f8(0x145)]['set'](_0x1972f8(0x14a),_0x1972f8(0x173));else(0x0,path_1['extname'])(this['ctx'][_0x1972f8(0x167)]['url'])=='.css'&&this[_0x1972f8(0x145)]['set'](_0x1972f8(0x14a),_0x1972f8(0x143));return(0x0,fs_1[_0x1972f8(0x141)])(_0x224e3b)&&(0x0,fs_1[_0x1972f8(0x174)])(_0x224e3b,{'encoding':_0x1972f8(0x16c)});}}return'';}};__decorate([(0x0,core_3[a11_0x2fdb9b(0x135)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x2fdb9b(0x145),void 0x0),__decorate([(0x0,core_3[a11_0x2fdb9b(0x135)])(),__metadata(a11_0x2fdb9b(0x17f),core_1[a11_0x2fdb9b(0x13f)])],ApitestStaticController[a11_0x2fdb9b(0x140)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x2fdb9b(0x135)])(),__metadata('design:type',ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,core_3['Config'])(a11_0x2fdb9b(0x17d)),__metadata(a11_0x2fdb9b(0x17f),Boolean)],ApitestStaticController[a11_0x2fdb9b(0x140)],a11_0x2fdb9b(0x17d),void 0x0),__decorate([(0x0,core_3[a11_0x2fdb9b(0x137)])(a11_0x2fdb9b(0x180)),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x2fdb9b(0x152),void 0x0),__decorate([(0x0,core_2[a11_0x2fdb9b(0x153)])(a11_0x2fdb9b(0x178)),__metadata(a11_0x2fdb9b(0x17f),Function),__metadata(a11_0x2fdb9b(0x14d),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x2fdb9b(0x132),null),__decorate([(0x0,core_2[a11_0x2fdb9b(0x153)])(a11_0x2fdb9b(0x14c)),__param(0x0,(0x0,core_2[a11_0x2fdb9b(0x144)])(a11_0x2fdb9b(0x14b))),__metadata(a11_0x2fdb9b(0x17f),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x2fdb9b(0x140)],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x2fdb9b(0x153)])('/apiteststatic/*'),__metadata(a11_0x2fdb9b(0x17f),Function),__metadata(a11_0x2fdb9b(0x14d),[]),__metadata(a11_0x2fdb9b(0x147),Promise)],ApitestStaticController['prototype'],a11_0x2fdb9b(0x172),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3['Scope'])(core_3[a11_0x2fdb9b(0x177)][a11_0x2fdb9b(0x165)])],ApitestStaticController),exports[a11_0x2fdb9b(0x171)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x25293d=a12_0x3d25;(function(_0x20e9de,_0x543beb){const _0x15c9c3=a12_0x3d25,_0x16f787=_0x20e9de();while(!![]){try{const _0x4cb4e0=parseInt(_0x15c9c3(0xfc))/0x1+parseInt(_0x15c9c3(0x10a))/0x2+-parseInt(_0x15c9c3(0xf6))/0x3*(parseInt(_0x15c9c3(0xf9))/0x4)+parseInt(_0x15c9c3(0xe7))/0x5+parseInt(_0x15c9c3(0xeb))/0x6*(-parseInt(_0x15c9c3(0xcd))/0x7)+-parseInt(_0x15c9c3(0xf1))/0x8+-parseInt(_0x15c9c3(0xe0))/0x9*(-parseInt(_0x15c9c3(0xda))/0xa);if(_0x4cb4e0===_0x543beb)break;else _0x16f787['push'](_0x16f787['shift']());}catch(_0x4d340f){_0x16f787['push'](_0x16f787['shift']());}}}(a12_0x3b8b,0xc5fbc));const a12_0x411482=(function(){let _0x1fcb4a=!![];return function(_0xb270f,_0x752445){const _0x4b01f4=_0x1fcb4a?function(){const _0xa0076e=a12_0x3d25;if(_0x752445){const _0x2b22b2=_0x752445[_0xa0076e(0xf7)](_0xb270f,arguments);return _0x752445=null,_0x2b22b2;}}:function(){};return _0x1fcb4a=![],_0x4b01f4;};}()),a12_0x16d033=a12_0x411482(this,function(){const _0x113f88=a12_0x3d25;return a12_0x16d033[_0x113f88(0x108)]()['search'](_0x113f88(0xff))[_0x113f88(0x108)]()[_0x113f88(0x100)](a12_0x16d033)[_0x113f88(0x106)]('(((.+)+)+)+$');});a12_0x16d033();'use strict';var __decorate=this&&this[a12_0x25293d(0x107)]||function(_0x2cae29,_0x5d5b19,_0x5d0e7f,_0x167e0b){const _0x165329=a12_0x25293d;var _0x6b63ac=arguments['length'],_0x42ac70=_0x6b63ac<0x3?_0x5d5b19:_0x167e0b===null?_0x167e0b=Object['getOwnPropertyDescriptor'](_0x5d5b19,_0x5d0e7f):_0x167e0b,_0x21662c;if(typeof Reflect===_0x165329(0x104)&&typeof Reflect[_0x165329(0xf5)]===_0x165329(0xe4))_0x42ac70=Reflect[_0x165329(0xf5)](_0x2cae29,_0x5d5b19,_0x5d0e7f,_0x167e0b);else{for(var _0x1bb8eb=_0x2cae29[_0x165329(0xe6)]-0x1;_0x1bb8eb>=0x0;_0x1bb8eb--)if(_0x21662c=_0x2cae29[_0x1bb8eb])_0x42ac70=(_0x6b63ac<0x3?_0x21662c(_0x42ac70):_0x6b63ac>0x3?_0x21662c(_0x5d5b19,_0x5d0e7f,_0x42ac70):_0x21662c(_0x5d5b19,_0x5d0e7f))||_0x42ac70;}return _0x6b63ac>0x3&&_0x42ac70&&Object[_0x165329(0x102)](_0x5d5b19,_0x5d0e7f,_0x42ac70),_0x42ac70;},__metadata=this&&this['__metadata']||function(_0x3507df,_0x1c9d68){const _0x316985=a12_0x25293d;if(typeof Reflect===_0x316985(0x104)&&typeof Reflect[_0x316985(0xe2)]===_0x316985(0xe4))return Reflect[_0x316985(0xe2)](_0x3507df,_0x1c9d68);};function a12_0x3b8b(){const _0x82e9a3=['readFile','1991647TQqFhD','rowCount','Api\x20Excel\x20Error:\x20','getRow','replace','startsWith','xlsx','public/xlsx','Singleton','@midwayjs/core','/public/xlsx','Workbook','addRow','61270IkQwke','eachCell','app','cellCount','substring','getCell','1845zCwqgf','existsSync','metadata','Scope','function','model','length','3517500fNKJlk','writeFile','Provide','endsWith','24famKUy','header','worksheets','__esModule','koa-send','value','9992816bQgGOw','prototype','ExcelService','.xlsx','decorate','235434vqloaX','apply','getAppDir','12hEeLtd','random','findRows','695676WJbkOz','push','addWorksheet','(((.+)+)+)+$','constructor','exceljs','defineProperty','log','object','\x20is\x20read\x20fail','search','__decorate','toString','handler','1556698aXnEEV','key','columns'];a12_0x3b8b=function(){return _0x82e9a3;};return a12_0x3b8b();}function a12_0x3d25(_0xa5c94,_0x1aaf4c){const _0x2d0bc2=a12_0x3b8b();return a12_0x3d25=function(_0x16d033,_0x411482){_0x16d033=_0x16d033-0xcd;let _0x3b8bea=_0x2d0bc2[_0x16d033];return _0x3b8bea;},a12_0x3d25(_0xa5c94,_0x1aaf4c);}Object[a12_0x25293d(0x102)](exports,a12_0x25293d(0xee),{'value':!![]}),exports[a12_0x25293d(0xf3)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x25293d(0x101)),koasend=require(a12_0x25293d(0xef)),core_1=require(a12_0x25293d(0xd6));let ExcelService=class ExcelService{async['parse'](_0x2dc812,_0x51ccdb,_0x266ea4=[0x0]){const _0x19b32a=a12_0x25293d;var _0x51afa5,_0x181fe4;const _0x428c3c=new exceljs[(_0x19b32a(0xd8))](),_0xae1eaa=[];let _0x3d8a1b=_0x2dc812[_0x19b32a(0xd1)](/(\\|\/)/g,'/')[_0x19b32a(0xd1)](/\/{2,}/g,'/');!(_0x3d8a1b===null||_0x3d8a1b===void 0x0?void 0x0:_0x3d8a1b[_0x19b32a(0xd2)]('/'))&&(_0x3d8a1b=this[_0x19b32a(0xdc)][_0x19b32a(0xf8)]()+'/'+_0x3d8a1b);try{await _0x428c3c['xlsx'][_0x19b32a(0x10d)](_0x3d8a1b);}catch(_0xef7613){return console[_0x19b32a(0x103)](_0x19b32a(0xcf)+_0x3d8a1b+_0x19b32a(0x105)),_0xae1eaa;}for(const _0x4a36df of _0x266ea4){const _0x184497=lodash['isNumber'](_0x4a36df)?((_0x51afa5=_0x428c3c[_0x19b32a(0xed)])===null||_0x51afa5===void 0x0?void 0x0:_0x51afa5[_0x4a36df])||undefined:_0x428c3c['getWorksheet'](_0x4a36df);if(_0x184497){var _0xfc1665=0x1;const _0x3011cc=_0x184497[_0x19b32a(0xd0)](0x1),_0xbac8fc=await new Promise(_0x5d9187=>{const _0x16f317=_0x19b32a,_0x558f68={};_0x3011cc[_0x16f317(0xdb)]((_0x50ef74,_0x1ddf18)=>{const _0x21c0a3=_0x16f317;for(const _0x356f11 of _0x51ccdb){if(_0x50ef74[_0x21c0a3(0xf0)]==_0x356f11['header'])_0xfc1665=0x2,_0x558f68[_0x356f11[_0x21c0a3(0x10b)]]={'header':_0x50ef74['col'],'handler':_0x356f11[_0x21c0a3(0x109)]};else{if(!_0x558f68[_0x356f11[_0x21c0a3(0x10b)]])try{const _0x3c9746=_0x3011cc[_0x21c0a3(0xdf)](_0x356f11[_0x21c0a3(0xec)]);_0x3c9746&&(_0x558f68[_0x356f11[_0x21c0a3(0x10b)]]={'header':_0x3c9746['col'],'handler':_0x356f11['handler']});}catch{}}}_0x3011cc[_0x21c0a3(0xdd)]==_0x1ddf18&&_0x5d9187(_0x558f68);});});for(const _0x2738c4 of _0x184497[_0x19b32a(0xfb)](_0xfc1665,_0x184497[_0x19b32a(0xce)])){const _0x4bd09f={};for(const _0x3f418d in _0xbac8fc){if(_0xbac8fc[_0x3f418d][_0x19b32a(0xec)]){const _0x398a93=_0x2738c4[_0x19b32a(0xdf)](_0xbac8fc[_0x3f418d][_0x19b32a(0xec)]);typeof((_0x181fe4=_0xbac8fc[_0x3f418d])===null||_0x181fe4===void 0x0?void 0x0:_0x181fe4['handler'])==_0x19b32a(0xe4)?_0x4bd09f[_0x3f418d]=await _0xbac8fc[_0x3f418d][_0x19b32a(0x109)]((_0x398a93===null||_0x398a93===void 0x0?void 0x0:_0x398a93[_0x19b32a(0x108)]())||'',_0x398a93[_0x19b32a(0xe5)]):_0x4bd09f[_0x3f418d]=(_0x398a93===null||_0x398a93===void 0x0?void 0x0:_0x398a93[_0x19b32a(0x108)]())||'';}}Object['keys'](_0x4bd09f)[_0x19b32a(0xe6)]>0x0&&_0xae1eaa[_0x19b32a(0xfd)](_0x4bd09f);}}}return _0xae1eaa;}async['export'](_0x15ac04,_0x46c192,_0x4090db,_0x50fee7=a12_0x25293d(0xd4)){const _0x10ea6a=a12_0x25293d;var _0x3730e3,_0x46846f;const _0x24d45b=new exceljs[(_0x10ea6a(0xd8))](),_0x1a95c1={},_0x85d346=[],_0x267ad0=_0x24d45b[_0x10ea6a(0xfe)]('Sheet\x201',{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0xa53055 in _0x46c192){_0x1a95c1[_0x46c192[_0xa53055][_0x10ea6a(0x10b)]]=_0x46c192[_0xa53055][_0x10ea6a(0xec)],_0x85d346['push']({'header':_0x46c192[_0xa53055][_0x10ea6a(0xec)],'key':(_0x3730e3=_0x46c192[_0xa53055])===null||_0x3730e3===void 0x0?void 0x0:_0x3730e3[_0x10ea6a(0x10b)][_0x10ea6a(0xd1)](/\./g,'_')});}_0x267ad0[_0x10ea6a(0x10c)]=_0x85d346;for(const _0xf2f446 of _0x4090db){const _0x3346ef={};for(const _0x3763da in _0x46c192){typeof((_0x46846f=_0x46c192[_0x3763da])===null||_0x46846f===void 0x0?void 0x0:_0x46846f[_0x10ea6a(0x109)])==_0x10ea6a(0xe4)?_0x3346ef[_0x46c192[_0x3763da]['key']['replace'](/\./g,'_')]=await _0x46c192[_0x3763da]['handler'](_0xf2f446):_0x3346ef[_0x46c192[_0x3763da]['key']['replace'](/\./g,'_')]=lodash['get'](_0xf2f446,_0x46c192[_0x3763da][_0x10ea6a(0x10b)],'');}_0x267ad0[_0x10ea6a(0xd9)](_0x3346ef);}let _0x59dbd1='';const _0x3e30bf=_0x15ac04+'-'+lodash[_0x10ea6a(0xfa)](0x2710,0x1869f)+_0x10ea6a(0xf4);if(_0x50fee7&&_0x50fee7[_0x10ea6a(0xd2)]('/'))_0x59dbd1=''+_0x50fee7;else _0x50fee7&&!_0x50fee7[_0x10ea6a(0xd2)]('/')&&!_0x50fee7['startsWith']('\x5c')?_0x59dbd1=this[_0x10ea6a(0xdc)]['getAppDir']()+'/'+_0x50fee7:_0x59dbd1=this[_0x10ea6a(0xdc)]['getAppDir']()+_0x10ea6a(0xd7);return(_0x59dbd1[_0x10ea6a(0xea)]('/')||_0x59dbd1[_0x10ea6a(0xea)]('\x5c'))&&(_0x59dbd1=_0x59dbd1[_0x10ea6a(0xde)](0x0,_0x59dbd1[_0x10ea6a(0xe6)]-0x1)),_0x59dbd1=_0x59dbd1[_0x10ea6a(0xd1)](/(\\|\/)/g,'/')[_0x10ea6a(0xd1)](/\/{2,}/g,'/'),!fs[_0x10ea6a(0xe1)](_0x59dbd1)&&fs['mkdirSync'](_0x59dbd1,{'recursive':!![]}),await _0x24d45b[_0x10ea6a(0xd3)][_0x10ea6a(0xe8)]((_0x59dbd1+'/'+_0x3e30bf)['replace'](/(\\|\/)/g,'/')[_0x10ea6a(0xd1)](/\/{2,}/g,'/')),{'filename':_0x3e30bf,'filepath':(_0x59dbd1[_0x10ea6a(0xde)]((''+this[_0x10ea6a(0xdc)]['getAppDir']())['length'])+'/'+_0x3e30bf)['replace'](/(\\|\/)/g,'/')[_0x10ea6a(0xd1)](/\/{2,}/g,'/')};}async['download'](_0x5004b2,_0x41eec0){return await koasend(_0x5004b2,''+_0x41eec0);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService[a12_0x25293d(0xf2)],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x25293d(0xe9)])(),(0x0,core_1[a12_0x25293d(0xe3)])(core_1['ScopeEnum'][a12_0x25293d(0xd5)])],ExcelService),exports[a12_0x25293d(0xf3)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a13_0x3afa9c=a13_0x3179;(function(_0x4f318a,_0x44c0cb){var _0x56ef9f=a13_0x3179,_0x35b82b=_0x4f318a();while(!![]){try{var _0xddf5ee=parseInt(_0x56ef9f(0x153))/0x1*(-parseInt(_0x56ef9f(0x156))/0x2)+parseInt(_0x56ef9f(0x15f))/0x3*(-parseInt(_0x56ef9f(0x158))/0x4)+parseInt(_0x56ef9f(0x160))/0x5+-parseInt(_0x56ef9f(0x15d))/0x6*(parseInt(_0x56ef9f(0x164))/0x7)+-parseInt(_0x56ef9f(0x155))/0x8*(-parseInt(_0x56ef9f(0x15e))/0x9)+-parseInt(_0x56ef9f(0x159))/0xa+parseInt(_0x56ef9f(0x151))/0xb;if(_0xddf5ee===_0x44c0cb)break;else _0x35b82b['push'](_0x35b82b['shift']());}catch(_0x41873b){_0x35b82b['push'](_0x35b82b['shift']());}}}(a13_0x3811,0xd2a35));function a13_0x3811(){var _0x18b7ad=['4767928hnnBpA','5644IYXlfW','anncic-api:action:route','8doaCpl','10475310XzOEhx','anncic-api:action','constructor','ACTION_KEY','2292438mpZbEl','18tgMpNU','1375362rJCPCu','6181645WrrjxJ','AppsConfigTmp','(((.+)+)+)+$','__esModule','7GBGEzU','ACTION_ROUTE_KEY','defineProperty','toString','19207078pjmIVU','search','342pmNtap','APPSCONFIG_KEY'];a13_0x3811=function(){return _0x18b7ad;};return a13_0x3811();}function a13_0x3179(_0x4568ab,_0x111354){var _0x48a166=a13_0x3811();return a13_0x3179=function(_0x1e24f0,_0x2611b8){_0x1e24f0=_0x1e24f0-0x151;var _0x38112a=_0x48a166[_0x1e24f0];return _0x38112a;},a13_0x3179(_0x4568ab,_0x111354);}var a13_0x2611b8=(function(){var _0x4cd1f4=!![];return function(_0xe9e0f5,_0x22fc9a){var _0x1b5646=_0x4cd1f4?function(){if(_0x22fc9a){var _0x14f165=_0x22fc9a['apply'](_0xe9e0f5,arguments);return _0x22fc9a=null,_0x14f165;}}:function(){};return _0x4cd1f4=![],_0x1b5646;};}()),a13_0x1e24f0=a13_0x2611b8(this,function(){var _0x593498=a13_0x3179;return a13_0x1e24f0[_0x593498(0x167)]()[_0x593498(0x152)](_0x593498(0x162))[_0x593498(0x167)]()[_0x593498(0x15b)](a13_0x1e24f0)['search'](_0x593498(0x162));});a13_0x1e24f0();'use strict';Object[a13_0x3afa9c(0x166)](exports,a13_0x3afa9c(0x163),{'value':!![]}),exports[a13_0x3afa9c(0x161)]=exports[a13_0x3afa9c(0x154)]=exports[a13_0x3afa9c(0x165)]=exports[a13_0x3afa9c(0x15c)]=void 0x0,exports[a13_0x3afa9c(0x15c)]=a13_0x3afa9c(0x15a),exports[a13_0x3afa9c(0x165)]=a13_0x3afa9c(0x157),exports['APPSCONFIG_KEY']='anncic-api:apps:config';class AppsConfigTmp{}exports['AppsConfigTmp']=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x25ce8a=a14_0x3b8c;(function(_0x46669f,_0x2890d2){var _0x4a4678=a14_0x3b8c,_0x1ee69e=_0x46669f();while(!![]){try{var _0x523294=-parseInt(_0x4a4678(0x128))/0x1*(parseInt(_0x4a4678(0x116))/0x2)+parseInt(_0x4a4678(0x112))/0x3*(-parseInt(_0x4a4678(0x115))/0x4)+-parseInt(_0x4a4678(0x133))/0x5+parseInt(_0x4a4678(0x11b))/0x6+parseInt(_0x4a4678(0x12b))/0x7*(-parseInt(_0x4a4678(0x12e))/0x8)+parseInt(_0x4a4678(0x125))/0x9+parseInt(_0x4a4678(0x11a))/0xa;if(_0x523294===_0x2890d2)break;else _0x1ee69e['push'](_0x1ee69e['shift']());}catch(_0xb92caf){_0x1ee69e['push'](_0x1ee69e['shift']());}}}(a14_0x278a,0xabcdf));function a14_0x3b8c(_0x168f82,_0x37b313){var _0x36eef9=a14_0x278a();return a14_0x3b8c=function(_0x251de4,_0x2b2c6e){_0x251de4=_0x251de4-0x111;var _0x278a82=_0x36eef9[_0x251de4];return _0x278a82;},a14_0x3b8c(_0x168f82,_0x37b313);}var a14_0x2b2c6e=(function(){var _0x4eeb47=!![];return function(_0x25e421,_0x4ccf10){var _0x49f364=_0x4eeb47?function(){if(_0x4ccf10){var _0x1f15f6=_0x4ccf10['apply'](_0x25e421,arguments);return _0x4ccf10=null,_0x1f15f6;}}:function(){};return _0x4eeb47=![],_0x49f364;};}()),a14_0x251de4=a14_0x2b2c6e(this,function(){var _0x32009b=a14_0x3b8c;return a14_0x251de4[_0x32009b(0x132)]()[_0x32009b(0x11c)](_0x32009b(0x117))[_0x32009b(0x132)]()[_0x32009b(0x12f)](a14_0x251de4)[_0x32009b(0x11c)](_0x32009b(0x117));});a14_0x251de4();'use strict';var __decorate=this&&this['__decorate']||function(_0x45445,_0x548981,_0x2a5196,_0x2818d0){var _0x34673c=a14_0x3b8c,_0x3d7a5c=arguments[_0x34673c(0x12a)],_0x538f55=_0x3d7a5c<0x3?_0x548981:_0x2818d0===null?_0x2818d0=Object[_0x34673c(0x129)](_0x548981,_0x2a5196):_0x2818d0,_0x228b7c;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x538f55=Reflect[_0x34673c(0x121)](_0x45445,_0x548981,_0x2a5196,_0x2818d0);else{for(var _0x5d7452=_0x45445[_0x34673c(0x12a)]-0x1;_0x5d7452>=0x0;_0x5d7452--)if(_0x228b7c=_0x45445[_0x5d7452])_0x538f55=(_0x3d7a5c<0x3?_0x228b7c(_0x538f55):_0x3d7a5c>0x3?_0x228b7c(_0x548981,_0x2a5196,_0x538f55):_0x228b7c(_0x548981,_0x2a5196))||_0x538f55;}return _0x3d7a5c>0x3&&_0x538f55&&Object[_0x34673c(0x134)](_0x548981,_0x2a5196,_0x538f55),_0x538f55;},__metadata=this&&this['__metadata']||function(_0x442cf5,_0x20dbae){var _0x4a40a7=a14_0x3b8c;if(typeof Reflect===_0x4a40a7(0x118)&&typeof Reflect[_0x4a40a7(0x111)]==='function')return Reflect['metadata'](_0x442cf5,_0x20dbae);};Object[a14_0x25ce8a(0x134)](exports,a14_0x25ce8a(0x11d),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}function a14_0x278a(){var _0x2a9182=['min','112lMYJuk','54648pUmteU','(((.+)+)+)+$','object','_page','26458470LgDFzc','1667292GscJDn','search','__esModule','trim','1:是;0:否','valid','decorate','integer','_isreverse','prototype','7791966jmcJCq','是否倒序','_order','8JHWrls','getOwnPropertyDescriptor','length','4706457MWNpuf','Rule','number','8eLkdzz','constructor','第一页为1,第二页为2','RuleType','toString','6707465VGhoKD','defineProperty','metadata','91431KTxDcK','design:type'];a14_0x278a=function(){return _0x2a9182;};return a14_0x278a();}__decorate([(0x0,validator_1[a14_0x25ce8a(0x12c)])('分页',validator_1[a14_0x25ce8a(0x131)][a14_0x25ce8a(0x12d)]()[a14_0x25ce8a(0x122)]()['min'](0x1),a14_0x25ce8a(0x130)),__metadata(a14_0x25ce8a(0x113),Number)],PageDTO['prototype'],a14_0x25ce8a(0x119),void 0x0),__decorate([(0x0,validator_1['Rule'])('分页数量',validator_1[a14_0x25ce8a(0x131)]['number']()['integer']()[a14_0x25ce8a(0x114)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x25ce8a(0x124)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x25ce8a(0x12c)])('排序方式',validator_1[a14_0x25ce8a(0x131)]['string']()[a14_0x25ce8a(0x11e)]()),__metadata(a14_0x25ce8a(0x113),String)],PageDTO[a14_0x25ce8a(0x124)],a14_0x25ce8a(0x127),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x25ce8a(0x126),validator_1[a14_0x25ce8a(0x131)][a14_0x25ce8a(0x12d)]()[a14_0x25ce8a(0x122)]()[a14_0x25ce8a(0x120)](0x0,0x1),a14_0x25ce8a(0x11f)),__metadata(a14_0x25ce8a(0x113),Number)],PageDTO[a14_0x25ce8a(0x124)],a14_0x25ce8a(0x123),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.34",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.34",
|
|
21
|
+
"@anncic-api/core": "^1.4.34",
|
|
22
|
+
"@anncic-api/event": "^1.4.34",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.34",
|
|
24
|
+
"@anncic-api/validator": "^1.4.34",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.34",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "7be1d3d119c304b2e766f6837e7168cc40300dc2"
|
|
41
41
|
}
|