anncic-api 1.0.28 → 1.1.0
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';var a0_0x1cfa4b=a0_0x22b5;function a0_0x22b5(_0x3470b3,_0xfa77cd){var _0x3ab3b4=a0_0x3ab3();return a0_0x22b5=function(_0x22b5f6,_0x2cb615){_0x22b5f6=_0x22b5f6-0x135;var _0x433927=_0x3ab3b4[_0x22b5f6];return _0x433927;},a0_0x22b5(_0x3470b3,_0xfa77cd);}(function(_0x5b6152,_0x5b738d){var _0x14954d=a0_0x22b5,_0x10afd0=_0x5b6152();while(!![]){try{var _0x4bfcff=-parseInt(_0x14954d(0x136))/0x1+parseInt(_0x14954d(0x142))/0x2+parseInt(_0x14954d(0x138))/0x3+parseInt(_0x14954d(0x141))/0x4+-parseInt(_0x14954d(0x13d))/0x5*(-parseInt(_0x14954d(0x13e))/0x6)+-parseInt(_0x14954d(0x140))/0x7+-parseInt(_0x14954d(0x137))/0x8*(parseInt(_0x14954d(0x143))/0x9);if(_0x4bfcff===_0x5b738d)break;else _0x10afd0['push'](_0x10afd0['shift']());}catch(_0x4437ca){_0x10afd0['push'](_0x10afd0['shift']());}}}(a0_0x3ab3,0xc36ef));function a0_0x3ab3(){var _0x3b0b87=['appDir','default','__esModule','1381690ySuAqu','24QzsllG','name','61180WzdBJY','5020216XoLFAQ','501386ZpByFi','10371015lVFtIV','defineProperty','1156383niuAtC','8NrzxTB','1520562qVVFio','dhauo1234420123gg3234901'];a0_0x3ab3=function(){return _0x3b0b87;};return a0_0x3ab3();}Object[a0_0x1cfa4b(0x135)](exports,a0_0x1cfa4b(0x13c),{'value':!![]}),exports[a0_0x1cfa4b(0x13b)]=_0x219c0e=>{var _0x3330ce=a0_0x1cfa4b;return{'apitest':!![],'keys':_0x219c0e[_0x3330ce(0x13f)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x3330ce(0x139)}}},'upload':{'tmpdir':_0x219c0e[_0x3330ce(0x13a)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x46f815=a1_0x192b;(function(_0x2cb04a,_0x13beab){var _0x217c8b=a1_0x192b,_0x1220d5=_0x2cb04a();while(!![]){try{var _0x388f3a=-parseInt(_0x217c8b(0x1c5))/0x1*(-parseInt(_0x217c8b(0x1c1))/0x2)+parseInt(_0x217c8b(0x1c7))/0x3*(-parseInt(_0x217c8b(0x1c0))/0x4)+parseInt(_0x217c8b(0x1c9))/0x5*(-parseInt(_0x217c8b(0x1bd))/0x6)+-parseInt(_0x217c8b(0x1c4))/0x7+parseInt(_0x217c8b(0x1c6))/0x8*(-parseInt(_0x217c8b(0x1bf))/0x9)+-parseInt(_0x217c8b(0x1c2))/0xa*(-parseInt(_0x217c8b(0x1c8))/0xb)+parseInt(_0x217c8b(0x1be))/0xc;if(_0x388f3a===_0x13beab)break;else _0x1220d5['push'](_0x1220d5['shift']());}catch(_0x4fed06){_0x1220d5['push'](_0x1220d5['shift']());}}}(a1_0x24fd,0x42c54));function a1_0x24fd(){var _0x19c6d9=['1170499bWkIlz','813305XiMVmY','6hYuPlu','7442292TAGTgr','9EnqKMi','4ypRMTx','2830ZXzdVa','20EvkWOg','default','1851255wDXKnh','221OIneAl','252904kgGoeX','1240479yaxavv'];a1_0x24fd=function(){return _0x19c6d9;};return a1_0x24fd();}function a1_0x192b(_0x55c92f,_0x54bf22){var _0x24fd97=a1_0x24fd();return a1_0x192b=function(_0x192b85,_0x30148b){_0x192b85=_0x192b85-0x1bd;var _0x120daa=_0x24fd97[_0x192b85];return _0x120daa;},a1_0x192b(_0x55c92f,_0x54bf22);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x46f815(0x1c3)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x46f308=a2_0x115e;(function(_0x27d200,_0x1d695c){const _0x49147f=a2_0x115e,_0x5e7617=_0x27d200();while(!![]){try{const _0x4f0827=-parseInt(_0x49147f(0x17d))/0x1*(-parseInt(_0x49147f(0x13b))/0x2)+parseInt(_0x49147f(0x168))/0x3*(parseInt(_0x49147f(0x160))/0x4)+parseInt(_0x49147f(0x165))/0x5+parseInt(_0x49147f(0x13a))/0x6*(-parseInt(_0x49147f(0x142))/0x7)+parseInt(_0x49147f(0x16e))/0x8+parseInt(_0x49147f(0x13f))/0x9*(-parseInt(_0x49147f(0x173))/0xa)+parseInt(_0x49147f(0x175))/0xb*(-parseInt(_0x49147f(0x138))/0xc);if(_0x4f0827===_0x1d695c)break;else _0x5e7617['push'](_0x5e7617['shift']());}catch(_0x5c6613){_0x5e7617['push'](_0x5e7617['shift']());}}}(a2_0x5ee7,0xa6f4f));var __decorate=this&&this['__decorate']||function(_0x115a8e,_0x42e83f,_0x20a02a,_0x3993ce){const _0x4c6e3f=a2_0x115e;var _0x53c83d=arguments['length'],_0x471195=_0x53c83d<0x3?_0x42e83f:_0x3993ce===null?_0x3993ce=Object[_0x4c6e3f(0x17c)](_0x42e83f,_0x20a02a):_0x3993ce,_0x472448;if(typeof Reflect===_0x4c6e3f(0x162)&&typeof Reflect['decorate']===_0x4c6e3f(0x167))_0x471195=Reflect[_0x4c6e3f(0x187)](_0x115a8e,_0x42e83f,_0x20a02a,_0x3993ce);else{for(var _0x20e237=_0x115a8e[_0x4c6e3f(0x14b)]-0x1;_0x20e237>=0x0;_0x20e237--)if(_0x472448=_0x115a8e[_0x20e237])_0x471195=(_0x53c83d<0x3?_0x472448(_0x471195):_0x53c83d>0x3?_0x472448(_0x42e83f,_0x20a02a,_0x471195):_0x472448(_0x42e83f,_0x20a02a))||_0x471195;}return _0x53c83d>0x3&&_0x471195&&Object[_0x4c6e3f(0x18f)](_0x42e83f,_0x20a02a,_0x471195),_0x471195;},__metadata=this&&this[a2_0x46f308(0x161)]||function(_0x2a565e,_0x340470){const _0x461ede=a2_0x46f308;if(typeof Reflect===_0x461ede(0x162)&&typeof Reflect[_0x461ede(0x15c)]===_0x461ede(0x167))return Reflect['metadata'](_0x2a565e,_0x340470);};Object[a2_0x46f308(0x18f)](exports,a2_0x46f308(0x15d),{'value':!![]}),exports[a2_0x46f308(0x17e)]=void 0x0;const decorator_1=require(a2_0x46f308(0x188)),core_1=require(a2_0x46f308(0x169)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x46f308(0x16d)),action_1=require(a2_0x46f308(0x153)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x46f308(0x170)),task=require(a2_0x46f308(0x144)),upload=require(a2_0x46f308(0x164)),staticFile=require(a2_0x46f308(0x18a)),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x46f308(0x15a)),bodyParser=require(a2_0x46f308(0x14a)),ConfigDefault=require(a2_0x46f308(0x183)),ConfigProduction=require(a2_0x46f308(0x151)),anncic=require(a2_0x46f308(0x14e)),anncicEvent=require(a2_0x46f308(0x181)),anncicTypeorm=require(a2_0x46f308(0x156)),anncicValidator=require(a2_0x46f308(0x143)),anncicHelper=require(a2_0x46f308(0x141));function a2_0x5ee7(){const _0x20086c=['ACTION_ROUTE_KEY','@anncic-api/event','_matchedRoute','./config/config.default','string','apimit','Configuration','decorate','@midwayjs/decorator','device','@midwayjs/static-file','beforeRoute','body','MidwayDecoratorService','MidwayConfigService','defineProperty','isNull','MidwayApplicationManager','dir','checkConfigKeys','design:type','Inject','24DqhTFa','environment','126HUitQK','1845334ivAEQZ','staticFile','REQUEST_OBJ_CTX_KEY','tmpdir','6355305YIPGZK','decorator','anncic-apihelper','166523pjSHCw','@anncic-api/validator','@midwayjs/task','registerMethodHandler','log','bodyParser','DEFAULT','config','koa-bodyparser','length','anncicapi','useMiddleware','@anncic-api/core','hanlderApplications','MidwayEnvironmentService','./config/config.production','prototype','./types/action','defineProperties','keys','@anncic-api/typeorm','bodyXml','request','anncic-api','koa-xml-body','headers','metadata','__esModule','getConfiguration','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','8vCjCQm','__metadata','object','input','@midwayjs/upload','2492355DOWVVH','upload','function','1083627wfjeqw','@midwayjs/core','mkdirSync','Anncic-api\x20static-file\x20:\x20mkdir\x20','checksign','./service/ApiService','9834056DrrmHc','ApiError','@midwayjs/i18n','handlerActionRoute','target','10YXgnEX','filterConfig','8157842LeYDrk','application','dirs','devices','key','getApplications','ApiService','getOwnPropertyDescriptor','1cCjBSj','CustomConfiguration','onReady'];a2_0x5ee7=function(){return _0x20086c;};return a2_0x5ee7();}function a2_0x115e(_0x361926,_0xe1194a){const _0x5ee723=a2_0x5ee7();return a2_0x115e=function(_0x115e7f,_0x5af63a){_0x115e7f=_0x115e7f-0x138;let _0x34bb43=_0x5ee723[_0x115e7f];return _0x34bb43;},a2_0x115e(_0x361926,_0xe1194a);}let CustomConfiguration=class CustomConfiguration{async[a2_0x46f308(0x17f)](){const _0x544f3b=a2_0x46f308;await this[_0x544f3b(0x174)](),await this[_0x544f3b(0x193)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x46f308(0x193)](){}async[a2_0x46f308(0x171)](){const _0xdda49b=a2_0x46f308,_0x4893cc=this[_0xdda49b(0x149)]['getConfiguration']();this[_0xdda49b(0x140)][_0xdda49b(0x145)](action_1[_0xdda49b(0x180)],_0x1c03d9=>{const _0x15c6dc=_0xdda49b,_0x2f107d=_0x1c03d9[_0x15c6dc(0x15c)];return{'before':async _0x15fb2f=>{const _0xe891e0=_0x15c6dc;var _0x3a1ed3,_0x15079d,_0x3f44a0,_0x410290,_0x41a495;const _0x365522=(_0x3a1ed3=_0x15fb2f===null||_0x15fb2f===void 0x0?void 0x0:_0x15fb2f[_0xe891e0(0x172)])===null||_0x3a1ed3===void 0x0?void 0x0:_0x3a1ed3[core_1[_0xe891e0(0x13d)]];if(_0x365522){if((_0x2f107d===null||_0x2f107d===void 0x0?void 0x0:_0x2f107d[_0xe891e0(0x185)])&&!this[_0xe891e0(0x17b)][_0xe891e0(0x16c)]((_0x15079d=_0x365522===null||_0x365522===void 0x0?void 0x0:_0x365522[_0xe891e0(0x158)])===null||_0x15079d===void 0x0?void 0x0:_0x15079d[_0xe891e0(0x15b)]))throw new AnnError(ApiError_1[_0xe891e0(0x16f)]['HEADERS_SIGNATURE']);((_0x3f44a0=_0x365522[_0xe891e0(0x15b)])===null||_0x3f44a0===void 0x0?void 0x0:_0x3f44a0[_0xe891e0(0x189)])&&((_0x41a495=(_0x410290=_0x4893cc===null||_0x4893cc===void 0x0?void 0x0:_0x4893cc[_0xe891e0(0x14c)])===null||_0x410290===void 0x0?void 0x0:_0x410290[_0xe891e0(0x178)])===null||_0x41a495===void 0x0?void 0x0:_0x41a495[_0x365522['headers'][_0xe891e0(0x189)]])&&(typeof _0x4893cc[_0xe891e0(0x14c)][_0xe891e0(0x178)][_0x365522[_0xe891e0(0x15b)][_0xe891e0(0x189)]][_0xe891e0(0x18b)]=='function'&&await _0x4893cc[_0xe891e0(0x14c)][_0xe891e0(0x178)][_0x365522[_0xe891e0(0x15b)][_0xe891e0(0x189)]][_0xe891e0(0x18b)]((_0x365522===null||_0x365522===void 0x0?void 0x0:_0x365522[_0xe891e0(0x182)])||undefined,_0x2f107d,_0x365522));}},'afterThrow':(_0x288989,_0x37f396)=>{throw _0x37f396;}};});}async[a2_0x46f308(0x14f)](){const _0x557e15=a2_0x46f308;this[_0x557e15(0x176)][_0x557e15(0x17a)](['koa'])['forEach'](_0x16d1fd=>{const _0x469c36=_0x557e15;_0x16d1fd[_0x469c36(0x14d)](bodyXml(this[_0x469c36(0x149)][_0x469c36(0x15e)]('bodyXml'))),_0x16d1fd['useMiddleware'](bodyParser(this[_0x469c36(0x149)][_0x469c36(0x15e)](_0x469c36(0x147)))),(_0x16d1fd===null||_0x16d1fd===void 0x0?void 0x0:_0x16d1fd['context'])&&Object[_0x469c36(0x154)](_0x16d1fd['context'],{'ok':{'value':function(_0x56fd7b,_0x360b68,_0x35b13e=0x0){return{'code':_0x35b13e,'data':_0x56fd7b,'extra':_0x360b68};}},'err':{'value':function(_0x5da2c1,_0x3330f4,_0x24b995=0x1){return{'code':_0x24b995,'extra':_0x3330f4,'msg':_0x5da2c1};}},'input':{'value':function(_0x1ade61,_0x403517){const _0xb9d932=_0x469c36;var _0x50e379;const _0x15deae=lodash['defaultsDeep']({},this[_0xb9d932(0x158)][_0xb9d932(0x18c)]||this[_0xb9d932(0x158)][((_0x50e379=config===null||config===void 0x0?void 0x0:config[_0xb9d932(0x157)])===null||_0x50e379===void 0x0?void 0x0:_0x50e379[_0xb9d932(0x179)])||'body']||{},this[_0xb9d932(0x158)]['query']||{});return _0x1ade61?lodash['get'](_0x15deae,_0x1ade61,_0x403517):_0x15deae;}},'when':{'value':async function(_0x4f0db0,_0x312214){const _0x98c830=_0x469c36,_0x36983f=this[_0x98c830(0x163)](_0x4f0db0,null);if(!lodash[_0x98c830(0x190)](_0x36983f))return await _0x312214(_0x36983f);}},'only':{'value':function(_0xcf5f53){const _0xeb99bc=_0x469c36,_0x40a7a6={};for(let _0x19064b=0x0;_0x19064b<_0xcf5f53[_0xeb99bc(0x14b)];_0x19064b++){lodash['isArray'](_0xcf5f53[_0x19064b])&&_0xcf5f53[_0x19064b][_0xeb99bc(0x14b)]>0x0&&lodash['isString'](_0xcf5f53[_0x19064b][0x0])&&(_0x40a7a6[_0xcf5f53[_0x19064b][0x0]]=this[_0xeb99bc(0x163)](_0xcf5f53[_0x19064b][0x0],_0xcf5f53[_0x19064b]['length']>0x1?_0xcf5f53[_0x19064b][0x1]:null));}return _0x40a7a6;}}});});}async[a2_0x46f308(0x174)](){const _0x3fd0a1=a2_0x46f308;var _0x2e5ea9,_0x217ec3,_0x5b5c60,_0x4ee429,_0x5f31a8,_0x175d88;const _0x59cc3f=this[_0x3fd0a1(0x149)][_0x3fd0a1(0x15e)]();((_0x217ec3=(_0x2e5ea9=_0x59cc3f===null||_0x59cc3f===void 0x0?void 0x0:_0x59cc3f[_0x3fd0a1(0x14c)])===null||_0x2e5ea9===void 0x0?void 0x0:_0x2e5ea9[_0x3fd0a1(0x178)])===null||_0x217ec3===void 0x0?void 0x0:_0x217ec3[_0x3fd0a1(0x148)])&&Object[_0x3fd0a1(0x155)](_0x59cc3f[_0x3fd0a1(0x14c)]['devices'])[_0x3fd0a1(0x14b)]>0x1&&delete _0x59cc3f[_0x3fd0a1(0x14c)][_0x3fd0a1(0x178)][_0x3fd0a1(0x148)];if((_0x5b5c60=_0x59cc3f===null||_0x59cc3f===void 0x0?void 0x0:_0x59cc3f[_0x3fd0a1(0x13c)])===null||_0x5b5c60===void 0x0?void 0x0:_0x5b5c60[_0x3fd0a1(0x177)])for(const _0x3983e4 in _0x59cc3f['staticFile'][_0x3fd0a1(0x177)]){((_0x4ee429=_0x59cc3f[_0x3fd0a1(0x13c)][_0x3fd0a1(0x177)][_0x3983e4])===null||_0x4ee429===void 0x0?void 0x0:_0x4ee429[_0x3fd0a1(0x192)])&&typeof((_0x5f31a8=_0x59cc3f[_0x3fd0a1(0x13c)][_0x3fd0a1(0x177)][_0x3983e4])===null||_0x5f31a8===void 0x0?void 0x0:_0x5f31a8[_0x3fd0a1(0x192)])==_0x3fd0a1(0x184)&&!fs['existsSync'](_0x59cc3f['staticFile'][_0x3fd0a1(0x177)][_0x3983e4][_0x3fd0a1(0x192)])&&(fs[_0x3fd0a1(0x16a)](_0x59cc3f[_0x3fd0a1(0x13c)][_0x3fd0a1(0x177)][_0x3983e4]['dir'],{'recursive':!![]}),console[_0x3fd0a1(0x146)](_0x3fd0a1(0x16b)+_0x59cc3f[_0x3fd0a1(0x13c)][_0x3fd0a1(0x177)][_0x3983e4][_0x3fd0a1(0x192)]));}((_0x175d88=_0x59cc3f===null||_0x59cc3f===void 0x0?void 0x0:_0x59cc3f[_0x3fd0a1(0x166)])===null||_0x175d88===void 0x0?void 0x0:_0x175d88[_0x3fd0a1(0x13e)])&&!fs['existsSync'](_0x59cc3f[_0x3fd0a1(0x166)][_0x3fd0a1(0x13e)])&&(fs[_0x3fd0a1(0x16a)](_0x59cc3f[_0x3fd0a1(0x166)][_0x3fd0a1(0x13e)],{'recursive':!![]}),console['log'](_0x3fd0a1(0x15f)+_0x59cc3f[_0x3fd0a1(0x166)][_0x3fd0a1(0x13e)])),this[_0x3fd0a1(0x149)]['addObject'](_0x59cc3f);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x46f308(0x194),core_1[a2_0x46f308(0x18e)])],CustomConfiguration[a2_0x46f308(0x152)],a2_0x46f308(0x149),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x46f308(0x194),core_1[a2_0x46f308(0x18d)])],CustomConfiguration['prototype'],a2_0x46f308(0x140),void 0x0),__decorate([(0x0,decorator_1[a2_0x46f308(0x195)])(),__metadata(a2_0x46f308(0x194),core_1[a2_0x46f308(0x191)])],CustomConfiguration[a2_0x46f308(0x152)],a2_0x46f308(0x176),void 0x0),__decorate([(0x0,decorator_1[a2_0x46f308(0x195)])(),__metadata(a2_0x46f308(0x194),core_1[a2_0x46f308(0x150)])],CustomConfiguration[a2_0x46f308(0x152)],a2_0x46f308(0x139),void 0x0),__decorate([(0x0,decorator_1[a2_0x46f308(0x195)])(),__metadata(a2_0x46f308(0x194),ApiService_1[a2_0x46f308(0x17b)])],CustomConfiguration[a2_0x46f308(0x152)],a2_0x46f308(0x17b),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x46f308(0x186)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x46f308(0x159),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x46f308(0x17e)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x218bd0=a2_0xa7e9;(function(_0xdb1061,_0x46c57b){const _0x2cbd63=a2_0xa7e9,_0x4b80ba=_0xdb1061();while(!![]){try{const _0x2b6771=parseInt(_0x2cbd63(0x19e))/0x1+-parseInt(_0x2cbd63(0x168))/0x2*(parseInt(_0x2cbd63(0x19f))/0x3)+parseInt(_0x2cbd63(0x177))/0x4+parseInt(_0x2cbd63(0x1a3))/0x5*(-parseInt(_0x2cbd63(0x1b2))/0x6)+parseInt(_0x2cbd63(0x17c))/0x7+parseInt(_0x2cbd63(0x16e))/0x8+parseInt(_0x2cbd63(0x165))/0x9*(-parseInt(_0x2cbd63(0x1a0))/0xa);if(_0x2b6771===_0x46c57b)break;else _0x4b80ba['push'](_0x4b80ba['shift']());}catch(_0x22b890){_0x4b80ba['push'](_0x4b80ba['shift']());}}}(a2_0x5ab1,0x45c5f));var __decorate=this&&this[a2_0x218bd0(0x1b9)]||function(_0x5aae10,_0x8c0f86,_0x2c2d6e,_0x3c1334){const _0x35440f=a2_0x218bd0;var _0x463e8e=arguments[_0x35440f(0x18e)],_0x45a9d1=_0x463e8e<0x3?_0x8c0f86:_0x3c1334===null?_0x3c1334=Object[_0x35440f(0x19c)](_0x8c0f86,_0x2c2d6e):_0x3c1334,_0x5045b0;if(typeof Reflect===_0x35440f(0x189)&&typeof Reflect['decorate']===_0x35440f(0x18b))_0x45a9d1=Reflect[_0x35440f(0x195)](_0x5aae10,_0x8c0f86,_0x2c2d6e,_0x3c1334);else{for(var _0xcda486=_0x5aae10[_0x35440f(0x18e)]-0x1;_0xcda486>=0x0;_0xcda486--)if(_0x5045b0=_0x5aae10[_0xcda486])_0x45a9d1=(_0x463e8e<0x3?_0x5045b0(_0x45a9d1):_0x463e8e>0x3?_0x5045b0(_0x8c0f86,_0x2c2d6e,_0x45a9d1):_0x5045b0(_0x8c0f86,_0x2c2d6e))||_0x45a9d1;}return _0x463e8e>0x3&&_0x45a9d1&&Object[_0x35440f(0x16d)](_0x8c0f86,_0x2c2d6e,_0x45a9d1),_0x45a9d1;},__metadata=this&&this['__metadata']||function(_0x37fda1,_0x2a5d10){const _0x46deea=a2_0x218bd0;if(typeof Reflect===_0x46deea(0x189)&&typeof Reflect['metadata']===_0x46deea(0x18b))return Reflect['metadata'](_0x37fda1,_0x2a5d10);};Object[a2_0x218bd0(0x16d)](exports,a2_0x218bd0(0x169),{'value':!![]}),exports[a2_0x218bd0(0x182)]=void 0x0;const decorator_1=require(a2_0x218bd0(0x1bb)),core_1=require(a2_0x218bd0(0x160)),ApiError_1=require(a2_0x218bd0(0x1b7)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x218bd0(0x1a9)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require('@midwayjs/task'),upload=require(a2_0x218bd0(0x161)),staticFile=require(a2_0x218bd0(0x183)),crossDomain=require(a2_0x218bd0(0x170)),bodyXml=require(a2_0x218bd0(0x196)),bodyParser=require(a2_0x218bd0(0x17a)),ConfigDefault=require(a2_0x218bd0(0x18f)),ConfigProduction=require(a2_0x218bd0(0x179)),anncic=require(a2_0x218bd0(0x17b)),anncicEvent=require(a2_0x218bd0(0x1b8)),anncicTypeorm=require(a2_0x218bd0(0x1a2)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x218bd0(0x1bc));function a2_0xa7e9(_0x1b5d8d,_0x2c3fd6){const _0x5ab126=a2_0x5ab1();return a2_0xa7e9=function(_0xa7e9f4,_0x35f2ac){_0xa7e9f4=_0xa7e9f4-0x160;let _0x1ac01e=_0x5ab126[_0xa7e9f4];return _0x1ac01e;},a2_0xa7e9(_0x1b5d8d,_0x2c3fd6);}let CustomConfiguration=class CustomConfiguration{async[a2_0x218bd0(0x16b)](){const _0x4081c8=a2_0x218bd0;await this[_0x4081c8(0x173)](),await this['checkConfigKeys'](),await this[_0x4081c8(0x194)](),await this[_0x4081c8(0x172)]();}async[a2_0x218bd0(0x1b6)](){}async[a2_0x218bd0(0x194)](){const _0x59d062=a2_0x218bd0,_0x14221a=this[_0x59d062(0x181)][_0x59d062(0x176)]();this[_0x59d062(0x1a4)]['registerMethodHandler'](action_1[_0x59d062(0x17e)],_0xbbae3e=>{const _0x4d3ae1=_0x59d062,_0x158b6f=_0xbbae3e[_0x4d3ae1(0x162)];return{'before':async _0x241116=>{const _0x573b90=_0x4d3ae1;var _0x4c0dbc,_0x14835b,_0x39da4e,_0x24f9a1,_0x4d4247;const _0x3832fc=(_0x4c0dbc=_0x241116===null||_0x241116===void 0x0?void 0x0:_0x241116[_0x573b90(0x190)])===null||_0x4c0dbc===void 0x0?void 0x0:_0x4c0dbc[core_1[_0x573b90(0x197)]];if(_0x3832fc){if((_0x158b6f===null||_0x158b6f===void 0x0?void 0x0:_0x158b6f[_0x573b90(0x164)])&&!this[_0x573b90(0x175)][_0x573b90(0x1ad)]((_0x14835b=_0x3832fc===null||_0x3832fc===void 0x0?void 0x0:_0x3832fc[_0x573b90(0x19d)])===null||_0x14835b===void 0x0?void 0x0:_0x14835b[_0x573b90(0x1ab)]))throw new AnnError(ApiError_1[_0x573b90(0x178)][_0x573b90(0x1a7)]);((_0x39da4e=_0x3832fc['headers'])===null||_0x39da4e===void 0x0?void 0x0:_0x39da4e[_0x573b90(0x1ac)])&&((_0x4d4247=(_0x24f9a1=_0x14221a===null||_0x14221a===void 0x0?void 0x0:_0x14221a[_0x573b90(0x192)])===null||_0x24f9a1===void 0x0?void 0x0:_0x24f9a1[_0x573b90(0x184)])===null||_0x4d4247===void 0x0?void 0x0:_0x4d4247[_0x3832fc[_0x573b90(0x1ab)][_0x573b90(0x1ac)]])&&(typeof _0x14221a[_0x573b90(0x192)]['devices'][_0x3832fc[_0x573b90(0x1ab)]['device']][_0x573b90(0x191)]==_0x573b90(0x18b)&&await _0x14221a[_0x573b90(0x192)][_0x573b90(0x184)][_0x3832fc[_0x573b90(0x1ab)][_0x573b90(0x1ac)]][_0x573b90(0x191)]((_0x3832fc===null||_0x3832fc===void 0x0?void 0x0:_0x3832fc[_0x573b90(0x180)])||undefined,_0x158b6f,_0x3832fc));}},'afterThrow':(_0x3c3bbc,_0x407c85)=>{throw _0x407c85;}};});}async['hanlderApplications'](){const _0xc51a9e=a2_0x218bd0;this[_0xc51a9e(0x193)][_0xc51a9e(0x163)]([_0xc51a9e(0x1b1)])['forEach'](_0x5c92d1=>{const _0x4ec8cf=_0xc51a9e;_0x5c92d1[_0x4ec8cf(0x18d)](bodyXml(this[_0x4ec8cf(0x181)]['getConfiguration'](_0x4ec8cf(0x1a1)))),_0x5c92d1[_0x4ec8cf(0x18d)](bodyParser(this[_0x4ec8cf(0x181)][_0x4ec8cf(0x176)](_0x4ec8cf(0x1a6)))),(_0x5c92d1===null||_0x5c92d1===void 0x0?void 0x0:_0x5c92d1[_0x4ec8cf(0x19b)])&&Object[_0x4ec8cf(0x1aa)](_0x5c92d1[_0x4ec8cf(0x19b)],{'ok':{'value':function(_0x272bc7,_0x2cf59d,_0xaef87=0x0){return{'code':_0xaef87,'data':_0x272bc7,'extra':_0x2cf59d};}},'err':{'value':function(_0xebaf4,_0x3ac50e,_0x57d560=0x1){return{'code':_0x57d560,'extra':_0x3ac50e,'msg':_0xebaf4};}},'input':{'value':function(_0x50b056,_0x13ef11){const _0x430a17=_0x4ec8cf;var _0x3ee7dc;const _0x48d966=lodash[_0x430a17(0x18c)]({},this[_0x430a17(0x19d)][_0x430a17(0x1b3)]||this[_0x430a17(0x19d)][((_0x3ee7dc=config===null||config===void 0x0?void 0x0:config[_0x430a17(0x1a1)])===null||_0x3ee7dc===void 0x0?void 0x0:_0x3ee7dc['key'])||_0x430a17(0x1b3)]||{},this[_0x430a17(0x19d)][_0x430a17(0x166)]||{});return _0x50b056?lodash[_0x430a17(0x1a5)](_0x48d966,_0x50b056,_0x13ef11):_0x48d966;}},'when':{'value':async function(_0xe94506,_0x3bdddd){const _0x46de70=_0x4ec8cf,_0x297db5=this[_0x46de70(0x185)](_0xe94506,null);if(!lodash[_0x46de70(0x16f)](_0x297db5))return await _0x3bdddd(_0x297db5);}},'only':{'value':function(_0x110895){const _0x2f7d83=_0x4ec8cf,_0x4b4346={};for(let _0x9d582f=0x0;_0x9d582f<_0x110895[_0x2f7d83(0x18e)];_0x9d582f++){lodash[_0x2f7d83(0x19a)](_0x110895[_0x9d582f])&&_0x110895[_0x9d582f][_0x2f7d83(0x18e)]>0x0&&lodash[_0x2f7d83(0x16a)](_0x110895[_0x9d582f][0x0])&&(_0x4b4346[_0x110895[_0x9d582f][0x0]]=this[_0x2f7d83(0x185)](_0x110895[_0x9d582f][0x0],_0x110895[_0x9d582f][_0x2f7d83(0x18e)]>0x1?_0x110895[_0x9d582f][0x1]:null));}return _0x4b4346;}}});});}async['filterConfig'](){const _0x16ea9f=a2_0x218bd0;var _0x447ebc,_0x5dad01,_0x395320,_0x496075,_0x153c68,_0xbce02a;const _0x5c69b0=this[_0x16ea9f(0x181)][_0x16ea9f(0x176)]();((_0x5dad01=(_0x447ebc=_0x5c69b0===null||_0x5c69b0===void 0x0?void 0x0:_0x5c69b0[_0x16ea9f(0x192)])===null||_0x447ebc===void 0x0?void 0x0:_0x447ebc['devices'])===null||_0x5dad01===void 0x0?void 0x0:_0x5dad01[_0x16ea9f(0x16c)])&&Object[_0x16ea9f(0x1ae)](_0x5c69b0['anncicapi'][_0x16ea9f(0x184)])[_0x16ea9f(0x18e)]>0x1&&delete _0x5c69b0[_0x16ea9f(0x192)]['devices']['DEFAULT'];if((_0x395320=_0x5c69b0===null||_0x5c69b0===void 0x0?void 0x0:_0x5c69b0[_0x16ea9f(0x18a)])===null||_0x395320===void 0x0?void 0x0:_0x395320[_0x16ea9f(0x1b4)])for(const _0x29c326 in _0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)]){((_0x496075=_0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)][_0x29c326])===null||_0x496075===void 0x0?void 0x0:_0x496075[_0x16ea9f(0x171)])&&typeof((_0x153c68=_0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)][_0x29c326])===null||_0x153c68===void 0x0?void 0x0:_0x153c68['dir'])=='string'&&!fs[_0x16ea9f(0x186)](_0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)][_0x29c326]['dir'])&&(fs[_0x16ea9f(0x187)](_0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)][_0x29c326]['dir'],{'recursive':!![]}),console[_0x16ea9f(0x1b5)](_0x16ea9f(0x199)+_0x5c69b0[_0x16ea9f(0x18a)][_0x16ea9f(0x1b4)][_0x29c326][_0x16ea9f(0x171)]));}((_0xbce02a=_0x5c69b0===null||_0x5c69b0===void 0x0?void 0x0:_0x5c69b0['upload'])===null||_0xbce02a===void 0x0?void 0x0:_0xbce02a[_0x16ea9f(0x17d)])&&!fs['existsSync'](_0x5c69b0[_0x16ea9f(0x1af)]['tmpdir'])&&(fs[_0x16ea9f(0x187)](_0x5c69b0[_0x16ea9f(0x1af)]['tmpdir'],{'recursive':!![]}),console[_0x16ea9f(0x1b5)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x5c69b0[_0x16ea9f(0x1af)][_0x16ea9f(0x17d)])),this['config']['addObject'](_0x5c69b0);}};__decorate([(0x0,decorator_1[a2_0x218bd0(0x1ba)])(),__metadata(a2_0x218bd0(0x1b0),core_1[a2_0x218bd0(0x17f)])],CustomConfiguration[a2_0x218bd0(0x167)],a2_0x218bd0(0x181),void 0x0),__decorate([(0x0,decorator_1[a2_0x218bd0(0x1ba)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x218bd0(0x167)],a2_0x218bd0(0x1a4),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x218bd0(0x1b0),core_1[a2_0x218bd0(0x188)])],CustomConfiguration[a2_0x218bd0(0x167)],a2_0x218bd0(0x193),void 0x0),__decorate([(0x0,decorator_1[a2_0x218bd0(0x1ba)])(),__metadata(a2_0x218bd0(0x1b0),core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x218bd0(0x174),void 0x0),__decorate([(0x0,decorator_1[a2_0x218bd0(0x1ba)])(),__metadata('design:type',ApiService_1['ApiService'])],CustomConfiguration[a2_0x218bd0(0x167)],a2_0x218bd0(0x175),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x218bd0(0x198)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x218bd0(0x1a8),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x218bd0(0x182)]=CustomConfiguration;function a2_0x5ab1(){const _0x119678=['object','staticFile','function','defaultsDeep','useMiddleware','length','./config/config.default','target','beforeRoute','anncicapi','application','handlerActionRoute','decorate','koa-xml-body','REQUEST_OBJ_CTX_KEY','Configuration','Anncic-api\x20static-file\x20:\x20mkdir\x20','isArray','context','getOwnPropertyDescriptor','request','562257gxqnJw','12753DjmBhh','10wJcmfY','bodyXml','@anncic-api/typeorm','1541795OkCdEJ','decorator','get','bodyParser','HEADERS_SIGNATURE','anncic-api','./types/action','defineProperties','headers','device','checksign','keys','upload','design:type','koa','6PfwvEQ','body','dirs','log','checkConfigKeys','./exception/ApiError','@anncic-api/event','__decorate','Inject','@midwayjs/decorator','anncic-apihelper','@midwayjs/core','@midwayjs/upload','metadata','getApplications','apimit','4834359ZRlECm','query','prototype','254JUlMIK','__esModule','isString','onReady','DEFAULT','defineProperty','3806256ePTxdw','isNull','@midwayjs/cross-domain','dir','hanlderApplications','filterConfig','environment','ApiService','getConfiguration','783924zojZTo','ApiError','./config/config.production','koa-bodyparser','@anncic-api/core','3060106GdoSVR','tmpdir','ACTION_ROUTE_KEY','MidwayConfigService','_matchedRoute','config','CustomConfiguration','@midwayjs/static-file','devices','input','existsSync','mkdirSync','MidwayApplicationManager'];a2_0x5ab1=function(){return _0x119678;};return a2_0x5ab1();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x539801=a3_0x4583;function a3_0xc5d2(){const _0x2a1cb4=['rootpath','162NSPNGk','replace','1473660gLRxMH','5dpaSig','9222648NXXpKB','existsSync','split','route','prefix','/config.','defineProperty','ACTION_KEY','indexOf','isArray','middlewareIgnore','cwd','module','toLowerCase','16qMSfnl','startsWith','parseRoute','/controller/','saveClassMetadata','length','\x20文件请放在apps/','endsWith','apps/','Action','__esModule','Controller','tagName','push','-action','\x20文件请放在app/controller/文件下','splice','543558ZGbMsJ','match','/controller/文件下','substring','app/controller/','join','saveModule','18654lkrTjd','middleware','filter','@midwayjs/decorator','10406440VYyYWB','13708915KqZXhc','4RdLaQn','trim','/apps/','filepath','768411dvJxkx'];a3_0xc5d2=function(){return _0x2a1cb4;};return a3_0xc5d2();}(function(_0x2ecd10,_0x32b2b6){const _0x35725b=a3_0x4583,_0x181cd2=_0x2ecd10();while(!![]){try{const _0x38b197=parseInt(_0x35725b(0x18b))/0x1*(parseInt(_0x35725b(0x197))/0x2)+-parseInt(_0x35725b(0x184))/0x3*(parseInt(_0x35725b(0x191))/0x4)+-parseInt(_0x35725b(0x19a))/0x5*(-parseInt(_0x35725b(0x19b))/0x6)+-parseInt(_0x35725b(0x195))/0x7+parseInt(_0x35725b(0x173))/0x8*(parseInt(_0x35725b(0x199))/0x9)+-parseInt(_0x35725b(0x18f))/0xa+-parseInt(_0x35725b(0x190))/0xb;if(_0x38b197===_0x32b2b6)break;else _0x181cd2['push'](_0x181cd2['shift']());}catch(_0x6dc22b){_0x181cd2['push'](_0x181cd2['shift']());}}}(a3_0xc5d2,0xc2bfe));function a3_0x4583(_0x4a03cd,_0xb181e4){const _0xc5d2ff=a3_0xc5d2();return a3_0x4583=function(_0x4583ff,_0x24ae0b){_0x4583ff=_0x4583ff-0x171;let _0x23740c=_0xc5d2ff[_0x4583ff];return _0x23740c;},a3_0x4583(_0x4a03cd,_0xb181e4);}Object[a3_0x539801(0x1a1)](exports,a3_0x539801(0x17d),{'value':!![]}),exports['parseRoute']=exports[a3_0x539801(0x17c)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x539801(0x18e)),action_1=require('../types/action');function Action(_0x15a518,_0x1f4c4a,_0x3645dc={'middleware':[],'sensitive':!![]}){return _0xbdd951=>{const _0x578ffa=a3_0x4583;_0x3645dc[_0x578ffa(0x17f)]=_0x1f4c4a;const _0x250cf4=parseRoute(_0x15a518);if(_0x250cf4[_0x578ffa(0x171)]){_0x3645dc['prefix']=_0x3645dc[_0x578ffa(0x19f)]?'/'+_0x250cf4[_0x578ffa(0x171)]+'/'+_0x3645dc[_0x578ffa(0x19f)]:'/'+_0x250cf4[_0x578ffa(0x19e)];_0x250cf4['prefix']&&(_0x3645dc['prefix']='/'+_0x250cf4['prefix']+'/'+_0x3645dc[_0x578ffa(0x19f)]);if(fs[_0x578ffa(0x19c)](_0x250cf4[_0x578ffa(0x196)]+_0x578ffa(0x193)+_0x250cf4['module']+_0x578ffa(0x1a0)+(lodash[_0x578ffa(0x17a)](_0x250cf4[_0x578ffa(0x194)],'ts')?'ts':'js'))){const _0x3832d3=include(_0x250cf4['rootpath']+_0x578ffa(0x193)+_0x250cf4[_0x578ffa(0x171)]+_0x578ffa(0x1a0)+(lodash[_0x578ffa(0x17a)](_0x250cf4[_0x578ffa(0x194)],'ts')?'ts':'js'));if(_0x3832d3[_0x578ffa(0x18c)]&&lodash[_0x578ffa(0x1a4)](_0x3832d3[_0x578ffa(0x18c)])&&_0x3832d3[_0x578ffa(0x18c)][_0x578ffa(0x178)]>0x0)for(let _0x3d63b7 in _0x3832d3[_0x578ffa(0x18c)]){_0x3832d3[_0x578ffa(0x1a5)][_0x578ffa(0x1a3)](_0x3832d3[_0x578ffa(0x18c)][_0x3d63b7])==-0x1&&_0x3645dc[_0x578ffa(0x18c)][_0x578ffa(0x180)](_0x3832d3[_0x578ffa(0x18c)][_0x3d63b7]);}}_0x3645dc['prefix']=_0x3645dc[_0x578ffa(0x19f)][_0x578ffa(0x172)]()[_0x578ffa(0x198)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x578ffa(0x1a2)],_0xbdd951),(0x0,decorator_1[_0x578ffa(0x17e)])(_0x3645dc[_0x578ffa(0x19f)],_0x3645dc)(_0xbdd951),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x578ffa(0x1a2)],{'prefix':_0x3645dc[_0x578ffa(0x19f)],'pprefix':_0x250cf4[_0x578ffa(0x19f)],'module':_0x250cf4['module'],'filepath':_0x250cf4[_0x578ffa(0x194)],'routerOptions':_0x3645dc},_0xbdd951);}else _0x3645dc[_0x578ffa(0x19f)]=_0x3645dc[_0x578ffa(0x19f)]?'/'+_0x3645dc[_0x578ffa(0x19f)]:'/'+_0x250cf4[_0x578ffa(0x19e)],_0x250cf4['prefix']&&(_0x3645dc[_0x578ffa(0x19f)]='/'+_0x250cf4[_0x578ffa(0x19f)]+'/'+_0x3645dc[_0x578ffa(0x19f)]),_0x3645dc[_0x578ffa(0x19f)]=_0x3645dc[_0x578ffa(0x19f)][_0x578ffa(0x172)]()[_0x578ffa(0x198)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x578ffa(0x18a)])(action_1['ACTION_KEY'],_0xbdd951),(0x0,decorator_1[_0x578ffa(0x17e)])(_0x3645dc['prefix'],_0x3645dc)(_0xbdd951),(0x0,decorator_1[_0x578ffa(0x177)])(action_1['ACTION_KEY'],{'prefix':_0x3645dc[_0x578ffa(0x19f)],'module':_0x250cf4['module'],'pprefix':_0x250cf4[_0x578ffa(0x19f)],'filepath':_0x250cf4[_0x578ffa(0x194)],'routerOptions':_0x3645dc},_0xbdd951);};}exports[a3_0x539801(0x17c)]=Action;function parseRoute(_0x12e059){const _0x21a6fc=a3_0x539801;_0x12e059=_0x12e059[_0x21a6fc(0x198)](/(\\|\/)/g,'/');const _0x49644a=process[_0x21a6fc(0x1a6)]()[_0x21a6fc(0x198)](/(\\|\/)/g,'/'),_0x2ab7e6=_0x12e059[_0x21a6fc(0x187)](0x0,_0x49644a[_0x21a6fc(0x178)]+_0x12e059[_0x21a6fc(0x187)](_0x49644a[_0x21a6fc(0x178)]+0x1)['indexOf']('/')+0x1),_0x201b9e=_0x12e059[_0x21a6fc(0x187)](_0x2ab7e6[_0x21a6fc(0x178)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x44cc27={'route':'','prefix':![],'module':![],'rootpath':_0x2ab7e6,'filepath':_0x201b9e};if(_0x201b9e[_0x21a6fc(0x174)](_0x21a6fc(0x188))){const _0x1baa0a=_0x201b9e[_0x21a6fc(0x187)](_0x21a6fc(0x188)[_0x21a6fc(0x178)])[_0x21a6fc(0x19d)]('/')[_0x21a6fc(0x18d)](_0x560788=>_0x560788&&_0x560788[_0x21a6fc(0x192)]());return _0x1baa0a['length']>0x1&&(_0x44cc27[_0x21a6fc(0x19f)]=_0x1baa0a[0x0][_0x21a6fc(0x172)](),_0x1baa0a[_0x21a6fc(0x183)](0x0,0x1)),_0x44cc27['route']=('/'+_0x1baa0a[_0x21a6fc(0x189)]('/'))[_0x21a6fc(0x198)](/(\.ts|\.js)$/,'')[_0x21a6fc(0x198)](/\/{2,}/g,'/')[_0x21a6fc(0x185)](/[\/|A-Z]*[^A-Z]+/g)[_0x21a6fc(0x189)]('-')[_0x21a6fc(0x172)]()['replace'](/\/\-/g,'/'),_0x44cc27['route'][_0x21a6fc(0x17a)](_0x21a6fc(0x181))&&(_0x44cc27[_0x21a6fc(0x19e)]=_0x44cc27[_0x21a6fc(0x19e)]['substring'](0x0,_0x44cc27['route'][_0x21a6fc(0x178)]-0x7)),_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x17a)]('-controller')&&(_0x44cc27['route']=_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x187)](0x0,_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x178)]-0xb)),_0x44cc27;}else{if(_0x201b9e[_0x21a6fc(0x174)](_0x21a6fc(0x17b))){const _0x1edbc0=_0x201b9e[_0x21a6fc(0x187)](0x0,_0x201b9e[_0x21a6fc(0x1a3)]('/apps/')+0x5),_0x5997bf=_0x201b9e[_0x21a6fc(0x187)](_0x1edbc0['length']+0x1)[_0x21a6fc(0x198)](/(\\|\/)/g,'/')[_0x21a6fc(0x19d)]('/')[0x0];if(_0x201b9e[_0x21a6fc(0x174)]('apps/'+_0x5997bf+_0x21a6fc(0x176))){const _0x24108a=_0x201b9e['substring']((_0x1edbc0+'/'+_0x5997bf+'/controller/')[_0x21a6fc(0x178)])[_0x21a6fc(0x19d)]('/')[_0x21a6fc(0x18d)](_0x592a75=>_0x592a75&&_0x592a75['trim']());return _0x24108a[_0x21a6fc(0x178)]>0x1&&(_0x44cc27[_0x21a6fc(0x19f)]=_0x24108a[0x0][_0x21a6fc(0x172)](),_0x24108a[_0x21a6fc(0x183)](0x0,0x1)),_0x44cc27[_0x21a6fc(0x171)]=_0x5997bf,_0x44cc27[_0x21a6fc(0x19e)]=('/'+_0x5997bf+'/'+_0x24108a['join']('/'))[_0x21a6fc(0x198)](/(\.ts|\.js)$/,'')[_0x21a6fc(0x198)](/\/{2,}/,'/')[_0x21a6fc(0x185)](/[\/|A-Z]*[^A-Z]+/g)[_0x21a6fc(0x189)]('-')['toLowerCase']()[_0x21a6fc(0x198)](/\/\-/g,'/'),_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x17a)](_0x21a6fc(0x181))&&(_0x44cc27[_0x21a6fc(0x19e)]=_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x187)](0x0,_0x44cc27[_0x21a6fc(0x19e)]['length']-0x7)),_0x44cc27[_0x21a6fc(0x19e)][_0x21a6fc(0x17a)]('-controller')&&(_0x44cc27['route']=_0x44cc27[_0x21a6fc(0x19e)]['substring'](0x0,_0x44cc27['route']['length']-0xb)),_0x44cc27;}throw new Error(_0x201b9e+_0x21a6fc(0x179)+_0x5997bf+_0x21a6fc(0x186));}}throw new Error(_0x201b9e+_0x21a6fc(0x182));}exports[a3_0x539801(0x175)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x2625ad=a4_0x252d;(function(_0xda5f6c,_0x18b629){const _0x3eebc4=a4_0x252d,_0x38c1fa=_0xda5f6c();while(!![]){try{const _0x181671=-parseInt(_0x3eebc4(0x8b))/0x1*(-parseInt(_0x3eebc4(0x8d))/0x2)+parseInt(_0x3eebc4(0x89))/0x3+-parseInt(_0x3eebc4(0x92))/0x4*(parseInt(_0x3eebc4(0x9d))/0x5)+-parseInt(_0x3eebc4(0xa4))/0x6*(parseInt(_0x3eebc4(0xa3))/0x7)+parseInt(_0x3eebc4(0x97))/0x8*(parseInt(_0x3eebc4(0x87))/0x9)+-parseInt(_0x3eebc4(0x93))/0xa*(parseInt(_0x3eebc4(0x9a))/0xb)+parseInt(_0x3eebc4(0xa2))/0xc*(parseInt(_0x3eebc4(0x9b))/0xd);if(_0x181671===_0x18b629)break;else _0x38c1fa['push'](_0x38c1fa['shift']());}catch(_0x3b3c12){_0x38c1fa['push'](_0x38c1fa['shift']());}}}(a4_0x50d7,0x83a2c));function a4_0x252d(_0x30428d,_0x51dfe0){const _0x50d721=a4_0x50d7();return a4_0x252d=function(_0x252d65,_0x1c0294){_0x252d65=_0x252d65-0x85;let _0x8419d4=_0x50d721[_0x252d65];return _0x8419d4;},a4_0x252d(_0x30428d,_0x51dfe0);}Object[a4_0x2625ad(0x88)](exports,a4_0x2625ad(0x85),{'value':!![]}),exports[a4_0x2625ad(0x9c)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x2625ad(0x91)),action_1=require(a4_0x2625ad(0xaa));function a4_0x50d7(){const _0x41dac9=['description','89736UbeHrQ','createCustomMethodDecorator','get','33cQOCtV','4693KRfqXp','Api','355YLiWrR','routerName','delete','attachClassMetadata','del','21396dFLLTx','1799Vbpbym','19902FDpORn','length','Validator','middleware','filter','ACTION_ROUTE_KEY','../types/action','__esModule','RequestMapping','108imJUYo','defineProperty','1405365lBUMvn','middlewareIgnore','1WdCfhq','validationOptions','2114326neazHf','utc','apimit','validate','@midwayjs/decorator','28876WYIjlY','1332290BSnyHe','assign','toLowerCase'];a4_0x50d7=function(){return _0x41dac9;};return a4_0x50d7();}function Api(_0x54133c,_0x5e30e3=a4_0x2625ad(0x99),_0x32a2c8='/',_0xc93671={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x301cf2,_0x45c0cc,_0x2cee1d)=>{const _0x2ba2f2=a4_0x252d;var _0x403ece,_0x4d5586,_0x2aaa6a;!_0xc93671[_0x2ba2f2(0xa7)]&&(_0xc93671[_0x2ba2f2(0xa7)]=[]);!((_0x403ece=_0xc93671===null||_0xc93671===void 0x0?void 0x0:_0xc93671[_0x2ba2f2(0x90)])===null||_0x403ece===void 0x0?void 0x0:_0x403ece[_0x2ba2f2(0x8c)])&&(_0xc93671[_0x2ba2f2(0x90)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x2ba2f2(0x8e)}});if(((_0x4d5586=_0xc93671===null||_0xc93671===void 0x0?void 0x0:_0xc93671['middleware'])===null||_0x4d5586===void 0x0?void 0x0:_0x4d5586['length'])>0x0&&((_0x2aaa6a=_0xc93671===null||_0xc93671===void 0x0?void 0x0:_0xc93671[_0x2ba2f2(0x8a)])===null||_0x2aaa6a===void 0x0?void 0x0:_0x2aaa6a[_0x2ba2f2(0xa5)])>0x0)for(let _0xa6195e in _0xc93671[_0x2ba2f2(0xa7)]){_0xc93671['middlewareIgnore']['indexOf'](_0xc93671[_0x2ba2f2(0xa7)][_0xa6195e])!==-0x1&&(_0xc93671[_0x2ba2f2(0xa7)][_0xa6195e]=null);}_0xc93671[_0x2ba2f2(0x9e)]=_0x54133c,(0x0,validator_1[_0x2ba2f2(0xa6)])(_0xc93671[_0x2ba2f2(0x90)])(_0x301cf2,_0x45c0cc,_0x2cee1d),(0x0,decorator_1[_0x2ba2f2(0x86)])(Object[_0x2ba2f2(0x94)](_0xc93671,{'path':_0x32a2c8,'requestMethod':(_0x5e30e3==_0x2ba2f2(0xa1)?'delete':_0x5e30e3)[_0x2ba2f2(0x95)]()}))(_0x301cf2,_0x45c0cc,_0x2cee1d),(0x0,decorator_1[_0x2ba2f2(0xa0)])(action_1[_0x2ba2f2(0xa9)],{'path':_0x32a2c8,'method':_0x45c0cc,'apimit':_0xc93671[_0x2ba2f2(0x8f)],'routerName':_0xc93671[_0x2ba2f2(0x9e)],'description':_0xc93671['description'],'middleware':(_0xc93671['middleware']||[])[_0x2ba2f2(0xa8)](_0x7b204c=>!!_0x7b204c),'requestMethod':(_0x5e30e3==_0x2ba2f2(0xa1)?_0x2ba2f2(0x9f):_0x5e30e3)['toLowerCase']()},_0x301cf2),(0x0,decorator_1[_0x2ba2f2(0x98)])(action_1[_0x2ba2f2(0xa9)],{'path':_0x32a2c8,'method':_0x45c0cc,'apimit':_0xc93671[_0x2ba2f2(0x8f)],'routerName':_0xc93671[_0x2ba2f2(0x9e)],'description':_0xc93671[_0x2ba2f2(0x96)],'middleware':(_0xc93671['middleware']||[])[_0x2ba2f2(0xa8)](_0x3f6210=>!!_0x3f6210),'requestMethod':(_0x5e30e3==_0x2ba2f2(0xa1)?_0x2ba2f2(0x9f):_0x5e30e3)[_0x2ba2f2(0x95)]()})(_0x301cf2,_0x45c0cc,_0x2cee1d);};}exports[a4_0x2625ad(0x9c)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x35338c=a5_0x1beb;(function(_0x3bd87c,_0x21a7d){const _0x3505f2=a5_0x1beb,_0x451876=_0x3bd87c();while(!![]){try{const _0x6a4062=parseInt(_0x3505f2(0x17e))/0x1+parseInt(_0x3505f2(0x17b))/0x2*(-parseInt(_0x3505f2(0x17f))/0x3)+-parseInt(_0x3505f2(0x181))/0x4+parseInt(_0x3505f2(0x189))/0x5*(-parseInt(_0x3505f2(0x18e))/0x6)+-parseInt(_0x3505f2(0x17d))/0x7*(parseInt(_0x3505f2(0x18b))/0x8)+-parseInt(_0x3505f2(0x183))/0x9*(-parseInt(_0x3505f2(0x184))/0xa)+parseInt(_0x3505f2(0x180))/0xb;if(_0x6a4062===_0x21a7d)break;else _0x451876['push'](_0x451876['shift']());}catch(_0xbb8dac){_0x451876['push'](_0x451876['shift']());}}}(a5_0x22e2,0x52649));function a5_0x22e2(){const _0x22d051=['221002nEPkZu','54mkyYLr','20410148PWwABn','2469684TBfHIH','getAsync','153lIKoIE','61130YXvFuL','ApitestService','@midwayjs/core','__esModule','RequestMapping','335OwXTXj','MidwayEnvironmentService','614632vxcEtL','getApplicationContext','apitest','38358ZQMYKS','getConfig','value','get','isDevelopmentEnvironment','71500KVpBwS','Apitest','14NsAWjq'];a5_0x22e2=function(){return _0x22d051;};return a5_0x22e2();}Object['defineProperty'](exports,a5_0x35338c(0x187),{'value':!![]}),exports[a5_0x35338c(0x17c)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x35338c(0x186)),ApitestService_1=require('../service/ApitestService');function a5_0x1beb(_0x2bf509,_0x49f533){const _0x22e2d2=a5_0x22e2();return a5_0x1beb=function(_0x1beb13,_0x109482){_0x1beb13=_0x1beb13-0x178;let _0x1b58f6=_0x22e2d2[_0x1beb13];return _0x1b58f6;},a5_0x1beb(_0x2bf509,_0x49f533);}function Apitest(_0x1a2951='/apitest',_0x475107){return(_0x2f62ed,_0x4b85b9,_0x3e0822)=>{const _0xc0a4a=a5_0x1beb;return(0x0,decorator_1[_0xc0a4a(0x188)])({'path':_0x1a2951,'requestMethod':_0xc0a4a(0x179)})(_0x2f62ed,_0x4b85b9,_0x3e0822),_0x3e0822[_0xc0a4a(0x178)]=async function(..._0xf9e8cf){const _0x4b67c2=_0xc0a4a;var _0x1849ca;const _0x1f659f=(_0x1849ca=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x1849ca===void 0x0?void 0x0:_0x1849ca['app'];if(_0x1f659f&&_0x1f659f[_0x4b67c2(0x18f)](_0x4b67c2(0x18d))){const _0x5ca5f6=await _0x1f659f[_0x4b67c2(0x18c)]()[_0x4b67c2(0x182)](ApitestService_1[_0x4b67c2(0x185)]),_0xf0d68e=await _0x1f659f[_0x4b67c2(0x18c)]()[_0x4b67c2(0x182)](core_1[_0x4b67c2(0x18a)]);return _0xf0d68e[_0x4b67c2(0x17a)]()&&(_0x475107['filepath']=!![]),await _0x5ca5f6['apidoc'](_0x475107);}return'';},_0x3e0822;};}exports[a5_0x35338c(0x17c)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0x45c6(){var _0x150080=['signature验证失败','6582519bAMSsg','186985BxuvHm','请使用正确的设备','3223290gPdtCD','HEADERS_SIGNATURE','design:type','1053384ECCIzr','TIMEOUT','checkcode验证失败','3713640lbwQdJ','HEADERS_LACK','HEADERS_CHECKCODE','网络繁忙,请稍后重试','1556636BhUzhh','function','4MLTMZp','object','HEADERS_DEVICE','21qFHoVT','506541lFStpD','metadata','__decorate','5ewvRVG','getOwnPropertyDescriptor','11JaeoDl','decorate','请求头信息不完整','ApiError'];a6_0x45c6=function(){return _0x150080;};return a6_0x45c6();}function a6_0x45b4(_0x3fed10,_0x4f134f){var _0x45c667=a6_0x45c6();return a6_0x45b4=function(_0x45b46e,_0x19c3cd){_0x45b46e=_0x45b46e-0x1c1;var _0x15a2b7=_0x45c667[_0x45b46e];return _0x15a2b7;},a6_0x45b4(_0x3fed10,_0x4f134f);}var a6_0x3d0bad=a6_0x45b4;(function(_0x3604ea,_0x2e0dc4){var _0x11cbb6=a6_0x45b4,_0x4f763b=_0x3604ea();while(!![]){try{var _0x10524a=-parseInt(_0x11cbb6(0x1db))/0x1+-parseInt(_0x11cbb6(0x1cc))/0x2*(parseInt(_0x11cbb6(0x1d0))/0x3)+parseInt(_0x11cbb6(0x1ca))/0x4*(parseInt(_0x11cbb6(0x1d3))/0x5)+parseInt(_0x11cbb6(0x1c3))/0x6*(parseInt(_0x11cbb6(0x1cf))/0x7)+parseInt(_0x11cbb6(0x1c6))/0x8+-parseInt(_0x11cbb6(0x1da))/0x9+parseInt(_0x11cbb6(0x1dd))/0xa*(parseInt(_0x11cbb6(0x1d5))/0xb);if(_0x10524a===_0x2e0dc4)break;else _0x4f763b['push'](_0x4f763b['shift']());}catch(_0x4ed32b){_0x4f763b['push'](_0x4f763b['shift']());}}}(a6_0x45c6,0x6cf6b));var __decorate=this&&this[a6_0x3d0bad(0x1d2)]||function(_0x594c12,_0x5df923,_0x4d56c0,_0x5c9577){var _0x304205=a6_0x3d0bad,_0x435c12=arguments['length'],_0x4483cd=_0x435c12<0x3?_0x5df923:_0x5c9577===null?_0x5c9577=Object[_0x304205(0x1d4)](_0x5df923,_0x4d56c0):_0x5c9577,_0x4977fb;if(typeof Reflect==='object'&&typeof Reflect[_0x304205(0x1d6)]===_0x304205(0x1cb))_0x4483cd=Reflect[_0x304205(0x1d6)](_0x594c12,_0x5df923,_0x4d56c0,_0x5c9577);else{for(var _0x33967b=_0x594c12['length']-0x1;_0x33967b>=0x0;_0x33967b--)if(_0x4977fb=_0x594c12[_0x33967b])_0x4483cd=(_0x435c12<0x3?_0x4977fb(_0x4483cd):_0x435c12>0x3?_0x4977fb(_0x5df923,_0x4d56c0,_0x4483cd):_0x4977fb(_0x5df923,_0x4d56c0))||_0x4483cd;}return _0x435c12>0x3&&_0x4483cd&&Object['defineProperty'](_0x5df923,_0x4d56c0,_0x4483cd),_0x4483cd;},__metadata=this&&this['__metadata']||function(_0x4772fc,_0x2e4544){var _0x2e87f9=a6_0x3d0bad;if(typeof Reflect===_0x2e87f9(0x1cd)&&typeof Reflect[_0x2e87f9(0x1d1)]===_0x2e87f9(0x1cb))return Reflect[_0x2e87f9(0x1d1)](_0x4772fc,_0x2e4544);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a6_0x3d0bad(0x1c4)]=0x18a89,ApiError[a6_0x3d0bad(0x1c7)]=0x18a8a,ApiError[a6_0x3d0bad(0x1ce)]=0x18a8b,ApiError[a6_0x3d0bad(0x1c8)]=0x18a8c,ApiError[a6_0x3d0bad(0x1c1)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x3d0bad(0x1c9)),__metadata(a6_0x3d0bad(0x1c2),Object)],ApiError,a6_0x3d0bad(0x1c4),void 0x0),__decorate([AnnErrorMsg(a6_0x3d0bad(0x1d7)),__metadata(a6_0x3d0bad(0x1c2),Object)],ApiError,a6_0x3d0bad(0x1c7),void 0x0),__decorate([AnnErrorMsg(a6_0x3d0bad(0x1dc)),__metadata(a6_0x3d0bad(0x1c2),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x3d0bad(0x1c5)),__metadata(a6_0x3d0bad(0x1c2),Object)],ApiError,a6_0x3d0bad(0x1c8),void 0x0),__decorate([AnnErrorMsg(a6_0x3d0bad(0x1d9)),__metadata('design:type',Object)],ApiError,a6_0x3d0bad(0x1c1),void 0x0),exports[a6_0x3d0bad(0x1d8)]=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x38ab33=a7_0x1e51;(function(_0x3c503b,_0xeeefc7){const _0x50aa74=a7_0x1e51,_0x754131=_0x3c503b();while(!![]){try{const _0x1ded6b=parseInt(_0x50aa74(0xee))/0x1+parseInt(_0x50aa74(0x104))/0x2*(parseInt(_0x50aa74(0xcb))/0x3)+parseInt(_0x50aa74(0xed))/0x4*(parseInt(_0x50aa74(0xf7))/0x5)+-parseInt(_0x50aa74(0xd0))/0x6*(-parseInt(_0x50aa74(0x105))/0x7)+-parseInt(_0x50aa74(0xf9))/0x8*(parseInt(_0x50aa74(0xd1))/0x9)+-parseInt(_0x50aa74(0xe8))/0xa+-parseInt(_0x50aa74(0xcd))/0xb*(parseInt(_0x50aa74(0x109))/0xc);if(_0x1ded6b===_0xeeefc7)break;else _0x754131['push'](_0x754131['shift']());}catch(_0x3f26ff){_0x754131['push'](_0x754131['shift']());}}}(a7_0x2d2d,0xd4bb8));Object[a7_0x38ab33(0xcc)](exports,'__esModule',{'value':!![]}),exports['getRoutes']=void 0x0;function a7_0x2d2d(){const _0x37364c=['routerOptions','items','request','route','FIELDS','getClassExtendedMetadata','body','query','flags.description','String','10427460PxTTEr','filepath','@midwayjs/decorator','title','describe','3481628jNaMWQ','1630451gXtWIB','FILESTREAM','max','push','test','flags.presence','module','flags.label','requestMethod','5HnJSFw','length','16MlepTk','HEADERS','getClassMetadata','log','allow','static/apitest','description','method','isArray','split','summary','8phFrgH','645757qVuKuW','rules','path','INJECT_CUSTOM_PARAM','11796KMmAXt','ACTION_ROUTE_KEY','filter','FILESSTREAM','concat','required','limit','startsWith','file','只允许:[','noreq','header','listModule','function','key','name','getMethodParamTypes','QUERY','keys','get','replace','iterator','RouteParamTypes','@anncic-api/validator','文件上传-','metadata','Object','args','parameterIndex','find','File','1183401uuOmbw','defineProperty','20999DJEmJD','propertyData','default','6zwABsm','1711494CacCRD','lodash','BODY','prefix','-array','type','array','pprefix','PARAM','indexOf','Number','ACTION_KEY','routes'];a7_0x2d2d=function(){return _0x37364c;};return a7_0x2d2d();}const lodash_1=require(a7_0x38ab33(0xd2)),validator_1=require(a7_0x38ab33(0xc3)),decorator_1=require('@midwayjs/decorator'),decorator_2=require('@midwayjs/decorator'),decorator_3=require(a7_0x38ab33(0xea)),action_1=require('../types/action');function getRoutes(_0x3e2da8={'prefix':'/','module':![]}){const _0x3d561c=a7_0x38ab33;var _0xe05b76,_0xb8926a;const _0x34f47b=(0x0,decorator_3[_0x3d561c(0x115)])(action_1[_0x3d561c(0xdc)]),_0x271d35={},_0x292adf=Array['isArray'](_0x3e2da8[_0x3d561c(0x10b)]||[])?_0x3e2da8[_0x3d561c(0x10b)]||[]:[_0x3e2da8[_0x3d561c(0x10b)]];_0x38fd9d:for(const _0x2091a7 of _0x34f47b){let _0x464842=(0x0,decorator_3[_0x3d561c(0xfb)])(action_1[_0x3d561c(0xdc)],_0x2091a7),_0x220dc6=(0x0,decorator_3[_0x3d561c(0xfb)])(action_1[_0x3d561c(0x10a)],_0x2091a7);if(_0x464842&&_0x220dc6){let _0x455ac3=_0x464842[_0x3d561c(0xd4)],_0x4ceb5e={};if(_0x3e2da8['module']&&(0x0,lodash_1['get'])(_0x464842,_0x3d561c(0xf4),![])!=_0x3e2da8[_0x3d561c(0xf4)])continue _0x38fd9d;else{if(_0x3e2da8[_0x3d561c(0xf4)]===![]&&!!(0x0,lodash_1[_0x3d561c(0xbf)])(_0x464842,_0x3d561c(0xf4),null))continue _0x38fd9d;}if(_0x3e2da8[_0x3d561c(0xd4)]&&!_0x455ac3[_0x3d561c(0x110)](_0x3e2da8[_0x3d561c(0xd4)]))continue _0x38fd9d;_0x455ac3!=='/'?(_0x4ceb5e[_0x3d561c(0x103)]=(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xde)]['tagName'])||(/^\//[_0x3d561c(0xf2)](_0x455ac3)?_0x455ac3[_0x3d561c(0x102)]('/')[0x1]:_0x455ac3),_0x4ceb5e[_0x3d561c(0xff)]=(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xde)][_0x3d561c(0xff)])||_0x4ceb5e[_0x3d561c(0x103)],_0x4ceb5e[_0x3d561c(0xdd)]=[]):(_0x4ceb5e['summary']=(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xde)]['tagName'])||_0x3d561c(0xcf),_0x4ceb5e[_0x3d561c(0xff)]=(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xde)][_0x3d561c(0xff)])||'',_0x4ceb5e[_0x3d561c(0xdd)]=[]);_0x3e2da8[_0x3d561c(0xe9)]&&(_0x4ceb5e[_0x3d561c(0xe9)]=_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xe9)]);(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xd8)])&&(_0x4ceb5e[_0x3d561c(0xd4)]=_0x464842[_0x3d561c(0xd8)]);(_0x464842===null||_0x464842===void 0x0?void 0x0:_0x464842[_0x3d561c(0xf4)])&&(_0x4ceb5e[_0x3d561c(0xf4)]=_0x464842[_0x3d561c(0xf4)]);let _0xb821ca=(0x0,decorator_3[_0x3d561c(0xfb)])(decorator_2[_0x3d561c(0x108)],_0x2091a7)||{};if(typeof _0x220dc6[Symbol[_0x3d561c(0xc1)]]===_0x3d561c(0xb9))for(let _0x3ec9ba of _0x220dc6){let _0x53c447={};_0x53c447[_0x3d561c(0x100)]=_0x3ec9ba[_0x3d561c(0xf6)],_0x53c447['route']=(_0x455ac3+_0x3ec9ba[_0x3d561c(0x107)])[_0x3d561c(0xc0)](/\/{1,}/,'/'),_0x53c447[_0x3d561c(0x103)]=(_0x3ec9ba===null||_0x3ec9ba===void 0x0?void 0x0:_0x3ec9ba['routerName'])||_0x4ceb5e[_0x3d561c(0x103)]||_0x3d561c(0xcf),_0x53c447[_0x3d561c(0xff)]=(_0x3ec9ba===null||_0x3ec9ba===void 0x0?void 0x0:_0x3ec9ba[_0x3d561c(0xff)])||'',_0x53c447[_0x3d561c(0xe0)]=[];if(!(0x0,lodash_1[_0x3d561c(0x110)])(_0x53c447[_0x3d561c(0xe1)],_0x3d561c(0xfe))&&!(0x0,lodash_1[_0x3d561c(0x110)])(_0x53c447[_0x3d561c(0xe1)],'/static/apitest')&&_0x292adf[_0x3d561c(0xda)](_0x53c447[_0x3d561c(0xe1)])===-0x1){if(!(_0x3e2da8===null||_0x3e2da8===void 0x0?void 0x0:_0x3e2da8[_0x3d561c(0x113)])){let _0x40092b=(0x0,decorator_3[_0x3d561c(0xbc)])(new _0x2091a7(),_0x3ec9ba[_0x3d561c(0x100)]);for(const _0x3e7612 in _0x40092b){let _0xf9d6c8=(_0xe05b76=_0xb821ca[_0x3ec9ba[_0x3d561c(0x100)]])===null||_0xe05b76===void 0x0?void 0x0:_0xe05b76['find'](_0x2519e3=>_0x2519e3['parameterIndex']==_0x3e7612&&_0x2519e3[_0x3d561c(0xba)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x2519e3===null||_0x2519e3===void 0x0?void 0x0:_0x2519e3[_0x3d561c(0xc5)]));if(_0xf9d6c8===null||_0xf9d6c8===void 0x0?void 0x0:_0xf9d6c8[_0x3d561c(0xc5)]){let _0x6e54ed=convertTypeToString(_0xf9d6c8[_0x3d561c(0xc5)][_0x3d561c(0xd6)]||0x0);if([_0x3d561c(0xe5),_0x3d561c(0xe4)][_0x3d561c(0xda)](_0x6e54ed)!=-0x1&&_0xf9d6c8[_0x3d561c(0xc5)]['propertyData']['indexOf'](':')==-0x1&&!_0x53c447[_0x3d561c(0xe0)]['find'](_0x63ccf4=>_0x63ccf4[_0x3d561c(0xba)]==_0xf9d6c8[_0x3d561c(0xc5)][_0x3d561c(0xce)]))_0x53c447['request'][_0x3d561c(0xf1)]({'key':_0xf9d6c8['metadata']['propertyData'],'title':_0xf9d6c8[_0x3d561c(0xc5)][_0x3d561c(0xce)],'type':convertSchemaType(_0x40092b[_0xf9d6c8[_0x3d561c(0xc8)]][_0x3d561c(0xbb)]),'required':![],'default':'','desc':''});else{if(_0x6e54ed==_0x3d561c(0x111)){let _0x3dcffa=((_0xb8926a=_0xf9d6c8===null||_0xf9d6c8===void 0x0?void 0x0:_0xf9d6c8[_0x3d561c(0xc5)])===null||_0xb8926a===void 0x0?void 0x0:_0xb8926a[_0x3d561c(0xce)])||_0x3d561c(0x111);_0x3dcffa[_0x3d561c(0xda)](':')==-0x1&&!_0x53c447[_0x3d561c(0xe0)][_0x3d561c(0xc9)](_0x40cea9=>_0x40cea9['key']==_0x3dcffa&&_0x40cea9[_0x3d561c(0xd6)]==_0x3d561c(0x111))&&_0x53c447[_0x3d561c(0xe0)]['push']({'key':_0x3dcffa,'title':_0x3d561c(0xc4)+_0x3dcffa,'type':_0x3d561c(0x111),'required':!![],'default':'','desc':''});}}}else{const _0x30c489=(0x0,decorator_3[_0x3d561c(0xe3)])(validator_1['RULES_KEY'],_0x40092b[_0x3e7612]);_0x30c489&&_0x53c447[_0x3d561c(0xe0)][_0x3d561c(0xf1)](...getJoiRequest(_0x30c489));}}}_0x4ceb5e[_0x3d561c(0xdd)][_0x3d561c(0xf1)](_0x53c447);}}if(_0x4ceb5e[_0x3d561c(0xdd)][_0x3d561c(0xf8)]>0x0){let _0x4caa80=_0x271d35[_0x455ac3];_0x4caa80?(_0x4caa80[_0x3d561c(0x103)]!=_0x4ceb5e['summary']&&(_0x4caa80[_0x3d561c(0x103)]=_0x4caa80[_0x3d561c(0x103)]+','+_0x4ceb5e['summary']),_0x4caa80['description']!=_0x4ceb5e['description']&&(_0x4caa80[_0x3d561c(0xff)]=_0x4caa80[_0x3d561c(0xff)]+','+_0x4ceb5e['description']),_0x4caa80[_0x3d561c(0xdd)]=_0x4caa80[_0x3d561c(0xdd)][_0x3d561c(0x10d)](_0x4ceb5e[_0x3d561c(0xdd)]),_0x271d35[_0x455ac3]=_0x4caa80):_0x271d35[_0x455ac3]=_0x4ceb5e;}}}return _0x271d35;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x45c3f0){const _0x31c717=a7_0x38ab33,_0x3b97bc=[];for(let _0xfeb62c in _0x45c3f0){const _0x42faad={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x436462=typeof _0x45c3f0[_0xfeb62c][_0x31c717(0xec)]==_0x31c717(0xb9)?_0x45c3f0[_0xfeb62c]['describe']():_0x45c3f0[_0xfeb62c];_0x42faad[_0x31c717(0xba)]=_0xfeb62c,_0x42faad[_0x31c717(0xd6)]=_0x436462[_0x31c717(0xd6)],_0x42faad[_0x31c717(0xeb)]=(0x0,lodash_1[_0x31c717(0xbf)])(_0x436462,_0x31c717(0xf5),_0xfeb62c),_0x42faad[_0x31c717(0xcf)]=(0x0,lodash_1[_0x31c717(0xbf)])(_0x436462,'flags.default',''),_0x42faad[_0x31c717(0x10e)]=(0x0,lodash_1[_0x31c717(0xbf)])(_0x436462,_0x31c717(0xf3),'')==_0x31c717(0x10e),_0x42faad[_0x31c717(0xff)]=(0x0,lodash_1[_0x31c717(0xbf)])(_0x436462,_0x31c717(0xe6),'');if(_0x436462[_0x31c717(0xd6)]=='object')_0x42faad['children']=getJoiRequest(_0x436462[_0x31c717(0xbe)]);else _0x436462[_0x31c717(0xd6)]==_0x31c717(0xd7)&&_0x436462[_0x31c717(0xdf)]&&Array[_0x31c717(0x101)](_0x436462['items'])&&_0x436462['items'][0x0]&&console[_0x31c717(0xfc)](_0xfeb62c+_0x31c717(0xd5),_0x436462);_0x436462['allow']&&Array['isArray'](_0x436462[_0x31c717(0xfd)])&&_0x436462[_0x31c717(0xfd)][_0x31c717(0xf8)]>0x0&&(_0x42faad[_0x31c717(0xff)]=_0x31c717(0x112)+_0x436462[_0x31c717(0xfd)]['join'](',')+'];'+_0x42faad[_0x31c717(0xff)]);if(_0x42faad['key']&&_0x42faad[_0x31c717(0xd6)]){const _0x491257={};for(const _0x174328 of _0x436462[_0x31c717(0x106)]||[]){if(_0x174328[_0x31c717(0xbb)]==='min'&&_0x174328[_0x31c717(0xc7)])_0x491257['min']=_0x174328[_0x31c717(0xc7)][_0x31c717(0x10f)];else _0x174328['name']===_0x31c717(0xf0)&&(_0x491257[_0x31c717(0xf0)]=_0x174328[_0x31c717(0xc7)]['limit']);}_0x42faad[_0x31c717(0x106)]=_0x491257;}_0x42faad[_0x31c717(0xba)]&&_0x42faad[_0x31c717(0xeb)]&&_0x3b97bc[_0x31c717(0xf1)](_0x42faad);}return _0x3b97bc;}function convertSchemaType(_0x2c5679){const _0x5ea926=a7_0x38ab33;switch(_0x2c5679){case _0x5ea926(0xc6):return'object';case'Boolean':return'boolean';case _0x5ea926(0xdb):return'number';case _0x5ea926(0xe7):return'string';case _0x5ea926(0xca):return'file';default:return'string';}}function a7_0x1e51(_0x1418b1,_0x30526f){const _0x2d2d03=a7_0x2d2d();return a7_0x1e51=function(_0x1e511d,_0x21b6dd){_0x1e511d=_0x1e511d-0xb9;let _0x3a86ab=_0x2d2d03[_0x1e511d];return _0x3a86ab;},a7_0x1e51(_0x1418b1,_0x30526f);}function convertTypeToString(_0x33bf6d){const _0x22e6b3=a7_0x38ab33;switch(_0x33bf6d){case decorator_1['RouteParamTypes'][_0x22e6b3(0xfa)]:return _0x22e6b3(0x114);case decorator_1[_0x22e6b3(0xc2)][_0x22e6b3(0xbd)]:return _0x22e6b3(0xe5);case decorator_1[_0x22e6b3(0xc2)][_0x22e6b3(0xd9)]:return _0x22e6b3(0x107);case decorator_1[_0x22e6b3(0xc2)][_0x22e6b3(0xd3)]:return _0x22e6b3(0xe4);case decorator_1['RouteParamTypes'][_0x22e6b3(0xe2)]:case decorator_1['RouteParamTypes'][_0x22e6b3(0x10c)]:case decorator_1[_0x22e6b3(0xc2)][_0x22e6b3(0xef)]:return'file';default:return _0x22e6b3(0x114);}}
|
|
1
|
+
'use strict';const a7_0x418d33=a7_0x1b67;(function(_0x322bd4,_0x310005){const _0x2be8b9=a7_0x1b67,_0x5c8b48=_0x322bd4();while(!![]){try{const _0x9e121c=parseInt(_0x2be8b9(0x106))/0x1+parseInt(_0x2be8b9(0xf8))/0x2*(parseInt(_0x2be8b9(0xf0))/0x3)+parseInt(_0x2be8b9(0xdd))/0x4+parseInt(_0x2be8b9(0xb8))/0x5+-parseInt(_0x2be8b9(0xff))/0x6+parseInt(_0x2be8b9(0x103))/0x7+parseInt(_0x2be8b9(0xd6))/0x8*(-parseInt(_0x2be8b9(0xbc))/0x9);if(_0x9e121c===_0x310005)break;else _0x5c8b48['push'](_0x5c8b48['shift']());}catch(_0x1bbe11){_0x5c8b48['push'](_0x5c8b48['shift']());}}}(a7_0x373a,0xeb3ac));function a7_0x373a(){const _0x535653=['length','lodash','header','ACTION_KEY','indexOf','key','describe','@anncic-api/validator','test','Object','defineProperty','requestMethod','只允许:[','isArray','403264HpKEet','QUERY','name','prefix','routerName','Number','find','5412320pwOHaL','concat','File','module','iterator','startsWith','keys','RULES_KEY','FILESTREAM','description','object','String','metadata','BODY','__esModule','type','title','required','FILESSTREAM','83169sfkfGt','listModule','FIELDS','rules','get','path','tagName','boolean','26uEfxlb','filter','pprefix','default','file','log','flags.label','4997724Mmrmlx','args','request','string','4456655vBkmxK','route','function','1395313HEYhmZ','allow','body','noreq','文件上传-','routes','parameterIndex','replace','items','method','RouteParamTypes','push','PARAM','../types/action','5881465SsPkqg','flags.description','array','query','558smMZVD','getMethodParamTypes','filepath','ACTION_ROUTE_KEY','getRoutes','limit','routerOptions','max','@midwayjs/decorator','summary','propertyData','join'];a7_0x373a=function(){return _0x535653;};return a7_0x373a();}Object[a7_0x418d33(0xd2)](exports,a7_0x418d33(0xeb),{'value':!![]}),exports[a7_0x418d33(0xc0)]=void 0x0;const lodash_1=require(a7_0x418d33(0xc9)),validator_1=require(a7_0x418d33(0xcf)),decorator_1=require(a7_0x418d33(0xc4)),decorator_2=require(a7_0x418d33(0xc4)),decorator_3=require('@midwayjs/decorator'),action_1=require(a7_0x418d33(0xb7));function a7_0x1b67(_0x533769,_0x3036dc){const _0x373a63=a7_0x373a();return a7_0x1b67=function(_0x1b674a,_0x56fc02){_0x1b674a=_0x1b674a-0xaf;let _0x2d08fe=_0x373a63[_0x1b674a];return _0x2d08fe;},a7_0x1b67(_0x533769,_0x3036dc);}function getRoutes(_0x553c89={'prefix':'/','module':![]}){const _0x14ae29=a7_0x418d33;var _0x357ecd,_0x333379;const _0xc84a00=(0x0,decorator_3[_0x14ae29(0xf1)])(action_1[_0x14ae29(0xcb)]),_0x308e51={},_0x5911c8=Array[_0x14ae29(0xd5)](_0x553c89[_0x14ae29(0xf9)]||[])?_0x553c89[_0x14ae29(0xf9)]||[]:[_0x553c89[_0x14ae29(0xf9)]];_0x44f5b2:for(const _0x2bf7b5 of _0xc84a00){let _0x2221d7=(0x0,decorator_3['getClassMetadata'])(action_1[_0x14ae29(0xcb)],_0x2bf7b5),_0xac3a07=(0x0,decorator_3['getClassMetadata'])(action_1[_0x14ae29(0xbf)],_0x2bf7b5);if(_0x2221d7&&_0xac3a07){let _0x403a26=_0x2221d7[_0x14ae29(0xd9)],_0x2a9c87={};if(_0x553c89[_0x14ae29(0xe0)]&&(0x0,lodash_1[_0x14ae29(0xf4)])(_0x2221d7,'module',![])!=_0x553c89[_0x14ae29(0xe0)])continue _0x44f5b2;else{if(_0x553c89['module']===![]&&!!(0x0,lodash_1[_0x14ae29(0xf4)])(_0x2221d7,_0x14ae29(0xe0),null))continue _0x44f5b2;}if(_0x553c89['prefix']&&!_0x403a26['startsWith'](_0x553c89[_0x14ae29(0xd9)]))continue _0x44f5b2;_0x403a26!=='/'?(_0x2a9c87[_0x14ae29(0xc5)]=(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7['routerOptions'][_0x14ae29(0xf6)])||(/^\//[_0x14ae29(0xd0)](_0x403a26)?_0x403a26['split']('/')[0x1]:_0x403a26),_0x2a9c87[_0x14ae29(0xe6)]=(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xc2)]['description'])||_0x2a9c87['summary'],_0x2a9c87[_0x14ae29(0xaf)]=[]):(_0x2a9c87['summary']=(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xc2)][_0x14ae29(0xf6)])||'default',_0x2a9c87['description']=(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xc2)][_0x14ae29(0xe6)])||'',_0x2a9c87[_0x14ae29(0xaf)]=[]);_0x553c89[_0x14ae29(0xbe)]&&(_0x2a9c87[_0x14ae29(0xbe)]=_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xbe)]);(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xfa)])&&(_0x2a9c87[_0x14ae29(0xd9)]=_0x2221d7[_0x14ae29(0xfa)]);(_0x2221d7===null||_0x2221d7===void 0x0?void 0x0:_0x2221d7[_0x14ae29(0xe0)])&&(_0x2a9c87[_0x14ae29(0xe0)]=_0x2221d7[_0x14ae29(0xe0)]);let _0x3c5115=(0x0,decorator_3['getClassMetadata'])(decorator_2['INJECT_CUSTOM_PARAM'],_0x2bf7b5)||{};if(typeof _0xac3a07[Symbol[_0x14ae29(0xe1)]]===_0x14ae29(0x105))for(let _0x4ed048 of _0xac3a07){let _0x33d437={};_0x33d437['method']=_0x4ed048[_0x14ae29(0xd3)],_0x33d437[_0x14ae29(0x104)]=(_0x403a26+_0x4ed048[_0x14ae29(0xf5)])[_0x14ae29(0xb1)](/\/{1,}/,'/'),_0x33d437[_0x14ae29(0xc5)]=(_0x4ed048===null||_0x4ed048===void 0x0?void 0x0:_0x4ed048[_0x14ae29(0xda)])||_0x2a9c87['summary']||_0x14ae29(0xfb),_0x33d437[_0x14ae29(0xe6)]=(_0x4ed048===null||_0x4ed048===void 0x0?void 0x0:_0x4ed048['description'])||'',_0x33d437[_0x14ae29(0x101)]=[];if(!(0x0,lodash_1[_0x14ae29(0xe2)])(_0x33d437[_0x14ae29(0x104)],'static/apitest')&&!(0x0,lodash_1[_0x14ae29(0xe2)])(_0x33d437[_0x14ae29(0x104)],'/static/apitest')&&_0x5911c8[_0x14ae29(0xcc)](_0x33d437['route'])===-0x1){if(!(_0x553c89===null||_0x553c89===void 0x0?void 0x0:_0x553c89[_0x14ae29(0x109)])){let _0x2bd301=(0x0,decorator_3[_0x14ae29(0xbd)])(new _0x2bf7b5(),_0x4ed048[_0x14ae29(0xb3)]);for(const _0x4aee34 in _0x2bd301){let _0x3abd44=(_0x357ecd=_0x3c5115[_0x4ed048[_0x14ae29(0xb3)]])===null||_0x357ecd===void 0x0?void 0x0:_0x357ecd[_0x14ae29(0xdc)](_0x14c690=>_0x14c690[_0x14ae29(0xb0)]==_0x4aee34&&_0x14c690[_0x14ae29(0xcd)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x14c690===null||_0x14c690===void 0x0?void 0x0:_0x14c690[_0x14ae29(0xe9)]));if(_0x3abd44===null||_0x3abd44===void 0x0?void 0x0:_0x3abd44[_0x14ae29(0xe9)]){let _0x1f1e07=convertTypeToString(_0x3abd44[_0x14ae29(0xe9)][_0x14ae29(0xec)]||0x0);if(['query','body'][_0x14ae29(0xcc)](_0x1f1e07)!=-0x1&&_0x3abd44[_0x14ae29(0xe9)][_0x14ae29(0xc6)][_0x14ae29(0xcc)](':')==-0x1&&!_0x33d437[_0x14ae29(0x101)]['find'](_0xb64778=>_0xb64778[_0x14ae29(0xcd)]==_0x3abd44['metadata'][_0x14ae29(0xc6)]))_0x33d437[_0x14ae29(0x101)][_0x14ae29(0xb5)]({'key':_0x3abd44[_0x14ae29(0xe9)]['propertyData'],'title':_0x3abd44[_0x14ae29(0xe9)]['propertyData'],'type':convertSchemaType(_0x2bd301[_0x3abd44['parameterIndex']]['name']),'required':![],'default':'','desc':''});else{if(_0x1f1e07==_0x14ae29(0xfc)){let _0x253d39=((_0x333379=_0x3abd44===null||_0x3abd44===void 0x0?void 0x0:_0x3abd44[_0x14ae29(0xe9)])===null||_0x333379===void 0x0?void 0x0:_0x333379[_0x14ae29(0xc6)])||'file';_0x253d39[_0x14ae29(0xcc)](':')==-0x1&&!_0x33d437[_0x14ae29(0x101)][_0x14ae29(0xdc)](_0x33bd28=>_0x33bd28[_0x14ae29(0xcd)]==_0x253d39&&_0x33bd28[_0x14ae29(0xec)]==_0x14ae29(0xfc))&&_0x33d437['request'][_0x14ae29(0xb5)]({'key':_0x253d39,'title':_0x14ae29(0x10a)+_0x253d39,'type':_0x14ae29(0xfc),'required':!![],'default':'','desc':''});}}}else{const _0x149c5b=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x14ae29(0xe4)],_0x2bd301[_0x4aee34]);_0x149c5b&&_0x33d437['request']['push'](...getJoiRequest(_0x149c5b));}}}_0x2a9c87['routes'][_0x14ae29(0xb5)](_0x33d437);}}if(_0x2a9c87[_0x14ae29(0xaf)][_0x14ae29(0xc8)]>0x0){let _0x5e86b4=_0x308e51[_0x403a26];_0x5e86b4?(_0x5e86b4[_0x14ae29(0xc5)]!=_0x2a9c87['summary']&&(_0x5e86b4['summary']=_0x5e86b4[_0x14ae29(0xc5)]+','+_0x2a9c87[_0x14ae29(0xc5)]),_0x5e86b4['description']!=_0x2a9c87['description']&&(_0x5e86b4[_0x14ae29(0xe6)]=_0x5e86b4['description']+','+_0x2a9c87[_0x14ae29(0xe6)]),_0x5e86b4[_0x14ae29(0xaf)]=_0x5e86b4[_0x14ae29(0xaf)][_0x14ae29(0xde)](_0x2a9c87[_0x14ae29(0xaf)]),_0x308e51[_0x403a26]=_0x5e86b4):_0x308e51[_0x403a26]=_0x2a9c87;}}}return _0x308e51;}exports[a7_0x418d33(0xc0)]=getRoutes;function getJoiRequest(_0x5e3123){const _0x4a9ca3=a7_0x418d33,_0x428f68=[];for(let _0x150f17 in _0x5e3123){const _0x3c1ad7={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5ca3d0=typeof _0x5e3123[_0x150f17][_0x4a9ca3(0xce)]==_0x4a9ca3(0x105)?_0x5e3123[_0x150f17][_0x4a9ca3(0xce)]():_0x5e3123[_0x150f17];_0x3c1ad7[_0x4a9ca3(0xcd)]=_0x150f17,_0x3c1ad7[_0x4a9ca3(0xec)]=_0x5ca3d0[_0x4a9ca3(0xec)],_0x3c1ad7[_0x4a9ca3(0xed)]=(0x0,lodash_1['get'])(_0x5ca3d0,_0x4a9ca3(0xfe),_0x150f17),_0x3c1ad7[_0x4a9ca3(0xfb)]=(0x0,lodash_1[_0x4a9ca3(0xf4)])(_0x5ca3d0,'flags.default',''),_0x3c1ad7['required']=(0x0,lodash_1[_0x4a9ca3(0xf4)])(_0x5ca3d0,'flags.presence','')==_0x4a9ca3(0xee),_0x3c1ad7['description']=(0x0,lodash_1[_0x4a9ca3(0xf4)])(_0x5ca3d0,_0x4a9ca3(0xb9),'');if(_0x5ca3d0['type']==_0x4a9ca3(0xe7))_0x3c1ad7['children']=getJoiRequest(_0x5ca3d0[_0x4a9ca3(0xe3)]);else _0x5ca3d0['type']==_0x4a9ca3(0xba)&&_0x5ca3d0[_0x4a9ca3(0xb2)]&&Array['isArray'](_0x5ca3d0[_0x4a9ca3(0xb2)])&&_0x5ca3d0['items'][0x0]&&console[_0x4a9ca3(0xfd)](_0x150f17+'-array',_0x5ca3d0);_0x5ca3d0[_0x4a9ca3(0x107)]&&Array[_0x4a9ca3(0xd5)](_0x5ca3d0[_0x4a9ca3(0x107)])&&_0x5ca3d0[_0x4a9ca3(0x107)][_0x4a9ca3(0xc8)]>0x0&&(_0x3c1ad7['description']=_0x4a9ca3(0xd4)+_0x5ca3d0[_0x4a9ca3(0x107)][_0x4a9ca3(0xc7)](',')+'];'+_0x3c1ad7[_0x4a9ca3(0xe6)]);if(_0x3c1ad7[_0x4a9ca3(0xcd)]&&_0x3c1ad7[_0x4a9ca3(0xec)]){const _0x514a66={};for(const _0x1d75ba of _0x5ca3d0[_0x4a9ca3(0xf3)]||[]){if(_0x1d75ba[_0x4a9ca3(0xd8)]==='min'&&_0x1d75ba[_0x4a9ca3(0x100)])_0x514a66['min']=_0x1d75ba[_0x4a9ca3(0x100)][_0x4a9ca3(0xc1)];else _0x1d75ba[_0x4a9ca3(0xd8)]===_0x4a9ca3(0xc3)&&(_0x514a66[_0x4a9ca3(0xc3)]=_0x1d75ba[_0x4a9ca3(0x100)]['limit']);}_0x3c1ad7[_0x4a9ca3(0xf3)]=_0x514a66;}_0x3c1ad7[_0x4a9ca3(0xcd)]&&_0x3c1ad7[_0x4a9ca3(0xed)]&&_0x428f68[_0x4a9ca3(0xb5)](_0x3c1ad7);}return _0x428f68;}function convertSchemaType(_0x4ef9f5){const _0x193fcf=a7_0x418d33;switch(_0x4ef9f5){case _0x193fcf(0xd1):return _0x193fcf(0xe7);case'Boolean':return _0x193fcf(0xf7);case _0x193fcf(0xdb):return'number';case _0x193fcf(0xe8):return _0x193fcf(0x102);case _0x193fcf(0xdf):return _0x193fcf(0xfc);default:return _0x193fcf(0x102);}}function convertTypeToString(_0x3c785e){const _0x4f138f=a7_0x418d33;switch(_0x3c785e){case decorator_1[_0x4f138f(0xb4)]['HEADERS']:return _0x4f138f(0xca);case decorator_1['RouteParamTypes'][_0x4f138f(0xd7)]:return _0x4f138f(0xbb);case decorator_1[_0x4f138f(0xb4)][_0x4f138f(0xb6)]:return _0x4f138f(0xf5);case decorator_1[_0x4f138f(0xb4)][_0x4f138f(0xea)]:return _0x4f138f(0x108);case decorator_1[_0x4f138f(0xb4)][_0x4f138f(0xf2)]:case decorator_1[_0x4f138f(0xb4)][_0x4f138f(0xef)]:case decorator_1['RouteParamTypes'][_0x4f138f(0xe5)]:return _0x4f138f(0xfc);default:return _0x4f138f(0xca);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a8_0x403509=a8_0x4cd7;(function(_0xc0fdfc,_0x100986){var _0x536ee4=a8_0x4cd7,_0x231843=_0xc0fdfc();while(!![]){try{var _0x273e55=-parseInt(_0x536ee4(0x1bf))/0x1*(parseInt(_0x536ee4(0x1f5))/0x2)+parseInt(_0x536ee4(0x1dc))/0x3+parseInt(_0x536ee4(0x1f4))/0x4*(parseInt(_0x536ee4(0x1c4))/0x5)+parseInt(_0x536ee4(0x1df))/0x6+-parseInt(_0x536ee4(0x1bb))/0x7*(parseInt(_0x536ee4(0x1f2))/0x8)+-parseInt(_0x536ee4(0x1cd))/0x9+parseInt(_0x536ee4(0x1ce))/0xa*(-parseInt(_0x536ee4(0x1cc))/0xb);if(_0x273e55===_0x100986)break;else _0x231843['push'](_0x231843['shift']());}catch(_0xd3600d){_0x231843['push'](_0x231843['shift']());}}}(a8_0x4f61,0x95a90));function a8_0x4f61(){var _0x4ae1c4=['@anncic-api/event','Fields','ScopeEnum','ApiError','ValidatorService','__esModule','./exception/ApiError','Body','App','Files','Inject','ValidatorError','./decorator/ActionApitest','CustomConfiguration','./service/ApiService','Query','Config','./types/common','304ucivbh','Provide','4bgCCaB','12BimWSY','61796tnIPdk','call','CacheService','create','177189jAzhil','./configuration','Apitest','Scope','EventService','5064530KDDXgH','Headers','getRoutes','__exportStar','hasOwnProperty','QueueService','Logger','ApiService','11198cAjiOW','3976074qzuQJD','3030FcJQrm','prototype','Action','Param','Api','Configuration','File','./decorator/ActionApi','./decorator/Action','configurable','@midwayjs/task','@anncic-api/validator','defineProperty','@midwayjs/decorator','3222564aABNke','Init','ExcelService','4048512dcvqvj'];a8_0x4f61=function(){return _0x4ae1c4;};return a8_0x4f61();}var __createBinding=this&&this['__createBinding']||(Object[a8_0x403509(0x1be)]?function(_0x2c104b,_0x58b7a7,_0x2dc20d,_0x183756){var _0x540aee=a8_0x403509;if(_0x183756===undefined)_0x183756=_0x2dc20d;var _0x19c847=Object['getOwnPropertyDescriptor'](_0x58b7a7,_0x2dc20d);(!_0x19c847||('get'in _0x19c847?!_0x58b7a7[_0x540aee(0x1e5)]:_0x19c847['writable']||_0x19c847[_0x540aee(0x1d7)]))&&(_0x19c847={'enumerable':!![],'get':function(){return _0x58b7a7[_0x2dc20d];}}),Object[_0x540aee(0x1da)](_0x2c104b,_0x183756,_0x19c847);}:function(_0x52fbdb,_0x553fcf,_0x8bfe87,_0x1bf708){if(_0x1bf708===undefined)_0x1bf708=_0x8bfe87;_0x52fbdb[_0x1bf708]=_0x553fcf[_0x8bfe87];}),__exportStar=this&&this[a8_0x403509(0x1c7)]||function(_0x4778ee,_0x4c2754){var _0x1e8a68=a8_0x403509;for(var _0x47fd8a in _0x4778ee)if(_0x47fd8a!=='default'&&!Object[_0x1e8a68(0x1cf)][_0x1e8a68(0x1c8)][_0x1e8a68(0x1bc)](_0x4c2754,_0x47fd8a))__createBinding(_0x4c2754,_0x4778ee,_0x47fd8a);};Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1e5),{'value':!![]}),exports[a8_0x403509(0x1e2)]=exports[a8_0x403509(0x1c2)]=exports[a8_0x403509(0x1ea)]=exports[a8_0x403509(0x1f3)]=exports[a8_0x403509(0x1ca)]=exports[a8_0x403509(0x1f0)]=exports[a8_0x403509(0x1e8)]=exports[a8_0x403509(0x1dd)]=exports[a8_0x403509(0x1c5)]=exports[a8_0x403509(0x1ef)]=exports[a8_0x403509(0x1d1)]=exports[a8_0x403509(0x1e7)]=exports['Fields']=exports[a8_0x403509(0x1e9)]=exports[a8_0x403509(0x1d4)]=exports[a8_0x403509(0x1d3)]=exports[a8_0x403509(0x1e4)]=exports[a8_0x403509(0x1eb)]=exports[a8_0x403509(0x1de)]=exports[a8_0x403509(0x1cb)]=exports[a8_0x403509(0x1c3)]=exports['CacheService']=exports[a8_0x403509(0x1c9)]=exports[a8_0x403509(0x1e3)]=exports[a8_0x403509(0x1c1)]=exports[a8_0x403509(0x1d0)]=exports[a8_0x403509(0x1d2)]=exports['getRoutes']=void 0x0,__exportStar(require(a8_0x403509(0x1f1)),exports),__exportStar(require('./service/ApitestService'),exports);var getRoutes_1=require('./helper/getRoutes');Object['defineProperty'](exports,a8_0x403509(0x1c6),{'enumerable':!![],'get':function(){var _0x2bd7f3=a8_0x403509;return getRoutes_1[_0x2bd7f3(0x1c6)];}});var ActionApi_1=require(a8_0x403509(0x1d5));Object['defineProperty'](exports,a8_0x403509(0x1d2),{'enumerable':!![],'get':function(){var _0x565b4f=a8_0x403509;return ActionApi_1[_0x565b4f(0x1d2)];}});function a8_0x4cd7(_0x4b7ad7,_0x4e355b){var _0x4f61ff=a8_0x4f61();return a8_0x4cd7=function(_0x4cd736,_0x5b1057){_0x4cd736=_0x4cd736-0x1bb;var _0x490436=_0x4f61ff[_0x4cd736];return _0x490436;},a8_0x4cd7(_0x4b7ad7,_0x4e355b);}var Action_1=require(a8_0x403509(0x1d6));Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1d0),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a8_0x403509(0x1ec));Object[a8_0x403509(0x1da)](exports,'Apitest',{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var ApiError_1=require(a8_0x403509(0x1e6));Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1e3),{'enumerable':!![],'get':function(){var _0xa19783=a8_0x403509;return ApiError_1[_0xa19783(0x1e3)];}});var task_1=require(a8_0x403509(0x1d8));Object[a8_0x403509(0x1da)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x10d2e8=a8_0x403509;return task_1[_0x10d2e8(0x1c9)];}});var cache_1=require('@anncic-api/cache');Object[a8_0x403509(0x1da)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x265a2c=a8_0x403509;return cache_1[_0x265a2c(0x1bd)];}});var event_1=require(a8_0x403509(0x1e0));Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1c3),{'enumerable':!![],'get':function(){var _0x194e1b=a8_0x403509;return event_1[_0x194e1b(0x1c3)];}});var ApiService_1=require(a8_0x403509(0x1ee));Object[a8_0x403509(0x1da)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x28acd6=a8_0x403509;return ApiService_1[_0x28acd6(0x1cb)];}});var ExcelService_1=require('./service/ExcelService');Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1de),{'enumerable':!![],'get':function(){var _0x216d3e=a8_0x403509;return ExcelService_1[_0x216d3e(0x1de)];}});var validator_1=require(a8_0x403509(0x1d9));Object['defineProperty'](exports,a8_0x403509(0x1eb),{'enumerable':!![],'get':function(){var _0x1a703d=a8_0x403509;return validator_1[_0x1a703d(0x1eb)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1e4),{'enumerable':!![],'get':function(){var _0x49d3de=a8_0x403509;return validator_1[_0x49d3de(0x1e4)];}});var configuration_1=require(a8_0x403509(0x1c0));Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1d3),{'enumerable':!![],'get':function(){var _0x196356=a8_0x403509;return configuration_1[_0x196356(0x1ed)];}});var decorator_1=require('@midwayjs/decorator');Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1d4),{'enumerable':!![],'get':function(){var _0x4a11d9=a8_0x403509;return decorator_1[_0x4a11d9(0x1d4)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1e9),{'enumerable':!![],'get':function(){var _0x4d8799=a8_0x403509;return decorator_1[_0x4d8799(0x1e9)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1e1),{'enumerable':!![],'get':function(){var _0x5dd9d6=a8_0x403509;return decorator_1[_0x5dd9d6(0x1e1)];}}),Object['defineProperty'](exports,a8_0x403509(0x1e7),{'enumerable':!![],'get':function(){var _0x17a75b=a8_0x403509;return decorator_1[_0x17a75b(0x1e7)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1d1),{'enumerable':!![],'get':function(){var _0x1e7718=a8_0x403509;return decorator_1[_0x1e7718(0x1d1)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1ef),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object['defineProperty'](exports,a8_0x403509(0x1c5),{'enumerable':!![],'get':function(){var _0x261eda=a8_0x403509;return decorator_1[_0x261eda(0x1c5)];}}),Object['defineProperty'](exports,a8_0x403509(0x1dd),{'enumerable':!![],'get':function(){var _0x892426=a8_0x403509;return decorator_1[_0x892426(0x1dd)];}});var decorator_2=require(a8_0x403509(0x1db));Object['defineProperty'](exports,a8_0x403509(0x1e8),{'enumerable':!![],'get':function(){var _0x141614=a8_0x403509;return decorator_2[_0x141614(0x1e8)];}}),Object[a8_0x403509(0x1da)](exports,'Config',{'enumerable':!![],'get':function(){var _0x125bad=a8_0x403509;return decorator_2[_0x125bad(0x1f0)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1ca),{'enumerable':!![],'get':function(){var _0x1e4b52=a8_0x403509;return decorator_2[_0x1e4b52(0x1ca)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1f3),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object['defineProperty'](exports,a8_0x403509(0x1ea),{'enumerable':!![],'get':function(){var _0x20b0a3=a8_0x403509;return decorator_2[_0x20b0a3(0x1ea)];}}),Object[a8_0x403509(0x1da)](exports,a8_0x403509(0x1c2),{'enumerable':!![],'get':function(){var _0x4a5574=a8_0x403509;return decorator_2[_0x4a5574(0x1c2)];}}),Object[a8_0x403509(0x1da)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){return decorator_2['ScopeEnum'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a9_0x4a0b(_0x2ba967,_0x13fe71){var _0x289290=a9_0x2892();return a9_0x4a0b=function(_0x4a0bdd,_0x19b921){_0x4a0bdd=_0x4a0bdd-0x1f1;var _0x132f8a=_0x289290[_0x4a0bdd];return _0x132f8a;},a9_0x4a0b(_0x2ba967,_0x13fe71);}var a9_0xe736de=a9_0x4a0b;(function(_0x4bb46e,_0x281a75){var _0x5d0b4a=a9_0x4a0b,_0x3ae6e8=_0x4bb46e();while(!![]){try{var _0x367f7d=parseInt(_0x5d0b4a(0x20d))/0x1*(parseInt(_0x5d0b4a(0x226))/0x2)+-parseInt(_0x5d0b4a(0x21f))/0x3+-parseInt(_0x5d0b4a(0x20c))/0x4*(parseInt(_0x5d0b4a(0x217))/0x5)+-parseInt(_0x5d0b4a(0x225))/0x6*(-parseInt(_0x5d0b4a(0x21a))/0x7)+-parseInt(_0x5d0b4a(0x218))/0x8*(parseInt(_0x5d0b4a(0x1f7))/0x9)+-parseInt(_0x5d0b4a(0x220))/0xa+parseInt(_0x5d0b4a(0x210))/0xb*(parseInt(_0x5d0b4a(0x202))/0xc);if(_0x367f7d===_0x281a75)break;else _0x3ae6e8['push'](_0x3ae6e8['shift']());}catch(_0x1c6380){_0x3ae6e8['push'](_0x3ae6e8['shift']());}}}(a9_0x2892,0xb309c));var __decorate=this&&this['__decorate']||function(_0x2513b5,_0x3c48b1,_0x390096,_0x47f2fb){var _0x5ec00a=a9_0x4a0b,_0x522b58=arguments[_0x5ec00a(0x1f4)],_0x113a75=_0x522b58<0x3?_0x3c48b1:_0x47f2fb===null?_0x47f2fb=Object[_0x5ec00a(0x20b)](_0x3c48b1,_0x390096):_0x47f2fb,_0x54badc;if(typeof Reflect===_0x5ec00a(0x207)&&typeof Reflect['decorate']==='function')_0x113a75=Reflect[_0x5ec00a(0x219)](_0x2513b5,_0x3c48b1,_0x390096,_0x47f2fb);else{for(var _0x4a0ab5=_0x2513b5[_0x5ec00a(0x1f4)]-0x1;_0x4a0ab5>=0x0;_0x4a0ab5--)if(_0x54badc=_0x2513b5[_0x4a0ab5])_0x113a75=(_0x522b58<0x3?_0x54badc(_0x113a75):_0x522b58>0x3?_0x54badc(_0x3c48b1,_0x390096,_0x113a75):_0x54badc(_0x3c48b1,_0x390096))||_0x113a75;}return _0x522b58>0x3&&_0x113a75&&Object[_0x5ec00a(0x1fa)](_0x3c48b1,_0x390096,_0x113a75),_0x113a75;},__metadata=this&&this[a9_0xe736de(0x21b)]||function(_0x1f9c37,_0x3dc754){var _0x2aedde=a9_0xe736de;if(typeof Reflect==='object'&&typeof Reflect[_0x2aedde(0x209)]===_0x2aedde(0x21e))return Reflect[_0x2aedde(0x209)](_0x1f9c37,_0x3dc754);};function a9_0x2892(){var _0x3ff4b0=['getsign','MD5','缺少头信息:signature','Scope','now','length','HEADERS_DEVICE','HEADERS_LACK','396GiGxyp','@midwayjs/decorator','Config','defineProperty','Provide','undefined','anncicapi','token','Singleton','ScopeEnum','push','36hTMzVs','secret','HEADERS_SIGNATURE','__esModule','logintime','object','password','metadata','join','getOwnPropertyDescriptor','84mSuupe','2986qWThXt','prototype','device','3668533GeKvpg','devices','fromEntries','config','entries','requesttime','toLowerCase','795EbRsco','187864zNyqwj','decorate','8779127JEoGiO','__metadata','TIMEOUT','toString','function','2062197ECYsDc','8036220MpacrE','map','ApiError','checkcode','design:type','6ekOUEb','674LBEoNl','缺少头信息:'];a9_0x2892=function(){return _0x3ff4b0;};return a9_0x2892();}Object[a9_0xe736de(0x1fa)](exports,a9_0xe736de(0x205),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0xe736de(0x1f8)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a9_0xe736de(0x208)](_0x165d9b){var _0x7ab119=a9_0xe736de,_0x4f2975;return _0x165d9b?(0x0,crypto_js_1[_0x7ab119(0x229)])(_0x165d9b+(0x0,crypto_js_1[_0x7ab119(0x229)])((0x0,crypto_js_1['MD5'])(_0x165d9b)[_0x7ab119(0x21d)]()+((_0x4f2975=this[_0x7ab119(0x213)])===null||_0x4f2975===void 0x0?void 0x0:_0x4f2975[_0x7ab119(0x208)]))[_0x7ab119(0x21d)]())['toString']():'';}['getcheck'](_0x2ff95e,_0x506df1,_0x36c206=Date[a9_0xe736de(0x1f3)]()){var _0x3fad4c=a9_0xe736de;return{'Token':_0x2ff95e,'Logintime':_0x36c206,'Checkcode':this[_0x3fad4c(0x223)](_0x2ff95e,_0x506df1,_0x36c206)};}[a9_0xe736de(0x228)](_0x5dbf6a={}){var _0x37d2ed=a9_0xe736de;const _0x57862b=[],_0x449515=Object[_0x37d2ed(0x212)](Object[_0x37d2ed(0x214)](_0x5dbf6a)[_0x37d2ed(0x221)](_0x2ee263=>[_0x2ee263[0x0][_0x37d2ed(0x216)](),_0x2ee263[0x1]]));for(let _0x53866d of[_0x37d2ed(0x20f),_0x37d2ed(0x215),_0x37d2ed(0x1fe),_0x37d2ed(0x206),'checkcode']){if(typeof _0x449515[_0x53866d]==_0x37d2ed(0x1fc))throw new AnnError(ApiError_1['ApiError'][_0x37d2ed(0x1f6)],{'message':_0x37d2ed(0x227)+_0x53866d});_0x57862b['push'](_0x53866d+'='+_0x449515[_0x53866d]);}if(Math['abs'](_0x449515[_0x37d2ed(0x215)])-Date[_0x37d2ed(0x1f3)]()>this[_0x37d2ed(0x213)]['timeout'])throw new AnnError(ApiError_1[_0x37d2ed(0x222)][_0x37d2ed(0x21c)]);if(!this['config'][_0x37d2ed(0x211)][_0x449515['device']]||!this[_0x37d2ed(0x213)]['devices'][_0x449515[_0x37d2ed(0x20f)]]['secret']||!this[_0x37d2ed(0x213)][_0x37d2ed(0x211)][_0x449515[_0x37d2ed(0x20f)]]['checkcode'])throw new AnnError(ApiError_1[_0x37d2ed(0x222)]['HEADERS_DEVICE']);if(_0x449515[_0x37d2ed(0x1fe)]&&_0x449515[_0x37d2ed(0x223)]!=this[_0x37d2ed(0x223)](_0x449515[_0x37d2ed(0x1fe)],_0x449515[_0x37d2ed(0x20f)],_0x449515[_0x37d2ed(0x206)]))throw new AnnError(ApiError_1[_0x37d2ed(0x222)]['HEADERS_CHECKCODE']);return _0x57862b[_0x37d2ed(0x201)]('secret='+this['config'][_0x37d2ed(0x211)][_0x449515['device']][_0x37d2ed(0x203)]),(0x0,crypto_js_1[_0x37d2ed(0x229)])(_0x57862b['sort']()[_0x37d2ed(0x20a)](''))[_0x37d2ed(0x21d)]();}['checkcode'](_0x1e917d,_0x302702,_0xb16408=Date[a9_0xe736de(0x1f3)]()){var _0x1af10e=a9_0xe736de,_0x215e47,_0x1b5ad1,_0x11b14b;if(!((_0x215e47=this[_0x1af10e(0x213)])===null||_0x215e47===void 0x0?void 0x0:_0x215e47[_0x1af10e(0x211)][_0x302702])||!((_0x11b14b=(_0x1b5ad1=this[_0x1af10e(0x213)])===null||_0x1b5ad1===void 0x0?void 0x0:_0x1b5ad1[_0x1af10e(0x211)][_0x302702])===null||_0x11b14b===void 0x0?void 0x0:_0x11b14b[_0x1af10e(0x223)]))throw new AnnError(ApiError_1[_0x1af10e(0x222)][_0x1af10e(0x1f5)]);return(0x0,crypto_js_1[_0x1af10e(0x229)])(_0x1e917d+(0x0,crypto_js_1[_0x1af10e(0x229)])(_0xb16408+this['config'][_0x1af10e(0x211)][_0x302702][_0x1af10e(0x223)])['toString']())[_0x1af10e(0x21d)]();}['checksign'](_0x4a78b0={}){var _0x4e956f=a9_0xe736de;const _0x48eada=Object['fromEntries'](Object['entries'](_0x4a78b0)[_0x4e956f(0x221)](_0x5095c4=>[_0x5095c4[0x0][_0x4e956f(0x216)](),_0x5095c4[0x1]]));if(!(_0x48eada===null||_0x48eada===void 0x0?void 0x0:_0x48eada['signature']))throw new AnnError(ApiError_1['ApiError']['HEADERS_LACK'],{'message':_0x4e956f(0x1f1)});if((_0x48eada===null||_0x48eada===void 0x0?void 0x0:_0x48eada['signature'])!=this['getsign'](_0x48eada))throw new AnnError(ApiError_1[_0x4e956f(0x222)][_0x4e956f(0x204)]);return!![];}};__decorate([(0x0,decorator_1[a9_0xe736de(0x1f9)])(a9_0xe736de(0x1fd)),__metadata(a9_0xe736de(0x224),Object)],ApiService[a9_0xe736de(0x20e)],a9_0xe736de(0x213),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0xe736de(0x1fb)])(),(0x0,decorator_1[a9_0xe736de(0x1f2)])(decorator_1[a9_0xe736de(0x200)][a9_0xe736de(0x1ff)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a10_0x5104d2=a10_0xd9b3;(function(_0x31dbe5,_0x8ec59){const _0x459ea1=a10_0xd9b3,_0x9c1e03=_0x31dbe5();while(!![]){try{const _0x297b6b=-parseInt(_0x459ea1(0xcd))/0x1*(parseInt(_0x459ea1(0xd0))/0x2)+-parseInt(_0x459ea1(0xff))/0x3+parseInt(_0x459ea1(0xd4))/0x4+-parseInt(_0x459ea1(0xc6))/0x5*(-parseInt(_0x459ea1(0xed))/0x6)+-parseInt(_0x459ea1(0xd8))/0x7+-parseInt(_0x459ea1(0xdb))/0x8*(parseInt(_0x459ea1(0xf3))/0x9)+-parseInt(_0x459ea1(0xdc))/0xa*(-parseInt(_0x459ea1(0xe0))/0xb);if(_0x297b6b===_0x8ec59)break;else _0x9c1e03['push'](_0x9c1e03['shift']());}catch(_0x46f29c){_0x9c1e03['push'](_0x9c1e03['shift']());}}}(a10_0x2386,0x429e5));function a10_0x2386(){const _0xc50241=['327260OVTtfh','getOwnPropertyDescriptor','routes','apidoc','297Fcvcaf','/apiteststatic/','length','filepath','Config','isDevelopmentEnvironment','metadata','devices','__decorate','Provide','@midwayjs/decorator','request','push','426BJVdjN','stringify','Controller','application/javascript;\x20charset=utf-8','function','utf-8','45JXYFxn','summary','decorate','config','__param','__metadata','module','prefix','getRoutes','/apiteststatic/*','Inject','anncicapi','1017633EMSTSP','join','Environment','readFileSync','set','text/css;\x20charset=utf-8','__esModule','url','design:type','description','ScopeEnum','defineProperty','apitest','content-type','replace','design:paramtypes','MidwayEnvironmentService','Get','apitestmodule','/apitest-:module','Singleton','prototype','../../public/index.html','__devices__','public,\x20max-age=604800','design:returntype','9175rXQzEh','Scope','extname','ApitestService','.css','apiteststatic','__apiList__','5KUFCLZ','ctx','ApitestStaticController','188228OuDNAN','object','route','path','2156800jJeptB','../../public/','substring','existsSync','1396724fsNVLJ','Param','apitesthtml','433448UOMzCr'];a10_0x2386=function(){return _0xc50241;};return a10_0x2386();}var __decorate=this&&this[a10_0x5104d2(0xe8)]||function(_0x289959,_0x5c3f76,_0x56760c,_0x548ab0){const _0x528abf=a10_0x5104d2;var _0x26fe55=arguments['length'],_0x7c4770=_0x26fe55<0x3?_0x5c3f76:_0x548ab0===null?_0x548ab0=Object[_0x528abf(0xdd)](_0x5c3f76,_0x56760c):_0x548ab0,_0x12a79d;if(typeof Reflect===_0x528abf(0xd1)&&typeof Reflect['decorate']===_0x528abf(0xf1))_0x7c4770=Reflect[_0x528abf(0xf5)](_0x289959,_0x5c3f76,_0x56760c,_0x548ab0);else{for(var _0x46eac4=_0x289959[_0x528abf(0xe2)]-0x1;_0x46eac4>=0x0;_0x46eac4--)if(_0x12a79d=_0x289959[_0x46eac4])_0x7c4770=(_0x26fe55<0x3?_0x12a79d(_0x7c4770):_0x26fe55>0x3?_0x12a79d(_0x5c3f76,_0x56760c,_0x7c4770):_0x12a79d(_0x5c3f76,_0x56760c))||_0x7c4770;}return _0x26fe55>0x3&&_0x7c4770&&Object[_0x528abf(0x10a)](_0x5c3f76,_0x56760c,_0x7c4770),_0x7c4770;},__metadata=this&&this[a10_0x5104d2(0xf8)]||function(_0x46c222,_0x240242){const _0x2d0b2e=a10_0x5104d2;if(typeof Reflect==='object'&&typeof Reflect[_0x2d0b2e(0xe6)]==='function')return Reflect[_0x2d0b2e(0xe6)](_0x46c222,_0x240242);},__param=this&&this[a10_0x5104d2(0xf7)]||function(_0xf69b90,_0x408257){return function(_0x26564d,_0x5c5bfd){_0x408257(_0x26564d,_0x5c5bfd,_0xf69b90);};};Object[a10_0x5104d2(0x10a)](exports,a10_0x5104d2(0x105),{'value':!![]}),exports[a10_0x5104d2(0xcf)]=exports[a10_0x5104d2(0xc9)]=void 0x0;const path_1=require(a10_0x5104d2(0xd3)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x5104d2(0xea)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0x5104d2(0xdf)](_0x38cece){const _0x1f49c9=a10_0x5104d2,_0x39458e=(0x0,getRoutes_1[_0x1f49c9(0xfb)])(_0x38cece),_0x2930fe=[];for(let _0x1462b9 in _0x39458e){for(let _0x2bdf54 in _0x39458e[_0x1462b9][_0x1f49c9(0xde)]){let _0x4cc834=_0x39458e[_0x1462b9][_0x1f49c9(0xde)][_0x2bdf54],_0x5d97a4=[];for(let _0x5a1462 in _0x4cc834[_0x1f49c9(0xeb)]){_0x5d97a4[_0x1f49c9(0xec)](_0x4cc834[_0x1f49c9(0xeb)][_0x5a1462]);}_0x2930fe['push']({'title':_0x39458e[_0x1462b9][_0x1f49c9(0xf4)]+':'+_0x4cc834[_0x1f49c9(0xf4)],'prefix':_0x39458e[_0x1462b9][_0x1f49c9(0xfa)],'router':_0x4cc834[_0x1f49c9(0xd2)],'method':_0x4cc834['method'],'describe':_0x4cc834[_0x1f49c9(0x108)]||'','filepath':_0x39458e[_0x1462b9][_0x1f49c9(0xe3)]||'','request':_0x5d97a4});}}const _0x48e286=(0x0,path_1[_0x1f49c9(0x100)])(__dirname,_0x1f49c9(0xc2));return(0x0,fs_1[_0x1f49c9(0x102)])(_0x48e286,{'encoding':_0x1f49c9(0xf2)})['replace'](/__res__/g,_0x1f49c9(0xe1))[_0x1f49c9(0x10d)](_0x1f49c9(0xcc),JSON[_0x1f49c9(0xee)](_0x2930fe))[_0x1f49c9(0x10d)](_0x1f49c9(0xc3),JSON[_0x1f49c9(0xee)](this[_0x1f49c9(0xf6)][_0x1f49c9(0xe7)]));}};__decorate([(0x0,decorator_2[a10_0x5104d2(0xe4)])(a10_0x5104d2(0xfe)),__metadata(a10_0x5104d2(0x107),Object)],ApitestService[a10_0x5104d2(0xc1)],a10_0x5104d2(0xf6),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x5104d2(0xe9)])(a10_0x5104d2(0x10b)),(0x0,decorator_2[a10_0x5104d2(0xc7)])(decorator_2[a10_0x5104d2(0x109)][a10_0x5104d2(0xc0)])],ApitestService),exports[a10_0x5104d2(0xc9)]=ApitestService;function a10_0xd9b3(_0x4cd1f8,_0x55592d){const _0x2386b7=a10_0x2386();return a10_0xd9b3=function(_0xd9b309,_0x374d42){_0xd9b309=_0xd9b309-0xbc;let _0x271caf=_0x2386b7[_0xd9b309];return _0x271caf;},a10_0xd9b3(_0x4cd1f8,_0x55592d);}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x5eccc0=a10_0x5104d2;if(this[_0x5eccc0(0x10b)]){const _0xaf7e09={'module':![]};return this[_0x5eccc0(0x101)][_0x5eccc0(0xe5)]()&&(_0xaf7e09[_0x5eccc0(0xe3)]=!![]),await this[_0x5eccc0(0xc9)][_0x5eccc0(0xdf)](_0xaf7e09);}return'';}async[a10_0x5104d2(0xbe)](_0x46abc0){const _0x544cc2=a10_0x5104d2;if(this[_0x544cc2(0x10b)]){const _0x4927e0={'module':_0x46abc0};return this[_0x544cc2(0x101)][_0x544cc2(0xe5)]()&&(_0x4927e0[_0x544cc2(0xe3)]=!![]),await this[_0x544cc2(0xc9)][_0x544cc2(0xdf)](_0x4927e0);}return'';}async[a10_0x5104d2(0xcb)](){const _0x1ae93c=a10_0x5104d2;if((0x0,path_1[_0x1ae93c(0xc8)])(this[_0x1ae93c(0xce)][_0x1ae93c(0xeb)]['url'])){var _0xf4d48b=(0x0,path_1[_0x1ae93c(0x100)])(__dirname,_0x1ae93c(0xd5)+this['ctx'][_0x1ae93c(0xeb)]['url'][_0x1ae93c(0x10d)](_0x1ae93c(0xe1),'/'));if(_0xf4d48b[_0x1ae93c(0xd6)](_0xf4d48b[_0x1ae93c(0xe2)]-0xb)!='/index.html'){this[_0x1ae93c(0xce)][_0x1ae93c(0x103)]('cache-control',_0x1ae93c(0xc4));if((0x0,path_1[_0x1ae93c(0xc8)])(this[_0x1ae93c(0xce)][_0x1ae93c(0xeb)][_0x1ae93c(0x106)])=='.js')this[_0x1ae93c(0xce)][_0x1ae93c(0x103)]('content-type',_0x1ae93c(0xf0));else(0x0,path_1['extname'])(this[_0x1ae93c(0xce)][_0x1ae93c(0xeb)][_0x1ae93c(0x106)])==_0x1ae93c(0xca)&&this[_0x1ae93c(0xce)][_0x1ae93c(0x103)](_0x1ae93c(0x10c),_0x1ae93c(0x104));return(0x0,fs_1[_0x1ae93c(0xd7)])(_0xf4d48b)&&(0x0,fs_1[_0x1ae93c(0x102)])(_0xf4d48b,{'encoding':_0x1ae93c(0xf2)});}}return'';}};__decorate([(0x0,decorator_2[a10_0x5104d2(0xfd)])(),__metadata(a10_0x5104d2(0x107),Object)],ApitestStaticController['prototype'],a10_0x5104d2(0xce),void 0x0),__decorate([(0x0,decorator_2[a10_0x5104d2(0xfd)])(),__metadata(a10_0x5104d2(0x107),core_1[a10_0x5104d2(0xbc)])],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0x101),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x5104d2(0x107),ApitestService)],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0xc9),void 0x0),__decorate([(0x0,decorator_2[a10_0x5104d2(0xe4)])(a10_0x5104d2(0x10b)),__metadata('design:type',Boolean)],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0x10b),void 0x0),__decorate([(0x0,decorator_2[a10_0x5104d2(0xe4)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController['prototype'],a10_0x5104d2(0xf6),void 0x0),__decorate([(0x0,decorator_1[a10_0x5104d2(0xbd)])('/apitest'),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0xda),null),__decorate([(0x0,decorator_1['Get'])(a10_0x5104d2(0xbf)),__param(0x0,(0x0,decorator_1[a10_0x5104d2(0xd9)])(a10_0x5104d2(0xf9))),__metadata(a10_0x5104d2(0x107),Function),__metadata('design:paramtypes',[String]),__metadata(a10_0x5104d2(0xc5),Promise)],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0xbe),null),__decorate([(0x0,decorator_1[a10_0x5104d2(0xbd)])(a10_0x5104d2(0xfc)),__metadata(a10_0x5104d2(0x107),Function),__metadata(a10_0x5104d2(0x10e),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x5104d2(0xc1)],a10_0x5104d2(0xcb),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x5104d2(0xef)])('/'),(0x0,decorator_2[a10_0x5104d2(0xc7)])(decorator_2[a10_0x5104d2(0x109)]['Request'])],ApitestStaticController),exports[a10_0x5104d2(0xcf)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x24054f=a11_0x24c8;(function(_0x23eab0,_0x3be992){const _0x37f96f=a11_0x24c8,_0x3bbf26=_0x23eab0();while(!![]){try{const _0x2a19da=-parseInt(_0x37f96f(0xbf))/0x1+parseInt(_0x37f96f(0xaf))/0x2*(parseInt(_0x37f96f(0x9f))/0x3)+parseInt(_0x37f96f(0xa9))/0x4*(-parseInt(_0x37f96f(0xae))/0x5)+-parseInt(_0x37f96f(0xd9))/0x6+parseInt(_0x37f96f(0xac))/0x7*(-parseInt(_0x37f96f(0xbd))/0x8)+-parseInt(_0x37f96f(0xd1))/0x9+parseInt(_0x37f96f(0xa0))/0xa*(parseInt(_0x37f96f(0xb7))/0xb);if(_0x2a19da===_0x3be992)break;else _0x3bbf26['push'](_0x3bbf26['shift']());}catch(_0x501b3a){_0x3bbf26['push'](_0x3bbf26['shift']());}}}(a11_0x2b61,0x5c250));var __decorate=this&&this[a11_0x24054f(0xe1)]||function(_0x1b00c7,_0x454e2f,_0x38e0df,_0x10c795){const _0x4926cf=a11_0x24054f;var _0x535a07=arguments[_0x4926cf(0xcf)],_0x1492bb=_0x535a07<0x3?_0x454e2f:_0x10c795===null?_0x10c795=Object['getOwnPropertyDescriptor'](_0x454e2f,_0x38e0df):_0x10c795,_0x554051;if(typeof Reflect===_0x4926cf(0xd8)&&typeof Reflect['decorate']===_0x4926cf(0xba))_0x1492bb=Reflect[_0x4926cf(0xa2)](_0x1b00c7,_0x454e2f,_0x38e0df,_0x10c795);else{for(var _0x7f9fa2=_0x1b00c7[_0x4926cf(0xcf)]-0x1;_0x7f9fa2>=0x0;_0x7f9fa2--)if(_0x554051=_0x1b00c7[_0x7f9fa2])_0x1492bb=(_0x535a07<0x3?_0x554051(_0x1492bb):_0x535a07>0x3?_0x554051(_0x454e2f,_0x38e0df,_0x1492bb):_0x554051(_0x454e2f,_0x38e0df))||_0x1492bb;}return _0x535a07>0x3&&_0x1492bb&&Object[_0x4926cf(0xc9)](_0x454e2f,_0x38e0df,_0x1492bb),_0x1492bb;},__metadata=this&&this[a11_0x24054f(0xcc)]||function(_0x1892b5,_0x27bc04){const _0x285e66=a11_0x24054f;if(typeof Reflect===_0x285e66(0xd8)&&typeof Reflect['metadata']===_0x285e66(0xba))return Reflect['metadata'](_0x1892b5,_0x27bc04);};function a11_0x24c8(_0x1b7566,_0x5b3ba1){const _0x2b6145=a11_0x2b61();return a11_0x24c8=function(_0x24c880,_0x298ba4){_0x24c880=_0x24c880-0x9c;let _0x2b0798=_0x2b6145[_0x24c880];return _0x2b0798;},a11_0x24c8(_0x1b7566,_0x5b3ba1);}Object[a11_0x24054f(0xc9)](exports,a11_0x24054f(0xb9),{'value':!![]}),exports[a11_0x24054f(0xd2)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x24054f(0xaa)),koasend=require(a11_0x24054f(0xa4)),decorator_1=require(a11_0x24054f(0xd5));let ExcelService=class ExcelService{async['parse'](_0x346caf,_0x4d7164,_0xe4c081=[0x0]){const _0x263b7f=a11_0x24054f;var _0x11d0fb,_0x1a5c9f;const _0x5c10e5=new exceljs[(_0x263b7f(0xbe))](),_0x1d6963=[];let _0xa73d4=_0x346caf[_0x263b7f(0xdd)](/(\\|\/)/g,'/')[_0x263b7f(0xdd)](/\/{2,}/g,'/');!(_0xa73d4===null||_0xa73d4===void 0x0?void 0x0:_0xa73d4[_0x263b7f(0xa6)]('/'))&&(_0xa73d4=this[_0x263b7f(0x9d)][_0x263b7f(0xc6)]()+'/'+_0xa73d4);try{await _0x5c10e5[_0x263b7f(0xad)]['readFile'](_0xa73d4);}catch(_0x12d9c3){return console[_0x263b7f(0xab)](_0x263b7f(0xa7)+_0xa73d4+_0x263b7f(0xb8)),_0x1d6963;}for(const _0x29a47b of _0xe4c081){const _0x3f7d23=lodash[_0x263b7f(0xc3)](_0x29a47b)?((_0x11d0fb=_0x5c10e5[_0x263b7f(0xbb)])===null||_0x11d0fb===void 0x0?void 0x0:_0x11d0fb[_0x29a47b])||undefined:_0x5c10e5[_0x263b7f(0xb3)](_0x29a47b);if(_0x3f7d23){var _0x2ec0d1=0x1;const _0x440e05=_0x3f7d23['getRow'](0x1),_0x9245ff=await new Promise(_0x555e9e=>{const _0x1bbf1c=_0x263b7f,_0x1ad890={};_0x440e05[_0x1bbf1c(0xbc)]((_0x8a9d9b,_0x4ef92d)=>{const _0x14bc76=_0x1bbf1c;for(const _0x44c6c0 of _0x4d7164){if(_0x8a9d9b[_0x14bc76(0xc2)]==_0x44c6c0['header'])_0x2ec0d1=0x2,_0x1ad890[_0x44c6c0[_0x14bc76(0xdf)]]={'header':_0x8a9d9b[_0x14bc76(0xd3)],'handler':_0x44c6c0['handler']};else{if(!_0x1ad890[_0x44c6c0['key']])try{const _0x5201d2=_0x440e05[_0x14bc76(0xda)](_0x44c6c0['header']);_0x5201d2&&(_0x1ad890[_0x44c6c0[_0x14bc76(0xdf)]]={'header':_0x5201d2['col'],'handler':_0x44c6c0['handler']});}catch{}}}_0x440e05[_0x14bc76(0xd7)]==_0x4ef92d&&_0x555e9e(_0x1ad890);});});for(const _0x43e8c1 of _0x3f7d23[_0x263b7f(0xb4)](_0x2ec0d1,_0x3f7d23[_0x263b7f(0xa8)])){const _0x4ddf20={};for(const _0x126ca1 in _0x9245ff){_0x9245ff[_0x126ca1]['header']&&(typeof((_0x1a5c9f=_0x9245ff[_0x126ca1])===null||_0x1a5c9f===void 0x0?void 0x0:_0x1a5c9f[_0x263b7f(0xc5)])==_0x263b7f(0xba)?_0x4ddf20[_0x126ca1]=_0x9245ff[_0x126ca1][_0x263b7f(0xc5)](_0x43e8c1[_0x263b7f(0xda)](lodash[_0x263b7f(0xd4)](''+_0x9245ff[_0x126ca1]['header'],'\x20'))[_0x263b7f(0xb6)]()):_0x4ddf20[_0x126ca1]=_0x43e8c1['getCell'](_0x9245ff[_0x126ca1][_0x263b7f(0xde)])[_0x263b7f(0xb6)]());}Object[_0x263b7f(0xb1)](_0x4ddf20)[_0x263b7f(0xcf)]>0x0&&_0x1d6963[_0x263b7f(0xdc)](_0x4ddf20);}}}return _0x1d6963;}async[a11_0x24054f(0xa1)](_0x563f5c,_0x18005a,_0x4eba69,_0x1fcb6a='public/xlsx'){const _0x47cdaf=a11_0x24054f;var _0x2eb7c0,_0x41732d;const _0x2de82f=new exceljs[(_0x47cdaf(0xbe))](),_0x462a48={},_0x401e8c=[],_0x26e946=_0x2de82f[_0x47cdaf(0xa5)](_0x47cdaf(0x9e),{'views':[{'state':_0x47cdaf(0xb2),'xSplit':0x1}]});for(const _0x4431f7 in _0x18005a){_0x462a48[_0x18005a[_0x4431f7][_0x47cdaf(0xdf)]]=_0x18005a[_0x4431f7][_0x47cdaf(0xde)],_0x401e8c[_0x47cdaf(0xdc)]({'header':_0x18005a[_0x4431f7][_0x47cdaf(0xde)],'key':(_0x2eb7c0=_0x18005a[_0x4431f7])===null||_0x2eb7c0===void 0x0?void 0x0:_0x2eb7c0[_0x47cdaf(0xdf)][_0x47cdaf(0xdd)](/\./g,'_')});}_0x26e946[_0x47cdaf(0xa3)]=_0x401e8c;for(const _0x50fb57 of _0x4eba69){const _0x4d4714={};for(const _0x7f4fb9 in _0x18005a){typeof((_0x41732d=_0x18005a[_0x7f4fb9])===null||_0x41732d===void 0x0?void 0x0:_0x41732d['handler'])==_0x47cdaf(0xba)?_0x4d4714[_0x18005a[_0x7f4fb9][_0x47cdaf(0xdf)][_0x47cdaf(0xdd)](/\./g,'_')]=await _0x18005a[_0x7f4fb9][_0x47cdaf(0xc5)](_0x50fb57):_0x4d4714[_0x18005a[_0x7f4fb9][_0x47cdaf(0xdf)]['replace'](/\./g,'_')]=lodash[_0x47cdaf(0xc8)](_0x50fb57,_0x18005a[_0x7f4fb9]['key'],'');}_0x26e946[_0x47cdaf(0xc4)](_0x4d4714);}let _0x1093f1='';const _0x566074=_0x563f5c+'-'+lodash['random'](0x2710,0x1869f)+_0x47cdaf(0xca);if(_0x1fcb6a&&_0x1fcb6a[_0x47cdaf(0xa6)]('/'))_0x1093f1=_0x1fcb6a+'/'+_0x566074;else _0x1fcb6a&&!_0x1fcb6a[_0x47cdaf(0xa6)]('/')&&!_0x1fcb6a[_0x47cdaf(0xa6)]('\x5c')?_0x1093f1=this['app'][_0x47cdaf(0xc6)]()+'/'+_0x1fcb6a+'/'+_0x566074:_0x1093f1=this[_0x47cdaf(0x9d)][_0x47cdaf(0xc6)]()+_0x47cdaf(0xce);return(_0x1093f1[_0x47cdaf(0xc1)]('/')||_0x1093f1['endsWith']('\x5c'))&&(_0x1093f1=_0x1093f1[_0x47cdaf(0x9c)](0x0,_0x1093f1[_0x47cdaf(0xcf)]-0x1)),_0x1093f1=_0x1093f1[_0x47cdaf(0xdd)](/(\\|\/)/g,'/')[_0x47cdaf(0xdd)](/\/{2,}/g,'/'),!fs[_0x47cdaf(0xcd)](_0x1093f1)&&fs[_0x47cdaf(0xdb)](_0x1093f1,{'recursive':!![]}),await _0x2de82f[_0x47cdaf(0xad)][_0x47cdaf(0xd0)]((_0x1093f1+'/'+_0x566074)[_0x47cdaf(0xdd)](/(\\|\/)/g,'/')[_0x47cdaf(0xdd)](/\/{2,}/g,'/')),{'filename':_0x566074,'filepath':_0x1093f1};}async[a11_0x24054f(0xcb)](_0x258482,_0x1ffcbd){const _0x46299e=a11_0x24054f;await koasend(_0x258482,_0x46299e(0xb0)+_0x1ffcbd);}};__decorate([(0x0,decorator_1[a11_0x24054f(0xc7)])(),__metadata(a11_0x24054f(0xd6),Object)],ExcelService[a11_0x24054f(0xc0)],a11_0x24054f(0x9d),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x24054f(0xe0)])(),(0x0,decorator_1[a11_0x24054f(0xb5)])(decorator_1['ScopeEnum']['Singleton'])],ExcelService),exports[a11_0x24054f(0xd2)]=ExcelService;function a11_0x2b61(){const _0x1b0931=['4552270yxGdwt','export','decorate','columns','koa-send','addWorksheet','startsWith','Api\x20Excel\x20Error:\x20','rowCount','4YRBGmo','exceljs','log','5495RlZTvb','xlsx','1765265mNSzUS','12952NZCvrc','/public/xlsx/','keys','frozen','getWorksheet','findRows','Scope','toString','33RjmOCL','\x20is\x20read\x20fail','__esModule','function','worksheets','eachCell','3848uzFbfL','Workbook','458287tsOjdz','prototype','endsWith','value','isNumber','addRow','handler','getAppDir','App','get','defineProperty','.xlsx','download','__metadata','existsSync','/public/xlsx','length','writeFile','2291517QJdRzx','ExcelService','col','trim','@midwayjs/decorator','design:type','cellCount','object','299082NSFZKG','getCell','mkdirSync','push','replace','header','key','Provide','__decorate','substring','app','Sheet\x201','234fSNchP'];a11_0x2b61=function(){return _0x1b0931;};return a11_0x2b61();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a12_0x50ba(){var _0x1f9f6f=['anncic-api:action','ACTION_ROUTE_KEY','232481spOGnF','ACTION_KEY','anncic-api:action:route','defineProperty','9GoxxXm','13944825ndgBgM','6kFfysm','398374nBEWYI','9865429UFzVIf','31795epcgeG','68984870sprYDq','904OQvmAl','5761560HJHTRg'];a12_0x50ba=function(){return _0x1f9f6f;};return a12_0x50ba();}var a12_0x5056f9=a12_0x27e9;function a12_0x27e9(_0x43f39d,_0x51c46b){var _0x50ba80=a12_0x50ba();return a12_0x27e9=function(_0x27e9b3,_0x51d21a){_0x27e9b3=_0x27e9b3-0xc8;var _0x3c8b96=_0x50ba80[_0x27e9b3];return _0x3c8b96;},a12_0x27e9(_0x43f39d,_0x51c46b);}(function(_0x3cd069,_0x227f3f){var _0x279ff2=a12_0x27e9,_0x25951d=_0x3cd069();while(!![]){try{var _0x56af74=-parseInt(_0x279ff2(0xd0))/0x1+-parseInt(_0x279ff2(0xc8))/0x2*(parseInt(_0x279ff2(0xd4))/0x3)+-parseInt(_0x279ff2(0xcc))/0x4*(parseInt(_0x279ff2(0xca))/0x5)+-parseInt(_0x279ff2(0xd6))/0x6*(parseInt(_0x279ff2(0xc9))/0x7)+-parseInt(_0x279ff2(0xcd))/0x8+-parseInt(_0x279ff2(0xd5))/0x9+parseInt(_0x279ff2(0xcb))/0xa;if(_0x56af74===_0x227f3f)break;else _0x25951d['push'](_0x25951d['shift']());}catch(_0x4a4ed4){_0x25951d['push'](_0x25951d['shift']());}}}(a12_0x50ba,0xe8818));Object[a12_0x5056f9(0xd3)](exports,'__esModule',{'value':!![]}),exports['ACTION_ROUTE_KEY']=exports[a12_0x5056f9(0xd1)]=void 0x0,exports[a12_0x5056f9(0xd1)]=a12_0x5056f9(0xce),exports[a12_0x5056f9(0xcf)]=a12_0x5056f9(0xd2);
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x77f41e=a13_0x3a2a;(function(_0x58e117,_0x2944b8){var _0x4ca352=a13_0x3a2a,_0x29e5bd=_0x58e117();while(!![]){try{var _0x29040f=parseInt(_0x4ca352(0x196))/0x1*(-parseInt(_0x4ca352(0x1ab))/0x2)+parseInt(_0x4ca352(0x1a2))/0x3*(-parseInt(_0x4ca352(0x198))/0x4)+parseInt(_0x4ca352(0x1b8))/0x5*(-parseInt(_0x4ca352(0x1b7))/0x6)+parseInt(_0x4ca352(0x1b4))/0x7*(-parseInt(_0x4ca352(0x19a))/0x8)+-parseInt(_0x4ca352(0x1a1))/0x9+parseInt(_0x4ca352(0x1a3))/0xa*(-parseInt(_0x4ca352(0x1a9))/0xb)+parseInt(_0x4ca352(0x199))/0xc*(parseInt(_0x4ca352(0x1af))/0xd);if(_0x29040f===_0x2944b8)break;else _0x29e5bd['push'](_0x29e5bd['shift']());}catch(_0x18f0d9){_0x29e5bd['push'](_0x29e5bd['shift']());}}}(a13_0xfc43,0x95054));var __decorate=this&&this[a13_0x77f41e(0x1a8)]||function(_0x18f264,_0x4f2884,_0x5aa8c4,_0x437292){var _0x17c240=a13_0x77f41e,_0x5b1f92=arguments[_0x17c240(0x1ac)],_0x33e31d=_0x5b1f92<0x3?_0x4f2884:_0x437292===null?_0x437292=Object[_0x17c240(0x1a6)](_0x4f2884,_0x5aa8c4):_0x437292,_0x1dcd24;if(typeof Reflect===_0x17c240(0x1b5)&&typeof Reflect[_0x17c240(0x1a5)]===_0x17c240(0x1aa))_0x33e31d=Reflect[_0x17c240(0x1a5)](_0x18f264,_0x4f2884,_0x5aa8c4,_0x437292);else{for(var _0x9f5c79=_0x18f264[_0x17c240(0x1ac)]-0x1;_0x9f5c79>=0x0;_0x9f5c79--)if(_0x1dcd24=_0x18f264[_0x9f5c79])_0x33e31d=(_0x5b1f92<0x3?_0x1dcd24(_0x33e31d):_0x5b1f92>0x3?_0x1dcd24(_0x4f2884,_0x5aa8c4,_0x33e31d):_0x1dcd24(_0x4f2884,_0x5aa8c4))||_0x33e31d;}return _0x5b1f92>0x3&&_0x33e31d&&Object['defineProperty'](_0x4f2884,_0x5aa8c4,_0x33e31d),_0x33e31d;},__metadata=this&&this[a13_0x77f41e(0x1a4)]||function(_0xf88851,_0x569666){var _0x46f2a3=a13_0x77f41e;if(typeof Reflect===_0x46f2a3(0x1b5)&&typeof Reflect[_0x46f2a3(0x1b3)]===_0x46f2a3(0x1aa))return Reflect[_0x46f2a3(0x1b3)](_0xf88851,_0x569666);};Object[a13_0x77f41e(0x193)](exports,a13_0x77f41e(0x197),{'value':!![]}),exports[a13_0x77f41e(0x1ad)]=void 0x0;const validator_1=require('@anncic-api/validator');function a13_0xfc43(){var _0x5f1875=['6413EvBJwa','__esModule','4bfHavp','30072GnAhhh','4208cIcMvB','valid','min','RuleType','第一页为1,第二页为2','integer','_order','3239451jVFisv','201633sWlALa','21410gFqOgs','__metadata','decorate','getOwnPropertyDescriptor','number','__decorate','4631RgCRCi','function','260JjBgdW','length','PageDTO','_page','19019vRWtWK','分页数量','_isreverse','Rule','metadata','10507uAQkBG','object','是否倒序','18SYXYjf','173605UtYSGy','trim','design:type','defineProperty','1:是;0:否','prototype'];a13_0xfc43=function(){return _0x5f1875;};return a13_0xfc43();}class PageDTO{}function a13_0x3a2a(_0x303c96,_0x30ac46){var _0xfc43bb=a13_0xfc43();return a13_0x3a2a=function(_0x3a2a00,_0x550b8f){_0x3a2a00=_0x3a2a00-0x193;var _0x436a1d=_0xfc43bb[_0x3a2a00];return _0x436a1d;},a13_0x3a2a(_0x303c96,_0x30ac46);}__decorate([(0x0,validator_1[a13_0x77f41e(0x1b2)])('分页',validator_1[a13_0x77f41e(0x19d)]['number']()[a13_0x77f41e(0x19f)]()['min'](0x1),a13_0x77f41e(0x19e)),__metadata(a13_0x77f41e(0x1ba),Number)],PageDTO[a13_0x77f41e(0x195)],a13_0x77f41e(0x1ae),void 0x0),__decorate([(0x0,validator_1[a13_0x77f41e(0x1b2)])(a13_0x77f41e(0x1b0),validator_1[a13_0x77f41e(0x19d)]['number']()[a13_0x77f41e(0x19f)]()[a13_0x77f41e(0x19c)](0x1)),__metadata(a13_0x77f41e(0x1ba),Number)],PageDTO[a13_0x77f41e(0x195)],'_size',void 0x0),__decorate([(0x0,validator_1[a13_0x77f41e(0x1b2)])('排序方式',validator_1[a13_0x77f41e(0x19d)]['string']()[a13_0x77f41e(0x1b9)]()),__metadata('design:type',String)],PageDTO[a13_0x77f41e(0x195)],a13_0x77f41e(0x1a0),void 0x0),__decorate([(0x0,validator_1[a13_0x77f41e(0x1b2)])(a13_0x77f41e(0x1b6),validator_1['RuleType'][a13_0x77f41e(0x1a7)]()[a13_0x77f41e(0x19f)]()[a13_0x77f41e(0x19b)](0x0,0x1),a13_0x77f41e(0x194)),__metadata(a13_0x77f41e(0x1ba),Number)],PageDTO['prototype'],a13_0x77f41e(0x1b1),void 0x0),exports[a13_0x77f41e(0x1ad)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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.1.0",
|
|
21
|
+
"@anncic-api/core": "^1.1.0",
|
|
22
|
+
"@anncic-api/event": "^1.1.0",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.0",
|
|
24
|
+
"@anncic-api/validator": "^1.1.0",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.4.12",
|
|
26
26
|
"@midwayjs/i18n": "^3.4.12",
|
|
27
27
|
"@midwayjs/koa": "^3.4.12",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.4.12",
|
|
30
30
|
"@midwayjs/upload": "^3.4.12",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.0
|
|
32
|
+
"anncic-apihelper": "^1.1.0",
|
|
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": "1ff379ce4e785376983b20bd452defb97c4a3fa9"
|
|
45
45
|
}
|