anncic-api 1.1.27 → 1.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a0_0x4c6729=a0_0x5d00;(function(_0x2bad0e,_0x4b0920){var _0x214cfb=a0_0x5d00,_0x551044=_0x2bad0e();while(!![]){try{var _0x20e8c7=parseInt(_0x214cfb(0x74))/0x1+parseInt(_0x214cfb(0x86))/0x2*(parseInt(_0x214cfb(0x6f))/0x3)+-parseInt(_0x214cfb(0x7d))/0x4*(parseInt(_0x214cfb(0x78))/0x5)+-parseInt(_0x214cfb(0x84))/0x6*(parseInt(_0x214cfb(0x76))/0x7)+-parseInt(_0x214cfb(0x70))/0x8*(-parseInt(_0x214cfb(0x71))/0x9)+-parseInt(_0x214cfb(0x81))/0xa*(parseInt(_0x214cfb(0x75))/0xb)+parseInt(_0x214cfb(0x83))/0xc*(parseInt(_0x214cfb(0x85))/0xd);if(_0x20e8c7===_0x4b0920)break;else _0x551044['push'](_0x551044['shift']());}catch(_0x305d53){_0x551044['push'](_0x551044['shift']());}}}(a0_0x5764,0xc9733));function a0_0x5d00(_0x5302f2,_0x5edeab){var _0x576498=a0_0x5764();return a0_0x5d00=function(_0x5d0049,_0x259534){_0x5d0049=_0x5d0049-0x6f;var _0x6f3f1d=_0x576498[_0x5d0049];return _0x6f3f1d;},a0_0x5d00(_0x5302f2,_0x5edeab);}function a0_0x5764(){var _0x31e9e2=['24486276xJRoJe','36NMGPDo','13rLzZuF','2VjzCOR','71751ZWcWvT','9582792WSRvgg','9jjtaDU','__esModule','form','1172478aIldAx','110dOrMsk','1088437vJCQCj','20mb','4122080YjAiln','dhauo1234420123gg3234901','defineProperty','zhiulanuiy7892387985hnoi','default','8BOrEcj','json','name','/runtime/.upload','1027850BHafZW','appDir'];a0_0x5764=function(){return _0x31e9e2;};return a0_0x5764();}Object[a0_0x4c6729(0x7a)](exports,a0_0x4c6729(0x72),{'value':!![]}),exports[a0_0x4c6729(0x7c)]=_0x3addac=>{var _0x24de1b=a0_0x4c6729;return{'apitest':!![],'keys':_0x3addac[_0x24de1b(0x7f)],'anncicapi':{'timeout':0x1388,'password':_0x24de1b(0x7b),'devices':{'DEFAULT':{'secret':_0x24de1b(0x79),'checkcode':_0x24de1b(0x79)}}},'bodyParser':{'enableTypes':[_0x24de1b(0x7e),_0x24de1b(0x73),'text','xml'],'formLimit':'20mb','jsonLimit':_0x24de1b(0x77),'textLimit':_0x24de1b(0x77),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x3addac[_0x24de1b(0x82)]+_0x24de1b(0x80),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0xbf31(_0x50175d,_0x422f8d){var _0x2b4af9=a1_0x2b4a();return a1_0xbf31=function(_0xbf313b,_0x5c2cc1){_0xbf313b=_0xbf313b-0xf2;var _0x46e35c=_0x2b4af9[_0xbf313b];return _0x46e35c;},a1_0xbf31(_0x50175d,_0x422f8d);}var a1_0x5ee5b7=a1_0xbf31;(function(_0x5285b9,_0x46e03e){var _0x3b6f05=a1_0xbf31,_0x9de7f7=_0x5285b9();while(!![]){try{var _0x128749=-parseInt(_0x3b6f05(0xf3))/0x1+parseInt(_0x3b6f05(0xfc))/0x2*(-parseInt(_0x3b6f05(0xf6))/0x3)+parseInt(_0x3b6f05(0xf2))/0x4*(-parseInt(_0x3b6f05(0xfb))/0x5)+-parseInt(_0x3b6f05(0xfa))/0x6+parseInt(_0x3b6f05(0xf4))/0x7+-parseInt(_0x3b6f05(0xf8))/0x8+parseInt(_0x3b6f05(0xf9))/0x9*(parseInt(_0x3b6f05(0xf5))/0xa);if(_0x128749===_0x46e03e)break;else _0x9de7f7['push'](_0x9de7f7['shift']());}catch(_0x11dd53){_0x9de7f7['push'](_0x9de7f7['shift']());}}}(a1_0x2b4a,0x81c8b));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x5ee5b7(0xf7)]={'apitest':![],'anncicapi':{'timeout':0x1388}};function a1_0x2b4a(){var _0x8c8482=['858756nRjqgH','3063068tbmFQI','924840EHOJuO','6745956lZkDcK','3260DENXdK','3iAQItw','default','4844672YgAtvx','78201dBMUIC','3234948nDNwWs','5ScECRk'];a1_0x2b4a=function(){return _0x8c8482;};return a1_0x2b4a();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x18cc(_0x5b7d0f,_0x34c1f1){const _0x549a24=a2_0x549a();return a2_0x18cc=function(_0x18cc03,_0x1e44d8){_0x18cc03=_0x18cc03-0x163;let _0x3b06da=_0x549a24[_0x18cc03];return _0x3b06da;},a2_0x18cc(_0x5b7d0f,_0x34c1f1);}const a2_0x4642db=a2_0x18cc;(function(_0x25f605,_0x2035f3){const _0x5b3253=a2_0x18cc,_0x5e431e=_0x25f605();while(!![]){try{const _0xc2c671=parseInt(_0x5b3253(0x17c))/0x1+parseInt(_0x5b3253(0x17f))/0x2*(parseInt(_0x5b3253(0x1ad))/0x3)+parseInt(_0x5b3253(0x195))/0x4+parseInt(_0x5b3253(0x18f))/0x5*(-parseInt(_0x5b3253(0x170))/0x6)+parseInt(_0x5b3253(0x1ac))/0x7+parseInt(_0x5b3253(0x1b3))/0x8+-parseInt(_0x5b3253(0x1b6))/0x9;if(_0xc2c671===_0x2035f3)break;else _0x5e431e['push'](_0x5e431e['shift']());}catch(_0x55aad5){_0x5e431e['push'](_0x5e431e['shift']());}}}(a2_0x549a,0xc7499));function a2_0x549a(){const _0x3edc80=['ApiError','./exception/ApiError','CustomConfiguration','log','environment','MidwayConfigService','bodyXml','./config/config.production','3222oaraaR','isArray','isNull','MidwayDecoratorService','onReady','./types/action','hanlderApplications','defaultsDeep','anncicapi','key','@midwayjs/koa','tmpdir','463754JbMXMd','_matchedRoute','Inject','2706YcmcTt','body','get','getConfiguration','beforeRoute','config','query','dir','koa','registerMethodHandler','@midwayjs/task','MidwayEnvironmentService','input','ApiService','existsSync','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','8250SUhUUo','filterConfig','checkConfigKeys','@midwayjs/upload','keys','defineProperty','5748276FOtmBc','@anncic-api/validator','dirs','__metadata','staticFile','./config/config.default','decorator','@midwayjs/decorator','ACTION_ROUTE_KEY','@anncic-api/cache','design:type','REQUEST_OBJ_CTX_KEY','length','@midwayjs/cross-domain','target','device','headers','@anncic-api/typeorm','prototype','__decorate','DEFAULT','@anncic-api/core','handlerActionRoute','10748024vlfXLx','552glLUmy','metadata','function','checksign','getApplications','@midwayjs/i18n','121224OYCVTb','upload','addObject','17982261CmjceU','mkdirSync','isString','./service/ApiService','Anncic-api\x20static-file\x20:\x20mkdir\x20','decorate','string','apimit','application','object','devices','@midwayjs/static-file','context','Configuration','request','@anncic-api/event'];a2_0x549a=function(){return _0x3edc80;};return a2_0x549a();}var __decorate=this&&this[a2_0x4642db(0x1a8)]||function(_0x3f7de3,_0x5074e6,_0x18237b,_0x54b9f6){const _0x822396=a2_0x4642db;var _0x2290cc=arguments[_0x822396(0x1a1)],_0x227085=_0x2290cc<0x3?_0x5074e6:_0x54b9f6===null?_0x54b9f6=Object['getOwnPropertyDescriptor'](_0x5074e6,_0x18237b):_0x54b9f6,_0x1402da;if(typeof Reflect===_0x822396(0x1bf)&&typeof Reflect[_0x822396(0x1bb)]===_0x822396(0x1af))_0x227085=Reflect['decorate'](_0x3f7de3,_0x5074e6,_0x18237b,_0x54b9f6);else{for(var _0x19c0ae=_0x3f7de3[_0x822396(0x1a1)]-0x1;_0x19c0ae>=0x0;_0x19c0ae--)if(_0x1402da=_0x3f7de3[_0x19c0ae])_0x227085=(_0x2290cc<0x3?_0x1402da(_0x227085):_0x2290cc>0x3?_0x1402da(_0x5074e6,_0x18237b,_0x227085):_0x1402da(_0x5074e6,_0x18237b))||_0x227085;}return _0x2290cc>0x3&&_0x227085&&Object['defineProperty'](_0x5074e6,_0x18237b,_0x227085),_0x227085;},__metadata=this&&this[a2_0x4642db(0x198)]||function(_0x475846,_0x41acc1){const _0x39a58d=a2_0x4642db;if(typeof Reflect==='object'&&typeof Reflect[_0x39a58d(0x1ae)]===_0x39a58d(0x1af))return Reflect[_0x39a58d(0x1ae)](_0x475846,_0x41acc1);};Object[a2_0x4642db(0x194)](exports,'__esModule',{'value':!![]}),exports[a2_0x4642db(0x16a)]=void 0x0;const decorator_1=require(a2_0x4642db(0x19c)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x4642db(0x169)),ApiService_1=require(a2_0x4642db(0x1b9)),action_1=require(a2_0x4642db(0x175)),fs=require('fs'),koa=require(a2_0x4642db(0x17a)),i18n=require(a2_0x4642db(0x1b2)),task=require(a2_0x4642db(0x189)),upload=require(a2_0x4642db(0x192)),staticFile=require(a2_0x4642db(0x163)),crossDomain=require(a2_0x4642db(0x1a2)),ConfigDefault=require(a2_0x4642db(0x19a)),ConfigProduction=require(a2_0x4642db(0x16f)),anncic=require(a2_0x4642db(0x1aa)),anncicCache=require(a2_0x4642db(0x19e)),anncicEvent=require(a2_0x4642db(0x167)),anncicTypeorm=require(a2_0x4642db(0x1a6)),anncicValidator=require(a2_0x4642db(0x196)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x4642db(0x174)](){const _0x571d29=a2_0x4642db;await this[_0x571d29(0x190)](),await this['checkConfigKeys'](),await this[_0x571d29(0x1ab)](),await this[_0x571d29(0x176)]();}async[a2_0x4642db(0x191)](){}async[a2_0x4642db(0x1ab)](){const _0x3dab2f=a2_0x4642db,_0x5ae0f8=this[_0x3dab2f(0x184)][_0x3dab2f(0x182)]();this[_0x3dab2f(0x19b)][_0x3dab2f(0x188)](action_1[_0x3dab2f(0x19d)],_0x1056ee=>{const _0x52a739=_0x3dab2f,_0x3daf22=_0x1056ee[_0x52a739(0x1ae)];return{'before':async _0x3014b0=>{const _0x7ede61=_0x52a739;var _0x6fdabe,_0x2ceb1d,_0x2d2a02,_0x57e4c3,_0x44b0ca;const _0x40f587=(_0x6fdabe=_0x3014b0===null||_0x3014b0===void 0x0?void 0x0:_0x3014b0[_0x7ede61(0x1a3)])===null||_0x6fdabe===void 0x0?void 0x0:_0x6fdabe[core_1[_0x7ede61(0x1a0)]];if(_0x40f587){if((_0x3daf22===null||_0x3daf22===void 0x0?void 0x0:_0x3daf22[_0x7ede61(0x1bd)])&&!this[_0x7ede61(0x18c)][_0x7ede61(0x1b0)]((_0x2ceb1d=_0x40f587===null||_0x40f587===void 0x0?void 0x0:_0x40f587[_0x7ede61(0x166)])===null||_0x2ceb1d===void 0x0?void 0x0:_0x2ceb1d['headers']))throw new AnnError(ApiError_1[_0x7ede61(0x168)]['HEADERS_SIGNATURE']);((_0x2d2a02=_0x40f587[_0x7ede61(0x1a5)])===null||_0x2d2a02===void 0x0?void 0x0:_0x2d2a02['device'])&&((_0x44b0ca=(_0x57e4c3=_0x5ae0f8===null||_0x5ae0f8===void 0x0?void 0x0:_0x5ae0f8['anncicapi'])===null||_0x57e4c3===void 0x0?void 0x0:_0x57e4c3[_0x7ede61(0x1c0)])===null||_0x44b0ca===void 0x0?void 0x0:_0x44b0ca[_0x40f587[_0x7ede61(0x1a5)][_0x7ede61(0x1a4)]])&&(typeof _0x5ae0f8[_0x7ede61(0x178)]['devices'][_0x40f587[_0x7ede61(0x1a5)][_0x7ede61(0x1a4)]]['beforeRoute']==_0x7ede61(0x1af)&&await _0x5ae0f8['anncicapi'][_0x7ede61(0x1c0)][_0x40f587[_0x7ede61(0x1a5)][_0x7ede61(0x1a4)]][_0x7ede61(0x183)]((_0x40f587===null||_0x40f587===void 0x0?void 0x0:_0x40f587[_0x7ede61(0x17d)])||undefined,_0x3daf22,_0x40f587));}},'afterThrow':(_0x11de94,_0x4bb8ef)=>{throw _0x4bb8ef;}};});}async['hanlderApplications'](){const _0x21e331=a2_0x4642db;this[_0x21e331(0x1be)][_0x21e331(0x1b1)]([_0x21e331(0x187)])['forEach'](_0xe743d5=>{const _0x4d64d9=_0x21e331;(_0xe743d5===null||_0xe743d5===void 0x0?void 0x0:_0xe743d5['context'])&&Object['defineProperties'](_0xe743d5[_0x4d64d9(0x164)],{'ok':{'value':function(_0x584338,_0x45526f,_0x2e7ef9=0x0){return{'code':_0x2e7ef9,'data':_0x584338,'extra':_0x45526f};}},'err':{'value':function(_0x167a9e,_0x4f3e72,_0x1ca535=0x1){return{'code':_0x1ca535,'extra':_0x4f3e72,'msg':_0x167a9e};}},'input':{'value':function(_0x49d0e0,_0x37289e){const _0x23b7d4=_0x4d64d9;var _0x1d8dec;const _0x1c27ba=lodash[_0x23b7d4(0x177)]({},this[_0x23b7d4(0x166)][_0x23b7d4(0x180)]||this[_0x23b7d4(0x166)][((_0x1d8dec=config===null||config===void 0x0?void 0x0:config[_0x23b7d4(0x16e)])===null||_0x1d8dec===void 0x0?void 0x0:_0x1d8dec[_0x23b7d4(0x179)])||_0x23b7d4(0x180)]||{},this[_0x23b7d4(0x166)][_0x23b7d4(0x185)]||{});return _0x49d0e0?lodash[_0x23b7d4(0x181)](_0x1c27ba,_0x49d0e0,_0x37289e):_0x1c27ba;}},'when':{'value':async function(_0x40c780,_0x1513e6){const _0xa33529=_0x4d64d9,_0x59e78c=this[_0xa33529(0x18b)](_0x40c780,null);if(!lodash[_0xa33529(0x172)](_0x59e78c))return await _0x1513e6(_0x59e78c);}},'only':{'value':function(_0x22980f){const _0x3f0479=_0x4d64d9,_0x47884d={};for(let _0x158234=0x0;_0x158234<_0x22980f[_0x3f0479(0x1a1)];_0x158234++){lodash[_0x3f0479(0x171)](_0x22980f[_0x158234])&&_0x22980f[_0x158234][_0x3f0479(0x1a1)]>0x0&&lodash[_0x3f0479(0x1b8)](_0x22980f[_0x158234][0x0])&&(_0x47884d[_0x22980f[_0x158234][0x0]]=this[_0x3f0479(0x18b)](_0x22980f[_0x158234][0x0],_0x22980f[_0x158234][_0x3f0479(0x1a1)]>0x1?_0x22980f[_0x158234][0x1]:null));}return _0x47884d;}}});});}async[a2_0x4642db(0x190)](){const _0x267e33=a2_0x4642db;var _0x4546d7,_0x52aac4,_0x1072a3,_0x1134c0,_0x162ea8,_0x3c643f;const _0x5257a5=this[_0x267e33(0x184)][_0x267e33(0x182)]();((_0x52aac4=(_0x4546d7=_0x5257a5===null||_0x5257a5===void 0x0?void 0x0:_0x5257a5[_0x267e33(0x178)])===null||_0x4546d7===void 0x0?void 0x0:_0x4546d7[_0x267e33(0x1c0)])===null||_0x52aac4===void 0x0?void 0x0:_0x52aac4[_0x267e33(0x1a9)])&&Object[_0x267e33(0x193)](_0x5257a5[_0x267e33(0x178)][_0x267e33(0x1c0)])['length']>0x1&&delete _0x5257a5[_0x267e33(0x178)]['devices'][_0x267e33(0x1a9)];if((_0x1072a3=_0x5257a5===null||_0x5257a5===void 0x0?void 0x0:_0x5257a5[_0x267e33(0x199)])===null||_0x1072a3===void 0x0?void 0x0:_0x1072a3['dirs'])for(const _0x410d91 in _0x5257a5[_0x267e33(0x199)][_0x267e33(0x197)]){((_0x1134c0=_0x5257a5[_0x267e33(0x199)][_0x267e33(0x197)][_0x410d91])===null||_0x1134c0===void 0x0?void 0x0:_0x1134c0[_0x267e33(0x186)])&&typeof((_0x162ea8=_0x5257a5[_0x267e33(0x199)][_0x267e33(0x197)][_0x410d91])===null||_0x162ea8===void 0x0?void 0x0:_0x162ea8[_0x267e33(0x186)])==_0x267e33(0x1bc)&&!fs['existsSync'](_0x5257a5[_0x267e33(0x199)][_0x267e33(0x197)][_0x410d91][_0x267e33(0x186)])&&(fs[_0x267e33(0x1b7)](_0x5257a5[_0x267e33(0x199)]['dirs'][_0x410d91]['dir'],{'recursive':!![]}),console['log'](_0x267e33(0x1ba)+_0x5257a5['staticFile'][_0x267e33(0x197)][_0x410d91][_0x267e33(0x186)]));}((_0x3c643f=_0x5257a5===null||_0x5257a5===void 0x0?void 0x0:_0x5257a5[_0x267e33(0x1b4)])===null||_0x3c643f===void 0x0?void 0x0:_0x3c643f[_0x267e33(0x17b)])&&!fs[_0x267e33(0x18d)](_0x5257a5['upload'][_0x267e33(0x17b)])&&(fs['mkdirSync'](_0x5257a5[_0x267e33(0x1b4)][_0x267e33(0x17b)],{'recursive':!![]}),console[_0x267e33(0x16b)](_0x267e33(0x18e)+_0x5257a5[_0x267e33(0x1b4)]['tmpdir'])),this[_0x267e33(0x184)][_0x267e33(0x1b5)](_0x5257a5);}};__decorate([(0x0,decorator_1[a2_0x4642db(0x17e)])(),__metadata(a2_0x4642db(0x19f),core_1[a2_0x4642db(0x16d)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x4642db(0x17e)])(),__metadata(a2_0x4642db(0x19f),core_1[a2_0x4642db(0x173)])],CustomConfiguration['prototype'],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x4642db(0x17e)])(),__metadata('design:type',core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x4642db(0x1a7)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x4642db(0x17e)])(),__metadata(a2_0x4642db(0x19f),core_1[a2_0x4642db(0x18a)])],CustomConfiguration[a2_0x4642db(0x1a7)],a2_0x4642db(0x16c),void 0x0),__decorate([(0x0,decorator_1[a2_0x4642db(0x17e)])(),__metadata('design:type',ApiService_1[a2_0x4642db(0x18c)])],CustomConfiguration['prototype'],a2_0x4642db(0x18c),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x4642db(0x165)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x540df6=a2_0x1b0c;function a2_0x1b0c(_0x3c8b20,_0x1089f9){const _0x3d1116=a2_0x3d11();return a2_0x1b0c=function(_0x1b0c20,_0x426031){_0x1b0c20=_0x1b0c20-0x66;let _0x1cd170=_0x3d1116[_0x1b0c20];return _0x1cd170;},a2_0x1b0c(_0x3c8b20,_0x1089f9);}function a2_0x3d11(){const _0x145a82=['2703726LlHRQo','./config/config.production','config','body','@midwayjs/koa','koa','anncicapi','device','defineProperties','string','filterConfig','36kXquZc','registerMethodHandler','prototype','3416716sfKNDR','handlerActionRoute','metadata','CustomConfiguration','11xlxHLi','upload','function','mkdirSync','onReady','@anncic-api/cache','__metadata','_matchedRoute','request','object','Inject','MidwayEnvironmentService','tmpdir','ApiError','decorator','186123aafMKo','keys','1005219IAhVTW','./exception/ApiError','isNull','REQUEST_OBJ_CTX_KEY','headers','MidwayConfigService','staticFile','log','@midwayjs/task','@anncic-api/validator','@anncic-api/typeorm','apimit','HEADERS_SIGNATURE','bodyXml','getConfiguration','application','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/event','checkConfigKeys','1FvULER','dirs','anncic-api','10sBwaoT','Anncic-api\x20static-file\x20:\x20mkdir\x20','existsSync','@midwayjs/decorator','MidwayApplicationManager','decorate','length','DEFAULT','isArray','input','@midwayjs/static-file','12298797mBRMwN','isString','devices','88ypkdQI','checksign','863195eebMDg','defineProperty','@midwayjs/cross-domain','context','beforeRoute','dir','defaultsDeep','ApiService','forEach','key','get','./types/action','hanlderApplications','35784636EsgxST','design:type'];a2_0x3d11=function(){return _0x145a82;};return a2_0x3d11();}(function(_0x124ba1,_0x2fc22d){const _0x57333f=a2_0x1b0c,_0x2c00b5=_0x124ba1();while(!![]){try{const _0x671f37=parseInt(_0x57333f(0x76))/0x1*(-parseInt(_0x57333f(0x98))/0x2)+parseInt(_0x57333f(0xbb))/0x3+parseInt(_0x57333f(0xa6))/0x4+-parseInt(_0x57333f(0x89))/0x5*(parseInt(_0x57333f(0xa3))/0x6)+parseInt(_0x57333f(0xb9))/0x7*(parseInt(_0x57333f(0x87))/0x8)+parseInt(_0x57333f(0x84))/0x9*(-parseInt(_0x57333f(0x79))/0xa)+-parseInt(_0x57333f(0xaa))/0xb*(-parseInt(_0x57333f(0x96))/0xc);if(_0x671f37===_0x2fc22d)break;else _0x2c00b5['push'](_0x2c00b5['shift']());}catch(_0x5870a0){_0x2c00b5['push'](_0x2c00b5['shift']());}}}(a2_0x3d11,0xad3b2));var __decorate=this&&this['__decorate']||function(_0xe7b24c,_0x2dd8d0,_0x50bf0a,_0x50db06){const _0x41d139=a2_0x1b0c;var _0x46c351=arguments[_0x41d139(0x7f)],_0x53adde=_0x46c351<0x3?_0x2dd8d0:_0x50db06===null?_0x50db06=Object['getOwnPropertyDescriptor'](_0x2dd8d0,_0x50bf0a):_0x50db06,_0x37b774;if(typeof Reflect===_0x41d139(0xb3)&&typeof Reflect['decorate']===_0x41d139(0xac))_0x53adde=Reflect[_0x41d139(0x7e)](_0xe7b24c,_0x2dd8d0,_0x50bf0a,_0x50db06);else{for(var _0x15ea42=_0xe7b24c['length']-0x1;_0x15ea42>=0x0;_0x15ea42--)if(_0x37b774=_0xe7b24c[_0x15ea42])_0x53adde=(_0x46c351<0x3?_0x37b774(_0x53adde):_0x46c351>0x3?_0x37b774(_0x2dd8d0,_0x50bf0a,_0x53adde):_0x37b774(_0x2dd8d0,_0x50bf0a))||_0x53adde;}return _0x46c351>0x3&&_0x53adde&&Object[_0x41d139(0x8a)](_0x2dd8d0,_0x50bf0a,_0x53adde),_0x53adde;},__metadata=this&&this[a2_0x540df6(0xb0)]||function(_0x45dcaa,_0xefbea2){const _0xd8caf5=a2_0x540df6;if(typeof Reflect==='object'&&typeof Reflect[_0xd8caf5(0xa8)]===_0xd8caf5(0xac))return Reflect['metadata'](_0x45dcaa,_0xefbea2);};Object[a2_0x540df6(0x8a)](exports,'__esModule',{'value':!![]}),exports[a2_0x540df6(0xa9)]=void 0x0;const decorator_1=require(a2_0x540df6(0x7c)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x540df6(0xbc)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x540df6(0x94)),fs=require('fs'),koa=require(a2_0x540df6(0x9c)),i18n=require('@midwayjs/i18n'),task=require(a2_0x540df6(0x6b)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x540df6(0x83)),crossDomain=require(a2_0x540df6(0x8b)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x540df6(0x99)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x540df6(0xaf)),anncicEvent=require(a2_0x540df6(0x74)),anncicTypeorm=require(a2_0x540df6(0x6d)),anncicValidator=require(a2_0x540df6(0x6c)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x540df6(0xae)](){const _0x24fc3e=a2_0x540df6;await this[_0x24fc3e(0xa2)](),await this['checkConfigKeys'](),await this[_0x24fc3e(0xa7)](),await this[_0x24fc3e(0x95)]();}async[a2_0x540df6(0x75)](){}async[a2_0x540df6(0xa7)](){const _0x50ecc8=a2_0x540df6,_0xf61be0=this[_0x50ecc8(0x9a)][_0x50ecc8(0x71)]();this['decorator'][_0x50ecc8(0xa4)](action_1['ACTION_ROUTE_KEY'],_0x3f5c84=>{const _0x1c2189=_0x50ecc8,_0x10af6d=_0x3f5c84[_0x1c2189(0xa8)];return{'before':async _0xa3f945=>{const _0x28afc1=_0x1c2189;var _0x4352fb,_0x2ee4f5,_0x454f0d,_0x2fe5cb,_0x270004;const _0x415dfd=(_0x4352fb=_0xa3f945===null||_0xa3f945===void 0x0?void 0x0:_0xa3f945['target'])===null||_0x4352fb===void 0x0?void 0x0:_0x4352fb[core_1[_0x28afc1(0x66)]];if(_0x415dfd){if((_0x10af6d===null||_0x10af6d===void 0x0?void 0x0:_0x10af6d[_0x28afc1(0x6e)])&&!this[_0x28afc1(0x90)][_0x28afc1(0x88)]((_0x2ee4f5=_0x415dfd===null||_0x415dfd===void 0x0?void 0x0:_0x415dfd[_0x28afc1(0xb2)])===null||_0x2ee4f5===void 0x0?void 0x0:_0x2ee4f5[_0x28afc1(0x67)]))throw new AnnError(ApiError_1[_0x28afc1(0xb7)][_0x28afc1(0x6f)]);((_0x454f0d=_0x415dfd[_0x28afc1(0x67)])===null||_0x454f0d===void 0x0?void 0x0:_0x454f0d[_0x28afc1(0x9f)])&&((_0x270004=(_0x2fe5cb=_0xf61be0===null||_0xf61be0===void 0x0?void 0x0:_0xf61be0['anncicapi'])===null||_0x2fe5cb===void 0x0?void 0x0:_0x2fe5cb[_0x28afc1(0x86)])===null||_0x270004===void 0x0?void 0x0:_0x270004[_0x415dfd[_0x28afc1(0x67)][_0x28afc1(0x9f)]])&&(typeof _0xf61be0['anncicapi'][_0x28afc1(0x86)][_0x415dfd[_0x28afc1(0x67)][_0x28afc1(0x9f)]][_0x28afc1(0x8d)]==_0x28afc1(0xac)&&await _0xf61be0[_0x28afc1(0x9e)]['devices'][_0x415dfd['headers'][_0x28afc1(0x9f)]][_0x28afc1(0x8d)]((_0x415dfd===null||_0x415dfd===void 0x0?void 0x0:_0x415dfd[_0x28afc1(0xb1)])||undefined,_0x415dfd,_0x10af6d));}},'afterThrow':(_0x50108e,_0xe2b46)=>{throw _0xe2b46;}};});}async[a2_0x540df6(0x95)](){const _0x322d52=a2_0x540df6;this[_0x322d52(0x72)]['getApplications']([_0x322d52(0x9d)])[_0x322d52(0x91)](_0x2cefe0=>{const _0x1b5a59=_0x322d52;(_0x2cefe0===null||_0x2cefe0===void 0x0?void 0x0:_0x2cefe0[_0x1b5a59(0x8c)])&&Object[_0x1b5a59(0xa0)](_0x2cefe0['context'],{'ok':{'value':function(_0x2d8678,_0x504c9e,_0x545b6a=0x0){return{'code':_0x545b6a,'data':_0x2d8678,'extra':_0x504c9e};}},'err':{'value':function(_0x1ecd39,_0x89544b,_0x2619cc=0x1){return{'code':_0x2619cc,'extra':_0x89544b,'msg':_0x1ecd39};}},'input':{'value':function(_0x1ed343,_0x587ac3){const _0xd79095=_0x1b5a59;var _0x426278;const _0x44f99f=lodash[_0xd79095(0x8f)]({},this[_0xd79095(0xb2)][_0xd79095(0x9b)]||this[_0xd79095(0xb2)][((_0x426278=config===null||config===void 0x0?void 0x0:config[_0xd79095(0x70)])===null||_0x426278===void 0x0?void 0x0:_0x426278[_0xd79095(0x92)])||'body']||{},this[_0xd79095(0xb2)]['query']||{});return _0x1ed343?lodash[_0xd79095(0x93)](_0x44f99f,_0x1ed343,_0x587ac3):_0x44f99f;}},'when':{'value':async function(_0x4d9fd1,_0x31e7bf){const _0x20b63c=_0x1b5a59,_0x4edc90=this['input'](_0x4d9fd1,null);if(!lodash[_0x20b63c(0xbd)](_0x4edc90))return await _0x31e7bf(_0x4edc90);}},'only':{'value':function(_0x24d329){const _0x1586ba=_0x1b5a59,_0x548f51={};for(let _0x1ece8e=0x0;_0x1ece8e<_0x24d329[_0x1586ba(0x7f)];_0x1ece8e++){lodash[_0x1586ba(0x81)](_0x24d329[_0x1ece8e])&&_0x24d329[_0x1ece8e][_0x1586ba(0x7f)]>0x0&&lodash[_0x1586ba(0x85)](_0x24d329[_0x1ece8e][0x0])&&(_0x548f51[_0x24d329[_0x1ece8e][0x0]]=this[_0x1586ba(0x82)](_0x24d329[_0x1ece8e][0x0],_0x24d329[_0x1ece8e][_0x1586ba(0x7f)]>0x1?_0x24d329[_0x1ece8e][0x1]:null));}return _0x548f51;}}});});}async[a2_0x540df6(0xa2)](){const _0x438d67=a2_0x540df6;var _0x53084d,_0x46fcf2,_0x2009ad,_0x54b03a,_0x24cd36,_0x1988fe;const _0x5048e6=this[_0x438d67(0x9a)][_0x438d67(0x71)]();((_0x46fcf2=(_0x53084d=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6[_0x438d67(0x9e)])===null||_0x53084d===void 0x0?void 0x0:_0x53084d['devices'])===null||_0x46fcf2===void 0x0?void 0x0:_0x46fcf2[_0x438d67(0x80)])&&Object[_0x438d67(0xba)](_0x5048e6[_0x438d67(0x9e)][_0x438d67(0x86)])['length']>0x1&&delete _0x5048e6[_0x438d67(0x9e)][_0x438d67(0x86)][_0x438d67(0x80)];if((_0x2009ad=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6[_0x438d67(0x69)])===null||_0x2009ad===void 0x0?void 0x0:_0x2009ad[_0x438d67(0x77)])for(const _0x4d7197 in _0x5048e6[_0x438d67(0x69)]['dirs']){((_0x54b03a=_0x5048e6[_0x438d67(0x69)]['dirs'][_0x4d7197])===null||_0x54b03a===void 0x0?void 0x0:_0x54b03a[_0x438d67(0x8e)])&&typeof((_0x24cd36=_0x5048e6['staticFile'][_0x438d67(0x77)][_0x4d7197])===null||_0x24cd36===void 0x0?void 0x0:_0x24cd36[_0x438d67(0x8e)])==_0x438d67(0xa1)&&!fs[_0x438d67(0x7b)](_0x5048e6[_0x438d67(0x69)][_0x438d67(0x77)][_0x4d7197]['dir'])&&(fs[_0x438d67(0xad)](_0x5048e6[_0x438d67(0x69)]['dirs'][_0x4d7197][_0x438d67(0x8e)],{'recursive':!![]}),console[_0x438d67(0x6a)](_0x438d67(0x7a)+_0x5048e6[_0x438d67(0x69)][_0x438d67(0x77)][_0x4d7197][_0x438d67(0x8e)]));}((_0x1988fe=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6['upload'])===null||_0x1988fe===void 0x0?void 0x0:_0x1988fe['tmpdir'])&&!fs[_0x438d67(0x7b)](_0x5048e6[_0x438d67(0xab)][_0x438d67(0xb6)])&&(fs[_0x438d67(0xad)](_0x5048e6[_0x438d67(0xab)]['tmpdir'],{'recursive':!![]}),console[_0x438d67(0x6a)](_0x438d67(0x73)+_0x5048e6['upload'][_0x438d67(0xb6)])),this[_0x438d67(0x9a)]['addObject'](_0x5048e6);}};__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata('design:type',core_1[a2_0x540df6(0x68)])],CustomConfiguration[a2_0x540df6(0xa5)],'config',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x540df6(0x97),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x540df6(0xb8),void 0x0),__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata(a2_0x540df6(0x97),core_1[a2_0x540df6(0x7d)])],CustomConfiguration['prototype'],a2_0x540df6(0x72),void 0x0),__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata(a2_0x540df6(0x97),core_1[a2_0x540df6(0xb5)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x540df6(0x97),ApiService_1['ApiService'])],CustomConfiguration[a2_0x540df6(0xa5)],a2_0x540df6(0x90),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x540df6(0x78),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x540df6(0xa9)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x2d7b8c=a3_0x5532;(function(_0x142b96,_0x17f4f1){const _0x28cb5b=a3_0x5532,_0x325b81=_0x142b96();while(!![]){try{const _0x45c3cb=parseInt(_0x28cb5b(0x129))/0x1+-parseInt(_0x28cb5b(0x139))/0x2+parseInt(_0x28cb5b(0x135))/0x3+parseInt(_0x28cb5b(0x150))/0x4*(-parseInt(_0x28cb5b(0x14b))/0x5)+-parseInt(_0x28cb5b(0x159))/0x6+-parseInt(_0x28cb5b(0x147))/0x7+parseInt(_0x28cb5b(0x137))/0x8*(parseInt(_0x28cb5b(0x138))/0x9);if(_0x45c3cb===_0x17f4f1)break;else _0x325b81['push'](_0x325b81['shift']());}catch(_0x3d8b6e){_0x325b81['push'](_0x325b81['shift']());}}}(a3_0x347e,0x2dad1));function a3_0x347e(){const _0xec6db5=['__esModule','length','785700zWqVeL','/controller/文件下','join','filepath','\x20文件请放在apps/','-action','41801nUhpUn','startsWith','getClassMetadata','splice','indexOf','apps/','Controller','@midwayjs/decorator','\x20文件请放在app/controller/文件下','substring','existsSync','app/controller/','374061NWbvWU','../types/action','3113744NvDhyZ','9EuNOVL','225906wcrUia','/controller/','module','isArray','ACTION_KEY','saveClassMetadata','/config.','endsWith','middlewareIgnore','prefix','middleware','APPSCONFIG_KEY','saveModule','route','47810dwVImk','Action','toLowerCase','-controller','45340XxdtGs','/apps/','split','match','rootpath','52ExezCs','push','defineProperty','filter','trim','replace','parseRoute'];a3_0x347e=function(){return _0xec6db5;};return a3_0x347e();}Object[a3_0x2d7b8c(0x152)](exports,a3_0x2d7b8c(0x157),{'value':!![]}),exports[a3_0x2d7b8c(0x156)]=exports[a3_0x2d7b8c(0x148)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x2d7b8c(0x130)),action_1=require(a3_0x2d7b8c(0x136));function Action(_0x494079,_0x222c42,_0x2d8d3d={'middleware':[],'sensitive':!![]}){return _0x15ab5b=>{const _0x484a44=a3_0x5532;_0x2d8d3d['tagName']=_0x222c42;const _0x3c7746=parseRoute(_0x494079);if(_0x3c7746['module']){_0x2d8d3d[_0x484a44(0x142)]=_0x2d8d3d['prefix']?'/'+_0x3c7746[_0x484a44(0x13b)]+'/'+_0x2d8d3d[_0x484a44(0x142)]:'/'+_0x3c7746[_0x484a44(0x146)];_0x3c7746[_0x484a44(0x142)]&&(_0x2d8d3d[_0x484a44(0x142)]='/'+_0x3c7746[_0x484a44(0x142)]+'/'+_0x2d8d3d[_0x484a44(0x142)]);if(fs[_0x484a44(0x133)](_0x3c7746['rootpath']+'/apps/'+_0x3c7746[_0x484a44(0x13b)]+_0x484a44(0x13f)+(lodash['endsWith'](_0x3c7746[_0x484a44(0x126)],'ts')?'ts':'js'))){const _0x4bc42d=include(_0x3c7746[_0x484a44(0x14f)]+'/apps/'+_0x3c7746[_0x484a44(0x13b)]+_0x484a44(0x13f)+(lodash[_0x484a44(0x140)](_0x3c7746[_0x484a44(0x126)],'ts')?'ts':'js'));if(_0x4bc42d[_0x484a44(0x143)]&&lodash[_0x484a44(0x13c)](_0x4bc42d[_0x484a44(0x143)])&&_0x4bc42d['middleware'][_0x484a44(0x158)]>0x0)for(let _0x5e0448 in _0x4bc42d[_0x484a44(0x143)]){_0x4bc42d[_0x484a44(0x141)][_0x484a44(0x12d)](_0x4bc42d['middleware'][_0x5e0448])==-0x1&&_0x2d8d3d[_0x484a44(0x143)][_0x484a44(0x151)](_0x4bc42d['middleware'][_0x5e0448]);}const _0x407fc9=(0x0,decorator_1[_0x484a44(0x12b)])(action_1[_0x484a44(0x144)],action_1['AppsConfigTmp'])||{};_0x407fc9[''+_0x3c7746['module']]=_0x4bc42d,(0x0,decorator_1[_0x484a44(0x13e)])(action_1[_0x484a44(0x144)],_0x407fc9,action_1['AppsConfigTmp']);}_0x2d8d3d[_0x484a44(0x142)]=_0x2d8d3d[_0x484a44(0x142)]['toLowerCase']()[_0x484a44(0x155)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x484a44(0x145)])(action_1[_0x484a44(0x13d)],_0x15ab5b),(0x0,decorator_1[_0x484a44(0x12f)])(_0x2d8d3d[_0x484a44(0x142)],_0x2d8d3d)(_0x15ab5b),(0x0,decorator_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x2d8d3d[_0x484a44(0x142)],'pprefix':_0x3c7746['prefix'],'module':_0x3c7746['module'],'filepath':_0x3c7746['filepath'],'routerOptions':_0x2d8d3d},_0x15ab5b);}else _0x2d8d3d[_0x484a44(0x142)]=_0x2d8d3d[_0x484a44(0x142)]?'/'+_0x2d8d3d[_0x484a44(0x142)]:'/'+_0x3c7746[_0x484a44(0x146)],_0x3c7746[_0x484a44(0x142)]&&(_0x2d8d3d[_0x484a44(0x142)]='/'+_0x3c7746[_0x484a44(0x142)]+'/'+_0x2d8d3d[_0x484a44(0x142)]),_0x2d8d3d[_0x484a44(0x142)]=_0x2d8d3d[_0x484a44(0x142)][_0x484a44(0x149)]()[_0x484a44(0x155)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x484a44(0x145)])(action_1[_0x484a44(0x13d)],_0x15ab5b),(0x0,decorator_1[_0x484a44(0x12f)])(_0x2d8d3d[_0x484a44(0x142)],_0x2d8d3d)(_0x15ab5b),(0x0,decorator_1[_0x484a44(0x13e)])(action_1[_0x484a44(0x13d)],{'prefix':_0x2d8d3d[_0x484a44(0x142)],'module':_0x3c7746['module'],'pprefix':_0x3c7746[_0x484a44(0x142)],'filepath':_0x3c7746[_0x484a44(0x126)],'routerOptions':_0x2d8d3d},_0x15ab5b);};}exports[a3_0x2d7b8c(0x148)]=Action;function a3_0x5532(_0x1e25f4,_0xc40c4a){const _0x347ed8=a3_0x347e();return a3_0x5532=function(_0x5532a7,_0x507864){_0x5532a7=_0x5532a7-0x125;let _0x54ade1=_0x347ed8[_0x5532a7];return _0x54ade1;},a3_0x5532(_0x1e25f4,_0xc40c4a);}function parseRoute(_0xaf16bb){const _0x5c2bc7=a3_0x2d7b8c;_0xaf16bb=_0xaf16bb[_0x5c2bc7(0x155)](/(\\|\/)/g,'/');const _0x458e2a=process['cwd']()[_0x5c2bc7(0x155)](/(\\|\/)/g,'/'),_0x17c03b=_0xaf16bb[_0x5c2bc7(0x132)](0x0,_0x458e2a[_0x5c2bc7(0x158)]+_0xaf16bb[_0x5c2bc7(0x132)](_0x458e2a[_0x5c2bc7(0x158)]+0x1)['indexOf']('/')+0x1),_0x57440c=_0xaf16bb['substring'](_0x17c03b[_0x5c2bc7(0x158)]+0x1)[_0x5c2bc7(0x155)](/(\\|\/)/g,'/'),_0x53aca2={'route':'','prefix':![],'module':![],'rootpath':_0x17c03b,'filepath':_0x57440c};if(_0x57440c['startsWith'](_0x5c2bc7(0x134))){const _0xa606ca=_0x57440c[_0x5c2bc7(0x132)](_0x5c2bc7(0x134)[_0x5c2bc7(0x158)])[_0x5c2bc7(0x14d)]('/')[_0x5c2bc7(0x153)](_0x299b90=>_0x299b90&&_0x299b90['trim']());return _0xa606ca['length']>0x1&&(_0x53aca2[_0x5c2bc7(0x142)]=_0xa606ca[0x0][_0x5c2bc7(0x149)](),_0xa606ca[_0x5c2bc7(0x12c)](0x0,0x1)),_0x53aca2[_0x5c2bc7(0x146)]=('/'+_0xa606ca[_0x5c2bc7(0x125)]('/'))[_0x5c2bc7(0x155)](/(\.ts|\.js)$/,'')[_0x5c2bc7(0x155)](/\/{2,}/g,'/')[_0x5c2bc7(0x14e)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x5c2bc7(0x149)]()[_0x5c2bc7(0x155)](/\/\-/g,'/'),_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x140)](_0x5c2bc7(0x128))&&(_0x53aca2[_0x5c2bc7(0x146)]=_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x132)](0x0,_0x53aca2[_0x5c2bc7(0x146)]['length']-0x7)),_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x140)](_0x5c2bc7(0x14a))&&(_0x53aca2['route']=_0x53aca2['route'][_0x5c2bc7(0x132)](0x0,_0x53aca2[_0x5c2bc7(0x146)]['length']-0xb)),_0x53aca2;}else{if(_0x57440c['startsWith']('apps/')){const _0x322114=_0x57440c[_0x5c2bc7(0x132)](0x0,_0x57440c[_0x5c2bc7(0x12d)](_0x5c2bc7(0x14c))+0x5),_0x56a5ce=_0x57440c['substring'](_0x322114[_0x5c2bc7(0x158)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x5c2bc7(0x14d)]('/')[0x0];if(_0x57440c[_0x5c2bc7(0x12a)](_0x5c2bc7(0x12e)+_0x56a5ce+_0x5c2bc7(0x13a))){const _0x78080c=_0x57440c[_0x5c2bc7(0x132)]((_0x322114+'/'+_0x56a5ce+_0x5c2bc7(0x13a))['length'])[_0x5c2bc7(0x14d)]('/')[_0x5c2bc7(0x153)](_0x595275=>_0x595275&&_0x595275[_0x5c2bc7(0x154)]());return _0x78080c[_0x5c2bc7(0x158)]>0x1&&(_0x53aca2[_0x5c2bc7(0x142)]=_0x78080c[0x0][_0x5c2bc7(0x149)](),_0x78080c[_0x5c2bc7(0x12c)](0x0,0x1)),_0x53aca2[_0x5c2bc7(0x13b)]=_0x56a5ce,_0x53aca2[_0x5c2bc7(0x146)]=('/'+_0x56a5ce+'/'+_0x78080c[_0x5c2bc7(0x125)]('/'))[_0x5c2bc7(0x155)](/(\.ts|\.js)$/,'')[_0x5c2bc7(0x155)](/\/{2,}/,'/')[_0x5c2bc7(0x14e)](/[\/|A-Z]*[^A-Z]+/g)[_0x5c2bc7(0x125)]('-')[_0x5c2bc7(0x149)]()['replace'](/\/\-/g,'/'),_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x140)](_0x5c2bc7(0x128))&&(_0x53aca2['route']=_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x132)](0x0,_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x158)]-0x7)),_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x140)](_0x5c2bc7(0x14a))&&(_0x53aca2[_0x5c2bc7(0x146)]=_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x132)](0x0,_0x53aca2[_0x5c2bc7(0x146)][_0x5c2bc7(0x158)]-0xb)),_0x53aca2;}throw new Error(_0x57440c+_0x5c2bc7(0x127)+_0x56a5ce+_0x5c2bc7(0x15a));}}throw new Error(_0x57440c+_0x5c2bc7(0x131));}exports[a3_0x2d7b8c(0x156)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x5bf297=a4_0x2c0d;(function(_0x52f31e,_0x449599){const _0x5092d0=a4_0x2c0d,_0x5dc7b2=_0x52f31e();while(!![]){try{const _0x13f9a8=parseInt(_0x5092d0(0x18b))/0x1+parseInt(_0x5092d0(0x18e))/0x2*(parseInt(_0x5092d0(0x1a3))/0x3)+parseInt(_0x5092d0(0x19c))/0x4*(parseInt(_0x5092d0(0x187))/0x5)+-parseInt(_0x5092d0(0x19b))/0x6*(-parseInt(_0x5092d0(0x18f))/0x7)+parseInt(_0x5092d0(0x196))/0x8+parseInt(_0x5092d0(0x194))/0x9+-parseInt(_0x5092d0(0x1a4))/0xa*(parseInt(_0x5092d0(0x19a))/0xb);if(_0x13f9a8===_0x449599)break;else _0x5dc7b2['push'](_0x5dc7b2['shift']());}catch(_0x285494){_0x5dc7b2['push'](_0x5dc7b2['shift']());}}}(a4_0x4383,0x4e03a));function a4_0x2c0d(_0x465902,_0xfdddd4){const _0x438362=a4_0x4383();return a4_0x2c0d=function(_0x2c0d9d,_0x44b426){_0x2c0d9d=_0x2c0d9d-0x186;let _0x2607b8=_0x438362[_0x2c0d9d];return _0x2607b8;},a4_0x2c0d(_0x465902,_0xfdddd4);}function a4_0x4383(){const _0x5ab236=['filter','utc','9938faeHmW','105119tUEoPz','get','defineProperty','toLowerCase','Validator','3239586pumarU','indexOf','2615944jRIUFO','description','routerName','del','161029EvqmsM','66foCkfX','624fwPcrq','RequestMapping','length','middleware','Api','__esModule','createCustomMethodDecorator','66mswlBC','750aMMxTt','apimit','middlewareIgnore','delete','@anncic-api/validator','1670kNIxWX','assign','validate','ACTION_ROUTE_KEY','403915CkpJDG'];a4_0x4383=function(){return _0x5ab236;};return a4_0x4383();}Object[a4_0x5bf297(0x191)](exports,a4_0x5bf297(0x1a1),{'value':!![]}),exports[a4_0x5bf297(0x1a0)]=void 0x0;const validator_1=require(a4_0x5bf297(0x186)),decorator_1=require('@midwayjs/decorator'),action_1=require('../types/action');function Api(_0x3a17d9,_0x4dc6ec=a4_0x5bf297(0x190),_0x1c8347='/',_0x392aa6={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x38d522,_0x1eecc4,_0x89345c)=>{const _0x40e949=a4_0x2c0d;var _0x589d24,_0x1024e8,_0x3c1e1d;!_0x392aa6['middleware']&&(_0x392aa6[_0x40e949(0x19f)]=[]);!((_0x589d24=_0x392aa6===null||_0x392aa6===void 0x0?void 0x0:_0x392aa6[_0x40e949(0x189)])===null||_0x589d24===void 0x0?void 0x0:_0x589d24['validationOptions'])&&(_0x392aa6['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x40e949(0x18d)}});if(((_0x1024e8=_0x392aa6===null||_0x392aa6===void 0x0?void 0x0:_0x392aa6['middleware'])===null||_0x1024e8===void 0x0?void 0x0:_0x1024e8['length'])>0x0&&((_0x3c1e1d=_0x392aa6===null||_0x392aa6===void 0x0?void 0x0:_0x392aa6[_0x40e949(0x1a6)])===null||_0x3c1e1d===void 0x0?void 0x0:_0x3c1e1d[_0x40e949(0x19e)])>0x0)for(let _0x1351ae in _0x392aa6[_0x40e949(0x19f)]){_0x392aa6['middlewareIgnore'][_0x40e949(0x195)](_0x392aa6[_0x40e949(0x19f)][_0x1351ae])!==-0x1&&(_0x392aa6[_0x40e949(0x19f)][_0x1351ae]=null);}_0x392aa6[_0x40e949(0x198)]=_0x3a17d9,(0x0,validator_1[_0x40e949(0x193)])(_0x392aa6[_0x40e949(0x189)])(_0x38d522,_0x1eecc4,_0x89345c),(0x0,decorator_1[_0x40e949(0x19d)])(Object[_0x40e949(0x188)](_0x392aa6,{'path':_0x1c8347,'requestMethod':(_0x4dc6ec==_0x40e949(0x199)?_0x40e949(0x1a7):_0x4dc6ec)['toLowerCase']()}))(_0x38d522,_0x1eecc4,_0x89345c),(0x0,decorator_1['attachClassMetadata'])(action_1[_0x40e949(0x18a)],{'path':_0x1c8347,'method':_0x1eecc4,'apimit':_0x392aa6[_0x40e949(0x1a5)],'routerName':_0x392aa6[_0x40e949(0x198)],'description':_0x392aa6[_0x40e949(0x197)],'middleware':(_0x392aa6[_0x40e949(0x19f)]||[])['filter'](_0x4ce6f0=>!!_0x4ce6f0),'requestMethod':(_0x4dc6ec=='del'?_0x40e949(0x1a7):_0x4dc6ec)[_0x40e949(0x192)]()},_0x38d522),(0x0,decorator_1[_0x40e949(0x1a2)])(action_1[_0x40e949(0x18a)],{'path':_0x1c8347,'method':_0x1eecc4,'apimit':_0x392aa6[_0x40e949(0x1a5)],'routerName':_0x392aa6[_0x40e949(0x198)],'description':_0x392aa6['description'],'middleware':(_0x392aa6[_0x40e949(0x19f)]||[])[_0x40e949(0x18c)](_0x5497da=>!!_0x5497da),'requestMethod':(_0x4dc6ec==_0x40e949(0x199)?_0x40e949(0x1a7):_0x4dc6ec)[_0x40e949(0x192)]()})(_0x38d522,_0x1eecc4,_0x89345c);};}exports[a4_0x5bf297(0x1a0)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x4861fc=a5_0x4f8f;(function(_0x249324,_0x511dd0){const _0x2df673=a5_0x4f8f,_0x5bd22f=_0x249324();while(!![]){try{const _0x3c5112=parseInt(_0x2df673(0xff))/0x1+parseInt(_0x2df673(0x100))/0x2+-parseInt(_0x2df673(0x101))/0x3*(-parseInt(_0x2df673(0xf6))/0x4)+parseInt(_0x2df673(0x102))/0x5+-parseInt(_0x2df673(0xf9))/0x6+-parseInt(_0x2df673(0xfb))/0x7+parseInt(_0x2df673(0x104))/0x8*(parseInt(_0x2df673(0xf7))/0x9);if(_0x3c5112===_0x511dd0)break;else _0x5bd22f['push'](_0x5bd22f['shift']());}catch(_0x42e38c){_0x5bd22f['push'](_0x5bd22f['shift']());}}}(a5_0x5536,0x2ef24));function a5_0x4f8f(_0x55a21f,_0x5122ea){const _0x553606=a5_0x5536();return a5_0x4f8f=function(_0x4f8f5b,_0x5b0e4d){_0x4f8f5b=_0x4f8f5b-0xf1;let _0x46b4a5=_0x553606[_0x4f8f5b];return _0x46b4a5;},a5_0x4f8f(_0x55a21f,_0x5122ea);}Object['defineProperty'](exports,a5_0x4861fc(0x105),{'value':!![]}),exports['Apitest']=void 0x0;function a5_0x5536(){const _0x245f51=['376360DHkLtt','387ZJMBSl','ApitestService','1800906dFBsyK','REQUEST_OBJ_CTX_KEY','2451253fMOEWk','apitest','value','RequestMapping','124833RvHxBb','193660mnGUGc','9WryDeY','1248180stVaqU','@midwayjs/core','16568UgQHAd','__esModule','MidwayEnvironmentService','getApplicationContext','/apitest','../service/ApitestService','apidoc','getAsync','filepath'];a5_0x5536=function(){return _0x245f51;};return a5_0x5536();}const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x4861fc(0x103)),ApitestService_1=require(a5_0x4861fc(0xf2));function Apitest(_0x44fb93=a5_0x4861fc(0xf1),_0x46eafa){return(_0x29ea4e,_0x22e93a,_0x5b2be2)=>{const _0x2f5c29=a5_0x4f8f;return(0x0,decorator_1[_0x2f5c29(0xfe)])({'path':_0x44fb93,'requestMethod':'get'})(_0x29ea4e,_0x22e93a,_0x5b2be2),_0x5b2be2[_0x2f5c29(0xfd)]=async function(..._0x14cf69){const _0x128b56=_0x2f5c29;var _0x2b3860;const _0x68cf57=(_0x2b3860=this[core_1[_0x128b56(0xfa)]])===null||_0x2b3860===void 0x0?void 0x0:_0x2b3860['app'];if(_0x68cf57&&_0x68cf57['getConfig'](_0x128b56(0xfc))){const _0x157add=await _0x68cf57[_0x128b56(0x107)]()[_0x128b56(0xf4)](ApitestService_1[_0x128b56(0xf8)]),_0x44f00c=await _0x68cf57[_0x128b56(0x107)]()[_0x128b56(0xf4)](core_1[_0x128b56(0x106)]);return _0x44f00c['isDevelopmentEnvironment']()&&(_0x46eafa[_0x128b56(0xf5)]=!![]),await _0x157add[_0x128b56(0xf3)](_0x46eafa);}return'';},_0x5b2be2;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a6_0x357e(_0x14fdbe,_0x7395d4){var _0x129370=a6_0x1293();return a6_0x357e=function(_0x357e28,_0x56b8e2){_0x357e28=_0x357e28-0x124;var _0x45f11b=_0x129370[_0x357e28];return _0x45f11b;},a6_0x357e(_0x14fdbe,_0x7395d4);}function a6_0x1293(){var _0x56ce67=['352008wHewXW','TIMEOUT','length','194uahuLd','2139036RTqTDQ','HEADERS_CHECKCODE','28HUkFSD','761000houyFJ','HEADERS_DEVICE','__decorate','ApiError','请求头信息不完整','metadata','网络繁忙,请稍后重试','checkcode验证失败','HEADERS_SIGNATURE','3867025kcrhmG','__esModule','520RbjzvL','750968kgavYE','function','6328962etzbZL','HEADERS_LACK','object','design:type','请使用正确的设备','decorate','2265XjpwJT'];a6_0x1293=function(){return _0x56ce67;};return a6_0x1293();}var a6_0xe207be=a6_0x357e;(function(_0x3c3607,_0x4af478){var _0x429cc0=a6_0x357e,_0x2f0bf8=_0x3c3607();while(!![]){try{var _0x57b83a=-parseInt(_0x429cc0(0x12f))/0x1*(-parseInt(_0x429cc0(0x133))/0x2)+parseInt(_0x429cc0(0x134))/0x3+parseInt(_0x429cc0(0x137))/0x4+parseInt(_0x429cc0(0x124))/0x5+parseInt(_0x429cc0(0x129))/0x6+parseInt(_0x429cc0(0x136))/0x7*(-parseInt(_0x429cc0(0x127))/0x8)+-parseInt(_0x429cc0(0x130))/0x9*(parseInt(_0x429cc0(0x126))/0xa);if(_0x57b83a===_0x4af478)break;else _0x2f0bf8['push'](_0x2f0bf8['shift']());}catch(_0x2d15e9){_0x2f0bf8['push'](_0x2f0bf8['shift']());}}}(a6_0x1293,0x844c3));var __decorate=this&&this[a6_0xe207be(0x139)]||function(_0x10dddb,_0x221195,_0x384ae9,_0x1097e5){var _0x3d1ad5=a6_0xe207be,_0x5e134c=arguments[_0x3d1ad5(0x132)],_0x2ccd7c=_0x5e134c<0x3?_0x221195:_0x1097e5===null?_0x1097e5=Object['getOwnPropertyDescriptor'](_0x221195,_0x384ae9):_0x1097e5,_0x4e0c9e;if(typeof Reflect===_0x3d1ad5(0x12b)&&typeof Reflect[_0x3d1ad5(0x12e)]==='function')_0x2ccd7c=Reflect[_0x3d1ad5(0x12e)](_0x10dddb,_0x221195,_0x384ae9,_0x1097e5);else{for(var _0x4dc199=_0x10dddb[_0x3d1ad5(0x132)]-0x1;_0x4dc199>=0x0;_0x4dc199--)if(_0x4e0c9e=_0x10dddb[_0x4dc199])_0x2ccd7c=(_0x5e134c<0x3?_0x4e0c9e(_0x2ccd7c):_0x5e134c>0x3?_0x4e0c9e(_0x221195,_0x384ae9,_0x2ccd7c):_0x4e0c9e(_0x221195,_0x384ae9))||_0x2ccd7c;}return _0x5e134c>0x3&&_0x2ccd7c&&Object['defineProperty'](_0x221195,_0x384ae9,_0x2ccd7c),_0x2ccd7c;},__metadata=this&&this['__metadata']||function(_0x485276,_0x4947e2){var _0x3186a4=a6_0xe207be;if(typeof Reflect===_0x3186a4(0x12b)&&typeof Reflect[_0x3186a4(0x13c)]===_0x3186a4(0x128))return Reflect[_0x3186a4(0x13c)](_0x485276,_0x4947e2);};Object['defineProperty'](exports,a6_0xe207be(0x125),{'value':!![]}),exports[a6_0xe207be(0x13a)]=void 0x0;class ApiError{}ApiError[a6_0xe207be(0x131)]=0x18a89,ApiError['HEADERS_LACK']=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError[a6_0xe207be(0x13f)]=0x18a8d,__decorate([AnnErrorMsg(a6_0xe207be(0x13d)),__metadata('design:type',Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0xe207be(0x13b)),__metadata('design:type',Object)],ApiError,a6_0xe207be(0x12a),void 0x0),__decorate([AnnErrorMsg(a6_0xe207be(0x12d)),__metadata(a6_0xe207be(0x12c),Object)],ApiError,a6_0xe207be(0x138),void 0x0),__decorate([AnnErrorMsg(a6_0xe207be(0x13e)),__metadata(a6_0xe207be(0x12c),Object)],ApiError,a6_0xe207be(0x135),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0xe207be(0x12c),Object)],ApiError,'HEADERS_SIGNATURE',void 0x0),exports[a6_0xe207be(0x13a)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x5c8bf3=a7_0x4238;(function(_0x557ef0,_0x4fdb32){const _0x157306=a7_0x4238,_0x1b179d=_0x557ef0();while(!![]){try{const _0x5b014c=parseInt(_0x157306(0x179))/0x1*(-parseInt(_0x157306(0x16f))/0x2)+-parseInt(_0x157306(0x177))/0x3+parseInt(_0x157306(0x168))/0x4*(parseInt(_0x157306(0x16a))/0x5)+-parseInt(_0x157306(0x16d))/0x6*(-parseInt(_0x157306(0x16c))/0x7)+parseInt(_0x157306(0x174))/0x8+-parseInt(_0x157306(0x16e))/0x9*(-parseInt(_0x157306(0x169))/0xa)+-parseInt(_0x157306(0x173))/0xb;if(_0x5b014c===_0x4fdb32)break;else _0x1b179d['push'](_0x1b179d['shift']());}catch(_0x30a7ee){_0x1b179d['push'](_0x1b179d['shift']());}}}(a7_0x162b,0xf0580));function a7_0x4238(_0x5276cd,_0x324cf3){const _0x162bb1=a7_0x162b();return a7_0x4238=function(_0x42386b,_0x1dabdc){_0x42386b=_0x42386b-0x168;let _0x507816=_0x162bb1[_0x42386b];return _0x507816;},a7_0x4238(_0x5276cd,_0x324cf3);}function a7_0x162b(){const _0x97248a=['459036IzSRQs','21096BTrXbK','52TCbXjW','getClassMetadata','get','AppsConfigTmp','8844176xKukPA','2472160fjvppZ','@midwayjs/decorator','__esModule','299715EpIzfx','APPSCONFIG_KEY','58989mIIRPv','324XUPMzU','6530PxlnWU','50455fZqcQA','../types/action','70nvPopi'];a7_0x162b=function(){return _0x97248a;};return a7_0x162b();}Object['defineProperty'](exports,a7_0x5c8bf3(0x176),{'value':!![]}),exports['getAppsConfig']=void 0x0;const decorator_1=require(a7_0x5c8bf3(0x175)),action_1=require(a7_0x5c8bf3(0x16b));function getAppsConfig(_0x1c1b79){const _0x30ea9f=a7_0x5c8bf3,_0x3d0e4c=(0x0,decorator_1[_0x30ea9f(0x170)])(action_1[_0x30ea9f(0x178)],action_1[_0x30ea9f(0x172)])||{};return _0x1c1b79?lodash[_0x30ea9f(0x171)](_0x3d0e4c,_0x1c1b79):_0x3d0e4c;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x5389e4=a8_0x2122;(function(_0x28bd50,_0x309d9b){const _0x47bbb1=a8_0x2122,_0x3a6bd7=_0x28bd50();while(!![]){try{const _0x447054=-parseInt(_0x47bbb1(0xbe))/0x1+-parseInt(_0x47bbb1(0xeb))/0x2+-parseInt(_0x47bbb1(0xe7))/0x3*(parseInt(_0x47bbb1(0x105))/0x4)+parseInt(_0x47bbb1(0xc3))/0x5*(-parseInt(_0x47bbb1(0xb5))/0x6)+-parseInt(_0x47bbb1(0xc4))/0x7+-parseInt(_0x47bbb1(0xf9))/0x8+parseInt(_0x47bbb1(0xca))/0x9;if(_0x447054===_0x309d9b)break;else _0x3a6bd7['push'](_0x3a6bd7['shift']());}catch(_0x5c842d){_0x3a6bd7['push'](_0x3a6bd7['shift']());}}}(a8_0x5256,0x6dd2b));Object[a8_0x5389e4(0xff)](exports,a8_0x5389e4(0xfd),{'value':!![]}),exports[a8_0x5389e4(0xf3)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a8_0x5389e4(0xcd)),decorator_2=require(a8_0x5389e4(0xcd)),decorator_3=require(a8_0x5389e4(0xcd)),action_1=require(a8_0x5389e4(0xc5));function getRoutes(_0x5d9d52={'prefix':'/','module':![]}){const _0x449887=a8_0x5389e4;var _0x3943ff,_0x518297;const _0x5014df=(0x0,decorator_3[_0x449887(0xf6)])(action_1[_0x449887(0x10d)]),_0x249677={},_0x2e74f1=Array[_0x449887(0xb7)](_0x5d9d52['filter']||[])?_0x5d9d52[_0x449887(0x102)]||[]:[_0x5d9d52[_0x449887(0x102)]];_0x1fa2e1:for(const _0x15ab8a of _0x5014df){let _0x4986a5=(0x0,decorator_3[_0x449887(0xdf)])(action_1[_0x449887(0x10d)],_0x15ab8a),_0x3fc4ab=(0x0,decorator_3[_0x449887(0xdf)])(action_1[_0x449887(0x108)],_0x15ab8a);if(_0x4986a5&&_0x3fc4ab){let _0xe1632e=_0x4986a5[_0x449887(0xef)],_0x3e65aa={};if(_0x5d9d52[_0x449887(0xd4)]&&(0x0,lodash_1[_0x449887(0xd1)])(_0x4986a5,_0x449887(0xd4),![])!=_0x5d9d52[_0x449887(0xd4)])continue _0x1fa2e1;else{if(_0x5d9d52[_0x449887(0xd4)]===![]&&!!(0x0,lodash_1[_0x449887(0xd1)])(_0x4986a5,_0x449887(0xd4),null))continue _0x1fa2e1;}if(_0x5d9d52['prefix']&&!_0xe1632e[_0x449887(0xb8)](_0x5d9d52[_0x449887(0xef)]))continue _0x1fa2e1;_0xe1632e!=='/'?(_0x3e65aa[_0x449887(0xc0)]=(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5['routerOptions'][_0x449887(0xdb)])||(/^\//[_0x449887(0xbc)](_0xe1632e)?_0xe1632e[_0x449887(0xcf)]('/')[0x1]:_0xe1632e),_0x3e65aa[_0x449887(0x101)]=(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5[_0x449887(0xc8)][_0x449887(0x101)])||_0x3e65aa[_0x449887(0xc0)],_0x3e65aa[_0x449887(0xbd)]=[]):(_0x3e65aa[_0x449887(0xc0)]=(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5[_0x449887(0xc8)][_0x449887(0xdb)])||_0x449887(0xbb),_0x3e65aa[_0x449887(0x101)]=(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5[_0x449887(0xc8)][_0x449887(0x101)])||'',_0x3e65aa[_0x449887(0xbd)]=[]);_0x5d9d52[_0x449887(0xe1)]&&(_0x3e65aa[_0x449887(0xe1)]=_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5[_0x449887(0xe1)]);(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5['pprefix'])&&(_0x3e65aa['prefix']=_0x4986a5['pprefix']);(_0x4986a5===null||_0x4986a5===void 0x0?void 0x0:_0x4986a5[_0x449887(0xd4)])&&(_0x3e65aa[_0x449887(0xd4)]=_0x4986a5[_0x449887(0xd4)]);let _0x233791=(0x0,decorator_3[_0x449887(0xdf)])(decorator_2[_0x449887(0x10b)],_0x15ab8a)||{};if(typeof _0x3fc4ab[Symbol['iterator']]===_0x449887(0xd7))for(let _0x20e0cd of _0x3fc4ab){let _0x39224f={};_0x39224f[_0x449887(0xe3)]=_0x20e0cd['requestMethod'],_0x39224f[_0x449887(0xcb)]=(_0xe1632e+_0x20e0cd[_0x449887(0xfa)])[_0x449887(0xce)](/\/{1,}/,'/'),_0x39224f[_0x449887(0xc0)]=(_0x20e0cd===null||_0x20e0cd===void 0x0?void 0x0:_0x20e0cd['routerName'])||_0x3e65aa[_0x449887(0xc0)]||_0x449887(0xbb),_0x39224f['description']=(_0x20e0cd===null||_0x20e0cd===void 0x0?void 0x0:_0x20e0cd[_0x449887(0x101)])||'',_0x39224f[_0x449887(0xc2)]=[];if(!(0x0,lodash_1['startsWith'])(_0x39224f[_0x449887(0xcb)],_0x449887(0xd0))&&!(0x0,lodash_1[_0x449887(0xb8)])(_0x39224f[_0x449887(0xcb)],_0x449887(0xc6))&&_0x2e74f1[_0x449887(0xbf)](_0x39224f['route'])===-0x1){if(!(_0x5d9d52===null||_0x5d9d52===void 0x0?void 0x0:_0x5d9d52[_0x449887(0x109)])){let _0x31f6a3=(0x0,decorator_3['getMethodParamTypes'])(new _0x15ab8a(),_0x20e0cd[_0x449887(0xe3)]);for(const _0x27accc in _0x31f6a3){let _0x6a7b31=(_0x3943ff=_0x233791[_0x20e0cd[_0x449887(0xe3)]])===null||_0x3943ff===void 0x0?void 0x0:_0x3943ff['find'](_0x335f87=>_0x335f87['parameterIndex']==_0x27accc&&_0x335f87[_0x449887(0xf1)]===decorator_2[_0x449887(0xc9)]&&(_0x335f87===null||_0x335f87===void 0x0?void 0x0:_0x335f87[_0x449887(0xd5)]));if(_0x6a7b31===null||_0x6a7b31===void 0x0?void 0x0:_0x6a7b31[_0x449887(0xd5)]){let _0x1d2392=convertTypeToString(_0x6a7b31[_0x449887(0xd5)][_0x449887(0xb9)]||0x0);if([_0x449887(0xc7),_0x449887(0xf8)][_0x449887(0xbf)](_0x1d2392)!=-0x1&&_0x6a7b31[_0x449887(0xd5)][_0x449887(0x107)][_0x449887(0xbf)](':')==-0x1&&!_0x39224f[_0x449887(0xc2)][_0x449887(0xfe)](_0x2818bc=>_0x2818bc[_0x449887(0xf1)]==_0x6a7b31[_0x449887(0xd5)]['propertyData']))_0x39224f[_0x449887(0xc2)][_0x449887(0xfc)]({'key':_0x6a7b31[_0x449887(0xd5)][_0x449887(0x107)],'title':_0x6a7b31[_0x449887(0xd5)][_0x449887(0x107)],'type':convertSchemaType(_0x31f6a3[_0x6a7b31[_0x449887(0x10c)]][_0x449887(0xe0)]),'required':![],'default':'','desc':''});else{if(_0x1d2392==_0x449887(0x10a)){let _0x39af90=((_0x518297=_0x6a7b31===null||_0x6a7b31===void 0x0?void 0x0:_0x6a7b31[_0x449887(0xd5)])===null||_0x518297===void 0x0?void 0x0:_0x518297[_0x449887(0x107)])||_0x449887(0x10a);_0x39af90[_0x449887(0xbf)](':')==-0x1&&!_0x39224f[_0x449887(0xc2)]['find'](_0xb38fb3=>_0xb38fb3[_0x449887(0xf1)]==_0x39af90&&_0xb38fb3[_0x449887(0xb9)]=='file')&&_0x39224f['request']['push']({'key':_0x39af90,'title':_0x449887(0xf4)+_0x39af90,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x3de004=(0x0,decorator_3[_0x449887(0xba)])(validator_1[_0x449887(0xe9)],_0x31f6a3[_0x27accc]);_0x3de004&&_0x39224f[_0x449887(0xc2)][_0x449887(0xfc)](...getJoiRequest(_0x3de004));}}}_0x3e65aa[_0x449887(0xbd)]['push'](_0x39224f);}}if(_0x3e65aa[_0x449887(0xbd)][_0x449887(0xdd)]>0x0){let _0x7bdb6a=_0x249677[_0xe1632e];_0x7bdb6a?(_0x7bdb6a[_0x449887(0xc0)]!=_0x3e65aa[_0x449887(0xc0)]&&(_0x7bdb6a[_0x449887(0xc0)]=_0x7bdb6a[_0x449887(0xc0)]+','+_0x3e65aa['summary']),_0x7bdb6a['description']!=_0x3e65aa[_0x449887(0x101)]&&(_0x7bdb6a[_0x449887(0x101)]=_0x7bdb6a[_0x449887(0x101)]+','+_0x3e65aa[_0x449887(0x101)]),_0x7bdb6a[_0x449887(0xbd)]=_0x7bdb6a[_0x449887(0xbd)]['concat'](_0x3e65aa[_0x449887(0xbd)]),_0x249677[_0xe1632e]=_0x7bdb6a):_0x249677[_0xe1632e]=_0x3e65aa;}}}return _0x249677;}exports[a8_0x5389e4(0xf3)]=getRoutes;function a8_0x2122(_0x1b3a00,_0x4594cf){const _0x525695=a8_0x5256();return a8_0x2122=function(_0x2122b2,_0x3aa4c7){_0x2122b2=_0x2122b2-0xb4;let _0x28b055=_0x525695[_0x2122b2];return _0x28b055;},a8_0x2122(_0x1b3a00,_0x4594cf);}function getJoiRequest(_0x5280dc){const _0x44f12a=a8_0x5389e4,_0x363339=[];for(let _0x10c6cb in _0x5280dc){const _0x439fb0={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x41bf47=typeof _0x5280dc[_0x10c6cb]['describe']==_0x44f12a(0xd7)?_0x5280dc[_0x10c6cb]['describe']():_0x5280dc[_0x10c6cb];_0x439fb0[_0x44f12a(0xf1)]=_0x10c6cb,_0x439fb0[_0x44f12a(0xb9)]=_0x41bf47[_0x44f12a(0xb9)],_0x439fb0[_0x44f12a(0xe8)]=(0x0,lodash_1[_0x44f12a(0xd1)])(_0x41bf47,_0x44f12a(0xe4),_0x10c6cb),_0x439fb0[_0x44f12a(0xbb)]=(0x0,lodash_1[_0x44f12a(0xd1)])(_0x41bf47,_0x44f12a(0x10e),''),_0x439fb0[_0x44f12a(0xe6)]=(0x0,lodash_1['get'])(_0x41bf47,_0x44f12a(0xf0),'')=='required',_0x439fb0[_0x44f12a(0x101)]=(0x0,lodash_1[_0x44f12a(0xd1)])(_0x41bf47,'flags.description','');if(_0x41bf47['type']==_0x44f12a(0xfb))_0x439fb0[_0x44f12a(0xee)]=getJoiRequest(_0x41bf47[_0x44f12a(0xe2)]);else _0x41bf47[_0x44f12a(0xb9)]=='array'&&_0x41bf47[_0x44f12a(0xea)]&&Array[_0x44f12a(0xb7)](_0x41bf47[_0x44f12a(0xea)])&&_0x41bf47[_0x44f12a(0xea)][0x0]&&console['log'](_0x10c6cb+_0x44f12a(0x103),_0x41bf47);_0x41bf47['allow']&&Array['isArray'](_0x41bf47[_0x44f12a(0xdc)])&&_0x41bf47[_0x44f12a(0xdc)][_0x44f12a(0xdd)]>0x0&&(_0x439fb0[_0x44f12a(0x101)]=_0x44f12a(0xd9)+_0x41bf47[_0x44f12a(0xdc)][_0x44f12a(0x110)](',')+'];'+_0x439fb0[_0x44f12a(0x101)]);if(_0x439fb0['key']&&_0x439fb0[_0x44f12a(0xb9)]){const _0x514537={};for(const _0x21ff71 of _0x41bf47[_0x44f12a(0xc1)]||[]){if(_0x21ff71[_0x44f12a(0xe0)]==='min'&&_0x21ff71[_0x44f12a(0xd2)])_0x514537[_0x44f12a(0xd8)]=_0x21ff71['args'][_0x44f12a(0x104)];else _0x21ff71['name']==='max'&&(_0x514537[_0x44f12a(0x100)]=_0x21ff71['args'][_0x44f12a(0x104)]);}_0x439fb0[_0x44f12a(0xc1)]=_0x514537;}_0x439fb0[_0x44f12a(0xf1)]&&_0x439fb0[_0x44f12a(0xe8)]&&_0x363339[_0x44f12a(0xfc)](_0x439fb0);}return _0x363339;}function a8_0x5256(){const _0x3756b1=['filter','-array','limit','4TZDtGu','HEADERS','propertyData','ACTION_ROUTE_KEY','noreq','file','INJECT_CUSTOM_PARAM','parameterIndex','ACTION_KEY','flags.default','header','join','File','12tVTGlY','String','isArray','startsWith','type','getClassExtendedMetadata','default','test','routes','363233aTtQFN','indexOf','summary','rules','request','1373260sywymS','4951807BMNRwO','../types/action','/static/apitest','query','routerOptions','WEB_ROUTER_PARAM_KEY','28221921oXChnM','route','BODY','@midwayjs/decorator','replace','split','static/apitest','get','args','FIELDS','module','metadata','number','function','min','只允许:[','QUERY','tagName','allow','length','Object','getClassMetadata','name','filepath','keys','method','flags.label','RouteParamTypes','required','260148WVmfva','title','RULES_KEY','items','1419860rDmUrm','FILESSTREAM','FILESTREAM','children','prefix','flags.presence','key','boolean','getRoutes','文件上传-','string','listModule','PARAM','body','2154800CbjPxU','path','object','push','__esModule','find','defineProperty','max','description'];a8_0x5256=function(){return _0x3756b1;};return a8_0x5256();}function convertSchemaType(_0x471a84){const _0x419ca7=a8_0x5389e4;switch(_0x471a84){case _0x419ca7(0xde):return _0x419ca7(0xfb);case'Boolean':return _0x419ca7(0xf2);case'Number':return _0x419ca7(0xd6);case _0x419ca7(0xb6):return'string';case _0x419ca7(0xb4):return _0x419ca7(0x10a);default:return _0x419ca7(0xf5);}}function convertTypeToString(_0x263c21){const _0x3b57f7=a8_0x5389e4;switch(_0x263c21){case decorator_1[_0x3b57f7(0xe5)][_0x3b57f7(0x106)]:return _0x3b57f7(0x10f);case decorator_1[_0x3b57f7(0xe5)][_0x3b57f7(0xda)]:return'query';case decorator_1['RouteParamTypes'][_0x3b57f7(0xf7)]:return _0x3b57f7(0xfa);case decorator_1['RouteParamTypes'][_0x3b57f7(0xcc)]:return'body';case decorator_1[_0x3b57f7(0xe5)][_0x3b57f7(0xd3)]:case decorator_1[_0x3b57f7(0xe5)][_0x3b57f7(0xec)]:case decorator_1[_0x3b57f7(0xe5)][_0x3b57f7(0xed)]:return _0x3b57f7(0x10a);default:return _0x3b57f7(0x10f);}}
|
|
1
|
+
'use strict';const a8_0x556d16=a8_0x5807;(function(_0x5296e3,_0xf2bd2){const _0x256bae=a8_0x5807,_0x48beaa=_0x5296e3();while(!![]){try{const _0xb52c51=-parseInt(_0x256bae(0x203))/0x1*(parseInt(_0x256bae(0x20c))/0x2)+parseInt(_0x256bae(0x1ec))/0x3+parseInt(_0x256bae(0x1ea))/0x4*(parseInt(_0x256bae(0x1e9))/0x5)+parseInt(_0x256bae(0x1f7))/0x6*(-parseInt(_0x256bae(0x1d2))/0x7)+parseInt(_0x256bae(0x1c4))/0x8+parseInt(_0x256bae(0x1cd))/0x9*(-parseInt(_0x256bae(0x1d1))/0xa)+parseInt(_0x256bae(0x1f5))/0xb;if(_0xb52c51===_0xf2bd2)break;else _0x48beaa['push'](_0x48beaa['shift']());}catch(_0x31b44c){_0x48beaa['push'](_0x48beaa['shift']());}}}(a8_0x222b,0xda679));Object['defineProperty'](exports,a8_0x556d16(0x1f0),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x5807(_0x15e861,_0x29e977){const _0x222b65=a8_0x222b();return a8_0x5807=function(_0x580766,_0x345e6b){_0x580766=_0x580766-0x1c4;let _0x158d98=_0x222b65[_0x580766];return _0x158d98;},a8_0x5807(_0x15e861,_0x29e977);}const lodash_1=require(a8_0x556d16(0x1ee)),validator_1=require(a8_0x556d16(0x1c6)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x556d16(0x1ca)),decorator_3=require(a8_0x556d16(0x1ca)),action_1=require(a8_0x556d16(0x1d5));function getRoutes(_0x1d487e={'prefix':'/','module':![]}){const _0x19cd67=a8_0x556d16;var _0xf6966c,_0x34de8b;const _0x1f8a06=(0x0,decorator_3['listModule'])(action_1[_0x19cd67(0x1d8)]),_0x41c9bc={},_0x2732f3=Array[_0x19cd67(0x1de)](_0x1d487e['filter']||[])?_0x1d487e[_0x19cd67(0x21f)]||[]:[_0x1d487e[_0x19cd67(0x21f)]];_0xffb656:for(const _0x5058bf of _0x1f8a06){let _0x773173=(0x0,decorator_3[_0x19cd67(0x1cb)])(action_1['ACTION_KEY'],_0x5058bf),_0xf94895=(0x0,decorator_3[_0x19cd67(0x1cb)])(action_1['ACTION_ROUTE_KEY'],_0x5058bf);if(_0x773173&&_0xf94895){let _0x1e7a27=_0x773173['prefix'],_0x2029b5={};if(_0x1d487e['module']&&(0x0,lodash_1[_0x19cd67(0x1f8)])(_0x773173,_0x19cd67(0x209),![])!=_0x1d487e[_0x19cd67(0x209)])continue _0xffb656;else{if(_0x1d487e[_0x19cd67(0x209)]===![]&&!!(0x0,lodash_1[_0x19cd67(0x1f8)])(_0x773173,_0x19cd67(0x209),null))continue _0xffb656;}if(_0x1d487e[_0x19cd67(0x1e1)]&&!_0x1e7a27['startsWith'](_0x1d487e[_0x19cd67(0x1e1)]))continue _0xffb656;_0x1e7a27!=='/'?(_0x2029b5[_0x19cd67(0x201)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x217)])||(/^\//['test'](_0x1e7a27)?_0x1e7a27[_0x19cd67(0x218)]('/')[0x1]:_0x1e7a27),_0x2029b5[_0x19cd67(0x202)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x202)])||_0x2029b5['summary'],_0x2029b5['routes']=[]):(_0x2029b5[_0x19cd67(0x201)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x217)])||_0x19cd67(0x21b),_0x2029b5[_0x19cd67(0x202)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)]['description'])||'',_0x2029b5[_0x19cd67(0x1c5)]=[]);_0x1d487e['filepath']&&(_0x2029b5['filepath']=_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173['filepath']);(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1dd)])&&(_0x2029b5[_0x19cd67(0x1e1)]=_0x773173[_0x19cd67(0x1dd)]);(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x209)])&&(_0x2029b5['module']=_0x773173[_0x19cd67(0x209)]);let _0x54cd3f=(0x0,decorator_3[_0x19cd67(0x1cb)])(decorator_2[_0x19cd67(0x1da)],_0x5058bf)||{};if(typeof _0xf94895[Symbol['iterator']]===_0x19cd67(0x20e))for(let _0x20012d of _0xf94895){let _0x4e9ec6={};_0x4e9ec6[_0x19cd67(0x1e8)]=_0x20012d[_0x19cd67(0x1c8)],_0x4e9ec6[_0x19cd67(0x213)]=(_0x1e7a27+_0x20012d['path'])['replace'](/\/{1,}/,'/'),_0x4e9ec6[_0x19cd67(0x201)]=(_0x20012d===null||_0x20012d===void 0x0?void 0x0:_0x20012d[_0x19cd67(0x1d9)])||_0x2029b5[_0x19cd67(0x201)]||_0x19cd67(0x21b),_0x4e9ec6['description']=(_0x20012d===null||_0x20012d===void 0x0?void 0x0:_0x20012d['description'])||'',_0x4e9ec6['request']=[];if(!(0x0,lodash_1[_0x19cd67(0x211)])(_0x4e9ec6['route'],_0x19cd67(0x1f9))&&!(0x0,lodash_1['startsWith'])(_0x4e9ec6['route'],_0x19cd67(0x212))&&_0x2732f3[_0x19cd67(0x1fe)](_0x4e9ec6[_0x19cd67(0x213)])===-0x1){if(!(_0x1d487e===null||_0x1d487e===void 0x0?void 0x0:_0x1d487e[_0x19cd67(0x1f4)])){let _0x5cc2f3=(0x0,decorator_3[_0x19cd67(0x1d6)])(new _0x5058bf(),_0x20012d[_0x19cd67(0x1e8)]);for(const _0x4a73f5 in _0x5cc2f3){let _0x1dfb43=(_0xf6966c=_0x54cd3f[_0x20012d['method']])===null||_0xf6966c===void 0x0?void 0x0:_0xf6966c[_0x19cd67(0x1e0)](_0x4b4790=>_0x4b4790[_0x19cd67(0x1dc)]==_0x4a73f5&&_0x4b4790[_0x19cd67(0x1e6)]===decorator_2[_0x19cd67(0x214)]&&(_0x4b4790===null||_0x4b4790===void 0x0?void 0x0:_0x4b4790[_0x19cd67(0x21a)]));if(_0x1dfb43===null||_0x1dfb43===void 0x0?void 0x0:_0x1dfb43[_0x19cd67(0x21a)]){let _0x21851b=convertTypeToString(_0x1dfb43['metadata'][_0x19cd67(0x207)]||0x0);if([_0x19cd67(0x204),'body'][_0x19cd67(0x1fe)](_0x21851b)!=-0x1&&_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)][_0x19cd67(0x1fe)](':')==-0x1&&!_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1e0)](_0x5ca2d5=>_0x5ca2d5[_0x19cd67(0x1e6)]==_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)]))_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1fb)]({'key':_0x1dfb43[_0x19cd67(0x21a)]['propertyData'],'title':_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)],'type':convertSchemaType(_0x5cc2f3[_0x1dfb43[_0x19cd67(0x1dc)]]['name']),'required':![],'default':'','desc':''});else{if(_0x21851b==_0x19cd67(0x210)){let _0x54e600=((_0x34de8b=_0x1dfb43===null||_0x1dfb43===void 0x0?void 0x0:_0x1dfb43[_0x19cd67(0x21a)])===null||_0x34de8b===void 0x0?void 0x0:_0x34de8b[_0x19cd67(0x216)])||_0x19cd67(0x210);_0x54e600[_0x19cd67(0x1fe)](':')==-0x1&&!_0x4e9ec6[_0x19cd67(0x1d0)]['find'](_0x3b59f4=>_0x3b59f4[_0x19cd67(0x1e6)]==_0x54e600&&_0x3b59f4[_0x19cd67(0x207)]==_0x19cd67(0x210))&&_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1fb)]({'key':_0x54e600,'title':_0x19cd67(0x1d7)+_0x54e600,'type':_0x19cd67(0x210),'required':!![],'default':'','desc':''});}}}else{const _0xd2cfb6=(0x0,decorator_3[_0x19cd67(0x1fc)])(validator_1[_0x19cd67(0x20f)],_0x5cc2f3[_0x4a73f5]);_0xd2cfb6&&_0x4e9ec6['request'][_0x19cd67(0x1fb)](...getJoiRequest(_0xd2cfb6));}}}_0x2029b5[_0x19cd67(0x1c5)][_0x19cd67(0x1fb)](_0x4e9ec6);}}if(_0x2029b5['routes'][_0x19cd67(0x1d4)]>0x0){let _0x28a221=_0x41c9bc[_0x1e7a27];_0x28a221?(_0x28a221[_0x19cd67(0x201)]!=_0x2029b5[_0x19cd67(0x201)]&&(_0x28a221[_0x19cd67(0x201)]=_0x28a221[_0x19cd67(0x201)]+','+_0x2029b5['summary']),_0x28a221[_0x19cd67(0x202)]!=_0x2029b5[_0x19cd67(0x202)]&&(_0x28a221[_0x19cd67(0x202)]=_0x28a221[_0x19cd67(0x202)]+','+_0x2029b5['description']),_0x28a221[_0x19cd67(0x1c5)]=_0x28a221[_0x19cd67(0x1c5)][_0x19cd67(0x215)](_0x2029b5[_0x19cd67(0x1c5)]),_0x41c9bc[_0x1e7a27]=_0x28a221):_0x41c9bc[_0x1e7a27]=_0x2029b5;}}}return _0x41c9bc;}exports[a8_0x556d16(0x1e3)]=getRoutes;function getJoiRequest(_0x1064fb){const _0x11840b=a8_0x556d16,_0x4452b5=[];for(let _0x4adc9c in _0x1064fb){const _0x17f47d={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x345056=typeof _0x1064fb[_0x4adc9c][_0x11840b(0x206)]==_0x11840b(0x20e)?_0x1064fb[_0x4adc9c][_0x11840b(0x206)]():_0x1064fb[_0x4adc9c];_0x17f47d[_0x11840b(0x1e6)]=_0x4adc9c,_0x17f47d['type']=_0x345056[_0x11840b(0x207)],_0x17f47d[_0x11840b(0x20a)]=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x205),_0x4adc9c),_0x17f47d['default']=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1c7),''),_0x17f47d['required']=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1c9),'')=='required',_0x17f47d[_0x11840b(0x202)]=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1ce),'');if(_0x345056[_0x11840b(0x207)]==_0x11840b(0x1ef))_0x17f47d[_0x11840b(0x1f1)]=getJoiRequest(_0x345056[_0x11840b(0x1db)]);else _0x345056[_0x11840b(0x207)]=='array'&&_0x345056[_0x11840b(0x1cf)]&&Array['isArray'](_0x345056[_0x11840b(0x1cf)])&&_0x345056[_0x11840b(0x1cf)][0x0]&&console[_0x11840b(0x1ed)](_0x4adc9c+'-array',_0x345056);_0x345056[_0x11840b(0x1fd)]&&Array[_0x11840b(0x1de)](_0x345056[_0x11840b(0x1fd)])&&_0x345056['allow'][_0x11840b(0x1d4)]>0x0&&(_0x17f47d[_0x11840b(0x202)]=_0x11840b(0x21d)+_0x345056['allow']['join'](',')+'];'+_0x17f47d[_0x11840b(0x202)]);if(_0x17f47d[_0x11840b(0x1e6)]&&_0x17f47d['type']){const _0x37a4bf={};for(const _0x5646a4 of _0x345056['rules']||[]){if(_0x5646a4[_0x11840b(0x21e)]===_0x11840b(0x1e2)&&_0x5646a4[_0x11840b(0x1fa)])_0x37a4bf[_0x11840b(0x1e2)]=_0x5646a4[_0x11840b(0x1fa)][_0x11840b(0x1df)];else _0x5646a4[_0x11840b(0x21e)]===_0x11840b(0x20b)&&(_0x37a4bf[_0x11840b(0x20b)]=_0x5646a4[_0x11840b(0x1fa)]['limit']);}_0x17f47d['rules']=_0x37a4bf;}_0x17f47d[_0x11840b(0x1e6)]&&_0x17f47d['title']&&_0x4452b5['push'](_0x17f47d);}return _0x4452b5;}function convertSchemaType(_0x8a59bb){const _0xfb5185=a8_0x556d16;switch(_0x8a59bb){case _0xfb5185(0x21c):return _0xfb5185(0x1ef);case'Boolean':return _0xfb5185(0x1e5);case'Number':return _0xfb5185(0x219);case _0xfb5185(0x1cc):return _0xfb5185(0x20d);case'File':return _0xfb5185(0x210);default:return'string';}}function convertTypeToString(_0x33867f){const _0x1908dd=a8_0x556d16;switch(_0x33867f){case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1f6)]:return _0x1908dd(0x1d3);case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1e4)]:return _0x1908dd(0x204);case decorator_1['RouteParamTypes'][_0x1908dd(0x1eb)]:return'path';case decorator_1[_0x1908dd(0x1ff)]['BODY']:return _0x1908dd(0x1f2);case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x208)]:case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x200)]:case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1e7)]:return _0x1908dd(0x210);default:return _0x1908dd(0x1d3);}}function a8_0x222b(){const _0x243c06=['flags.label','describe','type','FIELDS','module','title','max','1736onNyKF','string','function','RULES_KEY','file','startsWith','/static/apitest','route','WEB_ROUTER_PARAM_KEY','concat','propertyData','tagName','split','number','metadata','default','Object','只允许:[','name','filter','7647952RLqTAW','routes','@anncic-api/validator','flags.default','requestMethod','flags.presence','@midwayjs/decorator','getClassMetadata','String','9xngZsa','flags.description','items','request','15847350REsHVP','7rWkiLj','header','length','../types/action','getMethodParamTypes','文件上传-','ACTION_KEY','routerName','INJECT_CUSTOM_PARAM','keys','parameterIndex','pprefix','isArray','limit','find','prefix','min','getRoutes','QUERY','boolean','key','FILESTREAM','method','195265NjYBAZ','68KMyaVq','PARAM','2744670HhKoJF','log','lodash','object','__esModule','children','body','routerOptions','noreq','21946056RbNEPF','HEADERS','8189046KGdczJ','get','static/apitest','args','push','getClassExtendedMetadata','allow','indexOf','RouteParamTypes','FILESSTREAM','summary','description','790xiPymX','query'];a8_0x222b=function(){return _0x243c06;};return a8_0x222b();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x5ec9e7=a9_0x2a51;(function(_0x192d98,_0x3dca0a){var _0x3d5a4e=a9_0x2a51,_0x56a3f7=_0x192d98();while(!![]){try{var _0x3fcd42=-parseInt(_0x3d5a4e(0x1fc))/0x1+-parseInt(_0x3d5a4e(0x1e9))/0x2+-parseInt(_0x3d5a4e(0x203))/0x3*(parseInt(_0x3d5a4e(0x204))/0x4)+-parseInt(_0x3d5a4e(0x1f6))/0x5+-parseInt(_0x3d5a4e(0x209))/0x6+parseInt(_0x3d5a4e(0x1f0))/0x7+parseInt(_0x3d5a4e(0x1f1))/0x8;if(_0x3fcd42===_0x3dca0a)break;else _0x56a3f7['push'](_0x56a3f7['shift']());}catch(_0x3ff4d6){_0x56a3f7['push'](_0x56a3f7['shift']());}}}(a9_0x160c,0x44440));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x29c078,_0x4ce0cd,_0x2a8d27,_0x883267){var _0x2499af=a9_0x2a51;if(_0x883267===undefined)_0x883267=_0x2a8d27;var _0x1b42b6=Object['getOwnPropertyDescriptor'](_0x4ce0cd,_0x2a8d27);(!_0x1b42b6||(_0x2499af(0x1f8)in _0x1b42b6?!_0x4ce0cd['__esModule']:_0x1b42b6[_0x2499af(0x1e0)]||_0x1b42b6['configurable']))&&(_0x1b42b6={'enumerable':!![],'get':function(){return _0x4ce0cd[_0x2a8d27];}}),Object['defineProperty'](_0x29c078,_0x883267,_0x1b42b6);}:function(_0x10de2c,_0x6acbeb,_0x10c4b8,_0x4c9640){if(_0x4c9640===undefined)_0x4c9640=_0x10c4b8;_0x10de2c[_0x4c9640]=_0x6acbeb[_0x10c4b8];}),__exportStar=this&&this[a9_0x5ec9e7(0x1dc)]||function(_0x51e764,_0x1e0a43){var _0x187cfb=a9_0x5ec9e7;for(var _0x48c218 in _0x51e764)if(_0x48c218!==_0x187cfb(0x20c)&&!Object['prototype'][_0x187cfb(0x1db)][_0x187cfb(0x1f7)](_0x1e0a43,_0x48c218))__createBinding(_0x1e0a43,_0x51e764,_0x48c218);};Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x206),{'value':!![]}),exports[a9_0x5ec9e7(0x200)]=exports[a9_0x5ec9e7(0x1e1)]=exports['Scope']=exports['Inject']=exports[a9_0x5ec9e7(0x1ed)]=exports[a9_0x5ec9e7(0x202)]=exports['Config']=exports['App']=exports[a9_0x5ec9e7(0x1ef)]=exports[a9_0x5ec9e7(0x1fe)]=exports['Query']=exports[a9_0x5ec9e7(0x1e3)]=exports[a9_0x5ec9e7(0x1de)]=exports[a9_0x5ec9e7(0x1e8)]=exports[a9_0x5ec9e7(0x208)]=exports[a9_0x5ec9e7(0x1f4)]=exports[a9_0x5ec9e7(0x1ee)]=exports[a9_0x5ec9e7(0x1e7)]=exports[a9_0x5ec9e7(0x205)]=exports['ExcelService']=exports[a9_0x5ec9e7(0x1f3)]=exports[a9_0x5ec9e7(0x1ec)]=exports[a9_0x5ec9e7(0x1f5)]=exports[a9_0x5ec9e7(0x1f9)]=exports[a9_0x5ec9e7(0x20d)]=exports[a9_0x5ec9e7(0x1eb)]=exports[a9_0x5ec9e7(0x211)]=exports[a9_0x5ec9e7(0x1fb)]=exports[a9_0x5ec9e7(0x210)]=void 0x0;const getAppsConfig_1=require(a9_0x5ec9e7(0x20b));Object[a9_0x5ec9e7(0x1df)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x2c22c7=a9_0x5ec9e7;return getAppsConfig_1[_0x2c22c7(0x200)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x5ec9e7(0x20a)),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,'Api',{'enumerable':!![],'get':function(){var _0xbfabe5=a9_0x5ec9e7;return ActionApi_1[_0xbfabe5(0x210)];}});var Action_1=require(a9_0x5ec9e7(0x1ea));Object['defineProperty'](exports,a9_0x5ec9e7(0x1fb),{'enumerable':!![],'get':function(){var _0x3dec56=a9_0x5ec9e7;return Action_1[_0x3dec56(0x1fb)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x211),{'enumerable':!![],'get':function(){var _0x2fabf5=a9_0x5ec9e7;return ActionApitest_1[_0x2fabf5(0x211)];}});function a9_0x2a51(_0x150c65,_0x440056){var _0x160c8e=a9_0x160c();return a9_0x2a51=function(_0x2a51fd,_0x43221c){_0x2a51fd=_0x2a51fd-0x1d9;var _0x4d14d1=_0x160c8e[_0x2a51fd];return _0x4d14d1;},a9_0x2a51(_0x150c65,_0x440056);}var getRoutes_1=require(a9_0x5ec9e7(0x1e2));Object[a9_0x5ec9e7(0x1df)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x1374fb=a9_0x5ec9e7;return getRoutes_1[_0x1374fb(0x1eb)];}});var ApiError_1=require(a9_0x5ec9e7(0x1dd));Object[a9_0x5ec9e7(0x1df)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x2a7f82=a9_0x5ec9e7;return ApiError_1[_0x2a7f82(0x20d)];}});var task_1=require(a9_0x5ec9e7(0x1f2));Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1f9),{'enumerable':!![],'get':function(){return task_1['QueueService'];}});var cache_1=require(a9_0x5ec9e7(0x1e6));function a9_0x160c(){var _0x54c227=['ApiError','Scope','./service/ExcelService','Api','Apitest','App','Query','hasOwnProperty','__exportStar','./exception/ApiError','Body','defineProperty','writable','ScopeEnum','./helper/getRoutes','Param','@anncic-api/validator','@anncic-api/event','@anncic-api/cache','ValidatorService','Fields','206064zrxqfm','./decorator/Action','getRoutes','EventService','Provide','Configuration','Init','2316545qXqBtk','11911464QFmPOC','@midwayjs/task','ApiService','File','CacheService','2088390wrhDtY','call','get','QueueService','CustomConfiguration','Action','421068DhCPkq','./configuration','Headers','Inject','getAppsConfig','@midwayjs/decorator','Logger','444615vQazUc','4WASjOu','ValidatorError','__esModule','ExcelService','Files','2701614xAEvjF','./service/ApitestService','./helper/getAppsConfig','default'];a9_0x160c=function(){return _0x54c227;};return a9_0x160c();}Object[a9_0x5ec9e7(0x1df)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x2c1e5c=a9_0x5ec9e7;return cache_1[_0x2c1e5c(0x1f5)];}});var event_1=require(a9_0x5ec9e7(0x1e5));Object['defineProperty'](exports,a9_0x5ec9e7(0x1ec),{'enumerable':!![],'get':function(){var _0x4468e8=a9_0x5ec9e7;return event_1[_0x4468e8(0x1ec)];}});var ApiService_1=require('./service/ApiService');Object['defineProperty'](exports,a9_0x5ec9e7(0x1f3),{'enumerable':!![],'get':function(){var _0x11c5a2=a9_0x5ec9e7;return ApiService_1[_0x11c5a2(0x1f3)];}});var ExcelService_1=require(a9_0x5ec9e7(0x20f));Object['defineProperty'](exports,a9_0x5ec9e7(0x207),{'enumerable':!![],'get':function(){var _0x276039=a9_0x5ec9e7;return ExcelService_1[_0x276039(0x207)];}});var validator_1=require(a9_0x5ec9e7(0x1e4));Object['defineProperty'](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x28640b=a9_0x5ec9e7;return validator_1[_0x28640b(0x205)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1e7),{'enumerable':!![],'get':function(){var _0x35fc54=a9_0x5ec9e7;return validator_1[_0x35fc54(0x1e7)];}});var configuration_1=require(a9_0x5ec9e7(0x1fd));Object[a9_0x5ec9e7(0x1df)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x5c782e=a9_0x5ec9e7;return configuration_1[_0x5c782e(0x1fa)];}});var decorator_1=require(a9_0x5ec9e7(0x201));Object['defineProperty'](exports,a9_0x5ec9e7(0x1f4),{'enumerable':!![],'get':function(){var _0xf9f50e=a9_0x5ec9e7;return decorator_1[_0xf9f50e(0x1f4)];}}),Object['defineProperty'](exports,a9_0x5ec9e7(0x208),{'enumerable':!![],'get':function(){var _0xf5c6d3=a9_0x5ec9e7;return decorator_1[_0xf5c6d3(0x208)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1e8),{'enumerable':!![],'get':function(){var _0x4045ec=a9_0x5ec9e7;return decorator_1[_0x4045ec(0x1e8)];}}),Object[a9_0x5ec9e7(0x1df)](exports,'Body',{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object[a9_0x5ec9e7(0x1df)](exports,'Param',{'enumerable':!![],'get':function(){var _0x175748=a9_0x5ec9e7;return decorator_1[_0x175748(0x1e3)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1da),{'enumerable':!![],'get':function(){var _0x9e911e=a9_0x5ec9e7;return decorator_1[_0x9e911e(0x1da)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1fe),{'enumerable':!![],'get':function(){var _0x228e8b=a9_0x5ec9e7;return decorator_1[_0x228e8b(0x1fe)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1ef),{'enumerable':!![],'get':function(){var _0x2fde62=a9_0x5ec9e7;return decorator_1[_0x2fde62(0x1ef)];}});var decorator_2=require(a9_0x5ec9e7(0x201));Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1d9),{'enumerable':!![],'get':function(){var _0x2f653e=a9_0x5ec9e7;return decorator_2[_0x2f653e(0x1d9)];}}),Object[a9_0x5ec9e7(0x1df)](exports,'Config',{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x202),{'enumerable':!![],'get':function(){var _0x51efb7=a9_0x5ec9e7;return decorator_2[_0x51efb7(0x202)];}}),Object[a9_0x5ec9e7(0x1df)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x44f104=a9_0x5ec9e7;return decorator_2[_0x44f104(0x1ed)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1ff),{'enumerable':!![],'get':function(){var _0xb0dde1=a9_0x5ec9e7;return decorator_2[_0xb0dde1(0x1ff)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x20e),{'enumerable':!![],'get':function(){var _0x10eb1c=a9_0x5ec9e7;return decorator_2[_0x10eb1c(0x20e)];}}),Object[a9_0x5ec9e7(0x1df)](exports,a9_0x5ec9e7(0x1e1),{'enumerable':!![],'get':function(){var _0x34dde6=a9_0x5ec9e7;return decorator_2[_0x34dde6(0x1e1)];}}),global[a9_0x5ec9e7(0x200)]=getAppsConfig_1[a9_0x5ec9e7(0x200)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x1abbd6=a10_0x3db0;(function(_0x4ffa8d,_0x1506e6){var _0x429791=a10_0x3db0,_0x4bfead=_0x4ffa8d();while(!![]){try{var _0x59abca=-parseInt(_0x429791(0x16f))/0x1+-parseInt(_0x429791(0x16d))/0x2*(-parseInt(_0x429791(0x159))/0x3)+-parseInt(_0x429791(0x161))/0x4*(-parseInt(_0x429791(0x152))/0x5)+parseInt(_0x429791(0x16b))/0x6*(-parseInt(_0x429791(0x148))/0x7)+parseInt(_0x429791(0x14a))/0x8+-parseInt(_0x429791(0x143))/0x9+-parseInt(_0x429791(0x151))/0xa;if(_0x59abca===_0x1506e6)break;else _0x4bfead['push'](_0x4bfead['shift']());}catch(_0x52bba4){_0x4bfead['push'](_0x4bfead['shift']());}}}(a10_0x6e28,0xab449));var __decorate=this&&this['__decorate']||function(_0x41caa1,_0xc6743b,_0x212951,_0x26bfa4){var _0x1bf291=a10_0x3db0,_0x1ec291=arguments[_0x1bf291(0x13e)],_0x486ad2=_0x1ec291<0x3?_0xc6743b:_0x26bfa4===null?_0x26bfa4=Object[_0x1bf291(0x164)](_0xc6743b,_0x212951):_0x26bfa4,_0x572978;if(typeof Reflect===_0x1bf291(0x163)&&typeof Reflect[_0x1bf291(0x165)]===_0x1bf291(0x15e))_0x486ad2=Reflect[_0x1bf291(0x165)](_0x41caa1,_0xc6743b,_0x212951,_0x26bfa4);else{for(var _0x515419=_0x41caa1[_0x1bf291(0x13e)]-0x1;_0x515419>=0x0;_0x515419--)if(_0x572978=_0x41caa1[_0x515419])_0x486ad2=(_0x1ec291<0x3?_0x572978(_0x486ad2):_0x1ec291>0x3?_0x572978(_0xc6743b,_0x212951,_0x486ad2):_0x572978(_0xc6743b,_0x212951))||_0x486ad2;}return _0x1ec291>0x3&&_0x486ad2&&Object[_0x1bf291(0x149)](_0xc6743b,_0x212951,_0x486ad2),_0x486ad2;},__metadata=this&&this[a10_0x1abbd6(0x144)]||function(_0x56b5df,_0x1a202b){var _0x17fccf=a10_0x1abbd6;if(typeof Reflect===_0x17fccf(0x163)&&typeof Reflect['metadata']===_0x17fccf(0x15e))return Reflect[_0x17fccf(0x15f)](_0x56b5df,_0x1a202b);};Object[a10_0x1abbd6(0x149)](exports,a10_0x1abbd6(0x150),{'value':!![]}),exports[a10_0x1abbd6(0x166)]=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require('@midwayjs/decorator'),ApiError_1=require(a10_0x1abbd6(0x15d));let ApiService=class ApiService{['password'](_0x4a98e0){var _0x4af7b7=a10_0x1abbd6,_0x519ea9;return _0x4a98e0?(0x0,crypto_js_1[_0x4af7b7(0x13d)])(_0x4a98e0+(0x0,crypto_js_1[_0x4af7b7(0x13d)])((0x0,crypto_js_1[_0x4af7b7(0x13d)])(_0x4a98e0)['toString']()+((_0x519ea9=this[_0x4af7b7(0x15c)])===null||_0x519ea9===void 0x0?void 0x0:_0x519ea9[_0x4af7b7(0x158)]))['toString']())[_0x4af7b7(0x155)]():'';}[a10_0x1abbd6(0x15a)](_0x1db4d6,_0x250483,_0x132ce6=Date[a10_0x1abbd6(0x14b)]()){var _0x5176c6=a10_0x1abbd6;return{'Token':_0x1db4d6,'Logintime':_0x132ce6,'Checkcode':this[_0x5176c6(0x16a)](_0x1db4d6,_0x250483,_0x132ce6)};}[a10_0x1abbd6(0x15b)](_0x2d923e={}){var _0x57def7=a10_0x1abbd6;const _0x8fe84d=[],_0x419e95=Object['fromEntries'](Object['entries'](_0x2d923e)[_0x57def7(0x141)](_0x21208a=>[_0x21208a[0x0][_0x57def7(0x145)](),_0x21208a[0x1]]));for(let _0x10a9ff of[_0x57def7(0x157),_0x57def7(0x14f),_0x57def7(0x147),_0x57def7(0x16e),_0x57def7(0x16a)]){if(typeof _0x419e95[_0x10a9ff]==_0x57def7(0x156))throw new AnnError(ApiError_1[_0x57def7(0x14c)][_0x57def7(0x16c)],{'message':_0x57def7(0x153)+_0x10a9ff});_0x8fe84d[_0x57def7(0x140)](_0x10a9ff+'='+_0x419e95[_0x10a9ff]);}if(Math['abs'](_0x419e95['requesttime'])-Date[_0x57def7(0x14b)]()>this['config']['timeout'])throw new AnnError(ApiError_1['ApiError']['TIMEOUT']);if(!this[_0x57def7(0x15c)][_0x57def7(0x13f)][_0x419e95[_0x57def7(0x157)]]||!this['config'][_0x57def7(0x13f)][_0x419e95[_0x57def7(0x157)]][_0x57def7(0x13c)]||!this['config']['devices'][_0x419e95[_0x57def7(0x157)]][_0x57def7(0x16a)])throw new AnnError(ApiError_1[_0x57def7(0x14c)]['HEADERS_DEVICE']);if(_0x419e95[_0x57def7(0x147)]&&_0x419e95[_0x57def7(0x16a)]!=this['checkcode'](_0x419e95[_0x57def7(0x147)],_0x419e95[_0x57def7(0x157)],_0x419e95[_0x57def7(0x16e)]))throw new AnnError(ApiError_1['ApiError'][_0x57def7(0x171)]);return _0x8fe84d[_0x57def7(0x140)](_0x57def7(0x146)+this[_0x57def7(0x15c)][_0x57def7(0x13f)][_0x419e95['device']][_0x57def7(0x13c)]),(0x0,crypto_js_1[_0x57def7(0x13d)])(_0x8fe84d['sort']()['join'](''))['toString']();}[a10_0x1abbd6(0x16a)](_0x1910c4,_0x58db43,_0x301341=Date[a10_0x1abbd6(0x14b)]()){var _0x173f80=a10_0x1abbd6,_0x475c20,_0x24bc8c,_0x12156c;if(!((_0x475c20=this[_0x173f80(0x15c)])===null||_0x475c20===void 0x0?void 0x0:_0x475c20[_0x173f80(0x13f)][_0x58db43])||!((_0x12156c=(_0x24bc8c=this[_0x173f80(0x15c)])===null||_0x24bc8c===void 0x0?void 0x0:_0x24bc8c[_0x173f80(0x13f)][_0x58db43])===null||_0x12156c===void 0x0?void 0x0:_0x12156c[_0x173f80(0x16a)]))throw new AnnError(ApiError_1[_0x173f80(0x14c)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x173f80(0x13d)])(_0x1910c4+(0x0,crypto_js_1['MD5'])(_0x301341+this[_0x173f80(0x15c)][_0x173f80(0x13f)][_0x58db43][_0x173f80(0x16a)])[_0x173f80(0x155)]())['toString']();}[a10_0x1abbd6(0x154)](_0x4893a3={}){var _0x3ffb9f=a10_0x1abbd6;const _0xad3909=Object[_0x3ffb9f(0x170)](Object[_0x3ffb9f(0x160)](_0x4893a3)[_0x3ffb9f(0x141)](_0x22b2bb=>[_0x22b2bb[0x0][_0x3ffb9f(0x145)](),_0x22b2bb[0x1]]));if(!(_0xad3909===null||_0xad3909===void 0x0?void 0x0:_0xad3909[_0x3ffb9f(0x14d)]))throw new AnnError(ApiError_1[_0x3ffb9f(0x14c)][_0x3ffb9f(0x16c)],{'message':_0x3ffb9f(0x142)});if((_0xad3909===null||_0xad3909===void 0x0?void 0x0:_0xad3909['signature'])!=this[_0x3ffb9f(0x15b)](_0xad3909))throw new AnnError(ApiError_1[_0x3ffb9f(0x14c)][_0x3ffb9f(0x167)]);return!![];}};function a10_0x3db0(_0xa318e8,_0xcb6d37){var _0x6e28ef=a10_0x6e28();return a10_0x3db0=function(_0x3db0c9,_0x2a5fb0){_0x3db0c9=_0x3db0c9-0x13c;var _0x3019b3=_0x6e28ef[_0x3db0c9];return _0x3019b3;},a10_0x3db0(_0xa318e8,_0xcb6d37);}function a10_0x6e28(){var _0x73260e=['decorate','ApiService','HEADERS_SIGNATURE','design:type','Provide','checkcode','138YGGBUx','HEADERS_LACK','326afQJrG','logintime','164812WvilKk','fromEntries','HEADERS_CHECKCODE','secret','MD5','length','devices','push','map','缺少头信息:signature','4731723AVEegr','__metadata','toLowerCase','secret=','token','180404YodoqP','defineProperty','2975840atOxlw','now','ApiError','signature','Singleton','requesttime','__esModule','5941010EgEjKY','5447105sTWEAZ','缺少头信息:','checksign','toString','undefined','device','password','20568ZTjRFH','getcheck','getsign','config','../exception/ApiError','function','metadata','entries','4sMQYlI','anncicapi','object','getOwnPropertyDescriptor'];a10_0x6e28=function(){return _0x73260e;};return a10_0x6e28();}__decorate([(0x0,decorator_1['Config'])(a10_0x1abbd6(0x162)),__metadata(a10_0x1abbd6(0x168),Object)],ApiService['prototype'],a10_0x1abbd6(0x15c),void 0x0),ApiService=__decorate([(0x0,decorator_1[a10_0x1abbd6(0x169)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum'][a10_0x1abbd6(0x14e)])],ApiService),exports[a10_0x1abbd6(0x166)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x553a(_0x562b05,_0x5cb18d){const _0x3c5bf9=a11_0x3c5b();return a11_0x553a=function(_0x553aec,_0x3c609d){_0x553aec=_0x553aec-0xbf;let _0x4456dc=_0x3c5bf9[_0x553aec];return _0x4456dc;},a11_0x553a(_0x562b05,_0x5cb18d);}const a11_0x3e365e=a11_0x553a;(function(_0x9dfa2f,_0x9984a0){const _0xc3e5e0=a11_0x553a,_0x393d00=_0x9dfa2f();while(!![]){try{const _0x1a0a73=-parseInt(_0xc3e5e0(0xd7))/0x1*(-parseInt(_0xc3e5e0(0xe5))/0x2)+parseInt(_0xc3e5e0(0xef))/0x3+parseInt(_0xc3e5e0(0xdb))/0x4*(parseInt(_0xc3e5e0(0xf1))/0x5)+-parseInt(_0xc3e5e0(0xfc))/0x6*(parseInt(_0xc3e5e0(0x104))/0x7)+-parseInt(_0xc3e5e0(0xf0))/0x8+parseInt(_0xc3e5e0(0xd1))/0x9*(parseInt(_0xc3e5e0(0xe7))/0xa)+-parseInt(_0xc3e5e0(0xe8))/0xb;if(_0x1a0a73===_0x9984a0)break;else _0x393d00['push'](_0x393d00['shift']());}catch(_0x2645f2){_0x393d00['push'](_0x393d00['shift']());}}}(a11_0x3c5b,0x4e31d));var __decorate=this&&this[a11_0x3e365e(0xf8)]||function(_0x334009,_0x173fc2,_0xd24d57,_0x28151a){const _0x5866d8=a11_0x3e365e;var _0x507d76=arguments['length'],_0x6e4b89=_0x507d76<0x3?_0x173fc2:_0x28151a===null?_0x28151a=Object[_0x5866d8(0xf3)](_0x173fc2,_0xd24d57):_0x28151a,_0xa028d9;if(typeof Reflect===_0x5866d8(0xc2)&&typeof Reflect['decorate']===_0x5866d8(0xcc))_0x6e4b89=Reflect[_0x5866d8(0xd8)](_0x334009,_0x173fc2,_0xd24d57,_0x28151a);else{for(var _0x311234=_0x334009[_0x5866d8(0xce)]-0x1;_0x311234>=0x0;_0x311234--)if(_0xa028d9=_0x334009[_0x311234])_0x6e4b89=(_0x507d76<0x3?_0xa028d9(_0x6e4b89):_0x507d76>0x3?_0xa028d9(_0x173fc2,_0xd24d57,_0x6e4b89):_0xa028d9(_0x173fc2,_0xd24d57))||_0x6e4b89;}return _0x507d76>0x3&&_0x6e4b89&&Object[_0x5866d8(0xd3)](_0x173fc2,_0xd24d57,_0x6e4b89),_0x6e4b89;},__metadata=this&&this[a11_0x3e365e(0xf5)]||function(_0x30e835,_0x1661d2){const _0x5bfa4f=a11_0x3e365e;if(typeof Reflect==='object'&&typeof Reflect[_0x5bfa4f(0xf9)]===_0x5bfa4f(0xcc))return Reflect[_0x5bfa4f(0xf9)](_0x30e835,_0x1661d2);},__param=this&&this[a11_0x3e365e(0x107)]||function(_0x5bb346,_0x31645e){return function(_0x2a28a5,_0x14c17a){_0x31645e(_0x2a28a5,_0x14c17a,_0x5bb346);};};Object['defineProperty'](exports,a11_0x3e365e(0xde),{'value':!![]}),exports[a11_0x3e365e(0xf7)]=exports[a11_0x3e365e(0xc8)]=void 0x0;const path_1=require(a11_0x3e365e(0xe4)),fs_1=require('fs'),core_1=require(a11_0x3e365e(0xdc)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a11_0x3e365e(0xf6)),getRoutes_1=require(a11_0x3e365e(0xfb));let ApitestService=class ApitestService{async[a11_0x3e365e(0xbf)](_0x3a39bc){const _0x3385bd=a11_0x3e365e,_0x52db34=(0x0,getRoutes_1[_0x3385bd(0x103)])(_0x3a39bc),_0x51730a=[];for(let _0x302f4d in _0x52db34){for(let _0x452aef in _0x52db34[_0x302f4d][_0x3385bd(0xfd)]){let _0x4420a9=_0x52db34[_0x302f4d][_0x3385bd(0xfd)][_0x452aef],_0xe9b40e=[];for(let _0x5af547 in _0x4420a9[_0x3385bd(0xd4)]){_0xe9b40e[_0x3385bd(0xe2)](_0x4420a9['request'][_0x5af547]);}_0x51730a[_0x3385bd(0xe2)]({'title':_0x52db34[_0x302f4d][_0x3385bd(0x105)]+':'+_0x4420a9[_0x3385bd(0x105)],'prefix':_0x52db34[_0x302f4d]['prefix'],'router':_0x4420a9['route'],'method':_0x4420a9[_0x3385bd(0xda)],'describe':_0x4420a9[_0x3385bd(0xe0)]||'','filepath':_0x52db34[_0x302f4d][_0x3385bd(0xfe)]||'','request':_0xe9b40e});}}const _0x1ade0f=(0x0,path_1[_0x3385bd(0xe9)])(__dirname,_0x3385bd(0xc0));return(0x0,fs_1['readFileSync'])(_0x1ade0f,{'encoding':_0x3385bd(0xfa)})[_0x3385bd(0x108)](/__res__/g,_0x3385bd(0x101))['replace'](_0x3385bd(0x10b),JSON['stringify'](_0x51730a))[_0x3385bd(0x108)](_0x3385bd(0x10f),JSON[_0x3385bd(0xe6)](this[_0x3385bd(0xe3)]['devices']));}};function a11_0x3c5b(){const _0x51a7d2=['/apitest','design:returntype','readFileSync','function','/apitest-:module','length','Environment','design:type','2502rPrwIc','text/css;\x20charset=utf-8','defineProperty','request','/apiteststatic/*','design:paramtypes','118nNRHDL','decorate','application/javascript;\x20charset=utf-8','method','8cOOVgE','@midwayjs/core','ctx','__esModule','Provide','description','anncicapi','push','config','path','2888XiOkdG','stringify','12950rLyVCU','2097788wLlMOv','join','Get','Scope','apiteststatic','public,\x20max-age=604800','prototype','220509KGqxXD','1609216jrVThn','437145DsYAxY','content-type','getOwnPropertyDescriptor','Inject','__metadata','@midwayjs/decorator','ApitestStaticController','__decorate','metadata','utf-8','../helper/getRoutes','12nwXhhw','routes','filepath','Controller','apitest','/apiteststatic/','substring','getRoutes','233163CHIPMq','summary','/index.html','__param','replace','url','cache-control','__apiList__','existsSync','module','ScopeEnum','__devices__','apidoc','../../public/index.html','apitestmodule','object','../../public/','Param','extname','Config','isDevelopmentEnvironment','ApitestService'];a11_0x3c5b=function(){return _0x51a7d2;};return a11_0x3c5b();}__decorate([(0x0,decorator_2[a11_0x3e365e(0xc6)])('anncicapi'),__metadata(a11_0x3e365e(0xd0),Object)],ApitestService['prototype'],a11_0x3e365e(0xe3),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x3e365e(0xdf)])(a11_0x3e365e(0x100)),(0x0,decorator_2[a11_0x3e365e(0xeb)])(decorator_2[a11_0x3e365e(0x10e)]['Singleton'])],ApitestService),exports[a11_0x3e365e(0xc8)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x5cc619=a11_0x3e365e;if(this[_0x5cc619(0x100)]){const _0x54242f={'module':![]};return this[_0x5cc619(0xcf)][_0x5cc619(0xc7)]()&&(_0x54242f[_0x5cc619(0xfe)]=!![]),await this[_0x5cc619(0xc8)][_0x5cc619(0xbf)](_0x54242f);}return'';}async['apitestmodule'](_0x73e532){const _0xb8fe48=a11_0x3e365e;if(this[_0xb8fe48(0x100)]){const _0x5beff9={'module':_0x73e532};return this[_0xb8fe48(0xcf)][_0xb8fe48(0xc7)]()&&(_0x5beff9[_0xb8fe48(0xfe)]=!![]),await this[_0xb8fe48(0xc8)]['apidoc'](_0x5beff9);}return'';}async[a11_0x3e365e(0xec)](){const _0x325297=a11_0x3e365e;if((0x0,path_1[_0x325297(0xc5)])(this['ctx'][_0x325297(0xd4)]['url'])){var _0xfb8705=(0x0,path_1['join'])(__dirname,_0x325297(0xc3)+this[_0x325297(0xdd)][_0x325297(0xd4)]['url'][_0x325297(0x108)](_0x325297(0x101),'/'));if(_0xfb8705[_0x325297(0x102)](_0xfb8705[_0x325297(0xce)]-0xb)!=_0x325297(0x106)){this[_0x325297(0xdd)]['set'](_0x325297(0x10a),_0x325297(0xed));if((0x0,path_1[_0x325297(0xc5)])(this[_0x325297(0xdd)]['request'][_0x325297(0x109)])=='.js')this['ctx']['set']('content-type',_0x325297(0xd9));else(0x0,path_1['extname'])(this[_0x325297(0xdd)][_0x325297(0xd4)]['url'])=='.css'&&this[_0x325297(0xdd)]['set'](_0x325297(0xf2),_0x325297(0xd2));return(0x0,fs_1[_0x325297(0x10c)])(_0xfb8705)&&(0x0,fs_1[_0x325297(0xcb)])(_0xfb8705,{'encoding':_0x325297(0xfa)});}}return'';}};__decorate([(0x0,decorator_2[a11_0x3e365e(0xf4)])(),__metadata(a11_0x3e365e(0xd0),Object)],ApitestStaticController[a11_0x3e365e(0xee)],a11_0x3e365e(0xdd),void 0x0),__decorate([(0x0,decorator_2[a11_0x3e365e(0xf4)])(),__metadata(a11_0x3e365e(0xd0),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x3e365e(0xee)],a11_0x3e365e(0xcf),void 0x0),__decorate([(0x0,decorator_2[a11_0x3e365e(0xf4)])(),__metadata(a11_0x3e365e(0xd0),ApitestService)],ApitestStaticController[a11_0x3e365e(0xee)],a11_0x3e365e(0xc8),void 0x0),__decorate([(0x0,decorator_2[a11_0x3e365e(0xc6)])(a11_0x3e365e(0x100)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0x3e365e(0xee)],'apitest',void 0x0),__decorate([(0x0,decorator_2[a11_0x3e365e(0xc6)])(a11_0x3e365e(0xe1)),__metadata(a11_0x3e365e(0xd0),Object)],ApitestStaticController[a11_0x3e365e(0xee)],'config',void 0x0),__decorate([(0x0,decorator_1[a11_0x3e365e(0xea)])(a11_0x3e365e(0xc9)),__metadata(a11_0x3e365e(0xd0),Function),__metadata(a11_0x3e365e(0xd6),[]),__metadata(a11_0x3e365e(0xca),Promise)],ApitestStaticController[a11_0x3e365e(0xee)],'apitesthtml',null),__decorate([(0x0,decorator_1[a11_0x3e365e(0xea)])(a11_0x3e365e(0xcd)),__param(0x0,(0x0,decorator_1[a11_0x3e365e(0xc4)])(a11_0x3e365e(0x10d))),__metadata(a11_0x3e365e(0xd0),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x3e365e(0xc1),null),__decorate([(0x0,decorator_1[a11_0x3e365e(0xea)])(a11_0x3e365e(0xd5)),__metadata(a11_0x3e365e(0xd0),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x3e365e(0xca),Promise)],ApitestStaticController[a11_0x3e365e(0xee)],a11_0x3e365e(0xec),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x3e365e(0xff)])('/'),(0x0,decorator_2[a11_0x3e365e(0xeb)])(decorator_2[a11_0x3e365e(0x10e)]['Request'])],ApitestStaticController),exports[a11_0x3e365e(0xf7)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a12_0x3eb5(){const _0x5cf83d=['9yjzkpg','6744933QBriiQ','getRow','.xlsx','readFile','ScopeEnum','1402095zZqurj','__esModule','parse','/public/xlsx','columns','app','Api\x20Excel\x20Error:\x20','startsWith','keys','isNumber','3999670iSRzvp','existsSync','730FkqPpB','__decorate','function','push','replace','Sheet\x201','trim','key','Scope','log','substring','random','App','@midwayjs/decorator','getAppDir','handler','design:type','mkdirSync','1128bnUewO','defineProperty','21287UeeIAF','length','getWorksheet','ExcelService','export','cellCount','decorate','header','col','rowCount','addWorksheet','toString','getCell','value','object','Provide','get','__metadata','22206bKkPGe','prototype','metadata','download','58778HFDeVK','xlsx','4655916Qohpmv','frozen','exceljs','koa-send','Singleton','endsWith','worksheets','addRow'];a12_0x3eb5=function(){return _0x5cf83d;};return a12_0x3eb5();}const a12_0x552013=a12_0x5515;(function(_0x376e2d,_0x34cfe6){const _0x55b73a=a12_0x5515,_0x15c900=_0x376e2d();while(!![]){try{const _0x3679e5=-parseInt(_0x55b73a(0x194))/0x1+-parseInt(_0x55b73a(0x184))/0x2*(parseInt(_0x55b73a(0x18e))/0x3)+parseInt(_0x55b73a(0x186))/0x4+parseInt(_0x55b73a(0x1a0))/0x5*(-parseInt(_0x55b73a(0x180))/0x6)+-parseInt(_0x55b73a(0x16e))/0x7*(-parseInt(_0x55b73a(0x16c))/0x8)+parseInt(_0x55b73a(0x18f))/0x9+parseInt(_0x55b73a(0x19e))/0xa;if(_0x3679e5===_0x34cfe6)break;else _0x15c900['push'](_0x15c900['shift']());}catch(_0xf5a8aa){_0x15c900['push'](_0x15c900['shift']());}}}(a12_0x3eb5,0xadb84));function a12_0x5515(_0x43a8c3,_0xcedc2b){const _0x3eb5a7=a12_0x3eb5();return a12_0x5515=function(_0x551508,_0x53ff04){_0x551508=_0x551508-0x163;let _0x1090eb=_0x3eb5a7[_0x551508];return _0x1090eb;},a12_0x5515(_0x43a8c3,_0xcedc2b);}var __decorate=this&&this[a12_0x552013(0x1a1)]||function(_0x150e71,_0x25f122,_0x4d5f53,_0x579212){const _0x258806=a12_0x552013;var _0x38d633=arguments[_0x258806(0x16f)],_0x3beba4=_0x38d633<0x3?_0x25f122:_0x579212===null?_0x579212=Object['getOwnPropertyDescriptor'](_0x25f122,_0x4d5f53):_0x579212,_0x1c5366;if(typeof Reflect===_0x258806(0x17c)&&typeof Reflect[_0x258806(0x174)]===_0x258806(0x1a2))_0x3beba4=Reflect['decorate'](_0x150e71,_0x25f122,_0x4d5f53,_0x579212);else{for(var _0x55b15b=_0x150e71[_0x258806(0x16f)]-0x1;_0x55b15b>=0x0;_0x55b15b--)if(_0x1c5366=_0x150e71[_0x55b15b])_0x3beba4=(_0x38d633<0x3?_0x1c5366(_0x3beba4):_0x38d633>0x3?_0x1c5366(_0x25f122,_0x4d5f53,_0x3beba4):_0x1c5366(_0x25f122,_0x4d5f53))||_0x3beba4;}return _0x38d633>0x3&&_0x3beba4&&Object[_0x258806(0x16d)](_0x25f122,_0x4d5f53,_0x3beba4),_0x3beba4;},__metadata=this&&this[a12_0x552013(0x17f)]||function(_0x4f35a8,_0x2171a8){const _0x11f436=a12_0x552013;if(typeof Reflect===_0x11f436(0x17c)&&typeof Reflect[_0x11f436(0x182)]===_0x11f436(0x1a2))return Reflect[_0x11f436(0x182)](_0x4f35a8,_0x2171a8);};Object['defineProperty'](exports,a12_0x552013(0x195),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require(a12_0x552013(0x188)),koasend=require(a12_0x552013(0x189)),decorator_1=require(a12_0x552013(0x167));let ExcelService=class ExcelService{async[a12_0x552013(0x196)](_0x472244,_0x3f97da,_0xca2661=[0x0]){const _0x51e8df=a12_0x552013;var _0x31743b,_0x27d172;const _0x26a9e8=new exceljs['Workbook'](),_0x4fb0d0=[];let _0x2a05d9=_0x472244['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x2a05d9===null||_0x2a05d9===void 0x0?void 0x0:_0x2a05d9[_0x51e8df(0x19b)]('/'))&&(_0x2a05d9=this[_0x51e8df(0x199)][_0x51e8df(0x168)]()+'/'+_0x2a05d9);try{await _0x26a9e8[_0x51e8df(0x185)][_0x51e8df(0x192)](_0x2a05d9);}catch(_0x1ebf6a){return console[_0x51e8df(0x163)](_0x51e8df(0x19a)+_0x2a05d9+'\x20is\x20read\x20fail'),_0x4fb0d0;}for(const _0x14b574 of _0xca2661){const _0x21bc57=lodash[_0x51e8df(0x19d)](_0x14b574)?((_0x31743b=_0x26a9e8[_0x51e8df(0x18c)])===null||_0x31743b===void 0x0?void 0x0:_0x31743b[_0x14b574])||undefined:_0x26a9e8[_0x51e8df(0x170)](_0x14b574);if(_0x21bc57){var _0x1bc183=0x1;const _0x3ff3f1=_0x21bc57[_0x51e8df(0x190)](0x1),_0x1c3285=await new Promise(_0x37e710=>{const _0x42b07c={};_0x3ff3f1['eachCell']((_0xfd0ca0,_0x5b6b25)=>{const _0x329923=a12_0x5515;for(const _0x29709b of _0x3f97da){if(_0xfd0ca0[_0x329923(0x17b)]==_0x29709b[_0x329923(0x175)])_0x1bc183=0x2,_0x42b07c[_0x29709b[_0x329923(0x1a7)]]={'header':_0xfd0ca0['col'],'handler':_0x29709b['handler']};else{if(!_0x42b07c[_0x29709b[_0x329923(0x1a7)]])try{const _0x34103c=_0x3ff3f1['getCell'](_0x29709b[_0x329923(0x175)]);_0x34103c&&(_0x42b07c[_0x29709b['key']]={'header':_0x34103c[_0x329923(0x176)],'handler':_0x29709b[_0x329923(0x169)]});}catch{}}}_0x3ff3f1[_0x329923(0x173)]==_0x5b6b25&&_0x37e710(_0x42b07c);});});for(const _0x34f14f of _0x21bc57['findRows'](_0x1bc183,_0x21bc57[_0x51e8df(0x177)])){const _0xcf47da={};for(const _0x5a37ff in _0x1c3285){_0x1c3285[_0x5a37ff][_0x51e8df(0x175)]&&(typeof((_0x27d172=_0x1c3285[_0x5a37ff])===null||_0x27d172===void 0x0?void 0x0:_0x27d172[_0x51e8df(0x169)])=='function'?_0xcf47da[_0x5a37ff]=_0x1c3285[_0x5a37ff][_0x51e8df(0x169)](_0x34f14f[_0x51e8df(0x17a)](lodash[_0x51e8df(0x1a6)](''+_0x1c3285[_0x5a37ff][_0x51e8df(0x175)],'\x20'))[_0x51e8df(0x179)]()):_0xcf47da[_0x5a37ff]=_0x34f14f[_0x51e8df(0x17a)](_0x1c3285[_0x5a37ff][_0x51e8df(0x175)])['toString']());}Object[_0x51e8df(0x19c)](_0xcf47da)[_0x51e8df(0x16f)]>0x0&&_0x4fb0d0[_0x51e8df(0x1a3)](_0xcf47da);}}}return _0x4fb0d0;}async[a12_0x552013(0x172)](_0x5ab5f7,_0x641037,_0x336601,_0x5bed03='public/xlsx'){const _0x23f276=a12_0x552013;var _0xbe4522,_0x527ab6;const _0x243c8a=new exceljs['Workbook'](),_0x511004={},_0x329499=[],_0x184099=_0x243c8a[_0x23f276(0x178)](_0x23f276(0x1a5),{'views':[{'state':_0x23f276(0x187),'xSplit':0x1}]});for(const _0x176ee8 in _0x641037){_0x511004[_0x641037[_0x176ee8][_0x23f276(0x1a7)]]=_0x641037[_0x176ee8][_0x23f276(0x175)],_0x329499[_0x23f276(0x1a3)]({'header':_0x641037[_0x176ee8]['header'],'key':(_0xbe4522=_0x641037[_0x176ee8])===null||_0xbe4522===void 0x0?void 0x0:_0xbe4522[_0x23f276(0x1a7)]['replace'](/\./g,'_')});}_0x184099[_0x23f276(0x198)]=_0x329499;for(const _0x23ac5a of _0x336601){const _0x566f12={};for(const _0x36b7cd in _0x641037){typeof((_0x527ab6=_0x641037[_0x36b7cd])===null||_0x527ab6===void 0x0?void 0x0:_0x527ab6[_0x23f276(0x169)])==_0x23f276(0x1a2)?_0x566f12[_0x641037[_0x36b7cd][_0x23f276(0x1a7)]['replace'](/\./g,'_')]=await _0x641037[_0x36b7cd][_0x23f276(0x169)](_0x23ac5a):_0x566f12[_0x641037[_0x36b7cd][_0x23f276(0x1a7)][_0x23f276(0x1a4)](/\./g,'_')]=lodash[_0x23f276(0x17e)](_0x23ac5a,_0x641037[_0x36b7cd][_0x23f276(0x1a7)],'');}_0x184099[_0x23f276(0x18d)](_0x566f12);}let _0xfe70f5='';const _0x474488=_0x5ab5f7+'-'+lodash[_0x23f276(0x165)](0x2710,0x1869f)+_0x23f276(0x191);if(_0x5bed03&&_0x5bed03['startsWith']('/'))_0xfe70f5=''+_0x5bed03;else _0x5bed03&&!_0x5bed03['startsWith']('/')&&!_0x5bed03[_0x23f276(0x19b)]('\x5c')?_0xfe70f5=this['app'][_0x23f276(0x168)]()+'/'+_0x5bed03:_0xfe70f5=this[_0x23f276(0x199)]['getAppDir']()+_0x23f276(0x197);return(_0xfe70f5[_0x23f276(0x18b)]('/')||_0xfe70f5[_0x23f276(0x18b)]('\x5c'))&&(_0xfe70f5=_0xfe70f5[_0x23f276(0x164)](0x0,_0xfe70f5[_0x23f276(0x16f)]-0x1)),_0xfe70f5=_0xfe70f5[_0x23f276(0x1a4)](/(\\|\/)/g,'/')[_0x23f276(0x1a4)](/\/{2,}/g,'/'),!fs[_0x23f276(0x19f)](_0xfe70f5)&&fs[_0x23f276(0x16b)](_0xfe70f5,{'recursive':!![]}),await _0x243c8a['xlsx']['writeFile']((_0xfe70f5+'/'+_0x474488)[_0x23f276(0x1a4)](/(\\|\/)/g,'/')[_0x23f276(0x1a4)](/\/{2,}/g,'/')),{'filename':_0x474488,'filepath':(_0xfe70f5[_0x23f276(0x164)]((''+this[_0x23f276(0x199)][_0x23f276(0x168)]())['length'])+'/'+_0x474488)[_0x23f276(0x1a4)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x552013(0x183)](_0x3b4853,_0x19ea98){return await koasend(_0x3b4853,''+_0x19ea98);}};__decorate([(0x0,decorator_1[a12_0x552013(0x166)])(),__metadata(a12_0x552013(0x16a),Object)],ExcelService[a12_0x552013(0x181)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x552013(0x17d)])(),(0x0,decorator_1[a12_0x552013(0x1a8)])(decorator_1[a12_0x552013(0x193)][a12_0x552013(0x18a)])],ExcelService),exports[a12_0x552013(0x171)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0xcf7f74=a13_0x7043;(function(_0x2eb270,_0x9fa064){var _0x320b20=a13_0x7043,_0xaf326b=_0x2eb270();while(!![]){try{var _0x21989d=parseInt(_0x320b20(0x118))/0x1*(-parseInt(_0x320b20(0x11b))/0x2)+parseInt(_0x320b20(0x11f))/0x3*(parseInt(_0x320b20(0x129))/0x4)+-parseInt(_0x320b20(0x11a))/0x5+-parseInt(_0x320b20(0x123))/0x6+-parseInt(_0x320b20(0x11e))/0x7*(-parseInt(_0x320b20(0x11c))/0x8)+-parseInt(_0x320b20(0x119))/0x9+parseInt(_0x320b20(0x124))/0xa;if(_0x21989d===_0x9fa064)break;else _0xaf326b['push'](_0xaf326b['shift']());}catch(_0x39e592){_0xaf326b['push'](_0xaf326b['shift']());}}}(a13_0x2232,0xc0cec));function a13_0x2232(){var _0x13cdca=['ACTION_KEY','14PgMLBv','3xOZGhS','AppsConfigTmp','anncic-api:action','anncic-api:action:route','1757874ZNrJqx','28238370kKDVtP','__esModule','ACTION_ROUTE_KEY','APPSCONFIG_KEY','anncic-api:apps:config','3548424hOlMpv','defineProperty','129070VUkAqU','11868732NvQYGD','1510950fZpFeY','20tVPZat','1133656lOSAtp'];a13_0x2232=function(){return _0x13cdca;};return a13_0x2232();}function a13_0x7043(_0x197b4c,_0x106d95){var _0x2232be=a13_0x2232();return a13_0x7043=function(_0x7043b8,_0x18c4a4){_0x7043b8=_0x7043b8-0x118;var _0x1ac3a8=_0x2232be[_0x7043b8];return _0x1ac3a8;},a13_0x7043(_0x197b4c,_0x106d95);}Object[a13_0xcf7f74(0x12a)](exports,a13_0xcf7f74(0x125),{'value':!![]}),exports[a13_0xcf7f74(0x120)]=exports[a13_0xcf7f74(0x127)]=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a13_0xcf7f74(0x11d)]=a13_0xcf7f74(0x121),exports[a13_0xcf7f74(0x126)]=a13_0xcf7f74(0x122),exports[a13_0xcf7f74(0x127)]=a13_0xcf7f74(0x128);class AppsConfigTmp{}exports[a13_0xcf7f74(0x120)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x97b305=a14_0x1ce9;(function(_0x45a2a7,_0x354cfd){var _0x527eba=a14_0x1ce9,_0x39cd8b=_0x45a2a7();while(!![]){try{var _0x43a322=-parseInt(_0x527eba(0x9c))/0x1+-parseInt(_0x527eba(0x9b))/0x2+-parseInt(_0x527eba(0x8f))/0x3+-parseInt(_0x527eba(0x83))/0x4*(parseInt(_0x527eba(0x8b))/0x5)+parseInt(_0x527eba(0x7a))/0x6*(parseInt(_0x527eba(0x7c))/0x7)+-parseInt(_0x527eba(0x98))/0x8*(parseInt(_0x527eba(0x93))/0x9)+parseInt(_0x527eba(0x95))/0xa;if(_0x43a322===_0x354cfd)break;else _0x39cd8b['push'](_0x39cd8b['shift']());}catch(_0x10040a){_0x39cd8b['push'](_0x39cd8b['shift']());}}}(a14_0x8727,0xcd8b0));var __decorate=this&&this['__decorate']||function(_0x457626,_0x48bf0f,_0x2720eb,_0x21cb3d){var _0x19f383=a14_0x1ce9,_0x409058=arguments[_0x19f383(0x82)],_0x4461eb=_0x409058<0x3?_0x48bf0f:_0x21cb3d===null?_0x21cb3d=Object[_0x19f383(0x8c)](_0x48bf0f,_0x2720eb):_0x21cb3d,_0x1c3ed4;if(typeof Reflect===_0x19f383(0x7b)&&typeof Reflect[_0x19f383(0x7d)]==='function')_0x4461eb=Reflect[_0x19f383(0x7d)](_0x457626,_0x48bf0f,_0x2720eb,_0x21cb3d);else{for(var _0x4a2bad=_0x457626[_0x19f383(0x82)]-0x1;_0x4a2bad>=0x0;_0x4a2bad--)if(_0x1c3ed4=_0x457626[_0x4a2bad])_0x4461eb=(_0x409058<0x3?_0x1c3ed4(_0x4461eb):_0x409058>0x3?_0x1c3ed4(_0x48bf0f,_0x2720eb,_0x4461eb):_0x1c3ed4(_0x48bf0f,_0x2720eb))||_0x4461eb;}return _0x409058>0x3&&_0x4461eb&&Object[_0x19f383(0x84)](_0x48bf0f,_0x2720eb,_0x4461eb),_0x4461eb;},__metadata=this&&this[a14_0x97b305(0x81)]||function(_0x1d69ca,_0x424c63){var _0x34858b=a14_0x97b305;if(typeof Reflect==='object'&&typeof Reflect[_0x34858b(0x8e)]===_0x34858b(0x97))return Reflect[_0x34858b(0x8e)](_0x1d69ca,_0x424c63);};Object[a14_0x97b305(0x84)](exports,a14_0x97b305(0x7f),{'value':!![]}),exports[a14_0x97b305(0x87)]=void 0x0;const validator_1=require(a14_0x97b305(0x8d));function a14_0x1ce9(_0x12f0f9,_0x160704){var _0x8727ac=a14_0x8727();return a14_0x1ce9=function(_0x1ce9ad,_0x563aaa){_0x1ce9ad=_0x1ce9ad-0x7a;var _0x329b86=_0x8727ac[_0x1ce9ad];return _0x329b86;},a14_0x1ce9(_0x12f0f9,_0x160704);}class PageDTO{}function a14_0x8727(){var _0x4eba2e=['Rule','_size','3110666KjftHL','160122YNdaQM','RuleType','是否倒序','integer','2437758SMijUr','object','7zVLSdM','decorate','_order','__esModule','min','__metadata','length','7744pchQWH','defineProperty','分页数量','trim','PageDTO','prototype','valid','string','2905PieTOg','getOwnPropertyDescriptor','@anncic-api/validator','metadata','156750DnorFE','_isreverse','number','design:type','9VqWdaU','_page','37396300prWkSx','1:是;0:否','function','3291984QkgTpO'];a14_0x8727=function(){return _0x4eba2e;};return a14_0x8727();}__decorate([(0x0,validator_1[a14_0x97b305(0x99)])('分页',validator_1[a14_0x97b305(0x9d)]['number']()[a14_0x97b305(0x9f)]()[a14_0x97b305(0x80)](0x1),'第一页为1,第二页为2'),__metadata(a14_0x97b305(0x92),Number)],PageDTO[a14_0x97b305(0x88)],a14_0x97b305(0x94),void 0x0),__decorate([(0x0,validator_1[a14_0x97b305(0x99)])(a14_0x97b305(0x85),validator_1['RuleType']['number']()[a14_0x97b305(0x9f)]()[a14_0x97b305(0x80)](0x1)),__metadata(a14_0x97b305(0x92),Number)],PageDTO[a14_0x97b305(0x88)],a14_0x97b305(0x9a),void 0x0),__decorate([(0x0,validator_1[a14_0x97b305(0x99)])('排序方式',validator_1[a14_0x97b305(0x9d)][a14_0x97b305(0x8a)]()[a14_0x97b305(0x86)]()),__metadata(a14_0x97b305(0x92),String)],PageDTO[a14_0x97b305(0x88)],a14_0x97b305(0x7e),void 0x0),__decorate([(0x0,validator_1[a14_0x97b305(0x99)])(a14_0x97b305(0x9e),validator_1[a14_0x97b305(0x9d)][a14_0x97b305(0x91)]()[a14_0x97b305(0x9f)]()[a14_0x97b305(0x89)](0x0,0x1),a14_0x97b305(0x96)),__metadata(a14_0x97b305(0x92),Number)],PageDTO[a14_0x97b305(0x88)],a14_0x97b305(0x90),void 0x0),exports[a14_0x97b305(0x87)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
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.29",
|
|
21
|
+
"@anncic-api/core": "^1.1.29",
|
|
22
|
+
"@anncic-api/event": "^1.1.29",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.29",
|
|
24
|
+
"@anncic-api/validator": "^1.1.29",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.29",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0cf871dada08ea550e685e6343a6d1127b97fb1b"
|
|
43
43
|
}
|