anncic-api 1.5.7 → 1.5.8
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/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1726a2=a0_0x3175;function a0_0x1951(){var _0xeb8d90=['10hbJsJD','json','text','zhiulanuiy7892387985hnoi','5ZNdebP','462866HSZqXd','(((.+)+)+)+$','20mb','1190632VFsrTQ','546642kfRmoP','2615144rPZqix','search','dhauo1234420123gg3234901','appDir','default','constructor','3122574uyzjIR','toString','535420itgVeS','9qMkJXQ','apply','182688IYkfep','defineProperty'];a0_0x1951=function(){return _0xeb8d90;};return a0_0x1951();}(function(_0xd42674,_0x1bf85b){var _0x223e6d=a0_0x3175,_0x21471f=_0xd42674();while(!![]){try{var _0x5b0686=-parseInt(_0x223e6d(0x8f))/0x1+parseInt(_0x223e6d(0x8a))/0x2*(-parseInt(_0x223e6d(0x88))/0x3)+-parseInt(_0x223e6d(0x92))/0x4*(-parseInt(_0x223e6d(0x8e))/0x5)+-parseInt(_0x223e6d(0x93))/0x6+parseInt(_0x223e6d(0x83))/0x7+parseInt(_0x223e6d(0x94))/0x8+-parseInt(_0x223e6d(0x86))/0x9*(-parseInt(_0x223e6d(0x85))/0xa);if(_0x5b0686===_0x1bf85b)break;else _0x21471f['push'](_0x21471f['shift']());}catch(_0x12eb42){_0x21471f['push'](_0x21471f['shift']());}}}(a0_0x1951,0x40dfa));function a0_0x3175(_0x131b5b,_0x23bf3c){var _0x51742c=a0_0x1951();return a0_0x3175=function(_0x273b57,_0x33f624){_0x273b57=_0x273b57-0x7e;var _0x19518e=_0x51742c[_0x273b57];return _0x19518e;},a0_0x3175(_0x131b5b,_0x23bf3c);}var a0_0x33f624=(function(){var _0xfe32a4=!![];return function(_0x3a7bf3,_0x473f6e){var _0x525a47=_0xfe32a4?function(){var _0x45ef07=a0_0x3175;if(_0x473f6e){var _0x71b453=_0x473f6e[_0x45ef07(0x87)](_0x3a7bf3,arguments);return _0x473f6e=null,_0x71b453;}}:function(){};return _0xfe32a4=![],_0x525a47;};}()),a0_0x273b57=a0_0x33f624(this,function(){var _0x9420e6=a0_0x3175;return a0_0x273b57[_0x9420e6(0x84)]()[_0x9420e6(0x7e)](_0x9420e6(0x90))[_0x9420e6(0x84)]()[_0x9420e6(0x82)](a0_0x273b57)['search']('(((.+)+)+)+$');});a0_0x273b57();'use strict';Object[a0_0x1726a2(0x89)](exports,'__esModule',{'value':!![]}),exports[a0_0x1726a2(0x81)]=_0x46d6ee=>{var _0x31f90a=a0_0x1726a2;return{'apitest':!![],'keys':_0x46d6ee['name'],'anncicapi':{'password':_0x31f90a(0x8d),'devices':{'DEFAULT':{'secret':_0x31f90a(0x7f),'checkcode':_0x31f90a(0x7f)}}},'bodyParser':{'enableTypes':[_0x31f90a(0x8b),'form',_0x31f90a(0x8c),'xml'],'formLimit':'20mb','jsonLimit':'20mb','textLimit':_0x31f90a(0x91),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x46d6ee[_0x31f90a(0x80)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
var a1_0x213e53=a1_0x325f;(function(_0x5d5b4d,_0x1a9d6b){var _0x28ec73=a1_0x325f,_0x597dfd=_0x5d5b4d();while(!![]){try{var _0x49da40=parseInt(_0x28ec73(0x1ed))/0x1+parseInt(_0x28ec73(0x1e6))/0x2*(parseInt(_0x28ec73(0x1eb))/0x3)+-parseInt(_0x28ec73(0x1f0))/0x4*(-parseInt(_0x28ec73(0x1ec))/0x5)+parseInt(_0x28ec73(0x1e8))/0x6*(-parseInt(_0x28ec73(0x1e7))/0x7)+-parseInt(_0x28ec73(0x1f1))/0x8+parseInt(_0x28ec73(0x1e5))/0x9+-parseInt(_0x28ec73(0x1e9))/0xa;if(_0x49da40===_0x1a9d6b)break;else _0x597dfd['push'](_0x597dfd['shift']());}catch(_0xd7431){_0x597dfd['push'](_0x597dfd['shift']());}}}(a1_0x5d7d,0x54120));var a1_0x2f2aa5=(function(){var _0x449532=!![];return function(_0x4f47b7,_0x7ee3e6){var _0x134b45=_0x449532?function(){var _0x41da18=a1_0x325f;if(_0x7ee3e6){var _0x5db46f=_0x7ee3e6[_0x41da18(0x1ea)](_0x4f47b7,arguments);return _0x7ee3e6=null,_0x5db46f;}}:function(){};return _0x449532=![],_0x134b45;};}()),a1_0x5d5b4e=a1_0x2f2aa5(this,function(){var _0x10c6f0=a1_0x325f;return a1_0x5d5b4e[_0x10c6f0(0x1e3)]()[_0x10c6f0(0x1e4)]('(((.+)+)+)+$')['toString']()['constructor'](a1_0x5d5b4e)[_0x10c6f0(0x1e4)](_0x10c6f0(0x1f2));});a1_0x5d5b4e();'use strict';function a1_0x5d7d(){var _0x22949c=['toString','search','2321766NhAeRT','2HUKeIo','77mKDEOT','44322WhVnPF','5722150FqCqxh','apply','409758PNJFrf','2677015dBmxHV','670846rqzRZz','__esModule','defineProperty','4uIPlcJ','4823880UCkblD','(((.+)+)+)+$'];a1_0x5d7d=function(){return _0x22949c;};return a1_0x5d7d();}function a1_0x325f(_0x28724f,_0x49d348){var _0x49bb53=a1_0x5d7d();return a1_0x325f=function(_0x5d5b4e,_0x2f2aa5){_0x5d5b4e=_0x5d5b4e-0x1e3;var _0x5d7d60=_0x49bb53[_0x5d5b4e];return _0x5d7d60;},a1_0x325f(_0x28724f,_0x49d348);}Object[a1_0x213e53(0x1ef)](exports,a1_0x213e53(0x1ee),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4ae453=a2_0x5a7a;(function(_0x23c340,_0x85cc34){const _0x1d14d0=a2_0x5a7a,_0x87d2ef=_0x23c340();while(!![]){try{const _0xad1b36=-parseInt(_0x1d14d0(0x144))/0x1*(parseInt(_0x1d14d0(0xfb))/0x2)+-parseInt(_0x1d14d0(0xf3))/0x3+parseInt(_0x1d14d0(0x132))/0x4*(-parseInt(_0x1d14d0(0xfa))/0x5)+parseInt(_0x1d14d0(0xde))/0x6+-parseInt(_0x1d14d0(0x11e))/0x7*(parseInt(_0x1d14d0(0x10b))/0x8)+-parseInt(_0x1d14d0(0xda))/0x9*(-parseInt(_0x1d14d0(0x114))/0xa)+-parseInt(_0x1d14d0(0xe8))/0xb*(-parseInt(_0x1d14d0(0x113))/0xc);if(_0xad1b36===_0x85cc34)break;else _0x87d2ef['push'](_0x87d2ef['shift']());}catch(_0x1e5fe6){_0x87d2ef['push'](_0x87d2ef['shift']());}}}(a2_0xcf46,0x8f0b6));const a2_0x27c904=(function(){let _0x4be6ca=!![];return function(_0x3963c8,_0x22b7fa){const _0x339e04=_0x4be6ca?function(){if(_0x22b7fa){const _0x5cd004=_0x22b7fa['apply'](_0x3963c8,arguments);return _0x22b7fa=null,_0x5cd004;}}:function(){};return _0x4be6ca=![],_0x339e04;};}()),a2_0x13c004=a2_0x27c904(this,function(){const _0xd78f35=a2_0x5a7a;return a2_0x13c004[_0xd78f35(0x11a)]()[_0xd78f35(0x121)](_0xd78f35(0x118))[_0xd78f35(0x11a)]()['constructor'](a2_0x13c004)['search'](_0xd78f35(0x118));});function a2_0xcf46(){const _0x236dc3=['input','DEFAULT','getConfiguration','377109XBUeNn','loggerConfig','isNull','getClassMetadata','1844466aNWitx','apimit','get','isClass','checkConfigKeys','device','@midwayjs/core','app','ApiService','defineProperties','55066opCXtZ','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','object','./types/action','statSync','/runtime','getAppDir','string','length','forEach','isFunction','2723604EyziwQ','@midwayjs/koa','/apps','tmpdir','MidwayApplicationManager','anncicapi','Inject','1055695Ojkkbi','1130486fEHyEC','context','./config/config.production','getBaseDir','dirs','REQUEST_OBJ_CTX_KEY','InterceptTargetTmp','request','Anncic-api\x20static-file\x20:\x20mkdir\x20','match','handler','@anncic-api/cache','method','@anncic-api/core','MidwayEnvironmentService','metadata','8111200qoSspg','isArray','decorate','__metadata','mkdirSync','__decorate','filterConfig','environment','7092FenLWb','240ANwxhY','HEADERS_SIGNATURE','checksign','onReady','(((.+)+)+)+$','isDevelopmentEnvironment','toString','anncic-api','devices','config','7qXdtzh','./exception/ApiError','midwayLogger','search','_matchedRoute','ACTION_ROUTE_KEY','toLowerCase','log','application','keys','getOwnPropertyDescriptor','.log','Types','isDirectory','anncic-apihelper','prototype','koa','/apps/','default','@midwayjs/upload','12pncLYM','Configuration','CustomConfiguration','@anncic-api/event','existsSync','clients','upload','body','getApplications','ApiError','dir','__esModule','koa-send','design:type','defaultsDeep','bodyXml','headers','function','2TbWGxq','defineProperty','./config/config.default','requestContext','staticFile','-log','addObject','@anncic-api/typeorm','@midwayjs/static-file','query','decorator','@midwayjs/cross-domain','intercept','./service/ApiService'];a2_0xcf46=function(){return _0x236dc3;};return a2_0xcf46();}a2_0x13c004();'use strict';var __decorate=this&&this[a2_0x4ae453(0x110)]||function(_0x282f39,_0x438254,_0x28dd5a,_0x128029){const _0x1f14ce=a2_0x4ae453;var _0x37477a=arguments['length'],_0x4a71d0=_0x37477a<0x3?_0x438254:_0x128029===null?_0x128029=Object[_0x1f14ce(0x128)](_0x438254,_0x28dd5a):_0x128029,_0x469183;if(typeof Reflect==='object'&&typeof Reflect[_0x1f14ce(0x10d)]===_0x1f14ce(0x143))_0x4a71d0=Reflect[_0x1f14ce(0x10d)](_0x282f39,_0x438254,_0x28dd5a,_0x128029);else{for(var _0x4a6e5b=_0x282f39['length']-0x1;_0x4a6e5b>=0x0;_0x4a6e5b--)if(_0x469183=_0x282f39[_0x4a6e5b])_0x4a71d0=(_0x37477a<0x3?_0x469183(_0x4a71d0):_0x37477a>0x3?_0x469183(_0x438254,_0x28dd5a,_0x4a71d0):_0x469183(_0x438254,_0x28dd5a))||_0x4a71d0;}return _0x37477a>0x3&&_0x4a71d0&&Object[_0x1f14ce(0x145)](_0x438254,_0x28dd5a,_0x4a71d0),_0x4a71d0;},__metadata=this&&this[a2_0x4ae453(0x10e)]||function(_0x316bb2,_0x1a8be7){const _0x3b070f=a2_0x4ae453;if(typeof Reflect===_0x3b070f(0xea)&&typeof Reflect[_0x3b070f(0x10a)]===_0x3b070f(0x143))return Reflect['metadata'](_0x316bb2,_0x1a8be7);};function a2_0x5a7a(_0x209719,_0x32971a){const _0x3694d8=a2_0xcf46();return a2_0x5a7a=function(_0x13c004,_0x27c904){_0x13c004=_0x13c004-0xcf;let _0xcf46e5=_0x3694d8[_0x13c004];return _0xcf46e5;},a2_0x5a7a(_0x209719,_0x32971a);}Object[a2_0x4ae453(0x145)](exports,a2_0x4ae453(0x13d),{'value':!![]}),exports[a2_0x4ae453(0x134)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x4ae453(0xe4)),ApiError_1=require(a2_0x4ae453(0x11f)),ApiService_1=require(a2_0x4ae453(0xd6)),action_1=require(a2_0x4ae453(0xeb)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x4ae453(0x13e)),koa=require(a2_0x4ae453(0xf4)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x4ae453(0x131)),staticFile=require(a2_0x4ae453(0xd1)),crossDomain=require(a2_0x4ae453(0xd4)),ConfigDefault=require(a2_0x4ae453(0x146)),ConfigProduction=require(a2_0x4ae453(0xfd)),anncic=require(a2_0x4ae453(0x108)),anncicCache=require(a2_0x4ae453(0x106)),anncicEvent=require(a2_0x4ae453(0x135)),anncicTypeorm=require(a2_0x4ae453(0xd0)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x4ae453(0x12c));let CustomConfiguration=class CustomConfiguration{async[a2_0x4ae453(0x117)](){const _0x33abf8=a2_0x4ae453;await this[_0x33abf8(0x111)](),await this['loggerConfig'](),await this[_0x33abf8(0xe2)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x4ae453(0xe2)](){}async['handlerActionRoute'](){const _0x41e19d=a2_0x4ae453,_0x46ee3b=(0x0,core_1[_0x41e19d(0xdd)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x41e19d(0x101)])||{};this[_0x41e19d(0xd3)]['registerMethodHandler'](action_1[_0x41e19d(0x123)],_0x43c838=>{const _0x4710e8=_0x41e19d,_0x48d639=_0x43c838[_0x4710e8(0x10a)];return{'before':async _0x544e3c=>{const _0x25251a=_0x4710e8;var _0x382a69,_0x2cb84b;const _0x317915=(_0x382a69=_0x544e3c===null||_0x544e3c===void 0x0?void 0x0:_0x544e3c['target'])===null||_0x382a69===void 0x0?void 0x0:_0x382a69[core_2[_0x25251a(0x100)]];if(_0x317915&&(_0x48d639===null||_0x48d639===void 0x0?void 0x0:_0x48d639[_0x25251a(0xdf)])){if(!this[_0x25251a(0xe6)][_0x25251a(0x116)]((_0x2cb84b=_0x317915===null||_0x317915===void 0x0?void 0x0:_0x317915[_0x25251a(0x102)])===null||_0x2cb84b===void 0x0?void 0x0:_0x2cb84b[_0x25251a(0x142)]))throw new AnnError(ApiError_1[_0x25251a(0x13b)][_0x25251a(0x115)]);}},'around':async _0x199983=>{const _0x424cf5=_0x4710e8;var _0x30be9f,_0x3c6985,_0x15dd74;const _0x237d7e=(_0x30be9f=_0x199983===null||_0x199983===void 0x0?void 0x0:_0x199983['target'])===null||_0x30be9f===void 0x0?void 0x0:_0x30be9f[core_2[_0x424cf5(0x100)]];if(_0x237d7e&&(_0x48d639===null||_0x48d639===void 0x0?void 0x0:_0x48d639['apimit'])&&((_0x48d639===null||_0x48d639===void 0x0?void 0x0:_0x48d639[_0x424cf5(0xd5)])||typeof(_0x48d639===null||_0x48d639===void 0x0?void 0x0:_0x48d639['intercept'])=='undefined')){if(((_0x3c6985=_0x237d7e[_0x424cf5(0x142)])===null||_0x3c6985===void 0x0?void 0x0:_0x3c6985[_0x424cf5(0xe3)])&&((_0x15dd74=_0x46ee3b===null||_0x46ee3b===void 0x0?void 0x0:_0x46ee3b[_0x237d7e[_0x424cf5(0x142)][_0x424cf5(0xe3)]])===null||_0x15dd74===void 0x0?void 0x0:_0x15dd74[_0x424cf5(0xf0)])>0x0)for(const _0x331c5d of _0x46ee3b[_0x237d7e[_0x424cf5(0x142)][_0x424cf5(0xe3)]]||[]){if(core_1[_0x424cf5(0x12a)][_0x424cf5(0xe1)](_0x331c5d)){const _0x4de1f1=await _0x237d7e[_0x424cf5(0x147)]['getAsync'](_0x331c5d);typeof(_0x4de1f1===null||_0x4de1f1===void 0x0?void 0x0:_0x4de1f1[_0x424cf5(0x104)])==_0x424cf5(0x143)?await _0x4de1f1['match'](_0x237d7e,typeof(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x107)])==_0x424cf5(0xef)&&(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e['_matchedRoute'])?_0x237d7e['method'][_0x424cf5(0x124)]()+'@'+(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)]):undefined,_0x48d639)&&await _0x4de1f1['handler'](_0x237d7e,typeof(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e['method'])==_0x424cf5(0xef)&&(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e['_matchedRoute'])?_0x237d7e[_0x424cf5(0x107)][_0x424cf5(0x124)]()+'@'+(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)]):undefined,_0x48d639):await _0x4de1f1[_0x424cf5(0x105)](_0x237d7e,typeof(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x107)])==_0x424cf5(0xef)&&(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)])?_0x237d7e[_0x424cf5(0x107)][_0x424cf5(0x124)]()+'@'+(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)]):undefined,_0x48d639);}else core_1[_0x424cf5(0x12a)][_0x424cf5(0xf2)](_0x331c5d)&&await _0x331c5d(_0x237d7e,typeof(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x107)])==_0x424cf5(0xef)&&(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)])?_0x237d7e[_0x424cf5(0x107)][_0x424cf5(0x124)]()+'@'+(_0x237d7e===null||_0x237d7e===void 0x0?void 0x0:_0x237d7e[_0x424cf5(0x122)]):undefined,_0x48d639);}}return await _0x199983['proceed'](..._0x199983['args']);},'afterThrow':(_0x2cbcb8,_0x26bb44)=>{throw _0x26bb44;}};});}async['hanlderApplications'](){const _0x313ded=a2_0x4ae453;this[_0x313ded(0x126)][_0x313ded(0x13a)]([_0x313ded(0x12e)])[_0x313ded(0xf1)](_0x1b9638=>{const _0x53236=_0x313ded;(_0x1b9638===null||_0x1b9638===void 0x0?void 0x0:_0x1b9638['context'])&&Object[_0x53236(0xe7)](_0x1b9638[_0x53236(0xfc)],{'ok':{'value':function(_0x4aef57,_0x2fef9c,_0x1a6a76=0x0){return{'code':_0x1a6a76,'data':_0x4aef57,'extra':_0x2fef9c};}},'input':{'value':function(_0x20b167,_0x46281c){const _0x8fe344=_0x53236;var _0x6f73a3;const _0x239a17=lodash[_0x8fe344(0x140)]({},this[_0x8fe344(0x102)][_0x8fe344(0x139)]||this[_0x8fe344(0x102)][((_0x6f73a3=config===null||config===void 0x0?void 0x0:config[_0x8fe344(0x141)])===null||_0x6f73a3===void 0x0?void 0x0:_0x6f73a3['key'])||'body']||{},this[_0x8fe344(0x102)][_0x8fe344(0xd2)]||{});return _0x20b167?lodash[_0x8fe344(0xe0)](_0x239a17,_0x20b167,_0x46281c):_0x239a17;}},'when':{'value':async function(_0x83e5cb,_0x14e0e0){const _0x58aecb=_0x53236,_0x4ab5d5=this[_0x58aecb(0xd7)](_0x83e5cb,null);if(!lodash[_0x58aecb(0xdc)](_0x4ab5d5))return await _0x14e0e0(_0x4ab5d5);}},'only':{'value':function(_0xaeb139){const _0x41920c=_0x53236,_0x3a9ddc={};for(let _0x943587=0x0;_0x943587<_0xaeb139['length'];_0x943587++){lodash[_0x41920c(0x10c)](_0xaeb139[_0x943587])&&_0xaeb139[_0x943587][_0x41920c(0xf0)]>0x0&&lodash['isString'](_0xaeb139[_0x943587][0x0])&&(_0x3a9ddc[_0xaeb139[_0x943587][0x0]]=this[_0x41920c(0xd7)](_0xaeb139[_0x943587][0x0],_0xaeb139[_0x943587]['length']>0x1?_0xaeb139[_0x943587][0x1]:null));}return _0x3a9ddc;}},'koasend':{'value':function(_0x21fda3,_0xae42ac){const _0xa018bd=_0x53236;if(!fs[_0xa018bd(0x136)](this[_0xa018bd(0xe5)]['getAppDir']()+'/'+_0x21fda3))return'文件不存在';return this['attachment'](_0xae42ac||_0x21fda3),koasend(this,_0x21fda3);}}});});}async[a2_0x4ae453(0xdb)](){const _0x5320c9=a2_0x4ae453;var _0x342375,_0x36c4cc;if(fs[_0x5320c9(0x136)](this[_0x5320c9(0xe5)]['getBaseDir']()+'/apps')&&fs['statSync'](this['app']['getBaseDir']()+_0x5320c9(0xf5))[_0x5320c9(0x12b)]()){const _0x5aa28d=this[_0x5320c9(0x11d)]['getConfiguration'](),_0x3f83ac=((_0x342375=_0x5aa28d===null||_0x5aa28d===void 0x0?void 0x0:_0x5aa28d[_0x5320c9(0x120)])===null||_0x342375===void 0x0?void 0x0:_0x342375[_0x5320c9(0x137)])||{};for(const _0x2472a6 of fs['readdirSync'](this[_0x5320c9(0xe5)][_0x5320c9(0xfe)]()+_0x5320c9(0xf5))){if(!fs[_0x5320c9(0xec)](this['app']['getBaseDir']()+_0x5320c9(0x12f)+_0x2472a6)[_0x5320c9(0x12b)]())continue;if(_0x3f83ac===null||_0x3f83ac===void 0x0?void 0x0:_0x3f83ac[_0x2472a6])continue;_0x3f83ac[_0x2472a6]=Object['assign']({},((_0x36c4cc=_0x5aa28d===null||_0x5aa28d===void 0x0?void 0x0:_0x5aa28d[_0x5320c9(0x120)])===null||_0x36c4cc===void 0x0?void 0x0:_0x36c4cc[_0x5320c9(0x130)])||{'maxSize':'1m','dir':this['app'][_0x5320c9(0xee)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x5320c9(0x112)][_0x5320c9(0x119)](),'fileLogName':_0x2472a6+_0x5320c9(0x129),'dir':this[_0x5320c9(0xe5)]['getAppDir']()+'/runtime/apps-'+_0x2472a6+_0x5320c9(0x149)});}Object[_0x5320c9(0x127)](_0x3f83ac)[_0x5320c9(0xf0)]>0x0&&(!_0x5aa28d[_0x5320c9(0x120)]&&(_0x5aa28d[_0x5320c9(0x120)]={'default':{'maxSize':'1m','dir':this['app']['getAppDir']()+_0x5320c9(0xed)}}),_0x5aa28d[_0x5320c9(0x120)]['clients']=_0x3f83ac),this['config']['addObject'](_0x5aa28d);}}async[a2_0x4ae453(0x111)](){const _0x5051b5=a2_0x4ae453;var _0x5a2ed1,_0x1a1bfd,_0x33f437,_0x62629,_0x39bdf1,_0x6552e1;const _0x1a19c2=this[_0x5051b5(0x11d)][_0x5051b5(0xd9)]();((_0x1a1bfd=(_0x5a2ed1=_0x1a19c2===null||_0x1a19c2===void 0x0?void 0x0:_0x1a19c2[_0x5051b5(0xf8)])===null||_0x5a2ed1===void 0x0?void 0x0:_0x5a2ed1[_0x5051b5(0x11c)])===null||_0x1a1bfd===void 0x0?void 0x0:_0x1a1bfd[_0x5051b5(0xd8)])&&Object['keys'](_0x1a19c2[_0x5051b5(0xf8)][_0x5051b5(0x11c)])[_0x5051b5(0xf0)]>0x1&&delete _0x1a19c2['anncicapi'][_0x5051b5(0x11c)][_0x5051b5(0xd8)];if((_0x33f437=_0x1a19c2===null||_0x1a19c2===void 0x0?void 0x0:_0x1a19c2[_0x5051b5(0x148)])===null||_0x33f437===void 0x0?void 0x0:_0x33f437['dirs'])for(const _0x182d21 in _0x1a19c2['staticFile'][_0x5051b5(0xff)]){((_0x62629=_0x1a19c2['staticFile'][_0x5051b5(0xff)][_0x182d21])===null||_0x62629===void 0x0?void 0x0:_0x62629['dir'])&&typeof((_0x39bdf1=_0x1a19c2[_0x5051b5(0x148)][_0x5051b5(0xff)][_0x182d21])===null||_0x39bdf1===void 0x0?void 0x0:_0x39bdf1[_0x5051b5(0x13c)])==_0x5051b5(0xef)&&!fs[_0x5051b5(0x136)](_0x1a19c2['staticFile'][_0x5051b5(0xff)][_0x182d21]['dir'])&&(fs['mkdirSync'](_0x1a19c2[_0x5051b5(0x148)][_0x5051b5(0xff)][_0x182d21]['dir'],{'recursive':!![]}),console[_0x5051b5(0x125)](_0x5051b5(0x103)+_0x1a19c2['staticFile'][_0x5051b5(0xff)][_0x182d21]['dir']));}((_0x6552e1=_0x1a19c2===null||_0x1a19c2===void 0x0?void 0x0:_0x1a19c2['upload'])===null||_0x6552e1===void 0x0?void 0x0:_0x6552e1['tmpdir'])&&!fs[_0x5051b5(0x136)](_0x1a19c2[_0x5051b5(0x138)]['tmpdir'])&&(fs[_0x5051b5(0x10f)](_0x1a19c2[_0x5051b5(0x138)][_0x5051b5(0xf6)],{'recursive':!![]}),console[_0x5051b5(0x125)](_0x5051b5(0xe9)+_0x1a19c2[_0x5051b5(0x138)][_0x5051b5(0xf6)])),this['config'][_0x5051b5(0xcf)](_0x1a19c2);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x4ae453(0x13f),Object)],CustomConfiguration[a2_0x4ae453(0x12d)],a2_0x4ae453(0xe5),void 0x0),__decorate([(0x0,core_1[a2_0x4ae453(0xf9)])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a2_0x4ae453(0x12d)],a2_0x4ae453(0x11d),void 0x0),__decorate([(0x0,core_1[a2_0x4ae453(0xf9)])(),__metadata(a2_0x4ae453(0x13f),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x4ae453(0x12d)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x4ae453(0xf9)])(),__metadata('design:type',core_2[a2_0x4ae453(0xf7)])],CustomConfiguration[a2_0x4ae453(0x12d)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x4ae453(0xf9)])(),__metadata(a2_0x4ae453(0x13f),core_2[a2_0x4ae453(0x109)])],CustomConfiguration[a2_0x4ae453(0x12d)],a2_0x4ae453(0x112),void 0x0),__decorate([(0x0,core_1[a2_0x4ae453(0xf9)])(),__metadata(a2_0x4ae453(0x13f),ApiService_1[a2_0x4ae453(0xe6)])],CustomConfiguration[a2_0x4ae453(0x12d)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4ae453(0x133)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4ae453(0x11b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x4ae453(0x134)]=CustomConfiguration;
|
|
1
|
+
const a2_0xaa0b83=a2_0x3295;(function(_0x238e60,_0x515128){const _0x23ac58=a2_0x3295,_0x3682cf=_0x238e60();while(!![]){try{const _0x3df7f7=-parseInt(_0x23ac58(0x1f5))/0x1*(parseInt(_0x23ac58(0x1e9))/0x2)+parseInt(_0x23ac58(0x25b))/0x3+-parseInt(_0x23ac58(0x239))/0x4*(parseInt(_0x23ac58(0x265))/0x5)+-parseInt(_0x23ac58(0x241))/0x6+parseInt(_0x23ac58(0x209))/0x7+parseInt(_0x23ac58(0x233))/0x8*(-parseInt(_0x23ac58(0x22d))/0x9)+parseInt(_0x23ac58(0x1f4))/0xa*(parseInt(_0x23ac58(0x220))/0xb);if(_0x3df7f7===_0x515128)break;else _0x3682cf['push'](_0x3682cf['shift']());}catch(_0x28568c){_0x3682cf['push'](_0x3682cf['shift']());}}}(a2_0x3eae,0x5a3cb));const a2_0x2f28c2=(function(){let _0x25e1bf=!![];return function(_0x442e81,_0x2734b7){const _0x413088=_0x25e1bf?function(){const _0x1b9454=a2_0x3295;if(_0x2734b7){const _0x3b1070=_0x2734b7[_0x1b9454(0x205)](_0x442e81,arguments);return _0x2734b7=null,_0x3b1070;}}:function(){};return _0x25e1bf=![],_0x413088;};}()),a2_0x2e4cc8=a2_0x2f28c2(this,function(){const _0x309317=a2_0x3295;return a2_0x2e4cc8[_0x309317(0x1fc)]()['search'](_0x309317(0x216))[_0x309317(0x1fc)]()['constructor'](a2_0x2e4cc8)['search'](_0x309317(0x216));});a2_0x2e4cc8();'use strict';var __decorate=this&&this[a2_0xaa0b83(0x22b)]||function(_0x45e9c2,_0x3f8a56,_0x764f9f,_0x413326){const _0x20e6bb=a2_0xaa0b83;var _0x2c497b=arguments[_0x20e6bb(0x237)],_0xc8090b=_0x2c497b<0x3?_0x3f8a56:_0x413326===null?_0x413326=Object[_0x20e6bb(0x240)](_0x3f8a56,_0x764f9f):_0x413326,_0x3201bd;if(typeof Reflect===_0x20e6bb(0x23d)&&typeof Reflect['decorate']==='function')_0xc8090b=Reflect[_0x20e6bb(0x1f7)](_0x45e9c2,_0x3f8a56,_0x764f9f,_0x413326);else{for(var _0x4cd51b=_0x45e9c2[_0x20e6bb(0x237)]-0x1;_0x4cd51b>=0x0;_0x4cd51b--)if(_0x3201bd=_0x45e9c2[_0x4cd51b])_0xc8090b=(_0x2c497b<0x3?_0x3201bd(_0xc8090b):_0x2c497b>0x3?_0x3201bd(_0x3f8a56,_0x764f9f,_0xc8090b):_0x3201bd(_0x3f8a56,_0x764f9f))||_0xc8090b;}return _0x2c497b>0x3&&_0xc8090b&&Object[_0x20e6bb(0x1ed)](_0x3f8a56,_0x764f9f,_0xc8090b),_0xc8090b;},__metadata=this&&this[a2_0xaa0b83(0x1ff)]||function(_0x24e3cf,_0x37cd66){const _0x74ab0f=a2_0xaa0b83;if(typeof Reflect===_0x74ab0f(0x23d)&&typeof Reflect[_0x74ab0f(0x243)]===_0x74ab0f(0x25c))return Reflect[_0x74ab0f(0x243)](_0x24e3cf,_0x37cd66);};function a2_0x3eae(){const _0x31e75d=['handlerActionRoute','./config/config.default','文件不存在','koa-send','method','registerMethodHandler','dirs','.log','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','devices','(((.+)+)+)+$','attachment','CustomConfiguration','Configuration','mkdirSync','environment','defineProperties','log','/runtime','design:type','2155010DHtmdk','App','isArray','context','onReady','handler','ACTION_ROUTE_KEY','headers','@anncic-api/validator','staticFile','InterceptTargetTmp','__decorate','@midwayjs/koa','203733GCPPSP','_matchedRoute','getConfiguration','isClass','intercept','requestContext','232yailop','prototype','getApplications','DEFAULT','length','@anncic-api/event','20ZIBXQD','device','isString','getAppDir','object','app','-log','getOwnPropertyDescriptor','765624lSQKmV','@midwayjs/upload','metadata','hanlderApplications','@midwayjs/i18n','__esModule','isNull','existsSync','apimit','clients','forEach','readdirSync','anncicapi','checkConfigKeys','@midwayjs/core','/apps','application','REQUEST_OBJ_CTX_KEY','./exception/ApiError','midwayLogger','keys','string','isFunction','HEADERS_SIGNATURE','ApiService','anncic-api','171783pIvOAC','function','anncic-apihelper','target','MidwayEnvironmentService','INTERCEPT_KEY','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20','Inject','getBaseDir','156535teGUGK','addObject','toLowerCase','78548PMWYbH','dir','undefined','MidwayConfigService','defineProperty','input','@anncic-api/typeorm','@midwayjs/cross-domain','isDirectory','query','filterConfig','80CuHKmZ','16GMATxO','body','decorate','config','args','defaultsDeep','@anncic-api/core','toString','assign','statSync','__metadata','upload','tmpdir','get','bodyXml','checksign','apply','Types','/apps/','MidwayDecoratorService','2198462xQALnC','request','match'];a2_0x3eae=function(){return _0x31e75d;};return a2_0x3eae();}function a2_0x3295(_0x5d0fe8,_0x3a32ce){const _0x5ed678=a2_0x3eae();return a2_0x3295=function(_0x2e4cc8,_0x2f28c2){_0x2e4cc8=_0x2e4cc8-0x1e8;let _0x3eae39=_0x5ed678[_0x2e4cc8];return _0x3eae39;},a2_0x3295(_0x5d0fe8,_0x3a32ce);}Object[a2_0xaa0b83(0x1ed)](exports,a2_0xaa0b83(0x246),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0xaa0b83(0x24f)),core_2=require(a2_0xaa0b83(0x24f)),ApiError_1=require(a2_0xaa0b83(0x253)),ApiService_1=require('./service/ApiService'),action_1=require('./types/action'),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0xaa0b83(0x20f)),koa=require(a2_0xaa0b83(0x22c)),i18n=require(a2_0xaa0b83(0x245)),upload=require(a2_0xaa0b83(0x242)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0xaa0b83(0x1f0)),ConfigDefault=require(a2_0xaa0b83(0x20d)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0xaa0b83(0x1fb)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0xaa0b83(0x238)),anncicTypeorm=require(a2_0xaa0b83(0x1ef)),anncicValidator=require(a2_0xaa0b83(0x228)),anncicHelper=require(a2_0xaa0b83(0x25d));let CustomConfiguration=class CustomConfiguration{async[a2_0xaa0b83(0x224)](){const _0x58fbaf=a2_0xaa0b83;await this[_0x58fbaf(0x1f3)](),await this['loggerConfig'](),await this[_0x58fbaf(0x24e)](),await this[_0x58fbaf(0x20c)](),await this['hanlderApplications']();}async[a2_0xaa0b83(0x24e)](){}async[a2_0xaa0b83(0x20c)](){const _0x5432b9=a2_0xaa0b83,_0x34c9a5=(0x0,core_1['getClassMetadata'])(intercept_1[_0x5432b9(0x260)],intercept_1[_0x5432b9(0x22a)])||{};this[_0x5432b9(0x261)][_0x5432b9(0x211)](action_1[_0x5432b9(0x226)],_0x46c79b=>{const _0x1ba97b=_0x5432b9,_0x3ef07b=_0x46c79b[_0x1ba97b(0x243)];return{'before':async _0x5eb722=>{const _0x2d527c=_0x1ba97b;var _0x3de26f,_0x228767;const _0x102d00=(_0x3de26f=_0x5eb722===null||_0x5eb722===void 0x0?void 0x0:_0x5eb722[_0x2d527c(0x25e)])===null||_0x3de26f===void 0x0?void 0x0:_0x3de26f[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x102d00&&(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x2d527c(0x249)])){if(!this[_0x2d527c(0x259)][_0x2d527c(0x204)]((_0x228767=_0x102d00===null||_0x102d00===void 0x0?void 0x0:_0x102d00['request'])===null||_0x228767===void 0x0?void 0x0:_0x228767[_0x2d527c(0x227)]))throw new AnnError(ApiError_1['ApiError'][_0x2d527c(0x258)]);}},'around':async _0x5ec50f=>{const _0x32e34b=_0x1ba97b;var _0x3dbcd9,_0x11d0b9,_0xf9f1f1;const _0x22d19c=(_0x3dbcd9=_0x5ec50f===null||_0x5ec50f===void 0x0?void 0x0:_0x5ec50f[_0x32e34b(0x25e)])===null||_0x3dbcd9===void 0x0?void 0x0:_0x3dbcd9[core_2[_0x32e34b(0x252)]];if(_0x22d19c&&(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x249)])&&((_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x231)])||typeof(_0x3ef07b===null||_0x3ef07b===void 0x0?void 0x0:_0x3ef07b[_0x32e34b(0x231)])==_0x32e34b(0x1eb))){if(((_0x11d0b9=_0x22d19c[_0x32e34b(0x227)])===null||_0x11d0b9===void 0x0?void 0x0:_0x11d0b9[_0x32e34b(0x23a)])&&((_0xf9f1f1=_0x34c9a5===null||_0x34c9a5===void 0x0?void 0x0:_0x34c9a5[_0x22d19c['headers'][_0x32e34b(0x23a)]])===null||_0xf9f1f1===void 0x0?void 0x0:_0xf9f1f1['length'])>0x0)for(const _0x85ae82 of _0x34c9a5[_0x22d19c[_0x32e34b(0x227)]['device']]||[]){if(core_1[_0x32e34b(0x206)][_0x32e34b(0x230)](_0x85ae82)){const _0xf99435=await _0x22d19c[_0x32e34b(0x232)]['getAsync'](_0x85ae82);typeof(_0xf99435===null||_0xf99435===void 0x0?void 0x0:_0xf99435[_0x32e34b(0x20b)])=='function'?await _0xf99435[_0x32e34b(0x20b)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c['_matchedRoute'])?_0x22d19c[_0x32e34b(0x210)]['toLowerCase']()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b)&&await _0xf99435[_0x32e34b(0x225)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])=='string'&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)][_0x32e34b(0x1e8)]()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b):await _0xf99435[_0x32e34b(0x225)](_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)][_0x32e34b(0x1e8)]()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b);}else core_1['Types'][_0x32e34b(0x257)](_0x85ae82)&&await _0x85ae82(_0x22d19c,typeof(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x210)])==_0x32e34b(0x256)&&(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)])?_0x22d19c[_0x32e34b(0x210)]['toLowerCase']()+'@'+(_0x22d19c===null||_0x22d19c===void 0x0?void 0x0:_0x22d19c[_0x32e34b(0x22e)]):undefined,_0x3ef07b);}}return await _0x5ec50f['proceed'](..._0x5ec50f[_0x32e34b(0x1f9)]);},'afterThrow':(_0x516f4e,_0x4368ca)=>{throw _0x4368ca;}};});}async[a2_0xaa0b83(0x244)](){const _0x5a3de2=a2_0xaa0b83;this[_0x5a3de2(0x251)][_0x5a3de2(0x235)](['koa'])[_0x5a3de2(0x24b)](_0x49ea9a=>{const _0x4750da=_0x5a3de2;(_0x49ea9a===null||_0x49ea9a===void 0x0?void 0x0:_0x49ea9a['context'])&&Object[_0x4750da(0x21c)](_0x49ea9a[_0x4750da(0x223)],{'ok':{'value':function(_0xe95d1c,_0x20be74,_0x2a8ebb=0x0){return{'code':_0x2a8ebb,'data':_0xe95d1c,'extra':_0x20be74};}},'input':{'value':function(_0x5ed266,_0x2b694e){const _0x4538c7=_0x4750da;var _0x2f6566;const _0xc58e8d=lodash[_0x4538c7(0x1fa)]({},this['request']['body']||this[_0x4538c7(0x20a)][((_0x2f6566=config===null||config===void 0x0?void 0x0:config[_0x4538c7(0x203)])===null||_0x2f6566===void 0x0?void 0x0:_0x2f6566['key'])||_0x4538c7(0x1f6)]||{},this[_0x4538c7(0x20a)][_0x4538c7(0x1f2)]||{});return _0x5ed266?lodash[_0x4538c7(0x202)](_0xc58e8d,_0x5ed266,_0x2b694e):_0xc58e8d;}},'when':{'value':async function(_0xc0efd,_0x4f97fe){const _0x5c4a61=_0x4750da,_0x3e4e86=this[_0x5c4a61(0x1ee)](_0xc0efd,null);if(!lodash[_0x5c4a61(0x247)](_0x3e4e86))return await _0x4f97fe(_0x3e4e86);}},'only':{'value':function(_0xd303ea){const _0x2a754e=_0x4750da,_0x223e18={};for(let _0x36d947=0x0;_0x36d947<_0xd303ea[_0x2a754e(0x237)];_0x36d947++){lodash[_0x2a754e(0x222)](_0xd303ea[_0x36d947])&&_0xd303ea[_0x36d947][_0x2a754e(0x237)]>0x0&&lodash[_0x2a754e(0x23b)](_0xd303ea[_0x36d947][0x0])&&(_0x223e18[_0xd303ea[_0x36d947][0x0]]=this[_0x2a754e(0x1ee)](_0xd303ea[_0x36d947][0x0],_0xd303ea[_0x36d947]['length']>0x1?_0xd303ea[_0x36d947][0x1]:null));}return _0x223e18;}},'koasend':{'value':function(_0x3129b9,_0x220ee9){const _0xa15be=_0x4750da;if(!fs[_0xa15be(0x248)](this[_0xa15be(0x23e)][_0xa15be(0x23c)]()+'/'+_0x3129b9))return _0xa15be(0x20e);return this[_0xa15be(0x217)](_0x220ee9||_0x3129b9),koasend(this,_0x3129b9);}}});});}async['loggerConfig'](){const _0x429e68=a2_0xaa0b83;var _0x1aba69,_0x828e5f;if(fs['existsSync'](this[_0x429e68(0x23e)]['getBaseDir']()+'/apps')&&fs[_0x429e68(0x1fe)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x250))[_0x429e68(0x1f1)]()){const _0x7ab69c=this[_0x429e68(0x1f8)][_0x429e68(0x22f)](),_0x1bae07=((_0x1aba69=_0x7ab69c===null||_0x7ab69c===void 0x0?void 0x0:_0x7ab69c['midwayLogger'])===null||_0x1aba69===void 0x0?void 0x0:_0x1aba69['clients'])||{};for(const _0x94334f of fs[_0x429e68(0x24c)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x250))){if(!fs[_0x429e68(0x1fe)](this[_0x429e68(0x23e)][_0x429e68(0x264)]()+_0x429e68(0x207)+_0x94334f)[_0x429e68(0x1f1)]())continue;if(_0x1bae07===null||_0x1bae07===void 0x0?void 0x0:_0x1bae07[_0x94334f])continue;_0x1bae07[_0x94334f]=Object[_0x429e68(0x1fd)]({},((_0x828e5f=_0x7ab69c===null||_0x7ab69c===void 0x0?void 0x0:_0x7ab69c[_0x429e68(0x254)])===null||_0x828e5f===void 0x0?void 0x0:_0x828e5f['default'])||{'maxSize':'1m','dir':this[_0x429e68(0x23e)]['getAppDir']()+_0x429e68(0x21e)},{'enableJSON':!![],'enableConsole':this[_0x429e68(0x21b)]['isDevelopmentEnvironment'](),'fileLogName':_0x94334f+_0x429e68(0x213),'dir':this[_0x429e68(0x23e)][_0x429e68(0x23c)]()+'/runtime/apps-'+_0x94334f+_0x429e68(0x23f)});}Object[_0x429e68(0x255)](_0x1bae07)[_0x429e68(0x237)]>0x0&&(!_0x7ab69c['midwayLogger']&&(_0x7ab69c[_0x429e68(0x254)]={'default':{'maxSize':'1m','dir':this[_0x429e68(0x23e)][_0x429e68(0x23c)]()+'/runtime'}}),_0x7ab69c[_0x429e68(0x254)][_0x429e68(0x24a)]=_0x1bae07),this['config'][_0x429e68(0x266)](_0x7ab69c);}}async[a2_0xaa0b83(0x1f3)](){const _0x725f97=a2_0xaa0b83;var _0x4aa63c,_0xcc2bd6,_0x2e5825,_0x265e6a,_0x257d59,_0x2e9f45;const _0xb472c6=this[_0x725f97(0x1f8)][_0x725f97(0x22f)]();((_0xcc2bd6=(_0x4aa63c=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6[_0x725f97(0x24d)])===null||_0x4aa63c===void 0x0?void 0x0:_0x4aa63c[_0x725f97(0x215)])===null||_0xcc2bd6===void 0x0?void 0x0:_0xcc2bd6['DEFAULT'])&&Object[_0x725f97(0x255)](_0xb472c6[_0x725f97(0x24d)][_0x725f97(0x215)])[_0x725f97(0x237)]>0x1&&delete _0xb472c6[_0x725f97(0x24d)][_0x725f97(0x215)][_0x725f97(0x236)];if((_0x2e5825=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6[_0x725f97(0x229)])===null||_0x2e5825===void 0x0?void 0x0:_0x2e5825[_0x725f97(0x212)])for(const _0x95be88 in _0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)]){((_0x265e6a=_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88])===null||_0x265e6a===void 0x0?void 0x0:_0x265e6a[_0x725f97(0x1ea)])&&typeof((_0x257d59=_0xb472c6['staticFile'][_0x725f97(0x212)][_0x95be88])===null||_0x257d59===void 0x0?void 0x0:_0x257d59[_0x725f97(0x1ea)])=='string'&&!fs[_0x725f97(0x248)](_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)])&&(fs[_0x725f97(0x21a)](_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)],{'recursive':!![]}),console['log'](_0x725f97(0x262)+_0xb472c6[_0x725f97(0x229)][_0x725f97(0x212)][_0x95be88][_0x725f97(0x1ea)]));}((_0x2e9f45=_0xb472c6===null||_0xb472c6===void 0x0?void 0x0:_0xb472c6['upload'])===null||_0x2e9f45===void 0x0?void 0x0:_0x2e9f45[_0x725f97(0x201)])&&!fs[_0x725f97(0x248)](_0xb472c6[_0x725f97(0x200)]['tmpdir'])&&(fs[_0x725f97(0x21a)](_0xb472c6[_0x725f97(0x200)][_0x725f97(0x201)],{'recursive':!![]}),console[_0x725f97(0x21d)](_0x725f97(0x214)+_0xb472c6[_0x725f97(0x200)][_0x725f97(0x201)])),this[_0x725f97(0x1f8)][_0x725f97(0x266)](_0xb472c6);}};__decorate([(0x0,core_1[a2_0xaa0b83(0x221)])(),__metadata(a2_0xaa0b83(0x21f),Object)],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x23e),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),core_2[a2_0xaa0b83(0x1ec)])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x1f8),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata('design:type',core_2[a2_0xaa0b83(0x208)])],CustomConfiguration[a2_0xaa0b83(0x234)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata('design:type',core_2['MidwayApplicationManager'])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),core_2[a2_0xaa0b83(0x25f)])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x21b),void 0x0),__decorate([(0x0,core_1[a2_0xaa0b83(0x263)])(),__metadata(a2_0xaa0b83(0x21f),ApiService_1['ApiService'])],CustomConfiguration[a2_0xaa0b83(0x234)],a2_0xaa0b83(0x259),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0xaa0b83(0x219)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0xaa0b83(0x25a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xaa0b83(0x218)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x312569=a3_0x4ffe;(function(_0x33e8a4,_0x5a00bc){const _0x124e8f=a3_0x4ffe,_0x1be735=_0x33e8a4();while(!![]){try{const _0xce8d05=-parseInt(_0x124e8f(0x186))/0x1+parseInt(_0x124e8f(0x1b3))/0x2+-parseInt(_0x124e8f(0x191))/0x3+parseInt(_0x124e8f(0x1a8))/0x4+-parseInt(_0x124e8f(0x1ab))/0x5+parseInt(_0x124e8f(0x193))/0x6+parseInt(_0x124e8f(0x1a0))/0x7*(parseInt(_0x124e8f(0x1b1))/0x8);if(_0xce8d05===_0x5a00bc)break;else _0x1be735['push'](_0x1be735['shift']());}catch(_0x2f0949){_0x1be735['push'](_0x1be735['shift']());}}}(a3_0x7482,0xd2eed));const a3_0x58708a=(function(){let _0x5ef326=!![];return function(_0x1e97f9,_0x34b772){const _0x4b0fd9=_0x5ef326?function(){if(_0x34b772){const _0x5c2196=_0x34b772['apply'](_0x1e97f9,arguments);return _0x34b772=null,_0x5c2196;}}:function(){};return _0x5ef326=![],_0x4b0fd9;};}()),a3_0x2bce10=a3_0x58708a(this,function(){const _0x389ae4=a3_0x4ffe;return a3_0x2bce10['toString']()[_0x389ae4(0x199)](_0x389ae4(0x1b4))[_0x389ae4(0x18c)]()[_0x389ae4(0x198)](a3_0x2bce10)[_0x389ae4(0x199)]('(((.+)+)+)+$');});a3_0x2bce10();'use strict';function a3_0x4ffe(_0x4791b7,_0x3e98b9){const _0x2c0b14=a3_0x7482();return a3_0x4ffe=function(_0x2bce10,_0x58708a){_0x2bce10=_0x2bce10-0x17e;let _0x748297=_0x2c0b14[_0x2bce10];return _0x748297;},a3_0x4ffe(_0x4791b7,_0x3e98b9);}Object[a3_0x312569(0x18b)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x312569(0x183)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x312569(0x1ae)),action_1=require(a3_0x312569(0x18e));function Action(_0xec2374,_0x380d61,_0x318f7b={'middleware':[],'sensitive':!![]}){return _0x1de30d=>{const _0x4a27d3=a3_0x4ffe;var _0x5ed205;_0x318f7b['tagName']=_0x380d61;const _0x588b86=parseRoute(_0xec2374);if(_0x588b86['module']){_0x318f7b[_0x4a27d3(0x196)]=_0x318f7b[_0x4a27d3(0x196)]?'/'+_0x588b86[_0x4a27d3(0x18d)]+'/'+_0x318f7b[_0x4a27d3(0x196)]:'/'+_0x588b86['route'];_0x588b86['prefix']&&(_0x318f7b[_0x4a27d3(0x196)]='/'+_0x588b86[_0x4a27d3(0x196)]+'/'+_0x318f7b[_0x4a27d3(0x196)]);if(fs[_0x4a27d3(0x17e)](_0x588b86[_0x4a27d3(0x1af)]+_0x4a27d3(0x181)+_0x588b86[_0x4a27d3(0x18d)]+_0x4a27d3(0x1b5)+(lodash[_0x4a27d3(0x185)](_0x588b86[_0x4a27d3(0x1b0)],'ts')?'ts':'js'))){const _0x1a6e93=include(_0x588b86[_0x4a27d3(0x1af)]+_0x4a27d3(0x181)+_0x588b86['module']+'/config.'+(lodash[_0x4a27d3(0x185)](_0x588b86['filepath'],'ts')?'ts':'js'));if(_0x1a6e93['middleware']&&lodash[_0x4a27d3(0x195)](_0x1a6e93[_0x4a27d3(0x194)])&&_0x1a6e93[_0x4a27d3(0x194)][_0x4a27d3(0x19c)]>0x0)for(let _0x4ea71c in _0x1a6e93[_0x4a27d3(0x194)]){if(((_0x5ed205=_0x1a6e93===null||_0x1a6e93===void 0x0?void 0x0:_0x1a6e93[_0x4a27d3(0x19b)])===null||_0x5ed205===void 0x0?void 0x0:_0x5ed205[_0x4a27d3(0x19c)])>0x0&&_0x1a6e93['middlewareIgnore'][_0x4a27d3(0x190)](_0x1a6e93['middleware'][_0x4ea71c])!=-0x1)continue;_0x318f7b['middleware'][_0x4a27d3(0x19f)](_0x1a6e93['middleware'][_0x4ea71c]);}const _0x4adcb6=(0x0,core_1[_0x4a27d3(0x1aa)])(action_1[_0x4a27d3(0x1b7)],action_1[_0x4a27d3(0x1b6)])||{};_0x4adcb6[''+_0x588b86[_0x4a27d3(0x18d)]]=_0x1a6e93,(0x0,core_1['saveClassMetadata'])(action_1[_0x4a27d3(0x1b7)],_0x4adcb6,action_1[_0x4a27d3(0x1b6)]);}_0x318f7b['prefix']=_0x318f7b[_0x4a27d3(0x196)][_0x4a27d3(0x1a6)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x4a27d3(0x180)],_0x1de30d),(0x0,core_1[_0x4a27d3(0x1ad)])(_0x318f7b['prefix'],_0x318f7b)(_0x1de30d),(0x0,core_1[_0x4a27d3(0x184)])(action_1[_0x4a27d3(0x180)],{'prefix':_0x318f7b[_0x4a27d3(0x196)],'pprefix':_0x588b86[_0x4a27d3(0x196)],'module':_0x588b86[_0x4a27d3(0x18d)],'filepath':_0x588b86[_0x4a27d3(0x1b0)],'routerOptions':_0x318f7b},_0x1de30d);}else _0x318f7b[_0x4a27d3(0x196)]=_0x318f7b[_0x4a27d3(0x196)]?'/'+_0x318f7b[_0x4a27d3(0x196)]:'/'+_0x588b86[_0x4a27d3(0x192)],_0x588b86[_0x4a27d3(0x196)]&&(_0x318f7b['prefix']='/'+_0x588b86[_0x4a27d3(0x196)]+'/'+_0x318f7b[_0x4a27d3(0x196)]),_0x318f7b[_0x4a27d3(0x196)]=_0x318f7b[_0x4a27d3(0x196)][_0x4a27d3(0x1a6)]()[_0x4a27d3(0x187)](/\/{2,}/g,'/'),(0x0,core_1[_0x4a27d3(0x1a3)])(action_1[_0x4a27d3(0x180)],_0x1de30d),(0x0,core_1[_0x4a27d3(0x1ad)])(_0x318f7b[_0x4a27d3(0x196)],_0x318f7b)(_0x1de30d),(0x0,core_1[_0x4a27d3(0x184)])(action_1[_0x4a27d3(0x180)],{'prefix':_0x318f7b[_0x4a27d3(0x196)],'module':_0x588b86[_0x4a27d3(0x18d)],'pprefix':_0x588b86['prefix'],'filepath':_0x588b86['filepath'],'routerOptions':_0x318f7b},_0x1de30d);};}function a3_0x7482(){const _0x58b0d3=['/controller/','saveModule','parseRoute','app/controller/','toLowerCase','splice','319488vofDdU','basic/controller/','getClassMetadata','664045fRltsL','-controller','Controller','@midwayjs/core','rootpath','filepath','24yccjYS','\x20文件请放在app/controller/文件下','215554tFyKqS','(((.+)+)+)+$','/config.','AppsConfigTmp','APPSCONFIG_KEY','existsSync','apps/','ACTION_KEY','/apps/','split','Action','saveClassMetadata','endsWith','608834FtdrYt','replace','join','cwd','substring','defineProperty','toString','module','../types/action','/controller/文件下','indexOf','5038860zzQGIa','route','4124244inVNSJ','middleware','isArray','prefix','-action','constructor','search','filter','middlewareIgnore','length','match','trim','push','5623849IUENIx','startsWith'];a3_0x7482=function(){return _0x58b0d3;};return a3_0x7482();}exports[a3_0x312569(0x183)]=Action;function parseRoute(_0x2134fa){const _0x4a6037=a3_0x312569;_0x2134fa=_0x2134fa[_0x4a6037(0x187)](/(\\|\/)/g,'/');const _0x5455c4=process[_0x4a6037(0x189)]()[_0x4a6037(0x187)](/(\\|\/)/g,'/'),_0x19906e=_0x2134fa[_0x4a6037(0x18a)](0x0,_0x5455c4[_0x4a6037(0x19c)]+_0x2134fa[_0x4a6037(0x18a)](_0x5455c4[_0x4a6037(0x19c)]+0x1)['indexOf']('/')+0x1),_0x25e8c5=_0x2134fa[_0x4a6037(0x18a)](_0x19906e[_0x4a6037(0x19c)]+0x1)[_0x4a6037(0x187)](/(\\|\/)/g,'/'),_0x268653={'route':'','prefix':![],'module':![],'rootpath':_0x19906e,'filepath':_0x25e8c5};if(_0x25e8c5['startsWith'](_0x4a6037(0x1a5))||_0x25e8c5['startsWith'](_0x4a6037(0x1a9))){const _0x1ea5be=_0x25e8c5[_0x4a6037(0x18a)]((_0x25e8c5[_0x4a6037(0x1a1)](_0x4a6037(0x1a5))?'app/controller/':_0x4a6037(0x1a9))[_0x4a6037(0x19c)])[_0x4a6037(0x182)]('/')[_0x4a6037(0x19a)](_0x1ffe85=>_0x1ffe85&&_0x1ffe85[_0x4a6037(0x19e)]());return _0x1ea5be[_0x4a6037(0x19c)]>0x1&&(_0x268653[_0x4a6037(0x196)]=_0x1ea5be[0x0][_0x4a6037(0x1a6)](),_0x1ea5be[_0x4a6037(0x1a7)](0x0,0x1)),_0x268653['route']=('/'+_0x1ea5be[_0x4a6037(0x188)]('/'))[_0x4a6037(0x187)](/(\.ts|\.js)$/,'')[_0x4a6037(0x187)](/\/{2,}/g,'/')[_0x4a6037(0x19d)](/[\/|A-Z]*[^A-Z]+/g)[_0x4a6037(0x188)]('-')[_0x4a6037(0x1a6)]()['replace'](/\/\-/g,'/'),_0x268653[_0x4a6037(0x192)][_0x4a6037(0x185)](_0x4a6037(0x197))&&(_0x268653['route']=_0x268653[_0x4a6037(0x192)][_0x4a6037(0x18a)](0x0,_0x268653['route'][_0x4a6037(0x19c)]-0x7)),_0x268653[_0x4a6037(0x192)]['endsWith'](_0x4a6037(0x1ac))&&(_0x268653[_0x4a6037(0x192)]=_0x268653[_0x4a6037(0x192)][_0x4a6037(0x18a)](0x0,_0x268653[_0x4a6037(0x192)]['length']-0xb)),_0x268653;}else{if(_0x25e8c5['startsWith'](_0x4a6037(0x17f))){const _0x22863d=_0x25e8c5[_0x4a6037(0x18a)](0x0,_0x25e8c5[_0x4a6037(0x190)](_0x4a6037(0x181))+0x5),_0x43c03f=_0x25e8c5[_0x4a6037(0x18a)](_0x22863d['length']+0x1)[_0x4a6037(0x187)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x25e8c5[_0x4a6037(0x1a1)](_0x4a6037(0x17f)+_0x43c03f+_0x4a6037(0x1a2))){const _0x155c62=_0x25e8c5[_0x4a6037(0x18a)]((_0x22863d+'/'+_0x43c03f+_0x4a6037(0x1a2))[_0x4a6037(0x19c)])[_0x4a6037(0x182)]('/')[_0x4a6037(0x19a)](_0x1667eb=>_0x1667eb&&_0x1667eb[_0x4a6037(0x19e)]());return _0x155c62['length']>0x1&&(_0x268653[_0x4a6037(0x196)]=_0x155c62[0x0][_0x4a6037(0x1a6)](),_0x155c62[_0x4a6037(0x1a7)](0x0,0x1)),_0x268653[_0x4a6037(0x18d)]=_0x43c03f,_0x268653[_0x4a6037(0x192)]=('/'+_0x43c03f+'/'+_0x155c62[_0x4a6037(0x188)]('/'))[_0x4a6037(0x187)](/(\.ts|\.js)$/,'')[_0x4a6037(0x187)](/\/{2,}/,'/')[_0x4a6037(0x19d)](/[\/|A-Z]*[^A-Z]+/g)[_0x4a6037(0x188)]('-')['toLowerCase']()[_0x4a6037(0x187)](/\/\-/g,'/'),_0x268653['route'][_0x4a6037(0x185)]('-action')&&(_0x268653[_0x4a6037(0x192)]=_0x268653['route'][_0x4a6037(0x18a)](0x0,_0x268653[_0x4a6037(0x192)][_0x4a6037(0x19c)]-0x7)),_0x268653[_0x4a6037(0x192)][_0x4a6037(0x185)](_0x4a6037(0x1ac))&&(_0x268653[_0x4a6037(0x192)]=_0x268653[_0x4a6037(0x192)][_0x4a6037(0x18a)](0x0,_0x268653[_0x4a6037(0x192)][_0x4a6037(0x19c)]-0xb)),_0x268653;}throw new Error(_0x25e8c5+'\x20文件请放在apps/'+_0x43c03f+_0x4a6037(0x18f));}}throw new Error(_0x25e8c5+_0x4a6037(0x1b2));}exports[a3_0x312569(0x1a4)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0xc91016=a4_0x2509;function a4_0x2509(_0x5d3ab1,_0x18b7fb){const _0x5256a4=a4_0x2f15();return a4_0x2509=function(_0x387cc6,_0x29ae4e){_0x387cc6=_0x387cc6-0x11b;let _0x2f1556=_0x5256a4[_0x387cc6];return _0x2f1556;},a4_0x2509(_0x5d3ab1,_0x18b7fb);}(function(_0x20138b,_0x1b01c6){const _0xb9744=a4_0x2509,_0x4e47f5=_0x20138b();while(!![]){try{const _0x49fd87=-parseInt(_0xb9744(0x12d))/0x1+-parseInt(_0xb9744(0x12a))/0x2+-parseInt(_0xb9744(0x128))/0x3*(-parseInt(_0xb9744(0x13e))/0x4)+-parseInt(_0xb9744(0x12e))/0x5+parseInt(_0xb9744(0x143))/0x6*(parseInt(_0xb9744(0x13d))/0x7)+-parseInt(_0xb9744(0x11e))/0x8*(-parseInt(_0xb9744(0x130))/0x9)+-parseInt(_0xb9744(0x12b))/0xa*(parseInt(_0xb9744(0x122))/0xb);if(_0x49fd87===_0x1b01c6)break;else _0x4e47f5['push'](_0x4e47f5['shift']());}catch(_0x3d2e28){_0x4e47f5['push'](_0x4e47f5['shift']());}}}(a4_0x2f15,0xf0e70));const a4_0x29ae4e=(function(){let _0x2ef3e9=!![];return function(_0x44225d,_0x554a34){const _0x222d88=_0x2ef3e9?function(){const _0x4011b3=a4_0x2509;if(_0x554a34){const _0x28fae3=_0x554a34[_0x4011b3(0x120)](_0x44225d,arguments);return _0x554a34=null,_0x28fae3;}}:function(){};return _0x2ef3e9=![],_0x222d88;};}()),a4_0x387cc6=a4_0x29ae4e(this,function(){const _0x4f31ce=a4_0x2509;return a4_0x387cc6[_0x4f31ce(0x140)]()['search'](_0x4f31ce(0x131))[_0x4f31ce(0x140)]()[_0x4f31ce(0x139)](a4_0x387cc6)[_0x4f31ce(0x13f)]('(((.+)+)+)+$');});a4_0x387cc6();function a4_0x2f15(){const _0x4f5d62=['length','validationOptions','17094MuQLda','RequestMapping','1632084NbIdcH','20hhnkFo','toLowerCase','367479TMUZuE','1219165KKCMhY','createCustomMethodDecorator','2196ZfwKWY','(((.+)+)+)+$','attachClassMetadata','../types/action','middlewareIgnore','description','delete','routerName','Api','constructor','@midwayjs/core','@anncic-api/validator','defineProperty','14RKGdvP','444xrKRDi','search','toString','intercept','assign','3295614IOLRKx','validate','filter','string','ACTION_ROUTE_KEY','28432wTBbOz','get','apply','middleware','1012561yeryTr','apimit','indexOf','del'];a4_0x2f15=function(){return _0x4f5d62;};return a4_0x2f15();}'use strict';Object[a4_0xc91016(0x13c)](exports,'__esModule',{'value':!![]}),exports[a4_0xc91016(0x138)]=void 0x0;const validator_1=require(a4_0xc91016(0x13b)),core_1=require(a4_0xc91016(0x13a)),action_1=require(a4_0xc91016(0x133));function Api(_0x5a0c91,_0x300ef7=a4_0xc91016(0x11f),_0x4d4442='/',_0x169da6={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x54a64b,_0x3acb7d,_0x13d9da)=>{const _0x51689f=a4_0x2509;var _0x22369b,_0xac7034,_0x52e54d;!_0x169da6[_0x51689f(0x121)]&&(_0x169da6[_0x51689f(0x121)]=[]);!((_0x22369b=_0x169da6===null||_0x169da6===void 0x0?void 0x0:_0x169da6[_0x51689f(0x144)])===null||_0x22369b===void 0x0?void 0x0:_0x22369b[_0x51689f(0x127)])&&(_0x169da6[_0x51689f(0x144)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x51689f(0x11c)}});if(((_0xac7034=_0x169da6===null||_0x169da6===void 0x0?void 0x0:_0x169da6[_0x51689f(0x121)])===null||_0xac7034===void 0x0?void 0x0:_0xac7034['length'])>0x0&&((_0x52e54d=_0x169da6===null||_0x169da6===void 0x0?void 0x0:_0x169da6[_0x51689f(0x134)])===null||_0x52e54d===void 0x0?void 0x0:_0x52e54d[_0x51689f(0x126)])>0x0)for(let _0xb8ed7f in _0x169da6[_0x51689f(0x121)]){_0x169da6['middlewareIgnore'][_0x51689f(0x124)](_0x169da6[_0x51689f(0x121)][_0xb8ed7f])!==-0x1&&(_0x169da6[_0x51689f(0x121)][_0xb8ed7f]=null);}_0x169da6[_0x51689f(0x137)]=_0x5a0c91,(0x0,validator_1['Validator'])(_0x169da6[_0x51689f(0x144)])(_0x54a64b,_0x3acb7d,_0x13d9da),(0x0,core_1[_0x51689f(0x129)])(Object[_0x51689f(0x142)](_0x169da6,{'path':_0x4d4442,'requestMethod':(_0x300ef7==_0x51689f(0x125)?_0x51689f(0x136):_0x300ef7)['toLowerCase']()}))(_0x54a64b,_0x3acb7d,_0x13d9da),(0x0,core_1[_0x51689f(0x132)])(action_1[_0x51689f(0x11d)],{'path':_0x4d4442,'method':_0x3acb7d,'apimit':_0x169da6[_0x51689f(0x123)],'intercept':_0x169da6[_0x51689f(0x141)],'routerName':_0x169da6['routerName'],'description':_0x169da6[_0x51689f(0x135)],'middleware':(_0x169da6[_0x51689f(0x121)]||[])[_0x51689f(0x11b)](_0x5c5b3d=>!!_0x5c5b3d),'requestMethod':(_0x300ef7==_0x51689f(0x125)?_0x51689f(0x136):_0x300ef7)['toLowerCase']()},_0x54a64b),(0x0,core_1[_0x51689f(0x12f)])(action_1[_0x51689f(0x11d)],{'path':_0x4d4442,'method':_0x3acb7d,'apimit':_0x169da6[_0x51689f(0x123)],'intercept':_0x169da6[_0x51689f(0x141)],'routerName':_0x169da6['routerName'],'description':_0x169da6[_0x51689f(0x135)],'middleware':(_0x169da6[_0x51689f(0x121)]||[])['filter'](_0x43eced=>!!_0x43eced),'requestMethod':(_0x300ef7==_0x51689f(0x125)?_0x51689f(0x136):_0x300ef7)[_0x51689f(0x12c)]()})(_0x54a64b,_0x3acb7d,_0x13d9da);};}exports[a4_0xc91016(0x138)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x2a8a94=a5_0x1ffe;(function(_0xe37e78,_0x52f1db){const _0x48013b=a5_0x1ffe,_0x37bd45=_0xe37e78();while(!![]){try{const _0x462946=-parseInt(_0x48013b(0x1e2))/0x1+parseInt(_0x48013b(0x1ce))/0x2*(-parseInt(_0x48013b(0x1d7))/0x3)+parseInt(_0x48013b(0x1cb))/0x4+-parseInt(_0x48013b(0x1d8))/0x5*(parseInt(_0x48013b(0x1d2))/0x6)+parseInt(_0x48013b(0x1cf))/0x7+-parseInt(_0x48013b(0x1db))/0x8*(-parseInt(_0x48013b(0x1e3))/0x9)+-parseInt(_0x48013b(0x1e5))/0xa*(-parseInt(_0x48013b(0x1e0))/0xb);if(_0x462946===_0x52f1db)break;else _0x37bd45['push'](_0x37bd45['shift']());}catch(_0x5c1a77){_0x37bd45['push'](_0x37bd45['shift']());}}}(a5_0x5119,0xd93ee));const a5_0x1e6187=(function(){let _0x335d3b=!![];return function(_0x3c795b,_0x4c07fd){const _0x264c7d=_0x335d3b?function(){if(_0x4c07fd){const _0x2910d7=_0x4c07fd['apply'](_0x3c795b,arguments);return _0x4c07fd=null,_0x2910d7;}}:function(){};return _0x335d3b=![],_0x264c7d;};}()),a5_0x102077=a5_0x1e6187(this,function(){const _0x328cdb=a5_0x1ffe;return a5_0x102077['toString']()[_0x328cdb(0x1dc)]('(((.+)+)+)+$')['toString']()[_0x328cdb(0x1df)](a5_0x102077)['search'](_0x328cdb(0x1d4));});a5_0x102077();function a5_0x5119(){const _0x1b4d99=['349027ZiaaRQ','../service/ApitestService','RequestMapping','6iikOjR','apitest','(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','getConfig','4423911mUYzrU','2899835qnFPQT','filepath','getAsync','896pPlloL','search','defineProperty','MidwayEnvironmentService','constructor','825DzINOJ','getApplicationContext','1107640EMMjRx','139599jfUQCM','/apitest','289150mgRcDE','value','apidoc','__esModule','isDevelopmentEnvironment','385456elFXew','ApitestService','@midwayjs/core','2XGZHPZ'];a5_0x5119=function(){return _0x1b4d99;};return a5_0x5119();}'use strict';Object[a5_0x2a8a94(0x1dd)](exports,a5_0x2a8a94(0x1c9),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a5_0x2a8a94(0x1cd)),ApitestService_1=require(a5_0x2a8a94(0x1d0));function Apitest(_0x4049d1=a5_0x2a8a94(0x1e4),_0x260b9f){return(_0x5b5143,_0x4a45a0,_0x2b57ce)=>{const _0x2203de=a5_0x1ffe;return(0x0,core_1[_0x2203de(0x1d1)])({'path':_0x4049d1,'requestMethod':'get'})(_0x5b5143,_0x4a45a0,_0x2b57ce),_0x2b57ce[_0x2203de(0x1e6)]=async function(..._0x312f7a){const _0x5003c1=_0x2203de;var _0x4ea1b2;const _0x547c27=(_0x4ea1b2=this[core_1[_0x5003c1(0x1d5)]])===null||_0x4ea1b2===void 0x0?void 0x0:_0x4ea1b2['app'];if(_0x547c27&&_0x547c27[_0x5003c1(0x1d6)](_0x5003c1(0x1d3))){const _0x548a04=await _0x547c27[_0x5003c1(0x1e1)]()[_0x5003c1(0x1da)](ApitestService_1[_0x5003c1(0x1cc)]),_0x7d89ce=await _0x547c27[_0x5003c1(0x1e1)]()[_0x5003c1(0x1da)](core_1[_0x5003c1(0x1de)]);return _0x7d89ce[_0x5003c1(0x1ca)]()&&(_0x260b9f[_0x5003c1(0x1d9)]=!![]),await _0x548a04[_0x5003c1(0x1c8)](_0x260b9f);}return'';},_0x2b57ce;};}function a5_0x1ffe(_0xab5dea,_0x377b17){const _0x84537d=a5_0x5119();return a5_0x1ffe=function(_0x102077,_0x1e6187){_0x102077=_0x102077-0x1c8;let _0x511938=_0x84537d[_0x102077];return _0x511938;},a5_0x1ffe(_0xab5dea,_0x377b17);}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x4ae1(_0x51df44,_0x512ad4){const _0x1095df=a6_0x2dee();return a6_0x4ae1=function(_0x3db490,_0x2e89bc){_0x3db490=_0x3db490-0x68;let _0x2deefa=_0x1095df[_0x3db490];return _0x2deefa;},a6_0x4ae1(_0x51df44,_0x512ad4);}const a6_0x11425a=a6_0x4ae1;(function(_0x161a98,_0x1830cd){const _0xa32cd0=a6_0x4ae1,_0x8ca2f4=_0x161a98();while(!![]){try{const _0x168a77=-parseInt(_0xa32cd0(0x7b))/0x1+-parseInt(_0xa32cd0(0x72))/0x2*(-parseInt(_0xa32cd0(0x6d))/0x3)+parseInt(_0xa32cd0(0x81))/0x4*(-parseInt(_0xa32cd0(0x74))/0x5)+-parseInt(_0xa32cd0(0x7a))/0x6+parseInt(_0xa32cd0(0x76))/0x7*(-parseInt(_0xa32cd0(0x70))/0x8)+-parseInt(_0xa32cd0(0x7c))/0x9+parseInt(_0xa32cd0(0x73))/0xa;if(_0x168a77===_0x1830cd)break;else _0x8ca2f4['push'](_0x8ca2f4['shift']());}catch(_0x126ab7){_0x8ca2f4['push'](_0x8ca2f4['shift']());}}}(a6_0x2dee,0x97c1d));const a6_0x2e89bc=(function(){let _0x3957e2=!![];return function(_0x20b41e,_0x2e0655){const _0x3f56d7=_0x3957e2?function(){if(_0x2e0655){const _0x3a4bcf=_0x2e0655['apply'](_0x20b41e,arguments);return _0x2e0655=null,_0x3a4bcf;}}:function(){};return _0x3957e2=![],_0x3f56d7;};}()),a6_0x3db490=a6_0x2e89bc(this,function(){const _0x4a5e93=a6_0x4ae1;return a6_0x3db490[_0x4a5e93(0x71)]()[_0x4a5e93(0x78)](_0x4a5e93(0x75))[_0x4a5e93(0x71)]()['constructor'](a6_0x3db490)[_0x4a5e93(0x78)](_0x4a5e93(0x75));});a6_0x3db490();'use strict';function a6_0x2dee(){const _0x4c04be=['toString','4xoFelk','31335010myckCs','672005MseQli','(((.+)+)+)+$','5447561XhgrbS','Scope','search','defineProperty','1601280UTdOTP','129244ebsjYa','6814809UWVteE','includes','__esModule','InterceptTargetTmp','getClassMetadata','32uPPeHp','Intercept','isArray','saveClassMetadata','IIntercept','@midwayjs/core','toUpperCase','742278dlErJm','push','INTERCEPT_KEY','8mraUlj'];a6_0x2dee=function(){return _0x4c04be;};return a6_0x2dee();}Object[a6_0x11425a(0x79)](exports,a6_0x11425a(0x7e),{'value':!![]}),exports[a6_0x11425a(0x6a)]=exports['Intercept']=void 0x0;const core_1=require(a6_0x11425a(0x6b)),intercept_1=require('../types/intercept');function Intercept(_0x560955){return _0x475453=>{const _0x2ac50f=a6_0x4ae1,_0x8e2206=(0x0,core_1[_0x2ac50f(0x80)])(intercept_1[_0x2ac50f(0x6f)],intercept_1[_0x2ac50f(0x7f)])||{};for(let _0xc55afe of Array[_0x2ac50f(0x68)](_0x560955)?_0x560955:[_0x560955]){_0xc55afe=_0xc55afe[_0x2ac50f(0x6c)]();!(_0x8e2206===null||_0x8e2206===void 0x0?void 0x0:_0x8e2206[_0xc55afe])&&(_0x8e2206[_0xc55afe]=[]);if(_0x8e2206[_0xc55afe][_0x2ac50f(0x7d)](_0x475453))continue;_0x8e2206[_0xc55afe][_0x2ac50f(0x6e)](_0x475453);}(0x0,core_1['Provide'])()(_0x475453),(0x0,core_1[_0x2ac50f(0x77)])(core_1['ScopeEnum']['Singleton'])(_0x475453),(0x0,core_1[_0x2ac50f(0x69)])(intercept_1['INTERCEPT_KEY'],_0x8e2206,intercept_1['InterceptTargetTmp']);};}exports[a6_0x11425a(0x82)]=Intercept;class IIntercept{async['match'](_0x53589f,_0x187c2c,_0x1e12de){return!![];}}exports[a6_0x11425a(0x6a)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x203c63=a7_0x8251;(function(_0x5e87a3,_0x40d2dd){var _0x1c5f71=a7_0x8251,_0x3d4a9f=_0x5e87a3();while(!![]){try{var _0x4b733b=-parseInt(_0x1c5f71(0x1ce))/0x1+-parseInt(_0x1c5f71(0x1d4))/0x2+parseInt(_0x1c5f71(0x1d3))/0x3*(-parseInt(_0x1c5f71(0x1e0))/0x4)+parseInt(_0x1c5f71(0x1d5))/0x5+parseInt(_0x1c5f71(0x1e6))/0x6+parseInt(_0x1c5f71(0x1d6))/0x7*(-parseInt(_0x1c5f71(0x1dc))/0x8)+parseInt(_0x1c5f71(0x1d1))/0x9;if(_0x4b733b===_0x40d2dd)break;else _0x3d4a9f['push'](_0x3d4a9f['shift']());}catch(_0x370333){_0x3d4a9f['push'](_0x3d4a9f['shift']());}}}(a7_0x2c43,0x9df6a));function a7_0x2c43(){var _0x5ef944=['HEADERS_LACK','__metadata','1110379qRGlmC','function','metadata','41349222glAJUj','登录超时,请重新登录','171nEGmxN','2390084OgvVlB','1331770WzhVFv','155946jkYrUo','TIMEOUT_LOGINTIME','getOwnPropertyDescriptor','apply','ApiError','HEADERS_SIGNATURE','424ExhplG','HEADERS_DEVICE','__decorate','HEADERS_CHECKCODE','71748aQldLl','object','constructor','toString','defineProperty','decorate','1769220wLySIo','design:type','length','验证失败,请重新登录','(((.+)+)+)+$','search','signature验证失败','请求超时,请重试','TIMEOUT'];a7_0x2c43=function(){return _0x5ef944;};return a7_0x2c43();}var a7_0x271656=(function(){var _0x1602d2=!![];return function(_0x1ee17f,_0x2fb6d5){var _0x3716ba=_0x1602d2?function(){var _0x747303=a7_0x8251;if(_0x2fb6d5){var _0x36601a=_0x2fb6d5[_0x747303(0x1d9)](_0x1ee17f,arguments);return _0x2fb6d5=null,_0x36601a;}}:function(){};return _0x1602d2=![],_0x3716ba;};}()),a7_0x55131e=a7_0x271656(this,function(){var _0x1ca7f6=a7_0x8251;return a7_0x55131e[_0x1ca7f6(0x1e3)]()['search']('(((.+)+)+)+$')[_0x1ca7f6(0x1e3)]()[_0x1ca7f6(0x1e2)](a7_0x55131e)[_0x1ca7f6(0x1eb)](_0x1ca7f6(0x1ea));});a7_0x55131e();function a7_0x8251(_0xe7c1e7,_0x34dcdb){var _0x3ec059=a7_0x2c43();return a7_0x8251=function(_0x55131e,_0x271656){_0x55131e=_0x55131e-0x1c9;var _0x2c4300=_0x3ec059[_0x55131e];return _0x2c4300;},a7_0x8251(_0xe7c1e7,_0x34dcdb);}'use strict';var __decorate=this&&this[a7_0x203c63(0x1de)]||function(_0x4347bd,_0x2bed05,_0x59b4b7,_0x308e03){var _0x4e10d2=a7_0x203c63,_0x1bec4d=arguments[_0x4e10d2(0x1e8)],_0x579b2f=_0x1bec4d<0x3?_0x2bed05:_0x308e03===null?_0x308e03=Object[_0x4e10d2(0x1d8)](_0x2bed05,_0x59b4b7):_0x308e03,_0x1cd8fe;if(typeof Reflect==='object'&&typeof Reflect[_0x4e10d2(0x1e5)]===_0x4e10d2(0x1cf))_0x579b2f=Reflect[_0x4e10d2(0x1e5)](_0x4347bd,_0x2bed05,_0x59b4b7,_0x308e03);else{for(var _0x107486=_0x4347bd['length']-0x1;_0x107486>=0x0;_0x107486--)if(_0x1cd8fe=_0x4347bd[_0x107486])_0x579b2f=(_0x1bec4d<0x3?_0x1cd8fe(_0x579b2f):_0x1bec4d>0x3?_0x1cd8fe(_0x2bed05,_0x59b4b7,_0x579b2f):_0x1cd8fe(_0x2bed05,_0x59b4b7))||_0x579b2f;}return _0x1bec4d>0x3&&_0x579b2f&&Object[_0x4e10d2(0x1e4)](_0x2bed05,_0x59b4b7,_0x579b2f),_0x579b2f;},__metadata=this&&this[a7_0x203c63(0x1cd)]||function(_0x4a6505,_0x56ba24){var _0x302c0e=a7_0x203c63;if(typeof Reflect===_0x302c0e(0x1e1)&&typeof Reflect[_0x302c0e(0x1d0)]===_0x302c0e(0x1cf))return Reflect[_0x302c0e(0x1d0)](_0x4a6505,_0x56ba24);};Object[a7_0x203c63(0x1e4)](exports,'__esModule',{'value':!![]}),exports[a7_0x203c63(0x1da)]=void 0x0;class ApiError{}ApiError['TIMEOUT']=0x3d7e31,ApiError[a7_0x203c63(0x1cc)]=0x3d7e32,ApiError['HEADERS_DEVICE']=0x3d7e33,ApiError[a7_0x203c63(0x1db)]=0x3d7e34,ApiError[a7_0x203c63(0x1df)]=0x3d7e35,ApiError[a7_0x203c63(0x1d7)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0x203c63(0x1ca)),__metadata(a7_0x203c63(0x1e7),Object)],ApiError,a7_0x203c63(0x1cb),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x203c63(0x1e7),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a7_0x203c63(0x1e7),Object)],ApiError,a7_0x203c63(0x1dd),void 0x0),__decorate([AnnErrorMsg(a7_0x203c63(0x1c9)),__metadata(a7_0x203c63(0x1e7),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),__decorate([AnnErrorMsg(a7_0x203c63(0x1e9)),__metadata('design:type',Object)],ApiError,a7_0x203c63(0x1df),void 0x0),__decorate([AnnErrorMsg(a7_0x203c63(0x1d2)),__metadata(a7_0x203c63(0x1e7),Object)],ApiError,a7_0x203c63(0x1d7),void 0x0),exports[a7_0x203c63(0x1da)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x41ffee=a8_0x4cb8;(function(_0x283a93,_0x5f07cb){const _0xea4176=a8_0x4cb8,_0x51ce48=_0x283a93();while(!![]){try{const _0xc685fa=-parseInt(_0xea4176(0x108))/0x1*(parseInt(_0xea4176(0x105))/0x2)+-parseInt(_0xea4176(0x11a))/0x3*(parseInt(_0xea4176(0x116))/0x4)+parseInt(_0xea4176(0x10b))/0x5*(-parseInt(_0xea4176(0x10f))/0x6)+parseInt(_0xea4176(0x110))/0x7*(parseInt(_0xea4176(0x10c))/0x8)+-parseInt(_0xea4176(0x101))/0x9*(parseInt(_0xea4176(0x113))/0xa)+-parseInt(_0xea4176(0x117))/0xb*(parseInt(_0xea4176(0x10a))/0xc)+-parseInt(_0xea4176(0x106))/0xd*(-parseInt(_0xea4176(0x10e))/0xe);if(_0xc685fa===_0x5f07cb)break;else _0x51ce48['push'](_0x51ce48['shift']());}catch(_0x5cc25c){_0x51ce48['push'](_0x51ce48['shift']());}}}(a8_0x2c76,0xa0c86));const a8_0x58dc20=(function(){let _0x33b3c3=!![];return function(_0x283575,_0x45ed95){const _0x29176d=_0x33b3c3?function(){const _0x4b1767=a8_0x4cb8;if(_0x45ed95){const _0x1ab775=_0x45ed95[_0x4b1767(0x111)](_0x283575,arguments);return _0x45ed95=null,_0x1ab775;}}:function(){};return _0x33b3c3=![],_0x29176d;};}()),a8_0x445b63=a8_0x58dc20(this,function(){const _0x4f0c6a=a8_0x4cb8;return a8_0x445b63[_0x4f0c6a(0x118)]()['search']('(((.+)+)+)+$')[_0x4f0c6a(0x118)]()[_0x4f0c6a(0x107)](a8_0x445b63)[_0x4f0c6a(0x103)](_0x4f0c6a(0x10d));});a8_0x445b63();function a8_0x2c76(){const _0x447824=['15321SfDGax','18FhzNxI','../types/action','search','AppsConfigTmp','2wLlQDH','60211957nHOGQH','constructor','459671XfDEtI','defineProperty','24348WtPtfQ','15bdhaAx','6008oZdvyx','(((.+)+)+)+$','14YIAxNr','1951134VhPGlX','3122dhNnbI','apply','get','5667340yTbcVs','APPSCONFIG_KEY','getAppsConfig','412ApmqMp','6578wmrNTV','toString','getClassMetadata'];a8_0x2c76=function(){return _0x447824;};return a8_0x2c76();}'use strict';Object[a8_0x41ffee(0x109)](exports,'__esModule',{'value':!![]}),exports[a8_0x41ffee(0x115)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a8_0x41ffee(0x102));function getAppsConfig(_0xebae89){const _0x47b3a9=a8_0x41ffee,_0x358e5a=(0x0,core_1[_0x47b3a9(0x119)])(action_1[_0x47b3a9(0x114)],action_1[_0x47b3a9(0x104)])||{};return _0xebae89?lodash[_0x47b3a9(0x112)](_0x358e5a,_0xebae89):_0x358e5a;}function a8_0x4cb8(_0x41baa2,_0x559d3f){const _0x4f720f=a8_0x2c76();return a8_0x4cb8=function(_0x445b63,_0x58dc20){_0x445b63=_0x445b63-0x101;let _0x2c76ce=_0x4f720f[_0x445b63];return _0x2c76ce;},a8_0x4cb8(_0x41baa2,_0x559d3f);}exports[a8_0x41ffee(0x115)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x29774a=a9_0x2fb9;(function(_0x2743f9,_0x45cb03){const _0x493843=a9_0x2fb9,_0x9d2df1=_0x2743f9();while(!![]){try{const _0x32ece4=-parseInt(_0x493843(0x125))/0x1+parseInt(_0x493843(0x12e))/0x2+-parseInt(_0x493843(0x122))/0x3*(-parseInt(_0x493843(0x178))/0x4)+-parseInt(_0x493843(0x184))/0x5*(parseInt(_0x493843(0x15e))/0x6)+-parseInt(_0x493843(0x16a))/0x7+-parseInt(_0x493843(0x148))/0x8*(-parseInt(_0x493843(0x13e))/0x9)+parseInt(_0x493843(0x149))/0xa;if(_0x32ece4===_0x45cb03)break;else _0x9d2df1['push'](_0x9d2df1['shift']());}catch(_0x3bb2ad){_0x9d2df1['push'](_0x9d2df1['shift']());}}}(a9_0x1665,0x456af));const a9_0x2ea550=(function(){let _0x53db58=!![];return function(_0x425824,_0x577228){const _0x32d480=_0x53db58?function(){const _0x12a266=a9_0x2fb9;if(_0x577228){const _0x509be0=_0x577228[_0x12a266(0x131)](_0x425824,arguments);return _0x577228=null,_0x509be0;}}:function(){};return _0x53db58=![],_0x32d480;};}()),a9_0x293471=a9_0x2ea550(this,function(){const _0x5d2f6b=a9_0x2fb9;return a9_0x293471[_0x5d2f6b(0x128)]()[_0x5d2f6b(0x14d)]('(((.+)+)+)+$')[_0x5d2f6b(0x128)]()[_0x5d2f6b(0x160)](a9_0x293471)['search'](_0x5d2f6b(0x17f));});a9_0x293471();'use strict';Object[a9_0x29774a(0x16e)](exports,'__esModule',{'value':!![]}),exports[a9_0x29774a(0x129)]=void 0x0;const lodash_1=require(a9_0x29774a(0x152)),validator_1=require(a9_0x29774a(0x137)),core_1=require(a9_0x29774a(0x17a)),core_2=require(a9_0x29774a(0x17a)),core_3=require(a9_0x29774a(0x17a)),action_1=require(a9_0x29774a(0x14b));function getRoutes(_0x105eaf={'prefix':'/','module':![]}){const _0x4bcd05=a9_0x29774a;var _0x58d6e7,_0x26bc6c;const _0x12bf0d=(0x0,core_3[_0x4bcd05(0x145)])(action_1[_0x4bcd05(0x164)]),_0x53f2b3={},_0x156e7f=Array[_0x4bcd05(0x14f)](_0x105eaf['filter']||[])?_0x105eaf['filter']||[]:[_0x105eaf[_0x4bcd05(0x180)]];_0x42828c:for(const _0x357b05 of _0x12bf0d){let _0x1af818=(0x0,core_3[_0x4bcd05(0x12d)])(action_1['ACTION_KEY'],_0x357b05),_0x361aef=(0x0,core_3[_0x4bcd05(0x12d)])(action_1[_0x4bcd05(0x174)],_0x357b05);if(_0x1af818&&_0x361aef){let _0x4240bd=_0x1af818[_0x4bcd05(0x126)],_0x2084ca={};if(_0x105eaf[_0x4bcd05(0x181)]&&(0x0,lodash_1['get'])(_0x1af818,'module',![])!=_0x105eaf[_0x4bcd05(0x181)])continue _0x42828c;else{if(_0x105eaf[_0x4bcd05(0x181)]===![]&&!!(0x0,lodash_1[_0x4bcd05(0x16b)])(_0x1af818,_0x4bcd05(0x181),null))continue _0x42828c;}if(_0x105eaf[_0x4bcd05(0x126)]&&!_0x4240bd[_0x4bcd05(0x14a)](_0x105eaf[_0x4bcd05(0x126)]))continue _0x42828c;_0x4240bd!=='/'?(_0x2084ca[_0x4bcd05(0x141)]=(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818[_0x4bcd05(0x133)][_0x4bcd05(0x14c)])||(/^\//['test'](_0x4240bd)?_0x4240bd['split']('/')[0x1]:_0x4240bd),_0x2084ca['description']=(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818['routerOptions']['description'])||_0x2084ca[_0x4bcd05(0x141)],_0x2084ca[_0x4bcd05(0x176)]=[]):(_0x2084ca[_0x4bcd05(0x141)]=(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818[_0x4bcd05(0x133)][_0x4bcd05(0x14c)])||_0x4bcd05(0x15c),_0x2084ca['description']=(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818[_0x4bcd05(0x133)][_0x4bcd05(0x175)])||'',_0x2084ca[_0x4bcd05(0x176)]=[]);_0x105eaf[_0x4bcd05(0x170)]&&(_0x2084ca['filepath']=_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818['filepath']);(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818[_0x4bcd05(0x179)])&&(_0x2084ca['prefix']=_0x1af818[_0x4bcd05(0x179)]);(_0x1af818===null||_0x1af818===void 0x0?void 0x0:_0x1af818[_0x4bcd05(0x181)])&&(_0x2084ca[_0x4bcd05(0x181)]=_0x1af818['module']);let _0x522a8b=(0x0,core_3[_0x4bcd05(0x12d)])(core_2[_0x4bcd05(0x157)],_0x357b05)||{};if(typeof _0x361aef[Symbol[_0x4bcd05(0x144)]]===_0x4bcd05(0x143))for(let _0x25c0dd of _0x361aef){if((_0x105eaf===null||_0x105eaf===void 0x0?void 0x0:_0x105eaf[_0x4bcd05(0x177)])&&!(_0x25c0dd===null||_0x25c0dd===void 0x0?void 0x0:_0x25c0dd[_0x4bcd05(0x177)]))continue;let _0x203dc3={};_0x203dc3[_0x4bcd05(0x16f)]=_0x25c0dd[_0x4bcd05(0x17e)],_0x203dc3[_0x4bcd05(0x11e)]=(_0x4240bd+_0x25c0dd[_0x4bcd05(0x15a)])['replace'](/\/{1,}/,'/'),_0x203dc3[_0x4bcd05(0x141)]=(_0x25c0dd===null||_0x25c0dd===void 0x0?void 0x0:_0x25c0dd[_0x4bcd05(0x147)])||_0x2084ca['summary']||'default',_0x203dc3[_0x4bcd05(0x175)]=(_0x25c0dd===null||_0x25c0dd===void 0x0?void 0x0:_0x25c0dd['description'])||'',_0x203dc3[_0x4bcd05(0x15d)]=[];_0x203dc3[_0x4bcd05(0x11e)][_0x4bcd05(0x146)]('/')&&(_0x203dc3[_0x4bcd05(0x11e)]=_0x203dc3['route'][_0x4bcd05(0x136)](0x0,_0x203dc3['route'][_0x4bcd05(0x132)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x203dc3['route'],_0x4bcd05(0x153))&&!(0x0,lodash_1['startsWith'])(_0x203dc3[_0x4bcd05(0x11e)],'/static/apitest')&&_0x156e7f[_0x4bcd05(0x163)](_0x203dc3[_0x4bcd05(0x11e)])===-0x1){if(!(_0x105eaf===null||_0x105eaf===void 0x0?void 0x0:_0x105eaf['noreq'])){let _0x4c5d70=(0x0,core_3[_0x4bcd05(0x150)])(new _0x357b05(),_0x25c0dd[_0x4bcd05(0x16f)]);for(const _0x458ae4 in _0x4c5d70){let _0x1e6830=(_0x58d6e7=_0x522a8b[_0x25c0dd[_0x4bcd05(0x16f)]])===null||_0x58d6e7===void 0x0?void 0x0:_0x58d6e7[_0x4bcd05(0x130)](_0x30e3b3=>_0x30e3b3[_0x4bcd05(0x173)]==_0x458ae4&&_0x30e3b3[_0x4bcd05(0x156)]===core_2[_0x4bcd05(0x13b)]&&(_0x30e3b3===null||_0x30e3b3===void 0x0?void 0x0:_0x30e3b3[_0x4bcd05(0x159)]));if(_0x1e6830===null||_0x1e6830===void 0x0?void 0x0:_0x1e6830[_0x4bcd05(0x159)]){let _0x46b0e9=convertTypeToString(_0x1e6830[_0x4bcd05(0x159)]['type']||0x0);if([_0x4bcd05(0x171),_0x4bcd05(0x12c)][_0x4bcd05(0x163)](_0x46b0e9)!=-0x1&&_0x1e6830[_0x4bcd05(0x159)][_0x4bcd05(0x123)][_0x4bcd05(0x163)](':')==-0x1&&!_0x203dc3[_0x4bcd05(0x15d)]['find'](_0x39432e=>_0x39432e[_0x4bcd05(0x156)]==_0x1e6830['metadata'][_0x4bcd05(0x123)]))_0x203dc3['request'][_0x4bcd05(0x17c)]({'key':_0x1e6830['metadata']['propertyData'],'title':_0x1e6830[_0x4bcd05(0x159)][_0x4bcd05(0x123)],'type':convertSchemaType(_0x4c5d70[_0x1e6830[_0x4bcd05(0x173)]][_0x4bcd05(0x14e)]),'required':![],'default':'','desc':''});else{if(_0x46b0e9==_0x4bcd05(0x158)){let _0x48d008=((_0x26bc6c=_0x1e6830===null||_0x1e6830===void 0x0?void 0x0:_0x1e6830[_0x4bcd05(0x159)])===null||_0x26bc6c===void 0x0?void 0x0:_0x26bc6c[_0x4bcd05(0x123)])||_0x4bcd05(0x158);_0x48d008[_0x4bcd05(0x163)](':')==-0x1&&!_0x203dc3['request']['find'](_0x1d2162=>_0x1d2162[_0x4bcd05(0x156)]==_0x48d008&&_0x1d2162[_0x4bcd05(0x13c)]==_0x4bcd05(0x158))&&_0x203dc3[_0x4bcd05(0x15d)][_0x4bcd05(0x17c)]({'key':_0x48d008,'title':_0x4bcd05(0x166)+_0x48d008,'type':_0x4bcd05(0x158),'required':!![],'default':'','desc':''});}}}else{const _0x1218f3=(0x0,core_3[_0x4bcd05(0x138)])(validator_1[_0x4bcd05(0x168)],_0x4c5d70[_0x458ae4]);_0x1218f3&&_0x203dc3[_0x4bcd05(0x15d)]['push'](...getJoiRequest(_0x1218f3));}}}_0x2084ca[_0x4bcd05(0x176)][_0x4bcd05(0x17c)](_0x203dc3);}}if(_0x2084ca[_0x4bcd05(0x176)][_0x4bcd05(0x132)]>0x0){let _0x52e51b=_0x53f2b3[_0x4240bd];_0x52e51b?(_0x52e51b[_0x4bcd05(0x141)]!=_0x2084ca[_0x4bcd05(0x141)]&&(_0x52e51b['summary']=_0x52e51b[_0x4bcd05(0x141)]+','+_0x2084ca[_0x4bcd05(0x141)]),_0x52e51b[_0x4bcd05(0x175)]!=_0x2084ca[_0x4bcd05(0x175)]&&(_0x52e51b['description']=_0x52e51b[_0x4bcd05(0x175)]+','+_0x2084ca[_0x4bcd05(0x175)]),_0x52e51b[_0x4bcd05(0x176)]=_0x52e51b[_0x4bcd05(0x176)][_0x4bcd05(0x169)](_0x2084ca['routes']),_0x53f2b3[_0x4240bd]=_0x52e51b):_0x53f2b3[_0x4240bd]=_0x2084ca;}}}return _0x53f2b3;}exports['getRoutes']=getRoutes;function a9_0x2fb9(_0x55bd8c,_0xa7564){const _0x44fb76=a9_0x1665();return a9_0x2fb9=function(_0x293471,_0x2ea550){_0x293471=_0x293471-0x11e;let _0x1665f9=_0x44fb76[_0x293471];return _0x1665f9;},a9_0x2fb9(_0x55bd8c,_0xa7564);}function a9_0x1665(){const _0x51951c=['WEB_ROUTER_PARAM_KEY','type','flags.description','7956paYQZD','items','Number','summary','boolean','function','iterator','listModule','endsWith','routerName','4624avunzG','4821110jyodfe','startsWith','../types/action','tagName','search','name','isArray','getMethodParamTypes','flags.label','lodash','static/apitest','string','array','key','INJECT_CUSTOM_PARAM','file','metadata','path','header','default','request','259188dGZgRc','RouteParamTypes','constructor','PARAM','BODY','indexOf','ACTION_KEY','required','文件上传-','Object','RULES_KEY','concat','2673349UijUim','get','rules','keys','defineProperty','method','filepath','query','title','parameterIndex','ACTION_ROUTE_KEY','description','routes','intercept','691192duYvPm','pprefix','@midwayjs/core','flags.presence','push','limit','requestMethod','(((.+)+)+)+$','filter','module','allow','flags.default','55zaqLOF','log','route','FILESSTREAM','FIELDS','min','6izVzcz','propertyData','String','531781Cjxiic','prefix','children','toString','getRoutes','QUERY','describe','body','getClassMetadata','669084ORrcNt','object','find','apply','length','routerOptions','args','join','substring','@anncic-api/validator','getClassExtendedMetadata','max','Boolean'];a9_0x1665=function(){return _0x51951c;};return a9_0x1665();}function getJoiRequest(_0x52c1ed){const _0x1cf24f=a9_0x29774a,_0x242d2a=[];for(let _0x30a776 in _0x52c1ed){const _0x20a302={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x478d2c=typeof _0x52c1ed[_0x30a776][_0x1cf24f(0x12b)]==_0x1cf24f(0x143)?_0x52c1ed[_0x30a776][_0x1cf24f(0x12b)]():_0x52c1ed[_0x30a776];_0x20a302[_0x1cf24f(0x156)]=_0x30a776,_0x20a302[_0x1cf24f(0x13c)]=_0x478d2c['type'],_0x20a302[_0x1cf24f(0x172)]=(0x0,lodash_1[_0x1cf24f(0x16b)])(_0x478d2c,_0x1cf24f(0x151),_0x30a776),_0x20a302[_0x1cf24f(0x15c)]=(0x0,lodash_1['get'])(_0x478d2c,_0x1cf24f(0x183),''),_0x20a302[_0x1cf24f(0x165)]=(0x0,lodash_1[_0x1cf24f(0x16b)])(_0x478d2c,_0x1cf24f(0x17b),'')=='required',_0x20a302[_0x1cf24f(0x175)]=(0x0,lodash_1['get'])(_0x478d2c,_0x1cf24f(0x13d),'');if(_0x478d2c[_0x1cf24f(0x13c)]=='object')_0x20a302[_0x1cf24f(0x127)]=getJoiRequest(_0x478d2c[_0x1cf24f(0x16d)]);else _0x478d2c[_0x1cf24f(0x13c)]==_0x1cf24f(0x155)&&_0x478d2c[_0x1cf24f(0x13f)]&&Array[_0x1cf24f(0x14f)](_0x478d2c[_0x1cf24f(0x13f)])&&_0x478d2c[_0x1cf24f(0x13f)][0x0]&&console[_0x1cf24f(0x185)](_0x30a776+'-array',_0x478d2c);_0x478d2c['allow']&&Array[_0x1cf24f(0x14f)](_0x478d2c[_0x1cf24f(0x182)])&&_0x478d2c[_0x1cf24f(0x182)][_0x1cf24f(0x132)]>0x0&&(_0x20a302[_0x1cf24f(0x175)]='只允许:['+_0x478d2c[_0x1cf24f(0x182)][_0x1cf24f(0x135)](',')+'];'+_0x20a302[_0x1cf24f(0x175)]);if(_0x20a302['key']&&_0x20a302[_0x1cf24f(0x13c)]){const _0xb3255e={};for(const _0x4cc7b8 of _0x478d2c[_0x1cf24f(0x16c)]||[]){if(_0x4cc7b8[_0x1cf24f(0x14e)]===_0x1cf24f(0x121)&&_0x4cc7b8[_0x1cf24f(0x134)])_0xb3255e[_0x1cf24f(0x121)]=_0x4cc7b8[_0x1cf24f(0x134)]['limit'];else _0x4cc7b8[_0x1cf24f(0x14e)]==='max'&&(_0xb3255e[_0x1cf24f(0x139)]=_0x4cc7b8[_0x1cf24f(0x134)][_0x1cf24f(0x17d)]);}_0x20a302[_0x1cf24f(0x16c)]=_0xb3255e;}_0x20a302[_0x1cf24f(0x156)]&&_0x20a302['title']&&_0x242d2a[_0x1cf24f(0x17c)](_0x20a302);}return _0x242d2a;}function convertSchemaType(_0x4891f6){const _0x5d189c=a9_0x29774a;switch(_0x4891f6){case _0x5d189c(0x167):return _0x5d189c(0x12f);case _0x5d189c(0x13a):return _0x5d189c(0x142);case _0x5d189c(0x140):return'number';case _0x5d189c(0x124):return'string';case'File':return _0x5d189c(0x158);default:return _0x5d189c(0x154);}}function convertTypeToString(_0x839358){const _0x57106a=a9_0x29774a;switch(_0x839358){case core_1[_0x57106a(0x15f)]['HEADERS']:return _0x57106a(0x15b);case core_1[_0x57106a(0x15f)][_0x57106a(0x12a)]:return _0x57106a(0x171);case core_1['RouteParamTypes'][_0x57106a(0x161)]:return _0x57106a(0x15a);case core_1[_0x57106a(0x15f)][_0x57106a(0x162)]:return _0x57106a(0x12c);case core_1['RouteParamTypes'][_0x57106a(0x120)]:case core_1['RouteParamTypes'][_0x57106a(0x11f)]:case core_1[_0x57106a(0x15f)]['FILESTREAM']:return _0x57106a(0x158);default:return'header';}}
|
|
1
|
+
const a9_0x218603=a9_0x30e1;(function(_0x455b84,_0x2dc075){const _0x1a4290=a9_0x30e1,_0x215a8f=_0x455b84();while(!![]){try{const _0x2ce9d8=-parseInt(_0x1a4290(0x81))/0x1+-parseInt(_0x1a4290(0xbb))/0x2*(parseInt(_0x1a4290(0xb4))/0x3)+-parseInt(_0x1a4290(0x8a))/0x4*(-parseInt(_0x1a4290(0xc3))/0x5)+-parseInt(_0x1a4290(0x8f))/0x6*(parseInt(_0x1a4290(0x9d))/0x7)+parseInt(_0x1a4290(0x78))/0x8+-parseInt(_0x1a4290(0x9c))/0x9+parseInt(_0x1a4290(0xb3))/0xa;if(_0x2ce9d8===_0x2dc075)break;else _0x215a8f['push'](_0x215a8f['shift']());}catch(_0x43f4d9){_0x215a8f['push'](_0x215a8f['shift']());}}}(a9_0x4fe7,0xc32e7));const a9_0x127793=(function(){let _0x413634=!![];return function(_0x3ab01c,_0x37a70f){const _0xa93ab6=_0x413634?function(){const _0xc841a=a9_0x30e1;if(_0x37a70f){const _0x2c441c=_0x37a70f[_0xc841a(0xaf)](_0x3ab01c,arguments);return _0x37a70f=null,_0x2c441c;}}:function(){};return _0x413634=![],_0xa93ab6;};}()),a9_0x21fdf6=a9_0x127793(this,function(){const _0x60d99c=a9_0x30e1;return a9_0x21fdf6['toString']()['search'](_0x60d99c(0x6f))[_0x60d99c(0x9b)]()[_0x60d99c(0x88)](a9_0x21fdf6)[_0x60d99c(0xbf)](_0x60d99c(0x6f));});a9_0x21fdf6();'use strict';function a9_0x30e1(_0x28f24d,_0x4e1564){const _0x25b223=a9_0x4fe7();return a9_0x30e1=function(_0x21fdf6,_0x127793){_0x21fdf6=_0x21fdf6-0x67;let _0x4fe782=_0x25b223[_0x21fdf6];return _0x4fe782;},a9_0x30e1(_0x28f24d,_0x4e1564);}Object[a9_0x218603(0xc8)](exports,a9_0x218603(0x70),{'value':!![]}),exports[a9_0x218603(0x84)]=void 0x0;const lodash_1=require(a9_0x218603(0xab)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x218603(0x82)),core_2=require(a9_0x218603(0x82)),core_3=require(a9_0x218603(0x82)),action_1=require('../types/action');function getRoutes(_0x4772a8={'prefix':'/','module':![]}){const _0x278a4d=a9_0x218603;var _0x542a0e,_0x5f3725;const _0x97a498=(0x0,core_3[_0x278a4d(0x6e)])(action_1[_0x278a4d(0xc5)]),_0x12151e={},_0x4125dd=Array[_0x278a4d(0x7c)](_0x4772a8[_0x278a4d(0xc4)]||[])?_0x4772a8[_0x278a4d(0xc4)]||[]:[_0x4772a8[_0x278a4d(0xc4)]];_0x3ebdda:for(const _0x5edcc9 of _0x97a498){let _0x153ae7=(0x0,core_3[_0x278a4d(0xb6)])(action_1[_0x278a4d(0xc5)],_0x5edcc9),_0x57d1a9=(0x0,core_3[_0x278a4d(0xb6)])(action_1['ACTION_ROUTE_KEY'],_0x5edcc9);if(_0x153ae7&&_0x57d1a9){let _0x50e924=_0x153ae7[_0x278a4d(0xa1)],_0x585dbe={};if(_0x4772a8['module']&&(0x0,lodash_1['get'])(_0x153ae7,_0x278a4d(0xac),![])!=_0x4772a8[_0x278a4d(0xac)])continue _0x3ebdda;else{if(_0x4772a8[_0x278a4d(0xac)]===![]&&!!(0x0,lodash_1['get'])(_0x153ae7,_0x278a4d(0xac),null))continue _0x3ebdda;}if(_0x4772a8[_0x278a4d(0xa1)]&&!_0x50e924[_0x278a4d(0xa2)](_0x4772a8[_0x278a4d(0xa1)]))continue _0x3ebdda;_0x50e924!=='/'?(_0x585dbe[_0x278a4d(0x7f)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x71)])||(/^\//[_0x278a4d(0x87)](_0x50e924)?_0x50e924[_0x278a4d(0x67)]('/')[0x1]:_0x50e924),_0x585dbe[_0x278a4d(0x74)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x74)])||_0x585dbe[_0x278a4d(0x7f)],_0x585dbe[_0x278a4d(0xb8)]=[]):(_0x585dbe[_0x278a4d(0x7f)]=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)]['tagName'])||_0x278a4d(0x75),_0x585dbe['description']=(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xa3)][_0x278a4d(0x74)])||'',_0x585dbe['routes']=[]);_0x4772a8[_0x278a4d(0x73)]&&(_0x585dbe[_0x278a4d(0x73)]=_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0x73)]);(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xaa)])&&(_0x585dbe[_0x278a4d(0xa1)]=_0x153ae7[_0x278a4d(0xaa)]);(_0x153ae7===null||_0x153ae7===void 0x0?void 0x0:_0x153ae7[_0x278a4d(0xac)])&&(_0x585dbe['module']=_0x153ae7[_0x278a4d(0xac)]);let _0x3584a5=(0x0,core_3[_0x278a4d(0xb6)])(core_2[_0x278a4d(0xb9)],_0x5edcc9)||{};if(typeof _0x57d1a9[Symbol[_0x278a4d(0x7e)]]===_0x278a4d(0x8e))for(let _0x5c610c of _0x57d1a9){if((_0x4772a8===null||_0x4772a8===void 0x0?void 0x0:_0x4772a8['intercept'])&&!(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c[_0x278a4d(0x96)]))continue;let _0x493126={};_0x493126[_0x278a4d(0x99)]=_0x5c610c[_0x278a4d(0xc7)],_0x493126[_0x278a4d(0xc6)]=(_0x50e924+_0x5c610c['path'])['replace'](/\/{1,}/,'/'),_0x493126[_0x278a4d(0x7f)]=(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c['routerName'])||_0x585dbe[_0x278a4d(0x7f)]||'default',_0x493126['description']=(_0x5c610c===null||_0x5c610c===void 0x0?void 0x0:_0x5c610c[_0x278a4d(0x74)])||'',_0x493126[_0x278a4d(0x9e)]=[];_0x493126[_0x278a4d(0xc6)][_0x278a4d(0xbd)]('/')&&(_0x493126['route']=_0x493126[_0x278a4d(0xc6)]['substring'](0x0,_0x493126['route'][_0x278a4d(0x79)]-0x1));if(!(0x0,lodash_1[_0x278a4d(0xa2)])(_0x493126[_0x278a4d(0xc6)],_0x278a4d(0x97))&&!(0x0,lodash_1['startsWith'])(_0x493126[_0x278a4d(0xc6)],_0x278a4d(0xb5))&&_0x4125dd['indexOf'](_0x493126[_0x278a4d(0xc6)])===-0x1){if(!(_0x4772a8===null||_0x4772a8===void 0x0?void 0x0:_0x4772a8[_0x278a4d(0xa5)])){let _0x5653ce=(0x0,core_3['getMethodParamTypes'])(new _0x5edcc9(),_0x5c610c[_0x278a4d(0x99)]);for(const _0x269d68 in _0x5653ce){let _0x10c073=(_0x542a0e=_0x3584a5[_0x5c610c[_0x278a4d(0x99)]])===null||_0x542a0e===void 0x0?void 0x0:_0x542a0e[_0x278a4d(0xa7)](_0x5a0431=>_0x5a0431[_0x278a4d(0xb1)]==_0x269d68&&_0x5a0431[_0x278a4d(0x6d)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x5a0431===null||_0x5a0431===void 0x0?void 0x0:_0x5a0431[_0x278a4d(0x92)]));if(_0x10c073===null||_0x10c073===void 0x0?void 0x0:_0x10c073[_0x278a4d(0x92)]){let _0xe90a0=convertTypeToString(_0x10c073[_0x278a4d(0x92)][_0x278a4d(0x85)]||0x0);if([_0x278a4d(0x95),'body'][_0x278a4d(0x7b)](_0xe90a0)!=-0x1&&_0x10c073['metadata'][_0x278a4d(0xc2)][_0x278a4d(0x7b)](':')==-0x1&&!_0x493126[_0x278a4d(0x9e)][_0x278a4d(0xa7)](_0x34f54d=>_0x34f54d['key']==_0x10c073['metadata'][_0x278a4d(0xc2)]))_0x493126[_0x278a4d(0x9e)][_0x278a4d(0x77)]({'key':_0x10c073['metadata'][_0x278a4d(0xc2)],'title':_0x10c073[_0x278a4d(0x92)][_0x278a4d(0xc2)],'type':convertSchemaType(_0x5653ce[_0x10c073[_0x278a4d(0xb1)]][_0x278a4d(0x89)]),'required':![],'default':'','desc':''});else{if(_0xe90a0==_0x278a4d(0xbc)){let _0x3bd70f=((_0x5f3725=_0x10c073===null||_0x10c073===void 0x0?void 0x0:_0x10c073[_0x278a4d(0x92)])===null||_0x5f3725===void 0x0?void 0x0:_0x5f3725[_0x278a4d(0xc2)])||_0x278a4d(0xbc);_0x3bd70f[_0x278a4d(0x7b)](':')==-0x1&&!_0x493126[_0x278a4d(0x9e)]['find'](_0x45f285=>_0x45f285[_0x278a4d(0x6d)]==_0x3bd70f&&_0x45f285[_0x278a4d(0x85)]=='file')&&_0x493126['request'][_0x278a4d(0x77)]({'key':_0x3bd70f,'title':_0x278a4d(0x72)+_0x3bd70f,'type':_0x278a4d(0xbc),'required':!![],'default':'','desc':''});}}}else{const _0x3b88d2=(0x0,core_3[_0x278a4d(0xc0)])(validator_1[_0x278a4d(0x94)],_0x5653ce[_0x269d68]);_0x3b88d2&&_0x493126['request'][_0x278a4d(0x77)](...getJoiRequest(_0x3b88d2));}}}_0x585dbe[_0x278a4d(0xb8)]['push'](_0x493126);}}if(_0x585dbe[_0x278a4d(0xb8)][_0x278a4d(0x79)]>0x0){let _0x413a47=_0x12151e[_0x50e924];_0x413a47?(_0x413a47['summary']!=_0x585dbe[_0x278a4d(0x7f)]&&(_0x413a47[_0x278a4d(0x7f)]=_0x413a47[_0x278a4d(0x7f)]+','+_0x585dbe[_0x278a4d(0x7f)]),_0x413a47[_0x278a4d(0x74)]!=_0x585dbe[_0x278a4d(0x74)]&&(_0x413a47[_0x278a4d(0x74)]=_0x413a47[_0x278a4d(0x74)]+','+_0x585dbe[_0x278a4d(0x74)]),_0x413a47['routes']=_0x413a47['routes'][_0x278a4d(0xba)](_0x585dbe[_0x278a4d(0xb8)]),_0x12151e[_0x50e924]=_0x413a47):_0x12151e[_0x50e924]=_0x585dbe;}}}return _0x12151e;}function a9_0x4fe7(){const _0x203b65=['route','requestMethod','defineProperty','split','items','FILESTREAM','rules','describe','-array','key','listModule','(((.+)+)+)+$','__esModule','tagName','文件上传-','filepath','description','default','Boolean','push','10683120zQwjZJ','length','required','indexOf','isArray','body','iterator','summary','flags.presence','505028SbVTIr','@midwayjs/core','flags.description','getRoutes','type','object','test','constructor','name','4NlzQmZ','flags.label','limit','HEADERS','function','504408dVqMUu','File','header','metadata','get','RULES_KEY','query','intercept','static/apitest','min','method','Number','toString','13199472TcFplF','14PJWOCh','request','max','boolean','prefix','startsWith','routerOptions','number','noreq','args','find','array','BODY','pprefix','lodash','module','PARAM','log','apply','allow','parameterIndex','FILESSTREAM','13925520ykDDAK','2922gSCYlt','/static/apitest','getClassMetadata','RouteParamTypes','routes','INJECT_CUSTOM_PARAM','concat','1780dqaxqu','file','endsWith','title','search','getClassExtendedMetadata','只允许:[','propertyData','5390765BRMsEy','filter','ACTION_KEY'];a9_0x4fe7=function(){return _0x203b65;};return a9_0x4fe7();}exports[a9_0x218603(0x84)]=getRoutes;function getJoiRequest(_0x129e62){const _0x1fa458=a9_0x218603,_0x2128a2=[];for(let _0x91bbaa in _0x129e62){const _0x4a7b41={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x589ff6=typeof _0x129e62[_0x91bbaa][_0x1fa458(0x6b)]==_0x1fa458(0x8e)?_0x129e62[_0x91bbaa]['describe']():_0x129e62[_0x91bbaa];_0x4a7b41['key']=_0x91bbaa,_0x4a7b41['type']=_0x589ff6[_0x1fa458(0x85)],_0x4a7b41[_0x1fa458(0xbe)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,_0x1fa458(0x8b),_0x91bbaa),_0x4a7b41[_0x1fa458(0x75)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,'flags.default',''),_0x4a7b41[_0x1fa458(0x7a)]=(0x0,lodash_1[_0x1fa458(0x93)])(_0x589ff6,_0x1fa458(0x80),'')==_0x1fa458(0x7a),_0x4a7b41[_0x1fa458(0x74)]=(0x0,lodash_1['get'])(_0x589ff6,_0x1fa458(0x83),'');if(_0x589ff6[_0x1fa458(0x85)]==_0x1fa458(0x86))_0x4a7b41['children']=getJoiRequest(_0x589ff6['keys']);else _0x589ff6[_0x1fa458(0x85)]==_0x1fa458(0xa8)&&_0x589ff6['items']&&Array[_0x1fa458(0x7c)](_0x589ff6['items'])&&_0x589ff6[_0x1fa458(0x68)][0x0]&&console[_0x1fa458(0xae)](_0x91bbaa+_0x1fa458(0x6c),_0x589ff6);_0x589ff6[_0x1fa458(0xb0)]&&Array[_0x1fa458(0x7c)](_0x589ff6['allow'])&&_0x589ff6[_0x1fa458(0xb0)][_0x1fa458(0x79)]>0x0&&(_0x4a7b41[_0x1fa458(0x74)]=_0x1fa458(0xc1)+_0x589ff6[_0x1fa458(0xb0)]['join'](',')+'];'+_0x4a7b41[_0x1fa458(0x74)]);if(_0x4a7b41[_0x1fa458(0x6d)]&&_0x4a7b41[_0x1fa458(0x85)]){const _0x5d14d6={};for(const _0x8ecdf3 of _0x589ff6['rules']||[]){if(_0x8ecdf3[_0x1fa458(0x89)]===_0x1fa458(0x98)&&_0x8ecdf3[_0x1fa458(0xa6)])_0x5d14d6[_0x1fa458(0x98)]=_0x8ecdf3[_0x1fa458(0xa6)][_0x1fa458(0x8c)];else _0x8ecdf3[_0x1fa458(0x89)]===_0x1fa458(0x9f)&&(_0x5d14d6[_0x1fa458(0x9f)]=_0x8ecdf3[_0x1fa458(0xa6)][_0x1fa458(0x8c)]);}_0x4a7b41[_0x1fa458(0x6a)]=_0x5d14d6;}_0x4a7b41[_0x1fa458(0x6d)]&&_0x4a7b41[_0x1fa458(0xbe)]&&_0x2128a2[_0x1fa458(0x77)](_0x4a7b41);}return _0x2128a2;}function convertSchemaType(_0x1e27a1){const _0xf1edeb=a9_0x218603;switch(_0x1e27a1){case'Object':return'object';case _0xf1edeb(0x76):return _0xf1edeb(0xa0);case _0xf1edeb(0x9a):return _0xf1edeb(0xa4);case'String':return'string';case _0xf1edeb(0x90):return _0xf1edeb(0xbc);default:return'string';}}function convertTypeToString(_0x2bfd52){const _0x5cc4f9=a9_0x218603;switch(_0x2bfd52){case core_1['RouteParamTypes'][_0x5cc4f9(0x8d)]:return _0x5cc4f9(0x91);case core_1['RouteParamTypes']['QUERY']:return'query';case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xad)]:return'path';case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xa9)]:return _0x5cc4f9(0x7d);case core_1[_0x5cc4f9(0xb7)]['FIELDS']:case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0xb2)]:case core_1[_0x5cc4f9(0xb7)][_0x5cc4f9(0x69)]:return _0x5cc4f9(0xbc);default:return _0x5cc4f9(0x91);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x897e7f=a10_0x1f6d;(function(_0x206f94,_0x8a8f7b){var _0xa2e658=a10_0x1f6d,_0x3c38f3=_0x206f94();while(!![]){try{var _0x121d1c=-parseInt(_0xa2e658(0x132))/0x1+parseInt(_0xa2e658(0x14a))/0x2*(-parseInt(_0xa2e658(0x122))/0x3)+parseInt(_0xa2e658(0x153))/0x4*(parseInt(_0xa2e658(0x131))/0x5)+parseInt(_0xa2e658(0x148))/0x6+parseInt(_0xa2e658(0x151))/0x7+-parseInt(_0xa2e658(0x12a))/0x8+parseInt(_0xa2e658(0x120))/0x9*(parseInt(_0xa2e658(0x126))/0xa);if(_0x121d1c===_0x8a8f7b)break;else _0x3c38f3['push'](_0x3c38f3['shift']());}catch(_0x14376d){_0x3c38f3['push'](_0x3c38f3['shift']());}}}(a10_0xe885,0xbe87f));var a10_0x4515af=(function(){var _0x5d1a5b=!![];return function(_0x44697a,_0xccbfd7){var _0x5d057c=_0x5d1a5b?function(){var _0x316f01=a10_0x1f6d;if(_0xccbfd7){var _0x393e86=_0xccbfd7[_0x316f01(0x134)](_0x44697a,arguments);return _0xccbfd7=null,_0x393e86;}}:function(){};return _0x5d1a5b=![],_0x5d057c;};}()),a10_0x87661d=a10_0x4515af(this,function(){var _0x187533=a10_0x1f6d;return a10_0x87661d[_0x187533(0x11e)]()[_0x187533(0x128)](_0x187533(0x12c))[_0x187533(0x11e)]()[_0x187533(0x13f)](a10_0x87661d)['search']('(((.+)+)+)+$');});a10_0x87661d();'use strict';var __createBinding=this&&this[a10_0x897e7f(0x137)]||(Object['create']?function(_0x2e9f20,_0x4b2adb,_0x4d0a08,_0x15a2b3){var _0x3d3ac3=a10_0x897e7f;if(_0x15a2b3===undefined)_0x15a2b3=_0x4d0a08;var _0x26d479=Object[_0x3d3ac3(0x12b)](_0x4b2adb,_0x4d0a08);(!_0x26d479||(_0x3d3ac3(0x124)in _0x26d479?!_0x4b2adb[_0x3d3ac3(0x123)]:_0x26d479[_0x3d3ac3(0x11c)]||_0x26d479['configurable']))&&(_0x26d479={'enumerable':!![],'get':function(){return _0x4b2adb[_0x4d0a08];}}),Object[_0x3d3ac3(0x142)](_0x2e9f20,_0x15a2b3,_0x26d479);}:function(_0x5cc8a7,_0x1ffad6,_0x4c4629,_0x499dbc){if(_0x499dbc===undefined)_0x499dbc=_0x4c4629;_0x5cc8a7[_0x499dbc]=_0x1ffad6[_0x4c4629];}),__exportStar=this&&this[a10_0x897e7f(0x13b)]||function(_0x7401f8,_0x58b30d){var _0xa109d0=a10_0x897e7f;for(var _0x35e0da in _0x7401f8)if(_0x35e0da!==_0xa109d0(0x113)&&!Object[_0xa109d0(0x12f)][_0xa109d0(0x127)][_0xa109d0(0x150)](_0x58b30d,_0x35e0da))__createBinding(_0x58b30d,_0x7401f8,_0x35e0da);};Object['defineProperty'](exports,a10_0x897e7f(0x123),{'value':!![]}),exports[a10_0x897e7f(0x145)]=exports[a10_0x897e7f(0x14e)]=exports['Singleton']=exports[a10_0x897e7f(0x13a)]=exports['Inject']=exports[a10_0x897e7f(0x149)]=exports[a10_0x897e7f(0x125)]=exports['Config']=exports[a10_0x897e7f(0x110)]=exports[a10_0x897e7f(0x136)]=exports[a10_0x897e7f(0x129)]=exports[a10_0x897e7f(0x14f)]=exports[a10_0x897e7f(0x133)]=exports[a10_0x897e7f(0x111)]=exports[a10_0x897e7f(0x130)]=exports[a10_0x897e7f(0x10f)]=exports[a10_0x897e7f(0x11b)]=exports[a10_0x897e7f(0x14b)]=exports[a10_0x897e7f(0x13d)]=exports[a10_0x897e7f(0x121)]=exports[a10_0x897e7f(0x14c)]=exports[a10_0x897e7f(0x12e)]=exports[a10_0x897e7f(0x114)]=exports[a10_0x897e7f(0x138)]=exports[a10_0x897e7f(0x119)]=exports[a10_0x897e7f(0x116)]=exports[a10_0x897e7f(0x141)]=exports['Intercept']=exports[a10_0x897e7f(0x152)]=exports[a10_0x897e7f(0x144)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a10_0x897e7f(0x145),{'enumerable':!![],'get':function(){var _0x16fb71=a10_0x897e7f;return getAppsConfig_1[_0x16fb71(0x145)];}}),__exportStar(require(a10_0x897e7f(0x11a)),exports),__exportStar(require(a10_0x897e7f(0x115)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x118),{'enumerable':!![],'get':function(){var _0xe1b8ab=a10_0x897e7f;return ActionApi_1[_0xe1b8ab(0x118)];}});function a10_0x1f6d(_0x4809e0,_0xbba4f7){var _0x5c0c6b=a10_0xe885();return a10_0x1f6d=function(_0x87661d,_0x4515af){_0x87661d=_0x87661d-0x10e;var _0xe88596=_0x5c0c6b[_0x87661d];return _0xe88596;},a10_0x1f6d(_0x4809e0,_0xbba4f7);}var Action_1=require(a10_0x897e7f(0x117));Object['defineProperty'](exports,a10_0x897e7f(0x144),{'enumerable':!![],'get':function(){var _0x34e00c=a10_0x897e7f;return Action_1[_0x34e00c(0x144)];}});var ActionApitest_1=require(a10_0x897e7f(0x139));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x152),{'enumerable':!![],'get':function(){var _0x246935=a10_0x897e7f;return ActionApitest_1[_0x246935(0x152)];}});var Intercept_1=require(a10_0x897e7f(0x140));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x10e),{'enumerable':!![],'get':function(){var _0x275299=a10_0x897e7f;return Intercept_1[_0x275299(0x10e)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x141),{'enumerable':!![],'get':function(){var _0x103482=a10_0x897e7f;return Intercept_1[_0x103482(0x141)];}});var getRoutes_1=require('./helper/getRoutes');Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x116),{'enumerable':!![],'get':function(){var _0x11cb1b=a10_0x897e7f;return getRoutes_1[_0x11cb1b(0x116)];}});var ApiError_1=require(a10_0x897e7f(0x112));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x119),{'enumerable':!![],'get':function(){var _0x1479c3=a10_0x897e7f;return ApiError_1[_0x1479c3(0x119)];}});var cache_1=require(a10_0x897e7f(0x11f));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x138),{'enumerable':!![],'get':function(){var _0x67c155=a10_0x897e7f;return cache_1[_0x67c155(0x138)];}});var event_1=require('@anncic-api/event');Object['defineProperty'](exports,a10_0x897e7f(0x114),{'enumerable':!![],'get':function(){var _0x1fa0ba=a10_0x897e7f;return event_1[_0x1fa0ba(0x114)];}});var ApiService_1=require(a10_0x897e7f(0x12d));Object['defineProperty'](exports,a10_0x897e7f(0x12e),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a10_0x897e7f(0x147));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x14c),{'enumerable':!![],'get':function(){var _0x2b293c=a10_0x897e7f;return ExcelService_1[_0x2b293c(0x14c)];}});var validator_1=require(a10_0x897e7f(0x11d));Object[a10_0x897e7f(0x142)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x2cfadf=a10_0x897e7f;return validator_1[_0x2cfadf(0x121)];}}),Object['defineProperty'](exports,a10_0x897e7f(0x13d),{'enumerable':!![],'get':function(){var _0x291bd7=a10_0x897e7f;return validator_1[_0x291bd7(0x13d)];}});var configuration_1=require(a10_0x897e7f(0x13c));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x14b),{'enumerable':!![],'get':function(){var _0x3def11=a10_0x897e7f;return configuration_1[_0x3def11(0x13e)];}});var core_1=require(a10_0x897e7f(0x14d));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x11b),{'enumerable':!![],'get':function(){var _0x54d620=a10_0x897e7f;return core_1[_0x54d620(0x11b)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x10f),{'enumerable':!![],'get':function(){var _0x1455d9=a10_0x897e7f;return core_1[_0x1455d9(0x10f)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x130),{'enumerable':!![],'get':function(){var _0x1d6a05=a10_0x897e7f;return core_1[_0x1d6a05(0x130)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x111),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x133),{'enumerable':!![],'get':function(){var _0x1c51f4=a10_0x897e7f;return core_1[_0x1c51f4(0x133)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x14f),{'enumerable':!![],'get':function(){var _0x38b167=a10_0x897e7f;return core_1[_0x38b167(0x14f)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x129),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a10_0x897e7f(0x142)](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});function a10_0xe885(){var _0x5df91c=['defineProperty','Singleton','Action','getAppsConfig','Inject','./service/ExcelService','1755894lLugnW','Provide','82eXTlGr','Configuration','ExcelService','@midwayjs/core','ScopeEnum','Query','call','5646186xYXhsG','Apitest','4aIdTaM','Intercept','Files','App','Body','./exception/ApiError','default','EventService','./service/ApitestService','getRoutes','./decorator/Action','Api','ApiError','./types/common','File','writable','@anncic-api/validator','toString','@anncic-api/cache','162zOmwKT','ValidatorError','74118fLkuMS','__esModule','get','Logger','762150ggBgfC','hasOwnProperty','search','Headers','7258416qziHSa','getOwnPropertyDescriptor','(((.+)+)+)+$','./service/ApiService','ApiService','prototype','Fields','3152345QJJybr','400923FHFQIl','Param','apply','Config','Init','__createBinding','CacheService','./decorator/ActionApitest','Scope','__exportStar','./configuration','ValidatorService','CustomConfiguration','constructor','./decorator/Intercept','IIntercept'];a10_0xe885=function(){return _0x5df91c;};return a10_0xe885();}var core_2=require(a10_0x897e7f(0x14d));Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x110),{'enumerable':!![],'get':function(){var _0x18e126=a10_0x897e7f;return core_2[_0x18e126(0x110)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x135),{'enumerable':!![],'get':function(){var _0x5668d1=a10_0x897e7f;return core_2[_0x5668d1(0x135)];}}),Object['defineProperty'](exports,a10_0x897e7f(0x125),{'enumerable':!![],'get':function(){var _0x30594c=a10_0x897e7f;return core_2[_0x30594c(0x125)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x149),{'enumerable':!![],'get':function(){var _0x29f7bf=a10_0x897e7f;return core_2[_0x29f7bf(0x149)];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x146),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x13a),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a10_0x897e7f(0x142)](exports,a10_0x897e7f(0x143),{'enumerable':!![],'get':function(){var _0x584bf7=a10_0x897e7f;return core_2[_0x584bf7(0x143)];}}),Object[a10_0x897e7f(0x142)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a10_0x897e7f(0x145)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a11_0x42039f=a11_0x1d61;(function(_0x3ef040,_0x5d518b){var _0x5bcc93=a11_0x1d61,_0x210dd6=_0x3ef040();while(!![]){try{var _0x3f9c46=-parseInt(_0x5bcc93(0x20d))/0x1*(parseInt(_0x5bcc93(0x22e))/0x2)+parseInt(_0x5bcc93(0x227))/0x3*(-parseInt(_0x5bcc93(0x224))/0x4)+parseInt(_0x5bcc93(0x21d))/0x5+-parseInt(_0x5bcc93(0x1f2))/0x6*(-parseInt(_0x5bcc93(0x215))/0x7)+-parseInt(_0x5bcc93(0x218))/0x8*(parseInt(_0x5bcc93(0x209))/0x9)+-parseInt(_0x5bcc93(0x229))/0xa+parseInt(_0x5bcc93(0x1f5))/0xb;if(_0x3f9c46===_0x5d518b)break;else _0x210dd6['push'](_0x210dd6['shift']());}catch(_0x4e407a){_0x210dd6['push'](_0x210dd6['shift']());}}}(a11_0x113f,0x90f22));var a11_0x59469e=(function(){var _0x5cf0ce=!![];return function(_0x118ca6,_0x22b365){var _0xca3e3b=_0x5cf0ce?function(){if(_0x22b365){var _0x1a7580=_0x22b365['apply'](_0x118ca6,arguments);return _0x22b365=null,_0x1a7580;}}:function(){};return _0x5cf0ce=![],_0xca3e3b;};}()),a11_0x12d044=a11_0x59469e(this,function(){var _0x49f7c1=a11_0x1d61;return a11_0x12d044[_0x49f7c1(0x1f8)]()[_0x49f7c1(0x216)](_0x49f7c1(0x222))[_0x49f7c1(0x1f8)]()[_0x49f7c1(0x20f)](a11_0x12d044)[_0x49f7c1(0x216)](_0x49f7c1(0x222));});a11_0x12d044();'use strict';function a11_0x1d61(_0x2a2980,_0x7c6b8a){var _0xecbeef=a11_0x113f();return a11_0x1d61=function(_0x12d044,_0x59469e){_0x12d044=_0x12d044-0x1ed;var _0x113fa0=_0xecbeef[_0x12d044];return _0x113fa0;},a11_0x1d61(_0x2a2980,_0x7c6b8a);}function a11_0x113f(){var _0xcb9fab=['ApiError','5422745PvfSjd','../exception/ApiError','design:type','requesttime','logintimeout','(((.+)+)+)+$','abs','1578136TltRSB','ApiService','anncicapi','6WHUbgP','fromEntries','9434390HmFozn','sort','join','checkcode','now','212018KRveQX','decorate','config','signature','Singleton','crypto-js','__esModule','108PyOGeJ','缺少头信息:','metadata','13586463JqCHGY','prototype','timeout','toString','__decorate','push','toLowerCase','password','devices','length','HEADERS_LACK','HEADERS_DEVICE','object','map','getsign','TIMEOUT','HEADERS_SIGNATURE','请求超时,请重试或改善网络环境','undefined','Provide','207iOkODW','secret','defineProperty','@midwayjs/core','3lLLnxK','Config','constructor','HEADERS_CHECKCODE','__metadata','getcheck','logintime','entries','127001JYOKdL','search','getOwnPropertyDescriptor','704CMMAFg','function','MD5','device'];a11_0x113f=function(){return _0xcb9fab;};return a11_0x113f();}var __decorate=this&&this[a11_0x42039f(0x1f9)]||function(_0x3e49a6,_0x398d3e,_0x732c53,_0x47e236){var _0x59c607=a11_0x42039f,_0x2738a0=arguments['length'],_0x2eefdd=_0x2738a0<0x3?_0x398d3e:_0x47e236===null?_0x47e236=Object[_0x59c607(0x217)](_0x398d3e,_0x732c53):_0x47e236,_0x1d3d31;if(typeof Reflect===_0x59c607(0x201)&&typeof Reflect[_0x59c607(0x22f)]===_0x59c607(0x219))_0x2eefdd=Reflect[_0x59c607(0x22f)](_0x3e49a6,_0x398d3e,_0x732c53,_0x47e236);else{for(var _0x4595f7=_0x3e49a6[_0x59c607(0x1fe)]-0x1;_0x4595f7>=0x0;_0x4595f7--)if(_0x1d3d31=_0x3e49a6[_0x4595f7])_0x2eefdd=(_0x2738a0<0x3?_0x1d3d31(_0x2eefdd):_0x2738a0>0x3?_0x1d3d31(_0x398d3e,_0x732c53,_0x2eefdd):_0x1d3d31(_0x398d3e,_0x732c53))||_0x2eefdd;}return _0x2738a0>0x3&&_0x2eefdd&&Object[_0x59c607(0x20b)](_0x398d3e,_0x732c53,_0x2eefdd),_0x2eefdd;},__metadata=this&&this[a11_0x42039f(0x211)]||function(_0x4d3546,_0x5efcd1){var _0x3d681c=a11_0x42039f;if(typeof Reflect===_0x3d681c(0x201)&&typeof Reflect[_0x3d681c(0x1f4)]===_0x3d681c(0x219))return Reflect[_0x3d681c(0x1f4)](_0x4d3546,_0x5efcd1);};Object[a11_0x42039f(0x20b)](exports,a11_0x42039f(0x1f1),{'value':!![]}),exports[a11_0x42039f(0x225)]=void 0x0;const crypto_js_1=require(a11_0x42039f(0x1f0)),core_1=require(a11_0x42039f(0x20c)),ApiError_1=require(a11_0x42039f(0x21e));let ApiService=class ApiService{[a11_0x42039f(0x1fc)](_0x57bfa0){var _0x3e34be=a11_0x42039f,_0x3e303e;return _0x57bfa0?(0x0,crypto_js_1[_0x3e34be(0x21a)])(''+_0x57bfa0+(0x0,crypto_js_1[_0x3e34be(0x21a)])((0x0,crypto_js_1['MD5'])(''+_0x57bfa0)[_0x3e34be(0x1f8)]()+(''+((_0x3e303e=this[_0x3e34be(0x1ed)])===null||_0x3e303e===void 0x0?void 0x0:_0x3e303e[_0x3e34be(0x1fc)])))[_0x3e34be(0x1f8)]())[_0x3e34be(0x1f8)]():'';}[a11_0x42039f(0x212)](_0x51068c,_0x3351c8,_0x3f8120=Date[a11_0x42039f(0x22d)]()){var _0x1bce3f=a11_0x42039f;return{'Token':_0x51068c,'Logintime':_0x3f8120,'Checkcode':this[_0x1bce3f(0x22c)](_0x51068c,_0x3351c8,_0x3f8120)};}[a11_0x42039f(0x203)](_0x469e6c={}){var _0x40b6cf=a11_0x42039f,_0x3d05af,_0x36b6fe;const _0x206c9a=[],_0x21806a=Object[_0x40b6cf(0x228)](Object[_0x40b6cf(0x214)](_0x469e6c)[_0x40b6cf(0x202)](_0x5732ce=>[_0x5732ce[0x0][_0x40b6cf(0x1fb)](),_0x5732ce[0x1]]));for(let _0x2f4b3f of[_0x40b6cf(0x21b),_0x40b6cf(0x220),'token','logintime',_0x40b6cf(0x22c)]){if(typeof _0x21806a[_0x2f4b3f]==_0x40b6cf(0x207))throw new AnnError(ApiError_1['ApiError'][_0x40b6cf(0x1ff)],{'message':_0x40b6cf(0x1f3)+_0x2f4b3f});_0x206c9a[_0x40b6cf(0x1fa)](_0x2f4b3f+'='+_0x21806a[_0x2f4b3f]);}_0x21806a['requesttime']&&((_0x3d05af=_0x21806a[_0x40b6cf(0x220)])===null||_0x3d05af===void 0x0?void 0x0:_0x3d05af[_0x40b6cf(0x1fe)])==0xa&&(_0x21806a[_0x40b6cf(0x220)]=_0x21806a[_0x40b6cf(0x220)]*0x3e8);if(this['config'][_0x40b6cf(0x1f7)]&&Date[_0x40b6cf(0x22d)]()-Math[_0x40b6cf(0x223)](_0x21806a[_0x40b6cf(0x220)])>this['config']['timeout'])throw new AnnError(ApiError_1[_0x40b6cf(0x21c)][_0x40b6cf(0x204)],{'message':_0x40b6cf(0x206),'requesttime':_0x21806a[_0x40b6cf(0x220)],'timestamp':Date['now']()});if((((_0x36b6fe=this['config'][_0x40b6cf(0x1fd)][_0x21806a[_0x40b6cf(0x21b)]])===null||_0x36b6fe===void 0x0?void 0x0:_0x36b6fe['logintimeout'])||0x0)>0x0&&Date[_0x40b6cf(0x22d)]()-Math['abs'](_0x21806a[_0x40b6cf(0x213)])>this[_0x40b6cf(0x1ed)][_0x40b6cf(0x1fd)][_0x21806a['device']][_0x40b6cf(0x221)])throw new AnnError(ApiError_1[_0x40b6cf(0x21c)]['TIMEOUT_LOGINTIME']);if(!this[_0x40b6cf(0x1ed)][_0x40b6cf(0x1fd)][_0x21806a['device']]||!this['config'][_0x40b6cf(0x1fd)][_0x21806a['device']][_0x40b6cf(0x20a)]||!this[_0x40b6cf(0x1ed)][_0x40b6cf(0x1fd)][_0x21806a[_0x40b6cf(0x21b)]][_0x40b6cf(0x22c)])throw new AnnError(ApiError_1[_0x40b6cf(0x21c)][_0x40b6cf(0x200)]);if(_0x21806a['token']&&_0x21806a[_0x40b6cf(0x22c)]!=this[_0x40b6cf(0x22c)](_0x21806a['token'],_0x21806a[_0x40b6cf(0x21b)],_0x21806a[_0x40b6cf(0x213)]))throw new AnnError(ApiError_1[_0x40b6cf(0x21c)][_0x40b6cf(0x210)]);return _0x206c9a['push']('secret='+this['config'][_0x40b6cf(0x1fd)][_0x21806a[_0x40b6cf(0x21b)]][_0x40b6cf(0x20a)]),(0x0,crypto_js_1['MD5'])(_0x206c9a[_0x40b6cf(0x22a)]()[_0x40b6cf(0x22b)](''))['toString']();}['checkcode'](_0x51d3b6,_0x186def,_0x58e7cf=Date[a11_0x42039f(0x22d)]()){var _0x435020=a11_0x42039f,_0x55b25a,_0x53e42a,_0x2b2594;if(!((_0x55b25a=this['config'])===null||_0x55b25a===void 0x0?void 0x0:_0x55b25a[_0x435020(0x1fd)][_0x186def])||!((_0x2b2594=(_0x53e42a=this[_0x435020(0x1ed)])===null||_0x53e42a===void 0x0?void 0x0:_0x53e42a[_0x435020(0x1fd)][_0x186def])===null||_0x2b2594===void 0x0?void 0x0:_0x2b2594[_0x435020(0x22c)]))throw new AnnError(ApiError_1[_0x435020(0x21c)][_0x435020(0x200)]);return(0x0,crypto_js_1[_0x435020(0x21a)])(''+_0x51d3b6+(0x0,crypto_js_1['MD5'])(''+_0x58e7cf+(''+this[_0x435020(0x1ed)][_0x435020(0x1fd)][_0x186def][_0x435020(0x22c)]))[_0x435020(0x1f8)]())[_0x435020(0x1f8)]();}['checksign'](_0xe077={}){var _0x2e3f4e=a11_0x42039f;const _0x43fadf=Object[_0x2e3f4e(0x228)](Object[_0x2e3f4e(0x214)](_0xe077)[_0x2e3f4e(0x202)](_0x47c39d=>[_0x47c39d[0x0]['toLowerCase'](),_0x47c39d[0x1]]));if(!(_0x43fadf===null||_0x43fadf===void 0x0?void 0x0:_0x43fadf['signature']))throw new AnnError(ApiError_1[_0x2e3f4e(0x21c)]['HEADERS_LACK'],{'message':'缺少头信息:signature'});if((_0x43fadf===null||_0x43fadf===void 0x0?void 0x0:_0x43fadf[_0x2e3f4e(0x1ee)])!=this['getsign'](_0x43fadf))throw new AnnError(ApiError_1[_0x2e3f4e(0x21c)][_0x2e3f4e(0x205)]);return!![];}};__decorate([(0x0,core_1[a11_0x42039f(0x20e)])(a11_0x42039f(0x226)),__metadata(a11_0x42039f(0x21f),Object)],ApiService[a11_0x42039f(0x1f6)],a11_0x42039f(0x1ed),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x42039f(0x208)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a11_0x42039f(0x1ef)])],ApiService),exports[a11_0x42039f(0x225)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x3438af=a12_0x57d8;(function(_0x82eb5d,_0x52e1a6){const _0xbc39a9=a12_0x57d8,_0x38eaa9=_0x82eb5d();while(!![]){try{const _0x521a16=parseInt(_0xbc39a9(0x18b))/0x1+-parseInt(_0xbc39a9(0x187))/0x2+parseInt(_0xbc39a9(0x191))/0x3+parseInt(_0xbc39a9(0x1b2))/0x4*(parseInt(_0xbc39a9(0x17c))/0x5)+parseInt(_0xbc39a9(0x17b))/0x6*(parseInt(_0xbc39a9(0x1aa))/0x7)+-parseInt(_0xbc39a9(0x1ac))/0x8+-parseInt(_0xbc39a9(0x1af))/0x9*(parseInt(_0xbc39a9(0x190))/0xa);if(_0x521a16===_0x52e1a6)break;else _0x38eaa9['push'](_0x38eaa9['shift']());}catch(_0x1f342a){_0x38eaa9['push'](_0x38eaa9['shift']());}}}(a12_0x7a8f,0xec51a));function a12_0x7a8f(){const _0x4b946e=['12rsmcYx','15QNjFMS','MidwayEnvironmentService','push','utf-8','Scope','set','replace','Get','Param','ApitestService','apitest','627998vGHeVv','metadata','url','stringify','1099402sDhieC','/index.html','apidoc','@midwayjs/core','apitestmodule','4324790HxCTYf','691575IEstjl','design:paramtypes','content-type','request','extname','Environment','existsSync','ScopeEnum','toString','ApitestStaticController','/apiteststatic/*','/apiteststatic/','/apitest-:module','filepath','length','search','Config','object','constructor','/apitest','__esModule','readFileSync','getOwnPropertyDescriptor','__devices__','Request','1661527iAduRP','config','13228480dJGZdb','__param','(((.+)+)+)+$','9SqDmRV','__apiList__','../../public/','2084468JbMuqy','../helper/getRoutes','route','../../public/index.html','apiteststatic','summary','isDevelopmentEnvironment','design:returntype','anncicapi','Inject','getRoutes','decorate','defineProperty','ctx','apitesthtml','prefix','Provide','design:type','method','text/css;\x20charset=utf-8','join','prototype'];a12_0x7a8f=function(){return _0x4b946e;};return a12_0x7a8f();}const a12_0x4ed8b4=(function(){let _0x37fe14=!![];return function(_0x313743,_0x557115){const _0xdd855b=_0x37fe14?function(){if(_0x557115){const _0x4c0b58=_0x557115['apply'](_0x313743,arguments);return _0x557115=null,_0x4c0b58;}}:function(){};return _0x37fe14=![],_0xdd855b;};}()),a12_0x5ac809=a12_0x4ed8b4(this,function(){const _0x5f09a0=a12_0x57d8;return a12_0x5ac809['toString']()['search'](_0x5f09a0(0x1ae))[_0x5f09a0(0x199)]()[_0x5f09a0(0x1a3)](a12_0x5ac809)[_0x5f09a0(0x1a0)](_0x5f09a0(0x1ae));});a12_0x5ac809();'use strict';var __decorate=this&&this['__decorate']||function(_0x3ad29a,_0xe525e4,_0x4050fd,_0x4aa839){const _0x98165b=a12_0x57d8;var _0x437483=arguments['length'],_0x5774bb=_0x437483<0x3?_0xe525e4:_0x4aa839===null?_0x4aa839=Object[_0x98165b(0x1a7)](_0xe525e4,_0x4050fd):_0x4aa839,_0x89054c;if(typeof Reflect===_0x98165b(0x1a2)&&typeof Reflect[_0x98165b(0x1bd)]==='function')_0x5774bb=Reflect[_0x98165b(0x1bd)](_0x3ad29a,_0xe525e4,_0x4050fd,_0x4aa839);else{for(var _0x183085=_0x3ad29a['length']-0x1;_0x183085>=0x0;_0x183085--)if(_0x89054c=_0x3ad29a[_0x183085])_0x5774bb=(_0x437483<0x3?_0x89054c(_0x5774bb):_0x437483>0x3?_0x89054c(_0xe525e4,_0x4050fd,_0x5774bb):_0x89054c(_0xe525e4,_0x4050fd))||_0x5774bb;}return _0x437483>0x3&&_0x5774bb&&Object[_0x98165b(0x171)](_0xe525e4,_0x4050fd,_0x5774bb),_0x5774bb;},__metadata=this&&this['__metadata']||function(_0xf55ee2,_0x23d98e){const _0x8418b5=a12_0x57d8;if(typeof Reflect==='object'&&typeof Reflect[_0x8418b5(0x188)]==='function')return Reflect['metadata'](_0xf55ee2,_0x23d98e);},__param=this&&this[a12_0x3438af(0x1ad)]||function(_0x268c03,_0x3c8751){return function(_0x5a204c,_0x343994){_0x3c8751(_0x5a204c,_0x343994,_0x268c03);};};Object[a12_0x3438af(0x171)](exports,a12_0x3438af(0x1a5),{'value':!![]}),exports[a12_0x3438af(0x19a)]=exports['ApitestService']=void 0x0;function a12_0x57d8(_0x3161fc,_0x26513b){const _0x16ead8=a12_0x7a8f();return a12_0x57d8=function(_0x5ac809,_0x4ed8b4){_0x5ac809=_0x5ac809-0x171;let _0x7a8f10=_0x16ead8[_0x5ac809];return _0x7a8f10;},a12_0x57d8(_0x3161fc,_0x26513b);}const path_1=require('path'),fs_1=require('fs'),core_1=require(a12_0x3438af(0x18e)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),getRoutes_1=require(a12_0x3438af(0x1b3));let ApitestService=class ApitestService{async[a12_0x3438af(0x18d)](_0x1b47c5){const _0x29c23a=a12_0x3438af,_0x5a7e35=(0x0,getRoutes_1[_0x29c23a(0x1bc)])(_0x1b47c5),_0x3cd016=[];for(let _0x5654fa in _0x5a7e35){for(let _0x3dbead in _0x5a7e35[_0x5654fa]['routes']){let _0x4f8c4a=_0x5a7e35[_0x5654fa]['routes'][_0x3dbead],_0x370191=[];for(let _0x44b131 in _0x4f8c4a[_0x29c23a(0x194)]){_0x370191[_0x29c23a(0x17e)](_0x4f8c4a[_0x29c23a(0x194)][_0x44b131]);}_0x3cd016[_0x29c23a(0x17e)]({'title':_0x5a7e35[_0x5654fa]['summary']+':'+_0x4f8c4a[_0x29c23a(0x1b7)],'prefix':_0x5a7e35[_0x5654fa][_0x29c23a(0x174)],'router':_0x4f8c4a[_0x29c23a(0x1b4)],'method':_0x4f8c4a[_0x29c23a(0x177)],'describe':_0x4f8c4a['description']||'','filepath':_0x5a7e35[_0x5654fa][_0x29c23a(0x19e)]||'','request':_0x370191});}}const _0x301893=(0x0,path_1[_0x29c23a(0x179)])(__dirname,_0x29c23a(0x1b5));return(0x0,fs_1['readFileSync'])(_0x301893,{'encoding':'utf-8'})['replace'](/__res__/g,_0x29c23a(0x19c))[_0x29c23a(0x182)](_0x29c23a(0x1b0),JSON['stringify'](_0x3cd016))['replace'](_0x29c23a(0x1a8),JSON[_0x29c23a(0x18a)](this[_0x29c23a(0x1ab)]['devices']));}};__decorate([(0x0,core_3['Config'])(a12_0x3438af(0x1ba)),__metadata(a12_0x3438af(0x176),Object)],ApitestService[a12_0x3438af(0x17a)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x3438af(0x175)])('apitest'),(0x0,core_3[a12_0x3438af(0x180)])(core_3[a12_0x3438af(0x198)]['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a12_0x3438af(0x173)](){const _0x16ed94=a12_0x3438af;if(this[_0x16ed94(0x186)]){const _0x535d91={'module':![]};return this[_0x16ed94(0x196)][_0x16ed94(0x1b8)]()&&(_0x535d91['filepath']=!![]),await this[_0x16ed94(0x185)][_0x16ed94(0x18d)](_0x535d91);}return'';}async[a12_0x3438af(0x18f)](_0x2d1be5){const _0x59c189=a12_0x3438af;if(this[_0x59c189(0x186)]){const _0x3ec7ae={'module':_0x2d1be5};return this[_0x59c189(0x196)]['isDevelopmentEnvironment']()&&(_0x3ec7ae['filepath']=!![]),await this[_0x59c189(0x185)]['apidoc'](_0x3ec7ae);}return'';}async[a12_0x3438af(0x1b6)](){const _0x422e1f=a12_0x3438af;if((0x0,path_1[_0x422e1f(0x195)])(this[_0x422e1f(0x172)]['request']['url'])){var _0x22abd9=(0x0,path_1[_0x422e1f(0x179)])(__dirname,_0x422e1f(0x1b1)+this[_0x422e1f(0x172)][_0x422e1f(0x194)]['url']['replace'](_0x422e1f(0x19c),'/'));if(_0x22abd9['substring'](_0x22abd9[_0x422e1f(0x19f)]-0xb)!=_0x422e1f(0x18c)){this[_0x422e1f(0x172)][_0x422e1f(0x181)]('cache-control','public,\x20max-age=604800');if((0x0,path_1[_0x422e1f(0x195)])(this['ctx']['request'][_0x422e1f(0x189)])=='.js')this[_0x422e1f(0x172)][_0x422e1f(0x181)](_0x422e1f(0x193),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x422e1f(0x195)])(this[_0x422e1f(0x172)][_0x422e1f(0x194)][_0x422e1f(0x189)])=='.css'&&this['ctx']['set'](_0x422e1f(0x193),_0x422e1f(0x178));return(0x0,fs_1[_0x422e1f(0x197)])(_0x22abd9)&&(0x0,fs_1[_0x422e1f(0x1a6)])(_0x22abd9,{'encoding':_0x422e1f(0x17f)});}}return'';}};__decorate([(0x0,core_3[a12_0x3438af(0x1bb)])(),__metadata(a12_0x3438af(0x176),Object)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x172),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x3438af(0x176),core_1[a12_0x3438af(0x17d)])],ApitestStaticController[a12_0x3438af(0x17a)],'Environment',void 0x0),__decorate([(0x0,core_3[a12_0x3438af(0x1bb)])(),__metadata(a12_0x3438af(0x176),ApitestService)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x185),void 0x0),__decorate([(0x0,core_3[a12_0x3438af(0x1a1)])('apitest'),__metadata(a12_0x3438af(0x176),Boolean)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x186),void 0x0),__decorate([(0x0,core_3[a12_0x3438af(0x1a1)])(a12_0x3438af(0x1ba)),__metadata(a12_0x3438af(0x176),Object)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x1ab),void 0x0),__decorate([(0x0,core_2['Get'])(a12_0x3438af(0x1a4)),__metadata('design:type',Function),__metadata(a12_0x3438af(0x192),[]),__metadata(a12_0x3438af(0x1b9),Promise)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x173),null),__decorate([(0x0,core_2['Get'])(a12_0x3438af(0x19d)),__param(0x0,(0x0,core_2[a12_0x3438af(0x184)])('module')),__metadata(a12_0x3438af(0x176),Function),__metadata(a12_0x3438af(0x192),[String]),__metadata(a12_0x3438af(0x1b9),Promise)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x18f),null),__decorate([(0x0,core_2[a12_0x3438af(0x183)])(a12_0x3438af(0x19b)),__metadata(a12_0x3438af(0x176),Function),__metadata(a12_0x3438af(0x192),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x3438af(0x17a)],a12_0x3438af(0x1b6),null),ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a12_0x3438af(0x180)])(core_3['ScopeEnum'][a12_0x3438af(0x1a9)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x5f0fef=a13_0x55cb;(function(_0x391018,_0x4a0986){const _0x59f439=a13_0x55cb,_0x2feaf6=_0x391018();while(!![]){try{const _0x3a99db=-parseInt(_0x59f439(0x1e3))/0x1*(parseInt(_0x59f439(0x209))/0x2)+parseInt(_0x59f439(0x215))/0x3+parseInt(_0x59f439(0x21d))/0x4+-parseInt(_0x59f439(0x214))/0x5*(-parseInt(_0x59f439(0x20d))/0x6)+parseInt(_0x59f439(0x1ea))/0x7+parseInt(_0x59f439(0x1e0))/0x8+-parseInt(_0x59f439(0x200))/0x9;if(_0x3a99db===_0x4a0986)break;else _0x2feaf6['push'](_0x2feaf6['shift']());}catch(_0x3c03ef){_0x2feaf6['push'](_0x2feaf6['shift']());}}}(a13_0x21ee,0x884ff));const a13_0x110a33=(function(){let _0x3bda41=!![];return function(_0x34d641,_0x1f1c19){const _0x568608=_0x3bda41?function(){const _0x352b64=a13_0x55cb;if(_0x1f1c19){const _0x50b14f=_0x1f1c19[_0x352b64(0x225)](_0x34d641,arguments);return _0x1f1c19=null,_0x50b14f;}}:function(){};return _0x3bda41=![],_0x568608;};}()),a13_0x57825d=a13_0x110a33(this,function(){const _0x4c276a=a13_0x55cb;return a13_0x57825d['toString']()[_0x4c276a(0x201)](_0x4c276a(0x1e2))['toString']()[_0x4c276a(0x206)](a13_0x57825d)[_0x4c276a(0x201)](_0x4c276a(0x1e2));});a13_0x57825d();function a13_0x21ee(){const _0x15d059=['50575FXxjJi','1369485uKbzxP','App','__esModule','getCell','parse','addRow','Provide','app','220596fqbWeq','getOwnPropertyDescriptor','log','replace','isNumber','cellCount','koa-send','random','apply','ExcelService','endsWith','eachCell','metadata','6194216rKvGZe','addWorksheet','(((.+)+)+)+$','157856RIujpo','readFile','columns','design:type','rowCount','__decorate','decorate','2617881HDDbxQ','Scope','col','defineProperty','worksheets','.xlsx','__metadata','values','\x20is\x20read\x20fail','mkdirSync','value','writeFile','exceljs','export','prototype','Workbook','push','YYYY/MM/DD','get','Api\x20Excel\x20Error:\x20','function','model','8909946rxxbsp','search','getAppDir','startsWith','filter','findRows','constructor','length','xlsx','10tlJLft','getRow','ScopeEnum','object','402IsTVrV','key','handler','existsSync','substring','header','Sheet\x201'];a13_0x21ee=function(){return _0x15d059;};return a13_0x21ee();}function a13_0x55cb(_0x4fc5e6,_0x2ff865){const _0x3519a3=a13_0x21ee();return a13_0x55cb=function(_0x57825d,_0x110a33){_0x57825d=_0x57825d-0x1dd;let _0x21ee51=_0x3519a3[_0x57825d];return _0x21ee51;},a13_0x55cb(_0x4fc5e6,_0x2ff865);}'use strict';var __decorate=this&&this[a13_0x5f0fef(0x1e8)]||function(_0x59dded,_0x135d2a,_0x2439d6,_0x11423e){const _0x273fbf=a13_0x5f0fef;var _0x34b0a0=arguments['length'],_0x557966=_0x34b0a0<0x3?_0x135d2a:_0x11423e===null?_0x11423e=Object[_0x273fbf(0x21e)](_0x135d2a,_0x2439d6):_0x11423e,_0x371768;if(typeof Reflect===_0x273fbf(0x20c)&&typeof Reflect[_0x273fbf(0x1e9)]===_0x273fbf(0x1fe))_0x557966=Reflect[_0x273fbf(0x1e9)](_0x59dded,_0x135d2a,_0x2439d6,_0x11423e);else{for(var _0x453c08=_0x59dded['length']-0x1;_0x453c08>=0x0;_0x453c08--)if(_0x371768=_0x59dded[_0x453c08])_0x557966=(_0x34b0a0<0x3?_0x371768(_0x557966):_0x34b0a0>0x3?_0x371768(_0x135d2a,_0x2439d6,_0x557966):_0x371768(_0x135d2a,_0x2439d6))||_0x557966;}return _0x34b0a0>0x3&&_0x557966&&Object[_0x273fbf(0x1ed)](_0x135d2a,_0x2439d6,_0x557966),_0x557966;},__metadata=this&&this[a13_0x5f0fef(0x1f0)]||function(_0x47b4e8,_0x57e24f){const _0x21f332=a13_0x5f0fef;if(typeof Reflect===_0x21f332(0x20c)&&typeof Reflect[_0x21f332(0x1df)]===_0x21f332(0x1fe))return Reflect[_0x21f332(0x1df)](_0x47b4e8,_0x57e24f);};Object[a13_0x5f0fef(0x1ed)](exports,a13_0x5f0fef(0x217),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a13_0x5f0fef(0x1f6)),koasend=require(a13_0x5f0fef(0x223)),core_1=require('@midwayjs/core');let ExcelService=class ExcelService{async[a13_0x5f0fef(0x219)](_0xb6669f,_0x1cff84,_0x1e224d=[0x0]){const _0xa5c739=a13_0x5f0fef;var _0x20dab3,_0x35c357;const _0x397d8f=new exceljs[(_0xa5c739(0x1f9))](),_0x4c0dad=[];let _0x343f20=_0xb6669f[_0xa5c739(0x220)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x343f20===null||_0x343f20===void 0x0?void 0x0:_0x343f20['startsWith']('/'))&&(_0x343f20=this[_0xa5c739(0x21c)]['getAppDir']()+'/'+_0x343f20);try{await _0x397d8f[_0xa5c739(0x208)][_0xa5c739(0x1e4)](_0x343f20);}catch(_0x2b9d7e){return console[_0xa5c739(0x21f)](_0xa5c739(0x1fd)+_0x343f20+_0xa5c739(0x1f2)),_0x4c0dad;}for(const _0x26cfdb of _0x1e224d){const _0xc60bf6=lodash[_0xa5c739(0x221)](_0x26cfdb)?((_0x20dab3=_0x397d8f[_0xa5c739(0x1ee)])===null||_0x20dab3===void 0x0?void 0x0:_0x20dab3[_0x26cfdb])||undefined:_0x397d8f['getWorksheet'](_0x26cfdb);if(_0xc60bf6){var _0x3c90b7=0x1;const _0x57cd15=_0xc60bf6[_0xa5c739(0x20a)](0x1),_0x15f8f3=await new Promise(_0x40fc79=>{const _0x5ec6d6=_0xa5c739,_0x49bb06={};_0x57cd15[_0x5ec6d6(0x1de)]((_0xad8e31,_0x5c7d61)=>{const _0x32206c=_0x5ec6d6;for(const _0x3db658 of _0x1cff84){if(_0xad8e31[_0x32206c(0x1f4)]==_0x3db658[_0x32206c(0x212)])_0x3c90b7=0x2,_0x49bb06[_0x3db658[_0x32206c(0x20e)]]={'header':_0xad8e31[_0x32206c(0x1ec)],'handler':_0x3db658[_0x32206c(0x20f)]};else{if(!_0x49bb06[_0x3db658['key']])try{const _0x32a04a=_0x57cd15&&_0x57cd15[_0x32206c(0x218)](_0x3db658[_0x32206c(0x212)]);_0x32a04a&&(_0x49bb06[_0x3db658[_0x32206c(0x20e)]]={'header':_0x32a04a[_0x32206c(0x1ec)],'handler':_0x3db658[_0x32206c(0x20f)]});}catch{}}}_0x57cd15[_0x32206c(0x222)]==_0x5c7d61&&_0x40fc79(_0x49bb06);});});for(const _0x26b2e6 of _0xc60bf6[_0xa5c739(0x205)](_0x3c90b7,_0xc60bf6[_0xa5c739(0x1e7)])){const _0x17f220={};for(const _0x1d2f66 in _0x15f8f3){if(_0x15f8f3[_0x1d2f66][_0xa5c739(0x212)]){const _0x1d3675=_0x26b2e6&&_0x26b2e6[_0xa5c739(0x218)](_0x15f8f3[_0x1d2f66][_0xa5c739(0x212)]);typeof((_0x35c357=_0x15f8f3[_0x1d2f66])===null||_0x35c357===void 0x0?void 0x0:_0x35c357[_0xa5c739(0x20f)])=='function'?_0x17f220[_0x1d2f66]=await _0x15f8f3[_0x1d2f66][_0xa5c739(0x20f)](lodash['set']({},_0x1d2f66,(_0x1d3675===null||_0x1d3675===void 0x0?void 0x0:_0x1d3675['toString']())||''),_0x1d3675[_0xa5c739(0x1ff)]):_0x17f220[_0x1d2f66]=(_0x1d3675===null||_0x1d3675===void 0x0?void 0x0:_0x1d3675['toString']())||'';}}Object['keys'](_0x17f220)[_0xa5c739(0x207)]>0x0&&Object[_0xa5c739(0x1f1)](_0x17f220)[_0xa5c739(0x204)](_0x5dfab1=>_0x5dfab1!=='')[_0xa5c739(0x207)]>0x0&&_0x4c0dad[_0xa5c739(0x1fa)](_0x17f220);}}}return _0x4c0dad;}async[a13_0x5f0fef(0x1f7)](_0x91ef26,_0xd32dc3,_0x32ef50,_0x3f19fb){const _0x2f84b8=a13_0x5f0fef;var _0x36e6b3,_0x28813c;const _0x545b1e=new exceljs[(_0x2f84b8(0x1f9))](),_0x3dd8e5={},_0x3eb196=[],_0x572867=_0x545b1e[_0x2f84b8(0x1e1)](_0x2f84b8(0x213),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x3ceb06 in _0xd32dc3){_0x3dd8e5[_0xd32dc3[_0x3ceb06][_0x2f84b8(0x20e)]]=_0xd32dc3[_0x3ceb06][_0x2f84b8(0x212)],_0x3eb196[_0x2f84b8(0x1fa)]({'header':_0xd32dc3[_0x3ceb06][_0x2f84b8(0x212)],'key':(_0x36e6b3=_0xd32dc3[_0x3ceb06])===null||_0x36e6b3===void 0x0?void 0x0:_0x36e6b3[_0x2f84b8(0x20e)][_0x2f84b8(0x220)](/\./g,'_')});}_0x572867[_0x2f84b8(0x1e5)]=_0x3eb196;for(const _0x3d6439 of _0x32ef50){const _0x13b82d={};for(const _0x2021a0 in _0xd32dc3){typeof((_0x28813c=_0xd32dc3[_0x2021a0])===null||_0x28813c===void 0x0?void 0x0:_0x28813c[_0x2f84b8(0x20f)])==_0x2f84b8(0x1fe)?_0x13b82d[_0xd32dc3[_0x2021a0][_0x2f84b8(0x20e)][_0x2f84b8(0x220)](/\./g,'_')]=await _0xd32dc3[_0x2021a0][_0x2f84b8(0x20f)](_0x3d6439):_0x13b82d[_0xd32dc3[_0x2021a0][_0x2f84b8(0x20e)][_0x2f84b8(0x220)](/\./g,'_')]=lodash[_0x2f84b8(0x1fc)](_0x3d6439,_0xd32dc3[_0x2021a0][_0x2f84b8(0x20e)],'');}_0x572867[_0x2f84b8(0x21a)](_0x13b82d);}let _0x450f6b='';const _0xdf3319=_0x91ef26+'-'+lodash[_0x2f84b8(0x224)](0x186a0,0xf423f)+_0x2f84b8(0x1ef);if(_0x3f19fb&&_0x3f19fb[_0x2f84b8(0x203)]('/'))_0x450f6b=''+_0x3f19fb;else _0x3f19fb&&!_0x3f19fb[_0x2f84b8(0x203)]('/')&&!_0x3f19fb[_0x2f84b8(0x203)]('\x5c')?_0x450f6b=this[_0x2f84b8(0x21c)][_0x2f84b8(0x202)]()+'/'+_0x3f19fb:_0x450f6b=this[_0x2f84b8(0x21c)][_0x2f84b8(0x202)]()+'/public/xlsx/'+dayjs()['format'](_0x2f84b8(0x1fb));return(_0x450f6b[_0x2f84b8(0x1dd)]('/')||_0x450f6b[_0x2f84b8(0x1dd)]('\x5c'))&&(_0x450f6b=_0x450f6b[_0x2f84b8(0x211)](0x0,_0x450f6b[_0x2f84b8(0x207)]-0x1)),_0x450f6b=_0x450f6b[_0x2f84b8(0x220)](/(\\|\/)/g,'/')[_0x2f84b8(0x220)](/\/{2,}/g,'/'),!fs[_0x2f84b8(0x210)](_0x450f6b)&&fs[_0x2f84b8(0x1f3)](_0x450f6b,{'recursive':!![]}),await _0x545b1e[_0x2f84b8(0x208)][_0x2f84b8(0x1f5)]((_0x450f6b+'/'+_0xdf3319)[_0x2f84b8(0x220)](/(\\|\/)/g,'/')[_0x2f84b8(0x220)](/\/{2,}/g,'/')),{'filename':_0xdf3319,'filepath':(_0x450f6b[_0x2f84b8(0x211)]((''+this[_0x2f84b8(0x21c)][_0x2f84b8(0x202)]())[_0x2f84b8(0x207)])+'/'+_0xdf3319)[_0x2f84b8(0x220)](/(\\|\/)/g,'/')[_0x2f84b8(0x220)](/\/{2,}/g,'/')};}async['download'](_0x10cb65,_0x1c37da){return await koasend(_0x10cb65,''+_0x1c37da);}};__decorate([(0x0,core_1[a13_0x5f0fef(0x216)])(),__metadata(a13_0x5f0fef(0x1e6),Object)],ExcelService[a13_0x5f0fef(0x1f8)],a13_0x5f0fef(0x21c),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x5f0fef(0x21b)])(),(0x0,core_1[a13_0x5f0fef(0x1eb)])(core_1[a13_0x5f0fef(0x20b)]['Singleton'])],ExcelService),exports[a13_0x5f0fef(0x226)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a14_0x5969ea=a14_0x11d5;(function(_0x4f3dcb,_0x487ffa){var _0x40792e=a14_0x11d5,_0x4f890f=_0x4f3dcb();while(!![]){try{var _0x329749=-parseInt(_0x40792e(0xa6))/0x1+-parseInt(_0x40792e(0x9f))/0x2+parseInt(_0x40792e(0x94))/0x3*(parseInt(_0x40792e(0x9e))/0x4)+-parseInt(_0x40792e(0xa1))/0x5*(-parseInt(_0x40792e(0x98))/0x6)+parseInt(_0x40792e(0x9d))/0x7+parseInt(_0x40792e(0x93))/0x8*(parseInt(_0x40792e(0x9b))/0x9)+parseInt(_0x40792e(0x9c))/0xa*(-parseInt(_0x40792e(0x96))/0xb);if(_0x329749===_0x487ffa)break;else _0x4f890f['push'](_0x4f890f['shift']());}catch(_0x532670){_0x4f890f['push'](_0x4f890f['shift']());}}}(a14_0x3650,0xd1bf7));var a14_0x4dfee1=(function(){var _0x105eb2=!![];return function(_0x40f4c5,_0x3fec18){var _0x5a646c=_0x105eb2?function(){var _0x3acb14=a14_0x11d5;if(_0x3fec18){var _0x5ef24c=_0x3fec18[_0x3acb14(0x99)](_0x40f4c5,arguments);return _0x3fec18=null,_0x5ef24c;}}:function(){};return _0x105eb2=![],_0x5a646c;};}()),a14_0xc82069=a14_0x4dfee1(this,function(){var _0x8d926e=a14_0x11d5;return a14_0xc82069[_0x8d926e(0x95)]()['search'](_0x8d926e(0xa5))[_0x8d926e(0x95)]()['constructor'](a14_0xc82069)['search']('(((.+)+)+)+$');});a14_0xc82069();function a14_0x3650(){var _0x109701=['anncic-api:action','(((.+)+)+)+$','796665uLlKBr','defineProperty','APPSCONFIG_KEY','anncic-api:apps:config','1696OJbQoe','3787029lcDTxV','toString','1565146eQUdck','anncic-api:action:route','5958EQkWNh','apply','ACTION_ROUTE_KEY','5409GqyiAs','10whJjRc','2628213rLKyYb','4iEPELf','1590596EpmzzI','AppsConfigTmp','4170gdScBk','ACTION_KEY','__esModule'];a14_0x3650=function(){return _0x109701;};return a14_0x3650();}'use strict';Object[a14_0x5969ea(0xa7)](exports,a14_0x5969ea(0xa3),{'value':!![]}),exports['AppsConfigTmp']=exports[a14_0x5969ea(0xa8)]=exports[a14_0x5969ea(0x9a)]=exports[a14_0x5969ea(0xa2)]=void 0x0,exports[a14_0x5969ea(0xa2)]=a14_0x5969ea(0xa4),exports[a14_0x5969ea(0x9a)]=a14_0x5969ea(0x97),exports['APPSCONFIG_KEY']=a14_0x5969ea(0x92);function a14_0x11d5(_0x19130b,_0x11b3d6){var _0x375a5b=a14_0x3650();return a14_0x11d5=function(_0xc82069,_0x4dfee1){_0xc82069=_0xc82069-0x92;var _0x3650eb=_0x375a5b[_0xc82069];return _0x3650eb;},a14_0x11d5(_0x19130b,_0x11b3d6);}class AppsConfigTmp{}exports[a14_0x5969ea(0xa0)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x365e6b=a15_0x51c6;function a15_0x480c(){var _0x283b94=['string','第一页为1,第二页为2','11544EaDjKf','RuleType','function','244CsaUQe','search','_isreverse','__metadata','_order','length','object','分页数量','1147860wUBNwC','min','toString','defineProperty','5817PZUSlF','37462250PgtkaY','297792EplGej','861321EDZvGL','PageDTO','_page','Rule','是否倒序','design:type','55ngIZwS','number','@anncic-api/validator','3299YbVZUY','decorate','651858EwoNrU','apply','prototype','integer','getOwnPropertyDescriptor','__esModule'];a15_0x480c=function(){return _0x283b94;};return a15_0x480c();}(function(_0x37e53f,_0x5554b5){var _0x1aa515=a15_0x51c6,_0x1eade5=_0x37e53f();while(!![]){try{var _0x6eb630=-parseInt(_0x1aa515(0x16f))/0x1*(parseInt(_0x1aa515(0x17c))/0x2)+-parseInt(_0x1aa515(0x18b))/0x3+parseInt(_0x1aa515(0x18a))/0x4+-parseInt(_0x1aa515(0x191))/0x5*(parseInt(_0x1aa515(0x171))/0x6)+parseInt(_0x1aa515(0x188))/0x7*(-parseInt(_0x1aa515(0x179))/0x8)+-parseInt(_0x1aa515(0x184))/0x9+parseInt(_0x1aa515(0x189))/0xa;if(_0x6eb630===_0x5554b5)break;else _0x1eade5['push'](_0x1eade5['shift']());}catch(_0x3c995b){_0x1eade5['push'](_0x1eade5['shift']());}}}(a15_0x480c,0x94c3e));var a15_0x278b26=(function(){var _0x3a54e0=!![];return function(_0xcfa6d1,_0x41c9c7){var _0x253156=_0x3a54e0?function(){var _0x4d6eca=a15_0x51c6;if(_0x41c9c7){var _0x5673c1=_0x41c9c7[_0x4d6eca(0x172)](_0xcfa6d1,arguments);return _0x41c9c7=null,_0x5673c1;}}:function(){};return _0x3a54e0=![],_0x253156;};}()),a15_0x1ca179=a15_0x278b26(this,function(){var _0x121c83=a15_0x51c6;return a15_0x1ca179[_0x121c83(0x186)]()[_0x121c83(0x17d)]('(((.+)+)+)+$')[_0x121c83(0x186)]()['constructor'](a15_0x1ca179)['search']('(((.+)+)+)+$');});a15_0x1ca179();function a15_0x51c6(_0x32b9b0,_0x4195c7){var _0x4d7cc0=a15_0x480c();return a15_0x51c6=function(_0x1ca179,_0x278b26){_0x1ca179=_0x1ca179-0x16f;var _0x480cc5=_0x4d7cc0[_0x1ca179];return _0x480cc5;},a15_0x51c6(_0x32b9b0,_0x4195c7);}'use strict';var __decorate=this&&this['__decorate']||function(_0x445b7d,_0x24aa6c,_0x176df8,_0x4a6906){var _0x54912c=a15_0x51c6,_0x39328f=arguments[_0x54912c(0x181)],_0x420c4c=_0x39328f<0x3?_0x24aa6c:_0x4a6906===null?_0x4a6906=Object[_0x54912c(0x175)](_0x24aa6c,_0x176df8):_0x4a6906,_0x198595;if(typeof Reflect===_0x54912c(0x182)&&typeof Reflect[_0x54912c(0x170)]===_0x54912c(0x17b))_0x420c4c=Reflect['decorate'](_0x445b7d,_0x24aa6c,_0x176df8,_0x4a6906);else{for(var _0x10f6f5=_0x445b7d[_0x54912c(0x181)]-0x1;_0x10f6f5>=0x0;_0x10f6f5--)if(_0x198595=_0x445b7d[_0x10f6f5])_0x420c4c=(_0x39328f<0x3?_0x198595(_0x420c4c):_0x39328f>0x3?_0x198595(_0x24aa6c,_0x176df8,_0x420c4c):_0x198595(_0x24aa6c,_0x176df8))||_0x420c4c;}return _0x39328f>0x3&&_0x420c4c&&Object['defineProperty'](_0x24aa6c,_0x176df8,_0x420c4c),_0x420c4c;},__metadata=this&&this[a15_0x365e6b(0x17f)]||function(_0xc854de,_0x290744){var _0x3c3fd9=a15_0x365e6b;if(typeof Reflect===_0x3c3fd9(0x182)&&typeof Reflect['metadata']===_0x3c3fd9(0x17b))return Reflect['metadata'](_0xc854de,_0x290744);};Object[a15_0x365e6b(0x187)](exports,a15_0x365e6b(0x176),{'value':!![]}),exports[a15_0x365e6b(0x18c)]=void 0x0;const validator_1=require(a15_0x365e6b(0x193));class PageDTO{}__decorate([(0x0,validator_1[a15_0x365e6b(0x18e)])('分页',validator_1[a15_0x365e6b(0x17a)][a15_0x365e6b(0x192)]()['integer']()[a15_0x365e6b(0x185)](0x1),a15_0x365e6b(0x178)),__metadata(a15_0x365e6b(0x190),Number)],PageDTO[a15_0x365e6b(0x173)],a15_0x365e6b(0x18d),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x365e6b(0x183),validator_1['RuleType'][a15_0x365e6b(0x192)]()[a15_0x365e6b(0x174)]()['min'](0x1)),__metadata(a15_0x365e6b(0x190),Number)],PageDTO[a15_0x365e6b(0x173)],'_size',void 0x0),__decorate([(0x0,validator_1[a15_0x365e6b(0x18e)])('排序方式',validator_1[a15_0x365e6b(0x17a)][a15_0x365e6b(0x177)]()['trim']()),__metadata(a15_0x365e6b(0x190),String)],PageDTO[a15_0x365e6b(0x173)],a15_0x365e6b(0x180),void 0x0),__decorate([(0x0,validator_1[a15_0x365e6b(0x18e)])(a15_0x365e6b(0x18f),validator_1['RuleType'][a15_0x365e6b(0x192)]()[a15_0x365e6b(0x174)]()['valid'](0x0,0x1),'1:是;0:否'),__metadata(a15_0x365e6b(0x190),Number)],PageDTO['prototype'],a15_0x365e6b(0x17e),void 0x0),exports[a15_0x365e6b(0x18c)]=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x5710b6=a16_0x5eb2;function a16_0x5eb2(_0x4e3d05,_0x31dede){var _0x359067=a16_0x4477();return a16_0x5eb2=function(_0x1b0eff,_0x46a4a7){_0x1b0eff=_0x1b0eff-0x91;var _0x447799=_0x359067[_0x1b0eff];return _0x447799;},a16_0x5eb2(_0x4e3d05,_0x31dede);}(function(_0x374c66,_0x3a8b8c){var _0x4229bd=a16_0x5eb2,_0x275a99=_0x374c66();while(!![]){try{var _0x163dcb=-parseInt(_0x4229bd(0xa0))/0x1*(-parseInt(_0x4229bd(0x92))/0x2)+-parseInt(_0x4229bd(0x9c))/0x3+-parseInt(_0x4229bd(0x9d))/0x4+parseInt(_0x4229bd(0xa2))/0x5+-parseInt(_0x4229bd(0x97))/0x6*(parseInt(_0x4229bd(0x96))/0x7)+parseInt(_0x4229bd(0x9a))/0x8*(-parseInt(_0x4229bd(0xa4))/0x9)+parseInt(_0x4229bd(0x9f))/0xa;if(_0x163dcb===_0x3a8b8c)break;else _0x275a99['push'](_0x275a99['shift']());}catch(_0x11038a){_0x275a99['push'](_0x275a99['shift']());}}}(a16_0x4477,0x77239));var a16_0x46a4a7=(function(){var _0x5b1937=!![];return function(_0x10cebd,_0x498f1d){var _0x2037dc=_0x5b1937?function(){var _0xa4ece5=a16_0x5eb2;if(_0x498f1d){var _0x322433=_0x498f1d[_0xa4ece5(0xa1)](_0x10cebd,arguments);return _0x498f1d=null,_0x322433;}}:function(){};return _0x5b1937=![],_0x2037dc;};}()),a16_0x1b0eff=a16_0x46a4a7(this,function(){var _0x372198=a16_0x5eb2;return a16_0x1b0eff[_0x372198(0x94)]()[_0x372198(0x9e)](_0x372198(0x9b))[_0x372198(0x94)]()[_0x372198(0x98)](a16_0x1b0eff)['search'](_0x372198(0x9b));});a16_0x1b0eff();'use strict';Object[a16_0x5710b6(0x95)](exports,a16_0x5710b6(0xa3),{'value':!![]}),exports[a16_0x5710b6(0x99)]=exports['INTERCEPT_KEY']=void 0x0,exports[a16_0x5710b6(0x91)]=a16_0x5710b6(0x93);class InterceptTargetTmp{}function a16_0x4477(){var _0x236054=['427SoqmtD','5982jNwuQV','constructor','InterceptTargetTmp','1402320dnnGmu','(((.+)+)+)+$','2615172QyaqEH','2623828MLjZVN','search','13348340bIgyVh','1MuihXl','apply','4602890NNUTGo','__esModule','18xyatmR','INTERCEPT_KEY','343318UdestA','anncic-api:intercept','toString','defineProperty'];a16_0x4477=function(){return _0x236054;};return a16_0x4477();}exports[a16_0x5710b6(0x99)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
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.5.
|
|
21
|
-
"@anncic-api/core": "^1.5.
|
|
22
|
-
"@anncic-api/event": "^1.5.
|
|
23
|
-
"@anncic-api/typeorm": "^1.5.
|
|
24
|
-
"@anncic-api/validator": "^1.5.
|
|
20
|
+
"@anncic-api/cache": "^1.5.8",
|
|
21
|
+
"@anncic-api/core": "^1.5.8",
|
|
22
|
+
"@anncic-api/event": "^1.5.8",
|
|
23
|
+
"@anncic-api/typeorm": "^1.5.8",
|
|
24
|
+
"@anncic-api/validator": "^1.5.8",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^1.5.
|
|
30
|
+
"anncic-apihelper": "^1.5.8",
|
|
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": "d9ce0be4623dcd0cc941f8f3f4c21541df3acb78"
|
|
41
41
|
}
|