anncic-api 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
- package/public/config.js +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x1b4894=a0_0x83ec;function a0_0x2b84(){var _0x20fa41=['name','102653IwlZVt','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','22428yTNujC','defineProperty','appDir','381861YvJymE','default','1565KTKhCQ','965583TVHvUC','648352iQNACe','1664zluLtA','1088420sHaMgT','__esModule','162zTIrMg','2qOVAMy'];a0_0x2b84=function(){return _0x20fa41;};return a0_0x2b84();}(function(_0x4b7e37,_0x52f3ed){var _0x4c8a41=a0_0x83ec,_0x4622ab=_0x4b7e37();while(!![]){try{var _0x21a397=parseInt(_0x4c8a41(0xff))/0x1*(-parseInt(_0x4c8a41(0xfd))/0x2)+parseInt(_0x4c8a41(0x105))/0x3+parseInt(_0x4c8a41(0xf9))/0x4*(parseInt(_0x4c8a41(0xf6))/0x5)+-parseInt(_0x4c8a41(0xfc))/0x6*(-parseInt(_0x4c8a41(0x102))/0x7)+parseInt(_0x4c8a41(0xf8))/0x8+-parseInt(_0x4c8a41(0xf7))/0x9+-parseInt(_0x4c8a41(0xfa))/0xa;if(_0x21a397===_0x52f3ed)break;else _0x4622ab['push'](_0x4622ab['shift']());}catch(_0x1d3bfd){_0x4622ab['push'](_0x4622ab['shift']());}}}(a0_0x2b84,0x19f19));function a0_0x83ec(_0x31b922,_0x5ebf1a){var _0x2b848d=a0_0x2b84();return a0_0x83ec=function(_0x83ec4c,_0x153c7b){_0x83ec4c=_0x83ec4c-0xf5;var _0x16309f=_0x2b848d[_0x83ec4c];return _0x16309f;},a0_0x83ec(_0x31b922,_0x5ebf1a);}Object[a0_0x1b4894(0x103)](exports,a0_0x1b4894(0xfb),{'value':!![]}),exports[a0_0x1b4894(0xf5)]=_0x1fb1ed=>{var _0x89539d=a0_0x1b4894;return{'apitest':!![],'keys':_0x1fb1ed[_0x89539d(0xfe)],'anncicapi':{'timeout':0x1388,'password':_0x89539d(0x100),'devices':{'DEFAULT':{'secret':_0x89539d(0x101),'checkcode':_0x89539d(0x101)}}},'upload':{'tmpdir':_0x1fb1ed[_0x89539d(0x104)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x581662=a1_0x4c7c;(function(_0x59543b,_0x42fa12){var _0x4a8ad8=a1_0x4c7c,_0xeb9afe=_0x59543b();while(!![]){try{var _0xef8478=-parseInt(_0x4a8ad8(0x1bf))/0x1+parseInt(_0x4a8ad8(0x1bc))/0x2+parseInt(_0x4a8ad8(0x1c2))/0x3+-parseInt(_0x4a8ad8(0x1bd))/0x4*(parseInt(_0x4a8ad8(0x1c3))/0x5)+-parseInt(_0x4a8ad8(0x1c1))/0x6+parseInt(_0x4a8ad8(0x1c4))/0x7+parseInt(_0x4a8ad8(0x1c5))/0x8*(parseInt(_0x4a8ad8(0x1c0))/0x9);if(_0xef8478===_0x42fa12)break;else _0xeb9afe['push'](_0xeb9afe['shift']());}catch(_0x4c14e3){_0xeb9afe['push'](_0xeb9afe['shift']());}}}(a1_0x32df,0xbeaff));function a1_0x32df(){var _0x50834f=['7595196gNnqeU','184ZaMqGr','defineProperty','520202TyHScz','44ZNBnuE','default','962437uRhDLX','270180UpaphQ','135126nGyWPm','1276773MPAsHq','315985RPhcMC'];a1_0x32df=function(){return _0x50834f;};return a1_0x32df();}function a1_0x4c7c(_0x1b8531,_0x38a81e){var _0x32df6c=a1_0x32df();return a1_0x4c7c=function(_0x4c7c25,_0x51c556){_0x4c7c25=_0x4c7c25-0x1bc;var _0x1d9725=_0x32df6c[_0x4c7c25];return _0x1d9725;},a1_0x4c7c(_0x1b8531,_0x38a81e);}Object[a1_0x581662(0x1c6)](exports,'__esModule',{'value':!![]}),exports[a1_0x581662(0x1be)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x567f71=a2_0x34bd;(function(_0x412f48,_0x131ec9){const _0x380dd4=a2_0x34bd,_0x487e86=_0x412f48();while(!![]){try{const _0x1399d9=parseInt(_0x380dd4(0x1e5))/0x1+parseInt(_0x380dd4(0x1fc))/0x2+parseInt(_0x380dd4(0x1ce))/0x3*(parseInt(_0x380dd4(0x1fa))/0x4)+parseInt(_0x380dd4(0x1f7))/0x5*(-parseInt(_0x380dd4(0x1da))/0x6)+-parseInt(_0x380dd4(0x207))/0x7*(-parseInt(_0x380dd4(0x20a))/0x8)+-parseInt(_0x380dd4(0x1db))/0x9*(-parseInt(_0x380dd4(0x20c))/0xa)+-parseInt(_0x380dd4(0x1f2))/0xb;if(_0x1399d9===_0x131ec9)break;else _0x487e86['push'](_0x487e86['shift']());}catch(_0x1d0ee7){_0x487e86['push'](_0x487e86['shift']());}}}(a2_0x12f7,0x53374));var __decorate=this&&this[a2_0x567f71(0x1e4)]||function(_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f){const _0x1187ba=a2_0x567f71;var _0x209529=arguments[_0x1187ba(0x1cf)],_0x14d26a=_0x209529<0x3?_0xb75a3b:_0x47ef8f===null?_0x47ef8f=Object['getOwnPropertyDescriptor'](_0xb75a3b,_0x1622ca):_0x47ef8f,_0x159ec9;if(typeof Reflect===_0x1187ba(0x1f8)&&typeof Reflect[_0x1187ba(0x1d9)]===_0x1187ba(0x1f1))_0x14d26a=Reflect[_0x1187ba(0x1d9)](_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f);else{for(var _0x565a97=_0x5c7b6a[_0x1187ba(0x1cf)]-0x1;_0x565a97>=0x0;_0x565a97--)if(_0x159ec9=_0x5c7b6a[_0x565a97])_0x14d26a=(_0x209529<0x3?_0x159ec9(_0x14d26a):_0x209529>0x3?_0x159ec9(_0xb75a3b,_0x1622ca,_0x14d26a):_0x159ec9(_0xb75a3b,_0x1622ca))||_0x14d26a;}return _0x209529>0x3&&_0x14d26a&&Object['defineProperty'](_0xb75a3b,_0x1622ca,_0x14d26a),_0x14d26a;},__metadata=this&&this[a2_0x567f71(0x1e2)]||function(_0x29d4ad,_0x44dc47){const _0x3d8f12=a2_0x567f71;if(typeof Reflect===_0x3d8f12(0x1f8)&&typeof Reflect[_0x3d8f12(0x1ee)]===_0x3d8f12(0x1f1))return Reflect[_0x3d8f12(0x1ee)](_0x29d4ad,_0x44dc47);};Object['defineProperty'](exports,a2_0x567f71(0x1ff),{'value':!![]}),exports[a2_0x567f71(0x1b9)]=void 0x0;const decorator_1=require(a2_0x567f71(0x20d)),core_1=require(a2_0x567f71(0x1bd)),ApiError_1=require(a2_0x567f71(0x20f)),ApiService_1=require(a2_0x567f71(0x205)),action_1=require(a2_0x567f71(0x1e1)),fs=require('fs'),koa=require(a2_0x567f71(0x1d0)),i18n=require(a2_0x567f71(0x200)),task=require('@midwayjs/task'),upload=require(a2_0x567f71(0x1d1)),staticFile=require(a2_0x567f71(0x1d8)),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x567f71(0x1ca)),bodyParser=require(a2_0x567f71(0x1b7)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x567f71(0x1f5)),anncic=require('@anncic-api/core'),anncicEvent=require(a2_0x567f71(0x1cd)),anncicTypeorm=require(a2_0x567f71(0x1dc)),anncicValidator=require(a2_0x567f71(0x1e6)),anncicHelper=require(a2_0x567f71(0x1f3));function a2_0x12f7(){const _0x3252f3=['handlerActionRoute','./exception/ApiError','query','decorator','config','koa-bodyparser','ACTION_ROUTE_KEY','CustomConfiguration','Configuration','hanlderApplications','prototype','@midwayjs/core','getConfiguration','device','beforeRoute','forEach','upload','bodyParser','tmpdir','devices','existsSync','mkdirSync','keys','headers','koa-xml-body','defineProperties','filterConfig','@anncic-api/event','912147XidQBj','length','@midwayjs/koa','@midwayjs/upload','anncicapi','bodyXml','MidwayApplicationManager','key','ApiService','MidwayDecoratorService','@midwayjs/static-file','decorate','408YGNRen','27BNNRAs','@anncic-api/typeorm','design:type','checksign','apimit','isArray','./types/action','__metadata','isString','__decorate','229208KRYKiv','@anncic-api/validator','input','context','target','environment','staticFile','HEADERS_SIGNATURE','anncic-api','metadata','useMiddleware','REQUEST_OBJ_CTX_KEY','function','7809538URkNNp','anncic-apihelper','koa','./config/config.production','log','43115RjEiUf','object','DEFAULT','8yyPkow','Inject','1038898FaQNZk','request','ApiError','__esModule','@midwayjs/i18n','Anncic-api\x20static-file\x20:\x20mkdir\x20','dirs','registerMethodHandler','onReady','./service/ApiService','checkConfigKeys','21cYylOP','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','603792GGMTss','dir','179990FMbuzE','@midwayjs/decorator'];a2_0x12f7=function(){return _0x3252f3;};return a2_0x12f7();}let CustomConfiguration=class CustomConfiguration{async[a2_0x567f71(0x204)](){const _0x5e136a=a2_0x567f71;await this[_0x5e136a(0x1cc)](),await this[_0x5e136a(0x206)](),await this[_0x5e136a(0x20e)](),await this['hanlderApplications']();}async[a2_0x567f71(0x206)](){}async[a2_0x567f71(0x20e)](){const _0x528df8=a2_0x567f71,_0x2e467d=this[_0x528df8(0x1b6)]['getConfiguration']();this[_0x528df8(0x1b5)][_0x528df8(0x203)](action_1[_0x528df8(0x1b8)],_0xfa223c=>{const _0x4a2c68=_0x528df8,_0x5853a0=_0xfa223c[_0x4a2c68(0x1ee)];return{'before':async _0x216165=>{const _0x1da3b6=_0x4a2c68;var _0x44af5a,_0x267390,_0x1e1071,_0x5d4b1d,_0x5bb622;const _0x5f45ff=(_0x44af5a=_0x216165===null||_0x216165===void 0x0?void 0x0:_0x216165[_0x1da3b6(0x1e9)])===null||_0x44af5a===void 0x0?void 0x0:_0x44af5a[core_1[_0x1da3b6(0x1f0)]];if(_0x5f45ff){if((_0x5853a0===null||_0x5853a0===void 0x0?void 0x0:_0x5853a0[_0x1da3b6(0x1df)])&&!this[_0x1da3b6(0x1d6)][_0x1da3b6(0x1de)]((_0x267390=_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff[_0x1da3b6(0x1fd)])===null||_0x267390===void 0x0?void 0x0:_0x267390['headers']))throw new AnnError(ApiError_1[_0x1da3b6(0x1fe)][_0x1da3b6(0x1ec)]);((_0x1e1071=_0x5f45ff[_0x1da3b6(0x1c9)])===null||_0x1e1071===void 0x0?void 0x0:_0x1e1071[_0x1da3b6(0x1bf)])&&((_0x5bb622=(_0x5d4b1d=_0x2e467d===null||_0x2e467d===void 0x0?void 0x0:_0x2e467d[_0x1da3b6(0x1d2)])===null||_0x5d4b1d===void 0x0?void 0x0:_0x5d4b1d['devices'])===null||_0x5bb622===void 0x0?void 0x0:_0x5bb622[_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]])&&(typeof _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]][_0x1da3b6(0x1c0)]==_0x1da3b6(0x1f1)&&await _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]]['beforeRoute']((_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff['_matchedRoute'])||undefined,_0x5853a0,_0x5f45ff));}},'afterThrow':(_0x34e4ec,_0x51ac12)=>{throw _0x51ac12;}};});}async[a2_0x567f71(0x1bb)](){const _0xa5a2a8=a2_0x567f71;this['application']['getApplications']([_0xa5a2a8(0x1f4)])[_0xa5a2a8(0x1c1)](_0x5863a0=>{const _0x3b6168=_0xa5a2a8;_0x5863a0[_0x3b6168(0x1ef)](bodyXml(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1d3)))),_0x5863a0[_0x3b6168(0x1ef)](bodyParser(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1c3)))),(_0x5863a0===null||_0x5863a0===void 0x0?void 0x0:_0x5863a0[_0x3b6168(0x1e8)])&&Object[_0x3b6168(0x1cb)](_0x5863a0[_0x3b6168(0x1e8)],{'ok':{'value':function(_0x21dd9a,_0x5cd6eb,_0x12958a=0x0){return{'code':_0x12958a,'data':_0x21dd9a,'extra':_0x5cd6eb};}},'err':{'value':function(_0xda546c,_0x5c8938,_0xa2b0dc=0x1){return{'code':_0xa2b0dc,'extra':_0x5c8938,'msg':_0xda546c};}},'input':{'value':function(_0x53bff0,_0x173460){const _0x30f3e0=_0x3b6168;var _0xfdcf6a;const _0x3d88f1=lodash['defaultsDeep']({},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x209)]||this[_0x30f3e0(0x1fd)][((_0xfdcf6a=config===null||config===void 0x0?void 0x0:config[_0x30f3e0(0x1d3)])===null||_0xfdcf6a===void 0x0?void 0x0:_0xfdcf6a[_0x30f3e0(0x1d5)])||_0x30f3e0(0x209)]||{},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x210)]||{});return _0x53bff0?lodash['get'](_0x3d88f1,_0x53bff0,_0x173460):_0x3d88f1;}},'when':{'value':async function(_0x22c2f4,_0x20ff3e){const _0x3f2dca=_0x3b6168,_0x2bf70a=this[_0x3f2dca(0x1e7)](_0x22c2f4,null);if(!lodash['isNull'](_0x2bf70a))return await _0x20ff3e(_0x2bf70a);}},'only':{'value':function(_0x172299){const _0x101301=_0x3b6168,_0x4b6320={};for(let _0x352592=0x0;_0x352592<_0x172299['length'];_0x352592++){lodash[_0x101301(0x1e0)](_0x172299[_0x352592])&&_0x172299[_0x352592][_0x101301(0x1cf)]>0x0&&lodash[_0x101301(0x1e3)](_0x172299[_0x352592][0x0])&&(_0x4b6320[_0x172299[_0x352592][0x0]]=this[_0x101301(0x1e7)](_0x172299[_0x352592][0x0],_0x172299[_0x352592][_0x101301(0x1cf)]>0x1?_0x172299[_0x352592][0x1]:null));}return _0x4b6320;}}});});}async[a2_0x567f71(0x1cc)](){const _0xa882ac=a2_0x567f71;var _0x30e97f,_0x586c0c,_0x5b2e76,_0x38bf43,_0x345366,_0x1ea075;const _0x21b2c0=this[_0xa882ac(0x1b6)][_0xa882ac(0x1be)]();((_0x586c0c=(_0x30e97f=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1d2)])===null||_0x30e97f===void 0x0?void 0x0:_0x30e97f['devices'])===null||_0x586c0c===void 0x0?void 0x0:_0x586c0c[_0xa882ac(0x1f9)])&&Object[_0xa882ac(0x1c8)](_0x21b2c0[_0xa882ac(0x1d2)][_0xa882ac(0x1c5)])[_0xa882ac(0x1cf)]>0x1&&delete _0x21b2c0['anncicapi'][_0xa882ac(0x1c5)][_0xa882ac(0x1f9)];if((_0x5b2e76=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1eb)])===null||_0x5b2e76===void 0x0?void 0x0:_0x5b2e76['dirs'])for(const _0x4a62c5 in _0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)]){((_0x38bf43=_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5])===null||_0x38bf43===void 0x0?void 0x0:_0x38bf43[_0xa882ac(0x20b)])&&typeof((_0x345366=_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5])===null||_0x345366===void 0x0?void 0x0:_0x345366[_0xa882ac(0x20b)])=='string'&&!fs[_0xa882ac(0x1c6)](_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5]['dir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x201)+_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)]));}((_0x1ea075=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1c2)])===null||_0x1ea075===void 0x0?void 0x0:_0x1ea075[_0xa882ac(0x1c4)])&&!fs['existsSync'](_0x21b2c0['upload']['tmpdir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x208)+_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)])),this[_0xa882ac(0x1b6)]['addObject'](_0x21b2c0);}};function a2_0x34bd(_0x5127ee,_0x2eefb8){const _0x12f763=a2_0x12f7();return a2_0x34bd=function(_0x34bd38,_0x25d3f6){_0x34bd38=_0x34bd38-0x1b5;let _0x38715e=_0x12f763[_0x34bd38];return _0x38715e;},a2_0x34bd(_0x5127ee,_0x2eefb8);}__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1b6),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1[a2_0x567f71(0x1d7)])],CustomConfiguration['prototype'],a2_0x567f71(0x1b5),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1[a2_0x567f71(0x1d4)])],CustomConfiguration[a2_0x567f71(0x1bc)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1ea),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),ApiService_1['ApiService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1d6),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x567f71(0x1ba)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x567f71(0x1ed),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x567f71(0x1b9)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0xbf6159=a2_0x1730;(function(_0x1ed68c,_0x539da9){const _0x35ed15=a2_0x1730,_0x233299=_0x1ed68c();while(!![]){try{const _0x39b8d0=-parseInt(_0x35ed15(0x9c))/0x1*(-parseInt(_0x35ed15(0x84))/0x2)+parseInt(_0x35ed15(0xaa))/0x3*(parseInt(_0x35ed15(0xbe))/0x4)+parseInt(_0x35ed15(0x7b))/0x5+-parseInt(_0x35ed15(0xb7))/0x6+-parseInt(_0x35ed15(0xb3))/0x7+parseInt(_0x35ed15(0xa3))/0x8+-parseInt(_0x35ed15(0xa7))/0x9*(parseInt(_0x35ed15(0x85))/0xa);if(_0x39b8d0===_0x539da9)break;else _0x233299['push'](_0x233299['shift']());}catch(_0x43294b){_0x233299['push'](_0x233299['shift']());}}}(a2_0x1fea,0x85d30));function a2_0x1fea(){const _0x2d9f65=['existsSync','object','14343NBoyuf','decorate','log','@midwayjs/koa','design:type','key','isArray','@midwayjs/upload','Inject','2048508jnAmnN','string','target','filterConfig','6318750rNvcoF','anncic-apihelper','function','keys','@midwayjs/static-file','Configuration','checksign','476FDRhSb','prototype','Anncic-api\x20static-file\x20:\x20mkdir\x20','dir','bodyParser','checkConfigKeys','environment','CustomConfiguration','forEach','decorator','mkdirSync','defineProperty','beforeRoute','./types/action','./service/ApiService','@anncic-api/validator','@anncic-api/core','anncic-api','query','@anncic-api/event','anncicapi','apimit','input','koa-bodyparser','handlerActionRoute','3640605sTfqel','HEADERS_SIGNATURE','upload','application','isString','config','request','@midwayjs/cross-domain','getConfiguration','290478WtqPZn','4716010SFlnyd','defineProperties','tmpdir','MidwayConfigService','useMiddleware','@midwayjs/decorator','context','addObject','metadata','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','REQUEST_OBJ_CTX_KEY','@anncic-api/typeorm','staticFile','__decorate','__metadata','_matchedRoute','hanlderApplications','getApplications','device','bodyXml','./exception/ApiError','ApiService','7lrWeqm','@midwayjs/i18n','length','@midwayjs/task','headers','__esModule','dirs','414248QwOQkj','devices','./config/config.production','onReady','9WHhQMA'];a2_0x1fea=function(){return _0x2d9f65;};return a2_0x1fea();}var __decorate=this&&this[a2_0xbf6159(0x93)]||function(_0x25407b,_0x472436,_0x138ae6,_0x3626bb){const _0x48dfe9=a2_0xbf6159;var _0x531bf6=arguments[_0x48dfe9(0x9e)],_0x45de7d=_0x531bf6<0x3?_0x472436:_0x3626bb===null?_0x3626bb=Object['getOwnPropertyDescriptor'](_0x472436,_0x138ae6):_0x3626bb,_0x58544e;if(typeof Reflect==='object'&&typeof Reflect[_0x48dfe9(0xab)]===_0x48dfe9(0xb9))_0x45de7d=Reflect[_0x48dfe9(0xab)](_0x25407b,_0x472436,_0x138ae6,_0x3626bb);else{for(var _0x39edaa=_0x25407b['length']-0x1;_0x39edaa>=0x0;_0x39edaa--)if(_0x58544e=_0x25407b[_0x39edaa])_0x45de7d=(_0x531bf6<0x3?_0x58544e(_0x45de7d):_0x531bf6>0x3?_0x58544e(_0x472436,_0x138ae6,_0x45de7d):_0x58544e(_0x472436,_0x138ae6))||_0x45de7d;}return _0x531bf6>0x3&&_0x45de7d&&Object[_0x48dfe9(0xc9)](_0x472436,_0x138ae6,_0x45de7d),_0x45de7d;},__metadata=this&&this[a2_0xbf6159(0x94)]||function(_0x3af6a7,_0x4f859d){const _0x493329=a2_0xbf6159;if(typeof Reflect===_0x493329(0xa9)&&typeof Reflect[_0x493329(0x8d)]==='function')return Reflect[_0x493329(0x8d)](_0x3af6a7,_0x4f859d);};function a2_0x1730(_0x534888,_0x5a11c0){const _0x1fea3b=a2_0x1fea();return a2_0x1730=function(_0x17307d,_0x50a9cd){_0x17307d=_0x17307d-0x71;let _0x317a4a=_0x1fea3b[_0x17307d];return _0x317a4a;},a2_0x1730(_0x534888,_0x5a11c0);}Object['defineProperty'](exports,a2_0xbf6159(0xa1),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0xbf6159(0x8a)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0xbf6159(0x9a)),ApiService_1=require(a2_0xbf6159(0xcc)),action_1=require(a2_0xbf6159(0xcb)),fs=require('fs'),koa=require(a2_0xbf6159(0xad)),i18n=require(a2_0xbf6159(0x9d)),task=require(a2_0xbf6159(0x9f)),upload=require(a2_0xbf6159(0xb1)),staticFile=require(a2_0xbf6159(0xbb)),crossDomain=require(a2_0xbf6159(0x82)),bodyXml=require('koa-xml-body'),bodyParser=require(a2_0xbf6159(0x79)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0xbf6159(0xa5)),anncic=require(a2_0xbf6159(0x72)),anncicEvent=require(a2_0xbf6159(0x75)),anncicTypeorm=require(a2_0xbf6159(0x91)),anncicValidator=require(a2_0xbf6159(0x71)),anncicHelper=require(a2_0xbf6159(0xb8));let CustomConfiguration=class CustomConfiguration{async[a2_0xbf6159(0xa6)](){const _0x108605=a2_0xbf6159;await this[_0x108605(0xb6)](),await this[_0x108605(0xc3)](),await this['handlerActionRoute'](),await this[_0x108605(0x96)]();}async['checkConfigKeys'](){}async[a2_0xbf6159(0x7a)](){const _0x777335=this['config']['getConfiguration']();this['decorator']['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x5836c5=>{const _0x120e41=a2_0x1730,_0xf9bfe8=_0x5836c5[_0x120e41(0x8d)];return{'before':async _0xc015de=>{const _0x1d467e=_0x120e41;var _0x2bc51d,_0x15dae1,_0x1ddfc4,_0x318df8,_0x14b553;const _0x2ed9c0=(_0x2bc51d=_0xc015de===null||_0xc015de===void 0x0?void 0x0:_0xc015de[_0x1d467e(0xb5)])===null||_0x2bc51d===void 0x0?void 0x0:_0x2bc51d[core_1[_0x1d467e(0x90)]];if(_0x2ed9c0){if((_0xf9bfe8===null||_0xf9bfe8===void 0x0?void 0x0:_0xf9bfe8[_0x1d467e(0x77)])&&!this[_0x1d467e(0x9b)][_0x1d467e(0xbd)]((_0x15dae1=_0x2ed9c0===null||_0x2ed9c0===void 0x0?void 0x0:_0x2ed9c0[_0x1d467e(0x81)])===null||_0x15dae1===void 0x0?void 0x0:_0x15dae1[_0x1d467e(0xa0)]))throw new AnnError(ApiError_1['ApiError'][_0x1d467e(0x7c)]);((_0x1ddfc4=_0x2ed9c0['headers'])===null||_0x1ddfc4===void 0x0?void 0x0:_0x1ddfc4[_0x1d467e(0x98)])&&((_0x14b553=(_0x318df8=_0x777335===null||_0x777335===void 0x0?void 0x0:_0x777335[_0x1d467e(0x76)])===null||_0x318df8===void 0x0?void 0x0:_0x318df8[_0x1d467e(0xa4)])===null||_0x14b553===void 0x0?void 0x0:_0x14b553[_0x2ed9c0[_0x1d467e(0xa0)]['device']])&&(typeof _0x777335[_0x1d467e(0x76)][_0x1d467e(0xa4)][_0x2ed9c0[_0x1d467e(0xa0)][_0x1d467e(0x98)]][_0x1d467e(0xca)]=='function'&&await _0x777335[_0x1d467e(0x76)][_0x1d467e(0xa4)][_0x2ed9c0[_0x1d467e(0xa0)][_0x1d467e(0x98)]][_0x1d467e(0xca)]((_0x2ed9c0===null||_0x2ed9c0===void 0x0?void 0x0:_0x2ed9c0[_0x1d467e(0x95)])||undefined,_0xf9bfe8,_0x2ed9c0));}},'afterThrow':(_0x20fa68,_0x5d323a)=>{throw _0x5d323a;}};});}async[a2_0xbf6159(0x96)](){const _0x936405=a2_0xbf6159;this[_0x936405(0x7e)][_0x936405(0x97)](['koa'])[_0x936405(0xc6)](_0x50dd7e=>{const _0x2bae5b=_0x936405;_0x50dd7e['useMiddleware'](bodyXml(this[_0x2bae5b(0x80)][_0x2bae5b(0x83)](_0x2bae5b(0x99)))),_0x50dd7e[_0x2bae5b(0x89)](bodyParser(this[_0x2bae5b(0x80)][_0x2bae5b(0x83)](_0x2bae5b(0xc2)))),(_0x50dd7e===null||_0x50dd7e===void 0x0?void 0x0:_0x50dd7e['context'])&&Object[_0x2bae5b(0x86)](_0x50dd7e[_0x2bae5b(0x8b)],{'ok':{'value':function(_0x530084,_0x105884,_0x370426=0x0){return{'code':_0x370426,'data':_0x530084,'extra':_0x105884};}},'err':{'value':function(_0x419516,_0x1aef11,_0xb51461=0x1){return{'code':_0xb51461,'extra':_0x1aef11,'msg':_0x419516};}},'input':{'value':function(_0x254cba,_0x18a079){const _0x48ccc4=_0x2bae5b;var _0x3c7363;const _0x2b31ae=lodash['defaultsDeep']({},this[_0x48ccc4(0x81)]['body']||this[_0x48ccc4(0x81)][((_0x3c7363=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x3c7363===void 0x0?void 0x0:_0x3c7363[_0x48ccc4(0xaf)])||'body']||{},this[_0x48ccc4(0x81)][_0x48ccc4(0x74)]||{});return _0x254cba?lodash['get'](_0x2b31ae,_0x254cba,_0x18a079):_0x2b31ae;}},'when':{'value':async function(_0x4618cf,_0x22c170){const _0x199b9c=this['input'](_0x4618cf,null);if(!lodash['isNull'](_0x199b9c))return await _0x22c170(_0x199b9c);}},'only':{'value':function(_0x3041e7){const _0x55b47a=_0x2bae5b,_0x145390={};for(let _0x29b045=0x0;_0x29b045<_0x3041e7[_0x55b47a(0x9e)];_0x29b045++){lodash[_0x55b47a(0xb0)](_0x3041e7[_0x29b045])&&_0x3041e7[_0x29b045][_0x55b47a(0x9e)]>0x0&&lodash[_0x55b47a(0x7f)](_0x3041e7[_0x29b045][0x0])&&(_0x145390[_0x3041e7[_0x29b045][0x0]]=this[_0x55b47a(0x78)](_0x3041e7[_0x29b045][0x0],_0x3041e7[_0x29b045][_0x55b47a(0x9e)]>0x1?_0x3041e7[_0x29b045][0x1]:null));}return _0x145390;}}});});}async[a2_0xbf6159(0xb6)](){const _0x70c49d=a2_0xbf6159;var _0x564c50,_0x19321e,_0x353b43,_0x420504,_0x2ad5d2,_0x328c34;const _0x2d42c3=this[_0x70c49d(0x80)][_0x70c49d(0x83)]();((_0x19321e=(_0x564c50=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x76)])===null||_0x564c50===void 0x0?void 0x0:_0x564c50[_0x70c49d(0xa4)])===null||_0x19321e===void 0x0?void 0x0:_0x19321e['DEFAULT'])&&Object[_0x70c49d(0xba)](_0x2d42c3[_0x70c49d(0x76)][_0x70c49d(0xa4)])[_0x70c49d(0x9e)]>0x1&&delete _0x2d42c3[_0x70c49d(0x76)][_0x70c49d(0xa4)]['DEFAULT'];if((_0x353b43=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x92)])===null||_0x353b43===void 0x0?void 0x0:_0x353b43[_0x70c49d(0xa2)])for(const _0x46050e in _0x2d42c3[_0x70c49d(0x92)]['dirs']){((_0x420504=_0x2d42c3[_0x70c49d(0x92)]['dirs'][_0x46050e])===null||_0x420504===void 0x0?void 0x0:_0x420504['dir'])&&typeof((_0x2ad5d2=_0x2d42c3['staticFile'][_0x70c49d(0xa2)][_0x46050e])===null||_0x2ad5d2===void 0x0?void 0x0:_0x2ad5d2[_0x70c49d(0xc1)])==_0x70c49d(0xb4)&&!fs['existsSync'](_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e]['dir'])&&(fs['mkdirSync'](_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e][_0x70c49d(0xc1)],{'recursive':!![]}),console[_0x70c49d(0xac)](_0x70c49d(0xc0)+_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e][_0x70c49d(0xc1)]));}((_0x328c34=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x7d)])===null||_0x328c34===void 0x0?void 0x0:_0x328c34[_0x70c49d(0x87)])&&!fs[_0x70c49d(0xa8)](_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)])&&(fs[_0x70c49d(0xc8)](_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)],{'recursive':!![]}),console[_0x70c49d(0xac)](_0x70c49d(0x8f)+_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)])),this[_0x70c49d(0x80)][_0x70c49d(0x8c)](_0x2d42c3);}};__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1[a2_0xbf6159(0x88)])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0x80),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0xbf6159(0xc7),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata('design:type',core_1[a2_0xbf6159(0x8e)])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0x7e),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0xc4),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),ApiService_1['ApiService'])],CustomConfiguration['prototype'],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0xbf6159(0xbc)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0xbf6159(0x73),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xbf6159(0xc5)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x33f99d=a3_0xb393;(function(_0x3de58f,_0x391363){const _0x208ce0=a3_0xb393,_0x574b24=_0x3de58f();while(!![]){try{const _0x2ba0f7=-parseInt(_0x208ce0(0x19d))/0x1*(-parseInt(_0x208ce0(0x1c6))/0x2)+parseInt(_0x208ce0(0x1ba))/0x3+parseInt(_0x208ce0(0x1ae))/0x4*(parseInt(_0x208ce0(0x1bf))/0x5)+parseInt(_0x208ce0(0x19e))/0x6*(parseInt(_0x208ce0(0x1a1))/0x7)+parseInt(_0x208ce0(0x1c2))/0x8*(parseInt(_0x208ce0(0x1b6))/0x9)+parseInt(_0x208ce0(0x1c4))/0xa*(parseInt(_0x208ce0(0x1a5))/0xb)+-parseInt(_0x208ce0(0x1a6))/0xc;if(_0x2ba0f7===_0x391363)break;else _0x574b24['push'](_0x574b24['shift']());}catch(_0x50acf3){_0x574b24['push'](_0x574b24['shift']());}}}(a3_0x5332,0x6eb7c));Object[a3_0x33f99d(0x199)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x33f99d(0x1ac)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x33f99d(0x19c)),action_1=require(a3_0x33f99d(0x1aa));function a3_0x5332(){const _0x57ec5e=['split','splice','push','route','313839GEaCdE','length','endsWith','filepath','291318PWGPhl','Controller','saveClassMetadata','app/controller/','prefix','343730hXPfkE','-action','filter','8hHOKCs','/apps/','10GwJnNI','cwd','248auDrQz','toLowerCase','startsWith','-controller','replace','trim','middleware','match','defineProperty','substring','/controller/','@midwayjs/decorator','4996aHWnGe','2826XLHize','isArray','join','8309xLruwX','indexOf','module','apps/','7500515GWKBYs','19292028enEzDo','middlewareIgnore','/config.','rootpath','../types/action','ACTION_KEY','Action','saveModule','4BRoDPP','\x20文件请放在apps/','existsSync','parseRoute'];a3_0x5332=function(){return _0x57ec5e;};return a3_0x5332();}function a3_0xb393(_0x55d5b1,_0x4b054b){const _0x533239=a3_0x5332();return a3_0xb393=function(_0xb3939,_0x58d3cd){_0xb3939=_0xb3939-0x197;let _0x2ad179=_0x533239[_0xb3939];return _0x2ad179;},a3_0xb393(_0x55d5b1,_0x4b054b);}function Action(_0x3ba27b,_0x1203d2,_0x4a419f={'middleware':[],'sensitive':!![]}){return _0x4a10f6=>{const _0x59824c=a3_0xb393;_0x4a419f['tagName']=_0x1203d2;const _0xec8a70=parseRoute(_0x3ba27b);if(_0xec8a70[_0x59824c(0x1a3)]){_0x4a419f['prefix']=_0x4a419f[_0x59824c(0x1be)]?'/'+_0xec8a70[_0x59824c(0x1a3)]+'/'+_0x4a419f[_0x59824c(0x1be)]:'/'+_0xec8a70[_0x59824c(0x1b5)];_0xec8a70[_0x59824c(0x1be)]&&(_0x4a419f['prefix']='/'+_0xec8a70[_0x59824c(0x1be)]+'/'+_0x4a419f[_0x59824c(0x1be)]);if(fs[_0x59824c(0x1b0)](_0xec8a70[_0x59824c(0x1a9)]+_0x59824c(0x1c3)+_0xec8a70['module']+_0x59824c(0x1a8)+(lodash['endsWith'](_0xec8a70[_0x59824c(0x1b9)],'ts')?'ts':'js'))){const _0x356d74=include(_0xec8a70[_0x59824c(0x1a9)]+_0x59824c(0x1c3)+_0xec8a70[_0x59824c(0x1a3)]+_0x59824c(0x1a8)+(lodash[_0x59824c(0x1b8)](_0xec8a70['filepath'],'ts')?'ts':'js'));if(_0x356d74[_0x59824c(0x197)]&&lodash[_0x59824c(0x19f)](_0x356d74[_0x59824c(0x197)])&&_0x356d74[_0x59824c(0x197)]['length']>0x0)for(let _0x327784 in _0x356d74[_0x59824c(0x197)]){_0x356d74[_0x59824c(0x1a7)][_0x59824c(0x1a2)](_0x356d74[_0x59824c(0x197)][_0x327784])==-0x1&&_0x4a419f[_0x59824c(0x197)][_0x59824c(0x1b4)](_0x356d74['middleware'][_0x327784]);}}_0x4a419f['prefix']=_0x4a419f[_0x59824c(0x1be)][_0x59824c(0x1c7)]()[_0x59824c(0x1ca)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x59824c(0x1ad)])(action_1[_0x59824c(0x1ab)],_0x4a10f6),(0x0,decorator_1['Controller'])(_0x4a419f[_0x59824c(0x1be)],_0x4a419f)(_0x4a10f6),(0x0,decorator_1[_0x59824c(0x1bc)])(action_1[_0x59824c(0x1ab)],{'prefix':_0x4a419f[_0x59824c(0x1be)],'pprefix':_0xec8a70[_0x59824c(0x1be)],'module':_0xec8a70[_0x59824c(0x1a3)],'filepath':_0xec8a70['filepath'],'routerOptions':_0x4a419f},_0x4a10f6);}else _0x4a419f[_0x59824c(0x1be)]=_0x4a419f[_0x59824c(0x1be)]?'/'+_0x4a419f[_0x59824c(0x1be)]:'/'+_0xec8a70[_0x59824c(0x1b5)],_0xec8a70[_0x59824c(0x1be)]&&(_0x4a419f[_0x59824c(0x1be)]='/'+_0xec8a70['prefix']+'/'+_0x4a419f['prefix']),_0x4a419f[_0x59824c(0x1be)]=_0x4a419f[_0x59824c(0x1be)][_0x59824c(0x1c7)]()[_0x59824c(0x1ca)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x59824c(0x1ab)],_0x4a10f6),(0x0,decorator_1[_0x59824c(0x1bb)])(_0x4a419f['prefix'],_0x4a419f)(_0x4a10f6),(0x0,decorator_1[_0x59824c(0x1bc)])(action_1[_0x59824c(0x1ab)],{'prefix':_0x4a419f['prefix'],'module':_0xec8a70[_0x59824c(0x1a3)],'pprefix':_0xec8a70[_0x59824c(0x1be)],'filepath':_0xec8a70['filepath'],'routerOptions':_0x4a419f},_0x4a10f6);};}exports[a3_0x33f99d(0x1ac)]=Action;function parseRoute(_0x212da4){const _0x556247=a3_0x33f99d;_0x212da4=_0x212da4[_0x556247(0x1ca)](/(\\|\/)/g,'/');const _0x3e3336=process[_0x556247(0x1c5)]()[_0x556247(0x1ca)](/(\\|\/)/g,'/'),_0x4d7a45=_0x212da4[_0x556247(0x19a)](0x0,_0x3e3336[_0x556247(0x1b7)]+_0x212da4[_0x556247(0x19a)](_0x3e3336['length']+0x1)[_0x556247(0x1a2)]('/')+0x1),_0x506e96=_0x212da4[_0x556247(0x19a)](_0x4d7a45['length']+0x1)[_0x556247(0x1ca)](/(\\|\/)/g,'/'),_0x40c3cd={'route':'','prefix':![],'module':![],'rootpath':_0x4d7a45,'filepath':_0x506e96};if(_0x506e96[_0x556247(0x1c8)](_0x556247(0x1bd))){const _0x489bca=_0x506e96[_0x556247(0x19a)](_0x556247(0x1bd)['length'])['split']('/')[_0x556247(0x1c1)](_0x4e8ac9=>_0x4e8ac9&&_0x4e8ac9[_0x556247(0x1cb)]());return _0x489bca[_0x556247(0x1b7)]>0x1&&(_0x40c3cd[_0x556247(0x1be)]=_0x489bca[0x0]['toLowerCase'](),_0x489bca[_0x556247(0x1b3)](0x0,0x1)),_0x40c3cd[_0x556247(0x1b5)]=('/'+_0x489bca['join']('/'))[_0x556247(0x1ca)](/(\.ts|\.js)$/,'')[_0x556247(0x1ca)](/\/{2,}/g,'/')[_0x556247(0x198)](/[\/|A-Z]*[^A-Z]+/g)[_0x556247(0x1a0)]('-')[_0x556247(0x1c7)]()[_0x556247(0x1ca)](/\/\-/g,'/'),_0x40c3cd['route'][_0x556247(0x1b8)](_0x556247(0x1c0))&&(_0x40c3cd[_0x556247(0x1b5)]=_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x19a)](0x0,_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x1b7)]-0x7)),_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x1b8)](_0x556247(0x1c9))&&(_0x40c3cd[_0x556247(0x1b5)]=_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x19a)](0x0,_0x40c3cd[_0x556247(0x1b5)]['length']-0xb)),_0x40c3cd;}else{if(_0x506e96[_0x556247(0x1c8)]('apps/')){const _0x4d1f8f=_0x506e96['substring'](0x0,_0x506e96[_0x556247(0x1a2)](_0x556247(0x1c3))+0x5),_0x364c6d=_0x506e96['substring'](_0x4d1f8f['length']+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x506e96[_0x556247(0x1c8)](_0x556247(0x1a4)+_0x364c6d+_0x556247(0x19b))){const _0x5390c9=_0x506e96[_0x556247(0x19a)]((_0x4d1f8f+'/'+_0x364c6d+_0x556247(0x19b))[_0x556247(0x1b7)])[_0x556247(0x1b2)]('/')[_0x556247(0x1c1)](_0x5d758f=>_0x5d758f&&_0x5d758f[_0x556247(0x1cb)]());return _0x5390c9[_0x556247(0x1b7)]>0x1&&(_0x40c3cd[_0x556247(0x1be)]=_0x5390c9[0x0][_0x556247(0x1c7)](),_0x5390c9[_0x556247(0x1b3)](0x0,0x1)),_0x40c3cd['module']=_0x364c6d,_0x40c3cd[_0x556247(0x1b5)]=('/'+_0x364c6d+'/'+_0x5390c9[_0x556247(0x1a0)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x556247(0x1c7)]()[_0x556247(0x1ca)](/\/\-/g,'/'),_0x40c3cd['route'][_0x556247(0x1b8)](_0x556247(0x1c0))&&(_0x40c3cd[_0x556247(0x1b5)]=_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x19a)](0x0,_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x1b7)]-0x7)),_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x1b8)](_0x556247(0x1c9))&&(_0x40c3cd['route']=_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x19a)](0x0,_0x40c3cd[_0x556247(0x1b5)][_0x556247(0x1b7)]-0xb)),_0x40c3cd;}throw new Error(_0x506e96+_0x556247(0x1af)+_0x364c6d+'/controller/文件下');}}throw new Error(_0x506e96+'\x20文件请放在app/controller/文件下');}exports[a3_0x33f99d(0x1b1)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x1761(){const _0x49f7c8=['@midwayjs/decorator','2PVFTzT','createCustomMethodDecorator','2490boIPBe','validationOptions','110LhUyRp','160352tMydMm','Api','apimit','13591633ykCHFA','4562720argBUD','63680LoZWzB','description','10zmkimP','attachClassMetadata','routerName','ACTION_ROUTE_KEY','validate','filter','Validator','2076780CNjtRs','@anncic-api/validator','defineProperty','15071AvuwCD','utc','middleware','toLowerCase','../types/action','RequestMapping','del','delete','length','2475549skZNhg','middlewareIgnore','assign'];a4_0x1761=function(){return _0x49f7c8;};return a4_0x1761();}const a4_0x459674=a4_0x566f;(function(_0x10c1a7,_0x3be5e2){const _0x4c43dc=a4_0x566f,_0x4a77e5=_0x10c1a7();while(!![]){try{const _0x2d50f5=parseInt(_0x4c43dc(0x1ee))/0x1+-parseInt(_0x4c43dc(0x207))/0x2*(-parseInt(_0x4c43dc(0x1f7))/0x3)+-parseInt(_0x4c43dc(0x1e9))/0x4*(-parseInt(_0x4c43dc(0x1e8))/0x5)+-parseInt(_0x4c43dc(0x1e6))/0x6*(-parseInt(_0x4c43dc(0x1fa))/0x7)+-parseInt(_0x4c43dc(0x1ed))/0x8+-parseInt(_0x4c43dc(0x203))/0x9*(parseInt(_0x4c43dc(0x1f0))/0xa)+-parseInt(_0x4c43dc(0x1ec))/0xb;if(_0x2d50f5===_0x3be5e2)break;else _0x4a77e5['push'](_0x4a77e5['shift']());}catch(_0x310702){_0x4a77e5['push'](_0x4a77e5['shift']());}}}(a4_0x1761,0x6df3f));Object[a4_0x459674(0x1f9)](exports,'__esModule',{'value':!![]}),exports[a4_0x459674(0x1ea)]=void 0x0;const validator_1=require(a4_0x459674(0x1f8)),decorator_1=require(a4_0x459674(0x206)),action_1=require(a4_0x459674(0x1fe));function Api(_0x58243,_0x3b0cf3='get',_0x4bfb85='/',_0x343233={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5016d7,_0xf6adc6,_0x298abe)=>{const _0x4ec389=a4_0x566f;var _0x2e2de3,_0x5ea9f3,_0x3d4bad;!_0x343233[_0x4ec389(0x1fc)]&&(_0x343233[_0x4ec389(0x1fc)]=[]);!((_0x2e2de3=_0x343233===null||_0x343233===void 0x0?void 0x0:_0x343233['validate'])===null||_0x2e2de3===void 0x0?void 0x0:_0x2e2de3[_0x4ec389(0x1e7)])&&(_0x343233[_0x4ec389(0x1f4)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x4ec389(0x1fb)}});if(((_0x5ea9f3=_0x343233===null||_0x343233===void 0x0?void 0x0:_0x343233[_0x4ec389(0x1fc)])===null||_0x5ea9f3===void 0x0?void 0x0:_0x5ea9f3[_0x4ec389(0x202)])>0x0&&((_0x3d4bad=_0x343233===null||_0x343233===void 0x0?void 0x0:_0x343233[_0x4ec389(0x204)])===null||_0x3d4bad===void 0x0?void 0x0:_0x3d4bad[_0x4ec389(0x202)])>0x0)for(let _0x46ba93 in _0x343233[_0x4ec389(0x1fc)]){_0x343233['middlewareIgnore']['indexOf'](_0x343233[_0x4ec389(0x1fc)][_0x46ba93])!==-0x1&&(_0x343233[_0x4ec389(0x1fc)][_0x46ba93]=null);}_0x343233[_0x4ec389(0x1f2)]=_0x58243,(0x0,validator_1[_0x4ec389(0x1f6)])(_0x343233[_0x4ec389(0x1f4)])(_0x5016d7,_0xf6adc6,_0x298abe),(0x0,decorator_1[_0x4ec389(0x1ff)])(Object[_0x4ec389(0x205)](_0x343233,{'path':_0x4bfb85,'requestMethod':(_0x3b0cf3==_0x4ec389(0x200)?'delete':_0x3b0cf3)[_0x4ec389(0x1fd)]()}))(_0x5016d7,_0xf6adc6,_0x298abe),(0x0,decorator_1[_0x4ec389(0x1f1)])(action_1[_0x4ec389(0x1f3)],{'path':_0x4bfb85,'method':_0xf6adc6,'apimit':_0x343233[_0x4ec389(0x1eb)],'routerName':_0x343233[_0x4ec389(0x1f2)],'description':_0x343233[_0x4ec389(0x1ef)],'middleware':(_0x343233[_0x4ec389(0x1fc)]||[])[_0x4ec389(0x1f5)](_0x18c999=>!!_0x18c999),'requestMethod':(_0x3b0cf3==_0x4ec389(0x200)?'delete':_0x3b0cf3)['toLowerCase']()},_0x5016d7),(0x0,decorator_1[_0x4ec389(0x208)])(action_1[_0x4ec389(0x1f3)],{'path':_0x4bfb85,'method':_0xf6adc6,'apimit':_0x343233[_0x4ec389(0x1eb)],'routerName':_0x343233[_0x4ec389(0x1f2)],'description':_0x343233[_0x4ec389(0x1ef)],'middleware':(_0x343233[_0x4ec389(0x1fc)]||[])[_0x4ec389(0x1f5)](_0x538dd8=>!!_0x538dd8),'requestMethod':(_0x3b0cf3==_0x4ec389(0x200)?_0x4ec389(0x201):_0x3b0cf3)[_0x4ec389(0x1fd)]()})(_0x5016d7,_0xf6adc6,_0x298abe);};}function a4_0x566f(_0xc03b2d,_0x59c730){const _0x176190=a4_0x1761();return a4_0x566f=function(_0x566fee,_0x5207a6){_0x566fee=_0x566fee-0x1e6;let _0x54df71=_0x176190[_0x566fee];return _0x54df71;},a4_0x566f(_0xc03b2d,_0x59c730);}exports[a4_0x459674(0x1ea)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x130f5a=a5_0x5b0b;(function(_0xfa9faa,_0x252c9c){const _0x485829=a5_0x5b0b,_0x24b350=_0xfa9faa();while(!![]){try{const _0x2b939b=-parseInt(_0x485829(0x16f))/0x1*(parseInt(_0x485829(0x16b))/0x2)+-parseInt(_0x485829(0x179))/0x3+-parseInt(_0x485829(0x16c))/0x4*(parseInt(_0x485829(0x17c))/0x5)+parseInt(_0x485829(0x16e))/0x6+-parseInt(_0x485829(0x176))/0x7+-parseInt(_0x485829(0x16a))/0x8*(parseInt(_0x485829(0x17b))/0x9)+parseInt(_0x485829(0x172))/0xa*(parseInt(_0x485829(0x178))/0xb);if(_0x2b939b===_0x252c9c)break;else _0x24b350['push'](_0x24b350['shift']());}catch(_0x1bf7fd){_0x24b350['push'](_0x24b350['shift']());}}}(a5_0x5287,0xd0f10));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Apitest']=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x130f5a(0x171)),ApitestService_1=require('../service/ApitestService');function a5_0x5287(){const _0x58f3f0=['isDevelopmentEnvironment','value','filepath','2752477hqRzQg','getAsync','154olQNzk','3833466QunAIU','REQUEST_OBJ_CTX_KEY','21447XiRmTA','80ptkNSm','MidwayEnvironmentService','get','RequestMapping','getConfig','getApplicationContext','1000SMoMIV','1174nedGEl','376864TrrRaJ','apidoc','2450604zuJWwd','2396teBAut','/apitest','@midwayjs/core','3807290wWWuBW'];a5_0x5287=function(){return _0x58f3f0;};return a5_0x5287();}function a5_0x5b0b(_0x45677a,_0x5c7a4d){const _0x528709=a5_0x5287();return a5_0x5b0b=function(_0x5b0b19,_0x4aaaaa){_0x5b0b19=_0x5b0b19-0x166;let _0x56ba58=_0x528709[_0x5b0b19];return _0x56ba58;},a5_0x5b0b(_0x45677a,_0x5c7a4d);}function Apitest(_0x31d376=a5_0x130f5a(0x170),_0x37941b){return(_0x5afdab,_0x29d411,_0x3bad6d)=>{const _0x17d029=a5_0x5b0b;return(0x0,decorator_1[_0x17d029(0x167)])({'path':_0x31d376,'requestMethod':_0x17d029(0x166)})(_0x5afdab,_0x29d411,_0x3bad6d),_0x3bad6d[_0x17d029(0x174)]=async function(..._0x4d8df8){const _0xf2b628=_0x17d029;var _0x5ea088;const _0x4ec726=(_0x5ea088=this[core_1[_0xf2b628(0x17a)]])===null||_0x5ea088===void 0x0?void 0x0:_0x5ea088['app'];if(_0x4ec726&&_0x4ec726[_0xf2b628(0x168)]('apitest')){const _0x1aaee8=await _0x4ec726[_0xf2b628(0x169)]()[_0xf2b628(0x177)](ApitestService_1['ApitestService']),_0x2d48c1=await _0x4ec726[_0xf2b628(0x169)]()['getAsync'](core_1[_0xf2b628(0x17d)]);return _0x2d48c1[_0xf2b628(0x173)]()&&(_0x37941b[_0xf2b628(0x175)]=!![]),await _0x1aaee8[_0xf2b628(0x16d)](_0x37941b);}return'';},_0x3bad6d;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0xdf6a(_0xecffdd,_0x13fcd7){var _0x12c936=a6_0x12c9();return a6_0xdf6a=function(_0xdf6aa2,_0x32eacb){_0xdf6aa2=_0xdf6aa2-0x19c;var _0x2095d5=_0x12c936[_0xdf6aa2];return _0x2095d5;},a6_0xdf6a(_0xecffdd,_0x13fcd7);}var a6_0x3b8d42=a6_0xdf6a;function a6_0x12c9(){var _0x1afb91=['1179jTACTJ','length','ApiError','getOwnPropertyDescriptor','24rLyihV','2578464wKzPgg','metadata','网络繁忙,请稍后重试','334snzHjo','defineProperty','17421ppKcLm','145831lbMKvK','design:type','checkcode验证失败','__esModule','10AetwYQ','signature验证失败','__metadata','HEADERS_DEVICE','HEADERS_CHECKCODE','function','HEADERS_LACK','1225084RWRktz','19010HnSCRu','decorate','HEADERS_SIGNATURE','373244jzXyWo','7455481VpbZfI','请使用正确的设备','TIMEOUT','object','请求头信息不完整','318Fgkjvv'];a6_0x12c9=function(){return _0x1afb91;};return a6_0x12c9();}(function(_0x14052f,_0x364fe2){var _0xb5b7ab=a6_0xdf6a,_0x34583b=_0x14052f();while(!![]){try{var _0xb4bccf=parseInt(_0xb5b7ab(0x19c))/0x1+parseInt(_0xb5b7ab(0x1ab))/0x2*(parseInt(_0xb5b7ab(0x1ad))/0x3)+-parseInt(_0xb5b7ab(0x1b9))/0x4*(parseInt(_0xb5b7ab(0x1b2))/0x5)+-parseInt(_0xb5b7ab(0x1a2))/0x6*(-parseInt(_0xb5b7ab(0x1ae))/0x7)+parseInt(_0xb5b7ab(0x1a8))/0x8+-parseInt(_0xb5b7ab(0x1a3))/0x9*(parseInt(_0xb5b7ab(0x1ba))/0xa)+parseInt(_0xb5b7ab(0x19d))/0xb*(-parseInt(_0xb5b7ab(0x1a7))/0xc);if(_0xb4bccf===_0x364fe2)break;else _0x34583b['push'](_0x34583b['shift']());}catch(_0x2f3f0c){_0x34583b['push'](_0x34583b['shift']());}}}(a6_0x12c9,0x86da3));var __decorate=this&&this['__decorate']||function(_0x720868,_0x1c669c,_0x303711,_0x2e1d09){var _0x453f45=a6_0xdf6a,_0x1095d7=arguments[_0x453f45(0x1a4)],_0x5aa1ed=_0x1095d7<0x3?_0x1c669c:_0x2e1d09===null?_0x2e1d09=Object[_0x453f45(0x1a6)](_0x1c669c,_0x303711):_0x2e1d09,_0x13f58b;if(typeof Reflect===_0x453f45(0x1a0)&&typeof Reflect['decorate']===_0x453f45(0x1b7))_0x5aa1ed=Reflect[_0x453f45(0x1bb)](_0x720868,_0x1c669c,_0x303711,_0x2e1d09);else{for(var _0x39bada=_0x720868[_0x453f45(0x1a4)]-0x1;_0x39bada>=0x0;_0x39bada--)if(_0x13f58b=_0x720868[_0x39bada])_0x5aa1ed=(_0x1095d7<0x3?_0x13f58b(_0x5aa1ed):_0x1095d7>0x3?_0x13f58b(_0x1c669c,_0x303711,_0x5aa1ed):_0x13f58b(_0x1c669c,_0x303711))||_0x5aa1ed;}return _0x1095d7>0x3&&_0x5aa1ed&&Object[_0x453f45(0x1ac)](_0x1c669c,_0x303711,_0x5aa1ed),_0x5aa1ed;},__metadata=this&&this[a6_0x3b8d42(0x1b4)]||function(_0x1a9b87,_0x591cea){var _0x6780de=a6_0x3b8d42;if(typeof Reflect===_0x6780de(0x1a0)&&typeof Reflect[_0x6780de(0x1a9)]===_0x6780de(0x1b7))return Reflect[_0x6780de(0x1a9)](_0x1a9b87,_0x591cea);};Object[a6_0x3b8d42(0x1ac)](exports,a6_0x3b8d42(0x1b1),{'value':!![]}),exports[a6_0x3b8d42(0x1a5)]=void 0x0;class ApiError{}ApiError[a6_0x3b8d42(0x19f)]=0x18a89,ApiError[a6_0x3b8d42(0x1b8)]=0x18a8a,ApiError[a6_0x3b8d42(0x1b5)]=0x18a8b,ApiError[a6_0x3b8d42(0x1b6)]=0x18a8c,ApiError[a6_0x3b8d42(0x1bc)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x3b8d42(0x1aa)),__metadata(a6_0x3b8d42(0x1af),Object)],ApiError,a6_0x3b8d42(0x19f),void 0x0),__decorate([AnnErrorMsg(a6_0x3b8d42(0x1a1)),__metadata(a6_0x3b8d42(0x1af),Object)],ApiError,a6_0x3b8d42(0x1b8),void 0x0),__decorate([AnnErrorMsg(a6_0x3b8d42(0x19e)),__metadata(a6_0x3b8d42(0x1af),Object)],ApiError,a6_0x3b8d42(0x1b5),void 0x0),__decorate([AnnErrorMsg(a6_0x3b8d42(0x1b0)),__metadata(a6_0x3b8d42(0x1af),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x3b8d42(0x1b3)),__metadata(a6_0x3b8d42(0x1af),Object)],ApiError,a6_0x3b8d42(0x1bc),void 0x0),exports['ApiError']=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x32c4d4=a7_0x4405;(function(_0x396b84,_0x40d328){const _0x1c0cfc=a7_0x4405,_0x181d75=_0x396b84();while(!![]){try{const _0x295998=parseInt(_0x1c0cfc(0x15f))/0x1+parseInt(_0x1c0cfc(0x174))/0x2*(parseInt(_0x1c0cfc(0x1a1))/0x3)+parseInt(_0x1c0cfc(0x199))/0x4*(parseInt(_0x1c0cfc(0x171))/0x5)+parseInt(_0x1c0cfc(0x178))/0x6+-parseInt(_0x1c0cfc(0x187))/0x7+-parseInt(_0x1c0cfc(0x193))/0x8*(parseInt(_0x1c0cfc(0x1a8))/0x9)+-parseInt(_0x1c0cfc(0x169))/0xa*(-parseInt(_0x1c0cfc(0x188))/0xb);if(_0x295998===_0x40d328)break;else _0x181d75['push'](_0x181d75['shift']());}catch(_0x5e7043){_0x181d75['push'](_0x181d75['shift']());}}}(a7_0x4af0,0x6868c));Object[a7_0x32c4d4(0x180)](exports,a7_0x32c4d4(0x154),{'value':!![]}),exports['getRoutes']=void 0x0;function a7_0x4405(_0x39bd1f,_0x1106b4){const _0x4af04e=a7_0x4af0();return a7_0x4405=function(_0x44055a,_0x175955){_0x44055a=_0x44055a-0x154;let _0x5d784a=_0x4af04e[_0x44055a];return _0x5d784a;},a7_0x4405(_0x39bd1f,_0x1106b4);}const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x32c4d4(0x1a4)),decorator_2=require(a7_0x32c4d4(0x1a4)),decorator_3=require(a7_0x32c4d4(0x1a4)),action_1=require('../types/action');function getRoutes(_0x4a4a2f={'prefix':'/','module':![]}){const _0x52048c=a7_0x32c4d4;var _0x52a37d,_0xd31f9c;const _0x51242e=(0x0,decorator_3[_0x52048c(0x159)])(action_1['ACTION_KEY']),_0x14df52={},_0x32eb6a=Array[_0x52048c(0x17b)](_0x4a4a2f[_0x52048c(0x16c)]||[])?_0x4a4a2f['filter']||[]:[_0x4a4a2f[_0x52048c(0x16c)]];_0x5c8cad:for(const _0x4ab92a of _0x51242e){let _0x4addac=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x158)],_0x4ab92a),_0x3ba295=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x18a)],_0x4ab92a);if(_0x4addac&&_0x3ba295){let _0xf0e6e9=_0x4addac['prefix'],_0x372cbf={};if(_0x4a4a2f[_0x52048c(0x18e)]&&(0x0,lodash_1[_0x52048c(0x183)])(_0x4addac,'module',![])!=_0x4a4a2f[_0x52048c(0x18e)])continue _0x5c8cad;else{if(_0x4a4a2f[_0x52048c(0x18e)]===![]&&!!(0x0,lodash_1['get'])(_0x4addac,_0x52048c(0x18e),null))continue _0x5c8cad;}if(_0x4a4a2f['prefix']&&!_0xf0e6e9[_0x52048c(0x19c)](_0x4a4a2f[_0x52048c(0x1ae)]))continue _0x5c8cad;_0xf0e6e9!=='/'?(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)]['tagName'])||(/^\//[_0x52048c(0x16e)](_0xf0e6e9)?_0xf0e6e9[_0x52048c(0x16b)]('/')[0x1]:_0xf0e6e9),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x1ac)])||_0x372cbf[_0x52048c(0x176)],_0x372cbf[_0x52048c(0x186)]=[]):(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x185)])||_0x52048c(0x15c),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac['routerOptions']['description'])||'',_0x372cbf['routes']=[]);_0x4a4a2f[_0x52048c(0x181)]&&(_0x372cbf[_0x52048c(0x181)]=_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x181)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x190)])&&(_0x372cbf[_0x52048c(0x1ae)]=_0x4addac[_0x52048c(0x190)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x18e)])&&(_0x372cbf[_0x52048c(0x18e)]=_0x4addac[_0x52048c(0x18e)]);let _0x3c2658=(0x0,decorator_3[_0x52048c(0x161)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x4ab92a)||{};if(typeof _0x3ba295[Symbol[_0x52048c(0x157)]]===_0x52048c(0x18d))for(let _0x272e80 of _0x3ba295){let _0x10f00a={};_0x10f00a[_0x52048c(0x17d)]=_0x272e80['requestMethod'],_0x10f00a[_0x52048c(0x175)]=(_0xf0e6e9+_0x272e80[_0x52048c(0x17a)])[_0x52048c(0x1a5)](/\/{1,}/,'/'),_0x10f00a[_0x52048c(0x176)]=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80['routerName'])||_0x372cbf[_0x52048c(0x176)]||'default',_0x10f00a['description']=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80[_0x52048c(0x1ac)])||'',_0x10f00a[_0x52048c(0x182)]=[];if(!(0x0,lodash_1['startsWith'])(_0x10f00a[_0x52048c(0x175)],'static/apitest')&&!(0x0,lodash_1[_0x52048c(0x19c)])(_0x10f00a[_0x52048c(0x175)],_0x52048c(0x166))&&_0x32eb6a['indexOf'](_0x10f00a[_0x52048c(0x175)])===-0x1){if(!(_0x4a4a2f===null||_0x4a4a2f===void 0x0?void 0x0:_0x4a4a2f[_0x52048c(0x198)])){let _0x57c7ae=(0x0,decorator_3[_0x52048c(0x155)])(new _0x4ab92a(),_0x272e80[_0x52048c(0x17d)]);for(const _0x280bcf in _0x57c7ae){let _0x2be4f6=(_0x52a37d=_0x3c2658[_0x272e80[_0x52048c(0x17d)]])===null||_0x52a37d===void 0x0?void 0x0:_0x52a37d[_0x52048c(0x18f)](_0x368ace=>_0x368ace[_0x52048c(0x189)]==_0x280bcf&&_0x368ace[_0x52048c(0x195)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x368ace===null||_0x368ace===void 0x0?void 0x0:_0x368ace[_0x52048c(0x17f)]));if(_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)]){let _0x25cb8d=convertTypeToString(_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x170)]||0x0);if(['query',_0x52048c(0x1a3)]['indexOf'](_0x25cb8d)!=-0x1&&_0x2be4f6['metadata'][_0x52048c(0x156)][_0x52048c(0x15d)](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)][_0x52048c(0x18f)](_0x31d3fe=>_0x31d3fe['key']==_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x156)]))_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'title':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'type':convertSchemaType(_0x57c7ae[_0x2be4f6['parameterIndex']][_0x52048c(0x1a7)]),'required':![],'default':'','desc':''});else{if(_0x25cb8d==_0x52048c(0x18b)){let _0x3e1c15=((_0xd31f9c=_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)])===null||_0xd31f9c===void 0x0?void 0x0:_0xd31f9c['propertyData'])||_0x52048c(0x18b);_0x3e1c15['indexOf'](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)]['find'](_0x2589be=>_0x2589be[_0x52048c(0x195)]==_0x3e1c15&&_0x2589be[_0x52048c(0x170)]=='file')&&_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x3e1c15,'title':'文件上传-'+_0x3e1c15,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x36f9af=(0x0,decorator_3[_0x52048c(0x191)])(validator_1[_0x52048c(0x16d)],_0x57c7ae[_0x280bcf]);_0x36f9af&&_0x10f00a['request'][_0x52048c(0x162)](...getJoiRequest(_0x36f9af));}}}_0x372cbf[_0x52048c(0x186)][_0x52048c(0x162)](_0x10f00a);}}if(_0x372cbf[_0x52048c(0x186)][_0x52048c(0x15a)]>0x0){let _0x583096=_0x14df52[_0xf0e6e9];_0x583096?(_0x583096[_0x52048c(0x176)]!=_0x372cbf[_0x52048c(0x176)]&&(_0x583096[_0x52048c(0x176)]=_0x583096[_0x52048c(0x176)]+','+_0x372cbf['summary']),_0x583096[_0x52048c(0x1ac)]!=_0x372cbf[_0x52048c(0x1ac)]&&(_0x583096[_0x52048c(0x1ac)]=_0x583096[_0x52048c(0x1ac)]+','+_0x372cbf['description']),_0x583096[_0x52048c(0x186)]=_0x583096[_0x52048c(0x186)][_0x52048c(0x1ab)](_0x372cbf[_0x52048c(0x186)]),_0x14df52[_0xf0e6e9]=_0x583096):_0x14df52[_0xf0e6e9]=_0x372cbf;}}}return _0x14df52;}exports['getRoutes']=getRoutes;function a7_0x4af0(){const _0x5ab148=['noreq','12ghHFJp','File','boolean','startsWith','FILESTREAM','number','log','header','1062606ungSSZ','HEADERS','body','@midwayjs/decorator','replace','FILESSTREAM','name','451998EwcdQv','QUERY','FIELDS','concat','description','flags.description','prefix','BODY','__esModule','getMethodParamTypes','propertyData','iterator','ACTION_KEY','listModule','length','flags.default','default','indexOf','string','328902bevKKR','-array','getClassMetadata','push','flags.presence','args','RouteParamTypes','/static/apitest','children','max','4642130oHnKsV','Boolean','split','filter','RULES_KEY','test','title','type','460885cmpoPP','min','required','2SXUYDv','route','summary','query','427164OUjygb','object','path','isArray','limit','method','rules','metadata','defineProperty','filepath','request','get','items','tagName','routes','3604580ybagUv','11zUFqIJ','parameterIndex','ACTION_ROUTE_KEY','file','allow','function','module','find','pprefix','getClassExtendedMetadata','describe','88VZSvcf','routerOptions','key','array','keys'];a7_0x4af0=function(){return _0x5ab148;};return a7_0x4af0();}function getJoiRequest(_0x3a9f3d){const _0x590f02=a7_0x32c4d4,_0xaca174=[];for(let _0x1e0c9d in _0x3a9f3d){const _0x58d9aa={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x384056=typeof _0x3a9f3d[_0x1e0c9d]['describe']==_0x590f02(0x18d)?_0x3a9f3d[_0x1e0c9d][_0x590f02(0x192)]():_0x3a9f3d[_0x1e0c9d];_0x58d9aa['key']=_0x1e0c9d,_0x58d9aa[_0x590f02(0x170)]=_0x384056[_0x590f02(0x170)],_0x58d9aa[_0x590f02(0x16f)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,'flags.label',_0x1e0c9d),_0x58d9aa[_0x590f02(0x15c)]=(0x0,lodash_1['get'])(_0x384056,_0x590f02(0x15b),''),_0x58d9aa[_0x590f02(0x173)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x163),'')=='required',_0x58d9aa['description']=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x1ad),'');if(_0x384056['type']==_0x590f02(0x179))_0x58d9aa[_0x590f02(0x167)]=getJoiRequest(_0x384056[_0x590f02(0x197)]);else _0x384056[_0x590f02(0x170)]==_0x590f02(0x196)&&_0x384056['items']&&Array[_0x590f02(0x17b)](_0x384056['items'])&&_0x384056[_0x590f02(0x184)][0x0]&&console[_0x590f02(0x19f)](_0x1e0c9d+_0x590f02(0x160),_0x384056);_0x384056[_0x590f02(0x18c)]&&Array[_0x590f02(0x17b)](_0x384056['allow'])&&_0x384056[_0x590f02(0x18c)][_0x590f02(0x15a)]>0x0&&(_0x58d9aa[_0x590f02(0x1ac)]='只允许:['+_0x384056[_0x590f02(0x18c)]['join'](',')+'];'+_0x58d9aa[_0x590f02(0x1ac)]);if(_0x58d9aa['key']&&_0x58d9aa['type']){const _0x51720e={};for(const _0x48b5d5 of _0x384056['rules']||[]){if(_0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x172)&&_0x48b5d5[_0x590f02(0x164)])_0x51720e['min']=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)];else _0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x168)&&(_0x51720e[_0x590f02(0x168)]=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)]);}_0x58d9aa[_0x590f02(0x17e)]=_0x51720e;}_0x58d9aa[_0x590f02(0x195)]&&_0x58d9aa[_0x590f02(0x16f)]&&_0xaca174[_0x590f02(0x162)](_0x58d9aa);}return _0xaca174;}function convertSchemaType(_0x1f703a){const _0x37c8db=a7_0x32c4d4;switch(_0x1f703a){case'Object':return _0x37c8db(0x179);case _0x37c8db(0x16a):return _0x37c8db(0x19b);case'Number':return _0x37c8db(0x19e);case'String':return _0x37c8db(0x15e);case _0x37c8db(0x19a):return _0x37c8db(0x18b);default:return _0x37c8db(0x15e);}}function convertTypeToString(_0x4b30cb){const _0x2d8824=a7_0x32c4d4;switch(_0x4b30cb){case decorator_1['RouteParamTypes'][_0x2d8824(0x1a2)]:return _0x2d8824(0x1a0);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a9)]:return _0x2d8824(0x177);case decorator_1[_0x2d8824(0x165)]['PARAM']:return _0x2d8824(0x17a);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1af)]:return _0x2d8824(0x1a3);case decorator_1['RouteParamTypes'][_0x2d8824(0x1aa)]:case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a6)]:case decorator_1['RouteParamTypes'][_0x2d8824(0x19d)]:return _0x2d8824(0x18b);default:return _0x2d8824(0x1a0);}}
|
|
1
|
+
'use strict';const a7_0x7c4ac6=a7_0x3b56;function a7_0x3b56(_0x2ab0b0,_0x19e920){const _0x56261e=a7_0x5626();return a7_0x3b56=function(_0x3b56ff,_0x132ee2){_0x3b56ff=_0x3b56ff-0x8b;let _0xfabad3=_0x56261e[_0x3b56ff];return _0xfabad3;},a7_0x3b56(_0x2ab0b0,_0x19e920);}(function(_0x5d7bc6,_0xf04c77){const _0x2d5e32=a7_0x3b56,_0x4958dd=_0x5d7bc6();while(!![]){try{const _0x1b9d7c=-parseInt(_0x2d5e32(0xb2))/0x1+-parseInt(_0x2d5e32(0xe4))/0x2*(parseInt(_0x2d5e32(0x99))/0x3)+parseInt(_0x2d5e32(0xaf))/0x4+parseInt(_0x2d5e32(0xc4))/0x5*(parseInt(_0x2d5e32(0xcd))/0x6)+-parseInt(_0x2d5e32(0x9c))/0x7*(-parseInt(_0x2d5e32(0xc7))/0x8)+-parseInt(_0x2d5e32(0xe5))/0x9*(parseInt(_0x2d5e32(0x9f))/0xa)+-parseInt(_0x2d5e32(0xed))/0xb*(-parseInt(_0x2d5e32(0x93))/0xc);if(_0x1b9d7c===_0xf04c77)break;else _0x4958dd['push'](_0x4958dd['shift']());}catch(_0x12bb11){_0x4958dd['push'](_0x4958dd['shift']());}}}(a7_0x5626,0xb4a72));Object[a7_0x7c4ac6(0xba)](exports,a7_0x7c4ac6(0xa6),{'value':!![]}),exports[a7_0x7c4ac6(0xaa)]=void 0x0;const lodash_1=require(a7_0x7c4ac6(0xe3)),validator_1=require(a7_0x7c4ac6(0xad)),decorator_1=require(a7_0x7c4ac6(0xbb)),decorator_2=require(a7_0x7c4ac6(0xbb)),decorator_3=require(a7_0x7c4ac6(0xbb)),action_1=require('../types/action');function getRoutes(_0x457fd7={'prefix':'/','module':![]}){const _0x158a1a=a7_0x7c4ac6;var _0x4723cf,_0x442810;const _0x4a818c=(0x0,decorator_3[_0x158a1a(0xd5)])(action_1[_0x158a1a(0x9b)]),_0x47b499={},_0x30424c=Array[_0x158a1a(0xb8)](_0x457fd7[_0x158a1a(0xec)]||[])?_0x457fd7[_0x158a1a(0xec)]||[]:[_0x457fd7[_0x158a1a(0xec)]];_0x3a368d:for(const _0x400115 of _0x4a818c){let _0xc4bf5=(0x0,decorator_3[_0x158a1a(0xd8)])(action_1[_0x158a1a(0x9b)],_0x400115),_0x4a6324=(0x0,decorator_3[_0x158a1a(0xd8)])(action_1[_0x158a1a(0xb1)],_0x400115);if(_0xc4bf5&&_0x4a6324){let _0x2eb527=_0xc4bf5[_0x158a1a(0xb9)],_0x237a3f={};if(_0x457fd7[_0x158a1a(0xe1)]&&(0x0,lodash_1['get'])(_0xc4bf5,'module',![])!=_0x457fd7[_0x158a1a(0xe1)])continue _0x3a368d;else{if(_0x457fd7[_0x158a1a(0xe1)]===![]&&!!(0x0,lodash_1[_0x158a1a(0x8d)])(_0xc4bf5,'module',null))continue _0x3a368d;}if(_0x457fd7[_0x158a1a(0xb9)]&&!_0x2eb527[_0x158a1a(0x9a)](_0x457fd7['prefix']))continue _0x3a368d;_0x2eb527!=='/'?(_0x237a3f['summary']=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0xa1)])||(/^\//[_0x158a1a(0x97)](_0x2eb527)?_0x2eb527[_0x158a1a(0x8b)]('/')[0x1]:_0x2eb527),_0x237a3f[_0x158a1a(0x9e)]=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0x9e)])||_0x237a3f[_0x158a1a(0xde)],_0x237a3f[_0x158a1a(0xe2)]=[]):(_0x237a3f[_0x158a1a(0xde)]=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0xa1)])||_0x158a1a(0x96),_0x237a3f['description']=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0x9e)])||'',_0x237a3f[_0x158a1a(0xe2)]=[]);_0x457fd7[_0x158a1a(0xb4)]&&(_0x237a3f[_0x158a1a(0xb4)]=_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xb4)]);(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xa3)])&&(_0x237a3f[_0x158a1a(0xb9)]=_0xc4bf5['pprefix']);(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xe1)])&&(_0x237a3f['module']=_0xc4bf5[_0x158a1a(0xe1)]);let _0x52c80e=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x158a1a(0xdd)],_0x400115)||{};if(typeof _0x4a6324[Symbol[_0x158a1a(0xe0)]]==='function')for(let _0x44cd9a of _0x4a6324){let _0x31b262={};_0x31b262[_0x158a1a(0xb5)]=_0x44cd9a[_0x158a1a(0xca)],_0x31b262['route']=(_0x2eb527+_0x44cd9a[_0x158a1a(0xcf)])[_0x158a1a(0xac)](/\/{1,}/,'/'),_0x31b262[_0x158a1a(0xde)]=(_0x44cd9a===null||_0x44cd9a===void 0x0?void 0x0:_0x44cd9a[_0x158a1a(0xd6)])||_0x237a3f[_0x158a1a(0xde)]||_0x158a1a(0x96),_0x31b262['description']=(_0x44cd9a===null||_0x44cd9a===void 0x0?void 0x0:_0x44cd9a[_0x158a1a(0x9e)])||'',_0x31b262['request']=[];if(!(0x0,lodash_1[_0x158a1a(0x9a)])(_0x31b262['route'],_0x158a1a(0xd0))&&!(0x0,lodash_1[_0x158a1a(0x9a)])(_0x31b262[_0x158a1a(0xd1)],'/static/apitest')&&_0x30424c[_0x158a1a(0xe9)](_0x31b262[_0x158a1a(0xd1)])===-0x1){if(!(_0x457fd7===null||_0x457fd7===void 0x0?void 0x0:_0x457fd7[_0x158a1a(0xe6)])){let _0x2fb313=(0x0,decorator_3['getMethodParamTypes'])(new _0x400115(),_0x44cd9a[_0x158a1a(0xb5)]);for(const _0xebbc18 in _0x2fb313){let _0x81938e=(_0x4723cf=_0x52c80e[_0x44cd9a['method']])===null||_0x4723cf===void 0x0?void 0x0:_0x4723cf[_0x158a1a(0xc8)](_0x147818=>_0x147818[_0x158a1a(0xa5)]==_0xebbc18&&_0x147818[_0x158a1a(0xc0)]===decorator_2[_0x158a1a(0xab)]&&(_0x147818===null||_0x147818===void 0x0?void 0x0:_0x147818['metadata']));if(_0x81938e===null||_0x81938e===void 0x0?void 0x0:_0x81938e['metadata']){let _0x331f8f=convertTypeToString(_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xee)]||0x0);if(['query','body'][_0x158a1a(0xe9)](_0x331f8f)!=-0x1&&_0x81938e[_0x158a1a(0xc9)]['propertyData']['indexOf'](':')==-0x1&&!_0x31b262['request']['find'](_0x1ae5ba=>_0x1ae5ba[_0x158a1a(0xc0)]==_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xcc)]))_0x31b262['request'][_0x158a1a(0x94)]({'key':_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xcc)],'title':_0x81938e[_0x158a1a(0xc9)]['propertyData'],'type':convertSchemaType(_0x2fb313[_0x81938e[_0x158a1a(0xa5)]][_0x158a1a(0xda)]),'required':![],'default':'','desc':''});else{if(_0x331f8f==_0x158a1a(0xa4)){let _0x185944=((_0x442810=_0x81938e===null||_0x81938e===void 0x0?void 0x0:_0x81938e[_0x158a1a(0xc9)])===null||_0x442810===void 0x0?void 0x0:_0x442810[_0x158a1a(0xcc)])||_0x158a1a(0xa4);_0x185944['indexOf'](':')==-0x1&&!_0x31b262[_0x158a1a(0xbd)]['find'](_0x1f489f=>_0x1f489f['key']==_0x185944&&_0x1f489f[_0x158a1a(0xee)]==_0x158a1a(0xa4))&&_0x31b262[_0x158a1a(0xbd)][_0x158a1a(0x94)]({'key':_0x185944,'title':_0x158a1a(0x90)+_0x185944,'type':_0x158a1a(0xa4),'required':!![],'default':'','desc':''});}}}else{const _0x3f74b0=(0x0,decorator_3[_0x158a1a(0xc1)])(validator_1[_0x158a1a(0xbc)],_0x2fb313[_0xebbc18]);_0x3f74b0&&_0x31b262[_0x158a1a(0xbd)][_0x158a1a(0x94)](...getJoiRequest(_0x3f74b0));}}}_0x237a3f['routes'][_0x158a1a(0x94)](_0x31b262);}}if(_0x237a3f[_0x158a1a(0xe2)][_0x158a1a(0xd7)]>0x0){let _0x48cd09=_0x47b499[_0x2eb527];_0x48cd09?(_0x48cd09[_0x158a1a(0xde)]!=_0x237a3f['summary']&&(_0x48cd09[_0x158a1a(0xde)]=_0x48cd09[_0x158a1a(0xde)]+','+_0x237a3f[_0x158a1a(0xde)]),_0x48cd09[_0x158a1a(0x9e)]!=_0x237a3f[_0x158a1a(0x9e)]&&(_0x48cd09['description']=_0x48cd09[_0x158a1a(0x9e)]+','+_0x237a3f[_0x158a1a(0x9e)]),_0x48cd09[_0x158a1a(0xe2)]=_0x48cd09[_0x158a1a(0xe2)][_0x158a1a(0xd4)](_0x237a3f['routes']),_0x47b499[_0x2eb527]=_0x48cd09):_0x47b499[_0x2eb527]=_0x237a3f;}}}return _0x47b499;}exports['getRoutes']=getRoutes;function a7_0x5626(){const _0x1bf19c=['getClassMetadata','keys','name','boolean','join','INJECT_CUSTOM_PARAM','summary','FILESTREAM','iterator','module','routes','lodash','446vtOuUL','18BHHpGl','noreq','args','BODY','indexOf','describe','limit','filter','11lLTQCg','type','split','rules','get','object','RouteParamTypes','文件上传-','routerOptions','File','10158204sEcGLv','push','title','default','test','flags.label','13971vngjnJ','startsWith','ACTION_KEY','6808151biorZG','min','description','4980990DOesvR','header','tagName','Number','pprefix','file','parameterIndex','__esModule','PARAM','string','items','getRoutes','WEB_ROUTER_PARAM_KEY','replace','@anncic-api/validator','allow','2058124oKwTlk','function','ACTION_ROUTE_KEY','98077zDbAav','FIELDS','filepath','method','required','flags.description','isArray','prefix','defineProperty','@midwayjs/decorator','RULES_KEY','request','Boolean','max','key','getClassExtendedMetadata','HEADERS','QUERY','55ILdQpM','FILESSTREAM','只允许:[','8MeHHuo','find','metadata','requestMethod','flags.default','propertyData','294054NdYPSb','-array','path','static/apitest','route','flags.presence','query','concat','listModule','routerName','length'];a7_0x5626=function(){return _0x1bf19c;};return a7_0x5626();}function getJoiRequest(_0x851b22){const _0x1690e3=a7_0x7c4ac6,_0x5b3766=[];for(let _0x1b9a26 in _0x851b22){const _0x57ecba={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x236bd7=typeof _0x851b22[_0x1b9a26]['describe']==_0x1690e3(0xb0)?_0x851b22[_0x1b9a26][_0x1690e3(0xea)]():_0x851b22[_0x1b9a26];_0x57ecba[_0x1690e3(0xc0)]=_0x1b9a26,_0x57ecba[_0x1690e3(0xee)]=_0x236bd7[_0x1690e3(0xee)],_0x57ecba['title']=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0x98),_0x1b9a26),_0x57ecba[_0x1690e3(0x96)]=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0xcb),''),_0x57ecba['required']=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0xd2),'')==_0x1690e3(0xb6),_0x57ecba[_0x1690e3(0x9e)]=(0x0,lodash_1['get'])(_0x236bd7,_0x1690e3(0xb7),'');if(_0x236bd7[_0x1690e3(0xee)]==_0x1690e3(0x8e))_0x57ecba['children']=getJoiRequest(_0x236bd7[_0x1690e3(0xd9)]);else _0x236bd7[_0x1690e3(0xee)]=='array'&&_0x236bd7[_0x1690e3(0xa9)]&&Array[_0x1690e3(0xb8)](_0x236bd7['items'])&&_0x236bd7[_0x1690e3(0xa9)][0x0]&&console['log'](_0x1b9a26+_0x1690e3(0xce),_0x236bd7);_0x236bd7[_0x1690e3(0xae)]&&Array['isArray'](_0x236bd7[_0x1690e3(0xae)])&&_0x236bd7[_0x1690e3(0xae)][_0x1690e3(0xd7)]>0x0&&(_0x57ecba[_0x1690e3(0x9e)]=_0x1690e3(0xc6)+_0x236bd7[_0x1690e3(0xae)][_0x1690e3(0xdc)](',')+'];'+_0x57ecba[_0x1690e3(0x9e)]);if(_0x57ecba[_0x1690e3(0xc0)]&&_0x57ecba['type']){const _0x5d71ab={};for(const _0x14323d of _0x236bd7[_0x1690e3(0x8c)]||[]){if(_0x14323d[_0x1690e3(0xda)]===_0x1690e3(0x9d)&&_0x14323d[_0x1690e3(0xe7)])_0x5d71ab[_0x1690e3(0x9d)]=_0x14323d['args'][_0x1690e3(0xeb)];else _0x14323d['name']==='max'&&(_0x5d71ab[_0x1690e3(0xbf)]=_0x14323d[_0x1690e3(0xe7)][_0x1690e3(0xeb)]);}_0x57ecba[_0x1690e3(0x8c)]=_0x5d71ab;}_0x57ecba[_0x1690e3(0xc0)]&&_0x57ecba[_0x1690e3(0x95)]&&_0x5b3766[_0x1690e3(0x94)](_0x57ecba);}return _0x5b3766;}function convertSchemaType(_0xdd3969){const _0x22dfde=a7_0x7c4ac6;switch(_0xdd3969){case'Object':return'object';case _0x22dfde(0xbe):return _0x22dfde(0xdb);case _0x22dfde(0xa2):return'number';case'String':return _0x22dfde(0xa8);case _0x22dfde(0x92):return _0x22dfde(0xa4);default:return _0x22dfde(0xa8);}}function convertTypeToString(_0x2daa87){const _0x5d883f=a7_0x7c4ac6;switch(_0x2daa87){case decorator_1['RouteParamTypes'][_0x5d883f(0xc2)]:return _0x5d883f(0xa0);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xc3)]:return _0x5d883f(0xd3);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xa7)]:return _0x5d883f(0xcf);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xe8)]:return'body';case decorator_1['RouteParamTypes'][_0x5d883f(0xb3)]:case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xc5)]:case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xdf)]:return'file';default:return _0x5d883f(0xa0);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a8_0x3577c7=a8_0x22c0;(function(_0x117d7a,_0x875c72){var _0x34dc7b=a8_0x22c0,_0x213dac=_0x117d7a();while(!![]){try{var _0x1671f6=parseInt(_0x34dc7b(0xfd))/0x1+-parseInt(_0x34dc7b(0x11f))/0x2*(parseInt(_0x34dc7b(0x115))/0x3)+-parseInt(_0x34dc7b(0x11b))/0x4+-parseInt(_0x34dc7b(0x127))/0x5*(parseInt(_0x34dc7b(0x101))/0x6)+parseInt(_0x34dc7b(0x110))/0x7+-parseInt(_0x34dc7b(0x119))/0x8+parseInt(_0x34dc7b(0x120))/0x9;if(_0x1671f6===_0x875c72)break;else _0x213dac['push'](_0x213dac['shift']());}catch(_0x588be8){_0x213dac['push'](_0x213dac['shift']());}}}(a8_0x367e,0xe7242));var __createBinding=this&&this[a8_0x3577c7(0x12b)]||(Object[a8_0x3577c7(0x11e)]?function(_0x4a41bb,_0xee0dd8,_0x3a3e51,_0x56a331){var _0x461ad0=a8_0x3577c7;if(_0x56a331===undefined)_0x56a331=_0x3a3e51;var _0x1422ab=Object[_0x461ad0(0x12d)](_0xee0dd8,_0x3a3e51);(!_0x1422ab||(_0x461ad0(0x124)in _0x1422ab?!_0xee0dd8[_0x461ad0(0x12a)]:_0x1422ab[_0x461ad0(0xf9)]||_0x1422ab[_0x461ad0(0x129)]))&&(_0x1422ab={'enumerable':!![],'get':function(){return _0xee0dd8[_0x3a3e51];}}),Object[_0x461ad0(0x121)](_0x4a41bb,_0x56a331,_0x1422ab);}:function(_0x4c10f0,_0x5642ab,_0x19749d,_0x40a84c){if(_0x40a84c===undefined)_0x40a84c=_0x19749d;_0x4c10f0[_0x40a84c]=_0x5642ab[_0x19749d];}),__exportStar=this&&this[a8_0x3577c7(0x10e)]||function(_0x2b48ba,_0xbe6ba3){var _0x2e7573=a8_0x3577c7;for(var _0x19ba08 in _0x2b48ba)if(_0x19ba08!==_0x2e7573(0xf8)&&!Object[_0x2e7573(0x107)][_0x2e7573(0x10c)]['call'](_0xbe6ba3,_0x19ba08))__createBinding(_0xbe6ba3,_0x2b48ba,_0x19ba08);};Object[a8_0x3577c7(0x121)](exports,'__esModule',{'value':!![]}),exports[a8_0x3577c7(0x116)]=exports[a8_0x3577c7(0x12e)]=exports[a8_0x3577c7(0x10d)]=exports[a8_0x3577c7(0x10a)]=exports[a8_0x3577c7(0x109)]=exports[a8_0x3577c7(0x126)]=exports[a8_0x3577c7(0xfa)]=exports['Init']=exports[a8_0x3577c7(0x130)]=exports['Query']=exports[a8_0x3577c7(0x128)]=exports['Body']=exports['Fields']=exports[a8_0x3577c7(0x104)]=exports[a8_0x3577c7(0x112)]=exports[a8_0x3577c7(0x10b)]=exports[a8_0x3577c7(0xf7)]=exports['ValidatorError']=exports[a8_0x3577c7(0x114)]=exports[a8_0x3577c7(0x117)]=exports['EventService']=exports[a8_0x3577c7(0x106)]=exports[a8_0x3577c7(0xfe)]=exports[a8_0x3577c7(0x11c)]=exports[a8_0x3577c7(0xff)]=exports[a8_0x3577c7(0x105)]=exports[a8_0x3577c7(0x11d)]=exports[a8_0x3577c7(0x111)]=void 0x0,__exportStar(require(a8_0x3577c7(0x103)),exports),__exportStar(require(a8_0x3577c7(0x118)),exports);var getRoutes_1=require(a8_0x3577c7(0xf5));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x111),{'enumerable':!![],'get':function(){var _0x2f1ef1=a8_0x3577c7;return getRoutes_1[_0x2f1ef1(0x111)];}});var ActionApi_1=require(a8_0x3577c7(0x102));Object[a8_0x3577c7(0x121)](exports,'Api',{'enumerable':!![],'get':function(){var _0x3db5f1=a8_0x3577c7;return ActionApi_1[_0x3db5f1(0x11d)];}});var Action_1=require('./decorator/Action');function a8_0x22c0(_0x2404f9,_0x4215cf){var _0x367e6e=a8_0x367e();return a8_0x22c0=function(_0x22c090,_0x208b86){_0x22c090=_0x22c090-0xf4;var _0x23bc20=_0x367e6e[_0x22c090];return _0x23bc20;},a8_0x22c0(_0x2404f9,_0x4215cf);}Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x105),{'enumerable':!![],'get':function(){var _0x5c83fd=a8_0x3577c7;return Action_1[_0x5c83fd(0x105)];}});var ActionApitest_1=require(a8_0x3577c7(0xfb));function a8_0x367e(){var _0xe6968c=['Action','CacheService','prototype','Fields','Logger','Provide','Configuration','hasOwnProperty','Inject','__exportStar','./configuration','834449XutvlY','getRoutes','File','./service/ExcelService','ExcelService','143097iRKFIx','ScopeEnum','ApiService','./service/ApitestService','14227240AJqNLN','Init','6697076uFvWYE','ApiError','Api','create','10ffghSv','32244237SOJPOg','defineProperty','Body','@anncic-api/event','get','Query','Config','1103735vGrhrj','Param','configurable','__esModule','__createBinding','@anncic-api/validator','getOwnPropertyDescriptor','Scope','@midwayjs/decorator','Headers','EventService','./helper/getRoutes','./exception/ApiError','ValidatorService','default','writable','App','./decorator/ActionApitest','ValidatorError','1598264oyztfi','QueueService','Apitest','./service/ApiService','18SVkcTk','./decorator/ActionApi','./types/common','Files'];a8_0x367e=function(){return _0xe6968c;};return a8_0x367e();}Object[a8_0x3577c7(0x121)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x2537b8=a8_0x3577c7;return ActionApitest_1[_0x2537b8(0xff)];}});var ApiError_1=require(a8_0x3577c7(0xf6));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x11c),{'enumerable':!![],'get':function(){var _0x1ff9fa=a8_0x3577c7;return ApiError_1[_0x1ff9fa(0x11c)];}});var task_1=require('@midwayjs/task');Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0xfe),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require('@anncic-api/cache');Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x106),{'enumerable':!![],'get':function(){var _0x46b4b3=a8_0x3577c7;return cache_1[_0x46b4b3(0x106)];}});var event_1=require(a8_0x3577c7(0x123));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0xf4),{'enumerable':!![],'get':function(){var _0xe5c594=a8_0x3577c7;return event_1[_0xe5c594(0xf4)];}});var ApiService_1=require(a8_0x3577c7(0x100));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x117),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a8_0x3577c7(0x113));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x114),{'enumerable':!![],'get':function(){var _0x625bf0=a8_0x3577c7;return ExcelService_1[_0x625bf0(0x114)];}});var validator_1=require(a8_0x3577c7(0x12c));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0xfc),{'enumerable':!![],'get':function(){var _0x35fc61=a8_0x3577c7;return validator_1[_0x35fc61(0xfc)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0xf7),{'enumerable':!![],'get':function(){var _0x392c9f=a8_0x3577c7;return validator_1[_0x392c9f(0xf7)];}});var configuration_1=require(a8_0x3577c7(0x10f));Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x10b),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a8_0x3577c7(0x12f));Object[a8_0x3577c7(0x121)](exports,'File',{'enumerable':!![],'get':function(){var _0x2db2c4=a8_0x3577c7;return decorator_1[_0x2db2c4(0x112)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x104),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a8_0x3577c7(0x121)](exports,'Fields',{'enumerable':!![],'get':function(){var _0x2a32c1=a8_0x3577c7;return decorator_1[_0x2a32c1(0x108)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x122),{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x128),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x125),{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x130),{'enumerable':!![],'get':function(){var _0x4aabff=a8_0x3577c7;return decorator_1[_0x4aabff(0x130)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x11a),{'enumerable':!![],'get':function(){var _0x50ad69=a8_0x3577c7;return decorator_1[_0x50ad69(0x11a)];}});var decorator_2=require(a8_0x3577c7(0x12f));Object['defineProperty'](exports,a8_0x3577c7(0xfa),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x126),{'enumerable':!![],'get':function(){var _0x390361=a8_0x3577c7;return decorator_2[_0x390361(0x126)];}}),Object['defineProperty'](exports,a8_0x3577c7(0x109),{'enumerable':!![],'get':function(){var _0x1fdcdf=a8_0x3577c7;return decorator_2[_0x1fdcdf(0x109)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x10a),{'enumerable':!![],'get':function(){var _0x10d07b=a8_0x3577c7;return decorator_2[_0x10d07b(0x10a)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x10d),{'enumerable':!![],'get':function(){var _0x2ad5a0=a8_0x3577c7;return decorator_2[_0x2ad5a0(0x10d)];}}),Object[a8_0x3577c7(0x121)](exports,a8_0x3577c7(0x12e),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a8_0x3577c7(0x121)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x577fae=a8_0x3577c7;return decorator_2[_0x577fae(0x116)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a9_0x1d7f(_0x14c840,_0x3b2118){var _0x223980=a9_0x2239();return a9_0x1d7f=function(_0x1d7ffe,_0x3ee862){_0x1d7ffe=_0x1d7ffe-0x90;var _0x5c5b8e=_0x223980[_0x1d7ffe];return _0x5c5b8e;},a9_0x1d7f(_0x14c840,_0x3b2118);}var a9_0x2188e0=a9_0x1d7f;(function(_0x4922af,_0x102fb7){var _0x2f7452=a9_0x1d7f,_0x3accbb=_0x4922af();while(!![]){try{var _0x21cd06=parseInt(_0x2f7452(0xa1))/0x1+parseInt(_0x2f7452(0xc6))/0x2*(-parseInt(_0x2f7452(0x95))/0x3)+parseInt(_0x2f7452(0xb9))/0x4*(parseInt(_0x2f7452(0x94))/0x5)+-parseInt(_0x2f7452(0xaf))/0x6+parseInt(_0x2f7452(0xb2))/0x7+-parseInt(_0x2f7452(0x9c))/0x8*(parseInt(_0x2f7452(0xc0))/0x9)+-parseInt(_0x2f7452(0xa2))/0xa*(-parseInt(_0x2f7452(0xae))/0xb);if(_0x21cd06===_0x102fb7)break;else _0x3accbb['push'](_0x3accbb['shift']());}catch(_0x387f14){_0x3accbb['push'](_0x3accbb['shift']());}}}(a9_0x2239,0x2ba2d));var __decorate=this&&this[a9_0x2188e0(0xc5)]||function(_0x5dab58,_0x2fff4b,_0x21889a,_0x49b7e5){var _0x38aef3=a9_0x2188e0,_0x59ea82=arguments[_0x38aef3(0xb7)],_0x2870f5=_0x59ea82<0x3?_0x2fff4b:_0x49b7e5===null?_0x49b7e5=Object['getOwnPropertyDescriptor'](_0x2fff4b,_0x21889a):_0x49b7e5,_0x222bc2;if(typeof Reflect===_0x38aef3(0x98)&&typeof Reflect[_0x38aef3(0xb6)]===_0x38aef3(0xbf))_0x2870f5=Reflect['decorate'](_0x5dab58,_0x2fff4b,_0x21889a,_0x49b7e5);else{for(var _0x1158a0=_0x5dab58[_0x38aef3(0xb7)]-0x1;_0x1158a0>=0x0;_0x1158a0--)if(_0x222bc2=_0x5dab58[_0x1158a0])_0x2870f5=(_0x59ea82<0x3?_0x222bc2(_0x2870f5):_0x59ea82>0x3?_0x222bc2(_0x2fff4b,_0x21889a,_0x2870f5):_0x222bc2(_0x2fff4b,_0x21889a))||_0x2870f5;}return _0x59ea82>0x3&&_0x2870f5&&Object[_0x38aef3(0x9e)](_0x2fff4b,_0x21889a,_0x2870f5),_0x2870f5;},__metadata=this&&this[a9_0x2188e0(0xc9)]||function(_0x547ed,_0x2c8760){var _0x476210=a9_0x2188e0;if(typeof Reflect==='object'&&typeof Reflect[_0x476210(0xb0)]===_0x476210(0xbf))return Reflect[_0x476210(0xb0)](_0x547ed,_0x2c8760);};Object[a9_0x2188e0(0x9e)](exports,a9_0x2188e0(0x9d),{'value':!![]}),exports[a9_0x2188e0(0x96)]=void 0x0;function a9_0x2239(){var _0x54d273=['metadata','join','1451583tNuRTe','HEADERS_SIGNATURE','@midwayjs/decorator','缺少头信息:signature','decorate','length','now','1122276bslxFO','Provide','getsign','crypto-js','Scope','secret=','function','5391rKjtNx','map','devices','entries','checksign','__decorate','4Naqdpu','MD5','toString','__metadata','prototype','design:type','requesttime','timeout','token','anncicapi','5fegPTo','171096ZXjwWs','ApiService','sort','object','HEADERS_CHECKCODE','abs','TIMEOUT','3768fLpCqR','__esModule','defineProperty','device','checkcode','163846CSqNOl','28170lntYmm','secret','getcheck','ApiError','../exception/ApiError','config','缺少头信息:','fromEntries','push','toLowerCase','HEADERS_DEVICE','password','363veWeqn','1018914KywkxA'];a9_0x2239=function(){return _0x54d273;};return a9_0x2239();}const crypto_js_1=require(a9_0x2188e0(0xbc)),decorator_1=require(a9_0x2188e0(0xb4)),ApiError_1=require(a9_0x2188e0(0xa6));let ApiService=class ApiService{['password'](_0x414017){var _0x537717=a9_0x2188e0,_0x4f5ddb;return _0x414017?(0x0,crypto_js_1['MD5'])(_0x414017+(0x0,crypto_js_1[_0x537717(0xc7)])((0x0,crypto_js_1['MD5'])(_0x414017)[_0x537717(0xc8)]()+((_0x4f5ddb=this[_0x537717(0xa7)])===null||_0x4f5ddb===void 0x0?void 0x0:_0x4f5ddb[_0x537717(0xad)]))[_0x537717(0xc8)]())['toString']():'';}[a9_0x2188e0(0xa4)](_0x1a43a0,_0x5150b0,_0x370c32=Date[a9_0x2188e0(0xb8)]()){var _0x587a1e=a9_0x2188e0;return{'Token':_0x1a43a0,'Logintime':_0x370c32,'Checkcode':this[_0x587a1e(0xa0)](_0x1a43a0,_0x5150b0,_0x370c32)};}[a9_0x2188e0(0xbb)](_0x2889a2={}){var _0x570aae=a9_0x2188e0;const _0x157c4c=[],_0x4a63af=Object[_0x570aae(0xa9)](Object[_0x570aae(0xc3)](_0x2889a2)[_0x570aae(0xc1)](_0x3566ca=>[_0x3566ca[0x0][_0x570aae(0xab)](),_0x3566ca[0x1]]));for(let _0x466fd2 of['device',_0x570aae(0x90),_0x570aae(0x92),'logintime',_0x570aae(0xa0)]){if(typeof _0x4a63af[_0x466fd2]=='undefined')throw new AnnError(ApiError_1[_0x570aae(0xa5)]['HEADERS_LACK'],{'message':_0x570aae(0xa8)+_0x466fd2});_0x157c4c[_0x570aae(0xaa)](_0x466fd2+'='+_0x4a63af[_0x466fd2]);}if(Math[_0x570aae(0x9a)](_0x4a63af['requesttime'])-Date[_0x570aae(0xb8)]()>this[_0x570aae(0xa7)][_0x570aae(0x91)])throw new AnnError(ApiError_1[_0x570aae(0xa5)][_0x570aae(0x9b)]);if(!this['config'][_0x570aae(0xc2)][_0x4a63af[_0x570aae(0x9f)]]||!this[_0x570aae(0xa7)]['devices'][_0x4a63af[_0x570aae(0x9f)]][_0x570aae(0xa3)]||!this['config'][_0x570aae(0xc2)][_0x4a63af[_0x570aae(0x9f)]]['checkcode'])throw new AnnError(ApiError_1[_0x570aae(0xa5)][_0x570aae(0xac)]);if(_0x4a63af[_0x570aae(0x92)]&&_0x4a63af[_0x570aae(0xa0)]!=this[_0x570aae(0xa0)](_0x4a63af[_0x570aae(0x92)],_0x4a63af[_0x570aae(0x9f)],_0x4a63af['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x570aae(0x99)]);return _0x157c4c[_0x570aae(0xaa)](_0x570aae(0xbe)+this[_0x570aae(0xa7)][_0x570aae(0xc2)][_0x4a63af[_0x570aae(0x9f)]][_0x570aae(0xa3)]),(0x0,crypto_js_1[_0x570aae(0xc7)])(_0x157c4c[_0x570aae(0x97)]()[_0x570aae(0xb1)](''))['toString']();}[a9_0x2188e0(0xa0)](_0x3c26fa,_0x233ebf,_0x5276bf=Date['now']()){var _0x151561=a9_0x2188e0,_0x327bd1,_0x1f0ea3,_0x172de3;if(!((_0x327bd1=this[_0x151561(0xa7)])===null||_0x327bd1===void 0x0?void 0x0:_0x327bd1[_0x151561(0xc2)][_0x233ebf])||!((_0x172de3=(_0x1f0ea3=this[_0x151561(0xa7)])===null||_0x1f0ea3===void 0x0?void 0x0:_0x1f0ea3['devices'][_0x233ebf])===null||_0x172de3===void 0x0?void 0x0:_0x172de3[_0x151561(0xa0)]))throw new AnnError(ApiError_1[_0x151561(0xa5)][_0x151561(0xac)]);return(0x0,crypto_js_1[_0x151561(0xc7)])(_0x3c26fa+(0x0,crypto_js_1[_0x151561(0xc7)])(_0x5276bf+this[_0x151561(0xa7)][_0x151561(0xc2)][_0x233ebf][_0x151561(0xa0)])[_0x151561(0xc8)]())[_0x151561(0xc8)]();}[a9_0x2188e0(0xc4)](_0x45eb91={}){var _0x7952f6=a9_0x2188e0;const _0x5d0068=Object['fromEntries'](Object[_0x7952f6(0xc3)](_0x45eb91)[_0x7952f6(0xc1)](_0x3bb4df=>[_0x3bb4df[0x0]['toLowerCase'](),_0x3bb4df[0x1]]));if(!(_0x5d0068===null||_0x5d0068===void 0x0?void 0x0:_0x5d0068['signature']))throw new AnnError(ApiError_1[_0x7952f6(0xa5)]['HEADERS_LACK'],{'message':_0x7952f6(0xb5)});if((_0x5d0068===null||_0x5d0068===void 0x0?void 0x0:_0x5d0068['signature'])!=this[_0x7952f6(0xbb)](_0x5d0068))throw new AnnError(ApiError_1[_0x7952f6(0xa5)][_0x7952f6(0xb3)]);return!![];}};__decorate([(0x0,decorator_1['Config'])(a9_0x2188e0(0x93)),__metadata(a9_0x2188e0(0xcb),Object)],ApiService[a9_0x2188e0(0xca)],a9_0x2188e0(0xa7),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x2188e0(0xba)])(),(0x0,decorator_1[a9_0x2188e0(0xbd)])(decorator_1['ScopeEnum']['Singleton'])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a10_0x4ce7be=a10_0x39d6;(function(_0x6b06ce,_0x1f539c){const _0x2293c4=a10_0x39d6,_0x378eda=_0x6b06ce();while(!![]){try{const _0x1b8a0a=-parseInt(_0x2293c4(0x1da))/0x1+parseInt(_0x2293c4(0x200))/0x2+-parseInt(_0x2293c4(0x20a))/0x3*(parseInt(_0x2293c4(0x1e3))/0x4)+parseInt(_0x2293c4(0x211))/0x5*(parseInt(_0x2293c4(0x1ff))/0x6)+-parseInt(_0x2293c4(0x212))/0x7+parseInt(_0x2293c4(0x21b))/0x8*(parseInt(_0x2293c4(0x1f2))/0x9)+parseInt(_0x2293c4(0x1f6))/0xa;if(_0x1b8a0a===_0x1f539c)break;else _0x378eda['push'](_0x378eda['shift']());}catch(_0x1348e7){_0x378eda['push'](_0x378eda['shift']());}}}(a10_0x14b6,0xe26ae));var __decorate=this&&this[a10_0x4ce7be(0x1cf)]||function(_0x3c2a62,_0x249b6e,_0x1049f8,_0x4b0001){const _0x23a396=a10_0x4ce7be;var _0x28dc59=arguments[_0x23a396(0x1fc)],_0x6fd7d0=_0x28dc59<0x3?_0x249b6e:_0x4b0001===null?_0x4b0001=Object[_0x23a396(0x1d3)](_0x249b6e,_0x1049f8):_0x4b0001,_0x5a4d46;if(typeof Reflect===_0x23a396(0x205)&&typeof Reflect[_0x23a396(0x1d2)]===_0x23a396(0x20c))_0x6fd7d0=Reflect[_0x23a396(0x1d2)](_0x3c2a62,_0x249b6e,_0x1049f8,_0x4b0001);else{for(var _0x4e19f0=_0x3c2a62[_0x23a396(0x1fc)]-0x1;_0x4e19f0>=0x0;_0x4e19f0--)if(_0x5a4d46=_0x3c2a62[_0x4e19f0])_0x6fd7d0=(_0x28dc59<0x3?_0x5a4d46(_0x6fd7d0):_0x28dc59>0x3?_0x5a4d46(_0x249b6e,_0x1049f8,_0x6fd7d0):_0x5a4d46(_0x249b6e,_0x1049f8))||_0x6fd7d0;}return _0x28dc59>0x3&&_0x6fd7d0&&Object[_0x23a396(0x215)](_0x249b6e,_0x1049f8,_0x6fd7d0),_0x6fd7d0;},__metadata=this&&this[a10_0x4ce7be(0x21a)]||function(_0x23dbe4,_0x2511af){const _0x5e1325=a10_0x4ce7be;if(typeof Reflect===_0x5e1325(0x205)&&typeof Reflect[_0x5e1325(0x20b)]==='function')return Reflect['metadata'](_0x23dbe4,_0x2511af);},__param=this&&this['__param']||function(_0xfe82ad,_0x2422cf){return function(_0x21f809,_0x35f1e5){_0x2422cf(_0x21f809,_0x35f1e5,_0xfe82ad);};};Object[a10_0x4ce7be(0x215)](exports,'__esModule',{'value':!![]}),exports[a10_0x4ce7be(0x1e8)]=exports[a10_0x4ce7be(0x1f3)]=void 0x0;function a10_0x39d6(_0x2cd171,_0x1a9bc2){const _0x14b61f=a10_0x14b6();return a10_0x39d6=function(_0x39d6b8,_0x580419){_0x39d6b8=_0x39d6b8-0x1cf;let _0xe6d1eb=_0x14b61f[_0x39d6b8];return _0xe6d1eb;},a10_0x39d6(_0x2cd171,_0x1a9bc2);}const path_1=require(a10_0x4ce7be(0x1d7)),fs_1=require('fs'),core_1=require(a10_0x4ce7be(0x1ec)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x4ce7be(0x209)),getRoutes_1=require(a10_0x4ce7be(0x1e7));let ApitestService=class ApitestService{async[a10_0x4ce7be(0x1d5)](_0x1b2c46){const _0x59b0e2=a10_0x4ce7be,_0x3d915f=(0x0,getRoutes_1[_0x59b0e2(0x208)])(_0x1b2c46),_0x124382=[];for(let _0x3c1b49 in _0x3d915f){for(let _0x2aaa6e in _0x3d915f[_0x3c1b49]['routes']){let _0x2e282e=_0x3d915f[_0x3c1b49]['routes'][_0x2aaa6e],_0xbabbb0=[];for(let _0x100642 in _0x2e282e[_0x59b0e2(0x207)]){_0xbabbb0[_0x59b0e2(0x1d8)](_0x2e282e[_0x59b0e2(0x207)][_0x100642]);}_0x124382[_0x59b0e2(0x1d8)]({'title':_0x3d915f[_0x3c1b49][_0x59b0e2(0x202)]+':'+_0x2e282e[_0x59b0e2(0x202)],'prefix':_0x3d915f[_0x3c1b49][_0x59b0e2(0x204)],'router':_0x2e282e[_0x59b0e2(0x1ee)],'method':_0x2e282e[_0x59b0e2(0x1e1)],'describe':_0x2e282e[_0x59b0e2(0x1fd)]||'','filepath':_0x3d915f[_0x3c1b49]['filepath']||'','request':_0xbabbb0});}}const _0x25170d=(0x0,path_1[_0x59b0e2(0x20f)])(__dirname,_0x59b0e2(0x20d));return(0x0,fs_1[_0x59b0e2(0x1f8)])(_0x25170d,{'encoding':_0x59b0e2(0x1ef)})[_0x59b0e2(0x1d6)](/__res__/g,_0x59b0e2(0x21c))['replace']('__apiList__',JSON[_0x59b0e2(0x218)](_0x124382))[_0x59b0e2(0x1d6)]('__devices__',JSON[_0x59b0e2(0x218)](this['config'][_0x59b0e2(0x1e2)]));}};__decorate([(0x0,decorator_2[a10_0x4ce7be(0x1ed)])(a10_0x4ce7be(0x1e4)),__metadata(a10_0x4ce7be(0x203),Object)],ApitestService[a10_0x4ce7be(0x1e5)],'config',void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x4ce7be(0x1e9)])(a10_0x4ce7be(0x1eb)),(0x0,decorator_2[a10_0x4ce7be(0x20e)])(decorator_2['ScopeEnum']['Singleton'])],ApitestService),exports[a10_0x4ce7be(0x1f3)]=ApitestService;function a10_0x14b6(){const _0x32f745=['utf-8','/index.html','Inject','387mVTYbH','ApitestService','filepath','/apiteststatic/*','17589160uHeMrD','content-type','readFileSync','set','apitesthtml','/apitest-:module','length','description','ScopeEnum','18nucqba','2122684QVmRWA','Request','summary','design:type','prefix','object','MidwayEnvironmentService','request','getRoutes','@midwayjs/decorator','447oNjiRy','metadata','function','../../public/index.html','Scope','join','isDevelopmentEnvironment','64355tCmbjc','5006351UsBvfY','existsSync','design:returntype','defineProperty','design:paramtypes','../../public/','stringify','Environment','__metadata','63464DkjUNx','/apiteststatic/','url','__decorate','apiteststatic','.css','decorate','getOwnPropertyDescriptor','/apitest','apidoc','replace','path','push','extname','1424930ClOKYn','.js','Param','substring','cache-control','Get','ctx','method','devices','3556naryku','anncicapi','prototype','module','../helper/getRoutes','ApitestStaticController','Provide','apitestmodule','apitest','@midwayjs/core','Config','route'];a10_0x14b6=function(){return _0x32f745;};return a10_0x14b6();}let ApitestStaticController=class ApitestStaticController{async[a10_0x4ce7be(0x1fa)](){const _0x35d33b=a10_0x4ce7be;if(this[_0x35d33b(0x1eb)]){const _0xc2e216={'module':![]};return this[_0x35d33b(0x219)][_0x35d33b(0x210)]()&&(_0xc2e216[_0x35d33b(0x1f4)]=!![]),await this['ApitestService'][_0x35d33b(0x1d5)](_0xc2e216);}return'';}async['apitestmodule'](_0xcf2fc){const _0x463e28=a10_0x4ce7be;if(this[_0x463e28(0x1eb)]){const _0x48d4ef={'module':_0xcf2fc};return this[_0x463e28(0x219)][_0x463e28(0x210)]()&&(_0x48d4ef[_0x463e28(0x1f4)]=!![]),await this[_0x463e28(0x1f3)][_0x463e28(0x1d5)](_0x48d4ef);}return'';}async[a10_0x4ce7be(0x1d0)](){const _0x408c39=a10_0x4ce7be;if((0x0,path_1[_0x408c39(0x1d9)])(this['ctx'][_0x408c39(0x207)][_0x408c39(0x21d)])){var _0x1bf26b=(0x0,path_1[_0x408c39(0x20f)])(__dirname,_0x408c39(0x217)+this[_0x408c39(0x1e0)][_0x408c39(0x207)][_0x408c39(0x21d)][_0x408c39(0x1d6)](_0x408c39(0x21c),'/'));if(_0x1bf26b[_0x408c39(0x1dd)](_0x1bf26b['length']-0xb)!=_0x408c39(0x1f0)){this[_0x408c39(0x1e0)][_0x408c39(0x1f9)](_0x408c39(0x1de),'public,\x20max-age=604800');if((0x0,path_1[_0x408c39(0x1d9)])(this[_0x408c39(0x1e0)]['request'][_0x408c39(0x21d)])==_0x408c39(0x1db))this[_0x408c39(0x1e0)]['set'](_0x408c39(0x1f7),'application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this[_0x408c39(0x1e0)][_0x408c39(0x207)][_0x408c39(0x21d)])==_0x408c39(0x1d1)&&this[_0x408c39(0x1e0)][_0x408c39(0x1f9)]('content-type','text/css;\x20charset=utf-8');return(0x0,fs_1[_0x408c39(0x213)])(_0x1bf26b)&&(0x0,fs_1[_0x408c39(0x1f8)])(_0x1bf26b,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x4ce7be(0x203),Object)],ApitestStaticController[a10_0x4ce7be(0x1e5)],a10_0x4ce7be(0x1e0),void 0x0),__decorate([(0x0,decorator_2[a10_0x4ce7be(0x1f1)])(),__metadata('design:type',core_1[a10_0x4ce7be(0x206)])],ApitestStaticController[a10_0x4ce7be(0x1e5)],a10_0x4ce7be(0x219),void 0x0),__decorate([(0x0,decorator_2[a10_0x4ce7be(0x1f1)])(),__metadata(a10_0x4ce7be(0x203),ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,decorator_2['Config'])(a10_0x4ce7be(0x1eb)),__metadata('design:type',Boolean)],ApitestStaticController['prototype'],a10_0x4ce7be(0x1eb),void 0x0),__decorate([(0x0,decorator_2[a10_0x4ce7be(0x1ed)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a10_0x4ce7be(0x1e5)],'config',void 0x0),__decorate([(0x0,decorator_1[a10_0x4ce7be(0x1df)])(a10_0x4ce7be(0x1d4)),__metadata(a10_0x4ce7be(0x203),Function),__metadata('design:paramtypes',[]),__metadata(a10_0x4ce7be(0x214),Promise)],ApitestStaticController[a10_0x4ce7be(0x1e5)],a10_0x4ce7be(0x1fa),null),__decorate([(0x0,decorator_1['Get'])(a10_0x4ce7be(0x1fb)),__param(0x0,(0x0,decorator_1[a10_0x4ce7be(0x1dc)])(a10_0x4ce7be(0x1e6))),__metadata('design:type',Function),__metadata(a10_0x4ce7be(0x216),[String]),__metadata(a10_0x4ce7be(0x214),Promise)],ApitestStaticController[a10_0x4ce7be(0x1e5)],a10_0x4ce7be(0x1ea),null),__decorate([(0x0,decorator_1[a10_0x4ce7be(0x1df)])(a10_0x4ce7be(0x1f5)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a10_0x4ce7be(0x214),Promise)],ApitestStaticController['prototype'],a10_0x4ce7be(0x1d0),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2[a10_0x4ce7be(0x20e)])(decorator_2[a10_0x4ce7be(0x1fe)][a10_0x4ce7be(0x201)])],ApitestStaticController),exports[a10_0x4ce7be(0x1e8)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x954ac3=a11_0x3f7f;function a11_0x3f7f(_0x464cb6,_0x47e022){const _0x1d1c89=a11_0x1d1c();return a11_0x3f7f=function(_0x3f7fc6,_0x5ee759){_0x3f7fc6=_0x3f7fc6-0xef;let _0x4cb795=_0x1d1c89[_0x3f7fc6];return _0x4cb795;},a11_0x3f7f(_0x464cb6,_0x47e022);}(function(_0x5d2a9d,_0xa616eb){const _0x171c59=a11_0x3f7f,_0x2c3f02=_0x5d2a9d();while(!![]){try{const _0x18d93d=parseInt(_0x171c59(0x12d))/0x1*(parseInt(_0x171c59(0x12f))/0x2)+parseInt(_0x171c59(0x117))/0x3*(parseInt(_0x171c59(0x123))/0x4)+parseInt(_0x171c59(0x10b))/0x5+-parseInt(_0x171c59(0xf6))/0x6*(-parseInt(_0x171c59(0x110))/0x7)+parseInt(_0x171c59(0x11a))/0x8*(-parseInt(_0x171c59(0x10d))/0x9)+-parseInt(_0x171c59(0x129))/0xa*(-parseInt(_0x171c59(0xf0))/0xb)+-parseInt(_0x171c59(0xf4))/0xc;if(_0x18d93d===_0xa616eb)break;else _0x2c3f02['push'](_0x2c3f02['shift']());}catch(_0x351c4e){_0x2c3f02['push'](_0x2c3f02['shift']());}}}(a11_0x1d1c,0x927c8));var __decorate=this&&this[a11_0x954ac3(0x104)]||function(_0x4bf089,_0x57438e,_0x55fb86,_0x132d33){const _0x1b160c=a11_0x954ac3;var _0x2942b9=arguments[_0x1b160c(0x133)],_0x53e136=_0x2942b9<0x3?_0x57438e:_0x132d33===null?_0x132d33=Object[_0x1b160c(0x10c)](_0x57438e,_0x55fb86):_0x132d33,_0x4fd520;if(typeof Reflect==='object'&&typeof Reflect[_0x1b160c(0x121)]===_0x1b160c(0xf3))_0x53e136=Reflect[_0x1b160c(0x121)](_0x4bf089,_0x57438e,_0x55fb86,_0x132d33);else{for(var _0x53419e=_0x4bf089[_0x1b160c(0x133)]-0x1;_0x53419e>=0x0;_0x53419e--)if(_0x4fd520=_0x4bf089[_0x53419e])_0x53e136=(_0x2942b9<0x3?_0x4fd520(_0x53e136):_0x2942b9>0x3?_0x4fd520(_0x57438e,_0x55fb86,_0x53e136):_0x4fd520(_0x57438e,_0x55fb86))||_0x53e136;}return _0x2942b9>0x3&&_0x53e136&&Object[_0x1b160c(0x122)](_0x57438e,_0x55fb86,_0x53e136),_0x53e136;},__metadata=this&&this[a11_0x954ac3(0x12a)]||function(_0x3c0b25,_0x26e75c){const _0x4a8051=a11_0x954ac3;if(typeof Reflect===_0x4a8051(0x135)&&typeof Reflect[_0x4a8051(0x10f)]===_0x4a8051(0xf3))return Reflect['metadata'](_0x3c0b25,_0x26e75c);};Object[a11_0x954ac3(0x122)](exports,'__esModule',{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a11_0x954ac3(0x10a)),koasend=require(a11_0x954ac3(0x12e)),decorator_1=require(a11_0x954ac3(0x132));function a11_0x1d1c(){const _0x17cf2b=['/public/xlsx','cellCount','substring','xlsx','columns','10nUyjIz','__metadata','handler','prototype','13ctPNUM','koa-send','177134dnYUEB','.xlsx','Singleton','@midwayjs/decorator','length','getAppDir','object','log','10269787eJrBNc','rowCount','Api\x20Excel\x20Error:\x20','function','20295576JubLNg','toString','6zQEBck','key','findRows','Sheet\x201','ExcelService','frozen','isNumber','trim','getRow','get','design:type','Provide','header','getWorksheet','__decorate','replace','download','startsWith','eachCell','Scope','exceljs','1622160IxkmGn','getOwnPropertyDescriptor','9637173nVfYYU','Workbook','metadata','3848894kygouF','ScopeEnum','value','getCell','existsSync','worksheets','col','12459qOBjUO','app','public/xlsx','8rLTtdE','addWorksheet','mkdirSync','readFile','addRow','push','App','decorate','defineProperty','388lfhBOa'];a11_0x1d1c=function(){return _0x17cf2b;};return a11_0x1d1c();}let ExcelService=class ExcelService{async['parse'](_0x5e4c72,_0x343f78,_0x17b32b=[0x0]){const _0x2327a4=a11_0x954ac3;var _0x1193d0,_0x116ab4;const _0x5bafb5=new exceljs[(_0x2327a4(0x10e))](),_0x47d6a7=[];let _0x3eeffe=_0x5e4c72[_0x2327a4(0x105)](/(\\|\/)/g,'/')[_0x2327a4(0x105)](/\/{2,}/g,'/');!(_0x3eeffe===null||_0x3eeffe===void 0x0?void 0x0:_0x3eeffe[_0x2327a4(0x107)]('/'))&&(_0x3eeffe=this[_0x2327a4(0x118)]['getAppDir']()+'/'+_0x3eeffe);try{await _0x5bafb5[_0x2327a4(0x127)][_0x2327a4(0x11d)](_0x3eeffe);}catch(_0x38d126){return console[_0x2327a4(0xef)](_0x2327a4(0xf2)+_0x3eeffe+'\x20is\x20read\x20fail'),_0x47d6a7;}for(const _0x5eb8e5 of _0x17b32b){const _0x28207c=lodash[_0x2327a4(0xfc)](_0x5eb8e5)?((_0x1193d0=_0x5bafb5[_0x2327a4(0x115)])===null||_0x1193d0===void 0x0?void 0x0:_0x1193d0[_0x5eb8e5])||undefined:_0x5bafb5[_0x2327a4(0x103)](_0x5eb8e5);if(_0x28207c){var _0x427222=0x1;const _0x464b9f=_0x28207c[_0x2327a4(0xfe)](0x1),_0x4a16db=await new Promise(_0xa7f08f=>{const _0x3fbf9e=_0x2327a4,_0x3c93de={};_0x464b9f[_0x3fbf9e(0x108)]((_0x465c64,_0x207908)=>{const _0x4cfb5e=_0x3fbf9e;for(const _0x5be862 of _0x343f78){if(_0x465c64[_0x4cfb5e(0x112)]==_0x5be862[_0x4cfb5e(0x102)])_0x427222=0x2,_0x3c93de[_0x5be862[_0x4cfb5e(0xf7)]]={'header':_0x465c64[_0x4cfb5e(0x116)],'handler':_0x5be862['handler']};else{if(!_0x3c93de[_0x5be862[_0x4cfb5e(0xf7)]])try{const _0x165932=_0x464b9f[_0x4cfb5e(0x113)](_0x5be862[_0x4cfb5e(0x102)]);_0x165932&&(_0x3c93de[_0x5be862['key']]={'header':_0x165932['col'],'handler':_0x5be862[_0x4cfb5e(0x12b)]});}catch{}}}_0x464b9f[_0x4cfb5e(0x125)]==_0x207908&&_0xa7f08f(_0x3c93de);});});for(const _0x5d3ee6 of _0x28207c[_0x2327a4(0xf8)](_0x427222,_0x28207c[_0x2327a4(0xf1)])){const _0x4f75d7={};for(const _0x2d724c in _0x4a16db){_0x4a16db[_0x2d724c]['header']&&(typeof((_0x116ab4=_0x4a16db[_0x2d724c])===null||_0x116ab4===void 0x0?void 0x0:_0x116ab4[_0x2327a4(0x12b)])=='function'?_0x4f75d7[_0x2d724c]=_0x4a16db[_0x2d724c][_0x2327a4(0x12b)](_0x5d3ee6[_0x2327a4(0x113)](lodash[_0x2327a4(0xfd)](''+_0x4a16db[_0x2d724c][_0x2327a4(0x102)],'\x20'))['toString']()):_0x4f75d7[_0x2d724c]=_0x5d3ee6[_0x2327a4(0x113)](_0x4a16db[_0x2d724c]['header'])[_0x2327a4(0xf5)]());}Object['keys'](_0x4f75d7)[_0x2327a4(0x133)]>0x0&&_0x47d6a7[_0x2327a4(0x11f)](_0x4f75d7);}}}return _0x47d6a7;}async['export'](_0x53ba20,_0xaa62cf,_0x21f752,_0x1fa204=a11_0x954ac3(0x119)){const _0x337060=a11_0x954ac3;var _0x3ce3b4,_0x5acf27;const _0x39bf66=new exceljs[(_0x337060(0x10e))](),_0xff30c8={},_0x4d8a90=[],_0x2598d7=_0x39bf66[_0x337060(0x11b)](_0x337060(0xf9),{'views':[{'state':_0x337060(0xfb),'xSplit':0x1}]});for(const _0x247b48 in _0xaa62cf){_0xff30c8[_0xaa62cf[_0x247b48]['key']]=_0xaa62cf[_0x247b48][_0x337060(0x102)],_0x4d8a90[_0x337060(0x11f)]({'header':_0xaa62cf[_0x247b48][_0x337060(0x102)],'key':(_0x3ce3b4=_0xaa62cf[_0x247b48])===null||_0x3ce3b4===void 0x0?void 0x0:_0x3ce3b4[_0x337060(0xf7)][_0x337060(0x105)](/\./g,'_')});}_0x2598d7[_0x337060(0x128)]=_0x4d8a90;for(const _0x14afed of _0x21f752){const _0x2a9072={};for(const _0xe08c50 in _0xaa62cf){typeof((_0x5acf27=_0xaa62cf[_0xe08c50])===null||_0x5acf27===void 0x0?void 0x0:_0x5acf27['handler'])==_0x337060(0xf3)?_0x2a9072[_0xaa62cf[_0xe08c50][_0x337060(0xf7)][_0x337060(0x105)](/\./g,'_')]=await _0xaa62cf[_0xe08c50][_0x337060(0x12b)](_0x14afed):_0x2a9072[_0xaa62cf[_0xe08c50][_0x337060(0xf7)][_0x337060(0x105)](/\./g,'_')]=lodash[_0x337060(0xff)](_0x14afed,_0xaa62cf[_0xe08c50][_0x337060(0xf7)],'');}_0x2598d7[_0x337060(0x11e)](_0x2a9072);}let _0x3b46d4='';const _0x1e902d=_0x53ba20+'-'+lodash['random'](0x2710,0x1869f)+_0x337060(0x130);if(_0x1fa204&&_0x1fa204[_0x337060(0x107)]('/'))_0x3b46d4=_0x1fa204+'/'+_0x1e902d;else _0x1fa204&&!_0x1fa204['startsWith']('/')&&!_0x1fa204[_0x337060(0x107)]('\x5c')?_0x3b46d4=this[_0x337060(0x118)]['getAppDir']()+'/'+_0x1fa204+'/'+_0x1e902d:_0x3b46d4=this['app'][_0x337060(0x134)]()+_0x337060(0x124);return(_0x3b46d4['endsWith']('/')||_0x3b46d4['endsWith']('\x5c'))&&(_0x3b46d4=_0x3b46d4[_0x337060(0x126)](0x0,_0x3b46d4[_0x337060(0x133)]-0x1)),_0x3b46d4=_0x3b46d4[_0x337060(0x105)](/(\\|\/)/g,'/')[_0x337060(0x105)](/\/{2,}/g,'/'),!fs[_0x337060(0x114)](_0x3b46d4)&&fs[_0x337060(0x11c)](_0x3b46d4,{'recursive':!![]}),await _0x39bf66['xlsx']['writeFile']((_0x3b46d4+'/'+_0x1e902d)[_0x337060(0x105)](/(\\|\/)/g,'/')[_0x337060(0x105)](/\/{2,}/g,'/')),{'filename':_0x1e902d,'filepath':_0x3b46d4};}async[a11_0x954ac3(0x106)](_0x3bffc3,_0x5e8c50){await koasend(_0x3bffc3,'/public/xlsx/'+_0x5e8c50);}};__decorate([(0x0,decorator_1[a11_0x954ac3(0x120)])(),__metadata(a11_0x954ac3(0x100),Object)],ExcelService[a11_0x954ac3(0x12c)],a11_0x954ac3(0x118),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x954ac3(0x101)])(),(0x0,decorator_1[a11_0x954ac3(0x109)])(decorator_1[a11_0x954ac3(0x111)][a11_0x954ac3(0x131)])],ExcelService),exports[a11_0x954ac3(0xfa)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a12_0x1c047a=a12_0x538a;(function(_0x74a09d,_0x404158){var _0x275029=a12_0x538a,_0x4e5f98=_0x74a09d();while(!![]){try{var _0x1bad80=-parseInt(_0x275029(0x144))/0x1*(-parseInt(_0x275029(0x13e))/0x2)+-parseInt(_0x275029(0x143))/0x3+parseInt(_0x275029(0x139))/0x4*(parseInt(_0x275029(0x13a))/0x5)+-parseInt(_0x275029(0x137))/0x6*(parseInt(_0x275029(0x135))/0x7)+-parseInt(_0x275029(0x13c))/0x8+parseInt(_0x275029(0x134))/0x9*(-parseInt(_0x275029(0x141))/0xa)+parseInt(_0x275029(0x142))/0xb;if(_0x1bad80===_0x404158)break;else _0x4e5f98['push'](_0x4e5f98['shift']());}catch(_0x2b07bc){_0x4e5f98['push'](_0x4e5f98['shift']());}}}(a12_0x2835,0x748aa));Object[a12_0x1c047a(0x138)](exports,a12_0x1c047a(0x13f),{'value':!![]}),exports[a12_0x1c047a(0x13b)]=exports[a12_0x1c047a(0x136)]=void 0x0,exports[a12_0x1c047a(0x136)]=a12_0x1c047a(0x140),exports[a12_0x1c047a(0x13b)]=a12_0x1c047a(0x13d);function a12_0x538a(_0x5b6dbb,_0x18d225){var _0x283519=a12_0x2835();return a12_0x538a=function(_0x538ae0,_0x304141){_0x538ae0=_0x538ae0-0x134;var _0x2a158e=_0x283519[_0x538ae0];return _0x2a158e;},a12_0x538a(_0x5b6dbb,_0x18d225);}function a12_0x2835(){var _0x44ddf8=['ACTION_KEY','1693602EcKiii','defineProperty','3385980gaDkjS','5DDPIQE','ACTION_ROUTE_KEY','6372256SoaDSM','anncic-api:action:route','1450436wllpSU','__esModule','anncic-api:action','30PqIjkl','8395266YLBhgb','466080HBjnHR','1NVqrfZ','1023417oSYMsY','14afGgtD'];a12_0x2835=function(){return _0x44ddf8;};return a12_0x2835();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x1e952b=a13_0x3272;function a13_0x3272(_0x30045e,_0x1ebad8){var _0x40c868=a13_0x40c8();return a13_0x3272=function(_0x3272e6,_0x3d749d){_0x3272e6=_0x3272e6-0x1c1;var _0x5f2c3c=_0x40c868[_0x3272e6];return _0x5f2c3c;},a13_0x3272(_0x30045e,_0x1ebad8);}function a13_0x40c8(){var _0x48b070=['Rule','2643018BRZokc','function','object','7gIEHJZ','design:type','4419000QSirBc','integer','_isreverse','defineProperty','_page','__metadata','PageDTO','number','1000096mEtool','__decorate','8253768XmXdjc','_order','metadata','1:是;0:否','prototype','min','valid','__esModule','getOwnPropertyDescriptor','4067076Cjjooy','分页数量','2998105OsuaMy','RuleType','排序方式','50121224sTSgNN'];a13_0x40c8=function(){return _0x48b070;};return a13_0x40c8();}(function(_0x43043d,_0x2a813e){var _0x98d6e2=a13_0x3272,_0x2680e5=_0x43043d();while(!![]){try{var _0x14aa20=-parseInt(_0x98d6e2(0x1c9))/0x1+-parseInt(_0x98d6e2(0x1db))/0x2+-parseInt(_0x98d6e2(0x1d4))/0x3+-parseInt(_0x98d6e2(0x1c1))/0x4+parseInt(_0x98d6e2(0x1d6))/0x5+-parseInt(_0x98d6e2(0x1cb))/0x6+-parseInt(_0x98d6e2(0x1de))/0x7*(-parseInt(_0x98d6e2(0x1d9))/0x8);if(_0x14aa20===_0x2a813e)break;else _0x2680e5['push'](_0x2680e5['shift']());}catch(_0x1944a7){_0x2680e5['push'](_0x2680e5['shift']());}}}(a13_0x40c8,0xaca1b));var __decorate=this&&this[a13_0x1e952b(0x1ca)]||function(_0x11cafc,_0x48d6d4,_0x1c4658,_0x251f9d){var _0x40ef26=a13_0x1e952b,_0x8b2981=arguments['length'],_0x5ec450=_0x8b2981<0x3?_0x48d6d4:_0x251f9d===null?_0x251f9d=Object[_0x40ef26(0x1d3)](_0x48d6d4,_0x1c4658):_0x251f9d,_0x3b15a4;if(typeof Reflect===_0x40ef26(0x1dd)&&typeof Reflect['decorate']===_0x40ef26(0x1dc))_0x5ec450=Reflect['decorate'](_0x11cafc,_0x48d6d4,_0x1c4658,_0x251f9d);else{for(var _0x256df3=_0x11cafc['length']-0x1;_0x256df3>=0x0;_0x256df3--)if(_0x3b15a4=_0x11cafc[_0x256df3])_0x5ec450=(_0x8b2981<0x3?_0x3b15a4(_0x5ec450):_0x8b2981>0x3?_0x3b15a4(_0x48d6d4,_0x1c4658,_0x5ec450):_0x3b15a4(_0x48d6d4,_0x1c4658))||_0x5ec450;}return _0x8b2981>0x3&&_0x5ec450&&Object[_0x40ef26(0x1c4)](_0x48d6d4,_0x1c4658,_0x5ec450),_0x5ec450;},__metadata=this&&this[a13_0x1e952b(0x1c6)]||function(_0x3b9b10,_0x14fb32){var _0x189913=a13_0x1e952b;if(typeof Reflect===_0x189913(0x1dd)&&typeof Reflect['metadata']===_0x189913(0x1dc))return Reflect[_0x189913(0x1cd)](_0x3b9b10,_0x14fb32);};Object[a13_0x1e952b(0x1c4)](exports,a13_0x1e952b(0x1d2),{'value':!![]}),exports[a13_0x1e952b(0x1c7)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a13_0x1e952b(0x1da)])('分页',validator_1[a13_0x1e952b(0x1d7)][a13_0x1e952b(0x1c8)]()['integer']()[a13_0x1e952b(0x1d0)](0x1),'第一页为1,第二页为2'),__metadata(a13_0x1e952b(0x1df),Number)],PageDTO[a13_0x1e952b(0x1cf)],a13_0x1e952b(0x1c5),void 0x0),__decorate([(0x0,validator_1[a13_0x1e952b(0x1da)])(a13_0x1e952b(0x1d5),validator_1['RuleType'][a13_0x1e952b(0x1c8)]()[a13_0x1e952b(0x1c2)]()[a13_0x1e952b(0x1d0)](0x1)),__metadata(a13_0x1e952b(0x1df),Number)],PageDTO[a13_0x1e952b(0x1cf)],'_size',void 0x0),__decorate([(0x0,validator_1[a13_0x1e952b(0x1da)])(a13_0x1e952b(0x1d8),validator_1[a13_0x1e952b(0x1d7)]['string']()['trim']()),__metadata(a13_0x1e952b(0x1df),String)],PageDTO['prototype'],a13_0x1e952b(0x1cc),void 0x0),__decorate([(0x0,validator_1[a13_0x1e952b(0x1da)])('是否倒序',validator_1[a13_0x1e952b(0x1d7)][a13_0x1e952b(0x1c8)]()[a13_0x1e952b(0x1c2)]()[a13_0x1e952b(0x1d1)](0x0,0x1),a13_0x1e952b(0x1ce)),__metadata('design:type',Number)],PageDTO['prototype'],a13_0x1e952b(0x1c3),void 0x0),exports[a13_0x1e952b(0x1c7)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
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.11",
|
|
21
|
+
"@anncic-api/core": "^1.1.11",
|
|
22
|
+
"@anncic-api/event": "^1.1.11",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.11",
|
|
24
|
+
"@anncic-api/validator": "^1.1.11",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.0",
|
|
27
27
|
"@midwayjs/koa": "^3.5.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.0",
|
|
30
30
|
"@midwayjs/upload": "^3.5.0",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.11",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-bodyparser": "^4.3.0",
|
|
35
35
|
"koa-send": "^5.0.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"javascript-obfuscator": "2.19.0",
|
|
42
42
|
"typescript": "^4.7.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1fe484337204463e2386b18b278bfd2c6a9a70ae"
|
|
45
45
|
}
|
package/public/config.js
CHANGED
|
@@ -3,7 +3,7 @@ var headerList = [
|
|
|
3
3
|
"key": 'Token'
|
|
4
4
|
, "type": 'int'
|
|
5
5
|
, "title": 'Token'
|
|
6
|
-
, "
|
|
6
|
+
, "description": '当前用户Token,登录后可获得。可直接用ID'
|
|
7
7
|
, "required": true
|
|
8
8
|
, "default": "1"
|
|
9
9
|
, "click": null
|
|
@@ -12,7 +12,7 @@ var headerList = [
|
|
|
12
12
|
"key": 'Device'
|
|
13
13
|
, "type": 'select'
|
|
14
14
|
, "title": '设备类型'
|
|
15
|
-
, "
|
|
15
|
+
, "description": '全大写的设备类型'
|
|
16
16
|
, "required": true
|
|
17
17
|
, "default": "ADMIN"
|
|
18
18
|
, "click": null
|
|
@@ -21,7 +21,7 @@ var headerList = [
|
|
|
21
21
|
"key": 'Logintime'
|
|
22
22
|
, "type": 'string'
|
|
23
23
|
, "title": 'Logintime'
|
|
24
|
-
, "
|
|
24
|
+
, "description": '登录时间,时间戳,单位:秒,数据来自服务器'
|
|
25
25
|
, "required": true
|
|
26
26
|
, "default": ""
|
|
27
27
|
, "click": function () {
|
|
@@ -32,7 +32,7 @@ var headerList = [
|
|
|
32
32
|
"key": 'Checkcode'
|
|
33
33
|
, "type": 'string'
|
|
34
34
|
, "title": 'Checkcode'
|
|
35
|
-
, "
|
|
35
|
+
, "description": 'Token和Logintime组合加密后的产物,用于进行用户信息加密。数据来自服务器'
|
|
36
36
|
, "required": true
|
|
37
37
|
, "default": ""
|
|
38
38
|
, "click": function () {
|
|
@@ -45,7 +45,7 @@ var headerList = [
|
|
|
45
45
|
"key": 'Requesttime'
|
|
46
46
|
, "type": 'string'
|
|
47
47
|
, "title": 'Requesttime'
|
|
48
|
-
, "
|
|
48
|
+
, "description": '请求时的时间戳,单位:秒'
|
|
49
49
|
, "required": true
|
|
50
50
|
, "default": ""
|
|
51
51
|
, "click": function () {
|
|
@@ -56,7 +56,7 @@ var headerList = [
|
|
|
56
56
|
"key": 'Signature'
|
|
57
57
|
, "type": 'string'
|
|
58
58
|
, "title": '接口加密校验'
|
|
59
|
-
, "
|
|
59
|
+
, "description": '取头信息里Device,Requesttime,Token,Logintime,Checkcode \n每个都使用key=value(空则空字符串)格式组合成字符串然后放入同一个数组 \n 并放入私钥字符串后自然排序 \n 连接为字符串后进行MD5加密,获得Signature \n 将Signature也放入头信息,进行传输。'
|
|
60
60
|
, "required": true
|
|
61
61
|
, "default": ""
|
|
62
62
|
, "click": function () {
|