anncic-api 1.1.32 → 1.1.34
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.d.ts +5 -5
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x44bddb=a0_0x41c9;(function(_0x313242,_0x11c342){var _0x25d898=a0_0x41c9,_0x1cbcff=_0x313242();while(!![]){try{var _0x195778=parseInt(_0x25d898(0x163))/0x1+parseInt(_0x25d898(0x16c))/0x2*(parseInt(_0x25d898(0x167))/0x3)+-parseInt(_0x25d898(0x171))/0x4*(parseInt(_0x25d898(0x169))/0x5)+parseInt(_0x25d898(0x16f))/0x6+-parseInt(_0x25d898(0x166))/0x7+-parseInt(_0x25d898(0x162))/0x8+-parseInt(_0x25d898(0x161))/0x9;if(_0x195778===_0x11c342)break;else _0x1cbcff['push'](_0x1cbcff['shift']());}catch(_0x318548){_0x1cbcff['push'](_0x1cbcff['shift']());}}}(a0_0x3f75,0x411c5));function a0_0x41c9(_0x156141,_0x237e9c){var _0x3f755b=a0_0x3f75();return a0_0x41c9=function(_0x41c96c,_0x3378b7){_0x41c96c=_0x41c96c-0x161;var _0x35f559=_0x3f755b[_0x41c96c];return _0x35f559;},a0_0x41c9(_0x156141,_0x237e9c);}function a0_0x3f75(){var _0xc950a3=['__esModule','2834692adfclN','129ALKwSA','form','53050wXuYwr','20mb','json','23800JCXAhN','name','zhiulanuiy7892387985hnoi','2188200bNVVoa','dhauo1234420123gg3234901','128jmFbxb','210357wyLXEy','1171392fUPkra','304566JeYIsp','/runtime/.upload'];a0_0x3f75=function(){return _0xc950a3;};return a0_0x3f75();}Object['defineProperty'](exports,a0_0x44bddb(0x165),{'value':!![]}),exports['default']=_0x408667=>{var _0x54c71e=a0_0x44bddb;return{'apitest':!![],'keys':_0x408667[_0x54c71e(0x16d)],'anncicapi':{'timeout':0x1388,'password':_0x54c71e(0x16e),'devices':{'DEFAULT':{'secret':_0x54c71e(0x170),'checkcode':_0x54c71e(0x170)}}},'bodyParser':{'enableTypes':[_0x54c71e(0x16b),_0x54c71e(0x168),'text','xml'],'formLimit':'20mb','jsonLimit':_0x54c71e(0x16a),'textLimit':'20mb','xmlLimit':_0x54c71e(0x16a)},'upload':{'tmpdir':_0x408667['appDir']+_0x54c71e(0x164),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0xded81e=a1_0x370c;function a1_0x223e(){var _0x5e53f4=['1550955RRpmeT','3601592KutsBK','201btdvBI','7813040YrOKwW','4349780armwJt','523803GWxCuY','default','11216317YCkaur','defineProperty','12ogmnXL','19902REQDZH','__esModule','63FUhnJg'];a1_0x223e=function(){return _0x5e53f4;};return a1_0x223e();}function a1_0x370c(_0x10adea,_0x56bf4b){var _0x223ec7=a1_0x223e();return a1_0x370c=function(_0x370c27,_0x43cc59){_0x370c27=_0x370c27-0xba;var _0x7c77f8=_0x223ec7[_0x370c27];return _0x7c77f8;},a1_0x370c(_0x10adea,_0x56bf4b);}(function(_0xe48c95,_0x3868df){var _0x2a3ddf=a1_0x370c,_0x3710b9=_0xe48c95();while(!![]){try{var _0x5854aa=-parseInt(_0x2a3ddf(0xc3))/0x1+parseInt(_0x2a3ddf(0xbb))/0x2*(-parseInt(_0x2a3ddf(0xc0))/0x3)+-parseInt(_0x2a3ddf(0xbf))/0x4+-parseInt(_0x2a3ddf(0xbe))/0x5*(parseInt(_0x2a3ddf(0xba))/0x6)+parseInt(_0x2a3ddf(0xc5))/0x7+-parseInt(_0x2a3ddf(0xc1))/0x8+parseInt(_0x2a3ddf(0xbd))/0x9*(parseInt(_0x2a3ddf(0xc2))/0xa);if(_0x5854aa===_0x3868df)break;else _0x3710b9['push'](_0x3710b9['shift']());}catch(_0x58f95f){_0x3710b9['push'](_0x3710b9['shift']());}}}(a1_0x223e,0xea30f));Object[a1_0xded81e(0xc6)](exports,a1_0xded81e(0xbc),{'value':!![]}),exports[a1_0xded81e(0xc4)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x2452c1=a2_0x5598;(function(_0x81fb40,_0x45e20c){const _0x4eef3c=a2_0x5598,_0x25c52d=_0x81fb40();while(!![]){try{const _0x507d9a=parseInt(_0x4eef3c(0x106))/0x1*(parseInt(_0x4eef3c(0xd4))/0x2)+parseInt(_0x4eef3c(0xbb))/0x3*(-parseInt(_0x4eef3c(0x107))/0x4)+parseInt(_0x4eef3c(0xe8))/0x5+-parseInt(_0x4eef3c(0xb4))/0x6*(parseInt(_0x4eef3c(0xcc))/0x7)+parseInt(_0x4eef3c(0xe2))/0x8+-parseInt(_0x4eef3c(0xea))/0x9*(-parseInt(_0x4eef3c(0xf2))/0xa)+-parseInt(_0x4eef3c(0xe9))/0xb;if(_0x507d9a===_0x45e20c)break;else _0x25c52d['push'](_0x25c52d['shift']());}catch(_0xe22e87){_0x25c52d['push'](_0x25c52d['shift']());}}}(a2_0x5f9e,0x83839));var __decorate=this&&this[a2_0x2452c1(0x103)]||function(_0x322da5,_0x342fe8,_0x3b1ee1,_0x3eccca){const _0x57e859=a2_0x2452c1;var _0x4a520d=arguments[_0x57e859(0xef)],_0x238ffd=_0x4a520d<0x3?_0x342fe8:_0x3eccca===null?_0x3eccca=Object[_0x57e859(0xf6)](_0x342fe8,_0x3b1ee1):_0x3eccca,_0x1a6bce;if(typeof Reflect===_0x57e859(0xae)&&typeof Reflect[_0x57e859(0xb6)]===_0x57e859(0xfb))_0x238ffd=Reflect[_0x57e859(0xb6)](_0x322da5,_0x342fe8,_0x3b1ee1,_0x3eccca);else{for(var _0x13cff6=_0x322da5['length']-0x1;_0x13cff6>=0x0;_0x13cff6--)if(_0x1a6bce=_0x322da5[_0x13cff6])_0x238ffd=(_0x4a520d<0x3?_0x1a6bce(_0x238ffd):_0x4a520d>0x3?_0x1a6bce(_0x342fe8,_0x3b1ee1,_0x238ffd):_0x1a6bce(_0x342fe8,_0x3b1ee1))||_0x238ffd;}return _0x4a520d>0x3&&_0x238ffd&&Object[_0x57e859(0xfd)](_0x342fe8,_0x3b1ee1,_0x238ffd),_0x238ffd;},__metadata=this&&this[a2_0x2452c1(0xb3)]||function(_0x2e328f,_0x10fc29){const _0x398053=a2_0x2452c1;if(typeof Reflect===_0x398053(0xae)&&typeof Reflect[_0x398053(0xff)]===_0x398053(0xfb))return Reflect[_0x398053(0xff)](_0x2e328f,_0x10fc29);};function a2_0x5f9e(){const _0x5f554f=['Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','log','context','MidwayApplicationManager','mkdirSync','@midwayjs/koa','ApiError','MidwayDecoratorService','isFunction','devices','./exception/ApiError','CustomConfiguration','6319341wogrZj','device','@anncic-api/typeorm','key','__esModule','apimit','HEADERS_SIGNATURE','checkConfigKeys','2BCTIlG','./config/config.production','Inject','decorator','@midwayjs/task','getConfiguration','config','body','target','Anncic-api\x20static-file\x20:\x20mkdir\x20','input','isArray','keys','prototype','7489176MBfMQi','_matchedRoute','filterConfig','existsSync','addObject','handlerActionRoute','4180775TtrZQc','7347923uJhwyh','301095FeXXXF','string','@midwayjs/upload','anncicapi','design:type','length','./service/ApiService','hanlderApplications','110FpNcFV','isString','handler','headers','getOwnPropertyDescriptor','request','upload','./config/config.default','staticFile','function','MidwayEnvironmentService','defineProperty','tmpdir','metadata','bootstrap','requestContext','application','__decorate','proceed','onReady','726787LiULEr','3030628BNKKZx','MidwayConfigService','DEFAULT','dirs','@midwayjs/i18n','isClass','@anncic-api/event','args','REQUEST_OBJ_CTX_KEY','object','defineProperties','@midwayjs/cross-domain','@anncic-api/cache','dir','__metadata','6PDsduB','Types','decorate','checksign','environment','ACTION_ROUTE_KEY','./types/action','3uYJAxG','get','getAsync','registerMethodHandler','ApiService'];a2_0x5f9e=function(){return _0x5f554f;};return a2_0x5f9e();}function a2_0x5598(_0x362d61,_0x51f871){const _0x5f9e87=a2_0x5f9e();return a2_0x5598=function(_0x5598b0,_0x48a5ac){_0x5598b0=_0x5598b0-0xa8;let _0x3a3a03=_0x5f9e87[_0x5598b0];return _0x3a3a03;},a2_0x5598(_0x362d61,_0x51f871);}Object['defineProperty'](exports,a2_0x2452c1(0xd0),{'value':!![]}),exports[a2_0x2452c1(0xcb)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x2452c1(0xca)),ApiService_1=require(a2_0x2452c1(0xf0)),action_1=require(a2_0x2452c1(0xba)),fs=require('fs'),koa=require(a2_0x2452c1(0xc5)),i18n=require(a2_0x2452c1(0xa9)),task=require(a2_0x2452c1(0xd8)),upload=require(a2_0x2452c1(0xec)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2452c1(0xb0)),ConfigDefault=require(a2_0x2452c1(0xf9)),ConfigProduction=require(a2_0x2452c1(0xd5)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2452c1(0xb1)),anncicEvent=require(a2_0x2452c1(0xab)),anncicTypeorm=require(a2_0x2452c1(0xce)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x2452c1(0x105)](){const _0x104ff9=a2_0x2452c1;await this[_0x104ff9(0xe4)](),await this[_0x104ff9(0xd3)](),await this[_0x104ff9(0xe7)](),await this[_0x104ff9(0xf1)]();}async['checkConfigKeys'](){}async[a2_0x2452c1(0xe7)](){const _0x495f30=a2_0x2452c1,_0x3037de=this[_0x495f30(0xda)][_0x495f30(0xd9)]();this['decorator'][_0x495f30(0xbe)](action_1[_0x495f30(0xb9)],_0x3d0681=>{const _0x26e945=_0x495f30,_0x49f368=_0x3d0681[_0x26e945(0xff)];return{'before':async _0x20a021=>{const _0x2cbdaf=_0x26e945;var _0x255bb4,_0x2e6704;const _0x16efad=(_0x255bb4=_0x20a021===null||_0x20a021===void 0x0?void 0x0:_0x20a021[_0x2cbdaf(0xdc)])===null||_0x255bb4===void 0x0?void 0x0:_0x255bb4[core_1[_0x2cbdaf(0xad)]];if(_0x16efad){if((_0x49f368===null||_0x49f368===void 0x0?void 0x0:_0x49f368[_0x2cbdaf(0xd1)])&&!this['ApiService'][_0x2cbdaf(0xb7)]((_0x2e6704=_0x16efad===null||_0x16efad===void 0x0?void 0x0:_0x16efad[_0x2cbdaf(0xf7)])===null||_0x2e6704===void 0x0?void 0x0:_0x2e6704[_0x2cbdaf(0xf5)]))throw new AnnError(ApiError_1[_0x2cbdaf(0xc6)][_0x2cbdaf(0xd2)]);}},'around':async _0x1612b9=>{const _0x5419ba=_0x26e945;var _0x482223,_0x3c1147,_0x595a3a,_0x4376e2,_0x2db61f;const _0x48fff5=(_0x482223=_0x1612b9===null||_0x1612b9===void 0x0?void 0x0:_0x1612b9[_0x5419ba(0xdc)])===null||_0x482223===void 0x0?void 0x0:_0x482223[core_1[_0x5419ba(0xad)]];if(_0x48fff5){if(((_0x3c1147=_0x48fff5[_0x5419ba(0xf5)])===null||_0x3c1147===void 0x0?void 0x0:_0x3c1147['device'])&&((_0x2db61f=(_0x4376e2=(_0x595a3a=_0x3037de===null||_0x3037de===void 0x0?void 0x0:_0x3037de[_0x5419ba(0xed)])===null||_0x595a3a===void 0x0?void 0x0:_0x595a3a['devices'])===null||_0x4376e2===void 0x0?void 0x0:_0x4376e2[_0x48fff5[_0x5419ba(0xf5)][_0x5419ba(0xcd)]])===null||_0x2db61f===void 0x0?void 0x0:_0x2db61f[_0x5419ba(0x100)])){const _0x3aa19e=Array[_0x5419ba(0xdf)](_0x3037de['anncicapi'][_0x5419ba(0xc9)][_0x48fff5[_0x5419ba(0xf5)]['device']][_0x5419ba(0x100)])?_0x3037de['anncicapi']['devices'][_0x48fff5['headers'][_0x5419ba(0xcd)]]['bootstrap']:[_0x3037de[_0x5419ba(0xed)][_0x5419ba(0xc9)][_0x48fff5[_0x5419ba(0xf5)][_0x5419ba(0xcd)]][_0x5419ba(0x100)]];for(const _0x3f4d91 of _0x3aa19e){if(decorator_1[_0x5419ba(0xb5)][_0x5419ba(0xaa)](_0x3f4d91)||typeof _0x3f4d91==_0x5419ba(0xeb)){const _0x3cd4d0=await _0x48fff5[_0x5419ba(0x101)][_0x5419ba(0xbd)](_0x3f4d91);typeof(_0x3cd4d0===null||_0x3cd4d0===void 0x0?void 0x0:_0x3cd4d0[_0x5419ba(0xf4)])==_0x5419ba(0xfb)&&await _0x3cd4d0[_0x5419ba(0xf4)]((_0x48fff5===null||_0x48fff5===void 0x0?void 0x0:_0x48fff5[_0x5419ba(0xe3)])||undefined,_0x48fff5,_0x49f368);}else decorator_1[_0x5419ba(0xb5)][_0x5419ba(0xc8)](_0x3f4d91)&&await _0x3f4d91((_0x48fff5===null||_0x48fff5===void 0x0?void 0x0:_0x48fff5[_0x5419ba(0xe3)])||undefined,_0x48fff5,_0x49f368);}}}return await _0x1612b9[_0x5419ba(0x104)](..._0x1612b9[_0x5419ba(0xac)]);},'afterThrow':(_0x56463a,_0x51cd4f)=>{throw _0x51cd4f;}};});}async[a2_0x2452c1(0xf1)](){const _0x47389a=a2_0x2452c1;this[_0x47389a(0x102)]['getApplications'](['koa'])['forEach'](_0x56f8b6=>{const _0x25c53b=_0x47389a;(_0x56f8b6===null||_0x56f8b6===void 0x0?void 0x0:_0x56f8b6[_0x25c53b(0xc2)])&&Object[_0x25c53b(0xaf)](_0x56f8b6['context'],{'ok':{'value':function(_0x4a8176,_0xc44dd6,_0x55a79a=0x0){return{'code':_0x55a79a,'data':_0x4a8176,'extra':_0xc44dd6};}},'err':{'value':function(_0xbe5719,_0x366ca4,_0x198807=0x1){return{'code':_0x198807,'extra':_0x366ca4,'msg':_0xbe5719};}},'input':{'value':function(_0x52c141,_0x44a23b){const _0x30aad9=_0x25c53b;var _0x186444;const _0x35dc1f=lodash['defaultsDeep']({},this[_0x30aad9(0xf7)][_0x30aad9(0xdb)]||this['request'][((_0x186444=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x186444===void 0x0?void 0x0:_0x186444[_0x30aad9(0xcf)])||_0x30aad9(0xdb)]||{},this['request']['query']||{});return _0x52c141?lodash[_0x30aad9(0xbc)](_0x35dc1f,_0x52c141,_0x44a23b):_0x35dc1f;}},'when':{'value':async function(_0x13ca47,_0xab744b){const _0x1b9002=this['input'](_0x13ca47,null);if(!lodash['isNull'](_0x1b9002))return await _0xab744b(_0x1b9002);}},'only':{'value':function(_0x28f757){const _0x4f44e3=_0x25c53b,_0x59d3ad={};for(let _0x4bd1a5=0x0;_0x4bd1a5<_0x28f757['length'];_0x4bd1a5++){lodash[_0x4f44e3(0xdf)](_0x28f757[_0x4bd1a5])&&_0x28f757[_0x4bd1a5]['length']>0x0&&lodash[_0x4f44e3(0xf3)](_0x28f757[_0x4bd1a5][0x0])&&(_0x59d3ad[_0x28f757[_0x4bd1a5][0x0]]=this[_0x4f44e3(0xde)](_0x28f757[_0x4bd1a5][0x0],_0x28f757[_0x4bd1a5][_0x4f44e3(0xef)]>0x1?_0x28f757[_0x4bd1a5][0x1]:null));}return _0x59d3ad;}}});});}async[a2_0x2452c1(0xe4)](){const _0x51c28d=a2_0x2452c1;var _0x5505cf,_0x480147,_0x2884cd,_0x28915d,_0xad5a85,_0x5b5c2d;const _0x4c0f9a=this[_0x51c28d(0xda)]['getConfiguration']();((_0x480147=(_0x5505cf=_0x4c0f9a===null||_0x4c0f9a===void 0x0?void 0x0:_0x4c0f9a['anncicapi'])===null||_0x5505cf===void 0x0?void 0x0:_0x5505cf[_0x51c28d(0xc9)])===null||_0x480147===void 0x0?void 0x0:_0x480147[_0x51c28d(0x109)])&&Object[_0x51c28d(0xe0)](_0x4c0f9a[_0x51c28d(0xed)][_0x51c28d(0xc9)])[_0x51c28d(0xef)]>0x1&&delete _0x4c0f9a['anncicapi']['devices'][_0x51c28d(0x109)];if((_0x2884cd=_0x4c0f9a===null||_0x4c0f9a===void 0x0?void 0x0:_0x4c0f9a[_0x51c28d(0xfa)])===null||_0x2884cd===void 0x0?void 0x0:_0x2884cd['dirs'])for(const _0x415e34 in _0x4c0f9a['staticFile']['dirs']){((_0x28915d=_0x4c0f9a['staticFile']['dirs'][_0x415e34])===null||_0x28915d===void 0x0?void 0x0:_0x28915d[_0x51c28d(0xb2)])&&typeof((_0xad5a85=_0x4c0f9a['staticFile'][_0x51c28d(0xa8)][_0x415e34])===null||_0xad5a85===void 0x0?void 0x0:_0xad5a85['dir'])=='string'&&!fs[_0x51c28d(0xe5)](_0x4c0f9a[_0x51c28d(0xfa)][_0x51c28d(0xa8)][_0x415e34][_0x51c28d(0xb2)])&&(fs[_0x51c28d(0xc4)](_0x4c0f9a[_0x51c28d(0xfa)][_0x51c28d(0xa8)][_0x415e34][_0x51c28d(0xb2)],{'recursive':!![]}),console[_0x51c28d(0xc1)](_0x51c28d(0xdd)+_0x4c0f9a['staticFile'][_0x51c28d(0xa8)][_0x415e34][_0x51c28d(0xb2)]));}((_0x5b5c2d=_0x4c0f9a===null||_0x4c0f9a===void 0x0?void 0x0:_0x4c0f9a[_0x51c28d(0xf8)])===null||_0x5b5c2d===void 0x0?void 0x0:_0x5b5c2d[_0x51c28d(0xfe)])&&!fs[_0x51c28d(0xe5)](_0x4c0f9a[_0x51c28d(0xf8)]['tmpdir'])&&(fs['mkdirSync'](_0x4c0f9a[_0x51c28d(0xf8)][_0x51c28d(0xfe)],{'recursive':!![]}),console['log'](_0x51c28d(0xc0)+_0x4c0f9a[_0x51c28d(0xf8)]['tmpdir'])),this[_0x51c28d(0xda)][_0x51c28d(0xe6)](_0x4c0f9a);}};__decorate([(0x0,decorator_1[a2_0x2452c1(0xd6)])(),__metadata('design:type',core_1[a2_0x2452c1(0x108)])],CustomConfiguration['prototype'],a2_0x2452c1(0xda),void 0x0),__decorate([(0x0,decorator_1[a2_0x2452c1(0xd6)])(),__metadata('design:type',core_1[a2_0x2452c1(0xc7)])],CustomConfiguration[a2_0x2452c1(0xe1)],a2_0x2452c1(0xd7),void 0x0),__decorate([(0x0,decorator_1[a2_0x2452c1(0xd6)])(),__metadata(a2_0x2452c1(0xee),core_1[a2_0x2452c1(0xc3)])],CustomConfiguration[a2_0x2452c1(0xe1)],a2_0x2452c1(0x102),void 0x0),__decorate([(0x0,decorator_1[a2_0x2452c1(0xd6)])(),__metadata(a2_0x2452c1(0xee),core_1[a2_0x2452c1(0xfc)])],CustomConfiguration[a2_0x2452c1(0xe1)],a2_0x2452c1(0xb8),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata('design:type',ApiService_1[a2_0x2452c1(0xbf)])],CustomConfiguration[a2_0x2452c1(0xe1)],a2_0x2452c1(0xbf),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2452c1(0xcb)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x23207a=a2_0x537a;function a2_0x1645(){const _0x54334b=['registerMethodHandler','checksign','getAsync','@midwayjs/static-file','48895mjtRQn','Inject','defineProperty','@midwayjs/core','request','environment','design:type','defaultsDeep','isNull','11949240qUfaNh','MidwayDecoratorService','HEADERS_SIGNATURE','dirs','_matchedRoute','intercept','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','CustomConfiguration','getApplications','getConfiguration','koa','@midwayjs/koa','checkConfigKeys','proceed','context','application','Types','REQUEST_OBJ_CTX_KEY','query','@midwayjs/decorator','device','getOwnPropertyDescriptor','@anncic-api/core','./exception/ApiError','66VuFdmB','1595826jwKodD','length','./service/ApiService','__decorate','function','tmpdir','7WdxLFr','requestContext','headers','devices','log','staticFile','decorate','ACTION_ROUTE_KEY','14147528CSTOcP','target','@midwayjs/i18n','metadata','hanlderApplications','dir','719883VrwOkP','@anncic-api/event','string','prototype','handler','bodyXml','Configuration','anncicapi','ApiError','DEFAULT','upload','addObject','@anncic-api/validator','3890978KhpQUa','@anncic-api/typeorm','MidwayApplicationManager','__metadata','ApiService','isClass','body','forEach','@midwayjs/cross-domain','config','input','16720zVjHnP','110JrqdoR','filterConfig','get','@midwayjs/task','onReady','existsSync','@midwayjs/upload','apimit','handlerActionRoute','isArray','./config/config.production','key'];a2_0x1645=function(){return _0x54334b;};return a2_0x1645();}(function(_0x317e66,_0x44d011){const _0x49ffa4=a2_0x537a,_0x4b267c=_0x317e66();while(!![]){try{const _0x2424f3=-parseInt(_0x49ffa4(0x1b0))/0x1+-parseInt(_0x49ffa4(0x1d1))/0x2+-parseInt(_0x49ffa4(0x1af))/0x3*(parseInt(_0x49ffa4(0x1dc))/0x4)+-parseInt(_0x49ffa4(0x1ed))/0x5+parseInt(_0x49ffa4(0x1f6))/0x6+-parseInt(_0x49ffa4(0x1b6))/0x7*(-parseInt(_0x49ffa4(0x1be))/0x8)+-parseInt(_0x49ffa4(0x1c4))/0x9*(-parseInt(_0x49ffa4(0x1dd))/0xa);if(_0x2424f3===_0x44d011)break;else _0x4b267c['push'](_0x4b267c['shift']());}catch(_0x21a37b){_0x4b267c['push'](_0x4b267c['shift']());}}}(a2_0x1645,0xf35b0));var __decorate=this&&this[a2_0x23207a(0x1b3)]||function(_0x1dc79f,_0x138aec,_0x2f97b9,_0x1ee9c3){const _0x569648=a2_0x23207a;var _0x8b707c=arguments[_0x569648(0x1b1)],_0x208594=_0x8b707c<0x3?_0x138aec:_0x1ee9c3===null?_0x1ee9c3=Object[_0x569648(0x1ac)](_0x138aec,_0x2f97b9):_0x1ee9c3,_0x1bdef1;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x569648(0x1b4))_0x208594=Reflect[_0x569648(0x1bc)](_0x1dc79f,_0x138aec,_0x2f97b9,_0x1ee9c3);else{for(var _0x4e4514=_0x1dc79f[_0x569648(0x1b1)]-0x1;_0x4e4514>=0x0;_0x4e4514--)if(_0x1bdef1=_0x1dc79f[_0x4e4514])_0x208594=(_0x8b707c<0x3?_0x1bdef1(_0x208594):_0x8b707c>0x3?_0x1bdef1(_0x138aec,_0x2f97b9,_0x208594):_0x1bdef1(_0x138aec,_0x2f97b9))||_0x208594;}return _0x8b707c>0x3&&_0x208594&&Object[_0x569648(0x1ef)](_0x138aec,_0x2f97b9,_0x208594),_0x208594;},__metadata=this&&this[a2_0x23207a(0x1d4)]||function(_0x2b8630,_0x2359e5){const _0x144c67=a2_0x23207a;if(typeof Reflect==='object'&&typeof Reflect[_0x144c67(0x1c1)]===_0x144c67(0x1b4))return Reflect['metadata'](_0x2b8630,_0x2359e5);};Object[a2_0x23207a(0x1ef)](exports,'__esModule',{'value':!![]}),exports[a2_0x23207a(0x1fd)]=void 0x0;function a2_0x537a(_0x3a685c,_0x1b016e){const _0x164519=a2_0x1645();return a2_0x537a=function(_0x537a1f,_0x584026){_0x537a1f=_0x537a1f-0x1a8;let _0x165ac3=_0x164519[_0x537a1f];return _0x165ac3;},a2_0x537a(_0x3a685c,_0x1b016e);}const decorator_1=require(a2_0x23207a(0x1aa)),core_1=require(a2_0x23207a(0x1f0)),ApiError_1=require(a2_0x23207a(0x1ae)),ApiService_1=require(a2_0x23207a(0x1b2)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x23207a(0x201)),i18n=require(a2_0x23207a(0x1c0)),task=require(a2_0x23207a(0x1e0)),upload=require(a2_0x23207a(0x1e3)),staticFile=require(a2_0x23207a(0x1ec)),crossDomain=require(a2_0x23207a(0x1d9)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x23207a(0x1e7)),anncic=require(a2_0x23207a(0x1ad)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x23207a(0x1c5)),anncicTypeorm=require(a2_0x23207a(0x1d2)),anncicValidator=require(a2_0x23207a(0x1d0)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x23207a(0x1e1)](){const _0x57d0b5=a2_0x23207a;await this[_0x57d0b5(0x1de)](),await this[_0x57d0b5(0x202)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x23207a(0x202)](){}async[a2_0x23207a(0x1e5)](){const _0x22ab51=a2_0x23207a,_0x59bca0=this[_0x22ab51(0x1da)][_0x22ab51(0x1ff)]();this['decorator'][_0x22ab51(0x1e9)](action_1[_0x22ab51(0x1bd)],_0x5f02a1=>{const _0x23eabe=_0x5f02a1['metadata'];return{'before':async _0x4a1e29=>{const _0x2e5f3e=a2_0x537a;var _0x5d2f8d,_0x1a48f5;const _0x4bd531=(_0x5d2f8d=_0x4a1e29===null||_0x4a1e29===void 0x0?void 0x0:_0x4a1e29[_0x2e5f3e(0x1bf)])===null||_0x5d2f8d===void 0x0?void 0x0:_0x5d2f8d[core_1[_0x2e5f3e(0x1a8)]];if(_0x4bd531&&(_0x23eabe===null||_0x23eabe===void 0x0?void 0x0:_0x23eabe[_0x2e5f3e(0x1e4)])){if(!this[_0x2e5f3e(0x1d5)][_0x2e5f3e(0x1ea)]((_0x1a48f5=_0x4bd531===null||_0x4bd531===void 0x0?void 0x0:_0x4bd531[_0x2e5f3e(0x1f1)])===null||_0x1a48f5===void 0x0?void 0x0:_0x1a48f5['headers']))throw new AnnError(ApiError_1[_0x2e5f3e(0x1cc)][_0x2e5f3e(0x1f8)]);}},'around':async _0x2c745b=>{const _0x3a79e1=a2_0x537a;var _0x51803d,_0x37c6d0,_0x7dcd7b,_0x424edf,_0x75d13a;const _0x5a6ba6=(_0x51803d=_0x2c745b===null||_0x2c745b===void 0x0?void 0x0:_0x2c745b[_0x3a79e1(0x1bf)])===null||_0x51803d===void 0x0?void 0x0:_0x51803d[core_1[_0x3a79e1(0x1a8)]];if(_0x5a6ba6&&(_0x23eabe===null||_0x23eabe===void 0x0?void 0x0:_0x23eabe[_0x3a79e1(0x1e4)])){if(((_0x37c6d0=_0x5a6ba6[_0x3a79e1(0x1b8)])===null||_0x37c6d0===void 0x0?void 0x0:_0x37c6d0['device'])&&((_0x75d13a=(_0x424edf=(_0x7dcd7b=_0x59bca0===null||_0x59bca0===void 0x0?void 0x0:_0x59bca0[_0x3a79e1(0x1cb)])===null||_0x7dcd7b===void 0x0?void 0x0:_0x7dcd7b[_0x3a79e1(0x1b9)])===null||_0x424edf===void 0x0?void 0x0:_0x424edf[_0x5a6ba6[_0x3a79e1(0x1b8)][_0x3a79e1(0x1ab)]])===null||_0x75d13a===void 0x0?void 0x0:_0x75d13a[_0x3a79e1(0x1fb)])){const _0x593194=Array[_0x3a79e1(0x1e6)](_0x59bca0['anncicapi'][_0x3a79e1(0x1b9)][_0x5a6ba6[_0x3a79e1(0x1b8)][_0x3a79e1(0x1ab)]][_0x3a79e1(0x1fb)])?_0x59bca0['anncicapi'][_0x3a79e1(0x1b9)][_0x5a6ba6['headers'][_0x3a79e1(0x1ab)]][_0x3a79e1(0x1fb)]:[_0x59bca0[_0x3a79e1(0x1cb)][_0x3a79e1(0x1b9)][_0x5a6ba6[_0x3a79e1(0x1b8)][_0x3a79e1(0x1ab)]][_0x3a79e1(0x1fb)]];for(const _0x6fe93c of _0x593194){if(decorator_1[_0x3a79e1(0x206)][_0x3a79e1(0x1d6)](_0x6fe93c)||typeof _0x6fe93c==_0x3a79e1(0x1c6)){const _0x5d9a99=await _0x5a6ba6[_0x3a79e1(0x1b7)][_0x3a79e1(0x1eb)](_0x6fe93c);typeof(_0x5d9a99===null||_0x5d9a99===void 0x0?void 0x0:_0x5d9a99['handler'])==_0x3a79e1(0x1b4)&&await _0x5d9a99[_0x3a79e1(0x1c8)]((_0x5a6ba6===null||_0x5a6ba6===void 0x0?void 0x0:_0x5a6ba6[_0x3a79e1(0x1fa)])||undefined,_0x5a6ba6,_0x23eabe);}else decorator_1[_0x3a79e1(0x206)]['isFunction'](_0x6fe93c)&&await _0x6fe93c((_0x5a6ba6===null||_0x5a6ba6===void 0x0?void 0x0:_0x5a6ba6[_0x3a79e1(0x1fa)])||undefined,_0x5a6ba6,_0x23eabe);}}}return await _0x2c745b[_0x3a79e1(0x203)](..._0x2c745b['args']);},'afterThrow':(_0xd0d018,_0x422e57)=>{throw _0x422e57;}};});}async[a2_0x23207a(0x1c2)](){const _0x2fbe2d=a2_0x23207a;this['application'][_0x2fbe2d(0x1fe)]([_0x2fbe2d(0x200)])[_0x2fbe2d(0x1d8)](_0x4e8603=>{const _0x21925f=_0x2fbe2d;(_0x4e8603===null||_0x4e8603===void 0x0?void 0x0:_0x4e8603[_0x21925f(0x204)])&&Object['defineProperties'](_0x4e8603[_0x21925f(0x204)],{'ok':{'value':function(_0x387d1a,_0x2ebc54,_0xb4712b=0x0){return{'code':_0xb4712b,'data':_0x387d1a,'extra':_0x2ebc54};}},'err':{'value':function(_0x3dea62,_0x3617cc,_0x55cee0=0x1){return{'code':_0x55cee0,'extra':_0x3617cc,'msg':_0x3dea62};}},'input':{'value':function(_0x51e471,_0x2375a4){const _0xfc061a=_0x21925f;var _0x18cd34;const _0xded906=lodash[_0xfc061a(0x1f4)]({},this[_0xfc061a(0x1f1)][_0xfc061a(0x1d7)]||this[_0xfc061a(0x1f1)][((_0x18cd34=config===null||config===void 0x0?void 0x0:config[_0xfc061a(0x1c9)])===null||_0x18cd34===void 0x0?void 0x0:_0x18cd34[_0xfc061a(0x1e8)])||'body']||{},this[_0xfc061a(0x1f1)][_0xfc061a(0x1a9)]||{});return _0x51e471?lodash[_0xfc061a(0x1df)](_0xded906,_0x51e471,_0x2375a4):_0xded906;}},'when':{'value':async function(_0x2d4239,_0x12b994){const _0x125f3a=_0x21925f,_0x2b7cac=this[_0x125f3a(0x1db)](_0x2d4239,null);if(!lodash[_0x125f3a(0x1f5)](_0x2b7cac))return await _0x12b994(_0x2b7cac);}},'only':{'value':function(_0x1a2eff){const _0x19fd8d=_0x21925f,_0x2f13f4={};for(let _0xf8a668=0x0;_0xf8a668<_0x1a2eff[_0x19fd8d(0x1b1)];_0xf8a668++){lodash[_0x19fd8d(0x1e6)](_0x1a2eff[_0xf8a668])&&_0x1a2eff[_0xf8a668][_0x19fd8d(0x1b1)]>0x0&&lodash['isString'](_0x1a2eff[_0xf8a668][0x0])&&(_0x2f13f4[_0x1a2eff[_0xf8a668][0x0]]=this['input'](_0x1a2eff[_0xf8a668][0x0],_0x1a2eff[_0xf8a668][_0x19fd8d(0x1b1)]>0x1?_0x1a2eff[_0xf8a668][0x1]:null));}return _0x2f13f4;}}});});}async[a2_0x23207a(0x1de)](){const _0x5865f3=a2_0x23207a;var _0x119ac0,_0x57e9aa,_0xa4ae0b,_0x2e74c3,_0x50c3ff,_0x4447f9;const _0x369424=this[_0x5865f3(0x1da)]['getConfiguration']();((_0x57e9aa=(_0x119ac0=_0x369424===null||_0x369424===void 0x0?void 0x0:_0x369424[_0x5865f3(0x1cb)])===null||_0x119ac0===void 0x0?void 0x0:_0x119ac0['devices'])===null||_0x57e9aa===void 0x0?void 0x0:_0x57e9aa[_0x5865f3(0x1cd)])&&Object['keys'](_0x369424[_0x5865f3(0x1cb)]['devices'])['length']>0x1&&delete _0x369424['anncicapi'][_0x5865f3(0x1b9)][_0x5865f3(0x1cd)];if((_0xa4ae0b=_0x369424===null||_0x369424===void 0x0?void 0x0:_0x369424[_0x5865f3(0x1bb)])===null||_0xa4ae0b===void 0x0?void 0x0:_0xa4ae0b[_0x5865f3(0x1f9)])for(const _0x1f99d8 in _0x369424[_0x5865f3(0x1bb)]['dirs']){((_0x2e74c3=_0x369424[_0x5865f3(0x1bb)]['dirs'][_0x1f99d8])===null||_0x2e74c3===void 0x0?void 0x0:_0x2e74c3[_0x5865f3(0x1c3)])&&typeof((_0x50c3ff=_0x369424['staticFile']['dirs'][_0x1f99d8])===null||_0x50c3ff===void 0x0?void 0x0:_0x50c3ff[_0x5865f3(0x1c3)])==_0x5865f3(0x1c6)&&!fs[_0x5865f3(0x1e2)](_0x369424['staticFile']['dirs'][_0x1f99d8]['dir'])&&(fs['mkdirSync'](_0x369424[_0x5865f3(0x1bb)][_0x5865f3(0x1f9)][_0x1f99d8][_0x5865f3(0x1c3)],{'recursive':!![]}),console[_0x5865f3(0x1ba)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x369424['staticFile'][_0x5865f3(0x1f9)][_0x1f99d8]['dir']));}((_0x4447f9=_0x369424===null||_0x369424===void 0x0?void 0x0:_0x369424[_0x5865f3(0x1ce)])===null||_0x4447f9===void 0x0?void 0x0:_0x4447f9[_0x5865f3(0x1b5)])&&!fs[_0x5865f3(0x1e2)](_0x369424['upload'][_0x5865f3(0x1b5)])&&(fs['mkdirSync'](_0x369424[_0x5865f3(0x1ce)][_0x5865f3(0x1b5)],{'recursive':!![]}),console[_0x5865f3(0x1ba)](_0x5865f3(0x1fc)+_0x369424[_0x5865f3(0x1ce)][_0x5865f3(0x1b5)])),this[_0x5865f3(0x1da)][_0x5865f3(0x1cf)](_0x369424);}};__decorate([(0x0,decorator_1[a2_0x23207a(0x1ee)])(),__metadata('design:type',core_1['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x23207a(0x1da),void 0x0),__decorate([(0x0,decorator_1[a2_0x23207a(0x1ee)])(),__metadata('design:type',core_1[a2_0x23207a(0x1f7)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x23207a(0x1ee)])(),__metadata(a2_0x23207a(0x1f3),core_1[a2_0x23207a(0x1d3)])],CustomConfiguration[a2_0x23207a(0x1c7)],a2_0x23207a(0x205),void 0x0),__decorate([(0x0,decorator_1[a2_0x23207a(0x1ee)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x23207a(0x1c7)],a2_0x23207a(0x1f2),void 0x0),__decorate([(0x0,decorator_1[a2_0x23207a(0x1ee)])(),__metadata('design:type',ApiService_1[a2_0x23207a(0x1d5)])],CustomConfiguration['prototype'],a2_0x23207a(0x1d5),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x23207a(0x1ca)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x23207a(0x1fd)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x31c463=a3_0x5155;(function(_0x1edf39,_0x221e73){const _0x32addc=a3_0x5155,_0x2eb322=_0x1edf39();while(!![]){try{const _0x25ff05=-parseInt(_0x32addc(0x111))/0x1+parseInt(_0x32addc(0x11c))/0x2*(parseInt(_0x32addc(0x10f))/0x3)+-parseInt(_0x32addc(0x139))/0x4+-parseInt(_0x32addc(0x117))/0x5+-parseInt(_0x32addc(0x10c))/0x6*(parseInt(_0x32addc(0x125))/0x7)+parseInt(_0x32addc(0x112))/0x8*(parseInt(_0x32addc(0x13a))/0x9)+parseInt(_0x32addc(0x114))/0xa*(parseInt(_0x32addc(0x11e))/0xb);if(_0x25ff05===_0x221e73)break;else _0x2eb322['push'](_0x2eb322['shift']());}catch(_0x4c06b0){_0x2eb322['push'](_0x2eb322['shift']());}}}(a3_0x40be,0x77933));Object[a3_0x31c463(0x10e)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require('../types/action');function Action(_0x3cc7e6,_0x280aa0,_0x363f7f={'middleware':[],'sensitive':!![]}){return _0x49081a=>{const _0x318edc=a3_0x5155;_0x363f7f[_0x318edc(0x129)]=_0x280aa0;const _0x49f7d4=parseRoute(_0x3cc7e6);if(_0x49f7d4[_0x318edc(0x130)]){_0x363f7f[_0x318edc(0x120)]=_0x363f7f['prefix']?'/'+_0x49f7d4[_0x318edc(0x130)]+'/'+_0x363f7f[_0x318edc(0x120)]:'/'+_0x49f7d4[_0x318edc(0x128)];_0x49f7d4[_0x318edc(0x120)]&&(_0x363f7f[_0x318edc(0x120)]='/'+_0x49f7d4['prefix']+'/'+_0x363f7f[_0x318edc(0x120)]);if(fs[_0x318edc(0x10d)](_0x49f7d4[_0x318edc(0x126)]+_0x318edc(0x124)+_0x49f7d4[_0x318edc(0x130)]+_0x318edc(0x131)+(lodash[_0x318edc(0x12f)](_0x49f7d4[_0x318edc(0x108)],'ts')?'ts':'js'))){const _0x1f6757=include(_0x49f7d4['rootpath']+_0x318edc(0x124)+_0x49f7d4[_0x318edc(0x130)]+_0x318edc(0x131)+(lodash[_0x318edc(0x12f)](_0x49f7d4[_0x318edc(0x108)],'ts')?'ts':'js'));if(_0x1f6757[_0x318edc(0x10a)]&&lodash[_0x318edc(0x127)](_0x1f6757['middleware'])&&_0x1f6757['middleware']['length']>0x0)for(let _0x4e8156 in _0x1f6757[_0x318edc(0x10a)]){_0x1f6757[_0x318edc(0x138)]['indexOf'](_0x1f6757['middleware'][_0x4e8156])==-0x1&&_0x363f7f['middleware']['push'](_0x1f6757[_0x318edc(0x10a)][_0x4e8156]);}const _0x28a83f=(0x0,decorator_1[_0x318edc(0x133)])(action_1[_0x318edc(0x132)],action_1[_0x318edc(0x135)])||{};_0x28a83f[''+_0x49f7d4['module']]=_0x1f6757,(0x0,decorator_1[_0x318edc(0x12d)])(action_1[_0x318edc(0x132)],_0x28a83f,action_1[_0x318edc(0x135)]);}_0x363f7f[_0x318edc(0x120)]=_0x363f7f[_0x318edc(0x120)][_0x318edc(0x12c)]()[_0x318edc(0x119)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x318edc(0x107)])(action_1[_0x318edc(0x134)],_0x49081a),(0x0,decorator_1[_0x318edc(0x113)])(_0x363f7f[_0x318edc(0x120)],_0x363f7f)(_0x49081a),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x318edc(0x134)],{'prefix':_0x363f7f['prefix'],'pprefix':_0x49f7d4[_0x318edc(0x120)],'module':_0x49f7d4['module'],'filepath':_0x49f7d4[_0x318edc(0x108)],'routerOptions':_0x363f7f},_0x49081a);}else _0x363f7f[_0x318edc(0x120)]=_0x363f7f[_0x318edc(0x120)]?'/'+_0x363f7f[_0x318edc(0x120)]:'/'+_0x49f7d4[_0x318edc(0x128)],_0x49f7d4[_0x318edc(0x120)]&&(_0x363f7f[_0x318edc(0x120)]='/'+_0x49f7d4[_0x318edc(0x120)]+'/'+_0x363f7f[_0x318edc(0x120)]),_0x363f7f['prefix']=_0x363f7f[_0x318edc(0x120)][_0x318edc(0x12c)]()[_0x318edc(0x119)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x318edc(0x107)])(action_1[_0x318edc(0x134)],_0x49081a),(0x0,decorator_1['Controller'])(_0x363f7f[_0x318edc(0x120)],_0x363f7f)(_0x49081a),(0x0,decorator_1[_0x318edc(0x12d)])(action_1[_0x318edc(0x134)],{'prefix':_0x363f7f[_0x318edc(0x120)],'module':_0x49f7d4['module'],'pprefix':_0x49f7d4[_0x318edc(0x120)],'filepath':_0x49f7d4[_0x318edc(0x108)],'routerOptions':_0x363f7f},_0x49081a);};}exports['Action']=Action;function parseRoute(_0x582e1c){const _0x4080ab=a3_0x31c463;_0x582e1c=_0x582e1c[_0x4080ab(0x119)](/(\\|\/)/g,'/');const _0x52bcaf=process[_0x4080ab(0x109)]()['replace'](/(\\|\/)/g,'/'),_0x33033d=_0x582e1c[_0x4080ab(0x106)](0x0,_0x52bcaf[_0x4080ab(0x110)]+_0x582e1c[_0x4080ab(0x106)](_0x52bcaf[_0x4080ab(0x110)]+0x1)[_0x4080ab(0x136)]('/')+0x1),_0xd47d98=_0x582e1c['substring'](_0x33033d[_0x4080ab(0x110)]+0x1)[_0x4080ab(0x119)](/(\\|\/)/g,'/'),_0xa4c008={'route':'','prefix':![],'module':![],'rootpath':_0x33033d,'filepath':_0xd47d98};if(_0xd47d98['startsWith'](_0x4080ab(0x13b))){const _0x4822a4=_0xd47d98[_0x4080ab(0x106)](_0x4080ab(0x13b)[_0x4080ab(0x110)])[_0x4080ab(0x11d)]('/')[_0x4080ab(0x11f)](_0x9947d4=>_0x9947d4&&_0x9947d4[_0x4080ab(0x116)]());return _0x4822a4['length']>0x1&&(_0xa4c008['prefix']=_0x4822a4[0x0][_0x4080ab(0x12c)](),_0x4822a4[_0x4080ab(0x118)](0x0,0x1)),_0xa4c008[_0x4080ab(0x128)]=('/'+_0x4822a4['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0x4080ab(0x119)](/\/{2,}/g,'/')[_0x4080ab(0x10b)](/[\/|A-Z]*[^A-Z]+/g)[_0x4080ab(0x137)]('-')[_0x4080ab(0x12c)]()[_0x4080ab(0x119)](/\/\-/g,'/'),_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x12f)]('-action')&&(_0xa4c008[_0x4080ab(0x128)]=_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x106)](0x0,_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x110)]-0x7)),_0xa4c008[_0x4080ab(0x128)]['endsWith'](_0x4080ab(0x121))&&(_0xa4c008[_0x4080ab(0x128)]=_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x106)](0x0,_0xa4c008[_0x4080ab(0x128)]['length']-0xb)),_0xa4c008;}else{if(_0xd47d98[_0x4080ab(0x123)](_0x4080ab(0x11a))){const _0x5bfdf5=_0xd47d98[_0x4080ab(0x106)](0x0,_0xd47d98['indexOf'](_0x4080ab(0x124))+0x5),_0x380c68=_0xd47d98[_0x4080ab(0x106)](_0x5bfdf5['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x4080ab(0x11d)]('/')[0x0];if(_0xd47d98['startsWith']('apps/'+_0x380c68+_0x4080ab(0x11b))){const _0x3ee65b=_0xd47d98['substring']((_0x5bfdf5+'/'+_0x380c68+'/controller/')['length'])[_0x4080ab(0x11d)]('/')[_0x4080ab(0x11f)](_0xc4229e=>_0xc4229e&&_0xc4229e[_0x4080ab(0x116)]());return _0x3ee65b[_0x4080ab(0x110)]>0x1&&(_0xa4c008[_0x4080ab(0x120)]=_0x3ee65b[0x0][_0x4080ab(0x12c)](),_0x3ee65b[_0x4080ab(0x118)](0x0,0x1)),_0xa4c008[_0x4080ab(0x130)]=_0x380c68,_0xa4c008[_0x4080ab(0x128)]=('/'+_0x380c68+'/'+_0x3ee65b[_0x4080ab(0x137)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x4080ab(0x10b)](/[\/|A-Z]*[^A-Z]+/g)[_0x4080ab(0x137)]('-')[_0x4080ab(0x12c)]()[_0x4080ab(0x119)](/\/\-/g,'/'),_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x12f)](_0x4080ab(0x115))&&(_0xa4c008[_0x4080ab(0x128)]=_0xa4c008[_0x4080ab(0x128)][_0x4080ab(0x106)](0x0,_0xa4c008['route'][_0x4080ab(0x110)]-0x7)),_0xa4c008[_0x4080ab(0x128)]['endsWith'](_0x4080ab(0x121))&&(_0xa4c008[_0x4080ab(0x128)]=_0xa4c008[_0x4080ab(0x128)]['substring'](0x0,_0xa4c008['route'][_0x4080ab(0x110)]-0xb)),_0xa4c008;}throw new Error(_0xd47d98+_0x4080ab(0x12a)+_0x380c68+_0x4080ab(0x122));}}throw new Error(_0xd47d98+_0x4080ab(0x12e));}function a3_0x5155(_0x229dce,_0x338737){const _0x40bea8=a3_0x40be();return a3_0x5155=function(_0x5155c9,_0x85ce66){_0x5155c9=_0x5155c9-0x106;let _0xa26c6c=_0x40bea8[_0x5155c9];return _0xa26c6c;},a3_0x5155(_0x229dce,_0x338737);}function a3_0x40be(){const _0x288b88=['7GojuyU','rootpath','isArray','route','tagName','\x20文件请放在apps/','parseRoute','toLowerCase','saveClassMetadata','\x20文件请放在app/controller/文件下','endsWith','module','/config.','APPSCONFIG_KEY','getClassMetadata','ACTION_KEY','AppsConfigTmp','indexOf','join','middlewareIgnore','669884EDCbLw','25308UviysS','app/controller/','substring','saveModule','filepath','cwd','middleware','match','2433594OAPjGv','existsSync','defineProperty','429ZLPRqq','length','226417eOuQCS','1304OcsJQJ','Controller','98270PZZZyL','-action','trim','3659195oPDrXP','splice','replace','apps/','/controller/','4814EUrtaB','split','1364JiMhWp','filter','prefix','-controller','/controller/文件下','startsWith','/apps/'];a3_0x40be=function(){return _0x288b88;};return a3_0x40be();}exports[a3_0x31c463(0x12b)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x5967(_0x3530cb,_0xe640c){const _0x5dc6b2=a4_0x5dc6();return a4_0x5967=function(_0x5967af,_0x17f2ae){_0x5967af=_0x5967af-0x116;let _0x11f28f=_0x5dc6b2[_0x5967af];return _0x11f28f;},a4_0x5967(_0x3530cb,_0xe640c);}const a4_0x5ef1f5=a4_0x5967;(function(_0x557177,_0x58c11c){const _0x5545a4=a4_0x5967,_0x365d09=_0x557177();while(!![]){try{const _0x5bc802=parseInt(_0x5545a4(0x120))/0x1+-parseInt(_0x5545a4(0x118))/0x2*(parseInt(_0x5545a4(0x131))/0x3)+parseInt(_0x5545a4(0x12b))/0x4*(parseInt(_0x5545a4(0x12d))/0x5)+-parseInt(_0x5545a4(0x134))/0x6+-parseInt(_0x5545a4(0x133))/0x7*(-parseInt(_0x5545a4(0x11a))/0x8)+parseInt(_0x5545a4(0x11e))/0x9*(-parseInt(_0x5545a4(0x132))/0xa)+parseInt(_0x5545a4(0x136))/0xb;if(_0x5bc802===_0x58c11c)break;else _0x365d09['push'](_0x365d09['shift']());}catch(_0x53889c){_0x365d09['push'](_0x365d09['shift']());}}}(a4_0x5dc6,0xf27a7));function a4_0x5dc6(){const _0x21721d=['createCustomMethodDecorator','utc','292eMabTI','middlewareIgnore','84990HZRHmr','assign','@anncic-api/validator','apimit','30OIWXQq','10zdSQnE','7oCPMSQ','10634178bESJZG','indexOf','34689314VjYKCW','defineProperty','del','316058ILgAcx','validate','5675048ZLjrbq','length','delete','Validator','10872234QlAwdN','toLowerCase','450061MTjzTL','ACTION_ROUTE_KEY','Api','filter','description','@midwayjs/decorator','RequestMapping','middleware','routerName'];a4_0x5dc6=function(){return _0x21721d;};return a4_0x5dc6();}Object[a4_0x5ef1f5(0x116)](exports,'__esModule',{'value':!![]}),exports[a4_0x5ef1f5(0x122)]=void 0x0;const validator_1=require(a4_0x5ef1f5(0x12f)),decorator_1=require(a4_0x5ef1f5(0x125)),action_1=require('../types/action');function Api(_0x3e1654,_0x49c258='get',_0x4bcc2a='/',_0x534a3c={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5b5dfd,_0x1626be,_0x4d1219)=>{const _0x33151d=a4_0x5967;var _0x51010f,_0x8ceeae,_0x21b28d;!_0x534a3c[_0x33151d(0x127)]&&(_0x534a3c['middleware']=[]);!((_0x51010f=_0x534a3c===null||_0x534a3c===void 0x0?void 0x0:_0x534a3c['validate'])===null||_0x51010f===void 0x0?void 0x0:_0x51010f['validationOptions'])&&(_0x534a3c[_0x33151d(0x119)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x33151d(0x12a)}});if(((_0x8ceeae=_0x534a3c===null||_0x534a3c===void 0x0?void 0x0:_0x534a3c[_0x33151d(0x127)])===null||_0x8ceeae===void 0x0?void 0x0:_0x8ceeae[_0x33151d(0x11b)])>0x0&&((_0x21b28d=_0x534a3c===null||_0x534a3c===void 0x0?void 0x0:_0x534a3c['middlewareIgnore'])===null||_0x21b28d===void 0x0?void 0x0:_0x21b28d[_0x33151d(0x11b)])>0x0)for(let _0x1fdd02 in _0x534a3c[_0x33151d(0x127)]){_0x534a3c[_0x33151d(0x12c)][_0x33151d(0x135)](_0x534a3c[_0x33151d(0x127)][_0x1fdd02])!==-0x1&&(_0x534a3c[_0x33151d(0x127)][_0x1fdd02]=null);}_0x534a3c[_0x33151d(0x128)]=_0x3e1654,(0x0,validator_1[_0x33151d(0x11d)])(_0x534a3c[_0x33151d(0x119)])(_0x5b5dfd,_0x1626be,_0x4d1219),(0x0,decorator_1[_0x33151d(0x126)])(Object[_0x33151d(0x12e)](_0x534a3c,{'path':_0x4bcc2a,'requestMethod':(_0x49c258==_0x33151d(0x117)?_0x33151d(0x11c):_0x49c258)[_0x33151d(0x11f)]()}))(_0x5b5dfd,_0x1626be,_0x4d1219),(0x0,decorator_1['attachClassMetadata'])(action_1[_0x33151d(0x121)],{'path':_0x4bcc2a,'method':_0x1626be,'apimit':_0x534a3c[_0x33151d(0x130)],'routerName':_0x534a3c['routerName'],'description':_0x534a3c['description'],'middleware':(_0x534a3c[_0x33151d(0x127)]||[])[_0x33151d(0x123)](_0x28ce47=>!!_0x28ce47),'requestMethod':(_0x49c258==_0x33151d(0x117)?_0x33151d(0x11c):_0x49c258)[_0x33151d(0x11f)]()},_0x5b5dfd),(0x0,decorator_1[_0x33151d(0x129)])(action_1[_0x33151d(0x121)],{'path':_0x4bcc2a,'method':_0x1626be,'apimit':_0x534a3c[_0x33151d(0x130)],'routerName':_0x534a3c['routerName'],'description':_0x534a3c[_0x33151d(0x124)],'middleware':(_0x534a3c[_0x33151d(0x127)]||[])[_0x33151d(0x123)](_0x1f8dbe=>!!_0x1f8dbe),'requestMethod':(_0x49c258==_0x33151d(0x117)?_0x33151d(0x11c):_0x49c258)[_0x33151d(0x11f)]()})(_0x5b5dfd,_0x1626be,_0x4d1219);};}exports[a4_0x5ef1f5(0x122)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a5_0x14e0(){const _0x594a99=['value','7646vgtcvg','filepath','590667nDDaEb','@midwayjs/core','654URBZgs','getApplicationContext','6132393DsgIgr','RequestMapping','18845dfWYwV','getAsync','32qjjSXt','MidwayEnvironmentService','@midwayjs/decorator','ApitestService','defineProperty','172LcOCSi','7089210jnmHAg','Apitest','649736zqwPbC','171150UNiMbv','apitest','getConfig','get'];a5_0x14e0=function(){return _0x594a99;};return a5_0x14e0();}function a5_0x3a52(_0x108148,_0x2797ac){const _0x14e0dc=a5_0x14e0();return a5_0x3a52=function(_0x3a5264,_0x2a0c03){_0x3a5264=_0x3a5264-0x68;let _0x12e25b=_0x14e0dc[_0x3a5264];return _0x12e25b;},a5_0x3a52(_0x108148,_0x2797ac);}const a5_0x4295ef=a5_0x3a52;(function(_0x50df5e,_0x100616){const _0x508386=a5_0x3a52,_0x53ae98=_0x50df5e();while(!![]){try{const _0x15dded=-parseInt(_0x508386(0x7e))/0x1*(-parseInt(_0x508386(0x6f))/0x2)+parseInt(_0x508386(0x71))/0x3+parseInt(_0x508386(0x69))/0x4+parseInt(_0x508386(0x77))/0x5*(-parseInt(_0x508386(0x73))/0x6)+parseInt(_0x508386(0x6a))/0x7*(-parseInt(_0x508386(0x79))/0x8)+-parseInt(_0x508386(0x75))/0x9+parseInt(_0x508386(0x7f))/0xa;if(_0x15dded===_0x100616)break;else _0x53ae98['push'](_0x53ae98['shift']());}catch(_0x19a8d5){_0x53ae98['push'](_0x53ae98['shift']());}}}(a5_0x14e0,0x82cfa));Object[a5_0x4295ef(0x7d)](exports,'__esModule',{'value':!![]}),exports['Apitest']=void 0x0;const decorator_1=require(a5_0x4295ef(0x7b)),core_1=require(a5_0x4295ef(0x72)),ApitestService_1=require('../service/ApitestService');function Apitest(_0x139c09='/apitest',_0x4f91d5){return(_0x53f067,_0x51968e,_0x226938)=>{const _0x38fc6d=a5_0x3a52;return(0x0,decorator_1[_0x38fc6d(0x76)])({'path':_0x139c09,'requestMethod':_0x38fc6d(0x6d)})(_0x53f067,_0x51968e,_0x226938),_0x226938[_0x38fc6d(0x6e)]=async function(..._0x24b9b0){const _0x1a25ae=_0x38fc6d;var _0x3c6ae6;const _0x1c13c8=(_0x3c6ae6=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x3c6ae6===void 0x0?void 0x0:_0x3c6ae6['app'];if(_0x1c13c8&&_0x1c13c8[_0x1a25ae(0x6c)](_0x1a25ae(0x6b))){const _0x11f0f6=await _0x1c13c8[_0x1a25ae(0x74)]()[_0x1a25ae(0x78)](ApitestService_1[_0x1a25ae(0x7c)]),_0x4b8c0a=await _0x1c13c8['getApplicationContext']()[_0x1a25ae(0x78)](core_1[_0x1a25ae(0x7a)]);return _0x4b8c0a['isDevelopmentEnvironment']()&&(_0x4f91d5[_0x1a25ae(0x70)]=!![]),await _0x11f0f6['apidoc'](_0x4f91d5);}return'';},_0x226938;};}exports[a5_0x4295ef(0x68)]=Apitest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class ApiError {
|
|
2
|
-
static readonly TIMEOUT =
|
|
3
|
-
static readonly HEADERS_LACK =
|
|
4
|
-
static readonly HEADERS_DEVICE =
|
|
5
|
-
static readonly HEADERS_CHECKCODE =
|
|
6
|
-
static readonly HEADERS_SIGNATURE =
|
|
2
|
+
static readonly TIMEOUT = 4030001;
|
|
3
|
+
static readonly HEADERS_LACK = 4030002;
|
|
4
|
+
static readonly HEADERS_DEVICE = 4030003;
|
|
5
|
+
static readonly HEADERS_CHECKCODE = 4030004;
|
|
6
|
+
static readonly HEADERS_SIGNATURE = 4030005;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x7b39(){var _0x2101a4=['HEADERS_CHECKCODE','请使用正确的设备','__decorate','function','请求头信息不完整','HEADERS_LACK','582948NeLSex','9691044fjKYFD','defineProperty','__esModule','15KQkEtd','HEADERS_DEVICE','TIMEOUT','object','46673abTBGr','4826088lqZDGQ','signature验证失败','ApiError','2350dlcdQK','design:type','2052sUzZHZ','__metadata','decorate','HEADERS_SIGNATURE','15195qwuRxK','2ndJjPG','4222113XhyunR','网络繁忙,请稍后重试','8wDvccF','944404cNcAgR','metadata','13elFYNY','checkcode验证失败'];a6_0x7b39=function(){return _0x2101a4;};return a6_0x7b39();}var a6_0x2d5b51=a6_0x49e5;(function(_0x129b69,_0x35496e){var _0x3584db=a6_0x49e5,_0x2ac321=_0x129b69();while(!![]){try{var _0x531e4b=parseInt(_0x3584db(0x147))/0x1*(-parseInt(_0x3584db(0x143))/0x2)+parseInt(_0x3584db(0x134))/0x3*(parseInt(_0x3584db(0x130))/0x4)+parseInt(_0x3584db(0x142))/0x5*(parseInt(_0x3584db(0x13e))/0x6)+-parseInt(_0x3584db(0x144))/0x7+parseInt(_0x3584db(0x146))/0x8*(parseInt(_0x3584db(0x139))/0x9)+parseInt(_0x3584db(0x13c))/0xa*(-parseInt(_0x3584db(0x138))/0xb)+parseInt(_0x3584db(0x131))/0xc*(parseInt(_0x3584db(0x128))/0xd);if(_0x531e4b===_0x35496e)break;else _0x2ac321['push'](_0x2ac321['shift']());}catch(_0x47e4ed){_0x2ac321['push'](_0x2ac321['shift']());}}}(a6_0x7b39,0x8a786));var __decorate=this&&this[a6_0x2d5b51(0x12c)]||function(_0x43be34,_0x431036,_0x77ebf9,_0x399f1c){var _0x35bf36=a6_0x2d5b51,_0x38653b=arguments['length'],_0x4307ac=_0x38653b<0x3?_0x431036:_0x399f1c===null?_0x399f1c=Object['getOwnPropertyDescriptor'](_0x431036,_0x77ebf9):_0x399f1c,_0x2294c6;if(typeof Reflect===_0x35bf36(0x137)&&typeof Reflect[_0x35bf36(0x140)]===_0x35bf36(0x12d))_0x4307ac=Reflect[_0x35bf36(0x140)](_0x43be34,_0x431036,_0x77ebf9,_0x399f1c);else{for(var _0x2e59e8=_0x43be34['length']-0x1;_0x2e59e8>=0x0;_0x2e59e8--)if(_0x2294c6=_0x43be34[_0x2e59e8])_0x4307ac=(_0x38653b<0x3?_0x2294c6(_0x4307ac):_0x38653b>0x3?_0x2294c6(_0x431036,_0x77ebf9,_0x4307ac):_0x2294c6(_0x431036,_0x77ebf9))||_0x4307ac;}return _0x38653b>0x3&&_0x4307ac&&Object['defineProperty'](_0x431036,_0x77ebf9,_0x4307ac),_0x4307ac;},__metadata=this&&this[a6_0x2d5b51(0x13f)]||function(_0x135713,_0x29d350){var _0x581bd8=a6_0x2d5b51;if(typeof Reflect==='object'&&typeof Reflect[_0x581bd8(0x148)]===_0x581bd8(0x12d))return Reflect[_0x581bd8(0x148)](_0x135713,_0x29d350);};Object[a6_0x2d5b51(0x132)](exports,a6_0x2d5b51(0x133),{'value':!![]}),exports[a6_0x2d5b51(0x13b)]=void 0x0;class ApiError{}function a6_0x49e5(_0x45153f,_0x43ccdd){var _0x7b39a7=a6_0x7b39();return a6_0x49e5=function(_0x49e5d7,_0x406e6b){_0x49e5d7=_0x49e5d7-0x128;var _0x2adcd3=_0x7b39a7[_0x49e5d7];return _0x2adcd3;},a6_0x49e5(_0x45153f,_0x43ccdd);}ApiError[a6_0x2d5b51(0x136)]=0x3d7e31,ApiError[a6_0x2d5b51(0x12f)]=0x3d7e32,ApiError[a6_0x2d5b51(0x135)]=0x3d7e33,ApiError['HEADERS_CHECKCODE']=0x3d7e34,ApiError['HEADERS_SIGNATURE']=0x3d7e35,__decorate([AnnErrorMsg(a6_0x2d5b51(0x145)),__metadata(a6_0x2d5b51(0x13d),Object)],ApiError,a6_0x2d5b51(0x136),void 0x0),__decorate([AnnErrorMsg(a6_0x2d5b51(0x12e)),__metadata('design:type',Object)],ApiError,a6_0x2d5b51(0x12f),void 0x0),__decorate([AnnErrorMsg(a6_0x2d5b51(0x12b)),__metadata('design:type',Object)],ApiError,a6_0x2d5b51(0x135),void 0x0),__decorate([AnnErrorMsg(a6_0x2d5b51(0x129)),__metadata(a6_0x2d5b51(0x13d),Object)],ApiError,a6_0x2d5b51(0x12a),void 0x0),__decorate([AnnErrorMsg(a6_0x2d5b51(0x13a)),__metadata(a6_0x2d5b51(0x13d),Object)],ApiError,a6_0x2d5b51(0x141),void 0x0),exports[a6_0x2d5b51(0x13b)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x328296=a7_0x1a48;(function(_0x52f4cd,_0x1f76d3){const _0x487282=a7_0x1a48,_0x52be49=_0x52f4cd();while(!![]){try{const _0x4d8aa9=-parseInt(_0x487282(0x146))/0x1+parseInt(_0x487282(0x143))/0x2+-parseInt(_0x487282(0x13f))/0x3*(parseInt(_0x487282(0x145))/0x4)+parseInt(_0x487282(0x13d))/0x5*(parseInt(_0x487282(0x139))/0x6)+-parseInt(_0x487282(0x141))/0x7*(-parseInt(_0x487282(0x136))/0x8)+parseInt(_0x487282(0x13e))/0x9*(-parseInt(_0x487282(0x142))/0xa)+parseInt(_0x487282(0x135))/0xb*(parseInt(_0x487282(0x138))/0xc);if(_0x4d8aa9===_0x1f76d3)break;else _0x52be49['push'](_0x52be49['shift']());}catch(_0x512963){_0x52be49['push'](_0x52be49['shift']());}}}(a7_0x9aec,0xb095a));Object[a7_0x328296(0x13c)](exports,a7_0x328296(0x137),{'value':!![]}),exports[a7_0x328296(0x134)]=void 0x0;const decorator_1=require(a7_0x328296(0x13a)),action_1=require(a7_0x328296(0x144));function getAppsConfig(_0x3782aa){const _0x49cad8=a7_0x328296,_0x5e275a=(0x0,decorator_1[_0x49cad8(0x13b)])(action_1[_0x49cad8(0x140)],action_1['AppsConfigTmp'])||{};return _0x3782aa?lodash['get'](_0x5e275a,_0x3782aa):_0x5e275a;}exports[a7_0x328296(0x134)]=getAppsConfig;function a7_0x1a48(_0x2c6754,_0x52ec63){const _0x9aec58=a7_0x9aec();return a7_0x1a48=function(_0x1a4828,_0xc74629){_0x1a4828=_0x1a4828-0x134;let _0x3458e5=_0x9aec58[_0x1a4828];return _0x3458e5;},a7_0x1a48(_0x2c6754,_0x52ec63);}function a7_0x9aec(){const _0xab0bfe=['defineProperty','5mnumts','27450HaxIyV','18EwGTsZ','APPSCONFIG_KEY','693476kQVSvy','1670JHsgUf','314520sVmQGm','../types/action','319420gTKeRu','1331499mCXSiw','getAppsConfig','19730128osuZDb','8mquaQN','__esModule','12FAOENQ','5959758SwaQoN','@midwayjs/decorator','getClassMetadata'];a7_0x9aec=function(){return _0xab0bfe;};return a7_0x9aec();}
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x146a39=a8_0x3fc7;(function(_0x122784,_0x1383f5){const _0x92e237=a8_0x3fc7,_0x30d4a4=_0x122784();while(!![]){try{const _0x1d07a1=parseInt(_0x92e237(0xd8))/0x1+parseInt(_0x92e237(0xc6))/0x2+-parseInt(_0x92e237(0xf9))/0x3*(-parseInt(_0x92e237(0xc2))/0x4)+parseInt(_0x92e237(0xe0))/0x5+-parseInt(_0x92e237(0xad))/0x6+parseInt(_0x92e237(0xd3))/0x7+-parseInt(_0x92e237(0xb0))/0x8*(parseInt(_0x92e237(0xc8))/0x9);if(_0x1d07a1===_0x1383f5)break;else _0x30d4a4['push'](_0x30d4a4['shift']());}catch(_0x14c404){_0x30d4a4['push'](_0x30d4a4['shift']());}}}(a8_0x17ae,0x6e57f));Object['defineProperty'](exports,a8_0x146a39(0xdf),{'value':!![]}),exports[a8_0x146a39(0xa9)]=void 0x0;const lodash_1=require(a8_0x146a39(0xc7)),validator_1=require(a8_0x146a39(0xa6)),decorator_1=require(a8_0x146a39(0xd0)),decorator_2=require(a8_0x146a39(0xd0)),decorator_3=require('@midwayjs/decorator'),action_1=require(a8_0x146a39(0xed));function getRoutes(_0x2bb320={'prefix':'/','module':![]}){const _0x423440=a8_0x146a39;var _0x4d6605,_0x44f2d3;const _0x11833d=(0x0,decorator_3[_0x423440(0xb4)])(action_1[_0x423440(0xe2)]),_0x2db20a={},_0x38cc35=Array[_0x423440(0xeb)](_0x2bb320[_0x423440(0xe8)]||[])?_0x2bb320[_0x423440(0xe8)]||[]:[_0x2bb320[_0x423440(0xe8)]];_0x2f195c:for(const _0x47189b of _0x11833d){let _0x24dbd2=(0x0,decorator_3['getClassMetadata'])(action_1[_0x423440(0xe2)],_0x47189b),_0x48d1b5=(0x0,decorator_3[_0x423440(0xec)])(action_1[_0x423440(0xf0)],_0x47189b);if(_0x24dbd2&&_0x48d1b5){let _0x1f5776=_0x24dbd2[_0x423440(0xbd)],_0x58de38={};if(_0x2bb320['module']&&(0x0,lodash_1['get'])(_0x24dbd2,_0x423440(0xcd),![])!=_0x2bb320[_0x423440(0xcd)])continue _0x2f195c;else{if(_0x2bb320[_0x423440(0xcd)]===![]&&!!(0x0,lodash_1[_0x423440(0xd7)])(_0x24dbd2,_0x423440(0xcd),null))continue _0x2f195c;}if(_0x2bb320[_0x423440(0xbd)]&&!_0x1f5776[_0x423440(0xcf)](_0x2bb320[_0x423440(0xbd)]))continue _0x2f195c;_0x1f5776!=='/'?(_0x58de38[_0x423440(0xb6)]=(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xb9)][_0x423440(0xba)])||(/^\//[_0x423440(0xbf)](_0x1f5776)?_0x1f5776[_0x423440(0x9f)]('/')[0x1]:_0x1f5776),_0x58de38['description']=(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xb9)][_0x423440(0xda)])||_0x58de38['summary'],_0x58de38['routes']=[]):(_0x58de38[_0x423440(0xb6)]=(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xb9)][_0x423440(0xba)])||_0x423440(0xb2),_0x58de38[_0x423440(0xda)]=(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xb9)]['description'])||'',_0x58de38['routes']=[]);_0x2bb320[_0x423440(0xd6)]&&(_0x58de38['filepath']=_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xd6)]);(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2[_0x423440(0xd2)])&&(_0x58de38['prefix']=_0x24dbd2[_0x423440(0xd2)]);(_0x24dbd2===null||_0x24dbd2===void 0x0?void 0x0:_0x24dbd2['module'])&&(_0x58de38['module']=_0x24dbd2['module']);let _0x502587=(0x0,decorator_3[_0x423440(0xec)])(decorator_2[_0x423440(0xf1)],_0x47189b)||{};if(typeof _0x48d1b5[Symbol[_0x423440(0xe5)]]==='function')for(let _0x49adc3 of _0x48d1b5){let _0x317a94={};_0x317a94[_0x423440(0xf7)]=_0x49adc3[_0x423440(0xef)],_0x317a94[_0x423440(0xe9)]=(_0x1f5776+_0x49adc3[_0x423440(0xa7)])['replace'](/\/{1,}/,'/'),_0x317a94[_0x423440(0xb6)]=(_0x49adc3===null||_0x49adc3===void 0x0?void 0x0:_0x49adc3[_0x423440(0xf4)])||_0x58de38[_0x423440(0xb6)]||_0x423440(0xb2),_0x317a94[_0x423440(0xda)]=(_0x49adc3===null||_0x49adc3===void 0x0?void 0x0:_0x49adc3[_0x423440(0xda)])||'',_0x317a94['request']=[];if(!(0x0,lodash_1[_0x423440(0xcf)])(_0x317a94['route'],_0x423440(0xc3))&&!(0x0,lodash_1[_0x423440(0xcf)])(_0x317a94[_0x423440(0xe9)],_0x423440(0xa3))&&_0x38cc35[_0x423440(0xbe)](_0x317a94[_0x423440(0xe9)])===-0x1){if(!(_0x2bb320===null||_0x2bb320===void 0x0?void 0x0:_0x2bb320['noreq'])){let _0x467533=(0x0,decorator_3['getMethodParamTypes'])(new _0x47189b(),_0x49adc3['method']);for(const _0x4e3451 in _0x467533){let _0x36441c=(_0x4d6605=_0x502587[_0x49adc3[_0x423440(0xf7)]])===null||_0x4d6605===void 0x0?void 0x0:_0x4d6605[_0x423440(0xfb)](_0x7d44b4=>_0x7d44b4[_0x423440(0xd9)]==_0x4e3451&&_0x7d44b4[_0x423440(0xc5)]===decorator_2[_0x423440(0xbc)]&&(_0x7d44b4===null||_0x7d44b4===void 0x0?void 0x0:_0x7d44b4[_0x423440(0xf5)]));if(_0x36441c===null||_0x36441c===void 0x0?void 0x0:_0x36441c['metadata']){let _0xf440fe=convertTypeToString(_0x36441c[_0x423440(0xf5)][_0x423440(0xdc)]||0x0);if([_0x423440(0xaf),_0x423440(0xa1)][_0x423440(0xbe)](_0xf440fe)!=-0x1&&_0x36441c[_0x423440(0xf5)][_0x423440(0xcc)]['indexOf'](':')==-0x1&&!_0x317a94[_0x423440(0xa8)][_0x423440(0xfb)](_0x57651f=>_0x57651f[_0x423440(0xc5)]==_0x36441c[_0x423440(0xf5)][_0x423440(0xcc)]))_0x317a94['request']['push']({'key':_0x36441c['metadata'][_0x423440(0xcc)],'title':_0x36441c[_0x423440(0xf5)][_0x423440(0xcc)],'type':convertSchemaType(_0x467533[_0x36441c['parameterIndex']][_0x423440(0xd5)]),'required':![],'default':'','desc':''});else{if(_0xf440fe==_0x423440(0xc9)){let _0x486869=((_0x44f2d3=_0x36441c===null||_0x36441c===void 0x0?void 0x0:_0x36441c[_0x423440(0xf5)])===null||_0x44f2d3===void 0x0?void 0x0:_0x44f2d3[_0x423440(0xcc)])||'file';_0x486869[_0x423440(0xbe)](':')==-0x1&&!_0x317a94[_0x423440(0xa8)][_0x423440(0xfb)](_0x44c630=>_0x44c630[_0x423440(0xc5)]==_0x486869&&_0x44c630[_0x423440(0xdc)]==_0x423440(0xc9))&&_0x317a94[_0x423440(0xa8)][_0x423440(0xd4)]({'key':_0x486869,'title':'文件上传-'+_0x486869,'type':_0x423440(0xc9),'required':!![],'default':'','desc':''});}}}else{const _0x5ea267=(0x0,decorator_3[_0x423440(0xbb)])(validator_1['RULES_KEY'],_0x467533[_0x4e3451]);_0x5ea267&&_0x317a94[_0x423440(0xa8)][_0x423440(0xd4)](...getJoiRequest(_0x5ea267));}}}_0x58de38[_0x423440(0xcb)][_0x423440(0xd4)](_0x317a94);}}if(_0x58de38[_0x423440(0xcb)][_0x423440(0xde)]>0x0){let _0x33f0e3=_0x2db20a[_0x1f5776];_0x33f0e3?(_0x33f0e3[_0x423440(0xb6)]!=_0x58de38['summary']&&(_0x33f0e3['summary']=_0x33f0e3[_0x423440(0xb6)]+','+_0x58de38['summary']),_0x33f0e3[_0x423440(0xda)]!=_0x58de38[_0x423440(0xda)]&&(_0x33f0e3[_0x423440(0xda)]=_0x33f0e3[_0x423440(0xda)]+','+_0x58de38['description']),_0x33f0e3['routes']=_0x33f0e3['routes'][_0x423440(0xb7)](_0x58de38[_0x423440(0xcb)]),_0x2db20a[_0x1f5776]=_0x33f0e3):_0x2db20a[_0x1f5776]=_0x58de38;}}}return _0x2db20a;}function a8_0x17ae(){const _0x475c33=['routerName','metadata','children','method','items','11535UVmTpF','rules','find','split','allow','body','max','/static/apitest','Boolean','object','@anncic-api/validator','path','request','getRoutes','RouteParamTypes','min','array','1995048ItgZgx','BODY','query','72nIgJzx','flags.presence','default','Object','listModule','header','summary','concat','flags.label','routerOptions','tagName','getClassExtendedMetadata','WEB_ROUTER_PARAM_KEY','prefix','indexOf','test','File','HEADERS','332KzKVTJ','static/apitest','function','key','808944aqhRJg','lodash','808227behswg','file','title','routes','propertyData','module','describe','startsWith','@midwayjs/decorator','log','pprefix','4319938cCOTCX','push','name','filepath','get','27020jTJHUf','parameterIndex','description','FIELDS','type','FILESTREAM','length','__esModule','1124705PiGoYQ','keys','ACTION_KEY','required','join','iterator','args','string','filter','route','boolean','isArray','getClassMetadata','../types/action','PARAM','requestMethod','ACTION_ROUTE_KEY','INJECT_CUSTOM_PARAM','只允许:[','FILESSTREAM'];a8_0x17ae=function(){return _0x475c33;};return a8_0x17ae();}exports['getRoutes']=getRoutes;function getJoiRequest(_0x27c16f){const _0x265fa3=a8_0x146a39,_0x2cc9a5=[];for(let _0x168acd in _0x27c16f){const _0x56a939={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5e1a31=typeof _0x27c16f[_0x168acd][_0x265fa3(0xce)]==_0x265fa3(0xc4)?_0x27c16f[_0x168acd][_0x265fa3(0xce)]():_0x27c16f[_0x168acd];_0x56a939[_0x265fa3(0xc5)]=_0x168acd,_0x56a939[_0x265fa3(0xdc)]=_0x5e1a31[_0x265fa3(0xdc)],_0x56a939[_0x265fa3(0xca)]=(0x0,lodash_1[_0x265fa3(0xd7)])(_0x5e1a31,_0x265fa3(0xb8),_0x168acd),_0x56a939[_0x265fa3(0xb2)]=(0x0,lodash_1['get'])(_0x5e1a31,'flags.default',''),_0x56a939[_0x265fa3(0xe3)]=(0x0,lodash_1[_0x265fa3(0xd7)])(_0x5e1a31,_0x265fa3(0xb1),'')=='required',_0x56a939[_0x265fa3(0xda)]=(0x0,lodash_1[_0x265fa3(0xd7)])(_0x5e1a31,'flags.description','');if(_0x5e1a31[_0x265fa3(0xdc)]=='object')_0x56a939[_0x265fa3(0xf6)]=getJoiRequest(_0x5e1a31[_0x265fa3(0xe1)]);else _0x5e1a31[_0x265fa3(0xdc)]==_0x265fa3(0xac)&&_0x5e1a31['items']&&Array[_0x265fa3(0xeb)](_0x5e1a31[_0x265fa3(0xf8)])&&_0x5e1a31['items'][0x0]&&console[_0x265fa3(0xd1)](_0x168acd+'-array',_0x5e1a31);_0x5e1a31[_0x265fa3(0xa0)]&&Array[_0x265fa3(0xeb)](_0x5e1a31['allow'])&&_0x5e1a31[_0x265fa3(0xa0)][_0x265fa3(0xde)]>0x0&&(_0x56a939['description']=_0x265fa3(0xf2)+_0x5e1a31[_0x265fa3(0xa0)][_0x265fa3(0xe4)](',')+'];'+_0x56a939[_0x265fa3(0xda)]);if(_0x56a939[_0x265fa3(0xc5)]&&_0x56a939[_0x265fa3(0xdc)]){const _0x5703ee={};for(const _0xd3ff7b of _0x5e1a31[_0x265fa3(0xfa)]||[]){if(_0xd3ff7b[_0x265fa3(0xd5)]===_0x265fa3(0xab)&&_0xd3ff7b[_0x265fa3(0xe6)])_0x5703ee[_0x265fa3(0xab)]=_0xd3ff7b[_0x265fa3(0xe6)]['limit'];else _0xd3ff7b[_0x265fa3(0xd5)]===_0x265fa3(0xa2)&&(_0x5703ee[_0x265fa3(0xa2)]=_0xd3ff7b[_0x265fa3(0xe6)]['limit']);}_0x56a939[_0x265fa3(0xfa)]=_0x5703ee;}_0x56a939[_0x265fa3(0xc5)]&&_0x56a939['title']&&_0x2cc9a5[_0x265fa3(0xd4)](_0x56a939);}return _0x2cc9a5;}function a8_0x3fc7(_0x627849,_0x371622){const _0x17ae97=a8_0x17ae();return a8_0x3fc7=function(_0x3fc75b,_0x3d2523){_0x3fc75b=_0x3fc75b-0x9f;let _0x301869=_0x17ae97[_0x3fc75b];return _0x301869;},a8_0x3fc7(_0x627849,_0x371622);}function convertSchemaType(_0x3f0485){const _0x140fcd=a8_0x146a39;switch(_0x3f0485){case _0x140fcd(0xb3):return _0x140fcd(0xa5);case _0x140fcd(0xa4):return _0x140fcd(0xea);case'Number':return'number';case'String':return'string';case _0x140fcd(0xc0):return _0x140fcd(0xc9);default:return _0x140fcd(0xe7);}}function convertTypeToString(_0x3f3a5a){const _0x43ad2c=a8_0x146a39;switch(_0x3f3a5a){case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xc1)]:return _0x43ad2c(0xb5);case decorator_1[_0x43ad2c(0xaa)]['QUERY']:return'query';case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xee)]:return _0x43ad2c(0xa7);case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xae)]:return _0x43ad2c(0xa1);case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xdb)]:case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xf3)]:case decorator_1[_0x43ad2c(0xaa)][_0x43ad2c(0xdd)]:return _0x43ad2c(0xc9);default:return _0x43ad2c(0xb5);}}
|
|
1
|
+
'use strict';function a8_0x4535(_0x9998e7,_0x510afb){const _0x26d3e2=a8_0x26d3();return a8_0x4535=function(_0x45353c,_0x5a6eaa){_0x45353c=_0x45353c-0xc8;let _0x4241c5=_0x26d3e2[_0x45353c];return _0x4241c5;},a8_0x4535(_0x9998e7,_0x510afb);}const a8_0x3d36bc=a8_0x4535;(function(_0x1bf0c0,_0x36216c){const _0x3bcb0f=a8_0x4535,_0x3beb12=_0x1bf0c0();while(!![]){try{const _0x1c274f=-parseInt(_0x3bcb0f(0x113))/0x1+parseInt(_0x3bcb0f(0xe1))/0x2*(parseInt(_0x3bcb0f(0xf5))/0x3)+parseInt(_0x3bcb0f(0xd4))/0x4+-parseInt(_0x3bcb0f(0xe8))/0x5+-parseInt(_0x3bcb0f(0xfa))/0x6*(-parseInt(_0x3bcb0f(0x115))/0x7)+-parseInt(_0x3bcb0f(0xcc))/0x8+-parseInt(_0x3bcb0f(0xd3))/0x9*(parseInt(_0x3bcb0f(0x100))/0xa);if(_0x1c274f===_0x36216c)break;else _0x3beb12['push'](_0x3beb12['shift']());}catch(_0x4af3e6){_0x3beb12['push'](_0x3beb12['shift']());}}}(a8_0x26d3,0xddf22));Object['defineProperty'](exports,a8_0x3d36bc(0x10f),{'value':!![]}),exports[a8_0x3d36bc(0xe5)]=void 0x0;const lodash_1=require(a8_0x3d36bc(0xec)),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0x3d36bc(0xfb)),decorator_2=require(a8_0x3d36bc(0xfb)),decorator_3=require(a8_0x3d36bc(0xfb)),action_1=require(a8_0x3d36bc(0x122));function getRoutes(_0x475afc={'prefix':'/','module':![]}){const _0x26f23d=a8_0x3d36bc;var _0x5286be,_0x2dec09;const _0x5978ef=(0x0,decorator_3[_0x26f23d(0xda)])(action_1[_0x26f23d(0x123)]),_0x40897f={},_0x22e57b=Array[_0x26f23d(0xf3)](_0x475afc[_0x26f23d(0xf1)]||[])?_0x475afc[_0x26f23d(0xf1)]||[]:[_0x475afc[_0x26f23d(0xf1)]];_0x3e1747:for(const _0x3d72ec of _0x5978ef){let _0x20416a=(0x0,decorator_3['getClassMetadata'])(action_1[_0x26f23d(0x123)],_0x3d72ec),_0x2b4a5d=(0x0,decorator_3[_0x26f23d(0xcd)])(action_1[_0x26f23d(0xfc)],_0x3d72ec);if(_0x20416a&&_0x2b4a5d){let _0x4ce3eb=_0x20416a[_0x26f23d(0x112)],_0x47208a={};if(_0x475afc[_0x26f23d(0xca)]&&(0x0,lodash_1[_0x26f23d(0xcb)])(_0x20416a,_0x26f23d(0xca),![])!=_0x475afc[_0x26f23d(0xca)])continue _0x3e1747;else{if(_0x475afc['module']===![]&&!!(0x0,lodash_1[_0x26f23d(0xcb)])(_0x20416a,_0x26f23d(0xca),null))continue _0x3e1747;}if(_0x475afc[_0x26f23d(0x112)]&&!_0x4ce3eb[_0x26f23d(0xc8)](_0x475afc[_0x26f23d(0x112)]))continue _0x3e1747;_0x4ce3eb!=='/'?(_0x47208a[_0x26f23d(0x106)]=(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a[_0x26f23d(0x10c)]['tagName'])||(/^\//['test'](_0x4ce3eb)?_0x4ce3eb['split']('/')[0x1]:_0x4ce3eb),_0x47208a[_0x26f23d(0xd5)]=(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a['routerOptions'][_0x26f23d(0xd5)])||_0x47208a[_0x26f23d(0x106)],_0x47208a[_0x26f23d(0x121)]=[]):(_0x47208a[_0x26f23d(0x106)]=(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a[_0x26f23d(0x10c)]['tagName'])||'default',_0x47208a[_0x26f23d(0xd5)]=(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a[_0x26f23d(0x10c)][_0x26f23d(0xd5)])||'',_0x47208a[_0x26f23d(0x121)]=[]);_0x475afc[_0x26f23d(0xeb)]&&(_0x47208a['filepath']=_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a[_0x26f23d(0xeb)]);(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a['pprefix'])&&(_0x47208a[_0x26f23d(0x112)]=_0x20416a['pprefix']);(_0x20416a===null||_0x20416a===void 0x0?void 0x0:_0x20416a[_0x26f23d(0xca)])&&(_0x47208a[_0x26f23d(0xca)]=_0x20416a[_0x26f23d(0xca)]);let _0x522468=(0x0,decorator_3[_0x26f23d(0xcd)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x3d72ec)||{};if(typeof _0x2b4a5d[Symbol['iterator']]===_0x26f23d(0xfd))for(let _0x5aaa38 of _0x2b4a5d){let _0x19f61b={};_0x19f61b['method']=_0x5aaa38[_0x26f23d(0x104)],_0x19f61b[_0x26f23d(0x116)]=(_0x4ce3eb+_0x5aaa38[_0x26f23d(0xde)])['replace'](/\/{1,}/,'/'),_0x19f61b[_0x26f23d(0x106)]=(_0x5aaa38===null||_0x5aaa38===void 0x0?void 0x0:_0x5aaa38[_0x26f23d(0xd6)])||_0x47208a['summary']||_0x26f23d(0xdd),_0x19f61b['description']=(_0x5aaa38===null||_0x5aaa38===void 0x0?void 0x0:_0x5aaa38[_0x26f23d(0xd5)])||'',_0x19f61b[_0x26f23d(0x103)]=[];if(!(0x0,lodash_1['startsWith'])(_0x19f61b[_0x26f23d(0x116)],_0x26f23d(0xf8))&&!(0x0,lodash_1[_0x26f23d(0xc8)])(_0x19f61b[_0x26f23d(0x116)],_0x26f23d(0x118))&&_0x22e57b[_0x26f23d(0xed)](_0x19f61b['route'])===-0x1){if(!(_0x475afc===null||_0x475afc===void 0x0?void 0x0:_0x475afc[_0x26f23d(0xd9)])){let _0x19e9ce=(0x0,decorator_3[_0x26f23d(0xd7)])(new _0x3d72ec(),_0x5aaa38[_0x26f23d(0xc9)]);for(const _0x442dd5 in _0x19e9ce){let _0x2f6336=(_0x5286be=_0x522468[_0x5aaa38['method']])===null||_0x5286be===void 0x0?void 0x0:_0x5286be['find'](_0x425aa5=>_0x425aa5[_0x26f23d(0xfe)]==_0x442dd5&&_0x425aa5[_0x26f23d(0x114)]===decorator_2[_0x26f23d(0x11d)]&&(_0x425aa5===null||_0x425aa5===void 0x0?void 0x0:_0x425aa5[_0x26f23d(0x107)]));if(_0x2f6336===null||_0x2f6336===void 0x0?void 0x0:_0x2f6336[_0x26f23d(0x107)]){let _0x58ec43=convertTypeToString(_0x2f6336[_0x26f23d(0x107)][_0x26f23d(0xcf)]||0x0);if([_0x26f23d(0xdf),'body'][_0x26f23d(0xed)](_0x58ec43)!=-0x1&&_0x2f6336[_0x26f23d(0x107)]['propertyData'][_0x26f23d(0xed)](':')==-0x1&&!_0x19f61b[_0x26f23d(0x103)]['find'](_0x5bd8ff=>_0x5bd8ff[_0x26f23d(0x114)]==_0x2f6336[_0x26f23d(0x107)][_0x26f23d(0x109)]))_0x19f61b[_0x26f23d(0x103)][_0x26f23d(0xd2)]({'key':_0x2f6336[_0x26f23d(0x107)][_0x26f23d(0x109)],'title':_0x2f6336[_0x26f23d(0x107)][_0x26f23d(0x109)],'type':convertSchemaType(_0x19e9ce[_0x2f6336[_0x26f23d(0xfe)]][_0x26f23d(0x120)]),'required':![],'default':'','desc':''});else{if(_0x58ec43==_0x26f23d(0x11e)){let _0x37de81=((_0x2dec09=_0x2f6336===null||_0x2f6336===void 0x0?void 0x0:_0x2f6336[_0x26f23d(0x107)])===null||_0x2dec09===void 0x0?void 0x0:_0x2dec09[_0x26f23d(0x109)])||_0x26f23d(0x11e);_0x37de81['indexOf'](':')==-0x1&&!_0x19f61b[_0x26f23d(0x103)]['find'](_0x29ab52=>_0x29ab52[_0x26f23d(0x114)]==_0x37de81&&_0x29ab52[_0x26f23d(0xcf)]=='file')&&_0x19f61b[_0x26f23d(0x103)][_0x26f23d(0xd2)]({'key':_0x37de81,'title':_0x26f23d(0xe3)+_0x37de81,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5ef911=(0x0,decorator_3[_0x26f23d(0xf2)])(validator_1[_0x26f23d(0xe4)],_0x19e9ce[_0x442dd5]);_0x5ef911&&_0x19f61b['request'][_0x26f23d(0xd2)](...getJoiRequest(_0x5ef911));}}}_0x47208a[_0x26f23d(0x121)]['push'](_0x19f61b);}}if(_0x47208a[_0x26f23d(0x121)]['length']>0x0){let _0x255ac0=_0x40897f[_0x4ce3eb];_0x255ac0?(_0x255ac0[_0x26f23d(0x106)]!=_0x47208a[_0x26f23d(0x106)]&&(_0x255ac0[_0x26f23d(0x106)]=_0x255ac0['summary']+','+_0x47208a[_0x26f23d(0x106)]),_0x255ac0['description']!=_0x47208a[_0x26f23d(0xd5)]&&(_0x255ac0[_0x26f23d(0xd5)]=_0x255ac0['description']+','+_0x47208a[_0x26f23d(0xd5)]),_0x255ac0[_0x26f23d(0x121)]=_0x255ac0[_0x26f23d(0x121)][_0x26f23d(0xf4)](_0x47208a['routes']),_0x40897f[_0x4ce3eb]=_0x255ac0):_0x40897f[_0x4ce3eb]=_0x47208a;}}}return _0x40897f;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x355e76){const _0x8220b6=a8_0x3d36bc,_0x4545f3=[];for(let _0x5ec621 in _0x355e76){const _0x1d0b5b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xe9cbc4=typeof _0x355e76[_0x5ec621][_0x8220b6(0x101)]==_0x8220b6(0xfd)?_0x355e76[_0x5ec621][_0x8220b6(0x101)]():_0x355e76[_0x5ec621];_0x1d0b5b['key']=_0x5ec621,_0x1d0b5b[_0x8220b6(0xcf)]=_0xe9cbc4[_0x8220b6(0xcf)],_0x1d0b5b[_0x8220b6(0xe9)]=(0x0,lodash_1[_0x8220b6(0xcb)])(_0xe9cbc4,_0x8220b6(0x117),_0x5ec621),_0x1d0b5b['default']=(0x0,lodash_1['get'])(_0xe9cbc4,_0x8220b6(0xf7),''),_0x1d0b5b['required']=(0x0,lodash_1[_0x8220b6(0xcb)])(_0xe9cbc4,_0x8220b6(0xe6),'')==_0x8220b6(0xff),_0x1d0b5b[_0x8220b6(0xd5)]=(0x0,lodash_1[_0x8220b6(0xcb)])(_0xe9cbc4,'flags.description','');if(_0xe9cbc4[_0x8220b6(0xcf)]==_0x8220b6(0xef))_0x1d0b5b[_0x8220b6(0xf6)]=getJoiRequest(_0xe9cbc4[_0x8220b6(0xe2)]);else _0xe9cbc4[_0x8220b6(0xcf)]==_0x8220b6(0x110)&&_0xe9cbc4[_0x8220b6(0x119)]&&Array[_0x8220b6(0xf3)](_0xe9cbc4['items'])&&_0xe9cbc4[_0x8220b6(0x119)][0x0]&&console[_0x8220b6(0xe7)](_0x5ec621+_0x8220b6(0xea),_0xe9cbc4);_0xe9cbc4['allow']&&Array['isArray'](_0xe9cbc4[_0x8220b6(0xf9)])&&_0xe9cbc4[_0x8220b6(0xf9)][_0x8220b6(0x10d)]>0x0&&(_0x1d0b5b[_0x8220b6(0xd5)]=_0x8220b6(0xf0)+_0xe9cbc4[_0x8220b6(0xf9)]['join'](',')+'];'+_0x1d0b5b[_0x8220b6(0xd5)]);if(_0x1d0b5b[_0x8220b6(0x114)]&&_0x1d0b5b[_0x8220b6(0xcf)]){const _0x224664={};for(const _0x17f693 of _0xe9cbc4[_0x8220b6(0x11f)]||[]){if(_0x17f693['name']===_0x8220b6(0x10b)&&_0x17f693['args'])_0x224664[_0x8220b6(0x10b)]=_0x17f693[_0x8220b6(0x10e)][_0x8220b6(0xd1)];else _0x17f693[_0x8220b6(0x120)]===_0x8220b6(0xd8)&&(_0x224664[_0x8220b6(0xd8)]=_0x17f693[_0x8220b6(0x10e)]['limit']);}_0x1d0b5b[_0x8220b6(0x11f)]=_0x224664;}_0x1d0b5b[_0x8220b6(0x114)]&&_0x1d0b5b['title']&&_0x4545f3[_0x8220b6(0xd2)](_0x1d0b5b);}return _0x4545f3;}function convertSchemaType(_0x1951d5){const _0x368232=a8_0x3d36bc;switch(_0x1951d5){case _0x368232(0x11a):return _0x368232(0xef);case _0x368232(0x105):return _0x368232(0x11c);case _0x368232(0x108):return'number';case _0x368232(0xe0):return _0x368232(0x10a);case _0x368232(0xee):return _0x368232(0x11e);default:return'string';}}function a8_0x26d3(){const _0x41d2d1=['method','module','get','8027672VCsugk','getClassMetadata','header','type','HEADERS','limit','push','1034244PLdlVJ','7059336FVHavX','description','routerName','getMethodParamTypes','max','noreq','listModule','QUERY','FIELDS','default','path','query','String','386OqzkFQ','keys','文件上传-','RULES_KEY','getRoutes','flags.presence','log','5465065qElUXY','title','-array','filepath','lodash','indexOf','File','object','只允许:[','filter','getClassExtendedMetadata','isArray','concat','27549itZbpO','children','flags.default','static/apitest','allow','5535636ABSLGL','@midwayjs/decorator','ACTION_ROUTE_KEY','function','parameterIndex','required','50yVsUwS','describe','BODY','request','requestMethod','Boolean','summary','metadata','Number','propertyData','string','min','routerOptions','length','args','__esModule','array','RouteParamTypes','prefix','879617dFIjcU','key','7NIhuwW','route','flags.label','/static/apitest','items','Object','FILESTREAM','boolean','WEB_ROUTER_PARAM_KEY','file','rules','name','routes','../types/action','ACTION_KEY','PARAM','startsWith'];a8_0x26d3=function(){return _0x41d2d1;};return a8_0x26d3();}function convertTypeToString(_0x5aec0c){const _0x3227b5=a8_0x3d36bc;switch(_0x5aec0c){case decorator_1[_0x3227b5(0x111)][_0x3227b5(0xd0)]:return _0x3227b5(0xce);case decorator_1[_0x3227b5(0x111)][_0x3227b5(0xdb)]:return _0x3227b5(0xdf);case decorator_1[_0x3227b5(0x111)][_0x3227b5(0x124)]:return _0x3227b5(0xde);case decorator_1[_0x3227b5(0x111)][_0x3227b5(0x102)]:return'body';case decorator_1[_0x3227b5(0x111)][_0x3227b5(0xdc)]:case decorator_1['RouteParamTypes']['FILESSTREAM']:case decorator_1[_0x3227b5(0x111)][_0x3227b5(0x11b)]:return'file';default:return _0x3227b5(0xce);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x472e2e=a9_0x25e1;(function(_0x4b475a,_0x4320bb){var _0x36c3b7=a9_0x25e1,_0x84fda4=_0x4b475a();while(!![]){try{var _0x33c618=parseInt(_0x36c3b7(0x18e))/0x1+parseInt(_0x36c3b7(0x19b))/0x2+parseInt(_0x36c3b7(0x177))/0x3*(-parseInt(_0x36c3b7(0x186))/0x4)+parseInt(_0x36c3b7(0x163))/0x5*(parseInt(_0x36c3b7(0x181))/0x6)+parseInt(_0x36c3b7(0x19a))/0x7+-parseInt(_0x36c3b7(0x17a))/0x8+parseInt(_0x36c3b7(0x17d))/0x9*(-parseInt(_0x36c3b7(0x16b))/0xa);if(_0x33c618===_0x4320bb)break;else _0x84fda4['push'](_0x84fda4['shift']());}catch(_0x2a3950){_0x84fda4['push'](_0x84fda4['shift']());}}}(a9_0x225b,0xb63a7));var __createBinding=this&&this[a9_0x472e2e(0x169)]||(Object[a9_0x472e2e(0x16c)]?function(_0x5396f2,_0x10e247,_0x1c8401,_0x5f937d){var _0x2894c6=a9_0x472e2e;if(_0x5f937d===undefined)_0x5f937d=_0x1c8401;var _0x3f32f9=Object[_0x2894c6(0x193)](_0x10e247,_0x1c8401);(!_0x3f32f9||(_0x2894c6(0x191)in _0x3f32f9?!_0x10e247[_0x2894c6(0x180)]:_0x3f32f9[_0x2894c6(0x1a0)]||_0x3f32f9[_0x2894c6(0x195)]))&&(_0x3f32f9={'enumerable':!![],'get':function(){return _0x10e247[_0x1c8401];}}),Object['defineProperty'](_0x5396f2,_0x5f937d,_0x3f32f9);}:function(_0x4a9da1,_0x5e937a,_0x4f4451,_0x71a1a3){if(_0x71a1a3===undefined)_0x71a1a3=_0x4f4451;_0x4a9da1[_0x71a1a3]=_0x5e937a[_0x4f4451];}),__exportStar=this&&this[a9_0x472e2e(0x173)]||function(_0x24fefd,_0x37cc1c){var _0x36f297=a9_0x472e2e;for(var _0x2a36fe in _0x24fefd)if(_0x2a36fe!==_0x36f297(0x17f)&&!Object[_0x36f297(0x166)][_0x36f297(0x19e)][_0x36f297(0x185)](_0x37cc1c,_0x2a36fe))__createBinding(_0x37cc1c,_0x24fefd,_0x2a36fe);};Object['defineProperty'](exports,a9_0x472e2e(0x180),{'value':!![]}),exports[a9_0x472e2e(0x183)]=exports[a9_0x472e2e(0x188)]=exports[a9_0x472e2e(0x19c)]=exports[a9_0x472e2e(0x162)]=exports['Provide']=exports['Logger']=exports[a9_0x472e2e(0x197)]=exports[a9_0x472e2e(0x16d)]=exports['Init']=exports[a9_0x472e2e(0x17c)]=exports[a9_0x472e2e(0x179)]=exports['Param']=exports['Body']=exports[a9_0x472e2e(0x18d)]=exports['Files']=exports[a9_0x472e2e(0x18c)]=exports[a9_0x472e2e(0x164)]=exports[a9_0x472e2e(0x170)]=exports[a9_0x472e2e(0x184)]=exports[a9_0x472e2e(0x18f)]=exports[a9_0x472e2e(0x168)]=exports[a9_0x472e2e(0x190)]=exports[a9_0x472e2e(0x176)]=exports[a9_0x472e2e(0x19d)]=exports[a9_0x472e2e(0x17b)]=exports['getRoutes']=exports[a9_0x472e2e(0x18a)]=exports[a9_0x472e2e(0x198)]=exports[a9_0x472e2e(0x194)]=void 0x0;const getAppsConfig_1=require(a9_0x472e2e(0x175));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x183),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x472e2e(0x17e)),exports),__exportStar(require(a9_0x472e2e(0x174)),exports);var ActionApi_1=require(a9_0x472e2e(0x1a1));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x194),{'enumerable':!![],'get':function(){var _0x5b221=a9_0x472e2e;return ActionApi_1[_0x5b221(0x194)];}});var Action_1=require(a9_0x472e2e(0x178));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x198),{'enumerable':!![],'get':function(){var _0x5ed7cd=a9_0x472e2e;return Action_1[_0x5ed7cd(0x198)];}});var ActionApitest_1=require(a9_0x472e2e(0x187));Object[a9_0x472e2e(0x172)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x11d702=a9_0x472e2e;return ActionApitest_1[_0x11d702(0x18a)];}});var getRoutes_1=require(a9_0x472e2e(0x167));Object['defineProperty'](exports,a9_0x472e2e(0x16e),{'enumerable':!![],'get':function(){var _0x1ddb22=a9_0x472e2e;return getRoutes_1[_0x1ddb22(0x16e)];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a9_0x472e2e(0x17b),{'enumerable':!![],'get':function(){var _0x3313fd=a9_0x472e2e;return ApiError_1[_0x3313fd(0x17b)];}});var task_1=require('@midwayjs/task');Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x19d),{'enumerable':!![],'get':function(){var _0x2971ac=a9_0x472e2e;return task_1[_0x2971ac(0x19d)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x176),{'enumerable':!![],'get':function(){var _0x3d6b5c=a9_0x472e2e;return cache_1[_0x3d6b5c(0x176)];}});var event_1=require(a9_0x472e2e(0x192));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x190),{'enumerable':!![],'get':function(){var _0x22c7be=a9_0x472e2e;return event_1[_0x22c7be(0x190)];}});var ApiService_1=require(a9_0x472e2e(0x171));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x168),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});function a9_0x25e1(_0x590ed2,_0x349512){var _0x225b82=a9_0x225b();return a9_0x25e1=function(_0x25e1ce,_0x2e57af){_0x25e1ce=_0x25e1ce-0x162;var _0x2ba215=_0x225b82[_0x25e1ce];return _0x2ba215;},a9_0x25e1(_0x590ed2,_0x349512);}var ExcelService_1=require(a9_0x472e2e(0x16a));Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x18f),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x472e2e(0x196));Object[a9_0x472e2e(0x172)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x170),{'enumerable':!![],'get':function(){var _0x464c27=a9_0x472e2e;return validator_1[_0x464c27(0x170)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,a9_0x472e2e(0x164),{'enumerable':!![],'get':function(){var _0x3688f9=a9_0x472e2e;return configuration_1[_0x3688f9(0x189)];}});var decorator_1=require('@midwayjs/decorator');function a9_0x225b(){var _0x44f9f6=['EventService','get','@anncic-api/event','getOwnPropertyDescriptor','Api','configurable','@anncic-api/validator','Config','Action','Body','4788210EahBqh','1774504wTsxjg','Scope','QueueService','hasOwnProperty','Param','writable','./decorator/ActionApi','Inject','2960LpGCqt','Configuration','Init','prototype','./helper/getRoutes','ApiService','__createBinding','./service/ExcelService','1622410WWnHEt','create','App','getRoutes','@midwayjs/decorator','ValidatorService','./service/ApiService','defineProperty','__exportStar','./service/ApitestService','./helper/getAppsConfig','CacheService','369Rxmxmc','./decorator/Action','Query','11145752RWbPZT','ApiError','Headers','36nSZYUO','./types/common','default','__esModule','14796bAoDCY','Files','getAppsConfig','ValidatorError','call','10252JEIDPX','./decorator/ActionApitest','ScopeEnum','CustomConfiguration','Apitest','Provide','File','Fields','72685tBiwNv','ExcelService'];a9_0x225b=function(){return _0x44f9f6;};return a9_0x225b();}Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x18c),{'enumerable':!![],'get':function(){var _0x3c68e7=a9_0x472e2e;return decorator_1[_0x3c68e7(0x18c)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x182),{'enumerable':!![],'get':function(){var _0x37d4ed=a9_0x472e2e;return decorator_1[_0x37d4ed(0x182)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x18d),{'enumerable':!![],'get':function(){var _0x4ce87f=a9_0x472e2e;return decorator_1[_0x4ce87f(0x18d)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x199),{'enumerable':!![],'get':function(){var _0xae76e7=a9_0x472e2e;return decorator_1[_0xae76e7(0x199)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x19f),{'enumerable':!![],'get':function(){var _0x3b4276=a9_0x472e2e;return decorator_1[_0x3b4276(0x19f)];}}),Object[a9_0x472e2e(0x172)](exports,'Query',{'enumerable':!![],'get':function(){var _0x2e7e07=a9_0x472e2e;return decorator_1[_0x2e7e07(0x179)];}}),Object['defineProperty'](exports,a9_0x472e2e(0x17c),{'enumerable':!![],'get':function(){var _0x68c1c6=a9_0x472e2e;return decorator_1[_0x68c1c6(0x17c)];}}),Object[a9_0x472e2e(0x172)](exports,'Init',{'enumerable':!![],'get':function(){var _0xc77093=a9_0x472e2e;return decorator_1[_0xc77093(0x165)];}});var decorator_2=require(a9_0x472e2e(0x16f));Object[a9_0x472e2e(0x172)](exports,'App',{'enumerable':!![],'get':function(){var _0x55ab12=a9_0x472e2e;return decorator_2[_0x55ab12(0x16d)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x197),{'enumerable':!![],'get':function(){var _0x2bb74e=a9_0x472e2e;return decorator_2[_0x2bb74e(0x197)];}}),Object[a9_0x472e2e(0x172)](exports,'Logger',{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x18b),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x162),{'enumerable':!![],'get':function(){var _0x10d74f=a9_0x472e2e;return decorator_2[_0x10d74f(0x162)];}}),Object[a9_0x472e2e(0x172)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x4db1b6=a9_0x472e2e;return decorator_2[_0x4db1b6(0x19c)];}}),Object[a9_0x472e2e(0x172)](exports,a9_0x472e2e(0x188),{'enumerable':!![],'get':function(){var _0x28c345=a9_0x472e2e;return decorator_2[_0x28c345(0x188)];}}),global[a9_0x472e2e(0x183)]=getAppsConfig_1[a9_0x472e2e(0x183)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x184b52=a10_0x383d;(function(_0x27beef,_0x2afb26){var _0x49f589=a10_0x383d,_0x526221=_0x27beef();while(!![]){try{var _0x369536=-parseInt(_0x49f589(0x169))/0x1*(-parseInt(_0x49f589(0x16a))/0x2)+parseInt(_0x49f589(0x176))/0x3*(parseInt(_0x49f589(0x149))/0x4)+-parseInt(_0x49f589(0x17b))/0x5+parseInt(_0x49f589(0x179))/0x6+-parseInt(_0x49f589(0x15b))/0x7*(-parseInt(_0x49f589(0x177))/0x8)+-parseInt(_0x49f589(0x161))/0x9+parseInt(_0x49f589(0x14b))/0xa*(-parseInt(_0x49f589(0x146))/0xb);if(_0x369536===_0x2afb26)break;else _0x526221['push'](_0x526221['shift']());}catch(_0x5f33b0){_0x526221['push'](_0x526221['shift']());}}}(a10_0x13d4,0x769da));var __decorate=this&&this[a10_0x184b52(0x17c)]||function(_0x2bb348,_0x377c48,_0x415571,_0xba184){var _0x101f72=a10_0x184b52,_0x33abf0=arguments[_0x101f72(0x14f)],_0x5bfb57=_0x33abf0<0x3?_0x377c48:_0xba184===null?_0xba184=Object['getOwnPropertyDescriptor'](_0x377c48,_0x415571):_0xba184,_0x1a20c2;if(typeof Reflect===_0x101f72(0x171)&&typeof Reflect[_0x101f72(0x15e)]===_0x101f72(0x155))_0x5bfb57=Reflect['decorate'](_0x2bb348,_0x377c48,_0x415571,_0xba184);else{for(var _0x49c169=_0x2bb348['length']-0x1;_0x49c169>=0x0;_0x49c169--)if(_0x1a20c2=_0x2bb348[_0x49c169])_0x5bfb57=(_0x33abf0<0x3?_0x1a20c2(_0x5bfb57):_0x33abf0>0x3?_0x1a20c2(_0x377c48,_0x415571,_0x5bfb57):_0x1a20c2(_0x377c48,_0x415571))||_0x5bfb57;}return _0x33abf0>0x3&&_0x5bfb57&&Object[_0x101f72(0x154)](_0x377c48,_0x415571,_0x5bfb57),_0x5bfb57;},__metadata=this&&this[a10_0x184b52(0x148)]||function(_0x38827d,_0x34655f){var _0x540b4c=a10_0x184b52;if(typeof Reflect==='object'&&typeof Reflect[_0x540b4c(0x164)]===_0x540b4c(0x155))return Reflect[_0x540b4c(0x164)](_0x38827d,_0x34655f);};Object[a10_0x184b52(0x154)](exports,a10_0x184b52(0x170),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require(a10_0x184b52(0x153)),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x184b52(0x17e));function a10_0x13d4(){var _0x130092=['ScopeEnum','sort','22267BXqLFg','logintime','Provide','decorate','toString','checksign','1594341ZuKRMF','getsign','signature','metadata','HEADERS_SIGNATURE','checkcode','config','map','19gBcJyW','5982NlxuSH','token','secret','MD5','TIMEOUT','ApiService','__esModule','object','Scope','缺少头信息:signature','join','entries','6CUKPfT','1000jQzLbR','undefined','3977328nAkanw','toLowerCase','3721770lXhayx','__decorate','Singleton','../exception/ApiError','secret=','anncicapi','484297nEhTei','devices','__metadata','1548616KnMXyr','device','110BLIwVK','HEADERS_CHECKCODE','requesttime','now','length','HEADERS_LACK','ApiError','fromEntries','crypto-js','defineProperty','function','push','缺少头信息:','getcheck'];a10_0x13d4=function(){return _0x130092;};return a10_0x13d4();}let ApiService=class ApiService{['password'](_0x226de9){var _0x5150c9=a10_0x184b52,_0x9bc2c8;return _0x226de9?(0x0,crypto_js_1['MD5'])(_0x226de9+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x5150c9(0x16d)])(_0x226de9)[_0x5150c9(0x15f)]()+((_0x9bc2c8=this[_0x5150c9(0x167)])===null||_0x9bc2c8===void 0x0?void 0x0:_0x9bc2c8['password']))[_0x5150c9(0x15f)]())['toString']():'';}[a10_0x184b52(0x158)](_0x4bda22,_0x160c5c,_0x4bc430=Date[a10_0x184b52(0x14e)]()){var _0x33514d=a10_0x184b52;return{'Token':_0x4bda22,'Logintime':_0x4bc430,'Checkcode':this[_0x33514d(0x166)](_0x4bda22,_0x160c5c,_0x4bc430)};}['getsign'](_0x392667={}){var _0x26c419=a10_0x184b52;const _0x3f2244=[],_0x647c99=Object[_0x26c419(0x152)](Object[_0x26c419(0x175)](_0x392667)[_0x26c419(0x168)](_0x2da091=>[_0x2da091[0x0][_0x26c419(0x17a)](),_0x2da091[0x1]]));for(let _0x81c46d of['device',_0x26c419(0x14d),'token','logintime',_0x26c419(0x166)]){if(typeof _0x647c99[_0x81c46d]==_0x26c419(0x178))throw new AnnError(ApiError_1[_0x26c419(0x151)][_0x26c419(0x150)],{'message':_0x26c419(0x157)+_0x81c46d});_0x3f2244[_0x26c419(0x156)](_0x81c46d+'='+_0x647c99[_0x81c46d]);}if(Math['abs'](_0x647c99['requesttime'])-Date[_0x26c419(0x14e)]()>this[_0x26c419(0x167)]['timeout'])throw new AnnError(ApiError_1[_0x26c419(0x151)][_0x26c419(0x16e)]);if(!this['config'][_0x26c419(0x147)][_0x647c99[_0x26c419(0x14a)]]||!this[_0x26c419(0x167)]['devices'][_0x647c99['device']]['secret']||!this[_0x26c419(0x167)][_0x26c419(0x147)][_0x647c99[_0x26c419(0x14a)]]['checkcode'])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x647c99[_0x26c419(0x16b)]&&_0x647c99[_0x26c419(0x166)]!=this[_0x26c419(0x166)](_0x647c99['token'],_0x647c99['device'],_0x647c99[_0x26c419(0x15c)]))throw new AnnError(ApiError_1[_0x26c419(0x151)][_0x26c419(0x14c)]);return _0x3f2244[_0x26c419(0x156)](_0x26c419(0x17f)+this[_0x26c419(0x167)][_0x26c419(0x147)][_0x647c99[_0x26c419(0x14a)]][_0x26c419(0x16c)]),(0x0,crypto_js_1['MD5'])(_0x3f2244[_0x26c419(0x15a)]()[_0x26c419(0x174)](''))[_0x26c419(0x15f)]();}[a10_0x184b52(0x166)](_0x1349e8,_0x52d82d,_0x3d7bb8=Date['now']()){var _0x1e817c=a10_0x184b52,_0x3c5d6b,_0x30af73,_0x40c2d8;if(!((_0x3c5d6b=this[_0x1e817c(0x167)])===null||_0x3c5d6b===void 0x0?void 0x0:_0x3c5d6b[_0x1e817c(0x147)][_0x52d82d])||!((_0x40c2d8=(_0x30af73=this[_0x1e817c(0x167)])===null||_0x30af73===void 0x0?void 0x0:_0x30af73[_0x1e817c(0x147)][_0x52d82d])===null||_0x40c2d8===void 0x0?void 0x0:_0x40c2d8[_0x1e817c(0x166)]))throw new AnnError(ApiError_1[_0x1e817c(0x151)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x1e817c(0x16d)])(_0x1349e8+(0x0,crypto_js_1['MD5'])(_0x3d7bb8+this[_0x1e817c(0x167)]['devices'][_0x52d82d]['checkcode'])[_0x1e817c(0x15f)]())[_0x1e817c(0x15f)]();}[a10_0x184b52(0x160)](_0x2a5327={}){var _0x161c32=a10_0x184b52;const _0xf0313b=Object[_0x161c32(0x152)](Object['entries'](_0x2a5327)[_0x161c32(0x168)](_0x3698f0=>[_0x3698f0[0x0]['toLowerCase'](),_0x3698f0[0x1]]));if(!(_0xf0313b===null||_0xf0313b===void 0x0?void 0x0:_0xf0313b['signature']))throw new AnnError(ApiError_1[_0x161c32(0x151)]['HEADERS_LACK'],{'message':_0x161c32(0x173)});if((_0xf0313b===null||_0xf0313b===void 0x0?void 0x0:_0xf0313b[_0x161c32(0x163)])!=this[_0x161c32(0x162)](_0xf0313b))throw new AnnError(ApiError_1[_0x161c32(0x151)][_0x161c32(0x165)]);return!![];}};function a10_0x383d(_0x82b252,_0x1228f9){var _0x13d428=a10_0x13d4();return a10_0x383d=function(_0x383d07,_0x173c73){_0x383d07=_0x383d07-0x146;var _0x16e6c3=_0x13d428[_0x383d07];return _0x16e6c3;},a10_0x383d(_0x82b252,_0x1228f9);}__decorate([(0x0,decorator_1['Config'])(a10_0x184b52(0x180)),__metadata('design:type',Object)],ApiService['prototype'],a10_0x184b52(0x167),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x184b52(0x15d)])(),(0x0,decorator_1[a10_0x184b52(0x172)])(decorator_1[a10_0x184b52(0x159)][a10_0x184b52(0x17d)])],ApiService),exports[a10_0x184b52(0x16f)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x1478bf=a11_0x18e3;function a11_0x5e80(){const _0x4afc43=['Provide','@midwayjs/decorator','1908514roibCT','push','object','join','public,\x20max-age=604800','apidoc','metadata','MidwayEnvironmentService','ScopeEnum','extname','/apitest-:module','routes','request','Get','decorate','design:returntype','content-type','design:paramtypes','/index.html','design:type','filepath','config','Singleton','@midwayjs/core','__param','method','Param','url','/apiteststatic/*','getOwnPropertyDescriptor','/apiteststatic/','Scope','Inject','Request','__apiList__','anncicapi','1klzdKQ','application/javascript;\x20charset=utf-8','__decorate','7666857SRdWdu','../helper/getRoutes','apitestmodule','ApitestService','replace','ApitestStaticController','__esModule','devices','4504134QqgtZM','__metadata','length','12764igfRBY','set','apitest','../../public/index.html','ctx','summary','module','48384IOdQMH','6655000XgFwls','5oNQCxa','function','existsSync','Controller','288yFoBIy','isDevelopmentEnvironment','Environment','prototype','path','defineProperty','readFileSync','text/css;\x20charset=utf-8','Config','apiteststatic','1396941zPOJoH','.js','cache-control','stringify','apitesthtml'];a11_0x5e80=function(){return _0x4afc43;};return a11_0x5e80();}(function(_0x4b4bfe,_0x5be382){const _0x3c8598=a11_0x18e3,_0xdacdf9=_0x4b4bfe();while(!![]){try{const _0xf7f2f9=parseInt(_0x3c8598(0x11f))/0x1*(-parseInt(_0x3c8598(0xfb))/0x2)+-parseInt(_0x3c8598(0xea))/0x3*(-parseInt(_0x3c8598(0x12d))/0x4)+parseInt(_0x3c8598(0x136))/0x5*(parseInt(_0x3c8598(0x12a))/0x6)+parseInt(_0x3c8598(0xf4))/0x7+-parseInt(_0x3c8598(0x134))/0x8+parseInt(_0x3c8598(0x122))/0x9+-parseInt(_0x3c8598(0x135))/0xa;if(_0xf7f2f9===_0x5be382)break;else _0xdacdf9['push'](_0xdacdf9['shift']());}catch(_0x362073){_0xdacdf9['push'](_0xdacdf9['shift']());}}}(a11_0x5e80,0x75d60));var __decorate=this&&this[a11_0x1478bf(0x121)]||function(_0x541eb8,_0x16ef23,_0x4787a7,_0xbf8b3e){const _0x2abc72=a11_0x1478bf;var _0x2b2b86=arguments['length'],_0x21b57c=_0x2b2b86<0x3?_0x16ef23:_0xbf8b3e===null?_0xbf8b3e=Object[_0x2abc72(0x118)](_0x16ef23,_0x4787a7):_0xbf8b3e,_0x2ea87b;if(typeof Reflect===_0x2abc72(0xfd)&&typeof Reflect[_0x2abc72(0x109)]===_0x2abc72(0x137))_0x21b57c=Reflect[_0x2abc72(0x109)](_0x541eb8,_0x16ef23,_0x4787a7,_0xbf8b3e);else{for(var _0x34e862=_0x541eb8[_0x2abc72(0x12c)]-0x1;_0x34e862>=0x0;_0x34e862--)if(_0x2ea87b=_0x541eb8[_0x34e862])_0x21b57c=(_0x2b2b86<0x3?_0x2ea87b(_0x21b57c):_0x2b2b86>0x3?_0x2ea87b(_0x16ef23,_0x4787a7,_0x21b57c):_0x2ea87b(_0x16ef23,_0x4787a7))||_0x21b57c;}return _0x2b2b86>0x3&&_0x21b57c&&Object[_0x2abc72(0xef)](_0x16ef23,_0x4787a7,_0x21b57c),_0x21b57c;},__metadata=this&&this[a11_0x1478bf(0x12b)]||function(_0x531647,_0x547bc6){const _0x407d1e=a11_0x1478bf;if(typeof Reflect===_0x407d1e(0xfd)&&typeof Reflect[_0x407d1e(0x101)]==='function')return Reflect[_0x407d1e(0x101)](_0x531647,_0x547bc6);},__param=this&&this[a11_0x1478bf(0x113)]||function(_0xa1268f,_0x4b2856){return function(_0x16c8d4,_0x632ea4){_0x4b2856(_0x16c8d4,_0x632ea4,_0xa1268f);};};Object[a11_0x1478bf(0xef)](exports,a11_0x1478bf(0x128),{'value':!![]}),exports[a11_0x1478bf(0x127)]=exports[a11_0x1478bf(0x125)]=void 0x0;const path_1=require(a11_0x1478bf(0xee)),fs_1=require('fs'),core_1=require(a11_0x1478bf(0x112)),decorator_1=require(a11_0x1478bf(0xfa)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a11_0x1478bf(0x123));let ApitestService=class ApitestService{async[a11_0x1478bf(0x100)](_0x4a237f){const _0x28c85d=a11_0x1478bf,_0x27035b=(0x0,getRoutes_1['getRoutes'])(_0x4a237f),_0x3195a1=[];for(let _0x46ce33 in _0x27035b){for(let _0x21f004 in _0x27035b[_0x46ce33][_0x28c85d(0x106)]){let _0x4034c2=_0x27035b[_0x46ce33][_0x28c85d(0x106)][_0x21f004],_0x1adc2b=[];for(let _0x2dce9d in _0x4034c2[_0x28c85d(0x107)]){_0x1adc2b[_0x28c85d(0xfc)](_0x4034c2[_0x28c85d(0x107)][_0x2dce9d]);}_0x3195a1[_0x28c85d(0xfc)]({'title':_0x27035b[_0x46ce33][_0x28c85d(0x132)]+':'+_0x4034c2['summary'],'prefix':_0x27035b[_0x46ce33]['prefix'],'router':_0x4034c2['route'],'method':_0x4034c2[_0x28c85d(0x114)],'describe':_0x4034c2['description']||'','filepath':_0x27035b[_0x46ce33][_0x28c85d(0x10f)]||'','request':_0x1adc2b});}}const _0x342591=(0x0,path_1['join'])(__dirname,_0x28c85d(0x130));return(0x0,fs_1[_0x28c85d(0xf0)])(_0x342591,{'encoding':'utf-8'})[_0x28c85d(0x126)](/__res__/g,_0x28c85d(0x119))[_0x28c85d(0x126)](_0x28c85d(0x11d),JSON[_0x28c85d(0xf7)](_0x3195a1))[_0x28c85d(0x126)]('__devices__',JSON[_0x28c85d(0xf7)](this[_0x28c85d(0x110)][_0x28c85d(0x129)]));}};__decorate([(0x0,decorator_2[a11_0x1478bf(0xf2)])(a11_0x1478bf(0x11e)),__metadata(a11_0x1478bf(0x10e),Object)],ApitestService[a11_0x1478bf(0xed)],a11_0x1478bf(0x110),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x1478bf(0xf9)])('apitest'),(0x0,decorator_2[a11_0x1478bf(0x11a)])(decorator_2[a11_0x1478bf(0x103)][a11_0x1478bf(0x111)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x1478bf(0xf8)](){const _0x476010=a11_0x1478bf;if(this['apitest']){const _0x819450={'module':![]};return this[_0x476010(0xec)][_0x476010(0xeb)]()&&(_0x819450[_0x476010(0x10f)]=!![]),await this[_0x476010(0x125)][_0x476010(0x100)](_0x819450);}return'';}async[a11_0x1478bf(0x124)](_0x3f2918){const _0x2546a4=a11_0x1478bf;if(this[_0x2546a4(0x12f)]){const _0x54aef1={'module':_0x3f2918};return this[_0x2546a4(0xec)][_0x2546a4(0xeb)]()&&(_0x54aef1['filepath']=!![]),await this[_0x2546a4(0x125)][_0x2546a4(0x100)](_0x54aef1);}return'';}async[a11_0x1478bf(0xf3)](){const _0x2b3b63=a11_0x1478bf;if((0x0,path_1[_0x2b3b63(0x104)])(this[_0x2b3b63(0x131)][_0x2b3b63(0x107)][_0x2b3b63(0x116)])){var _0x1192e8=(0x0,path_1[_0x2b3b63(0xfe)])(__dirname,'../../public/'+this['ctx'][_0x2b3b63(0x107)]['url'][_0x2b3b63(0x126)]('/apiteststatic/','/'));if(_0x1192e8['substring'](_0x1192e8['length']-0xb)!=_0x2b3b63(0x10d)){this[_0x2b3b63(0x131)][_0x2b3b63(0x12e)](_0x2b3b63(0xf6),_0x2b3b63(0xff));if((0x0,path_1['extname'])(this[_0x2b3b63(0x131)]['request'][_0x2b3b63(0x116)])==_0x2b3b63(0xf5))this[_0x2b3b63(0x131)][_0x2b3b63(0x12e)]('content-type',_0x2b3b63(0x120));else(0x0,path_1[_0x2b3b63(0x104)])(this['ctx']['request'][_0x2b3b63(0x116)])=='.css'&&this['ctx'][_0x2b3b63(0x12e)](_0x2b3b63(0x10b),_0x2b3b63(0xf1));return(0x0,fs_1[_0x2b3b63(0x138)])(_0x1192e8)&&(0x0,fs_1['readFileSync'])(_0x1192e8,{'encoding':'utf-8'});}}return'';}};function a11_0x18e3(_0x5ad675,_0x216b99){const _0x5e8057=a11_0x5e80();return a11_0x18e3=function(_0x18e3a0,_0xd5abe6){_0x18e3a0=_0x18e3a0-0xea;let _0x1b0ec2=_0x5e8057[_0x18e3a0];return _0x1b0ec2;},a11_0x18e3(_0x5ad675,_0x216b99);}__decorate([(0x0,decorator_2[a11_0x1478bf(0x11b)])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0x131),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x1478bf(0x10e),core_1[a11_0x1478bf(0x102)])],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0xec),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x1478bf(0x10e),ApitestService)],ApitestStaticController[a11_0x1478bf(0xed)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a11_0x1478bf(0xf2)])('apitest'),__metadata(a11_0x1478bf(0x10e),Boolean)],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0x12f),void 0x0),__decorate([(0x0,decorator_2[a11_0x1478bf(0xf2)])(a11_0x1478bf(0x11e)),__metadata('design:type',Object)],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0x110),void 0x0),__decorate([(0x0,decorator_1[a11_0x1478bf(0x108)])('/apitest'),__metadata(a11_0x1478bf(0x10e),Function),__metadata(a11_0x1478bf(0x10c),[]),__metadata(a11_0x1478bf(0x10a),Promise)],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0xf8),null),__decorate([(0x0,decorator_1[a11_0x1478bf(0x108)])(a11_0x1478bf(0x105)),__param(0x0,(0x0,decorator_1[a11_0x1478bf(0x115)])(a11_0x1478bf(0x133))),__metadata(a11_0x1478bf(0x10e),Function),__metadata(a11_0x1478bf(0x10c),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x1478bf(0xed)],a11_0x1478bf(0x124),null),__decorate([(0x0,decorator_1[a11_0x1478bf(0x108)])(a11_0x1478bf(0x117)),__metadata(a11_0x1478bf(0x10e),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x1478bf(0xf3),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x1478bf(0x139)])('/'),(0x0,decorator_2[a11_0x1478bf(0x11a)])(decorator_2[a11_0x1478bf(0x103)][a11_0x1478bf(0x11c)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x478bd0=a12_0x4602;(function(_0x1d7e11,_0x2879c0){const _0x32c47a=a12_0x4602,_0x816c02=_0x1d7e11();while(!![]){try{const _0x47e0b1=parseInt(_0x32c47a(0x1de))/0x1+-parseInt(_0x32c47a(0x1ec))/0x2+parseInt(_0x32c47a(0x1b5))/0x3+parseInt(_0x32c47a(0x1b3))/0x4*(parseInt(_0x32c47a(0x1e8))/0x5)+parseInt(_0x32c47a(0x1da))/0x6+-parseInt(_0x32c47a(0x1b4))/0x7+-parseInt(_0x32c47a(0x1c6))/0x8*(parseInt(_0x32c47a(0x1cb))/0x9);if(_0x47e0b1===_0x2879c0)break;else _0x816c02['push'](_0x816c02['shift']());}catch(_0x4e3529){_0x816c02['push'](_0x816c02['shift']());}}}(a12_0xc25c,0x34de0));function a12_0x4602(_0x51ff88,_0x3f5489){const _0xc25cbf=a12_0xc25c();return a12_0x4602=function(_0x4602ee,_0x2b681c){_0x4602ee=_0x4602ee-0x1a8;let _0x104009=_0xc25cbf[_0x4602ee];return _0x104009;},a12_0x4602(_0x51ff88,_0x3f5489);}var __decorate=this&&this[a12_0x478bd0(0x1c3)]||function(_0x39d563,_0x19a919,_0x3131ae,_0x27ff1f){const _0x2d5311=a12_0x478bd0;var _0x419e24=arguments[_0x2d5311(0x1b0)],_0x3503fa=_0x419e24<0x3?_0x19a919:_0x27ff1f===null?_0x27ff1f=Object[_0x2d5311(0x1e3)](_0x19a919,_0x3131ae):_0x27ff1f,_0x10a775;if(typeof Reflect==='object'&&typeof Reflect[_0x2d5311(0x1c9)]===_0x2d5311(0x1cf))_0x3503fa=Reflect[_0x2d5311(0x1c9)](_0x39d563,_0x19a919,_0x3131ae,_0x27ff1f);else{for(var _0x132301=_0x39d563[_0x2d5311(0x1b0)]-0x1;_0x132301>=0x0;_0x132301--)if(_0x10a775=_0x39d563[_0x132301])_0x3503fa=(_0x419e24<0x3?_0x10a775(_0x3503fa):_0x419e24>0x3?_0x10a775(_0x19a919,_0x3131ae,_0x3503fa):_0x10a775(_0x19a919,_0x3131ae))||_0x3503fa;}return _0x419e24>0x3&&_0x3503fa&&Object['defineProperty'](_0x19a919,_0x3131ae,_0x3503fa),_0x3503fa;},__metadata=this&&this[a12_0x478bd0(0x1d6)]||function(_0x99f4b7,_0x1e94f0){const _0x512b24=a12_0x478bd0;if(typeof Reflect===_0x512b24(0x1b9)&&typeof Reflect[_0x512b24(0x1dc)]===_0x512b24(0x1cf))return Reflect['metadata'](_0x99f4b7,_0x1e94f0);};Object[a12_0x478bd0(0x1c5)](exports,a12_0x478bd0(0x1ce),{'value':!![]}),exports[a12_0x478bd0(0x1ba)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x478bd0(0x1b8)),decorator_1=require(a12_0x478bd0(0x1be));function a12_0xc25c(){const _0x126e54=['addWorksheet','1074222SeoCln','/public/xlsx','app','__esModule','function','keys','Workbook','substring','key','worksheets','frozen','__metadata','value','toString','trim','2209014FSiCtv','prototype','metadata','getAppDir','5074BvCdDk','xlsx','header','getCell','ScopeEnum','getOwnPropertyDescriptor','cellCount','handler','startsWith','readFile','105ZPtyMc','parse','Scope','writeFile','244378XqnuFg','export','Provide','public/xlsx','Sheet\x201','\x20is\x20read\x20fail','replace','.xlsx','log','isNumber','length','columns','design:type','63132jfoiXj','2343978paoICN','622851wYFBqZ','existsSync','random','koa-send','object','ExcelService','download','mkdirSync','addRow','@midwayjs/decorator','get','getWorksheet','Singleton','col','__decorate','getRow','defineProperty','16GkPVCN','endsWith','rowCount','decorate'];a12_0xc25c=function(){return _0x126e54;};return a12_0xc25c();}let ExcelService=class ExcelService{async[a12_0x478bd0(0x1e9)](_0x49ea2d,_0x1189bf,_0x100ac1=[0x0]){const _0x5b92a7=a12_0x478bd0;var _0x448a44,_0x20be1a;const _0x22f810=new exceljs[(_0x5b92a7(0x1d1))](),_0x3aafb5=[];let _0x1ea336=_0x49ea2d['replace'](/(\\|\/)/g,'/')[_0x5b92a7(0x1ac)](/\/{2,}/g,'/');!(_0x1ea336===null||_0x1ea336===void 0x0?void 0x0:_0x1ea336['startsWith']('/'))&&(_0x1ea336=this[_0x5b92a7(0x1cd)][_0x5b92a7(0x1dd)]()+'/'+_0x1ea336);try{await _0x22f810['xlsx'][_0x5b92a7(0x1e7)](_0x1ea336);}catch(_0x9c9a5d){return console[_0x5b92a7(0x1ae)]('Api\x20Excel\x20Error:\x20'+_0x1ea336+_0x5b92a7(0x1ab)),_0x3aafb5;}for(const _0xa7d903 of _0x100ac1){const _0x39bcf7=lodash[_0x5b92a7(0x1af)](_0xa7d903)?((_0x448a44=_0x22f810[_0x5b92a7(0x1d4)])===null||_0x448a44===void 0x0?void 0x0:_0x448a44[_0xa7d903])||undefined:_0x22f810[_0x5b92a7(0x1c0)](_0xa7d903);if(_0x39bcf7){var _0x65ef5d=0x1;const _0x58ab3c=_0x39bcf7[_0x5b92a7(0x1c4)](0x1),_0x39049b=await new Promise(_0x50ec6a=>{const _0x174bc6={};_0x58ab3c['eachCell']((_0x3101f5,_0x32fcfe)=>{const _0x1347d0=a12_0x4602;for(const _0x79b6ab of _0x1189bf){if(_0x3101f5[_0x1347d0(0x1d7)]==_0x79b6ab[_0x1347d0(0x1e0)])_0x65ef5d=0x2,_0x174bc6[_0x79b6ab['key']]={'header':_0x3101f5['col'],'handler':_0x79b6ab['handler']};else{if(!_0x174bc6[_0x79b6ab['key']])try{const _0x514d3e=_0x58ab3c[_0x1347d0(0x1e1)](_0x79b6ab[_0x1347d0(0x1e0)]);_0x514d3e&&(_0x174bc6[_0x79b6ab[_0x1347d0(0x1d3)]]={'header':_0x514d3e[_0x1347d0(0x1c2)],'handler':_0x79b6ab['handler']});}catch{}}}_0x58ab3c[_0x1347d0(0x1e4)]==_0x32fcfe&&_0x50ec6a(_0x174bc6);});});for(const _0x27a407 of _0x39bcf7['findRows'](_0x65ef5d,_0x39bcf7[_0x5b92a7(0x1c8)])){const _0x53e549={};for(const _0xd0c9d6 in _0x39049b){_0x39049b[_0xd0c9d6][_0x5b92a7(0x1e0)]&&(typeof((_0x20be1a=_0x39049b[_0xd0c9d6])===null||_0x20be1a===void 0x0?void 0x0:_0x20be1a[_0x5b92a7(0x1e5)])==_0x5b92a7(0x1cf)?_0x53e549[_0xd0c9d6]=_0x39049b[_0xd0c9d6]['handler'](_0x27a407[_0x5b92a7(0x1e1)](lodash[_0x5b92a7(0x1d9)](''+_0x39049b[_0xd0c9d6][_0x5b92a7(0x1e0)],'\x20'))[_0x5b92a7(0x1d8)]()):_0x53e549[_0xd0c9d6]=_0x27a407[_0x5b92a7(0x1e1)](_0x39049b[_0xd0c9d6]['header'])[_0x5b92a7(0x1d8)]());}Object[_0x5b92a7(0x1d0)](_0x53e549)[_0x5b92a7(0x1b0)]>0x0&&_0x3aafb5['push'](_0x53e549);}}}return _0x3aafb5;}async[a12_0x478bd0(0x1ed)](_0x4399c0,_0xe23607,_0x1a3a87,_0x599d18=a12_0x478bd0(0x1a9)){const _0x3e78bd=a12_0x478bd0;var _0x375d6f,_0x510fd7;const _0x3a3e79=new exceljs[(_0x3e78bd(0x1d1))](),_0x307c02={},_0xeeb1c6=[],_0x35b05c=_0x3a3e79[_0x3e78bd(0x1ca)](_0x3e78bd(0x1aa),{'views':[{'state':_0x3e78bd(0x1d5),'xSplit':0x1}]});for(const _0x490c35 in _0xe23607){_0x307c02[_0xe23607[_0x490c35][_0x3e78bd(0x1d3)]]=_0xe23607[_0x490c35][_0x3e78bd(0x1e0)],_0xeeb1c6['push']({'header':_0xe23607[_0x490c35][_0x3e78bd(0x1e0)],'key':(_0x375d6f=_0xe23607[_0x490c35])===null||_0x375d6f===void 0x0?void 0x0:_0x375d6f[_0x3e78bd(0x1d3)][_0x3e78bd(0x1ac)](/\./g,'_')});}_0x35b05c[_0x3e78bd(0x1b1)]=_0xeeb1c6;for(const _0x279143 of _0x1a3a87){const _0x656ef1={};for(const _0x5b3fec in _0xe23607){typeof((_0x510fd7=_0xe23607[_0x5b3fec])===null||_0x510fd7===void 0x0?void 0x0:_0x510fd7[_0x3e78bd(0x1e5)])==_0x3e78bd(0x1cf)?_0x656ef1[_0xe23607[_0x5b3fec][_0x3e78bd(0x1d3)][_0x3e78bd(0x1ac)](/\./g,'_')]=await _0xe23607[_0x5b3fec]['handler'](_0x279143):_0x656ef1[_0xe23607[_0x5b3fec][_0x3e78bd(0x1d3)][_0x3e78bd(0x1ac)](/\./g,'_')]=lodash[_0x3e78bd(0x1bf)](_0x279143,_0xe23607[_0x5b3fec][_0x3e78bd(0x1d3)],'');}_0x35b05c[_0x3e78bd(0x1bd)](_0x656ef1);}let _0x358cda='';const _0x2db78a=_0x4399c0+'-'+lodash[_0x3e78bd(0x1b7)](0x2710,0x1869f)+_0x3e78bd(0x1ad);if(_0x599d18&&_0x599d18[_0x3e78bd(0x1e6)]('/'))_0x358cda=''+_0x599d18;else _0x599d18&&!_0x599d18[_0x3e78bd(0x1e6)]('/')&&!_0x599d18[_0x3e78bd(0x1e6)]('\x5c')?_0x358cda=this[_0x3e78bd(0x1cd)][_0x3e78bd(0x1dd)]()+'/'+_0x599d18:_0x358cda=this['app'][_0x3e78bd(0x1dd)]()+_0x3e78bd(0x1cc);return(_0x358cda[_0x3e78bd(0x1c7)]('/')||_0x358cda['endsWith']('\x5c'))&&(_0x358cda=_0x358cda[_0x3e78bd(0x1d2)](0x0,_0x358cda[_0x3e78bd(0x1b0)]-0x1)),_0x358cda=_0x358cda[_0x3e78bd(0x1ac)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x3e78bd(0x1b6)](_0x358cda)&&fs[_0x3e78bd(0x1bc)](_0x358cda,{'recursive':!![]}),await _0x3a3e79[_0x3e78bd(0x1df)][_0x3e78bd(0x1eb)]((_0x358cda+'/'+_0x2db78a)[_0x3e78bd(0x1ac)](/(\\|\/)/g,'/')[_0x3e78bd(0x1ac)](/\/{2,}/g,'/')),{'filename':_0x2db78a,'filepath':(_0x358cda[_0x3e78bd(0x1d2)]((''+this['app'][_0x3e78bd(0x1dd)]())['length'])+'/'+_0x2db78a)['replace'](/(\\|\/)/g,'/')[_0x3e78bd(0x1ac)](/\/{2,}/g,'/')};}async[a12_0x478bd0(0x1bb)](_0x3f6f03,_0x49aad8){return await koasend(_0x3f6f03,''+_0x49aad8);}};__decorate([(0x0,decorator_1['App'])(),__metadata(a12_0x478bd0(0x1b2),Object)],ExcelService[a12_0x478bd0(0x1db)],a12_0x478bd0(0x1cd),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x478bd0(0x1a8)])(),(0x0,decorator_1[a12_0x478bd0(0x1ea)])(decorator_1[a12_0x478bd0(0x1e2)][a12_0x478bd0(0x1c1)])],ExcelService),exports[a12_0x478bd0(0x1ba)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x265659=a13_0x1152;function a13_0x1e53(){var _0x1a4f1b=['13270887nBulPX','__esModule','anncic-api:apps:config','APPSCONFIG_KEY','anncic-api:action:route','281799wAArJY','ACTION_KEY','2165932oGexFr','ACTION_ROUTE_KEY','anncic-api:action','539325giEDLB','1758GfKWCq','1695IoRbwQ','defineProperty','1181433xqrsJu','4qSrmaH','7943672LLHtbL','AppsConfigTmp'];a13_0x1e53=function(){return _0x1a4f1b;};return a13_0x1e53();}(function(_0x228117,_0x3ee99b){var _0x2d88b1=a13_0x1152,_0x4a2b2a=_0x228117();while(!![]){try{var _0x5ea864=-parseInt(_0x2d88b1(0x104))/0x1+parseInt(_0x2d88b1(0x109))/0x2*(-parseInt(_0x2d88b1(0x108))/0x3)+-parseInt(_0x2d88b1(0x101))/0x4+parseInt(_0x2d88b1(0x106))/0x5*(-parseInt(_0x2d88b1(0x105))/0x6)+parseInt(_0x2d88b1(0xff))/0x7+parseInt(_0x2d88b1(0x10a))/0x8+parseInt(_0x2d88b1(0x10c))/0x9;if(_0x5ea864===_0x3ee99b)break;else _0x4a2b2a['push'](_0x4a2b2a['shift']());}catch(_0x14263c){_0x4a2b2a['push'](_0x4a2b2a['shift']());}}}(a13_0x1e53,0x83d62));Object[a13_0x265659(0x107)](exports,a13_0x265659(0xfb),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x265659(0xfd)]=exports[a13_0x265659(0x102)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x265659(0x100)]=a13_0x265659(0x103),exports[a13_0x265659(0x102)]=a13_0x265659(0xfe),exports[a13_0x265659(0xfd)]=a13_0x265659(0xfc);function a13_0x1152(_0x6fc53f,_0x33b06d){var _0x1e5340=a13_0x1e53();return a13_0x1152=function(_0x115226,_0x4147ad){_0x115226=_0x115226-0xfb;var _0x27b69c=_0x1e5340[_0x115226];return _0x27b69c;},a13_0x1152(_0x6fc53f,_0x33b06d);}class AppsConfigTmp{}exports[a13_0x265659(0x10b)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x1a41b0=a14_0x102d;(function(_0x44fab5,_0x255ed8){var _0x13d804=a14_0x102d,_0x5b8012=_0x44fab5();while(!![]){try{var _0x2eefd9=-parseInt(_0x13d804(0x92))/0x1*(-parseInt(_0x13d804(0x8c))/0x2)+parseInt(_0x13d804(0x73))/0x3+parseInt(_0x13d804(0x85))/0x4+parseInt(_0x13d804(0x7b))/0x5*(-parseInt(_0x13d804(0x91))/0x6)+parseInt(_0x13d804(0x8b))/0x7+parseInt(_0x13d804(0x78))/0x8+parseInt(_0x13d804(0x90))/0x9*(-parseInt(_0x13d804(0x95))/0xa);if(_0x2eefd9===_0x255ed8)break;else _0x5b8012['push'](_0x5b8012['shift']());}catch(_0x2ef700){_0x5b8012['push'](_0x5b8012['shift']());}}}(a14_0x430e,0xebb57));var __decorate=this&&this[a14_0x1a41b0(0x8f)]||function(_0x5bee40,_0x1683db,_0x43bff5,_0x284a96){var _0x17361c=a14_0x1a41b0,_0x363bf8=arguments[_0x17361c(0x87)],_0x4040dc=_0x363bf8<0x3?_0x1683db:_0x284a96===null?_0x284a96=Object[_0x17361c(0x83)](_0x1683db,_0x43bff5):_0x284a96,_0x2e3b77;if(typeof Reflect===_0x17361c(0x84)&&typeof Reflect['decorate']==='function')_0x4040dc=Reflect[_0x17361c(0x75)](_0x5bee40,_0x1683db,_0x43bff5,_0x284a96);else{for(var _0x483dc7=_0x5bee40[_0x17361c(0x87)]-0x1;_0x483dc7>=0x0;_0x483dc7--)if(_0x2e3b77=_0x5bee40[_0x483dc7])_0x4040dc=(_0x363bf8<0x3?_0x2e3b77(_0x4040dc):_0x363bf8>0x3?_0x2e3b77(_0x1683db,_0x43bff5,_0x4040dc):_0x2e3b77(_0x1683db,_0x43bff5))||_0x4040dc;}return _0x363bf8>0x3&&_0x4040dc&&Object[_0x17361c(0x94)](_0x1683db,_0x43bff5,_0x4040dc),_0x4040dc;},__metadata=this&&this['__metadata']||function(_0x53170d,_0x3456fc){var _0x4e24c5=a14_0x1a41b0;if(typeof Reflect===_0x4e24c5(0x84)&&typeof Reflect[_0x4e24c5(0x80)]===_0x4e24c5(0x86))return Reflect['metadata'](_0x53170d,_0x3456fc);};function a14_0x430e(){var _0x2b9e56=['1gruEAT','_page','defineProperty','4745330rrxYnb','number','@anncic-api/validator','排序方式','2839284SUCljc','PageDTO','decorate','分页数量','RuleType','4543352wraSnb','design:type','是否倒序','85EuwrPI','Rule','min','prototype','第一页为1,第二页为2','metadata','integer','__esModule','getOwnPropertyDescriptor','object','4077404dPGvIt','function','length','_order','1:是;0:否','trim','6912353PeqEEy','3251244nXqlmg','_isreverse','string','__decorate','63kNUXHE','303390fxGxAi'];a14_0x430e=function(){return _0x2b9e56;};return a14_0x430e();}Object['defineProperty'](exports,a14_0x1a41b0(0x82),{'value':!![]}),exports[a14_0x1a41b0(0x74)]=void 0x0;function a14_0x102d(_0x87289f,_0x3c8e60){var _0x430e61=a14_0x430e();return a14_0x102d=function(_0x102da0,_0x3d0af6){_0x102da0=_0x102da0-0x72;var _0x1d0cc5=_0x430e61[_0x102da0];return _0x1d0cc5;},a14_0x102d(_0x87289f,_0x3c8e60);}const validator_1=require(a14_0x1a41b0(0x97));class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x1a41b0(0x77)][a14_0x1a41b0(0x96)]()['integer']()[a14_0x1a41b0(0x7d)](0x1),a14_0x1a41b0(0x7f)),__metadata('design:type',Number)],PageDTO[a14_0x1a41b0(0x7e)],a14_0x1a41b0(0x93),void 0x0),__decorate([(0x0,validator_1[a14_0x1a41b0(0x7c)])(a14_0x1a41b0(0x76),validator_1[a14_0x1a41b0(0x77)][a14_0x1a41b0(0x96)]()[a14_0x1a41b0(0x81)]()[a14_0x1a41b0(0x7d)](0x1)),__metadata(a14_0x1a41b0(0x79),Number)],PageDTO[a14_0x1a41b0(0x7e)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x1a41b0(0x7c)])(a14_0x1a41b0(0x72),validator_1['RuleType'][a14_0x1a41b0(0x8e)]()[a14_0x1a41b0(0x8a)]()),__metadata('design:type',String)],PageDTO[a14_0x1a41b0(0x7e)],a14_0x1a41b0(0x88),void 0x0),__decorate([(0x0,validator_1[a14_0x1a41b0(0x7c)])(a14_0x1a41b0(0x7a),validator_1['RuleType'][a14_0x1a41b0(0x96)]()[a14_0x1a41b0(0x81)]()['valid'](0x0,0x1),a14_0x1a41b0(0x89)),__metadata(a14_0x1a41b0(0x79),Number)],PageDTO['prototype'],a14_0x1a41b0(0x8d),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.34",
|
|
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.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.34",
|
|
21
|
+
"@anncic-api/core": "^1.1.34",
|
|
22
|
+
"@anncic-api/event": "^1.1.34",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.34",
|
|
24
|
+
"@anncic-api/validator": "^1.1.34",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.34",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b2eeee0c9c083f00e6871d50cb71eb902d6ac17d"
|
|
43
43
|
}
|