anncic-api 3.2.28 → 3.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.d.ts +2 -2
- 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
|
-
|
|
1
|
+
function a0_0x45eb(_0x325099,_0x3ceb37){var _0x355545=a0_0xbb94();return a0_0x45eb=function(_0x580728,_0x1ed7af){_0x580728=_0x580728-0xd2;var _0xbb9402=_0x355545[_0x580728];return _0xbb9402;},a0_0x45eb(_0x325099,_0x3ceb37);}var a0_0x5060ff=a0_0x45eb;(function(_0x2eb8f5,_0x3877b0){var _0x461ac5=a0_0x45eb,_0x639ef5=_0x2eb8f5();while(!![]){try{var _0x70ba1=-parseInt(_0x461ac5(0xe7))/0x1*(parseInt(_0x461ac5(0xd6))/0x2)+parseInt(_0x461ac5(0xe8))/0x3*(-parseInt(_0x461ac5(0xea))/0x4)+parseInt(_0x461ac5(0xe5))/0x5+parseInt(_0x461ac5(0xd3))/0x6+-parseInt(_0x461ac5(0xe3))/0x7*(-parseInt(_0x461ac5(0xdb))/0x8)+parseInt(_0x461ac5(0xe9))/0x9*(-parseInt(_0x461ac5(0xde))/0xa)+parseInt(_0x461ac5(0xdc))/0xb;if(_0x70ba1===_0x3877b0)break;else _0x639ef5['push'](_0x639ef5['shift']());}catch(_0x849326){_0x639ef5['push'](_0x639ef5['shift']());}}}(a0_0xbb94,0x639dd));function a0_0xbb94(){var _0x228292=['84jYdQeM','xml','dhauo1234420123gg3234901','form','text','506202CLYDkj','apply','_token','2PktMzf','json','defineProperty','/runtime/.upload','zhiulanuiy7892387985hnoi','38848plNBTB','5723190WPxYEa','name','20vqmoxz','toString','appDir','search','20mb','371dglAFH','__esModule','2094745lODpZt','(((.+)+)+)+$','249903zyDPkI','10428DPDfbJ','2475207VSTZoC'];a0_0xbb94=function(){return _0x228292;};return a0_0xbb94();}var a0_0x1ed7af=(function(){var _0x1711fc=!![];return function(_0x4ed51c,_0x2cf414){var _0x5d4038=_0x1711fc?function(){var _0x3e97ee=a0_0x45eb;if(_0x2cf414){var _0x58e74d=_0x2cf414[_0x3e97ee(0xd4)](_0x4ed51c,arguments);return _0x2cf414=null,_0x58e74d;}}:function(){};return _0x1711fc=![],_0x5d4038;};}()),a0_0x580728=a0_0x1ed7af(this,function(){var _0x115c05=a0_0x45eb;return a0_0x580728[_0x115c05(0xdf)]()[_0x115c05(0xe1)](_0x115c05(0xe6))[_0x115c05(0xdf)]()['constructor'](a0_0x580728)[_0x115c05(0xe1)]('(((.+)+)+)+$');});a0_0x580728();'use strict';Object[a0_0x5060ff(0xd8)](exports,a0_0x5060ff(0xe4),{'value':!![]}),exports['default']=_0x9e0c6c=>{var _0x285682=a0_0x5060ff;return{'apitest':!![],'keys':_0x9e0c6c[_0x285682(0xdd)],'anncicapi':{'requestKey':_0x285682(0xd5),'password':_0x285682(0xda),'devices':{'DEFAULT':{'secret':_0x285682(0xec),'checkcode':_0x285682(0xec)}}},'bodyParser':{'enableTypes':[_0x285682(0xd7),_0x285682(0xed),_0x285682(0xd2),_0x285682(0xeb)],'formLimit':_0x285682(0xe2),'jsonLimit':_0x285682(0xe2),'textLimit':'20mb','xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x9e0c6c[_0x285682(0xe0)]+_0x285682(0xd9),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x304f1d=a1_0x5f33;(function(_0x4ce0c7,_0xb65670){var _0x349cd3=a1_0x5f33,_0x149e34=_0x4ce0c7();while(!![]){try{var _0x21299f=-parseInt(_0x349cd3(0x1c2))/0x1*(-parseInt(_0x349cd3(0x1cc))/0x2)+-parseInt(_0x349cd3(0x1cf))/0x3*(-parseInt(_0x349cd3(0x1cb))/0x4)+parseInt(_0x349cd3(0x1c8))/0x5+-parseInt(_0x349cd3(0x1c3))/0x6+parseInt(_0x349cd3(0x1c7))/0x7+-parseInt(_0x349cd3(0x1c4))/0x8*(parseInt(_0x349cd3(0x1ca))/0x9)+parseInt(_0x349cd3(0x1c1))/0xa*(parseInt(_0x349cd3(0x1c6))/0xb);if(_0x21299f===_0xb65670)break;else _0x149e34['push'](_0x149e34['shift']());}catch(_0x98d5f0){_0x149e34['push'](_0x149e34['shift']());}}}(a1_0x3c08,0xb18e0));var a1_0x48dad4=(function(){var _0x4e61b7=!![];return function(_0x58346e,_0x5030fb){var _0x23025b=_0x4e61b7?function(){if(_0x5030fb){var _0xca8dd3=_0x5030fb['apply'](_0x58346e,arguments);return _0x5030fb=null,_0xca8dd3;}}:function(){};return _0x4e61b7=![],_0x23025b;};}()),a1_0x273b1e=a1_0x48dad4(this,function(){var _0x1a241b=a1_0x5f33;return a1_0x273b1e[_0x1a241b(0x1cd)]()[_0x1a241b(0x1ce)](_0x1a241b(0x1c5))[_0x1a241b(0x1cd)]()['constructor'](a1_0x273b1e)['search'](_0x1a241b(0x1c5));});function a1_0x5f33(_0x8f8895,_0x3238a7){var _0x59c8e8=a1_0x3c08();return a1_0x5f33=function(_0x273b1e,_0x48dad4){_0x273b1e=_0x273b1e-0x1c0;var _0x3c086d=_0x59c8e8[_0x273b1e];return _0x3c086d;},a1_0x5f33(_0x8f8895,_0x3238a7);}function a1_0x3c08(){var _0x1d2847=['6824940uCeoSa','655376hpOygZ','(((.+)+)+)+$','11Ylyacs','10092404dsBrpD','128015KbrMGx','defineProperty','72pYqWJC','4sFGyEd','22cOllJJ','toString','search','1856733izMTUa','__esModule','447410yqcxsk','35373LdQfyq'];a1_0x3c08=function(){return _0x1d2847;};return a1_0x3c08();}a1_0x273b1e();'use strict';Object[a1_0x304f1d(0x1c9)](exports,a1_0x304f1d(0x1c0),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x229dfd=a2_0x3e42;(function(_0x2286a8,_0x304f75){const _0x5420d9=a2_0x3e42,_0x551466=_0x2286a8();while(!![]){try{const _0x1b33b4=-parseInt(_0x5420d9(0xfb))/0x1+parseInt(_0x5420d9(0x15b))/0x2*(parseInt(_0x5420d9(0x104))/0x3)+parseInt(_0x5420d9(0x101))/0x4*(-parseInt(_0x5420d9(0x103))/0x5)+-parseInt(_0x5420d9(0x13d))/0x6*(-parseInt(_0x5420d9(0x122))/0x7)+parseInt(_0x5420d9(0x171))/0x8*(-parseInt(_0x5420d9(0x115))/0x9)+parseInt(_0x5420d9(0x12e))/0xa+parseInt(_0x5420d9(0xf5))/0xb*(-parseInt(_0x5420d9(0x12c))/0xc);if(_0x1b33b4===_0x304f75)break;else _0x551466['push'](_0x551466['shift']());}catch(_0x551361){_0x551466['push'](_0x551466['shift']());}}}(a2_0x2a42,0x7cc25));const a2_0x2022a0=(function(){let _0x1ae4b5=!![];return function(_0x120c51,_0x17f9c4){const _0x2417bd=_0x1ae4b5?function(){if(_0x17f9c4){const _0x3b0338=_0x17f9c4['apply'](_0x120c51,arguments);return _0x17f9c4=null,_0x3b0338;}}:function(){};return _0x1ae4b5=![],_0x2417bd;};}()),a2_0x38fafd=a2_0x2022a0(this,function(){const _0x56be0a=a2_0x3e42;return a2_0x38fafd[_0x56be0a(0x112)]()[_0x56be0a(0x176)](_0x56be0a(0x173))[_0x56be0a(0x112)]()[_0x56be0a(0x127)](a2_0x38fafd)[_0x56be0a(0x176)](_0x56be0a(0x173));});a2_0x38fafd();'use strict';function a2_0x2a42(){const _0xb848d5=['ACTION_ROUTE_KEY','statSync','443','ApiError','anncic-api','-log','isDirectory','addObject','61136BwsJOq','requestKey','(((.+)+)+)+$','headers','design:type','search','staticFile','defineProperties','log','proceed','@midwayjs/static-file','_matchedRoute','undefined','length','request','11BIVhrw','decorator','__decorate','assign','./types/intercept','config','461867qkFLaS','getBaseDir','@anncic-api/cache','match','./config/config.default','./types/action','16viRuhA','target','366955HKbvds','1628769RLxujr','toLowerCase','filterConfig','object','/apps','Types','devices','MidwayApplicationManager','文件不存在','handlerActionRoute','/apps/','@midwayjs/core','parse','host','toString','Inject','apimit','693mLWMaY','query','function','req','checksign','getAppDir','MidwayDecoratorService','getClassMetadata','startsWith','key','mkdirSync','anncicapi','HEADERS_SIGNATURE','141862DZFFOz','dirs','hanlderApplications','getOwnPropertyDescriptor','environment','constructor','isFunction','connection','prototype','http://','4018116JVIOCD','ApiService','6942960UVvZFz','__esModule','clients','intercept','DEFAULT','metadata','bodyXml','existsSync','app','defineProperty','midwayLogger','upload','includes','MidwayConfigService','input','282PvsnzQ','@anncic-api/event','dir','loggerConfig','context','handler','@anncic-api/validator','CustomConfiguration','__metadata','.log','/runtime','./service/ApiService','body','default','readdirSync','koa-send','koa','requestContext','split','App','Configuration','device','application','anncic-apihelper','method','defaultsDeep','http','isClass','onReady','decorate','2xRCiZG','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/koa','@midwayjs/upload','REQUEST_OBJ_CTX_KEY','/runtime/apps-','tmpdir','attachment','string','MidwayEnvironmentService','getConfiguration','args','isNull','https://'];a2_0x2a42=function(){return _0xb848d5;};return a2_0x2a42();}var __decorate=this&&this[a2_0x229dfd(0xf7)]||function(_0x680ce5,_0x2beebf,_0x3be2bf,_0x18c60e){const _0x3b1219=a2_0x229dfd;var _0x106d70=arguments[_0x3b1219(0x17e)],_0x1d28d0=_0x106d70<0x3?_0x2beebf:_0x18c60e===null?_0x18c60e=Object[_0x3b1219(0x125)](_0x2beebf,_0x3be2bf):_0x18c60e,_0x3bb2bc;if(typeof Reflect===_0x3b1219(0x107)&&typeof Reflect[_0x3b1219(0x15a)]==='function')_0x1d28d0=Reflect['decorate'](_0x680ce5,_0x2beebf,_0x3be2bf,_0x18c60e);else{for(var _0x3166ad=_0x680ce5[_0x3b1219(0x17e)]-0x1;_0x3166ad>=0x0;_0x3166ad--)if(_0x3bb2bc=_0x680ce5[_0x3166ad])_0x1d28d0=(_0x106d70<0x3?_0x3bb2bc(_0x1d28d0):_0x106d70>0x3?_0x3bb2bc(_0x2beebf,_0x3be2bf,_0x1d28d0):_0x3bb2bc(_0x2beebf,_0x3be2bf))||_0x1d28d0;}return _0x106d70>0x3&&_0x1d28d0&&Object[_0x3b1219(0x137)](_0x2beebf,_0x3be2bf,_0x1d28d0),_0x1d28d0;},__metadata=this&&this[a2_0x229dfd(0x145)]||function(_0x17c624,_0x5817de){const _0x53127f=a2_0x229dfd;if(typeof Reflect===_0x53127f(0x107)&&typeof Reflect[_0x53127f(0x133)]===_0x53127f(0x117))return Reflect[_0x53127f(0x133)](_0x17c624,_0x5817de);};function a2_0x3e42(_0x49cffe,_0x48df05){const _0x4b2e09=a2_0x2a42();return a2_0x3e42=function(_0x38fafd,_0x2022a0){_0x38fafd=_0x38fafd-0xf4;let _0x2a422c=_0x4b2e09[_0x38fafd];return _0x2a422c;},a2_0x3e42(_0x49cffe,_0x48df05);}Object['defineProperty'](exports,a2_0x229dfd(0x12f),{'value':!![]}),exports[a2_0x229dfd(0x144)]=void 0x0;const core_1=require(a2_0x229dfd(0x10f)),core_2=require(a2_0x229dfd(0x10f)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x229dfd(0x148)),action_1=require(a2_0x229dfd(0x100)),intercept_1=require(a2_0x229dfd(0xf9)),fs=require('fs'),koasend=require(a2_0x229dfd(0x14c)),koa=require(a2_0x229dfd(0x15d)),upload=require(a2_0x229dfd(0x15e)),staticFile=require(a2_0x229dfd(0x17b)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x229dfd(0xff)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x229dfd(0xfd)),anncicEvent=require(a2_0x229dfd(0x13e)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x229dfd(0x143)),anncicHelper=require(a2_0x229dfd(0x154));let CustomConfiguration=exports[a2_0x229dfd(0x144)]=class CustomConfiguration{async[a2_0x229dfd(0x159)](){const _0x141673=a2_0x229dfd;await this['filterConfig'](),await this[_0x141673(0x140)](),await this[_0x141673(0x10d)](),await this['hanlderApplications']();}async['handlerActionRoute'](){const _0x34fb90=a2_0x229dfd,_0x349274=this[_0x34fb90(0xfa)][_0x34fb90(0x165)](),_0x588d7d=(0x0,core_1[_0x34fb90(0x11c)])(intercept_1['INTERCEPT_KEY'],intercept_1['InterceptTargetTmp'])||{};this[_0x34fb90(0xf6)]['registerMethodHandler'](action_1[_0x34fb90(0x169)],_0x22f8fc=>{const _0x4dac23=_0x34fb90,_0x33a2bd=_0x22f8fc[_0x4dac23(0x133)];return{'before':async _0xf2015f=>{const _0x592107=_0x4dac23;var _0x11f375,_0x2b456b,_0x40f6ac,_0x462b84;const _0x3d10e3=(_0x11f375=_0xf2015f===null||_0xf2015f===void 0x0?void 0x0:_0xf2015f['target'])===null||_0x11f375===void 0x0?void 0x0:_0x11f375[core_2[_0x592107(0x15f)]],_0x2eb7b0=lodash[_0x592107(0x156)]({},_0x3d10e3[_0x592107(0xf4)][_0x592107(0x149)]||_0x3d10e3['request'][((_0x2b456b=_0x349274===null||_0x349274===void 0x0?void 0x0:_0x349274[_0x592107(0x134)])===null||_0x2b456b===void 0x0?void 0x0:_0x2b456b[_0x592107(0x11e)])||_0x592107(0x149)]||{},_0x3d10e3[_0x592107(0xf4)][_0x592107(0x116)]||{});if(_0x3d10e3&&(_0x33a2bd===null||_0x33a2bd===void 0x0?void 0x0:_0x33a2bd[_0x592107(0x114)]))try{const _0x1dd11d=((_0x40f6ac=_0x349274===null||_0x349274===void 0x0?void 0x0:_0x349274['anncicapi'])===null||_0x40f6ac===void 0x0?void 0x0:_0x40f6ac[_0x592107(0x172)])&&typeof(_0x2eb7b0===null||_0x2eb7b0===void 0x0?void 0x0:_0x2eb7b0[_0x349274['anncicapi'][_0x592107(0x172)]])==_0x592107(0x163)?JSON[_0x592107(0x110)](base64_decode(_0x2eb7b0[_0x349274['anncicapi'][_0x592107(0x172)]])||'{}')||{}:((_0x462b84=_0x3d10e3===null||_0x3d10e3===void 0x0?void 0x0:_0x3d10e3[_0x592107(0xf4)])===null||_0x462b84===void 0x0?void 0x0:_0x462b84[_0x592107(0x174)])||{};if(!this[_0x592107(0x12d)][_0x592107(0x119)](_0x1dd11d))throw new AnnError(ApiError_1['ApiError'][_0x592107(0x121)]);}catch(_0x3f208c){if(_0x3f208c instanceof AnnError)throw _0x3f208c;else throw new AnnError(ApiError_1[_0x592107(0x16c)]['_UNKNOW_']);}},'around':async _0x3af648=>{const _0x1841d8=_0x4dac23;var _0x59c1a6,_0x35c7bb,_0x34c2b4;const _0x1606ea=(_0x59c1a6=_0x3af648===null||_0x3af648===void 0x0?void 0x0:_0x3af648[_0x1841d8(0x102)])===null||_0x59c1a6===void 0x0?void 0x0:_0x59c1a6[core_2[_0x1841d8(0x15f)]];if(_0x1606ea&&(_0x33a2bd===null||_0x33a2bd===void 0x0?void 0x0:_0x33a2bd['apimit'])&&((_0x33a2bd===null||_0x33a2bd===void 0x0?void 0x0:_0x33a2bd[_0x1841d8(0x131)])||typeof(_0x33a2bd===null||_0x33a2bd===void 0x0?void 0x0:_0x33a2bd[_0x1841d8(0x131)])==_0x1841d8(0x17d))){if(((_0x35c7bb=_0x1606ea['headers'])===null||_0x35c7bb===void 0x0?void 0x0:_0x35c7bb[_0x1841d8(0x152)])&&((_0x34c2b4=_0x588d7d===null||_0x588d7d===void 0x0?void 0x0:_0x588d7d[_0x1606ea[_0x1841d8(0x174)][_0x1841d8(0x152)]])===null||_0x34c2b4===void 0x0?void 0x0:_0x34c2b4[_0x1841d8(0x17e)])>0x0)for(const _0x352916 of _0x588d7d[_0x1606ea[_0x1841d8(0x174)][_0x1841d8(0x152)]]||[]){if(core_1['Types'][_0x1841d8(0x158)](_0x352916)){const _0x562e32=await _0x1606ea[_0x1841d8(0x14e)]['getAsync'](_0x352916);typeof(_0x562e32===null||_0x562e32===void 0x0?void 0x0:_0x562e32[_0x1841d8(0xfe)])==_0x1841d8(0x117)?await _0x562e32[_0x1841d8(0xfe)](_0x1606ea,typeof(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x155)])==_0x1841d8(0x163)&&(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)])?_0x1606ea[_0x1841d8(0x155)][_0x1841d8(0x105)]()+'@'+(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)]):undefined,_0x33a2bd)&&await _0x562e32['handler'](_0x1606ea,typeof(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x155)])=='string'&&(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea['_matchedRoute'])?_0x1606ea['method'][_0x1841d8(0x105)]()+'@'+(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)]):undefined,_0x33a2bd):await _0x562e32[_0x1841d8(0x142)](_0x1606ea,typeof(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea['method'])==_0x1841d8(0x163)&&(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)])?_0x1606ea['method'][_0x1841d8(0x105)]()+'@'+(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)]):undefined,_0x33a2bd);}else core_1[_0x1841d8(0x109)][_0x1841d8(0x128)](_0x352916)&&await _0x352916(_0x1606ea,typeof(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x155)])==_0x1841d8(0x163)&&(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea['_matchedRoute'])?_0x1606ea[_0x1841d8(0x155)]['toLowerCase']()+'@'+(_0x1606ea===null||_0x1606ea===void 0x0?void 0x0:_0x1606ea[_0x1841d8(0x17c)]):undefined,_0x33a2bd);}}return await _0x3af648[_0x1841d8(0x17a)](..._0x3af648[_0x1841d8(0x166)]);},'afterThrow':(_0x45380b,_0x5829f1)=>{throw _0x5829f1;}};});}async[a2_0x229dfd(0x124)](){const _0xfb71aa=a2_0x229dfd,_0x218055=this[_0xfb71aa(0xfa)]['getConfiguration']();this[_0xfb71aa(0x153)]['getApplications']([_0xfb71aa(0x14d)])['forEach'](_0x43b60d=>{const _0x24e1d=_0xfb71aa;(_0x43b60d===null||_0x43b60d===void 0x0?void 0x0:_0x43b60d[_0x24e1d(0x141)])&&Object[_0x24e1d(0x178)](_0x43b60d[_0x24e1d(0x141)],{'hosturl':{'configurable':![],'get':function(){const _0x55391e=_0x24e1d;var _0x265d24,_0x594237,_0x4a9316,_0x178e63;if((this===null||this===void 0x0?void 0x0:this[_0x55391e(0x111)])&&!this[_0x55391e(0x111)][_0x55391e(0x11d)](_0x55391e(0x157))){let _0x3cc19b=this[_0x55391e(0x111)][_0x55391e(0x14f)](':');return['80',_0x55391e(0x16b)][_0x55391e(0x13a)](_0x3cc19b===null||_0x3cc19b===void 0x0?void 0x0:_0x3cc19b[0x1])?''+(!!((_0x594237=(_0x265d24=this===null||this===void 0x0?void 0x0:this[_0x55391e(0x118)])===null||_0x265d24===void 0x0?void 0x0:_0x265d24['connection'])===null||_0x594237===void 0x0?void 0x0:_0x594237['encrypted'])||(_0x3cc19b===null||_0x3cc19b===void 0x0?void 0x0:_0x3cc19b[0x1])==_0x55391e(0x16b)?'https://':_0x55391e(0x12b))+_0x3cc19b[0x0]:''+(!!((_0x178e63=(_0x4a9316=this===null||this===void 0x0?void 0x0:this[_0x55391e(0x118)])===null||_0x4a9316===void 0x0?void 0x0:_0x4a9316[_0x55391e(0x129)])===null||_0x178e63===void 0x0?void 0x0:_0x178e63['encrypted'])?_0x55391e(0x168):_0x55391e(0x12b))+this[_0x55391e(0x111)];}return'';}},'ok':{'value':function(_0x462f7d,_0x4a63cf,_0x26d6ef=0x0){return{'code':_0x26d6ef,'data':_0x462f7d,'extra':_0x4a63cf};}},'input':{'value':function(_0x257c56,_0x3c32a2){const _0x23af84=_0x24e1d;var _0x2cec9e;const _0xa361c8=lodash['defaultsDeep']({},this[_0x23af84(0xf4)][_0x23af84(0x149)]||this[_0x23af84(0xf4)][((_0x2cec9e=_0x218055===null||_0x218055===void 0x0?void 0x0:_0x218055[_0x23af84(0x134)])===null||_0x2cec9e===void 0x0?void 0x0:_0x2cec9e[_0x23af84(0x11e)])||_0x23af84(0x149)]||{},this['request']['query']||{});return _0x257c56?lodash['get'](_0xa361c8,_0x257c56,_0x3c32a2):_0xa361c8;}},'when':{'value':async function(_0x1ad89b,_0x41ea94){const _0x1d093a=_0x24e1d,_0xaed0cf=this[_0x1d093a(0x13c)](_0x1ad89b,null);if(!lodash[_0x1d093a(0x167)](_0xaed0cf))return await _0x41ea94(_0xaed0cf);}},'only':{'value':function(_0x2d2fd9){const _0x1880b8=_0x24e1d,_0x309f4a={};for(let _0x1ea526=0x0;_0x1ea526<_0x2d2fd9[_0x1880b8(0x17e)];_0x1ea526++){lodash['isArray'](_0x2d2fd9[_0x1ea526])&&_0x2d2fd9[_0x1ea526][_0x1880b8(0x17e)]>0x0&&lodash['isString'](_0x2d2fd9[_0x1ea526][0x0])&&(_0x309f4a[_0x2d2fd9[_0x1ea526][0x0]]=this['input'](_0x2d2fd9[_0x1ea526][0x0],_0x2d2fd9[_0x1ea526][_0x1880b8(0x17e)]>0x1?_0x2d2fd9[_0x1ea526][0x1]:null));}return _0x309f4a;}},'koasend':{'value':function(_0x27f624,_0x3df7de){const _0x2e4301=_0x24e1d;if(_0x27f624&&!fs[_0x2e4301(0x135)](_0x27f624)&&!fs[_0x2e4301(0x135)](this[_0x2e4301(0x136)]['getAppDir']()+'/'+_0x27f624))return _0x2e4301(0x10c);return _0x27f624=fs[_0x2e4301(0x135)](_0x27f624)?_0x27f624:this[_0x2e4301(0x136)][_0x2e4301(0x11a)]()+'/'+_0x27f624,this[_0x2e4301(0x162)](_0x3df7de||_0x27f624),koasend(this,_0x27f624);}}});});}async[a2_0x229dfd(0x140)](){const _0x5aea95=a2_0x229dfd;var _0x172cab,_0x356739;if(fs[_0x5aea95(0x135)](this['app']['getBaseDir']()+_0x5aea95(0x108))&&fs[_0x5aea95(0x16a)](this['app'][_0x5aea95(0xfc)]()+_0x5aea95(0x108))[_0x5aea95(0x16f)]()){const _0x11f0aa=this[_0x5aea95(0xfa)][_0x5aea95(0x165)](),_0x557ba6=((_0x172cab=_0x11f0aa===null||_0x11f0aa===void 0x0?void 0x0:_0x11f0aa[_0x5aea95(0x138)])===null||_0x172cab===void 0x0?void 0x0:_0x172cab[_0x5aea95(0x130)])||{};for(const _0x8ba531 of fs[_0x5aea95(0x14b)](this['app'][_0x5aea95(0xfc)]()+_0x5aea95(0x108))){if(!fs[_0x5aea95(0x16a)](this[_0x5aea95(0x136)][_0x5aea95(0xfc)]()+_0x5aea95(0x10e)+_0x8ba531)[_0x5aea95(0x16f)]())continue;if(_0x557ba6===null||_0x557ba6===void 0x0?void 0x0:_0x557ba6[_0x8ba531])continue;_0x557ba6[_0x8ba531]=Object[_0x5aea95(0xf8)]({},((_0x356739=_0x11f0aa===null||_0x11f0aa===void 0x0?void 0x0:_0x11f0aa['midwayLogger'])===null||_0x356739===void 0x0?void 0x0:_0x356739[_0x5aea95(0x14a)])||{'maxSize':'1m','dir':this[_0x5aea95(0x136)][_0x5aea95(0x11a)]()+_0x5aea95(0x147)},{'enableJSON':!![],'enableConsole':this[_0x5aea95(0x126)]['isDevelopmentEnvironment'](),'fileLogName':_0x8ba531+_0x5aea95(0x146),'dir':this['app'][_0x5aea95(0x11a)]()+_0x5aea95(0x160)+_0x8ba531+_0x5aea95(0x16e)});}Object['keys'](_0x557ba6)[_0x5aea95(0x17e)]>0x0&&(!_0x11f0aa[_0x5aea95(0x138)]&&(_0x11f0aa['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x5aea95(0x136)][_0x5aea95(0x11a)]()+_0x5aea95(0x147)}}),_0x11f0aa[_0x5aea95(0x138)]['clients']=_0x557ba6),this[_0x5aea95(0xfa)][_0x5aea95(0x170)](_0x11f0aa);}}async[a2_0x229dfd(0x106)](){const _0x2f58e3=a2_0x229dfd;var _0xf5fcb2,_0x238411,_0x6f86a1,_0x5ac7bc,_0x514278,_0x404394;const _0xc2cb1a=this[_0x2f58e3(0xfa)]['getConfiguration']();((_0x238411=(_0xf5fcb2=_0xc2cb1a===null||_0xc2cb1a===void 0x0?void 0x0:_0xc2cb1a[_0x2f58e3(0x120)])===null||_0xf5fcb2===void 0x0?void 0x0:_0xf5fcb2[_0x2f58e3(0x10a)])===null||_0x238411===void 0x0?void 0x0:_0x238411[_0x2f58e3(0x132)])&&Object['keys'](_0xc2cb1a[_0x2f58e3(0x120)][_0x2f58e3(0x10a)])[_0x2f58e3(0x17e)]>0x1&&delete _0xc2cb1a[_0x2f58e3(0x120)]['devices'][_0x2f58e3(0x132)];if((_0x6f86a1=_0xc2cb1a===null||_0xc2cb1a===void 0x0?void 0x0:_0xc2cb1a[_0x2f58e3(0x177)])===null||_0x6f86a1===void 0x0?void 0x0:_0x6f86a1['dirs'])for(const _0x24b873 in _0xc2cb1a['staticFile'][_0x2f58e3(0x123)]){((_0x5ac7bc=_0xc2cb1a[_0x2f58e3(0x177)][_0x2f58e3(0x123)][_0x24b873])===null||_0x5ac7bc===void 0x0?void 0x0:_0x5ac7bc[_0x2f58e3(0x13f)])&&typeof((_0x514278=_0xc2cb1a[_0x2f58e3(0x177)][_0x2f58e3(0x123)][_0x24b873])===null||_0x514278===void 0x0?void 0x0:_0x514278['dir'])=='string'&&!fs[_0x2f58e3(0x135)](_0xc2cb1a[_0x2f58e3(0x177)]['dirs'][_0x24b873][_0x2f58e3(0x13f)])&&(fs[_0x2f58e3(0x11f)](_0xc2cb1a[_0x2f58e3(0x177)][_0x2f58e3(0x123)][_0x24b873][_0x2f58e3(0x13f)],{'recursive':!![]}),console[_0x2f58e3(0x179)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0xc2cb1a[_0x2f58e3(0x177)][_0x2f58e3(0x123)][_0x24b873][_0x2f58e3(0x13f)]));}((_0x404394=_0xc2cb1a===null||_0xc2cb1a===void 0x0?void 0x0:_0xc2cb1a[_0x2f58e3(0x139)])===null||_0x404394===void 0x0?void 0x0:_0x404394[_0x2f58e3(0x161)])&&!fs[_0x2f58e3(0x135)](_0xc2cb1a[_0x2f58e3(0x139)][_0x2f58e3(0x161)])&&(fs['mkdirSync'](_0xc2cb1a[_0x2f58e3(0x139)][_0x2f58e3(0x161)],{'recursive':!![]}),console['log'](_0x2f58e3(0x15c)+_0xc2cb1a[_0x2f58e3(0x139)][_0x2f58e3(0x161)])),this[_0x2f58e3(0xfa)][_0x2f58e3(0x170)](_0xc2cb1a);}};__decorate([(0x0,core_1[a2_0x229dfd(0x150)])(),__metadata(a2_0x229dfd(0x175),Object)],CustomConfiguration[a2_0x229dfd(0x12a)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x229dfd(0x113)])(),__metadata('design:type',core_2[a2_0x229dfd(0x13b)])],CustomConfiguration['prototype'],a2_0x229dfd(0xfa),void 0x0),__decorate([(0x0,core_1[a2_0x229dfd(0x113)])(),__metadata(a2_0x229dfd(0x175),core_2[a2_0x229dfd(0x11b)])],CustomConfiguration['prototype'],a2_0x229dfd(0xf6),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x229dfd(0x175),core_2[a2_0x229dfd(0x10b)])],CustomConfiguration[a2_0x229dfd(0x12a)],a2_0x229dfd(0x153),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x229dfd(0x175),core_2[a2_0x229dfd(0x164)])],CustomConfiguration[a2_0x229dfd(0x12a)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x229dfd(0x113)])(),__metadata(a2_0x229dfd(0x175),ApiService_1[a2_0x229dfd(0x12d)])],CustomConfiguration['prototype'],'ApiService',void 0x0),exports[a2_0x229dfd(0x144)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x229dfd(0x151)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x229dfd(0x16d),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
function a2_0xdb28(){const _0x119510=['109768xtpBVl','tmpdir','85GLdjNQ','constructor','getApplications','toLowerCase','http','startsWith','bodyXml','addObject','length','dir','anncic-api','62022KQZgCa','koa-send','koa','requestKey','handler','文件不存在','getConfiguration','INTERCEPT_KEY','ApiService','CustomConfiguration','ApiError','keys','9HoFSTi','@midwayjs/upload','isString','@midwayjs/cross-domain','filterConfig','readdirSync','1922LbwulH','application','anncicapi','existsSync','/apps/','getAppDir','Inject','./types/action','environment','isDevelopmentEnvironment','input','App','key','isDirectory','prototype','27822IDCbBQ','config','req','@midwayjs/static-file','toString','device','319692YFHlMx','connection','-log','22RLqcxE','string','app','1420912mIANgS','@anncic-api/cache','3447980xdxAFz','14iIFXyR','_matchedRoute','body','decorator','devices','DEFAULT','Anncic-api\x20static-file\x20:\x20mkdir\x20','MidwayEnvironmentService','request','__metadata','REQUEST_OBJ_CTX_KEY','clients','function','443','args','checksign','parse','log','assign','InterceptTargetTmp','/apps','get','split','onReady','metadata','host','./exception/ApiError','./config/config.default','decorate','undefined','dirs','target','Types','encrypted','@anncic-api/typeorm','isFunction','context','MidwayApplicationManager','match','intercept','@midwayjs/core','hanlderApplications','apimit','defaultsDeep','query','/runtime','loggerConfig','apply','midwayLogger','staticFile','_UNKNOW_','getAsync','statSync','(((.+)+)+)+$','defineProperties','getBaseDir','defineProperty','method','mkdirSync','object','468UySHqU','upload','@anncic-api/core','forEach','@midwayjs/koa','ACTION_ROUTE_KEY','@anncic-api/event','design:type','Configuration','__decorate'];a2_0xdb28=function(){return _0x119510;};return a2_0xdb28();}const a2_0x2526e7=a2_0x148b;(function(_0x351134,_0x25bb4e){const _0x2076cf=a2_0x148b,_0x4f2516=_0x351134();while(!![]){try{const _0x4509ca=-parseInt(_0x2076cf(0xbc))/0x1+-parseInt(_0x2076cf(0xce))/0x2*(-parseInt(_0x2076cf(0xa5))/0x3)+-parseInt(_0x2076cf(0xaf))/0x4+parseInt(_0x2076cf(0xb1))/0x5*(parseInt(_0x2076cf(0xdd))/0x6)+-parseInt(_0x2076cf(0x69))/0x7*(-parseInt(_0x2076cf(0x66))/0x8)+parseInt(_0x2076cf(0xc8))/0x9*(-parseInt(_0x2076cf(0x68))/0xa)+-parseInt(_0x2076cf(0xe6))/0xb*(-parseInt(_0x2076cf(0xe3))/0xc);if(_0x4509ca===_0x25bb4e)break;else _0x4f2516['push'](_0x4f2516['shift']());}catch(_0x24bce2){_0x4f2516['push'](_0x4f2516['shift']());}}}(a2_0xdb28,0x318f1));const a2_0x147c05=(function(){let _0x2cc421=!![];return function(_0x19beca,_0x51dc55){const _0x5e55e2=_0x2cc421?function(){const _0x38d54e=a2_0x148b;if(_0x51dc55){const _0x1546a3=_0x51dc55[_0x38d54e(0x98)](_0x19beca,arguments);return _0x51dc55=null,_0x1546a3;}}:function(){};return _0x2cc421=![],_0x5e55e2;};}()),a2_0x3676db=a2_0x147c05(this,function(){const _0x4f78d7=a2_0x148b;return a2_0x3676db[_0x4f78d7(0xe1)]()['search'](_0x4f78d7(0x9e))[_0x4f78d7(0xe1)]()[_0x4f78d7(0xb2)](a2_0x3676db)['search']('(((.+)+)+)+$');});a2_0x3676db();function a2_0x148b(_0x44d3f5,_0x1ba9c4){const _0x430b1a=a2_0xdb28();return a2_0x148b=function(_0x3676db,_0x147c05){_0x3676db=_0x3676db-0x64;let _0xdb2831=_0x430b1a[_0x3676db];return _0xdb2831;},a2_0x148b(_0x44d3f5,_0x1ba9c4);}'use strict';var __decorate=this&&this[a2_0x2526e7(0xae)]||function(_0x4f0aac,_0x52ce47,_0x1b754b,_0x1cdc01){const _0x353600=a2_0x2526e7;var _0x907238=arguments[_0x353600(0xb9)],_0x5dce32=_0x907238<0x3?_0x52ce47:_0x1cdc01===null?_0x1cdc01=Object['getOwnPropertyDescriptor'](_0x52ce47,_0x1b754b):_0x1cdc01,_0x499eaa;if(typeof Reflect==='object'&&typeof Reflect[_0x353600(0x85)]===_0x353600(0x75))_0x5dce32=Reflect[_0x353600(0x85)](_0x4f0aac,_0x52ce47,_0x1b754b,_0x1cdc01);else{for(var _0x44af03=_0x4f0aac[_0x353600(0xb9)]-0x1;_0x44af03>=0x0;_0x44af03--)if(_0x499eaa=_0x4f0aac[_0x44af03])_0x5dce32=(_0x907238<0x3?_0x499eaa(_0x5dce32):_0x907238>0x3?_0x499eaa(_0x52ce47,_0x1b754b,_0x5dce32):_0x499eaa(_0x52ce47,_0x1b754b))||_0x5dce32;}return _0x907238>0x3&&_0x5dce32&&Object['defineProperty'](_0x52ce47,_0x1b754b,_0x5dce32),_0x5dce32;},__metadata=this&&this[a2_0x2526e7(0x72)]||function(_0x5734a5,_0x24d83a){const _0x35f049=a2_0x2526e7;if(typeof Reflect===_0x35f049(0xa4)&&typeof Reflect[_0x35f049(0x81)]===_0x35f049(0x75))return Reflect[_0x35f049(0x81)](_0x5734a5,_0x24d83a);};Object[a2_0x2526e7(0xa1)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x2526e7(0x91)),core_2=require(a2_0x2526e7(0x91)),ApiError_1=require(a2_0x2526e7(0x83)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x2526e7(0xd5)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x2526e7(0xbd)),koa=require(a2_0x2526e7(0xa9)),upload=require(a2_0x2526e7(0xc9)),staticFile=require(a2_0x2526e7(0xe0)),crossDomain=require(a2_0x2526e7(0xcb)),ConfigDefault=require(a2_0x2526e7(0x84)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x2526e7(0xa7)),anncicCache=require(a2_0x2526e7(0x67)),anncicEvent=require(a2_0x2526e7(0xab)),anncicTypeorm=require(a2_0x2526e7(0x8b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x2526e7(0xc5)]=class CustomConfiguration{async[a2_0x2526e7(0x80)](){const _0x280ce6=a2_0x2526e7;await this[_0x280ce6(0xcc)](),await this[_0x280ce6(0x97)](),await this['handlerActionRoute'](),await this[_0x280ce6(0x92)]();}async['handlerActionRoute'](){const _0x28c893=a2_0x2526e7,_0x5affeb=this[_0x28c893(0xde)][_0x28c893(0xc2)](),_0x12f716=(0x0,core_1['getClassMetadata'])(intercept_1[_0x28c893(0xc3)],intercept_1[_0x28c893(0x7c)])||{};this[_0x28c893(0x6c)]['registerMethodHandler'](action_1[_0x28c893(0xaa)],_0x2d6621=>{const _0x181c22=_0x28c893,_0x2fe292=_0x2d6621[_0x181c22(0x81)];return{'before':async _0x3a4436=>{const _0x5f312e=_0x181c22;var _0x5ec3d8,_0x5f4bb2,_0x5ed190,_0x33ada1;const _0x54a3c7=(_0x5ec3d8=_0x3a4436===null||_0x3a4436===void 0x0?void 0x0:_0x3a4436[_0x5f312e(0x88)])===null||_0x5ec3d8===void 0x0?void 0x0:_0x5ec3d8[core_2[_0x5f312e(0x73)]],_0x5c8a20=lodash[_0x5f312e(0x94)]({},_0x54a3c7[_0x5f312e(0x71)]['body']||_0x54a3c7[_0x5f312e(0x71)][((_0x5f4bb2=_0x5affeb===null||_0x5affeb===void 0x0?void 0x0:_0x5affeb[_0x5f312e(0xb7)])===null||_0x5f4bb2===void 0x0?void 0x0:_0x5f4bb2[_0x5f312e(0xda)])||_0x5f312e(0x6b)]||{},_0x54a3c7['request'][_0x5f312e(0x95)]||{});if(_0x54a3c7&&(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x5f312e(0x93)]))try{const _0x39282f=((_0x5ed190=_0x5affeb===null||_0x5affeb===void 0x0?void 0x0:_0x5affeb[_0x5f312e(0xd0)])===null||_0x5ed190===void 0x0?void 0x0:_0x5ed190['requestKey'])&&typeof(_0x5c8a20===null||_0x5c8a20===void 0x0?void 0x0:_0x5c8a20[_0x5affeb[_0x5f312e(0xd0)][_0x5f312e(0xbf)]])==_0x5f312e(0x64)?JSON[_0x5f312e(0x79)](base64_decode(_0x5c8a20[_0x5affeb[_0x5f312e(0xd0)][_0x5f312e(0xbf)]])||'{}')||{}:((_0x33ada1=_0x54a3c7===null||_0x54a3c7===void 0x0?void 0x0:_0x54a3c7[_0x5f312e(0x71)])===null||_0x33ada1===void 0x0?void 0x0:_0x33ada1['headers'])||{};if(!this[_0x5f312e(0xc4)][_0x5f312e(0x78)](_0x39282f))throw new AnnError(ApiError_1[_0x5f312e(0xc6)]['HEADERS_SIGNATURE']);}catch(_0xd881fb){if(_0xd881fb instanceof AnnError)throw _0xd881fb;else throw new AnnError(ApiError_1[_0x5f312e(0xc6)][_0x5f312e(0x9b)]);}},'around':async _0x2bd9b5=>{const _0x58841f=_0x181c22;var _0x202337,_0x36c58d,_0xbb8e12;const _0x48addf=(_0x202337=_0x2bd9b5===null||_0x2bd9b5===void 0x0?void 0x0:_0x2bd9b5[_0x58841f(0x88)])===null||_0x202337===void 0x0?void 0x0:_0x202337[core_2[_0x58841f(0x73)]];if(_0x48addf&&(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x93)])&&((_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x90)])||typeof(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x90)])==_0x58841f(0x86))){if(((_0x36c58d=_0x48addf['headers'])===null||_0x36c58d===void 0x0?void 0x0:_0x36c58d[_0x58841f(0xe2)])&&((_0xbb8e12=_0x12f716===null||_0x12f716===void 0x0?void 0x0:_0x12f716[_0x48addf['headers'][_0x58841f(0xe2)]])===null||_0xbb8e12===void 0x0?void 0x0:_0xbb8e12[_0x58841f(0xb9)])>0x0)for(const _0x4ab3aa of _0x12f716[_0x48addf['headers']['device']]||[]){if(core_1[_0x58841f(0x89)]['isClass'](_0x4ab3aa)){const _0x330860=await _0x48addf['requestContext'][_0x58841f(0x9c)](_0x4ab3aa);typeof(_0x330860===null||_0x330860===void 0x0?void 0x0:_0x330860[_0x58841f(0x8f)])==_0x58841f(0x75)?await _0x330860[_0x58841f(0x8f)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute'])?_0x48addf['method'][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute']):undefined,_0x2fe292)&&await _0x330860[_0x58841f(0xc0)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)]):undefined,_0x2fe292):await _0x330860[_0x58841f(0xc0)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['method'])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)]):undefined,_0x2fe292);}else core_1[_0x58841f(0x89)][_0x58841f(0x8c)](_0x4ab3aa)&&await _0x4ab3aa(_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute'])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute']):undefined,_0x2fe292);}}return await _0x2bd9b5['proceed'](..._0x2bd9b5[_0x58841f(0x77)]);},'afterThrow':(_0x53d2ea,_0x240a38)=>{throw _0x240a38;}};});}async['hanlderApplications'](){const _0x149631=a2_0x2526e7,_0x319bfa=this[_0x149631(0xde)][_0x149631(0xc2)]();this[_0x149631(0xcf)][_0x149631(0xb3)]([_0x149631(0xbe)])[_0x149631(0xa8)](_0x118464=>{const _0x5f18d9=_0x149631;(_0x118464===null||_0x118464===void 0x0?void 0x0:_0x118464[_0x5f18d9(0x8d)])&&Object[_0x5f18d9(0x9f)](_0x118464[_0x5f18d9(0x8d)],{'hosturl':{'configurable':![],'get':function(){const _0x19d2f9=_0x5f18d9;var _0xc04a04,_0x56a249,_0x13d836,_0x27895e;if((this===null||this===void 0x0?void 0x0:this[_0x19d2f9(0x82)])&&!this[_0x19d2f9(0x82)][_0x19d2f9(0xb6)](_0x19d2f9(0xb5))){let _0x440e32=this[_0x19d2f9(0x82)][_0x19d2f9(0x7f)](':');return['80','443']['includes'](_0x440e32===null||_0x440e32===void 0x0?void 0x0:_0x440e32[0x1])?''+(!!((_0x56a249=(_0xc04a04=this===null||this===void 0x0?void 0x0:this['req'])===null||_0xc04a04===void 0x0?void 0x0:_0xc04a04[_0x19d2f9(0xe4)])===null||_0x56a249===void 0x0?void 0x0:_0x56a249[_0x19d2f9(0x8a)])||(_0x440e32===null||_0x440e32===void 0x0?void 0x0:_0x440e32[0x1])==_0x19d2f9(0x76)?'https://':'http://')+_0x440e32[0x0]:''+(!!((_0x27895e=(_0x13d836=this===null||this===void 0x0?void 0x0:this[_0x19d2f9(0xdf)])===null||_0x13d836===void 0x0?void 0x0:_0x13d836['connection'])===null||_0x27895e===void 0x0?void 0x0:_0x27895e['encrypted'])?'https://':'http://')+this['host'];}return'';}},'ok':{'value':function(_0x147423,_0x30a396,_0x54ea4c=0x0){return{'code':_0x54ea4c,'data':_0x147423,'extra':_0x30a396};}},'input':{'value':function(_0x529032,_0x1e792d){const _0x28453a=_0x5f18d9;var _0x445703;const _0x4bdc3a=lodash['defaultsDeep']({},this[_0x28453a(0x71)][_0x28453a(0x6b)]||this[_0x28453a(0x71)][((_0x445703=_0x319bfa===null||_0x319bfa===void 0x0?void 0x0:_0x319bfa[_0x28453a(0xb7)])===null||_0x445703===void 0x0?void 0x0:_0x445703[_0x28453a(0xda)])||_0x28453a(0x6b)]||{},this[_0x28453a(0x71)][_0x28453a(0x95)]||{});return _0x529032?lodash[_0x28453a(0x7e)](_0x4bdc3a,_0x529032,_0x1e792d):_0x4bdc3a;}},'when':{'value':async function(_0x98c7e9,_0x2e942d){const _0x23ac2d=_0x5f18d9,_0x46fff4=this[_0x23ac2d(0xd8)](_0x98c7e9,null);if(!lodash['isNull'](_0x46fff4))return await _0x2e942d(_0x46fff4);}},'only':{'value':function(_0x10f336){const _0x2abd82=_0x5f18d9,_0x577bb5={};for(let _0x3f3ff0=0x0;_0x3f3ff0<_0x10f336['length'];_0x3f3ff0++){lodash['isArray'](_0x10f336[_0x3f3ff0])&&_0x10f336[_0x3f3ff0][_0x2abd82(0xb9)]>0x0&&lodash[_0x2abd82(0xca)](_0x10f336[_0x3f3ff0][0x0])&&(_0x577bb5[_0x10f336[_0x3f3ff0][0x0]]=this[_0x2abd82(0xd8)](_0x10f336[_0x3f3ff0][0x0],_0x10f336[_0x3f3ff0][_0x2abd82(0xb9)]>0x1?_0x10f336[_0x3f3ff0][0x1]:null));}return _0x577bb5;}},'koasend':{'value':function(_0x1c8309,_0x3ed4a0){const _0xa6957d=_0x5f18d9;if(_0x1c8309&&!fs[_0xa6957d(0xd1)](_0x1c8309)&&!fs[_0xa6957d(0xd1)](this[_0xa6957d(0x65)][_0xa6957d(0xd3)]()+'/'+_0x1c8309))return _0xa6957d(0xc1);return _0x1c8309=fs[_0xa6957d(0xd1)](_0x1c8309)?_0x1c8309:this[_0xa6957d(0x65)][_0xa6957d(0xd3)]()+'/'+_0x1c8309,this['attachment'](_0x3ed4a0||_0x1c8309),koasend(this,_0x1c8309);}}});});}async['loggerConfig'](){const _0x31af02=a2_0x2526e7;var _0x2f5db8,_0x35cacf;if(fs[_0x31af02(0xd1)](this['app'][_0x31af02(0xa0)]()+_0x31af02(0x7d))&&fs['statSync'](this[_0x31af02(0x65)][_0x31af02(0xa0)]()+_0x31af02(0x7d))['isDirectory']()){const _0x120baa=this['config'][_0x31af02(0xc2)](),_0x53836c=((_0x2f5db8=_0x120baa===null||_0x120baa===void 0x0?void 0x0:_0x120baa[_0x31af02(0x99)])===null||_0x2f5db8===void 0x0?void 0x0:_0x2f5db8[_0x31af02(0x74)])||{};for(const _0x925091 of fs[_0x31af02(0xcd)](this[_0x31af02(0x65)]['getBaseDir']()+_0x31af02(0x7d))){if(!fs[_0x31af02(0x9d)](this[_0x31af02(0x65)][_0x31af02(0xa0)]()+_0x31af02(0xd2)+_0x925091)[_0x31af02(0xdb)]())continue;if(_0x53836c===null||_0x53836c===void 0x0?void 0x0:_0x53836c[_0x925091])continue;_0x53836c[_0x925091]=Object[_0x31af02(0x7b)]({},((_0x35cacf=_0x120baa===null||_0x120baa===void 0x0?void 0x0:_0x120baa['midwayLogger'])===null||_0x35cacf===void 0x0?void 0x0:_0x35cacf['default'])||{'maxSize':'1m','dir':this[_0x31af02(0x65)][_0x31af02(0xd3)]()+_0x31af02(0x96)},{'enableJSON':!![],'enableConsole':this[_0x31af02(0xd6)][_0x31af02(0xd7)](),'fileLogName':_0x925091+'.log','dir':this['app']['getAppDir']()+'/runtime/apps-'+_0x925091+_0x31af02(0xe5)});}Object[_0x31af02(0xc7)](_0x53836c)[_0x31af02(0xb9)]>0x0&&(!_0x120baa[_0x31af02(0x99)]&&(_0x120baa[_0x31af02(0x99)]={'default':{'maxSize':'1m','dir':this[_0x31af02(0x65)]['getAppDir']()+'/runtime'}}),_0x120baa[_0x31af02(0x99)][_0x31af02(0x74)]=_0x53836c),this[_0x31af02(0xde)][_0x31af02(0xb8)](_0x120baa);}}async['filterConfig'](){const _0x2e5218=a2_0x2526e7;var _0x413e96,_0x4fabbb,_0x4f08fd,_0x2621d9,_0x35aa15,_0x4db368;const _0x305df1=this[_0x2e5218(0xde)][_0x2e5218(0xc2)]();((_0x4fabbb=(_0x413e96=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0xd0)])===null||_0x413e96===void 0x0?void 0x0:_0x413e96[_0x2e5218(0x6d)])===null||_0x4fabbb===void 0x0?void 0x0:_0x4fabbb['DEFAULT'])&&Object['keys'](_0x305df1[_0x2e5218(0xd0)]['devices'])[_0x2e5218(0xb9)]>0x1&&delete _0x305df1[_0x2e5218(0xd0)]['devices'][_0x2e5218(0x6e)];if((_0x4f08fd=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0x9a)])===null||_0x4f08fd===void 0x0?void 0x0:_0x4f08fd[_0x2e5218(0x87)])for(const _0x3050a1 in _0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)]){((_0x2621d9=_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1])===null||_0x2621d9===void 0x0?void 0x0:_0x2621d9['dir'])&&typeof((_0x35aa15=_0x305df1['staticFile'][_0x2e5218(0x87)][_0x3050a1])===null||_0x35aa15===void 0x0?void 0x0:_0x35aa15[_0x2e5218(0xba)])==_0x2e5218(0x64)&&!fs[_0x2e5218(0xd1)](_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1][_0x2e5218(0xba)])&&(fs[_0x2e5218(0xa3)](_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1][_0x2e5218(0xba)],{'recursive':!![]}),console['log'](_0x2e5218(0x6f)+_0x305df1[_0x2e5218(0x9a)]['dirs'][_0x3050a1][_0x2e5218(0xba)]));}((_0x4db368=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0xa6)])===null||_0x4db368===void 0x0?void 0x0:_0x4db368[_0x2e5218(0xb0)])&&!fs['existsSync'](_0x305df1[_0x2e5218(0xa6)]['tmpdir'])&&(fs[_0x2e5218(0xa3)](_0x305df1[_0x2e5218(0xa6)][_0x2e5218(0xb0)],{'recursive':!![]}),console[_0x2e5218(0x7a)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x305df1[_0x2e5218(0xa6)][_0x2e5218(0xb0)])),this[_0x2e5218(0xde)][_0x2e5218(0xb8)](_0x305df1);}};__decorate([(0x0,core_1[a2_0x2526e7(0xd9)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0x65),void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x2526e7(0xdc)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2[a2_0x2526e7(0x8e)])],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0xcf),void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2[a2_0x2526e7(0x70)])],CustomConfiguration['prototype'],a2_0x2526e7(0xd6),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2526e7(0xac),ApiService_1[a2_0x2526e7(0xc4)])],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0xc4),void 0x0),exports[a2_0x2526e7(0xc5)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x2526e7(0xad)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2526e7(0xbb),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1d57e1=a3_0x5f31;(function(_0x5e5c76,_0x4737e9){const _0xaeaf28=a3_0x5f31,_0x2ef455=_0x5e5c76();while(!![]){try{const _0x118caa=parseInt(_0xaeaf28(0xeb))/0x1*(parseInt(_0xaeaf28(0xe1))/0x2)+-parseInt(_0xaeaf28(0xd2))/0x3*(-parseInt(_0xaeaf28(0x10e))/0x4)+parseInt(_0xaeaf28(0xe4))/0x5+-parseInt(_0xaeaf28(0xfa))/0x6+-parseInt(_0xaeaf28(0xcb))/0x7+-parseInt(_0xaeaf28(0xf5))/0x8*(parseInt(_0xaeaf28(0x10a))/0x9)+-parseInt(_0xaeaf28(0xcf))/0xa;if(_0x118caa===_0x4737e9)break;else _0x2ef455['push'](_0x2ef455['shift']());}catch(_0x14eeff){_0x2ef455['push'](_0x2ef455['shift']());}}}(a3_0x38be,0xd7e39));const a3_0x5ce405=(function(){let _0x582ada=!![];return function(_0x370a2a,_0x2a0b15){const _0x2eda86=_0x582ada?function(){const _0x3c5f64=a3_0x5f31;if(_0x2a0b15){const _0x5cb950=_0x2a0b15[_0x3c5f64(0xd8)](_0x370a2a,arguments);return _0x2a0b15=null,_0x5cb950;}}:function(){};return _0x582ada=![],_0x2eda86;};}()),a3_0x43d8ad=a3_0x5ce405(this,function(){const _0x4f688b=a3_0x5f31;return a3_0x43d8ad[_0x4f688b(0xd0)]()['search'](_0x4f688b(0xc8))[_0x4f688b(0xd0)]()[_0x4f688b(0x109)](a3_0x43d8ad)[_0x4f688b(0xdc)](_0x4f688b(0xc8));});a3_0x43d8ad();'use strict';Object[a3_0x1d57e1(0xf1)](exports,a3_0x1d57e1(0x102),{'value':!![]}),exports[a3_0x1d57e1(0xe5)]=exports[a3_0x1d57e1(0xc9)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a3_0x1d57e1(0xe0)),action_1=require(a3_0x1d57e1(0xff));function a3_0x38be(){const _0xdb1519=['__esModule','replace','rootpath','split','\x20文件请放在app/controller/文件下','validate','attachClassMetadata','constructor','2476062MWHMuG','apps/','ACTION_ROUTE_KEY','AppsConfigTmp','12XjVXJE','prefix','createCustomMethodDecorator','startsWith','splice','(((.+)+)+)+$','ActionApi','assign','5498563APzORx','join','filter','saveModule','6874210NfPKRi','toString','trim','1230051ybWYtF','Action','\x20文件请放在apps/','match','cwd','/apps/','apply','description','middlewareIgnore','validationOptions','search','/config.','substring','-action','@midwayjs/core','4zFzWoi','get','routerName','7856575oDSrUC','parseRoute','string','/controller/','ACTION_KEY','toLowerCase','length','389684IvSKxY','isArray','basic/controller/','middleware','app/controller/','getClassMetadata','defineProperty','tagName','-controller','intercept','8sKusaX','saveClassMetadata','filepath','existsSync','apimit','5690430fBRgfT','indexOf','APPSCONFIG_KEY','endsWith','module','../types/action','route','post'];a3_0x38be=function(){return _0xdb1519;};return a3_0x38be();}function Action(_0x35d7f4,_0x35171a,_0x3be831={'middleware':[],'sensitive':!![]}){return _0x21a3ef=>{const _0x13d20e=a3_0x5f31;var _0x39b18e;_0x3be831[_0x13d20e(0xf2)]=_0x35171a;const _0x3533ed=parseRoute(_0x35d7f4);if(_0x3533ed[_0x13d20e(0xfe)]){_0x3be831[_0x13d20e(0xc4)]=_0x3be831[_0x13d20e(0xc4)]?'/'+_0x3533ed[_0x13d20e(0xfe)]+'/'+_0x3be831[_0x13d20e(0xc4)]:'/'+_0x3533ed[_0x13d20e(0x100)];_0x3533ed['prefix']&&(_0x3be831[_0x13d20e(0xc4)]='/'+_0x3533ed[_0x13d20e(0xc4)]+'/'+_0x3be831[_0x13d20e(0xc4)]);if(fs[_0x13d20e(0xf8)](_0x3533ed[_0x13d20e(0x104)]+_0x13d20e(0xd7)+_0x3533ed[_0x13d20e(0xfe)]+_0x13d20e(0xdd)+(lodash[_0x13d20e(0xfd)](_0x3533ed[_0x13d20e(0xf7)],'ts')?'ts':'js'))){const _0x560a7f=include(_0x3533ed['rootpath']+'/apps/'+_0x3533ed['module']+_0x13d20e(0xdd)+(lodash[_0x13d20e(0xfd)](_0x3533ed[_0x13d20e(0xf7)],'ts')?'ts':'js'));if(lodash[_0x13d20e(0xec)](_0x560a7f[_0x13d20e(0xee)])&&_0x560a7f['middleware']['length']>0x0)for(let _0x471a5b in _0x560a7f[_0x13d20e(0xee)]){if(((_0x39b18e=_0x560a7f===null||_0x560a7f===void 0x0?void 0x0:_0x560a7f['middlewareIgnore'])===null||_0x39b18e===void 0x0?void 0x0:_0x39b18e['length'])>0x0&&_0x560a7f[_0x13d20e(0xda)][_0x13d20e(0xfb)](_0x560a7f[_0x13d20e(0xee)][_0x471a5b])!=-0x1)continue;_0x3be831[_0x13d20e(0xee)]['push'](_0x560a7f['middleware'][_0x471a5b]);}const _0x2cb157=(0x0,core_1[_0x13d20e(0xf0)])(action_1[_0x13d20e(0xfc)],action_1['AppsConfigTmp'])||{};_0x2cb157[''+_0x3533ed[_0x13d20e(0xfe)]]=_0x560a7f,(0x0,core_1[_0x13d20e(0xf6)])(action_1[_0x13d20e(0xfc)],_0x2cb157,action_1[_0x13d20e(0x10d)]);}_0x3be831[_0x13d20e(0xc4)]=_0x3be831[_0x13d20e(0xc4)][_0x13d20e(0xe9)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x13d20e(0xe8)],_0x21a3ef),(0x0,core_1['Controller'])(_0x3be831[_0x13d20e(0xc4)],_0x3be831)(_0x21a3ef),(0x0,core_1['saveClassMetadata'])(action_1[_0x13d20e(0xe8)],{'prefix':_0x3be831[_0x13d20e(0xc4)],'pprefix':_0x3533ed[_0x13d20e(0xc4)],'module':_0x3533ed['module'],'filepath':_0x3533ed[_0x13d20e(0xf7)],'routerOptions':_0x3be831},_0x21a3ef);}else _0x3be831[_0x13d20e(0xc4)]=_0x3be831[_0x13d20e(0xc4)]?'/'+_0x3be831[_0x13d20e(0xc4)]:'/'+_0x3533ed['route'],_0x3533ed[_0x13d20e(0xc4)]&&(_0x3be831[_0x13d20e(0xc4)]='/'+_0x3533ed['prefix']+'/'+_0x3be831['prefix']),_0x3be831[_0x13d20e(0xc4)]=_0x3be831['prefix'][_0x13d20e(0xe9)]()[_0x13d20e(0x103)](/\/{2,}/g,'/'),(0x0,core_1[_0x13d20e(0xce)])(action_1[_0x13d20e(0xe8)],_0x21a3ef),(0x0,core_1['Controller'])(_0x3be831[_0x13d20e(0xc4)],_0x3be831)(_0x21a3ef),(0x0,core_1['saveClassMetadata'])(action_1[_0x13d20e(0xe8)],{'prefix':_0x3be831[_0x13d20e(0xc4)],'module':_0x3533ed[_0x13d20e(0xfe)],'pprefix':_0x3533ed[_0x13d20e(0xc4)],'filepath':_0x3533ed[_0x13d20e(0xf7)],'routerOptions':_0x3be831},_0x21a3ef);};}exports[a3_0x1d57e1(0xd3)]=Action,Action[a3_0x1d57e1(0xe2)]=function(_0x1c73ba,_0xd2ae53='/',_0x38efce={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x15b3da,_0x433e0d,_0x2393e3)=>{const _0xa060a7=a3_0x5f31;ActionApi(_0x1c73ba,_0xa060a7(0xe2),_0xd2ae53,_0x38efce)(_0x15b3da,_0x433e0d,_0x2393e3);};},Action['post']=function(_0x3055af,_0xa930c4='/',_0x189806={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x368315,_0x266ea3,_0x2c00df)=>{const _0x50b917=a3_0x5f31;ActionApi(_0x3055af,_0x50b917(0x101),_0xa930c4,_0x189806)(_0x368315,_0x266ea3,_0x2c00df);};};function ActionApi(_0x5fd37f,_0x3527f8=a3_0x1d57e1(0xe2),_0x159405='/',_0x185ba2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2aadb9,_0x59119e,_0x32ff5b)=>{const _0x5e2083=a3_0x5f31;var _0x46ac30,_0x9d6af,_0x57ebc8;!_0x185ba2[_0x5e2083(0xee)]&&(_0x185ba2[_0x5e2083(0xee)]=[]);!((_0x46ac30=_0x185ba2===null||_0x185ba2===void 0x0?void 0x0:_0x185ba2[_0x5e2083(0x107)])===null||_0x46ac30===void 0x0?void 0x0:_0x46ac30[_0x5e2083(0xdb)])&&(_0x185ba2[_0x5e2083(0x107)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5e2083(0xe6)}});if(!_0x159405)_0x159405='/';else typeof _0x159405=='string'&&(!_0x159405[_0x5e2083(0xc6)]('/')&&!_0x159405[_0x5e2083(0xc6)]('-')&&(_0x159405='/'+_0x159405));typeof _0x185ba2[_0x5e2083(0xf9)]=='undefined'&&(_0x185ba2[_0x5e2083(0xf9)]=!![]);if(((_0x9d6af=_0x185ba2===null||_0x185ba2===void 0x0?void 0x0:_0x185ba2[_0x5e2083(0xee)])===null||_0x9d6af===void 0x0?void 0x0:_0x9d6af[_0x5e2083(0xea)])>0x0&&((_0x57ebc8=_0x185ba2===null||_0x185ba2===void 0x0?void 0x0:_0x185ba2[_0x5e2083(0xda)])===null||_0x57ebc8===void 0x0?void 0x0:_0x57ebc8['length'])>0x0)for(let _0x327da1 in _0x185ba2[_0x5e2083(0xee)]){_0x185ba2[_0x5e2083(0xda)]['indexOf'](_0x185ba2[_0x5e2083(0xee)][_0x327da1])!==-0x1&&(_0x185ba2[_0x5e2083(0xee)][_0x327da1]=null);}_0x185ba2['routerName']=_0x5fd37f,(0x0,validator_1['Validator'])(_0x185ba2['validate'])(_0x2aadb9,_0x59119e,_0x32ff5b),(0x0,core_2['RequestMapping'])(Object[_0x5e2083(0xca)](_0x185ba2,{'path':_0x159405,'requestMethod':(_0x3527f8||_0x5e2083(0xe2))[_0x5e2083(0xe9)]()}))(_0x2aadb9,_0x59119e,_0x32ff5b),(0x0,core_2[_0x5e2083(0x108)])(action_1[_0x5e2083(0x10c)],{'path':_0x159405,'method':_0x59119e,'apimit':_0x185ba2[_0x5e2083(0xf9)],'intercept':_0x185ba2[_0x5e2083(0xf4)],'routerName':_0x185ba2[_0x5e2083(0xe3)],'description':_0x185ba2[_0x5e2083(0xd9)],'middleware':(_0x185ba2[_0x5e2083(0xee)]||[])[_0x5e2083(0xcd)](_0x148d04=>!!_0x148d04),'requestMethod':(_0x3527f8||_0x5e2083(0xe2))['toLowerCase']()},_0x2aadb9),(0x0,core_2[_0x5e2083(0xc5)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x159405,'method':_0x59119e,'apimit':_0x185ba2[_0x5e2083(0xf9)],'intercept':_0x185ba2[_0x5e2083(0xf4)],'routerName':_0x185ba2['routerName'],'description':_0x185ba2[_0x5e2083(0xd9)],'middleware':(_0x185ba2[_0x5e2083(0xee)]||[])[_0x5e2083(0xcd)](_0x248d10=>!!_0x248d10),'requestMethod':(_0x3527f8||_0x5e2083(0xe2))[_0x5e2083(0xe9)]()})(_0x2aadb9,_0x59119e,_0x32ff5b);};}exports[a3_0x1d57e1(0xc9)]=ActionApi;function a3_0x5f31(_0x8e82bf,_0x55999a){const _0x8e036d=a3_0x38be();return a3_0x5f31=function(_0x43d8ad,_0x5ce405){_0x43d8ad=_0x43d8ad-0xc4;let _0x38beb1=_0x8e036d[_0x43d8ad];return _0x38beb1;},a3_0x5f31(_0x8e82bf,_0x55999a);}function parseRoute(_0x34ae40){const _0x19d50f=a3_0x1d57e1;_0x34ae40=_0x34ae40[_0x19d50f(0x103)](/(\\|\/)/g,'/');const _0x5b8e1a=process[_0x19d50f(0xd6)]()['replace'](/(\\|\/)/g,'/'),_0x3828ee=_0x34ae40[_0x19d50f(0xde)](0x0,_0x5b8e1a['length']+_0x34ae40[_0x19d50f(0xde)](_0x5b8e1a['length']+0x1)[_0x19d50f(0xfb)]('/')+0x1),_0x8f3960=_0x34ae40[_0x19d50f(0xde)](_0x3828ee[_0x19d50f(0xea)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x247a19={'route':'','prefix':![],'module':![],'rootpath':_0x3828ee,'filepath':_0x8f3960};if(_0x8f3960[_0x19d50f(0xc6)](_0x19d50f(0xef))||_0x8f3960[_0x19d50f(0xc6)](_0x19d50f(0xed))){const _0x419ddf=_0x8f3960['substring']((_0x8f3960[_0x19d50f(0xc6)](_0x19d50f(0xef))?_0x19d50f(0xef):_0x19d50f(0xed))[_0x19d50f(0xea)])[_0x19d50f(0x105)]('/')[_0x19d50f(0xcd)](_0x136f93=>_0x136f93&&_0x136f93[_0x19d50f(0xd1)]());return _0x419ddf[_0x19d50f(0xea)]>0x1&&(_0x247a19[_0x19d50f(0xc4)]=_0x419ddf[0x0][_0x19d50f(0xe9)](),_0x419ddf[_0x19d50f(0xc7)](0x0,0x1)),_0x247a19[_0x19d50f(0x100)]=('/'+_0x419ddf['join']('/'))[_0x19d50f(0x103)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x19d50f(0xd5)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x19d50f(0xe9)]()['replace'](/\/\-/g,'/'),_0x247a19[_0x19d50f(0x100)]['endsWith']('-action')&&(_0x247a19[_0x19d50f(0x100)]=_0x247a19['route'][_0x19d50f(0xde)](0x0,_0x247a19['route'][_0x19d50f(0xea)]-0x7)),_0x247a19['route'][_0x19d50f(0xfd)](_0x19d50f(0xf3))&&(_0x247a19['route']=_0x247a19['route'][_0x19d50f(0xde)](0x0,_0x247a19[_0x19d50f(0x100)][_0x19d50f(0xea)]-0xb)),_0x247a19;}else{if(_0x8f3960[_0x19d50f(0xc6)](_0x19d50f(0x10b))){const _0x3ecbc6=_0x8f3960[_0x19d50f(0xde)](0x0,_0x8f3960[_0x19d50f(0xfb)]('/apps/')+0x5),_0x1004fb=_0x8f3960[_0x19d50f(0xde)](_0x3ecbc6[_0x19d50f(0xea)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x19d50f(0x105)]('/')[0x0];if(_0x8f3960['startsWith']('apps/'+_0x1004fb+_0x19d50f(0xe7))){const _0x19f025=_0x8f3960[_0x19d50f(0xde)]((_0x3ecbc6+'/'+_0x1004fb+_0x19d50f(0xe7))['length'])[_0x19d50f(0x105)]('/')['filter'](_0x5778fd=>_0x5778fd&&_0x5778fd['trim']());return _0x19f025['length']>0x1&&(_0x247a19[_0x19d50f(0xc4)]=_0x19f025[0x0][_0x19d50f(0xe9)](),_0x19f025[_0x19d50f(0xc7)](0x0,0x1)),_0x247a19['module']=_0x1004fb,_0x247a19['route']=('/'+_0x1004fb+'/'+_0x19f025[_0x19d50f(0xcc)]('/'))[_0x19d50f(0x103)](/(\.ts|\.js)$/,'')[_0x19d50f(0x103)](/\/{2,}/g,'/')[_0x19d50f(0xd5)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x19d50f(0x103)](/\/\-/g,'/'),_0x247a19[_0x19d50f(0x100)]['endsWith'](_0x19d50f(0xdf))&&(_0x247a19[_0x19d50f(0x100)]=_0x247a19[_0x19d50f(0x100)][_0x19d50f(0xde)](0x0,_0x247a19[_0x19d50f(0x100)][_0x19d50f(0xea)]-0x7)),_0x247a19[_0x19d50f(0x100)][_0x19d50f(0xfd)]('-controller')&&(_0x247a19['route']=_0x247a19[_0x19d50f(0x100)]['substring'](0x0,_0x247a19[_0x19d50f(0x100)][_0x19d50f(0xea)]-0xb)),_0x247a19;}throw new Error(_0x8f3960+_0x19d50f(0xd4)+_0x1004fb+'/controller/文件下');}}throw new Error(_0x8f3960+_0x19d50f(0x106));}exports['parseRoute']=parseRoute;
|
|
1
|
+
const a3_0x41f6f4=a3_0x16a0;(function(_0x4ba048,_0x439eef){const _0x32eb77=a3_0x16a0,_0x34a5cf=_0x4ba048();while(!![]){try{const _0x2afe0c=-parseInt(_0x32eb77(0x202))/0x1*(parseInt(_0x32eb77(0x1f2))/0x2)+-parseInt(_0x32eb77(0x1d6))/0x3*(-parseInt(_0x32eb77(0x211))/0x4)+-parseInt(_0x32eb77(0x1df))/0x5+-parseInt(_0x32eb77(0x206))/0x6+-parseInt(_0x32eb77(0x204))/0x7*(-parseInt(_0x32eb77(0x1eb))/0x8)+-parseInt(_0x32eb77(0x215))/0x9+parseInt(_0x32eb77(0x207))/0xa;if(_0x2afe0c===_0x439eef)break;else _0x34a5cf['push'](_0x34a5cf['shift']());}catch(_0x2cc537){_0x34a5cf['push'](_0x34a5cf['shift']());}}}(a3_0xb5a9,0x825b4));const a3_0x1e81bb=(function(){let _0x4766fd=!![];return function(_0x5c9130,_0x1ab9e3){const _0x40ff42=_0x4766fd?function(){if(_0x1ab9e3){const _0x47ee46=_0x1ab9e3['apply'](_0x5c9130,arguments);return _0x1ab9e3=null,_0x47ee46;}}:function(){};return _0x4766fd=![],_0x40ff42;};}()),a3_0x28c6d6=a3_0x1e81bb(this,function(){const _0x127f07=a3_0x16a0;return a3_0x28c6d6[_0x127f07(0x1d7)]()[_0x127f07(0x1f0)](_0x127f07(0x212))[_0x127f07(0x1d7)]()[_0x127f07(0x1e5)](a3_0x28c6d6)[_0x127f07(0x1f0)](_0x127f07(0x212));});a3_0x28c6d6();'use strict';function a3_0xb5a9(){const _0x79d17d=['349601ZkLYYb','AppsConfigTmp','473136kqtAqU','11387690UvGCix','createCustomMethodDecorator','app/controller/','indexOf','prefix','startsWith','\x20文件请放在apps/','parseRoute','filter','cwd','22036mMMRhR','(((.+)+)+)+$','module','isArray','5751648vTaDcu','string','/controller/文件下','saveClassMetadata','/config.','description','endsWith','get','undefined','__esModule','@anncic-api/validator','existsSync','ActionApi','filepath','tagName','339espLKi','toString','/controller/','basic/controller/','split','/apps/','join','apimit','-controller','4712740gaCJUE','push','trim','length','assign','Validator','constructor','post','toLowerCase','APPSCONFIG_KEY','RequestMapping','../types/action','128nOoShE','Controller','middlewareIgnore','\x20文件请放在app/controller/文件下','substring','search','Action','9036eQXbom','attachClassMetadata','saveModule','replace','-action','intercept','splice','getClassMetadata','match','ACTION_KEY','rootpath','middleware','apps/','ACTION_ROUTE_KEY','routerName','route','81XWQSfH','validate'];a3_0xb5a9=function(){return _0x79d17d;};return a3_0xb5a9();}Object['defineProperty'](exports,a3_0x41f6f4(0x1d0),{'value':!![]}),exports[a3_0x41f6f4(0x20e)]=exports[a3_0x41f6f4(0x1d3)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x41f6f4(0x1d1)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a3_0x41f6f4(0x1ea));function Action(_0x50980f,_0x5dcb6c,_0x21fef4={'middleware':[],'sensitive':!![]}){return _0x398b78=>{const _0x22501c=a3_0x16a0;var _0x2d0b43;_0x21fef4[_0x22501c(0x1d5)]=_0x5dcb6c;const _0x3eda14=parseRoute(_0x50980f);if(_0x3eda14[_0x22501c(0x213)]){_0x21fef4[_0x22501c(0x20b)]=_0x21fef4['prefix']?'/'+_0x3eda14[_0x22501c(0x213)]+'/'+_0x21fef4[_0x22501c(0x20b)]:'/'+_0x3eda14[_0x22501c(0x201)];_0x3eda14[_0x22501c(0x20b)]&&(_0x21fef4['prefix']='/'+_0x3eda14[_0x22501c(0x20b)]+'/'+_0x21fef4[_0x22501c(0x20b)]);if(fs[_0x22501c(0x1d2)](_0x3eda14[_0x22501c(0x1fc)]+_0x22501c(0x1db)+_0x3eda14[_0x22501c(0x213)]+'/config.'+(lodash[_0x22501c(0x1cd)](_0x3eda14[_0x22501c(0x1d4)],'ts')?'ts':'js'))){const _0x35120f=include(_0x3eda14[_0x22501c(0x1fc)]+_0x22501c(0x1db)+_0x3eda14[_0x22501c(0x213)]+_0x22501c(0x1cb)+(lodash[_0x22501c(0x1cd)](_0x3eda14[_0x22501c(0x1d4)],'ts')?'ts':'js'));if(lodash[_0x22501c(0x214)](_0x35120f[_0x22501c(0x1fd)])&&_0x35120f[_0x22501c(0x1fd)][_0x22501c(0x1e2)]>0x0)for(let _0x2f345d in _0x35120f[_0x22501c(0x1fd)]){if(((_0x2d0b43=_0x35120f===null||_0x35120f===void 0x0?void 0x0:_0x35120f[_0x22501c(0x1ed)])===null||_0x2d0b43===void 0x0?void 0x0:_0x2d0b43[_0x22501c(0x1e2)])>0x0&&_0x35120f[_0x22501c(0x1ed)][_0x22501c(0x20a)](_0x35120f[_0x22501c(0x1fd)][_0x2f345d])!=-0x1)continue;_0x21fef4[_0x22501c(0x1fd)][_0x22501c(0x1e0)](_0x35120f[_0x22501c(0x1fd)][_0x2f345d]);}const _0x2bdf0b=(0x0,core_1[_0x22501c(0x1f9)])(action_1[_0x22501c(0x1e8)],action_1[_0x22501c(0x205)])||{};_0x2bdf0b[''+_0x3eda14[_0x22501c(0x213)]]=_0x35120f,(0x0,core_1[_0x22501c(0x1ca)])(action_1['APPSCONFIG_KEY'],_0x2bdf0b,action_1[_0x22501c(0x205)]);}_0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)][_0x22501c(0x1e7)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x22501c(0x1f4)])(action_1[_0x22501c(0x1fb)],_0x398b78),(0x0,core_1[_0x22501c(0x1ec)])(_0x21fef4['prefix'],_0x21fef4)(_0x398b78),(0x0,core_1['saveClassMetadata'])(action_1[_0x22501c(0x1fb)],{'prefix':_0x21fef4[_0x22501c(0x20b)],'pprefix':_0x3eda14[_0x22501c(0x20b)],'module':_0x3eda14[_0x22501c(0x213)],'filepath':_0x3eda14[_0x22501c(0x1d4)],'routerOptions':_0x21fef4},_0x398b78);}else _0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)]?'/'+_0x21fef4['prefix']:'/'+_0x3eda14[_0x22501c(0x201)],_0x3eda14[_0x22501c(0x20b)]&&(_0x21fef4[_0x22501c(0x20b)]='/'+_0x3eda14[_0x22501c(0x20b)]+'/'+_0x21fef4[_0x22501c(0x20b)]),_0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)]['toLowerCase']()[_0x22501c(0x1f5)](/\/{2,}/g,'/'),(0x0,core_1[_0x22501c(0x1f4)])(action_1['ACTION_KEY'],_0x398b78),(0x0,core_1[_0x22501c(0x1ec)])(_0x21fef4[_0x22501c(0x20b)],_0x21fef4)(_0x398b78),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x21fef4[_0x22501c(0x20b)],'module':_0x3eda14[_0x22501c(0x213)],'pprefix':_0x3eda14['prefix'],'filepath':_0x3eda14[_0x22501c(0x1d4)],'routerOptions':_0x21fef4},_0x398b78);};}exports[a3_0x41f6f4(0x1f1)]=Action,Action['get']=function(_0x28b9a7,_0x20f698='/',_0x1f7e72={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5f48d6,_0x12e031,_0x34c0b6)=>{ActionApi(_0x28b9a7,'get',_0x20f698,_0x1f7e72)(_0x5f48d6,_0x12e031,_0x34c0b6);};},Action[a3_0x41f6f4(0x1e6)]=function(_0xa752bf,_0x2aa630='/',_0xf38c28={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x490534,_0x41774,_0x215aa4)=>{ActionApi(_0xa752bf,'post',_0x2aa630,_0xf38c28)(_0x490534,_0x41774,_0x215aa4);};};function ActionApi(_0x4569ba,_0x10d30b=a3_0x41f6f4(0x1ce),_0x47d45b='/',_0x17294c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4f7213,_0x2db94d,_0x55fc43)=>{const _0x38ea73=a3_0x16a0;var _0xa4868b,_0x35d6c4,_0x3cdbd5;!_0x17294c[_0x38ea73(0x1fd)]&&(_0x17294c[_0x38ea73(0x1fd)]=[]);!((_0xa4868b=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c[_0x38ea73(0x203)])===null||_0xa4868b===void 0x0?void 0x0:_0xa4868b['validationOptions'])&&(_0x17294c[_0x38ea73(0x203)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x38ea73(0x216)}});if(!_0x47d45b)_0x47d45b='/';else typeof _0x47d45b==_0x38ea73(0x216)&&(!_0x47d45b[_0x38ea73(0x20c)]('/')&&!_0x47d45b[_0x38ea73(0x20c)]('-')&&(_0x47d45b='/'+_0x47d45b));typeof _0x17294c['apimit']==_0x38ea73(0x1cf)&&(_0x17294c[_0x38ea73(0x1dd)]=!![]);if(((_0x35d6c4=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c['middleware'])===null||_0x35d6c4===void 0x0?void 0x0:_0x35d6c4[_0x38ea73(0x1e2)])>0x0&&((_0x3cdbd5=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c[_0x38ea73(0x1ed)])===null||_0x3cdbd5===void 0x0?void 0x0:_0x3cdbd5[_0x38ea73(0x1e2)])>0x0)for(let _0x47e035 in _0x17294c[_0x38ea73(0x1fd)]){_0x17294c[_0x38ea73(0x1ed)]['indexOf'](_0x17294c['middleware'][_0x47e035])!==-0x1&&(_0x17294c['middleware'][_0x47e035]=null);}_0x17294c[_0x38ea73(0x200)]=_0x4569ba,(0x0,validator_1[_0x38ea73(0x1e4)])(_0x17294c['validate'])(_0x4f7213,_0x2db94d,_0x55fc43),(0x0,core_2[_0x38ea73(0x1e9)])(Object[_0x38ea73(0x1e3)](_0x17294c,{'path':_0x47d45b,'requestMethod':(_0x10d30b||'get')[_0x38ea73(0x1e7)]()}))(_0x4f7213,_0x2db94d,_0x55fc43),(0x0,core_2[_0x38ea73(0x1f3)])(action_1[_0x38ea73(0x1ff)],{'path':_0x47d45b,'method':_0x2db94d,'apimit':_0x17294c[_0x38ea73(0x1dd)],'intercept':_0x17294c[_0x38ea73(0x1f7)],'routerName':_0x17294c[_0x38ea73(0x200)],'description':_0x17294c['description'],'middleware':(_0x17294c[_0x38ea73(0x1fd)]||[])['filter'](_0xb78cbb=>!!_0xb78cbb),'requestMethod':(_0x10d30b||_0x38ea73(0x1ce))[_0x38ea73(0x1e7)]()},_0x4f7213),(0x0,core_2[_0x38ea73(0x208)])(action_1[_0x38ea73(0x1ff)],{'path':_0x47d45b,'method':_0x2db94d,'apimit':_0x17294c['apimit'],'intercept':_0x17294c[_0x38ea73(0x1f7)],'routerName':_0x17294c['routerName'],'description':_0x17294c[_0x38ea73(0x1cc)],'middleware':(_0x17294c[_0x38ea73(0x1fd)]||[])[_0x38ea73(0x20f)](_0x646b0d=>!!_0x646b0d),'requestMethod':(_0x10d30b||'get')['toLowerCase']()})(_0x4f7213,_0x2db94d,_0x55fc43);};}exports[a3_0x41f6f4(0x1d3)]=ActionApi;function a3_0x16a0(_0x13b0f8,_0x377d1d){const _0x3c30de=a3_0xb5a9();return a3_0x16a0=function(_0x28c6d6,_0x1e81bb){_0x28c6d6=_0x28c6d6-0x1c9;let _0xb5a97d=_0x3c30de[_0x28c6d6];return _0xb5a97d;},a3_0x16a0(_0x13b0f8,_0x377d1d);}function parseRoute(_0xea133e){const _0x5568fa=a3_0x41f6f4;_0xea133e=_0xea133e['replace'](/(\\|\/)/g,'/');const _0x58fd79=process[_0x5568fa(0x210)]()['replace'](/(\\|\/)/g,'/'),_0x50ba30=_0xea133e['substring'](0x0,_0x58fd79[_0x5568fa(0x1e2)]+_0xea133e[_0x5568fa(0x1ef)](_0x58fd79['length']+0x1)[_0x5568fa(0x20a)]('/')+0x1),_0xfae93e=_0xea133e[_0x5568fa(0x1ef)](_0x50ba30[_0x5568fa(0x1e2)]+0x1)[_0x5568fa(0x1f5)](/(\\|\/)/g,'/'),_0x351e74={'route':'','prefix':![],'module':![],'rootpath':_0x50ba30,'filepath':_0xfae93e};if(_0xfae93e[_0x5568fa(0x20c)]('app/controller/')||_0xfae93e[_0x5568fa(0x20c)](_0x5568fa(0x1d9))){const _0x3ae0de=_0xfae93e[_0x5568fa(0x1ef)]((_0xfae93e['startsWith']('app/controller/')?_0x5568fa(0x209):_0x5568fa(0x1d9))[_0x5568fa(0x1e2)])[_0x5568fa(0x1da)]('/')['filter'](_0x536b09=>_0x536b09&&_0x536b09[_0x5568fa(0x1e1)]());return _0x3ae0de[_0x5568fa(0x1e2)]>0x1&&(_0x351e74[_0x5568fa(0x20b)]=_0x3ae0de[0x0][_0x5568fa(0x1e7)](),_0x3ae0de[_0x5568fa(0x1f8)](0x0,0x1)),_0x351e74['route']=('/'+_0x3ae0de[_0x5568fa(0x1dc)]('/'))[_0x5568fa(0x1f5)](/(\.ts|\.js)$/,'')[_0x5568fa(0x1f5)](/\/{2,}/g,'/')[_0x5568fa(0x1fa)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x5568fa(0x1f5)](/\/\-/g,'/'),_0x351e74['route'][_0x5568fa(0x1cd)](_0x5568fa(0x1f6))&&(_0x351e74['route']=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74['route'][_0x5568fa(0x1e2)]-0x7)),_0x351e74['route'][_0x5568fa(0x1cd)](_0x5568fa(0x1de))&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74['route'][_0x5568fa(0x1e2)]-0xb)),_0x351e74;}else{if(_0xfae93e[_0x5568fa(0x20c)](_0x5568fa(0x1fe))){const _0x589918=_0xfae93e[_0x5568fa(0x1ef)](0x0,_0xfae93e['indexOf'](_0x5568fa(0x1db))+0x5),_0x4056bb=_0xfae93e[_0x5568fa(0x1ef)](_0x589918[_0x5568fa(0x1e2)]+0x1)[_0x5568fa(0x1f5)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0xfae93e['startsWith'](_0x5568fa(0x1fe)+_0x4056bb+_0x5568fa(0x1d8))){const _0x42afca=_0xfae93e[_0x5568fa(0x1ef)]((_0x589918+'/'+_0x4056bb+_0x5568fa(0x1d8))[_0x5568fa(0x1e2)])[_0x5568fa(0x1da)]('/')['filter'](_0x1076dc=>_0x1076dc&&_0x1076dc[_0x5568fa(0x1e1)]());return _0x42afca[_0x5568fa(0x1e2)]>0x1&&(_0x351e74[_0x5568fa(0x20b)]=_0x42afca[0x0][_0x5568fa(0x1e7)](),_0x42afca['splice'](0x0,0x1)),_0x351e74[_0x5568fa(0x213)]=_0x4056bb,_0x351e74[_0x5568fa(0x201)]=('/'+_0x4056bb+'/'+_0x42afca['join']('/'))[_0x5568fa(0x1f5)](/(\.ts|\.js)$/,'')[_0x5568fa(0x1f5)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x5568fa(0x1dc)]('-')['toLowerCase']()[_0x5568fa(0x1f5)](/\/\-/g,'/'),_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1cd)](_0x5568fa(0x1f6))&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1e2)]-0x7)),_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1cd)]('-controller')&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74['route'][_0x5568fa(0x1ef)](0x0,_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1e2)]-0xb)),_0x351e74;}throw new Error(_0xfae93e+_0x5568fa(0x20d)+_0x4056bb+_0x5568fa(0x1c9));}}throw new Error(_0xfae93e+_0x5568fa(0x1ee));}exports['parseRoute']=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x6e61(_0x404fac,_0x1aa72a){const _0x397882=a4_0x2551();return a4_0x6e61=function(_0x4708e0,_0x22f9f4){_0x4708e0=_0x4708e0-0x96;let _0x2551f0=_0x397882[_0x4708e0];return _0x2551f0;},a4_0x6e61(_0x404fac,_0x1aa72a);}const a4_0x51df7a=a4_0x6e61;(function(_0x106ac2,_0x3a1507){const _0x503868=a4_0x6e61,_0x30b6dc=_0x106ac2();while(!![]){try{const _0x3b12b3=-parseInt(_0x503868(0xa4))/0x1*(parseInt(_0x503868(0xa2))/0x2)+-parseInt(_0x503868(0xb1))/0x3*(-parseInt(_0x503868(0x9b))/0x4)+parseInt(_0x503868(0xa6))/0x5+-parseInt(_0x503868(0xb5))/0x6*(-parseInt(_0x503868(0xae))/0x7)+parseInt(_0x503868(0xa1))/0x8*(-parseInt(_0x503868(0x9a))/0x9)+-parseInt(_0x503868(0x96))/0xa+parseInt(_0x503868(0x99))/0xb;if(_0x3b12b3===_0x3a1507)break;else _0x30b6dc['push'](_0x30b6dc['shift']());}catch(_0x8a7983){_0x30b6dc['push'](_0x30b6dc['shift']());}}}(a4_0x2551,0x28e06));const a4_0x22f9f4=(function(){let _0x4339b2=!![];return function(_0x46e700,_0x32e297){const _0x31822f=_0x4339b2?function(){const _0x3997c3=a4_0x6e61;if(_0x32e297){const _0x3fc797=_0x32e297[_0x3997c3(0xa7)](_0x46e700,arguments);return _0x32e297=null,_0x3fc797;}}:function(){};return _0x4339b2=![],_0x31822f;};}()),a4_0x4708e0=a4_0x22f9f4(this,function(){const _0x518c32=a4_0x6e61;return a4_0x4708e0[_0x518c32(0xa9)]()[_0x518c32(0xaa)](_0x518c32(0x9f))[_0x518c32(0xa9)]()[_0x518c32(0xb4)](a4_0x4708e0)['search']('(((.+)+)+)+$');});a4_0x4708e0();'use strict';Object[a4_0x51df7a(0xaf)](exports,a4_0x51df7a(0xb2),{'value':!![]}),exports[a4_0x51df7a(0x9e)]=void 0x0;const core_1=require(a4_0x51df7a(0x98)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x6d3715=a4_0x51df7a(0x97),_0x2b89f1){return(_0x14bea2,_0x3bb8b7,_0x2bf65e)=>{const _0x44d439=a4_0x6e61;return(0x0,core_1[_0x44d439(0x9c)])({'path':_0x6d3715,'requestMethod':'get'})(_0x14bea2,_0x3bb8b7,_0x2bf65e),_0x2bf65e[_0x44d439(0xb3)]=async function(..._0x527f0f){const _0x5a5eb6=_0x44d439;var _0x4693c9;const _0x424939=(_0x4693c9=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x4693c9===void 0x0?void 0x0:_0x4693c9[_0x5a5eb6(0xa0)];if(_0x424939&&_0x424939[_0x5a5eb6(0xad)]('apitest')){const _0x4c5ff2=await _0x424939[_0x5a5eb6(0xa3)]()['getAsync'](ApitestService_1[_0x5a5eb6(0xb0)]),_0x3fec83=await _0x424939['getApplicationContext']()[_0x5a5eb6(0xa8)](core_1[_0x5a5eb6(0xa5)]);return _0x3fec83[_0x5a5eb6(0xab)]()&&(_0x2b89f1[_0x5a5eb6(0x9d)]=!![]),await _0x4c5ff2[_0x5a5eb6(0xac)](_0x2b89f1);}return'';},_0x2bf65e;};}exports[a4_0x51df7a(0x9e)]=Apitest;function a4_0x2551(){const _0x3f4e83=['search','isDevelopmentEnvironment','apidoc','getConfig','7756jFDhOg','defineProperty','ApitestService','3Eznyhp','__esModule','value','constructor','852FmtpaW','1513570zEjJom','/apitest','@midwayjs/core','4623575JyeLvF','613512LwyelF','565408iyzkqt','RequestMapping','filepath','Apitest','(((.+)+)+)+$','app','24DMtnLU','3022WCsNFO','getApplicationContext','218pFXWZo','MidwayEnvironmentService','668380tTgiSW','apply','getAsync','toString'];a4_0x2551=function(){return _0x3f4e83;};return a4_0x2551();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2e2e7b=a5_0x32a9;(function(_0x1982fc,_0x106541){const _0x11dc3c=a5_0x32a9,_0x38b4ab=_0x1982fc();while(!![]){try{const _0x4a5f89=parseInt(_0x11dc3c(0xd6))/0x1*(-parseInt(_0x11dc3c(0xd7))/0x2)+parseInt(_0x11dc3c(0xd4))/0x3*(-parseInt(_0x11dc3c(0xd5))/0x4)+-parseInt(_0x11dc3c(0xee))/0x5+-parseInt(_0x11dc3c(0xdf))/0x6+parseInt(_0x11dc3c(0xe2))/0x7*(parseInt(_0x11dc3c(0xeb))/0x8)+parseInt(_0x11dc3c(0xe0))/0x9*(-parseInt(_0x11dc3c(0xed))/0xa)+parseInt(_0x11dc3c(0xf1))/0xb*(parseInt(_0x11dc3c(0xe8))/0xc);if(_0x4a5f89===_0x106541)break;else _0x38b4ab['push'](_0x38b4ab['shift']());}catch(_0x430d41){_0x38b4ab['push'](_0x38b4ab['shift']());}}}(a5_0x1e1a,0xdaa6b));const a5_0x33997e=(function(){let _0x2b7c18=!![];return function(_0x4ba2d3,_0x374675){const _0x473186=_0x2b7c18?function(){const _0x22ca40=a5_0x32a9;if(_0x374675){const _0x2457b7=_0x374675[_0x22ca40(0xe9)](_0x4ba2d3,arguments);return _0x374675=null,_0x2457b7;}}:function(){};return _0x2b7c18=![],_0x473186;};}()),a5_0x4a2cb8=a5_0x33997e(this,function(){const _0x4722ce=a5_0x32a9;return a5_0x4a2cb8[_0x4722ce(0xef)]()[_0x4722ce(0xdd)]('(((.+)+)+)+$')[_0x4722ce(0xef)]()[_0x4722ce(0xe6)](a5_0x4a2cb8)[_0x4722ce(0xdd)]('(((.+)+)+)+$');});a5_0x4a2cb8();'use strict';Object[a5_0x2e2e7b(0xe7)](exports,a5_0x2e2e7b(0xf3),{'value':!![]}),exports['IIntercept']=exports[a5_0x2e2e7b(0xd8)]=void 0x0;const core_1=require(a5_0x2e2e7b(0xdc)),intercept_1=require(a5_0x2e2e7b(0xec));function Intercept(_0x52c340){return _0xf72748=>{const _0x4481c6=a5_0x32a9,_0x3633b2=(0x0,core_1[_0x4481c6(0xe1)])(intercept_1[_0x4481c6(0xf2)],intercept_1[_0x4481c6(0xe3)])||{};for(let _0x35f9f2 of Array[_0x4481c6(0xd9)](_0x52c340)?_0x52c340:[_0x52c340]){_0x35f9f2=_0x35f9f2[_0x4481c6(0xe5)]();!(_0x3633b2===null||_0x3633b2===void 0x0?void 0x0:_0x3633b2[_0x35f9f2])&&(_0x3633b2[_0x35f9f2]=[]);if(_0x3633b2[_0x35f9f2]['includes'](_0xf72748))continue;_0x3633b2[_0x35f9f2][_0x4481c6(0xdb)](_0xf72748);}(0x0,core_1['Provide'])()(_0xf72748),(0x0,core_1[_0x4481c6(0xde)])(core_1[_0x4481c6(0xda)][_0x4481c6(0xea)])(_0xf72748),(0x0,core_1[_0x4481c6(0xe4)])(intercept_1['INTERCEPT_KEY'],_0x3633b2,intercept_1[_0x4481c6(0xe3)]);};}function a5_0x1e1a(){const _0x2a7e12=['push','@midwayjs/core','search','Scope','2871546qNTKMo','4713453baqUOm','getClassMetadata','7063xgBcMO','InterceptTargetTmp','saveClassMetadata','toUpperCase','constructor','defineProperty','44892DZyeiz','apply','Singleton','3032XEOuoD','../types/intercept','30GHPrEP','7121180XgzBnP','toString','IIntercept','17325EELQkq','INTERCEPT_KEY','__esModule','1306707LwZKzD','16oDWWDH','103QONGEI','3158jQHWwx','Intercept','isArray','ScopeEnum'];a5_0x1e1a=function(){return _0x2a7e12;};return a5_0x1e1a();}function a5_0x32a9(_0x4aeece,_0x3b4023){const _0x584718=a5_0x1e1a();return a5_0x32a9=function(_0x4a2cb8,_0x33997e){_0x4a2cb8=_0x4a2cb8-0xd4;let _0x1e1ae0=_0x584718[_0x4a2cb8];return _0x1e1ae0;},a5_0x32a9(_0x4aeece,_0x3b4023);}exports[a5_0x2e2e7b(0xd8)]=Intercept;class IIntercept{async['match'](_0x165bd6,_0x72c36f,_0x436efb){return!![];}}exports[a5_0x2e2e7b(0xf0)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a6_0x39fa2c=a6_0x5c1d;(function(_0x427ada,_0x4f7079){var _0x374568=a6_0x5c1d,_0x22719b=_0x427ada();while(!![]){try{var _0x1731c0=-parseInt(_0x374568(0x130))/0x1+-parseInt(_0x374568(0x142))/0x2+-parseInt(_0x374568(0x134))/0x3*(-parseInt(_0x374568(0x146))/0x4)+-parseInt(_0x374568(0x149))/0x5+parseInt(_0x374568(0x133))/0x6*(-parseInt(_0x374568(0x13b))/0x7)+-parseInt(_0x374568(0x151))/0x8*(-parseInt(_0x374568(0x14a))/0x9)+parseInt(_0x374568(0x13c))/0xa;if(_0x1731c0===_0x4f7079)break;else _0x22719b['push'](_0x22719b['shift']());}catch(_0x28ae97){_0x22719b['push'](_0x22719b['shift']());}}}(a6_0x40cd,0x4eca8));var a6_0x7bdee6=(function(){var _0x107c07=!![];return function(_0x4a1f46,_0x13da0a){var _0x309f87=_0x107c07?function(){var _0x2fe040=a6_0x5c1d;if(_0x13da0a){var _0x193ba0=_0x13da0a[_0x2fe040(0x13e)](_0x4a1f46,arguments);return _0x13da0a=null,_0x193ba0;}}:function(){};return _0x107c07=![],_0x309f87;};}()),a6_0x431cb7=a6_0x7bdee6(this,function(){var _0x3efd68=a6_0x5c1d;return a6_0x431cb7[_0x3efd68(0x135)]()[_0x3efd68(0x145)]('(((.+)+)+)+$')['toString']()[_0x3efd68(0x147)](a6_0x431cb7)['search'](_0x3efd68(0x152));});a6_0x431cb7();'use strict';function a6_0x5c1d(_0xc58ce1,_0x30c83d){var _0x4c379a=a6_0x40cd();return a6_0x5c1d=function(_0x431cb7,_0x7bdee6){_0x431cb7=_0x431cb7-0x12f;var _0x40cd2c=_0x4c379a[_0x431cb7];return _0x40cd2c;},a6_0x5c1d(_0xc58ce1,_0x30c83d);}var __decorate=this&&this['__decorate']||function(_0x341a96,_0x547e0d,_0xcf4b73,_0x51d934){var _0x1b7a5e=a6_0x5c1d,_0x590077=arguments[_0x1b7a5e(0x136)],_0x33090d=_0x590077<0x3?_0x547e0d:_0x51d934===null?_0x51d934=Object[_0x1b7a5e(0x140)](_0x547e0d,_0xcf4b73):_0x51d934,_0x177cbb;if(typeof Reflect===_0x1b7a5e(0x14f)&&typeof Reflect[_0x1b7a5e(0x144)]==='function')_0x33090d=Reflect[_0x1b7a5e(0x144)](_0x341a96,_0x547e0d,_0xcf4b73,_0x51d934);else{for(var _0x54a635=_0x341a96['length']-0x1;_0x54a635>=0x0;_0x54a635--)if(_0x177cbb=_0x341a96[_0x54a635])_0x33090d=(_0x590077<0x3?_0x177cbb(_0x33090d):_0x590077>0x3?_0x177cbb(_0x547e0d,_0xcf4b73,_0x33090d):_0x177cbb(_0x547e0d,_0xcf4b73))||_0x33090d;}return _0x590077>0x3&&_0x33090d&&Object['defineProperty'](_0x547e0d,_0xcf4b73,_0x33090d),_0x33090d;},__metadata=this&&this[a6_0x39fa2c(0x14b)]||function(_0x18ff66,_0x495eeb){var _0x2a8bb8=a6_0x39fa2c;if(typeof Reflect===_0x2a8bb8(0x14f)&&typeof Reflect[_0x2a8bb8(0x138)]===_0x2a8bb8(0x139))return Reflect[_0x2a8bb8(0x138)](_0x18ff66,_0x495eeb);};Object[a6_0x39fa2c(0x132)](exports,a6_0x39fa2c(0x143),{'value':!![]}),exports[a6_0x39fa2c(0x14c)]=void 0x0;class ApiError extends AnnError{}function a6_0x40cd(){var _0x261be3=['191962BLhBDt','__esModule','decorate','search','52xXmmQW','constructor','TIMEOUT','750170Fcwlkj','36ZJwBWz','__metadata','ApiError','TIMEOUT_LOGINTIME','请求超时,请重试','object','HEADERS_CHECKCODE','1181184xETbLP','(((.+)+)+)+$','登录超时,请重新登录','458685pdrlom','HEADERS_DEVICE','defineProperty','2888634AuMWAm','85377gNIFJf','toString','length','请使用正确的设备','metadata','function','signature验证失败','7rykuSP','5483080GkAuuw','HEADERS_SIGNATURE','apply','HEADERS_LACK','getOwnPropertyDescriptor','design:type'];a6_0x40cd=function(){return _0x261be3;};return a6_0x40cd();}exports['ApiError']=ApiError,ApiError[a6_0x39fa2c(0x148)]=0x19003,ApiError[a6_0x39fa2c(0x13f)]=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError[a6_0x39fa2c(0x14d)]=0x18e76,__decorate([AnnErrorMsg(a6_0x39fa2c(0x14e)),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x148),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x13f),void 0x0),__decorate([AnnErrorMsg(a6_0x39fa2c(0x137)),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x131),void 0x0),__decorate([AnnErrorMsg(a6_0x39fa2c(0x13a)),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x13d),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x150),void 0x0),__decorate([AnnErrorMsg(a6_0x39fa2c(0x12f)),__metadata(a6_0x39fa2c(0x141),Object)],ApiError,a6_0x39fa2c(0x14d),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x21f9(){const _0x1ee92b=['../types/action','getAppsConfig','get','1RWgJYG','search','AppsConfigTmp','288AXrAlY','getClassMetadata','constructor','634696RvkgnW','toString','401694lQCufg','APPSCONFIG_KEY','105DpjPMZ','2183736DeniLf','defineProperty','53545iNGBmu','(((.+)+)+)+$','766215ObFwhB','12883020AphGsP','2036133knjIML'];a7_0x21f9=function(){return _0x1ee92b;};return a7_0x21f9();}const a7_0x225892=a7_0x3685;(function(_0x4e6a73,_0x271906){const _0x25c563=a7_0x3685,_0x72e198=_0x4e6a73();while(!![]){try{const _0x1a5d93=parseInt(_0x25c563(0x154))/0x1*(parseInt(_0x25c563(0x15c))/0x2)+-parseInt(_0x25c563(0x150))/0x3+-parseInt(_0x25c563(0x15f))/0x4+parseInt(_0x25c563(0x14c))/0x5*(-parseInt(_0x25c563(0x157))/0x6)+-parseInt(_0x25c563(0x15e))/0x7*(-parseInt(_0x25c563(0x15a))/0x8)+-parseInt(_0x25c563(0x14e))/0x9+parseInt(_0x25c563(0x14f))/0xa;if(_0x1a5d93===_0x271906)break;else _0x72e198['push'](_0x72e198['shift']());}catch(_0x5703a9){_0x72e198['push'](_0x72e198['shift']());}}}(a7_0x21f9,0xd0d60));function a7_0x3685(_0x378dc5,_0x4820e0){const _0x1094a3=a7_0x21f9();return a7_0x3685=function(_0x34674f,_0x390451){_0x34674f=_0x34674f-0x14c;let _0x21f9e2=_0x1094a3[_0x34674f];return _0x21f9e2;},a7_0x3685(_0x378dc5,_0x4820e0);}const a7_0x390451=(function(){let _0x27f424=!![];return function(_0xc703a6,_0x4e1bdf){const _0x12dd0d=_0x27f424?function(){if(_0x4e1bdf){const _0xb16f87=_0x4e1bdf['apply'](_0xc703a6,arguments);return _0x4e1bdf=null,_0xb16f87;}}:function(){};return _0x27f424=![],_0x12dd0d;};}()),a7_0x34674f=a7_0x390451(this,function(){const _0x5a8369=a7_0x3685;return a7_0x34674f[_0x5a8369(0x15b)]()[_0x5a8369(0x155)](_0x5a8369(0x14d))[_0x5a8369(0x15b)]()[_0x5a8369(0x159)](a7_0x34674f)['search'](_0x5a8369(0x14d));});a7_0x34674f();'use strict';Object[a7_0x225892(0x160)](exports,'__esModule',{'value':!![]}),exports[a7_0x225892(0x152)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x225892(0x151));function getAppsConfig(_0x32d0e6){const _0x4253c0=a7_0x225892,_0x163672=(0x0,core_1[_0x4253c0(0x158)])(action_1[_0x4253c0(0x15d)],action_1[_0x4253c0(0x156)])||{};return _0x32d0e6?lodash[_0x4253c0(0x153)](_0x163672,_0x32d0e6):_0x163672;}exports[a7_0x225892(0x152)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x5bedf6=a8_0x5f36;function a8_0x5f36(_0x3200a2,_0x4fadf8){const _0x166c78=a8_0x3681();return a8_0x5f36=function(_0x14815f,_0x4d97a2){_0x14815f=_0x14815f-0xe2;let _0x368114=_0x166c78[_0x14815f];return _0x368114;},a8_0x5f36(_0x3200a2,_0x4fadf8);}(function(_0x3cead8,_0x2824b0){const _0x3e0b8e=a8_0x5f36,_0x18f7ed=_0x3cead8();while(!![]){try{const _0x325ef2=parseInt(_0x3e0b8e(0xf1))/0x1*(parseInt(_0x3e0b8e(0x121))/0x2)+-parseInt(_0x3e0b8e(0x120))/0x3+-parseInt(_0x3e0b8e(0x144))/0x4+-parseInt(_0x3e0b8e(0x143))/0x5+parseInt(_0x3e0b8e(0x12f))/0x6*(parseInt(_0x3e0b8e(0xf4))/0x7)+parseInt(_0x3e0b8e(0x115))/0x8*(parseInt(_0x3e0b8e(0x100))/0x9)+parseInt(_0x3e0b8e(0x107))/0xa*(parseInt(_0x3e0b8e(0x137))/0xb);if(_0x325ef2===_0x2824b0)break;else _0x18f7ed['push'](_0x18f7ed['shift']());}catch(_0x5721a2){_0x18f7ed['push'](_0x18f7ed['shift']());}}}(a8_0x3681,0x80f16));const a8_0x4d97a2=(function(){let _0x2eaf97=!![];return function(_0x1a6755,_0x20d345){const _0xfab7f3=_0x2eaf97?function(){const _0x4d2271=a8_0x5f36;if(_0x20d345){const _0x12499b=_0x20d345[_0x4d2271(0x112)](_0x1a6755,arguments);return _0x20d345=null,_0x12499b;}}:function(){};return _0x2eaf97=![],_0xfab7f3;};}()),a8_0x14815f=a8_0x4d97a2(this,function(){const _0x33c120=a8_0x5f36;return a8_0x14815f[_0x33c120(0x13e)]()[_0x33c120(0x119)](_0x33c120(0x145))[_0x33c120(0x13e)]()[_0x33c120(0x123)](a8_0x14815f)['search'](_0x33c120(0x145));});a8_0x14815f();'use strict';Object['defineProperty'](exports,a8_0x5bedf6(0x102),{'value':!![]}),exports[a8_0x5bedf6(0xf3)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x5bedf6(0x101)),core_1=require(a8_0x5bedf6(0xff)),core_2=require(a8_0x5bedf6(0xff)),core_3=require(a8_0x5bedf6(0xff)),action_1=require(a8_0x5bedf6(0x117));function getRoutes(_0x9fbc36={'prefix':'/','module':![]}){const _0x35300e=a8_0x5bedf6;var _0x275b24,_0x448cbe;const _0x4e316e=(0x0,core_3[_0x35300e(0xea)])(action_1['ACTION_KEY']),_0x465462={},_0x5ac9ac=Array[_0x35300e(0x11d)](_0x9fbc36[_0x35300e(0x133)]||[])?_0x9fbc36[_0x35300e(0x133)]||[]:[_0x9fbc36['filter']];_0xa8c8e2:for(const _0x162df2 of _0x4e316e){let _0xd1d680=(0x0,core_3[_0x35300e(0x129)])(action_1['ACTION_KEY'],_0x162df2),_0x34f29b=(0x0,core_3[_0x35300e(0x129)])(action_1[_0x35300e(0x13b)],_0x162df2);if(_0xd1d680&&_0x34f29b){let _0x2bbdc9=_0xd1d680['prefix'],_0x50f47e={};if(_0x9fbc36[_0x35300e(0x108)]&&(0x0,lodash_1[_0x35300e(0x11f)])(_0xd1d680,_0x35300e(0x108),![])!=_0x9fbc36[_0x35300e(0x108)])continue _0xa8c8e2;else{if(_0x9fbc36['module']===![]&&!!(0x0,lodash_1[_0x35300e(0x11f)])(_0xd1d680,_0x35300e(0x108),null))continue _0xa8c8e2;}if(_0x9fbc36[_0x35300e(0x139)]&&!_0x2bbdc9[_0x35300e(0xe9)](_0x9fbc36[_0x35300e(0x139)]))continue _0xa8c8e2;_0x2bbdc9!=='/'?(_0x50f47e[_0x35300e(0xf9)]=(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680['routerOptions'][_0x35300e(0x113)])||(/^\//[_0x35300e(0x10c)](_0x2bbdc9)?_0x2bbdc9[_0x35300e(0x140)]('/')[0x1]:_0x2bbdc9),_0x50f47e[_0x35300e(0xe7)]=(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680['routerOptions'][_0x35300e(0xe7)])||_0x50f47e[_0x35300e(0xf9)],_0x50f47e[_0x35300e(0x10d)]=[]):(_0x50f47e[_0x35300e(0xf9)]=(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680[_0x35300e(0xec)][_0x35300e(0x113)])||'default',_0x50f47e[_0x35300e(0xe7)]=(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680[_0x35300e(0xec)]['description'])||'',_0x50f47e[_0x35300e(0x10d)]=[]);_0x9fbc36[_0x35300e(0x12c)]&&(_0x50f47e[_0x35300e(0x12c)]=_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680['filepath']);(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680[_0x35300e(0x11b)])&&(_0x50f47e[_0x35300e(0x139)]=_0xd1d680['pprefix']);(_0xd1d680===null||_0xd1d680===void 0x0?void 0x0:_0xd1d680[_0x35300e(0x108)])&&(_0x50f47e[_0x35300e(0x108)]=_0xd1d680[_0x35300e(0x108)]);let _0x50e7a5=(0x0,core_3[_0x35300e(0x129)])(core_2[_0x35300e(0x127)],_0x162df2)||{};if(typeof _0x34f29b[Symbol[_0x35300e(0x12a)]]==='function')for(let _0x12bbf5 of _0x34f29b){if((_0x9fbc36===null||_0x9fbc36===void 0x0?void 0x0:_0x9fbc36['intercept'])&&!(_0x12bbf5===null||_0x12bbf5===void 0x0?void 0x0:_0x12bbf5['intercept']))continue;let _0x451e8d={};_0x451e8d[_0x35300e(0x13f)]=_0x12bbf5['requestMethod'],_0x451e8d[_0x35300e(0xfb)]=(_0x2bbdc9+_0x12bbf5[_0x35300e(0xed)])[_0x35300e(0x126)](/\/{2,}/g,'/'),_0x451e8d[_0x35300e(0xf9)]=(_0x12bbf5===null||_0x12bbf5===void 0x0?void 0x0:_0x12bbf5[_0x35300e(0x10f)])||_0x50f47e[_0x35300e(0xf9)]||_0x35300e(0x105),_0x451e8d[_0x35300e(0xe7)]=(_0x12bbf5===null||_0x12bbf5===void 0x0?void 0x0:_0x12bbf5[_0x35300e(0xe7)])||'',_0x451e8d['request']=[];_0x451e8d[_0x35300e(0xfb)][_0x35300e(0x125)]('/')&&(_0x451e8d[_0x35300e(0xfb)]=_0x451e8d['route'][_0x35300e(0x118)](0x0,_0x451e8d['route']['length']-0x1));if(!(0x0,lodash_1[_0x35300e(0xe9)])(_0x451e8d['route'],_0x35300e(0xe2))&&!(0x0,lodash_1[_0x35300e(0xe9)])(_0x451e8d[_0x35300e(0xfb)],_0x35300e(0xf6))&&_0x5ac9ac['indexOf'](_0x451e8d['route'])===-0x1){if(!(_0x9fbc36===null||_0x9fbc36===void 0x0?void 0x0:_0x9fbc36[_0x35300e(0xee)])){let _0x343e10=(0x0,core_3[_0x35300e(0x146)])(new _0x162df2(),_0x12bbf5[_0x35300e(0x13f)]);for(const _0x3369a9 in _0x343e10){let _0x3e005b=(_0x275b24=_0x50e7a5[_0x12bbf5['method']])===null||_0x275b24===void 0x0?void 0x0:_0x275b24[_0x35300e(0x109)](_0x466a41=>_0x466a41[_0x35300e(0x132)]==_0x3369a9&&_0x466a41[_0x35300e(0x12e)]===core_2[_0x35300e(0x11e)]&&(_0x466a41===null||_0x466a41===void 0x0?void 0x0:_0x466a41[_0x35300e(0xe6)]));if(_0x3e005b===null||_0x3e005b===void 0x0?void 0x0:_0x3e005b[_0x35300e(0xe6)]){let _0x45db2a=convertTypeToString(_0x3e005b[_0x35300e(0xe6)]['type']||0x0);if([_0x35300e(0x138),'body'][_0x35300e(0xfe)](_0x45db2a)!=-0x1&&_0x3e005b['metadata'][_0x35300e(0xf7)][_0x35300e(0xfe)](':')==-0x1&&!_0x451e8d[_0x35300e(0x114)][_0x35300e(0x109)](_0x550a71=>_0x550a71[_0x35300e(0x12e)]==_0x3e005b['metadata'][_0x35300e(0xf7)]))_0x451e8d['request']['push']({'key':_0x3e005b[_0x35300e(0xe6)][_0x35300e(0xf7)],'title':_0x3e005b[_0x35300e(0xe6)][_0x35300e(0xf7)],'type':convertSchemaType(_0x343e10[_0x3e005b[_0x35300e(0x132)]][_0x35300e(0xfc)]),'required':![],'default':'','desc':''});else{if(_0x45db2a==_0x35300e(0x10b)){let _0x4303c9=((_0x448cbe=_0x3e005b===null||_0x3e005b===void 0x0?void 0x0:_0x3e005b[_0x35300e(0xe6)])===null||_0x448cbe===void 0x0?void 0x0:_0x448cbe[_0x35300e(0xf7)])||_0x35300e(0x10b);_0x4303c9[_0x35300e(0xfe)](':')==-0x1&&!_0x451e8d['request'][_0x35300e(0x109)](_0x29e076=>_0x29e076[_0x35300e(0x12e)]==_0x4303c9&&_0x29e076[_0x35300e(0x11c)]==_0x35300e(0x10b))&&_0x451e8d['request']['push']({'key':_0x4303c9,'title':_0x35300e(0x103)+_0x4303c9,'type':_0x35300e(0x10b),'required':!![],'default':'','desc':''});}}}else{const _0x1c7af4=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x35300e(0xf8)],_0x343e10[_0x3369a9]);_0x1c7af4&&_0x451e8d[_0x35300e(0x114)]['push'](...getJoiRequest(_0x1c7af4));}}}_0x50f47e[_0x35300e(0x10d)][_0x35300e(0xf0)](_0x451e8d);}}if(_0x50f47e['routes'][_0x35300e(0x10e)]>0x0){let _0x4634d1=_0x465462[_0x2bbdc9];_0x4634d1?(_0x4634d1[_0x35300e(0xf9)]!=_0x50f47e[_0x35300e(0xf9)]&&(_0x4634d1['summary']=_0x4634d1[_0x35300e(0xf9)]+','+_0x50f47e[_0x35300e(0xf9)]),_0x4634d1[_0x35300e(0xe7)]!=_0x50f47e[_0x35300e(0xe7)]&&(_0x4634d1[_0x35300e(0xe7)]=_0x4634d1[_0x35300e(0xe7)]+','+_0x50f47e[_0x35300e(0xe7)]),_0x4634d1[_0x35300e(0x10d)]=_0x4634d1[_0x35300e(0x10d)]['concat'](_0x50f47e[_0x35300e(0x10d)]),_0x465462[_0x2bbdc9]=_0x4634d1):_0x465462[_0x2bbdc9]=_0x50f47e;}}}return _0x465462;}exports[a8_0x5bedf6(0xf3)]=getRoutes;function a8_0x3681(){const _0x19681a=['object','boolean','QUERY','metadata','description','join','startsWith','listModule','describe','routerOptions','path','noreq','array','push','31133CGuHet','allow','getRoutes','3265801qrZWYf','Boolean','/static/apitest','propertyData','RULES_KEY','summary','FIELDS','route','name','items','indexOf','@midwayjs/core','9xJcxAM','@anncic-api/validator','__esModule','文件上传-','Number','default','string','503290IFpgvG','module','find','header','file','test','routes','length','routerName','flags.presence','rules','apply','tagName','request','3530872IZfuVd','args','../types/action','substring','search','RouteParamTypes','pprefix','type','isArray','WEB_ROUTER_PARAM_KEY','get','2318076QdsByq','4xrehCP','HEADERS','constructor','flags.label','endsWith','replace','INJECT_CUSTOM_PARAM','limit','getClassMetadata','iterator','String','filepath','flags.description','key','6iZGkxg','number','BODY','parameterIndex','filter','max','keys','required','275GiuruL','query','prefix','Object','ACTION_ROUTE_KEY','只允许:[','File','toString','method','split','min','title','474070BFxpSH','3330948sLcBVg','(((.+)+)+)+$','getMethodParamTypes','static/apitest'];a8_0x3681=function(){return _0x19681a;};return a8_0x3681();}function getJoiRequest(_0x445867){const _0x5b2972=a8_0x5bedf6,_0x3346a7=[];for(let _0x281842 in _0x445867){const _0x137303={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4b6edd=typeof _0x445867[_0x281842][_0x5b2972(0xeb)]=='function'?_0x445867[_0x281842][_0x5b2972(0xeb)]():_0x445867[_0x281842];_0x137303[_0x5b2972(0x12e)]=_0x281842,_0x137303['type']=_0x4b6edd[_0x5b2972(0x11c)],_0x137303[_0x5b2972(0x142)]=(0x0,lodash_1[_0x5b2972(0x11f)])(_0x4b6edd,_0x5b2972(0x124),_0x281842),_0x137303[_0x5b2972(0x105)]=(0x0,lodash_1[_0x5b2972(0x11f)])(_0x4b6edd,'flags.default',''),_0x137303[_0x5b2972(0x136)]=(0x0,lodash_1[_0x5b2972(0x11f)])(_0x4b6edd,_0x5b2972(0x110),'')==_0x5b2972(0x136),_0x137303[_0x5b2972(0xe7)]=(0x0,lodash_1['get'])(_0x4b6edd,_0x5b2972(0x12d),'');if(_0x4b6edd[_0x5b2972(0x11c)]==_0x5b2972(0xe3))_0x137303['children']=getJoiRequest(_0x4b6edd[_0x5b2972(0x135)]);else{if(_0x4b6edd[_0x5b2972(0x11c)]==_0x5b2972(0xef)&&_0x4b6edd[_0x5b2972(0xfd)]&&Array[_0x5b2972(0x11d)](_0x4b6edd['items'])&&_0x4b6edd[_0x5b2972(0xfd)][0x0]){}}_0x4b6edd[_0x5b2972(0xf2)]&&Array[_0x5b2972(0x11d)](_0x4b6edd[_0x5b2972(0xf2)])&&_0x4b6edd[_0x5b2972(0xf2)][_0x5b2972(0x10e)]>0x0&&(_0x137303[_0x5b2972(0xe7)]=_0x5b2972(0x13c)+_0x4b6edd[_0x5b2972(0xf2)][_0x5b2972(0xe8)](',')+'];'+_0x137303[_0x5b2972(0xe7)]);if(_0x137303[_0x5b2972(0x12e)]&&_0x137303[_0x5b2972(0x11c)]){const _0x3fea54={};for(const _0xb2ff50 of _0x4b6edd[_0x5b2972(0x111)]||[]){if(_0xb2ff50[_0x5b2972(0xfc)]===_0x5b2972(0x141)&&_0xb2ff50[_0x5b2972(0x116)])_0x3fea54[_0x5b2972(0x141)]=_0xb2ff50[_0x5b2972(0x116)][_0x5b2972(0x128)];else _0xb2ff50['name']===_0x5b2972(0x134)&&(_0x3fea54[_0x5b2972(0x134)]=_0xb2ff50[_0x5b2972(0x116)][_0x5b2972(0x128)]);}_0x137303[_0x5b2972(0x111)]=_0x3fea54;}_0x137303[_0x5b2972(0x12e)]&&_0x137303[_0x5b2972(0x142)]&&_0x3346a7[_0x5b2972(0xf0)](_0x137303);}return _0x3346a7;}function convertSchemaType(_0x64c87a){const _0x57777e=a8_0x5bedf6;switch(_0x64c87a){case _0x57777e(0x13a):return _0x57777e(0xe3);case _0x57777e(0xf5):return _0x57777e(0xe4);case _0x57777e(0x104):return _0x57777e(0x130);case _0x57777e(0x12b):return'string';case _0x57777e(0x13d):return _0x57777e(0x10b);default:return _0x57777e(0x106);}}function convertTypeToString(_0x3bf334){const _0x581671=a8_0x5bedf6;switch(_0x3bf334){case core_1['RouteParamTypes'][_0x581671(0x122)]:return _0x581671(0x10a);case core_1[_0x581671(0x11a)][_0x581671(0xe5)]:return _0x581671(0x138);case core_1[_0x581671(0x11a)]['PARAM']:return _0x581671(0xed);case core_1['RouteParamTypes'][_0x581671(0x131)]:return'body';case core_1['RouteParamTypes'][_0x581671(0xfa)]:case core_1[_0x581671(0x11a)]['FILESSTREAM']:case core_1[_0x581671(0x11a)]['FILESTREAM']:return _0x581671(0x10b);default:return _0x581671(0x10a);}}
|
|
1
|
+
const a8_0xc17250=a8_0x21af;(function(_0x1ca4a0,_0x3cb48e){const _0x5b673f=a8_0x21af,_0x4ca1da=_0x1ca4a0();while(!![]){try{const _0x3d0475=-parseInt(_0x5b673f(0x18c))/0x1*(parseInt(_0x5b673f(0x1a4))/0x2)+parseInt(_0x5b673f(0x18d))/0x3+-parseInt(_0x5b673f(0x16c))/0x4*(-parseInt(_0x5b673f(0x151))/0x5)+-parseInt(_0x5b673f(0x158))/0x6*(-parseInt(_0x5b673f(0x1a1))/0x7)+-parseInt(_0x5b673f(0x197))/0x8*(-parseInt(_0x5b673f(0x177))/0x9)+parseInt(_0x5b673f(0x144))/0xa*(parseInt(_0x5b673f(0x159))/0xb)+-parseInt(_0x5b673f(0x15f))/0xc;if(_0x3d0475===_0x3cb48e)break;else _0x4ca1da['push'](_0x4ca1da['shift']());}catch(_0x506eed){_0x4ca1da['push'](_0x4ca1da['shift']());}}}(a8_0x38ef,0x91ce6));const a8_0x48e07d=(function(){let _0x3a898d=!![];return function(_0x7947c9,_0x3ed749){const _0x252d0b=_0x3a898d?function(){if(_0x3ed749){const _0x42c611=_0x3ed749['apply'](_0x7947c9,arguments);return _0x3ed749=null,_0x42c611;}}:function(){};return _0x3a898d=![],_0x252d0b;};}()),a8_0x12591c=a8_0x48e07d(this,function(){const _0x59a545=a8_0x21af;return a8_0x12591c[_0x59a545(0x191)]()[_0x59a545(0x17e)](_0x59a545(0x15d))['toString']()['constructor'](a8_0x12591c)[_0x59a545(0x17e)](_0x59a545(0x15d));});a8_0x12591c();'use strict';Object[a8_0xc17250(0x175)](exports,'__esModule',{'value':!![]}),exports[a8_0xc17250(0x145)]=void 0x0;const lodash_1=require(a8_0xc17250(0x150)),validator_1=require(a8_0xc17250(0x14f)),core_1=require(a8_0xc17250(0x184)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a8_0xc17250(0x17b));function getRoutes(_0x1a3e8b={'prefix':'/','module':![]}){const _0x442dcb=a8_0xc17250;var _0x5207dc,_0x2d671b;const _0x31d222=(0x0,core_3[_0x442dcb(0x190)])(action_1[_0x442dcb(0x17f)]),_0x5c09a2={},_0xc211a7=Array['isArray'](_0x1a3e8b[_0x442dcb(0x1a6)]||[])?_0x1a3e8b[_0x442dcb(0x1a6)]||[]:[_0x1a3e8b['filter']];_0x415fde:for(const _0x268d44 of _0x31d222){let _0xa30842=(0x0,core_3[_0x442dcb(0x183)])(action_1[_0x442dcb(0x17f)],_0x268d44),_0x25f079=(0x0,core_3[_0x442dcb(0x183)])(action_1[_0x442dcb(0x19b)],_0x268d44);if(_0xa30842&&_0x25f079){let _0x5b49e6=_0xa30842[_0x442dcb(0x172)],_0x27bca1={};if(_0x1a3e8b['module']&&(0x0,lodash_1[_0x442dcb(0x18e)])(_0xa30842,'module',![])!=_0x1a3e8b[_0x442dcb(0x156)])continue _0x415fde;else{if(_0x1a3e8b[_0x442dcb(0x156)]===![]&&!!(0x0,lodash_1[_0x442dcb(0x18e)])(_0xa30842,_0x442dcb(0x156),null))continue _0x415fde;}if(_0x1a3e8b[_0x442dcb(0x172)]&&!_0x5b49e6[_0x442dcb(0x163)](_0x1a3e8b[_0x442dcb(0x172)]))continue _0x415fde;_0x5b49e6!=='/'?(_0x27bca1[_0x442dcb(0x168)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x164)])||(/^\//[_0x442dcb(0x146)](_0x5b49e6)?_0x5b49e6[_0x442dcb(0x166)]('/')[0x1]:_0x5b49e6),_0x27bca1[_0x442dcb(0x170)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x170)])||_0x27bca1['summary'],_0x27bca1[_0x442dcb(0x14a)]=[]):(_0x27bca1[_0x442dcb(0x168)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x164)])||'default',_0x27bca1[_0x442dcb(0x170)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)]['description'])||'',_0x27bca1[_0x442dcb(0x14a)]=[]);_0x1a3e8b[_0x442dcb(0x194)]&&(_0x27bca1[_0x442dcb(0x194)]=_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842['filepath']);(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x179)])&&(_0x27bca1['prefix']=_0xa30842[_0x442dcb(0x179)]);(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842['module'])&&(_0x27bca1[_0x442dcb(0x156)]=_0xa30842[_0x442dcb(0x156)]);let _0x4480ee=(0x0,core_3[_0x442dcb(0x183)])(core_2[_0x442dcb(0x19d)],_0x268d44)||{};if(typeof _0x25f079[Symbol[_0x442dcb(0x19a)]]===_0x442dcb(0x16d))for(let _0x536371 of _0x25f079){if((_0x1a3e8b===null||_0x1a3e8b===void 0x0?void 0x0:_0x1a3e8b[_0x442dcb(0x14b)])&&!(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x14b)]))continue;let _0x366009={};_0x366009[_0x442dcb(0x1a0)]=_0x536371['requestMethod'],_0x366009[_0x442dcb(0x169)]=(_0x5b49e6+_0x536371[_0x442dcb(0x15c)])[_0x442dcb(0x1a3)](/\/{2,}/g,'/'),_0x366009[_0x442dcb(0x168)]=(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x171)])||_0x27bca1[_0x442dcb(0x168)]||_0x442dcb(0x18b),_0x366009[_0x442dcb(0x170)]=(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x170)])||'',_0x366009['request']=[];_0x366009[_0x442dcb(0x169)]['endsWith']('/')&&(_0x366009[_0x442dcb(0x169)]=_0x366009[_0x442dcb(0x169)]['substring'](0x0,_0x366009['route'][_0x442dcb(0x180)]-0x1));if(!(0x0,lodash_1[_0x442dcb(0x163)])(_0x366009[_0x442dcb(0x169)],_0x442dcb(0x160))&&!(0x0,lodash_1['startsWith'])(_0x366009['route'],_0x442dcb(0x162))&&_0xc211a7['indexOf'](_0x366009[_0x442dcb(0x169)])===-0x1){if(!(_0x1a3e8b===null||_0x1a3e8b===void 0x0?void 0x0:_0x1a3e8b[_0x442dcb(0x19f)])){let _0xbad276=(0x0,core_3['getMethodParamTypes'])(new _0x268d44(),_0x536371[_0x442dcb(0x1a0)]);for(const _0x1cef13 in _0xbad276){let _0x3467bc=(_0x5207dc=_0x4480ee[_0x536371[_0x442dcb(0x1a0)]])===null||_0x5207dc===void 0x0?void 0x0:_0x5207dc[_0x442dcb(0x195)](_0x3f9c43=>_0x3f9c43[_0x442dcb(0x17d)]==_0x1cef13&&_0x3f9c43[_0x442dcb(0x185)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x3f9c43===null||_0x3f9c43===void 0x0?void 0x0:_0x3f9c43['metadata']));if(_0x3467bc===null||_0x3467bc===void 0x0?void 0x0:_0x3467bc['metadata']){let _0x8c3c65=convertTypeToString(_0x3467bc[_0x442dcb(0x19e)]['type']||0x0);if(['query','body'][_0x442dcb(0x15a)](_0x8c3c65)!=-0x1&&_0x3467bc[_0x442dcb(0x19e)][_0x442dcb(0x196)][_0x442dcb(0x15a)](':')==-0x1&&!_0x366009['request'][_0x442dcb(0x195)](_0x1272d1=>_0x1272d1[_0x442dcb(0x185)]==_0x3467bc[_0x442dcb(0x19e)][_0x442dcb(0x196)]))_0x366009['request'][_0x442dcb(0x167)]({'key':_0x3467bc[_0x442dcb(0x19e)]['propertyData'],'title':_0x3467bc['metadata'][_0x442dcb(0x196)],'type':convertSchemaType(_0xbad276[_0x3467bc[_0x442dcb(0x17d)]][_0x442dcb(0x189)]),'required':![],'default':'','desc':''});else{if(_0x8c3c65==_0x442dcb(0x165)){let _0x53bf07=((_0x2d671b=_0x3467bc===null||_0x3467bc===void 0x0?void 0x0:_0x3467bc[_0x442dcb(0x19e)])===null||_0x2d671b===void 0x0?void 0x0:_0x2d671b['propertyData'])||_0x442dcb(0x165);_0x53bf07[_0x442dcb(0x15a)](':')==-0x1&&!_0x366009[_0x442dcb(0x14e)][_0x442dcb(0x195)](_0x2f23d7=>_0x2f23d7[_0x442dcb(0x185)]==_0x53bf07&&_0x2f23d7[_0x442dcb(0x1a5)]==_0x442dcb(0x165))&&_0x366009['request'][_0x442dcb(0x167)]({'key':_0x53bf07,'title':_0x442dcb(0x19c)+_0x53bf07,'type':_0x442dcb(0x165),'required':!![],'default':'','desc':''});}}}else{const _0x1a2cdb=(0x0,core_3[_0x442dcb(0x16f)])(validator_1[_0x442dcb(0x16b)],_0xbad276[_0x1cef13]);_0x1a2cdb&&_0x366009[_0x442dcb(0x14e)][_0x442dcb(0x167)](...getJoiRequest(_0x1a2cdb));}}}_0x27bca1[_0x442dcb(0x14a)][_0x442dcb(0x167)](_0x366009);}}if(_0x27bca1[_0x442dcb(0x14a)][_0x442dcb(0x180)]>0x0){let _0xfe175b=_0x5c09a2[_0x5b49e6];_0xfe175b?(_0xfe175b[_0x442dcb(0x168)]!=_0x27bca1[_0x442dcb(0x168)]&&(_0xfe175b['summary']=_0xfe175b[_0x442dcb(0x168)]+','+_0x27bca1['summary']),_0xfe175b[_0x442dcb(0x170)]!=_0x27bca1[_0x442dcb(0x170)]&&(_0xfe175b[_0x442dcb(0x170)]=_0xfe175b['description']+','+_0x27bca1[_0x442dcb(0x170)]),_0xfe175b[_0x442dcb(0x14a)]=_0xfe175b['routes'][_0x442dcb(0x192)](_0x27bca1[_0x442dcb(0x14a)]),_0x5c09a2[_0x5b49e6]=_0xfe175b):_0x5c09a2[_0x5b49e6]=_0x27bca1;}}}return _0x5c09a2;}function a8_0x21af(_0x3e5fcc,_0x587b02){const _0x4d81c8=a8_0x38ef();return a8_0x21af=function(_0x12591c,_0x48e07d){_0x12591c=_0x12591c-0x144;let _0x38ef80=_0x4d81c8[_0x12591c];return _0x38ef80;},a8_0x21af(_0x3e5fcc,_0x587b02);}exports[a8_0xc17250(0x145)]=getRoutes;function getJoiRequest(_0x5e9888){const _0x5ad5fd=a8_0xc17250,_0x3fad35=[];for(let _0x19113e in _0x5e9888){const _0x5377b3={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x137873=typeof _0x5e9888[_0x19113e][_0x5ad5fd(0x16e)]==_0x5ad5fd(0x16d)?_0x5e9888[_0x19113e][_0x5ad5fd(0x16e)]():_0x5e9888[_0x19113e];_0x5377b3[_0x5ad5fd(0x185)]=_0x19113e,_0x5377b3[_0x5ad5fd(0x1a5)]=_0x137873[_0x5ad5fd(0x1a5)],_0x5377b3['title']=(0x0,lodash_1[_0x5ad5fd(0x18e)])(_0x137873,_0x5ad5fd(0x18a),_0x19113e),_0x5377b3[_0x5ad5fd(0x18b)]=(0x0,lodash_1['get'])(_0x137873,'flags.default',''),_0x5377b3[_0x5ad5fd(0x187)]=(0x0,lodash_1['get'])(_0x137873,_0x5ad5fd(0x199),'')=='required',_0x5377b3[_0x5ad5fd(0x170)]=(0x0,lodash_1[_0x5ad5fd(0x18e)])(_0x137873,_0x5ad5fd(0x1a7),'');if(_0x137873[_0x5ad5fd(0x1a5)]==_0x5ad5fd(0x174))_0x5377b3[_0x5ad5fd(0x198)]=getJoiRequest(_0x137873[_0x5ad5fd(0x176)]);else{if(_0x137873[_0x5ad5fd(0x1a5)]==_0x5ad5fd(0x1a2)&&_0x137873[_0x5ad5fd(0x193)]&&Array[_0x5ad5fd(0x16a)](_0x137873[_0x5ad5fd(0x193)])&&_0x137873[_0x5ad5fd(0x193)][0x0]){}}_0x137873['allow']&&Array[_0x5ad5fd(0x16a)](_0x137873[_0x5ad5fd(0x154)])&&_0x137873['allow'][_0x5ad5fd(0x180)]>0x0&&(_0x5377b3[_0x5ad5fd(0x170)]='只允许:['+_0x137873['allow']['join'](',')+'];'+_0x5377b3[_0x5ad5fd(0x170)]);if(_0x5377b3[_0x5ad5fd(0x185)]&&_0x5377b3[_0x5ad5fd(0x1a5)]){const _0x10b677={};for(const _0x2eaad8 of _0x137873[_0x5ad5fd(0x155)]||[]){if(_0x2eaad8[_0x5ad5fd(0x189)]===_0x5ad5fd(0x1a8)&&_0x2eaad8[_0x5ad5fd(0x152)])_0x10b677[_0x5ad5fd(0x1a8)]=_0x2eaad8[_0x5ad5fd(0x152)][_0x5ad5fd(0x17c)];else _0x2eaad8['name']===_0x5ad5fd(0x149)&&(_0x10b677[_0x5ad5fd(0x149)]=_0x2eaad8[_0x5ad5fd(0x152)][_0x5ad5fd(0x17c)]);}_0x5377b3[_0x5ad5fd(0x155)]=_0x10b677;}_0x5377b3[_0x5ad5fd(0x185)]&&_0x5377b3[_0x5ad5fd(0x15b)]&&_0x3fad35['push'](_0x5377b3);}return _0x3fad35;}function convertSchemaType(_0x593f00){const _0x580c81=a8_0xc17250;switch(_0x593f00){case'Object':return _0x580c81(0x174);case _0x580c81(0x15e):return _0x580c81(0x14c);case _0x580c81(0x186):return _0x580c81(0x17a);case'String':return _0x580c81(0x147);case _0x580c81(0x188):return _0x580c81(0x165);default:return _0x580c81(0x147);}}function convertTypeToString(_0x50ffda){const _0x54e4e5=a8_0xc17250;switch(_0x50ffda){case core_1[_0x54e4e5(0x181)][_0x54e4e5(0x14d)]:return _0x54e4e5(0x182);case core_1['RouteParamTypes'][_0x54e4e5(0x173)]:return _0x54e4e5(0x178);case core_1[_0x54e4e5(0x181)]['PARAM']:return _0x54e4e5(0x15c);case core_1['RouteParamTypes'][_0x54e4e5(0x148)]:return _0x54e4e5(0x18f);case core_1[_0x54e4e5(0x181)]['FIELDS']:case core_1['RouteParamTypes'][_0x54e4e5(0x161)]:case core_1['RouteParamTypes'][_0x54e4e5(0x153)]:return _0x54e4e5(0x165);default:return _0x54e4e5(0x182);}}function a8_0x38ef(){const _0x4280be=['split','push','summary','route','isArray','RULES_KEY','68ouGnRW','function','describe','getClassExtendedMetadata','description','routerName','prefix','QUERY','object','defineProperty','keys','8392383jJMCKp','query','pprefix','number','../types/action','limit','parameterIndex','search','ACTION_KEY','length','RouteParamTypes','header','getClassMetadata','@midwayjs/core','key','Number','required','File','name','flags.label','default','4846ihqlvz','449484BTmXsp','get','body','listModule','toString','concat','items','filepath','find','propertyData','8KBkKpK','children','flags.presence','iterator','ACTION_ROUTE_KEY','文件上传-','INJECT_CUSTOM_PARAM','metadata','noreq','method','28NoQgKI','array','replace','448SpFQjz','type','filter','flags.description','min','9210HAVzWz','getRoutes','test','string','BODY','max','routes','intercept','boolean','HEADERS','request','@anncic-api/validator','lodash','158115nTBUff','args','FILESTREAM','allow','rules','module','routerOptions','1248006nlIfZf','12716iSTvax','indexOf','title','path','(((.+)+)+)+$','Boolean','22006320hIFzQI','static/apitest','FILESSTREAM','/static/apitest','startsWith','tagName','file'];a8_0x38ef=function(){return _0x4280be;};return a8_0x38ef();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a9_0x81636f=a9_0x5bce;(function(_0x392731,_0x402e1b){var _0x5b909a=a9_0x5bce,_0xf9728d=_0x392731();while(!![]){try{var _0x40643d=parseInt(_0x5b909a(0xf0))/0x1*(parseInt(_0x5b909a(0xe7))/0x2)+parseInt(_0x5b909a(0xd7))/0x3+parseInt(_0x5b909a(0xe4))/0x4+-parseInt(_0x5b909a(0xfd))/0x5+parseInt(_0x5b909a(0x106))/0x6*(-parseInt(_0x5b909a(0x109))/0x7)+parseInt(_0x5b909a(0xeb))/0x8*(parseInt(_0x5b909a(0xd8))/0x9)+parseInt(_0x5b909a(0xee))/0xa;if(_0x40643d===_0x402e1b)break;else _0xf9728d['push'](_0xf9728d['shift']());}catch(_0x4b0773){_0xf9728d['push'](_0xf9728d['shift']());}}}(a9_0xaa72,0x1a401));var a9_0x349bf2=(function(){var _0x11eda0=!![];return function(_0x1e5901,_0x1162f2){var _0x33439e=_0x11eda0?function(){if(_0x1162f2){var _0x514e5d=_0x1162f2['apply'](_0x1e5901,arguments);return _0x1162f2=null,_0x514e5d;}}:function(){};return _0x11eda0=![],_0x33439e;};}()),a9_0x93213a=a9_0x349bf2(this,function(){var _0x3d962a=a9_0x5bce;return a9_0x93213a[_0x3d962a(0xf6)]()[_0x3d962a(0x10e)](_0x3d962a(0x102))[_0x3d962a(0xf6)]()[_0x3d962a(0x108)](a9_0x93213a)[_0x3d962a(0x10e)](_0x3d962a(0x102));});a9_0x93213a();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x81636f(0xdd)]?function(_0x5a4d65,_0x10971a,_0x331112,_0x2eabe5){var _0x1901ad=a9_0x81636f;if(_0x2eabe5===undefined)_0x2eabe5=_0x331112;var _0x367101=Object[_0x1901ad(0xd5)](_0x10971a,_0x331112);(!_0x367101||(_0x1901ad(0xe0)in _0x367101?!_0x10971a[_0x1901ad(0xdb)]:_0x367101[_0x1901ad(0xf7)]||_0x367101[_0x1901ad(0x10b)]))&&(_0x367101={'enumerable':!![],'get':function(){return _0x10971a[_0x331112];}}),Object[_0x1901ad(0xf8)](_0x5a4d65,_0x2eabe5,_0x367101);}:function(_0x3c7417,_0x5a5e8a,_0x3c5b59,_0x528978){if(_0x528978===undefined)_0x528978=_0x3c5b59;_0x3c7417[_0x528978]=_0x5a5e8a[_0x3c5b59];}),__exportStar=this&&this[a9_0x81636f(0x10f)]||function(_0x2e07f9,_0x3ce68e){var _0x45fbcc=a9_0x81636f;for(var _0x125cfd in _0x2e07f9)if(_0x125cfd!==_0x45fbcc(0xfb)&&!Object['prototype']['hasOwnProperty'][_0x45fbcc(0xf4)](_0x3ce68e,_0x125cfd))__createBinding(_0x3ce68e,_0x2e07f9,_0x125cfd);};Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xdb),{'value':!![]}),exports['getAppsConfig']=exports['ScopeEnum']=exports[a9_0x81636f(0xf5)]=exports[a9_0x81636f(0xe9)]=exports[a9_0x81636f(0xe5)]=exports[a9_0x81636f(0x105)]=exports['Logger']=exports[a9_0x81636f(0xf3)]=exports[a9_0x81636f(0xf1)]=exports[a9_0x81636f(0x110)]=exports['Headers']=exports[a9_0x81636f(0xfa)]=exports[a9_0x81636f(0xd6)]=exports[a9_0x81636f(0x101)]=exports['Fields']=exports[a9_0x81636f(0xd4)]=exports[a9_0x81636f(0xe6)]=exports[a9_0x81636f(0x103)]=exports[a9_0x81636f(0xec)]=exports[a9_0x81636f(0xda)]=exports[a9_0x81636f(0xe2)]=exports['ApiService']=exports[a9_0x81636f(0x114)]=exports[a9_0x81636f(0xd9)]=exports[a9_0x81636f(0x100)]=exports[a9_0x81636f(0x112)]=exports[a9_0x81636f(0x113)]=exports[a9_0x81636f(0xe3)]=exports['Apitest']=exports[a9_0x81636f(0x107)]=void 0x0;const getAppsConfig_1=require(a9_0x81636f(0x10d));function a9_0xaa72(){var _0x32e2b7=['Config','call','Singleton','toString','writable','defineProperty','@midwayjs/core','Query','default','./service/ApitestService','212115QJXVBw','Apitest','./service/ApiService','ApiError','Body','(((.+)+)+)+$','Configuration','./service/ExcelService','Provide','294yHxRCU','Action','constructor','23079aczVdB','./configuration','configurable','./decorator/Intercept','./helper/getAppsConfig','search','__exportStar','Init','./decorator/Action','getRoutes','IIntercept','EventService','ScopeEnum','CustomConfiguration','Files','getOwnPropertyDescriptor','Param','220326TJDwmd','9puOJqi','CacheService','ValidatorError','__esModule','Fields','create','ApiService','@anncic-api/event','get','getAppsConfig','ExcelService','Intercept','393652Gbakau','Inject','File','2jjoLpU','./exception/ApiError','Scope','Headers','169168igCOQR','ValidatorService','@anncic-api/validator','654180xuZPOm','./types/common','53078mfsCwV','App','./decorator/ActionApitest'];a9_0xaa72=function(){return _0x32e2b7;};return a9_0xaa72();}Object['defineProperty'](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x1ccd47=a9_0x81636f;return getAppsConfig_1[_0x1ccd47(0xe1)];}}),__exportStar(require(a9_0x81636f(0xef)),exports),__exportStar(require(a9_0x81636f(0xfc)),exports);var Action_1=require(a9_0x81636f(0x111));Object['defineProperty'](exports,'Action',{'enumerable':!![],'get':function(){var _0x3214d=a9_0x81636f;return Action_1[_0x3214d(0x107)];}});var ActionApitest_1=require(a9_0x81636f(0xf2));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xfe),{'enumerable':!![],'get':function(){var _0x3374b1=a9_0x81636f;return ActionApitest_1[_0x3374b1(0xfe)];}});var Intercept_1=require(a9_0x81636f(0x10c));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xe3),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0x113),{'enumerable':!![],'get':function(){var _0x546149=a9_0x81636f;return Intercept_1[_0x546149(0x113)];}});var getRoutes_1=require('./helper/getRoutes');Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0x112),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x81636f(0xe8));Object['defineProperty'](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x53e4f2=a9_0x81636f;return ApiError_1[_0x53e4f2(0x100)];}});var cache_1=require('@anncic-api/cache');Object['defineProperty'](exports,a9_0x81636f(0xd9),{'enumerable':!![],'get':function(){var _0xd3fd2e=a9_0x81636f;return cache_1[_0xd3fd2e(0xd9)];}});var event_1=require(a9_0x81636f(0xdf));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0x114),{'enumerable':!![],'get':function(){var _0x37b152=a9_0x81636f;return event_1[_0x37b152(0x114)];}});function a9_0x5bce(_0x477759,_0x59fafd){var _0x74f4aa=a9_0xaa72();return a9_0x5bce=function(_0x93213a,_0x349bf2){_0x93213a=_0x93213a-0xd2;var _0xaa7287=_0x74f4aa[_0x93213a];return _0xaa7287;},a9_0x5bce(_0x477759,_0x59fafd);}var ApiService_1=require(a9_0x81636f(0xff));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xde),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a9_0x81636f(0x104));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xe2),{'enumerable':!![],'get':function(){var _0xc4ba13=a9_0x81636f;return ExcelService_1[_0xc4ba13(0xe2)];}});var validator_1=require(a9_0x81636f(0xed));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xda),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x81636f(0xf8)](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x81636f(0x10a));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0x103),{'enumerable':!![],'get':function(){var _0xab4b85=a9_0x81636f;return configuration_1[_0xab4b85(0xd3)];}});var core_1=require(a9_0x81636f(0xf9));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xe6),{'enumerable':!![],'get':function(){var _0x7853df=a9_0x81636f;return core_1[_0x7853df(0xe6)];}}),Object[a9_0x81636f(0xf8)](exports,'Files',{'enumerable':!![],'get':function(){var _0x5977b9=a9_0x81636f;return core_1[_0x5977b9(0xd4)];}}),Object['defineProperty'](exports,a9_0x81636f(0xdc),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0x101),{'enumerable':!![],'get':function(){var _0x94d358=a9_0x81636f;return core_1[_0x94d358(0x101)];}}),Object[a9_0x81636f(0xf8)](exports,'Param',{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xfa),{'enumerable':!![],'get':function(){var _0x851d0=a9_0x81636f;return core_1[_0x851d0(0xfa)];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xea),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a9_0x81636f(0xf8)](exports,'Init',{'enumerable':!![],'get':function(){var _0x33ddd0=a9_0x81636f;return core_1[_0x33ddd0(0x110)];}});var core_2=require(a9_0x81636f(0xf9));Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xf1),{'enumerable':!![],'get':function(){var _0x2db37d=a9_0x81636f;return core_2[_0x2db37d(0xf1)];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xf3),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x81636f(0xf8)](exports,'Logger',{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object[a9_0x81636f(0xf8)](exports,'Provide',{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a9_0x81636f(0xe5),{'enumerable':!![],'get':function(){var _0x356a46=a9_0x81636f;return core_2[_0x356a46(0xe5)];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xe9),{'enumerable':!![],'get':function(){var _0x4cdc6a=a9_0x81636f;return core_2[_0x4cdc6a(0xe9)];}}),Object['defineProperty'](exports,a9_0x81636f(0xf5),{'enumerable':!![],'get':function(){var _0x2739d6=a9_0x81636f;return core_2[_0x2739d6(0xf5)];}}),Object[a9_0x81636f(0xf8)](exports,a9_0x81636f(0xd2),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x81636f(0xe1)]=getAppsConfig_1[a9_0x81636f(0xe1)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x5c6d8a=a10_0x5ead;(function(_0x3d57a5,_0x1ff026){var _0x12cf77=a10_0x5ead,_0x552006=_0x3d57a5();while(!![]){try{var _0x508615=parseInt(_0x12cf77(0xa3))/0x1*(parseInt(_0x12cf77(0x8a))/0x2)+-parseInt(_0x12cf77(0xa2))/0x3*(parseInt(_0x12cf77(0x82))/0x4)+parseInt(_0x12cf77(0x77))/0x5*(-parseInt(_0x12cf77(0x88))/0x6)+parseInt(_0x12cf77(0x83))/0x7*(-parseInt(_0x12cf77(0x9e))/0x8)+parseInt(_0x12cf77(0xa0))/0x9*(parseInt(_0x12cf77(0x8b))/0xa)+parseInt(_0x12cf77(0x79))/0xb+parseInt(_0x12cf77(0x96))/0xc;if(_0x508615===_0x1ff026)break;else _0x552006['push'](_0x552006['shift']());}catch(_0x5c0bc8){_0x552006['push'](_0x552006['shift']());}}}(a10_0x42aa,0x516ae));var a10_0x5129f2=(function(){var _0x46b1d0=!![];return function(_0x17f222,_0x2cdd5e){var _0x1cf8bf=_0x46b1d0?function(){var _0x14fe72=a10_0x5ead;if(_0x2cdd5e){var _0x2a6d54=_0x2cdd5e[_0x14fe72(0xae)](_0x17f222,arguments);return _0x2cdd5e=null,_0x2a6d54;}}:function(){};return _0x46b1d0=![],_0x1cf8bf;};}()),a10_0x3d12c1=a10_0x5129f2(this,function(){var _0x190415=a10_0x5ead;return a10_0x3d12c1[_0x190415(0x76)]()[_0x190415(0x8f)](_0x190415(0xb7))['toString']()[_0x190415(0xaa)](a10_0x3d12c1)['search'](_0x190415(0xb7));});a10_0x3d12c1();'use strict';var __decorate=this&&this[a10_0x5c6d8a(0xb1)]||function(_0x235087,_0xc5da74,_0x5cccae,_0x2c8461){var _0x4634b1=a10_0x5c6d8a,_0x302f79=arguments[_0x4634b1(0xb8)],_0x1863d5=_0x302f79<0x3?_0xc5da74:_0x2c8461===null?_0x2c8461=Object[_0x4634b1(0x8d)](_0xc5da74,_0x5cccae):_0x2c8461,_0x1556a6;if(typeof Reflect===_0x4634b1(0x9a)&&typeof Reflect[_0x4634b1(0xb4)]===_0x4634b1(0xb5))_0x1863d5=Reflect[_0x4634b1(0xb4)](_0x235087,_0xc5da74,_0x5cccae,_0x2c8461);else{for(var _0x3a9726=_0x235087[_0x4634b1(0xb8)]-0x1;_0x3a9726>=0x0;_0x3a9726--)if(_0x1556a6=_0x235087[_0x3a9726])_0x1863d5=(_0x302f79<0x3?_0x1556a6(_0x1863d5):_0x302f79>0x3?_0x1556a6(_0xc5da74,_0x5cccae,_0x1863d5):_0x1556a6(_0xc5da74,_0x5cccae))||_0x1863d5;}return _0x302f79>0x3&&_0x1863d5&&Object['defineProperty'](_0xc5da74,_0x5cccae,_0x1863d5),_0x1863d5;},__metadata=this&&this[a10_0x5c6d8a(0x7c)]||function(_0x88644a,_0x43914b){var _0x42cfa6=a10_0x5c6d8a;if(typeof Reflect==='object'&&typeof Reflect[_0x42cfa6(0x7b)]===_0x42cfa6(0xb5))return Reflect['metadata'](_0x88644a,_0x43914b);};Object[a10_0x5c6d8a(0x78)](exports,a10_0x5c6d8a(0xb6),{'value':!![]}),exports['ApiService']=void 0x0;function a10_0x5ead(_0x2ccaa9,_0x41813c){var _0x29c793=a10_0x42aa();return a10_0x5ead=function(_0x3d12c1,_0x5129f2){_0x3d12c1=_0x3d12c1-0x75;var _0x42aaba=_0x29c793[_0x3d12c1];return _0x42aaba;},a10_0x5ead(_0x2ccaa9,_0x41813c);}function a10_0x42aa(){var _0x14b73f=['ApiService','Provide','getcheck','TIMEOUT_LOGINTIME','1710968dWkiBO','7cSITXa','ScopeEnum','TIMEOUT','signature','join','4614bcxRFT','checkcode','2aIyDcK','1511990jfWDol','secret','getOwnPropertyDescriptor','undefined','search','ApiError','Scope','请求超时,请重试或改善网络环境','token','logintimeout','config','1165884uDRGQV','devices','entries','timeout','object','password','checksign','toLowerCase','3332432DfthIG','HEADERS_SIGNATURE','27APueaV','abs','3QjwOHd','546089KlWsqY','now','HEADERS_DEVICE','substring','secret=','anncicapi','Singleton','constructor','device','@midwayjs/core','requesttime','apply','push','验证失败','__decorate','crypto-js','getsign','decorate','function','__esModule','(((.+)+)+)+$','length','padEnd','toString','3525ZXyStZ','defineProperty','6853924qiVtAp','MD5','metadata','__metadata','HEADERS_LACK'];a10_0x42aa=function(){return _0x14b73f;};return a10_0x42aa();}const crypto_js_1=require(a10_0x5c6d8a(0xb2)),core_1=require(a10_0x5c6d8a(0xac)),ApiError_1=require('../exception/ApiError');let ApiService=exports['ApiService']=class ApiService{['password'](_0x1de7eb){var _0x1d3429=a10_0x5c6d8a,_0x11b98d;return _0x1de7eb?(0x0,crypto_js_1[_0x1d3429(0x7a)])(''+_0x1de7eb+(0x0,crypto_js_1[_0x1d3429(0x7a)])((0x0,crypto_js_1['MD5'])(''+_0x1de7eb)['toString']()+(''+((_0x11b98d=this[_0x1d3429(0x95)])===null||_0x11b98d===void 0x0?void 0x0:_0x11b98d[_0x1d3429(0x9b)])))[_0x1d3429(0x76)]())[_0x1d3429(0x76)]():'';}[a10_0x5c6d8a(0x80)](_0xc07640,_0x4e88e4,_0x5bae5c=Date['now']()){var _0x3dd14c=a10_0x5c6d8a;return{'Token':_0xc07640,'Logintime':_0x5bae5c,'Checkcode':this[_0x3dd14c(0x89)](_0xc07640,_0x4e88e4,_0x5bae5c)};}[a10_0x5c6d8a(0xb3)](_0x308e1b={}){var _0x3ed530=a10_0x5c6d8a,_0x17ae85,_0x4843fb;const _0x529527=[],_0x4ef21f=Object['fromEntries'](Object[_0x3ed530(0x98)](_0x308e1b)['map'](_0x186c54=>[_0x186c54[0x0]['toLowerCase'](),_0x186c54[0x1]]));for(let _0xa7763b of['device',_0x3ed530(0xad),_0x3ed530(0x93),'logintime',_0x3ed530(0x89)]){if(typeof _0x4ef21f[_0xa7763b]==_0x3ed530(0x8e))throw new AnnError(ApiError_1[_0x3ed530(0x90)][_0x3ed530(0x7d)],{'message':_0x3ed530(0xb0)});_0x529527[_0x3ed530(0xaf)](_0xa7763b+'='+_0x4ef21f[_0xa7763b]);}_0x4ef21f['requesttime']&&((_0x17ae85=_0x4ef21f['requesttime'])===null||_0x17ae85===void 0x0?void 0x0:_0x17ae85[_0x3ed530(0xb8)])==0xa&&(_0x4ef21f[_0x3ed530(0xad)]=_0x4ef21f[_0x3ed530(0xad)]*0x3e8);if(this['config'][_0x3ed530(0x99)]&&parseInt((''+Date[_0x3ed530(0xa4)]())[_0x3ed530(0xa6)](0x0,0xd)[_0x3ed530(0x75)](0xd,'0'))-parseInt((''+Math[_0x3ed530(0xa1)](_0x4ef21f['requesttime']))[_0x3ed530(0xa6)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x3ed530(0x95)][_0x3ed530(0x99)]))throw new AnnError(ApiError_1[_0x3ed530(0x90)][_0x3ed530(0x85)],{'message':_0x3ed530(0x92),'requesttime':_0x4ef21f['requesttime'],'timestamp':Date['now']()});if((((_0x4843fb=this['config'][_0x3ed530(0x97)][_0x4ef21f[_0x3ed530(0xab)]])===null||_0x4843fb===void 0x0?void 0x0:_0x4843fb['logintimeout'])||0x0)>0x0&&Date['now']()-Math['abs'](_0x4ef21f['logintime'])>this['config'][_0x3ed530(0x97)][_0x4ef21f['device']][_0x3ed530(0x94)])throw new AnnError(ApiError_1['ApiError'][_0x3ed530(0x81)]);if(!this['config'][_0x3ed530(0x97)][_0x4ef21f[_0x3ed530(0xab)]]||!this[_0x3ed530(0x95)][_0x3ed530(0x97)][_0x4ef21f[_0x3ed530(0xab)]][_0x3ed530(0x8c)]||!this[_0x3ed530(0x95)][_0x3ed530(0x97)][_0x4ef21f[_0x3ed530(0xab)]]['checkcode'])throw new AnnError(ApiError_1[_0x3ed530(0x90)]['HEADERS_DEVICE']);if(_0x4ef21f[_0x3ed530(0x93)]&&_0x4ef21f[_0x3ed530(0x89)]!=this['checkcode'](_0x4ef21f['token'],_0x4ef21f[_0x3ed530(0xab)],_0x4ef21f['logintime']))throw new AnnError(ApiError_1[_0x3ed530(0x90)]['HEADERS_CHECKCODE']);return _0x529527[_0x3ed530(0xaf)](_0x3ed530(0xa7)+this['config'][_0x3ed530(0x97)][_0x4ef21f[_0x3ed530(0xab)]]['secret']),(0x0,crypto_js_1[_0x3ed530(0x7a)])(_0x529527['sort']()[_0x3ed530(0x87)](''))['toString']();}['checkcode'](_0x243eb0,_0x1e06b2,_0x3f5a08=Date[a10_0x5c6d8a(0xa4)]()){var _0x3eb55f=a10_0x5c6d8a,_0x5bf96f,_0xa4ec79,_0x57b8e5;if(!((_0x5bf96f=this[_0x3eb55f(0x95)])===null||_0x5bf96f===void 0x0?void 0x0:_0x5bf96f[_0x3eb55f(0x97)][_0x1e06b2])||!((_0x57b8e5=(_0xa4ec79=this[_0x3eb55f(0x95)])===null||_0xa4ec79===void 0x0?void 0x0:_0xa4ec79[_0x3eb55f(0x97)][_0x1e06b2])===null||_0x57b8e5===void 0x0?void 0x0:_0x57b8e5['checkcode']))throw new AnnError(ApiError_1[_0x3eb55f(0x90)][_0x3eb55f(0xa5)]);return(0x0,crypto_js_1['MD5'])(''+_0x243eb0+(0x0,crypto_js_1[_0x3eb55f(0x7a)])(''+_0x3f5a08+(''+this['config']['devices'][_0x1e06b2][_0x3eb55f(0x89)]))[_0x3eb55f(0x76)]())[_0x3eb55f(0x76)]();}[a10_0x5c6d8a(0x9c)](_0x5143c3={}){var _0x44b7c2=a10_0x5c6d8a;const _0x2dec4c=Object['fromEntries'](Object['entries'](_0x5143c3)['map'](_0x231d01=>[_0x231d01[0x0][_0x44b7c2(0x9d)](),_0x231d01[0x1]]));if(!(_0x2dec4c===null||_0x2dec4c===void 0x0?void 0x0:_0x2dec4c[_0x44b7c2(0x86)]))throw new AnnError(ApiError_1[_0x44b7c2(0x90)][_0x44b7c2(0x7d)],{'message':'验证失败'});if((_0x2dec4c===null||_0x2dec4c===void 0x0?void 0x0:_0x2dec4c[_0x44b7c2(0x86)])!=this['getsign'](_0x2dec4c))throw new AnnError(ApiError_1['ApiError'][_0x44b7c2(0x9f)],{'message':_0x44b7c2(0xb0)});return!![];}};__decorate([(0x0,core_1['Config'])(a10_0x5c6d8a(0xa8)),__metadata('design:type',Object)],ApiService['prototype'],'config',void 0x0),exports[a10_0x5c6d8a(0x7e)]=ApiService=__decorate([(0x0,core_1[a10_0x5c6d8a(0x7f)])(),(0x0,core_1[a10_0x5c6d8a(0x91)])(core_1[a10_0x5c6d8a(0x84)][a10_0x5c6d8a(0xa9)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11_0x1f0a(_0x583384,_0x27a6ec){const _0x336014=a11_0x3f7c();return a11_0x1f0a=function(_0x220947,_0x30b7ba){_0x220947=_0x220947-0xea;let _0x3f7c34=_0x336014[_0x220947];return _0x3f7c34;},a11_0x1f0a(_0x583384,_0x27a6ec);}const a11_0x1faf65=a11_0x1f0a;(function(_0x52c6a2,_0x4084c0){const _0x4ade09=a11_0x1f0a,_0x5a22e5=_0x52c6a2();while(!![]){try{const _0x1496fc=-parseInt(_0x4ade09(0x120))/0x1*(-parseInt(_0x4ade09(0xf2))/0x2)+parseInt(_0x4ade09(0x12a))/0x3*(parseInt(_0x4ade09(0xef))/0x4)+parseInt(_0x4ade09(0x124))/0x5*(parseInt(_0x4ade09(0x11a))/0x6)+-parseInt(_0x4ade09(0x136))/0x7+parseInt(_0x4ade09(0xf1))/0x8+-parseInt(_0x4ade09(0xf8))/0x9*(-parseInt(_0x4ade09(0x104))/0xa)+-parseInt(_0x4ade09(0x128))/0xb;if(_0x1496fc===_0x4084c0)break;else _0x5a22e5['push'](_0x5a22e5['shift']());}catch(_0x3544f3){_0x5a22e5['push'](_0x5a22e5['shift']());}}}(a11_0x3f7c,0x2fbcf));const a11_0x30b7ba=(function(){let _0x557e83=!![];return function(_0x46f3df,_0xec444f){const _0x59f9ef=_0x557e83?function(){const _0x3c41b9=a11_0x1f0a;if(_0xec444f){const _0x259a5b=_0xec444f[_0x3c41b9(0x137)](_0x46f3df,arguments);return _0xec444f=null,_0x259a5b;}}:function(){};return _0x557e83=![],_0x59f9ef;};}()),a11_0x220947=a11_0x30b7ba(this,function(){const _0x1368ce=a11_0x1f0a;return a11_0x220947[_0x1368ce(0x13e)]()[_0x1368ce(0x107)]('(((.+)+)+)+$')[_0x1368ce(0x13e)]()['constructor'](a11_0x220947)[_0x1368ce(0x107)](_0x1368ce(0x12d));});a11_0x220947();'use strict';var __decorate=this&&this['__decorate']||function(_0x4d6921,_0x59174d,_0x2d8d68,_0x224859){const _0x3a0772=a11_0x1f0a;var _0x3fb0cf=arguments[_0x3a0772(0x127)],_0x5ea262=_0x3fb0cf<0x3?_0x59174d:_0x224859===null?_0x224859=Object[_0x3a0772(0x125)](_0x59174d,_0x2d8d68):_0x224859,_0x597915;if(typeof Reflect===_0x3a0772(0xf7)&&typeof Reflect[_0x3a0772(0x126)]==='function')_0x5ea262=Reflect[_0x3a0772(0x126)](_0x4d6921,_0x59174d,_0x2d8d68,_0x224859);else{for(var _0x4a18eb=_0x4d6921[_0x3a0772(0x127)]-0x1;_0x4a18eb>=0x0;_0x4a18eb--)if(_0x597915=_0x4d6921[_0x4a18eb])_0x5ea262=(_0x3fb0cf<0x3?_0x597915(_0x5ea262):_0x3fb0cf>0x3?_0x597915(_0x59174d,_0x2d8d68,_0x5ea262):_0x597915(_0x59174d,_0x2d8d68))||_0x5ea262;}return _0x3fb0cf>0x3&&_0x5ea262&&Object[_0x3a0772(0x10d)](_0x59174d,_0x2d8d68,_0x5ea262),_0x5ea262;},__metadata=this&&this['__metadata']||function(_0x15d707,_0x44530f){const _0x19eab9=a11_0x1f0a;if(typeof Reflect===_0x19eab9(0xf7)&&typeof Reflect['metadata']===_0x19eab9(0x131))return Reflect[_0x19eab9(0x122)](_0x15d707,_0x44530f);},__param=this&&this[a11_0x1faf65(0xfa)]||function(_0x28ddd7,_0xd722e8){return function(_0xc41ce0,_0x3726bd){_0xd722e8(_0xc41ce0,_0x3726bd,_0x28ddd7);};};Object[a11_0x1faf65(0x10d)](exports,a11_0x1faf65(0x105),{'value':!![]}),exports[a11_0x1faf65(0x140)]=exports[a11_0x1faf65(0x139)]=void 0x0;const path_1=require(a11_0x1faf65(0x10e)),fs_1=require('fs'),core_1=require(a11_0x1faf65(0x135)),core_2=require(a11_0x1faf65(0x135)),core_3=require(a11_0x1faf65(0x135)),getRoutes_1=require(a11_0x1faf65(0xfc));let ApitestService=exports[a11_0x1faf65(0x139)]=class ApitestService{async[a11_0x1faf65(0x129)](_0x108e23){const _0x437f72=a11_0x1faf65,_0xa7168b=(0x0,getRoutes_1[_0x437f72(0x110)])(_0x108e23),_0x41aa53=[];for(let _0xc70dec in _0xa7168b){for(let _0x1dff1f in _0xa7168b[_0xc70dec][_0x437f72(0x116)]){let _0x30433e=_0xa7168b[_0xc70dec][_0x437f72(0x116)][_0x1dff1f],_0x10486d=[];for(let _0x8eb549 in _0x30433e[_0x437f72(0xf6)]){_0x10486d[_0x437f72(0xed)](_0x30433e['request'][_0x8eb549]);}_0x41aa53[_0x437f72(0xed)]({'title':_0xa7168b[_0xc70dec][_0x437f72(0x133)]+':'+_0x30433e[_0x437f72(0x133)],'prefix':_0xa7168b[_0xc70dec][_0x437f72(0x12e)],'router':_0x30433e[_0x437f72(0x132)],'method':_0x30433e[_0x437f72(0x117)],'describe':_0x30433e['description']||'','filepath':_0xa7168b[_0xc70dec]['filepath']||'','request':_0x10486d});}}const _0x3c302a=(0x0,path_1[_0x437f72(0x103)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x437f72(0x10c)])(_0x3c302a,{'encoding':_0x437f72(0x11c)})['replace'](/__res__/g,_0x437f72(0x12b))[_0x437f72(0x101)](_0x437f72(0x13c),JSON[_0x437f72(0x118)](_0x41aa53))[_0x437f72(0x101)](_0x437f72(0x10a),JSON[_0x437f72(0x118)](this[_0x437f72(0x138)][_0x437f72(0xeb)]));}};__decorate([(0x0,core_3[a11_0x1faf65(0xf3)])(a11_0x1faf65(0x12c)),__metadata('design:type',Object)],ApitestService[a11_0x1faf65(0x13b)],'config',void 0x0),exports[a11_0x1faf65(0x139)]=ApitestService=__decorate([(0x0,core_2[a11_0x1faf65(0x13d)])(a11_0x1faf65(0x134)),(0x0,core_3[a11_0x1faf65(0xea)])(core_3[a11_0x1faf65(0xee)][a11_0x1faf65(0x11d)])],ApitestService);function a11_0x3f7c(){const _0x139f9b=['27lhzdUi','/apitest-:module','metadata','cache-control','5CZdGgz','getOwnPropertyDescriptor','decorate','length','4104837TJQugy','apidoc','3WPtjbY','/apiteststatic/','anncicapi','(((.+)+)+)+$','prefix','Inject','design:type','function','route','summary','apitest','@midwayjs/core','25725rNnZhM','apply','config','ApitestService','filepath','prototype','__apiList__','Provide','toString','public,\x20max-age=604800','ApitestStaticController','Scope','devices','MidwayEnvironmentService','push','ScopeEnum','264340fDlvRA','ctx','914064KonrFX','4586horITG','Config','/apiteststatic/*','Param','request','object','9wQKTfS','Request','__param','url','../helper/getRoutes','application/javascript;\x20charset=utf-8','design:paramtypes','existsSync','apiteststatic','replace','text/css;\x20charset=utf-8','join','1598040xVPuae','__esModule','/index.html','search','Get','content-type','__devices__','../../public/','readFileSync','defineProperty','path','Environment','getRoutes','extname','design:returntype','.css','module','/apitest','routes','method','stringify','set','1021914WIOXjB','Controller','utf-8','Singleton','apitesthtml','isDevelopmentEnvironment'];a11_0x3f7c=function(){return _0x139f9b;};return a11_0x3f7c();}let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async[a11_0x1faf65(0x11e)](){const _0x6ae29f=a11_0x1faf65;if(this[_0x6ae29f(0x134)]){const _0x52fc01={'module':![]};return this[_0x6ae29f(0x10f)][_0x6ae29f(0x11f)]()&&(_0x52fc01['filepath']=!![]),await this['ApitestService'][_0x6ae29f(0x129)](_0x52fc01);}return'';}async['apitestmodule'](_0x1ef568){const _0x2b99f1=a11_0x1faf65;if(this[_0x2b99f1(0x134)]){const _0x20e1ed={'module':_0x1ef568};return this[_0x2b99f1(0x10f)][_0x2b99f1(0x11f)]()&&(_0x20e1ed[_0x2b99f1(0x13a)]=!![]),await this['ApitestService'][_0x2b99f1(0x129)](_0x20e1ed);}return'';}async[a11_0x1faf65(0x100)](){const _0x189ad2=a11_0x1faf65;if((0x0,path_1[_0x189ad2(0x111)])(this[_0x189ad2(0xf0)][_0x189ad2(0xf6)][_0x189ad2(0xfb)])){var _0xf4ca47=(0x0,path_1[_0x189ad2(0x103)])(__dirname,_0x189ad2(0x10b)+this[_0x189ad2(0xf0)]['request'][_0x189ad2(0xfb)][_0x189ad2(0x101)](_0x189ad2(0x12b),'/'));if(_0xf4ca47['substring'](_0xf4ca47[_0x189ad2(0x127)]-0xb)!=_0x189ad2(0x106)){this['ctx']['set'](_0x189ad2(0x123),_0x189ad2(0x13f));if((0x0,path_1[_0x189ad2(0x111)])(this[_0x189ad2(0xf0)][_0x189ad2(0xf6)][_0x189ad2(0xfb)])=='.js')this[_0x189ad2(0xf0)][_0x189ad2(0x119)](_0x189ad2(0x109),_0x189ad2(0xfd));else(0x0,path_1[_0x189ad2(0x111)])(this[_0x189ad2(0xf0)][_0x189ad2(0xf6)][_0x189ad2(0xfb)])==_0x189ad2(0x113)&&this['ctx'][_0x189ad2(0x119)]('content-type',_0x189ad2(0x102));return(0x0,fs_1[_0x189ad2(0xff)])(_0xf4ca47)&&(0x0,fs_1[_0x189ad2(0x10c)])(_0xf4ca47,{'encoding':_0x189ad2(0x11c)});}}return'';}};__decorate([(0x0,core_3[a11_0x1faf65(0x12f)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x1faf65(0xf0),void 0x0),__decorate([(0x0,core_3[a11_0x1faf65(0x12f)])(),__metadata(a11_0x1faf65(0x130),core_1[a11_0x1faf65(0xec)])],ApitestStaticController[a11_0x1faf65(0x13b)],a11_0x1faf65(0x10f),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0x1faf65(0x130),ApitestService)],ApitestStaticController[a11_0x1faf65(0x13b)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a11_0x1faf65(0xf3)])('apitest'),__metadata(a11_0x1faf65(0x130),Boolean)],ApitestStaticController[a11_0x1faf65(0x13b)],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x1faf65(0xf3)])('anncicapi'),__metadata(a11_0x1faf65(0x130),Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2[a11_0x1faf65(0x108)])(a11_0x1faf65(0x115)),__metadata('design:type',Function),__metadata(a11_0x1faf65(0xfe),[]),__metadata(a11_0x1faf65(0x112),Promise)],ApitestStaticController[a11_0x1faf65(0x13b)],a11_0x1faf65(0x11e),null),__decorate([(0x0,core_2[a11_0x1faf65(0x108)])(a11_0x1faf65(0x121)),__param(0x0,(0x0,core_2[a11_0x1faf65(0xf5)])(a11_0x1faf65(0x114))),__metadata(a11_0x1faf65(0x130),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0x1faf65(0x112),Promise)],ApitestStaticController['prototype'],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x1faf65(0x108)])(a11_0x1faf65(0xf4)),__metadata(a11_0x1faf65(0x130),Function),__metadata(a11_0x1faf65(0xfe),[]),__metadata(a11_0x1faf65(0x112),Promise)],ApitestStaticController[a11_0x1faf65(0x13b)],a11_0x1faf65(0x100),null),exports[a11_0x1faf65(0x140)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x1faf65(0x11b)])('/'),(0x0,core_3[a11_0x1faf65(0xea)])(core_3['ScopeEnum'][a11_0x1faf65(0xf9)])],ApitestStaticController);
|
|
@@ -17,9 +17,9 @@ interface ExcelImportColumn {
|
|
|
17
17
|
}
|
|
18
18
|
export declare class ExcelService {
|
|
19
19
|
protected app: IMidwayApplication;
|
|
20
|
-
parse(filepath: string, column: ExcelImportColumn[], sheets?: Array<number | string>): Promise<{
|
|
20
|
+
parse(filepath: string, column: ExcelImportColumn[], sheets?: Array<number | string>): Promise<Array<{
|
|
21
21
|
[key: string]: any;
|
|
22
|
-
}
|
|
22
|
+
}>>;
|
|
23
23
|
export(filename: string, column: Array<ExcelColumn>, tmpEntitys: Array<{
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}>, savepath?: string, beforSave?: (options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0xc2161a=a12_0x572d;function a12_0x5d8a(){const _0x4d5a43=['54176ObrHAf','ExcelService','mkdirSync','export','columns','endsWith','7shPAwE','value','col','readFile','handler','header','.xlsx','__esModule','keys','4804316cbaydH','eachCell','startsWith','exceljs','getColumn','koa-send','filter','rowCount','205liBgXj','3404502eaGXuA','(((.+)+)+)+$','addRow','metadata','App','770102eVLtTL','ScopeEnum','toString','isNumber','4089320bKUUsM','log','values','decorate','function','app','Workbook','constructor','key','defineProperty','worksheets','Provide','@midwayjs/core','xlsx','push','6TAywqf','object','getCell','Scope','\x20is\x20read\x20fail','set','/public/xlsx/','model','getRow','apply','frozen','getAppDir','__metadata','Singleton','81qQQZKm','random','794534MVbpOv','writeFile','688488xuzdEg','format','getWorksheet','substring','get','length','replace'];a12_0x5d8a=function(){return _0x4d5a43;};return a12_0x5d8a();}(function(_0x1fa53e,_0x497b53){const _0x6849e0=a12_0x572d,_0x117a61=_0x1fa53e();while(!![]){try{const _0x49405c=-parseInt(_0x6849e0(0x112))/0x1+-parseInt(_0x6849e0(0x135))/0x2*(-parseInt(_0x6849e0(0x125))/0x3)+parseInt(_0x6849e0(0x13e))/0x4*(parseInt(_0x6849e0(0x10c))/0x5)+-parseInt(_0x6849e0(0x10d))/0x6*(-parseInt(_0x6849e0(0x144))/0x7)+parseInt(_0x6849e0(0x137))/0x8*(-parseInt(_0x6849e0(0x133))/0x9)+-parseInt(_0x6849e0(0x116))/0xa+parseInt(_0x6849e0(0x14d))/0xb;if(_0x49405c===_0x497b53)break;else _0x117a61['push'](_0x117a61['shift']());}catch(_0x28bf50){_0x117a61['push'](_0x117a61['shift']());}}}(a12_0x5d8a,0x61c2c));const a12_0x4d0a23=(function(){let _0xdbd4a2=!![];return function(_0x7b4d37,_0x167fee){const _0x163e91=_0xdbd4a2?function(){const _0x2f34aa=a12_0x572d;if(_0x167fee){const _0x546f80=_0x167fee[_0x2f34aa(0x12e)](_0x7b4d37,arguments);return _0x167fee=null,_0x546f80;}}:function(){};return _0xdbd4a2=![],_0x163e91;};}()),a12_0x34713e=a12_0x4d0a23(this,function(){const _0x54c5a8=a12_0x572d;return a12_0x34713e[_0x54c5a8(0x114)]()['search']('(((.+)+)+)+$')[_0x54c5a8(0x114)]()[_0x54c5a8(0x11d)](a12_0x34713e)['search'](_0x54c5a8(0x10e));});function a12_0x572d(_0x50f4a5,_0x1c8557){const _0x1683b0=a12_0x5d8a();return a12_0x572d=function(_0x34713e,_0x4d0a23){_0x34713e=_0x34713e-0x105;let _0x5d8abc=_0x1683b0[_0x34713e];return _0x5d8abc;},a12_0x572d(_0x50f4a5,_0x1c8557);}a12_0x34713e();'use strict';var __decorate=this&&this['__decorate']||function(_0x3e8c70,_0x40e7e6,_0x7433a4,_0x4d4a3){const _0x2eb56a=a12_0x572d;var _0x4bc180=arguments[_0x2eb56a(0x13c)],_0x468331=_0x4bc180<0x3?_0x40e7e6:_0x4d4a3===null?_0x4d4a3=Object['getOwnPropertyDescriptor'](_0x40e7e6,_0x7433a4):_0x4d4a3,_0x2b9095;if(typeof Reflect===_0x2eb56a(0x126)&&typeof Reflect[_0x2eb56a(0x119)]===_0x2eb56a(0x11a))_0x468331=Reflect[_0x2eb56a(0x119)](_0x3e8c70,_0x40e7e6,_0x7433a4,_0x4d4a3);else{for(var _0x17cf7a=_0x3e8c70['length']-0x1;_0x17cf7a>=0x0;_0x17cf7a--)if(_0x2b9095=_0x3e8c70[_0x17cf7a])_0x468331=(_0x4bc180<0x3?_0x2b9095(_0x468331):_0x4bc180>0x3?_0x2b9095(_0x40e7e6,_0x7433a4,_0x468331):_0x2b9095(_0x40e7e6,_0x7433a4))||_0x468331;}return _0x4bc180>0x3&&_0x468331&&Object[_0x2eb56a(0x11f)](_0x40e7e6,_0x7433a4,_0x468331),_0x468331;},__metadata=this&&this[a12_0xc2161a(0x131)]||function(_0x2872be,_0x110d0c){const _0xa74c9f=a12_0xc2161a;if(typeof Reflect===_0xa74c9f(0x126)&&typeof Reflect[_0xa74c9f(0x110)]===_0xa74c9f(0x11a))return Reflect[_0xa74c9f(0x110)](_0x2872be,_0x110d0c);};Object[a12_0xc2161a(0x11f)](exports,a12_0xc2161a(0x14b),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0xc2161a(0x107)),koasend=require(a12_0xc2161a(0x109)),core_1=require(a12_0xc2161a(0x122));let ExcelService=exports['ExcelService']=class ExcelService{async['parse'](_0x3a5824,_0x181105,_0x2a8f76=[0x0]){const _0x4c58cf=a12_0xc2161a;var _0x5650cf,_0x54c590;const _0x5dd2c1=new exceljs[(_0x4c58cf(0x11c))](),_0x3fa5a0=[];let _0x22692f=_0x3a5824[_0x4c58cf(0x13d)](/(\\|\/)/g,'/')[_0x4c58cf(0x13d)](/\/{2,}/g,'/');!(_0x22692f===null||_0x22692f===void 0x0?void 0x0:_0x22692f[_0x4c58cf(0x106)]('/'))&&(_0x22692f=this[_0x4c58cf(0x11b)][_0x4c58cf(0x130)]()+'/'+_0x22692f);try{await _0x5dd2c1[_0x4c58cf(0x123)][_0x4c58cf(0x147)](_0x22692f);}catch(_0x5b4899){return console[_0x4c58cf(0x117)]('Api\x20Excel\x20Error:\x20'+_0x22692f+_0x4c58cf(0x129)),_0x3fa5a0;}for(const _0x597960 of _0x2a8f76){const _0x156716=lodash[_0x4c58cf(0x115)](_0x597960)?((_0x5650cf=_0x5dd2c1[_0x4c58cf(0x120)])===null||_0x5650cf===void 0x0?void 0x0:_0x5650cf[_0x597960])||undefined:_0x5dd2c1[_0x4c58cf(0x139)](_0x597960);if(_0x156716){var _0x53821e=0x1;const _0x141443=_0x156716[_0x4c58cf(0x12d)](0x1),_0x4f7de9=await new Promise(_0x126cb1=>{const _0x101656=_0x4c58cf,_0x16dd94={};_0x141443[_0x101656(0x105)]((_0x384b41,_0x2f5058)=>{const _0x23bc2f=_0x101656;for(const _0x41ec9f of _0x181105){if(_0x384b41[_0x23bc2f(0x145)]==_0x41ec9f[_0x23bc2f(0x149)])_0x53821e=0x2,_0x16dd94[_0x41ec9f['key']]={'header':_0x384b41['col'],'handler':_0x41ec9f[_0x23bc2f(0x148)]};else{if(!_0x16dd94[_0x41ec9f[_0x23bc2f(0x11e)]])try{const _0x4a2a49=_0x141443&&_0x141443[_0x23bc2f(0x127)](_0x41ec9f[_0x23bc2f(0x149)]);_0x4a2a49&&(_0x16dd94[_0x41ec9f[_0x23bc2f(0x11e)]]={'header':_0x4a2a49[_0x23bc2f(0x146)],'handler':_0x41ec9f[_0x23bc2f(0x148)]});}catch{}}}_0x141443['cellCount']==_0x2f5058&&_0x126cb1(_0x16dd94);});});_0xdaca36:for(const _0x1ba193 of _0x156716['findRows'](_0x53821e,_0x156716[_0x4c58cf(0x10b)])){if(typeof(_0x1ba193===null||_0x1ba193===void 0x0?void 0x0:_0x1ba193[_0x4c58cf(0x127)])!='function')continue _0xdaca36;const _0x21f00a={};_0x451b51:for(const _0xe87874 in _0x4f7de9){if(_0x4f7de9[_0xe87874][_0x4c58cf(0x149)]){const _0x5d3376=_0x1ba193[_0x4c58cf(0x127)](_0x4f7de9[_0xe87874][_0x4c58cf(0x149)]);if(!_0x5d3376)continue _0x451b51;try{_0x5d3376[_0x4c58cf(0x114)]();}catch(_0x5ac86a){_0x5d3376[_0x4c58cf(0x114)]=()=>{const _0x41c3c5=_0x4c58cf;var _0x409412;return''+(((_0x409412=_0x5d3376===null||_0x5d3376===void 0x0?void 0x0:_0x5d3376[_0x41c3c5(0x12c)])===null||_0x409412===void 0x0?void 0x0:_0x409412[_0x41c3c5(0x145)])||'');};}typeof((_0x54c590=_0x4f7de9[_0xe87874])===null||_0x54c590===void 0x0?void 0x0:_0x54c590['handler'])=='function'?_0x21f00a[_0xe87874]=await _0x4f7de9[_0xe87874]['handler'](lodash[_0x4c58cf(0x12a)]({},_0xe87874,(_0x5d3376===null||_0x5d3376===void 0x0?void 0x0:_0x5d3376['toString']())||''),_0x5d3376[_0x4c58cf(0x12c)]):_0x21f00a[_0xe87874]=(_0x5d3376===null||_0x5d3376===void 0x0?void 0x0:_0x5d3376[_0x4c58cf(0x114)]())||'';}}Object[_0x4c58cf(0x14c)](_0x21f00a)[_0x4c58cf(0x13c)]>0x0&&Object[_0x4c58cf(0x118)](_0x21f00a)[_0x4c58cf(0x10a)](_0x13605a=>_0x13605a!='')['length']>0x0&&_0x3fa5a0['push'](_0x21f00a);}}}return _0x3fa5a0;}async[a12_0xc2161a(0x141)](_0x478922,_0x568c9d,_0x2b5440,_0x14b1d1,_0x3f98c0){const _0x5698bd=a12_0xc2161a;var _0x44ac64,_0x583dd3;const _0x46f797=new exceljs[(_0x5698bd(0x11c))](),_0x4c2a50={},_0x1496bc=[],_0x5b8a26=_0x46f797['addWorksheet']('Sheet\x201',{'views':[{'state':_0x5698bd(0x12f),'ySplit':0x1}]});for(const _0x15fccc in _0x568c9d){_0x4c2a50[_0x568c9d[_0x15fccc][_0x5698bd(0x11e)]]=_0x568c9d[_0x15fccc][_0x5698bd(0x149)],_0x1496bc[_0x5698bd(0x124)]({'header':_0x568c9d[_0x15fccc][_0x5698bd(0x149)],'key':(_0x44ac64=_0x568c9d[_0x15fccc])===null||_0x44ac64===void 0x0?void 0x0:_0x44ac64[_0x5698bd(0x11e)][_0x5698bd(0x13d)](/\./g,'_')});}_0x5b8a26[_0x5698bd(0x142)]=_0x1496bc;for(const _0x589447 in _0x2b5440){const _0x3412d5=_0x2b5440[_0x589447],_0x3ba4b2=_0x5b8a26[_0x5698bd(0x10f)]({});for(let _0x354724 in _0x568c9d){const _0x30061a=_0x568c9d[_0x354724][_0x5698bd(0x11e)][_0x5698bd(0x13d)](/\./g,'_'),_0x1a9c84=_0x5b8a26[_0x5698bd(0x108)](_0x30061a),_0x511563=_0x3ba4b2===null||_0x3ba4b2===void 0x0?void 0x0:_0x3ba4b2[_0x5698bd(0x127)](_0x30061a);typeof((_0x583dd3=_0x568c9d[_0x354724])===null||_0x583dd3===void 0x0?void 0x0:_0x583dd3['handler'])==_0x5698bd(0x11a)?_0x511563['value']=await _0x568c9d[_0x354724][_0x5698bd(0x148)](_0x3412d5,{'row':_0x3ba4b2,'col':_0x1a9c84,'cell':_0x511563,'sheet':_0x5b8a26})||'':_0x511563[_0x5698bd(0x145)]=lodash[_0x5698bd(0x13b)](_0x3412d5,_0x568c9d[_0x354724][_0x5698bd(0x11e)],'');}}typeof _0x3f98c0==_0x5698bd(0x11a)&&await _0x3f98c0({'workbook':_0x46f797,'worksheet':_0x5b8a26});let _0x5f5954='';const _0x447d5d=_0x478922+'-'+lodash[_0x5698bd(0x134)](0x186a0,0xf423f)+_0x5698bd(0x14a);if(_0x14b1d1&&_0x14b1d1[_0x5698bd(0x106)]('/'))_0x5f5954=''+_0x14b1d1;else _0x14b1d1&&!_0x14b1d1[_0x5698bd(0x106)]('/')&&!_0x14b1d1[_0x5698bd(0x106)]('\x5c')?_0x5f5954=this[_0x5698bd(0x11b)]['getAppDir']()+'/'+_0x14b1d1:_0x5f5954=this[_0x5698bd(0x11b)][_0x5698bd(0x130)]()+_0x5698bd(0x12b)+dayjs()[_0x5698bd(0x138)]('YYYY/MM/DD');return(_0x5f5954[_0x5698bd(0x143)]('/')||_0x5f5954['endsWith']('\x5c'))&&(_0x5f5954=_0x5f5954[_0x5698bd(0x13a)](0x0,_0x5f5954['length']-0x1)),_0x5f5954=_0x5f5954[_0x5698bd(0x13d)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0x5f5954)&&fs[_0x5698bd(0x140)](_0x5f5954,{'recursive':!![]}),await _0x46f797['xlsx'][_0x5698bd(0x136)]((_0x5f5954+'/'+_0x447d5d)[_0x5698bd(0x13d)](/(\\|\/)/g,'/')[_0x5698bd(0x13d)](/\/{2,}/g,'/')),{'filename':_0x447d5d,'filepath':(_0x5f5954['substring']((''+this['app'][_0x5698bd(0x130)]())[_0x5698bd(0x13c)])+'/'+_0x447d5d)['replace'](/(\\|\/)/g,'/')[_0x5698bd(0x13d)](/\/{2,}/g,'/')};}async['download'](_0x9162da,_0x35af3b){return await koasend(_0x9162da,''+_0x35af3b);}};__decorate([(0x0,core_1[a12_0xc2161a(0x111)])(),__metadata('design:type',Object)],ExcelService['prototype'],a12_0xc2161a(0x11b),void 0x0),exports[a12_0xc2161a(0x13f)]=ExcelService=__decorate([(0x0,core_1[a12_0xc2161a(0x121)])(),(0x0,core_1[a12_0xc2161a(0x128)])(core_1[a12_0xc2161a(0x113)][a12_0xc2161a(0x132)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x2c1933=a13_0x55d1;function a13_0x3579(){var _0x39453e=['anncic-api:apps:config','search','constructor','377421DfTtOe','AppsConfigTmp','63bLvGcC','96QbNDPj','11066eAhTMW','1869912ZyBQsy','ACTION_ROUTE_KEY','anncic-api:action:route','74270NZnMWL','apply','APPSCONFIG_KEY','(((.+)+)+)+$','69110YKBiBt','ACTION_KEY','toString','423QvvACn','32VxvwFv','57985gCNaaZ','__esModule','307788RcDham','defineProperty'];a13_0x3579=function(){return _0x39453e;};return a13_0x3579();}(function(_0x39b07c,_0x3f9a26){var _0x26ea1a=a13_0x55d1,_0x20e9ee=_0x39b07c();while(!![]){try{var _0xf30d2c=-parseInt(_0x26ea1a(0x15d))/0x1+parseInt(_0x26ea1a(0x14e))/0x2*(parseInt(_0x26ea1a(0x14c))/0x3)+parseInt(_0x26ea1a(0x14d))/0x4*(-parseInt(_0x26ea1a(0x15b))/0x5)+parseInt(_0x26ea1a(0x14f))/0x6+-parseInt(_0x26ea1a(0x152))/0x7*(-parseInt(_0x26ea1a(0x15a))/0x8)+parseInt(_0x26ea1a(0x159))/0x9*(parseInt(_0x26ea1a(0x156))/0xa)+-parseInt(_0x26ea1a(0x162))/0xb;if(_0xf30d2c===_0x3f9a26)break;else _0x20e9ee['push'](_0x20e9ee['shift']());}catch(_0x27c937){_0x20e9ee['push'](_0x20e9ee['shift']());}}}(a13_0x3579,0x2aa53));function a13_0x55d1(_0x1a11ea,_0x69ef64){var _0x1d463f=a13_0x3579();return a13_0x55d1=function(_0x472598,_0x1cfd92){_0x472598=_0x472598-0x14b;var _0x35798c=_0x1d463f[_0x472598];return _0x35798c;},a13_0x55d1(_0x1a11ea,_0x69ef64);}var a13_0x1cfd92=(function(){var _0x29a515=!![];return function(_0x66badb,_0xfc3a1f){var _0x145eb1=_0x29a515?function(){var _0x39e516=a13_0x55d1;if(_0xfc3a1f){var _0x4ae5c9=_0xfc3a1f[_0x39e516(0x153)](_0x66badb,arguments);return _0xfc3a1f=null,_0x4ae5c9;}}:function(){};return _0x29a515=![],_0x145eb1;};}()),a13_0x472598=a13_0x1cfd92(this,function(){var _0x2e632d=a13_0x55d1;return a13_0x472598[_0x2e632d(0x158)]()[_0x2e632d(0x160)](_0x2e632d(0x155))[_0x2e632d(0x158)]()[_0x2e632d(0x161)](a13_0x472598)[_0x2e632d(0x160)]('(((.+)+)+)+$');});a13_0x472598();'use strict';Object[a13_0x2c1933(0x15e)](exports,a13_0x2c1933(0x15c),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x2c1933(0x154)]=exports[a13_0x2c1933(0x150)]=exports[a13_0x2c1933(0x157)]=void 0x0,exports[a13_0x2c1933(0x157)]='anncic-api:action',exports[a13_0x2c1933(0x150)]=a13_0x2c1933(0x151),exports[a13_0x2c1933(0x154)]=a13_0x2c1933(0x15f);class AppsConfigTmp{}exports[a13_0x2c1933(0x14b)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x5cef8d=a14_0x4730;(function(_0x323a54,_0x218a1f){var _0x2d33be=a14_0x4730,_0x15ee0e=_0x323a54();while(!![]){try{var _0x33c306=parseInt(_0x2d33be(0x1da))/0x1*(-parseInt(_0x2d33be(0x1e3))/0x2)+-parseInt(_0x2d33be(0x1ec))/0x3*(-parseInt(_0x2d33be(0x201))/0x4)+-parseInt(_0x2d33be(0x1dd))/0x5+parseInt(_0x2d33be(0x1f6))/0x6+-parseInt(_0x2d33be(0x1fd))/0x7*(-parseInt(_0x2d33be(0x203))/0x8)+-parseInt(_0x2d33be(0x202))/0x9*(-parseInt(_0x2d33be(0x1e2))/0xa)+-parseInt(_0x2d33be(0x1f3))/0xb*(parseInt(_0x2d33be(0x1e9))/0xc);if(_0x33c306===_0x218a1f)break;else _0x15ee0e['push'](_0x15ee0e['shift']());}catch(_0x678605){_0x15ee0e['push'](_0x15ee0e['shift']());}}}(a14_0x3eb5,0xd0fe6));var a14_0x954f93=(function(){var _0x313588=!![];return function(_0xc9ddb3,_0x40fb1a){var _0x3e3ab8=_0x313588?function(){if(_0x40fb1a){var _0x352bbd=_0x40fb1a['apply'](_0xc9ddb3,arguments);return _0x40fb1a=null,_0x352bbd;}}:function(){};return _0x313588=![],_0x3e3ab8;};}()),a14_0x58eea7=a14_0x954f93(this,function(){var _0xb90274=a14_0x4730;return a14_0x58eea7[_0xb90274(0x1f0)]()['search'](_0xb90274(0x1e5))[_0xb90274(0x1f0)]()[_0xb90274(0x1fe)](a14_0x58eea7)['search'](_0xb90274(0x1e5));});a14_0x58eea7();function a14_0x4730(_0x48a113,_0x5851a5){var _0x5a1db6=a14_0x3eb5();return a14_0x4730=function(_0x58eea7,_0x954f93){_0x58eea7=_0x58eea7-0x1da;var _0x3eb536=_0x5a1db6[_0x58eea7];return _0x3eb536;},a14_0x4730(_0x48a113,_0x5851a5);}'use strict';var __decorate=this&&this['__decorate']||function(_0x38d304,_0xb57b74,_0x3ce2af,_0x465ecb){var _0x3a477f=a14_0x4730,_0x1a6af3=arguments[_0x3a477f(0x1fb)],_0x460244=_0x1a6af3<0x3?_0xb57b74:_0x465ecb===null?_0x465ecb=Object['getOwnPropertyDescriptor'](_0xb57b74,_0x3ce2af):_0x465ecb,_0x13f325;if(typeof Reflect===_0x3a477f(0x1df)&&typeof Reflect[_0x3a477f(0x1fa)]==='function')_0x460244=Reflect[_0x3a477f(0x1fa)](_0x38d304,_0xb57b74,_0x3ce2af,_0x465ecb);else{for(var _0x516ef2=_0x38d304['length']-0x1;_0x516ef2>=0x0;_0x516ef2--)if(_0x13f325=_0x38d304[_0x516ef2])_0x460244=(_0x1a6af3<0x3?_0x13f325(_0x460244):_0x1a6af3>0x3?_0x13f325(_0xb57b74,_0x3ce2af,_0x460244):_0x13f325(_0xb57b74,_0x3ce2af))||_0x460244;}return _0x1a6af3>0x3&&_0x460244&&Object[_0x3a477f(0x1eb)](_0xb57b74,_0x3ce2af,_0x460244),_0x460244;},__metadata=this&&this[a14_0x5cef8d(0x1e8)]||function(_0x297c64,_0x4f01e5){var _0x5971c6=a14_0x5cef8d;if(typeof Reflect===_0x5971c6(0x1df)&&typeof Reflect[_0x5971c6(0x1e6)]===_0x5971c6(0x1f5))return Reflect[_0x5971c6(0x1e6)](_0x297c64,_0x4f01e5);};Object[a14_0x5cef8d(0x1eb)](exports,a14_0x5cef8d(0x1fc),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a14_0x5cef8d(0x1ee));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0x5cef8d(0x1e1)])('分页',validator_1[a14_0x5cef8d(0x1dc)][a14_0x5cef8d(0x1f8)]()[a14_0x5cef8d(0x1f1)]()[a14_0x5cef8d(0x1e7)](0x1),a14_0x5cef8d(0x1e0)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0x5cef8d(0x1f2),void 0x0),__decorate([(0x0,validator_1[a14_0x5cef8d(0x1e1)])(a14_0x5cef8d(0x1ef),validator_1['RuleType']['number']()['integer']()['min'](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x5cef8d(0x1e4)],a14_0x5cef8d(0x1de),void 0x0),__decorate([(0x0,validator_1[a14_0x5cef8d(0x1e1)])(a14_0x5cef8d(0x1db),validator_1['RuleType'][a14_0x5cef8d(0x1ff)]()[a14_0x5cef8d(0x1f7)]()),__metadata(a14_0x5cef8d(0x200),String)],PageDTO[a14_0x5cef8d(0x1e4)],a14_0x5cef8d(0x1ea),void 0x0),__decorate([(0x0,validator_1[a14_0x5cef8d(0x1e1)])('是否倒序',validator_1[a14_0x5cef8d(0x1dc)][a14_0x5cef8d(0x1f8)]()['integer']()[a14_0x5cef8d(0x1f9)](0x0,0x1),a14_0x5cef8d(0x1ed)),__metadata(a14_0x5cef8d(0x200),Number)],PageDTO[a14_0x5cef8d(0x1e4)],a14_0x5cef8d(0x1f4),void 0x0);function a14_0x3eb5(){var _0x4f0b64=['第一页为1,第二页为2','Rule','6190fKoWmB','388AtFJOe','prototype','(((.+)+)+)+$','metadata','min','__metadata','91956RfTmaL','_order','defineProperty','4971kaVGSo','1:是;0:否','@anncic-api/validator','分页数量','toString','integer','_page','1738CeEZcz','_isreverse','function','9715134fYvzga','trim','number','valid','decorate','length','__esModule','20776GNqotO','constructor','string','design:type','2972CWYmYX','19638SajZjH','1120XyfkFi','5217AyDdwA','排序方式','RuleType','7688140PvYzWH','_size','object'];a14_0x3eb5=function(){return _0x4f0b64;};return a14_0x3eb5();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x3c5d89=a15_0x5f11;(function(_0x3950a4,_0x206f08){var _0x42a1b3=a15_0x5f11,_0x6ec8d0=_0x3950a4();while(!![]){try{var _0x14c0ca=-parseInt(_0x42a1b3(0x1dd))/0x1+parseInt(_0x42a1b3(0x1d9))/0x2+-parseInt(_0x42a1b3(0x1de))/0x3+parseInt(_0x42a1b3(0x1e2))/0x4*(parseInt(_0x42a1b3(0x1e1))/0x5)+parseInt(_0x42a1b3(0x1da))/0x6+-parseInt(_0x42a1b3(0x1d4))/0x7+parseInt(_0x42a1b3(0x1d2))/0x8*(parseInt(_0x42a1b3(0x1e3))/0x9);if(_0x14c0ca===_0x206f08)break;else _0x6ec8d0['push'](_0x6ec8d0['shift']());}catch(_0x3969e8){_0x6ec8d0['push'](_0x6ec8d0['shift']());}}}(a15_0x4486,0x2492b));function a15_0x4486(){var _0x43cb6d=['1588OieWRV','27OWchHL','234832MxyymR','__esModule','160349sIbQeM','search','anncic-api:intercept','defineProperty','(((.+)+)+)+$','37058AzFRCn','1652316bmJLWH','InterceptTargetTmp','INTERCEPT_KEY','229219yFXBOn','510633ePfhTy','toString','apply','2395BknQbk'];a15_0x4486=function(){return _0x43cb6d;};return a15_0x4486();}function a15_0x5f11(_0x342aa4,_0x171f9b){var _0x5e7137=a15_0x4486();return a15_0x5f11=function(_0x106a00,_0x167e1e){_0x106a00=_0x106a00-0x1d2;var _0x448634=_0x5e7137[_0x106a00];return _0x448634;},a15_0x5f11(_0x342aa4,_0x171f9b);}var a15_0x167e1e=(function(){var _0x4544d7=!![];return function(_0x47fdd4,_0x50a74d){var _0x5eda89=_0x4544d7?function(){var _0x3018be=a15_0x5f11;if(_0x50a74d){var _0x39c39b=_0x50a74d[_0x3018be(0x1e0)](_0x47fdd4,arguments);return _0x50a74d=null,_0x39c39b;}}:function(){};return _0x4544d7=![],_0x5eda89;};}()),a15_0x106a00=a15_0x167e1e(this,function(){var _0x5e2e09=a15_0x5f11;return a15_0x106a00['toString']()[_0x5e2e09(0x1d5)](_0x5e2e09(0x1d8))[_0x5e2e09(0x1df)]()['constructor'](a15_0x106a00)[_0x5e2e09(0x1d5)](_0x5e2e09(0x1d8));});a15_0x106a00();'use strict';Object[a15_0x3c5d89(0x1d7)](exports,a15_0x3c5d89(0x1d3),{'value':!![]}),exports[a15_0x3c5d89(0x1db)]=exports[a15_0x3c5d89(0x1dc)]=void 0x0,exports[a15_0x3c5d89(0x1dc)]=a15_0x3c5d89(0x1d6);class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.29",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.2.
|
|
21
|
-
"@anncic-api/core": "^3.2.
|
|
22
|
-
"@anncic-api/event": "^3.2.
|
|
23
|
-
"@anncic-api/typeorm": "^3.2.
|
|
24
|
-
"@anncic-api/validator": "^3.2.
|
|
20
|
+
"@anncic-api/cache": "^3.2.29",
|
|
21
|
+
"@anncic-api/core": "^3.2.29",
|
|
22
|
+
"@anncic-api/event": "^3.2.29",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.29",
|
|
24
|
+
"@anncic-api/validator": "^3.2.29",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.2.
|
|
29
|
+
"anncic-apihelper": "^3.2.29",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c2dcc46b1604bd7be0268a0d67136c4633c39b57"
|
|
39
39
|
}
|