anncic-api 1.0.0 → 1.0.6
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.d.ts +4 -0
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function a0_0x330e(){var _0x513536=['1568742HDAwyz','24OJCjiN','1575540aDuGll','914202GRXQth','defineProperty','/runtime/.upload','1FzfBMg','1430382mOlPpl','2839960bSxPmO','dhauo1234420123gg3234901','5cYSDoI','18MsbdoM','40145303ZReZXK','name','2195808YzcznS'];a0_0x330e=function(){return _0x513536;};return a0_0x330e();}var a0_0x48fe7c=a0_0x3e83;function a0_0x3e83(_0x175be7,_0x12a0f5){var _0x330e5f=a0_0x330e();return a0_0x3e83=function(_0x3e83a2,_0x353f22){_0x3e83a2=_0x3e83a2-0x126;var _0x35dcff=_0x330e5f[_0x3e83a2];return _0x35dcff;},a0_0x3e83(_0x175be7,_0x12a0f5);}(function(_0x557a6b,_0x1fe79d){var _0x339edd=a0_0x3e83,_0x382fbe=_0x557a6b();while(!![]){try{var _0x721fe3=-parseInt(_0x339edd(0x127))/0x1*(parseInt(_0x339edd(0x133))/0x2)+-parseInt(_0x339edd(0x12f))/0x3+-parseInt(_0x339edd(0x129))/0x4+-parseInt(_0x339edd(0x12b))/0x5*(parseInt(_0x339edd(0x128))/0x6)+-parseInt(_0x339edd(0x130))/0x7*(parseInt(_0x339edd(0x131))/0x8)+parseInt(_0x339edd(0x12c))/0x9*(-parseInt(_0x339edd(0x132))/0xa)+parseInt(_0x339edd(0x12d))/0xb;if(_0x721fe3===_0x1fe79d)break;else _0x382fbe['push'](_0x382fbe['shift']());}catch(_0xe80bdf){_0x382fbe['push'](_0x382fbe['shift']());}}}(a0_0x330e,0x801b3));Object[a0_0x48fe7c(0x134)](exports,'__esModule',{'value':!![]}),exports['default']=_0x5b0a97=>{var _0x324354=a0_0x48fe7c;return{'apitest':!![],'keys':_0x5b0a97[_0x324354(0x12e)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x324354(0x12a),'checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x5b0a97['appDir']+_0x324354(0x126),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x512403=a1_0xb7a0;function a1_0x2b19(){var _0x3acb50=['975604PkVEfh','475676TwowbA','defineProperty','2324632pqaMGf','27dPasKZ','2092605yllOck','2202740WUoNYS','default','9046698OdNcPz','14186kYNxNw','24pAzTOb','159AiaZOY','143OuBtGz'];a1_0x2b19=function(){return _0x3acb50;};return a1_0x2b19();}(function(_0x36afb2,_0x11354b){var _0x2166dc=a1_0xb7a0,_0x489c27=_0x36afb2();while(!![]){try{var _0x1ca47b=-parseInt(_0x2166dc(0x1f5))/0x1*(parseInt(_0x2166dc(0x1f3))/0x2)+parseInt(_0x2166dc(0x1f4))/0x3*(parseInt(_0x2166dc(0x1eb))/0x4)+parseInt(_0x2166dc(0x1ef))/0x5+-parseInt(_0x2166dc(0x1f2))/0x6+parseInt(_0x2166dc(0x1ea))/0x7+parseInt(_0x2166dc(0x1ed))/0x8*(-parseInt(_0x2166dc(0x1ee))/0x9)+parseInt(_0x2166dc(0x1f0))/0xa*(parseInt(_0x2166dc(0x1e9))/0xb);if(_0x1ca47b===_0x11354b)break;else _0x489c27['push'](_0x489c27['shift']());}catch(_0x29a5d0){_0x489c27['push'](_0x489c27['shift']());}}}(a1_0x2b19,0xd34dc));function a1_0xb7a0(_0x2e4bad,_0x19fcba){var _0x2b19ef=a1_0x2b19();return a1_0xb7a0=function(_0xb7a013,_0xa8909e){_0xb7a013=_0xb7a013-0x1e9;var _0x458a3a=_0x2b19ef[_0xb7a013];return _0x458a3a;},a1_0xb7a0(_0x2e4bad,_0x19fcba);}Object[a1_0x512403(0x1ec)](exports,'__esModule',{'value':!![]}),exports[a1_0x512403(0x1f1)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0xd0b8d5=a2_0x2e00;(function(_0x45d684,_0x1f3600){const _0x2932b6=a2_0x2e00,_0x276199=_0x45d684();while(!![]){try{const _0x3846fa=-parseInt(_0x2932b6(0x9f))/0x1*(parseInt(_0x2932b6(0x8c))/0x2)+parseInt(_0x2932b6(0x93))/0x3+parseInt(_0x2932b6(0xb4))/0x4*(parseInt(_0x2932b6(0x7f))/0x5)+parseInt(_0x2932b6(0xc2))/0x6+-parseInt(_0x2932b6(0xc7))/0x7+-parseInt(_0x2932b6(0x95))/0x8*(parseInt(_0x2932b6(0xcc))/0x9)+-parseInt(_0x2932b6(0xae))/0xa;if(_0x3846fa===_0x1f3600)break;else _0x276199['push'](_0x276199['shift']());}catch(_0xabccd6){_0x276199['push'](_0x276199['shift']());}}}(a2_0x153f,0x272ba));var __decorate=this&&this[a2_0xd0b8d5(0x77)]||function(_0x32f922,_0x3f0981,_0x67a453,_0x44ac03){const _0x5a80d8=a2_0xd0b8d5;var _0x4442cf=arguments[_0x5a80d8(0x7a)],_0xbde36a=_0x4442cf<0x3?_0x3f0981:_0x44ac03===null?_0x44ac03=Object[_0x5a80d8(0x83)](_0x3f0981,_0x67a453):_0x44ac03,_0x47e945;if(typeof Reflect===_0x5a80d8(0x98)&&typeof Reflect[_0x5a80d8(0x80)]===_0x5a80d8(0xc9))_0xbde36a=Reflect[_0x5a80d8(0x80)](_0x32f922,_0x3f0981,_0x67a453,_0x44ac03);else{for(var _0x572c79=_0x32f922[_0x5a80d8(0x7a)]-0x1;_0x572c79>=0x0;_0x572c79--)if(_0x47e945=_0x32f922[_0x572c79])_0xbde36a=(_0x4442cf<0x3?_0x47e945(_0xbde36a):_0x4442cf>0x3?_0x47e945(_0x3f0981,_0x67a453,_0xbde36a):_0x47e945(_0x3f0981,_0x67a453))||_0xbde36a;}return _0x4442cf>0x3&&_0xbde36a&&Object[_0x5a80d8(0x99)](_0x3f0981,_0x67a453,_0xbde36a),_0xbde36a;},__metadata=this&&this[a2_0xd0b8d5(0x81)]||function(_0x2b8b09,_0x413ae7){const _0x598be6=a2_0xd0b8d5;if(typeof Reflect===_0x598be6(0x98)&&typeof Reflect[_0x598be6(0xac)]===_0x598be6(0xc9))return Reflect['metadata'](_0x2b8b09,_0x413ae7);};function a2_0x2e00(_0x2cf95f,_0x415279){const _0x153fc2=a2_0x153f();return a2_0x2e00=function(_0x2e0000,_0x44307f){_0x2e0000=_0x2e0000-0x75;let _0x407bdd=_0x153fc2[_0x2e0000];return _0x407bdd;},a2_0x2e00(_0x2cf95f,_0x415279);}Object[a2_0xd0b8d5(0x99)](exports,a2_0xd0b8d5(0x75),{'value':!![]}),exports[a2_0xd0b8d5(0xa9)]=void 0x0;function a2_0x153f(){const _0x5bfac5=['anncic-apihelper','isString','anncicapi','body','4058NkuqAB','context','devices','request','koa-bodyparser','useMiddleware','./exception/ApiError','isArray','query','ApiService','CustomConfiguration','handlerActionRoute','anncic-api','metadata','staticFile','545740IbaSfe','DEFAULT','./config/config.default','getApplications','bodyParser','koa','4SgLMqv','dirs','Configuration','koa-xml-body','defaultsDeep','keys','apimit','MidwayApplicationManager','application','string','@midwayjs/task','beforeRoute','target','MidwayEnvironmentService','1893420DnAZgO','design:type','ACTION_ROUTE_KEY','@anncic-api/core','key','825755UyqRlm','checkConfigKeys','function','@midwayjs/upload','onReady','47331brlOiv','__esModule','@anncic-api/validator','__decorate','@midwayjs/cross-domain','forEach','length','ApiError','mkdirSync','@anncic-api/typeorm','./service/ApiService','1307890CMlbzB','decorate','__metadata','headers','getOwnPropertyDescriptor','Inject','getConfiguration','Anncic-api\x20static-file\x20:\x20mkdir\x20','hanlderApplications','bodyXml','environment','device','checksign','128FznBol','prototype','log','config','get','defineProperties','dir','62412aPHemC','@midwayjs/core','8JtwljI','input','decorator','object','defineProperty','filterConfig'];a2_0x153f=function(){return _0x5bfac5;};return a2_0x153f();}const decorator_1=require('@midwayjs/decorator'),core_1=require(a2_0xd0b8d5(0x94)),ApiError_1=require(a2_0xd0b8d5(0xa5)),ApiService_1=require(a2_0xd0b8d5(0x7e)),action_1=require('./types/action'),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require(a2_0xd0b8d5(0xbe)),upload=require(a2_0xd0b8d5(0xca)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0xd0b8d5(0x78)),bodyXml=require(a2_0xd0b8d5(0xb7)),bodyParser=require(a2_0xd0b8d5(0xa3)),ConfigDefault=require(a2_0xd0b8d5(0xb0)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0xd0b8d5(0xc5)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0xd0b8d5(0x7d)),anncicValidator=require(a2_0xd0b8d5(0x76)),anncicHelper=require(a2_0xd0b8d5(0x9b));let CustomConfiguration=class CustomConfiguration{async[a2_0xd0b8d5(0xcb)](){const _0x498e07=a2_0xd0b8d5;await this[_0x498e07(0x9a)](),await this[_0x498e07(0xc8)](),await this[_0x498e07(0xaa)](),await this[_0x498e07(0x87)]();}async[a2_0xd0b8d5(0xc8)](){}async[a2_0xd0b8d5(0xaa)](){const _0x50f231=a2_0xd0b8d5,_0x436d10=this['config'][_0x50f231(0x85)]();this[_0x50f231(0x97)]['registerMethodHandler'](action_1[_0x50f231(0xc4)],_0x5dcafd=>{const _0x345ed6=_0x50f231,_0xcb935b=_0x5dcafd[_0x345ed6(0xac)];return{'before':async _0x3e0afb=>{const _0x439027=_0x345ed6;var _0x1482ba,_0x94f17b,_0x14fe93,_0x48b2a8;const _0x3611ea=_0x3e0afb[_0x439027(0xc0)][core_1['REQUEST_OBJ_CTX_KEY']];if((_0xcb935b===null||_0xcb935b===void 0x0?void 0x0:_0xcb935b[_0x439027(0xba)])&&!this[_0x439027(0xa8)][_0x439027(0x8b)]((_0x1482ba=_0x3611ea===null||_0x3611ea===void 0x0?void 0x0:_0x3611ea[_0x439027(0xa2)])===null||_0x1482ba===void 0x0?void 0x0:_0x1482ba[_0x439027(0x82)]))throw new AnnError(ApiError_1[_0x439027(0x7b)]['HEADERS_SIGNATURE']);((_0x94f17b=_0x3611ea[_0x439027(0x82)])===null||_0x94f17b===void 0x0?void 0x0:_0x94f17b[_0x439027(0x8a)])&&((_0x48b2a8=(_0x14fe93=_0x436d10===null||_0x436d10===void 0x0?void 0x0:_0x436d10[_0x439027(0x9d)])===null||_0x14fe93===void 0x0?void 0x0:_0x14fe93[_0x439027(0xa1)])===null||_0x48b2a8===void 0x0?void 0x0:_0x48b2a8[_0x3611ea[_0x439027(0x82)][_0x439027(0x8a)]])&&(typeof _0x436d10['anncicapi'][_0x439027(0xa1)][_0x3611ea[_0x439027(0x82)][_0x439027(0x8a)]][_0x439027(0xbf)]=='function'&&await _0x436d10[_0x439027(0x9d)][_0x439027(0xa1)][_0x3611ea['headers'][_0x439027(0x8a)]][_0x439027(0xbf)]((_0x3611ea===null||_0x3611ea===void 0x0?void 0x0:_0x3611ea['_matchedRoute'])||undefined,_0xcb935b,_0x3611ea));},'afterThrow':(_0x3bb8a8,_0x28020a)=>{throw _0x28020a;}};});}async[a2_0xd0b8d5(0x87)](){const _0x1280f4=a2_0xd0b8d5;this['application'][_0x1280f4(0xb1)]([_0x1280f4(0xb3)])[_0x1280f4(0x79)](_0x1fcf4b=>{const _0x470775=_0x1280f4;_0x1fcf4b[_0x470775(0xa4)](bodyXml(this[_0x470775(0x8f)][_0x470775(0x85)]('bodyXml'))),_0x1fcf4b[_0x470775(0xa4)](bodyParser(this['config'][_0x470775(0x85)](_0x470775(0xb2)))),(_0x1fcf4b===null||_0x1fcf4b===void 0x0?void 0x0:_0x1fcf4b[_0x470775(0xa0)])&&Object[_0x470775(0x91)](_0x1fcf4b['context'],{'ok':{'value':function(_0x7f65eb,_0x3a4437,_0x37d647=0x0){return{'code':_0x37d647,'data':_0x7f65eb,'extra':_0x3a4437};}},'err':{'value':function(_0x538dc3,_0x200391,_0x4138b4=0x1){return{'code':_0x4138b4,'extra':_0x200391,'msg':_0x538dc3};}},'input':{'value':function(_0xa537ea,_0x38aecc){const _0x4baf08=_0x470775;var _0x5c7d66;const _0x532e33=lodash[_0x4baf08(0xb8)]({},this[_0x4baf08(0xa2)][_0x4baf08(0x9e)]||this['request'][((_0x5c7d66=config===null||config===void 0x0?void 0x0:config[_0x4baf08(0x88)])===null||_0x5c7d66===void 0x0?void 0x0:_0x5c7d66[_0x4baf08(0xc6)])||_0x4baf08(0x9e)]||{},this['request'][_0x4baf08(0xa7)]||{});return _0xa537ea?lodash[_0x4baf08(0x90)](_0x532e33,_0xa537ea,_0x38aecc):_0x532e33;}},'when':{'value':async function(_0x3d77b6,_0x12f687){const _0x47b830=_0x470775,_0x5c0a52=this[_0x47b830(0x96)](_0x3d77b6,null);if(!lodash['isNull'](_0x5c0a52))return await _0x12f687(_0x5c0a52);}},'only':{'value':function(_0xafdb23){const _0x490fc3=_0x470775,_0x10f642={};for(let _0x4cdaba=0x0;_0x4cdaba<_0xafdb23[_0x490fc3(0x7a)];_0x4cdaba++){lodash[_0x490fc3(0xa6)](_0xafdb23[_0x4cdaba])&&_0xafdb23[_0x4cdaba][_0x490fc3(0x7a)]>0x0&&lodash[_0x490fc3(0x9c)](_0xafdb23[_0x4cdaba][0x0])&&(_0x10f642[_0xafdb23[_0x4cdaba][0x0]]=this['input'](_0xafdb23[_0x4cdaba][0x0],_0xafdb23[_0x4cdaba]['length']>0x1?_0xafdb23[_0x4cdaba][0x1]:null));}return _0x10f642;}}});});}async['filterConfig'](){const _0x1a1e98=a2_0xd0b8d5;var _0x33c74d,_0x489f2f,_0x1249bc,_0x3c63e4,_0x11bbfc;const _0x1cf148=this['config'][_0x1a1e98(0x85)]();((_0x489f2f=(_0x33c74d=_0x1cf148===null||_0x1cf148===void 0x0?void 0x0:_0x1cf148['anncicapi'])===null||_0x33c74d===void 0x0?void 0x0:_0x33c74d[_0x1a1e98(0xa1)])===null||_0x489f2f===void 0x0?void 0x0:_0x489f2f[_0x1a1e98(0xaf)])&&Object[_0x1a1e98(0xb9)](_0x1cf148[_0x1a1e98(0x9d)][_0x1a1e98(0xa1)])[_0x1a1e98(0x7a)]>0x1&&delete _0x1cf148[_0x1a1e98(0x9d)]['devices'][_0x1a1e98(0xaf)];if((_0x1249bc=_0x1cf148===null||_0x1cf148===void 0x0?void 0x0:_0x1cf148[_0x1a1e98(0xad)])===null||_0x1249bc===void 0x0?void 0x0:_0x1249bc[_0x1a1e98(0xb5)])for(const _0x27556d in _0x1cf148[_0x1a1e98(0xad)][_0x1a1e98(0xb5)]){((_0x3c63e4=_0x1cf148[_0x1a1e98(0xad)][_0x1a1e98(0xb5)][_0x27556d])===null||_0x3c63e4===void 0x0?void 0x0:_0x3c63e4[_0x1a1e98(0x92)])&&typeof((_0x11bbfc=_0x1cf148[_0x1a1e98(0xad)][_0x1a1e98(0xb5)][_0x27556d])===null||_0x11bbfc===void 0x0?void 0x0:_0x11bbfc[_0x1a1e98(0x92)])==_0x1a1e98(0xbd)&&!fs['existsSync'](_0x1cf148[_0x1a1e98(0xad)]['dirs'][_0x27556d][_0x1a1e98(0x92)])&&(fs[_0x1a1e98(0x7c)](_0x1cf148[_0x1a1e98(0xad)][_0x1a1e98(0xb5)][_0x27556d][_0x1a1e98(0x92)],{'recursive':!![]}),console[_0x1a1e98(0x8e)](_0x1a1e98(0x86)+_0x1cf148[_0x1a1e98(0xad)][_0x1a1e98(0xb5)][_0x27556d][_0x1a1e98(0x92)]));}this['config']['addObject'](_0x1cf148);}};__decorate([(0x0,decorator_1[a2_0xd0b8d5(0x84)])(),__metadata(a2_0xd0b8d5(0xc3),core_1['MidwayConfigService'])],CustomConfiguration[a2_0xd0b8d5(0x8d)],a2_0xd0b8d5(0x8f),void 0x0),__decorate([(0x0,decorator_1[a2_0xd0b8d5(0x84)])(),__metadata(a2_0xd0b8d5(0xc3),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0xd0b8d5(0x97),void 0x0),__decorate([(0x0,decorator_1[a2_0xd0b8d5(0x84)])(),__metadata(a2_0xd0b8d5(0xc3),core_1[a2_0xd0b8d5(0xbb)])],CustomConfiguration[a2_0xd0b8d5(0x8d)],a2_0xd0b8d5(0xbc),void 0x0),__decorate([(0x0,decorator_1[a2_0xd0b8d5(0x84)])(),__metadata('design:type',core_1[a2_0xd0b8d5(0xc1)])],CustomConfiguration[a2_0xd0b8d5(0x8d)],a2_0xd0b8d5(0x89),void 0x0),__decorate([(0x0,decorator_1[a2_0xd0b8d5(0x84)])(),__metadata(a2_0xd0b8d5(0xc3),ApiService_1[a2_0xd0b8d5(0xa8)])],CustomConfiguration['prototype'],a2_0xd0b8d5(0xa8),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0xd0b8d5(0xb6)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0xd0b8d5(0xab),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0xd0b8d5(0xa9)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x1c2217=a2_0x1011;(function(_0x50d1b3,_0x2539f7){const _0x4ee143=a2_0x1011,_0x2b0925=_0x50d1b3();while(!![]){try{const _0x3c912f=parseInt(_0x4ee143(0x12c))/0x1+parseInt(_0x4ee143(0x150))/0x2+parseInt(_0x4ee143(0x153))/0x3+parseInt(_0x4ee143(0x161))/0x4+parseInt(_0x4ee143(0x13d))/0x5*(parseInt(_0x4ee143(0x168))/0x6)+parseInt(_0x4ee143(0x144))/0x7+-parseInt(_0x4ee143(0x16f))/0x8*(parseInt(_0x4ee143(0x178))/0x9);if(_0x3c912f===_0x2539f7)break;else _0x2b0925['push'](_0x2b0925['shift']());}catch(_0x3633d1){_0x2b0925['push'](_0x2b0925['shift']());}}}(a2_0x195a,0x6425d));function a2_0x195a(){const _0x32579c=['mkdirSync','bodyParser','dir','239124cdbBag','device','registerMethodHandler','defineProperties','filterConfig','./service/ApiService','anncic-api','472rZUUUu','query','bodyXml','design:type','Configuration','@anncic-api/core','checkConfigKeys','getApplications','MidwayConfigService','399654aDauYA','metadata','input','@anncic-api/event','anncic-apihelper','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','addObject','decorator','ACTION_ROUTE_KEY','ApiError','headers','isNull','__esModule','hanlderApplications','getConfiguration','function','body','595198XhNMxS','useMiddleware','apimit','prototype','staticFile','koa-xml-body','@midwayjs/upload','request','length','application','handlerActionRoute','Inject','./types/action','Anncic-api\x20static-file\x20:\x20mkdir\x20','__metadata','target','get','85slXgGO','CustomConfiguration','onReady','string','existsSync','@midwayjs/static-file','anncicapi','4226103EOnCnI','checksign','getOwnPropertyDescriptor','decorate','context','isArray','tmpdir','defineProperty','koa-bodyparser','@midwayjs/core','log','object','253314FZZxvr','@midwayjs/cross-domain','upload','940584ObFjkc','config','DEFAULT','@anncic-api/validator','devices','isString','REQUEST_OBJ_CTX_KEY','./exception/ApiError','forEach','./config/config.default','ApiService','HEADERS_SIGNATURE','MidwayApplicationManager','@midwayjs/decorator','2854116wadOyX','environment','@anncic-api/typeorm','dirs'];a2_0x195a=function(){return _0x32579c;};return a2_0x195a();}var __decorate=this&&this['__decorate']||function(_0x258f6f,_0x462b46,_0x470a6a,_0x381652){const _0x5004e8=a2_0x1011;var _0x4e6604=arguments[_0x5004e8(0x134)],_0xf52390=_0x4e6604<0x3?_0x462b46:_0x381652===null?_0x381652=Object[_0x5004e8(0x146)](_0x462b46,_0x470a6a):_0x381652,_0x4c14d6;if(typeof Reflect===_0x5004e8(0x14f)&&typeof Reflect[_0x5004e8(0x147)]===_0x5004e8(0x12a))_0xf52390=Reflect[_0x5004e8(0x147)](_0x258f6f,_0x462b46,_0x470a6a,_0x381652);else{for(var _0x554afa=_0x258f6f['length']-0x1;_0x554afa>=0x0;_0x554afa--)if(_0x4c14d6=_0x258f6f[_0x554afa])_0xf52390=(_0x4e6604<0x3?_0x4c14d6(_0xf52390):_0x4e6604>0x3?_0x4c14d6(_0x462b46,_0x470a6a,_0xf52390):_0x4c14d6(_0x462b46,_0x470a6a))||_0xf52390;}return _0x4e6604>0x3&&_0xf52390&&Object[_0x5004e8(0x14b)](_0x462b46,_0x470a6a,_0xf52390),_0xf52390;},__metadata=this&&this[a2_0x1c2217(0x13a)]||function(_0x1beacd,_0x15a60e){const _0x5d2baa=a2_0x1c2217;if(typeof Reflect===_0x5d2baa(0x14f)&&typeof Reflect[_0x5d2baa(0x179)]==='function')return Reflect[_0x5d2baa(0x179)](_0x1beacd,_0x15a60e);};Object['defineProperty'](exports,a2_0x1c2217(0x127),{'value':!![]}),exports[a2_0x1c2217(0x13e)]=void 0x0;function a2_0x1011(_0x1114d2,_0x440eab){const _0x195a88=a2_0x195a();return a2_0x1011=function(_0x101132,_0x266c99){_0x101132=_0x101132-0x124;let _0x293c8e=_0x195a88[_0x101132];return _0x293c8e;},a2_0x1011(_0x1114d2,_0x440eab);}const decorator_1=require(a2_0x1c2217(0x160)),core_1=require(a2_0x1c2217(0x14d)),ApiError_1=require(a2_0x1c2217(0x15a)),ApiService_1=require(a2_0x1c2217(0x16d)),action_1=require(a2_0x1c2217(0x138)),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),task=require('@midwayjs/task'),upload=require(a2_0x1c2217(0x132)),staticFile=require(a2_0x1c2217(0x142)),crossDomain=require(a2_0x1c2217(0x151)),bodyXml=require(a2_0x1c2217(0x131)),bodyParser=require(a2_0x1c2217(0x14c)),ConfigDefault=require(a2_0x1c2217(0x15c)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x1c2217(0x174)),anncicEvent=require(a2_0x1c2217(0x17b)),anncicTypeorm=require(a2_0x1c2217(0x163)),anncicValidator=require(a2_0x1c2217(0x156)),anncicHelper=require(a2_0x1c2217(0x17c));let CustomConfiguration=class CustomConfiguration{async[a2_0x1c2217(0x13f)](){const _0x1cbaad=a2_0x1c2217;await this[_0x1cbaad(0x16c)](),await this[_0x1cbaad(0x175)](),await this[_0x1cbaad(0x136)](),await this[_0x1cbaad(0x128)]();}async[a2_0x1c2217(0x175)](){}async[a2_0x1c2217(0x136)](){const _0x1f53de=a2_0x1c2217,_0x1a8ea5=this[_0x1f53de(0x154)][_0x1f53de(0x129)]();this['decorator'][_0x1f53de(0x16a)](action_1[_0x1f53de(0x180)],_0x51295b=>{const _0x3b550c=_0x1f53de,_0x23f380=_0x51295b[_0x3b550c(0x179)];return{'before':async _0x224596=>{const _0x46416c=_0x3b550c;var _0x567d81,_0xd2a968,_0x14c204,_0x4e5ca1;const _0x197335=_0x224596[_0x46416c(0x13b)][core_1[_0x46416c(0x159)]];if((_0x23f380===null||_0x23f380===void 0x0?void 0x0:_0x23f380[_0x46416c(0x12e)])&&!this['ApiService'][_0x46416c(0x145)]((_0x567d81=_0x197335===null||_0x197335===void 0x0?void 0x0:_0x197335[_0x46416c(0x133)])===null||_0x567d81===void 0x0?void 0x0:_0x567d81[_0x46416c(0x125)]))throw new AnnError(ApiError_1[_0x46416c(0x124)][_0x46416c(0x15e)]);((_0xd2a968=_0x197335[_0x46416c(0x125)])===null||_0xd2a968===void 0x0?void 0x0:_0xd2a968['device'])&&((_0x4e5ca1=(_0x14c204=_0x1a8ea5===null||_0x1a8ea5===void 0x0?void 0x0:_0x1a8ea5[_0x46416c(0x143)])===null||_0x14c204===void 0x0?void 0x0:_0x14c204[_0x46416c(0x157)])===null||_0x4e5ca1===void 0x0?void 0x0:_0x4e5ca1[_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]])&&(typeof _0x1a8ea5[_0x46416c(0x143)][_0x46416c(0x157)][_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]]['beforeRoute']=='function'&&await _0x1a8ea5[_0x46416c(0x143)][_0x46416c(0x157)][_0x197335[_0x46416c(0x125)][_0x46416c(0x169)]]['beforeRoute']((_0x197335===null||_0x197335===void 0x0?void 0x0:_0x197335['_matchedRoute'])||undefined,_0x23f380,_0x197335));},'afterThrow':(_0x2bc13c,_0x1168f9)=>{throw _0x1168f9;}};});}async[a2_0x1c2217(0x128)](){const _0x5637cb=a2_0x1c2217;this[_0x5637cb(0x135)][_0x5637cb(0x176)](['koa'])[_0x5637cb(0x15b)](_0x4b1fa0=>{const _0x3126dc=_0x5637cb;_0x4b1fa0[_0x3126dc(0x12d)](bodyXml(this['config'][_0x3126dc(0x129)](_0x3126dc(0x171)))),_0x4b1fa0[_0x3126dc(0x12d)](bodyParser(this[_0x3126dc(0x154)][_0x3126dc(0x129)](_0x3126dc(0x166)))),(_0x4b1fa0===null||_0x4b1fa0===void 0x0?void 0x0:_0x4b1fa0[_0x3126dc(0x148)])&&Object[_0x3126dc(0x16b)](_0x4b1fa0[_0x3126dc(0x148)],{'ok':{'value':function(_0x1b3b06,_0x657742,_0x357d43=0x0){return{'code':_0x357d43,'data':_0x1b3b06,'extra':_0x657742};}},'err':{'value':function(_0x982a80,_0x4986da,_0x25dc3f=0x1){return{'code':_0x25dc3f,'extra':_0x4986da,'msg':_0x982a80};}},'input':{'value':function(_0x170d59,_0xfd7613){const _0x2b7ce0=_0x3126dc;var _0x53242d;const _0x49d1f8=lodash['defaultsDeep']({},this[_0x2b7ce0(0x133)][_0x2b7ce0(0x12b)]||this[_0x2b7ce0(0x133)][((_0x53242d=config===null||config===void 0x0?void 0x0:config[_0x2b7ce0(0x171)])===null||_0x53242d===void 0x0?void 0x0:_0x53242d['key'])||'body']||{},this[_0x2b7ce0(0x133)][_0x2b7ce0(0x170)]||{});return _0x170d59?lodash[_0x2b7ce0(0x13c)](_0x49d1f8,_0x170d59,_0xfd7613):_0x49d1f8;}},'when':{'value':async function(_0xef6fae,_0x44040f){const _0x2ba561=_0x3126dc,_0x570f82=this[_0x2ba561(0x17a)](_0xef6fae,null);if(!lodash[_0x2ba561(0x126)](_0x570f82))return await _0x44040f(_0x570f82);}},'only':{'value':function(_0x9135bb){const _0x4d8943=_0x3126dc,_0x2cdb4c={};for(let _0xbe5697=0x0;_0xbe5697<_0x9135bb[_0x4d8943(0x134)];_0xbe5697++){lodash[_0x4d8943(0x149)](_0x9135bb[_0xbe5697])&&_0x9135bb[_0xbe5697][_0x4d8943(0x134)]>0x0&&lodash[_0x4d8943(0x158)](_0x9135bb[_0xbe5697][0x0])&&(_0x2cdb4c[_0x9135bb[_0xbe5697][0x0]]=this[_0x4d8943(0x17a)](_0x9135bb[_0xbe5697][0x0],_0x9135bb[_0xbe5697][_0x4d8943(0x134)]>0x1?_0x9135bb[_0xbe5697][0x1]:null));}return _0x2cdb4c;}}});});}async[a2_0x1c2217(0x16c)](){const _0x5811ed=a2_0x1c2217;var _0x468ba8,_0x558e8a,_0x488a30,_0x10a955,_0x44ccfa,_0x1f3e7c;const _0x49dfb8=this['config']['getConfiguration']();((_0x558e8a=(_0x468ba8=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x143)])===null||_0x468ba8===void 0x0?void 0x0:_0x468ba8[_0x5811ed(0x157)])===null||_0x558e8a===void 0x0?void 0x0:_0x558e8a[_0x5811ed(0x155)])&&Object['keys'](_0x49dfb8[_0x5811ed(0x143)][_0x5811ed(0x157)])[_0x5811ed(0x134)]>0x1&&delete _0x49dfb8['anncicapi'][_0x5811ed(0x157)]['DEFAULT'];if((_0x488a30=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x130)])===null||_0x488a30===void 0x0?void 0x0:_0x488a30['dirs'])for(const _0x3adbd3 in _0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)]){((_0x10a955=_0x49dfb8[_0x5811ed(0x130)]['dirs'][_0x3adbd3])===null||_0x10a955===void 0x0?void 0x0:_0x10a955[_0x5811ed(0x167)])&&typeof((_0x44ccfa=_0x49dfb8['staticFile']['dirs'][_0x3adbd3])===null||_0x44ccfa===void 0x0?void 0x0:_0x44ccfa[_0x5811ed(0x167)])==_0x5811ed(0x140)&&!fs[_0x5811ed(0x141)](_0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)][_0x3adbd3][_0x5811ed(0x167)])&&(fs[_0x5811ed(0x165)](_0x49dfb8[_0x5811ed(0x130)][_0x5811ed(0x164)][_0x3adbd3][_0x5811ed(0x167)],{'recursive':!![]}),console[_0x5811ed(0x14e)](_0x5811ed(0x139)+_0x49dfb8[_0x5811ed(0x130)]['dirs'][_0x3adbd3][_0x5811ed(0x167)]));}((_0x1f3e7c=_0x49dfb8===null||_0x49dfb8===void 0x0?void 0x0:_0x49dfb8[_0x5811ed(0x152)])===null||_0x1f3e7c===void 0x0?void 0x0:_0x1f3e7c[_0x5811ed(0x14a)])&&!fs[_0x5811ed(0x141)](_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)])&&(fs[_0x5811ed(0x165)](_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)],{'recursive':!![]}),console[_0x5811ed(0x14e)](_0x5811ed(0x17d)+_0x49dfb8[_0x5811ed(0x152)][_0x5811ed(0x14a)])),this[_0x5811ed(0x154)][_0x5811ed(0x17e)](_0x49dfb8);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x1c2217(0x172),core_1[a2_0x1c2217(0x177)])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x154),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x17f),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),core_1[a2_0x1c2217(0x15f)])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x135),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x1c2217(0x162),void 0x0),__decorate([(0x0,decorator_1[a2_0x1c2217(0x137)])(),__metadata(a2_0x1c2217(0x172),ApiService_1['ApiService'])],CustomConfiguration[a2_0x1c2217(0x12f)],a2_0x1c2217(0x15d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1c2217(0x173)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1c2217(0x16e),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1c2217(0x13e)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x58c24c=a3_0x5a1b;(function(_0x5a8fed,_0x2c6e26){const _0xa3c9cf=a3_0x5a1b,_0x594b5c=_0x5a8fed();while(!![]){try{const _0xc54853=parseInt(_0xa3c9cf(0xee))/0x1+-parseInt(_0xa3c9cf(0xf1))/0x2+-parseInt(_0xa3c9cf(0x10d))/0x3+parseInt(_0xa3c9cf(0xfc))/0x4*(parseInt(_0xa3c9cf(0xe7))/0x5)+parseInt(_0xa3c9cf(0xdf))/0x6+parseInt(_0xa3c9cf(0xdd))/0x7*(-parseInt(_0xa3c9cf(0x105))/0x8)+-parseInt(_0xa3c9cf(0xf2))/0x9*(-parseInt(_0xa3c9cf(0xff))/0xa);if(_0xc54853===_0x2c6e26)break;else _0x594b5c['push'](_0x594b5c['shift']());}catch(_0x1e7f7e){_0x594b5c['push'](_0x594b5c['shift']());}}}(a3_0x1495,0x2dbec));function a3_0x5a1b(_0x54f3e5,_0x5db6f3){const _0x1495c8=a3_0x1495();return a3_0x5a1b=function(_0x5a1bbf,_0x26b8a6){_0x5a1bbf=_0x5a1bbf-0xdb;let _0x346fd5=_0x1495c8[_0x5a1bbf];return _0x346fd5;},a3_0x5a1b(_0x54f3e5,_0x5db6f3);}function a3_0x1495(){const _0x9c7e9c=['rootpath','isArray','toLowerCase','trim','../types/action','75944RvpjSC','saveModule','app/controller/','716824YqtWjz','153ynOXcO','/apps/','filepath','join','/controller/','/config.','substring','filter','parseRoute','split','200656KEVnym','length','Action','440990IUIeif','\x20文件请放在app/controller/文件下','ACTION_KEY','module','apps/','/controller/文件下','32lDjpLF','-action','push','match','indexOf','__esModule','route','middlewareIgnore','436950stdPZm','existsSync','defineProperty','-controller','cwd','startsWith','597030qUdeLW','saveClassMetadata','37866PUWokV','splice','replace','Controller','prefix','@midwayjs/decorator','tagName','endsWith','20BKzlBF','middleware'];a3_0x1495=function(){return _0x9c7e9c;};return a3_0x1495();}Object[a3_0x58c24c(0x10f)](exports,a3_0x58c24c(0x10a),{'value':!![]}),exports[a3_0x58c24c(0xfa)]=exports[a3_0x58c24c(0xfe)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x58c24c(0xe4)),action_1=require(a3_0x58c24c(0xed));function Action(_0x217e89,_0x3c84bf,_0x927e49={'middleware':[],'sensitive':!![]}){return _0x15cd9f=>{const _0x5686ca=a3_0x5a1b;_0x927e49[_0x5686ca(0xe5)]=_0x3c84bf;const _0x2ec599=parseRoute(_0x217e89);if(_0x2ec599[_0x5686ca(0x102)]){_0x927e49['prefix']=_0x927e49['prefix']?'/'+_0x2ec599[_0x5686ca(0x102)]+'/'+_0x927e49[_0x5686ca(0xe3)]:'/'+_0x2ec599[_0x5686ca(0x10b)];_0x2ec599[_0x5686ca(0xe3)]&&(_0x927e49[_0x5686ca(0xe3)]='/'+_0x2ec599[_0x5686ca(0xe3)]+'/'+_0x927e49[_0x5686ca(0xe3)]);if(fs[_0x5686ca(0x10e)](_0x2ec599[_0x5686ca(0xe9)]+'/apps/'+_0x2ec599[_0x5686ca(0x102)]+_0x5686ca(0xf7)+(lodash[_0x5686ca(0xe6)](_0x2ec599[_0x5686ca(0xf4)],'ts')?'ts':'js'))){const _0x1e7272=include(_0x2ec599[_0x5686ca(0xe9)]+'/apps/'+_0x2ec599['module']+'/config.'+(lodash[_0x5686ca(0xe6)](_0x2ec599[_0x5686ca(0xf4)],'ts')?'ts':'js'));if(_0x1e7272[_0x5686ca(0xe8)]&&lodash[_0x5686ca(0xea)](_0x1e7272['middleware'])&&_0x1e7272[_0x5686ca(0xe8)][_0x5686ca(0xfd)]>0x0)for(let _0x20c2b0 in _0x1e7272[_0x5686ca(0xe8)]){_0x1e7272[_0x5686ca(0x10c)][_0x5686ca(0x109)](_0x1e7272['middleware'][_0x20c2b0])==-0x1&&_0x927e49[_0x5686ca(0xe8)][_0x5686ca(0x107)](_0x1e7272[_0x5686ca(0xe8)][_0x20c2b0]);}}_0x927e49[_0x5686ca(0xe3)]=_0x927e49[_0x5686ca(0xe3)][_0x5686ca(0xeb)]()[_0x5686ca(0xe1)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x5686ca(0xef)])(action_1[_0x5686ca(0x101)],_0x15cd9f),(0x0,decorator_1[_0x5686ca(0xe2)])(_0x927e49[_0x5686ca(0xe3)],_0x927e49)(_0x15cd9f),(0x0,decorator_1[_0x5686ca(0xde)])(action_1['ACTION_KEY'],{'prefix':_0x927e49['prefix'],'pprefix':_0x2ec599[_0x5686ca(0xe3)],'module':_0x2ec599[_0x5686ca(0x102)],'filepath':_0x2ec599[_0x5686ca(0xf4)],'routerOptions':_0x927e49},_0x15cd9f);}else _0x927e49[_0x5686ca(0xe3)]=_0x927e49['prefix']?'/'+_0x927e49[_0x5686ca(0xe3)]:'/'+_0x2ec599[_0x5686ca(0x10b)],_0x2ec599[_0x5686ca(0xe3)]&&(_0x927e49[_0x5686ca(0xe3)]='/'+_0x2ec599['prefix']+'/'+_0x927e49[_0x5686ca(0xe3)]),_0x927e49[_0x5686ca(0xe3)]=_0x927e49[_0x5686ca(0xe3)][_0x5686ca(0xeb)]()[_0x5686ca(0xe1)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x5686ca(0xef)])(action_1[_0x5686ca(0x101)],_0x15cd9f),(0x0,decorator_1['Controller'])(_0x927e49[_0x5686ca(0xe3)],_0x927e49)(_0x15cd9f),(0x0,decorator_1[_0x5686ca(0xde)])(action_1[_0x5686ca(0x101)],{'prefix':_0x927e49[_0x5686ca(0xe3)],'module':_0x2ec599['module'],'pprefix':_0x2ec599[_0x5686ca(0xe3)],'filepath':_0x2ec599['filepath'],'routerOptions':_0x927e49},_0x15cd9f);};}exports[a3_0x58c24c(0xfe)]=Action;function parseRoute(_0x422768){const _0x295873=a3_0x58c24c;_0x422768=_0x422768[_0x295873(0xe1)](/(\\|\/)/g,'/');const _0x5ef060=process[_0x295873(0xdb)]()[_0x295873(0xe1)](/(\\|\/)/g,'/'),_0x2b4728=_0x422768[_0x295873(0xf8)](0x0,_0x5ef060[_0x295873(0xfd)]+_0x422768[_0x295873(0xf8)](_0x5ef060[_0x295873(0xfd)]+0x1)[_0x295873(0x109)]('/')+0x1),_0xa28775=_0x422768[_0x295873(0xf8)](_0x2b4728[_0x295873(0xfd)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x43ad91={'route':'','prefix':![],'module':![],'rootpath':_0x2b4728,'filepath':_0xa28775};if(_0xa28775[_0x295873(0xdc)](_0x295873(0xf0))){const _0x323b2e=_0xa28775['substring']('app/controller/'['length'])[_0x295873(0xfb)]('/')['filter'](_0x2952af=>_0x2952af&&_0x2952af[_0x295873(0xec)]());return _0x323b2e[_0x295873(0xfd)]>0x1&&(_0x43ad91[_0x295873(0xe3)]=_0x323b2e[0x0][_0x295873(0xeb)](),_0x323b2e[_0x295873(0xe0)](0x0,0x1)),_0x43ad91[_0x295873(0x10b)]=('/'+_0x323b2e[_0x295873(0xf5)]('/'))[_0x295873(0xe1)](/(\.ts|\.js)$/,'')[_0x295873(0xe1)](/\/{2,}/g,'/')[_0x295873(0x108)](/[\/|A-Z]*[^A-Z]+/g)[_0x295873(0xf5)]('-')[_0x295873(0xeb)]()[_0x295873(0xe1)](/\/\-/g,'/'),_0x43ad91[_0x295873(0x10b)][_0x295873(0xe6)](_0x295873(0x106))&&(_0x43ad91[_0x295873(0x10b)]=_0x43ad91[_0x295873(0x10b)][_0x295873(0xf8)](0x0,_0x43ad91['route'][_0x295873(0xfd)]-0x7)),_0x43ad91[_0x295873(0x10b)][_0x295873(0xe6)](_0x295873(0x110))&&(_0x43ad91['route']=_0x43ad91['route'][_0x295873(0xf8)](0x0,_0x43ad91[_0x295873(0x10b)][_0x295873(0xfd)]-0xb)),_0x43ad91;}else{if(_0xa28775['startsWith']('apps/')){const _0x1441f4=_0xa28775[_0x295873(0xf8)](0x0,_0xa28775['indexOf'](_0x295873(0xf3))+0x5),_0x550ede=_0xa28775['substring'](_0x1441f4[_0x295873(0xfd)]+0x1)[_0x295873(0xe1)](/(\\|\/)/g,'/')[_0x295873(0xfb)]('/')[0x0];if(_0xa28775[_0x295873(0xdc)](_0x295873(0x103)+_0x550ede+'/controller/')){const _0x1f1d35=_0xa28775[_0x295873(0xf8)]((_0x1441f4+'/'+_0x550ede+_0x295873(0xf6))[_0x295873(0xfd)])[_0x295873(0xfb)]('/')[_0x295873(0xf9)](_0x14839e=>_0x14839e&&_0x14839e[_0x295873(0xec)]());return _0x1f1d35[_0x295873(0xfd)]>0x1&&(_0x43ad91['prefix']=_0x1f1d35[0x0][_0x295873(0xeb)](),_0x1f1d35[_0x295873(0xe0)](0x0,0x1)),_0x43ad91[_0x295873(0x102)]=_0x550ede,_0x43ad91['route']=('/'+_0x550ede+'/'+_0x1f1d35[_0x295873(0xf5)]('/'))[_0x295873(0xe1)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x295873(0x108)](/[\/|A-Z]*[^A-Z]+/g)[_0x295873(0xf5)]('-')[_0x295873(0xeb)]()[_0x295873(0xe1)](/\/\-/g,'/'),_0x43ad91['route'][_0x295873(0xe6)](_0x295873(0x106))&&(_0x43ad91['route']=_0x43ad91[_0x295873(0x10b)][_0x295873(0xf8)](0x0,_0x43ad91[_0x295873(0x10b)]['length']-0x7)),_0x43ad91[_0x295873(0x10b)]['endsWith']('-controller')&&(_0x43ad91[_0x295873(0x10b)]=_0x43ad91[_0x295873(0x10b)][_0x295873(0xf8)](0x0,_0x43ad91[_0x295873(0x10b)]['length']-0xb)),_0x43ad91;}throw new Error(_0xa28775+'\x20文件请放在apps/'+_0x550ede+_0x295873(0x104));}}throw new Error(_0xa28775+_0x295873(0x100));}exports[a3_0x58c24c(0xfa)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0xbaaf30=a4_0x417c;(function(_0x142893,_0xdcf38b){const _0x54dc3d=a4_0x417c,_0x3c0800=_0x142893();while(!![]){try{const _0x4b4631=parseInt(_0x54dc3d(0x1bf))/0x1+-parseInt(_0x54dc3d(0x1b6))/0x2*(-parseInt(_0x54dc3d(0x1c0))/0x3)+parseInt(_0x54dc3d(0x1c8))/0x4*(parseInt(_0x54dc3d(0x1b1))/0x5)+parseInt(_0x54dc3d(0x1cf))/0x6*(-parseInt(_0x54dc3d(0x1ba))/0x7)+-parseInt(_0x54dc3d(0x1bb))/0x8*(parseInt(_0x54dc3d(0x1ce))/0x9)+-parseInt(_0x54dc3d(0x1af))/0xa+parseInt(_0x54dc3d(0x1c5))/0xb;if(_0x4b4631===_0xdcf38b)break;else _0x3c0800['push'](_0x3c0800['shift']());}catch(_0x13cd6e){_0x3c0800['push'](_0x3c0800['shift']());}}}(a4_0x3aaa,0x6875d));function a4_0x3aaa(){const _0x1ad2fd=['418510IhGobR','middleware','length','get','apimit','2PRJgtK','__esModule','@anncic-api/validator','Api','4089827imZHKf','8yZScAX','utc','middlewareIgnore','attachClassMetadata','844277fNTdgd','1424877dNfuGV','ACTION_ROUTE_KEY','defineProperty','description','validationOptions','3887576cQiJzD','Validator','assign','16KeVjVO','filter','toLowerCase','createCustomMethodDecorator','validate','delete','2118186UMqLEL','6yTbocz','del','7599760iQjHPz','routerName'];a4_0x3aaa=function(){return _0x1ad2fd;};return a4_0x3aaa();}Object[a4_0xbaaf30(0x1c2)](exports,a4_0xbaaf30(0x1b7),{'value':!![]}),exports[a4_0xbaaf30(0x1b9)]=void 0x0;const validator_1=require(a4_0xbaaf30(0x1b8)),decorator_1=require('@midwayjs/decorator'),action_1=require('../types/action');function Api(_0x59ff78,_0x32052a=a4_0xbaaf30(0x1b4),_0x2fd627='/',_0x3da21b={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x570bb3,_0x54e8e5,_0x2928a2)=>{const _0x213d90=a4_0x417c;var _0x16bde9,_0x3fb487,_0x1e76b2;!_0x3da21b[_0x213d90(0x1b2)]&&(_0x3da21b['middleware']=[]);!((_0x16bde9=_0x3da21b===null||_0x3da21b===void 0x0?void 0x0:_0x3da21b[_0x213d90(0x1cc)])===null||_0x16bde9===void 0x0?void 0x0:_0x16bde9[_0x213d90(0x1c4)])&&(_0x3da21b['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x213d90(0x1bc)}});if(((_0x3fb487=_0x3da21b===null||_0x3da21b===void 0x0?void 0x0:_0x3da21b[_0x213d90(0x1b2)])===null||_0x3fb487===void 0x0?void 0x0:_0x3fb487[_0x213d90(0x1b3)])>0x0&&((_0x1e76b2=_0x3da21b===null||_0x3da21b===void 0x0?void 0x0:_0x3da21b[_0x213d90(0x1bd)])===null||_0x1e76b2===void 0x0?void 0x0:_0x1e76b2[_0x213d90(0x1b3)])>0x0)for(let _0x1da98f in _0x3da21b[_0x213d90(0x1b2)]){_0x3da21b['middlewareIgnore']['indexOf'](_0x3da21b[_0x213d90(0x1b2)][_0x1da98f])!==-0x1&&(_0x3da21b['middleware'][_0x1da98f]=null);}_0x3da21b[_0x213d90(0x1b0)]=_0x59ff78,(0x0,validator_1[_0x213d90(0x1c6)])(_0x3da21b[_0x213d90(0x1cc)])(_0x570bb3,_0x54e8e5,_0x2928a2),(0x0,decorator_1['RequestMapping'])(Object[_0x213d90(0x1c7)](_0x3da21b,{'path':_0x2fd627,'requestMethod':(_0x32052a=='del'?_0x213d90(0x1cd):_0x32052a)['toLowerCase']()}))(_0x570bb3,_0x54e8e5,_0x2928a2),(0x0,decorator_1[_0x213d90(0x1be)])(action_1[_0x213d90(0x1c1)],{'path':_0x2fd627,'method':_0x54e8e5,'apimit':_0x3da21b[_0x213d90(0x1b5)],'routerName':_0x3da21b['routerName'],'description':_0x3da21b[_0x213d90(0x1c3)],'middleware':(_0x3da21b['middleware']||[])[_0x213d90(0x1c9)](_0xc8c3fc=>!!_0xc8c3fc),'requestMethod':(_0x32052a==_0x213d90(0x1ae)?_0x213d90(0x1cd):_0x32052a)[_0x213d90(0x1ca)]()},_0x570bb3),(0x0,decorator_1[_0x213d90(0x1cb)])(action_1[_0x213d90(0x1c1)],{'path':_0x2fd627,'method':_0x54e8e5,'apimit':_0x3da21b['apimit'],'routerName':_0x3da21b[_0x213d90(0x1b0)],'description':_0x3da21b[_0x213d90(0x1c3)],'middleware':(_0x3da21b['middleware']||[])[_0x213d90(0x1c9)](_0x21c5cd=>!!_0x21c5cd),'requestMethod':(_0x32052a==_0x213d90(0x1ae)?_0x213d90(0x1cd):_0x32052a)[_0x213d90(0x1ca)]()})(_0x570bb3,_0x54e8e5,_0x2928a2);};}function a4_0x417c(_0x46110b,_0x2a72b7){const _0x3aaa86=a4_0x3aaa();return a4_0x417c=function(_0x417cec,_0x1b0291){_0x417cec=_0x417cec-0x1ae;let _0x4891fc=_0x3aaa86[_0x417cec];return _0x4891fc;},a4_0x417c(_0x46110b,_0x2a72b7);}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a5_0x81cc(){const _0x324070=['filepath','../service/ApitestService','32319880PNYnXH','97138qRuJGu','7778512SPwbdS','1639716boWRUr','getApplicationContext','defineProperty','ApitestService','4027730Tgiiwy','RequestMapping','getAsync','2184660gaKbwy','apitest','1017372kHIlZB','25GQKEJi','/apitest','Apitest','__esModule','@midwayjs/decorator','get','apidoc','getConfig','MidwayEnvironmentService'];a5_0x81cc=function(){return _0x324070;};return a5_0x81cc();}const a5_0x224bea=a5_0x515f;(function(_0xea8afd,_0x4750a4){const _0x588450=a5_0x515f,_0x573918=_0xea8afd();while(!![]){try{const _0x35e09b=-parseInt(_0x588450(0x170))/0x1*(parseInt(_0x588450(0x17c))/0x2)+parseInt(_0x588450(0x17e))/0x3+-parseInt(_0x588450(0x16d))/0x4+-parseInt(_0x588450(0x16a))/0x5+-parseInt(_0x588450(0x16f))/0x6+-parseInt(_0x588450(0x17d))/0x7+parseInt(_0x588450(0x17b))/0x8;if(_0x35e09b===_0x4750a4)break;else _0x573918['push'](_0x573918['shift']());}catch(_0x335034){_0x573918['push'](_0x573918['shift']());}}}(a5_0x81cc,0xb4a03));function a5_0x515f(_0x39a568,_0x3b1126){const _0x81ccbc=a5_0x81cc();return a5_0x515f=function(_0x515f88,_0xfe2bb3){_0x515f88=_0x515f88-0x16a;let _0x2f37cd=_0x81ccbc[_0x515f88];return _0x2f37cd;},a5_0x515f(_0x39a568,_0x3b1126);}Object[a5_0x224bea(0x180)](exports,a5_0x224bea(0x173),{'value':!![]}),exports[a5_0x224bea(0x172)]=void 0x0;const decorator_1=require(a5_0x224bea(0x174)),core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x224bea(0x17a));function Apitest(_0x4a9129=a5_0x224bea(0x171),_0x178abc){return(_0xe03f74,_0x10a146,_0x52f059)=>{const _0x221621=a5_0x515f;return(0x0,decorator_1[_0x221621(0x16b)])({'path':_0x4a9129,'requestMethod':_0x221621(0x175)})(_0xe03f74,_0x10a146,_0x52f059),_0x52f059['value']=async function(..._0xf2da29){const _0x188316=_0x221621;var _0x3f9354;const _0x399ef3=(_0x3f9354=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x3f9354===void 0x0?void 0x0:_0x3f9354['app'];if(_0x399ef3&&_0x399ef3[_0x188316(0x177)](_0x188316(0x16e))){const _0x1382a8=await _0x399ef3[_0x188316(0x17f)]()[_0x188316(0x16c)](ApitestService_1[_0x188316(0x181)]),_0xb68b=await _0x399ef3['getApplicationContext']()[_0x188316(0x16c)](core_1[_0x188316(0x178)]);return _0xb68b['isDevelopmentEnvironment']()&&(_0x178abc[_0x188316(0x179)]=!![]),await _0x1382a8[_0x188316(0x176)](_0x178abc);}return'';},_0x52f059;};}exports[a5_0x224bea(0x172)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a7_0x230ec8=a7_0x29eb;function a7_0x391c(){var _0x494090=['object','1915832PvVPQh','983160okzTZa','网络繁忙,请稍后重试','checkcode验证失败','HEADERS_LACK','design:type','7eLsbtC','HEADERS_CHECKCODE','__metadata','9ecfJzp','1941265XFjhLr','1515164CKgFcI','metadata','defineProperty','HEADERS_DEVICE','function','71982pVpPkg','__esModule','decorate','getOwnPropertyDescriptor','66DLeTpD','length','请求头信息不完整','21126730hqCpYS','signature验证失败','HEADERS_SIGNATURE','__decorate','2533920BIIkDJ','TIMEOUT'];a7_0x391c=function(){return _0x494090;};return a7_0x391c();}function a7_0x29eb(_0x250b9c,_0xfa61b9){var _0x391c39=a7_0x391c();return a7_0x29eb=function(_0x391cce,_0x29ebc9){_0x391cce=_0x391cce-0x1c9;var _0x2d52a0=_0x391c39[_0x391cce];return _0x2d52a0;},a7_0x29eb(_0x250b9c,_0xfa61b9);}(function(_0x125581,_0x1964d4){var _0x5f5ba6=a7_0x29eb,_0x3b87ca=_0x125581();while(!![]){try{var _0x549734=-parseInt(_0x5f5ba6(0x1d1))/0x1+parseInt(_0x5f5ba6(0x1e4))/0x2*(parseInt(_0x5f5ba6(0x1e0))/0x3)+-parseInt(_0x5f5ba6(0x1db))/0x4+-parseInt(_0x5f5ba6(0x1da))/0x5+-parseInt(_0x5f5ba6(0x1cd))/0x6+-parseInt(_0x5f5ba6(0x1d6))/0x7*(parseInt(_0x5f5ba6(0x1d0))/0x8)+-parseInt(_0x5f5ba6(0x1d9))/0x9*(-parseInt(_0x5f5ba6(0x1c9))/0xa);if(_0x549734===_0x1964d4)break;else _0x3b87ca['push'](_0x3b87ca['shift']());}catch(_0x1f0d9a){_0x3b87ca['push'](_0x3b87ca['shift']());}}}(a7_0x391c,0x783b8));var __decorate=this&&this[a7_0x230ec8(0x1cc)]||function(_0x37da2b,_0x341123,_0x33acaa,_0xbcdd){var _0x5ac6bb=a7_0x230ec8,_0x34341b=arguments[_0x5ac6bb(0x1e5)],_0x37efbf=_0x34341b<0x3?_0x341123:_0xbcdd===null?_0xbcdd=Object[_0x5ac6bb(0x1e3)](_0x341123,_0x33acaa):_0xbcdd,_0x389445;if(typeof Reflect===_0x5ac6bb(0x1cf)&&typeof Reflect[_0x5ac6bb(0x1e2)]===_0x5ac6bb(0x1df))_0x37efbf=Reflect[_0x5ac6bb(0x1e2)](_0x37da2b,_0x341123,_0x33acaa,_0xbcdd);else{for(var _0x196611=_0x37da2b[_0x5ac6bb(0x1e5)]-0x1;_0x196611>=0x0;_0x196611--)if(_0x389445=_0x37da2b[_0x196611])_0x37efbf=(_0x34341b<0x3?_0x389445(_0x37efbf):_0x34341b>0x3?_0x389445(_0x341123,_0x33acaa,_0x37efbf):_0x389445(_0x341123,_0x33acaa))||_0x37efbf;}return _0x34341b>0x3&&_0x37efbf&&Object[_0x5ac6bb(0x1dd)](_0x341123,_0x33acaa,_0x37efbf),_0x37efbf;},__metadata=this&&this[a7_0x230ec8(0x1d8)]||function(_0x8c12a4,_0x218956){var _0x2f303e=a7_0x230ec8;if(typeof Reflect==='object'&&typeof Reflect[_0x2f303e(0x1dc)]===_0x2f303e(0x1df))return Reflect[_0x2f303e(0x1dc)](_0x8c12a4,_0x218956);};Object['defineProperty'](exports,a7_0x230ec8(0x1e1),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}ApiError[a7_0x230ec8(0x1ce)]=0x18a89,ApiError[a7_0x230ec8(0x1d4)]=0x18a8a,ApiError[a7_0x230ec8(0x1de)]=0x18a8b,ApiError[a7_0x230ec8(0x1d7)]=0x18a8c,ApiError[a7_0x230ec8(0x1cb)]=0x18a8d,__decorate([AnnErrorMsg(a7_0x230ec8(0x1d2)),__metadata(a7_0x230ec8(0x1d5),Object)],ApiError,a7_0x230ec8(0x1ce),void 0x0),__decorate([AnnErrorMsg(a7_0x230ec8(0x1e6)),__metadata(a7_0x230ec8(0x1d5),Object)],ApiError,a7_0x230ec8(0x1d4),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a7_0x230ec8(0x1d5),Object)],ApiError,a7_0x230ec8(0x1de),void 0x0),__decorate([AnnErrorMsg(a7_0x230ec8(0x1d3)),__metadata('design:type',Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a7_0x230ec8(0x1ca)),__metadata(a7_0x230ec8(0x1d5),Object)],ApiError,a7_0x230ec8(0x1cb),void 0x0),exports['ApiError']=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a8_0x3b71(_0x52fdde,_0x3a248e){const _0x5df924=a8_0x5df9();return a8_0x3b71=function(_0x3b7187,_0x3c5a48){_0x3b7187=_0x3b7187-0x1a4;let _0x4b63c2=_0x5df924[_0x3b7187];return _0x4b63c2;},a8_0x3b71(_0x52fdde,_0x3a248e);}const a8_0x25d096=a8_0x3b71;(function(_0x125da9,_0x52fe60){const _0x4e2b63=a8_0x3b71,_0x47456e=_0x125da9();while(!![]){try{const _0x305918=-parseInt(_0x4e2b63(0x201))/0x1+parseInt(_0x4e2b63(0x1a6))/0x2*(-parseInt(_0x4e2b63(0x1ff))/0x3)+parseInt(_0x4e2b63(0x1b4))/0x4+parseInt(_0x4e2b63(0x1e9))/0x5*(parseInt(_0x4e2b63(0x1b9))/0x6)+-parseInt(_0x4e2b63(0x1b8))/0x7+parseInt(_0x4e2b63(0x1e5))/0x8+-parseInt(_0x4e2b63(0x1b0))/0x9*(parseInt(_0x4e2b63(0x1c3))/0xa);if(_0x305918===_0x52fe60)break;else _0x47456e['push'](_0x47456e['shift']());}catch(_0x12f43d){_0x47456e['push'](_0x47456e['shift']());}}}(a8_0x5df9,0x22d74));Object[a8_0x25d096(0x1e3)](exports,a8_0x25d096(0x1ee),{'value':!![]}),exports[a8_0x25d096(0x1e4)]=void 0x0;const lodash_1=require(a8_0x25d096(0x1e6)),validator_1=require(a8_0x25d096(0x1e8)),decorator_1=require(a8_0x25d096(0x1da)),decorator_2=require(a8_0x25d096(0x1da)),decorator_3=require(a8_0x25d096(0x1da)),action_1=require(a8_0x25d096(0x1f7));function getRoutes(_0x201495={'prefix':'/','module':![]}){const _0x356534=a8_0x25d096;var _0x371590,_0x98d843;const _0x3b033f=(0x0,decorator_3[_0x356534(0x1c6)])(action_1[_0x356534(0x1ab)]),_0x2a98da={},_0x51c337=Array[_0x356534(0x1d0)](_0x201495['filter']||[])?_0x201495[_0x356534(0x1d3)]||[]:[_0x201495[_0x356534(0x1d3)]];_0x157c63:for(const _0x541f71 of _0x3b033f){let _0xa7001f=(0x0,decorator_3[_0x356534(0x1ca)])(action_1[_0x356534(0x1ab)],_0x541f71),_0x2d1150=(0x0,decorator_3[_0x356534(0x1ca)])(action_1[_0x356534(0x1c2)],_0x541f71);if(_0xa7001f&&_0x2d1150){let _0x3e092a=_0xa7001f[_0x356534(0x200)],_0x35ff74={};if(_0x201495['module']&&(0x0,lodash_1['get'])(_0xa7001f,_0x356534(0x1f4),![])!=_0x201495['module'])continue _0x157c63;else{if(_0x201495[_0x356534(0x1f4)]===![]&&!!(0x0,lodash_1[_0x356534(0x1cd)])(_0xa7001f,_0x356534(0x1f4),null))continue _0x157c63;}if(_0x201495[_0x356534(0x200)]&&!_0x3e092a[_0x356534(0x1aa)](_0x201495[_0x356534(0x200)]))continue _0x157c63;_0x3e092a!=='/'?(_0x35ff74[_0x356534(0x1ae)]=(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f['routerOptions'][_0x356534(0x1d8)])||(/^\//[_0x356534(0x202)](_0x3e092a)?_0x3e092a[_0x356534(0x1be)]('/')[0x1]:_0x3e092a),_0x35ff74[_0x356534(0x1d6)]=(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f[_0x356534(0x1b6)][_0x356534(0x1d6)])||_0x35ff74['summary'],_0x35ff74[_0x356534(0x1c9)]=[]):(_0x35ff74['summary']=(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f['routerOptions']['tagName'])||'default',_0x35ff74[_0x356534(0x1d6)]=(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f['routerOptions'][_0x356534(0x1d6)])||'',_0x35ff74[_0x356534(0x1c9)]=[]);_0x201495['filepath']&&(_0x35ff74['filepath']=_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f[_0x356534(0x1ad)]);(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f[_0x356534(0x1c7)])&&(_0x35ff74[_0x356534(0x200)]=_0xa7001f[_0x356534(0x1c7)]);(_0xa7001f===null||_0xa7001f===void 0x0?void 0x0:_0xa7001f['module'])&&(_0x35ff74[_0x356534(0x1f4)]=_0xa7001f['module']);let _0x4f35b5=(0x0,decorator_3['getClassMetadata'])(decorator_2['INJECT_CUSTOM_PARAM'],_0x541f71)||{};if(typeof _0x2d1150[Symbol[_0x356534(0x1a7)]]===_0x356534(0x1d5))for(let _0x436f13 of _0x2d1150){let _0x210d7b={};_0x210d7b[_0x356534(0x1ea)]=_0x436f13[_0x356534(0x1de)],_0x210d7b[_0x356534(0x1f8)]=(_0x3e092a+_0x436f13['path'])[_0x356534(0x1fb)](/\/{1,}/,'/'),_0x210d7b[_0x356534(0x1ae)]=(_0x436f13===null||_0x436f13===void 0x0?void 0x0:_0x436f13[_0x356534(0x1c1)])||_0x35ff74[_0x356534(0x1ae)]||_0x356534(0x1af),_0x210d7b[_0x356534(0x1d6)]=(_0x436f13===null||_0x436f13===void 0x0?void 0x0:_0x436f13[_0x356534(0x1d6)])||'',_0x210d7b['request']=[];if(!(0x0,lodash_1['startsWith'])(_0x210d7b[_0x356534(0x1f8)],'static/apitest')&&!(0x0,lodash_1[_0x356534(0x1aa)])(_0x210d7b['route'],_0x356534(0x1c5))&&_0x51c337['indexOf'](_0x210d7b[_0x356534(0x1f8)])===-0x1){if(!(_0x201495===null||_0x201495===void 0x0?void 0x0:_0x201495[_0x356534(0x1fa)])){let _0x1131f3=(0x0,decorator_3[_0x356534(0x1b5)])(new _0x541f71(),_0x436f13[_0x356534(0x1ea)]);for(const _0x4c6e61 in _0x1131f3){let _0x20af2f=(_0x371590=_0x4f35b5[_0x436f13[_0x356534(0x1ea)]])===null||_0x371590===void 0x0?void 0x0:_0x371590[_0x356534(0x1ed)](_0x3a8c1d=>_0x3a8c1d[_0x356534(0x1b7)]==_0x4c6e61&&_0x3a8c1d['key']===decorator_2[_0x356534(0x1e2)]&&(_0x3a8c1d===null||_0x3a8c1d===void 0x0?void 0x0:_0x3a8c1d[_0x356534(0x1d1)]));if(_0x20af2f===null||_0x20af2f===void 0x0?void 0x0:_0x20af2f[_0x356534(0x1d1)]){let _0x148343=convertTypeToString(_0x20af2f[_0x356534(0x1d1)]['type']||0x0);if([_0x356534(0x1ec),_0x356534(0x1dc)][_0x356534(0x1c4)](_0x148343)!=-0x1&&_0x20af2f[_0x356534(0x1d1)][_0x356534(0x1d2)][_0x356534(0x1c4)](':')==-0x1&&!_0x210d7b['request'][_0x356534(0x1ed)](_0x31478f=>_0x31478f['key']==_0x20af2f['metadata'][_0x356534(0x1d2)]))_0x210d7b[_0x356534(0x1f9)][_0x356534(0x1a9)]({'key':_0x20af2f[_0x356534(0x1d1)][_0x356534(0x1d2)],'title':_0x20af2f[_0x356534(0x1d1)][_0x356534(0x1d2)],'type':convertSchemaType(_0x1131f3[_0x20af2f[_0x356534(0x1b7)]][_0x356534(0x1fe)]),'required':![],'default':'','desc':''});else{if(_0x148343==_0x356534(0x1ac)){let _0x2bd053=((_0x98d843=_0x20af2f===null||_0x20af2f===void 0x0?void 0x0:_0x20af2f[_0x356534(0x1d1)])===null||_0x98d843===void 0x0?void 0x0:_0x98d843[_0x356534(0x1d2)])||_0x356534(0x1ac);_0x2bd053[_0x356534(0x1c4)](':')==-0x1&&!_0x210d7b[_0x356534(0x1f9)][_0x356534(0x1ed)](_0x55387e=>_0x55387e[_0x356534(0x1bd)]==_0x2bd053&&_0x55387e[_0x356534(0x1f2)]==_0x356534(0x1ac))&&_0x210d7b['request'][_0x356534(0x1a9)]({'key':_0x2bd053,'title':_0x356534(0x1f6)+_0x2bd053,'type':_0x356534(0x1ac),'required':!![],'default':'','desc':''});}}}else{const _0x55f030=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0x356534(0x1e0)],_0x1131f3[_0x4c6e61]);_0x55f030&&_0x210d7b[_0x356534(0x1f9)][_0x356534(0x1a9)](...getJoiRequest(_0x55f030));}}}_0x35ff74[_0x356534(0x1c9)][_0x356534(0x1a9)](_0x210d7b);}}if(_0x35ff74[_0x356534(0x1c9)]['length']>0x0){let _0x3daaec=_0x2a98da[_0x3e092a];_0x3daaec?(_0x3daaec['summary']!=_0x35ff74[_0x356534(0x1ae)]&&(_0x3daaec[_0x356534(0x1ae)]=_0x3daaec[_0x356534(0x1ae)]+','+_0x35ff74['summary']),_0x3daaec[_0x356534(0x1d6)]!=_0x35ff74[_0x356534(0x1d6)]&&(_0x3daaec[_0x356534(0x1d6)]=_0x3daaec['description']+','+_0x35ff74[_0x356534(0x1d6)]),_0x3daaec['routes']=_0x3daaec[_0x356534(0x1c9)]['concat'](_0x35ff74['routes']),_0x2a98da[_0x3e092a]=_0x3daaec):_0x2a98da[_0x3e092a]=_0x35ff74;}}}return _0x2a98da;}function a8_0x5df9(){const _0x449ca6=['title','name','1479NDXBWi','prefix','218684Iyxnoh','test','flags.label','header','92uWEbLf','iterator','limit','push','startsWith','ACTION_KEY','file','filepath','summary','default','558AqhrAE','Boolean','keys','args','267904mVgSxi','getMethodParamTypes','routerOptions','parameterIndex','39389VqMuqn','54hVPZNC','rules','RouteParamTypes','-array','key','split','PARAM','HEADERS','routerName','ACTION_ROUTE_KEY','16210BLGiei','indexOf','/static/apitest','listModule','pprefix','min','routes','getClassMetadata','Object','path','get','FIELDS','Number','isArray','metadata','propertyData','filter','items','function','description','describe','tagName','BODY','@midwayjs/decorator','String','body','number','requestMethod','allow','RULES_KEY','boolean','WEB_ROUTER_PARAM_KEY','defineProperty','getRoutes','1872992mxTxRC','lodash','string','@anncic-api/validator','105055GgUyXA','method','只允许:[','query','find','__esModule','object','QUERY','flags.presence','type','length','module','flags.description','文件上传-','../types/action','route','request','noreq','replace','max'];a8_0x5df9=function(){return _0x449ca6;};return a8_0x5df9();}exports[a8_0x25d096(0x1e4)]=getRoutes;function getJoiRequest(_0x285912){const _0xbbda5a=a8_0x25d096,_0x2d042e=[];for(let _0x2387f3 in _0x285912){const _0x4338f2={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xbbba4f=typeof _0x285912[_0x2387f3][_0xbbda5a(0x1d7)]==_0xbbda5a(0x1d5)?_0x285912[_0x2387f3][_0xbbda5a(0x1d7)]():_0x285912[_0x2387f3];_0x4338f2[_0xbbda5a(0x1bd)]=_0x2387f3,_0x4338f2[_0xbbda5a(0x1f2)]=_0xbbba4f[_0xbbda5a(0x1f2)],_0x4338f2[_0xbbda5a(0x1fd)]=(0x0,lodash_1[_0xbbda5a(0x1cd)])(_0xbbba4f,_0xbbda5a(0x1a4),_0x2387f3),_0x4338f2[_0xbbda5a(0x1af)]=(0x0,lodash_1[_0xbbda5a(0x1cd)])(_0xbbba4f,'flags.default',''),_0x4338f2['required']=(0x0,lodash_1['get'])(_0xbbba4f,_0xbbda5a(0x1f1),'')=='required',_0x4338f2['description']=(0x0,lodash_1['get'])(_0xbbba4f,_0xbbda5a(0x1f5),'');if(_0xbbba4f['type']=='object')_0x4338f2['children']=getJoiRequest(_0xbbba4f[_0xbbda5a(0x1b2)]);else _0xbbba4f[_0xbbda5a(0x1f2)]=='array'&&_0xbbba4f[_0xbbda5a(0x1d4)]&&Array['isArray'](_0xbbba4f[_0xbbda5a(0x1d4)])&&_0xbbba4f[_0xbbda5a(0x1d4)][0x0]&&console['log'](_0x2387f3+_0xbbda5a(0x1bc),_0xbbba4f);_0xbbba4f[_0xbbda5a(0x1df)]&&Array[_0xbbda5a(0x1d0)](_0xbbba4f['allow'])&&_0xbbba4f[_0xbbda5a(0x1df)][_0xbbda5a(0x1f3)]>0x0&&(_0x4338f2[_0xbbda5a(0x1d6)]=_0xbbda5a(0x1eb)+_0xbbba4f[_0xbbda5a(0x1df)]['join'](',')+'];'+_0x4338f2['description']);if(_0x4338f2['key']&&_0x4338f2[_0xbbda5a(0x1f2)]){const _0x1ca9af={};for(const _0x27141d of _0xbbba4f['rules']||[]){if(_0x27141d[_0xbbda5a(0x1fe)]===_0xbbda5a(0x1c8)&&_0x27141d[_0xbbda5a(0x1b3)])_0x1ca9af[_0xbbda5a(0x1c8)]=_0x27141d[_0xbbda5a(0x1b3)][_0xbbda5a(0x1a8)];else _0x27141d[_0xbbda5a(0x1fe)]===_0xbbda5a(0x1fc)&&(_0x1ca9af[_0xbbda5a(0x1fc)]=_0x27141d['args'][_0xbbda5a(0x1a8)]);}_0x4338f2[_0xbbda5a(0x1ba)]=_0x1ca9af;}_0x4338f2[_0xbbda5a(0x1bd)]&&_0x4338f2[_0xbbda5a(0x1fd)]&&_0x2d042e[_0xbbda5a(0x1a9)](_0x4338f2);}return _0x2d042e;}function convertSchemaType(_0x8d5587){const _0x40ebe1=a8_0x25d096;switch(_0x8d5587){case _0x40ebe1(0x1cb):return _0x40ebe1(0x1ef);case _0x40ebe1(0x1b1):return _0x40ebe1(0x1e1);case _0x40ebe1(0x1cf):return _0x40ebe1(0x1dd);case _0x40ebe1(0x1db):return _0x40ebe1(0x1e7);case'File':return _0x40ebe1(0x1ac);default:return _0x40ebe1(0x1e7);}}function convertTypeToString(_0x536b8b){const _0x20de4e=a8_0x25d096;switch(_0x536b8b){case decorator_1[_0x20de4e(0x1bb)][_0x20de4e(0x1c0)]:return _0x20de4e(0x1a5);case decorator_1[_0x20de4e(0x1bb)][_0x20de4e(0x1f0)]:return _0x20de4e(0x1ec);case decorator_1[_0x20de4e(0x1bb)][_0x20de4e(0x1bf)]:return _0x20de4e(0x1cc);case decorator_1[_0x20de4e(0x1bb)][_0x20de4e(0x1d9)]:return _0x20de4e(0x1dc);case decorator_1[_0x20de4e(0x1bb)][_0x20de4e(0x1ce)]:case decorator_1[_0x20de4e(0x1bb)]['FILESSTREAM']:case decorator_1[_0x20de4e(0x1bb)]['FILESTREAM']:return _0x20de4e(0x1ac);default:return'header';}}
|
|
1
|
+
'use strict';const a8_0x1349e1=a8_0x275a;(function(_0x30868c,_0x12eaa1){const _0x4f84ac=a8_0x275a,_0x24b0d0=_0x30868c();while(!![]){try{const _0x3f5a49=-parseInt(_0x4f84ac(0x177))/0x1+-parseInt(_0x4f84ac(0x1a5))/0x2+parseInt(_0x4f84ac(0x19b))/0x3*(parseInt(_0x4f84ac(0x1b1))/0x4)+-parseInt(_0x4f84ac(0x17d))/0x5+-parseInt(_0x4f84ac(0x185))/0x6*(parseInt(_0x4f84ac(0x1ac))/0x7)+parseInt(_0x4f84ac(0x186))/0x8+parseInt(_0x4f84ac(0x1bc))/0x9;if(_0x3f5a49===_0x12eaa1)break;else _0x24b0d0['push'](_0x24b0d0['shift']());}catch(_0x4c569b){_0x24b0d0['push'](_0x24b0d0['shift']());}}}(a8_0x4034,0x97971));function a8_0x275a(_0x20e747,_0x11828f){const _0x4034dc=a8_0x4034();return a8_0x275a=function(_0x275a7d,_0x19fa84){_0x275a7d=_0x275a7d-0x169;let _0x384e08=_0x4034dc[_0x275a7d];return _0x384e08;},a8_0x275a(_0x20e747,_0x11828f);}Object[a8_0x1349e1(0x16c)](exports,a8_0x1349e1(0x198),{'value':!![]}),exports[a8_0x1349e1(0x1ad)]=void 0x0;const lodash_1=require(a8_0x1349e1(0x16f)),validator_1=require(a8_0x1349e1(0x1a1)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x1349e1(0x174)),decorator_3=require(a8_0x1349e1(0x174)),action_1=require(a8_0x1349e1(0x191));function getRoutes(_0xe1a3e={'prefix':'/','module':![]}){const _0x568abd=a8_0x1349e1;var _0x49fe82,_0x2bef0a;const _0x2c1936=(0x0,decorator_3[_0x568abd(0x179)])(action_1[_0x568abd(0x1b3)]),_0x3cb96f={},_0x5aeb56=Array[_0x568abd(0x178)](_0xe1a3e[_0x568abd(0x189)]||[])?_0xe1a3e['filter']||[]:[_0xe1a3e['filter']];_0x276e74:for(const _0x152588 of _0x2c1936){let _0x636bc8=(0x0,decorator_3[_0x568abd(0x1b7)])(action_1[_0x568abd(0x1b3)],_0x152588),_0x3f0671=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x152588);if(_0x636bc8&&_0x3f0671){let _0x51bf1b=_0x636bc8[_0x568abd(0x1b5)],_0x36eb3b={};if(_0xe1a3e['module']&&(0x0,lodash_1[_0x568abd(0x1bd)])(_0x636bc8,_0x568abd(0x1ba),![])!=_0xe1a3e[_0x568abd(0x1ba)])continue _0x276e74;else{if(_0xe1a3e[_0x568abd(0x1ba)]===![]&&!!(0x0,lodash_1['get'])(_0x636bc8,_0x568abd(0x1ba),null))continue _0x276e74;}if(_0xe1a3e[_0x568abd(0x1b5)]&&!_0x51bf1b['startsWith'](_0xe1a3e[_0x568abd(0x1b5)]))continue _0x276e74;_0x51bf1b!=='/'?(_0x36eb3b[_0x568abd(0x194)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x19d)])||(/^\//[_0x568abd(0x173)](_0x51bf1b)?_0x51bf1b[_0x568abd(0x193)]('/')[0x1]:_0x51bf1b),_0x36eb3b[_0x568abd(0x1b6)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x1b6)])||_0x36eb3b[_0x568abd(0x194)],_0x36eb3b[_0x568abd(0x19e)]=[]):(_0x36eb3b['summary']=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8['routerOptions'][_0x568abd(0x19d)])||_0x568abd(0x197),_0x36eb3b[_0x568abd(0x1b6)]=(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1a0)][_0x568abd(0x1b6)])||'',_0x36eb3b[_0x568abd(0x19e)]=[]);_0xe1a3e[_0x568abd(0x1bf)]&&(_0x36eb3b[_0x568abd(0x1bf)]=_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1bf)]);(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1be)])&&(_0x36eb3b[_0x568abd(0x1b5)]=_0x636bc8[_0x568abd(0x1be)]);(_0x636bc8===null||_0x636bc8===void 0x0?void 0x0:_0x636bc8[_0x568abd(0x1ba)])&&(_0x36eb3b[_0x568abd(0x1ba)]=_0x636bc8[_0x568abd(0x1ba)]);let _0x579a6e=(0x0,decorator_3[_0x568abd(0x1b7)])(decorator_2[_0x568abd(0x187)],_0x152588)||{};if(typeof _0x3f0671[Symbol['iterator']]===_0x568abd(0x18c))for(let _0x58b696 of _0x3f0671){let _0x45fac={};_0x45fac[_0x568abd(0x17c)]=_0x58b696['requestMethod'],_0x45fac[_0x568abd(0x188)]=(_0x51bf1b+_0x58b696[_0x568abd(0x1c5)])[_0x568abd(0x190)](/\/{1,}/,'/'),_0x45fac[_0x568abd(0x194)]=(_0x58b696===null||_0x58b696===void 0x0?void 0x0:_0x58b696[_0x568abd(0x1c2)])||_0x36eb3b[_0x568abd(0x194)]||_0x568abd(0x197),_0x45fac['description']=(_0x58b696===null||_0x58b696===void 0x0?void 0x0:_0x58b696[_0x568abd(0x1b6)])||'',_0x45fac[_0x568abd(0x18d)]=[];if(!(0x0,lodash_1[_0x568abd(0x176)])(_0x45fac[_0x568abd(0x188)],_0x568abd(0x175))&&!(0x0,lodash_1['startsWith'])(_0x45fac[_0x568abd(0x188)],_0x568abd(0x1c7))&&_0x5aeb56['indexOf'](_0x45fac[_0x568abd(0x188)])===-0x1){if(!(_0xe1a3e===null||_0xe1a3e===void 0x0?void 0x0:_0xe1a3e['noreq'])){let _0x3c105e=(0x0,decorator_3[_0x568abd(0x18a)])(new _0x152588(),_0x58b696[_0x568abd(0x17c)]);for(const _0x352a8e in _0x3c105e){let _0x513e02=(_0x49fe82=_0x579a6e[_0x58b696[_0x568abd(0x17c)]])===null||_0x49fe82===void 0x0?void 0x0:_0x49fe82[_0x568abd(0x170)](_0x1cfeb4=>_0x1cfeb4[_0x568abd(0x195)]==_0x352a8e&&_0x1cfeb4[_0x568abd(0x1c1)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x1cfeb4===null||_0x1cfeb4===void 0x0?void 0x0:_0x1cfeb4[_0x568abd(0x182)]));if(_0x513e02===null||_0x513e02===void 0x0?void 0x0:_0x513e02['metadata']){let _0x127c87=convertTypeToString(_0x513e02['metadata'][_0x568abd(0x16b)]||0x0);if(['query',_0x568abd(0x18e)][_0x568abd(0x1c3)](_0x127c87)!=-0x1&&_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)]['indexOf'](':')==-0x1&&!_0x45fac[_0x568abd(0x18d)][_0x568abd(0x170)](_0x2f7236=>_0x2f7236[_0x568abd(0x1c1)]==_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)]))_0x45fac[_0x568abd(0x18d)]['push']({'key':_0x513e02[_0x568abd(0x182)][_0x568abd(0x1ab)],'title':_0x513e02[_0x568abd(0x182)]['propertyData'],'type':convertSchemaType(_0x3c105e[_0x513e02[_0x568abd(0x195)]][_0x568abd(0x180)]),'required':![],'default':'','desc':''});else{if(_0x127c87==_0x568abd(0x1a7)){let _0x15f379=((_0x2bef0a=_0x513e02===null||_0x513e02===void 0x0?void 0x0:_0x513e02[_0x568abd(0x182)])===null||_0x2bef0a===void 0x0?void 0x0:_0x2bef0a[_0x568abd(0x1ab)])||_0x568abd(0x1a7);_0x15f379['indexOf'](':')==-0x1&&!_0x45fac['request']['find'](_0x3b4a20=>_0x3b4a20[_0x568abd(0x1c1)]==_0x15f379&&_0x3b4a20[_0x568abd(0x16b)]==_0x568abd(0x1a7))&&_0x45fac['request'][_0x568abd(0x172)]({'key':_0x15f379,'title':'文件上传-'+_0x15f379,'type':_0x568abd(0x1a7),'required':!![],'default':'','desc':''});}}}else{const _0x3febd8=(0x0,decorator_3[_0x568abd(0x192)])(validator_1[_0x568abd(0x1b4)],_0x3c105e[_0x352a8e]);_0x3febd8&&_0x45fac['request'][_0x568abd(0x172)](...getJoiRequest(_0x3febd8));}}}_0x36eb3b['routes'][_0x568abd(0x172)](_0x45fac);}}if(_0x36eb3b[_0x568abd(0x19e)][_0x568abd(0x1b2)]>0x0){let _0x2ef07f=_0x3cb96f[_0x51bf1b];_0x2ef07f?(_0x2ef07f[_0x568abd(0x194)]!=_0x36eb3b['summary']&&(_0x2ef07f['summary']=_0x2ef07f['summary']+','+_0x36eb3b[_0x568abd(0x194)]),_0x2ef07f[_0x568abd(0x1b6)]!=_0x36eb3b[_0x568abd(0x1b6)]&&(_0x2ef07f[_0x568abd(0x1b6)]=_0x2ef07f['description']+','+_0x36eb3b[_0x568abd(0x1b6)]),_0x2ef07f['routes']=_0x2ef07f['routes'][_0x568abd(0x1a9)](_0x36eb3b['routes']),_0x3cb96f[_0x51bf1b]=_0x2ef07f):_0x3cb96f[_0x51bf1b]=_0x36eb3b;}}}return _0x3cb96f;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x5c8362){const _0x22076b=a8_0x1349e1,_0x5688b8=[];for(let _0x11d2db in _0x5c8362){const _0x14ff65={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x34c7a5=typeof _0x5c8362[_0x11d2db]['describe']=='function'?_0x5c8362[_0x11d2db][_0x22076b(0x16a)]():_0x5c8362[_0x11d2db];_0x14ff65[_0x22076b(0x1c1)]=_0x11d2db,_0x14ff65['type']=_0x34c7a5['type'],_0x14ff65[_0x22076b(0x1b8)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,_0x22076b(0x18f),_0x11d2db),_0x14ff65[_0x22076b(0x197)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,'flags.default',''),_0x14ff65[_0x22076b(0x1b9)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,'flags.presence','')==_0x22076b(0x1b9),_0x14ff65[_0x22076b(0x1b6)]=(0x0,lodash_1[_0x22076b(0x1bd)])(_0x34c7a5,_0x22076b(0x19a),'');if(_0x34c7a5[_0x22076b(0x16b)]==_0x22076b(0x181))_0x14ff65[_0x22076b(0x1c4)]=getJoiRequest(_0x34c7a5[_0x22076b(0x19f)]);else _0x34c7a5[_0x22076b(0x16b)]==_0x22076b(0x16d)&&_0x34c7a5[_0x22076b(0x1ae)]&&Array[_0x22076b(0x178)](_0x34c7a5['items'])&&_0x34c7a5[_0x22076b(0x1ae)][0x0]&&console[_0x22076b(0x19c)](_0x11d2db+_0x22076b(0x171),_0x34c7a5);_0x34c7a5[_0x22076b(0x1af)]&&Array[_0x22076b(0x178)](_0x34c7a5['allow'])&&_0x34c7a5[_0x22076b(0x1af)][_0x22076b(0x1b2)]>0x0&&(_0x14ff65['description']=_0x22076b(0x17a)+_0x34c7a5['allow'][_0x22076b(0x17b)](',')+'];'+_0x14ff65[_0x22076b(0x1b6)]);if(_0x14ff65['key']&&_0x14ff65[_0x22076b(0x16b)]){const _0x54d69d={};for(const _0xfcf55a of _0x34c7a5[_0x22076b(0x17f)]||[]){if(_0xfcf55a[_0x22076b(0x180)]===_0x22076b(0x16e)&&_0xfcf55a['args'])_0x54d69d[_0x22076b(0x16e)]=_0xfcf55a[_0x22076b(0x199)][_0x22076b(0x1b0)];else _0xfcf55a[_0x22076b(0x180)]===_0x22076b(0x1c6)&&(_0x54d69d[_0x22076b(0x1c6)]=_0xfcf55a[_0x22076b(0x199)]['limit']);}_0x14ff65[_0x22076b(0x17f)]=_0x54d69d;}_0x14ff65[_0x22076b(0x1c1)]&&_0x14ff65[_0x22076b(0x1b8)]&&_0x5688b8[_0x22076b(0x172)](_0x14ff65);}return _0x5688b8;}function convertSchemaType(_0x5a206b){const _0xf80bc9=a8_0x1349e1;switch(_0x5a206b){case'Object':return _0xf80bc9(0x181);case _0xf80bc9(0x17e):return _0xf80bc9(0x1bb);case _0xf80bc9(0x1a8):return _0xf80bc9(0x18b);case _0xf80bc9(0x1a3):return _0xf80bc9(0x169);case _0xf80bc9(0x183):return'file';default:return'string';}}function convertTypeToString(_0x232746){const _0x2bc746=a8_0x1349e1;switch(_0x232746){case decorator_1[_0x2bc746(0x1a6)]['HEADERS']:return _0x2bc746(0x1a2);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x1aa)]:return _0x2bc746(0x1c0);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x1a4)]:return _0x2bc746(0x1c5);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x184)]:return _0x2bc746(0x18e);case decorator_1[_0x2bc746(0x1a6)][_0x2bc746(0x196)]:case decorator_1[_0x2bc746(0x1a6)]['FILESSTREAM']:case decorator_1['RouteParamTypes']['FILESTREAM']:return _0x2bc746(0x1a7);default:return _0x2bc746(0x1a2);}}function a8_0x4034(){const _0x270a12=['method','2190410sSMJVQ','Boolean','rules','name','object','metadata','File','BODY','819294fZDynR','7188208Tgiund','INJECT_CUSTOM_PARAM','route','filter','getMethodParamTypes','number','function','request','body','flags.label','replace','../types/action','getClassExtendedMetadata','split','summary','parameterIndex','FIELDS','default','__esModule','args','flags.description','633juhcGM','log','tagName','routes','keys','routerOptions','@anncic-api/validator','header','String','PARAM','2114024PhooSm','RouteParamTypes','file','Number','concat','QUERY','propertyData','14MNFCQu','getRoutes','items','allow','limit','13096CRyYND','length','ACTION_KEY','RULES_KEY','prefix','description','getClassMetadata','title','required','module','boolean','9566595FrRVDc','get','pprefix','filepath','query','key','routerName','indexOf','children','path','max','/static/apitest','string','describe','type','defineProperty','array','min','lodash','find','-array','push','test','@midwayjs/decorator','static/apitest','startsWith','263190VMeELg','isArray','listModule','只允许:[','join'];a8_0x4034=function(){return _0x270a12;};return a8_0x4034();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a9_0x106f(_0x20aedb,_0x2c1981){var _0x8b5a5a=a9_0x8b5a();return a9_0x106f=function(_0x106fbc,_0x5e536a){_0x106fbc=_0x106fbc-0x1d7;var _0x5beb0e=_0x8b5a5a[_0x106fbc];return _0x5beb0e;},a9_0x106f(_0x20aedb,_0x2c1981);}var a9_0x4de0d4=a9_0x106f;(function(_0xd43318,_0x41ce57){var _0x2e0637=a9_0x106f,_0x3483b3=_0xd43318();while(!![]){try{var _0x1e1345=parseInt(_0x2e0637(0x1f8))/0x1*(-parseInt(_0x2e0637(0x1f2))/0x2)+-parseInt(_0x2e0637(0x206))/0x3*(parseInt(_0x2e0637(0x1e3))/0x4)+-parseInt(_0x2e0637(0x1f5))/0x5+parseInt(_0x2e0637(0x1da))/0x6+parseInt(_0x2e0637(0x1f6))/0x7+parseInt(_0x2e0637(0x1ef))/0x8*(-parseInt(_0x2e0637(0x1ff))/0x9)+parseInt(_0x2e0637(0x20c))/0xa;if(_0x1e1345===_0x41ce57)break;else _0x3483b3['push'](_0x3483b3['shift']());}catch(_0x42adf1){_0x3483b3['push'](_0x3483b3['shift']());}}}(a9_0x8b5a,0xe6e8a));var __createBinding=this&&this[a9_0x4de0d4(0x1f9)]||(Object[a9_0x4de0d4(0x1f7)]?function(_0x26ddd1,_0x61dec9,_0x4391d6,_0x11afe6){var _0x20d573=a9_0x4de0d4;if(_0x11afe6===undefined)_0x11afe6=_0x4391d6;var _0xc0d1f=Object[_0x20d573(0x1e5)](_0x61dec9,_0x4391d6);(!_0xc0d1f||(_0x20d573(0x1f4)in _0xc0d1f?!_0x61dec9[_0x20d573(0x20f)]:_0xc0d1f[_0x20d573(0x209)]||_0xc0d1f[_0x20d573(0x1d7)]))&&(_0xc0d1f={'enumerable':!![],'get':function(){return _0x61dec9[_0x4391d6];}}),Object[_0x20d573(0x1e0)](_0x26ddd1,_0x11afe6,_0xc0d1f);}:function(_0x1ead1e,_0x3ccae5,_0x483ff6,_0x364b37){if(_0x364b37===undefined)_0x364b37=_0x483ff6;_0x1ead1e[_0x364b37]=_0x3ccae5[_0x483ff6];}),__exportStar=this&&this[a9_0x4de0d4(0x1e7)]||function(_0x471bf1,_0x2c438a){var _0x5c00c5=a9_0x4de0d4;for(var _0x26d6dc in _0x471bf1)if(_0x26d6dc!=='default'&&!Object[_0x5c00c5(0x210)][_0x5c00c5(0x1df)][_0x5c00c5(0x1db)](_0x2c438a,_0x26d6dc))__createBinding(_0x2c438a,_0x471bf1,_0x26d6dc);};Object['defineProperty'](exports,a9_0x4de0d4(0x20f),{'value':!![]}),exports[a9_0x4de0d4(0x1eb)]=exports[a9_0x4de0d4(0x1dc)]=exports[a9_0x4de0d4(0x1f1)]=exports[a9_0x4de0d4(0x1fc)]=exports[a9_0x4de0d4(0x1e2)]=exports['Config']=exports[a9_0x4de0d4(0x1e8)]=exports[a9_0x4de0d4(0x1fe)]=exports[a9_0x4de0d4(0x205)]=exports[a9_0x4de0d4(0x1ea)]=exports['Param']=exports[a9_0x4de0d4(0x1ed)]=exports[a9_0x4de0d4(0x1fd)]=exports[a9_0x4de0d4(0x20a)]=exports[a9_0x4de0d4(0x1ee)]=exports[a9_0x4de0d4(0x1ec)]=exports[a9_0x4de0d4(0x1e6)]=exports['ValidatorError']=exports[a9_0x4de0d4(0x1f3)]=exports[a9_0x4de0d4(0x1d9)]=exports[a9_0x4de0d4(0x208)]=exports[a9_0x4de0d4(0x204)]=exports[a9_0x4de0d4(0x1e1)]=exports['ApiError']=exports['Apitest']=exports[a9_0x4de0d4(0x1e4)]=exports[a9_0x4de0d4(0x1fb)]=exports[a9_0x4de0d4(0x200)]=void 0x0,__exportStar(require(a9_0x4de0d4(0x1f0)),exports),__exportStar(require(a9_0x4de0d4(0x1e9)),exports);var getRoutes_1=require(a9_0x4de0d4(0x201));Object['defineProperty'](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x79f96=a9_0x4de0d4;return getRoutes_1[_0x79f96(0x200)];}});var ActionApi_1=require(a9_0x4de0d4(0x1fa));Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1fb),{'enumerable':!![],'get':function(){var _0x608546=a9_0x4de0d4;return ActionApi_1[_0x608546(0x1fb)];}});var Action_1=require(a9_0x4de0d4(0x207));Object['defineProperty'](exports,'Action',{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x203),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var ApiError_1=require('./exception/ApiError');Object['defineProperty'](exports,a9_0x4de0d4(0x20e),{'enumerable':!![],'get':function(){var _0x200214=a9_0x4de0d4;return ApiError_1[_0x200214(0x20e)];}});var task_1=require('@midwayjs/task');Object[a9_0x4de0d4(0x1e0)](exports,'QueueService',{'enumerable':!![],'get':function(){var _0x5e654f=a9_0x4de0d4;return task_1[_0x5e654f(0x1e1)];}});var cache_1=require('@anncic-api/cache');Object['defineProperty'](exports,a9_0x4de0d4(0x204),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require('@anncic-api/event');Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x208),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x4de0d4(0x202));Object['defineProperty'](exports,a9_0x4de0d4(0x1d9),{'enumerable':!![],'get':function(){var _0x14113b=a9_0x4de0d4;return ApiService_1[_0x14113b(0x1d9)];}});function a9_0x8b5a(){var _0x145b9d=['App','./service/ApitestService','Query','ScopeEnum','Configuration','Body','File','3064CicCeS','./types/common','Inject','1858166ikYVAQ','ExcelService','get','1689945kHaayY','469637HvOiEq','create','2fkaXJo','__createBinding','./decorator/ActionApi','Api','Provide','Fields','Init','12987ZUxvub','getRoutes','./helper/getRoutes','./service/ApiService','Apitest','CacheService','Headers','563289BoucqW','./decorator/Action','EventService','writable','Files','ValidatorError','39874010zcuigV','Param','ApiError','__esModule','prototype','configurable','CustomConfiguration','ApiService','7980006tPMDUL','call','Scope','@midwayjs/decorator','@anncic-api/validator','hasOwnProperty','defineProperty','QueueService','Logger','36QtkbXr','Action','getOwnPropertyDescriptor','ValidatorService','__exportStar'];a9_0x8b5a=function(){return _0x145b9d;};return a9_0x8b5a();}var ExcelService_1=require('./service/ExcelService');Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1f3),{'enumerable':!![],'get':function(){var _0x2c5e9a=a9_0x4de0d4;return ExcelService_1[_0x2c5e9a(0x1f3)];}});var validator_1=require(a9_0x4de0d4(0x1de));Object[a9_0x4de0d4(0x1e0)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x28685f=a9_0x4de0d4;return validator_1[_0x28685f(0x20b)];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1e6),{'enumerable':!![],'get':function(){var _0x38af25=a9_0x4de0d4;return validator_1[_0x38af25(0x1e6)];}});var configuration_1=require('./configuration');Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1ec),{'enumerable':!![],'get':function(){var _0x4bf6ba=a9_0x4de0d4;return configuration_1[_0x4bf6ba(0x1d8)];}});var decorator_1=require(a9_0x4de0d4(0x1dd));Object['defineProperty'](exports,a9_0x4de0d4(0x1ee),{'enumerable':!![],'get':function(){var _0x17635c=a9_0x4de0d4;return decorator_1[_0x17635c(0x1ee)];}}),Object['defineProperty'](exports,a9_0x4de0d4(0x20a),{'enumerable':!![],'get':function(){var _0x4adcd5=a9_0x4de0d4;return decorator_1[_0x4adcd5(0x20a)];}}),Object['defineProperty'](exports,a9_0x4de0d4(0x1fd),{'enumerable':!![],'get':function(){return decorator_1['Fields'];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1ed),{'enumerable':!![],'get':function(){return decorator_1['Body'];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x20d),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1ea),{'enumerable':!![],'get':function(){var _0x226b9b=a9_0x4de0d4;return decorator_1[_0x226b9b(0x1ea)];}}),Object[a9_0x4de0d4(0x1e0)](exports,'Headers',{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object[a9_0x4de0d4(0x1e0)](exports,'Init',{'enumerable':!![],'get':function(){return decorator_1['Init'];}});var decorator_2=require(a9_0x4de0d4(0x1dd));Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1e8),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object['defineProperty'](exports,'Config',{'enumerable':!![],'get':function(){return decorator_2['Config'];}}),Object['defineProperty'](exports,'Logger',{'enumerable':!![],'get':function(){var _0x5c0718=a9_0x4de0d4;return decorator_2[_0x5c0718(0x1e2)];}}),Object[a9_0x4de0d4(0x1e0)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x539ade=a9_0x4de0d4;return decorator_2[_0x539ade(0x1fc)];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1f1),{'enumerable':!![],'get':function(){var _0x5d8a9c=a9_0x4de0d4;return decorator_2[_0x5d8a9c(0x1f1)];}}),Object['defineProperty'](exports,a9_0x4de0d4(0x1dc),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a9_0x4de0d4(0x1e0)](exports,a9_0x4de0d4(0x1eb),{'enumerable':!![],'get':function(){var _0x3c7503=a9_0x4de0d4;return decorator_2[_0x3c7503(0x1eb)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0x57a5(){var _0x208de0=['metadata','644448FgZwUT','config','device','HEADERS_DEVICE','508454ROxpBW','TIMEOUT','351vfCkBx','Config','map','abs','Scope','length','@midwayjs/decorator','toString','HEADERS_CHECKCODE','__decorate','join','9458WWvyMs','checkcode','getOwnPropertyDescriptor','requesttime','22295pshgYD','anncicapi','design:type','password','entries','1902360KeuFrc','secret','MD5','getcheck','../exception/ApiError','__esModule','getsign','object','function','signature','sort','defineProperty','ApiError','decorate','now','1802728NoVPfa','363824fweKLU','logintime','token','devices','toLowerCase','fromEntries','push','HEADERS_LACK','Singleton','timeout'];a10_0x57a5=function(){return _0x208de0;};return a10_0x57a5();}var a10_0x2d7496=a10_0x283b;(function(_0x147bb4,_0x30397d){var _0x29a0f3=a10_0x283b,_0x4dc3ce=_0x147bb4();while(!![]){try{var _0x56b3ae=-parseInt(_0x29a0f3(0x210))/0x1+parseInt(_0x29a0f3(0x21d))/0x2*(parseInt(_0x29a0f3(0x212))/0x3)+parseInt(_0x29a0f3(0x200))/0x4+parseInt(_0x29a0f3(0x221))/0x5+-parseInt(_0x29a0f3(0x226))/0x6+parseInt(_0x29a0f3(0x20c))/0x7+parseInt(_0x29a0f3(0x201))/0x8;if(_0x56b3ae===_0x30397d)break;else _0x4dc3ce['push'](_0x4dc3ce['shift']());}catch(_0x45672a){_0x4dc3ce['push'](_0x4dc3ce['shift']());}}}(a10_0x57a5,0x4e3ce));var __decorate=this&&this[a10_0x2d7496(0x21b)]||function(_0x78dde1,_0x102955,_0x4a67ea,_0x16d460){var _0x1570b7=a10_0x2d7496,_0x263c7b=arguments['length'],_0x37e32e=_0x263c7b<0x3?_0x102955:_0x16d460===null?_0x16d460=Object[_0x1570b7(0x21f)](_0x102955,_0x4a67ea):_0x16d460,_0x45872e;if(typeof Reflect===_0x1570b7(0x1f8)&&typeof Reflect[_0x1570b7(0x1fe)]==='function')_0x37e32e=Reflect[_0x1570b7(0x1fe)](_0x78dde1,_0x102955,_0x4a67ea,_0x16d460);else{for(var _0x64e2b8=_0x78dde1[_0x1570b7(0x217)]-0x1;_0x64e2b8>=0x0;_0x64e2b8--)if(_0x45872e=_0x78dde1[_0x64e2b8])_0x37e32e=(_0x263c7b<0x3?_0x45872e(_0x37e32e):_0x263c7b>0x3?_0x45872e(_0x102955,_0x4a67ea,_0x37e32e):_0x45872e(_0x102955,_0x4a67ea))||_0x37e32e;}return _0x263c7b>0x3&&_0x37e32e&&Object[_0x1570b7(0x1fc)](_0x102955,_0x4a67ea,_0x37e32e),_0x37e32e;},__metadata=this&&this['__metadata']||function(_0x5ffa85,_0x3cadd6){var _0x3672ca=a10_0x2d7496;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x3672ca(0x1f9))return Reflect[_0x3672ca(0x20b)](_0x5ffa85,_0x3cadd6);};Object[a10_0x2d7496(0x1fc)](exports,a10_0x2d7496(0x1f6),{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a10_0x2d7496(0x218)),ApiError_1=require(a10_0x2d7496(0x1f5));function a10_0x283b(_0x209999,_0x9630f8){var _0x57a518=a10_0x57a5();return a10_0x283b=function(_0x283bca,_0x353bc1){_0x283bca=_0x283bca-0x1f2;var _0x3ed9f8=_0x57a518[_0x283bca];return _0x3ed9f8;},a10_0x283b(_0x209999,_0x9630f8);}let ApiService=class ApiService{[a10_0x2d7496(0x224)](_0x25745f){var _0x5c67e5=a10_0x2d7496,_0x12cfe5;return _0x25745f?(0x0,crypto_js_1['MD5'])(_0x25745f+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x25745f)['toString']()+((_0x12cfe5=this[_0x5c67e5(0x20d)])===null||_0x12cfe5===void 0x0?void 0x0:_0x12cfe5[_0x5c67e5(0x224)]))[_0x5c67e5(0x219)]())[_0x5c67e5(0x219)]():'';}[a10_0x2d7496(0x1f4)](_0x572555,_0x34638b,_0x15f8e9=Date[a10_0x2d7496(0x1ff)]()){var _0x1cea41=a10_0x2d7496;return{'Token':_0x572555,'Logintime':_0x15f8e9,'Checkcode':this[_0x1cea41(0x21e)](_0x572555,_0x34638b,_0x15f8e9)};}[a10_0x2d7496(0x1f7)](_0x690157={}){var _0xf9fb21=a10_0x2d7496;const _0x3be622=[],_0x402ce0=Object[_0xf9fb21(0x206)](Object['entries'](_0x690157)[_0xf9fb21(0x214)](_0x3dd156=>[_0x3dd156[0x0][_0xf9fb21(0x205)](),_0x3dd156[0x1]]));for(let _0x1fb8e0 of['device',_0xf9fb21(0x220),'token','logintime',_0xf9fb21(0x21e)]){if(typeof _0x402ce0[_0x1fb8e0]=='undefined')throw new AnnError(ApiError_1['ApiError'][_0xf9fb21(0x208)]);_0x3be622[_0xf9fb21(0x207)](_0x1fb8e0+'='+_0x402ce0[_0x1fb8e0]);}if(Math[_0xf9fb21(0x215)](_0x402ce0[_0xf9fb21(0x220)])-Date[_0xf9fb21(0x1ff)]()>this[_0xf9fb21(0x20d)][_0xf9fb21(0x20a)])throw new AnnError(ApiError_1[_0xf9fb21(0x1fd)][_0xf9fb21(0x211)]);if(!this['config'][_0xf9fb21(0x204)][_0x402ce0[_0xf9fb21(0x20e)]]||!this['config'][_0xf9fb21(0x204)][_0x402ce0[_0xf9fb21(0x20e)]][_0xf9fb21(0x1f2)]||!this[_0xf9fb21(0x20d)][_0xf9fb21(0x204)][_0x402ce0[_0xf9fb21(0x20e)]]['checkcode'])throw new AnnError(ApiError_1['ApiError'][_0xf9fb21(0x20f)]);if(_0x402ce0[_0xf9fb21(0x203)]&&_0x402ce0[_0xf9fb21(0x21e)]!=this[_0xf9fb21(0x21e)](_0x402ce0['token'],_0x402ce0[_0xf9fb21(0x20e)],_0x402ce0[_0xf9fb21(0x202)]))throw new AnnError(ApiError_1[_0xf9fb21(0x1fd)][_0xf9fb21(0x21a)]);return _0x3be622[_0xf9fb21(0x207)]('secret='+this[_0xf9fb21(0x20d)][_0xf9fb21(0x204)][_0x402ce0[_0xf9fb21(0x20e)]]['secret']),(0x0,crypto_js_1[_0xf9fb21(0x1f3)])(_0x3be622[_0xf9fb21(0x1fb)]()[_0xf9fb21(0x21c)](''))[_0xf9fb21(0x219)]();}['checkcode'](_0x5c84bc,_0x195418,_0x49d1a2=Date[a10_0x2d7496(0x1ff)]()){var _0x499bfc=a10_0x2d7496,_0x1c537e,_0x5d720f,_0x57d8ed;if(!((_0x1c537e=this[_0x499bfc(0x20d)])===null||_0x1c537e===void 0x0?void 0x0:_0x1c537e[_0x499bfc(0x204)][_0x195418])||!((_0x57d8ed=(_0x5d720f=this[_0x499bfc(0x20d)])===null||_0x5d720f===void 0x0?void 0x0:_0x5d720f[_0x499bfc(0x204)][_0x195418])===null||_0x57d8ed===void 0x0?void 0x0:_0x57d8ed[_0x499bfc(0x21e)]))throw new AnnError(ApiError_1[_0x499bfc(0x1fd)][_0x499bfc(0x20f)]);return(0x0,crypto_js_1[_0x499bfc(0x1f3)])(_0x5c84bc+(0x0,crypto_js_1[_0x499bfc(0x1f3)])(_0x49d1a2+this[_0x499bfc(0x20d)]['devices'][_0x195418][_0x499bfc(0x21e)])['toString']())[_0x499bfc(0x219)]();}['checksign'](_0x13a3fc={}){var _0x16755c=a10_0x2d7496;const _0x2bfe0a=Object[_0x16755c(0x206)](Object[_0x16755c(0x225)](_0x13a3fc)[_0x16755c(0x214)](_0x75ceaa=>[_0x75ceaa[0x0][_0x16755c(0x205)](),_0x75ceaa[0x1]]));if(!(_0x2bfe0a===null||_0x2bfe0a===void 0x0?void 0x0:_0x2bfe0a[_0x16755c(0x1fa)]))throw new AnnError(ApiError_1[_0x16755c(0x1fd)][_0x16755c(0x208)]);if((_0x2bfe0a===null||_0x2bfe0a===void 0x0?void 0x0:_0x2bfe0a['signature'])!=this[_0x16755c(0x1f7)](_0x2bfe0a))throw new AnnError(ApiError_1[_0x16755c(0x1fd)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x2d7496(0x213)])(a10_0x2d7496(0x222)),__metadata(a10_0x2d7496(0x223),Object)],ApiService['prototype'],a10_0x2d7496(0x20d),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a10_0x2d7496(0x216)])(decorator_1['ScopeEnum'][a10_0x2d7496(0x209)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x45c78a=a11_0x10b9;(function(_0x1a6804,_0x3e468b){const _0x57bb35=a11_0x10b9,_0x5914d4=_0x1a6804();while(!![]){try{const _0x12073a=parseInt(_0x57bb35(0x1b4))/0x1*(parseInt(_0x57bb35(0x1ab))/0x2)+-parseInt(_0x57bb35(0x19d))/0x3*(parseInt(_0x57bb35(0x186))/0x4)+-parseInt(_0x57bb35(0x170))/0x5*(parseInt(_0x57bb35(0x1b6))/0x6)+-parseInt(_0x57bb35(0x17f))/0x7+-parseInt(_0x57bb35(0x16c))/0x8+parseInt(_0x57bb35(0x19e))/0x9*(-parseInt(_0x57bb35(0x1ac))/0xa)+parseInt(_0x57bb35(0x193))/0xb*(parseInt(_0x57bb35(0x179))/0xc);if(_0x12073a===_0x3e468b)break;else _0x5914d4['push'](_0x5914d4['shift']());}catch(_0x19b1b8){_0x5914d4['push'](_0x5914d4['shift']());}}}(a11_0x2a88,0x7f097));function a11_0x10b9(_0x522459,_0x2793b1){const _0x2a88cc=a11_0x2a88();return a11_0x10b9=function(_0x10b90b,_0x4d0ff7){_0x10b90b=_0x10b90b-0x168;let _0xd13fe5=_0x2a88cc[_0x10b90b];return _0xd13fe5;},a11_0x10b9(_0x522459,_0x2793b1);}var __decorate=this&&this['__decorate']||function(_0x528c77,_0x422677,_0x39f739,_0x167e30){const _0xe69168=a11_0x10b9;var _0x114c83=arguments['length'],_0x2f6acb=_0x114c83<0x3?_0x422677:_0x167e30===null?_0x167e30=Object['getOwnPropertyDescriptor'](_0x422677,_0x39f739):_0x167e30,_0x3bb7ad;if(typeof Reflect===_0xe69168(0x17a)&&typeof Reflect[_0xe69168(0x19b)]===_0xe69168(0x19f))_0x2f6acb=Reflect[_0xe69168(0x19b)](_0x528c77,_0x422677,_0x39f739,_0x167e30);else{for(var _0x28a86a=_0x528c77[_0xe69168(0x1a8)]-0x1;_0x28a86a>=0x0;_0x28a86a--)if(_0x3bb7ad=_0x528c77[_0x28a86a])_0x2f6acb=(_0x114c83<0x3?_0x3bb7ad(_0x2f6acb):_0x114c83>0x3?_0x3bb7ad(_0x422677,_0x39f739,_0x2f6acb):_0x3bb7ad(_0x422677,_0x39f739))||_0x2f6acb;}return _0x114c83>0x3&&_0x2f6acb&&Object[_0xe69168(0x18c)](_0x422677,_0x39f739,_0x2f6acb),_0x2f6acb;},__metadata=this&&this[a11_0x45c78a(0x1ae)]||function(_0x24127a,_0x430172){const _0x87ba0c=a11_0x45c78a;if(typeof Reflect===_0x87ba0c(0x17a)&&typeof Reflect['metadata']===_0x87ba0c(0x19f))return Reflect['metadata'](_0x24127a,_0x430172);},__param=this&&this[a11_0x45c78a(0x17b)]||function(_0x22033d,_0x2cc425){return function(_0x46b709,_0xfdb4ab){_0x2cc425(_0x46b709,_0xfdb4ab,_0x22033d);};};Object[a11_0x45c78a(0x18c)](exports,a11_0x45c78a(0x197),{'value':!![]}),exports[a11_0x45c78a(0x17e)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x45c78a(0x19c)),fs_1=require('fs'),core_1=require(a11_0x45c78a(0x189)),decorator_1=require(a11_0x45c78a(0x199)),decorator_2=require(a11_0x45c78a(0x199)),getRoutes_1=require(a11_0x45c78a(0x172));let ApitestService=class ApitestService{async[a11_0x45c78a(0x1a2)](_0x52df0e){const _0x4ecc88=a11_0x45c78a,_0x132b0e=(0x0,getRoutes_1[_0x4ecc88(0x180)])(_0x52df0e),_0x265cfe=[];for(let _0x3726e0 in _0x132b0e){for(let _0x3dc766 in _0x132b0e[_0x3726e0]['routes']){let _0x182add=_0x132b0e[_0x3726e0][_0x4ecc88(0x194)][_0x3dc766],_0x308334=[];for(let _0x3aec88 in _0x182add[_0x4ecc88(0x19a)]){_0x308334[_0x4ecc88(0x1a5)](_0x182add[_0x4ecc88(0x19a)][_0x3aec88]);}_0x265cfe[_0x4ecc88(0x1a5)]({'title':_0x132b0e[_0x3726e0][_0x4ecc88(0x1b0)]+':'+_0x182add['summary'],'prefix':_0x132b0e[_0x3726e0]['prefix'],'router':_0x182add[_0x4ecc88(0x187)],'method':_0x182add[_0x4ecc88(0x16f)],'describe':_0x182add[_0x4ecc88(0x171)]||'','filepath':_0x132b0e[_0x3726e0][_0x4ecc88(0x1a0)]||'','request':_0x308334});}}const _0x416082=(0x0,path_1[_0x4ecc88(0x185)])(__dirname,_0x4ecc88(0x17d));return(0x0,fs_1[_0x4ecc88(0x173)])(_0x416082,{'encoding':_0x4ecc88(0x16b)})[_0x4ecc88(0x1a7)](/__res__/g,_0x4ecc88(0x16d))[_0x4ecc88(0x1a7)](_0x4ecc88(0x1a1),JSON[_0x4ecc88(0x177)](_0x265cfe))[_0x4ecc88(0x1a7)](_0x4ecc88(0x16a),JSON[_0x4ecc88(0x177)](this['config'][_0x4ecc88(0x18b)]));}};__decorate([(0x0,decorator_2[a11_0x45c78a(0x1a9)])(a11_0x45c78a(0x183)),__metadata(a11_0x45c78a(0x174),Object)],ApitestService[a11_0x45c78a(0x1aa)],a11_0x45c78a(0x188),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x45c78a(0x1b8)])(a11_0x45c78a(0x1a4)),(0x0,decorator_2[a11_0x45c78a(0x190)])(decorator_2[a11_0x45c78a(0x192)][a11_0x45c78a(0x1b7)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x45c78a(0x17c)](){const _0xefd3b9=a11_0x45c78a;if(this['apitest']){const _0x32ed8e={'module':![]};return this[_0xefd3b9(0x168)][_0xefd3b9(0x184)]()&&(_0x32ed8e[_0xefd3b9(0x1a0)]=!![]),await this[_0xefd3b9(0x18d)]['apidoc'](_0x32ed8e);}return'';}async['apitestmodule'](_0x37909e){const _0x27d5eb=a11_0x45c78a;if(this[_0x27d5eb(0x1a4)]){const _0x188a20={'module':_0x37909e};return this[_0x27d5eb(0x168)][_0x27d5eb(0x184)]()&&(_0x188a20[_0x27d5eb(0x1a0)]=!![]),await this[_0x27d5eb(0x18d)][_0x27d5eb(0x1a2)](_0x188a20);}return'';}async[a11_0x45c78a(0x1b2)](){const _0x4e0898=a11_0x45c78a;if((0x0,path_1[_0x4e0898(0x178)])(this[_0x4e0898(0x1ad)][_0x4e0898(0x19a)][_0x4e0898(0x16e)])){var _0x39dd1e=(0x0,path_1[_0x4e0898(0x185)])(__dirname,_0x4e0898(0x1a6)+this[_0x4e0898(0x1ad)][_0x4e0898(0x19a)]['url']['replace']('/apiteststatic/','/'));if(_0x39dd1e[_0x4e0898(0x169)](_0x39dd1e[_0x4e0898(0x1a8)]-0xb)!='/index.html'){this[_0x4e0898(0x1ad)][_0x4e0898(0x1b9)]('cache-control','public,\x20max-age=604800');if((0x0,path_1[_0x4e0898(0x178)])(this[_0x4e0898(0x1ad)]['request'][_0x4e0898(0x16e)])==_0x4e0898(0x182))this[_0x4e0898(0x1ad)]['set'](_0x4e0898(0x1a3),_0x4e0898(0x175));else(0x0,path_1[_0x4e0898(0x178)])(this['ctx'][_0x4e0898(0x19a)][_0x4e0898(0x16e)])==_0x4e0898(0x1b1)&&this[_0x4e0898(0x1ad)][_0x4e0898(0x1b9)](_0x4e0898(0x1a3),_0x4e0898(0x181));return(0x0,fs_1[_0x4e0898(0x191)])(_0x39dd1e)&&(0x0,fs_1['readFileSync'])(_0x39dd1e,{'encoding':_0x4e0898(0x16b)});}}return'';}};function a11_0x2a88(){const _0x328613=['/apitest','MidwayEnvironmentService','Scope','existsSync','ScopeEnum','176dKjDpc','routes','module','/apiteststatic/*','__esModule','Get','@midwayjs/decorator','request','decorate','path','1002tGOdfO','18bnQOET','function','filepath','__apiList__','apidoc','content-type','apitest','push','../../public/','replace','length','Config','prototype','34RFCzzg','2219680CjAHMH','ctx','__metadata','design:paramtypes','summary','.css','apiteststatic','Controller','18082tRSZvn','/apitest-:module','287286gYHBGv','Singleton','Provide','set','Environment','substring','__devices__','utf-8','4771104QwDBnl','/apiteststatic/','url','method','25ijsSKn','description','../helper/getRoutes','readFileSync','design:type','application/javascript;\x20charset=utf-8','Request','stringify','extname','1686876MOBpwJ','object','__param','apitesthtml','../../public/index.html','ApitestStaticController','2118088SaNKDO','getRoutes','text/css;\x20charset=utf-8','.js','anncicapi','isDevelopmentEnvironment','join','5436wsQwaV','route','config','@midwayjs/core','Inject','devices','defineProperty','ApitestService'];a11_0x2a88=function(){return _0x328613;};return a11_0x2a88();}__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',Object)],ApitestStaticController[a11_0x45c78a(0x1aa)],'ctx',void 0x0),__decorate([(0x0,decorator_2[a11_0x45c78a(0x18a)])(),__metadata(a11_0x45c78a(0x174),core_1[a11_0x45c78a(0x18f)])],ApitestStaticController[a11_0x45c78a(0x1aa)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a11_0x45c78a(0x18a)])(),__metadata(a11_0x45c78a(0x174),ApitestService)],ApitestStaticController[a11_0x45c78a(0x1aa)],a11_0x45c78a(0x18d),void 0x0),__decorate([(0x0,decorator_2[a11_0x45c78a(0x1a9)])(a11_0x45c78a(0x1a4)),__metadata(a11_0x45c78a(0x174),Object)],ApitestStaticController['prototype'],a11_0x45c78a(0x1a4),void 0x0),__decorate([(0x0,decorator_2[a11_0x45c78a(0x1a9)])(a11_0x45c78a(0x183)),__metadata(a11_0x45c78a(0x174),Object)],ApitestStaticController[a11_0x45c78a(0x1aa)],a11_0x45c78a(0x188),void 0x0),__decorate([(0x0,decorator_1['Get'])(a11_0x45c78a(0x18e)),__metadata(a11_0x45c78a(0x174),Function),__metadata(a11_0x45c78a(0x1af),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a11_0x45c78a(0x17c),null),__decorate([(0x0,decorator_1[a11_0x45c78a(0x198)])(a11_0x45c78a(0x1b5)),__param(0x0,(0x0,decorator_1['Param'])(a11_0x45c78a(0x195))),__metadata(a11_0x45c78a(0x174),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x45c78a(0x1aa)],'apitestmodule',null),__decorate([(0x0,decorator_1[a11_0x45c78a(0x198)])(a11_0x45c78a(0x196)),__metadata(a11_0x45c78a(0x174),Function),__metadata(a11_0x45c78a(0x1af),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x45c78a(0x1aa)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x45c78a(0x1b3)])('/'),(0x0,decorator_2[a11_0x45c78a(0x190)])(decorator_2[a11_0x45c78a(0x192)][a11_0x45c78a(0x176)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x481feb=a12_0x462f;(function(_0x5345ce,_0x574798){const _0x30dc0b=a12_0x462f,_0x341622=_0x5345ce();while(!![]){try{const _0xb69f0e=-parseInt(_0x30dc0b(0x1a9))/0x1*(parseInt(_0x30dc0b(0x1b8))/0x2)+parseInt(_0x30dc0b(0x1da))/0x3+-parseInt(_0x30dc0b(0x1cd))/0x4*(-parseInt(_0x30dc0b(0x19d))/0x5)+-parseInt(_0x30dc0b(0x1bd))/0x6*(-parseInt(_0x30dc0b(0x19c))/0x7)+parseInt(_0x30dc0b(0x1ba))/0x8*(-parseInt(_0x30dc0b(0x1d3))/0x9)+-parseInt(_0x30dc0b(0x1c9))/0xa+parseInt(_0x30dc0b(0x1a1))/0xb*(parseInt(_0x30dc0b(0x1a4))/0xc);if(_0xb69f0e===_0x574798)break;else _0x341622['push'](_0x341622['shift']());}catch(_0x3d858f){_0x341622['push'](_0x341622['shift']());}}}(a12_0x4bbb,0x588ea));function a12_0x462f(_0x3c9b50,_0x18c9cf){const _0x4bbbb7=a12_0x4bbb();return a12_0x462f=function(_0x462f5a,_0xa57d96){_0x462f5a=_0x462f5a-0x19a;let _0xcadaaa=_0x4bbbb7[_0x462f5a];return _0xcadaaa;},a12_0x462f(_0x3c9b50,_0x18c9cf);}var __decorate=this&&this['__decorate']||function(_0x55381c,_0x235cb8,_0x3e40dc,_0x545c6a){const _0x11f844=a12_0x462f;var _0x2201eb=arguments[_0x11f844(0x1a2)],_0x33a138=_0x2201eb<0x3?_0x235cb8:_0x545c6a===null?_0x545c6a=Object[_0x11f844(0x1ab)](_0x235cb8,_0x3e40dc):_0x545c6a,_0xbe4963;if(typeof Reflect===_0x11f844(0x1dc)&&typeof Reflect[_0x11f844(0x1b2)]===_0x11f844(0x1a7))_0x33a138=Reflect['decorate'](_0x55381c,_0x235cb8,_0x3e40dc,_0x545c6a);else{for(var _0x9522cf=_0x55381c['length']-0x1;_0x9522cf>=0x0;_0x9522cf--)if(_0xbe4963=_0x55381c[_0x9522cf])_0x33a138=(_0x2201eb<0x3?_0xbe4963(_0x33a138):_0x2201eb>0x3?_0xbe4963(_0x235cb8,_0x3e40dc,_0x33a138):_0xbe4963(_0x235cb8,_0x3e40dc))||_0x33a138;}return _0x2201eb>0x3&&_0x33a138&&Object['defineProperty'](_0x235cb8,_0x3e40dc,_0x33a138),_0x33a138;},__metadata=this&&this[a12_0x481feb(0x1b1)]||function(_0x4c0ff9,_0xe344a4){const _0x1a8507=a12_0x481feb;if(typeof Reflect==='object'&&typeof Reflect[_0x1a8507(0x1b7)]===_0x1a8507(0x1a7))return Reflect[_0x1a8507(0x1b7)](_0x4c0ff9,_0xe344a4);};Object[a12_0x481feb(0x1c6)](exports,a12_0x481feb(0x1dd),{'value':!![]}),exports[a12_0x481feb(0x1c5)]=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require('koa-send'),decorator_1=require(a12_0x481feb(0x19a));let ExcelService=class ExcelService{async[a12_0x481feb(0x1de)](_0x8eb5b8,_0x48706b,_0x3861d9=[0x0]){const _0x2ad7d3=a12_0x481feb;var _0x997257,_0x4231d4;const _0x55d864=new exceljs[(_0x2ad7d3(0x1ad))](),_0xc58426=[];let _0x52ddb1=_0x8eb5b8[_0x2ad7d3(0x19f)](/(\\|\/)/g,'/')[_0x2ad7d3(0x19f)](/\/{2,}/g,'/');!(_0x52ddb1===null||_0x52ddb1===void 0x0?void 0x0:_0x52ddb1[_0x2ad7d3(0x1a6)]('/'))&&(_0x52ddb1=this[_0x2ad7d3(0x1aa)][_0x2ad7d3(0x1b9)]()+'/'+_0x52ddb1);try{await _0x55d864[_0x2ad7d3(0x1b4)][_0x2ad7d3(0x1a0)](_0x52ddb1);}catch(_0x24349d){return console[_0x2ad7d3(0x1d7)](_0x2ad7d3(0x1cb)+_0x52ddb1+_0x2ad7d3(0x1b0)),_0xc58426;}for(const _0x484bfe of _0x3861d9){const _0x1a5e64=lodash[_0x2ad7d3(0x1c3)](_0x484bfe)?((_0x997257=_0x55d864[_0x2ad7d3(0x1d9)])===null||_0x997257===void 0x0?void 0x0:_0x997257[_0x484bfe])||undefined:_0x55d864[_0x2ad7d3(0x1c8)](_0x484bfe);if(_0x1a5e64){var _0x5a681b=0x1;const _0x37cbeb=_0x1a5e64[_0x2ad7d3(0x1d4)](0x1),_0x510ac6=await new Promise(_0x53d5a6=>{const _0x520469=_0x2ad7d3,_0x52e106={};_0x37cbeb[_0x520469(0x1b3)]((_0x33e48c,_0xdeefc3)=>{const _0x3f0f8b=_0x520469;for(const _0x1cb25f of _0x48706b){if(_0x33e48c['value']==_0x1cb25f['header'])_0x5a681b=0x2,_0x52e106[_0x1cb25f[_0x3f0f8b(0x1be)]]={'header':_0x33e48c[_0x3f0f8b(0x1a3)],'handler':_0x1cb25f[_0x3f0f8b(0x1c4)]};else{if(!_0x52e106[_0x1cb25f[_0x3f0f8b(0x1be)]])try{const _0x5b5102=_0x37cbeb[_0x3f0f8b(0x1ae)](_0x1cb25f[_0x3f0f8b(0x19b)]);_0x5b5102&&(_0x52e106[_0x1cb25f[_0x3f0f8b(0x1be)]]={'header':_0x5b5102['col'],'handler':_0x1cb25f[_0x3f0f8b(0x1c4)]});}catch{}}}_0x37cbeb[_0x3f0f8b(0x1e0)]==_0xdeefc3&&_0x53d5a6(_0x52e106);});});for(const _0x5364af of _0x1a5e64[_0x2ad7d3(0x19e)](_0x5a681b,_0x1a5e64['rowCount'])){const _0x43704d={};for(const _0x5257b4 in _0x510ac6){_0x510ac6[_0x5257b4][_0x2ad7d3(0x19b)]&&(typeof((_0x4231d4=_0x510ac6[_0x5257b4])===null||_0x4231d4===void 0x0?void 0x0:_0x4231d4['handler'])==_0x2ad7d3(0x1a7)?_0x43704d[_0x5257b4]=_0x510ac6[_0x5257b4][_0x2ad7d3(0x1c4)](_0x5364af[_0x2ad7d3(0x1ae)](lodash[_0x2ad7d3(0x1b6)](''+_0x510ac6[_0x5257b4][_0x2ad7d3(0x19b)],'\x20'))[_0x2ad7d3(0x1d0)]()):_0x43704d[_0x5257b4]=_0x5364af[_0x2ad7d3(0x1ae)](_0x510ac6[_0x5257b4][_0x2ad7d3(0x19b)])[_0x2ad7d3(0x1d0)]());}Object[_0x2ad7d3(0x1df)](_0x43704d)['length']>0x0&&_0xc58426[_0x2ad7d3(0x1c2)](_0x43704d);}}}return _0xc58426;}async[a12_0x481feb(0x1cc)](_0x3f1496,_0x2464a3,_0x4e47e9,_0x569885=a12_0x481feb(0x1ce)){const _0x32ef10=a12_0x481feb;var _0x2411aa,_0x136125;const _0x530696=new exceljs[(_0x32ef10(0x1ad))](),_0x30f6a2={},_0x38fc5d=[],_0x486fb1=_0x530696[_0x32ef10(0x1af)](_0x32ef10(0x1c7),{'views':[{'state':_0x32ef10(0x1d8),'xSplit':0x1}]});for(const _0x36634e in _0x2464a3){_0x30f6a2[_0x2464a3[_0x36634e][_0x32ef10(0x1be)]]=_0x2464a3[_0x36634e]['header'],_0x38fc5d[_0x32ef10(0x1c2)]({'header':_0x2464a3[_0x36634e][_0x32ef10(0x19b)],'key':(_0x2411aa=_0x2464a3[_0x36634e])===null||_0x2411aa===void 0x0?void 0x0:_0x2411aa[_0x32ef10(0x1be)][_0x32ef10(0x19f)](/\./g,'_')});}_0x486fb1['columns']=_0x38fc5d;for(const _0xd48535 of _0x4e47e9){const _0x5f08dc={};for(const _0x341fb5 in _0x2464a3){typeof((_0x136125=_0x2464a3[_0x341fb5])===null||_0x136125===void 0x0?void 0x0:_0x136125[_0x32ef10(0x1c4)])==_0x32ef10(0x1a7)?_0x5f08dc[_0x2464a3[_0x341fb5][_0x32ef10(0x1be)]['replace'](/\./g,'_')]=await _0x2464a3[_0x341fb5]['handler'](_0xd48535):_0x5f08dc[_0x2464a3[_0x341fb5][_0x32ef10(0x1be)]['replace'](/\./g,'_')]=lodash[_0x32ef10(0x1a8)](_0xd48535,_0x2464a3[_0x341fb5]['key'],'');}_0x486fb1[_0x32ef10(0x1cf)](_0x5f08dc);}let _0x161c77='';const _0x33f184=_0x3f1496+'-'+lodash['random'](0x2710,0x1869f)+_0x32ef10(0x1ac);if(_0x569885&&_0x569885['startsWith']('/'))_0x161c77=_0x569885+'/'+_0x33f184;else _0x569885&&!_0x569885['startsWith']('/')&&!_0x569885['startsWith']('\x5c')?_0x161c77=this[_0x32ef10(0x1aa)][_0x32ef10(0x1b9)]()+'/'+_0x569885+'/'+_0x33f184:_0x161c77=this[_0x32ef10(0x1aa)][_0x32ef10(0x1b9)]()+_0x32ef10(0x1b5);return(_0x161c77[_0x32ef10(0x1d2)]('/')||_0x161c77[_0x32ef10(0x1d2)]('\x5c'))&&(_0x161c77=_0x161c77[_0x32ef10(0x1bc)](0x0,_0x161c77[_0x32ef10(0x1a2)]-0x1)),_0x161c77=_0x161c77[_0x32ef10(0x19f)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs[_0x32ef10(0x1c0)](_0x161c77)&&fs[_0x32ef10(0x1db)](_0x161c77,{'recursive':!![]}),await _0x530696[_0x32ef10(0x1b4)][_0x32ef10(0x1c1)]((_0x161c77+'/'+_0x33f184)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x33f184,'filepath':_0x161c77};}async[a12_0x481feb(0x1ca)](_0x15fe20,_0x3aac8a){await koasend(_0x15fe20,'/public/xlsx/'+_0x3aac8a);}};function a12_0x4bbb(){const _0x312f0c=['addWorksheet','\x20is\x20read\x20fail','__metadata','decorate','eachCell','xlsx','/public/xlsx','trim','metadata','3246edrcfP','getAppDir','4271368TAAwiy','Scope','substring','12dBiaZV','key','Provide','existsSync','writeFile','push','isNumber','handler','ExcelService','defineProperty','Sheet\x201','getWorksheet','6637650DFJYGb','download','Api\x20Excel\x20Error:\x20','export','3276eBVjCs','public/xlsx','addRow','toString','Singleton','endsWith','9tuFEvw','getRow','prototype','App','log','frozen','worksheets','1640604DIWOpN','mkdirSync','object','__esModule','parse','keys','cellCount','@midwayjs/decorator','header','731227IHyMBK','4145XdnYCy','findRows','replace','readFile','187LHrtnL','length','col','503436EbwXvZ','ScopeEnum','startsWith','function','get','362vQtZXw','app','getOwnPropertyDescriptor','.xlsx','Workbook','getCell'];a12_0x4bbb=function(){return _0x312f0c;};return a12_0x4bbb();}__decorate([(0x0,decorator_1[a12_0x481feb(0x1d6)])(),__metadata('design:type',Object)],ExcelService[a12_0x481feb(0x1d5)],a12_0x481feb(0x1aa),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x481feb(0x1bf)])(),(0x0,decorator_1[a12_0x481feb(0x1bb)])(decorator_1[a12_0x481feb(0x1a5)][a12_0x481feb(0x1d1)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a13_0x3e7a59=a13_0x5974;(function(_0x4477d8,_0x300b63){var _0x5d3259=a13_0x5974,_0x3d5de4=_0x4477d8();while(!![]){try{var _0x5ac4e0=-parseInt(_0x5d3259(0x83))/0x1+parseInt(_0x5d3259(0x84))/0x2*(-parseInt(_0x5d3259(0x7e))/0x3)+parseInt(_0x5d3259(0x7a))/0x4+parseInt(_0x5d3259(0x7f))/0x5+parseInt(_0x5d3259(0x7c))/0x6+-parseInt(_0x5d3259(0x81))/0x7+parseInt(_0x5d3259(0x80))/0x8;if(_0x5ac4e0===_0x300b63)break;else _0x3d5de4['push'](_0x3d5de4['shift']());}catch(_0x39a1be){_0x3d5de4['push'](_0x3d5de4['shift']());}}}(a13_0x80a9,0xcc281));Object[a13_0x3e7a59(0x7d)](exports,a13_0x3e7a59(0x82),{'value':!![]}),exports[a13_0x3e7a59(0x86)]=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']=a13_0x3e7a59(0x7b),exports[a13_0x3e7a59(0x86)]=a13_0x3e7a59(0x85);function a13_0x5974(_0x26391c,_0x2eb13e){var _0x80a9bb=a13_0x80a9();return a13_0x5974=function(_0x5974bd,_0x5009f5){_0x5974bd=_0x5974bd-0x7a;var _0x58749e=_0x80a9bb[_0x5974bd];return _0x58749e;},a13_0x5974(_0x26391c,_0x2eb13e);}function a13_0x80a9(){var _0x2a7206=['18912544zcUKlt','6551370tJMBbH','__esModule','1077363TpdTEj','10jMuyRx','anncic-api:action:route','ACTION_ROUTE_KEY','2241284MCXoDa','anncic-api:action','5275266USdQdI','defineProperty','900534YcKGFy','2733940OsiWNf'];a13_0x80a9=function(){return _0x2a7206;};return a13_0x80a9();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a14_0xec40(_0x40a9bb,_0x50ff98){var _0x22d21b=a14_0x22d2();return a14_0xec40=function(_0xec40a8,_0x2266b8){_0xec40a8=_0xec40a8-0xab;var _0x5e3956=_0x22d21b[_0xec40a8];return _0x5e3956;},a14_0xec40(_0x40a9bb,_0x50ff98);}var a14_0x4355f6=a14_0xec40;(function(_0x588822,_0x487972){var _0x29df6f=a14_0xec40,_0x446728=_0x588822();while(!![]){try{var _0x5da608=parseInt(_0x29df6f(0xbb))/0x1+parseInt(_0x29df6f(0xc5))/0x2+parseInt(_0x29df6f(0xad))/0x3*(parseInt(_0x29df6f(0xc0))/0x4)+-parseInt(_0x29df6f(0xbd))/0x5*(parseInt(_0x29df6f(0xb5))/0x6)+parseInt(_0x29df6f(0xc3))/0x7+-parseInt(_0x29df6f(0xbe))/0x8*(parseInt(_0x29df6f(0xb3))/0x9)+-parseInt(_0x29df6f(0xac))/0xa;if(_0x5da608===_0x487972)break;else _0x446728['push'](_0x446728['shift']());}catch(_0x4d0d40){_0x446728['push'](_0x446728['shift']());}}}(a14_0x22d2,0x9b369));var __decorate=this&&this[a14_0x4355f6(0xcf)]||function(_0x1e0a4d,_0x6d9d3d,_0x1c4f90,_0x3f4297){var _0xd32a44=a14_0x4355f6,_0x16654a=arguments[_0xd32a44(0xc6)],_0x329624=_0x16654a<0x3?_0x6d9d3d:_0x3f4297===null?_0x3f4297=Object['getOwnPropertyDescriptor'](_0x6d9d3d,_0x1c4f90):_0x3f4297,_0x496097;if(typeof Reflect===_0xd32a44(0xbc)&&typeof Reflect['decorate']===_0xd32a44(0xcd))_0x329624=Reflect['decorate'](_0x1e0a4d,_0x6d9d3d,_0x1c4f90,_0x3f4297);else{for(var _0x5dd75c=_0x1e0a4d['length']-0x1;_0x5dd75c>=0x0;_0x5dd75c--)if(_0x496097=_0x1e0a4d[_0x5dd75c])_0x329624=(_0x16654a<0x3?_0x496097(_0x329624):_0x16654a>0x3?_0x496097(_0x6d9d3d,_0x1c4f90,_0x329624):_0x496097(_0x6d9d3d,_0x1c4f90))||_0x329624;}return _0x16654a>0x3&&_0x329624&&Object[_0xd32a44(0xc9)](_0x6d9d3d,_0x1c4f90,_0x329624),_0x329624;},__metadata=this&&this[a14_0x4355f6(0xb8)]||function(_0x2594e7,_0x1a22b1){var _0x5d15da=a14_0x4355f6;if(typeof Reflect===_0x5d15da(0xbc)&&typeof Reflect[_0x5d15da(0xb2)]===_0x5d15da(0xcd))return Reflect['metadata'](_0x2594e7,_0x1a22b1);};Object[a14_0x4355f6(0xc9)](exports,'__esModule',{'value':!![]}),exports[a14_0x4355f6(0xcc)]=void 0x0;const validator_1=require(a14_0x4355f6(0xcb));class PageDTO{}function a14_0x22d2(){var _0x444074=['5PvfjmL','56wKnekZ','_size','1101504IbUwAi','min','第一页为1,第二页为2','8576631HstfMl','排序方式','1692998ecIdJU','length','prototype','number','defineProperty','_page','@anncic-api/validator','PageDTO','function','trim','__decorate','string','是否倒序','16783610sZMsvf','6wKKHHJ','Rule','RuleType','分页数量','valid','metadata','730305hNxdNb','integer','3535146EZWOZr','design:type','_order','__metadata','_isreverse','1:是;0:否','848836AbiiZz','object'];a14_0x22d2=function(){return _0x444074;};return a14_0x22d2();}__decorate([(0x0,validator_1[a14_0x4355f6(0xae)])('分页',validator_1[a14_0x4355f6(0xaf)]['number']()[a14_0x4355f6(0xb4)]()[a14_0x4355f6(0xc1)](0x1),a14_0x4355f6(0xc2)),__metadata(a14_0x4355f6(0xb6),Number)],PageDTO[a14_0x4355f6(0xc7)],a14_0x4355f6(0xca),void 0x0),__decorate([(0x0,validator_1[a14_0x4355f6(0xae)])(a14_0x4355f6(0xb0),validator_1[a14_0x4355f6(0xaf)]['number']()[a14_0x4355f6(0xb4)]()[a14_0x4355f6(0xc1)](0x1)),__metadata('design:type',Number)],PageDTO[a14_0x4355f6(0xc7)],a14_0x4355f6(0xbf),void 0x0),__decorate([(0x0,validator_1[a14_0x4355f6(0xae)])(a14_0x4355f6(0xc4),validator_1[a14_0x4355f6(0xaf)][a14_0x4355f6(0xd0)]()[a14_0x4355f6(0xce)]()),__metadata(a14_0x4355f6(0xb6),String)],PageDTO[a14_0x4355f6(0xc7)],a14_0x4355f6(0xb7),void 0x0),__decorate([(0x0,validator_1[a14_0x4355f6(0xae)])(a14_0x4355f6(0xab),validator_1[a14_0x4355f6(0xaf)][a14_0x4355f6(0xc8)]()[a14_0x4355f6(0xb4)]()[a14_0x4355f6(0xb1)](0x0,0x1),a14_0x4355f6(0xba)),__metadata(a14_0x4355f6(0xb6),Number)],PageDTO['prototype'],a14_0x4355f6(0xb9),void 0x0),exports[a14_0x4355f6(0xcc)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.0.
|
|
21
|
-
"@anncic-api/core": "^1.0.
|
|
22
|
-
"@anncic-api/event": "^1.0.
|
|
23
|
-
"@anncic-api/typeorm": "^1.0.
|
|
24
|
-
"@anncic-api/validator": "^1.0.
|
|
20
|
+
"@anncic-api/cache": "^1.0.6",
|
|
21
|
+
"@anncic-api/core": "^1.0.6",
|
|
22
|
+
"@anncic-api/event": "^1.0.6",
|
|
23
|
+
"@anncic-api/typeorm": "^1.0.6",
|
|
24
|
+
"@anncic-api/validator": "^1.0.6",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.4.9",
|
|
26
26
|
"@midwayjs/i18n": "^3.4.9",
|
|
27
27
|
"@midwayjs/koa": "^3.4.9",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.4.9",
|
|
30
30
|
"@midwayjs/upload": "^3.4.9",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.0.
|
|
32
|
+
"anncic-apihelper": "^1.0.6",
|
|
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": "b2bf6b02308760d755572ae1f38f864ce90bddb5"
|
|
45
45
|
}
|