anncic-api 1.1.11 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x3c05(_0x4e9cb4,_0x34a54d){var _0x5ae8c4=a0_0x5ae8();return a0_0x3c05=function(_0x3c0504,_0xb340f2){_0x3c0504=_0x3c0504-0x1d6;var _0xfb97de=_0x5ae8c4[_0x3c0504];return _0xfb97de;},a0_0x3c05(_0x4e9cb4,_0x34a54d);}function a0_0x5ae8(){var _0x4ede78=['1zQGezL','7pZAXsr','default','name','3745310MaqsUI','/runtime/.upload','5662398OKPMFH','5etbZoi','878766qEHYbu','1146330rdIDnx','5658760wNdKuJ','95254FMujsz','appDir','2477120HpflHJ','zhiulanuiy7892387985hnoi','defineProperty'];a0_0x5ae8=function(){return _0x4ede78;};return a0_0x5ae8();}var a0_0xb74f9e=a0_0x3c05;(function(_0x1c61d7,_0x46a3a4){var _0x2db136=a0_0x3c05,_0x22a56b=_0x1c61d7();while(!![]){try{var _0x4dccb3=parseInt(_0x2db136(0x1e5))/0x1*(parseInt(_0x2db136(0x1e0))/0x2)+parseInt(_0x2db136(0x1dd))/0x3+parseInt(_0x2db136(0x1e2))/0x4+-parseInt(_0x2db136(0x1dc))/0x5*(parseInt(_0x2db136(0x1db))/0x6)+-parseInt(_0x2db136(0x1d6))/0x7*(-parseInt(_0x2db136(0x1df))/0x8)+parseInt(_0x2db136(0x1de))/0x9+-parseInt(_0x2db136(0x1d9))/0xa;if(_0x4dccb3===_0x46a3a4)break;else _0x22a56b['push'](_0x22a56b['shift']());}catch(_0x158160){_0x22a56b['push'](_0x22a56b['shift']());}}}(a0_0x5ae8,0x74478));Object[a0_0xb74f9e(0x1e4)](exports,'__esModule',{'value':!![]}),exports[a0_0xb74f9e(0x1d7)]=_0x13b0aa=>{var _0x43e0ba=a0_0xb74f9e;return{'apitest':!![],'keys':_0x13b0aa[_0x43e0ba(0x1d8)],'anncicapi':{'timeout':0x1388,'password':_0x43e0ba(0x1e3),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x13b0aa[_0x43e0ba(0x1e1)]+_0x43e0ba(0x1da),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x764ff7=a1_0x3894;function a1_0x3894(_0x1b8287,_0x79eb79){var _0x1ec43e=a1_0x1ec4();return a1_0x3894=function(_0x3894b5,_0x9d2ba6){_0x3894b5=_0x3894b5-0x77;var _0x833a14=_0x1ec43e[_0x3894b5];return _0x833a14;},a1_0x3894(_0x1b8287,_0x79eb79);}(function(_0x1d72cf,_0x4b4fd2){var _0x6afb06=a1_0x3894,_0x159a7e=_0x1d72cf();while(!![]){try{var _0x5ec7a4=parseInt(_0x6afb06(0x77))/0x1*(-parseInt(_0x6afb06(0x80))/0x2)+-parseInt(_0x6afb06(0x7f))/0x3+parseInt(_0x6afb06(0x82))/0x4*(parseInt(_0x6afb06(0x7c))/0x5)+parseInt(_0x6afb06(0x79))/0x6*(parseInt(_0x6afb06(0x7a))/0x7)+-parseInt(_0x6afb06(0x7b))/0x8*(-parseInt(_0x6afb06(0x78))/0x9)+parseInt(_0x6afb06(0x81))/0xa+parseInt(_0x6afb06(0x7e))/0xb;if(_0x5ec7a4===_0x4b4fd2)break;else _0x159a7e['push'](_0x159a7e['shift']());}catch(_0x284cde){_0x159a7e['push'](_0x159a7e['shift']());}}}(a1_0x1ec4,0xd1eca));function a1_0x1ec4(){var _0x2a94c7=['7715940eeblAh','7WbzRye','3928nAMpaZ','106870DxwWby','default','11153252fHBlJF','4762920fkONFk','26mDNOFj','4684290eKfFBy','124sujTgD','110738ZZKuVI','8361gDQLWn'];a1_0x1ec4=function(){return _0x2a94c7;};return a1_0x1ec4();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x764ff7(0x7d)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0xbf6159=a2_0x1730;(function(_0x1ed68c,_0x539da9){const _0x35ed15=a2_0x1730,_0x233299=_0x1ed68c();while(!![]){try{const _0x39b8d0=-parseInt(_0x35ed15(0x9c))/0x1*(-parseInt(_0x35ed15(0x84))/0x2)+parseInt(_0x35ed15(0xaa))/0x3*(parseInt(_0x35ed15(0xbe))/0x4)+parseInt(_0x35ed15(0x7b))/0x5+-parseInt(_0x35ed15(0xb7))/0x6+-parseInt(_0x35ed15(0xb3))/0x7+parseInt(_0x35ed15(0xa3))/0x8+-parseInt(_0x35ed15(0xa7))/0x9*(parseInt(_0x35ed15(0x85))/0xa);if(_0x39b8d0===_0x539da9)break;else _0x233299['push'](_0x233299['shift']());}catch(_0x43294b){_0x233299['push'](_0x233299['shift']());}}}(a2_0x1fea,0x85d30));function a2_0x1fea(){const _0x2d9f65=['existsSync','object','14343NBoyuf','decorate','log','@midwayjs/koa','design:type','key','isArray','@midwayjs/upload','Inject','2048508jnAmnN','string','target','filterConfig','6318750rNvcoF','anncic-apihelper','function','keys','@midwayjs/static-file','Configuration','checksign','476FDRhSb','prototype','Anncic-api\x20static-file\x20:\x20mkdir\x20','dir','bodyParser','checkConfigKeys','environment','CustomConfiguration','forEach','decorator','mkdirSync','defineProperty','beforeRoute','./types/action','./service/ApiService','@anncic-api/validator','@anncic-api/core','anncic-api','query','@anncic-api/event','anncicapi','apimit','input','koa-bodyparser','handlerActionRoute','3640605sTfqel','HEADERS_SIGNATURE','upload','application','isString','config','request','@midwayjs/cross-domain','getConfiguration','290478WtqPZn','4716010SFlnyd','defineProperties','tmpdir','MidwayConfigService','useMiddleware','@midwayjs/decorator','context','addObject','metadata','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','REQUEST_OBJ_CTX_KEY','@anncic-api/typeorm','staticFile','__decorate','__metadata','_matchedRoute','hanlderApplications','getApplications','device','bodyXml','./exception/ApiError','ApiService','7lrWeqm','@midwayjs/i18n','length','@midwayjs/task','headers','__esModule','dirs','414248QwOQkj','devices','./config/config.production','onReady','9WHhQMA'];a2_0x1fea=function(){return _0x2d9f65;};return a2_0x1fea();}var __decorate=this&&this[a2_0xbf6159(0x93)]||function(_0x25407b,_0x472436,_0x138ae6,_0x3626bb){const _0x48dfe9=a2_0xbf6159;var _0x531bf6=arguments[_0x48dfe9(0x9e)],_0x45de7d=_0x531bf6<0x3?_0x472436:_0x3626bb===null?_0x3626bb=Object['getOwnPropertyDescriptor'](_0x472436,_0x138ae6):_0x3626bb,_0x58544e;if(typeof Reflect==='object'&&typeof Reflect[_0x48dfe9(0xab)]===_0x48dfe9(0xb9))_0x45de7d=Reflect[_0x48dfe9(0xab)](_0x25407b,_0x472436,_0x138ae6,_0x3626bb);else{for(var _0x39edaa=_0x25407b['length']-0x1;_0x39edaa>=0x0;_0x39edaa--)if(_0x58544e=_0x25407b[_0x39edaa])_0x45de7d=(_0x531bf6<0x3?_0x58544e(_0x45de7d):_0x531bf6>0x3?_0x58544e(_0x472436,_0x138ae6,_0x45de7d):_0x58544e(_0x472436,_0x138ae6))||_0x45de7d;}return _0x531bf6>0x3&&_0x45de7d&&Object[_0x48dfe9(0xc9)](_0x472436,_0x138ae6,_0x45de7d),_0x45de7d;},__metadata=this&&this[a2_0xbf6159(0x94)]||function(_0x3af6a7,_0x4f859d){const _0x493329=a2_0xbf6159;if(typeof Reflect===_0x493329(0xa9)&&typeof Reflect[_0x493329(0x8d)]==='function')return Reflect[_0x493329(0x8d)](_0x3af6a7,_0x4f859d);};function a2_0x1730(_0x534888,_0x5a11c0){const _0x1fea3b=a2_0x1fea();return a2_0x1730=function(_0x17307d,_0x50a9cd){_0x17307d=_0x17307d-0x71;let _0x317a4a=_0x1fea3b[_0x17307d];return _0x317a4a;},a2_0x1730(_0x534888,_0x5a11c0);}Object['defineProperty'](exports,a2_0xbf6159(0xa1),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a2_0xbf6159(0x8a)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0xbf6159(0x9a)),ApiService_1=require(a2_0xbf6159(0xcc)),action_1=require(a2_0xbf6159(0xcb)),fs=require('fs'),koa=require(a2_0xbf6159(0xad)),i18n=require(a2_0xbf6159(0x9d)),task=require(a2_0xbf6159(0x9f)),upload=require(a2_0xbf6159(0xb1)),staticFile=require(a2_0xbf6159(0xbb)),crossDomain=require(a2_0xbf6159(0x82)),bodyXml=require('koa-xml-body'),bodyParser=require(a2_0xbf6159(0x79)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0xbf6159(0xa5)),anncic=require(a2_0xbf6159(0x72)),anncicEvent=require(a2_0xbf6159(0x75)),anncicTypeorm=require(a2_0xbf6159(0x91)),anncicValidator=require(a2_0xbf6159(0x71)),anncicHelper=require(a2_0xbf6159(0xb8));let CustomConfiguration=class CustomConfiguration{async[a2_0xbf6159(0xa6)](){const _0x108605=a2_0xbf6159;await this[_0x108605(0xb6)](),await this[_0x108605(0xc3)](),await this['handlerActionRoute'](),await this[_0x108605(0x96)]();}async['checkConfigKeys'](){}async[a2_0xbf6159(0x7a)](){const _0x777335=this['config']['getConfiguration']();this['decorator']['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x5836c5=>{const _0x120e41=a2_0x1730,_0xf9bfe8=_0x5836c5[_0x120e41(0x8d)];return{'before':async _0xc015de=>{const _0x1d467e=_0x120e41;var _0x2bc51d,_0x15dae1,_0x1ddfc4,_0x318df8,_0x14b553;const _0x2ed9c0=(_0x2bc51d=_0xc015de===null||_0xc015de===void 0x0?void 0x0:_0xc015de[_0x1d467e(0xb5)])===null||_0x2bc51d===void 0x0?void 0x0:_0x2bc51d[core_1[_0x1d467e(0x90)]];if(_0x2ed9c0){if((_0xf9bfe8===null||_0xf9bfe8===void 0x0?void 0x0:_0xf9bfe8[_0x1d467e(0x77)])&&!this[_0x1d467e(0x9b)][_0x1d467e(0xbd)]((_0x15dae1=_0x2ed9c0===null||_0x2ed9c0===void 0x0?void 0x0:_0x2ed9c0[_0x1d467e(0x81)])===null||_0x15dae1===void 0x0?void 0x0:_0x15dae1[_0x1d467e(0xa0)]))throw new AnnError(ApiError_1['ApiError'][_0x1d467e(0x7c)]);((_0x1ddfc4=_0x2ed9c0['headers'])===null||_0x1ddfc4===void 0x0?void 0x0:_0x1ddfc4[_0x1d467e(0x98)])&&((_0x14b553=(_0x318df8=_0x777335===null||_0x777335===void 0x0?void 0x0:_0x777335[_0x1d467e(0x76)])===null||_0x318df8===void 0x0?void 0x0:_0x318df8[_0x1d467e(0xa4)])===null||_0x14b553===void 0x0?void 0x0:_0x14b553[_0x2ed9c0[_0x1d467e(0xa0)]['device']])&&(typeof _0x777335[_0x1d467e(0x76)][_0x1d467e(0xa4)][_0x2ed9c0[_0x1d467e(0xa0)][_0x1d467e(0x98)]][_0x1d467e(0xca)]=='function'&&await _0x777335[_0x1d467e(0x76)][_0x1d467e(0xa4)][_0x2ed9c0[_0x1d467e(0xa0)][_0x1d467e(0x98)]][_0x1d467e(0xca)]((_0x2ed9c0===null||_0x2ed9c0===void 0x0?void 0x0:_0x2ed9c0[_0x1d467e(0x95)])||undefined,_0xf9bfe8,_0x2ed9c0));}},'afterThrow':(_0x20fa68,_0x5d323a)=>{throw _0x5d323a;}};});}async[a2_0xbf6159(0x96)](){const _0x936405=a2_0xbf6159;this[_0x936405(0x7e)][_0x936405(0x97)](['koa'])[_0x936405(0xc6)](_0x50dd7e=>{const _0x2bae5b=_0x936405;_0x50dd7e['useMiddleware'](bodyXml(this[_0x2bae5b(0x80)][_0x2bae5b(0x83)](_0x2bae5b(0x99)))),_0x50dd7e[_0x2bae5b(0x89)](bodyParser(this[_0x2bae5b(0x80)][_0x2bae5b(0x83)](_0x2bae5b(0xc2)))),(_0x50dd7e===null||_0x50dd7e===void 0x0?void 0x0:_0x50dd7e['context'])&&Object[_0x2bae5b(0x86)](_0x50dd7e[_0x2bae5b(0x8b)],{'ok':{'value':function(_0x530084,_0x105884,_0x370426=0x0){return{'code':_0x370426,'data':_0x530084,'extra':_0x105884};}},'err':{'value':function(_0x419516,_0x1aef11,_0xb51461=0x1){return{'code':_0xb51461,'extra':_0x1aef11,'msg':_0x419516};}},'input':{'value':function(_0x254cba,_0x18a079){const _0x48ccc4=_0x2bae5b;var _0x3c7363;const _0x2b31ae=lodash['defaultsDeep']({},this[_0x48ccc4(0x81)]['body']||this[_0x48ccc4(0x81)][((_0x3c7363=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x3c7363===void 0x0?void 0x0:_0x3c7363[_0x48ccc4(0xaf)])||'body']||{},this[_0x48ccc4(0x81)][_0x48ccc4(0x74)]||{});return _0x254cba?lodash['get'](_0x2b31ae,_0x254cba,_0x18a079):_0x2b31ae;}},'when':{'value':async function(_0x4618cf,_0x22c170){const _0x199b9c=this['input'](_0x4618cf,null);if(!lodash['isNull'](_0x199b9c))return await _0x22c170(_0x199b9c);}},'only':{'value':function(_0x3041e7){const _0x55b47a=_0x2bae5b,_0x145390={};for(let _0x29b045=0x0;_0x29b045<_0x3041e7[_0x55b47a(0x9e)];_0x29b045++){lodash[_0x55b47a(0xb0)](_0x3041e7[_0x29b045])&&_0x3041e7[_0x29b045][_0x55b47a(0x9e)]>0x0&&lodash[_0x55b47a(0x7f)](_0x3041e7[_0x29b045][0x0])&&(_0x145390[_0x3041e7[_0x29b045][0x0]]=this[_0x55b47a(0x78)](_0x3041e7[_0x29b045][0x0],_0x3041e7[_0x29b045][_0x55b47a(0x9e)]>0x1?_0x3041e7[_0x29b045][0x1]:null));}return _0x145390;}}});});}async[a2_0xbf6159(0xb6)](){const _0x70c49d=a2_0xbf6159;var _0x564c50,_0x19321e,_0x353b43,_0x420504,_0x2ad5d2,_0x328c34;const _0x2d42c3=this[_0x70c49d(0x80)][_0x70c49d(0x83)]();((_0x19321e=(_0x564c50=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x76)])===null||_0x564c50===void 0x0?void 0x0:_0x564c50[_0x70c49d(0xa4)])===null||_0x19321e===void 0x0?void 0x0:_0x19321e['DEFAULT'])&&Object[_0x70c49d(0xba)](_0x2d42c3[_0x70c49d(0x76)][_0x70c49d(0xa4)])[_0x70c49d(0x9e)]>0x1&&delete _0x2d42c3[_0x70c49d(0x76)][_0x70c49d(0xa4)]['DEFAULT'];if((_0x353b43=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x92)])===null||_0x353b43===void 0x0?void 0x0:_0x353b43[_0x70c49d(0xa2)])for(const _0x46050e in _0x2d42c3[_0x70c49d(0x92)]['dirs']){((_0x420504=_0x2d42c3[_0x70c49d(0x92)]['dirs'][_0x46050e])===null||_0x420504===void 0x0?void 0x0:_0x420504['dir'])&&typeof((_0x2ad5d2=_0x2d42c3['staticFile'][_0x70c49d(0xa2)][_0x46050e])===null||_0x2ad5d2===void 0x0?void 0x0:_0x2ad5d2[_0x70c49d(0xc1)])==_0x70c49d(0xb4)&&!fs['existsSync'](_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e]['dir'])&&(fs['mkdirSync'](_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e][_0x70c49d(0xc1)],{'recursive':!![]}),console[_0x70c49d(0xac)](_0x70c49d(0xc0)+_0x2d42c3[_0x70c49d(0x92)][_0x70c49d(0xa2)][_0x46050e][_0x70c49d(0xc1)]));}((_0x328c34=_0x2d42c3===null||_0x2d42c3===void 0x0?void 0x0:_0x2d42c3[_0x70c49d(0x7d)])===null||_0x328c34===void 0x0?void 0x0:_0x328c34[_0x70c49d(0x87)])&&!fs[_0x70c49d(0xa8)](_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)])&&(fs[_0x70c49d(0xc8)](_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)],{'recursive':!![]}),console[_0x70c49d(0xac)](_0x70c49d(0x8f)+_0x2d42c3[_0x70c49d(0x7d)][_0x70c49d(0x87)])),this[_0x70c49d(0x80)][_0x70c49d(0x8c)](_0x2d42c3);}};__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1[a2_0xbf6159(0x88)])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0x80),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0xbf6159(0xc7),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata('design:type',core_1[a2_0xbf6159(0x8e)])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0x7e),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0xbf6159(0xbf)],a2_0xbf6159(0xc4),void 0x0),__decorate([(0x0,decorator_1[a2_0xbf6159(0xb2)])(),__metadata(a2_0xbf6159(0xae),ApiService_1['ApiService'])],CustomConfiguration['prototype'],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0xbf6159(0xbc)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0xbf6159(0x73),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xbf6159(0xc5)]=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x528e(_0x5b6c49,_0x488f26){const _0x3d8156=a2_0x3d81();return a2_0x528e=function(_0x528ec5,_0x5aaddd){_0x528ec5=_0x528ec5-0x1cb;let _0x40eb0c=_0x3d8156[_0x528ec5];return _0x40eb0c;},a2_0x528e(_0x5b6c49,_0x488f26);}const a2_0x2f11ec=a2_0x528e;(function(_0x13b791,_0x148011){const _0x275ea0=a2_0x528e,_0x3c6754=_0x13b791();while(!![]){try{const _0x36d3ab=parseInt(_0x275ea0(0x1dc))/0x1+-parseInt(_0x275ea0(0x1d4))/0x2+-parseInt(_0x275ea0(0x214))/0x3*(parseInt(_0x275ea0(0x211))/0x4)+parseInt(_0x275ea0(0x1e2))/0x5+parseInt(_0x275ea0(0x1d1))/0x6+-parseInt(_0x275ea0(0x21a))/0x7*(-parseInt(_0x275ea0(0x201))/0x8)+-parseInt(_0x275ea0(0x216))/0x9;if(_0x36d3ab===_0x148011)break;else _0x3c6754['push'](_0x3c6754['shift']());}catch(_0x3557f7){_0x3c6754['push'](_0x3c6754['shift']());}}}(a2_0x3d81,0x5c2bb));var __decorate=this&&this[a2_0x2f11ec(0x1cc)]||function(_0x12ce0e,_0x54e22a,_0x39f702,_0x24f624){const _0x9c50a5=a2_0x2f11ec;var _0x3e5afa=arguments[_0x9c50a5(0x20c)],_0x2c1f09=_0x3e5afa<0x3?_0x54e22a:_0x24f624===null?_0x24f624=Object[_0x9c50a5(0x210)](_0x54e22a,_0x39f702):_0x24f624,_0x38fe62;if(typeof Reflect===_0x9c50a5(0x21f)&&typeof Reflect[_0x9c50a5(0x1cb)]===_0x9c50a5(0x20f))_0x2c1f09=Reflect[_0x9c50a5(0x1cb)](_0x12ce0e,_0x54e22a,_0x39f702,_0x24f624);else{for(var _0x6b8828=_0x12ce0e['length']-0x1;_0x6b8828>=0x0;_0x6b8828--)if(_0x38fe62=_0x12ce0e[_0x6b8828])_0x2c1f09=(_0x3e5afa<0x3?_0x38fe62(_0x2c1f09):_0x3e5afa>0x3?_0x38fe62(_0x54e22a,_0x39f702,_0x2c1f09):_0x38fe62(_0x54e22a,_0x39f702))||_0x2c1f09;}return _0x3e5afa>0x3&&_0x2c1f09&&Object['defineProperty'](_0x54e22a,_0x39f702,_0x2c1f09),_0x2c1f09;},__metadata=this&&this[a2_0x2f11ec(0x209)]||function(_0x15aacf,_0x1d5363){const _0x32c200=a2_0x2f11ec;if(typeof Reflect===_0x32c200(0x21f)&&typeof Reflect['metadata']===_0x32c200(0x20f))return Reflect[_0x32c200(0x202)](_0x15aacf,_0x1d5363);};Object[a2_0x2f11ec(0x1d3)](exports,a2_0x2f11ec(0x228),{'value':!![]}),exports[a2_0x2f11ec(0x1fb)]=void 0x0;function a2_0x3d81(){const _0x557275=['prototype','./exception/ApiError','object','anncicapi','upload','staticFile','MidwayConfigService','@midwayjs/task','@midwayjs/core','@midwayjs/static-file','isString','__esModule','checkConfigKeys','decorate','__decorate','input','forEach','devices','design:type','3764742DEqmvM','HEADERS_SIGNATURE','defineProperty','588526wCBFOv','context','environment','@midwayjs/i18n','ApiError','beforeRoute','dir','@anncic-api/event','272763agVOMK','query','addObject','ACTION_ROUTE_KEY','headers','apimit','468065xvMKCq','bodyParser','bodyXml','checksign','@midwayjs/cross-domain','dirs','mkdirSync','key','getApplications','application','isArray','@midwayjs/decorator','body','./service/ApiService','./config/config.default','onReady','@anncic-api/typeorm','keys','registerMethodHandler','existsSync','string','Inject','anncic-api','@anncic-api/validator','handlerActionRoute','CustomConfiguration','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/koa','@midwayjs/upload','config','request','159912xLCOLM','metadata','useMiddleware','koa-xml-body','filterConfig','target','ApiService','get','__metadata','log','DEFAULT','length','Anncic-api\x20static-file\x20:\x20mkdir\x20','anncic-apihelper','function','getOwnPropertyDescriptor','395656rthLxI','hanlderApplications','REQUEST_OBJ_CTX_KEY','3QpBelT','decorator','3987036bGixgB','@anncic-api/core','device','tmpdir','77oCaonB','Configuration','getConfiguration'];a2_0x3d81=function(){return _0x557275;};return a2_0x3d81();}const decorator_1=require(a2_0x2f11ec(0x1ed)),core_1=require(a2_0x2f11ec(0x225)),ApiError_1=require(a2_0x2f11ec(0x21e)),ApiService_1=require(a2_0x2f11ec(0x1ef)),action_1=require('./types/action'),fs=require('fs'),koa=require(a2_0x2f11ec(0x1fd)),i18n=require(a2_0x2f11ec(0x1d7)),task=require(a2_0x2f11ec(0x224)),upload=require(a2_0x2f11ec(0x1fe)),staticFile=require(a2_0x2f11ec(0x226)),crossDomain=require(a2_0x2f11ec(0x1e6)),bodyXml=require(a2_0x2f11ec(0x204)),bodyParser=require('koa-bodyparser'),ConfigDefault=require(a2_0x2f11ec(0x1f0)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x2f11ec(0x217)),anncicEvent=require(a2_0x2f11ec(0x1db)),anncicTypeorm=require(a2_0x2f11ec(0x1f2)),anncicValidator=require(a2_0x2f11ec(0x1f9)),anncicHelper=require(a2_0x2f11ec(0x20e));let CustomConfiguration=class CustomConfiguration{async[a2_0x2f11ec(0x1f1)](){const _0xffeced=a2_0x2f11ec;await this['filterConfig'](),await this[_0xffeced(0x229)](),await this[_0xffeced(0x1fa)](),await this[_0xffeced(0x212)]();}async['checkConfigKeys'](){}async[a2_0x2f11ec(0x1fa)](){const _0x2cde71=a2_0x2f11ec,_0x63361c=this['config'][_0x2cde71(0x21c)]();this[_0x2cde71(0x215)][_0x2cde71(0x1f4)](action_1[_0x2cde71(0x1df)],_0x2570fd=>{const _0x23c5bb=_0x2cde71,_0x46b30b=_0x2570fd[_0x23c5bb(0x202)];return{'before':async _0x43cd7c=>{const _0x44d4a5=_0x23c5bb;var _0x950410,_0xe26e16,_0x3df5c0,_0x526ab3,_0xef94ad;const _0x22f926=(_0x950410=_0x43cd7c===null||_0x43cd7c===void 0x0?void 0x0:_0x43cd7c[_0x44d4a5(0x206)])===null||_0x950410===void 0x0?void 0x0:_0x950410[core_1[_0x44d4a5(0x213)]];if(_0x22f926){if((_0x46b30b===null||_0x46b30b===void 0x0?void 0x0:_0x46b30b[_0x44d4a5(0x1e1)])&&!this['ApiService'][_0x44d4a5(0x1e5)]((_0xe26e16=_0x22f926===null||_0x22f926===void 0x0?void 0x0:_0x22f926['request'])===null||_0xe26e16===void 0x0?void 0x0:_0xe26e16[_0x44d4a5(0x1e0)]))throw new AnnError(ApiError_1[_0x44d4a5(0x1d8)][_0x44d4a5(0x1d2)]);((_0x3df5c0=_0x22f926[_0x44d4a5(0x1e0)])===null||_0x3df5c0===void 0x0?void 0x0:_0x3df5c0[_0x44d4a5(0x218)])&&((_0xef94ad=(_0x526ab3=_0x63361c===null||_0x63361c===void 0x0?void 0x0:_0x63361c[_0x44d4a5(0x220)])===null||_0x526ab3===void 0x0?void 0x0:_0x526ab3[_0x44d4a5(0x1cf)])===null||_0xef94ad===void 0x0?void 0x0:_0xef94ad[_0x22f926[_0x44d4a5(0x1e0)][_0x44d4a5(0x218)]])&&(typeof _0x63361c[_0x44d4a5(0x220)][_0x44d4a5(0x1cf)][_0x22f926[_0x44d4a5(0x1e0)]['device']][_0x44d4a5(0x1d9)]==_0x44d4a5(0x20f)&&await _0x63361c['anncicapi'][_0x44d4a5(0x1cf)][_0x22f926[_0x44d4a5(0x1e0)][_0x44d4a5(0x218)]][_0x44d4a5(0x1d9)]((_0x22f926===null||_0x22f926===void 0x0?void 0x0:_0x22f926['_matchedRoute'])||undefined,_0x46b30b,_0x22f926));}},'afterThrow':(_0x5d3f8a,_0xa4fde9)=>{throw _0xa4fde9;}};});}async[a2_0x2f11ec(0x212)](){const _0x18a56e=a2_0x2f11ec;this['application'][_0x18a56e(0x1ea)](['koa'])[_0x18a56e(0x1ce)](_0x118f35=>{const _0x457d3a=_0x18a56e;_0x118f35[_0x457d3a(0x203)](bodyXml(this['config'][_0x457d3a(0x21c)](_0x457d3a(0x1e4)))),_0x118f35[_0x457d3a(0x203)](bodyParser(this[_0x457d3a(0x1ff)][_0x457d3a(0x21c)](_0x457d3a(0x1e3)))),(_0x118f35===null||_0x118f35===void 0x0?void 0x0:_0x118f35['context'])&&Object['defineProperties'](_0x118f35[_0x457d3a(0x1d5)],{'ok':{'value':function(_0x57eea4,_0x562a77,_0x5bbde9=0x0){return{'code':_0x5bbde9,'data':_0x57eea4,'extra':_0x562a77};}},'err':{'value':function(_0x54730e,_0x58c7e6,_0x592e50=0x1){return{'code':_0x592e50,'extra':_0x58c7e6,'msg':_0x54730e};}},'input':{'value':function(_0x34f478,_0x535648){const _0xcbd1d0=_0x457d3a;var _0x432fd6;const _0x579d3b=lodash['defaultsDeep']({},this['request'][_0xcbd1d0(0x1ee)]||this[_0xcbd1d0(0x200)][((_0x432fd6=config===null||config===void 0x0?void 0x0:config[_0xcbd1d0(0x1e4)])===null||_0x432fd6===void 0x0?void 0x0:_0x432fd6[_0xcbd1d0(0x1e9)])||_0xcbd1d0(0x1ee)]||{},this[_0xcbd1d0(0x200)][_0xcbd1d0(0x1dd)]||{});return _0x34f478?lodash[_0xcbd1d0(0x208)](_0x579d3b,_0x34f478,_0x535648):_0x579d3b;}},'when':{'value':async function(_0x579237,_0x5161a0){const _0xea54ba=_0x457d3a,_0x54b774=this[_0xea54ba(0x1cd)](_0x579237,null);if(!lodash['isNull'](_0x54b774))return await _0x5161a0(_0x54b774);}},'only':{'value':function(_0x42cd60){const _0x46140a=_0x457d3a,_0x1cdc74={};for(let _0x9ec2d6=0x0;_0x9ec2d6<_0x42cd60[_0x46140a(0x20c)];_0x9ec2d6++){lodash[_0x46140a(0x1ec)](_0x42cd60[_0x9ec2d6])&&_0x42cd60[_0x9ec2d6]['length']>0x0&&lodash[_0x46140a(0x227)](_0x42cd60[_0x9ec2d6][0x0])&&(_0x1cdc74[_0x42cd60[_0x9ec2d6][0x0]]=this[_0x46140a(0x1cd)](_0x42cd60[_0x9ec2d6][0x0],_0x42cd60[_0x9ec2d6][_0x46140a(0x20c)]>0x1?_0x42cd60[_0x9ec2d6][0x1]:null));}return _0x1cdc74;}}});});}async[a2_0x2f11ec(0x205)](){const _0x460735=a2_0x2f11ec;var _0x1666db,_0x2d725d,_0x35df69,_0x443415,_0x221e2d,_0x27ab24;const _0x4522b7=this[_0x460735(0x1ff)][_0x460735(0x21c)]();((_0x2d725d=(_0x1666db=_0x4522b7===null||_0x4522b7===void 0x0?void 0x0:_0x4522b7['anncicapi'])===null||_0x1666db===void 0x0?void 0x0:_0x1666db[_0x460735(0x1cf)])===null||_0x2d725d===void 0x0?void 0x0:_0x2d725d[_0x460735(0x20b)])&&Object[_0x460735(0x1f3)](_0x4522b7[_0x460735(0x220)]['devices'])[_0x460735(0x20c)]>0x1&&delete _0x4522b7[_0x460735(0x220)][_0x460735(0x1cf)][_0x460735(0x20b)];if((_0x35df69=_0x4522b7===null||_0x4522b7===void 0x0?void 0x0:_0x4522b7[_0x460735(0x222)])===null||_0x35df69===void 0x0?void 0x0:_0x35df69[_0x460735(0x1e7)])for(const _0x1daae7 in _0x4522b7['staticFile'][_0x460735(0x1e7)]){((_0x443415=_0x4522b7[_0x460735(0x222)][_0x460735(0x1e7)][_0x1daae7])===null||_0x443415===void 0x0?void 0x0:_0x443415['dir'])&&typeof((_0x221e2d=_0x4522b7[_0x460735(0x222)][_0x460735(0x1e7)][_0x1daae7])===null||_0x221e2d===void 0x0?void 0x0:_0x221e2d[_0x460735(0x1da)])==_0x460735(0x1f6)&&!fs[_0x460735(0x1f5)](_0x4522b7['staticFile'][_0x460735(0x1e7)][_0x1daae7][_0x460735(0x1da)])&&(fs[_0x460735(0x1e8)](_0x4522b7[_0x460735(0x222)][_0x460735(0x1e7)][_0x1daae7][_0x460735(0x1da)],{'recursive':!![]}),console[_0x460735(0x20a)](_0x460735(0x20d)+_0x4522b7[_0x460735(0x222)][_0x460735(0x1e7)][_0x1daae7][_0x460735(0x1da)]));}((_0x27ab24=_0x4522b7===null||_0x4522b7===void 0x0?void 0x0:_0x4522b7[_0x460735(0x221)])===null||_0x27ab24===void 0x0?void 0x0:_0x27ab24[_0x460735(0x219)])&&!fs[_0x460735(0x1f5)](_0x4522b7['upload']['tmpdir'])&&(fs[_0x460735(0x1e8)](_0x4522b7['upload'][_0x460735(0x219)],{'recursive':!![]}),console[_0x460735(0x20a)](_0x460735(0x1fc)+_0x4522b7[_0x460735(0x221)]['tmpdir'])),this[_0x460735(0x1ff)][_0x460735(0x1de)](_0x4522b7);}};__decorate([(0x0,decorator_1[a2_0x2f11ec(0x1f7)])(),__metadata('design:type',core_1[a2_0x2f11ec(0x223)])],CustomConfiguration[a2_0x2f11ec(0x21d)],'config',void 0x0),__decorate([(0x0,decorator_1[a2_0x2f11ec(0x1f7)])(),__metadata('design:type',core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x2f11ec(0x21d)],'decorator',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x2f11ec(0x1d0),core_1['MidwayApplicationManager'])],CustomConfiguration[a2_0x2f11ec(0x21d)],a2_0x2f11ec(0x1eb),void 0x0),__decorate([(0x0,decorator_1[a2_0x2f11ec(0x1f7)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x2f11ec(0x1d6),void 0x0),__decorate([(0x0,decorator_1[a2_0x2f11ec(0x1f7)])(),__metadata('design:type',ApiService_1[a2_0x2f11ec(0x207)])],CustomConfiguration[a2_0x2f11ec(0x21d)],a2_0x2f11ec(0x207),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x2f11ec(0x21b)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x2f11ec(0x1f8),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2f11ec(0x1fb)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x3f1c7b=a3_0x1df5;(function(_0x41b11b,_0x21f4da){const _0x2ab91c=a3_0x1df5,_0x118940=_0x41b11b();while(!![]){try{const _0x21b5fa=parseInt(_0x2ab91c(0x1ba))/0x1+-parseInt(_0x2ab91c(0x1cd))/0x2+-parseInt(_0x2ab91c(0x1cb))/0x3+parseInt(_0x2ab91c(0x1a8))/0x4+parseInt(_0x2ab91c(0x1ab))/0x5*(-parseInt(_0x2ab91c(0x1c7))/0x6)+parseInt(_0x2ab91c(0x1c3))/0x7*(-parseInt(_0x2ab91c(0x1c0))/0x8)+parseInt(_0x2ab91c(0x1a6))/0x9;if(_0x21b5fa===_0x21f4da)break;else _0x118940['push'](_0x118940['shift']());}catch(_0x52a186){_0x118940['push'](_0x118940['shift']());}}}(a3_0x41ed,0xa91f1));function a3_0x41ed(){const _0x4e3805=['filepath','62318QngHZC','\x20文件请放在app/controller/文件下','length','indexOf','Controller','startsWith','split','filter','ACTION_KEY','5844159SJIXhz','replace','1198864gHzoWT','parseRoute','/apps/','130ZAhLOw','prefix','isArray','saveModule','__esModule','existsSync','push','/controller/','join','Action','module','/config.','app/controller/','tagName','substring','1203306eAJYGT','rootpath','/controller/文件下','-controller','saveClassMetadata','\x20文件请放在apps/','8mtASCs','defineProperty','@midwayjs/decorator','1849645sUPMRF','apps/','splice','middleware','145548mUsaBV','route','endsWith','toLowerCase','1600650LkePZn'];a3_0x41ed=function(){return _0x4e3805;};return a3_0x41ed();}Object[a3_0x3f1c7b(0x1c1)](exports,a3_0x3f1c7b(0x1af),{'value':!![]}),exports[a3_0x3f1c7b(0x1a9)]=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x3f1c7b(0x1c2)),action_1=require('../types/action');function a3_0x1df5(_0x42ab5c,_0x3ab536){const _0x41eda0=a3_0x41ed();return a3_0x1df5=function(_0x1df52b,_0x3bb09b){_0x1df52b=_0x1df52b-0x1a4;let _0x4c500f=_0x41eda0[_0x1df52b];return _0x4c500f;},a3_0x1df5(_0x42ab5c,_0x3ab536);}function Action(_0x29a263,_0x50ae39,_0x1bf398={'middleware':[],'sensitive':!![]}){return _0x313fdc=>{const _0x13f9f9=a3_0x1df5;_0x1bf398[_0x13f9f9(0x1b8)]=_0x50ae39;const _0x51d903=parseRoute(_0x29a263);if(_0x51d903[_0x13f9f9(0x1b5)]){_0x1bf398[_0x13f9f9(0x1ac)]=_0x1bf398[_0x13f9f9(0x1ac)]?'/'+_0x51d903['module']+'/'+_0x1bf398['prefix']:'/'+_0x51d903[_0x13f9f9(0x1c8)];_0x51d903[_0x13f9f9(0x1ac)]&&(_0x1bf398[_0x13f9f9(0x1ac)]='/'+_0x51d903[_0x13f9f9(0x1ac)]+'/'+_0x1bf398[_0x13f9f9(0x1ac)]);if(fs[_0x13f9f9(0x1b0)](_0x51d903[_0x13f9f9(0x1bb)]+_0x13f9f9(0x1aa)+_0x51d903[_0x13f9f9(0x1b5)]+_0x13f9f9(0x1b6)+(lodash[_0x13f9f9(0x1c9)](_0x51d903['filepath'],'ts')?'ts':'js'))){const _0xd518ad=include(_0x51d903['rootpath']+'/apps/'+_0x51d903[_0x13f9f9(0x1b5)]+_0x13f9f9(0x1b6)+(lodash[_0x13f9f9(0x1c9)](_0x51d903[_0x13f9f9(0x1cc)],'ts')?'ts':'js'));if(_0xd518ad[_0x13f9f9(0x1c6)]&&lodash[_0x13f9f9(0x1ad)](_0xd518ad['middleware'])&&_0xd518ad[_0x13f9f9(0x1c6)][_0x13f9f9(0x1cf)]>0x0)for(let _0x2f58b5 in _0xd518ad[_0x13f9f9(0x1c6)]){_0xd518ad['middlewareIgnore'][_0x13f9f9(0x1d0)](_0xd518ad['middleware'][_0x2f58b5])==-0x1&&_0x1bf398['middleware'][_0x13f9f9(0x1b1)](_0xd518ad['middleware'][_0x2f58b5]);}}_0x1bf398[_0x13f9f9(0x1ac)]=_0x1bf398[_0x13f9f9(0x1ac)][_0x13f9f9(0x1ca)]()[_0x13f9f9(0x1a7)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x13f9f9(0x1ae)])(action_1[_0x13f9f9(0x1a5)],_0x313fdc),(0x0,decorator_1[_0x13f9f9(0x1d1)])(_0x1bf398[_0x13f9f9(0x1ac)],_0x1bf398)(_0x313fdc),(0x0,decorator_1[_0x13f9f9(0x1be)])(action_1[_0x13f9f9(0x1a5)],{'prefix':_0x1bf398[_0x13f9f9(0x1ac)],'pprefix':_0x51d903[_0x13f9f9(0x1ac)],'module':_0x51d903[_0x13f9f9(0x1b5)],'filepath':_0x51d903['filepath'],'routerOptions':_0x1bf398},_0x313fdc);}else _0x1bf398[_0x13f9f9(0x1ac)]=_0x1bf398[_0x13f9f9(0x1ac)]?'/'+_0x1bf398[_0x13f9f9(0x1ac)]:'/'+_0x51d903['route'],_0x51d903['prefix']&&(_0x1bf398[_0x13f9f9(0x1ac)]='/'+_0x51d903['prefix']+'/'+_0x1bf398[_0x13f9f9(0x1ac)]),_0x1bf398['prefix']=_0x1bf398['prefix']['toLowerCase']()[_0x13f9f9(0x1a7)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x13f9f9(0x1ae)])(action_1['ACTION_KEY'],_0x313fdc),(0x0,decorator_1[_0x13f9f9(0x1d1)])(_0x1bf398[_0x13f9f9(0x1ac)],_0x1bf398)(_0x313fdc),(0x0,decorator_1[_0x13f9f9(0x1be)])(action_1[_0x13f9f9(0x1a5)],{'prefix':_0x1bf398[_0x13f9f9(0x1ac)],'module':_0x51d903[_0x13f9f9(0x1b5)],'pprefix':_0x51d903[_0x13f9f9(0x1ac)],'filepath':_0x51d903[_0x13f9f9(0x1cc)],'routerOptions':_0x1bf398},_0x313fdc);};}exports[a3_0x3f1c7b(0x1b4)]=Action;function parseRoute(_0x603331){const _0x4dd0b4=a3_0x3f1c7b;_0x603331=_0x603331[_0x4dd0b4(0x1a7)](/(\\|\/)/g,'/');const _0x423fe3=process['cwd']()[_0x4dd0b4(0x1a7)](/(\\|\/)/g,'/'),_0x54f59f=_0x603331['substring'](0x0,_0x423fe3[_0x4dd0b4(0x1cf)]+_0x603331[_0x4dd0b4(0x1b9)](_0x423fe3[_0x4dd0b4(0x1cf)]+0x1)['indexOf']('/')+0x1),_0x274b8d=_0x603331[_0x4dd0b4(0x1b9)](_0x54f59f[_0x4dd0b4(0x1cf)]+0x1)[_0x4dd0b4(0x1a7)](/(\\|\/)/g,'/'),_0x4d8b99={'route':'','prefix':![],'module':![],'rootpath':_0x54f59f,'filepath':_0x274b8d};if(_0x274b8d[_0x4dd0b4(0x1d2)](_0x4dd0b4(0x1b7))){const _0x23580f=_0x274b8d['substring'](_0x4dd0b4(0x1b7)[_0x4dd0b4(0x1cf)])['split']('/')[_0x4dd0b4(0x1a4)](_0x2f61f6=>_0x2f61f6&&_0x2f61f6['trim']());return _0x23580f[_0x4dd0b4(0x1cf)]>0x1&&(_0x4d8b99[_0x4dd0b4(0x1ac)]=_0x23580f[0x0]['toLowerCase'](),_0x23580f[_0x4dd0b4(0x1c5)](0x0,0x1)),_0x4d8b99[_0x4dd0b4(0x1c8)]=('/'+_0x23580f[_0x4dd0b4(0x1b3)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4dd0b4(0x1b3)]('-')[_0x4dd0b4(0x1ca)]()[_0x4dd0b4(0x1a7)](/\/\-/g,'/'),_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1c9)]('-action')&&(_0x4d8b99[_0x4dd0b4(0x1c8)]=_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1b9)](0x0,_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1cf)]-0x7)),_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1c9)](_0x4dd0b4(0x1bd))&&(_0x4d8b99[_0x4dd0b4(0x1c8)]=_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1b9)](0x0,_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1cf)]-0xb)),_0x4d8b99;}else{if(_0x274b8d['startsWith'](_0x4dd0b4(0x1c4))){const _0x1cca3d=_0x274b8d[_0x4dd0b4(0x1b9)](0x0,_0x274b8d['indexOf'](_0x4dd0b4(0x1aa))+0x5),_0x18376a=_0x274b8d[_0x4dd0b4(0x1b9)](_0x1cca3d['length']+0x1)['replace'](/(\\|\/)/g,'/')[_0x4dd0b4(0x1d3)]('/')[0x0];if(_0x274b8d[_0x4dd0b4(0x1d2)](_0x4dd0b4(0x1c4)+_0x18376a+_0x4dd0b4(0x1b2))){const _0x24d344=_0x274b8d['substring']((_0x1cca3d+'/'+_0x18376a+_0x4dd0b4(0x1b2))['length'])['split']('/')[_0x4dd0b4(0x1a4)](_0x510473=>_0x510473&&_0x510473['trim']());return _0x24d344['length']>0x1&&(_0x4d8b99[_0x4dd0b4(0x1ac)]=_0x24d344[0x0][_0x4dd0b4(0x1ca)](),_0x24d344[_0x4dd0b4(0x1c5)](0x0,0x1)),_0x4d8b99[_0x4dd0b4(0x1b5)]=_0x18376a,_0x4d8b99[_0x4dd0b4(0x1c8)]=('/'+_0x18376a+'/'+_0x24d344[_0x4dd0b4(0x1b3)]('/'))[_0x4dd0b4(0x1a7)](/(\.ts|\.js)$/,'')[_0x4dd0b4(0x1a7)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4dd0b4(0x1b3)]('-')[_0x4dd0b4(0x1ca)]()['replace'](/\/\-/g,'/'),_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1c9)]('-action')&&(_0x4d8b99[_0x4dd0b4(0x1c8)]=_0x4d8b99[_0x4dd0b4(0x1c8)]['substring'](0x0,_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1cf)]-0x7)),_0x4d8b99[_0x4dd0b4(0x1c8)][_0x4dd0b4(0x1c9)](_0x4dd0b4(0x1bd))&&(_0x4d8b99[_0x4dd0b4(0x1c8)]=_0x4d8b99[_0x4dd0b4(0x1c8)]['substring'](0x0,_0x4d8b99['route'][_0x4dd0b4(0x1cf)]-0xb)),_0x4d8b99;}throw new Error(_0x274b8d+_0x4dd0b4(0x1bf)+_0x18376a+_0x4dd0b4(0x1bc));}}throw new Error(_0x274b8d+_0x4dd0b4(0x1ce));}exports[a3_0x3f1c7b(0x1a9)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a4_0x9491b8=a4_0x52fa;(function(_0xd44149,_0x1cd99d){const _0xed5208=a4_0x52fa,_0x48739d=_0xd44149();while(!![]){try{const _0x492ace=parseInt(_0xed5208(0x16d))/0x1+-parseInt(_0xed5208(0x163))/0x2*(-parseInt(_0xed5208(0x168))/0x3)+parseInt(_0xed5208(0x170))/0x4*(-parseInt(_0xed5208(0x167))/0x5)+-parseInt(_0xed5208(0x155))/0x6+parseInt(_0xed5208(0x172))/0x7*(-parseInt(_0xed5208(0x15a))/0x8)+parseInt(_0xed5208(0x154))/0x9*(-parseInt(_0xed5208(0x171))/0xa)+parseInt(_0xed5208(0x16a))/0xb;if(_0x492ace===_0x1cd99d)break;else _0x48739d['push'](_0x48739d['shift']());}catch(_0x549597){_0x48739d['push'](_0x48739d['shift']());}}}(a4_0x8f25,0x55f26));function a4_0x8f25(){const _0x3c998c=['utc','apimit','del','middleware','2OtlSjE','ACTION_ROUTE_KEY','@midwayjs/decorator','indexOf','5OTJqIt','1278777uoKSWc','Api','10723526YAhTzb','toLowerCase','defineProperty','108996tnMgzF','get','__esModule','1728420iPNDMT','490CkGTHI','219779TwufWa','length','delete','attachClassMetadata','routerName','30033jlPjRz','1867734IoSOnm','filter','middlewareIgnore','description','Validator','64eNlouR','../types/action','validate','validationOptions','RequestMapping'];a4_0x8f25=function(){return _0x3c998c;};return a4_0x8f25();}function a4_0x52fa(_0x2b3b99,_0x198724){const _0x8f255d=a4_0x8f25();return a4_0x52fa=function(_0x52fac7,_0x218951){_0x52fac7=_0x52fac7-0x151;let _0x5f1c50=_0x8f255d[_0x52fac7];return _0x5f1c50;},a4_0x52fa(_0x2b3b99,_0x198724);}Object[a4_0x9491b8(0x16c)](exports,a4_0x9491b8(0x16f),{'value':!![]}),exports[a4_0x9491b8(0x169)]=void 0x0;const validator_1=require('@anncic-api/validator'),decorator_1=require(a4_0x9491b8(0x165)),action_1=require(a4_0x9491b8(0x15b));function Api(_0x5cd84c,_0x221fb3=a4_0x9491b8(0x16e),_0x16f579='/',_0x39813f={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5552b1,_0x4961ec,_0x46a22e)=>{const _0x8cea66=a4_0x52fa;var _0x5b7bb7,_0x5939ce,_0x21b524;!_0x39813f[_0x8cea66(0x162)]&&(_0x39813f[_0x8cea66(0x162)]=[]);!((_0x5b7bb7=_0x39813f===null||_0x39813f===void 0x0?void 0x0:_0x39813f[_0x8cea66(0x15c)])===null||_0x5b7bb7===void 0x0?void 0x0:_0x5b7bb7[_0x8cea66(0x15d)])&&(_0x39813f[_0x8cea66(0x15c)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x8cea66(0x15f)}});if(((_0x5939ce=_0x39813f===null||_0x39813f===void 0x0?void 0x0:_0x39813f['middleware'])===null||_0x5939ce===void 0x0?void 0x0:_0x5939ce[_0x8cea66(0x173)])>0x0&&((_0x21b524=_0x39813f===null||_0x39813f===void 0x0?void 0x0:_0x39813f[_0x8cea66(0x157)])===null||_0x21b524===void 0x0?void 0x0:_0x21b524[_0x8cea66(0x173)])>0x0)for(let _0x242b68 in _0x39813f[_0x8cea66(0x162)]){_0x39813f[_0x8cea66(0x157)][_0x8cea66(0x166)](_0x39813f[_0x8cea66(0x162)][_0x242b68])!==-0x1&&(_0x39813f[_0x8cea66(0x162)][_0x242b68]=null);}_0x39813f['routerName']=_0x5cd84c,(0x0,validator_1[_0x8cea66(0x159)])(_0x39813f[_0x8cea66(0x15c)])(_0x5552b1,_0x4961ec,_0x46a22e),(0x0,decorator_1[_0x8cea66(0x15e)])(Object['assign'](_0x39813f,{'path':_0x16f579,'requestMethod':(_0x221fb3==_0x8cea66(0x161)?_0x8cea66(0x151):_0x221fb3)[_0x8cea66(0x16b)]()}))(_0x5552b1,_0x4961ec,_0x46a22e),(0x0,decorator_1[_0x8cea66(0x152)])(action_1[_0x8cea66(0x164)],{'path':_0x16f579,'method':_0x4961ec,'apimit':_0x39813f[_0x8cea66(0x160)],'routerName':_0x39813f[_0x8cea66(0x153)],'description':_0x39813f[_0x8cea66(0x158)],'middleware':(_0x39813f['middleware']||[])[_0x8cea66(0x156)](_0xd2841c=>!!_0xd2841c),'requestMethod':(_0x221fb3=='del'?_0x8cea66(0x151):_0x221fb3)['toLowerCase']()},_0x5552b1),(0x0,decorator_1['createCustomMethodDecorator'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x16f579,'method':_0x4961ec,'apimit':_0x39813f[_0x8cea66(0x160)],'routerName':_0x39813f['routerName'],'description':_0x39813f['description'],'middleware':(_0x39813f[_0x8cea66(0x162)]||[])[_0x8cea66(0x156)](_0x54f469=>!!_0x54f469),'requestMethod':(_0x221fb3==_0x8cea66(0x161)?_0x8cea66(0x151):_0x221fb3)[_0x8cea66(0x16b)]()})(_0x5552b1,_0x4961ec,_0x46a22e);};}exports[a4_0x9491b8(0x169)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x37f548=a5_0x257c;(function(_0x452be9,_0x4e39b4){const _0x360e25=a5_0x257c,_0x35e8a8=_0x452be9();while(!![]){try{const _0x4d1f0f=parseInt(_0x360e25(0x13a))/0x1+parseInt(_0x360e25(0x131))/0x2+parseInt(_0x360e25(0x141))/0x3+-parseInt(_0x360e25(0x13d))/0x4*(-parseInt(_0x360e25(0x136))/0x5)+parseInt(_0x360e25(0x139))/0x6*(-parseInt(_0x360e25(0x142))/0x7)+-parseInt(_0x360e25(0x134))/0x8*(parseInt(_0x360e25(0x12c))/0x9)+-parseInt(_0x360e25(0x140))/0xa;if(_0x4d1f0f===_0x4e39b4)break;else _0x35e8a8['push'](_0x35e8a8['shift']());}catch(_0x59c9cb){_0x35e8a8['push'](_0x35e8a8['shift']());}}}(a5_0x4c28,0x48b4e));function a5_0x257c(_0x4dd79b,_0x10ca39){const _0x4c28fa=a5_0x4c28();return a5_0x257c=function(_0x257ccc,_0x31037d){_0x257ccc=_0x257ccc-0x12c;let _0x4460ef=_0x4c28fa[_0x257ccc];return _0x4460ef;},a5_0x257c(_0x4dd79b,_0x10ca39);}Object[a5_0x37f548(0x135)](exports,'__esModule',{'value':!![]}),exports['Apitest']=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x37f548(0x137)),ApitestService_1=require('../service/ApitestService');function a5_0x4c28(){const _0x1c3a96=['getConfig','REQUEST_OBJ_CTX_KEY','1051192HxzCOZ','Apitest','/apitest','8AIIzNo','defineProperty','146975agHYJx','@midwayjs/core','getAsync','36zzSSoI','223985IPbCjO','RequestMapping','filepath','60CxabFl','getApplicationContext','isDevelopmentEnvironment','8336170FlCVRi','1693116KBOnkU','436611FROotH','ApitestService','2242953vzrket','value','MidwayEnvironmentService'];a5_0x4c28=function(){return _0x1c3a96;};return a5_0x4c28();}function Apitest(_0xaaf318=a5_0x37f548(0x133),_0x885aaa){return(_0x42a78d,_0x566d3c,_0x12f232)=>{const _0xd6cd9a=a5_0x257c;return(0x0,decorator_1[_0xd6cd9a(0x13b)])({'path':_0xaaf318,'requestMethod':'get'})(_0x42a78d,_0x566d3c,_0x12f232),_0x12f232[_0xd6cd9a(0x12d)]=async function(..._0x3a21d9){const _0x3de2ee=_0xd6cd9a;var _0x1405f2;const _0x1b5fdb=(_0x1405f2=this[core_1[_0x3de2ee(0x130)]])===null||_0x1405f2===void 0x0?void 0x0:_0x1405f2['app'];if(_0x1b5fdb&&_0x1b5fdb[_0x3de2ee(0x12f)]('apitest')){const _0x24aa32=await _0x1b5fdb[_0x3de2ee(0x13e)]()['getAsync'](ApitestService_1[_0x3de2ee(0x143)]),_0x2802fe=await _0x1b5fdb[_0x3de2ee(0x13e)]()[_0x3de2ee(0x138)](core_1[_0x3de2ee(0x12e)]);return _0x2802fe[_0x3de2ee(0x13f)]()&&(_0x885aaa[_0x3de2ee(0x13c)]=!![]),await _0x24aa32['apidoc'](_0x885aaa);}return'';},_0x12f232;};}exports[a5_0x37f548(0x132)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x167b(){var _0x20ea89=['signature验证失败','function','912138PDbkPO','8241910xWVSVE','8065312TiTGlC','checkcode验证失败','length','30370fewNfy','object','defineProperty','11braGNS','请使用正确的设备','HEADERS_CHECKCODE','5448204vyFaSe','1757coJPit','decorate','14970IYMoaq','HEADERS_SIGNATURE','请求头信息不完整','948ePmNGt','HEADERS_LACK','415130FjjviO','metadata','网络繁忙,请稍后重试','getOwnPropertyDescriptor','6YhrNsN','__decorate','design:type','__esModule','HEADERS_DEVICE'];a6_0x167b=function(){return _0x20ea89;};return a6_0x167b();}var a6_0x4aecfc=a6_0x25e9;function a6_0x25e9(_0x35b77f,_0x67a4cd){var _0x167bc2=a6_0x167b();return a6_0x25e9=function(_0x25e96b,_0x10b08e){_0x25e96b=_0x25e96b-0x157;var _0x3e2a66=_0x167bc2[_0x25e96b];return _0x3e2a66;},a6_0x25e9(_0x35b77f,_0x67a4cd);}(function(_0x90e39a,_0x347985){var _0x3b1719=a6_0x25e9,_0x196092=_0x90e39a();while(!![]){try{var _0x35a322=parseInt(_0x3b1719(0x169))/0x1+parseInt(_0x3b1719(0x174))/0x2*(-parseInt(_0x3b1719(0x16d))/0x3)+parseInt(_0x3b1719(0x167))/0x4*(parseInt(_0x3b1719(0x15b))/0x5)+-parseInt(_0x3b1719(0x164))/0x6*(-parseInt(_0x3b1719(0x162))/0x7)+-parseInt(_0x3b1719(0x158))/0x8+-parseInt(_0x3b1719(0x161))/0x9+parseInt(_0x3b1719(0x157))/0xa*(parseInt(_0x3b1719(0x15e))/0xb);if(_0x35a322===_0x347985)break;else _0x196092['push'](_0x196092['shift']());}catch(_0x1a4e49){_0x196092['push'](_0x196092['shift']());}}}(a6_0x167b,0xbe4b6));var __decorate=this&&this[a6_0x4aecfc(0x16e)]||function(_0x137256,_0x4a9625,_0x374611,_0x7c71b0){var _0x29ec9c=a6_0x4aecfc,_0x439e21=arguments[_0x29ec9c(0x15a)],_0x13878d=_0x439e21<0x3?_0x4a9625:_0x7c71b0===null?_0x7c71b0=Object[_0x29ec9c(0x16c)](_0x4a9625,_0x374611):_0x7c71b0,_0x47bdc5;if(typeof Reflect===_0x29ec9c(0x15c)&&typeof Reflect[_0x29ec9c(0x163)]===_0x29ec9c(0x173))_0x13878d=Reflect[_0x29ec9c(0x163)](_0x137256,_0x4a9625,_0x374611,_0x7c71b0);else{for(var _0x3073ca=_0x137256[_0x29ec9c(0x15a)]-0x1;_0x3073ca>=0x0;_0x3073ca--)if(_0x47bdc5=_0x137256[_0x3073ca])_0x13878d=(_0x439e21<0x3?_0x47bdc5(_0x13878d):_0x439e21>0x3?_0x47bdc5(_0x4a9625,_0x374611,_0x13878d):_0x47bdc5(_0x4a9625,_0x374611))||_0x13878d;}return _0x439e21>0x3&&_0x13878d&&Object[_0x29ec9c(0x15d)](_0x4a9625,_0x374611,_0x13878d),_0x13878d;},__metadata=this&&this['__metadata']||function(_0x3b7446,_0x47eecb){var _0x5e8513=a6_0x4aecfc;if(typeof Reflect===_0x5e8513(0x15c)&&typeof Reflect['metadata']==='function')return Reflect[_0x5e8513(0x16a)](_0x3b7446,_0x47eecb);};Object[a6_0x4aecfc(0x15d)](exports,a6_0x4aecfc(0x170),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError['TIMEOUT']=0x18a89,ApiError[a6_0x4aecfc(0x168)]=0x18a8a,ApiError[a6_0x4aecfc(0x171)]=0x18a8b,ApiError[a6_0x4aecfc(0x160)]=0x18a8c,ApiError[a6_0x4aecfc(0x165)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x4aecfc(0x16b)),__metadata(a6_0x4aecfc(0x16f),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x4aecfc(0x166)),__metadata(a6_0x4aecfc(0x16f),Object)],ApiError,a6_0x4aecfc(0x168),void 0x0),__decorate([AnnErrorMsg(a6_0x4aecfc(0x15f)),__metadata(a6_0x4aecfc(0x16f),Object)],ApiError,a6_0x4aecfc(0x171),void 0x0),__decorate([AnnErrorMsg(a6_0x4aecfc(0x159)),__metadata(a6_0x4aecfc(0x16f),Object)],ApiError,a6_0x4aecfc(0x160),void 0x0),__decorate([AnnErrorMsg(a6_0x4aecfc(0x172)),__metadata(a6_0x4aecfc(0x16f),Object)],ApiError,a6_0x4aecfc(0x165),void 0x0),exports['ApiError']=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x7c4ac6=a7_0x3b56;function a7_0x3b56(_0x2ab0b0,_0x19e920){const _0x56261e=a7_0x5626();return a7_0x3b56=function(_0x3b56ff,_0x132ee2){_0x3b56ff=_0x3b56ff-0x8b;let _0xfabad3=_0x56261e[_0x3b56ff];return _0xfabad3;},a7_0x3b56(_0x2ab0b0,_0x19e920);}(function(_0x5d7bc6,_0xf04c77){const _0x2d5e32=a7_0x3b56,_0x4958dd=_0x5d7bc6();while(!![]){try{const _0x1b9d7c=-parseInt(_0x2d5e32(0xb2))/0x1+-parseInt(_0x2d5e32(0xe4))/0x2*(parseInt(_0x2d5e32(0x99))/0x3)+parseInt(_0x2d5e32(0xaf))/0x4+parseInt(_0x2d5e32(0xc4))/0x5*(parseInt(_0x2d5e32(0xcd))/0x6)+-parseInt(_0x2d5e32(0x9c))/0x7*(-parseInt(_0x2d5e32(0xc7))/0x8)+-parseInt(_0x2d5e32(0xe5))/0x9*(parseInt(_0x2d5e32(0x9f))/0xa)+-parseInt(_0x2d5e32(0xed))/0xb*(-parseInt(_0x2d5e32(0x93))/0xc);if(_0x1b9d7c===_0xf04c77)break;else _0x4958dd['push'](_0x4958dd['shift']());}catch(_0x12bb11){_0x4958dd['push'](_0x4958dd['shift']());}}}(a7_0x5626,0xb4a72));Object[a7_0x7c4ac6(0xba)](exports,a7_0x7c4ac6(0xa6),{'value':!![]}),exports[a7_0x7c4ac6(0xaa)]=void 0x0;const lodash_1=require(a7_0x7c4ac6(0xe3)),validator_1=require(a7_0x7c4ac6(0xad)),decorator_1=require(a7_0x7c4ac6(0xbb)),decorator_2=require(a7_0x7c4ac6(0xbb)),decorator_3=require(a7_0x7c4ac6(0xbb)),action_1=require('../types/action');function getRoutes(_0x457fd7={'prefix':'/','module':![]}){const _0x158a1a=a7_0x7c4ac6;var _0x4723cf,_0x442810;const _0x4a818c=(0x0,decorator_3[_0x158a1a(0xd5)])(action_1[_0x158a1a(0x9b)]),_0x47b499={},_0x30424c=Array[_0x158a1a(0xb8)](_0x457fd7[_0x158a1a(0xec)]||[])?_0x457fd7[_0x158a1a(0xec)]||[]:[_0x457fd7[_0x158a1a(0xec)]];_0x3a368d:for(const _0x400115 of _0x4a818c){let _0xc4bf5=(0x0,decorator_3[_0x158a1a(0xd8)])(action_1[_0x158a1a(0x9b)],_0x400115),_0x4a6324=(0x0,decorator_3[_0x158a1a(0xd8)])(action_1[_0x158a1a(0xb1)],_0x400115);if(_0xc4bf5&&_0x4a6324){let _0x2eb527=_0xc4bf5[_0x158a1a(0xb9)],_0x237a3f={};if(_0x457fd7[_0x158a1a(0xe1)]&&(0x0,lodash_1['get'])(_0xc4bf5,'module',![])!=_0x457fd7[_0x158a1a(0xe1)])continue _0x3a368d;else{if(_0x457fd7[_0x158a1a(0xe1)]===![]&&!!(0x0,lodash_1[_0x158a1a(0x8d)])(_0xc4bf5,'module',null))continue _0x3a368d;}if(_0x457fd7[_0x158a1a(0xb9)]&&!_0x2eb527[_0x158a1a(0x9a)](_0x457fd7['prefix']))continue _0x3a368d;_0x2eb527!=='/'?(_0x237a3f['summary']=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0xa1)])||(/^\//[_0x158a1a(0x97)](_0x2eb527)?_0x2eb527[_0x158a1a(0x8b)]('/')[0x1]:_0x2eb527),_0x237a3f[_0x158a1a(0x9e)]=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0x9e)])||_0x237a3f[_0x158a1a(0xde)],_0x237a3f[_0x158a1a(0xe2)]=[]):(_0x237a3f[_0x158a1a(0xde)]=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0xa1)])||_0x158a1a(0x96),_0x237a3f['description']=(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0x91)][_0x158a1a(0x9e)])||'',_0x237a3f[_0x158a1a(0xe2)]=[]);_0x457fd7[_0x158a1a(0xb4)]&&(_0x237a3f[_0x158a1a(0xb4)]=_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xb4)]);(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xa3)])&&(_0x237a3f[_0x158a1a(0xb9)]=_0xc4bf5['pprefix']);(_0xc4bf5===null||_0xc4bf5===void 0x0?void 0x0:_0xc4bf5[_0x158a1a(0xe1)])&&(_0x237a3f['module']=_0xc4bf5[_0x158a1a(0xe1)]);let _0x52c80e=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x158a1a(0xdd)],_0x400115)||{};if(typeof _0x4a6324[Symbol[_0x158a1a(0xe0)]]==='function')for(let _0x44cd9a of _0x4a6324){let _0x31b262={};_0x31b262[_0x158a1a(0xb5)]=_0x44cd9a[_0x158a1a(0xca)],_0x31b262['route']=(_0x2eb527+_0x44cd9a[_0x158a1a(0xcf)])[_0x158a1a(0xac)](/\/{1,}/,'/'),_0x31b262[_0x158a1a(0xde)]=(_0x44cd9a===null||_0x44cd9a===void 0x0?void 0x0:_0x44cd9a[_0x158a1a(0xd6)])||_0x237a3f[_0x158a1a(0xde)]||_0x158a1a(0x96),_0x31b262['description']=(_0x44cd9a===null||_0x44cd9a===void 0x0?void 0x0:_0x44cd9a[_0x158a1a(0x9e)])||'',_0x31b262['request']=[];if(!(0x0,lodash_1[_0x158a1a(0x9a)])(_0x31b262['route'],_0x158a1a(0xd0))&&!(0x0,lodash_1[_0x158a1a(0x9a)])(_0x31b262[_0x158a1a(0xd1)],'/static/apitest')&&_0x30424c[_0x158a1a(0xe9)](_0x31b262[_0x158a1a(0xd1)])===-0x1){if(!(_0x457fd7===null||_0x457fd7===void 0x0?void 0x0:_0x457fd7[_0x158a1a(0xe6)])){let _0x2fb313=(0x0,decorator_3['getMethodParamTypes'])(new _0x400115(),_0x44cd9a[_0x158a1a(0xb5)]);for(const _0xebbc18 in _0x2fb313){let _0x81938e=(_0x4723cf=_0x52c80e[_0x44cd9a['method']])===null||_0x4723cf===void 0x0?void 0x0:_0x4723cf[_0x158a1a(0xc8)](_0x147818=>_0x147818[_0x158a1a(0xa5)]==_0xebbc18&&_0x147818[_0x158a1a(0xc0)]===decorator_2[_0x158a1a(0xab)]&&(_0x147818===null||_0x147818===void 0x0?void 0x0:_0x147818['metadata']));if(_0x81938e===null||_0x81938e===void 0x0?void 0x0:_0x81938e['metadata']){let _0x331f8f=convertTypeToString(_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xee)]||0x0);if(['query','body'][_0x158a1a(0xe9)](_0x331f8f)!=-0x1&&_0x81938e[_0x158a1a(0xc9)]['propertyData']['indexOf'](':')==-0x1&&!_0x31b262['request']['find'](_0x1ae5ba=>_0x1ae5ba[_0x158a1a(0xc0)]==_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xcc)]))_0x31b262['request'][_0x158a1a(0x94)]({'key':_0x81938e[_0x158a1a(0xc9)][_0x158a1a(0xcc)],'title':_0x81938e[_0x158a1a(0xc9)]['propertyData'],'type':convertSchemaType(_0x2fb313[_0x81938e[_0x158a1a(0xa5)]][_0x158a1a(0xda)]),'required':![],'default':'','desc':''});else{if(_0x331f8f==_0x158a1a(0xa4)){let _0x185944=((_0x442810=_0x81938e===null||_0x81938e===void 0x0?void 0x0:_0x81938e[_0x158a1a(0xc9)])===null||_0x442810===void 0x0?void 0x0:_0x442810[_0x158a1a(0xcc)])||_0x158a1a(0xa4);_0x185944['indexOf'](':')==-0x1&&!_0x31b262[_0x158a1a(0xbd)]['find'](_0x1f489f=>_0x1f489f['key']==_0x185944&&_0x1f489f[_0x158a1a(0xee)]==_0x158a1a(0xa4))&&_0x31b262[_0x158a1a(0xbd)][_0x158a1a(0x94)]({'key':_0x185944,'title':_0x158a1a(0x90)+_0x185944,'type':_0x158a1a(0xa4),'required':!![],'default':'','desc':''});}}}else{const _0x3f74b0=(0x0,decorator_3[_0x158a1a(0xc1)])(validator_1[_0x158a1a(0xbc)],_0x2fb313[_0xebbc18]);_0x3f74b0&&_0x31b262[_0x158a1a(0xbd)][_0x158a1a(0x94)](...getJoiRequest(_0x3f74b0));}}}_0x237a3f['routes'][_0x158a1a(0x94)](_0x31b262);}}if(_0x237a3f[_0x158a1a(0xe2)][_0x158a1a(0xd7)]>0x0){let _0x48cd09=_0x47b499[_0x2eb527];_0x48cd09?(_0x48cd09[_0x158a1a(0xde)]!=_0x237a3f['summary']&&(_0x48cd09[_0x158a1a(0xde)]=_0x48cd09[_0x158a1a(0xde)]+','+_0x237a3f[_0x158a1a(0xde)]),_0x48cd09[_0x158a1a(0x9e)]!=_0x237a3f[_0x158a1a(0x9e)]&&(_0x48cd09['description']=_0x48cd09[_0x158a1a(0x9e)]+','+_0x237a3f[_0x158a1a(0x9e)]),_0x48cd09[_0x158a1a(0xe2)]=_0x48cd09[_0x158a1a(0xe2)][_0x158a1a(0xd4)](_0x237a3f['routes']),_0x47b499[_0x2eb527]=_0x48cd09):_0x47b499[_0x2eb527]=_0x237a3f;}}}return _0x47b499;}exports['getRoutes']=getRoutes;function a7_0x5626(){const _0x1bf19c=['getClassMetadata','keys','name','boolean','join','INJECT_CUSTOM_PARAM','summary','FILESTREAM','iterator','module','routes','lodash','446vtOuUL','18BHHpGl','noreq','args','BODY','indexOf','describe','limit','filter','11lLTQCg','type','split','rules','get','object','RouteParamTypes','文件上传-','routerOptions','File','10158204sEcGLv','push','title','default','test','flags.label','13971vngjnJ','startsWith','ACTION_KEY','6808151biorZG','min','description','4980990DOesvR','header','tagName','Number','pprefix','file','parameterIndex','__esModule','PARAM','string','items','getRoutes','WEB_ROUTER_PARAM_KEY','replace','@anncic-api/validator','allow','2058124oKwTlk','function','ACTION_ROUTE_KEY','98077zDbAav','FIELDS','filepath','method','required','flags.description','isArray','prefix','defineProperty','@midwayjs/decorator','RULES_KEY','request','Boolean','max','key','getClassExtendedMetadata','HEADERS','QUERY','55ILdQpM','FILESSTREAM','只允许:[','8MeHHuo','find','metadata','requestMethod','flags.default','propertyData','294054NdYPSb','-array','path','static/apitest','route','flags.presence','query','concat','listModule','routerName','length'];a7_0x5626=function(){return _0x1bf19c;};return a7_0x5626();}function getJoiRequest(_0x851b22){const _0x1690e3=a7_0x7c4ac6,_0x5b3766=[];for(let _0x1b9a26 in _0x851b22){const _0x57ecba={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x236bd7=typeof _0x851b22[_0x1b9a26]['describe']==_0x1690e3(0xb0)?_0x851b22[_0x1b9a26][_0x1690e3(0xea)]():_0x851b22[_0x1b9a26];_0x57ecba[_0x1690e3(0xc0)]=_0x1b9a26,_0x57ecba[_0x1690e3(0xee)]=_0x236bd7[_0x1690e3(0xee)],_0x57ecba['title']=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0x98),_0x1b9a26),_0x57ecba[_0x1690e3(0x96)]=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0xcb),''),_0x57ecba['required']=(0x0,lodash_1[_0x1690e3(0x8d)])(_0x236bd7,_0x1690e3(0xd2),'')==_0x1690e3(0xb6),_0x57ecba[_0x1690e3(0x9e)]=(0x0,lodash_1['get'])(_0x236bd7,_0x1690e3(0xb7),'');if(_0x236bd7[_0x1690e3(0xee)]==_0x1690e3(0x8e))_0x57ecba['children']=getJoiRequest(_0x236bd7[_0x1690e3(0xd9)]);else _0x236bd7[_0x1690e3(0xee)]=='array'&&_0x236bd7[_0x1690e3(0xa9)]&&Array[_0x1690e3(0xb8)](_0x236bd7['items'])&&_0x236bd7[_0x1690e3(0xa9)][0x0]&&console['log'](_0x1b9a26+_0x1690e3(0xce),_0x236bd7);_0x236bd7[_0x1690e3(0xae)]&&Array['isArray'](_0x236bd7[_0x1690e3(0xae)])&&_0x236bd7[_0x1690e3(0xae)][_0x1690e3(0xd7)]>0x0&&(_0x57ecba[_0x1690e3(0x9e)]=_0x1690e3(0xc6)+_0x236bd7[_0x1690e3(0xae)][_0x1690e3(0xdc)](',')+'];'+_0x57ecba[_0x1690e3(0x9e)]);if(_0x57ecba[_0x1690e3(0xc0)]&&_0x57ecba['type']){const _0x5d71ab={};for(const _0x14323d of _0x236bd7[_0x1690e3(0x8c)]||[]){if(_0x14323d[_0x1690e3(0xda)]===_0x1690e3(0x9d)&&_0x14323d[_0x1690e3(0xe7)])_0x5d71ab[_0x1690e3(0x9d)]=_0x14323d['args'][_0x1690e3(0xeb)];else _0x14323d['name']==='max'&&(_0x5d71ab[_0x1690e3(0xbf)]=_0x14323d[_0x1690e3(0xe7)][_0x1690e3(0xeb)]);}_0x57ecba[_0x1690e3(0x8c)]=_0x5d71ab;}_0x57ecba[_0x1690e3(0xc0)]&&_0x57ecba[_0x1690e3(0x95)]&&_0x5b3766[_0x1690e3(0x94)](_0x57ecba);}return _0x5b3766;}function convertSchemaType(_0xdd3969){const _0x22dfde=a7_0x7c4ac6;switch(_0xdd3969){case'Object':return'object';case _0x22dfde(0xbe):return _0x22dfde(0xdb);case _0x22dfde(0xa2):return'number';case'String':return _0x22dfde(0xa8);case _0x22dfde(0x92):return _0x22dfde(0xa4);default:return _0x22dfde(0xa8);}}function convertTypeToString(_0x2daa87){const _0x5d883f=a7_0x7c4ac6;switch(_0x2daa87){case decorator_1['RouteParamTypes'][_0x5d883f(0xc2)]:return _0x5d883f(0xa0);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xc3)]:return _0x5d883f(0xd3);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xa7)]:return _0x5d883f(0xcf);case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xe8)]:return'body';case decorator_1['RouteParamTypes'][_0x5d883f(0xb3)]:case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xc5)]:case decorator_1[_0x5d883f(0x8f)][_0x5d883f(0xdf)]:return'file';default:return _0x5d883f(0xa0);}}
|
|
1
|
+
'use strict';const a7_0x37fd5f=a7_0x3ed5;(function(_0x4ada8,_0x28cd0b){const _0x5de149=a7_0x3ed5,_0x17d21c=_0x4ada8();while(!![]){try{const _0x4a065a=-parseInt(_0x5de149(0x125))/0x1*(parseInt(_0x5de149(0x13c))/0x2)+-parseInt(_0x5de149(0x12e))/0x3+-parseInt(_0x5de149(0x12d))/0x4*(-parseInt(_0x5de149(0x135))/0x5)+-parseInt(_0x5de149(0x13f))/0x6+-parseInt(_0x5de149(0x15a))/0x7+parseInt(_0x5de149(0x143))/0x8*(parseInt(_0x5de149(0x148))/0x9)+parseInt(_0x5de149(0x113))/0xa;if(_0x4a065a===_0x28cd0b)break;else _0x17d21c['push'](_0x17d21c['shift']());}catch(_0x3a28b3){_0x17d21c['push'](_0x17d21c['shift']());}}}(a7_0x2101,0x7b546));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x37fd5f(0x15c)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a7_0x37fd5f(0x11c)),decorator_1=require(a7_0x37fd5f(0x116)),decorator_2=require('@midwayjs/decorator'),decorator_3=require('@midwayjs/decorator'),action_1=require(a7_0x37fd5f(0x11f));function a7_0x3ed5(_0xabc311,_0x95b64e){const _0x210103=a7_0x2101();return a7_0x3ed5=function(_0x3ed5da,_0x485a04){_0x3ed5da=_0x3ed5da-0x107;let _0x47e8cb=_0x210103[_0x3ed5da];return _0x47e8cb;},a7_0x3ed5(_0xabc311,_0x95b64e);}function a7_0x2101(){const _0x461419=['2205393ayAYfG','-array','keys','query','routes','type','HEADERS','311330wlDRvO','ACTION_KEY','request','summary','flags.presence','routerName','function','2RdHoHr','number','indexOf','5435424DmUyOz','route','string','body','32tKrVJY','Number','getMethodParamTypes','default','path','1192896sYqvat','getClassMetadata','startsWith','children','name','description','routerOptions','title','FIELDS','tagName','ACTION_ROUTE_KEY','header','args','flags.default','method','iterator','push','concat','3409959LmWDWF','只允许:[','getRoutes','array','items','module','isArray','log','file','noreq','join','parameterIndex','PARAM','BODY','required','flags.label','prefix','max','20423520tktrbQ','rules','metadata','@midwayjs/decorator','boolean','filepath','key','filter','allow','@anncic-api/validator','getClassExtendedMetadata','describe','../types/action','length','RouteParamTypes','replace','limit','WEB_ROUTER_PARAM_KEY','1464ghLZDs','listModule','propertyData','get','find','File','split','pprefix','4DgXHgs'];a7_0x2101=function(){return _0x461419;};return a7_0x2101();}function getRoutes(_0xcaad51={'prefix':'/','module':![]}){const _0x41c622=a7_0x37fd5f;var _0x5d4595,_0x29e31f;const _0x4d8cef=(0x0,decorator_3[_0x41c622(0x126)])(action_1[_0x41c622(0x136)]),_0x5953be={},_0xe1ea63=Array[_0x41c622(0x107)](_0xcaad51[_0x41c622(0x11a)]||[])?_0xcaad51[_0x41c622(0x11a)]||[]:[_0xcaad51[_0x41c622(0x11a)]];_0x3f7236:for(const _0x1372c9 of _0x4d8cef){let _0x44fa61=(0x0,decorator_3[_0x41c622(0x149)])(action_1[_0x41c622(0x136)],_0x1372c9),_0x1db30a=(0x0,decorator_3[_0x41c622(0x149)])(action_1[_0x41c622(0x152)],_0x1372c9);if(_0x44fa61&&_0x1db30a){let _0x20a7e9=_0x44fa61[_0x41c622(0x111)],_0x2857ec={};if(_0xcaad51[_0x41c622(0x15f)]&&(0x0,lodash_1[_0x41c622(0x128)])(_0x44fa61,'module',![])!=_0xcaad51[_0x41c622(0x15f)])continue _0x3f7236;else{if(_0xcaad51[_0x41c622(0x15f)]===![]&&!!(0x0,lodash_1[_0x41c622(0x128)])(_0x44fa61,'module',null))continue _0x3f7236;}if(_0xcaad51[_0x41c622(0x111)]&&!_0x20a7e9[_0x41c622(0x14a)](_0xcaad51[_0x41c622(0x111)]))continue _0x3f7236;_0x20a7e9!=='/'?(_0x2857ec[_0x41c622(0x138)]=(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x14e)][_0x41c622(0x151)])||(/^\//['test'](_0x20a7e9)?_0x20a7e9[_0x41c622(0x12b)]('/')[0x1]:_0x20a7e9),_0x2857ec[_0x41c622(0x14d)]=(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x14e)][_0x41c622(0x14d)])||_0x2857ec[_0x41c622(0x138)],_0x2857ec[_0x41c622(0x132)]=[]):(_0x2857ec['summary']=(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x14e)][_0x41c622(0x151)])||_0x41c622(0x146),_0x2857ec['description']=(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x14e)][_0x41c622(0x14d)])||'',_0x2857ec[_0x41c622(0x132)]=[]);_0xcaad51[_0x41c622(0x118)]&&(_0x2857ec[_0x41c622(0x118)]=_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x118)]);(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61['pprefix'])&&(_0x2857ec[_0x41c622(0x111)]=_0x44fa61[_0x41c622(0x12c)]);(_0x44fa61===null||_0x44fa61===void 0x0?void 0x0:_0x44fa61[_0x41c622(0x15f)])&&(_0x2857ec[_0x41c622(0x15f)]=_0x44fa61[_0x41c622(0x15f)]);let _0x57599f=(0x0,decorator_3[_0x41c622(0x149)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x1372c9)||{};if(typeof _0x1db30a[Symbol[_0x41c622(0x157)]]===_0x41c622(0x13b))for(let _0x32958d of _0x1db30a){let _0x119e7e={};_0x119e7e[_0x41c622(0x156)]=_0x32958d['requestMethod'],_0x119e7e[_0x41c622(0x140)]=(_0x20a7e9+_0x32958d['path'])[_0x41c622(0x122)](/\/{1,}/,'/'),_0x119e7e[_0x41c622(0x138)]=(_0x32958d===null||_0x32958d===void 0x0?void 0x0:_0x32958d[_0x41c622(0x13a)])||_0x2857ec[_0x41c622(0x138)]||_0x41c622(0x146),_0x119e7e['description']=(_0x32958d===null||_0x32958d===void 0x0?void 0x0:_0x32958d[_0x41c622(0x14d)])||'',_0x119e7e[_0x41c622(0x137)]=[];if(!(0x0,lodash_1[_0x41c622(0x14a)])(_0x119e7e[_0x41c622(0x140)],'static/apitest')&&!(0x0,lodash_1[_0x41c622(0x14a)])(_0x119e7e[_0x41c622(0x140)],'/static/apitest')&&_0xe1ea63[_0x41c622(0x13e)](_0x119e7e['route'])===-0x1){if(!(_0xcaad51===null||_0xcaad51===void 0x0?void 0x0:_0xcaad51[_0x41c622(0x10a)])){let _0x3cb67d=(0x0,decorator_3[_0x41c622(0x145)])(new _0x1372c9(),_0x32958d[_0x41c622(0x156)]);for(const _0xd57e4d in _0x3cb67d){let _0x46b4a2=(_0x5d4595=_0x57599f[_0x32958d['method']])===null||_0x5d4595===void 0x0?void 0x0:_0x5d4595['find'](_0x2d0212=>_0x2d0212[_0x41c622(0x10c)]==_0xd57e4d&&_0x2d0212[_0x41c622(0x119)]===decorator_2[_0x41c622(0x124)]&&(_0x2d0212===null||_0x2d0212===void 0x0?void 0x0:_0x2d0212[_0x41c622(0x115)]));if(_0x46b4a2===null||_0x46b4a2===void 0x0?void 0x0:_0x46b4a2[_0x41c622(0x115)]){let _0x6bdaed=convertTypeToString(_0x46b4a2[_0x41c622(0x115)][_0x41c622(0x133)]||0x0);if([_0x41c622(0x131),_0x41c622(0x142)]['indexOf'](_0x6bdaed)!=-0x1&&_0x46b4a2['metadata'][_0x41c622(0x127)][_0x41c622(0x13e)](':')==-0x1&&!_0x119e7e[_0x41c622(0x137)][_0x41c622(0x129)](_0x33872c=>_0x33872c[_0x41c622(0x119)]==_0x46b4a2[_0x41c622(0x115)]['propertyData']))_0x119e7e[_0x41c622(0x137)][_0x41c622(0x158)]({'key':_0x46b4a2[_0x41c622(0x115)][_0x41c622(0x127)],'title':_0x46b4a2['metadata'][_0x41c622(0x127)],'type':convertSchemaType(_0x3cb67d[_0x46b4a2[_0x41c622(0x10c)]]['name']),'required':![],'default':'','desc':''});else{if(_0x6bdaed==_0x41c622(0x109)){let _0x32e7c2=((_0x29e31f=_0x46b4a2===null||_0x46b4a2===void 0x0?void 0x0:_0x46b4a2[_0x41c622(0x115)])===null||_0x29e31f===void 0x0?void 0x0:_0x29e31f['propertyData'])||_0x41c622(0x109);_0x32e7c2[_0x41c622(0x13e)](':')==-0x1&&!_0x119e7e[_0x41c622(0x137)][_0x41c622(0x129)](_0x53c8fa=>_0x53c8fa['key']==_0x32e7c2&&_0x53c8fa['type']=='file')&&_0x119e7e[_0x41c622(0x137)][_0x41c622(0x158)]({'key':_0x32e7c2,'title':'文件上传-'+_0x32e7c2,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x47a6bf=(0x0,decorator_3[_0x41c622(0x11d)])(validator_1['RULES_KEY'],_0x3cb67d[_0xd57e4d]);_0x47a6bf&&_0x119e7e[_0x41c622(0x137)]['push'](...getJoiRequest(_0x47a6bf));}}}_0x2857ec[_0x41c622(0x132)][_0x41c622(0x158)](_0x119e7e);}}if(_0x2857ec[_0x41c622(0x132)][_0x41c622(0x120)]>0x0){let _0x4f40c3=_0x5953be[_0x20a7e9];_0x4f40c3?(_0x4f40c3[_0x41c622(0x138)]!=_0x2857ec['summary']&&(_0x4f40c3['summary']=_0x4f40c3[_0x41c622(0x138)]+','+_0x2857ec[_0x41c622(0x138)]),_0x4f40c3[_0x41c622(0x14d)]!=_0x2857ec[_0x41c622(0x14d)]&&(_0x4f40c3['description']=_0x4f40c3[_0x41c622(0x14d)]+','+_0x2857ec[_0x41c622(0x14d)]),_0x4f40c3['routes']=_0x4f40c3[_0x41c622(0x132)][_0x41c622(0x159)](_0x2857ec[_0x41c622(0x132)]),_0x5953be[_0x20a7e9]=_0x4f40c3):_0x5953be[_0x20a7e9]=_0x2857ec;}}}return _0x5953be;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2b7aeb){const _0x2c9735=a7_0x37fd5f,_0x5b541a=[];for(let _0x133599 in _0x2b7aeb){const _0x1d2325={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x200781=typeof _0x2b7aeb[_0x133599][_0x2c9735(0x11e)]==_0x2c9735(0x13b)?_0x2b7aeb[_0x133599]['describe']():_0x2b7aeb[_0x133599];_0x1d2325[_0x2c9735(0x119)]=_0x133599,_0x1d2325[_0x2c9735(0x133)]=_0x200781[_0x2c9735(0x133)],_0x1d2325[_0x2c9735(0x14f)]=(0x0,lodash_1[_0x2c9735(0x128)])(_0x200781,_0x2c9735(0x110),_0x133599),_0x1d2325[_0x2c9735(0x146)]=(0x0,lodash_1[_0x2c9735(0x128)])(_0x200781,_0x2c9735(0x155),''),_0x1d2325['required']=(0x0,lodash_1['get'])(_0x200781,_0x2c9735(0x139),'')==_0x2c9735(0x10f),_0x1d2325[_0x2c9735(0x14d)]=(0x0,lodash_1[_0x2c9735(0x128)])(_0x200781,'flags.description','');if(_0x200781[_0x2c9735(0x133)]=='object')_0x1d2325[_0x2c9735(0x14b)]=getJoiRequest(_0x200781[_0x2c9735(0x130)]);else _0x200781[_0x2c9735(0x133)]==_0x2c9735(0x15d)&&_0x200781[_0x2c9735(0x15e)]&&Array[_0x2c9735(0x107)](_0x200781[_0x2c9735(0x15e)])&&_0x200781[_0x2c9735(0x15e)][0x0]&&console[_0x2c9735(0x108)](_0x133599+_0x2c9735(0x12f),_0x200781);_0x200781['allow']&&Array[_0x2c9735(0x107)](_0x200781[_0x2c9735(0x11b)])&&_0x200781[_0x2c9735(0x11b)][_0x2c9735(0x120)]>0x0&&(_0x1d2325[_0x2c9735(0x14d)]=_0x2c9735(0x15b)+_0x200781[_0x2c9735(0x11b)][_0x2c9735(0x10b)](',')+'];'+_0x1d2325[_0x2c9735(0x14d)]);if(_0x1d2325[_0x2c9735(0x119)]&&_0x1d2325['type']){const _0x1eaad5={};for(const _0x3a7d07 of _0x200781[_0x2c9735(0x114)]||[]){if(_0x3a7d07[_0x2c9735(0x14c)]==='min'&&_0x3a7d07['args'])_0x1eaad5['min']=_0x3a7d07[_0x2c9735(0x154)][_0x2c9735(0x123)];else _0x3a7d07[_0x2c9735(0x14c)]===_0x2c9735(0x112)&&(_0x1eaad5[_0x2c9735(0x112)]=_0x3a7d07[_0x2c9735(0x154)]['limit']);}_0x1d2325[_0x2c9735(0x114)]=_0x1eaad5;}_0x1d2325[_0x2c9735(0x119)]&&_0x1d2325[_0x2c9735(0x14f)]&&_0x5b541a['push'](_0x1d2325);}return _0x5b541a;}function convertSchemaType(_0x3ec5c0){const _0x3e2ec0=a7_0x37fd5f;switch(_0x3ec5c0){case'Object':return'object';case'Boolean':return _0x3e2ec0(0x117);case _0x3e2ec0(0x144):return _0x3e2ec0(0x13d);case'String':return'string';case _0x3e2ec0(0x12a):return'file';default:return _0x3e2ec0(0x141);}}function convertTypeToString(_0x54df8d){const _0x474a9c=a7_0x37fd5f;switch(_0x54df8d){case decorator_1[_0x474a9c(0x121)][_0x474a9c(0x134)]:return _0x474a9c(0x153);case decorator_1[_0x474a9c(0x121)]['QUERY']:return'query';case decorator_1[_0x474a9c(0x121)][_0x474a9c(0x10d)]:return _0x474a9c(0x147);case decorator_1[_0x474a9c(0x121)][_0x474a9c(0x10e)]:return _0x474a9c(0x142);case decorator_1[_0x474a9c(0x121)][_0x474a9c(0x150)]:case decorator_1[_0x474a9c(0x121)]['FILESSTREAM']:case decorator_1[_0x474a9c(0x121)]['FILESTREAM']:return _0x474a9c(0x109);default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a8_0x2f831b=a8_0x23a3;function a8_0x23a3(_0x51249e,_0x3a7871){var _0x2cf2b1=a8_0x2cf2();return a8_0x23a3=function(_0x23a3fd,_0x4fceed){_0x23a3fd=_0x23a3fd-0x105;var _0x3ee8e0=_0x2cf2b1[_0x23a3fd];return _0x3ee8e0;},a8_0x23a3(_0x51249e,_0x3a7871);}(function(_0x13571f,_0x5c4c17){var _0xdb58ec=a8_0x23a3,_0x559264=_0x13571f();while(!![]){try{var _0x21b4d5=-parseInt(_0xdb58ec(0x128))/0x1+parseInt(_0xdb58ec(0x12e))/0x2+parseInt(_0xdb58ec(0x107))/0x3*(-parseInt(_0xdb58ec(0x136))/0x4)+-parseInt(_0xdb58ec(0x10b))/0x5+parseInt(_0xdb58ec(0x106))/0x6*(-parseInt(_0xdb58ec(0x10d))/0x7)+-parseInt(_0xdb58ec(0x116))/0x8*(parseInt(_0xdb58ec(0x13d))/0x9)+parseInt(_0xdb58ec(0x119))/0xa;if(_0x21b4d5===_0x5c4c17)break;else _0x559264['push'](_0x559264['shift']());}catch(_0x5527f8){_0x559264['push'](_0x559264['shift']());}}}(a8_0x2cf2,0x65904));var __createBinding=this&&this[a8_0x2f831b(0x122)]||(Object[a8_0x2f831b(0x115)]?function(_0x3549a6,_0x4cfd5a,_0x1a93f8,_0xf46c96){var _0x264a0b=a8_0x2f831b;if(_0xf46c96===undefined)_0xf46c96=_0x1a93f8;var _0x1d2334=Object[_0x264a0b(0x120)](_0x4cfd5a,_0x1a93f8);(!_0x1d2334||('get'in _0x1d2334?!_0x4cfd5a['__esModule']:_0x1d2334[_0x264a0b(0x12a)]||_0x1d2334[_0x264a0b(0x111)]))&&(_0x1d2334={'enumerable':!![],'get':function(){return _0x4cfd5a[_0x1a93f8];}}),Object[_0x264a0b(0x139)](_0x3549a6,_0xf46c96,_0x1d2334);}:function(_0x4dde27,_0x4d3b40,_0x577164,_0x57bcc4){if(_0x57bcc4===undefined)_0x57bcc4=_0x577164;_0x4dde27[_0x57bcc4]=_0x4d3b40[_0x577164];}),__exportStar=this&&this[a8_0x2f831b(0x11e)]||function(_0x4066c1,_0x49b982){var _0x3bc92d=a8_0x2f831b;for(var _0x1409af in _0x4066c1)if(_0x1409af!=='default'&&!Object[_0x3bc92d(0x108)][_0x3bc92d(0x138)][_0x3bc92d(0x12f)](_0x49b982,_0x1409af))__createBinding(_0x49b982,_0x4066c1,_0x1409af);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x2f831b(0x10f)]=exports[a8_0x2f831b(0x126)]=exports['Inject']=exports[a8_0x2f831b(0x124)]=exports[a8_0x2f831b(0x11a)]=exports[a8_0x2f831b(0x117)]=exports[a8_0x2f831b(0x133)]=exports[a8_0x2f831b(0x11b)]=exports[a8_0x2f831b(0x13c)]=exports[a8_0x2f831b(0x12d)]=exports['Param']=exports[a8_0x2f831b(0x110)]=exports[a8_0x2f831b(0x123)]=exports[a8_0x2f831b(0x131)]=exports[a8_0x2f831b(0x125)]=exports[a8_0x2f831b(0x10c)]=exports[a8_0x2f831b(0x127)]=exports[a8_0x2f831b(0x134)]=exports['ExcelService']=exports[a8_0x2f831b(0x11d)]=exports['EventService']=exports[a8_0x2f831b(0x109)]=exports[a8_0x2f831b(0x10e)]=exports[a8_0x2f831b(0x10a)]=exports[a8_0x2f831b(0x137)]=exports[a8_0x2f831b(0x135)]=exports['Api']=exports[a8_0x2f831b(0x11c)]=void 0x0,__exportStar(require(a8_0x2f831b(0x129)),exports),__exportStar(require(a8_0x2f831b(0x12c)),exports);var getRoutes_1=require(a8_0x2f831b(0x118));function a8_0x2cf2(){var _0x2f2ed8=['@anncic-api/cache','__createBinding','Fields','Provide','File','Scope','ValidatorService','445692jTVTtI','./types/common','writable','ExcelService','./service/ApitestService','Query','1376970YSZxpL','call','@anncic-api/validator','Files','./service/ExcelService','App','ValidatorError','Action','196wqqMHr','Apitest','hasOwnProperty','defineProperty','@anncic-api/event','EventService','Headers','688977fjEnVi','./configuration','./decorator/ActionApitest','18ZTYKNb','32331wUWqPv','prototype','CacheService','ApiError','1382310mAczqi','Configuration','346885dPmkpg','QueueService','ScopeEnum','Body','configurable','@midwayjs/task','Inject','Param','create','8UMSaSO','Config','./helper/getRoutes','12029640XxhvbT','Logger','Init','getRoutes','ApiService','__exportStar','./decorator/Action','getOwnPropertyDescriptor'];a8_0x2cf2=function(){return _0x2f2ed8;};return a8_0x2cf2();}Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x11c),{'enumerable':!![],'get':function(){var _0x66826a=a8_0x2f831b;return getRoutes_1[_0x66826a(0x11c)];}});var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,'Api',{'enumerable':!![],'get':function(){return ActionApi_1['Api'];}});var Action_1=require(a8_0x2f831b(0x11f));Object['defineProperty'](exports,a8_0x2f831b(0x135),{'enumerable':!![],'get':function(){var _0x2955ed=a8_0x2f831b;return Action_1[_0x2955ed(0x135)];}});var ActionApitest_1=require(a8_0x2f831b(0x105));Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x137),{'enumerable':!![],'get':function(){var _0x2ed4f7=a8_0x2f831b;return ActionApitest_1[_0x2ed4f7(0x137)];}});var ApiError_1=require('./exception/ApiError');Object[a8_0x2f831b(0x139)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x1898ef=a8_0x2f831b;return ApiError_1[_0x1898ef(0x10a)];}});var task_1=require(a8_0x2f831b(0x112));Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x10e),{'enumerable':!![],'get':function(){var _0x111dfc=a8_0x2f831b;return task_1[_0x111dfc(0x10e)];}});var cache_1=require(a8_0x2f831b(0x121));Object['defineProperty'](exports,a8_0x2f831b(0x109),{'enumerable':!![],'get':function(){var _0x312e31=a8_0x2f831b;return cache_1[_0x312e31(0x109)];}});var event_1=require(a8_0x2f831b(0x13a));Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x13b),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a8_0x2f831b(0x139)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x5374c0=a8_0x2f831b;return ApiService_1[_0x5374c0(0x11d)];}});var ExcelService_1=require(a8_0x2f831b(0x132));Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x12b),{'enumerable':!![],'get':function(){var _0xc69fef=a8_0x2f831b;return ExcelService_1[_0xc69fef(0x12b)];}});var validator_1=require(a8_0x2f831b(0x130));Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x134),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a8_0x2f831b(0x139)](exports,'ValidatorService',{'enumerable':!![],'get':function(){var _0x32e9ca=a8_0x2f831b;return validator_1[_0x32e9ca(0x127)];}});var configuration_1=require(a8_0x2f831b(0x13e));Object[a8_0x2f831b(0x139)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require('@midwayjs/decorator');Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x125),{'enumerable':!![],'get':function(){var _0x3b5ac6=a8_0x2f831b;return decorator_1[_0x3b5ac6(0x125)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x131),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x123),{'enumerable':!![],'get':function(){var _0x1780df=a8_0x2f831b;return decorator_1[_0x1780df(0x123)];}}),Object['defineProperty'](exports,'Body',{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object['defineProperty'](exports,a8_0x2f831b(0x114),{'enumerable':!![],'get':function(){var _0x259d0c=a8_0x2f831b;return decorator_1[_0x259d0c(0x114)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x12d),{'enumerable':!![],'get':function(){var _0x176173=a8_0x2f831b;return decorator_1[_0x176173(0x12d)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x13c),{'enumerable':!![],'get':function(){var _0x3ff708=a8_0x2f831b;return decorator_1[_0x3ff708(0x13c)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x11b),{'enumerable':!![],'get':function(){var _0x4ccdfe=a8_0x2f831b;return decorator_1[_0x4ccdfe(0x11b)];}});var decorator_2=require('@midwayjs/decorator');Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x133),{'enumerable':!![],'get':function(){var _0x5eddcd=a8_0x2f831b;return decorator_2[_0x5eddcd(0x133)];}}),Object[a8_0x2f831b(0x139)](exports,'Config',{'enumerable':!![],'get':function(){var _0x422a53=a8_0x2f831b;return decorator_2[_0x422a53(0x117)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x11a),{'enumerable':!![],'get':function(){var _0x39829f=a8_0x2f831b;return decorator_2[_0x39829f(0x11a)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x124),{'enumerable':!![],'get':function(){var _0x3d8b07=a8_0x2f831b;return decorator_2[_0x3d8b07(0x124)];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x113),{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object[a8_0x2f831b(0x139)](exports,a8_0x2f831b(0x126),{'enumerable':!![],'get':function(){var _0x1e0eb7=a8_0x2f831b;return decorator_2[_0x1e0eb7(0x126)];}}),Object[a8_0x2f831b(0x139)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x3291db=a8_0x2f831b;return decorator_2[_0x3291db(0x10f)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a9_0x542af3=a9_0x1574;(function(_0x4f5536,_0x334524){var _0x2f84f7=a9_0x1574,_0x48f508=_0x4f5536();while(!![]){try{var _0x5114b8=parseInt(_0x2f84f7(0x174))/0x1*(parseInt(_0x2f84f7(0x167))/0x2)+parseInt(_0x2f84f7(0x19d))/0x3*(parseInt(_0x2f84f7(0x172))/0x4)+-parseInt(_0x2f84f7(0x188))/0x5*(parseInt(_0x2f84f7(0x185))/0x6)+-parseInt(_0x2f84f7(0x169))/0x7+parseInt(_0x2f84f7(0x171))/0x8+parseInt(_0x2f84f7(0x193))/0x9+-parseInt(_0x2f84f7(0x195))/0xa;if(_0x5114b8===_0x334524)break;else _0x48f508['push'](_0x48f508['shift']());}catch(_0x162984){_0x48f508['push'](_0x48f508['shift']());}}}(a9_0x2e8a,0x783f5));function a9_0x1574(_0x579bd5,_0x1d2b39){var _0x2e8ac2=a9_0x2e8a();return a9_0x1574=function(_0x157491,_0x2dc8fd){_0x157491=_0x157491-0x165;var _0x14210b=_0x2e8ac2[_0x157491];return _0x14210b;},a9_0x1574(_0x579bd5,_0x1d2b39);}var __decorate=this&&this[a9_0x542af3(0x17b)]||function(_0xd3e5b6,_0x409dfe,_0x2d3afe,_0x3ab42e){var _0x58d4d4=a9_0x542af3,_0x1f7ce5=arguments[_0x58d4d4(0x166)],_0x3ed8ce=_0x1f7ce5<0x3?_0x409dfe:_0x3ab42e===null?_0x3ab42e=Object[_0x58d4d4(0x18d)](_0x409dfe,_0x2d3afe):_0x3ab42e,_0x3db3be;if(typeof Reflect==='object'&&typeof Reflect[_0x58d4d4(0x18b)]==='function')_0x3ed8ce=Reflect[_0x58d4d4(0x18b)](_0xd3e5b6,_0x409dfe,_0x2d3afe,_0x3ab42e);else{for(var _0x535dfd=_0xd3e5b6['length']-0x1;_0x535dfd>=0x0;_0x535dfd--)if(_0x3db3be=_0xd3e5b6[_0x535dfd])_0x3ed8ce=(_0x1f7ce5<0x3?_0x3db3be(_0x3ed8ce):_0x1f7ce5>0x3?_0x3db3be(_0x409dfe,_0x2d3afe,_0x3ed8ce):_0x3db3be(_0x409dfe,_0x2d3afe))||_0x3ed8ce;}return _0x1f7ce5>0x3&&_0x3ed8ce&&Object[_0x58d4d4(0x173)](_0x409dfe,_0x2d3afe,_0x3ed8ce),_0x3ed8ce;},__metadata=this&&this[a9_0x542af3(0x190)]||function(_0x2a3853,_0x24af17){var _0x283140=a9_0x542af3;if(typeof Reflect===_0x283140(0x182)&&typeof Reflect[_0x283140(0x198)]===_0x283140(0x16d))return Reflect['metadata'](_0x2a3853,_0x24af17);};Object[a9_0x542af3(0x173)](exports,a9_0x542af3(0x186),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0x542af3(0x17c)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a9_0x542af3(0x177)](_0x2e1fd2){var _0x5941b2=a9_0x542af3,_0x431816;return _0x2e1fd2?(0x0,crypto_js_1['MD5'])(_0x2e1fd2+(0x0,crypto_js_1[_0x5941b2(0x19e)])((0x0,crypto_js_1[_0x5941b2(0x19e)])(_0x2e1fd2)['toString']()+((_0x431816=this[_0x5941b2(0x19a)])===null||_0x431816===void 0x0?void 0x0:_0x431816[_0x5941b2(0x177)]))[_0x5941b2(0x16c)]())[_0x5941b2(0x16c)]():'';}[a9_0x542af3(0x168)](_0x2187d8,_0x52d3e5,_0x2dd106=Date[a9_0x542af3(0x16e)]()){var _0x2950dc=a9_0x542af3;return{'Token':_0x2187d8,'Logintime':_0x2dd106,'Checkcode':this[_0x2950dc(0x175)](_0x2187d8,_0x52d3e5,_0x2dd106)};}[a9_0x542af3(0x181)](_0x5a361a={}){var _0x1ae9f7=a9_0x542af3;const _0x84ccd7=[],_0x5f0fe5=Object['fromEntries'](Object['entries'](_0x5a361a)['map'](_0x2a4f80=>[_0x2a4f80[0x0]['toLowerCase'](),_0x2a4f80[0x1]]));for(let _0x3faa68 of[_0x1ae9f7(0x180),'requesttime',_0x1ae9f7(0x183),'logintime',_0x1ae9f7(0x175)]){if(typeof _0x5f0fe5[_0x3faa68]==_0x1ae9f7(0x17d))throw new AnnError(ApiError_1[_0x1ae9f7(0x17e)][_0x1ae9f7(0x194)],{'message':_0x1ae9f7(0x19f)+_0x3faa68});_0x84ccd7[_0x1ae9f7(0x197)](_0x3faa68+'='+_0x5f0fe5[_0x3faa68]);}if(Math[_0x1ae9f7(0x16b)](_0x5f0fe5['requesttime'])-Date[_0x1ae9f7(0x16e)]()>this['config']['timeout'])throw new AnnError(ApiError_1['ApiError']['TIMEOUT']);if(!this[_0x1ae9f7(0x19a)][_0x1ae9f7(0x179)][_0x5f0fe5[_0x1ae9f7(0x180)]]||!this[_0x1ae9f7(0x19a)][_0x1ae9f7(0x179)][_0x5f0fe5[_0x1ae9f7(0x180)]][_0x1ae9f7(0x16a)]||!this[_0x1ae9f7(0x19a)]['devices'][_0x5f0fe5[_0x1ae9f7(0x180)]][_0x1ae9f7(0x175)])throw new AnnError(ApiError_1[_0x1ae9f7(0x17e)][_0x1ae9f7(0x184)]);if(_0x5f0fe5[_0x1ae9f7(0x183)]&&_0x5f0fe5['checkcode']!=this['checkcode'](_0x5f0fe5['token'],_0x5f0fe5[_0x1ae9f7(0x180)],_0x5f0fe5[_0x1ae9f7(0x18c)]))throw new AnnError(ApiError_1['ApiError'][_0x1ae9f7(0x170)]);return _0x84ccd7[_0x1ae9f7(0x197)](_0x1ae9f7(0x19b)+this[_0x1ae9f7(0x19a)][_0x1ae9f7(0x179)][_0x5f0fe5[_0x1ae9f7(0x180)]][_0x1ae9f7(0x16a)]),(0x0,crypto_js_1[_0x1ae9f7(0x19e)])(_0x84ccd7[_0x1ae9f7(0x196)]()[_0x1ae9f7(0x176)](''))[_0x1ae9f7(0x16c)]();}['checkcode'](_0xef6a30,_0x20b728,_0x4eaac2=Date['now']()){var _0x2d9e5a=a9_0x542af3,_0x46bd21,_0x59275a,_0xf27423;if(!((_0x46bd21=this[_0x2d9e5a(0x19a)])===null||_0x46bd21===void 0x0?void 0x0:_0x46bd21[_0x2d9e5a(0x179)][_0x20b728])||!((_0xf27423=(_0x59275a=this[_0x2d9e5a(0x19a)])===null||_0x59275a===void 0x0?void 0x0:_0x59275a[_0x2d9e5a(0x179)][_0x20b728])===null||_0xf27423===void 0x0?void 0x0:_0xf27423[_0x2d9e5a(0x175)]))throw new AnnError(ApiError_1[_0x2d9e5a(0x17e)][_0x2d9e5a(0x184)]);return(0x0,crypto_js_1['MD5'])(_0xef6a30+(0x0,crypto_js_1[_0x2d9e5a(0x19e)])(_0x4eaac2+this[_0x2d9e5a(0x19a)][_0x2d9e5a(0x179)][_0x20b728][_0x2d9e5a(0x175)])['toString']())[_0x2d9e5a(0x16c)]();}[a9_0x542af3(0x18e)](_0x32c1ff={}){var _0x266274=a9_0x542af3;const _0x5f12f2=Object[_0x266274(0x18a)](Object[_0x266274(0x16f)](_0x32c1ff)[_0x266274(0x17a)](_0x51cd79=>[_0x51cd79[0x0][_0x266274(0x187)](),_0x51cd79[0x1]]));if(!(_0x5f12f2===null||_0x5f12f2===void 0x0?void 0x0:_0x5f12f2[_0x266274(0x191)]))throw new AnnError(ApiError_1['ApiError'][_0x266274(0x194)],{'message':_0x266274(0x18f)});if((_0x5f12f2===null||_0x5f12f2===void 0x0?void 0x0:_0x5f12f2[_0x266274(0x191)])!=this['getsign'](_0x5f12f2))throw new AnnError(ApiError_1[_0x266274(0x17e)]['HEADERS_SIGNATURE']);return!![];}};function a9_0x2e8a(){var _0x516425=['defineProperty','10018CWFyer','checkcode','join','password','Provide','devices','map','__decorate','@midwayjs/decorator','undefined','ApiError','ScopeEnum','device','getsign','object','token','HEADERS_DEVICE','882174WxlvRJ','__esModule','toLowerCase','5ebEEdO','anncicapi','fromEntries','decorate','logintime','getOwnPropertyDescriptor','checksign','缺少头信息:signature','__metadata','signature','prototype','4391856hWUwSr','HEADERS_LACK','4440350TrCQpj','sort','push','metadata','Singleton','config','secret=','Config','12EdYNCh','MD5','缺少头信息:','Scope','length','82iEAKIh','getcheck','1277381xjbLEa','secret','abs','toString','function','now','entries','HEADERS_CHECKCODE','466512eXvQVm','309044XSBTMa'];a9_0x2e8a=function(){return _0x516425;};return a9_0x2e8a();}__decorate([(0x0,decorator_1[a9_0x542af3(0x19c)])(a9_0x542af3(0x189)),__metadata('design:type',Object)],ApiService[a9_0x542af3(0x192)],a9_0x542af3(0x19a),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x542af3(0x178)])(),(0x0,decorator_1[a9_0x542af3(0x165)])(decorator_1[a9_0x542af3(0x17f)][a9_0x542af3(0x199)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a10_0x42d35c=a10_0x714a;(function(_0x3362f1,_0x19041e){const _0x15e63a=a10_0x714a,_0x5e20f7=_0x3362f1();while(!![]){try{const _0x30b58d=-parseInt(_0x15e63a(0xc2))/0x1+-parseInt(_0x15e63a(0xee))/0x2+-parseInt(_0x15e63a(0xb7))/0x3*(parseInt(_0x15e63a(0xe8))/0x4)+parseInt(_0x15e63a(0xd3))/0x5*(-parseInt(_0x15e63a(0xd4))/0x6)+parseInt(_0x15e63a(0xfd))/0x7+parseInt(_0x15e63a(0xfa))/0x8+-parseInt(_0x15e63a(0xb3))/0x9*(-parseInt(_0x15e63a(0xb4))/0xa);if(_0x30b58d===_0x19041e)break;else _0x5e20f7['push'](_0x5e20f7['shift']());}catch(_0x49d697){_0x5e20f7['push'](_0x5e20f7['shift']());}}}(a10_0x3d4f,0xb4f84));function a10_0x3d4f(){const _0x42da84=['__apiList__','ApitestStaticController','anncicapi','method','Param','Singleton','268645YzbWVl','114mFkfwu','decorate','../../public/','../helper/getRoutes','apidoc','substring','url','isDevelopmentEnvironment','ctx','existsSync','defineProperty','description','@midwayjs/decorator','../../public/index.html','extname','ApitestService','function','.css','/apiteststatic/*','routes','284mTkOYQ','Controller','join','/apitest-:module','push','devices','1837640WyYkPv','set','/apiteststatic/','Environment','@midwayjs/core','Config','metadata','utf-8','Request','apitestmodule','replace','design:type','4576688gkAogG','Scope','.js','1548631XobqtS','design:paramtypes','Get','filepath','__metadata','cache-control','content-type','getRoutes','18Dqspze','16501370DnDhYC','__devices__','prototype','26967lWRQaI','stringify','length','request','config','text/css;\x20charset=utf-8','Inject','public,\x20max-age=604800','apiteststatic','ScopeEnum','/index.html','774451mnEFTt','object','MidwayEnvironmentService','route','summary','readFileSync','apitesthtml','design:returntype','getOwnPropertyDescriptor','__esModule','apitest'];a10_0x3d4f=function(){return _0x42da84;};return a10_0x3d4f();}var __decorate=this&&this['__decorate']||function(_0x1fcff2,_0x132d9d,_0x10470b,_0xe24ae7){const _0x51c20e=a10_0x714a;var _0x166612=arguments[_0x51c20e(0xb9)],_0x515fb5=_0x166612<0x3?_0x132d9d:_0xe24ae7===null?_0xe24ae7=Object[_0x51c20e(0xca)](_0x132d9d,_0x10470b):_0xe24ae7,_0x4af48c;if(typeof Reflect===_0x51c20e(0xc3)&&typeof Reflect[_0x51c20e(0xd5)]===_0x51c20e(0xe4))_0x515fb5=Reflect[_0x51c20e(0xd5)](_0x1fcff2,_0x132d9d,_0x10470b,_0xe24ae7);else{for(var _0x69731=_0x1fcff2[_0x51c20e(0xb9)]-0x1;_0x69731>=0x0;_0x69731--)if(_0x4af48c=_0x1fcff2[_0x69731])_0x515fb5=(_0x166612<0x3?_0x4af48c(_0x515fb5):_0x166612>0x3?_0x4af48c(_0x132d9d,_0x10470b,_0x515fb5):_0x4af48c(_0x132d9d,_0x10470b))||_0x515fb5;}return _0x166612>0x3&&_0x515fb5&&Object[_0x51c20e(0xde)](_0x132d9d,_0x10470b,_0x515fb5),_0x515fb5;},__metadata=this&&this[a10_0x42d35c(0x101)]||function(_0xddc52c,_0x20294d){const _0xe25a6a=a10_0x42d35c;if(typeof Reflect===_0xe25a6a(0xc3)&&typeof Reflect[_0xe25a6a(0xf4)]===_0xe25a6a(0xe4))return Reflect['metadata'](_0xddc52c,_0x20294d);},__param=this&&this['__param']||function(_0x2eae7a,_0x468cc0){return function(_0x295563,_0xd3f24a){_0x468cc0(_0x295563,_0xd3f24a,_0x2eae7a);};};Object['defineProperty'](exports,a10_0x42d35c(0xcb),{'value':!![]}),exports[a10_0x42d35c(0xce)]=exports[a10_0x42d35c(0xe3)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a10_0x42d35c(0xf2)),decorator_1=require(a10_0x42d35c(0xe0)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require(a10_0x42d35c(0xd7));let ApitestService=class ApitestService{async[a10_0x42d35c(0xd8)](_0x5d922e){const _0x4cde4a=a10_0x42d35c,_0x329ac1=(0x0,getRoutes_1[_0x4cde4a(0xb2)])(_0x5d922e),_0x53a1bf=[];for(let _0x2f6c6a in _0x329ac1){for(let _0x7e5afa in _0x329ac1[_0x2f6c6a][_0x4cde4a(0xe7)]){let _0x4de4d6=_0x329ac1[_0x2f6c6a]['routes'][_0x7e5afa],_0x4d4406=[];for(let _0x57c508 in _0x4de4d6[_0x4cde4a(0xba)]){_0x4d4406['push'](_0x4de4d6[_0x4cde4a(0xba)][_0x57c508]);}_0x53a1bf[_0x4cde4a(0xec)]({'title':_0x329ac1[_0x2f6c6a][_0x4cde4a(0xc6)]+':'+_0x4de4d6[_0x4cde4a(0xc6)],'prefix':_0x329ac1[_0x2f6c6a]['prefix'],'router':_0x4de4d6[_0x4cde4a(0xc5)],'method':_0x4de4d6[_0x4cde4a(0xd0)],'describe':_0x4de4d6[_0x4cde4a(0xdf)]||'','filepath':_0x329ac1[_0x2f6c6a]['filepath']||'','request':_0x4d4406});}}const _0xccd2f6=(0x0,path_1[_0x4cde4a(0xea)])(__dirname,_0x4cde4a(0xe1));return(0x0,fs_1[_0x4cde4a(0xc7)])(_0xccd2f6,{'encoding':'utf-8'})['replace'](/__res__/g,_0x4cde4a(0xf0))[_0x4cde4a(0xf8)](_0x4cde4a(0xcd),JSON['stringify'](_0x53a1bf))[_0x4cde4a(0xf8)](_0x4cde4a(0xb5),JSON[_0x4cde4a(0xb8)](this[_0x4cde4a(0xbb)][_0x4cde4a(0xed)]));}};function a10_0x714a(_0x5ae0e7,_0x24236d){const _0x3d4fec=a10_0x3d4f();return a10_0x714a=function(_0x714a99,_0x15ad86){_0x714a99=_0x714a99-0xb0;let _0x36d197=_0x3d4fec[_0x714a99];return _0x36d197;},a10_0x714a(_0x5ae0e7,_0x24236d);}__decorate([(0x0,decorator_2[a10_0x42d35c(0xf3)])(a10_0x42d35c(0xcf)),__metadata(a10_0x42d35c(0xf9),Object)],ApitestService[a10_0x42d35c(0xb6)],a10_0x42d35c(0xbb),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])(a10_0x42d35c(0xcc)),(0x0,decorator_2[a10_0x42d35c(0xfb)])(decorator_2[a10_0x42d35c(0xc0)][a10_0x42d35c(0xd2)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x42d35c(0xc8)](){const _0x62bb=a10_0x42d35c;if(this[_0x62bb(0xcc)]){const _0x4724bc={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x4724bc[_0x62bb(0x100)]=!![]),await this['ApitestService'][_0x62bb(0xd8)](_0x4724bc);}return'';}async[a10_0x42d35c(0xf7)](_0x161def){const _0x4c63af=a10_0x42d35c;if(this[_0x4c63af(0xcc)]){const _0x514e9f={'module':_0x161def};return this[_0x4c63af(0xf1)][_0x4c63af(0xdb)]()&&(_0x514e9f[_0x4c63af(0x100)]=!![]),await this[_0x4c63af(0xe3)][_0x4c63af(0xd8)](_0x514e9f);}return'';}async[a10_0x42d35c(0xbf)](){const _0xa4c67e=a10_0x42d35c;if((0x0,path_1[_0xa4c67e(0xe2)])(this[_0xa4c67e(0xdc)][_0xa4c67e(0xba)][_0xa4c67e(0xda)])){var _0x45694d=(0x0,path_1[_0xa4c67e(0xea)])(__dirname,_0xa4c67e(0xd6)+this[_0xa4c67e(0xdc)]['request'][_0xa4c67e(0xda)][_0xa4c67e(0xf8)](_0xa4c67e(0xf0),'/'));if(_0x45694d[_0xa4c67e(0xd9)](_0x45694d['length']-0xb)!=_0xa4c67e(0xc1)){this['ctx'][_0xa4c67e(0xef)](_0xa4c67e(0xb0),_0xa4c67e(0xbe));if((0x0,path_1[_0xa4c67e(0xe2)])(this[_0xa4c67e(0xdc)][_0xa4c67e(0xba)]['url'])==_0xa4c67e(0xfc))this[_0xa4c67e(0xdc)][_0xa4c67e(0xef)](_0xa4c67e(0xb1),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0xa4c67e(0xe2)])(this[_0xa4c67e(0xdc)][_0xa4c67e(0xba)][_0xa4c67e(0xda)])==_0xa4c67e(0xe5)&&this[_0xa4c67e(0xdc)]['set'](_0xa4c67e(0xb1),_0xa4c67e(0xbc));return(0x0,fs_1[_0xa4c67e(0xdd)])(_0x45694d)&&(0x0,fs_1[_0xa4c67e(0xc7)])(_0x45694d,{'encoding':_0xa4c67e(0xf5)});}}return'';}};__decorate([(0x0,decorator_2[a10_0x42d35c(0xbd)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],'ctx',void 0x0),__decorate([(0x0,decorator_2[a10_0x42d35c(0xbd)])(),__metadata(a10_0x42d35c(0xf9),core_1[a10_0x42d35c(0xc4)])],ApitestStaticController[a10_0x42d35c(0xb6)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a10_0x42d35c(0xbd)])(),__metadata('design:type',ApitestService)],ApitestStaticController[a10_0x42d35c(0xb6)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a10_0x42d35c(0xf3)])(a10_0x42d35c(0xcc)),__metadata(a10_0x42d35c(0xf9),Boolean)],ApitestStaticController['prototype'],a10_0x42d35c(0xcc),void 0x0),__decorate([(0x0,decorator_2[a10_0x42d35c(0xf3)])('anncicapi'),__metadata(a10_0x42d35c(0xf9),Object)],ApitestStaticController[a10_0x42d35c(0xb6)],a10_0x42d35c(0xbb),void 0x0),__decorate([(0x0,decorator_1[a10_0x42d35c(0xff)])('/apitest'),__metadata(a10_0x42d35c(0xf9),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a10_0x42d35c(0xc8),null),__decorate([(0x0,decorator_1[a10_0x42d35c(0xff)])(a10_0x42d35c(0xeb)),__param(0x0,(0x0,decorator_1[a10_0x42d35c(0xd1)])('module')),__metadata(a10_0x42d35c(0xf9),Function),__metadata(a10_0x42d35c(0xfe),[String]),__metadata(a10_0x42d35c(0xc9),Promise)],ApitestStaticController[a10_0x42d35c(0xb6)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x42d35c(0xff)])(a10_0x42d35c(0xe6)),__metadata(a10_0x42d35c(0xf9),Function),__metadata('design:paramtypes',[]),__metadata(a10_0x42d35c(0xc9),Promise)],ApitestStaticController[a10_0x42d35c(0xb6)],a10_0x42d35c(0xbf),null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x42d35c(0xe9)])('/'),(0x0,decorator_2[a10_0x42d35c(0xfb)])(decorator_2[a10_0x42d35c(0xc0)][a10_0x42d35c(0xf6)])],ApitestStaticController),exports[a10_0x42d35c(0xce)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a11_0x4602(){const _0x2b993b=['/public/xlsx/','parse','getOwnPropertyDescriptor','trim','Sheet\x201','addRow','mkdirSync','getAppDir','handler','Scope','keys','design:type','metadata','22472796jagnxH','__metadata','addWorksheet','isNumber','findRows','app','4SMHyIM','rowCount','Workbook','228MYDdyE','value','1560sqFtNR','/public/xlsx','.xlsx','col','getCell','startsWith','endsWith','xlsx','key','9914016vetdlW','function','cellCount','__esModule','length','download','3356610mNmjpS','846395BzxnOw','replace','11fPUair','App','defineProperty','238077YOdYOg','toString','decorate','public/xlsx','Provide','exceljs','push','getRow','Api\x20Excel\x20Error:\x20','log','11gNQOos','prototype','35582gXzbev','ExcelService','header','readFile','columns','getWorksheet','Singleton','29547akSfkr','object'];a11_0x4602=function(){return _0x2b993b;};return a11_0x4602();}const a11_0x2bd701=a11_0x1275;(function(_0x4988b6,_0x28d085){const _0x24ee21=a11_0x1275,_0x18443c=_0x4988b6();while(!![]){try{const _0x23b12b=-parseInt(_0x24ee21(0x123))/0x1*(-parseInt(_0x24ee21(0x132))/0x2)+-parseInt(_0x24ee21(0x120))/0x3+parseInt(_0x24ee21(0x10c))/0x4*(parseInt(_0x24ee21(0x121))/0x5)+parseInt(_0x24ee21(0x10f))/0x6*(parseInt(_0x24ee21(0x126))/0x7)+-parseInt(_0x24ee21(0x11a))/0x8+-parseInt(_0x24ee21(0x139))/0x9*(parseInt(_0x24ee21(0x111))/0xa)+parseInt(_0x24ee21(0x130))/0xb*(parseInt(_0x24ee21(0x106))/0xc);if(_0x23b12b===_0x28d085)break;else _0x18443c['push'](_0x18443c['shift']());}catch(_0x1889f2){_0x18443c['push'](_0x18443c['shift']());}}}(a11_0x4602,0xa1195));var __decorate=this&&this['__decorate']||function(_0x4d2b4c,_0xbcc5d5,_0x404ea5,_0x1820a2){const _0x58486a=a11_0x1275;var _0x110ee0=arguments[_0x58486a(0x11e)],_0x105f26=_0x110ee0<0x3?_0xbcc5d5:_0x1820a2===null?_0x1820a2=Object[_0x58486a(0x13d)](_0xbcc5d5,_0x404ea5):_0x1820a2,_0x1eaaaf;if(typeof Reflect===_0x58486a(0x13a)&&typeof Reflect['decorate']===_0x58486a(0x11b))_0x105f26=Reflect[_0x58486a(0x128)](_0x4d2b4c,_0xbcc5d5,_0x404ea5,_0x1820a2);else{for(var _0x416325=_0x4d2b4c[_0x58486a(0x11e)]-0x1;_0x416325>=0x0;_0x416325--)if(_0x1eaaaf=_0x4d2b4c[_0x416325])_0x105f26=(_0x110ee0<0x3?_0x1eaaaf(_0x105f26):_0x110ee0>0x3?_0x1eaaaf(_0xbcc5d5,_0x404ea5,_0x105f26):_0x1eaaaf(_0xbcc5d5,_0x404ea5))||_0x105f26;}return _0x110ee0>0x3&&_0x105f26&&Object['defineProperty'](_0xbcc5d5,_0x404ea5,_0x105f26),_0x105f26;},__metadata=this&&this[a11_0x2bd701(0x107)]||function(_0x3175f4,_0x3942d5){const _0x1df3f2=a11_0x2bd701;if(typeof Reflect===_0x1df3f2(0x13a)&&typeof Reflect[_0x1df3f2(0x105)]===_0x1df3f2(0x11b))return Reflect['metadata'](_0x3175f4,_0x3942d5);};Object[a11_0x2bd701(0x125)](exports,a11_0x2bd701(0x11d),{'value':!![]}),exports[a11_0x2bd701(0x133)]=void 0x0;function a11_0x1275(_0x400200,_0x32bd37){const _0x4602db=a11_0x4602();return a11_0x1275=function(_0x1275cd,_0xbd728d){_0x1275cd=_0x1275cd-0x102;let _0x50f1e7=_0x4602db[_0x1275cd];return _0x50f1e7;},a11_0x1275(_0x400200,_0x32bd37);}const fs=require('fs'),exceljs=require(a11_0x2bd701(0x12b)),koasend=require('koa-send'),decorator_1=require('@midwayjs/decorator');let ExcelService=class ExcelService{async[a11_0x2bd701(0x13c)](_0x36948a,_0x41cea2,_0x25acfc=[0x0]){const _0x18077e=a11_0x2bd701;var _0x508bce,_0x1335d3;const _0x167fbe=new exceljs[(_0x18077e(0x10e))](),_0x225890=[];let _0x3a2fac=_0x36948a[_0x18077e(0x122)](/(\\|\/)/g,'/')[_0x18077e(0x122)](/\/{2,}/g,'/');!(_0x3a2fac===null||_0x3a2fac===void 0x0?void 0x0:_0x3a2fac[_0x18077e(0x116)]('/'))&&(_0x3a2fac=this[_0x18077e(0x10b)]['getAppDir']()+'/'+_0x3a2fac);try{await _0x167fbe[_0x18077e(0x118)][_0x18077e(0x135)](_0x3a2fac);}catch(_0xe83e13){return console[_0x18077e(0x12f)](_0x18077e(0x12e)+_0x3a2fac+'\x20is\x20read\x20fail'),_0x225890;}for(const _0x42a42f of _0x25acfc){const _0x10bc96=lodash[_0x18077e(0x109)](_0x42a42f)?((_0x508bce=_0x167fbe['worksheets'])===null||_0x508bce===void 0x0?void 0x0:_0x508bce[_0x42a42f])||undefined:_0x167fbe[_0x18077e(0x137)](_0x42a42f);if(_0x10bc96){var _0x57406e=0x1;const _0x44b271=_0x10bc96[_0x18077e(0x12d)](0x1),_0x5df119=await new Promise(_0xfecfec=>{const _0x22e69d={};_0x44b271['eachCell']((_0x1cb03e,_0x5cac70)=>{const _0x3650c3=a11_0x1275;for(const _0x59a968 of _0x41cea2){if(_0x1cb03e[_0x3650c3(0x110)]==_0x59a968[_0x3650c3(0x134)])_0x57406e=0x2,_0x22e69d[_0x59a968[_0x3650c3(0x119)]]={'header':_0x1cb03e[_0x3650c3(0x114)],'handler':_0x59a968[_0x3650c3(0x143)]};else{if(!_0x22e69d[_0x59a968[_0x3650c3(0x119)]])try{const _0x2006e4=_0x44b271[_0x3650c3(0x115)](_0x59a968[_0x3650c3(0x134)]);_0x2006e4&&(_0x22e69d[_0x59a968['key']]={'header':_0x2006e4[_0x3650c3(0x114)],'handler':_0x59a968[_0x3650c3(0x143)]});}catch{}}}_0x44b271[_0x3650c3(0x11c)]==_0x5cac70&&_0xfecfec(_0x22e69d);});});for(const _0x4628c2 of _0x10bc96[_0x18077e(0x10a)](_0x57406e,_0x10bc96[_0x18077e(0x10d)])){const _0x194b1d={};for(const _0x6f2792 in _0x5df119){_0x5df119[_0x6f2792][_0x18077e(0x134)]&&(typeof((_0x1335d3=_0x5df119[_0x6f2792])===null||_0x1335d3===void 0x0?void 0x0:_0x1335d3[_0x18077e(0x143)])==_0x18077e(0x11b)?_0x194b1d[_0x6f2792]=_0x5df119[_0x6f2792][_0x18077e(0x143)](_0x4628c2[_0x18077e(0x115)](lodash[_0x18077e(0x13e)](''+_0x5df119[_0x6f2792][_0x18077e(0x134)],'\x20'))[_0x18077e(0x127)]()):_0x194b1d[_0x6f2792]=_0x4628c2[_0x18077e(0x115)](_0x5df119[_0x6f2792][_0x18077e(0x134)])[_0x18077e(0x127)]());}Object[_0x18077e(0x103)](_0x194b1d)[_0x18077e(0x11e)]>0x0&&_0x225890[_0x18077e(0x12c)](_0x194b1d);}}}return _0x225890;}async['export'](_0x42ca33,_0x258540,_0x8f4cc,_0x47742e=a11_0x2bd701(0x129)){const _0x17b769=a11_0x2bd701;var _0x458ab2,_0x29b01c;const _0x56f7a3=new exceljs[(_0x17b769(0x10e))](),_0x5d4d43={},_0x5872e6=[],_0x5e2091=_0x56f7a3[_0x17b769(0x108)](_0x17b769(0x13f),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x2b586d in _0x258540){_0x5d4d43[_0x258540[_0x2b586d]['key']]=_0x258540[_0x2b586d][_0x17b769(0x134)],_0x5872e6[_0x17b769(0x12c)]({'header':_0x258540[_0x2b586d][_0x17b769(0x134)],'key':(_0x458ab2=_0x258540[_0x2b586d])===null||_0x458ab2===void 0x0?void 0x0:_0x458ab2[_0x17b769(0x119)]['replace'](/\./g,'_')});}_0x5e2091[_0x17b769(0x136)]=_0x5872e6;for(const _0x230d2e of _0x8f4cc){const _0x4535fb={};for(const _0x4af8fa in _0x258540){typeof((_0x29b01c=_0x258540[_0x4af8fa])===null||_0x29b01c===void 0x0?void 0x0:_0x29b01c[_0x17b769(0x143)])=='function'?_0x4535fb[_0x258540[_0x4af8fa][_0x17b769(0x119)]['replace'](/\./g,'_')]=await _0x258540[_0x4af8fa][_0x17b769(0x143)](_0x230d2e):_0x4535fb[_0x258540[_0x4af8fa][_0x17b769(0x119)]['replace'](/\./g,'_')]=lodash['get'](_0x230d2e,_0x258540[_0x4af8fa][_0x17b769(0x119)],'');}_0x5e2091[_0x17b769(0x140)](_0x4535fb);}let _0x2784a7='';const _0x58b168=_0x42ca33+'-'+lodash['random'](0x2710,0x1869f)+_0x17b769(0x113);if(_0x47742e&&_0x47742e['startsWith']('/'))_0x2784a7=_0x47742e+'/'+_0x58b168;else _0x47742e&&!_0x47742e['startsWith']('/')&&!_0x47742e[_0x17b769(0x116)]('\x5c')?_0x2784a7=this[_0x17b769(0x10b)][_0x17b769(0x142)]()+'/'+_0x47742e+'/'+_0x58b168:_0x2784a7=this[_0x17b769(0x10b)]['getAppDir']()+_0x17b769(0x112);return(_0x2784a7[_0x17b769(0x117)]('/')||_0x2784a7[_0x17b769(0x117)]('\x5c'))&&(_0x2784a7=_0x2784a7['substring'](0x0,_0x2784a7[_0x17b769(0x11e)]-0x1)),_0x2784a7=_0x2784a7[_0x17b769(0x122)](/(\\|\/)/g,'/')[_0x17b769(0x122)](/\/{2,}/g,'/'),!fs['existsSync'](_0x2784a7)&&fs[_0x17b769(0x141)](_0x2784a7,{'recursive':!![]}),await _0x56f7a3['xlsx']['writeFile']((_0x2784a7+'/'+_0x58b168)[_0x17b769(0x122)](/(\\|\/)/g,'/')[_0x17b769(0x122)](/\/{2,}/g,'/')),{'filename':_0x58b168,'filepath':_0x2784a7};}async[a11_0x2bd701(0x11f)](_0xaffd22,_0xc9df7a){const _0x278d23=a11_0x2bd701;await koasend(_0xaffd22,_0x278d23(0x13b)+_0xc9df7a);}};__decorate([(0x0,decorator_1[a11_0x2bd701(0x124)])(),__metadata(a11_0x2bd701(0x104),Object)],ExcelService[a11_0x2bd701(0x131)],a11_0x2bd701(0x10b),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x2bd701(0x12a)])(),(0x0,decorator_1[a11_0x2bd701(0x102)])(decorator_1['ScopeEnum'][a11_0x2bd701(0x138)])],ExcelService),exports[a11_0x2bd701(0x133)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a12_0x3a8d1c=a12_0x345f;(function(_0x2e92cb,_0x1841a3){var _0x5556d6=a12_0x345f,_0xa9ad39=_0x2e92cb();while(!![]){try{var _0x374623=-parseInt(_0x5556d6(0x110))/0x1+-parseInt(_0x5556d6(0x114))/0x2+-parseInt(_0x5556d6(0x109))/0x3*(-parseInt(_0x5556d6(0x108))/0x4)+-parseInt(_0x5556d6(0x111))/0x5*(parseInt(_0x5556d6(0x113))/0x6)+-parseInt(_0x5556d6(0x112))/0x7*(parseInt(_0x5556d6(0x10c))/0x8)+parseInt(_0x5556d6(0x10d))/0x9+-parseInt(_0x5556d6(0x10f))/0xa*(-parseInt(_0x5556d6(0x10e))/0xb);if(_0x374623===_0x1841a3)break;else _0xa9ad39['push'](_0xa9ad39['shift']());}catch(_0x1ee14a){_0xa9ad39['push'](_0xa9ad39['shift']());}}}(a12_0x2168,0x2a55a));function a12_0x345f(_0x44bc48,_0x336a31){var _0x21680d=a12_0x2168();return a12_0x345f=function(_0x345fc5,_0x5417d0){_0x345fc5=_0x345fc5-0x105;var _0x4d7386=_0x21680d[_0x345fc5];return _0x4d7386;},a12_0x345f(_0x44bc48,_0x336a31);}Object[a12_0x3a8d1c(0x106)](exports,a12_0x3a8d1c(0x105),{'value':!![]}),exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a12_0x3a8d1c(0x10a)]='anncic-api:action',exports[a12_0x3a8d1c(0x10b)]=a12_0x3a8d1c(0x107);function a12_0x2168(){var _0x30e831=['223710uQDSBQ','__esModule','defineProperty','anncic-api:action:route','814588RpDUCc','3DeNsxJ','ACTION_KEY','ACTION_ROUTE_KEY','24Eeeqsd','254925dEjNDr','7391813FWxmpl','10xGKwsq','187238rhiUnz','481165vbduZA','333109USNlWe','18WCNhPL'];a12_0x2168=function(){return _0x30e831;};return a12_0x2168();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x3ba15a=a13_0x454f;(function(_0x4da5a1,_0x463eb2){var _0x2ce5df=a13_0x454f,_0x50a6c9=_0x4da5a1();while(!![]){try{var _0x135559=parseInt(_0x2ce5df(0xbe))/0x1+-parseInt(_0x2ce5df(0xae))/0x2*(-parseInt(_0x2ce5df(0xb5))/0x3)+parseInt(_0x2ce5df(0xc3))/0x4*(parseInt(_0x2ce5df(0xb7))/0x5)+-parseInt(_0x2ce5df(0xad))/0x6*(parseInt(_0x2ce5df(0xcb))/0x7)+-parseInt(_0x2ce5df(0xbd))/0x8*(-parseInt(_0x2ce5df(0xaa))/0x9)+-parseInt(_0x2ce5df(0xc4))/0xa+-parseInt(_0x2ce5df(0xbc))/0xb;if(_0x135559===_0x463eb2)break;else _0x50a6c9['push'](_0x50a6c9['shift']());}catch(_0x263822){_0x50a6c9['push'](_0x50a6c9['shift']());}}}(a13_0x2f20,0xa464c));function a13_0x454f(_0x30a05f,_0x361049){var _0x2f20bd=a13_0x2f20();return a13_0x454f=function(_0x454ff5,_0x400b7f){_0x454ff5=_0x454ff5-0xaa;var _0x1db60c=_0x2f20bd[_0x454ff5];return _0x1db60c;},a13_0x454f(_0x30a05f,_0x361049);}function a13_0x2f20(){var _0x23334b=['第一页为1,第二页为2','prototype','decorate','PageDTO','30424qHrYpV','10257730XYkbUz','1:是;0:否','@anncic-api/validator','integer','valid','function','metadata','593943vYXLtg','trim','99vRpscq','是否倒序','Rule','48Jqrvuu','102586xxWPbY','_page','length','RuleType','design:type','min','defineProperty','6RgAODY','排序方式','505qOwlGv','number','string','分页数量','object','2337500ZFpAgK','841848xURfoP','562088KHoKAT'];a13_0x2f20=function(){return _0x23334b;};return a13_0x2f20();}var __decorate=this&&this['__decorate']||function(_0x25304e,_0x51fa84,_0x4af523,_0x144f4e){var _0x5d9709=a13_0x454f,_0x121d53=arguments[_0x5d9709(0xb0)],_0x5d4a78=_0x121d53<0x3?_0x51fa84:_0x144f4e===null?_0x144f4e=Object['getOwnPropertyDescriptor'](_0x51fa84,_0x4af523):_0x144f4e,_0x4a2184;if(typeof Reflect==='object'&&typeof Reflect[_0x5d9709(0xc1)]===_0x5d9709(0xc9))_0x5d4a78=Reflect[_0x5d9709(0xc1)](_0x25304e,_0x51fa84,_0x4af523,_0x144f4e);else{for(var _0x2c871a=_0x25304e[_0x5d9709(0xb0)]-0x1;_0x2c871a>=0x0;_0x2c871a--)if(_0x4a2184=_0x25304e[_0x2c871a])_0x5d4a78=(_0x121d53<0x3?_0x4a2184(_0x5d4a78):_0x121d53>0x3?_0x4a2184(_0x51fa84,_0x4af523,_0x5d4a78):_0x4a2184(_0x51fa84,_0x4af523))||_0x5d4a78;}return _0x121d53>0x3&&_0x5d4a78&&Object[_0x5d9709(0xb4)](_0x51fa84,_0x4af523,_0x5d4a78),_0x5d4a78;},__metadata=this&&this['__metadata']||function(_0x3e0228,_0x33c4bb){var _0x491994=a13_0x454f;if(typeof Reflect===_0x491994(0xbb)&&typeof Reflect[_0x491994(0xca)]===_0x491994(0xc9))return Reflect[_0x491994(0xca)](_0x3e0228,_0x33c4bb);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a13_0x3ba15a(0xc2)]=void 0x0;const validator_1=require(a13_0x3ba15a(0xc6));class PageDTO{}__decorate([(0x0,validator_1[a13_0x3ba15a(0xac)])('分页',validator_1['RuleType'][a13_0x3ba15a(0xb8)]()[a13_0x3ba15a(0xc7)]()[a13_0x3ba15a(0xb3)](0x1),a13_0x3ba15a(0xbf)),__metadata(a13_0x3ba15a(0xb2),Number)],PageDTO[a13_0x3ba15a(0xc0)],a13_0x3ba15a(0xaf),void 0x0),__decorate([(0x0,validator_1[a13_0x3ba15a(0xac)])(a13_0x3ba15a(0xba),validator_1[a13_0x3ba15a(0xb1)]['number']()[a13_0x3ba15a(0xc7)]()[a13_0x3ba15a(0xb3)](0x1)),__metadata(a13_0x3ba15a(0xb2),Number)],PageDTO[a13_0x3ba15a(0xc0)],'_size',void 0x0),__decorate([(0x0,validator_1[a13_0x3ba15a(0xac)])(a13_0x3ba15a(0xb6),validator_1[a13_0x3ba15a(0xb1)][a13_0x3ba15a(0xb9)]()[a13_0x3ba15a(0xcc)]()),__metadata('design:type',String)],PageDTO[a13_0x3ba15a(0xc0)],'_order',void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x3ba15a(0xab),validator_1['RuleType'][a13_0x3ba15a(0xb8)]()['integer']()[a13_0x3ba15a(0xc8)](0x0,0x1),a13_0x3ba15a(0xc5)),__metadata(a13_0x3ba15a(0xb2),Number)],PageDTO[a13_0x3ba15a(0xc0)],'_isreverse',void 0x0),exports[a13_0x3ba15a(0xc2)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
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.12",
|
|
21
|
+
"@anncic-api/core": "^1.1.12",
|
|
22
|
+
"@anncic-api/event": "^1.1.12",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.12",
|
|
24
|
+
"@anncic-api/validator": "^1.1.12",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.0",
|
|
27
27
|
"@midwayjs/koa": "^3.5.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.0",
|
|
30
30
|
"@midwayjs/upload": "^3.5.0",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.12",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-bodyparser": "^4.3.0",
|
|
35
35
|
"koa-send": "^5.0.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"javascript-obfuscator": "2.19.0",
|
|
42
42
|
"typescript": "^4.7.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "28c0a11ed53b8b71939f001917aceb983736a1fe"
|
|
45
45
|
}
|