anncic-api 1.4.34 → 1.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/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
|
+
function a0_0xbb8d(_0x5edffb,_0x279e2b){var _0x23aac4=a0_0x4301();return a0_0xbb8d=function(_0x4ffd1f,_0x186cb5){_0x4ffd1f=_0x4ffd1f-0xe4;var _0x4301b4=_0x23aac4[_0x4ffd1f];return _0x4301b4;},a0_0xbb8d(_0x5edffb,_0x279e2b);}var a0_0x147824=a0_0xbb8d;(function(_0xb19a71,_0x5560aa){var _0x59c277=a0_0xbb8d,_0x5612cf=_0xb19a71();while(!![]){try{var _0x5e09b0=parseInt(_0x59c277(0xf6))/0x1+-parseInt(_0x59c277(0xf3))/0x2*(-parseInt(_0x59c277(0xf5))/0x3)+-parseInt(_0x59c277(0xfa))/0x4*(parseInt(_0x59c277(0xe5))/0x5)+-parseInt(_0x59c277(0xf0))/0x6*(parseInt(_0x59c277(0xe4))/0x7)+-parseInt(_0x59c277(0xe8))/0x8+-parseInt(_0x59c277(0xe9))/0x9+parseInt(_0x59c277(0xf2))/0xa*(parseInt(_0x59c277(0xe6))/0xb);if(_0x5e09b0===_0x5560aa)break;else _0x5612cf['push'](_0x5612cf['shift']());}catch(_0x2a0b69){_0x5612cf['push'](_0x5612cf['shift']());}}}(a0_0x4301,0x40c91));var a0_0x186cb5=(function(){var _0x380c42=!![];return function(_0x3314c3,_0x4f7f94){var _0x258da2=_0x380c42?function(){var _0x15094c=a0_0xbb8d;if(_0x4f7f94){var _0x11d5f5=_0x4f7f94[_0x15094c(0xf1)](_0x3314c3,arguments);return _0x4f7f94=null,_0x11d5f5;}}:function(){};return _0x380c42=![],_0x258da2;};}()),a0_0x4ffd1f=a0_0x186cb5(this,function(){var _0x407ca0=a0_0xbb8d;return a0_0x4ffd1f['toString']()[_0x407ca0(0xed)]('(((.+)+)+)+$')['toString']()[_0x407ca0(0xf9)](a0_0x4ffd1f)['search'](_0x407ca0(0xec));});a0_0x4ffd1f();function a0_0x4301(){var _0x53e973=['16ioWOTZ','20mb','1008497iFmCaD','401560zetSJq','12834547QtbWDo','/runtime/.upload','3909472rvlwlY','2302776reJlig','default','appDir','(((.+)+)+)+$','search','form','dhauo1234420123gg3234901','6hdBQFP','apply','10CmIaJc','9462PrQltJ','json','120MrXZTg','119211LtzLro','xml','name','constructor'];a0_0x4301=function(){return _0x53e973;};return a0_0x4301();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x147824(0xea)]=_0x41811b=>{var _0x10648b=a0_0x147824;return{'apitest':!![],'keys':_0x41811b[_0x10648b(0xf8)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x10648b(0xef),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x10648b(0xf4),_0x10648b(0xee),'text',_0x10648b(0xf7)],'formLimit':_0x10648b(0xfb),'jsonLimit':_0x10648b(0xfb),'textLimit':_0x10648b(0xfb),'xmlLimit':_0x10648b(0xfb)},'upload':{'tmpdir':_0x41811b[_0x10648b(0xeb)]+_0x10648b(0xe7),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x35ff0e=a1_0x5b58;function a1_0x2bef(){var _0x322ecd=['503958MzPzmz','12340rmVtGj','111208KSCkqD','(((.+)+)+)+$','3796863XyEQxP','6943923LIcMDn','toString','apply','1251278PKVTNu','constructor','search','default','436TcZvmo','2439isueWh','defineProperty','1640145SJFKOK'];a1_0x2bef=function(){return _0x322ecd;};return a1_0x2bef();}(function(_0x14df70,_0x359c39){var _0x525c79=a1_0x5b58,_0x42b440=_0x14df70();while(!![]){try{var _0x32f499=-parseInt(_0x525c79(0x19a))/0x1+parseInt(_0x525c79(0x1a3))/0x2+-parseInt(_0x525c79(0x19f))/0x3+parseInt(_0x525c79(0x197))/0x4*(parseInt(_0x525c79(0x19c))/0x5)+parseInt(_0x525c79(0x19b))/0x6+-parseInt(_0x525c79(0x1a0))/0x7+parseInt(_0x525c79(0x19d))/0x8*(parseInt(_0x525c79(0x198))/0x9);if(_0x32f499===_0x359c39)break;else _0x42b440['push'](_0x42b440['shift']());}catch(_0xf075fc){_0x42b440['push'](_0x42b440['shift']());}}}(a1_0x2bef,0xcf0bc));function a1_0x5b58(_0x3e4e08,_0x5b8dc8){var _0x3cfd67=a1_0x2bef();return a1_0x5b58=function(_0x38eef6,_0x54a254){_0x38eef6=_0x38eef6-0x197;var _0x2befb1=_0x3cfd67[_0x38eef6];return _0x2befb1;},a1_0x5b58(_0x3e4e08,_0x5b8dc8);}var a1_0x54a254=(function(){var _0x29358d=!![];return function(_0x5d8f22,_0x1cd9de){var _0x12bc45=_0x29358d?function(){var _0x106bdd=a1_0x5b58;if(_0x1cd9de){var _0x44cc48=_0x1cd9de[_0x106bdd(0x1a2)](_0x5d8f22,arguments);return _0x1cd9de=null,_0x44cc48;}}:function(){};return _0x29358d=![],_0x12bc45;};}()),a1_0x38eef6=a1_0x54a254(this,function(){var _0x303f02=a1_0x5b58;return a1_0x38eef6[_0x303f02(0x1a1)]()['search'](_0x303f02(0x19e))['toString']()[_0x303f02(0x1a4)](a1_0x38eef6)[_0x303f02(0x1a5)]('(((.+)+)+)+$');});a1_0x38eef6();'use strict';Object[a1_0x35ff0e(0x199)](exports,'__esModule',{'value':!![]}),exports[a1_0x35ff0e(0x1a6)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const a2_0x35267b=a2_0xa58f;(function(_0xa5243,_0x1f6397){const _0x24aecf=a2_0xa58f,_0x577b88=_0xa5243();while(!![]){try{const _0xc5de62=parseInt(_0x24aecf(0x97))/0x1+-parseInt(_0x24aecf(0xe4))/0x2+-parseInt(_0x24aecf(0xc1))/0x3+-parseInt(_0x24aecf(0xab))/0x4+-parseInt(_0x24aecf(0xf5))/0x5*(-parseInt(_0x24aecf(0x89))/0x6)+parseInt(_0x24aecf(0xf9))/0x7+parseInt(_0x24aecf(0xe7))/0x8;if(_0xc5de62===_0x1f6397)break;else _0x577b88['push'](_0x577b88['shift']());}catch(_0x282541){_0x577b88['push'](_0x577b88['shift']());}}}(a2_0x4648,0xa61f8));const a2_0x1939eb=(function(){let _0x579cc4=!![];return function(_0x1f2538,_0x4ebe20){const _0x2488d9=_0x579cc4?function(){if(_0x4ebe20){const _0x81f4f5=_0x4ebe20['apply'](_0x1f2538,arguments);return _0x4ebe20=null,_0x81f4f5;}}:function(){};return _0x579cc4=![],_0x2488d9;};}()),a2_0x2b5c60=a2_0x1939eb(this,function(){const _0xab4808=a2_0xa58f;return a2_0x2b5c60[_0xab4808(0xd2)]()['search'](_0xab4808(0xa0))['toString']()['constructor'](a2_0x2b5c60)[_0xab4808(0xc3)]('(((.+)+)+)+$');});a2_0x2b5c60();'use strict';var __decorate=this&&this[a2_0x35267b(0x7d)]||function(_0xcc849a,_0x434e8f,_0x446c5c,_0x30d047){const _0x57ceee=a2_0x35267b;var _0x56f752=arguments[_0x57ceee(0x9c)],_0x5524e8=_0x56f752<0x3?_0x434e8f:_0x30d047===null?_0x30d047=Object[_0x57ceee(0x94)](_0x434e8f,_0x446c5c):_0x30d047,_0x261ed7;if(typeof Reflect===_0x57ceee(0xc8)&&typeof Reflect[_0x57ceee(0xc5)]===_0x57ceee(0xb5))_0x5524e8=Reflect[_0x57ceee(0xc5)](_0xcc849a,_0x434e8f,_0x446c5c,_0x30d047);else{for(var _0x3c8637=_0xcc849a[_0x57ceee(0x9c)]-0x1;_0x3c8637>=0x0;_0x3c8637--)if(_0x261ed7=_0xcc849a[_0x3c8637])_0x5524e8=(_0x56f752<0x3?_0x261ed7(_0x5524e8):_0x56f752>0x3?_0x261ed7(_0x434e8f,_0x446c5c,_0x5524e8):_0x261ed7(_0x434e8f,_0x446c5c))||_0x5524e8;}return _0x56f752>0x3&&_0x5524e8&&Object[_0x57ceee(0xca)](_0x434e8f,_0x446c5c,_0x5524e8),_0x5524e8;},__metadata=this&&this[a2_0x35267b(0xb8)]||function(_0x2d8877,_0x59d80f){const _0x5c2b9f=a2_0x35267b;if(typeof Reflect==='object'&&typeof Reflect[_0x5c2b9f(0xd9)]===_0x5c2b9f(0xb5))return Reflect['metadata'](_0x2d8877,_0x59d80f);};function a2_0x4648(){const _0x4f05bc=['__decorate','ACTION_ROUTE_KEY','MidwayEnvironmentService','string','body','isNull','文件不存在','./config/config.default','devices','koa-send','@midwayjs/i18n','config','6PpCevI','proceed','hanlderApplications','Types','decorator','method','anncic-apihelper','DEFAULT','request','upload','mkdirSync','getOwnPropertyDescriptor','HEADERS_SIGNATURE','/runtime/apps-','1239142hkgIcl','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','REQUEST_OBJ_CTX_KEY','args','__esModule','length','Anncic-api\x20static-file\x20:\x20mkdir\x20','attachment','context','(((.+)+)+)+$','@anncic-api/typeorm','environment','apimit','log','keys','readdirSync','toLowerCase','getConfiguration','/apps','get','3556960KGdcxk','requestContext','./types/action','/apps/','tmpdir','dirs','target','@anncic-api/cache','loggerConfig','./exception/ApiError','function','registerMethodHandler','_matchedRoute','__metadata','isFunction','@midwayjs/static-file','getApplications','checksign','midwayLogger','Configuration','./config/config.production','app','1344369TFEHmt','@anncic-api/event','search','./service/ApiService','decorate','/runtime','device','object','undefined','defineProperty','isDevelopmentEnvironment','forEach','addObject','isDirectory','defineProperties','@midwayjs/cross-domain','MidwayDecoratorService','toString','koa','prototype','application','anncicapi','statSync','CustomConfiguration','metadata','dir','@midwayjs/core','handler','headers','@anncic-api/validator','getAsync','default','input','anncic-api','clients','2481152naAnTf','MidwayApplicationManager','getAppDir','7893248KTNzlH','staticFile','isArray','onReady','getBaseDir','@midwayjs/koa','ApiError','filterConfig','ApiService','intercept','.log','existsSync','isString','assign','2579410oFWbAK','Inject','design:type','handlerActionRoute','3616893XdqFdW','query','checkConfigKeys'];a2_0x4648=function(){return _0x4f05bc;};return a2_0x4648();}function a2_0xa58f(_0xa218cb,_0x2db49c){const _0x43cee2=a2_0x4648();return a2_0xa58f=function(_0x2b5c60,_0x1939eb){_0x2b5c60=_0x2b5c60-0x7c;let _0x464871=_0x43cee2[_0x2b5c60];return _0x464871;},a2_0xa58f(_0xa218cb,_0x2db49c);}Object[a2_0x35267b(0xca)](exports,a2_0x35267b(0x9b),{'value':!![]}),exports[a2_0x35267b(0xd8)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x35267b(0xdb)),ApiError_1=require(a2_0x35267b(0xb4)),ApiService_1=require(a2_0x35267b(0xc4)),action_1=require(a2_0x35267b(0xad)),fs=require('fs'),koasend=require(a2_0x35267b(0x86)),koa=require(a2_0x35267b(0xec)),i18n=require(a2_0x35267b(0x87)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x35267b(0xba)),crossDomain=require(a2_0x35267b(0xd0)),ConfigDefault=require(a2_0x35267b(0x84)),ConfigProduction=require(a2_0x35267b(0xbf)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x35267b(0xb2)),anncicEvent=require(a2_0x35267b(0xc2)),anncicTypeorm=require(a2_0x35267b(0xa1)),anncicValidator=require(a2_0x35267b(0xde)),anncicHelper=require(a2_0x35267b(0x8f));let CustomConfiguration=class CustomConfiguration{async[a2_0x35267b(0xea)](){const _0x4ff813=a2_0x35267b;await this[_0x4ff813(0xee)](),await this[_0x4ff813(0xb3)](),await this[_0x4ff813(0x7c)](),await this[_0x4ff813(0xf8)](),await this[_0x4ff813(0x8b)]();}async[a2_0x35267b(0x7c)](){}async[a2_0x35267b(0xf8)](){const _0x2de194=a2_0x35267b,_0x18bfe9=this['config'][_0x2de194(0xa8)]();this['decorator'][_0x2de194(0xb6)](action_1[_0x2de194(0x7e)],_0xe07d7b=>{const _0x5b0bbf=_0x2de194,_0x456e7c=_0xe07d7b[_0x5b0bbf(0xd9)];return{'before':async _0x157a19=>{const _0x5db35b=_0x5b0bbf;var _0x2f6d99,_0x38c97a;const _0xc7a98f=(_0x2f6d99=_0x157a19===null||_0x157a19===void 0x0?void 0x0:_0x157a19[_0x5db35b(0xb1)])===null||_0x2f6d99===void 0x0?void 0x0:_0x2f6d99[core_2[_0x5db35b(0x99)]];if(_0xc7a98f&&(_0x456e7c===null||_0x456e7c===void 0x0?void 0x0:_0x456e7c[_0x5db35b(0xa3)])){if(!this[_0x5db35b(0xef)][_0x5db35b(0xbc)]((_0x38c97a=_0xc7a98f===null||_0xc7a98f===void 0x0?void 0x0:_0xc7a98f[_0x5db35b(0x91)])===null||_0x38c97a===void 0x0?void 0x0:_0x38c97a[_0x5db35b(0xdd)]))throw new AnnError(ApiError_1[_0x5db35b(0xed)][_0x5db35b(0x95)]);}},'around':async _0x19bfa2=>{const _0x2c8abe=_0x5b0bbf;var _0x3b0a37,_0x535839,_0x16f835,_0x365771,_0x2a4c75;const _0x1ab4c8=(_0x3b0a37=_0x19bfa2===null||_0x19bfa2===void 0x0?void 0x0:_0x19bfa2['target'])===null||_0x3b0a37===void 0x0?void 0x0:_0x3b0a37[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1ab4c8&&(_0x456e7c===null||_0x456e7c===void 0x0?void 0x0:_0x456e7c[_0x2c8abe(0xa3)])&&((_0x456e7c===null||_0x456e7c===void 0x0?void 0x0:_0x456e7c['intercept'])||typeof(_0x456e7c===null||_0x456e7c===void 0x0?void 0x0:_0x456e7c[_0x2c8abe(0xf0)])==_0x2c8abe(0xc9))){if(((_0x535839=_0x1ab4c8[_0x2c8abe(0xdd)])===null||_0x535839===void 0x0?void 0x0:_0x535839[_0x2c8abe(0xc7)])&&((_0x2a4c75=(_0x365771=(_0x16f835=_0x18bfe9===null||_0x18bfe9===void 0x0?void 0x0:_0x18bfe9[_0x2c8abe(0xd6)])===null||_0x16f835===void 0x0?void 0x0:_0x16f835['devices'])===null||_0x365771===void 0x0?void 0x0:_0x365771[_0x1ab4c8[_0x2c8abe(0xdd)][_0x2c8abe(0xc7)]])===null||_0x2a4c75===void 0x0?void 0x0:_0x2a4c75[_0x2c8abe(0xf0)])){const _0x440793=Array['isArray'](_0x18bfe9[_0x2c8abe(0xd6)][_0x2c8abe(0x85)][_0x1ab4c8[_0x2c8abe(0xdd)][_0x2c8abe(0xc7)]]['intercept'])?_0x18bfe9[_0x2c8abe(0xd6)][_0x2c8abe(0x85)][_0x1ab4c8[_0x2c8abe(0xdd)][_0x2c8abe(0xc7)]][_0x2c8abe(0xf0)]:[_0x18bfe9[_0x2c8abe(0xd6)][_0x2c8abe(0x85)][_0x1ab4c8['headers']['device']]['intercept']];for(const _0x21644b of _0x440793){if(core_1[_0x2c8abe(0x8c)]['isClass'](_0x21644b)||typeof _0x21644b==_0x2c8abe(0x80)){const _0x166e77=await _0x1ab4c8[_0x2c8abe(0xac)][_0x2c8abe(0xdf)](_0x21644b);typeof(_0x166e77===null||_0x166e77===void 0x0?void 0x0:_0x166e77[_0x2c8abe(0xdc)])==_0x2c8abe(0xb5)&&await _0x166e77['handler'](typeof(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8['method'])=='string'&&(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8[_0x2c8abe(0xb7)])?_0x1ab4c8[_0x2c8abe(0x8e)][_0x2c8abe(0xa7)]()+'@'+(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8[_0x2c8abe(0xb7)]):undefined,_0x1ab4c8,_0x456e7c);}else core_1['Types'][_0x2c8abe(0xb9)](_0x21644b)&&await _0x21644b(typeof(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8[_0x2c8abe(0x8e)])=='string'&&(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8[_0x2c8abe(0xb7)])?_0x1ab4c8[_0x2c8abe(0x8e)][_0x2c8abe(0xa7)]()+'@'+(_0x1ab4c8===null||_0x1ab4c8===void 0x0?void 0x0:_0x1ab4c8[_0x2c8abe(0xb7)]):undefined,_0x1ab4c8,_0x456e7c);}}}return await _0x19bfa2[_0x2c8abe(0x8a)](..._0x19bfa2[_0x2c8abe(0x9a)]);},'afterThrow':(_0x15045f,_0x5d2473)=>{throw _0x5d2473;}};});}async[a2_0x35267b(0x8b)](){const _0xfe9935=a2_0x35267b;this['application'][_0xfe9935(0xbb)]([_0xfe9935(0xd3)])[_0xfe9935(0xcc)](_0x34c99e=>{const _0x41ca9e=_0xfe9935;(_0x34c99e===null||_0x34c99e===void 0x0?void 0x0:_0x34c99e['context'])&&Object[_0x41ca9e(0xcf)](_0x34c99e[_0x41ca9e(0x9f)],{'ok':{'value':function(_0x4c1c1f,_0x3285b7,_0x7797a2=0x0){return{'code':_0x7797a2,'data':_0x4c1c1f,'extra':_0x3285b7};}},'input':{'value':function(_0x27aec3,_0xdc961b){const _0x5737c5=_0x41ca9e;var _0x4bc514;const _0x6222e9=lodash['defaultsDeep']({},this['request'][_0x5737c5(0x81)]||this[_0x5737c5(0x91)][((_0x4bc514=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x4bc514===void 0x0?void 0x0:_0x4bc514['key'])||_0x5737c5(0x81)]||{},this[_0x5737c5(0x91)][_0x5737c5(0xfa)]||{});return _0x27aec3?lodash[_0x5737c5(0xaa)](_0x6222e9,_0x27aec3,_0xdc961b):_0x6222e9;}},'when':{'value':async function(_0x3fd550,_0x5d8cdb){const _0x44175f=_0x41ca9e,_0x4f2490=this[_0x44175f(0xe1)](_0x3fd550,null);if(!lodash[_0x44175f(0x82)](_0x4f2490))return await _0x5d8cdb(_0x4f2490);}},'only':{'value':function(_0x59b648){const _0x5ceb5e=_0x41ca9e,_0x2ebd8f={};for(let _0x3e4f76=0x0;_0x3e4f76<_0x59b648[_0x5ceb5e(0x9c)];_0x3e4f76++){lodash[_0x5ceb5e(0xe9)](_0x59b648[_0x3e4f76])&&_0x59b648[_0x3e4f76][_0x5ceb5e(0x9c)]>0x0&&lodash[_0x5ceb5e(0xf3)](_0x59b648[_0x3e4f76][0x0])&&(_0x2ebd8f[_0x59b648[_0x3e4f76][0x0]]=this[_0x5ceb5e(0xe1)](_0x59b648[_0x3e4f76][0x0],_0x59b648[_0x3e4f76][_0x5ceb5e(0x9c)]>0x1?_0x59b648[_0x3e4f76][0x1]:null));}return _0x2ebd8f;}},'koasend':{'value':function(_0x2ac1d2,_0xafb8c4){const _0x5e39cc=_0x41ca9e;if(!fs['existsSync'](this[_0x5e39cc(0xc0)][_0x5e39cc(0xe6)]()+'/'+_0x2ac1d2))return _0x5e39cc(0x83);return this[_0x5e39cc(0x9e)](_0xafb8c4||_0x2ac1d2),koasend(this,_0x2ac1d2);}}});});}async[a2_0x35267b(0xb3)](){const _0x157094=a2_0x35267b;var _0x5a6064,_0x232771;if(fs[_0x157094(0xf2)](this[_0x157094(0xc0)]['getBaseDir']()+_0x157094(0xa9))&&fs[_0x157094(0xd7)](this[_0x157094(0xc0)][_0x157094(0xeb)]()+_0x157094(0xa9))[_0x157094(0xce)]()){const _0x5e083b=this[_0x157094(0x88)][_0x157094(0xa8)](),_0x357710=((_0x5a6064=_0x5e083b===null||_0x5e083b===void 0x0?void 0x0:_0x5e083b[_0x157094(0xbd)])===null||_0x5a6064===void 0x0?void 0x0:_0x5a6064[_0x157094(0xe3)])||{};for(const _0x5b11b4 of fs[_0x157094(0xa6)](this['app'][_0x157094(0xeb)]()+'/apps')){if(!fs['statSync'](this[_0x157094(0xc0)][_0x157094(0xeb)]()+_0x157094(0xae)+_0x5b11b4)[_0x157094(0xce)]())continue;if(_0x357710===null||_0x357710===void 0x0?void 0x0:_0x357710[_0x5b11b4])continue;_0x357710[_0x5b11b4]=Object[_0x157094(0xf4)]({},((_0x232771=_0x5e083b===null||_0x5e083b===void 0x0?void 0x0:_0x5e083b[_0x157094(0xbd)])===null||_0x232771===void 0x0?void 0x0:_0x232771[_0x157094(0xe0)])||{'maxSize':'1m','dir':this[_0x157094(0xc0)]['getAppDir']()+_0x157094(0xc6)},{'enableJSON':!![],'enableConsole':this[_0x157094(0xa2)][_0x157094(0xcb)](),'fileLogName':_0x5b11b4+_0x157094(0xf1),'dir':this[_0x157094(0xc0)]['getAppDir']()+_0x157094(0x96)+_0x5b11b4+'-log'});}Object[_0x157094(0xa5)](_0x357710)[_0x157094(0x9c)]>0x0&&(!_0x5e083b[_0x157094(0xbd)]&&(_0x5e083b[_0x157094(0xbd)]={'default':{'maxSize':'1m','dir':this[_0x157094(0xc0)][_0x157094(0xe6)]()+_0x157094(0xc6)}}),_0x5e083b[_0x157094(0xbd)]['clients']=_0x357710),this[_0x157094(0x88)]['addObject'](_0x5e083b);}}async['filterConfig'](){const _0x2dc750=a2_0x35267b;var _0x55bb56,_0x100124,_0x1c127d,_0x2900b5,_0x4b4538,_0xd76c4a;const _0x19d61b=this['config'][_0x2dc750(0xa8)]();((_0x100124=(_0x55bb56=_0x19d61b===null||_0x19d61b===void 0x0?void 0x0:_0x19d61b['anncicapi'])===null||_0x55bb56===void 0x0?void 0x0:_0x55bb56['devices'])===null||_0x100124===void 0x0?void 0x0:_0x100124[_0x2dc750(0x90)])&&Object[_0x2dc750(0xa5)](_0x19d61b['anncicapi'][_0x2dc750(0x85)])[_0x2dc750(0x9c)]>0x1&&delete _0x19d61b[_0x2dc750(0xd6)][_0x2dc750(0x85)][_0x2dc750(0x90)];if((_0x1c127d=_0x19d61b===null||_0x19d61b===void 0x0?void 0x0:_0x19d61b['staticFile'])===null||_0x1c127d===void 0x0?void 0x0:_0x1c127d[_0x2dc750(0xb0)])for(const _0x18d3e8 in _0x19d61b[_0x2dc750(0xe8)]['dirs']){((_0x2900b5=_0x19d61b[_0x2dc750(0xe8)][_0x2dc750(0xb0)][_0x18d3e8])===null||_0x2900b5===void 0x0?void 0x0:_0x2900b5[_0x2dc750(0xda)])&&typeof((_0x4b4538=_0x19d61b[_0x2dc750(0xe8)][_0x2dc750(0xb0)][_0x18d3e8])===null||_0x4b4538===void 0x0?void 0x0:_0x4b4538[_0x2dc750(0xda)])==_0x2dc750(0x80)&&!fs['existsSync'](_0x19d61b[_0x2dc750(0xe8)][_0x2dc750(0xb0)][_0x18d3e8][_0x2dc750(0xda)])&&(fs[_0x2dc750(0x93)](_0x19d61b[_0x2dc750(0xe8)][_0x2dc750(0xb0)][_0x18d3e8][_0x2dc750(0xda)],{'recursive':!![]}),console[_0x2dc750(0xa4)](_0x2dc750(0x9d)+_0x19d61b['staticFile']['dirs'][_0x18d3e8][_0x2dc750(0xda)]));}((_0xd76c4a=_0x19d61b===null||_0x19d61b===void 0x0?void 0x0:_0x19d61b['upload'])===null||_0xd76c4a===void 0x0?void 0x0:_0xd76c4a[_0x2dc750(0xaf)])&&!fs[_0x2dc750(0xf2)](_0x19d61b[_0x2dc750(0x92)][_0x2dc750(0xaf)])&&(fs['mkdirSync'](_0x19d61b[_0x2dc750(0x92)][_0x2dc750(0xaf)],{'recursive':!![]}),console[_0x2dc750(0xa4)](_0x2dc750(0x98)+_0x19d61b[_0x2dc750(0x92)]['tmpdir'])),this[_0x2dc750(0x88)][_0x2dc750(0xcd)](_0x19d61b);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x35267b(0xf7),Object)],CustomConfiguration[a2_0x35267b(0xd4)],a2_0x35267b(0xc0),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a2_0x35267b(0xd4)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x35267b(0xf6)])(),__metadata('design:type',core_2[a2_0x35267b(0xd1)])],CustomConfiguration['prototype'],a2_0x35267b(0x8d),void 0x0),__decorate([(0x0,core_1[a2_0x35267b(0xf6)])(),__metadata(a2_0x35267b(0xf7),core_2[a2_0x35267b(0xe5)])],CustomConfiguration[a2_0x35267b(0xd4)],a2_0x35267b(0xd5),void 0x0),__decorate([(0x0,core_1[a2_0x35267b(0xf6)])(),__metadata('design:type',core_2[a2_0x35267b(0x7f)])],CustomConfiguration[a2_0x35267b(0xd4)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x35267b(0xf6)])(),__metadata(a2_0x35267b(0xf7),ApiService_1['ApiService'])],CustomConfiguration[a2_0x35267b(0xd4)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x35267b(0xbe)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x35267b(0xe2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x35267b(0xd8)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x509ec5=a3_0x1c8e;(function(_0x3dad90,_0xc10923){const _0x18705c=a3_0x1c8e,_0x401e54=_0x3dad90();while(!![]){try{const _0x2483b5=-parseInt(_0x18705c(0x105))/0x1+parseInt(_0x18705c(0xe5))/0x2+-parseInt(_0x18705c(0xec))/0x3+parseInt(_0x18705c(0xed))/0x4*(parseInt(_0x18705c(0xf0))/0x5)+-parseInt(_0x18705c(0xfa))/0x6+-parseInt(_0x18705c(0xef))/0x7*(-parseInt(_0x18705c(0xfb))/0x8)+-parseInt(_0x18705c(0xdf))/0x9;if(_0x2483b5===_0xc10923)break;else _0x401e54['push'](_0x401e54['shift']());}catch(_0x5269c4){_0x401e54['push'](_0x401e54['shift']());}}}(a3_0x1a6d,0x7f5eb));const a3_0x5c0869=(function(){let _0x3e4615=!![];return function(_0x2d90bd,_0x4fa89e){const _0x5da425=_0x3e4615?function(){if(_0x4fa89e){const _0x5407ef=_0x4fa89e['apply'](_0x2d90bd,arguments);return _0x4fa89e=null,_0x5407ef;}}:function(){};return _0x3e4615=![],_0x5da425;};}()),a3_0x12d908=a3_0x5c0869(this,function(){const _0x5003ee=a3_0x1c8e;return a3_0x12d908[_0x5003ee(0xf7)]()[_0x5003ee(0xe6)](_0x5003ee(0xf1))[_0x5003ee(0xf7)]()[_0x5003ee(0x108)](a3_0x12d908)['search'](_0x5003ee(0xf1));});a3_0x12d908();'use strict';function a3_0x1c8e(_0x3b13ce,_0x5a194d){const _0x34f281=a3_0x1a6d();return a3_0x1c8e=function(_0x12d908,_0x5c0869){_0x12d908=_0x12d908-0xdd;let _0x1a6d95=_0x34f281[_0x12d908];return _0x1a6d95;},a3_0x1c8e(_0x3b13ce,_0x5a194d);}Object[a3_0x509ec5(0xf6)](exports,a3_0x509ec5(0x10c),{'value':!![]}),exports['parseRoute']=exports[a3_0x509ec5(0xe1)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x509ec5(0x110)),action_1=require('../types/action');function Action(_0x4f0d43,_0xb5de3d,_0x239550={'middleware':[],'sensitive':!![]}){return _0x496b19=>{const _0xe04d9f=a3_0x1c8e;var _0x46052f;_0x239550[_0xe04d9f(0xf9)]=_0xb5de3d;const _0x485879=parseRoute(_0x4f0d43);if(_0x485879[_0xe04d9f(0x10e)]){_0x239550['prefix']=_0x239550[_0xe04d9f(0xf2)]?'/'+_0x485879[_0xe04d9f(0x10e)]+'/'+_0x239550[_0xe04d9f(0xf2)]:'/'+_0x485879[_0xe04d9f(0xe8)];_0x485879[_0xe04d9f(0xf2)]&&(_0x239550[_0xe04d9f(0xf2)]='/'+_0x485879['prefix']+'/'+_0x239550['prefix']);if(fs['existsSync'](_0x485879['rootpath']+_0xe04d9f(0x101)+_0x485879[_0xe04d9f(0x10e)]+_0xe04d9f(0x106)+(lodash[_0xe04d9f(0xde)](_0x485879['filepath'],'ts')?'ts':'js'))){const _0x57bba1=include(_0x485879['rootpath']+_0xe04d9f(0x101)+_0x485879[_0xe04d9f(0x10e)]+_0xe04d9f(0x106)+(lodash[_0xe04d9f(0xde)](_0x485879[_0xe04d9f(0x113)],'ts')?'ts':'js'));if(_0x57bba1['middleware']&&lodash['isArray'](_0x57bba1[_0xe04d9f(0xfe)])&&_0x57bba1[_0xe04d9f(0xfe)][_0xe04d9f(0xe9)]>0x0)for(let _0x4d3c1e in _0x57bba1[_0xe04d9f(0xfe)]){if(((_0x46052f=_0x57bba1===null||_0x57bba1===void 0x0?void 0x0:_0x57bba1[_0xe04d9f(0x107)])===null||_0x46052f===void 0x0?void 0x0:_0x46052f[_0xe04d9f(0xe9)])>0x0&&_0x57bba1[_0xe04d9f(0x107)][_0xe04d9f(0x112)](_0x57bba1['middleware'][_0x4d3c1e])!=-0x1)continue;_0x239550[_0xe04d9f(0xfe)][_0xe04d9f(0x100)](_0x57bba1[_0xe04d9f(0xfe)][_0x4d3c1e]);}const _0x44eaf9=(0x0,core_1['getClassMetadata'])(action_1[_0xe04d9f(0xe7)],action_1[_0xe04d9f(0x102)])||{};_0x44eaf9[''+_0x485879['module']]=_0x57bba1,(0x0,core_1[_0xe04d9f(0xe2)])(action_1['APPSCONFIG_KEY'],_0x44eaf9,action_1['AppsConfigTmp']);}_0x239550[_0xe04d9f(0xf2)]=_0x239550[_0xe04d9f(0xf2)][_0xe04d9f(0x10f)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0xe04d9f(0xf8)])(action_1['ACTION_KEY'],_0x496b19),(0x0,core_1[_0xe04d9f(0xdd)])(_0x239550['prefix'],_0x239550)(_0x496b19),(0x0,core_1[_0xe04d9f(0xe2)])(action_1[_0xe04d9f(0xea)],{'prefix':_0x239550[_0xe04d9f(0xf2)],'pprefix':_0x485879[_0xe04d9f(0xf2)],'module':_0x485879[_0xe04d9f(0x10e)],'filepath':_0x485879['filepath'],'routerOptions':_0x239550},_0x496b19);}else _0x239550[_0xe04d9f(0xf2)]=_0x239550[_0xe04d9f(0xf2)]?'/'+_0x239550[_0xe04d9f(0xf2)]:'/'+_0x485879['route'],_0x485879[_0xe04d9f(0xf2)]&&(_0x239550[_0xe04d9f(0xf2)]='/'+_0x485879[_0xe04d9f(0xf2)]+'/'+_0x239550[_0xe04d9f(0xf2)]),_0x239550[_0xe04d9f(0xf2)]=_0x239550['prefix'][_0xe04d9f(0x10f)]()[_0xe04d9f(0x10a)](/\/{2,}/g,'/'),(0x0,core_1[_0xe04d9f(0xf8)])(action_1['ACTION_KEY'],_0x496b19),(0x0,core_1['Controller'])(_0x239550[_0xe04d9f(0xf2)],_0x239550)(_0x496b19),(0x0,core_1[_0xe04d9f(0xe2)])(action_1['ACTION_KEY'],{'prefix':_0x239550[_0xe04d9f(0xf2)],'module':_0x485879[_0xe04d9f(0x10e)],'pprefix':_0x485879[_0xe04d9f(0xf2)],'filepath':_0x485879[_0xe04d9f(0x113)],'routerOptions':_0x239550},_0x496b19);};}exports[a3_0x509ec5(0xe1)]=Action;function parseRoute(_0x324f6f){const _0x597121=a3_0x509ec5;_0x324f6f=_0x324f6f['replace'](/(\\|\/)/g,'/');const _0x4b09b5=process['cwd']()[_0x597121(0x10a)](/(\\|\/)/g,'/'),_0x48ac34=_0x324f6f[_0x597121(0xe0)](0x0,_0x4b09b5[_0x597121(0xe9)]+_0x324f6f['substring'](_0x4b09b5[_0x597121(0xe9)]+0x1)[_0x597121(0x112)]('/')+0x1),_0x133fe6=_0x324f6f[_0x597121(0xe0)](_0x48ac34[_0x597121(0xe9)]+0x1)[_0x597121(0x10a)](/(\\|\/)/g,'/'),_0x327f50={'route':'','prefix':![],'module':![],'rootpath':_0x48ac34,'filepath':_0x133fe6};if(_0x133fe6[_0x597121(0xeb)]('app/controller/')||_0x133fe6[_0x597121(0xeb)](_0x597121(0xee))){const _0x34a9b0=_0x133fe6['substring']((_0x133fe6[_0x597121(0xeb)](_0x597121(0xe4))?_0x597121(0xe4):_0x597121(0xee))[_0x597121(0xe9)])[_0x597121(0x104)]('/')[_0x597121(0xf3)](_0x51cd36=>_0x51cd36&&_0x51cd36[_0x597121(0x103)]());return _0x34a9b0['length']>0x1&&(_0x327f50[_0x597121(0xf2)]=_0x34a9b0[0x0][_0x597121(0x10f)](),_0x34a9b0[_0x597121(0x10b)](0x0,0x1)),_0x327f50['route']=('/'+_0x34a9b0[_0x597121(0xfd)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x597121(0x10a)](/\/{2,}/g,'/')[_0x597121(0x109)](/[\/|A-Z]*[^A-Z]+/g)[_0x597121(0xfd)]('-')[_0x597121(0x10f)]()[_0x597121(0x10a)](/\/\-/g,'/'),_0x327f50[_0x597121(0xe8)][_0x597121(0xde)](_0x597121(0xf4))&&(_0x327f50[_0x597121(0xe8)]=_0x327f50[_0x597121(0xe8)][_0x597121(0xe0)](0x0,_0x327f50[_0x597121(0xe8)][_0x597121(0xe9)]-0x7)),_0x327f50['route'][_0x597121(0xde)]('-controller')&&(_0x327f50[_0x597121(0xe8)]=_0x327f50[_0x597121(0xe8)]['substring'](0x0,_0x327f50[_0x597121(0xe8)][_0x597121(0xe9)]-0xb)),_0x327f50;}else{if(_0x133fe6[_0x597121(0xeb)](_0x597121(0xfc))){const _0x4345d0=_0x133fe6['substring'](0x0,_0x133fe6['indexOf'](_0x597121(0x101))+0x5),_0x5df12c=_0x133fe6[_0x597121(0xe0)](_0x4345d0[_0x597121(0xe9)]+0x1)[_0x597121(0x10a)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x133fe6[_0x597121(0xeb)](_0x597121(0xfc)+_0x5df12c+_0x597121(0x10d))){const _0x4d8e74=_0x133fe6['substring']((_0x4345d0+'/'+_0x5df12c+_0x597121(0x10d))[_0x597121(0xe9)])[_0x597121(0x104)]('/')['filter'](_0x27f393=>_0x27f393&&_0x27f393[_0x597121(0x103)]());return _0x4d8e74['length']>0x1&&(_0x327f50[_0x597121(0xf2)]=_0x4d8e74[0x0]['toLowerCase'](),_0x4d8e74[_0x597121(0x10b)](0x0,0x1)),_0x327f50[_0x597121(0x10e)]=_0x5df12c,_0x327f50[_0x597121(0xe8)]=('/'+_0x5df12c+'/'+_0x4d8e74[_0x597121(0xfd)]('/'))[_0x597121(0x10a)](/(\.ts|\.js)$/,'')[_0x597121(0x10a)](/\/{2,}/,'/')[_0x597121(0x109)](/[\/|A-Z]*[^A-Z]+/g)[_0x597121(0xfd)]('-')[_0x597121(0x10f)]()[_0x597121(0x10a)](/\/\-/g,'/'),_0x327f50[_0x597121(0xe8)][_0x597121(0xde)]('-action')&&(_0x327f50[_0x597121(0xe8)]=_0x327f50['route'][_0x597121(0xe0)](0x0,_0x327f50[_0x597121(0xe8)][_0x597121(0xe9)]-0x7)),_0x327f50[_0x597121(0xe8)][_0x597121(0xde)](_0x597121(0xf5))&&(_0x327f50[_0x597121(0xe8)]=_0x327f50[_0x597121(0xe8)][_0x597121(0xe0)](0x0,_0x327f50[_0x597121(0xe8)][_0x597121(0xe9)]-0xb)),_0x327f50;}throw new Error(_0x133fe6+'\x20文件请放在apps/'+_0x5df12c+_0x597121(0xe3));}}throw new Error(_0x133fe6+_0x597121(0x111));}exports[a3_0x509ec5(0xff)]=parseRoute;function a3_0x1a6d(){const _0x162b85=['apps/','join','middleware','parseRoute','push','/apps/','AppsConfigTmp','trim','split','332386DWMXnN','/config.','middlewareIgnore','constructor','match','replace','splice','__esModule','/controller/','module','toLowerCase','@midwayjs/core','\x20文件请放在app/controller/文件下','indexOf','filepath','Controller','endsWith','6462171PMfCdn','substring','Action','saveClassMetadata','/controller/文件下','app/controller/','1802044rKhAWK','search','APPSCONFIG_KEY','route','length','ACTION_KEY','startsWith','1160769JFjiBN','1959604uqPLTm','basic/controller/','7uyoCSg','10DRPbsv','(((.+)+)+)+$','prefix','filter','-action','-controller','defineProperty','toString','saveModule','tagName','4153452MsoCAk','6163624xMkSUa'];a3_0x1a6d=function(){return _0x162b85;};return a3_0x1a6d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x33f2ce=a4_0x2053;(function(_0x10f5fc,_0x5849c1){const _0x3f7e60=a4_0x2053,_0x2c9346=_0x10f5fc();while(!![]){try{const _0x40d769=-parseInt(_0x3f7e60(0x192))/0x1+parseInt(_0x3f7e60(0x191))/0x2*(-parseInt(_0x3f7e60(0x17b))/0x3)+-parseInt(_0x3f7e60(0x184))/0x4*(parseInt(_0x3f7e60(0x196))/0x5)+parseInt(_0x3f7e60(0x193))/0x6+parseInt(_0x3f7e60(0x185))/0x7*(parseInt(_0x3f7e60(0x183))/0x8)+parseInt(_0x3f7e60(0x17a))/0x9+parseInt(_0x3f7e60(0x179))/0xa*(parseInt(_0x3f7e60(0x17e))/0xb);if(_0x40d769===_0x5849c1)break;else _0x2c9346['push'](_0x2c9346['shift']());}catch(_0x525d6c){_0x2c9346['push'](_0x2c9346['shift']());}}}(a4_0x35f1,0x9fd85));const a4_0x516711=(function(){let _0x418ffe=!![];return function(_0x331156,_0x3ce104){const _0x3f721d=_0x418ffe?function(){const _0x2064b2=a4_0x2053;if(_0x3ce104){const _0x37ad88=_0x3ce104[_0x2064b2(0x19d)](_0x331156,arguments);return _0x3ce104=null,_0x37ad88;}}:function(){};return _0x418ffe=![],_0x3f721d;};}()),a4_0x1d4bbf=a4_0x516711(this,function(){const _0x127dc1=a4_0x2053;return a4_0x1d4bbf[_0x127dc1(0x188)]()[_0x127dc1(0x17f)](_0x127dc1(0x198))[_0x127dc1(0x188)]()['constructor'](a4_0x1d4bbf)[_0x127dc1(0x17f)](_0x127dc1(0x198));});a4_0x1d4bbf();function a4_0x2053(_0x51117b,_0x2629b3){const _0x5dbcad=a4_0x35f1();return a4_0x2053=function(_0x1d4bbf,_0x516711){_0x1d4bbf=_0x1d4bbf-0x179;let _0x35f1d4=_0x5dbcad[_0x1d4bbf];return _0x35f1d4;},a4_0x2053(_0x51117b,_0x2629b3);}function a4_0x35f1(){const _0xb2e33=['(((.+)+)+)+$','ACTION_ROUTE_KEY','apimit','middleware','toLowerCase','apply','100RSMyCX','9973026TZDmvM','417ZRAsWz','attachClassMetadata','intercept','418682Zcveli','search','Validator','Api','defineProperty','132744IKJCJN','88xeikyT','119xMJthr','../types/action','routerName','toString','validationOptions','length','delete','del','__esModule','@anncic-api/validator','RequestMapping','validate','17002NHclOS','240957VcENxF','6224868PogocB','middlewareIgnore','filter','166130QAWxmr','description'];a4_0x35f1=function(){return _0xb2e33;};return a4_0x35f1();}'use strict';Object[a4_0x33f2ce(0x182)](exports,a4_0x33f2ce(0x18d),{'value':!![]}),exports[a4_0x33f2ce(0x181)]=void 0x0;const validator_1=require(a4_0x33f2ce(0x18e)),core_1=require('@midwayjs/core'),action_1=require(a4_0x33f2ce(0x186));function Api(_0x2c5be6,_0x35431d='get',_0x2d1cf0='/',_0x25d0f1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xd703e0,_0x351972,_0x563678)=>{const _0x81a936=a4_0x2053;var _0x2dd2fb,_0x4f1b55,_0x544d9d;!_0x25d0f1['middleware']&&(_0x25d0f1[_0x81a936(0x19b)]=[]);!((_0x2dd2fb=_0x25d0f1===null||_0x25d0f1===void 0x0?void 0x0:_0x25d0f1['validate'])===null||_0x2dd2fb===void 0x0?void 0x0:_0x2dd2fb[_0x81a936(0x189)])&&(_0x25d0f1[_0x81a936(0x190)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x4f1b55=_0x25d0f1===null||_0x25d0f1===void 0x0?void 0x0:_0x25d0f1[_0x81a936(0x19b)])===null||_0x4f1b55===void 0x0?void 0x0:_0x4f1b55[_0x81a936(0x18a)])>0x0&&((_0x544d9d=_0x25d0f1===null||_0x25d0f1===void 0x0?void 0x0:_0x25d0f1['middlewareIgnore'])===null||_0x544d9d===void 0x0?void 0x0:_0x544d9d[_0x81a936(0x18a)])>0x0)for(let _0x2aa59c in _0x25d0f1[_0x81a936(0x19b)]){_0x25d0f1[_0x81a936(0x194)]['indexOf'](_0x25d0f1['middleware'][_0x2aa59c])!==-0x1&&(_0x25d0f1[_0x81a936(0x19b)][_0x2aa59c]=null);}_0x25d0f1[_0x81a936(0x187)]=_0x2c5be6,(0x0,validator_1[_0x81a936(0x180)])(_0x25d0f1['validate'])(_0xd703e0,_0x351972,_0x563678),(0x0,core_1[_0x81a936(0x18f)])(Object['assign'](_0x25d0f1,{'path':_0x2d1cf0,'requestMethod':(_0x35431d==_0x81a936(0x18c)?_0x81a936(0x18b):_0x35431d)[_0x81a936(0x19c)]()}))(_0xd703e0,_0x351972,_0x563678),(0x0,core_1[_0x81a936(0x17c)])(action_1[_0x81a936(0x199)],{'path':_0x2d1cf0,'method':_0x351972,'apimit':_0x25d0f1[_0x81a936(0x19a)],'intercept':_0x25d0f1[_0x81a936(0x17d)],'routerName':_0x25d0f1[_0x81a936(0x187)],'description':_0x25d0f1[_0x81a936(0x197)],'middleware':(_0x25d0f1['middleware']||[])['filter'](_0x374eb0=>!!_0x374eb0),'requestMethod':(_0x35431d=='del'?'delete':_0x35431d)[_0x81a936(0x19c)]()},_0xd703e0),(0x0,core_1['createCustomMethodDecorator'])(action_1[_0x81a936(0x199)],{'path':_0x2d1cf0,'method':_0x351972,'apimit':_0x25d0f1['apimit'],'intercept':_0x25d0f1[_0x81a936(0x17d)],'routerName':_0x25d0f1[_0x81a936(0x187)],'description':_0x25d0f1[_0x81a936(0x197)],'middleware':(_0x25d0f1[_0x81a936(0x19b)]||[])[_0x81a936(0x195)](_0x69e1fd=>!!_0x69e1fd),'requestMethod':(_0x35431d==_0x81a936(0x18c)?_0x81a936(0x18b):_0x35431d)['toLowerCase']()})(_0xd703e0,_0x351972,_0x563678);};}exports[a4_0x33f2ce(0x181)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x253c51=a5_0x5cd6;(function(_0x13c376,_0x4747b1){const _0x12cf77=a5_0x5cd6,_0x3b8897=_0x13c376();while(!![]){try{const _0x49700f=-parseInt(_0x12cf77(0x1a4))/0x1+-parseInt(_0x12cf77(0x1b2))/0x2*(parseInt(_0x12cf77(0x1ab))/0x3)+-parseInt(_0x12cf77(0x1a9))/0x4+-parseInt(_0x12cf77(0x1bd))/0x5+-parseInt(_0x12cf77(0x1b5))/0x6*(-parseInt(_0x12cf77(0x1bc))/0x7)+-parseInt(_0x12cf77(0x1b0))/0x8+parseInt(_0x12cf77(0x1ad))/0x9;if(_0x49700f===_0x4747b1)break;else _0x3b8897['push'](_0x3b8897['shift']());}catch(_0x25b715){_0x3b8897['push'](_0x3b8897['shift']());}}}(a5_0x4276,0xb2c7f));function a5_0x4276(){const _0x2e224d=['constructor','RequestMapping','MidwayEnvironmentService','isDevelopmentEnvironment','175GeGOXz','5008620SUiYJC','REQUEST_OBJ_CTX_KEY','560161GtbUJL','value','(((.+)+)+)+$','getApplicationContext','apply','4079828klxKlf','apidoc','2994DsVDye','apitest','28537155tJYEBG','@midwayjs/core','app','2536760zkgOLN','toString','454uKsSyd','/apitest','get','164874oEyzOX','Apitest','__esModule'];a5_0x4276=function(){return _0x2e224d;};return a5_0x4276();}const a5_0x3b3096=(function(){let _0x24c823=!![];return function(_0x58ff7c,_0x1bef40){const _0x4bfc0b=_0x24c823?function(){const _0x221973=a5_0x5cd6;if(_0x1bef40){const _0x467203=_0x1bef40[_0x221973(0x1a8)](_0x58ff7c,arguments);return _0x1bef40=null,_0x467203;}}:function(){};return _0x24c823=![],_0x4bfc0b;};}()),a5_0x489d99=a5_0x3b3096(this,function(){const _0x55cd7e=a5_0x5cd6;return a5_0x489d99[_0x55cd7e(0x1b1)]()['search'](_0x55cd7e(0x1a6))[_0x55cd7e(0x1b1)]()[_0x55cd7e(0x1b8)](a5_0x489d99)['search'](_0x55cd7e(0x1a6));});a5_0x489d99();'use strict';Object['defineProperty'](exports,a5_0x253c51(0x1b7),{'value':!![]}),exports[a5_0x253c51(0x1b6)]=void 0x0;const core_1=require(a5_0x253c51(0x1ae)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x4cb96f=a5_0x253c51(0x1b3),_0x545070){return(_0x433326,_0x333f08,_0x4b6b0c)=>{const _0xe9ef7d=a5_0x5cd6;return(0x0,core_1[_0xe9ef7d(0x1b9)])({'path':_0x4cb96f,'requestMethod':_0xe9ef7d(0x1b4)})(_0x433326,_0x333f08,_0x4b6b0c),_0x4b6b0c[_0xe9ef7d(0x1a5)]=async function(..._0x23ab2b){const _0x20ef9b=_0xe9ef7d;var _0x1ba84e;const _0xaa8848=(_0x1ba84e=this[core_1[_0x20ef9b(0x1a3)]])===null||_0x1ba84e===void 0x0?void 0x0:_0x1ba84e[_0x20ef9b(0x1af)];if(_0xaa8848&&_0xaa8848['getConfig'](_0x20ef9b(0x1ac))){const _0xf9e388=await _0xaa8848[_0x20ef9b(0x1a7)]()['getAsync'](ApitestService_1['ApitestService']),_0x4a717b=await _0xaa8848[_0x20ef9b(0x1a7)]()['getAsync'](core_1[_0x20ef9b(0x1ba)]);return _0x4a717b[_0x20ef9b(0x1bb)]()&&(_0x545070['filepath']=!![]),await _0xf9e388[_0x20ef9b(0x1aa)](_0x545070);}return'';},_0x4b6b0c;};}function a5_0x5cd6(_0x81fd19,_0x540b53){const _0x267f65=a5_0x4276();return a5_0x5cd6=function(_0x489d99,_0x3b3096){_0x489d99=_0x489d99-0x1a3;let _0x42768d=_0x267f65[_0x489d99];return _0x42768d;},a5_0x5cd6(_0x81fd19,_0x540b53);}exports[a5_0x253c51(0x1b6)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x547022=a6_0x2a19;(function(_0x5f5669,_0x311221){var _0x5c191f=a6_0x2a19,_0x2fc3fd=_0x5f5669();while(!![]){try{var _0x595397=-parseInt(_0x5c191f(0x1d4))/0x1*(parseInt(_0x5c191f(0x1d2))/0x2)+parseInt(_0x5c191f(0x1cd))/0x3+-parseInt(_0x5c191f(0x1cc))/0x4+parseInt(_0x5c191f(0x1c9))/0x5+-parseInt(_0x5c191f(0x1bb))/0x6+-parseInt(_0x5c191f(0x1cf))/0x7+-parseInt(_0x5c191f(0x1c7))/0x8*(-parseInt(_0x5c191f(0x1c4))/0x9);if(_0x595397===_0x311221)break;else _0x2fc3fd['push'](_0x2fc3fd['shift']());}catch(_0x2708dc){_0x2fc3fd['push'](_0x2fc3fd['shift']());}}}(a6_0x211d,0xc231d));var a6_0x6ed3e7=(function(){var _0x25fa79=!![];return function(_0x42e5c8,_0x3c4ca1){var _0x24c360=_0x25fa79?function(){var _0x58dc3a=a6_0x2a19;if(_0x3c4ca1){var _0x34b624=_0x3c4ca1[_0x58dc3a(0x1c8)](_0x42e5c8,arguments);return _0x3c4ca1=null,_0x34b624;}}:function(){};return _0x25fa79=![],_0x24c360;};}()),a6_0x2d8711=a6_0x6ed3e7(this,function(){var _0x19ffb3=a6_0x2a19;return a6_0x2d8711[_0x19ffb3(0x1d7)]()[_0x19ffb3(0x1ba)](_0x19ffb3(0x1d8))['toString']()['constructor'](a6_0x2d8711)[_0x19ffb3(0x1ba)](_0x19ffb3(0x1d8));});function a6_0x211d(){var _0x2ecc8d=['10312xQOYJE','apply','6391525LzwkjL','请使用正确的设备','ApiError','2736732IIfJvT','740274BOzXLl','__metadata','2236325OQDFkc','object','TIMEOUT','3100gjwfMa','design:type','873kpQmsO','signature验证失败','HEADERS_LACK','toString','(((.+)+)+)+$','HEADERS_SIGNATURE','defineProperty','metadata','getOwnPropertyDescriptor','search','5171358vlyyhg','请求超时,请重试','HEADERS_DEVICE','TIMEOUT_LOGINTIME','function','__esModule','length','登录超时,请重新登录','验证失败,请重新登录','17379HyiyxP','HEADERS_CHECKCODE','decorate'];a6_0x211d=function(){return _0x2ecc8d;};return a6_0x211d();}function a6_0x2a19(_0x23da94,_0xe8e13f){var _0x1d5d0=a6_0x211d();return a6_0x2a19=function(_0x2d8711,_0x6ed3e7){_0x2d8711=_0x2d8711-0x1b7;var _0x211d87=_0x1d5d0[_0x2d8711];return _0x211d87;},a6_0x2a19(_0x23da94,_0xe8e13f);}a6_0x2d8711();'use strict';var __decorate=this&&this['__decorate']||function(_0x56adaf,_0x58628f,_0x1ce500,_0x5a4cb4){var _0x4b5c96=a6_0x2a19,_0x3b8201=arguments[_0x4b5c96(0x1c1)],_0x410651=_0x3b8201<0x3?_0x58628f:_0x5a4cb4===null?_0x5a4cb4=Object[_0x4b5c96(0x1b9)](_0x58628f,_0x1ce500):_0x5a4cb4,_0x15a97c;if(typeof Reflect===_0x4b5c96(0x1d0)&&typeof Reflect[_0x4b5c96(0x1c6)]===_0x4b5c96(0x1bf))_0x410651=Reflect[_0x4b5c96(0x1c6)](_0x56adaf,_0x58628f,_0x1ce500,_0x5a4cb4);else{for(var _0x1a588b=_0x56adaf[_0x4b5c96(0x1c1)]-0x1;_0x1a588b>=0x0;_0x1a588b--)if(_0x15a97c=_0x56adaf[_0x1a588b])_0x410651=(_0x3b8201<0x3?_0x15a97c(_0x410651):_0x3b8201>0x3?_0x15a97c(_0x58628f,_0x1ce500,_0x410651):_0x15a97c(_0x58628f,_0x1ce500))||_0x410651;}return _0x3b8201>0x3&&_0x410651&&Object[_0x4b5c96(0x1b7)](_0x58628f,_0x1ce500,_0x410651),_0x410651;},__metadata=this&&this[a6_0x547022(0x1ce)]||function(_0x3cb118,_0x34f3b2){var _0x469034=a6_0x547022;if(typeof Reflect==='object'&&typeof Reflect[_0x469034(0x1b8)]===_0x469034(0x1bf))return Reflect[_0x469034(0x1b8)](_0x3cb118,_0x34f3b2);};Object[a6_0x547022(0x1b7)](exports,a6_0x547022(0x1c0),{'value':!![]}),exports[a6_0x547022(0x1cb)]=void 0x0;class ApiError{}ApiError[a6_0x547022(0x1d1)]=0x3d7e31,ApiError[a6_0x547022(0x1d6)]=0x3d7e32,ApiError[a6_0x547022(0x1bd)]=0x3d7e33,ApiError['HEADERS_SIGNATURE']=0x3d7e34,ApiError['HEADERS_CHECKCODE']=0x3d7e35,ApiError[a6_0x547022(0x1be)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x547022(0x1bc)),__metadata(a6_0x547022(0x1d3),Object)],ApiError,a6_0x547022(0x1d1),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata('design:type',Object)],ApiError,a6_0x547022(0x1d6),void 0x0),__decorate([AnnErrorMsg(a6_0x547022(0x1ca)),__metadata(a6_0x547022(0x1d3),Object)],ApiError,a6_0x547022(0x1bd),void 0x0),__decorate([AnnErrorMsg(a6_0x547022(0x1d5)),__metadata(a6_0x547022(0x1d3),Object)],ApiError,a6_0x547022(0x1d9),void 0x0),__decorate([AnnErrorMsg(a6_0x547022(0x1c3)),__metadata(a6_0x547022(0x1d3),Object)],ApiError,a6_0x547022(0x1c5),void 0x0),__decorate([AnnErrorMsg(a6_0x547022(0x1c2)),__metadata(a6_0x547022(0x1d3),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x5c46(_0x8cade2,_0x24aa17){const _0x5c6ed0=a7_0x19b8();return a7_0x5c46=function(_0x2211f6,_0x248a02){_0x2211f6=_0x2211f6-0x10b;let _0x19b86e=_0x5c6ed0[_0x2211f6];return _0x19b86e;},a7_0x5c46(_0x8cade2,_0x24aa17);}const a7_0x10e089=a7_0x5c46;(function(_0x326b0e,_0x1bf4cc){const _0x360945=a7_0x5c46,_0x563e3c=_0x326b0e();while(!![]){try{const _0x2617af=-parseInt(_0x360945(0x11b))/0x1*(parseInt(_0x360945(0x120))/0x2)+-parseInt(_0x360945(0x114))/0x3+-parseInt(_0x360945(0x10b))/0x4*(parseInt(_0x360945(0x122))/0x5)+parseInt(_0x360945(0x115))/0x6+parseInt(_0x360945(0x111))/0x7+-parseInt(_0x360945(0x119))/0x8*(-parseInt(_0x360945(0x116))/0x9)+parseInt(_0x360945(0x10f))/0xa*(parseInt(_0x360945(0x10d))/0xb);if(_0x2617af===_0x1bf4cc)break;else _0x563e3c['push'](_0x563e3c['shift']());}catch(_0x32af61){_0x563e3c['push'](_0x563e3c['shift']());}}}(a7_0x19b8,0xaf01b));const a7_0x248a02=(function(){let _0x2ece34=!![];return function(_0x5e9d6b,_0x45c5ac){const _0x4b5e33=_0x2ece34?function(){const _0x2c2c59=a7_0x5c46;if(_0x45c5ac){const _0x383e6f=_0x45c5ac[_0x2c2c59(0x10e)](_0x5e9d6b,arguments);return _0x45c5ac=null,_0x383e6f;}}:function(){};return _0x2ece34=![],_0x4b5e33;};}()),a7_0x2211f6=a7_0x248a02(this,function(){const _0xe0cf4e=a7_0x5c46;return a7_0x2211f6[_0xe0cf4e(0x11d)]()['search'](_0xe0cf4e(0x11f))[_0xe0cf4e(0x11d)]()[_0xe0cf4e(0x110)](a7_0x2211f6)[_0xe0cf4e(0x11c)](_0xe0cf4e(0x11f));});a7_0x2211f6();function a7_0x19b8(){const _0x3e168b=['get','getAppsConfig','142998nDtYte','1520364DGjjdg','644463PRmhDT','AppsConfigTmp','__esModule','56htVJEM','defineProperty','28kbtyCI','search','toString','APPSCONFIG_KEY','(((.+)+)+)+$','71626PqAsZQ','@midwayjs/core','10jeoKxj','2622736CbAjXa','../types/action','11oVmGsn','apply','19709770hlEBQA','constructor','2471035PsddXO'];a7_0x19b8=function(){return _0x3e168b;};return a7_0x19b8();}'use strict';Object[a7_0x10e089(0x11a)](exports,a7_0x10e089(0x118),{'value':!![]}),exports[a7_0x10e089(0x113)]=void 0x0;const core_1=require(a7_0x10e089(0x121)),action_1=require(a7_0x10e089(0x10c));function getAppsConfig(_0x47204f){const _0x6a43bd=a7_0x10e089,_0x535366=(0x0,core_1['getClassMetadata'])(action_1[_0x6a43bd(0x11e)],action_1[_0x6a43bd(0x117)])||{};return _0x47204f?lodash[_0x6a43bd(0x112)](_0x535366,_0x47204f):_0x535366;}exports[a7_0x10e089(0x113)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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';}}
|
|
1
|
+
const a8_0xf5fe92=a8_0x353d;(function(_0x59dcd8,_0x5a4138){const _0x2ee7d6=a8_0x353d,_0x52aad7=_0x59dcd8();while(!![]){try{const _0x5d92d1=parseInt(_0x2ee7d6(0x152))/0x1+parseInt(_0x2ee7d6(0x164))/0x2+-parseInt(_0x2ee7d6(0x194))/0x3*(parseInt(_0x2ee7d6(0x19e))/0x4)+-parseInt(_0x2ee7d6(0x1a9))/0x5*(parseInt(_0x2ee7d6(0x16f))/0x6)+-parseInt(_0x2ee7d6(0x193))/0x7+-parseInt(_0x2ee7d6(0x19b))/0x8+-parseInt(_0x2ee7d6(0x179))/0x9*(-parseInt(_0x2ee7d6(0x18f))/0xa);if(_0x5d92d1===_0x5a4138)break;else _0x52aad7['push'](_0x52aad7['shift']());}catch(_0x3710d7){_0x52aad7['push'](_0x52aad7['shift']());}}}(a8_0x569e,0xd0c55));const a8_0x21f7af=(function(){let _0x29703c=!![];return function(_0x509141,_0x39d329){const _0xb1ca4d=_0x29703c?function(){const _0x218111=a8_0x353d;if(_0x39d329){const _0x23f246=_0x39d329[_0x218111(0x174)](_0x509141,arguments);return _0x39d329=null,_0x23f246;}}:function(){};return _0x29703c=![],_0xb1ca4d;};}()),a8_0x1c4f27=a8_0x21f7af(this,function(){const _0x3034c2=a8_0x353d;return a8_0x1c4f27[_0x3034c2(0x15f)]()[_0x3034c2(0x168)](_0x3034c2(0x1a4))[_0x3034c2(0x15f)]()[_0x3034c2(0x156)](a8_0x1c4f27)['search'](_0x3034c2(0x1a4));});a8_0x1c4f27();'use strict';function a8_0x353d(_0x3a26c1,_0x348e1c){const _0x116903=a8_0x569e();return a8_0x353d=function(_0x1c4f27,_0x21f7af){_0x1c4f27=_0x1c4f27-0x145;let _0x569e58=_0x116903[_0x1c4f27];return _0x569e58;},a8_0x353d(_0x3a26c1,_0x348e1c);}Object[a8_0xf5fe92(0x172)](exports,a8_0xf5fe92(0x175),{'value':!![]}),exports[a8_0xf5fe92(0x155)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0xf5fe92(0x188)),core_1=require('@midwayjs/core'),core_2=require(a8_0xf5fe92(0x149)),core_3=require(a8_0xf5fe92(0x149)),action_1=require(a8_0xf5fe92(0x17f));function getRoutes(_0x223963={'prefix':'/','module':![]}){const _0x3c3114=a8_0xf5fe92;var _0xed0083,_0x1cad79;const _0x542917=(0x0,core_3['listModule'])(action_1[_0x3c3114(0x150)]),_0x489e28={},_0x9d857f=Array[_0x3c3114(0x192)](_0x223963['filter']||[])?_0x223963[_0x3c3114(0x15d)]||[]:[_0x223963[_0x3c3114(0x15d)]];_0x8a429c:for(const _0x416f97 of _0x542917){let _0x5ad74b=(0x0,core_3['getClassMetadata'])(action_1[_0x3c3114(0x150)],_0x416f97),_0x5e28d1=(0x0,core_3[_0x3c3114(0x1a8)])(action_1[_0x3c3114(0x163)],_0x416f97);if(_0x5ad74b&&_0x5e28d1){let _0x1bdccc=_0x5ad74b[_0x3c3114(0x14a)],_0x48b0a7={};if(_0x223963[_0x3c3114(0x16c)]&&(0x0,lodash_1['get'])(_0x5ad74b,_0x3c3114(0x16c),![])!=_0x223963['module'])continue _0x8a429c;else{if(_0x223963[_0x3c3114(0x16c)]===![]&&!!(0x0,lodash_1[_0x3c3114(0x158)])(_0x5ad74b,'module',null))continue _0x8a429c;}if(_0x223963[_0x3c3114(0x14a)]&&!_0x1bdccc[_0x3c3114(0x15c)](_0x223963[_0x3c3114(0x14a)]))continue _0x8a429c;_0x1bdccc!=='/'?(_0x48b0a7[_0x3c3114(0x180)]=(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x19f)][_0x3c3114(0x161)])||(/^\//[_0x3c3114(0x190)](_0x1bdccc)?_0x1bdccc[_0x3c3114(0x197)]('/')[0x1]:_0x1bdccc),_0x48b0a7[_0x3c3114(0x1a1)]=(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x19f)][_0x3c3114(0x1a1)])||_0x48b0a7[_0x3c3114(0x180)],_0x48b0a7[_0x3c3114(0x18a)]=[]):(_0x48b0a7[_0x3c3114(0x180)]=(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x19f)][_0x3c3114(0x161)])||_0x3c3114(0x173),_0x48b0a7[_0x3c3114(0x1a1)]=(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x19f)][_0x3c3114(0x1a1)])||'',_0x48b0a7[_0x3c3114(0x18a)]=[]);_0x223963['filepath']&&(_0x48b0a7[_0x3c3114(0x181)]=_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b['filepath']);(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x176)])&&(_0x48b0a7[_0x3c3114(0x14a)]=_0x5ad74b[_0x3c3114(0x176)]);(_0x5ad74b===null||_0x5ad74b===void 0x0?void 0x0:_0x5ad74b[_0x3c3114(0x16c)])&&(_0x48b0a7[_0x3c3114(0x16c)]=_0x5ad74b[_0x3c3114(0x16c)]);let _0x48f1e5=(0x0,core_3['getClassMetadata'])(core_2[_0x3c3114(0x186)],_0x416f97)||{};if(typeof _0x5e28d1[Symbol[_0x3c3114(0x167)]]===_0x3c3114(0x1a7))for(let _0x13d0bc of _0x5e28d1){if((_0x223963===null||_0x223963===void 0x0?void 0x0:_0x223963[_0x3c3114(0x189)])&&!(_0x13d0bc===null||_0x13d0bc===void 0x0?void 0x0:_0x13d0bc[_0x3c3114(0x189)]))continue;let _0x1fdfb3={};_0x1fdfb3[_0x3c3114(0x159)]=_0x13d0bc[_0x3c3114(0x182)],_0x1fdfb3[_0x3c3114(0x17d)]=(_0x1bdccc+_0x13d0bc[_0x3c3114(0x18e)])[_0x3c3114(0x160)](/\/{1,}/,'/'),_0x1fdfb3['summary']=(_0x13d0bc===null||_0x13d0bc===void 0x0?void 0x0:_0x13d0bc[_0x3c3114(0x191)])||_0x48b0a7[_0x3c3114(0x180)]||_0x3c3114(0x173),_0x1fdfb3['description']=(_0x13d0bc===null||_0x13d0bc===void 0x0?void 0x0:_0x13d0bc[_0x3c3114(0x1a1)])||'',_0x1fdfb3[_0x3c3114(0x15e)]=[];if(!(0x0,lodash_1[_0x3c3114(0x15c)])(_0x1fdfb3[_0x3c3114(0x17d)],'static/apitest')&&!(0x0,lodash_1[_0x3c3114(0x15c)])(_0x1fdfb3[_0x3c3114(0x17d)],_0x3c3114(0x184))&&_0x9d857f[_0x3c3114(0x196)](_0x1fdfb3[_0x3c3114(0x17d)])===-0x1){if(!(_0x223963===null||_0x223963===void 0x0?void 0x0:_0x223963[_0x3c3114(0x165)])){let _0x2effe8=(0x0,core_3[_0x3c3114(0x17e)])(new _0x416f97(),_0x13d0bc[_0x3c3114(0x159)]);for(const _0x4a9035 in _0x2effe8){let _0x149c29=(_0xed0083=_0x48f1e5[_0x13d0bc[_0x3c3114(0x159)]])===null||_0xed0083===void 0x0?void 0x0:_0xed0083['find'](_0x11d3cd=>_0x11d3cd[_0x3c3114(0x17a)]==_0x4a9035&&_0x11d3cd[_0x3c3114(0x19d)]===core_2[_0x3c3114(0x17c)]&&(_0x11d3cd===null||_0x11d3cd===void 0x0?void 0x0:_0x11d3cd[_0x3c3114(0x195)]));if(_0x149c29===null||_0x149c29===void 0x0?void 0x0:_0x149c29[_0x3c3114(0x195)]){let _0x4cd0e5=convertTypeToString(_0x149c29['metadata']['type']||0x0);if([_0x3c3114(0x178),'body'][_0x3c3114(0x196)](_0x4cd0e5)!=-0x1&&_0x149c29[_0x3c3114(0x195)]['propertyData']['indexOf'](':')==-0x1&&!_0x1fdfb3[_0x3c3114(0x15e)][_0x3c3114(0x19c)](_0x53241c=>_0x53241c[_0x3c3114(0x19d)]==_0x149c29[_0x3c3114(0x195)][_0x3c3114(0x1aa)]))_0x1fdfb3[_0x3c3114(0x15e)]['push']({'key':_0x149c29[_0x3c3114(0x195)][_0x3c3114(0x1aa)],'title':_0x149c29['metadata'][_0x3c3114(0x1aa)],'type':convertSchemaType(_0x2effe8[_0x149c29['parameterIndex']][_0x3c3114(0x15b)]),'required':![],'default':'','desc':''});else{if(_0x4cd0e5==_0x3c3114(0x177)){let _0x25c1eb=((_0x1cad79=_0x149c29===null||_0x149c29===void 0x0?void 0x0:_0x149c29[_0x3c3114(0x195)])===null||_0x1cad79===void 0x0?void 0x0:_0x1cad79[_0x3c3114(0x1aa)])||_0x3c3114(0x177);_0x25c1eb[_0x3c3114(0x196)](':')==-0x1&&!_0x1fdfb3[_0x3c3114(0x15e)][_0x3c3114(0x19c)](_0x4d2f09=>_0x4d2f09[_0x3c3114(0x19d)]==_0x25c1eb&&_0x4d2f09[_0x3c3114(0x16a)]==_0x3c3114(0x177))&&_0x1fdfb3[_0x3c3114(0x15e)][_0x3c3114(0x18d)]({'key':_0x25c1eb,'title':_0x3c3114(0x147)+_0x25c1eb,'type':_0x3c3114(0x177),'required':!![],'default':'','desc':''});}}}else{const _0x3d49da=(0x0,core_3[_0x3c3114(0x151)])(validator_1['RULES_KEY'],_0x2effe8[_0x4a9035]);_0x3d49da&&_0x1fdfb3[_0x3c3114(0x15e)][_0x3c3114(0x18d)](...getJoiRequest(_0x3d49da));}}}_0x48b0a7[_0x3c3114(0x18a)][_0x3c3114(0x18d)](_0x1fdfb3);}}if(_0x48b0a7[_0x3c3114(0x18a)][_0x3c3114(0x171)]>0x0){let _0x552a2c=_0x489e28[_0x1bdccc];_0x552a2c?(_0x552a2c['summary']!=_0x48b0a7['summary']&&(_0x552a2c['summary']=_0x552a2c[_0x3c3114(0x180)]+','+_0x48b0a7[_0x3c3114(0x180)]),_0x552a2c['description']!=_0x48b0a7[_0x3c3114(0x1a1)]&&(_0x552a2c[_0x3c3114(0x1a1)]=_0x552a2c['description']+','+_0x48b0a7[_0x3c3114(0x1a1)]),_0x552a2c[_0x3c3114(0x18a)]=_0x552a2c[_0x3c3114(0x18a)][_0x3c3114(0x14e)](_0x48b0a7['routes']),_0x489e28[_0x1bdccc]=_0x552a2c):_0x489e28[_0x1bdccc]=_0x48b0a7;}}}return _0x489e28;}exports['getRoutes']=getRoutes;function a8_0x569e(){const _0x2f6fb1=['ACTION_ROUTE_KEY','144592dIuQtl','noreq','flags.presence','iterator','search','Object','type','flags.label','module','allow','FILESTREAM','12aUNWbX','FIELDS','length','defineProperty','default','apply','__esModule','pprefix','file','query','1853019dUUGAH','parameterIndex','title','WEB_ROUTER_PARAM_KEY','route','getMethodParamTypes','../types/action','summary','filepath','requestMethod','max','/static/apitest','log','INJECT_CUSTOM_PARAM','min','@anncic-api/validator','intercept','routes','keys','RouteParamTypes','push','path','230agfijG','test','routerName','isArray','4456284CMJVfy','1514532PDhSst','metadata','indexOf','split','Boolean','只允许:[','flags.description','8391648xdlhSC','find','key','8FhTxnl','routerOptions','string','description','rules','String','(((.+)+)+)+$','Number','boolean','function','getClassMetadata','3650905mupDoF','propertyData','args','-array','limit','items','文件上传-','join','@midwayjs/core','prefix','body','PARAM','array','concat','required','ACTION_KEY','getClassExtendedMetadata','202954wmovAZ','flags.default','File','getRoutes','constructor','object','get','method','HEADERS','name','startsWith','filter','request','toString','replace','tagName','header'];a8_0x569e=function(){return _0x2f6fb1;};return a8_0x569e();}function getJoiRequest(_0x3cee49){const _0x3d30fa=a8_0xf5fe92,_0x3a8bf2=[];for(let _0x130416 in _0x3cee49){const _0x5434e2={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3cfc70=typeof _0x3cee49[_0x130416]['describe']==_0x3d30fa(0x1a7)?_0x3cee49[_0x130416]['describe']():_0x3cee49[_0x130416];_0x5434e2[_0x3d30fa(0x19d)]=_0x130416,_0x5434e2[_0x3d30fa(0x16a)]=_0x3cfc70[_0x3d30fa(0x16a)],_0x5434e2[_0x3d30fa(0x17b)]=(0x0,lodash_1[_0x3d30fa(0x158)])(_0x3cfc70,_0x3d30fa(0x16b),_0x130416),_0x5434e2[_0x3d30fa(0x173)]=(0x0,lodash_1[_0x3d30fa(0x158)])(_0x3cfc70,_0x3d30fa(0x153),''),_0x5434e2['required']=(0x0,lodash_1[_0x3d30fa(0x158)])(_0x3cfc70,_0x3d30fa(0x166),'')==_0x3d30fa(0x14f),_0x5434e2[_0x3d30fa(0x1a1)]=(0x0,lodash_1['get'])(_0x3cfc70,_0x3d30fa(0x19a),'');if(_0x3cfc70[_0x3d30fa(0x16a)]==_0x3d30fa(0x157))_0x5434e2['children']=getJoiRequest(_0x3cfc70[_0x3d30fa(0x18b)]);else _0x3cfc70[_0x3d30fa(0x16a)]==_0x3d30fa(0x14d)&&_0x3cfc70[_0x3d30fa(0x146)]&&Array[_0x3d30fa(0x192)](_0x3cfc70[_0x3d30fa(0x146)])&&_0x3cfc70[_0x3d30fa(0x146)][0x0]&&console[_0x3d30fa(0x185)](_0x130416+_0x3d30fa(0x1ac),_0x3cfc70);_0x3cfc70[_0x3d30fa(0x16d)]&&Array[_0x3d30fa(0x192)](_0x3cfc70['allow'])&&_0x3cfc70[_0x3d30fa(0x16d)][_0x3d30fa(0x171)]>0x0&&(_0x5434e2[_0x3d30fa(0x1a1)]=_0x3d30fa(0x199)+_0x3cfc70[_0x3d30fa(0x16d)][_0x3d30fa(0x148)](',')+'];'+_0x5434e2[_0x3d30fa(0x1a1)]);if(_0x5434e2['key']&&_0x5434e2[_0x3d30fa(0x16a)]){const _0x4c80ec={};for(const _0x32726f of _0x3cfc70[_0x3d30fa(0x1a2)]||[]){if(_0x32726f['name']===_0x3d30fa(0x187)&&_0x32726f[_0x3d30fa(0x1ab)])_0x4c80ec['min']=_0x32726f[_0x3d30fa(0x1ab)][_0x3d30fa(0x145)];else _0x32726f[_0x3d30fa(0x15b)]===_0x3d30fa(0x183)&&(_0x4c80ec['max']=_0x32726f['args'][_0x3d30fa(0x145)]);}_0x5434e2['rules']=_0x4c80ec;}_0x5434e2[_0x3d30fa(0x19d)]&&_0x5434e2['title']&&_0x3a8bf2[_0x3d30fa(0x18d)](_0x5434e2);}return _0x3a8bf2;}function convertSchemaType(_0x137a4a){const _0x8026c=a8_0xf5fe92;switch(_0x137a4a){case _0x8026c(0x169):return _0x8026c(0x157);case _0x8026c(0x198):return _0x8026c(0x1a6);case _0x8026c(0x1a5):return'number';case _0x8026c(0x1a3):return _0x8026c(0x1a0);case _0x8026c(0x154):return _0x8026c(0x177);default:return _0x8026c(0x1a0);}}function convertTypeToString(_0x698eea){const _0x3d0d02=a8_0xf5fe92;switch(_0x698eea){case core_1[_0x3d0d02(0x18c)][_0x3d0d02(0x15a)]:return _0x3d0d02(0x162);case core_1['RouteParamTypes']['QUERY']:return _0x3d0d02(0x178);case core_1[_0x3d0d02(0x18c)][_0x3d0d02(0x14c)]:return _0x3d0d02(0x18e);case core_1[_0x3d0d02(0x18c)]['BODY']:return _0x3d0d02(0x14b);case core_1[_0x3d0d02(0x18c)][_0x3d0d02(0x170)]:case core_1[_0x3d0d02(0x18c)]['FILESSTREAM']:case core_1[_0x3d0d02(0x18c)][_0x3d0d02(0x16e)]:return _0x3d0d02(0x177);default:return _0x3d0d02(0x162);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x480903=a9_0x437a;(function(_0x1c312d,_0x1c5629){var _0x2c59f1=a9_0x437a,_0x57169a=_0x1c312d();while(!![]){try{var _0xa4da6d=-parseInt(_0x2c59f1(0x159))/0x1*(-parseInt(_0x2c59f1(0x136))/0x2)+-parseInt(_0x2c59f1(0x11d))/0x3+-parseInt(_0x2c59f1(0x126))/0x4*(-parseInt(_0x2c59f1(0x139))/0x5)+-parseInt(_0x2c59f1(0x13c))/0x6*(parseInt(_0x2c59f1(0x153))/0x7)+parseInt(_0x2c59f1(0x12b))/0x8+parseInt(_0x2c59f1(0x141))/0x9+parseInt(_0x2c59f1(0x125))/0xa*(-parseInt(_0x2c59f1(0x148))/0xb);if(_0xa4da6d===_0x1c5629)break;else _0x57169a['push'](_0x57169a['shift']());}catch(_0x3df3cf){_0x57169a['push'](_0x57169a['shift']());}}}(a9_0x2e95,0x320f5));var a9_0x47b745=(function(){var _0x51eb5f=!![];return function(_0x22745d,_0x4fcd65){var _0x2943cf=_0x51eb5f?function(){var _0x5dee6d=a9_0x437a;if(_0x4fcd65){var _0x4f96ec=_0x4fcd65[_0x5dee6d(0x123)](_0x22745d,arguments);return _0x4fcd65=null,_0x4f96ec;}}:function(){};return _0x51eb5f=![],_0x2943cf;};}()),a9_0x26d9d0=a9_0x47b745(this,function(){var _0x549d37=a9_0x437a;return a9_0x26d9d0['toString']()[_0x549d37(0x147)](_0x549d37(0x131))[_0x549d37(0x14f)]()['constructor'](a9_0x26d9d0)['search'](_0x549d37(0x131));});a9_0x26d9d0();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x480903(0x149)]?function(_0x1545be,_0x5382e7,_0x5dad2e,_0x1fae48){var _0x5bfc48=a9_0x480903;if(_0x1fae48===undefined)_0x1fae48=_0x5dad2e;var _0x334c68=Object[_0x5bfc48(0x12c)](_0x5382e7,_0x5dad2e);(!_0x334c68||(_0x5bfc48(0x156)in _0x334c68?!_0x5382e7[_0x5bfc48(0x120)]:_0x334c68['writable']||_0x334c68[_0x5bfc48(0x15c)]))&&(_0x334c68={'enumerable':!![],'get':function(){return _0x5382e7[_0x5dad2e];}}),Object[_0x5bfc48(0x144)](_0x1545be,_0x1fae48,_0x334c68);}:function(_0x196121,_0x4c97a9,_0x45be71,_0x1dd48c){if(_0x1dd48c===undefined)_0x1dd48c=_0x45be71;_0x196121[_0x1dd48c]=_0x4c97a9[_0x45be71];}),__exportStar=this&&this['__exportStar']||function(_0x414673,_0x3c6fac){var _0x2f280c=a9_0x480903;for(var _0x168865 in _0x414673)if(_0x168865!==_0x2f280c(0x137)&&!Object[_0x2f280c(0x15a)]['hasOwnProperty']['call'](_0x3c6fac,_0x168865))__createBinding(_0x3c6fac,_0x414673,_0x168865);};Object['defineProperty'](exports,a9_0x480903(0x120),{'value':!![]}),exports[a9_0x480903(0x13a)]=exports[a9_0x480903(0x13e)]=exports[a9_0x480903(0x150)]=exports['Inject']=exports[a9_0x480903(0x12e)]=exports[a9_0x480903(0x12d)]=exports[a9_0x480903(0x129)]=exports[a9_0x480903(0x157)]=exports['Init']=exports['Headers']=exports[a9_0x480903(0x11e)]=exports['Param']=exports[a9_0x480903(0x124)]=exports['Fields']=exports['Files']=exports[a9_0x480903(0x158)]=exports[a9_0x480903(0x13b)]=exports[a9_0x480903(0x134)]=exports['ValidatorError']=exports['ExcelService']=exports[a9_0x480903(0x152)]=exports['EventService']=exports['CacheService']=exports[a9_0x480903(0x12a)]=exports[a9_0x480903(0x15d)]=exports[a9_0x480903(0x14a)]=exports[a9_0x480903(0x133)]=exports[a9_0x480903(0x13d)]=void 0x0;const getAppsConfig_1=require(a9_0x480903(0x122));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x13a),{'enumerable':!![],'get':function(){var _0x44ad55=a9_0x480903;return getAppsConfig_1[_0x44ad55(0x13a)];}}),__exportStar(require(a9_0x480903(0x155)),exports),__exportStar(require(a9_0x480903(0x11f)),exports);var ActionApi_1=require(a9_0x480903(0x128));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x13d),{'enumerable':!![],'get':function(){var _0xcb93ef=a9_0x480903;return ActionApi_1[_0xcb93ef(0x13d)];}});var Action_1=require(a9_0x480903(0x140));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x133),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x480903(0x14c));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x14a),{'enumerable':!![],'get':function(){var _0x39e964=a9_0x480903;return ActionApitest_1[_0x39e964(0x14a)];}});var getRoutes_1=require(a9_0x480903(0x12f));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x15d),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x480903(0x14e));function a9_0x2e95(){var _0x54bc01=['ApiError','2828376nQBvqC','getOwnPropertyDescriptor','Logger','Provide','./helper/getRoutes','ExcelService','(((.+)+)+)+$','./configuration','Action','ValidatorService','CustomConfiguration','662yUKmXB','default','./service/ApiService','15335fnCqIm','getAppsConfig','Configuration','6KyuOYM','Api','ScopeEnum','@midwayjs/core','./decorator/Action','2266380USzxKq','@anncic-api/cache','ValidatorError','defineProperty','Init','CacheService','search','1293776GLxbEE','create','Apitest','EventService','./decorator/ActionApitest','@anncic-api/validator','./exception/ApiError','toString','Scope','Param','ApiService','2623859fWqUPb','Inject','./types/common','get','App','File','439nFfLCY','prototype','./service/ExcelService','configurable','getRoutes','Headers','978423Lkomjg','Query','./service/ApitestService','__esModule','Files','./helper/getAppsConfig','apply','Body','10dxLpJb','356GUPrbL','Fields','./decorator/ActionApi','Config'];a9_0x2e95=function(){return _0x54bc01;};return a9_0x2e95();}Object[a9_0x480903(0x144)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x5ad2f1=a9_0x480903;return ApiError_1[_0x5ad2f1(0x12a)];}});var cache_1=require(a9_0x480903(0x142));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x146),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a9_0x480903(0x144)](exports,a9_0x480903(0x14b),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x480903(0x138));Object[a9_0x480903(0x144)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x2ca870=a9_0x480903;return ApiService_1[_0x2ca870(0x152)];}});var ExcelService_1=require(a9_0x480903(0x15b));function a9_0x437a(_0x19acef,_0x2edbf0){var _0x53b6ad=a9_0x2e95();return a9_0x437a=function(_0x26d9d0,_0x47b745){_0x26d9d0=_0x26d9d0-0x11c;var _0x2e95fa=_0x53b6ad[_0x26d9d0];return _0x2e95fa;},a9_0x437a(_0x19acef,_0x2edbf0);}Object[a9_0x480903(0x144)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0xb43efb=a9_0x480903;return ExcelService_1[_0xb43efb(0x130)];}});var validator_1=require(a9_0x480903(0x14d));Object[a9_0x480903(0x144)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x4ace83=a9_0x480903;return validator_1[_0x4ace83(0x143)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x134),{'enumerable':!![],'get':function(){var _0x44fa5e=a9_0x480903;return validator_1[_0x44fa5e(0x134)];}});var configuration_1=require(a9_0x480903(0x132));Object['defineProperty'](exports,a9_0x480903(0x13b),{'enumerable':!![],'get':function(){var _0x3afc3a=a9_0x480903;return configuration_1[_0x3afc3a(0x135)];}});var core_1=require(a9_0x480903(0x13f));Object[a9_0x480903(0x144)](exports,a9_0x480903(0x158),{'enumerable':!![],'get':function(){var _0x54ae7f=a9_0x480903;return core_1[_0x54ae7f(0x158)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x121),{'enumerable':!![],'get':function(){var _0x381314=a9_0x480903;return core_1[_0x381314(0x121)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x127),{'enumerable':!![],'get':function(){var _0x2743d7=a9_0x480903;return core_1[_0x2743d7(0x127)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x124),{'enumerable':!![],'get':function(){var _0x1b5c10=a9_0x480903;return core_1[_0x1b5c10(0x124)];}}),Object[a9_0x480903(0x144)](exports,'Param',{'enumerable':!![],'get':function(){var _0x5256b2=a9_0x480903;return core_1[_0x5256b2(0x151)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x11e),{'enumerable':!![],'get':function(){var _0x289d30=a9_0x480903;return core_1[_0x289d30(0x11e)];}}),Object['defineProperty'](exports,a9_0x480903(0x11c),{'enumerable':!![],'get':function(){var _0xcdb1c4=a9_0x480903;return core_1[_0xcdb1c4(0x11c)];}}),Object[a9_0x480903(0x144)](exports,'Init',{'enumerable':!![],'get':function(){var _0x1e7d83=a9_0x480903;return core_1[_0x1e7d83(0x145)];}});var core_2=require(a9_0x480903(0x13f));Object[a9_0x480903(0x144)](exports,'App',{'enumerable':!![],'get':function(){var _0x4c1379=a9_0x480903;return core_2[_0x4c1379(0x157)];}}),Object['defineProperty'](exports,a9_0x480903(0x129),{'enumerable':!![],'get':function(){var _0x41db67=a9_0x480903;return core_2[_0x41db67(0x129)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x12d),{'enumerable':!![],'get':function(){var _0x65624c=a9_0x480903;return core_2[_0x65624c(0x12d)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x12e),{'enumerable':!![],'get':function(){var _0x3f8509=a9_0x480903;return core_2[_0x3f8509(0x12e)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x154),{'enumerable':!![],'get':function(){var _0x58db4c=a9_0x480903;return core_2[_0x58db4c(0x154)];}}),Object[a9_0x480903(0x144)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x30917b=a9_0x480903;return core_2[_0x30917b(0x150)];}}),Object[a9_0x480903(0x144)](exports,a9_0x480903(0x13e),{'enumerable':!![],'get':function(){var _0x1cb711=a9_0x480903;return core_2[_0x1cb711(0x13e)];}}),global[a9_0x480903(0x13a)]=getAppsConfig_1[a9_0x480903(0x13a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x90d3bc=a10_0x22b2;(function(_0x1459c7,_0x23ec90){var _0x3999ed=a10_0x22b2,_0x56f547=_0x1459c7();while(!![]){try{var _0x357a66=parseInt(_0x3999ed(0x1ee))/0x1+parseInt(_0x3999ed(0x1c7))/0x2+-parseInt(_0x3999ed(0x1ef))/0x3+parseInt(_0x3999ed(0x1ec))/0x4+-parseInt(_0x3999ed(0x1be))/0x5+parseInt(_0x3999ed(0x1ea))/0x6*(parseInt(_0x3999ed(0x1d5))/0x7)+-parseInt(_0x3999ed(0x1cd))/0x8*(parseInt(_0x3999ed(0x1e7))/0x9);if(_0x357a66===_0x23ec90)break;else _0x56f547['push'](_0x56f547['shift']());}catch(_0x2d60d3){_0x56f547['push'](_0x56f547['shift']());}}}(a10_0x1033,0x6851e));var a10_0x569ecd=(function(){var _0x5611d0=!![];return function(_0x5e16f7,_0x3e0f93){var _0x211b59=_0x5611d0?function(){var _0x84eed1=a10_0x22b2;if(_0x3e0f93){var _0x338c1c=_0x3e0f93[_0x84eed1(0x1b6)](_0x5e16f7,arguments);return _0x3e0f93=null,_0x338c1c;}}:function(){};return _0x5611d0=![],_0x211b59;};}()),a10_0xe9c43=a10_0x569ecd(this,function(){var _0x119668=a10_0x22b2;return a10_0xe9c43[_0x119668(0x1b8)]()[_0x119668(0x1c9)]('(((.+)+)+)+$')['toString']()[_0x119668(0x1e4)](a10_0xe9c43)[_0x119668(0x1c9)]('(((.+)+)+)+$');});function a10_0x22b2(_0x3a9da4,_0x1dfb51){var _0xe26757=a10_0x1033();return a10_0x22b2=function(_0xe9c43,_0x569ecd){_0xe9c43=_0xe9c43-0x1b5;var _0x1033eb=_0xe26757[_0xe9c43];return _0x1033eb;},a10_0x22b2(_0x3a9da4,_0x1dfb51);}a10_0xe9c43();'use strict';var __decorate=this&&this['__decorate']||function(_0x5b06d2,_0x108e73,_0x14a769,_0x45601b){var _0x326474=a10_0x22b2,_0xfe9ba=arguments[_0x326474(0x1d8)],_0x1104c7=_0xfe9ba<0x3?_0x108e73:_0x45601b===null?_0x45601b=Object['getOwnPropertyDescriptor'](_0x108e73,_0x14a769):_0x45601b,_0x5b8ef2;if(typeof Reflect===_0x326474(0x1e2)&&typeof Reflect[_0x326474(0x1e3)]==='function')_0x1104c7=Reflect[_0x326474(0x1e3)](_0x5b06d2,_0x108e73,_0x14a769,_0x45601b);else{for(var _0x5675b0=_0x5b06d2[_0x326474(0x1d8)]-0x1;_0x5675b0>=0x0;_0x5675b0--)if(_0x5b8ef2=_0x5b06d2[_0x5675b0])_0x1104c7=(_0xfe9ba<0x3?_0x5b8ef2(_0x1104c7):_0xfe9ba>0x3?_0x5b8ef2(_0x108e73,_0x14a769,_0x1104c7):_0x5b8ef2(_0x108e73,_0x14a769))||_0x1104c7;}return _0xfe9ba>0x3&&_0x1104c7&&Object[_0x326474(0x1e9)](_0x108e73,_0x14a769,_0x1104c7),_0x1104c7;},__metadata=this&&this[a10_0x90d3bc(0x1b5)]||function(_0x44f824,_0x2c4eb3){var _0x425983=a10_0x90d3bc;if(typeof Reflect==='object'&&typeof Reflect[_0x425983(0x1d6)]==='function')return Reflect[_0x425983(0x1d6)](_0x44f824,_0x2c4eb3);};function a10_0x1033(){var _0x2f37be=['5818592njNLPa','HEADERS_LACK','password','../exception/ApiError','devices','token','map','config','21bFvQzG','metadata','anncicapi','length','@midwayjs/core','HEADERS_CHECKCODE','__esModule','HEADERS_SIGNATURE','requesttime','toLowerCase','MD5','缺少头信息:signature','TIMEOUT_LOGINTIME','object','decorate','constructor','fromEntries','ApiError','9nhyBfv','getcheck','defineProperty','1255560DjfFZk','HEADERS_DEVICE','2310080wrJTXW','logintime','564781HLbbqq','1632693LPkHjF','checkcode','TIMEOUT','ApiService','prototype','Scope','__metadata','apply','abs','toString','join','entries','design:type','secret','timeout','3679445Rfoypm','crypto-js','push','now','checksign','Config','logintimeout','device','请求超时,请重试或改善网络环境','1329314XSkYXt','sort','search','Singleton','signature','getsign'];a10_0x1033=function(){return _0x2f37be;};return a10_0x1033();}Object['defineProperty'](exports,a10_0x90d3bc(0x1db),{'value':!![]}),exports[a10_0x90d3bc(0x1f2)]=void 0x0;const crypto_js_1=require(a10_0x90d3bc(0x1bf)),core_1=require(a10_0x90d3bc(0x1d9)),ApiError_1=require(a10_0x90d3bc(0x1d0));let ApiService=class ApiService{[a10_0x90d3bc(0x1cf)](_0x7add21){var _0x391b79=a10_0x90d3bc,_0x530610;return _0x7add21?(0x0,crypto_js_1['MD5'])(_0x7add21+(0x0,crypto_js_1[_0x391b79(0x1df)])((0x0,crypto_js_1[_0x391b79(0x1df)])(_0x7add21)['toString']()+((_0x530610=this[_0x391b79(0x1d4)])===null||_0x530610===void 0x0?void 0x0:_0x530610['password']))[_0x391b79(0x1b8)]())[_0x391b79(0x1b8)]():'';}[a10_0x90d3bc(0x1e8)](_0x11008c,_0xc51351,_0x2204cb=Date[a10_0x90d3bc(0x1c1)]()){var _0x4ca777=a10_0x90d3bc;return{'Token':_0x11008c,'Logintime':_0x2204cb,'Checkcode':this[_0x4ca777(0x1f0)](_0x11008c,_0xc51351,_0x2204cb)};}['getsign'](_0xe340b8={}){var _0x235ce7=a10_0x90d3bc,_0x3f30cd;const _0x259dee=[],_0x2f90ac=Object[_0x235ce7(0x1e5)](Object[_0x235ce7(0x1ba)](_0xe340b8)[_0x235ce7(0x1d3)](_0x9c9239=>[_0x9c9239[0x0][_0x235ce7(0x1de)](),_0x9c9239[0x1]]));for(let _0x1af927 of[_0x235ce7(0x1c5),_0x235ce7(0x1dd),_0x235ce7(0x1d2),_0x235ce7(0x1ed),'checkcode']){if(typeof _0x2f90ac[_0x1af927]=='undefined')throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':'缺少头信息:'+_0x1af927});_0x259dee[_0x235ce7(0x1c0)](_0x1af927+'='+_0x2f90ac[_0x1af927]);}if(this[_0x235ce7(0x1d4)][_0x235ce7(0x1bd)]&&Date[_0x235ce7(0x1c1)]()-Math[_0x235ce7(0x1b7)](_0x2f90ac[_0x235ce7(0x1dd)])>this[_0x235ce7(0x1d4)][_0x235ce7(0x1bd)])throw new AnnError(ApiError_1[_0x235ce7(0x1e6)][_0x235ce7(0x1f1)],{'message':_0x235ce7(0x1c6),'requesttime':_0x2f90ac[_0x235ce7(0x1dd)],'timestamp':Date[_0x235ce7(0x1c1)]()});if((((_0x3f30cd=this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac[_0x235ce7(0x1c5)]])===null||_0x3f30cd===void 0x0?void 0x0:_0x3f30cd[_0x235ce7(0x1c4)])||0x0)>0x0&&Date[_0x235ce7(0x1c1)]()-Math['abs'](_0x2f90ac[_0x235ce7(0x1ed)])>this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac[_0x235ce7(0x1c5)]][_0x235ce7(0x1c4)])throw new AnnError(ApiError_1['ApiError'][_0x235ce7(0x1e1)]);if(!this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac[_0x235ce7(0x1c5)]]||!this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac['device']][_0x235ce7(0x1bc)]||!this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac['device']][_0x235ce7(0x1f0)])throw new AnnError(ApiError_1[_0x235ce7(0x1e6)][_0x235ce7(0x1eb)]);if(_0x2f90ac[_0x235ce7(0x1d2)]&&_0x2f90ac[_0x235ce7(0x1f0)]!=this[_0x235ce7(0x1f0)](_0x2f90ac[_0x235ce7(0x1d2)],_0x2f90ac[_0x235ce7(0x1c5)],_0x2f90ac[_0x235ce7(0x1ed)]))throw new AnnError(ApiError_1[_0x235ce7(0x1e6)][_0x235ce7(0x1da)]);return _0x259dee[_0x235ce7(0x1c0)]('secret='+this[_0x235ce7(0x1d4)][_0x235ce7(0x1d1)][_0x2f90ac[_0x235ce7(0x1c5)]][_0x235ce7(0x1bc)]),(0x0,crypto_js_1['MD5'])(_0x259dee[_0x235ce7(0x1c8)]()[_0x235ce7(0x1b9)](''))[_0x235ce7(0x1b8)]();}['checkcode'](_0x8646a3,_0x4ceb5f,_0x498f60=Date[a10_0x90d3bc(0x1c1)]()){var _0x21daad=a10_0x90d3bc,_0x3dd491,_0x2bcf0a,_0x43ae30;if(!((_0x3dd491=this[_0x21daad(0x1d4)])===null||_0x3dd491===void 0x0?void 0x0:_0x3dd491[_0x21daad(0x1d1)][_0x4ceb5f])||!((_0x43ae30=(_0x2bcf0a=this[_0x21daad(0x1d4)])===null||_0x2bcf0a===void 0x0?void 0x0:_0x2bcf0a['devices'][_0x4ceb5f])===null||_0x43ae30===void 0x0?void 0x0:_0x43ae30[_0x21daad(0x1f0)]))throw new AnnError(ApiError_1[_0x21daad(0x1e6)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x21daad(0x1df)])(_0x8646a3+(0x0,crypto_js_1[_0x21daad(0x1df)])(_0x498f60+this['config']['devices'][_0x4ceb5f][_0x21daad(0x1f0)])[_0x21daad(0x1b8)]())[_0x21daad(0x1b8)]();}[a10_0x90d3bc(0x1c2)](_0x40c7d1={}){var _0x38ac5c=a10_0x90d3bc;const _0x468a04=Object[_0x38ac5c(0x1e5)](Object[_0x38ac5c(0x1ba)](_0x40c7d1)[_0x38ac5c(0x1d3)](_0x3d7fdc=>[_0x3d7fdc[0x0][_0x38ac5c(0x1de)](),_0x3d7fdc[0x1]]));if(!(_0x468a04===null||_0x468a04===void 0x0?void 0x0:_0x468a04[_0x38ac5c(0x1cb)]))throw new AnnError(ApiError_1[_0x38ac5c(0x1e6)][_0x38ac5c(0x1ce)],{'message':_0x38ac5c(0x1e0)});if((_0x468a04===null||_0x468a04===void 0x0?void 0x0:_0x468a04[_0x38ac5c(0x1cb)])!=this[_0x38ac5c(0x1cc)](_0x468a04))throw new AnnError(ApiError_1['ApiError'][_0x38ac5c(0x1dc)]);return!![];}};__decorate([(0x0,core_1[a10_0x90d3bc(0x1c3)])(a10_0x90d3bc(0x1d7)),__metadata(a10_0x90d3bc(0x1bb),Object)],ApiService[a10_0x90d3bc(0x1f3)],a10_0x90d3bc(0x1d4),void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x90d3bc(0x1f4)])(core_1['ScopeEnum'][a10_0x90d3bc(0x1ca)])],ApiService),exports[a10_0x90d3bc(0x1f2)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x278ff4=a11_0x342a;(function(_0x3a5a6c,_0x44910f){const _0x143c1c=a11_0x342a,_0xe8cbe7=_0x3a5a6c();while(!![]){try{const _0x2e78bc=parseInt(_0x143c1c(0x85))/0x1*(parseInt(_0x143c1c(0xb1))/0x2)+-parseInt(_0x143c1c(0xaf))/0x3*(-parseInt(_0x143c1c(0x8b))/0x4)+-parseInt(_0x143c1c(0x91))/0x5*(-parseInt(_0x143c1c(0x94))/0x6)+-parseInt(_0x143c1c(0x83))/0x7*(parseInt(_0x143c1c(0xae))/0x8)+parseInt(_0x143c1c(0x82))/0x9*(parseInt(_0x143c1c(0x95))/0xa)+parseInt(_0x143c1c(0x77))/0xb*(parseInt(_0x143c1c(0x97))/0xc)+-parseInt(_0x143c1c(0xba))/0xd;if(_0x2e78bc===_0x44910f)break;else _0xe8cbe7['push'](_0xe8cbe7['shift']());}catch(_0x47b13a){_0xe8cbe7['push'](_0xe8cbe7['shift']());}}}(a11_0x543a,0x9da62));const a11_0x594266=(function(){let _0x3c08d8=!![];return function(_0x252f35,_0x2cfeba){const _0x5016b7=_0x3c08d8?function(){const _0x536904=a11_0x342a;if(_0x2cfeba){const _0x74205f=_0x2cfeba[_0x536904(0x8f)](_0x252f35,arguments);return _0x2cfeba=null,_0x74205f;}}:function(){};return _0x3c08d8=![],_0x5016b7;};}()),a11_0x484169=a11_0x594266(this,function(){const _0x8206e5=a11_0x342a;return a11_0x484169[_0x8206e5(0x81)]()['search'](_0x8206e5(0xa0))['toString']()[_0x8206e5(0xaa)](a11_0x484169)['search'](_0x8206e5(0xa0));});a11_0x484169();'use strict';var __decorate=this&&this[a11_0x278ff4(0xad)]||function(_0x31c85d,_0x56dfde,_0x1b5367,_0x46f735){const _0x1e6daf=a11_0x278ff4;var _0x5652ab=arguments[_0x1e6daf(0xb6)],_0xd5c13e=_0x5652ab<0x3?_0x56dfde:_0x46f735===null?_0x46f735=Object[_0x1e6daf(0x87)](_0x56dfde,_0x1b5367):_0x46f735,_0x205c0c;if(typeof Reflect===_0x1e6daf(0xa4)&&typeof Reflect[_0x1e6daf(0xa3)]==='function')_0xd5c13e=Reflect[_0x1e6daf(0xa3)](_0x31c85d,_0x56dfde,_0x1b5367,_0x46f735);else{for(var _0x26f86e=_0x31c85d[_0x1e6daf(0xb6)]-0x1;_0x26f86e>=0x0;_0x26f86e--)if(_0x205c0c=_0x31c85d[_0x26f86e])_0xd5c13e=(_0x5652ab<0x3?_0x205c0c(_0xd5c13e):_0x5652ab>0x3?_0x205c0c(_0x56dfde,_0x1b5367,_0xd5c13e):_0x205c0c(_0x56dfde,_0x1b5367))||_0xd5c13e;}return _0x5652ab>0x3&&_0xd5c13e&&Object[_0x1e6daf(0x9d)](_0x56dfde,_0x1b5367,_0xd5c13e),_0xd5c13e;},__metadata=this&&this['__metadata']||function(_0x5978c5,_0x480849){const _0x421f1b=a11_0x278ff4;if(typeof Reflect===_0x421f1b(0xa4)&&typeof Reflect[_0x421f1b(0xa8)]===_0x421f1b(0x7f))return Reflect[_0x421f1b(0xa8)](_0x5978c5,_0x480849);},__param=this&&this['__param']||function(_0x2f9631,_0x5b262d){return function(_0x1aede6,_0x4ed92f){_0x5b262d(_0x1aede6,_0x4ed92f,_0x2f9631);};};function a11_0x342a(_0x2a7cdd,_0x1d894d){const _0x1b65a6=a11_0x543a();return a11_0x342a=function(_0x484169,_0x594266){_0x484169=_0x484169-0x77;let _0x543ac3=_0x1b65a6[_0x484169];return _0x543ac3;},a11_0x342a(_0x2a7cdd,_0x1d894d);}function a11_0x543a(){const _0x505ed7=['stringify','@midwayjs/core','Inject','cache-control','length','.js','set','../../public/','37128455cIFVoo','ctx','__devices__','MidwayEnvironmentService','apitest','.css','design:returntype','../../public/index.html','design:type','apiteststatic','Param','/apiteststatic/*','config','description','88SuvfrI','design:paramtypes','anncicapi','ScopeEnum','isDevelopmentEnvironment','extname','ApitestStaticController','devices','function','application/javascript;\x20charset=utf-8','toString','9459jlyWTi','21VyfuDe','/apitest','312721AYpehp','apitesthtml','getOwnPropertyDescriptor','Request','join','prototype','4690672Sfkzck','content-type','url','Get','apply','__esModule','265WvRPHl','request','prefix','56568SLZZrw','9510FoUjKB','__apiList__','1518996OZVDcS','getRoutes','existsSync','push','text/css;\x20charset=utf-8','method','defineProperty','replace','apidoc','(((.+)+)+)+$','apitestmodule','utf-8','decorate','object','Config','Environment','Singleton','metadata','ApitestService','constructor','public,\x20max-age=604800','routes','__decorate','2155184WJsUGy','3jXXKTY','readFileSync','4HTSqho'];a11_0x543a=function(){return _0x505ed7;};return a11_0x543a();}Object['defineProperty'](exports,a11_0x278ff4(0x90),{'value':!![]}),exports[a11_0x278ff4(0x7d)]=exports[a11_0x278ff4(0xa9)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a11_0x278ff4(0xb3)),core_2=require(a11_0x278ff4(0xb3)),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a11_0x278ff4(0x9f)](_0x863f84){const _0x2b6252=a11_0x278ff4,_0x3c395c=(0x0,getRoutes_1[_0x2b6252(0x98)])(_0x863f84),_0x2b257a=[];for(let _0x2c27dd in _0x3c395c){for(let _0x5240df in _0x3c395c[_0x2c27dd][_0x2b6252(0xac)]){let _0x588e16=_0x3c395c[_0x2c27dd][_0x2b6252(0xac)][_0x5240df],_0x22e02b=[];for(let _0x1e0083 in _0x588e16[_0x2b6252(0x92)]){_0x22e02b[_0x2b6252(0x9a)](_0x588e16['request'][_0x1e0083]);}_0x2b257a[_0x2b6252(0x9a)]({'title':_0x3c395c[_0x2c27dd]['summary']+':'+_0x588e16['summary'],'prefix':_0x3c395c[_0x2c27dd][_0x2b6252(0x93)],'router':_0x588e16['route'],'method':_0x588e16[_0x2b6252(0x9c)],'describe':_0x588e16[_0x2b6252(0xc7)]||'','filepath':_0x3c395c[_0x2c27dd]['filepath']||'','request':_0x22e02b});}}const _0x2af0a5=(0x0,path_1[_0x2b6252(0x89)])(__dirname,_0x2b6252(0xc1));return(0x0,fs_1[_0x2b6252(0xb0)])(_0x2af0a5,{'encoding':_0x2b6252(0xa2)})[_0x2b6252(0x9e)](/__res__/g,'/apiteststatic/')[_0x2b6252(0x9e)](_0x2b6252(0x96),JSON[_0x2b6252(0xb2)](_0x2b257a))[_0x2b6252(0x9e)](_0x2b6252(0xbc),JSON[_0x2b6252(0xb2)](this['config'][_0x2b6252(0x7e)]));}};__decorate([(0x0,core_3[a11_0x278ff4(0xa5)])(a11_0x278ff4(0x79)),__metadata('design:type',Object)],ApitestService[a11_0x278ff4(0x8a)],a11_0x278ff4(0xc6),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x278ff4(0xbe)),(0x0,core_3['Scope'])(core_3[a11_0x278ff4(0x7a)][a11_0x278ff4(0xa7)])],ApitestService),exports[a11_0x278ff4(0xa9)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x278ff4(0x86)](){const _0x42cc4a=a11_0x278ff4;if(this[_0x42cc4a(0xbe)]){const _0x377112={'module':![]};return this[_0x42cc4a(0xa6)][_0x42cc4a(0x7b)]()&&(_0x377112['filepath']=!![]),await this['ApitestService'][_0x42cc4a(0x9f)](_0x377112);}return'';}async[a11_0x278ff4(0xa1)](_0x2a2c8e){const _0x51fe61=a11_0x278ff4;if(this[_0x51fe61(0xbe)]){const _0x1f0a9d={'module':_0x2a2c8e};return this[_0x51fe61(0xa6)][_0x51fe61(0x7b)]()&&(_0x1f0a9d['filepath']=!![]),await this[_0x51fe61(0xa9)]['apidoc'](_0x1f0a9d);}return'';}async[a11_0x278ff4(0xc3)](){const _0x28a3ad=a11_0x278ff4;if((0x0,path_1[_0x28a3ad(0x7c)])(this[_0x28a3ad(0xbb)][_0x28a3ad(0x92)]['url'])){var _0x468ccf=(0x0,path_1[_0x28a3ad(0x89)])(__dirname,_0x28a3ad(0xb9)+this[_0x28a3ad(0xbb)][_0x28a3ad(0x92)][_0x28a3ad(0x8d)][_0x28a3ad(0x9e)]('/apiteststatic/','/'));if(_0x468ccf['substring'](_0x468ccf[_0x28a3ad(0xb6)]-0xb)!='/index.html'){this['ctx'][_0x28a3ad(0xb8)](_0x28a3ad(0xb5),_0x28a3ad(0xab));if((0x0,path_1['extname'])(this['ctx'][_0x28a3ad(0x92)][_0x28a3ad(0x8d)])==_0x28a3ad(0xb7))this[_0x28a3ad(0xbb)][_0x28a3ad(0xb8)](_0x28a3ad(0x8c),_0x28a3ad(0x80));else(0x0,path_1[_0x28a3ad(0x7c)])(this[_0x28a3ad(0xbb)][_0x28a3ad(0x92)][_0x28a3ad(0x8d)])==_0x28a3ad(0xbf)&&this[_0x28a3ad(0xbb)]['set']('content-type',_0x28a3ad(0x9b));return(0x0,fs_1[_0x28a3ad(0x99)])(_0x468ccf)&&(0x0,fs_1[_0x28a3ad(0xb0)])(_0x468ccf,{'encoding':_0x28a3ad(0xa2)});}}return'';}};__decorate([(0x0,core_3[a11_0x278ff4(0xb4)])(),__metadata(a11_0x278ff4(0xc2),Object)],ApitestStaticController['prototype'],a11_0x278ff4(0xbb),void 0x0),__decorate([(0x0,core_3[a11_0x278ff4(0xb4)])(),__metadata(a11_0x278ff4(0xc2),core_1[a11_0x278ff4(0xbd)])],ApitestStaticController[a11_0x278ff4(0x8a)],a11_0x278ff4(0xa6),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x278ff4(0xc2),ApitestService)],ApitestStaticController[a11_0x278ff4(0x8a)],a11_0x278ff4(0xa9),void 0x0),__decorate([(0x0,core_3[a11_0x278ff4(0xa5)])('apitest'),__metadata(a11_0x278ff4(0xc2),Boolean)],ApitestStaticController[a11_0x278ff4(0x8a)],a11_0x278ff4(0xbe),void 0x0),__decorate([(0x0,core_3[a11_0x278ff4(0xa5)])(a11_0x278ff4(0x79)),__metadata(a11_0x278ff4(0xc2),Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2[a11_0x278ff4(0x8e)])(a11_0x278ff4(0x84)),__metadata('design:type',Function),__metadata(a11_0x278ff4(0x78),[]),__metadata(a11_0x278ff4(0xc0),Promise)],ApitestStaticController['prototype'],a11_0x278ff4(0x86),null),__decorate([(0x0,core_2[a11_0x278ff4(0x8e)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x278ff4(0xc4)])('module')),__metadata(a11_0x278ff4(0xc2),Function),__metadata(a11_0x278ff4(0x78),[String]),__metadata(a11_0x278ff4(0xc0),Promise)],ApitestStaticController[a11_0x278ff4(0x8a)],a11_0x278ff4(0xa1),null),__decorate([(0x0,core_2[a11_0x278ff4(0x8e)])(a11_0x278ff4(0xc5)),__metadata(a11_0x278ff4(0xc2),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x278ff4(0xc0),Promise)],ApitestStaticController[a11_0x278ff4(0x8a)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3['Scope'])(core_3[a11_0x278ff4(0x7a)][a11_0x278ff4(0x88)])],ApitestStaticController),exports[a11_0x278ff4(0x7d)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x51871f=a12_0x5eae;function a12_0x5eae(_0x42cfce,_0x30988d){const _0x4c439c=a12_0xa72c();return a12_0x5eae=function(_0x17d55e,_0x176707){_0x17d55e=_0x17d55e-0xcd;let _0xa72c13=_0x4c439c[_0x17d55e];return _0xa72c13;},a12_0x5eae(_0x42cfce,_0x30988d);}function a12_0xa72c(){const _0x21a2b4=['key','parse','frozen','constructor','516926TYPHnb','app','metadata','xlsx','export','6877472gTujrh','2409925nQkUwg','prototype','Singleton','eachCell','object','11140350SGniAC','decorate','endsWith','\x20is\x20read\x20fail','readFile','3OlHdBA','.xlsx','replace','2712472bOXzHZ','Api\x20Excel\x20Error:\x20','header','function','rowCount','ExcelService','apply','keys','Sheet\x201','53090400wJxQSy','4989068sbHVOg','toString','model','@midwayjs/core','handler','search','/public/xlsx','(((.+)+)+)+$','push','Workbook','existsSync','writeFile','download','random','startsWith','mkdirSync','koa-send','getCell','findRows','__esModule','get','defineProperty','getAppDir','length','substring','getWorksheet','addRow','Provide','__decorate'];a12_0xa72c=function(){return _0x21a2b4;};return a12_0xa72c();}(function(_0xd34225,_0x10a716){const _0xe627cc=a12_0x5eae,_0x60b068=_0xd34225();while(!![]){try{const _0x269fd9=-parseInt(_0xe627cc(0xe8))/0x1+-parseInt(_0xe627cc(0xfb))/0x2*(parseInt(_0xe627cc(0xf8))/0x3)+-parseInt(_0xe627cc(0xed))/0x4+parseInt(_0xe627cc(0xee))/0x5+-parseInt(_0xe627cc(0xf3))/0x6+-parseInt(_0xe627cc(0x105))/0x7+parseInt(_0xe627cc(0x104))/0x8;if(_0x269fd9===_0x10a716)break;else _0x60b068['push'](_0x60b068['shift']());}catch(_0x2835fc){_0x60b068['push'](_0x60b068['shift']());}}}(a12_0xa72c,0xe9792));const a12_0x176707=(function(){let _0x3937d9=!![];return function(_0x23a095,_0x15c7f6){const _0x28b66b=_0x3937d9?function(){const _0x2b3bda=a12_0x5eae;if(_0x15c7f6){const _0x142bb5=_0x15c7f6[_0x2b3bda(0x101)](_0x23a095,arguments);return _0x15c7f6=null,_0x142bb5;}}:function(){};return _0x3937d9=![],_0x28b66b;};}()),a12_0x17d55e=a12_0x176707(this,function(){const _0xea66b1=a12_0x5eae;return a12_0x17d55e[_0xea66b1(0x106)]()['search'](_0xea66b1(0xce))['toString']()[_0xea66b1(0xe7)](a12_0x17d55e)[_0xea66b1(0x10a)]('(((.+)+)+)+$');});a12_0x17d55e();'use strict';var __decorate=this&&this[a12_0x51871f(0xe3)]||function(_0x18ba91,_0x59ec57,_0x529cbc,_0x275885){const _0x1b1f8c=a12_0x51871f;var _0x4f81c4=arguments['length'],_0x2c50c8=_0x4f81c4<0x3?_0x59ec57:_0x275885===null?_0x275885=Object['getOwnPropertyDescriptor'](_0x59ec57,_0x529cbc):_0x275885,_0x564c86;if(typeof Reflect===_0x1b1f8c(0xf2)&&typeof Reflect[_0x1b1f8c(0xf4)]==='function')_0x2c50c8=Reflect[_0x1b1f8c(0xf4)](_0x18ba91,_0x59ec57,_0x529cbc,_0x275885);else{for(var _0x498358=_0x18ba91[_0x1b1f8c(0xde)]-0x1;_0x498358>=0x0;_0x498358--)if(_0x564c86=_0x18ba91[_0x498358])_0x2c50c8=(_0x4f81c4<0x3?_0x564c86(_0x2c50c8):_0x4f81c4>0x3?_0x564c86(_0x59ec57,_0x529cbc,_0x2c50c8):_0x564c86(_0x59ec57,_0x529cbc))||_0x2c50c8;}return _0x4f81c4>0x3&&_0x2c50c8&&Object['defineProperty'](_0x59ec57,_0x529cbc,_0x2c50c8),_0x2c50c8;},__metadata=this&&this['__metadata']||function(_0x4088eb,_0x148713){const _0x258963=a12_0x51871f;if(typeof Reflect==='object'&&typeof Reflect[_0x258963(0xea)]===_0x258963(0xfe))return Reflect[_0x258963(0xea)](_0x4088eb,_0x148713);};Object[a12_0x51871f(0xdc)](exports,a12_0x51871f(0xda),{'value':!![]}),exports[a12_0x51871f(0x100)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x51871f(0xd7)),core_1=require(a12_0x51871f(0x108));let ExcelService=class ExcelService{async[a12_0x51871f(0xe5)](_0x215aed,_0x1be70d,_0x6c3a0e=[0x0]){const _0x3086ef=a12_0x51871f;var _0x5500e8,_0x2fad08;const _0x29cd5d=new exceljs['Workbook'](),_0x60043e=[];let _0x1bd85c=_0x215aed['replace'](/(\\|\/)/g,'/')[_0x3086ef(0xfa)](/\/{2,}/g,'/');!(_0x1bd85c===null||_0x1bd85c===void 0x0?void 0x0:_0x1bd85c[_0x3086ef(0xd5)]('/'))&&(_0x1bd85c=this['app']['getAppDir']()+'/'+_0x1bd85c);try{await _0x29cd5d[_0x3086ef(0xeb)][_0x3086ef(0xf7)](_0x1bd85c);}catch(_0x305bcf){return console['log'](_0x3086ef(0xfc)+_0x1bd85c+_0x3086ef(0xf6)),_0x60043e;}for(const _0x585a36 of _0x6c3a0e){const _0x4b884a=lodash['isNumber'](_0x585a36)?((_0x5500e8=_0x29cd5d['worksheets'])===null||_0x5500e8===void 0x0?void 0x0:_0x5500e8[_0x585a36])||undefined:_0x29cd5d[_0x3086ef(0xe0)](_0x585a36);if(_0x4b884a){var _0x2ee55c=0x1;const _0x4737de=_0x4b884a['getRow'](0x1),_0x59d70c=await new Promise(_0x25c894=>{const _0x3d1ce2=_0x3086ef,_0x97916e={};_0x4737de[_0x3d1ce2(0xf1)]((_0x41f1e5,_0x44d2c0)=>{const _0xa2f5df=_0x3d1ce2;for(const _0xfe6f56 of _0x1be70d){if(_0x41f1e5['value']==_0xfe6f56[_0xa2f5df(0xfd)])_0x2ee55c=0x2,_0x97916e[_0xfe6f56[_0xa2f5df(0xe4)]]={'header':_0x41f1e5['col'],'handler':_0xfe6f56['handler']};else{if(!_0x97916e[_0xfe6f56['key']])try{const _0x23da4f=_0x4737de[_0xa2f5df(0xd8)](_0xfe6f56[_0xa2f5df(0xfd)]);_0x23da4f&&(_0x97916e[_0xfe6f56['key']]={'header':_0x23da4f['col'],'handler':_0xfe6f56[_0xa2f5df(0x109)]});}catch{}}}_0x4737de['cellCount']==_0x44d2c0&&_0x25c894(_0x97916e);});});for(const _0x364231 of _0x4b884a[_0x3086ef(0xd9)](_0x2ee55c,_0x4b884a[_0x3086ef(0xff)])){const _0x5dfb42={};for(const _0xb938e8 in _0x59d70c){if(_0x59d70c[_0xb938e8][_0x3086ef(0xfd)]){const _0x4792e0=_0x364231[_0x3086ef(0xd8)](_0x59d70c[_0xb938e8][_0x3086ef(0xfd)]);typeof((_0x2fad08=_0x59d70c[_0xb938e8])===null||_0x2fad08===void 0x0?void 0x0:_0x2fad08[_0x3086ef(0x109)])=='function'?_0x5dfb42[_0xb938e8]=await _0x59d70c[_0xb938e8][_0x3086ef(0x109)]((_0x4792e0===null||_0x4792e0===void 0x0?void 0x0:_0x4792e0[_0x3086ef(0x106)]())||'',_0x4792e0[_0x3086ef(0x107)]):_0x5dfb42[_0xb938e8]=(_0x4792e0===null||_0x4792e0===void 0x0?void 0x0:_0x4792e0['toString']())||'';}}Object[_0x3086ef(0x102)](_0x5dfb42)['length']>0x0&&_0x60043e[_0x3086ef(0xcf)](_0x5dfb42);}}}return _0x60043e;}async[a12_0x51871f(0xec)](_0x3d899e,_0x213141,_0x42a5b4,_0x33b61c='public/xlsx'){const _0x5c395a=a12_0x51871f;var _0x17dccd,_0x586afe;const _0x1d300b=new exceljs[(_0x5c395a(0xd0))](),_0x1426f3={},_0x207485=[],_0x438c51=_0x1d300b['addWorksheet'](_0x5c395a(0x103),{'views':[{'state':_0x5c395a(0xe6),'xSplit':0x1}]});for(const _0x5be58f in _0x213141){_0x1426f3[_0x213141[_0x5be58f][_0x5c395a(0xe4)]]=_0x213141[_0x5be58f][_0x5c395a(0xfd)],_0x207485[_0x5c395a(0xcf)]({'header':_0x213141[_0x5be58f]['header'],'key':(_0x17dccd=_0x213141[_0x5be58f])===null||_0x17dccd===void 0x0?void 0x0:_0x17dccd[_0x5c395a(0xe4)][_0x5c395a(0xfa)](/\./g,'_')});}_0x438c51['columns']=_0x207485;for(const _0x4eae10 of _0x42a5b4){const _0x33bf43={};for(const _0x430379 in _0x213141){typeof((_0x586afe=_0x213141[_0x430379])===null||_0x586afe===void 0x0?void 0x0:_0x586afe[_0x5c395a(0x109)])==_0x5c395a(0xfe)?_0x33bf43[_0x213141[_0x430379]['key'][_0x5c395a(0xfa)](/\./g,'_')]=await _0x213141[_0x430379][_0x5c395a(0x109)](_0x4eae10):_0x33bf43[_0x213141[_0x430379][_0x5c395a(0xe4)][_0x5c395a(0xfa)](/\./g,'_')]=lodash[_0x5c395a(0xdb)](_0x4eae10,_0x213141[_0x430379][_0x5c395a(0xe4)],'');}_0x438c51[_0x5c395a(0xe1)](_0x33bf43);}let _0x458f10='';const _0x244046=_0x3d899e+'-'+lodash[_0x5c395a(0xd4)](0x2710,0x1869f)+_0x5c395a(0xf9);if(_0x33b61c&&_0x33b61c['startsWith']('/'))_0x458f10=''+_0x33b61c;else _0x33b61c&&!_0x33b61c[_0x5c395a(0xd5)]('/')&&!_0x33b61c[_0x5c395a(0xd5)]('\x5c')?_0x458f10=this[_0x5c395a(0xe9)][_0x5c395a(0xdd)]()+'/'+_0x33b61c:_0x458f10=this[_0x5c395a(0xe9)][_0x5c395a(0xdd)]()+_0x5c395a(0xcd);return(_0x458f10[_0x5c395a(0xf5)]('/')||_0x458f10[_0x5c395a(0xf5)]('\x5c'))&&(_0x458f10=_0x458f10[_0x5c395a(0xdf)](0x0,_0x458f10[_0x5c395a(0xde)]-0x1)),_0x458f10=_0x458f10[_0x5c395a(0xfa)](/(\\|\/)/g,'/')[_0x5c395a(0xfa)](/\/{2,}/g,'/'),!fs[_0x5c395a(0xd1)](_0x458f10)&&fs[_0x5c395a(0xd6)](_0x458f10,{'recursive':!![]}),await _0x1d300b[_0x5c395a(0xeb)][_0x5c395a(0xd2)]((_0x458f10+'/'+_0x244046)[_0x5c395a(0xfa)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x244046,'filepath':(_0x458f10[_0x5c395a(0xdf)]((''+this['app'][_0x5c395a(0xdd)]())[_0x5c395a(0xde)])+'/'+_0x244046)['replace'](/(\\|\/)/g,'/')[_0x5c395a(0xfa)](/\/{2,}/g,'/')};}async[a12_0x51871f(0xd3)](_0x253a79,_0x9a3cdd){return await koasend(_0x253a79,''+_0x9a3cdd);}};__decorate([(0x0,core_1['App'])(),__metadata('design:type',Object)],ExcelService[a12_0x51871f(0xef)],a12_0x51871f(0xe9),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x51871f(0xe2)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a12_0x51871f(0xf0)])],ExcelService),exports[a12_0x51871f(0x100)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x4c225c=a13_0x324f;(function(_0x56e93b,_0x56a164){var _0x4a4830=a13_0x324f,_0x1f8ebe=_0x56e93b();while(!![]){try{var _0xee050e=-parseInt(_0x4a4830(0x75))/0x1*(parseInt(_0x4a4830(0x8a))/0x2)+-parseInt(_0x4a4830(0x78))/0x3+-parseInt(_0x4a4830(0x7a))/0x4*(-parseInt(_0x4a4830(0x77))/0x5)+-parseInt(_0x4a4830(0x73))/0x6*(parseInt(_0x4a4830(0x7f))/0x7)+-parseInt(_0x4a4830(0x84))/0x8*(-parseInt(_0x4a4830(0x89))/0x9)+parseInt(_0x4a4830(0x83))/0xa+parseInt(_0x4a4830(0x79))/0xb*(-parseInt(_0x4a4830(0x7c))/0xc);if(_0xee050e===_0x56a164)break;else _0x1f8ebe['push'](_0x1f8ebe['shift']());}catch(_0x2c019f){_0x1f8ebe['push'](_0x1f8ebe['shift']());}}}(a13_0x1c48,0xd3ebd));function a13_0x1c48(){var _0x289c50=['toString','apply','6qcTMur','anncic-api:action:route','4647JABtzy','search','16535sEFDeG','2355861PmMuQJ','3641VHUfaU','1064gTFSLv','defineProperty','21828ekSFYa','anncic-api:apps:config','ACTION_ROUTE_KEY','5221279jtzfyD','__esModule','APPSCONFIG_KEY','constructor','15150540ODnNrr','9350984sEKoWf','(((.+)+)+)+$','ACTION_KEY','AppsConfigTmp','anncic-api:action','9ECebXK','242gNfjfd'];a13_0x1c48=function(){return _0x289c50;};return a13_0x1c48();}var a13_0x119ad6=(function(){var _0x55d033=!![];return function(_0x44b7ed,_0x3070b7){var _0x3c3a6b=_0x55d033?function(){var _0x22aae9=a13_0x324f;if(_0x3070b7){var _0x1dbede=_0x3070b7[_0x22aae9(0x72)](_0x44b7ed,arguments);return _0x3070b7=null,_0x1dbede;}}:function(){};return _0x55d033=![],_0x3c3a6b;};}()),a13_0xdf5aba=a13_0x119ad6(this,function(){var _0x3a5513=a13_0x324f;return a13_0xdf5aba[_0x3a5513(0x71)]()['search'](_0x3a5513(0x85))['toString']()[_0x3a5513(0x82)](a13_0xdf5aba)[_0x3a5513(0x76)](_0x3a5513(0x85));});a13_0xdf5aba();function a13_0x324f(_0x2a9b78,_0x1ead4b){var _0x4cf8f1=a13_0x1c48();return a13_0x324f=function(_0xdf5aba,_0x119ad6){_0xdf5aba=_0xdf5aba-0x71;var _0x1c487c=_0x4cf8f1[_0xdf5aba];return _0x1c487c;},a13_0x324f(_0x2a9b78,_0x1ead4b);}'use strict';Object[a13_0x4c225c(0x7b)](exports,a13_0x4c225c(0x80),{'value':!![]}),exports[a13_0x4c225c(0x87)]=exports[a13_0x4c225c(0x81)]=exports[a13_0x4c225c(0x7e)]=exports[a13_0x4c225c(0x86)]=void 0x0,exports[a13_0x4c225c(0x86)]=a13_0x4c225c(0x88),exports[a13_0x4c225c(0x7e)]=a13_0x4c225c(0x74),exports[a13_0x4c225c(0x81)]=a13_0x4c225c(0x7d);class AppsConfigTmp{}exports[a13_0x4c225c(0x87)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x37933a=a14_0x48a8;(function(_0x1ab042,_0x221541){var _0x178f25=a14_0x48a8,_0x20a190=_0x1ab042();while(!![]){try{var _0x2f8904=-parseInt(_0x178f25(0x163))/0x1+-parseInt(_0x178f25(0x151))/0x2+parseInt(_0x178f25(0x162))/0x3*(parseInt(_0x178f25(0x173))/0x4)+-parseInt(_0x178f25(0x176))/0x5+-parseInt(_0x178f25(0x166))/0x6+-parseInt(_0x178f25(0x159))/0x7*(-parseInt(_0x178f25(0x158))/0x8)+-parseInt(_0x178f25(0x157))/0x9*(-parseInt(_0x178f25(0x16b))/0xa);if(_0x2f8904===_0x221541)break;else _0x20a190['push'](_0x20a190['shift']());}catch(_0x3a2a23){_0x20a190['push'](_0x20a190['shift']());}}}(a14_0x4473,0xbc886));var a14_0x57d333=(function(){var _0x3165d1=!![];return function(_0x467d55,_0xb0eab7){var _0x43dd95=_0x3165d1?function(){if(_0xb0eab7){var _0x30d966=_0xb0eab7['apply'](_0x467d55,arguments);return _0xb0eab7=null,_0x30d966;}}:function(){};return _0x3165d1=![],_0x43dd95;};}()),a14_0x79b7d=a14_0x57d333(this,function(){var _0x3b31aa=a14_0x48a8;return a14_0x79b7d[_0x3b31aa(0x170)]()[_0x3b31aa(0x14d)](_0x3b31aa(0x167))[_0x3b31aa(0x170)]()['constructor'](a14_0x79b7d)[_0x3b31aa(0x14d)]('(((.+)+)+)+$');});a14_0x79b7d();'use strict';var __decorate=this&&this[a14_0x37933a(0x171)]||function(_0x5ceeb7,_0x563161,_0x4428ca,_0x33d9fe){var _0x535231=a14_0x37933a,_0xbfaf25=arguments[_0x535231(0x150)],_0x6be15c=_0xbfaf25<0x3?_0x563161:_0x33d9fe===null?_0x33d9fe=Object[_0x535231(0x15a)](_0x563161,_0x4428ca):_0x33d9fe,_0x1617a1;if(typeof Reflect===_0x535231(0x154)&&typeof Reflect[_0x535231(0x174)]===_0x535231(0x16c))_0x6be15c=Reflect['decorate'](_0x5ceeb7,_0x563161,_0x4428ca,_0x33d9fe);else{for(var _0x174ddd=_0x5ceeb7[_0x535231(0x150)]-0x1;_0x174ddd>=0x0;_0x174ddd--)if(_0x1617a1=_0x5ceeb7[_0x174ddd])_0x6be15c=(_0xbfaf25<0x3?_0x1617a1(_0x6be15c):_0xbfaf25>0x3?_0x1617a1(_0x563161,_0x4428ca,_0x6be15c):_0x1617a1(_0x563161,_0x4428ca))||_0x6be15c;}return _0xbfaf25>0x3&&_0x6be15c&&Object[_0x535231(0x153)](_0x563161,_0x4428ca,_0x6be15c),_0x6be15c;},__metadata=this&&this[a14_0x37933a(0x168)]||function(_0x4a3e2c,_0x56514e){var _0xbcfdc8=a14_0x37933a;if(typeof Reflect===_0xbcfdc8(0x154)&&typeof Reflect[_0xbcfdc8(0x16d)]===_0xbcfdc8(0x16c))return Reflect[_0xbcfdc8(0x16d)](_0x4a3e2c,_0x56514e);};Object['defineProperty'](exports,a14_0x37933a(0x172),{'value':!![]}),exports[a14_0x37933a(0x156)]=void 0x0;function a14_0x4473(){var _0x51e09b=['design:type','_isreverse','length','1604652qWvXcl','排序方式','defineProperty','object','@anncic-api/validator','PageDTO','18yORuNN','1663776FYzcJk','14OmnntD','getOwnPropertyDescriptor','_size','valid','min','_order','是否倒序','number','RuleType','3cZDfqf','252795WQWpUo','1:是;0:否','分页数量','285660HPLImR','(((.+)+)+)+$','__metadata','Rule','第一页为1,第二页为2','8670110zqnCpb','function','metadata','integer','string','toString','__decorate','__esModule','2228392uqGTlk','decorate','prototype','4160515RfgTIC','search'];a14_0x4473=function(){return _0x51e09b;};return a14_0x4473();}const validator_1=require(a14_0x37933a(0x155));function a14_0x48a8(_0x317263,_0x2a7df5){var _0x403115=a14_0x4473();return a14_0x48a8=function(_0x79b7d,_0x57d333){_0x79b7d=_0x79b7d-0x14d;var _0x4473fb=_0x403115[_0x79b7d];return _0x4473fb;},a14_0x48a8(_0x317263,_0x2a7df5);}class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1['RuleType'][a14_0x37933a(0x160)]()[a14_0x37933a(0x16e)]()[a14_0x37933a(0x15d)](0x1),a14_0x37933a(0x16a)),__metadata('design:type',Number)],PageDTO[a14_0x37933a(0x175)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x37933a(0x169)])(a14_0x37933a(0x165),validator_1[a14_0x37933a(0x161)][a14_0x37933a(0x160)]()[a14_0x37933a(0x16e)]()[a14_0x37933a(0x15d)](0x1)),__metadata(a14_0x37933a(0x14e),Number)],PageDTO['prototype'],a14_0x37933a(0x15b),void 0x0),__decorate([(0x0,validator_1[a14_0x37933a(0x169)])(a14_0x37933a(0x152),validator_1[a14_0x37933a(0x161)][a14_0x37933a(0x16f)]()['trim']()),__metadata('design:type',String)],PageDTO['prototype'],a14_0x37933a(0x15e),void 0x0),__decorate([(0x0,validator_1[a14_0x37933a(0x169)])(a14_0x37933a(0x15f),validator_1['RuleType'][a14_0x37933a(0x160)]()[a14_0x37933a(0x16e)]()[a14_0x37933a(0x15c)](0x0,0x1),a14_0x37933a(0x164)),__metadata(a14_0x37933a(0x14e),Number)],PageDTO['prototype'],a14_0x37933a(0x14f),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.36",
|
|
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.36",
|
|
21
|
+
"@anncic-api/core": "^1.4.36",
|
|
22
|
+
"@anncic-api/event": "^1.4.36",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.36",
|
|
24
|
+
"@anncic-api/validator": "^1.4.36",
|
|
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.36",
|
|
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": "d8dadc1dc4ae24fb133a2cf81833463dcb5314bd"
|
|
41
41
|
}
|