anncic-api 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x584b(){var _0x5b7fb5=['488SUjIvQ','6590VvKfPk','313ftglnx','defineProperty','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','15dyqiQn','103166vwaQiU','13603550VPINBD','name','4003443DiMkQM','__esModule','5152020EBenRq','default','/runtime/.upload','1214058uifyRR','3123255VVulOS'];a0_0x584b=function(){return _0x5b7fb5;};return a0_0x584b();}var a0_0x199977=a0_0x497a;(function(_0x34c917,_0x5bedcb){var _0x4bfd3c=a0_0x497a,_0x3dcbd8=_0x34c917();while(!![]){try{var _0x5d1604=-parseInt(_0x4bfd3c(0x172))/0x1*(parseInt(_0x4bfd3c(0x171))/0x2)+parseInt(_0x4bfd3c(0x16f))/0x3+parseInt(_0x4bfd3c(0x16b))/0x4+parseInt(_0x4bfd3c(0x165))/0x5*(-parseInt(_0x4bfd3c(0x16e))/0x6)+-parseInt(_0x4bfd3c(0x166))/0x7*(parseInt(_0x4bfd3c(0x170))/0x8)+-parseInt(_0x4bfd3c(0x169))/0x9+parseInt(_0x4bfd3c(0x167))/0xa;if(_0x5d1604===_0x5bedcb)break;else _0x3dcbd8['push'](_0x3dcbd8['shift']());}catch(_0xe0093b){_0x3dcbd8['push'](_0x3dcbd8['shift']());}}}(a0_0x584b,0xacaa4));function a0_0x497a(_0x336d53,_0x579b35){var _0x584b9c=a0_0x584b();return a0_0x497a=function(_0x497a2b,_0x1e161a){_0x497a2b=_0x497a2b-0x163;var _0x386643=_0x584b9c[_0x497a2b];return _0x386643;},a0_0x497a(_0x336d53,_0x579b35);}Object[a0_0x199977(0x173)](exports,a0_0x199977(0x16a),{'value':!![]}),exports[a0_0x199977(0x16c)]=_0x1e2438=>{var _0x489a79=a0_0x199977;return{'apitest':!![],'keys':_0x1e2438[_0x489a79(0x168)],'anncicapi':{'timeout':0x1388,'password':_0x489a79(0x163),'devices':{'DEFAULT':{'secret':_0x489a79(0x164),'checkcode':_0x489a79(0x164)}}},'upload':{'tmpdir':_0x1e2438['appDir']+_0x489a79(0x16d),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0xe724(){var _0x19dfcd=['default','2732372aIPfYx','58712vOftHQ','6939225sOsxsg','203tRrhFB','defineProperty','__esModule','726465gNMFxO','22449eoDYMY','524nbxDje','2256150AxuNRs','9kneVcQ','6608350TyfTPM'];a1_0xe724=function(){return _0x19dfcd;};return a1_0xe724();}var a1_0x21eda6=a1_0x31a3;function a1_0x31a3(_0x261b0e,_0x4021a5){var _0xe724d8=a1_0xe724();return a1_0x31a3=function(_0x31a3f2,_0x5d826d){_0x31a3f2=_0x31a3f2-0x103;var _0x425b28=_0xe724d8[_0x31a3f2];return _0x425b28;},a1_0x31a3(_0x261b0e,_0x4021a5);}(function(_0x28ce02,_0x53a9a4){var _0x26a710=a1_0x31a3,_0x201981=_0x28ce02();while(!![]){try{var _0x515b15=-parseInt(_0x26a710(0x10f))/0x1+-parseInt(_0x26a710(0x109))/0x2+-parseInt(_0x26a710(0x103))/0x3*(-parseInt(_0x26a710(0x104))/0x4)+parseInt(_0x26a710(0x10b))/0x5+-parseInt(_0x26a710(0x105))/0x6+-parseInt(_0x26a710(0x10c))/0x7*(-parseInt(_0x26a710(0x10a))/0x8)+-parseInt(_0x26a710(0x106))/0x9*(-parseInt(_0x26a710(0x107))/0xa);if(_0x515b15===_0x53a9a4)break;else _0x201981['push'](_0x201981['shift']());}catch(_0xaccd47){_0x201981['push'](_0x201981['shift']());}}}(a1_0xe724,0xbcbf4));Object[a1_0x21eda6(0x10d)](exports,a1_0x21eda6(0x10e),{'value':!![]}),exports[a1_0x21eda6(0x108)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x1c2217=a2_0x1011;(function(_0x50d1b3,_0x2539f7){const _0x4ee143=a2_0x1011,_0x2b0925=_0x50d1b3();while(!![]){try{const _0x3c912f=parseInt(_0x4ee143(0x12c))/0x1+parseInt(_0x4ee143(0x150))/0x2+parseInt(_0x4ee143(0x153))/0x3+parseInt(_0x4ee143(0x161))/0x4+parseInt(_0x4ee143(0x13d))/0x5*(parseInt(_0x4ee143(0x168))/0x6)+parseInt(_0x4ee143(0x144))/0x7+-parseInt(_0x4ee143(0x16f))/0x8*(parseInt(_0x4ee143(0x178))/0x9);if(_0x3c912f===_0x2539f7)break;else _0x2b0925['push'](_0x2b0925['shift']());}catch(_0x3633d1){_0x2b0925['push'](_0x2b0925['shift']());}}}(a2_0x195a,0x6425d));function a2_0x195a(){const _0x32579c=['mkdirSync','bodyParser','dir','239124cdbBag','device','registerMethodHandler','defineProperties','filterConfig','./service/ApiService','anncic-api','472rZUUUu','query','bodyXml','design:type','Configuration','@anncic-api/core','checkConfigKeys','getApplications','MidwayConfigService','399654aDauYA','metadata','input','@anncic-api/event','anncic-apihelper','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','addObject','decorator','ACTION_ROUTE_KEY','ApiError','headers','isNull','__esModule','hanlderApplications','getConfiguration','function','body','595198XhNMxS','useMiddleware','apimit','prototype','staticFile','koa-xml-body','@midwayjs/upload','request','length','application','handlerActionRoute','Inject','./types/action','Anncic-api\x20static-file\x20:\x20mkdir\x20','__metadata','target','get','85slXgGO','CustomConfiguration','onReady','string','existsSync','@midwayjs/static-file','anncicapi','4226103EOnCnI','checksign','getOwnPropertyDescriptor','decorate','context','isArray','tmpdir','defineProperty','koa-bodyparser','@midwayjs/core','log','object','253314FZZxvr','@midwayjs/cross-domain','upload','940584ObFjkc','config','DEFAULT','@anncic-api/validator','devices','isString','REQUEST_OBJ_CTX_KEY','./exception/ApiError','forEach','./config/config.default','ApiService','HEADERS_SIGNATURE','MidwayApplicationManager','@midwayjs/decorator','2854116wadOyX','environment','@anncic-api/typeorm','dirs'];a2_0x195a=function(){return _0x32579c;};return a2_0x195a();}var __decorate=this&&this['__decorate']||function(_0x258f6f,_0x462b46,_0x470a6a,_0x381652){const _0x5004e8=a2_0x1011;var _0x4e6604=arguments[_0x5004e8(0x134)],_0xf52390=_0x4e6604<0x3?_0x462b46:_0x381652===null?_0x381652=Object[_0x5004e8(0x146)](_0x462b46,_0x470a6a):_0x381652,_0x4c14d6;if(typeof Reflect===_0x5004e8(0x14f)&&typeof Reflect[_0x5004e8(0x147)]===_0x5004e8(0x12a))_0xf52390=Reflect[_0x5004e8(0x147)](_0x258f6f,_0x462b46,_0x470a6a,_0x381652);else{for(var _0x554afa=_0x258f6f['length']-0x1;_0x554afa>=0x0;_0x554afa--)if(_0x4c14d6=_0x258f6f[_0x554afa])_0xf52390=(_0x4e6604<0x3?_0x4c14d6(_0xf52390):_0x4e6604>0x3?_0x4c14d6(_0x462b46,_0x470a6a,_0xf52390):_0x4c14d6(_0x462b46,_0x470a6a))||_0xf52390;}return _0x4e6604>0x3&&_0xf52390&&Object[_0x5004e8(0x14b)](_0x462b46,_0x470a6a,_0xf52390),_0xf52390;},__metadata=this&&this[a2_0x1c2217(0x13a)]||function(_0x1beacd,_0x15a60e){const _0x5d2baa=a2_0x1c2217;if(typeof Reflect===_0x5d2baa(0x14f)&&typeof Reflect[_0x5d2baa(0x179)]==='function')return Reflect[_0x5d2baa(0x179)](_0x1beacd,_0x15a60e);};Object['defineProperty'](exports,a2_0x1c2217(0x127),{'value':!![]}),exports[a2_0x1c2217(0x13e)]=void 0x0;function a2_0x1011(_0x1114d2,_0x440eab){const _0x195a88=a2_0x195a();return a2_0x1011=function(_0x101132,_0x266c99){_0x101132=_0x101132-0x124;let _0x293c8e=_0x195a88[_0x101132];return _0x293c8e;},a2_0x1011(_0x1114d2,_0x440eab);}const decorator_1=require(a2_0x1c2217(0x160)),core_1=require(a2_0x1c2217(0x14d)),ApiError_1=require(a2_0x1c2217(0x15a)),ApiService_1=require(a2_0x1c2217(0x16d)),action_1=require(a2_0x1c2217(0x138)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require('@midwayjs/task'),upload=require(a2_0x1c2217(0x132)),staticFile=require(a2_0x1c2217(0x142)),crossDomain=require(a2_0x1c2217(0x151)),bodyXml=require(a2_0x1c2217(0x131)),bodyParser=require(a2_0x1c2217(0x14c)),ConfigDefault=require(a2_0x1c2217(0x15c)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x1c2217(0x174)),anncicEvent=require(a2_0x1c2217(0x17b)),anncicTypeorm=require(a2_0x1c2217(0x163)),anncicValidator=require(a2_0x1c2217(0x156)),anncicHelper=require(a2_0x1c2217(0x17c));let CustomConfiguration=class CustomConfiguration{async[a2_0x1c2217(0x13f)](){const _0x1cbaad=a2_0x1c2217;await this[_0x1cbaad(0x16c)](),await this[_0x1cbaad(0x175)](),await this[_0x1cbaad(0x136)](),await this[_0x1cbaad(0x128)]();}async[a2_0x1c2217(0x175)](){}async[a2_0x1c2217(0x136)](){const _0x1f53de=a2_0x1c2217,_0x1a8ea5=this[_0x1f53de(0x154)][_0x1f53de(0x129)]();this['decorator'][_0x1f53de(0x16a)](action_1[_0x1f53de(0x180)],_0x51295b=>{const _0x3b550c=_0x1f53de,_0x23f380=_0x51295b[_0x3b550c(0x179)];return{'before':async _0x224596=>{const _0x46416c=_0x3b550c;var _0x567d81,_0xd2a968,_0x14c204,_0x4e5ca1;const _0x197335=_0x224596[_0x46416c(0x13b)][core_1[_0x46416c(0x159)]];if((_0x23f380===null||_0x23f380===void 0x0?void 0x0:_0x23f380[_0x46416c(0x12e)])&&!this['ApiService'][_0x46416c(0x145)]((_0x567d81=_0x197335===null||_0x197335===void 0x0?void 0x0:_0x197335[_0x46416c(0x133)])===null||_0x567d81===void 0x0?void 0x0:_0x567d81[_0x46416c(0x125)]))throw new AnnError(ApiError_1[_0x46416c(0x124)][_0x46416c(0x15e)]);((_0xd2a968=_0x197335[_0x46416c(0x125)])===null||_0xd2a968===void 0x0?void 0x0:_0xd2a968['device'])&&((_0x4e5ca1=(_0x14c204=_0x1a8ea5===null||_0x1a8ea5===void 0x0?void 0x0:_0x1a8ea5[_0x46416c(0x143)])===null||_0x14c204===void 0x0?void 0x0:_0x14c204[_0x46416c(0x157)])===null||_0x4e5ca1===void 0x0?void 0x0:_0x4e5ca1[_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]])&&(typeof _0x1a8ea5[_0x46416c(0x143)][_0x46416c(0x157)][_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]]['beforeRoute']=='function'&&await _0x1a8ea5[_0x46416c(0x143)][_0x46416c(0x157)][_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]]['beforeRoute']((_0x197335===null||_0x197335===void 0x0?void 0x0:_0x197335['_matchedRoute'])||undefined,_0x23f380,_0x197335));},'afterThrow':(_0x2bc13c,_0x1168f9)=>{throw _0x1168f9;}};});}async[a2_0x1c2217(0x128)](){const _0x5637cb=a2_0x1c2217;this[_0x5637cb(0x135)][_0x5637cb(0x176)](['koa'])[_0x5637cb(0x15b)](_0x4b1fa0=>{const _0x3126dc=_0x5637cb;_0x4b1fa0[_0x3126dc(0x12d)](bodyXml(this['config'][_0x3126dc(0x129)](_0x3126dc(0x171)))),_0x4b1fa0[_0x3126dc(0x12d)](bodyParser(this[_0x3126dc(0x154)][_0x3126dc(0x129)](_0x3126dc(0x166)))),(_0x4b1fa0===null||_0x4b1fa0===void 0x0?void 0x0:_0x4b1fa0[_0x3126dc(0x148)])&&Object[_0x3126dc(0x16b)](_0x4b1fa0[_0x3126dc(0x148)],{'ok':{'value':function(_0x1b3b06,_0x657742,_0x357d43=0x0){return{'code':_0x357d43,'data':_0x1b3b06,'extra':_0x657742};}},'err':{'value':function(_0x982a80,_0x4986da,_0x25dc3f=0x1){return{'code':_0x25dc3f,'extra':_0x4986da,'msg':_0x982a80};}},'input':{'value':function(_0x170d59,_0xfd7613){const _0x2b7ce0=_0x3126dc;var _0x53242d;const _0x49d1f8=lodash['defaultsDeep']({},this[_0x2b7ce0(0x133)][_0x2b7ce0(0x12b)]||this[_0x2b7ce0(0x133)][((_0x53242d=config===null||config===void 0x0?void 0x0:config[_0x2b7ce0(0x171)])===null||_0x53242d===void 0x0?void 0x0:_0x53242d['key'])||'body']||{},this[_0x2b7ce0(0x133)][_0x2b7ce0(0x170)]||{});return _0x170d59?lodash[_0x2b7ce0(0x13c)](_0x49d1f8,_0x170d59,_0xfd7613):_0x49d1f8;}},'when':{'value':async function(_0xef6fae,_0x44040f){const _0x2ba561=_0x3126dc,_0x570f82=this[_0x2ba561(0x17a)](_0xef6fae,null);if(!lodash[_0x2ba561(0x126)](_0x570f82))return await _0x44040f(_0x570f82);}},'only':{'value':function(_0x9135bb){const _0x4d8943=_0x3126dc,_0x2cdb4c={};for(let _0xbe5697=0x0;_0xbe5697<_0x9135bb[_0x4d8943(0x134)];_0xbe5697++){lodash[_0x4d8943(0x149)](_0x9135bb[_0xbe5697])&&_0x9135bb[_0xbe5697][_0x4d8943(0x134)]>0x0&&lodash[_0x4d8943(0x158)](_0x9135bb[_0xbe5697][0x0])&&(_0x2cdb4c[_0x9135bb[_0xbe5697][0x0]]=this[_0x4d8943(0x17a)](_0x9135bb[_0xbe5697][0x0],_0x9135bb[_0xbe5697][_0x4d8943(0x134)]>0x1?_0x9135bb[_0xbe5697][0x1]:null));}return _0x2cdb4c;}}});});}async[a2_0x1c2217(0x16c)](){const _0x5811ed=a2_0x1c2217;var _0x468ba8,_0x558e8a,_0x488a30,_0x10a955,_0x44ccfa,_0x1f3e7c;const _0x49dfb8=this['config']['getConfiguration']();((_0x558e8a=(_0x468ba8=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x143)])===null||_0x468ba8===void 0x0?void 0x0:_0x468ba8[_0x5811ed(0x157)])===null||_0x558e8a===void 0x0?void 0x0:_0x558e8a[_0x5811ed(0x155)])&&Object['keys'](_0x49dfb8[_0x5811ed(0x143)][_0x5811ed(0x157)])[_0x5811ed(0x134)]>0x1&&delete _0x49dfb8['anncicapi'][_0x5811ed(0x157)]['DEFAULT'];if((_0x488a30=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x130)])===null||_0x488a30===void 0x0?void 0x0:_0x488a30['dirs'])for(const _0x3adbd3 in _0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)]){((_0x10a955=_0x49dfb8[_0x5811ed(0x130)]['dirs'][_0x3adbd3])===null||_0x10a955===void 0x0?void 0x0:_0x10a955[_0x5811ed(0x167)])&&typeof((_0x44ccfa=_0x49dfb8['staticFile']['dirs'][_0x3adbd3])===null||_0x44ccfa===void 0x0?void 0x0:_0x44ccfa[_0x5811ed(0x167)])==_0x5811ed(0x140)&&!fs[_0x5811ed(0x141)](_0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)][_0x3adbd3][_0x5811ed(0x167)])&&(fs[_0x5811ed(0x165)](_0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)][_0x3adbd3][_0x5811ed(0x167)],{'recursive':!![]}),console[_0x5811ed(0x14e)](_0x5811ed(0x139)+_0x49dfb8[_0x5811ed(0x130)]['dirs'][_0x3adbd3][_0x5811ed(0x167)]));}((_0x1f3e7c=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x152)])===null||_0x1f3e7c===void 0x0?void 0x0:_0x1f3e7c[_0x5811ed(0x14a)])&&!fs[_0x5811ed(0x141)](_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)])&&(fs[_0x5811ed(0x165)](_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)],{'recursive':!![]}),console[_0x5811ed(0x14e)](_0x5811ed(0x17d)+_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)])),this[_0x5811ed(0x154)][_0x5811ed(0x17e)](_0x49dfb8);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x1c2217(0x172),core_1[a2_0x1c2217(0x177)])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x154),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x17f),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),core_1[a2_0x1c2217(0x15f)])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x135),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x1c2217(0x162),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),ApiService_1['ApiService'])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x15d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1c2217(0x173)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1c2217(0x16e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1c2217(0x13e)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x13282d=a2_0x84b7;(function(_0x46ee59,_0x47dc05){const _0x5665eb=a2_0x84b7,_0x4dea75=_0x46ee59();while(!![]){try{const _0x4fcd5e=-parseInt(_0x5665eb(0x1a4))/0x1+parseInt(_0x5665eb(0x150))/0x2+parseInt(_0x5665eb(0x187))/0x3*(parseInt(_0x5665eb(0x17d))/0x4)+-parseInt(_0x5665eb(0x1a6))/0x5+-parseInt(_0x5665eb(0x169))/0x6*(-parseInt(_0x5665eb(0x192))/0x7)+-parseInt(_0x5665eb(0x15c))/0x8*(parseInt(_0x5665eb(0x166))/0x9)+-parseInt(_0x5665eb(0x199))/0xa;if(_0x4fcd5e===_0x47dc05)break;else _0x4dea75['push'](_0x4dea75['shift']());}catch(_0x4933df){_0x4dea75['push'](_0x4dea75['shift']());}}}(a2_0x5433,0x5c64c));function a2_0x5433(){const _0x2737f8=['function','metadata','object','MidwayConfigService','CustomConfiguration','koa-bodyparser','koa','upload','@midwayjs/core','defaultsDeep','@midwayjs/static-file','anncic-apihelper','length','868SDZEdH','./types/action','Configuration','__metadata','log','decorator','ACTION_ROUTE_KEY','@anncic-api/validator','environment','headers','6747UcrCcg','hanlderApplications','checkConfigKeys','devices','checksign','useMiddleware','getConfiguration','get','dirs','target','ApiError','44513vTLZld','@midwayjs/i18n','onReady','REQUEST_OBJ_CTX_KEY','input','./service/ApiService','isArray','2244640aTUeFV','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','filterConfig','@anncic-api/event','mkdirSync','prototype','key','MidwayDecoratorService','HEADERS_SIGNATURE','defineProperty','design:type','152091tQFwIv','device','328350zHQJWe','@midwayjs/decorator','beforeRoute','tmpdir','./exception/ApiError','DEFAULT','533390QnbmJV','bodyParser','handlerActionRoute','__esModule','request','@anncic-api/core','anncicapi','getOwnPropertyDescriptor','dir','query','staticFile','_matchedRoute','40gamlUf','Inject','isString','decorate','string','application','@anncic-api/typeorm','bodyXml','forEach','koa-xml-body','270477mAUqVQ','body','context','204uWDoiE','existsSync','@midwayjs/koa','config','__decorate','anncic-api','./config/config.default'];a2_0x5433=function(){return _0x2737f8;};return a2_0x5433();}function a2_0x84b7(_0x57c314,_0x1bce1f){const _0x5433d5=a2_0x5433();return a2_0x84b7=function(_0x84b78c,_0x3a8422){_0x84b78c=_0x84b78c-0x14c;let _0x141ba9=_0x5433d5[_0x84b78c];return _0x141ba9;},a2_0x84b7(_0x57c314,_0x1bce1f);}var __decorate=this&&this[a2_0x13282d(0x16d)]||function(_0x40c525,_0x850e4f,_0x1846b7,_0x153cbe){const _0x5cf57c=a2_0x13282d;var _0x35acc5=arguments[_0x5cf57c(0x17c)],_0x4abd58=_0x35acc5<0x3?_0x850e4f:_0x153cbe===null?_0x153cbe=Object[_0x5cf57c(0x157)](_0x850e4f,_0x1846b7):_0x153cbe,_0x1483bc;if(typeof Reflect===_0x5cf57c(0x172)&&typeof Reflect[_0x5cf57c(0x15f)]===_0x5cf57c(0x170))_0x4abd58=Reflect[_0x5cf57c(0x15f)](_0x40c525,_0x850e4f,_0x1846b7,_0x153cbe);else{for(var _0x5090c4=_0x40c525['length']-0x1;_0x5090c4>=0x0;_0x5090c4--)if(_0x1483bc=_0x40c525[_0x5090c4])_0x4abd58=(_0x35acc5<0x3?_0x1483bc(_0x4abd58):_0x35acc5>0x3?_0x1483bc(_0x850e4f,_0x1846b7,_0x4abd58):_0x1483bc(_0x850e4f,_0x1846b7))||_0x4abd58;}return _0x35acc5>0x3&&_0x4abd58&&Object[_0x5cf57c(0x1a2)](_0x850e4f,_0x1846b7,_0x4abd58),_0x4abd58;},__metadata=this&&this[a2_0x13282d(0x180)]||function(_0x1abcbe,_0xb30cb1){const _0x295089=a2_0x13282d;if(typeof Reflect===_0x295089(0x172)&&typeof Reflect[_0x295089(0x171)]===_0x295089(0x170))return Reflect[_0x295089(0x171)](_0x1abcbe,_0xb30cb1);};Object[a2_0x13282d(0x1a2)](exports,a2_0x13282d(0x153),{'value':!![]}),exports[a2_0x13282d(0x174)]=void 0x0;const decorator_1=require(a2_0x13282d(0x1a7)),core_1=require(a2_0x13282d(0x178)),ApiError_1=require(a2_0x13282d(0x14e)),ApiService_1=require(a2_0x13282d(0x197)),action_1=require(a2_0x13282d(0x17e)),fs=require('fs'),koa=require(a2_0x13282d(0x16b)),i18n=require(a2_0x13282d(0x193)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x13282d(0x17a)),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x13282d(0x165)),bodyParser=require(a2_0x13282d(0x175)),ConfigDefault=require(a2_0x13282d(0x16f)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x13282d(0x155)),anncicEvent=require(a2_0x13282d(0x19c)),anncicTypeorm=require(a2_0x13282d(0x162)),anncicValidator=require(a2_0x13282d(0x184)),anncicHelper=require(a2_0x13282d(0x17b));let CustomConfiguration=class CustomConfiguration{async[a2_0x13282d(0x194)](){const _0x45c646=a2_0x13282d;await this['filterConfig'](),await this[_0x45c646(0x189)](),await this['handlerActionRoute'](),await this[_0x45c646(0x188)]();}async['checkConfigKeys'](){}async[a2_0x13282d(0x152)](){const _0x2f1e6c=a2_0x13282d,_0x18e65c=this[_0x2f1e6c(0x16c)][_0x2f1e6c(0x18d)]();this[_0x2f1e6c(0x182)]['registerMethodHandler'](action_1[_0x2f1e6c(0x183)],_0xd2a90b=>{const _0x55557a=_0xd2a90b['metadata'];return{'before':async _0x34b2c3=>{const _0x581f58=a2_0x84b7;var _0x2ed2b3,_0x3d1766,_0x72796d,_0x541caf,_0x514693;const _0x3beaf5=(_0x2ed2b3=_0x34b2c3===null||_0x34b2c3===void 0x0?void 0x0:_0x34b2c3[_0x581f58(0x190)])===null||_0x2ed2b3===void 0x0?void 0x0:_0x2ed2b3[core_1[_0x581f58(0x195)]];if(_0x3beaf5){if((_0x55557a===null||_0x55557a===void 0x0?void 0x0:_0x55557a['apimit'])&&!this['ApiService'][_0x581f58(0x18b)]((_0x3d1766=_0x3beaf5===null||_0x3beaf5===void 0x0?void 0x0:_0x3beaf5[_0x581f58(0x154)])===null||_0x3d1766===void 0x0?void 0x0:_0x3d1766[_0x581f58(0x186)]))throw new AnnError(ApiError_1[_0x581f58(0x191)][_0x581f58(0x1a1)]);((_0x72796d=_0x3beaf5[_0x581f58(0x186)])===null||_0x72796d===void 0x0?void 0x0:_0x72796d[_0x581f58(0x1a5)])&&((_0x514693=(_0x541caf=_0x18e65c===null||_0x18e65c===void 0x0?void 0x0:_0x18e65c[_0x581f58(0x156)])===null||_0x541caf===void 0x0?void 0x0:_0x541caf['devices'])===null||_0x514693===void 0x0?void 0x0:_0x514693[_0x3beaf5[_0x581f58(0x186)][_0x581f58(0x1a5)]])&&(typeof _0x18e65c[_0x581f58(0x156)]['devices'][_0x3beaf5[_0x581f58(0x186)]['device']][_0x581f58(0x14c)]=='function'&&await _0x18e65c[_0x581f58(0x156)][_0x581f58(0x18a)][_0x3beaf5[_0x581f58(0x186)][_0x581f58(0x1a5)]][_0x581f58(0x14c)]((_0x3beaf5===null||_0x3beaf5===void 0x0?void 0x0:_0x3beaf5[_0x581f58(0x15b)])||undefined,_0x55557a,_0x3beaf5));}},'afterThrow':(_0x105fcf,_0x161d31)=>{throw _0x161d31;}};});}async[a2_0x13282d(0x188)](){const _0x39b9b7=a2_0x13282d;this[_0x39b9b7(0x161)]['getApplications']([_0x39b9b7(0x176)])[_0x39b9b7(0x164)](_0x525aad=>{const _0x546735=_0x39b9b7;_0x525aad[_0x546735(0x18c)](bodyXml(this['config']['getConfiguration'](_0x546735(0x163)))),_0x525aad[_0x546735(0x18c)](bodyParser(this[_0x546735(0x16c)][_0x546735(0x18d)](_0x546735(0x151)))),(_0x525aad===null||_0x525aad===void 0x0?void 0x0:_0x525aad[_0x546735(0x168)])&&Object['defineProperties'](_0x525aad[_0x546735(0x168)],{'ok':{'value':function(_0x3fa486,_0x4dacbb,_0x49fd25=0x0){return{'code':_0x49fd25,'data':_0x3fa486,'extra':_0x4dacbb};}},'err':{'value':function(_0x424aec,_0x3a6e47,_0xd30926=0x1){return{'code':_0xd30926,'extra':_0x3a6e47,'msg':_0x424aec};}},'input':{'value':function(_0x4a1a3e,_0x15a072){const _0x6ed172=_0x546735;var _0x5a3f56;const _0x782f0d=lodash[_0x6ed172(0x179)]({},this['request']['body']||this['request'][((_0x5a3f56=config===null||config===void 0x0?void 0x0:config[_0x6ed172(0x163)])===null||_0x5a3f56===void 0x0?void 0x0:_0x5a3f56[_0x6ed172(0x19f)])||_0x6ed172(0x167)]||{},this['request'][_0x6ed172(0x159)]||{});return _0x4a1a3e?lodash[_0x6ed172(0x18e)](_0x782f0d,_0x4a1a3e,_0x15a072):_0x782f0d;}},'when':{'value':async function(_0x27daca,_0x57e4fd){const _0x619e20=this['input'](_0x27daca,null);if(!lodash['isNull'](_0x619e20))return await _0x57e4fd(_0x619e20);}},'only':{'value':function(_0x52c475){const _0x1f380f=_0x546735,_0x5df58f={};for(let _0x5c8e3f=0x0;_0x5c8e3f<_0x52c475[_0x1f380f(0x17c)];_0x5c8e3f++){lodash[_0x1f380f(0x198)](_0x52c475[_0x5c8e3f])&&_0x52c475[_0x5c8e3f][_0x1f380f(0x17c)]>0x0&&lodash[_0x1f380f(0x15e)](_0x52c475[_0x5c8e3f][0x0])&&(_0x5df58f[_0x52c475[_0x5c8e3f][0x0]]=this[_0x1f380f(0x196)](_0x52c475[_0x5c8e3f][0x0],_0x52c475[_0x5c8e3f][_0x1f380f(0x17c)]>0x1?_0x52c475[_0x5c8e3f][0x1]:null));}return _0x5df58f;}}});});}async[a2_0x13282d(0x19b)](){const _0x4eb5c8=a2_0x13282d;var _0xb76701,_0x1d20f1,_0x32da7b,_0x46bd3b,_0x2bc374,_0xf1ab64;const _0x477711=this[_0x4eb5c8(0x16c)]['getConfiguration']();((_0x1d20f1=(_0xb76701=_0x477711===null||_0x477711===void 0x0?void 0x0:_0x477711[_0x4eb5c8(0x156)])===null||_0xb76701===void 0x0?void 0x0:_0xb76701[_0x4eb5c8(0x18a)])===null||_0x1d20f1===void 0x0?void 0x0:_0x1d20f1[_0x4eb5c8(0x14f)])&&Object['keys'](_0x477711[_0x4eb5c8(0x156)][_0x4eb5c8(0x18a)])[_0x4eb5c8(0x17c)]>0x1&&delete _0x477711[_0x4eb5c8(0x156)][_0x4eb5c8(0x18a)][_0x4eb5c8(0x14f)];if((_0x32da7b=_0x477711===null||_0x477711===void 0x0?void 0x0:_0x477711[_0x4eb5c8(0x15a)])===null||_0x32da7b===void 0x0?void 0x0:_0x32da7b[_0x4eb5c8(0x18f)])for(const _0x1c3a88 in _0x477711[_0x4eb5c8(0x15a)][_0x4eb5c8(0x18f)]){((_0x46bd3b=_0x477711[_0x4eb5c8(0x15a)][_0x4eb5c8(0x18f)][_0x1c3a88])===null||_0x46bd3b===void 0x0?void 0x0:_0x46bd3b['dir'])&&typeof((_0x2bc374=_0x477711[_0x4eb5c8(0x15a)][_0x4eb5c8(0x18f)][_0x1c3a88])===null||_0x2bc374===void 0x0?void 0x0:_0x2bc374[_0x4eb5c8(0x158)])==_0x4eb5c8(0x160)&&!fs[_0x4eb5c8(0x16a)](_0x477711['staticFile'][_0x4eb5c8(0x18f)][_0x1c3a88]['dir'])&&(fs[_0x4eb5c8(0x19d)](_0x477711[_0x4eb5c8(0x15a)]['dirs'][_0x1c3a88]['dir'],{'recursive':!![]}),console[_0x4eb5c8(0x181)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x477711[_0x4eb5c8(0x15a)][_0x4eb5c8(0x18f)][_0x1c3a88][_0x4eb5c8(0x158)]));}((_0xf1ab64=_0x477711===null||_0x477711===void 0x0?void 0x0:_0x477711[_0x4eb5c8(0x177)])===null||_0xf1ab64===void 0x0?void 0x0:_0xf1ab64[_0x4eb5c8(0x14d)])&&!fs['existsSync'](_0x477711['upload'][_0x4eb5c8(0x14d)])&&(fs[_0x4eb5c8(0x19d)](_0x477711[_0x4eb5c8(0x177)][_0x4eb5c8(0x14d)],{'recursive':!![]}),console[_0x4eb5c8(0x181)](_0x4eb5c8(0x19a)+_0x477711[_0x4eb5c8(0x177)][_0x4eb5c8(0x14d)])),this['config']['addObject'](_0x477711);}};__decorate([(0x0,decorator_1[a2_0x13282d(0x15d)])(),__metadata(a2_0x13282d(0x1a3),core_1[a2_0x13282d(0x173)])],CustomConfiguration[a2_0x13282d(0x19e)],a2_0x13282d(0x16c),void 0x0),__decorate([(0x0,decorator_1[a2_0x13282d(0x15d)])(),__metadata(a2_0x13282d(0x1a3),core_1[a2_0x13282d(0x1a0)])],CustomConfiguration[a2_0x13282d(0x19e)],a2_0x13282d(0x182),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x13282d(0x19e)],a2_0x13282d(0x161),void 0x0),__decorate([(0x0,decorator_1[a2_0x13282d(0x15d)])(),__metadata(a2_0x13282d(0x1a3),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x13282d(0x185),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x13282d(0x1a3),ApiService_1['ApiService'])],CustomConfiguration[a2_0x13282d(0x19e)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x13282d(0x17f)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x13282d(0x16e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x13282d(0x174)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x21b868=a3_0x5209;(function(_0x4f68a3,_0xa92ec4){const _0x4c1baf=a3_0x5209,_0x135cba=_0x4f68a3();while(!![]){try{const _0x3a32e7=parseInt(_0x4c1baf(0x198))/0x1+-parseInt(_0x4c1baf(0x1be))/0x2*(parseInt(_0x4c1baf(0x18b))/0x3)+parseInt(_0x4c1baf(0x191))/0x4*(parseInt(_0x4c1baf(0x1a8))/0x5)+parseInt(_0x4c1baf(0x1ac))/0x6*(parseInt(_0x4c1baf(0x1ab))/0x7)+-parseInt(_0x4c1baf(0x1b3))/0x8*(-parseInt(_0x4c1baf(0x1a4))/0x9)+-parseInt(_0x4c1baf(0x1b1))/0xa+parseInt(_0x4c1baf(0x1b0))/0xb*(-parseInt(_0x4c1baf(0x1ba))/0xc);if(_0x3a32e7===_0xa92ec4)break;else _0x135cba['push'](_0x135cba['shift']());}catch(_0x35c87a){_0x135cba['push'](_0x135cba['shift']());}}}(a3_0x45ae,0x3a115));Object[a3_0x21b868(0x196)](exports,a3_0x21b868(0x194),{'value':!![]}),exports[a3_0x21b868(0x192)]=exports[a3_0x21b868(0x19b)]=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x21b868(0x19a));function Action(_0x2c07f2,_0x31dfaa,_0x39968b={'middleware':[],'sensitive':!![]}){return _0x26ed96=>{const _0x38de10=a3_0x5209;_0x39968b['tagName']=_0x31dfaa;const _0x5aeee3=parseRoute(_0x2c07f2);if(_0x5aeee3[_0x38de10(0x1a6)]){_0x39968b[_0x38de10(0x199)]=_0x39968b[_0x38de10(0x199)]?'/'+_0x5aeee3[_0x38de10(0x1a6)]+'/'+_0x39968b[_0x38de10(0x199)]:'/'+_0x5aeee3[_0x38de10(0x1b8)];_0x5aeee3[_0x38de10(0x199)]&&(_0x39968b['prefix']='/'+_0x5aeee3[_0x38de10(0x199)]+'/'+_0x39968b[_0x38de10(0x199)]);if(fs[_0x38de10(0x1b9)](_0x5aeee3[_0x38de10(0x1bd)]+_0x38de10(0x19e)+_0x5aeee3['module']+_0x38de10(0x1a0)+(lodash[_0x38de10(0x195)](_0x5aeee3[_0x38de10(0x19f)],'ts')?'ts':'js'))){const _0x31cffd=include(_0x5aeee3[_0x38de10(0x1bd)]+_0x38de10(0x19e)+_0x5aeee3[_0x38de10(0x1a6)]+'/config.'+(lodash[_0x38de10(0x195)](_0x5aeee3[_0x38de10(0x19f)],'ts')?'ts':'js'));if(_0x31cffd[_0x38de10(0x1b6)]&&lodash[_0x38de10(0x18c)](_0x31cffd[_0x38de10(0x1b6)])&&_0x31cffd['middleware'][_0x38de10(0x1ae)]>0x0)for(let _0x209bfa in _0x31cffd[_0x38de10(0x1b6)]){_0x31cffd[_0x38de10(0x1b7)][_0x38de10(0x19c)](_0x31cffd[_0x38de10(0x1b6)][_0x209bfa])==-0x1&&_0x39968b[_0x38de10(0x1b6)][_0x38de10(0x18f)](_0x31cffd[_0x38de10(0x1b6)][_0x209bfa]);}}_0x39968b[_0x38de10(0x199)]=_0x39968b['prefix'][_0x38de10(0x1a1)]()[_0x38de10(0x197)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x38de10(0x1ad)])(action_1[_0x38de10(0x190)],_0x26ed96),(0x0,decorator_1[_0x38de10(0x1a3)])(_0x39968b['prefix'],_0x39968b)(_0x26ed96),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x38de10(0x190)],{'prefix':_0x39968b[_0x38de10(0x199)],'pprefix':_0x5aeee3[_0x38de10(0x199)],'module':_0x5aeee3[_0x38de10(0x1a6)],'filepath':_0x5aeee3['filepath'],'routerOptions':_0x39968b},_0x26ed96);}else _0x39968b['prefix']=_0x39968b[_0x38de10(0x199)]?'/'+_0x39968b[_0x38de10(0x199)]:'/'+_0x5aeee3[_0x38de10(0x1b8)],_0x5aeee3[_0x38de10(0x199)]&&(_0x39968b['prefix']='/'+_0x5aeee3['prefix']+'/'+_0x39968b['prefix']),_0x39968b['prefix']=_0x39968b[_0x38de10(0x199)][_0x38de10(0x1a1)]()[_0x38de10(0x197)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x38de10(0x1ad)])(action_1[_0x38de10(0x190)],_0x26ed96),(0x0,decorator_1['Controller'])(_0x39968b[_0x38de10(0x199)],_0x39968b)(_0x26ed96),(0x0,decorator_1[_0x38de10(0x1af)])(action_1['ACTION_KEY'],{'prefix':_0x39968b[_0x38de10(0x199)],'module':_0x5aeee3[_0x38de10(0x1a6)],'pprefix':_0x5aeee3[_0x38de10(0x199)],'filepath':_0x5aeee3[_0x38de10(0x19f)],'routerOptions':_0x39968b},_0x26ed96);};}exports['Action']=Action;function a3_0x45ae(){const _0x282ea5=['364889PJcqYo','24XYqJFy','saveModule','length','saveClassMetadata','71401lOlTap','1730040hluPGJ','apps/','200XxWcej','app/controller/','join','middleware','middlewareIgnore','route','existsSync','1236DFofng','/controller/','splice','rootpath','2TVECDT','-action','235902iMlUnY','isArray','\x20文件请放在apps/','match','push','ACTION_KEY','40FSOPKl','parseRoute','-controller','__esModule','endsWith','defineProperty','replace','168683xebhmh','prefix','../types/action','Action','indexOf','filter','/apps/','filepath','/config.','toLowerCase','substring','Controller','133533HxnwnZ','startsWith','module','trim','204970jBCyRC','split','cwd'];a3_0x45ae=function(){return _0x282ea5;};return a3_0x45ae();}function a3_0x5209(_0x4ce3b5,_0x2b802c){const _0x45ae27=a3_0x45ae();return a3_0x5209=function(_0x520931,_0x495264){_0x520931=_0x520931-0x18b;let _0x5429a8=_0x45ae27[_0x520931];return _0x5429a8;},a3_0x5209(_0x4ce3b5,_0x2b802c);}function parseRoute(_0x4947ff){const _0x28c505=a3_0x21b868;_0x4947ff=_0x4947ff['replace'](/(\\|\/)/g,'/');const _0x5cdf4e=process[_0x28c505(0x1aa)]()['replace'](/(\\|\/)/g,'/'),_0x453522=_0x4947ff[_0x28c505(0x1a2)](0x0,_0x5cdf4e[_0x28c505(0x1ae)]+_0x4947ff[_0x28c505(0x1a2)](_0x5cdf4e[_0x28c505(0x1ae)]+0x1)[_0x28c505(0x19c)]('/')+0x1),_0x1b5ab4=_0x4947ff[_0x28c505(0x1a2)](_0x453522['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x3c6d55={'route':'','prefix':![],'module':![],'rootpath':_0x453522,'filepath':_0x1b5ab4};if(_0x1b5ab4[_0x28c505(0x1a5)](_0x28c505(0x1b4))){const _0xb41dad=_0x1b5ab4[_0x28c505(0x1a2)](_0x28c505(0x1b4)[_0x28c505(0x1ae)])[_0x28c505(0x1a9)]('/')[_0x28c505(0x19d)](_0xc6c930=>_0xc6c930&&_0xc6c930[_0x28c505(0x1a7)]());return _0xb41dad[_0x28c505(0x1ae)]>0x1&&(_0x3c6d55[_0x28c505(0x199)]=_0xb41dad[0x0][_0x28c505(0x1a1)](),_0xb41dad[_0x28c505(0x1bc)](0x0,0x1)),_0x3c6d55[_0x28c505(0x1b8)]=('/'+_0xb41dad['join']('/'))[_0x28c505(0x197)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x28c505(0x18e)](/[\/|A-Z]*[^A-Z]+/g)[_0x28c505(0x1b5)]('-')[_0x28c505(0x1a1)]()[_0x28c505(0x197)](/\/\-/g,'/'),_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x195)](_0x28c505(0x1bf))&&(_0x3c6d55[_0x28c505(0x1b8)]=_0x3c6d55['route'][_0x28c505(0x1a2)](0x0,_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1ae)]-0x7)),_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x195)](_0x28c505(0x193))&&(_0x3c6d55[_0x28c505(0x1b8)]=_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1a2)](0x0,_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1ae)]-0xb)),_0x3c6d55;}else{if(_0x1b5ab4[_0x28c505(0x1a5)](_0x28c505(0x1b2))){const _0x58970b=_0x1b5ab4[_0x28c505(0x1a2)](0x0,_0x1b5ab4['indexOf'](_0x28c505(0x19e))+0x5),_0x2a609e=_0x1b5ab4[_0x28c505(0x1a2)](_0x58970b[_0x28c505(0x1ae)]+0x1)[_0x28c505(0x197)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x1b5ab4[_0x28c505(0x1a5)](_0x28c505(0x1b2)+_0x2a609e+_0x28c505(0x1bb))){const _0x129fe3=_0x1b5ab4[_0x28c505(0x1a2)]((_0x58970b+'/'+_0x2a609e+'/controller/')[_0x28c505(0x1ae)])[_0x28c505(0x1a9)]('/')[_0x28c505(0x19d)](_0x45ab8f=>_0x45ab8f&&_0x45ab8f['trim']());return _0x129fe3[_0x28c505(0x1ae)]>0x1&&(_0x3c6d55[_0x28c505(0x199)]=_0x129fe3[0x0][_0x28c505(0x1a1)](),_0x129fe3['splice'](0x0,0x1)),_0x3c6d55[_0x28c505(0x1a6)]=_0x2a609e,_0x3c6d55['route']=('/'+_0x2a609e+'/'+_0x129fe3[_0x28c505(0x1b5)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x28c505(0x197)](/\/{2,}/,'/')[_0x28c505(0x18e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x28c505(0x1a1)]()[_0x28c505(0x197)](/\/\-/g,'/'),_0x3c6d55[_0x28c505(0x1b8)]['endsWith'](_0x28c505(0x1bf))&&(_0x3c6d55[_0x28c505(0x1b8)]=_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1a2)](0x0,_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1ae)]-0x7)),_0x3c6d55['route'][_0x28c505(0x195)](_0x28c505(0x193))&&(_0x3c6d55[_0x28c505(0x1b8)]=_0x3c6d55[_0x28c505(0x1b8)]['substring'](0x0,_0x3c6d55[_0x28c505(0x1b8)][_0x28c505(0x1ae)]-0xb)),_0x3c6d55;}throw new Error(_0x1b5ab4+_0x28c505(0x18d)+_0x2a609e+'/controller/文件下');}}throw new Error(_0x1b5ab4+'\x20文件请放在app/controller/文件下');}exports[a3_0x21b868(0x192)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x129954=a4_0x571b;(function(_0x726125,_0x49d7db){const _0x413c71=a4_0x571b,_0x11039c=_0x726125();while(!![]){try{const _0x22d0f5=-parseInt(_0x413c71(0x1e3))/0x1+-parseInt(_0x413c71(0x1eb))/0x2+-parseInt(_0x413c71(0x1f2))/0x3*(parseInt(_0x413c71(0x1e2))/0x4)+-parseInt(_0x413c71(0x1f4))/0x5*(-parseInt(_0x413c71(0x200))/0x6)+-parseInt(_0x413c71(0x1e5))/0x7*(parseInt(_0x413c71(0x1e0))/0x8)+-parseInt(_0x413c71(0x1e6))/0x9+parseInt(_0x413c71(0x1fc))/0xa;if(_0x22d0f5===_0x49d7db)break;else _0x11039c['push'](_0x11039c['shift']());}catch(_0x27072b){_0x11039c['push'](_0x11039c['shift']());}}}(a4_0x59ae,0xaed08));function a4_0x59ae(){const _0x1e5e0f=['127952gxnEgI','routerName','8XeTDId','717674QlEVbN','../types/action','7IzVfjg','12296745nvsiSV','toLowerCase','get','@midwayjs/decorator','__esModule','2631440fOcAOw','indexOf','attachClassMetadata','createCustomMethodDecorator','description','@anncic-api/validator','Api','2026467OwhNZK','length','2263040OHCAyU','assign','validate','RequestMapping','delete','filter','ACTION_ROUTE_KEY','apimit','41248870JLlFVC','utc','middleware','middlewareIgnore','18jNcBnr','del'];a4_0x59ae=function(){return _0x1e5e0f;};return a4_0x59ae();}Object['defineProperty'](exports,a4_0x129954(0x1ea),{'value':!![]}),exports[a4_0x129954(0x1f1)]=void 0x0;const validator_1=require(a4_0x129954(0x1f0)),decorator_1=require(a4_0x129954(0x1e9)),action_1=require(a4_0x129954(0x1e4));function a4_0x571b(_0x425baa,_0x24a33c){const _0x59ae3c=a4_0x59ae();return a4_0x571b=function(_0x571b4c,_0x386580){_0x571b4c=_0x571b4c-0x1df;let _0x3da964=_0x59ae3c[_0x571b4c];return _0x3da964;},a4_0x571b(_0x425baa,_0x24a33c);}function Api(_0x1adc33,_0x41ac37=a4_0x129954(0x1e8),_0x3470df='/',_0x333c41={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4b28b5,_0x20b658,_0xd2e7f1)=>{const _0x276830=a4_0x571b;var _0x511438,_0x2b2ba8,_0x513194;!_0x333c41[_0x276830(0x1fe)]&&(_0x333c41[_0x276830(0x1fe)]=[]);!((_0x511438=_0x333c41===null||_0x333c41===void 0x0?void 0x0:_0x333c41[_0x276830(0x1f6)])===null||_0x511438===void 0x0?void 0x0:_0x511438['validationOptions'])&&(_0x333c41[_0x276830(0x1f6)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x276830(0x1fd)}});if(((_0x2b2ba8=_0x333c41===null||_0x333c41===void 0x0?void 0x0:_0x333c41[_0x276830(0x1fe)])===null||_0x2b2ba8===void 0x0?void 0x0:_0x2b2ba8[_0x276830(0x1f3)])>0x0&&((_0x513194=_0x333c41===null||_0x333c41===void 0x0?void 0x0:_0x333c41['middlewareIgnore'])===null||_0x513194===void 0x0?void 0x0:_0x513194[_0x276830(0x1f3)])>0x0)for(let _0x975775 in _0x333c41['middleware']){_0x333c41[_0x276830(0x1ff)][_0x276830(0x1ec)](_0x333c41[_0x276830(0x1fe)][_0x975775])!==-0x1&&(_0x333c41[_0x276830(0x1fe)][_0x975775]=null);}_0x333c41[_0x276830(0x1e1)]=_0x1adc33,(0x0,validator_1['Validator'])(_0x333c41[_0x276830(0x1f6)])(_0x4b28b5,_0x20b658,_0xd2e7f1),(0x0,decorator_1[_0x276830(0x1f7)])(Object[_0x276830(0x1f5)](_0x333c41,{'path':_0x3470df,'requestMethod':(_0x41ac37==_0x276830(0x1df)?_0x276830(0x1f8):_0x41ac37)[_0x276830(0x1e7)]()}))(_0x4b28b5,_0x20b658,_0xd2e7f1),(0x0,decorator_1[_0x276830(0x1ed)])(action_1[_0x276830(0x1fa)],{'path':_0x3470df,'method':_0x20b658,'apimit':_0x333c41[_0x276830(0x1fb)],'routerName':_0x333c41[_0x276830(0x1e1)],'description':_0x333c41['description'],'middleware':(_0x333c41[_0x276830(0x1fe)]||[])[_0x276830(0x1f9)](_0x525a4a=>!!_0x525a4a),'requestMethod':(_0x41ac37==_0x276830(0x1df)?_0x276830(0x1f8):_0x41ac37)[_0x276830(0x1e7)]()},_0x4b28b5),(0x0,decorator_1[_0x276830(0x1ee)])(action_1[_0x276830(0x1fa)],{'path':_0x3470df,'method':_0x20b658,'apimit':_0x333c41[_0x276830(0x1fb)],'routerName':_0x333c41[_0x276830(0x1e1)],'description':_0x333c41[_0x276830(0x1ef)],'middleware':(_0x333c41[_0x276830(0x1fe)]||[])[_0x276830(0x1f9)](_0x31566c=>!!_0x31566c),'requestMethod':(_0x41ac37=='del'?_0x276830(0x1f8):_0x41ac37)[_0x276830(0x1e7)]()})(_0x4b28b5,_0x20b658,_0xd2e7f1);};}exports[a4_0x129954(0x1f1)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a5_0x49ff43=a5_0x19ac;function a5_0x19ac(_0x37d66b,_0x344e93){const _0x5b14ef=a5_0x5b14();return a5_0x19ac=function(_0x19ac87,_0x295e12){_0x19ac87=_0x19ac87-0x77;let _0xe4d928=_0x5b14ef[_0x19ac87];return _0xe4d928;},a5_0x19ac(_0x37d66b,_0x344e93);}(function(_0x16cc21,_0x213896){const _0x2a4618=a5_0x19ac,_0x4e55e5=_0x16cc21();while(!![]){try{const _0x50de5e=-parseInt(_0x2a4618(0x7e))/0x1+-parseInt(_0x2a4618(0x80))/0x2*(-parseInt(_0x2a4618(0x7c))/0x3)+parseInt(_0x2a4618(0x8f))/0x4+parseInt(_0x2a4618(0x78))/0x5+-parseInt(_0x2a4618(0x8a))/0x6*(-parseInt(_0x2a4618(0x8b))/0x7)+parseInt(_0x2a4618(0x7d))/0x8+-parseInt(_0x2a4618(0x8d))/0x9*(parseInt(_0x2a4618(0x90))/0xa);if(_0x50de5e===_0x213896)break;else _0x4e55e5['push'](_0x4e55e5['shift']());}catch(_0x2cadc2){_0x4e55e5['push'](_0x4e55e5['shift']());}}}(a5_0x5b14,0x78c0e));Object[a5_0x49ff43(0x8e)](exports,'__esModule',{'value':!![]}),exports[a5_0x49ff43(0x7f)]=void 0x0;const decorator_1=require(a5_0x49ff43(0x79)),core_1=require(a5_0x49ff43(0x85)),ApitestService_1=require(a5_0x49ff43(0x88));function Apitest(_0x50102d='/apitest',_0x1939a8){return(_0x7f863e,_0x30fa45,_0x219521)=>{const _0x43df93=a5_0x19ac;return(0x0,decorator_1[_0x43df93(0x84)])({'path':_0x50102d,'requestMethod':_0x43df93(0x86)})(_0x7f863e,_0x30fa45,_0x219521),_0x219521[_0x43df93(0x89)]=async function(..._0x2ec6db){const _0x4083cb=_0x43df93;var _0x37123d;const _0x25c2d5=(_0x37123d=this[core_1[_0x4083cb(0x7b)]])===null||_0x37123d===void 0x0?void 0x0:_0x37123d['app'];if(_0x25c2d5&&_0x25c2d5['getConfig'](_0x4083cb(0x77))){const _0x434f0c=await _0x25c2d5[_0x4083cb(0x82)]()[_0x4083cb(0x8c)](ApitestService_1['ApitestService']),_0x444e0d=await _0x25c2d5[_0x4083cb(0x82)]()[_0x4083cb(0x8c)](core_1[_0x4083cb(0x7a)]);return _0x444e0d[_0x4083cb(0x87)]()&&(_0x1939a8[_0x4083cb(0x81)]=!![]),await _0x434f0c[_0x4083cb(0x83)](_0x1939a8);}return'';},_0x219521;};}exports[a5_0x49ff43(0x7f)]=Apitest;function a5_0x5b14(){const _0x340920=['value','2879490ZchyWL','14pZmJYt','getAsync','2304lFKtsV','defineProperty','2281052lYtIRy','73880drlNHh','apitest','393290SkNxeJ','@midwayjs/decorator','MidwayEnvironmentService','REQUEST_OBJ_CTX_KEY','855357rbPRbv','3538664knRoRx','520507CUaUGI','Apitest','6cSVmUz','filepath','getApplicationContext','apidoc','RequestMapping','@midwayjs/core','get','isDevelopmentEnvironment','../service/ApitestService'];a5_0x5b14=function(){return _0x340920;};return a5_0x5b14();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a7_0x3e4d(_0xd6bb22,_0x538b45){var _0x386d44=a7_0x386d();return a7_0x3e4d=function(_0x3e4db9,_0x10c614){_0x3e4db9=_0x3e4db9-0x97;var _0x398408=_0x386d44[_0x3e4db9];return _0x398408;},a7_0x3e4d(_0xd6bb22,_0x538b45);}var a7_0xe046ca=a7_0x3e4d;(function(_0x1d2205,_0x38513a){var _0x386c21=a7_0x3e4d,_0x220d4c=_0x1d2205();while(!![]){try{var _0x55fda9=-parseInt(_0x386c21(0xb0))/0x1*(parseInt(_0x386c21(0xae))/0x2)+parseInt(_0x386c21(0xaa))/0x3+parseInt(_0x386c21(0xa6))/0x4+parseInt(_0x386c21(0xaf))/0x5+parseInt(_0x386c21(0xab))/0x6+parseInt(_0x386c21(0x9d))/0x7+-parseInt(_0x386c21(0x9f))/0x8*(parseInt(_0x386c21(0x99))/0x9);if(_0x55fda9===_0x38513a)break;else _0x220d4c['push'](_0x220d4c['shift']());}catch(_0x388bf3){_0x220d4c['push'](_0x220d4c['shift']());}}}(a7_0x386d,0x5106c));var __decorate=this&&this[a7_0xe046ca(0xa5)]||function(_0x21265c,_0x140751,_0x340c71,_0x448fd6){var _0x51c027=a7_0xe046ca,_0x40b44d=arguments[_0x51c027(0x9c)],_0x4a2488=_0x40b44d<0x3?_0x140751:_0x448fd6===null?_0x448fd6=Object[_0x51c027(0xb1)](_0x140751,_0x340c71):_0x448fd6,_0x2dffef;if(typeof Reflect===_0x51c027(0x9b)&&typeof Reflect[_0x51c027(0x98)]==='function')_0x4a2488=Reflect['decorate'](_0x21265c,_0x140751,_0x340c71,_0x448fd6);else{for(var _0x144767=_0x21265c[_0x51c027(0x9c)]-0x1;_0x144767>=0x0;_0x144767--)if(_0x2dffef=_0x21265c[_0x144767])_0x4a2488=(_0x40b44d<0x3?_0x2dffef(_0x4a2488):_0x40b44d>0x3?_0x2dffef(_0x140751,_0x340c71,_0x4a2488):_0x2dffef(_0x140751,_0x340c71))||_0x4a2488;}return _0x40b44d>0x3&&_0x4a2488&&Object[_0x51c027(0x97)](_0x140751,_0x340c71,_0x4a2488),_0x4a2488;},__metadata=this&&this[a7_0xe046ca(0xb2)]||function(_0x29c1d3,_0x5f5dd7){var _0x2a869e=a7_0xe046ca;if(typeof Reflect===_0x2a869e(0x9b)&&typeof Reflect[_0x2a869e(0xad)]===_0x2a869e(0xa3))return Reflect[_0x2a869e(0xad)](_0x29c1d3,_0x5f5dd7);};Object[a7_0xe046ca(0x97)](exports,a7_0xe046ca(0xa8),{'value':!![]}),exports[a7_0xe046ca(0xac)]=void 0x0;function a7_0x386d(){var _0x3c1a64=['3796432BJRjnM','请求头信息不完整','网络繁忙,请稍后重试','HEADERS_LACK','function','TIMEOUT','__decorate','947320Asaill','HEADERS_CHECKCODE','__esModule','HEADERS_SIGNATURE','1955241pAqocO','189198JiXOxK','ApiError','metadata','2UotJqb','1953675aUxLju','522067uTjWyb','getOwnPropertyDescriptor','__metadata','请使用正确的设备','checkcode验证失败','defineProperty','decorate','18orQEMT','HEADERS_DEVICE','object','length','3445498RwcHpg','design:type'];a7_0x386d=function(){return _0x3c1a64;};return a7_0x386d();}class ApiError{}ApiError[a7_0xe046ca(0xa4)]=0x18a89,ApiError[a7_0xe046ca(0xa2)]=0x18a8a,ApiError[a7_0xe046ca(0x9a)]=0x18a8b,ApiError[a7_0xe046ca(0xa7)]=0x18a8c,ApiError[a7_0xe046ca(0xa9)]=0x18a8d,__decorate([AnnErrorMsg(a7_0xe046ca(0xa1)),__metadata(a7_0xe046ca(0x9e),Object)],ApiError,a7_0xe046ca(0xa4),void 0x0),__decorate([AnnErrorMsg(a7_0xe046ca(0xa0)),__metadata(a7_0xe046ca(0x9e),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0xe046ca(0xb3)),__metadata(a7_0xe046ca(0x9e),Object)],ApiError,a7_0xe046ca(0x9a),void 0x0),__decorate([AnnErrorMsg(a7_0xe046ca(0xb4)),__metadata(a7_0xe046ca(0x9e),Object)],ApiError,a7_0xe046ca(0xa7),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a7_0xe046ca(0xa9),void 0x0),exports['ApiError']=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x1349e1=a8_0x275a;(function(_0x30868c,_0x12eaa1){const _0x4f84ac=a8_0x275a,_0x24b0d0=_0x30868c();while(!![]){try{const _0x3f5a49=-parseInt(_0x4f84ac(0x177))/0x1+-parseInt(_0x4f84ac(0x1a5))/0x2+parseInt(_0x4f84ac(0x19b))/0x3*(parseInt(_0x4f84ac(0x1b1))/0x4)+-parseInt(_0x4f84ac(0x17d))/0x5+-parseInt(_0x4f84ac(0x185))/0x6*(parseInt(_0x4f84ac(0x1ac))/0x7)+parseInt(_0x4f84ac(0x186))/0x8+parseInt(_0x4f84ac(0x1bc))/0x9;if(_0x3f5a49===_0x12eaa1)break;else _0x24b0d0['push'](_0x24b0d0['shift']());}catch(_0x4c569b){_0x24b0d0['push'](_0x24b0d0['shift']());}}}(a8_0x4034,0x97971));function a8_0x275a(_0x20e747,_0x11828f){const _0x4034dc=a8_0x4034();return a8_0x275a=function(_0x275a7d,_0x19fa84){_0x275a7d=_0x275a7d-0x169;let _0x384e08=_0x4034dc[_0x275a7d];return _0x384e08;},a8_0x275a(_0x20e747,_0x11828f);}Object[a8_0x1349e1(0x16c)](exports,a8_0x1349e1(0x198),{'value':!![]}),exports[a8_0x1349e1(0x1ad)]=void 0x0;const lodash_1=require(a8_0x1349e1(0x16f)),validator_1=require(a8_0x1349e1(0x1a1)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x1349e1(0x174)),decorator_3=require(a8_0x1349e1(0x174)),action_1=require(a8_0x1349e1(0x191));function getRoutes(_0xe1a3e={'prefix':'/','module':![]}){const _0x568abd=a8_0x1349e1;var _0x49fe82,_0x2bef0a;const _0x2c1936=(0x0,decorator_3[_0x568abd(0x179)])(action_1[_0x568abd(0x1b3)]),_0x3cb96f={},_0x5aeb56=Array[_0x568abd(0x178)](_0xe1a3e[_0x568abd(0x189)]||[])?_0xe1a3e['filter']||[]:[_0xe1a3e['filter']];_0x276e74:for(const _0x152588 of _0x2c1936){let _0x636bc8=(0x0,decorator_3[_0x568abd(0x1b7)])(action_1[_0x568abd(0x1b3)],_0x152588),_0x3f0671=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x152588);if(_0x636bc8&&_0x3f0671){let _0x51bf1b=_0x636bc8[_0x568abd(0x1b5)],_0x36eb3b={};if(_0xe1a3e['module']&&(0x0,lodash_1[_0x568abd(0x1bd)])(_0x636bc8,_0x568abd(0x1ba),![])!=_0xe1a3e[_0x568abd(0x1ba)])continue _0x276e74;else{if(_0xe1a3e[_0x568abd(0x1ba)]===![]&&!!(0x0,lodash_1['get'])(_0x636bc8,_0x568abd(0x1ba),null))continue _0x276e74;}if(_0xe1a3e[_0x568abd(0x1b5)]&&!_0x51bf1b['startsWith'](_0xe1a3e[_0x568abd(0x1b5)]))continue _0x276e74;_0x51bf1b!=='/'?(_0x36eb3b[_0x568abd(0x194)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x19d)])||(/^\//[_0x568abd(0x173)](_0x51bf1b)?_0x51bf1b[_0x568abd(0x193)]('/')[0x1]:_0x51bf1b),_0x36eb3b[_0x568abd(0x1b6)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x1b6)])||_0x36eb3b[_0x568abd(0x194)],_0x36eb3b[_0x568abd(0x19e)]=[]):(_0x36eb3b['summary']=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8['routerOptions'][_0x568abd(0x19d)])||_0x568abd(0x197),_0x36eb3b[_0x568abd(0x1b6)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x1b6)])||'',_0x36eb3b[_0x568abd(0x19e)]=[]);_0xe1a3e[_0x568abd(0x1bf)]&&(_0x36eb3b[_0x568abd(0x1bf)]=_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1bf)]);(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1be)])&&(_0x36eb3b[_0x568abd(0x1b5)]=_0x636bc8[_0x568abd(0x1be)]);(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1ba)])&&(_0x36eb3b[_0x568abd(0x1ba)]=_0x636bc8[_0x568abd(0x1ba)]);let _0x579a6e=(0x0,decorator_3[_0x568abd(0x1b7)])(decorator_2[_0x568abd(0x187)],_0x152588)||{};if(typeof _0x3f0671[Symbol['iterator']]===_0x568abd(0x18c))for(let _0x58b696 of _0x3f0671){let _0x45fac={};_0x45fac[_0x568abd(0x17c)]=_0x58b696['requestMethod'],_0x45fac[_0x568abd(0x188)]=(_0x51bf1b+_0x58b696[_0x568abd(0x1c5)])[_0x568abd(0x190)](/\/{1,}/,'/'),_0x45fac[_0x568abd(0x194)]=(_0x58b696===null||_0x58b696===void 0x0?void 0x0:_0x58b696[_0x568abd(0x1c2)])||_0x36eb3b[_0x568abd(0x194)]||_0x568abd(0x197),_0x45fac['description']=(_0x58b696===null||_0x58b696===void 0x0?void 0x0:_0x58b696[_0x568abd(0x1b6)])||'',_0x45fac[_0x568abd(0x18d)]=[];if(!(0x0,lodash_1[_0x568abd(0x176)])(_0x45fac[_0x568abd(0x188)],_0x568abd(0x175))&&!(0x0,lodash_1['startsWith'])(_0x45fac[_0x568abd(0x188)],_0x568abd(0x1c7))&&_0x5aeb56['indexOf'](_0x45fac[_0x568abd(0x188)])===-0x1){if(!(_0xe1a3e===null||_0xe1a3e===void 0x0?void 0x0:_0xe1a3e['noreq'])){let _0x3c105e=(0x0,decorator_3[_0x568abd(0x18a)])(new _0x152588(),_0x58b696[_0x568abd(0x17c)]);for(const _0x352a8e in _0x3c105e){let _0x513e02=(_0x49fe82=_0x579a6e[_0x58b696[_0x568abd(0x17c)]])===null||_0x49fe82===void 0x0?void 0x0:_0x49fe82[_0x568abd(0x170)](_0x1cfeb4=>_0x1cfeb4[_0x568abd(0x195)]==_0x352a8e&&_0x1cfeb4[_0x568abd(0x1c1)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x1cfeb4===null||_0x1cfeb4===void 0x0?void 0x0:_0x1cfeb4[_0x568abd(0x182)]));if(_0x513e02===null||_0x513e02===void 0x0?void 0x0:_0x513e02['metadata']){let _0x127c87=convertTypeToString(_0x513e02['metadata'][_0x568abd(0x16b)]||0x0);if(['query',_0x568abd(0x18e)][_0x568abd(0x1c3)](_0x127c87)!=-0x1&&_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)]['indexOf'](':')==-0x1&&!_0x45fac[_0x568abd(0x18d)][_0x568abd(0x170)](_0x2f7236=>_0x2f7236[_0x568abd(0x1c1)]==_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)]))_0x45fac[_0x568abd(0x18d)]['push']({'key':_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)],'title':_0x513e02[_0x568abd(0x182)]['propertyData'],'type':convertSchemaType(_0x3c105e[_0x513e02[_0x568abd(0x195)]][_0x568abd(0x180)]),'required':![],'default':'','desc':''});else{if(_0x127c87==_0x568abd(0x1a7)){let _0x15f379=((_0x2bef0a=_0x513e02===null||_0x513e02===void 0x0?void 0x0:_0x513e02[_0x568abd(0x182)])===null||_0x2bef0a===void 0x0?void 0x0:_0x2bef0a[_0x568abd(0x1ab)])||_0x568abd(0x1a7);_0x15f379['indexOf'](':')==-0x1&&!_0x45fac['request']['find'](_0x3b4a20=>_0x3b4a20[_0x568abd(0x1c1)]==_0x15f379&&_0x3b4a20[_0x568abd(0x16b)]==_0x568abd(0x1a7))&&_0x45fac['request'][_0x568abd(0x172)]({'key':_0x15f379,'title':'文件上传-'+_0x15f379,'type':_0x568abd(0x1a7),'required':!![],'default':'','desc':''});}}}else{const _0x3febd8=(0x0,decorator_3[_0x568abd(0x192)])(validator_1[_0x568abd(0x1b4)],_0x3c105e[_0x352a8e]);_0x3febd8&&_0x45fac['request'][_0x568abd(0x172)](...getJoiRequest(_0x3febd8));}}}_0x36eb3b['routes'][_0x568abd(0x172)](_0x45fac);}}if(_0x36eb3b[_0x568abd(0x19e)][_0x568abd(0x1b2)]>0x0){let _0x2ef07f=_0x3cb96f[_0x51bf1b];_0x2ef07f?(_0x2ef07f[_0x568abd(0x194)]!=_0x36eb3b['summary']&&(_0x2ef07f['summary']=_0x2ef07f['summary']+','+_0x36eb3b[_0x568abd(0x194)]),_0x2ef07f[_0x568abd(0x1b6)]!=_0x36eb3b[_0x568abd(0x1b6)]&&(_0x2ef07f[_0x568abd(0x1b6)]=_0x2ef07f['description']+','+_0x36eb3b[_0x568abd(0x1b6)]),_0x2ef07f['routes']=_0x2ef07f['routes'][_0x568abd(0x1a9)](_0x36eb3b['routes']),_0x3cb96f[_0x51bf1b]=_0x2ef07f):_0x3cb96f[_0x51bf1b]=_0x36eb3b;}}}return _0x3cb96f;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x5c8362){const _0x22076b=a8_0x1349e1,_0x5688b8=[];for(let _0x11d2db in _0x5c8362){const _0x14ff65={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x34c7a5=typeof _0x5c8362[_0x11d2db]['describe']=='function'?_0x5c8362[_0x11d2db][_0x22076b(0x16a)]():_0x5c8362[_0x11d2db];_0x14ff65[_0x22076b(0x1c1)]=_0x11d2db,_0x14ff65['type']=_0x34c7a5['type'],_0x14ff65[_0x22076b(0x1b8)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,_0x22076b(0x18f),_0x11d2db),_0x14ff65[_0x22076b(0x197)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,'flags.default',''),_0x14ff65[_0x22076b(0x1b9)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,'flags.presence','')==_0x22076b(0x1b9),_0x14ff65[_0x22076b(0x1b6)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,_0x22076b(0x19a),'');if(_0x34c7a5[_0x22076b(0x16b)]==_0x22076b(0x181))_0x14ff65[_0x22076b(0x1c4)]=getJoiRequest(_0x34c7a5[_0x22076b(0x19f)]);else _0x34c7a5[_0x22076b(0x16b)]==_0x22076b(0x16d)&&_0x34c7a5[_0x22076b(0x1ae)]&&Array[_0x22076b(0x178)](_0x34c7a5['items'])&&_0x34c7a5[_0x22076b(0x1ae)][0x0]&&console[_0x22076b(0x19c)](_0x11d2db+_0x22076b(0x171),_0x34c7a5);_0x34c7a5[_0x22076b(0x1af)]&&Array[_0x22076b(0x178)](_0x34c7a5['allow'])&&_0x34c7a5[_0x22076b(0x1af)][_0x22076b(0x1b2)]>0x0&&(_0x14ff65['description']=_0x22076b(0x17a)+_0x34c7a5['allow'][_0x22076b(0x17b)](',')+'];'+_0x14ff65[_0x22076b(0x1b6)]);if(_0x14ff65['key']&&_0x14ff65[_0x22076b(0x16b)]){const _0x54d69d={};for(const _0xfcf55a of _0x34c7a5[_0x22076b(0x17f)]||[]){if(_0xfcf55a[_0x22076b(0x180)]===_0x22076b(0x16e)&&_0xfcf55a['args'])_0x54d69d[_0x22076b(0x16e)]=_0xfcf55a[_0x22076b(0x199)][_0x22076b(0x1b0)];else _0xfcf55a[_0x22076b(0x180)]===_0x22076b(0x1c6)&&(_0x54d69d[_0x22076b(0x1c6)]=_0xfcf55a[_0x22076b(0x199)]['limit']);}_0x14ff65[_0x22076b(0x17f)]=_0x54d69d;}_0x14ff65[_0x22076b(0x1c1)]&&_0x14ff65[_0x22076b(0x1b8)]&&_0x5688b8[_0x22076b(0x172)](_0x14ff65);}return _0x5688b8;}function convertSchemaType(_0x5a206b){const _0xf80bc9=a8_0x1349e1;switch(_0x5a206b){case'Object':return _0xf80bc9(0x181);case _0xf80bc9(0x17e):return _0xf80bc9(0x1bb);case _0xf80bc9(0x1a8):return _0xf80bc9(0x18b);case _0xf80bc9(0x1a3):return _0xf80bc9(0x169);case _0xf80bc9(0x183):return'file';default:return'string';}}function convertTypeToString(_0x232746){const _0x2bc746=a8_0x1349e1;switch(_0x232746){case decorator_1[_0x2bc746(0x1a6)]['HEADERS']:return _0x2bc746(0x1a2);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x1aa)]:return _0x2bc746(0x1c0);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x1a4)]:return _0x2bc746(0x1c5);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x184)]:return _0x2bc746(0x18e);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x196)]:case decorator_1[_0x2bc746(0x1a6)]['FILESSTREAM']:case decorator_1['RouteParamTypes']['FILESTREAM']:return _0x2bc746(0x1a7);default:return _0x2bc746(0x1a2);}}function a8_0x4034(){const _0x270a12=['method','2190410sSMJVQ','Boolean','rules','name','object','metadata','File','BODY','819294fZDynR','7188208Tgiund','INJECT_CUSTOM_PARAM','route','filter','getMethodParamTypes','number','function','request','body','flags.label','replace','../types/action','getClassExtendedMetadata','split','summary','parameterIndex','FIELDS','default','__esModule','args','flags.description','633juhcGM','log','tagName','routes','keys','routerOptions','@anncic-api/validator','header','String','PARAM','2114024PhooSm','RouteParamTypes','file','Number','concat','QUERY','propertyData','14MNFCQu','getRoutes','items','allow','limit','13096CRyYND','length','ACTION_KEY','RULES_KEY','prefix','description','getClassMetadata','title','required','module','boolean','9566595FrRVDc','get','pprefix','filepath','query','key','routerName','indexOf','children','path','max','/static/apitest','string','describe','type','defineProperty','array','min','lodash','find','-array','push','test','@midwayjs/decorator','static/apitest','startsWith','263190VMeELg','isArray','listModule','只允许:[','join'];a8_0x4034=function(){return _0x270a12;};return a8_0x4034();}
|
|
1
|
+
'use strict';const a8_0x4ae659=a8_0x57a1;(function(_0x312ad3,_0x17691b){const _0x2c6a7d=a8_0x57a1,_0x4d3b33=_0x312ad3();while(!![]){try{const _0x341698=-parseInt(_0x2c6a7d(0x1e7))/0x1+parseInt(_0x2c6a7d(0x202))/0x2*(-parseInt(_0x2c6a7d(0x1e9))/0x3)+-parseInt(_0x2c6a7d(0x1b1))/0x4*(parseInt(_0x2c6a7d(0x1f5))/0x5)+-parseInt(_0x2c6a7d(0x1bd))/0x6+parseInt(_0x2c6a7d(0x1b6))/0x7+-parseInt(_0x2c6a7d(0x1f3))/0x8*(-parseInt(_0x2c6a7d(0x1fd))/0x9)+parseInt(_0x2c6a7d(0x1fe))/0xa;if(_0x341698===_0x17691b)break;else _0x4d3b33['push'](_0x4d3b33['shift']());}catch(_0x2b4323){_0x4d3b33['push'](_0x4d3b33['shift']());}}}(a8_0x2ec2,0x7b876));function a8_0x2ec2(){const _0x31126e=['boolean','56IQHCMS','BODY','230kLnVcG','body','tagName','allow','startsWith','concat','object','metadata','479970LMPkKK','15667030rbgHxt','RULES_KEY','log','只允许:[','2762ouncmS','length','prefix','join','default','indexOf','QUERY','routes','filter','PARAM','routerName','47140hVqGTV','rules','RouteParamTypes','lodash','route','4750123HUDnnA','propertyData','static/apitest','min','getClassMetadata','array','flags.presence','3162672GFDhMm','string','flags.default','args','iterator','file','replace','-array','INJECT_CUSTOM_PARAM','split','type','Number','header','FIELDS','module','describe','ACTION_KEY','function','flags.description','find','@midwayjs/decorator','name','FILESTREAM','@anncic-api/validator','max','method','routerOptions','isArray','items','limit','description','getRoutes','required','HEADERS','FILESSTREAM','requestMethod','push','summary','String','test','title','listModule','810017JqJFfn','/static/apitest','507NMeUsi','get','getMethodParamTypes','File','key','filepath','request','query','pprefix'];a8_0x2ec2=function(){return _0x31126e;};return a8_0x2ec2();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x4ae659(0x1b4)),validator_1=require(a8_0x4ae659(0x1d4)),decorator_1=require(a8_0x4ae659(0x1d1)),decorator_2=require(a8_0x4ae659(0x1d1)),decorator_3=require(a8_0x4ae659(0x1d1)),action_1=require('../types/action');function getRoutes(_0x4aea72={'prefix':'/','module':![]}){const _0x59627b=a8_0x4ae659;var _0x45a9b6,_0x34b308;const _0x299bc1=(0x0,decorator_3[_0x59627b(0x1e6)])(action_1[_0x59627b(0x1cd)]),_0x57d9bd={},_0x1b8f7f=Array[_0x59627b(0x1d8)](_0x4aea72['filter']||[])?_0x4aea72[_0x59627b(0x1ae)]||[]:[_0x4aea72[_0x59627b(0x1ae)]];_0x219f68:for(const _0x17c4a2 of _0x299bc1){let _0x59cb17=(0x0,decorator_3[_0x59627b(0x1ba)])(action_1[_0x59627b(0x1cd)],_0x17c4a2),_0x1de09f=(0x0,decorator_3[_0x59627b(0x1ba)])(action_1['ACTION_ROUTE_KEY'],_0x17c4a2);if(_0x59cb17&&_0x1de09f){let _0x3abc11=_0x59cb17['prefix'],_0x22d9db={};if(_0x4aea72['module']&&(0x0,lodash_1[_0x59627b(0x1ea)])(_0x59cb17,_0x59627b(0x1cb),![])!=_0x4aea72[_0x59627b(0x1cb)])continue _0x219f68;else{if(_0x4aea72[_0x59627b(0x1cb)]===![]&&!!(0x0,lodash_1[_0x59627b(0x1ea)])(_0x59cb17,_0x59627b(0x1cb),null))continue _0x219f68;}if(_0x4aea72[_0x59627b(0x204)]&&!_0x3abc11[_0x59627b(0x1f9)](_0x4aea72[_0x59627b(0x204)]))continue _0x219f68;_0x3abc11!=='/'?(_0x22d9db['summary']=(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1d7)][_0x59627b(0x1f7)])||(/^\//[_0x59627b(0x1e4)](_0x3abc11)?_0x3abc11[_0x59627b(0x1c6)]('/')[0x1]:_0x3abc11),_0x22d9db[_0x59627b(0x1db)]=(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1d7)]['description'])||_0x22d9db[_0x59627b(0x1e2)],_0x22d9db[_0x59627b(0x1ad)]=[]):(_0x22d9db[_0x59627b(0x1e2)]=(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1d7)]['tagName'])||'default',_0x22d9db['description']=(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1d7)]['description'])||'',_0x22d9db[_0x59627b(0x1ad)]=[]);_0x4aea72['filepath']&&(_0x22d9db[_0x59627b(0x1ee)]=_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1ee)]);(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1f1)])&&(_0x22d9db['prefix']=_0x59cb17[_0x59627b(0x1f1)]);(_0x59cb17===null||_0x59cb17===void 0x0?void 0x0:_0x59cb17[_0x59627b(0x1cb)])&&(_0x22d9db[_0x59627b(0x1cb)]=_0x59cb17['module']);let _0x4d4683=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x59627b(0x1c5)],_0x17c4a2)||{};if(typeof _0x1de09f[Symbol[_0x59627b(0x1c1)]]===_0x59627b(0x1ce))for(let _0x153967 of _0x1de09f){let _0x240698={};_0x240698[_0x59627b(0x1d6)]=_0x153967[_0x59627b(0x1e0)],_0x240698['route']=(_0x3abc11+_0x153967['path'])[_0x59627b(0x1c3)](/\/{1,}/,'/'),_0x240698[_0x59627b(0x1e2)]=(_0x153967===null||_0x153967===void 0x0?void 0x0:_0x153967[_0x59627b(0x1b0)])||_0x22d9db['summary']||_0x59627b(0x1aa),_0x240698[_0x59627b(0x1db)]=(_0x153967===null||_0x153967===void 0x0?void 0x0:_0x153967['description'])||'',_0x240698['request']=[];if(!(0x0,lodash_1[_0x59627b(0x1f9)])(_0x240698['route'],_0x59627b(0x1b8))&&!(0x0,lodash_1[_0x59627b(0x1f9)])(_0x240698[_0x59627b(0x1b5)],_0x59627b(0x1e8))&&_0x1b8f7f['indexOf'](_0x240698[_0x59627b(0x1b5)])===-0x1){if(!(_0x4aea72===null||_0x4aea72===void 0x0?void 0x0:_0x4aea72['noreq'])){let _0x16c82a=(0x0,decorator_3[_0x59627b(0x1eb)])(new _0x17c4a2(),_0x153967[_0x59627b(0x1d6)]);for(const _0x2cc36e in _0x16c82a){let _0xdb97f=(_0x45a9b6=_0x4d4683[_0x153967[_0x59627b(0x1d6)]])===null||_0x45a9b6===void 0x0?void 0x0:_0x45a9b6[_0x59627b(0x1d0)](_0x346a6d=>_0x346a6d['parameterIndex']==_0x2cc36e&&_0x346a6d['key']===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x346a6d===null||_0x346a6d===void 0x0?void 0x0:_0x346a6d[_0x59627b(0x1fc)]));if(_0xdb97f===null||_0xdb97f===void 0x0?void 0x0:_0xdb97f[_0x59627b(0x1fc)]){let _0x1e4b03=convertTypeToString(_0xdb97f[_0x59627b(0x1fc)][_0x59627b(0x1c7)]||0x0);if([_0x59627b(0x1f0),'body'][_0x59627b(0x1ab)](_0x1e4b03)!=-0x1&&_0xdb97f[_0x59627b(0x1fc)]['propertyData']['indexOf'](':')==-0x1&&!_0x240698['request']['find'](_0x3253f8=>_0x3253f8[_0x59627b(0x1ed)]==_0xdb97f[_0x59627b(0x1fc)]['propertyData']))_0x240698[_0x59627b(0x1ef)]['push']({'key':_0xdb97f[_0x59627b(0x1fc)][_0x59627b(0x1b7)],'title':_0xdb97f[_0x59627b(0x1fc)][_0x59627b(0x1b7)],'type':convertSchemaType(_0x16c82a[_0xdb97f['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x1e4b03=='file'){let _0xe1681b=((_0x34b308=_0xdb97f===null||_0xdb97f===void 0x0?void 0x0:_0xdb97f[_0x59627b(0x1fc)])===null||_0x34b308===void 0x0?void 0x0:_0x34b308[_0x59627b(0x1b7)])||'file';_0xe1681b[_0x59627b(0x1ab)](':')==-0x1&&!_0x240698['request'][_0x59627b(0x1d0)](_0xd9cb33=>_0xd9cb33[_0x59627b(0x1ed)]==_0xe1681b&&_0xd9cb33[_0x59627b(0x1c7)]==_0x59627b(0x1c2))&&_0x240698[_0x59627b(0x1ef)]['push']({'key':_0xe1681b,'title':'文件上传-'+_0xe1681b,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5f3ad0=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x59627b(0x1ff)],_0x16c82a[_0x2cc36e]);_0x5f3ad0&&_0x240698[_0x59627b(0x1ef)]['push'](...getJoiRequest(_0x5f3ad0));}}}_0x22d9db[_0x59627b(0x1ad)]['push'](_0x240698);}}if(_0x22d9db[_0x59627b(0x1ad)][_0x59627b(0x203)]>0x0){let _0x4e11fb=_0x57d9bd[_0x3abc11];_0x4e11fb?(_0x4e11fb[_0x59627b(0x1e2)]!=_0x22d9db['summary']&&(_0x4e11fb['summary']=_0x4e11fb['summary']+','+_0x22d9db[_0x59627b(0x1e2)]),_0x4e11fb[_0x59627b(0x1db)]!=_0x22d9db[_0x59627b(0x1db)]&&(_0x4e11fb[_0x59627b(0x1db)]=_0x4e11fb[_0x59627b(0x1db)]+','+_0x22d9db[_0x59627b(0x1db)]),_0x4e11fb[_0x59627b(0x1ad)]=_0x4e11fb['routes'][_0x59627b(0x1fa)](_0x22d9db[_0x59627b(0x1ad)]),_0x57d9bd[_0x3abc11]=_0x4e11fb):_0x57d9bd[_0x3abc11]=_0x22d9db;}}}return _0x57d9bd;}exports[a8_0x4ae659(0x1dc)]=getRoutes;function getJoiRequest(_0x2fe2a6){const _0x1e03b6=a8_0x4ae659,_0x2e5e9e=[];for(let _0x189065 in _0x2fe2a6){const _0x1595da={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x3e988d=typeof _0x2fe2a6[_0x189065][_0x1e03b6(0x1cc)]==_0x1e03b6(0x1ce)?_0x2fe2a6[_0x189065][_0x1e03b6(0x1cc)]():_0x2fe2a6[_0x189065];_0x1595da[_0x1e03b6(0x1ed)]=_0x189065,_0x1595da[_0x1e03b6(0x1c7)]=_0x3e988d[_0x1e03b6(0x1c7)],_0x1595da['title']=(0x0,lodash_1[_0x1e03b6(0x1ea)])(_0x3e988d,'flags.label',_0x189065),_0x1595da[_0x1e03b6(0x1aa)]=(0x0,lodash_1[_0x1e03b6(0x1ea)])(_0x3e988d,_0x1e03b6(0x1bf),''),_0x1595da[_0x1e03b6(0x1dd)]=(0x0,lodash_1[_0x1e03b6(0x1ea)])(_0x3e988d,_0x1e03b6(0x1bc),'')=='required',_0x1595da[_0x1e03b6(0x1db)]=(0x0,lodash_1[_0x1e03b6(0x1ea)])(_0x3e988d,_0x1e03b6(0x1cf),'');if(_0x3e988d[_0x1e03b6(0x1c7)]==_0x1e03b6(0x1fb))_0x1595da['children']=getJoiRequest(_0x3e988d['keys']);else _0x3e988d[_0x1e03b6(0x1c7)]==_0x1e03b6(0x1bb)&&_0x3e988d[_0x1e03b6(0x1d9)]&&Array[_0x1e03b6(0x1d8)](_0x3e988d[_0x1e03b6(0x1d9)])&&_0x3e988d[_0x1e03b6(0x1d9)][0x0]&&console[_0x1e03b6(0x200)](_0x189065+_0x1e03b6(0x1c4),_0x3e988d);_0x3e988d['allow']&&Array['isArray'](_0x3e988d[_0x1e03b6(0x1f8)])&&_0x3e988d['allow'][_0x1e03b6(0x203)]>0x0&&(_0x1595da['description']=_0x1e03b6(0x201)+_0x3e988d[_0x1e03b6(0x1f8)][_0x1e03b6(0x205)](',')+'];'+_0x1595da['description']);if(_0x1595da[_0x1e03b6(0x1ed)]&&_0x1595da[_0x1e03b6(0x1c7)]){const _0x26c1ea={};for(const _0x7066b3 of _0x3e988d[_0x1e03b6(0x1b2)]||[]){if(_0x7066b3[_0x1e03b6(0x1d2)]==='min'&&_0x7066b3[_0x1e03b6(0x1c0)])_0x26c1ea[_0x1e03b6(0x1b9)]=_0x7066b3[_0x1e03b6(0x1c0)][_0x1e03b6(0x1da)];else _0x7066b3['name']===_0x1e03b6(0x1d5)&&(_0x26c1ea[_0x1e03b6(0x1d5)]=_0x7066b3[_0x1e03b6(0x1c0)]['limit']);}_0x1595da['rules']=_0x26c1ea;}_0x1595da[_0x1e03b6(0x1ed)]&&_0x1595da[_0x1e03b6(0x1e5)]&&_0x2e5e9e[_0x1e03b6(0x1e1)](_0x1595da);}return _0x2e5e9e;}function convertSchemaType(_0x4d4359){const _0x1f0b10=a8_0x4ae659;switch(_0x4d4359){case'Object':return _0x1f0b10(0x1fb);case'Boolean':return _0x1f0b10(0x1f2);case _0x1f0b10(0x1c8):return'number';case _0x1f0b10(0x1e3):return _0x1f0b10(0x1be);case _0x1f0b10(0x1ec):return _0x1f0b10(0x1c2);default:return _0x1f0b10(0x1be);}}function a8_0x57a1(_0x3d9fef,_0x14021a){const _0x2ec2ae=a8_0x2ec2();return a8_0x57a1=function(_0x57a132,_0x55218d){_0x57a132=_0x57a132-0x1aa;let _0x4f00c5=_0x2ec2ae[_0x57a132];return _0x4f00c5;},a8_0x57a1(_0x3d9fef,_0x14021a);}function convertTypeToString(_0x369661){const _0x1d827e=a8_0x4ae659;switch(_0x369661){case decorator_1['RouteParamTypes'][_0x1d827e(0x1de)]:return _0x1d827e(0x1c9);case decorator_1[_0x1d827e(0x1b3)][_0x1d827e(0x1ac)]:return _0x1d827e(0x1f0);case decorator_1[_0x1d827e(0x1b3)][_0x1d827e(0x1af)]:return'path';case decorator_1[_0x1d827e(0x1b3)][_0x1d827e(0x1f4)]:return _0x1d827e(0x1f6);case decorator_1['RouteParamTypes'][_0x1d827e(0x1ca)]:case decorator_1[_0x1d827e(0x1b3)][_0x1d827e(0x1df)]:case decorator_1[_0x1d827e(0x1b3)][_0x1d827e(0x1d3)]:return _0x1d827e(0x1c2);default:return _0x1d827e(0x1c9);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a9_0x4940(){var _0x2d7feb=['default','File','./decorator/ActionApi','3381627mbAtnB','@anncic-api/cache','Action','@anncic-api/event','call','./service/ExcelService','ScopeEnum','get','Headers','create','Provide','Inject','7EnacJj','6356176CVXZsy','10XhEBhy','hasOwnProperty','CustomConfiguration','CacheService','3402234FLNGdO','defineProperty','./types/common','Body','__esModule','getOwnPropertyDescriptor','Config','Api','@anncic-api/validator','Param','writable','prototype','490680RSBXar','./decorator/Action','Apitest','getRoutes','ApiError','configurable','./configuration','Configuration','Fields','Scope','4787712YqVfbz','./service/ApiService','Query','Logger','ValidatorService','153403GJJoox','__createBinding','4DoWUJT','./exception/ApiError','@midwayjs/decorator','8097770mICsCi','QueueService','Files','App','ApiService','ExcelService','EventService','./helper/getRoutes','Init','ValidatorError'];a9_0x4940=function(){return _0x2d7feb;};return a9_0x4940();}var a9_0x71f467=a9_0x54b2;(function(_0x50b93f,_0x4f87fb){var _0x51e2b6=a9_0x54b2,_0x455aed=_0x50b93f();while(!![]){try{var _0x1199fb=-parseInt(_0x51e2b6(0x83))/0x1+-parseInt(_0x51e2b6(0x74))/0x2+parseInt(_0x51e2b6(0x95))/0x3*(parseInt(_0x51e2b6(0x85))/0x4)+parseInt(_0x51e2b6(0xa3))/0x5*(-parseInt(_0x51e2b6(0x68))/0x6)+-parseInt(_0x51e2b6(0xa1))/0x7*(-parseInt(_0x51e2b6(0xa2))/0x8)+-parseInt(_0x51e2b6(0x7e))/0x9+parseInt(_0x51e2b6(0x88))/0xa;if(_0x1199fb===_0x4f87fb)break;else _0x455aed['push'](_0x455aed['shift']());}catch(_0x1399d5){_0x455aed['push'](_0x455aed['shift']());}}}(a9_0x4940,0xa2c5f));var __createBinding=this&&this[a9_0x71f467(0x84)]||(Object[a9_0x71f467(0x9e)]?function(_0x5c62a3,_0x3b38b5,_0x4c58f7,_0x4478f7){var _0x5914e=a9_0x71f467;if(_0x4478f7===undefined)_0x4478f7=_0x4c58f7;var _0x5d4f86=Object[_0x5914e(0x6d)](_0x3b38b5,_0x4c58f7);(!_0x5d4f86||(_0x5914e(0x9c)in _0x5d4f86?!_0x3b38b5[_0x5914e(0x6c)]:_0x5d4f86[_0x5914e(0x72)]||_0x5d4f86[_0x5914e(0x79)]))&&(_0x5d4f86={'enumerable':!![],'get':function(){return _0x3b38b5[_0x4c58f7];}}),Object[_0x5914e(0x69)](_0x5c62a3,_0x4478f7,_0x5d4f86);}:function(_0x357fcc,_0x20b93b,_0x14b3cb,_0x343a27){if(_0x343a27===undefined)_0x343a27=_0x14b3cb;_0x357fcc[_0x343a27]=_0x20b93b[_0x14b3cb];}),__exportStar=this&&this['__exportStar']||function(_0x22e26b,_0x258b77){var _0x32f331=a9_0x71f467;for(var _0x355c2e in _0x22e26b)if(_0x355c2e!==_0x32f331(0x92)&&!Object[_0x32f331(0x73)][_0x32f331(0xa4)][_0x32f331(0x99)](_0x258b77,_0x355c2e))__createBinding(_0x258b77,_0x22e26b,_0x355c2e);};Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x6c),{'value':!![]}),exports[a9_0x71f467(0x9b)]=exports[a9_0x71f467(0x7d)]=exports[a9_0x71f467(0xa0)]=exports[a9_0x71f467(0x9f)]=exports[a9_0x71f467(0x81)]=exports[a9_0x71f467(0x6e)]=exports[a9_0x71f467(0x8b)]=exports[a9_0x71f467(0x90)]=exports['Headers']=exports['Query']=exports[a9_0x71f467(0x71)]=exports[a9_0x71f467(0x6b)]=exports[a9_0x71f467(0x7c)]=exports[a9_0x71f467(0x8a)]=exports[a9_0x71f467(0x93)]=exports['Configuration']=exports[a9_0x71f467(0x82)]=exports[a9_0x71f467(0x91)]=exports[a9_0x71f467(0x8d)]=exports[a9_0x71f467(0x8c)]=exports['EventService']=exports['CacheService']=exports[a9_0x71f467(0x89)]=exports[a9_0x71f467(0x78)]=exports[a9_0x71f467(0x76)]=exports['Action']=exports[a9_0x71f467(0x6f)]=exports[a9_0x71f467(0x77)]=void 0x0,__exportStar(require(a9_0x71f467(0x6a)),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require(a9_0x71f467(0x8f));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x77),{'enumerable':!![],'get':function(){var _0xdffa6b=a9_0x71f467;return getRoutes_1[_0xdffa6b(0x77)];}});var ActionApi_1=require(a9_0x71f467(0x94));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x6f),{'enumerable':!![],'get':function(){var _0x46caac=a9_0x71f467;return ActionApi_1[_0x46caac(0x6f)];}});function a9_0x54b2(_0x1ba8e1,_0xead00c){var _0x494038=a9_0x4940();return a9_0x54b2=function(_0x54b228,_0x4e5b4c){_0x54b228=_0x54b228-0x67;var _0x1b77aa=_0x494038[_0x54b228];return _0x1b77aa;},a9_0x54b2(_0x1ba8e1,_0xead00c);}var Action_1=require(a9_0x71f467(0x75));Object['defineProperty'](exports,a9_0x71f467(0x97),{'enumerable':!![],'get':function(){var _0x86e0fb=a9_0x71f467;return Action_1[_0x86e0fb(0x97)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x76),{'enumerable':!![],'get':function(){var _0x2cf873=a9_0x71f467;return ActionApitest_1[_0x2cf873(0x76)];}});var ApiError_1=require(a9_0x71f467(0x86));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x78),{'enumerable':!![],'get':function(){return ApiError_1['ApiError'];}});var task_1=require('@midwayjs/task');Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x89),{'enumerable':!![],'get':function(){var _0x177b55=a9_0x71f467;return task_1[_0x177b55(0x89)];}});var cache_1=require(a9_0x71f467(0x96));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x67),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a9_0x71f467(0x98));Object[a9_0x71f467(0x69)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x19de39=a9_0x71f467;return event_1[_0x19de39(0x8e)];}});var ApiService_1=require(a9_0x71f467(0x7f));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x8c),{'enumerable':!![],'get':function(){var _0x527d6a=a9_0x71f467;return ApiService_1[_0x527d6a(0x8c)];}});var ExcelService_1=require(a9_0x71f467(0x9a));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x8d),{'enumerable':!![],'get':function(){var _0x4ba8f7=a9_0x71f467;return ExcelService_1[_0x4ba8f7(0x8d)];}});var validator_1=require(a9_0x71f467(0x70));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x91),{'enumerable':!![],'get':function(){var _0x230235=a9_0x71f467;return validator_1[_0x230235(0x91)];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x82),{'enumerable':!![],'get':function(){var _0x1561f3=a9_0x71f467;return validator_1[_0x1561f3(0x82)];}});var configuration_1=require(a9_0x71f467(0x7a));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x7b),{'enumerable':!![],'get':function(){var _0x4dce37=a9_0x71f467;return configuration_1[_0x4dce37(0xa5)];}});var decorator_1=require(a9_0x71f467(0x87));Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x93),{'enumerable':!![],'get':function(){return decorator_1['File'];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x8a),{'enumerable':!![],'get':function(){var _0x4fc2e9=a9_0x71f467;return decorator_1[_0x4fc2e9(0x8a)];}}),Object[a9_0x71f467(0x69)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x9c444b=a9_0x71f467;return decorator_1[_0x9c444b(0x7c)];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x6b),{'enumerable':!![],'get':function(){var _0x50b94c=a9_0x71f467;return decorator_1[_0x50b94c(0x6b)];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x71),{'enumerable':!![],'get':function(){var _0x2fff34=a9_0x71f467;return decorator_1[_0x2fff34(0x71)];}}),Object['defineProperty'](exports,a9_0x71f467(0x80),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x9d),{'enumerable':!![],'get':function(){var _0x22650e=a9_0x71f467;return decorator_1[_0x22650e(0x9d)];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x90),{'enumerable':!![],'get':function(){var _0x45fe2c=a9_0x71f467;return decorator_1[_0x45fe2c(0x90)];}});var decorator_2=require('@midwayjs/decorator');Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x8b),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x6e),{'enumerable':!![],'get':function(){var _0x47b32e=a9_0x71f467;return decorator_2[_0x47b32e(0x6e)];}}),Object['defineProperty'](exports,a9_0x71f467(0x81),{'enumerable':!![],'get':function(){var _0x2b4436=a9_0x71f467;return decorator_2[_0x2b4436(0x81)];}}),Object[a9_0x71f467(0x69)](exports,a9_0x71f467(0x9f),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object[a9_0x71f467(0x69)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x9d9e16=a9_0x71f467;return decorator_2[_0x9d9e16(0xa0)];}}),Object['defineProperty'](exports,a9_0x71f467(0x7d),{'enumerable':!![],'get':function(){var _0x431e52=a9_0x71f467;return decorator_2[_0x431e52(0x7d)];}}),Object['defineProperty'](exports,a9_0x71f467(0x9b),{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x18e653=a10_0x1dd0;(function(_0x11c981,_0x3489af){var _0x3a496f=a10_0x1dd0,_0x22084a=_0x11c981();while(!![]){try{var _0x5681e6=-parseInt(_0x3a496f(0x1b7))/0x1*(-parseInt(_0x3a496f(0x18f))/0x2)+parseInt(_0x3a496f(0x1b2))/0x3+-parseInt(_0x3a496f(0x19d))/0x4+parseInt(_0x3a496f(0x1c1))/0x5+parseInt(_0x3a496f(0x198))/0x6+parseInt(_0x3a496f(0x1b9))/0x7*(parseInt(_0x3a496f(0x1ad))/0x8)+-parseInt(_0x3a496f(0x1bf))/0x9;if(_0x5681e6===_0x3489af)break;else _0x22084a['push'](_0x22084a['shift']());}catch(_0x5bd5cb){_0x22084a['push'](_0x22084a['shift']());}}}(a10_0x5046,0xc9dba));var __decorate=this&&this[a10_0x18e653(0x191)]||function(_0x4c0303,_0x557cab,_0x16c319,_0x124709){var _0x4be11a=a10_0x18e653,_0x333115=arguments[_0x4be11a(0x18e)],_0x4bbebc=_0x333115<0x3?_0x557cab:_0x124709===null?_0x124709=Object[_0x4be11a(0x19b)](_0x557cab,_0x16c319):_0x124709,_0x49a47c;if(typeof Reflect===_0x4be11a(0x193)&&typeof Reflect[_0x4be11a(0x1bc)]==='function')_0x4bbebc=Reflect[_0x4be11a(0x1bc)](_0x4c0303,_0x557cab,_0x16c319,_0x124709);else{for(var _0xeeadf6=_0x4c0303[_0x4be11a(0x18e)]-0x1;_0xeeadf6>=0x0;_0xeeadf6--)if(_0x49a47c=_0x4c0303[_0xeeadf6])_0x4bbebc=(_0x333115<0x3?_0x49a47c(_0x4bbebc):_0x333115>0x3?_0x49a47c(_0x557cab,_0x16c319,_0x4bbebc):_0x49a47c(_0x557cab,_0x16c319))||_0x4bbebc;}return _0x333115>0x3&&_0x4bbebc&&Object[_0x4be11a(0x1b6)](_0x557cab,_0x16c319,_0x4bbebc),_0x4bbebc;},__metadata=this&&this['__metadata']||function(_0x3cf00c,_0x41b7d1){var _0x37697d=a10_0x18e653;if(typeof Reflect===_0x37697d(0x193)&&typeof Reflect[_0x37697d(0x19f)]===_0x37697d(0x190))return Reflect[_0x37697d(0x19f)](_0x3cf00c,_0x41b7d1);};function a10_0x5046(){var _0x9d799=['secret','toString','prototype','612102ALuuFZ','checkcode','requesttime','devices','defineProperty','1223113uLMwhA','signature','14RCVJeN','缺少头信息:signature','password','decorate','abs','push','29412891fyCknv','config','2238245CNwCuz','device','checksign','length','2xTDRqM','function','__decorate','ScopeEnum','object','getsign','now','../exception/ApiError','join','5866968BdDFRb','Provide','logintime','getOwnPropertyDescriptor','HEADERS_CHECKCODE','388172ERUPfb','HEADERS_LACK','metadata','__esModule','entries','HEADERS_DEVICE','secret=','fromEntries','token','Singleton','map','undefined','ApiError','缺少头信息:','toLowerCase','MD5','5357312TnEvrF','ApiService'];a10_0x5046=function(){return _0x9d799;};return a10_0x5046();}Object[a10_0x18e653(0x1b6)](exports,a10_0x18e653(0x1a0),{'value':!![]}),exports[a10_0x18e653(0x1ae)]=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x18e653(0x196));function a10_0x1dd0(_0x37ff0e,_0x452678){var _0x504686=a10_0x5046();return a10_0x1dd0=function(_0x1dd0a6,_0x4f901e){_0x1dd0a6=_0x1dd0a6-0x18d;var _0x3d7252=_0x504686[_0x1dd0a6];return _0x3d7252;},a10_0x1dd0(_0x37ff0e,_0x452678);}let ApiService=class ApiService{[a10_0x18e653(0x1bb)](_0x1745e1){var _0x13b467=a10_0x18e653,_0x2031c3;return _0x1745e1?(0x0,crypto_js_1[_0x13b467(0x1ac)])(_0x1745e1+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x1745e1)[_0x13b467(0x1b0)]()+((_0x2031c3=this[_0x13b467(0x1c0)])===null||_0x2031c3===void 0x0?void 0x0:_0x2031c3[_0x13b467(0x1bb)]))[_0x13b467(0x1b0)]())[_0x13b467(0x1b0)]():'';}['getcheck'](_0x35b79c,_0x48b59c,_0x38048e=Date[a10_0x18e653(0x195)]()){return{'Token':_0x35b79c,'Logintime':_0x38048e,'Checkcode':this['checkcode'](_0x35b79c,_0x48b59c,_0x38048e)};}[a10_0x18e653(0x194)](_0x4e1385={}){var _0x3d27e8=a10_0x18e653;const _0x14fee0=[],_0x3640fb=Object[_0x3d27e8(0x1a4)](Object[_0x3d27e8(0x1a1)](_0x4e1385)[_0x3d27e8(0x1a7)](_0x53ae10=>[_0x53ae10[0x0][_0x3d27e8(0x1ab)](),_0x53ae10[0x1]]));for(let _0x3a20e3 of['device',_0x3d27e8(0x1b4),_0x3d27e8(0x1a5),_0x3d27e8(0x19a),_0x3d27e8(0x1b3)]){if(typeof _0x3640fb[_0x3a20e3]==_0x3d27e8(0x1a8))throw new AnnError(ApiError_1[_0x3d27e8(0x1a9)][_0x3d27e8(0x19e)],{'message':_0x3d27e8(0x1aa)+_0x3a20e3});_0x14fee0[_0x3d27e8(0x1be)](_0x3a20e3+'='+_0x3640fb[_0x3a20e3]);}if(Math[_0x3d27e8(0x1bd)](_0x3640fb[_0x3d27e8(0x1b4)])-Date['now']()>this[_0x3d27e8(0x1c0)]['timeout'])throw new AnnError(ApiError_1[_0x3d27e8(0x1a9)]['TIMEOUT']);if(!this['config']['devices'][_0x3640fb['device']]||!this['config']['devices'][_0x3640fb[_0x3d27e8(0x1c2)]][_0x3d27e8(0x1af)]||!this[_0x3d27e8(0x1c0)][_0x3d27e8(0x1b5)][_0x3640fb['device']][_0x3d27e8(0x1b3)])throw new AnnError(ApiError_1[_0x3d27e8(0x1a9)][_0x3d27e8(0x1a2)]);if(_0x3640fb[_0x3d27e8(0x1a5)]&&_0x3640fb[_0x3d27e8(0x1b3)]!=this[_0x3d27e8(0x1b3)](_0x3640fb[_0x3d27e8(0x1a5)],_0x3640fb[_0x3d27e8(0x1c2)],_0x3640fb[_0x3d27e8(0x19a)]))throw new AnnError(ApiError_1[_0x3d27e8(0x1a9)][_0x3d27e8(0x19c)]);return _0x14fee0[_0x3d27e8(0x1be)](_0x3d27e8(0x1a3)+this[_0x3d27e8(0x1c0)][_0x3d27e8(0x1b5)][_0x3640fb['device']]['secret']),(0x0,crypto_js_1['MD5'])(_0x14fee0['sort']()[_0x3d27e8(0x197)](''))[_0x3d27e8(0x1b0)]();}[a10_0x18e653(0x1b3)](_0x3acaed,_0x2a677c,_0x2c0acd=Date[a10_0x18e653(0x195)]()){var _0x7e161=a10_0x18e653,_0x50ac55,_0x330051,_0x455822;if(!((_0x50ac55=this[_0x7e161(0x1c0)])===null||_0x50ac55===void 0x0?void 0x0:_0x50ac55['devices'][_0x2a677c])||!((_0x455822=(_0x330051=this[_0x7e161(0x1c0)])===null||_0x330051===void 0x0?void 0x0:_0x330051[_0x7e161(0x1b5)][_0x2a677c])===null||_0x455822===void 0x0?void 0x0:_0x455822[_0x7e161(0x1b3)]))throw new AnnError(ApiError_1[_0x7e161(0x1a9)][_0x7e161(0x1a2)]);return(0x0,crypto_js_1['MD5'])(_0x3acaed+(0x0,crypto_js_1['MD5'])(_0x2c0acd+this[_0x7e161(0x1c0)][_0x7e161(0x1b5)][_0x2a677c][_0x7e161(0x1b3)])[_0x7e161(0x1b0)]())[_0x7e161(0x1b0)]();}[a10_0x18e653(0x18d)](_0xc432d8={}){var _0x412408=a10_0x18e653;const _0x31855d=Object[_0x412408(0x1a4)](Object[_0x412408(0x1a1)](_0xc432d8)[_0x412408(0x1a7)](_0x344e6a=>[_0x344e6a[0x0][_0x412408(0x1ab)](),_0x344e6a[0x1]]));if(!(_0x31855d===null||_0x31855d===void 0x0?void 0x0:_0x31855d['signature']))throw new AnnError(ApiError_1[_0x412408(0x1a9)][_0x412408(0x19e)],{'message':_0x412408(0x1ba)});if((_0x31855d===null||_0x31855d===void 0x0?void 0x0:_0x31855d[_0x412408(0x1b8)])!=this[_0x412408(0x194)](_0x31855d))throw new AnnError(ApiError_1[_0x412408(0x1a9)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1['Config'])('anncicapi'),__metadata('design:type',Object)],ApiService[a10_0x18e653(0x1b1)],a10_0x18e653(0x1c0),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x18e653(0x199)])(),(0x0,decorator_1['Scope'])(decorator_1[a10_0x18e653(0x192)][a10_0x18e653(0x1a6)])],ApiService),exports[a10_0x18e653(0x1ae)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0xebce(){const _0x5c1b4e=['design:type','url','path','560417lKZJUh','205FaCfda','text/css;\x20charset=utf-8','apidoc','filepath','Get','/apiteststatic/*','ScopeEnum','module','readFileSync','cache-control','/index.html','apitest','config','ctx','defineProperty','__decorate','apitesthtml','../helper/getRoutes','content-type','../../public/index.html','3yAAFZv','length','Environment','/apitest-:module','design:returntype','apiteststatic','description','metadata','object','push','stringify','72882UyLKyO','extname','/apiteststatic/','Config','759184sSbsoo','prefix','application/javascript;\x20charset=utf-8','3098754rAuEUT','summary','ApitestService','apitestmodule','devices','Scope','utf-8','isDevelopmentEnvironment','__metadata','/apitest','decorate','substring','routes','20KwQbnL','set','../../public/','design:paramtypes','route','14NyWwaM','Inject','784428epDpQd','existsSync','anncicapi','__devices__','__param','method','2838240zuOCjs','replace','join','request','ApitestStaticController','256974MiGRbr','prototype','@midwayjs/decorator','252DVoMpT'];a11_0xebce=function(){return _0x5c1b4e;};return a11_0xebce();}const a11_0x3626fb=a11_0x11c5;(function(_0x3d3980,_0xbf86bc){const _0x597c56=a11_0x11c5,_0x4a32c4=_0x3d3980();while(!![]){try{const _0x1dfc63=parseInt(_0x597c56(0xfa))/0x1+-parseInt(_0x597c56(0xb8))/0x2*(-parseInt(_0x597c56(0xd4))/0x3)+parseInt(_0x597c56(0xb3))/0x4+parseInt(_0x597c56(0xc0))/0x5*(-parseInt(_0x597c56(0xdf))/0x6)+parseInt(_0x597c56(0xf8))/0x7*(-parseInt(_0x597c56(0xe3))/0x8)+-parseInt(_0x597c56(0xe6))/0x9*(-parseInt(_0x597c56(0xf3))/0xa)+parseInt(_0x597c56(0xbf))/0xb*(-parseInt(_0x597c56(0xbb))/0xc);if(_0x1dfc63===_0xbf86bc)break;else _0x4a32c4['push'](_0x4a32c4['shift']());}catch(_0x14863a){_0x4a32c4['push'](_0x4a32c4['shift']());}}}(a11_0xebce,0x871a1));var __decorate=this&&this[a11_0x3626fb(0xcf)]||function(_0x2306ab,_0x3f332c,_0x1790b0,_0x5b8e3a){const _0x30096a=a11_0x3626fb;var _0x3488e9=arguments[_0x30096a(0xd5)],_0x57344d=_0x3488e9<0x3?_0x3f332c:_0x5b8e3a===null?_0x5b8e3a=Object['getOwnPropertyDescriptor'](_0x3f332c,_0x1790b0):_0x5b8e3a,_0x5d02b2;if(typeof Reflect===_0x30096a(0xdc)&&typeof Reflect[_0x30096a(0xf0)]==='function')_0x57344d=Reflect[_0x30096a(0xf0)](_0x2306ab,_0x3f332c,_0x1790b0,_0x5b8e3a);else{for(var _0x218344=_0x2306ab[_0x30096a(0xd5)]-0x1;_0x218344>=0x0;_0x218344--)if(_0x5d02b2=_0x2306ab[_0x218344])_0x57344d=(_0x3488e9<0x3?_0x5d02b2(_0x57344d):_0x3488e9>0x3?_0x5d02b2(_0x3f332c,_0x1790b0,_0x57344d):_0x5d02b2(_0x3f332c,_0x1790b0))||_0x57344d;}return _0x3488e9>0x3&&_0x57344d&&Object[_0x30096a(0xce)](_0x3f332c,_0x1790b0,_0x57344d),_0x57344d;},__metadata=this&&this[a11_0x3626fb(0xee)]||function(_0x477e96,_0x2d6cef){const _0x318925=a11_0x3626fb;if(typeof Reflect===_0x318925(0xdc)&&typeof Reflect[_0x318925(0xdb)]==='function')return Reflect[_0x318925(0xdb)](_0x477e96,_0x2d6cef);},__param=this&&this[a11_0x3626fb(0xb1)]||function(_0x42ca90,_0x185eb7){return function(_0x2e708d,_0x18ae19){_0x185eb7(_0x2e708d,_0x18ae19,_0x42ca90);};};Object[a11_0x3626fb(0xce)](exports,'__esModule',{'value':!![]}),exports[a11_0x3626fb(0xb7)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x3626fb(0xbe)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a11_0x3626fb(0xba)),decorator_2=require(a11_0x3626fb(0xba)),getRoutes_1=require(a11_0x3626fb(0xd1));let ApitestService=class ApitestService{async[a11_0x3626fb(0xc2)](_0x30f851){const _0xe31619=a11_0x3626fb,_0x49cafd=(0x0,getRoutes_1['getRoutes'])(_0x30f851),_0x2137c1=[];for(let _0x14235b in _0x49cafd){for(let _0x342fec in _0x49cafd[_0x14235b][_0xe31619(0xf2)]){let _0x20cb9b=_0x49cafd[_0x14235b][_0xe31619(0xf2)][_0x342fec],_0x435d05=[];for(let _0x597ffc in _0x20cb9b['request']){_0x435d05['push'](_0x20cb9b[_0xe31619(0xb6)][_0x597ffc]);}_0x2137c1[_0xe31619(0xdd)]({'title':_0x49cafd[_0x14235b][_0xe31619(0xe7)]+':'+_0x20cb9b['summary'],'prefix':_0x49cafd[_0x14235b][_0xe31619(0xe4)],'router':_0x20cb9b[_0xe31619(0xf7)],'method':_0x20cb9b[_0xe31619(0xb2)],'describe':_0x20cb9b[_0xe31619(0xda)]||'','filepath':_0x49cafd[_0x14235b][_0xe31619(0xc3)]||'','request':_0x435d05});}}const _0x328243=(0x0,path_1[_0xe31619(0xb5)])(__dirname,_0xe31619(0xd3));return(0x0,fs_1[_0xe31619(0xc8)])(_0x328243,{'encoding':_0xe31619(0xec)})[_0xe31619(0xb4)](/__res__/g,_0xe31619(0xe1))[_0xe31619(0xb4)]('__apiList__',JSON['stringify'](_0x2137c1))[_0xe31619(0xb4)](_0xe31619(0xb0),JSON[_0xe31619(0xde)](this['config'][_0xe31619(0xea)]));}};__decorate([(0x0,decorator_2['Config'])(a11_0x3626fb(0xaf)),__metadata('design:type',Object)],ApitestService[a11_0x3626fb(0xb9)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])(a11_0x3626fb(0xcb)),(0x0,decorator_2[a11_0x3626fb(0xeb)])(decorator_2[a11_0x3626fb(0xc6)]['Singleton'])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x3626fb(0xd0)](){const _0x110cc0=a11_0x3626fb;if(this[_0x110cc0(0xcb)]){const _0x4c1422={'module':![]};return this[_0x110cc0(0xd6)][_0x110cc0(0xed)]()&&(_0x4c1422[_0x110cc0(0xc3)]=!![]),await this[_0x110cc0(0xe8)][_0x110cc0(0xc2)](_0x4c1422);}return'';}async['apitestmodule'](_0x5c6cda){const _0x1c073d=a11_0x3626fb;if(this[_0x1c073d(0xcb)]){const _0x20331f={'module':_0x5c6cda};return this[_0x1c073d(0xd6)][_0x1c073d(0xed)]()&&(_0x20331f[_0x1c073d(0xc3)]=!![]),await this[_0x1c073d(0xe8)][_0x1c073d(0xc2)](_0x20331f);}return'';}async[a11_0x3626fb(0xd9)](){const _0x41d015=a11_0x3626fb;if((0x0,path_1['extname'])(this['ctx']['request'][_0x41d015(0xbd)])){var _0x80f804=(0x0,path_1[_0x41d015(0xb5)])(__dirname,_0x41d015(0xf5)+this[_0x41d015(0xcd)][_0x41d015(0xb6)]['url']['replace'](_0x41d015(0xe1),'/'));if(_0x80f804[_0x41d015(0xf1)](_0x80f804[_0x41d015(0xd5)]-0xb)!=_0x41d015(0xca)){this[_0x41d015(0xcd)][_0x41d015(0xf4)](_0x41d015(0xc9),'public,\x20max-age=604800');if((0x0,path_1[_0x41d015(0xe0)])(this[_0x41d015(0xcd)]['request']['url'])=='.js')this['ctx']['set']('content-type',_0x41d015(0xe5));else(0x0,path_1[_0x41d015(0xe0)])(this[_0x41d015(0xcd)][_0x41d015(0xb6)]['url'])=='.css'&&this[_0x41d015(0xcd)][_0x41d015(0xf4)](_0x41d015(0xd2),_0x41d015(0xc1));return(0x0,fs_1[_0x41d015(0xfb)])(_0x80f804)&&(0x0,fs_1[_0x41d015(0xc8)])(_0x80f804,{'encoding':_0x41d015(0xec)});}}return'';}};function a11_0x11c5(_0xb37fd,_0x19ac97){const _0xebce6a=a11_0xebce();return a11_0x11c5=function(_0x11c57c,_0x101df0){_0x11c57c=_0x11c57c-0xaf;let _0x2f6a19=_0xebce6a[_0x11c57c];return _0x2f6a19;},a11_0x11c5(_0xb37fd,_0x19ac97);}__decorate([(0x0,decorator_2[a11_0x3626fb(0xf9)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xcd),void 0x0),__decorate([(0x0,decorator_2[a11_0x3626fb(0xf9)])(),__metadata(a11_0x3626fb(0xbc),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xd6),void 0x0),__decorate([(0x0,decorator_2[a11_0x3626fb(0xf9)])(),__metadata(a11_0x3626fb(0xbc),ApitestService)],ApitestStaticController['prototype'],a11_0x3626fb(0xe8),void 0x0),__decorate([(0x0,decorator_2[a11_0x3626fb(0xe2)])('apitest'),__metadata(a11_0x3626fb(0xbc),Object)],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xcb),void 0x0),__decorate([(0x0,decorator_2[a11_0x3626fb(0xe2)])(a11_0x3626fb(0xaf)),__metadata(a11_0x3626fb(0xbc),Object)],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xcc),void 0x0),__decorate([(0x0,decorator_1[a11_0x3626fb(0xc4)])(a11_0x3626fb(0xef)),__metadata(a11_0x3626fb(0xbc),Function),__metadata(a11_0x3626fb(0xf6),[]),__metadata(a11_0x3626fb(0xd8),Promise)],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xd0),null),__decorate([(0x0,decorator_1['Get'])(a11_0x3626fb(0xd7)),__param(0x0,(0x0,decorator_1['Param'])(a11_0x3626fb(0xc7))),__metadata('design:type',Function),__metadata(a11_0x3626fb(0xf6),[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x3626fb(0xe9),null),__decorate([(0x0,decorator_1['Get'])(a11_0x3626fb(0xc5)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a11_0x3626fb(0xd8),Promise)],ApitestStaticController[a11_0x3626fb(0xb9)],a11_0x3626fb(0xd9),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a11_0x3626fb(0xeb)])(decorator_2[a11_0x3626fb(0xc6)]['Request'])],ApitestStaticController),exports[a11_0x3626fb(0xb7)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x4d7b83=a12_0x2525;(function(_0x45259e,_0x1034cd){const _0x5091ca=a12_0x2525,_0x5454be=_0x45259e();while(!![]){try{const _0x4ed839=parseInt(_0x5091ca(0x191))/0x1*(parseInt(_0x5091ca(0x19a))/0x2)+-parseInt(_0x5091ca(0x1a2))/0x3+parseInt(_0x5091ca(0x180))/0x4*(-parseInt(_0x5091ca(0x18a))/0x5)+parseInt(_0x5091ca(0x18e))/0x6+-parseInt(_0x5091ca(0x17c))/0x7+parseInt(_0x5091ca(0x187))/0x8*(-parseInt(_0x5091ca(0x179))/0x9)+-parseInt(_0x5091ca(0x19e))/0xa*(-parseInt(_0x5091ca(0x1a5))/0xb);if(_0x4ed839===_0x1034cd)break;else _0x5454be['push'](_0x5454be['shift']());}catch(_0x31c04f){_0x5454be['push'](_0x5454be['shift']());}}}(a12_0x2d5a,0xe8a90));var __decorate=this&&this[a12_0x4d7b83(0x165)]||function(_0xb13e0b,_0x5db2a2,_0xabdbce,_0x2482da){const _0x871dfb=a12_0x4d7b83;var _0x48c2ca=arguments['length'],_0x47247f=_0x48c2ca<0x3?_0x5db2a2:_0x2482da===null?_0x2482da=Object[_0x871dfb(0x16c)](_0x5db2a2,_0xabdbce):_0x2482da,_0x504ee3;if(typeof Reflect===_0x871dfb(0x169)&&typeof Reflect[_0x871dfb(0x1a1)]===_0x871dfb(0x192))_0x47247f=Reflect[_0x871dfb(0x1a1)](_0xb13e0b,_0x5db2a2,_0xabdbce,_0x2482da);else{for(var _0xacd6ce=_0xb13e0b['length']-0x1;_0xacd6ce>=0x0;_0xacd6ce--)if(_0x504ee3=_0xb13e0b[_0xacd6ce])_0x47247f=(_0x48c2ca<0x3?_0x504ee3(_0x47247f):_0x48c2ca>0x3?_0x504ee3(_0x5db2a2,_0xabdbce,_0x47247f):_0x504ee3(_0x5db2a2,_0xabdbce))||_0x47247f;}return _0x48c2ca>0x3&&_0x47247f&&Object[_0x871dfb(0x19d)](_0x5db2a2,_0xabdbce,_0x47247f),_0x47247f;},__metadata=this&&this[a12_0x4d7b83(0x17f)]||function(_0x9bc34d,_0x3907aa){const _0x256676=a12_0x4d7b83;if(typeof Reflect===_0x256676(0x169)&&typeof Reflect[_0x256676(0x1aa)]===_0x256676(0x192))return Reflect['metadata'](_0x9bc34d,_0x3907aa);};Object[a12_0x4d7b83(0x19d)](exports,a12_0x4d7b83(0x185),{'value':!![]}),exports[a12_0x4d7b83(0x172)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x4d7b83(0x181)),koasend=require('koa-send'),decorator_1=require(a12_0x4d7b83(0x167));let ExcelService=class ExcelService{async['parse'](_0x2a8205,_0x21d7d5,_0x58019d=[0x0]){const _0x130fba=a12_0x4d7b83;var _0x3f0665,_0xadec68;const _0x1340aa=new exceljs['Workbook'](),_0x116b4d=[];let _0x17bf87=_0x2a8205[_0x130fba(0x1a3)](/(\\|\/)/g,'/')[_0x130fba(0x1a3)](/\/{2,}/g,'/');!(_0x17bf87===null||_0x17bf87===void 0x0?void 0x0:_0x17bf87[_0x130fba(0x184)]('/'))&&(_0x17bf87=this['app'][_0x130fba(0x171)]()+'/'+_0x17bf87);try{await _0x1340aa['xlsx'][_0x130fba(0x18b)](_0x17bf87);}catch(_0x3c4925){return console[_0x130fba(0x175)](_0x130fba(0x16d)+_0x17bf87+_0x130fba(0x16f)),_0x116b4d;}for(const _0x21e0f1 of _0x58019d){const _0x506a6f=lodash[_0x130fba(0x182)](_0x21e0f1)?((_0x3f0665=_0x1340aa['worksheets'])===null||_0x3f0665===void 0x0?void 0x0:_0x3f0665[_0x21e0f1])||undefined:_0x1340aa[_0x130fba(0x176)](_0x21e0f1);if(_0x506a6f){var _0x50797a=0x1;const _0x3b8342=_0x506a6f[_0x130fba(0x178)](0x1),_0x204bc4=await new Promise(_0x12bd45=>{const _0x510970=_0x130fba,_0x598a41={};_0x3b8342[_0x510970(0x188)]((_0x2c0622,_0x32f5f7)=>{const _0x4325a6=_0x510970;for(const _0x2a6cd7 of _0x21d7d5){if(_0x2c0622[_0x4325a6(0x174)]==_0x2a6cd7[_0x4325a6(0x196)])_0x50797a=0x2,_0x598a41[_0x2a6cd7['key']]={'header':_0x2c0622[_0x4325a6(0x166)],'handler':_0x2a6cd7[_0x4325a6(0x1a6)]};else{if(!_0x598a41[_0x2a6cd7[_0x4325a6(0x19f)]])try{const _0x1c50e6=_0x3b8342[_0x4325a6(0x16e)](_0x2a6cd7['header']);_0x1c50e6&&(_0x598a41[_0x2a6cd7[_0x4325a6(0x19f)]]={'header':_0x1c50e6[_0x4325a6(0x166)],'handler':_0x2a6cd7[_0x4325a6(0x1a6)]});}catch{}}}_0x3b8342[_0x4325a6(0x16a)]==_0x32f5f7&&_0x12bd45(_0x598a41);});});for(const _0x1b6edb of _0x506a6f[_0x130fba(0x18c)](_0x50797a,_0x506a6f['rowCount'])){const _0x253d93={};for(const _0x5542fa in _0x204bc4){_0x204bc4[_0x5542fa][_0x130fba(0x196)]&&(typeof((_0xadec68=_0x204bc4[_0x5542fa])===null||_0xadec68===void 0x0?void 0x0:_0xadec68[_0x130fba(0x1a6)])=='function'?_0x253d93[_0x5542fa]=_0x204bc4[_0x5542fa][_0x130fba(0x1a6)](_0x1b6edb['getCell'](lodash[_0x130fba(0x17a)](''+_0x204bc4[_0x5542fa][_0x130fba(0x196)],'\x20'))['toString']()):_0x253d93[_0x5542fa]=_0x1b6edb['getCell'](_0x204bc4[_0x5542fa]['header'])[_0x130fba(0x193)]());}Object['keys'](_0x253d93)[_0x130fba(0x183)]>0x0&&_0x116b4d['push'](_0x253d93);}}}return _0x116b4d;}async[a12_0x4d7b83(0x1a0)](_0x36b534,_0x38af1d,_0x1072dc,_0x4d17be=a12_0x4d7b83(0x18f)){const _0x8b5378=a12_0x4d7b83;var _0x740c2d,_0x51b696;const _0x4813c3=new exceljs[(_0x8b5378(0x168))](),_0x33f045={},_0x2b3670=[],_0x525c14=_0x4813c3['addWorksheet'](_0x8b5378(0x197),{'views':[{'state':_0x8b5378(0x190),'xSplit':0x1}]});for(const _0x33f26d in _0x38af1d){_0x33f045[_0x38af1d[_0x33f26d]['key']]=_0x38af1d[_0x33f26d]['header'],_0x2b3670[_0x8b5378(0x195)]({'header':_0x38af1d[_0x33f26d][_0x8b5378(0x196)],'key':(_0x740c2d=_0x38af1d[_0x33f26d])===null||_0x740c2d===void 0x0?void 0x0:_0x740c2d[_0x8b5378(0x19f)][_0x8b5378(0x1a3)](/\./g,'_')});}_0x525c14[_0x8b5378(0x1a7)]=_0x2b3670;for(const _0x6fc764 of _0x1072dc){const _0x27dca7={};for(const _0xc18300 in _0x38af1d){typeof((_0x51b696=_0x38af1d[_0xc18300])===null||_0x51b696===void 0x0?void 0x0:_0x51b696['handler'])==_0x8b5378(0x192)?_0x27dca7[_0x38af1d[_0xc18300][_0x8b5378(0x19f)]['replace'](/\./g,'_')]=await _0x38af1d[_0xc18300][_0x8b5378(0x1a6)](_0x6fc764):_0x27dca7[_0x38af1d[_0xc18300][_0x8b5378(0x19f)][_0x8b5378(0x1a3)](/\./g,'_')]=lodash[_0x8b5378(0x173)](_0x6fc764,_0x38af1d[_0xc18300][_0x8b5378(0x19f)],'');}_0x525c14[_0x8b5378(0x17d)](_0x27dca7);}let _0x8dd0c2='';const _0x2d301b=_0x36b534+'-'+lodash['random'](0x2710,0x1869f)+_0x8b5378(0x1a4);if(_0x4d17be&&_0x4d17be[_0x8b5378(0x184)]('/'))_0x8dd0c2=_0x4d17be+'/'+_0x2d301b;else _0x4d17be&&!_0x4d17be['startsWith']('/')&&!_0x4d17be[_0x8b5378(0x184)]('\x5c')?_0x8dd0c2=this['app'][_0x8b5378(0x171)]()+'/'+_0x4d17be+'/'+_0x2d301b:_0x8dd0c2=this['app'][_0x8b5378(0x171)]()+_0x8b5378(0x18d);return(_0x8dd0c2['endsWith']('/')||_0x8dd0c2[_0x8b5378(0x189)]('\x5c'))&&(_0x8dd0c2=_0x8dd0c2[_0x8b5378(0x194)](0x0,_0x8dd0c2[_0x8b5378(0x183)]-0x1)),_0x8dd0c2=_0x8dd0c2[_0x8b5378(0x1a3)](/(\\|\/)/g,'/')[_0x8b5378(0x1a3)](/\/{2,}/g,'/'),!fs[_0x8b5378(0x19c)](_0x8dd0c2)&&fs[_0x8b5378(0x1a8)](_0x8dd0c2,{'recursive':!![]}),await _0x4813c3[_0x8b5378(0x199)][_0x8b5378(0x16b)]((_0x8dd0c2+'/'+_0x2d301b)[_0x8b5378(0x1a3)](/(\\|\/)/g,'/')[_0x8b5378(0x1a3)](/\/{2,}/g,'/')),{'filename':_0x2d301b,'filepath':_0x8dd0c2};}async[a12_0x4d7b83(0x164)](_0x1b4380,_0xa34af2){const _0x45177f=a12_0x4d7b83;await koasend(_0x1b4380,_0x45177f(0x17e)+_0xa34af2);}};function a12_0x2d5a(){const _0x48f610=['5955810FwfycH','addRow','/public/xlsx/','__metadata','4324ZmESXV','exceljs','isNumber','length','startsWith','__esModule','Scope','16pcteAd','eachCell','endsWith','8620OUeVin','readFile','findRows','/public/xlsx','2663490vLllJH','public/xlsx','frozen','60223dmeJgY','function','toString','substring','push','header','Sheet\x201','prototype','xlsx','34IplQbN','design:type','existsSync','defineProperty','10LasRBk','key','export','decorate','4809480iMIoxy','replace','.xlsx','55930292QhYyLa','handler','columns','mkdirSync','Singleton','metadata','download','__decorate','col','@midwayjs/decorator','Workbook','object','cellCount','writeFile','getOwnPropertyDescriptor','Api\x20Excel\x20Error:\x20','getCell','\x20is\x20read\x20fail','Provide','getAppDir','ExcelService','get','value','log','getWorksheet','ScopeEnum','getRow','5767506ehsKas','trim','app'];a12_0x2d5a=function(){return _0x48f610;};return a12_0x2d5a();}function a12_0x2525(_0x1f8b4d,_0x1e7faf){const _0x2d5af6=a12_0x2d5a();return a12_0x2525=function(_0x2525ba,_0x219d3c){_0x2525ba=_0x2525ba-0x164;let _0x417cac=_0x2d5af6[_0x2525ba];return _0x417cac;},a12_0x2525(_0x1f8b4d,_0x1e7faf);}__decorate([(0x0,decorator_1['App'])(),__metadata(a12_0x4d7b83(0x19b),Object)],ExcelService[a12_0x4d7b83(0x198)],a12_0x4d7b83(0x17b),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x4d7b83(0x170)])(),(0x0,decorator_1[a12_0x4d7b83(0x186)])(decorator_1[a12_0x4d7b83(0x177)][a12_0x4d7b83(0x1a9)])],ExcelService),exports[a12_0x4d7b83(0x172)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x5bfe(_0x18994c,_0x20e814){var _0x1e5704=a13_0x1e57();return a13_0x5bfe=function(_0x5bfea8,_0x331514){_0x5bfea8=_0x5bfea8-0x14d;var _0x2c691e=_0x1e5704[_0x5bfea8];return _0x2c691e;},a13_0x5bfe(_0x18994c,_0x20e814);}var a13_0x49980b=a13_0x5bfe;(function(_0x1e7450,_0x4b3c86){var _0xf8ed3f=a13_0x5bfe,_0x5c66e=_0x1e7450();while(!![]){try{var _0x298d04=-parseInt(_0xf8ed3f(0x159))/0x1+parseInt(_0xf8ed3f(0x156))/0x2*(parseInt(_0xf8ed3f(0x157))/0x3)+-parseInt(_0xf8ed3f(0x153))/0x4*(parseInt(_0xf8ed3f(0x14e))/0x5)+parseInt(_0xf8ed3f(0x151))/0x6+-parseInt(_0xf8ed3f(0x150))/0x7*(-parseInt(_0xf8ed3f(0x15b))/0x8)+-parseInt(_0xf8ed3f(0x154))/0x9*(-parseInt(_0xf8ed3f(0x15a))/0xa)+parseInt(_0xf8ed3f(0x15c))/0xb;if(_0x298d04===_0x4b3c86)break;else _0x5c66e['push'](_0x5c66e['shift']());}catch(_0x442419){_0x5c66e['push'](_0x5c66e['shift']());}}}(a13_0x1e57,0xae0fc));Object[a13_0x49980b(0x14d)](exports,a13_0x49980b(0x152),{'value':!![]}),exports[a13_0x49980b(0x155)]=exports[a13_0x49980b(0x14f)]=void 0x0,exports[a13_0x49980b(0x14f)]='anncic-api:action',exports[a13_0x49980b(0x155)]=a13_0x49980b(0x158);function a13_0x1e57(){var _0x42b581=['1687govJcN','194598arOZEu','__esModule','4CRPrxH','27eZWHVA','ACTION_ROUTE_KEY','1234fYQsrq','186SyXggg','anncic-api:action:route','1208657LgDVJd','4733660wNZAOf','14056IiPUrh','11832359yZGSFL','defineProperty','5341390IoBzbW','ACTION_KEY'];a13_0x1e57=function(){return _0x42b581;};return a13_0x1e57();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a14_0x2014df=a14_0x311e;function a14_0x45d5(){var _0x3128fe=['第一页为1,第二页为2','929607veKAJz','_order','排序方式','6233330JAfIwR','1:是;0:否','1033690fUFDtj','16tQleKu','defineProperty','分页数量','__metadata','design:type','RuleType','_page','@anncic-api/validator','PageDTO','string','prototype','28ADfpWq','35MYHJeE','Rule','是否倒序','429822RqEQdP','_size','1638504hoNKji','length','integer','min','object','number','getOwnPropertyDescriptor','__esModule','534375GGvahC','__decorate','660774abmWSY','function'];a14_0x45d5=function(){return _0x3128fe;};return a14_0x45d5();}function a14_0x311e(_0x56f34c,_0x1e5bf5){var _0x45d528=a14_0x45d5();return a14_0x311e=function(_0x311ef8,_0x2207de){_0x311ef8=_0x311ef8-0x10b;var _0x36b4a3=_0x45d528[_0x311ef8];return _0x36b4a3;},a14_0x311e(_0x56f34c,_0x1e5bf5);}(function(_0x106003,_0x88e499){var _0x5aa14e=a14_0x311e,_0x341ad3=_0x106003();while(!![]){try{var _0x60cffe=parseInt(_0x5aa14e(0x128))/0x1+-parseInt(_0x5aa14e(0x12d))/0x2+-parseInt(_0x5aa14e(0x123))/0x3*(-parseInt(_0x5aa14e(0x12e))/0x4)+-parseInt(_0x5aa14e(0x116))/0x5*(-parseInt(_0x5aa14e(0x125))/0x6)+-parseInt(_0x5aa14e(0x115))/0x7*(parseInt(_0x5aa14e(0x11b))/0x8)+parseInt(_0x5aa14e(0x119))/0x9+-parseInt(_0x5aa14e(0x12b))/0xa;if(_0x60cffe===_0x88e499)break;else _0x341ad3['push'](_0x341ad3['shift']());}catch(_0x4aca87){_0x341ad3['push'](_0x341ad3['shift']());}}}(a14_0x45d5,0x7a65a));var __decorate=this&&this[a14_0x2014df(0x124)]||function(_0x3a820e,_0x3a500b,_0x3c1013,_0x56230b){var _0xcfe7ce=a14_0x2014df,_0x3253d2=arguments[_0xcfe7ce(0x11c)],_0x2f07a8=_0x3253d2<0x3?_0x3a500b:_0x56230b===null?_0x56230b=Object[_0xcfe7ce(0x121)](_0x3a500b,_0x3c1013):_0x56230b,_0x3be61b;if(typeof Reflect===_0xcfe7ce(0x11f)&&typeof Reflect['decorate']===_0xcfe7ce(0x126))_0x2f07a8=Reflect['decorate'](_0x3a820e,_0x3a500b,_0x3c1013,_0x56230b);else{for(var _0x4612f5=_0x3a820e[_0xcfe7ce(0x11c)]-0x1;_0x4612f5>=0x0;_0x4612f5--)if(_0x3be61b=_0x3a820e[_0x4612f5])_0x2f07a8=(_0x3253d2<0x3?_0x3be61b(_0x2f07a8):_0x3253d2>0x3?_0x3be61b(_0x3a500b,_0x3c1013,_0x2f07a8):_0x3be61b(_0x3a500b,_0x3c1013))||_0x2f07a8;}return _0x3253d2>0x3&&_0x2f07a8&&Object[_0xcfe7ce(0x10b)](_0x3a500b,_0x3c1013,_0x2f07a8),_0x2f07a8;},__metadata=this&&this[a14_0x2014df(0x10d)]||function(_0x15979f,_0x4ed631){var _0x42ec30=a14_0x2014df;if(typeof Reflect===_0x42ec30(0x11f)&&typeof Reflect['metadata']===_0x42ec30(0x126))return Reflect['metadata'](_0x15979f,_0x4ed631);};Object['defineProperty'](exports,a14_0x2014df(0x122),{'value':!![]}),exports[a14_0x2014df(0x112)]=void 0x0;const validator_1=require(a14_0x2014df(0x111));class PageDTO{}__decorate([(0x0,validator_1[a14_0x2014df(0x117)])('分页',validator_1[a14_0x2014df(0x10f)]['number']()['integer']()['min'](0x1),a14_0x2014df(0x127)),__metadata('design:type',Number)],PageDTO[a14_0x2014df(0x114)],a14_0x2014df(0x110),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x2014df(0x10c),validator_1[a14_0x2014df(0x10f)][a14_0x2014df(0x120)]()[a14_0x2014df(0x11d)]()[a14_0x2014df(0x11e)](0x1)),__metadata(a14_0x2014df(0x10e),Number)],PageDTO[a14_0x2014df(0x114)],a14_0x2014df(0x11a),void 0x0),__decorate([(0x0,validator_1[a14_0x2014df(0x117)])(a14_0x2014df(0x12a),validator_1[a14_0x2014df(0x10f)][a14_0x2014df(0x113)]()['trim']()),__metadata(a14_0x2014df(0x10e),String)],PageDTO[a14_0x2014df(0x114)],a14_0x2014df(0x129),void 0x0),__decorate([(0x0,validator_1[a14_0x2014df(0x117)])(a14_0x2014df(0x118),validator_1['RuleType']['number']()['integer']()['valid'](0x0,0x1),a14_0x2014df(0x12c)),__metadata('design:type',Number)],PageDTO['prototype'],'_isreverse',void 0x0),exports[a14_0x2014df(0x112)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.0.
|
|
21
|
-
"@anncic-api/core": "^1.0.
|
|
22
|
-
"@anncic-api/event": "^1.0.
|
|
23
|
-
"@anncic-api/typeorm": "^1.0.
|
|
24
|
-
"@anncic-api/validator": "^1.0.
|
|
20
|
+
"@anncic-api/cache": "^1.0.7",
|
|
21
|
+
"@anncic-api/core": "^1.0.7",
|
|
22
|
+
"@anncic-api/event": "^1.0.7",
|
|
23
|
+
"@anncic-api/typeorm": "^1.0.7",
|
|
24
|
+
"@anncic-api/validator": "^1.0.7",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.4.9",
|
|
26
26
|
"@midwayjs/i18n": "^3.4.9",
|
|
27
27
|
"@midwayjs/koa": "^3.4.9",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.4.9",
|
|
30
30
|
"@midwayjs/upload": "^3.4.9",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.0.
|
|
32
|
+
"anncic-apihelper": "^1.0.7",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-bodyparser": "^4.3.0",
|
|
35
35
|
"koa-send": "^5.0.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"javascript-obfuscator": "2.19.0",
|
|
42
42
|
"typescript": "^4.7.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "94067d15fe6fb78a90ab5fcdaf30d73802ca757d"
|
|
45
45
|
}
|