anncic-api 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x4d04d0=a0_0x4b3d;(function(_0x435069,_0xb61a00){var _0xff6f39=a0_0x4b3d,_0x4020f2=_0x435069();while(!![]){try{var _0x347fef=-parseInt(_0xff6f39(0x158))/0x1*(-parseInt(_0xff6f39(0x164))/0x2)+-parseInt(_0xff6f39(0x160))/0x3+parseInt(_0xff6f39(0x15c))/0x4*(parseInt(_0xff6f39(0x15b))/0x5)+parseInt(_0xff6f39(0x15e))/0x6*(-parseInt(_0xff6f39(0x165))/0x7)+-parseInt(_0xff6f39(0x157))/0x8+parseInt(_0xff6f39(0x163))/0x9+-parseInt(_0xff6f39(0x15f))/0xa*(-parseInt(_0xff6f39(0x156))/0xb);if(_0x347fef===_0xb61a00)break;else _0x4020f2['push'](_0x4020f2['shift']());}catch(_0x5eede8){_0x4020f2['push'](_0x4020f2['shift']());}}}(a0_0x3fda,0x9e201));function a0_0x4b3d(_0x63118f,_0xadaa92){var _0x3fda5b=a0_0x3fda();return a0_0x4b3d=function(_0x4b3d6d,_0x10b9be){_0x4b3d6d=_0x4b3d6d-0x156;var _0x1ecacf=_0x3fda5b[_0x4b3d6d];return _0x1ecacf;},a0_0x4b3d(_0x63118f,_0xadaa92);}function a0_0x3fda(){var _0x1f56b8=['49155bWeoKH','28tdUYUn','/runtime/.upload','6WhjAUR','1170AydQXL','1860141iPaMeO','defineProperty','dhauo1234420123gg3234901','1634238AvKInB','668ISWANP','2433914wnYSmG','name','225104nLpwvv','10008264QfxwYM','664mABxaw','zhiulanuiy7892387985hnoi','default'];a0_0x3fda=function(){return _0x1f56b8;};return a0_0x3fda();}Object[a0_0x4d04d0(0x161)](exports,'__esModule',{'value':!![]}),exports[a0_0x4d04d0(0x15a)]=_0x31da80=>{var _0x4f63f5=a0_0x4d04d0;return{'apitest':!![],'keys':_0x31da80[_0x4f63f5(0x166)],'anncicapi':{'timeout':0x1388,'password':_0x4f63f5(0x159),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0x4f63f5(0x162)}}},'upload':{'tmpdir':_0x31da80['appDir']+_0x4f63f5(0x15d),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x3553(){var _0x1aecea=['20156fGcKMc','791397AeQtFS','28eRQnKa','__esModule','288918KozTEZ','756215yNPMKE','627BjViWF','4qRwzhP','default','170550Ztexeb','defineProperty','2284308CCSOXm','104fGrnWA','26802wlDIxg'];a1_0x3553=function(){return _0x1aecea;};return a1_0x3553();}function a1_0x20b2(_0x5a1722,_0x398791){var _0x355335=a1_0x3553();return a1_0x20b2=function(_0x20b289,_0xc71a2b){_0x20b289=_0x20b289-0x194;var _0x424868=_0x355335[_0x20b289];return _0x424868;},a1_0x20b2(_0x5a1722,_0x398791);}var a1_0xbd720d=a1_0x20b2;(function(_0x4f5411,_0x3be4e0){var _0x378cf0=a1_0x20b2,_0x3bbd8b=_0x4f5411();while(!![]){try{var _0x5a3ff7=-parseInt(_0x378cf0(0x1a1))/0x1*(parseInt(_0x378cf0(0x195))/0x2)+-parseInt(_0x378cf0(0x1a0))/0x3+parseInt(_0x378cf0(0x19a))/0x4*(-parseInt(_0x378cf0(0x198))/0x5)+parseInt(_0x378cf0(0x19e))/0x6+-parseInt(_0x378cf0(0x197))/0x7*(parseInt(_0x378cf0(0x19f))/0x8)+-parseInt(_0x378cf0(0x194))/0x9+parseInt(_0x378cf0(0x19c))/0xa*(parseInt(_0x378cf0(0x199))/0xb);if(_0x5a3ff7===_0x3be4e0)break;else _0x3bbd8b['push'](_0x3bbd8b['shift']());}catch(_0x12741a){_0x3bbd8b['push'](_0x3bbd8b['shift']());}}}(a1_0x3553,0x45d2d));Object[a1_0xbd720d(0x19d)](exports,a1_0xbd720d(0x196),{'value':!![]}),exports[a1_0xbd720d(0x19b)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x5d1c(_0x2f298d,_0x486fab){const _0x31e6df=a2_0x31e6();return a2_0x5d1c=function(_0x5d1c6a,_0x506724){_0x5d1c6a=_0x5d1c6a-0x127;let _0x454198=_0x31e6df[_0x5d1c6a];return _0x454198;},a2_0x5d1c(_0x2f298d,_0x486fab);}const a2_0x284553=a2_0x5d1c;(function(_0x38e316,_0x79b3ff){const _0x5becf6=a2_0x5d1c,_0xf4697e=_0x38e316();while(!![]){try{const _0x20eac7=parseInt(_0x5becf6(0x181))/0x1*(-parseInt(_0x5becf6(0x127))/0x2)+parseInt(_0x5becf6(0x166))/0x3+-parseInt(_0x5becf6(0x173))/0x4+-parseInt(_0x5becf6(0x160))/0x5+-parseInt(_0x5becf6(0x169))/0x6*(-parseInt(_0x5becf6(0x16c))/0x7)+-parseInt(_0x5becf6(0x176))/0x8*(-parseInt(_0x5becf6(0x146))/0x9)+parseInt(_0x5becf6(0x161))/0xa*(-parseInt(_0x5becf6(0x162))/0xb);if(_0x20eac7===_0x79b3ff)break;else _0xf4697e['push'](_0xf4697e['shift']());}catch(_0x3474a5){_0xf4697e['push'](_0xf4697e['shift']());}}}(a2_0x31e6,0xadd7b));var __decorate=this&&this[a2_0x284553(0x155)]||function(_0x5e8d06,_0x4121f9,_0x5d1973,_0x57afd5){const _0x1c39f6=a2_0x284553;var _0x378389=arguments[_0x1c39f6(0x13b)],_0xcff724=_0x378389<0x3?_0x4121f9:_0x57afd5===null?_0x57afd5=Object[_0x1c39f6(0x137)](_0x4121f9,_0x5d1973):_0x57afd5,_0x151d46;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0xcff724=Reflect['decorate'](_0x5e8d06,_0x4121f9,_0x5d1973,_0x57afd5);else{for(var _0x1f2b78=_0x5e8d06['length']-0x1;_0x1f2b78>=0x0;_0x1f2b78--)if(_0x151d46=_0x5e8d06[_0x1f2b78])_0xcff724=(_0x378389<0x3?_0x151d46(_0xcff724):_0x378389>0x3?_0x151d46(_0x4121f9,_0x5d1973,_0xcff724):_0x151d46(_0x4121f9,_0x5d1973))||_0xcff724;}return _0x378389>0x3&&_0xcff724&&Object['defineProperty'](_0x4121f9,_0x5d1973,_0xcff724),_0xcff724;},__metadata=this&&this[a2_0x284553(0x13e)]||function(_0x311c62,_0x12c75e){const _0xe6ab39=a2_0x284553;if(typeof Reflect===_0xe6ab39(0x152)&&typeof Reflect[_0xe6ab39(0x15d)]===_0xe6ab39(0x165))return Reflect[_0xe6ab39(0x15d)](_0x311c62,_0x12c75e);};Object[a2_0x284553(0x138)](exports,a2_0x284553(0x132),{'value':!![]}),exports[a2_0x284553(0x140)]=void 0x0;const decorator_1=require(a2_0x284553(0x14e)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x284553(0x153)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x284553(0x12c)),fs=require('fs'),koa=require(a2_0x284553(0x167)),i18n=require(a2_0x284553(0x14d)),task=require(a2_0x284553(0x142)),upload=require(a2_0x284553(0x151)),staticFile=require(a2_0x284553(0x17d)),crossDomain=require(a2_0x284553(0x16e)),bodyXml=require(a2_0x284553(0x171)),bodyParser=require('koa-bodyparser'),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x284553(0x12a)),anncic=require(a2_0x284553(0x12d)),anncicEvent=require(a2_0x284553(0x159)),anncicTypeorm=require(a2_0x284553(0x17a)),anncicValidator=require(a2_0x284553(0x133)),anncicHelper=require(a2_0x284553(0x14a));let CustomConfiguration=class CustomConfiguration{async[a2_0x284553(0x147)](){const _0xa2dc75=a2_0x284553;await this[_0xa2dc75(0x134)](),await this[_0xa2dc75(0x180)](),await this[_0xa2dc75(0x16a)](),await this[_0xa2dc75(0x15c)]();}async[a2_0x284553(0x180)](){}async[a2_0x284553(0x16a)](){const _0x4ad4c9=a2_0x284553,_0x5846c3=this[_0x4ad4c9(0x164)][_0x4ad4c9(0x12e)]();this[_0x4ad4c9(0x15f)]['registerMethodHandler'](action_1[_0x4ad4c9(0x16f)],_0x290e2b=>{const _0x75d907=_0x4ad4c9,_0x4d5382=_0x290e2b[_0x75d907(0x15d)];return{'before':async _0x3ca729=>{const _0x1131da=_0x75d907;var _0x30161f,_0x53ad59,_0x310428,_0x4b7bb6,_0x599270;const _0x4a9986=(_0x30161f=_0x3ca729===null||_0x3ca729===void 0x0?void 0x0:_0x3ca729[_0x1131da(0x144)])===null||_0x30161f===void 0x0?void 0x0:_0x30161f[core_1[_0x1131da(0x13c)]];if(_0x4a9986){if((_0x4d5382===null||_0x4d5382===void 0x0?void 0x0:_0x4d5382['apimit'])&&!this['ApiService'][_0x1131da(0x14b)]((_0x53ad59=_0x4a9986===null||_0x4a9986===void 0x0?void 0x0:_0x4a9986[_0x1131da(0x170)])===null||_0x53ad59===void 0x0?void 0x0:_0x53ad59[_0x1131da(0x157)]))throw new AnnError(ApiError_1['ApiError'][_0x1131da(0x168)]);((_0x310428=_0x4a9986['headers'])===null||_0x310428===void 0x0?void 0x0:_0x310428['device'])&&((_0x599270=(_0x4b7bb6=_0x5846c3===null||_0x5846c3===void 0x0?void 0x0:_0x5846c3[_0x1131da(0x131)])===null||_0x4b7bb6===void 0x0?void 0x0:_0x4b7bb6[_0x1131da(0x13a)])===null||_0x599270===void 0x0?void 0x0:_0x599270[_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]])&&(typeof _0x5846c3[_0x1131da(0x131)]['devices'][_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]]['beforeRoute']==_0x1131da(0x165)&&await _0x5846c3[_0x1131da(0x131)][_0x1131da(0x13a)][_0x4a9986[_0x1131da(0x157)][_0x1131da(0x149)]][_0x1131da(0x158)]((_0x4a9986===null||_0x4a9986===void 0x0?void 0x0:_0x4a9986[_0x1131da(0x177)])||undefined,_0x4d5382,_0x4a9986));}},'afterThrow':(_0x411f30,_0x368a3f)=>{throw _0x368a3f;}};});}async[a2_0x284553(0x15c)](){const _0x7ffed=a2_0x284553;this[_0x7ffed(0x17f)]['getApplications']([_0x7ffed(0x15a)])['forEach'](_0xb05b70=>{const _0x361463=_0x7ffed;_0xb05b70['useMiddleware'](bodyXml(this['config'][_0x361463(0x12e)](_0x361463(0x129)))),_0xb05b70['useMiddleware'](bodyParser(this[_0x361463(0x164)]['getConfiguration'](_0x361463(0x14f)))),(_0xb05b70===null||_0xb05b70===void 0x0?void 0x0:_0xb05b70[_0x361463(0x135)])&&Object['defineProperties'](_0xb05b70[_0x361463(0x135)],{'ok':{'value':function(_0x4be2c7,_0x424296,_0x818676=0x0){return{'code':_0x818676,'data':_0x4be2c7,'extra':_0x424296};}},'err':{'value':function(_0x1e5d2d,_0x24f1a1,_0x10b4b5=0x1){return{'code':_0x10b4b5,'extra':_0x24f1a1,'msg':_0x1e5d2d};}},'input':{'value':function(_0x14f072,_0x4bb73a){const _0x569f95=_0x361463;var _0x137fc4;const _0xb0609c=lodash[_0x569f95(0x12f)]({},this[_0x569f95(0x170)]['body']||this['request'][((_0x137fc4=config===null||config===void 0x0?void 0x0:config[_0x569f95(0x129)])===null||_0x137fc4===void 0x0?void 0x0:_0x137fc4[_0x569f95(0x143)])||_0x569f95(0x128)]||{},this['request']['query']||{});return _0x14f072?lodash[_0x569f95(0x148)](_0xb0609c,_0x14f072,_0x4bb73a):_0xb0609c;}},'when':{'value':async function(_0x52b070,_0x48189b){const _0x31647d=_0x361463,_0x23d14b=this['input'](_0x52b070,null);if(!lodash[_0x31647d(0x13f)](_0x23d14b))return await _0x48189b(_0x23d14b);}},'only':{'value':function(_0x61f2e2){const _0x226948=_0x361463,_0xb64906={};for(let _0x550e69=0x0;_0x550e69<_0x61f2e2['length'];_0x550e69++){lodash[_0x226948(0x16d)](_0x61f2e2[_0x550e69])&&_0x61f2e2[_0x550e69][_0x226948(0x13b)]>0x0&&lodash[_0x226948(0x17b)](_0x61f2e2[_0x550e69][0x0])&&(_0xb64906[_0x61f2e2[_0x550e69][0x0]]=this[_0x226948(0x145)](_0x61f2e2[_0x550e69][0x0],_0x61f2e2[_0x550e69]['length']>0x1?_0x61f2e2[_0x550e69][0x1]:null));}return _0xb64906;}}});});}async[a2_0x284553(0x134)](){const _0x45d5e7=a2_0x284553;var _0x1b3338,_0xb93474,_0x3bbcb2,_0x4caffa,_0x41ab5d,_0x90e319;const _0x405e3e=this[_0x45d5e7(0x164)][_0x45d5e7(0x12e)]();((_0xb93474=(_0x1b3338=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x131)])===null||_0x1b3338===void 0x0?void 0x0:_0x1b3338[_0x45d5e7(0x13a)])===null||_0xb93474===void 0x0?void 0x0:_0xb93474[_0x45d5e7(0x163)])&&Object[_0x45d5e7(0x17c)](_0x405e3e['anncicapi'][_0x45d5e7(0x13a)])['length']>0x1&&delete _0x405e3e[_0x45d5e7(0x131)][_0x45d5e7(0x13a)][_0x45d5e7(0x163)];if((_0x3bbcb2=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x17e)])===null||_0x3bbcb2===void 0x0?void 0x0:_0x3bbcb2[_0x45d5e7(0x178)])for(const _0xca17a2 in _0x405e3e[_0x45d5e7(0x17e)]['dirs']){((_0x4caffa=_0x405e3e[_0x45d5e7(0x17e)][_0x45d5e7(0x178)][_0xca17a2])===null||_0x4caffa===void 0x0?void 0x0:_0x4caffa[_0x45d5e7(0x154)])&&typeof((_0x41ab5d=_0x405e3e['staticFile'][_0x45d5e7(0x178)][_0xca17a2])===null||_0x41ab5d===void 0x0?void 0x0:_0x41ab5d[_0x45d5e7(0x154)])==_0x45d5e7(0x15b)&&!fs[_0x45d5e7(0x13d)](_0x405e3e[_0x45d5e7(0x17e)][_0x45d5e7(0x178)][_0xca17a2][_0x45d5e7(0x154)])&&(fs['mkdirSync'](_0x405e3e[_0x45d5e7(0x17e)]['dirs'][_0xca17a2][_0x45d5e7(0x154)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x405e3e['staticFile'][_0x45d5e7(0x178)][_0xca17a2][_0x45d5e7(0x154)]));}((_0x90e319=_0x405e3e===null||_0x405e3e===void 0x0?void 0x0:_0x405e3e[_0x45d5e7(0x15e)])===null||_0x90e319===void 0x0?void 0x0:_0x90e319[_0x45d5e7(0x150)])&&!fs[_0x45d5e7(0x13d)](_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)])&&(fs[_0x45d5e7(0x139)](_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)],{'recursive':!![]}),console['log'](_0x45d5e7(0x14c)+_0x405e3e[_0x45d5e7(0x15e)][_0x45d5e7(0x150)])),this['config'][_0x45d5e7(0x141)](_0x405e3e);}};__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1['MidwayConfigService'])],CustomConfiguration['prototype'],a2_0x284553(0x164),void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x172)])],CustomConfiguration[a2_0x284553(0x175)],a2_0x284553(0x15f),void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x156)])],CustomConfiguration[a2_0x284553(0x175)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),core_1[a2_0x284553(0x136)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,decorator_1[a2_0x284553(0x179)])(),__metadata(a2_0x284553(0x130),ApiService_1['ApiService'])],CustomConfiguration[a2_0x284553(0x175)],a2_0x284553(0x174),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x284553(0x16b)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x284553(0x12b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x284553(0x140)]=CustomConfiguration;function a2_0x31e6(){const _0x321310=['decorator','2079135ChqoZu','10gyFkaD','1473153hIFTkW','DEFAULT','config','function','2408601SQJaDN','@midwayjs/koa','HEADERS_SIGNATURE','30anRfqY','handlerActionRoute','Configuration','612661tpbPAX','isArray','@midwayjs/cross-domain','ACTION_ROUTE_KEY','request','koa-xml-body','MidwayDecoratorService','2922104Qfgqyg','ApiService','prototype','8mulJtG','_matchedRoute','dirs','Inject','@anncic-api/typeorm','isString','keys','@midwayjs/static-file','staticFile','application','checkConfigKeys','176017zcENpz','4MekZSc','body','bodyXml','./config/config.production','anncic-api','./types/action','@anncic-api/core','getConfiguration','defaultsDeep','design:type','anncicapi','__esModule','@anncic-api/validator','filterConfig','context','MidwayEnvironmentService','getOwnPropertyDescriptor','defineProperty','mkdirSync','devices','length','REQUEST_OBJ_CTX_KEY','existsSync','__metadata','isNull','CustomConfiguration','addObject','@midwayjs/task','key','target','input','9934983ATeuqM','onReady','get','device','anncic-apihelper','checksign','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@midwayjs/i18n','@midwayjs/decorator','bodyParser','tmpdir','@midwayjs/upload','object','./exception/ApiError','dir','__decorate','MidwayApplicationManager','headers','beforeRoute','@anncic-api/event','koa','string','hanlderApplications','metadata','upload'];a2_0x31e6=function(){return _0x321310;};return a2_0x31e6();}
|
|
1
|
+
'use strict';const a2_0x567f71=a2_0x34bd;(function(_0x412f48,_0x131ec9){const _0x380dd4=a2_0x34bd,_0x487e86=_0x412f48();while(!![]){try{const _0x1399d9=parseInt(_0x380dd4(0x1e5))/0x1+parseInt(_0x380dd4(0x1fc))/0x2+parseInt(_0x380dd4(0x1ce))/0x3*(parseInt(_0x380dd4(0x1fa))/0x4)+parseInt(_0x380dd4(0x1f7))/0x5*(-parseInt(_0x380dd4(0x1da))/0x6)+-parseInt(_0x380dd4(0x207))/0x7*(-parseInt(_0x380dd4(0x20a))/0x8)+-parseInt(_0x380dd4(0x1db))/0x9*(-parseInt(_0x380dd4(0x20c))/0xa)+-parseInt(_0x380dd4(0x1f2))/0xb;if(_0x1399d9===_0x131ec9)break;else _0x487e86['push'](_0x487e86['shift']());}catch(_0x1d0ee7){_0x487e86['push'](_0x487e86['shift']());}}}(a2_0x12f7,0x53374));var __decorate=this&&this[a2_0x567f71(0x1e4)]||function(_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f){const _0x1187ba=a2_0x567f71;var _0x209529=arguments[_0x1187ba(0x1cf)],_0x14d26a=_0x209529<0x3?_0xb75a3b:_0x47ef8f===null?_0x47ef8f=Object['getOwnPropertyDescriptor'](_0xb75a3b,_0x1622ca):_0x47ef8f,_0x159ec9;if(typeof Reflect===_0x1187ba(0x1f8)&&typeof Reflect[_0x1187ba(0x1d9)]===_0x1187ba(0x1f1))_0x14d26a=Reflect[_0x1187ba(0x1d9)](_0x5c7b6a,_0xb75a3b,_0x1622ca,_0x47ef8f);else{for(var _0x565a97=_0x5c7b6a[_0x1187ba(0x1cf)]-0x1;_0x565a97>=0x0;_0x565a97--)if(_0x159ec9=_0x5c7b6a[_0x565a97])_0x14d26a=(_0x209529<0x3?_0x159ec9(_0x14d26a):_0x209529>0x3?_0x159ec9(_0xb75a3b,_0x1622ca,_0x14d26a):_0x159ec9(_0xb75a3b,_0x1622ca))||_0x14d26a;}return _0x209529>0x3&&_0x14d26a&&Object['defineProperty'](_0xb75a3b,_0x1622ca,_0x14d26a),_0x14d26a;},__metadata=this&&this[a2_0x567f71(0x1e2)]||function(_0x29d4ad,_0x44dc47){const _0x3d8f12=a2_0x567f71;if(typeof Reflect===_0x3d8f12(0x1f8)&&typeof Reflect[_0x3d8f12(0x1ee)]===_0x3d8f12(0x1f1))return Reflect[_0x3d8f12(0x1ee)](_0x29d4ad,_0x44dc47);};Object['defineProperty'](exports,a2_0x567f71(0x1ff),{'value':!![]}),exports[a2_0x567f71(0x1b9)]=void 0x0;const decorator_1=require(a2_0x567f71(0x20d)),core_1=require(a2_0x567f71(0x1bd)),ApiError_1=require(a2_0x567f71(0x20f)),ApiService_1=require(a2_0x567f71(0x205)),action_1=require(a2_0x567f71(0x1e1)),fs=require('fs'),koa=require(a2_0x567f71(0x1d0)),i18n=require(a2_0x567f71(0x200)),task=require('@midwayjs/task'),upload=require(a2_0x567f71(0x1d1)),staticFile=require(a2_0x567f71(0x1d8)),crossDomain=require('@midwayjs/cross-domain'),bodyXml=require(a2_0x567f71(0x1ca)),bodyParser=require(a2_0x567f71(0x1b7)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x567f71(0x1f5)),anncic=require('@anncic-api/core'),anncicEvent=require(a2_0x567f71(0x1cd)),anncicTypeorm=require(a2_0x567f71(0x1dc)),anncicValidator=require(a2_0x567f71(0x1e6)),anncicHelper=require(a2_0x567f71(0x1f3));function a2_0x12f7(){const _0x3252f3=['handlerActionRoute','./exception/ApiError','query','decorator','config','koa-bodyparser','ACTION_ROUTE_KEY','CustomConfiguration','Configuration','hanlderApplications','prototype','@midwayjs/core','getConfiguration','device','beforeRoute','forEach','upload','bodyParser','tmpdir','devices','existsSync','mkdirSync','keys','headers','koa-xml-body','defineProperties','filterConfig','@anncic-api/event','912147XidQBj','length','@midwayjs/koa','@midwayjs/upload','anncicapi','bodyXml','MidwayApplicationManager','key','ApiService','MidwayDecoratorService','@midwayjs/static-file','decorate','408YGNRen','27BNNRAs','@anncic-api/typeorm','design:type','checksign','apimit','isArray','./types/action','__metadata','isString','__decorate','229208KRYKiv','@anncic-api/validator','input','context','target','environment','staticFile','HEADERS_SIGNATURE','anncic-api','metadata','useMiddleware','REQUEST_OBJ_CTX_KEY','function','7809538URkNNp','anncic-apihelper','koa','./config/config.production','log','43115RjEiUf','object','DEFAULT','8yyPkow','Inject','1038898FaQNZk','request','ApiError','__esModule','@midwayjs/i18n','Anncic-api\x20static-file\x20:\x20mkdir\x20','dirs','registerMethodHandler','onReady','./service/ApiService','checkConfigKeys','21cYylOP','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','603792GGMTss','dir','179990FMbuzE','@midwayjs/decorator'];a2_0x12f7=function(){return _0x3252f3;};return a2_0x12f7();}let CustomConfiguration=class CustomConfiguration{async[a2_0x567f71(0x204)](){const _0x5e136a=a2_0x567f71;await this[_0x5e136a(0x1cc)](),await this[_0x5e136a(0x206)](),await this[_0x5e136a(0x20e)](),await this['hanlderApplications']();}async[a2_0x567f71(0x206)](){}async[a2_0x567f71(0x20e)](){const _0x528df8=a2_0x567f71,_0x2e467d=this[_0x528df8(0x1b6)]['getConfiguration']();this[_0x528df8(0x1b5)][_0x528df8(0x203)](action_1[_0x528df8(0x1b8)],_0xfa223c=>{const _0x4a2c68=_0x528df8,_0x5853a0=_0xfa223c[_0x4a2c68(0x1ee)];return{'before':async _0x216165=>{const _0x1da3b6=_0x4a2c68;var _0x44af5a,_0x267390,_0x1e1071,_0x5d4b1d,_0x5bb622;const _0x5f45ff=(_0x44af5a=_0x216165===null||_0x216165===void 0x0?void 0x0:_0x216165[_0x1da3b6(0x1e9)])===null||_0x44af5a===void 0x0?void 0x0:_0x44af5a[core_1[_0x1da3b6(0x1f0)]];if(_0x5f45ff){if((_0x5853a0===null||_0x5853a0===void 0x0?void 0x0:_0x5853a0[_0x1da3b6(0x1df)])&&!this[_0x1da3b6(0x1d6)][_0x1da3b6(0x1de)]((_0x267390=_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff[_0x1da3b6(0x1fd)])===null||_0x267390===void 0x0?void 0x0:_0x267390['headers']))throw new AnnError(ApiError_1[_0x1da3b6(0x1fe)][_0x1da3b6(0x1ec)]);((_0x1e1071=_0x5f45ff[_0x1da3b6(0x1c9)])===null||_0x1e1071===void 0x0?void 0x0:_0x1e1071[_0x1da3b6(0x1bf)])&&((_0x5bb622=(_0x5d4b1d=_0x2e467d===null||_0x2e467d===void 0x0?void 0x0:_0x2e467d[_0x1da3b6(0x1d2)])===null||_0x5d4b1d===void 0x0?void 0x0:_0x5d4b1d['devices'])===null||_0x5bb622===void 0x0?void 0x0:_0x5bb622[_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]])&&(typeof _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]][_0x1da3b6(0x1c0)]==_0x1da3b6(0x1f1)&&await _0x2e467d[_0x1da3b6(0x1d2)][_0x1da3b6(0x1c5)][_0x5f45ff[_0x1da3b6(0x1c9)][_0x1da3b6(0x1bf)]]['beforeRoute']((_0x5f45ff===null||_0x5f45ff===void 0x0?void 0x0:_0x5f45ff['_matchedRoute'])||undefined,_0x5853a0,_0x5f45ff));}},'afterThrow':(_0x34e4ec,_0x51ac12)=>{throw _0x51ac12;}};});}async[a2_0x567f71(0x1bb)](){const _0xa5a2a8=a2_0x567f71;this['application']['getApplications']([_0xa5a2a8(0x1f4)])[_0xa5a2a8(0x1c1)](_0x5863a0=>{const _0x3b6168=_0xa5a2a8;_0x5863a0[_0x3b6168(0x1ef)](bodyXml(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1d3)))),_0x5863a0[_0x3b6168(0x1ef)](bodyParser(this[_0x3b6168(0x1b6)][_0x3b6168(0x1be)](_0x3b6168(0x1c3)))),(_0x5863a0===null||_0x5863a0===void 0x0?void 0x0:_0x5863a0[_0x3b6168(0x1e8)])&&Object[_0x3b6168(0x1cb)](_0x5863a0[_0x3b6168(0x1e8)],{'ok':{'value':function(_0x21dd9a,_0x5cd6eb,_0x12958a=0x0){return{'code':_0x12958a,'data':_0x21dd9a,'extra':_0x5cd6eb};}},'err':{'value':function(_0xda546c,_0x5c8938,_0xa2b0dc=0x1){return{'code':_0xa2b0dc,'extra':_0x5c8938,'msg':_0xda546c};}},'input':{'value':function(_0x53bff0,_0x173460){const _0x30f3e0=_0x3b6168;var _0xfdcf6a;const _0x3d88f1=lodash['defaultsDeep']({},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x209)]||this[_0x30f3e0(0x1fd)][((_0xfdcf6a=config===null||config===void 0x0?void 0x0:config[_0x30f3e0(0x1d3)])===null||_0xfdcf6a===void 0x0?void 0x0:_0xfdcf6a[_0x30f3e0(0x1d5)])||_0x30f3e0(0x209)]||{},this[_0x30f3e0(0x1fd)][_0x30f3e0(0x210)]||{});return _0x53bff0?lodash['get'](_0x3d88f1,_0x53bff0,_0x173460):_0x3d88f1;}},'when':{'value':async function(_0x22c2f4,_0x20ff3e){const _0x3f2dca=_0x3b6168,_0x2bf70a=this[_0x3f2dca(0x1e7)](_0x22c2f4,null);if(!lodash['isNull'](_0x2bf70a))return await _0x20ff3e(_0x2bf70a);}},'only':{'value':function(_0x172299){const _0x101301=_0x3b6168,_0x4b6320={};for(let _0x352592=0x0;_0x352592<_0x172299['length'];_0x352592++){lodash[_0x101301(0x1e0)](_0x172299[_0x352592])&&_0x172299[_0x352592][_0x101301(0x1cf)]>0x0&&lodash[_0x101301(0x1e3)](_0x172299[_0x352592][0x0])&&(_0x4b6320[_0x172299[_0x352592][0x0]]=this[_0x101301(0x1e7)](_0x172299[_0x352592][0x0],_0x172299[_0x352592][_0x101301(0x1cf)]>0x1?_0x172299[_0x352592][0x1]:null));}return _0x4b6320;}}});});}async[a2_0x567f71(0x1cc)](){const _0xa882ac=a2_0x567f71;var _0x30e97f,_0x586c0c,_0x5b2e76,_0x38bf43,_0x345366,_0x1ea075;const _0x21b2c0=this[_0xa882ac(0x1b6)][_0xa882ac(0x1be)]();((_0x586c0c=(_0x30e97f=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1d2)])===null||_0x30e97f===void 0x0?void 0x0:_0x30e97f['devices'])===null||_0x586c0c===void 0x0?void 0x0:_0x586c0c[_0xa882ac(0x1f9)])&&Object[_0xa882ac(0x1c8)](_0x21b2c0[_0xa882ac(0x1d2)][_0xa882ac(0x1c5)])[_0xa882ac(0x1cf)]>0x1&&delete _0x21b2c0['anncicapi'][_0xa882ac(0x1c5)][_0xa882ac(0x1f9)];if((_0x5b2e76=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1eb)])===null||_0x5b2e76===void 0x0?void 0x0:_0x5b2e76['dirs'])for(const _0x4a62c5 in _0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)]){((_0x38bf43=_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5])===null||_0x38bf43===void 0x0?void 0x0:_0x38bf43[_0xa882ac(0x20b)])&&typeof((_0x345366=_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5])===null||_0x345366===void 0x0?void 0x0:_0x345366[_0xa882ac(0x20b)])=='string'&&!fs[_0xa882ac(0x1c6)](_0x21b2c0[_0xa882ac(0x1eb)]['dirs'][_0x4a62c5]['dir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x201)+_0x21b2c0[_0xa882ac(0x1eb)][_0xa882ac(0x202)][_0x4a62c5][_0xa882ac(0x20b)]));}((_0x1ea075=_0x21b2c0===null||_0x21b2c0===void 0x0?void 0x0:_0x21b2c0[_0xa882ac(0x1c2)])===null||_0x1ea075===void 0x0?void 0x0:_0x1ea075[_0xa882ac(0x1c4)])&&!fs['existsSync'](_0x21b2c0['upload']['tmpdir'])&&(fs[_0xa882ac(0x1c7)](_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)],{'recursive':!![]}),console[_0xa882ac(0x1f6)](_0xa882ac(0x208)+_0x21b2c0[_0xa882ac(0x1c2)][_0xa882ac(0x1c4)])),this[_0xa882ac(0x1b6)]['addObject'](_0x21b2c0);}};function a2_0x34bd(_0x5127ee,_0x2eefb8){const _0x12f763=a2_0x12f7();return a2_0x34bd=function(_0x34bd38,_0x25d3f6){_0x34bd38=_0x34bd38-0x1b5;let _0x38715e=_0x12f763[_0x34bd38];return _0x38715e;},a2_0x34bd(_0x5127ee,_0x2eefb8);}__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1b6),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),core_1[a2_0x567f71(0x1d7)])],CustomConfiguration['prototype'],a2_0x567f71(0x1b5),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1[a2_0x567f71(0x1d4)])],CustomConfiguration[a2_0x567f71(0x1bc)],'application',void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1ea),void 0x0),__decorate([(0x0,decorator_1[a2_0x567f71(0x1fb)])(),__metadata(a2_0x567f71(0x1dd),ApiService_1['ApiService'])],CustomConfiguration[a2_0x567f71(0x1bc)],a2_0x567f71(0x1d6),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x567f71(0x1ba)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x567f71(0x1ed),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x567f71(0x1b9)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x42db(_0x5e8d45,_0x63dfb){const _0x1dd8fe=a3_0x1dd8();return a3_0x42db=function(_0x42dbc9,_0x14e699){_0x42dbc9=_0x42dbc9-0x99;let _0x151265=_0x1dd8fe[_0x42dbc9];return _0x151265;},a3_0x42db(_0x5e8d45,_0x63dfb);}const a3_0x4ba6d7=a3_0x42db;function a3_0x1dd8(){const _0x5fa9e0=['module','join','-controller','../types/action','endsWith','isArray','403900xgllPV','length','apps/','trim','155SrQkoV','rootpath','Action','startsWith','18yyKuci','defineProperty','prefix','route','match','1827558FJZMBS','18988EOlikN','app/controller/','-action','splice','417oaIAjS','ACTION_KEY','6716192HAmsZn','saveClassMetadata','62180ZRDfvF','\x20文件请放在app/controller/文件下','\x20文件请放在apps/','/config.','filepath','tagName','middleware','split','indexOf','saveModule','/apps/','middlewareIgnore','toLowerCase','/controller/','76848UvUeOf','push','Controller','cwd','substring','parseRoute','replace','6642590TWfSrx','existsSync'];a3_0x1dd8=function(){return _0x5fa9e0;};return a3_0x1dd8();}(function(_0x18ae6c,_0x2b7192){const _0x51f1da=a3_0x42db,_0x3ddd58=_0x18ae6c();while(!![]){try{const _0x33b7ba=-parseInt(_0x51f1da(0xc7))/0x1+-parseInt(_0x51f1da(0xbe))/0x2+parseInt(_0x51f1da(0xc3))/0x3*(parseInt(_0x51f1da(0xbf))/0x4)+parseInt(_0x51f1da(0xb5))/0x5*(parseInt(_0x51f1da(0xa2))/0x6)+parseInt(_0x51f1da(0xb1))/0x7+-parseInt(_0x51f1da(0xc5))/0x8+-parseInt(_0x51f1da(0xb9))/0x9*(-parseInt(_0x51f1da(0xa9))/0xa);if(_0x33b7ba===_0x2b7192)break;else _0x3ddd58['push'](_0x3ddd58['shift']());}catch(_0x1a1617){_0x3ddd58['push'](_0x3ddd58['shift']());}}}(a3_0x1dd8,0x993a0));Object[a3_0x4ba6d7(0xba)](exports,'__esModule',{'value':!![]}),exports[a3_0x4ba6d7(0xa7)]=exports['Action']=void 0x0;const fs=require('fs'),decorator_1=require('@midwayjs/decorator'),action_1=require(a3_0x4ba6d7(0xae));function Action(_0x541ac0,_0x255ce0,_0x34059e={'middleware':[],'sensitive':!![]}){return _0x213a87=>{const _0x228801=a3_0x42db;_0x34059e[_0x228801(0x99)]=_0x255ce0;const _0x32a166=parseRoute(_0x541ac0);if(_0x32a166[_0x228801(0xab)]){_0x34059e[_0x228801(0xbb)]=_0x34059e['prefix']?'/'+_0x32a166[_0x228801(0xab)]+'/'+_0x34059e[_0x228801(0xbb)]:'/'+_0x32a166[_0x228801(0xbc)];_0x32a166[_0x228801(0xbb)]&&(_0x34059e['prefix']='/'+_0x32a166[_0x228801(0xbb)]+'/'+_0x34059e[_0x228801(0xbb)]);if(fs[_0x228801(0xaa)](_0x32a166[_0x228801(0xb6)]+_0x228801(0x9e)+_0x32a166[_0x228801(0xab)]+_0x228801(0xca)+(lodash['endsWith'](_0x32a166[_0x228801(0xcb)],'ts')?'ts':'js'))){const _0x42e5e2=include(_0x32a166['rootpath']+_0x228801(0x9e)+_0x32a166[_0x228801(0xab)]+_0x228801(0xca)+(lodash[_0x228801(0xaf)](_0x32a166[_0x228801(0xcb)],'ts')?'ts':'js'));if(_0x42e5e2[_0x228801(0x9a)]&&lodash[_0x228801(0xb0)](_0x42e5e2[_0x228801(0x9a)])&&_0x42e5e2[_0x228801(0x9a)][_0x228801(0xb2)]>0x0)for(let _0x316de0 in _0x42e5e2[_0x228801(0x9a)]){_0x42e5e2[_0x228801(0x9f)][_0x228801(0x9c)](_0x42e5e2[_0x228801(0x9a)][_0x316de0])==-0x1&&_0x34059e[_0x228801(0x9a)][_0x228801(0xa3)](_0x42e5e2[_0x228801(0x9a)][_0x316de0]);}}_0x34059e[_0x228801(0xbb)]=_0x34059e['prefix'][_0x228801(0xa0)]()[_0x228801(0xa8)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x228801(0x9d)])(action_1[_0x228801(0xc4)],_0x213a87),(0x0,decorator_1['Controller'])(_0x34059e['prefix'],_0x34059e)(_0x213a87),(0x0,decorator_1[_0x228801(0xc6)])(action_1['ACTION_KEY'],{'prefix':_0x34059e[_0x228801(0xbb)],'pprefix':_0x32a166['prefix'],'module':_0x32a166[_0x228801(0xab)],'filepath':_0x32a166[_0x228801(0xcb)],'routerOptions':_0x34059e},_0x213a87);}else _0x34059e[_0x228801(0xbb)]=_0x34059e['prefix']?'/'+_0x34059e[_0x228801(0xbb)]:'/'+_0x32a166['route'],_0x32a166[_0x228801(0xbb)]&&(_0x34059e[_0x228801(0xbb)]='/'+_0x32a166[_0x228801(0xbb)]+'/'+_0x34059e[_0x228801(0xbb)]),_0x34059e[_0x228801(0xbb)]=_0x34059e[_0x228801(0xbb)][_0x228801(0xa0)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x228801(0xc4)],_0x213a87),(0x0,decorator_1[_0x228801(0xa4)])(_0x34059e[_0x228801(0xbb)],_0x34059e)(_0x213a87),(0x0,decorator_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x34059e[_0x228801(0xbb)],'module':_0x32a166[_0x228801(0xab)],'pprefix':_0x32a166[_0x228801(0xbb)],'filepath':_0x32a166[_0x228801(0xcb)],'routerOptions':_0x34059e},_0x213a87);};}exports[a3_0x4ba6d7(0xb7)]=Action;function parseRoute(_0x3d60b3){const _0x26c740=a3_0x4ba6d7;_0x3d60b3=_0x3d60b3['replace'](/(\\|\/)/g,'/');const _0x3333a8=process[_0x26c740(0xa5)]()['replace'](/(\\|\/)/g,'/'),_0x5dcfa6=_0x3d60b3[_0x26c740(0xa6)](0x0,_0x3333a8[_0x26c740(0xb2)]+_0x3d60b3[_0x26c740(0xa6)](_0x3333a8[_0x26c740(0xb2)]+0x1)[_0x26c740(0x9c)]('/')+0x1),_0x3ef366=_0x3d60b3[_0x26c740(0xa6)](_0x5dcfa6[_0x26c740(0xb2)]+0x1)[_0x26c740(0xa8)](/(\\|\/)/g,'/'),_0x42a009={'route':'','prefix':![],'module':![],'rootpath':_0x5dcfa6,'filepath':_0x3ef366};if(_0x3ef366[_0x26c740(0xb8)](_0x26c740(0xc0))){const _0x2bf1e0=_0x3ef366[_0x26c740(0xa6)](_0x26c740(0xc0)['length'])[_0x26c740(0x9b)]('/')['filter'](_0x17a71d=>_0x17a71d&&_0x17a71d[_0x26c740(0xb4)]());return _0x2bf1e0[_0x26c740(0xb2)]>0x1&&(_0x42a009[_0x26c740(0xbb)]=_0x2bf1e0[0x0]['toLowerCase'](),_0x2bf1e0[_0x26c740(0xc2)](0x0,0x1)),_0x42a009['route']=('/'+_0x2bf1e0['join']('/'))[_0x26c740(0xa8)](/(\.ts|\.js)$/,'')[_0x26c740(0xa8)](/\/{2,}/g,'/')[_0x26c740(0xbd)](/[\/|A-Z]*[^A-Z]+/g)[_0x26c740(0xac)]('-')['toLowerCase']()[_0x26c740(0xa8)](/\/\-/g,'/'),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xc1))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0x7)),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xad))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0xb)),_0x42a009;}else{if(_0x3ef366[_0x26c740(0xb8)](_0x26c740(0xb3))){const _0x5704c7=_0x3ef366['substring'](0x0,_0x3ef366[_0x26c740(0x9c)]('/apps/')+0x5),_0x32d905=_0x3ef366['substring'](_0x5704c7[_0x26c740(0xb2)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x26c740(0x9b)]('/')[0x0];if(_0x3ef366['startsWith']('apps/'+_0x32d905+'/controller/')){const _0x20d9d4=_0x3ef366[_0x26c740(0xa6)]((_0x5704c7+'/'+_0x32d905+_0x26c740(0xa1))[_0x26c740(0xb2)])[_0x26c740(0x9b)]('/')['filter'](_0x5e9686=>_0x5e9686&&_0x5e9686[_0x26c740(0xb4)]());return _0x20d9d4['length']>0x1&&(_0x42a009[_0x26c740(0xbb)]=_0x20d9d4[0x0]['toLowerCase'](),_0x20d9d4[_0x26c740(0xc2)](0x0,0x1)),_0x42a009['module']=_0x32d905,_0x42a009[_0x26c740(0xbc)]=('/'+_0x32d905+'/'+_0x20d9d4[_0x26c740(0xac)]('/'))[_0x26c740(0xa8)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x26c740(0xa8)](/\/\-/g,'/'),_0x42a009[_0x26c740(0xbc)][_0x26c740(0xaf)](_0x26c740(0xc1))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)]['length']-0x7)),_0x42a009[_0x26c740(0xbc)]['endsWith'](_0x26c740(0xad))&&(_0x42a009[_0x26c740(0xbc)]=_0x42a009[_0x26c740(0xbc)][_0x26c740(0xa6)](0x0,_0x42a009[_0x26c740(0xbc)][_0x26c740(0xb2)]-0xb)),_0x42a009;}throw new Error(_0x3ef366+_0x26c740(0xc9)+_0x32d905+'/controller/文件下');}}throw new Error(_0x3ef366+_0x26c740(0xc8));}exports[a3_0x4ba6d7(0xa7)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x236af8=a4_0x41cd;function a4_0x3e06(){const _0x89c465=['../types/action','316742BsoIMF','indexOf','delete','validationOptions','ACTION_ROUTE_KEY','middlewareIgnore','Api','apimit','attachClassMetadata','RequestMapping','length','42DfQTcs','@anncic-api/validator','30735aDSuTK','7526090mRTYVd','middleware','toLowerCase','56rOHgxA','createCustomMethodDecorator','__esModule','973233DfAyrY','60tnKIDF','17994636ScBgRX','description','filter','2146515imvCbd','@midwayjs/decorator','routerName','utc','validate','Validator','4LIxBVn','assign','get','889021CJgKZt'];a4_0x3e06=function(){return _0x89c465;};return a4_0x3e06();}(function(_0x30ad41,_0x5452d8){const _0x4b8c82=a4_0x41cd,_0x41f47d=_0x30ad41();while(!![]){try{const _0x4dccb1=-parseInt(_0x4b8c82(0x1cc))/0x1*(-parseInt(_0x4b8c82(0x1c7))/0x2)+parseInt(_0x4b8c82(0x1b5))/0x3*(parseInt(_0x4b8c82(0x1bd))/0x4)+parseInt(_0x4b8c82(0x1c1))/0x5+parseInt(_0x4b8c82(0x1d7))/0x6*(parseInt(_0x4b8c82(0x1ca))/0x7)+parseInt(_0x4b8c82(0x1b9))/0x8*(parseInt(_0x4b8c82(0x1bc))/0x9)+-parseInt(_0x4b8c82(0x1b6))/0xa+-parseInt(_0x4b8c82(0x1be))/0xb;if(_0x4dccb1===_0x5452d8)break;else _0x41f47d['push'](_0x41f47d['shift']());}catch(_0x48bcec){_0x41f47d['push'](_0x41f47d['shift']());}}}(a4_0x3e06,0x73b65));function a4_0x41cd(_0x18b75a,_0x2139f9){const _0x3e06d3=a4_0x3e06();return a4_0x41cd=function(_0x41cdb7,_0x5dfa01){_0x41cdb7=_0x41cdb7-0x1b5;let _0xf818a3=_0x3e06d3[_0x41cdb7];return _0xf818a3;},a4_0x41cd(_0x18b75a,_0x2139f9);}Object['defineProperty'](exports,a4_0x236af8(0x1bb),{'value':!![]}),exports[a4_0x236af8(0x1d2)]=void 0x0;const validator_1=require(a4_0x236af8(0x1d8)),decorator_1=require(a4_0x236af8(0x1c2)),action_1=require(a4_0x236af8(0x1cb));function Api(_0x23d7dc,_0x22fb3c=a4_0x236af8(0x1c9),_0x3b23f6='/',_0x110e49={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x179244,_0x42085e,_0x7460fa)=>{const _0x30a539=a4_0x41cd;var _0x5ed0cf,_0x7e4ac7,_0x2525e1;!_0x110e49[_0x30a539(0x1b7)]&&(_0x110e49['middleware']=[]);!((_0x5ed0cf=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1c5)])===null||_0x5ed0cf===void 0x0?void 0x0:_0x5ed0cf[_0x30a539(0x1cf)])&&(_0x110e49[_0x30a539(0x1c5)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x30a539(0x1c4)}});if(((_0x7e4ac7=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1b7)])===null||_0x7e4ac7===void 0x0?void 0x0:_0x7e4ac7[_0x30a539(0x1d6)])>0x0&&((_0x2525e1=_0x110e49===null||_0x110e49===void 0x0?void 0x0:_0x110e49[_0x30a539(0x1d1)])===null||_0x2525e1===void 0x0?void 0x0:_0x2525e1[_0x30a539(0x1d6)])>0x0)for(let _0x44d20e in _0x110e49['middleware']){_0x110e49[_0x30a539(0x1d1)][_0x30a539(0x1cd)](_0x110e49[_0x30a539(0x1b7)][_0x44d20e])!==-0x1&&(_0x110e49['middleware'][_0x44d20e]=null);}_0x110e49[_0x30a539(0x1c3)]=_0x23d7dc,(0x0,validator_1[_0x30a539(0x1c6)])(_0x110e49['validate'])(_0x179244,_0x42085e,_0x7460fa),(0x0,decorator_1[_0x30a539(0x1d5)])(Object[_0x30a539(0x1c8)](_0x110e49,{'path':_0x3b23f6,'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)[_0x30a539(0x1b8)]()}))(_0x179244,_0x42085e,_0x7460fa),(0x0,decorator_1[_0x30a539(0x1d4)])(action_1[_0x30a539(0x1d0)],{'path':_0x3b23f6,'method':_0x42085e,'apimit':_0x110e49[_0x30a539(0x1d3)],'routerName':_0x110e49[_0x30a539(0x1c3)],'description':_0x110e49[_0x30a539(0x1bf)],'middleware':(_0x110e49[_0x30a539(0x1b7)]||[])[_0x30a539(0x1c0)](_0x5bc689=>!!_0x5bc689),'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)[_0x30a539(0x1b8)]()},_0x179244),(0x0,decorator_1[_0x30a539(0x1ba)])(action_1[_0x30a539(0x1d0)],{'path':_0x3b23f6,'method':_0x42085e,'apimit':_0x110e49[_0x30a539(0x1d3)],'routerName':_0x110e49['routerName'],'description':_0x110e49[_0x30a539(0x1bf)],'middleware':(_0x110e49['middleware']||[])[_0x30a539(0x1c0)](_0x51ca59=>!!_0x51ca59),'requestMethod':(_0x22fb3c=='del'?_0x30a539(0x1ce):_0x22fb3c)['toLowerCase']()})(_0x179244,_0x42085e,_0x7460fa);};}exports[a4_0x236af8(0x1d2)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0xf395ab=a5_0x5308;(function(_0x57a921,_0x548086){const _0x2b6f70=a5_0x5308,_0x187c11=_0x57a921();while(!![]){try{const _0x8529d0=-parseInt(_0x2b6f70(0x1d0))/0x1+parseInt(_0x2b6f70(0x1d1))/0x2+-parseInt(_0x2b6f70(0x1dd))/0x3*(parseInt(_0x2b6f70(0x1e2))/0x4)+parseInt(_0x2b6f70(0x1d2))/0x5+-parseInt(_0x2b6f70(0x1e1))/0x6+parseInt(_0x2b6f70(0x1de))/0x7+parseInt(_0x2b6f70(0x1d8))/0x8;if(_0x8529d0===_0x548086)break;else _0x187c11['push'](_0x187c11['shift']());}catch(_0x1a9300){_0x187c11['push'](_0x187c11['shift']());}}}(a5_0x11ee,0xadabd));Object['defineProperty'](exports,a5_0xf395ab(0x1e3),{'value':!![]}),exports[a5_0xf395ab(0x1cf)]=void 0x0;function a5_0x5308(_0x5088ad,_0x10469f){const _0x11eeba=a5_0x11ee();return a5_0x5308=function(_0x5308ff,_0x20a50d){_0x5308ff=_0x5308ff-0x1ca;let _0x14bea9=_0x11eeba[_0x5308ff];return _0x14bea9;},a5_0x5308(_0x5088ad,_0x10469f);}const decorator_1=require(a5_0xf395ab(0x1e0)),core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0xf395ab(0x1d9));function a5_0x11ee(){const _0x542ffa=['711020yaGjSF','1455156RFvVKG','4002605CWBDJM','RequestMapping','getApplicationContext','apidoc','ApitestService','get','3006952jhNJIw','../service/ApitestService','value','REQUEST_OBJ_CTX_KEY','/apitest','1026PHJeAx','8776488SytCyk','isDevelopmentEnvironment','@midwayjs/decorator','7976526QlVFWt','4748SpdDPu','__esModule','filepath','app','getConfig','MidwayEnvironmentService','apitest','getAsync','Apitest'];a5_0x11ee=function(){return _0x542ffa;};return a5_0x11ee();}function Apitest(_0xbddfdf=a5_0xf395ab(0x1dc),_0x3a6d21){return(_0x3026d8,_0x29a16e,_0x265f22)=>{const _0x4e40eb=a5_0x5308;return(0x0,decorator_1[_0x4e40eb(0x1d3)])({'path':_0xbddfdf,'requestMethod':_0x4e40eb(0x1d7)})(_0x3026d8,_0x29a16e,_0x265f22),_0x265f22[_0x4e40eb(0x1da)]=async function(..._0x5752d8){const _0x1818ed=_0x4e40eb;var _0x2f354c;const _0x372cc9=(_0x2f354c=this[core_1[_0x1818ed(0x1db)]])===null||_0x2f354c===void 0x0?void 0x0:_0x2f354c[_0x1818ed(0x1ca)];if(_0x372cc9&&_0x372cc9[_0x1818ed(0x1cb)](_0x1818ed(0x1cd))){const _0x397ff0=await _0x372cc9[_0x1818ed(0x1d4)]()[_0x1818ed(0x1ce)](ApitestService_1[_0x1818ed(0x1d6)]),_0x315ca8=await _0x372cc9[_0x1818ed(0x1d4)]()[_0x1818ed(0x1ce)](core_1[_0x1818ed(0x1cc)]);return _0x315ca8[_0x1818ed(0x1df)]()&&(_0x3a6d21[_0x1818ed(0x1e4)]=!![]),await _0x397ff0[_0x1818ed(0x1d5)](_0x3a6d21);}return'';},_0x265f22;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a6_0x1cd000=a6_0x1a67;(function(_0x567962,_0x3d8dd6){var _0x49cf0d=a6_0x1a67,_0x35cdca=_0x567962();while(!![]){try{var _0x1893d7=parseInt(_0x49cf0d(0x8a))/0x1+-parseInt(_0x49cf0d(0x8b))/0x2+parseInt(_0x49cf0d(0xa0))/0x3+parseInt(_0x49cf0d(0x87))/0x4*(-parseInt(_0x49cf0d(0x89))/0x5)+-parseInt(_0x49cf0d(0xa3))/0x6*(-parseInt(_0x49cf0d(0x8d))/0x7)+-parseInt(_0x49cf0d(0x8e))/0x8*(parseInt(_0x49cf0d(0x92))/0x9)+-parseInt(_0x49cf0d(0x97))/0xa;if(_0x1893d7===_0x3d8dd6)break;else _0x35cdca['push'](_0x35cdca['shift']());}catch(_0x3db276){_0x35cdca['push'](_0x35cdca['shift']());}}}(a6_0x4acf,0x69a76));var __decorate=this&&this[a6_0x1cd000(0x91)]||function(_0x5314cc,_0x319373,_0x1fa44b,_0x27e91b){var _0xf6e69e=a6_0x1cd000,_0x1176ac=arguments['length'],_0x13df0c=_0x1176ac<0x3?_0x319373:_0x27e91b===null?_0x27e91b=Object[_0xf6e69e(0x93)](_0x319373,_0x1fa44b):_0x27e91b,_0x497195;if(typeof Reflect==='object'&&typeof Reflect[_0xf6e69e(0x8f)]===_0xf6e69e(0x9f))_0x13df0c=Reflect[_0xf6e69e(0x8f)](_0x5314cc,_0x319373,_0x1fa44b,_0x27e91b);else{for(var _0x10d9b4=_0x5314cc[_0xf6e69e(0x98)]-0x1;_0x10d9b4>=0x0;_0x10d9b4--)if(_0x497195=_0x5314cc[_0x10d9b4])_0x13df0c=(_0x1176ac<0x3?_0x497195(_0x13df0c):_0x1176ac>0x3?_0x497195(_0x319373,_0x1fa44b,_0x13df0c):_0x497195(_0x319373,_0x1fa44b))||_0x13df0c;}return _0x1176ac>0x3&&_0x13df0c&&Object['defineProperty'](_0x319373,_0x1fa44b,_0x13df0c),_0x13df0c;},__metadata=this&&this[a6_0x1cd000(0x9a)]||function(_0x1fa138,_0xdf12b2){var _0x23495e=a6_0x1cd000;if(typeof Reflect==='object'&&typeof Reflect[_0x23495e(0xa2)]===_0x23495e(0x9f))return Reflect[_0x23495e(0xa2)](_0x1fa138,_0xdf12b2);};Object[a6_0x1cd000(0x99)](exports,a6_0x1cd000(0x9c),{'value':!![]}),exports[a6_0x1cd000(0x95)]=void 0x0;class ApiError{}function a6_0x4acf(){var _0x15337d=['请求头信息不完整','metadata','202398VivQjb','signature验证失败','324WbiCuc','TIMEOUT','530yGIZJX','858971tgEbYM','309712RdWVWp','HEADERS_SIGNATURE','21HYLYqf','8RWEfYL','decorate','网络繁忙,请稍后重试','__decorate','3564738IcVSmr','getOwnPropertyDescriptor','HEADERS_DEVICE','ApiError','design:type','1386210cKWLvg','length','defineProperty','__metadata','HEADERS_LACK','__esModule','请使用正确的设备','HEADERS_CHECKCODE','function','512199NHkpSK'];a6_0x4acf=function(){return _0x15337d;};return a6_0x4acf();}function a6_0x1a67(_0x5a36bf,_0x166397){var _0x4acf6c=a6_0x4acf();return a6_0x1a67=function(_0x1a67bf,_0x4f5a7d){_0x1a67bf=_0x1a67bf-0x86;var _0x6ed55a=_0x4acf6c[_0x1a67bf];return _0x6ed55a;},a6_0x1a67(_0x5a36bf,_0x166397);}ApiError[a6_0x1cd000(0x88)]=0x18a89,ApiError[a6_0x1cd000(0x9b)]=0x18a8a,ApiError[a6_0x1cd000(0x94)]=0x18a8b,ApiError[a6_0x1cd000(0x9e)]=0x18a8c,ApiError[a6_0x1cd000(0x8c)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x1cd000(0x90)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,a6_0x1cd000(0x88),void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0xa1)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0x9d)),__metadata(a6_0x1cd000(0x96),Object)],ApiError,a6_0x1cd000(0x94),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x1cd000(0x96),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg(a6_0x1cd000(0x86)),__metadata('design:type',Object)],ApiError,a6_0x1cd000(0x8c),void 0x0),exports[a6_0x1cd000(0x95)]=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x3b9aea=a7_0x5c51;(function(_0x51f4d6,_0x3b64fb){const _0x504f72=a7_0x5c51,_0x30b7bb=_0x51f4d6();while(!![]){try{const _0x26b005=-parseInt(_0x504f72(0x1bb))/0x1+parseInt(_0x504f72(0x1a4))/0x2*(-parseInt(_0x504f72(0x1aa))/0x3)+parseInt(_0x504f72(0x1b1))/0x4+-parseInt(_0x504f72(0x1e7))/0x5+parseInt(_0x504f72(0x1ef))/0x6+parseInt(_0x504f72(0x1e5))/0x7*(-parseInt(_0x504f72(0x1ed))/0x8)+-parseInt(_0x504f72(0x1ec))/0x9*(-parseInt(_0x504f72(0x1ba))/0xa);if(_0x26b005===_0x3b64fb)break;else _0x30b7bb['push'](_0x30b7bb['shift']());}catch(_0x4de3c3){_0x30b7bb['push'](_0x30b7bb['shift']());}}}(a7_0x4908,0x41ca2));function a7_0x5c51(_0x44d3c0,_0x53830c){const _0x4908b2=a7_0x4908();return a7_0x5c51=function(_0x5c51f3,_0x52dcbb){_0x5c51f3=_0x5c51f3-0x18f;let _0xdde32c=_0x4908b2[_0x5c51f3];return _0xdde32c;},a7_0x5c51(_0x44d3c0,_0x53830c);}Object[a7_0x3b9aea(0x196)](exports,a7_0x3b9aea(0x1cc),{'value':!![]}),exports[a7_0x3b9aea(0x1b7)]=void 0x0;const lodash_1=require(a7_0x3b9aea(0x194)),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x3b9aea(0x1e3)),decorator_2=require(a7_0x3b9aea(0x1e3)),decorator_3=require(a7_0x3b9aea(0x1e3)),action_1=require(a7_0x3b9aea(0x1a1));function getRoutes(_0x221e24={'prefix':'/','module':![]}){const _0x391461=a7_0x3b9aea;var _0x59e49f,_0x17a978;const _0x183bac=(0x0,decorator_3['listModule'])(action_1['ACTION_KEY']),_0x20e704={},_0x301f07=Array[_0x391461(0x1b6)](_0x221e24[_0x391461(0x1e2)]||[])?_0x221e24[_0x391461(0x1e2)]||[]:[_0x221e24['filter']];_0x8d091f:for(const _0x349b60 of _0x183bac){let _0x5b2483=(0x0,decorator_3[_0x391461(0x1d2)])(action_1[_0x391461(0x198)],_0x349b60),_0x4bf462=(0x0,decorator_3[_0x391461(0x1d2)])(action_1['ACTION_ROUTE_KEY'],_0x349b60);if(_0x5b2483&&_0x4bf462){let _0x503014=_0x5b2483[_0x391461(0x1b9)],_0x185dbd={};if(_0x221e24[_0x391461(0x1ee)]&&(0x0,lodash_1[_0x391461(0x1ca)])(_0x5b2483,_0x391461(0x1ee),![])!=_0x221e24[_0x391461(0x1ee)])continue _0x8d091f;else{if(_0x221e24['module']===![]&&!!(0x0,lodash_1[_0x391461(0x1ca)])(_0x5b2483,'module',null))continue _0x8d091f;}if(_0x221e24[_0x391461(0x1b9)]&&!_0x503014[_0x391461(0x193)](_0x221e24[_0x391461(0x1b9)]))continue _0x8d091f;_0x503014!=='/'?(_0x185dbd['summary']=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1e6)])||(/^\//[_0x391461(0x1d1)](_0x503014)?_0x503014[_0x391461(0x1c1)]('/')[0x1]:_0x503014),_0x185dbd[_0x391461(0x1c8)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483['routerOptions'][_0x391461(0x1c8)])||_0x185dbd['summary'],_0x185dbd['routes']=[]):(_0x185dbd[_0x391461(0x1a5)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1e6)])||_0x391461(0x1ce),_0x185dbd[_0x391461(0x1c8)]=(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1eb)][_0x391461(0x1c8)])||'',_0x185dbd[_0x391461(0x1d0)]=[]);_0x221e24[_0x391461(0x1c2)]&&(_0x185dbd[_0x391461(0x1c2)]=_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1c2)]);(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483[_0x391461(0x1da)])&&(_0x185dbd['prefix']=_0x5b2483[_0x391461(0x1da)]);(_0x5b2483===null||_0x5b2483===void 0x0?void 0x0:_0x5b2483['module'])&&(_0x185dbd['module']=_0x5b2483[_0x391461(0x1ee)]);let _0x339a87=(0x0,decorator_3[_0x391461(0x1d2)])(decorator_2[_0x391461(0x1a8)],_0x349b60)||{};if(typeof _0x4bf462[Symbol[_0x391461(0x1bd)]]===_0x391461(0x1c9))for(let _0x493991 of _0x4bf462){let _0x3a372a={};_0x3a372a[_0x391461(0x1d5)]=_0x493991[_0x391461(0x1b5)],_0x3a372a['route']=(_0x503014+_0x493991[_0x391461(0x1b4)])[_0x391461(0x1cb)](/\/{1,}/,'/'),_0x3a372a['summary']=(_0x493991===null||_0x493991===void 0x0?void 0x0:_0x493991[_0x391461(0x19c)])||_0x185dbd[_0x391461(0x1a5)]||_0x391461(0x1ce),_0x3a372a[_0x391461(0x1c8)]=(_0x493991===null||_0x493991===void 0x0?void 0x0:_0x493991[_0x391461(0x1c8)])||'',_0x3a372a[_0x391461(0x1d7)]=[];if(!(0x0,lodash_1[_0x391461(0x193)])(_0x3a372a[_0x391461(0x1e0)],_0x391461(0x1b2))&&!(0x0,lodash_1[_0x391461(0x193)])(_0x3a372a[_0x391461(0x1e0)],_0x391461(0x1a7))&&_0x301f07[_0x391461(0x1e8)](_0x3a372a[_0x391461(0x1e0)])===-0x1){if(!(_0x221e24===null||_0x221e24===void 0x0?void 0x0:_0x221e24['noreq'])){let _0x34883d=(0x0,decorator_3[_0x391461(0x192)])(new _0x349b60(),_0x493991[_0x391461(0x1d5)]);for(const _0x48bd3d in _0x34883d){let _0x2f2888=(_0x59e49f=_0x339a87[_0x493991['method']])===null||_0x59e49f===void 0x0?void 0x0:_0x59e49f[_0x391461(0x19e)](_0x504e11=>_0x504e11['parameterIndex']==_0x48bd3d&&_0x504e11[_0x391461(0x1d6)]===decorator_2[_0x391461(0x1d8)]&&(_0x504e11===null||_0x504e11===void 0x0?void 0x0:_0x504e11['metadata']));if(_0x2f2888===null||_0x2f2888===void 0x0?void 0x0:_0x2f2888[_0x391461(0x190)]){let _0x3db049=convertTypeToString(_0x2f2888[_0x391461(0x190)][_0x391461(0x1cd)]||0x0);if([_0x391461(0x1b3),_0x391461(0x1de)]['indexOf'](_0x3db049)!=-0x1&&_0x2f2888[_0x391461(0x190)]['propertyData'][_0x391461(0x1e8)](':')==-0x1&&!_0x3a372a[_0x391461(0x1d7)][_0x391461(0x19e)](_0x3f39dd=>_0x3f39dd['key']==_0x2f2888[_0x391461(0x190)][_0x391461(0x195)]))_0x3a372a['request'][_0x391461(0x1c0)]({'key':_0x2f2888[_0x391461(0x190)]['propertyData'],'title':_0x2f2888[_0x391461(0x190)][_0x391461(0x195)],'type':convertSchemaType(_0x34883d[_0x2f2888[_0x391461(0x1a6)]][_0x391461(0x19b)]),'required':![],'default':'','desc':''});else{if(_0x3db049=='file'){let _0x2998a0=((_0x17a978=_0x2f2888===null||_0x2f2888===void 0x0?void 0x0:_0x2f2888[_0x391461(0x190)])===null||_0x17a978===void 0x0?void 0x0:_0x17a978[_0x391461(0x195)])||_0x391461(0x1cf);_0x2998a0[_0x391461(0x1e8)](':')==-0x1&&!_0x3a372a[_0x391461(0x1d7)][_0x391461(0x19e)](_0x4d2899=>_0x4d2899[_0x391461(0x1d6)]==_0x2998a0&&_0x4d2899[_0x391461(0x1cd)]==_0x391461(0x1cf))&&_0x3a372a[_0x391461(0x1d7)][_0x391461(0x1c0)]({'key':_0x2998a0,'title':_0x391461(0x1dc)+_0x2998a0,'type':_0x391461(0x1cf),'required':!![],'default':'','desc':''});}}}else{const _0x1e3fb6=(0x0,decorator_3[_0x391461(0x1c3)])(validator_1['RULES_KEY'],_0x34883d[_0x48bd3d]);_0x1e3fb6&&_0x3a372a[_0x391461(0x1d7)][_0x391461(0x1c0)](...getJoiRequest(_0x1e3fb6));}}}_0x185dbd[_0x391461(0x1d0)][_0x391461(0x1c0)](_0x3a372a);}}if(_0x185dbd[_0x391461(0x1d0)][_0x391461(0x1ac)]>0x0){let _0x3a1493=_0x20e704[_0x503014];_0x3a1493?(_0x3a1493['summary']!=_0x185dbd['summary']&&(_0x3a1493['summary']=_0x3a1493[_0x391461(0x1a5)]+','+_0x185dbd[_0x391461(0x1a5)]),_0x3a1493[_0x391461(0x1c8)]!=_0x185dbd[_0x391461(0x1c8)]&&(_0x3a1493[_0x391461(0x1c8)]=_0x3a1493[_0x391461(0x1c8)]+','+_0x185dbd['description']),_0x3a1493[_0x391461(0x1d0)]=_0x3a1493[_0x391461(0x1d0)][_0x391461(0x1ea)](_0x185dbd[_0x391461(0x1d0)]),_0x20e704[_0x503014]=_0x3a1493):_0x20e704[_0x503014]=_0x185dbd;}}}return _0x20e704;}exports[a7_0x3b9aea(0x1b7)]=getRoutes;function getJoiRequest(_0x40474f){const _0x42d9b1=a7_0x3b9aea,_0x1a9bbb=[];for(let _0x107bbe in _0x40474f){const _0x466071={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xfeff1b=typeof _0x40474f[_0x107bbe]['describe']==_0x42d9b1(0x1c9)?_0x40474f[_0x107bbe][_0x42d9b1(0x1e9)]():_0x40474f[_0x107bbe];_0x466071[_0x42d9b1(0x1d6)]=_0x107bbe,_0x466071[_0x42d9b1(0x1cd)]=_0xfeff1b[_0x42d9b1(0x1cd)],_0x466071[_0x42d9b1(0x1bf)]=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,'flags.label',_0x107bbe),_0x466071['default']=(0x0,lodash_1['get'])(_0xfeff1b,'flags.default',''),_0x466071[_0x42d9b1(0x1c5)]=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,_0x42d9b1(0x1df),'')==_0x42d9b1(0x1c5),_0x466071['description']=(0x0,lodash_1[_0x42d9b1(0x1ca)])(_0xfeff1b,_0x42d9b1(0x191),'');if(_0xfeff1b[_0x42d9b1(0x1cd)]==_0x42d9b1(0x1db))_0x466071[_0x42d9b1(0x199)]=getJoiRequest(_0xfeff1b[_0x42d9b1(0x1d4)]);else _0xfeff1b['type']==_0x42d9b1(0x1ad)&&_0xfeff1b[_0x42d9b1(0x1be)]&&Array[_0x42d9b1(0x1b6)](_0xfeff1b['items'])&&_0xfeff1b[_0x42d9b1(0x1be)][0x0]&&console[_0x42d9b1(0x1dd)](_0x107bbe+_0x42d9b1(0x19d),_0xfeff1b);_0xfeff1b['allow']&&Array[_0x42d9b1(0x1b6)](_0xfeff1b['allow'])&&_0xfeff1b[_0x42d9b1(0x1a0)]['length']>0x0&&(_0x466071[_0x42d9b1(0x1c8)]='只允许:['+_0xfeff1b[_0x42d9b1(0x1a0)][_0x42d9b1(0x18f)](',')+'];'+_0x466071['description']);if(_0x466071[_0x42d9b1(0x1d6)]&&_0x466071['type']){const _0x366106={};for(const _0x3b7557 of _0xfeff1b[_0x42d9b1(0x1b0)]||[]){if(_0x3b7557[_0x42d9b1(0x19b)]===_0x42d9b1(0x1af)&&_0x3b7557[_0x42d9b1(0x1c4)])_0x366106[_0x42d9b1(0x1af)]=_0x3b7557[_0x42d9b1(0x1c4)]['limit'];else _0x3b7557[_0x42d9b1(0x19b)]===_0x42d9b1(0x1bc)&&(_0x366106['max']=_0x3b7557[_0x42d9b1(0x1c4)][_0x42d9b1(0x1a9)]);}_0x466071['rules']=_0x366106;}_0x466071[_0x42d9b1(0x1d6)]&&_0x466071[_0x42d9b1(0x1bf)]&&_0x1a9bbb['push'](_0x466071);}return _0x1a9bbb;}function convertSchemaType(_0x47e629){const _0x1e8fdc=a7_0x3b9aea;switch(_0x47e629){case _0x1e8fdc(0x1b8):return'object';case _0x1e8fdc(0x1c6):return _0x1e8fdc(0x19f);case'Number':return _0x1e8fdc(0x1c7);case _0x1e8fdc(0x1e4):return _0x1e8fdc(0x1d3);case _0x1e8fdc(0x1ab):return _0x1e8fdc(0x1cf);default:return'string';}}function convertTypeToString(_0x12094d){const _0xef0eff=a7_0x3b9aea;switch(_0x12094d){case decorator_1['RouteParamTypes']['HEADERS']:return _0xef0eff(0x19a);case decorator_1['RouteParamTypes'][_0xef0eff(0x1e1)]:return _0xef0eff(0x1b3);case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1a3)]:return _0xef0eff(0x1b4);case decorator_1[_0xef0eff(0x197)]['BODY']:return _0xef0eff(0x1de);case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1a2)]:case decorator_1[_0xef0eff(0x197)][_0xef0eff(0x1ae)]:case decorator_1['RouteParamTypes'][_0xef0eff(0x1d9)]:return'file';default:return _0xef0eff(0x19a);}}function a7_0x4908(){const _0x4f52fc=['test','getClassMetadata','string','keys','method','key','request','WEB_ROUTER_PARAM_KEY','FILESTREAM','pprefix','object','文件上传-','log','body','flags.presence','route','QUERY','filter','@midwayjs/decorator','String','14wLWTfF','tagName','683325uORkbb','indexOf','describe','concat','routerOptions','804582enFmmb','1215920HGMhAm','module','2305140IdlMsH','join','metadata','flags.description','getMethodParamTypes','startsWith','lodash','propertyData','defineProperty','RouteParamTypes','ACTION_KEY','children','header','name','routerName','-array','find','boolean','allow','../types/action','FIELDS','PARAM','46ZYTCnf','summary','parameterIndex','/static/apitest','INJECT_CUSTOM_PARAM','limit','36303UASIvp','File','length','array','FILESSTREAM','min','rules','2063424YAeUrm','static/apitest','query','path','requestMethod','isArray','getRoutes','Object','prefix','30DAqovM','179798VLWsky','max','iterator','items','title','push','split','filepath','getClassExtendedMetadata','args','required','Boolean','number','description','function','get','replace','__esModule','type','default','file','routes'];a7_0x4908=function(){return _0x4f52fc;};return a7_0x4908();}
|
|
1
|
+
'use strict';const a7_0x32c4d4=a7_0x4405;(function(_0x396b84,_0x40d328){const _0x1c0cfc=a7_0x4405,_0x181d75=_0x396b84();while(!![]){try{const _0x295998=parseInt(_0x1c0cfc(0x15f))/0x1+parseInt(_0x1c0cfc(0x174))/0x2*(parseInt(_0x1c0cfc(0x1a1))/0x3)+parseInt(_0x1c0cfc(0x199))/0x4*(parseInt(_0x1c0cfc(0x171))/0x5)+parseInt(_0x1c0cfc(0x178))/0x6+-parseInt(_0x1c0cfc(0x187))/0x7+-parseInt(_0x1c0cfc(0x193))/0x8*(parseInt(_0x1c0cfc(0x1a8))/0x9)+-parseInt(_0x1c0cfc(0x169))/0xa*(-parseInt(_0x1c0cfc(0x188))/0xb);if(_0x295998===_0x40d328)break;else _0x181d75['push'](_0x181d75['shift']());}catch(_0x5e7043){_0x181d75['push'](_0x181d75['shift']());}}}(a7_0x4af0,0x6868c));Object[a7_0x32c4d4(0x180)](exports,a7_0x32c4d4(0x154),{'value':!![]}),exports['getRoutes']=void 0x0;function a7_0x4405(_0x39bd1f,_0x1106b4){const _0x4af04e=a7_0x4af0();return a7_0x4405=function(_0x44055a,_0x175955){_0x44055a=_0x44055a-0x154;let _0x5d784a=_0x4af04e[_0x44055a];return _0x5d784a;},a7_0x4405(_0x39bd1f,_0x1106b4);}const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x32c4d4(0x1a4)),decorator_2=require(a7_0x32c4d4(0x1a4)),decorator_3=require(a7_0x32c4d4(0x1a4)),action_1=require('../types/action');function getRoutes(_0x4a4a2f={'prefix':'/','module':![]}){const _0x52048c=a7_0x32c4d4;var _0x52a37d,_0xd31f9c;const _0x51242e=(0x0,decorator_3[_0x52048c(0x159)])(action_1['ACTION_KEY']),_0x14df52={},_0x32eb6a=Array[_0x52048c(0x17b)](_0x4a4a2f[_0x52048c(0x16c)]||[])?_0x4a4a2f['filter']||[]:[_0x4a4a2f[_0x52048c(0x16c)]];_0x5c8cad:for(const _0x4ab92a of _0x51242e){let _0x4addac=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x158)],_0x4ab92a),_0x3ba295=(0x0,decorator_3[_0x52048c(0x161)])(action_1[_0x52048c(0x18a)],_0x4ab92a);if(_0x4addac&&_0x3ba295){let _0xf0e6e9=_0x4addac['prefix'],_0x372cbf={};if(_0x4a4a2f[_0x52048c(0x18e)]&&(0x0,lodash_1[_0x52048c(0x183)])(_0x4addac,'module',![])!=_0x4a4a2f[_0x52048c(0x18e)])continue _0x5c8cad;else{if(_0x4a4a2f[_0x52048c(0x18e)]===![]&&!!(0x0,lodash_1['get'])(_0x4addac,_0x52048c(0x18e),null))continue _0x5c8cad;}if(_0x4a4a2f['prefix']&&!_0xf0e6e9[_0x52048c(0x19c)](_0x4a4a2f[_0x52048c(0x1ae)]))continue _0x5c8cad;_0xf0e6e9!=='/'?(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)]['tagName'])||(/^\//[_0x52048c(0x16e)](_0xf0e6e9)?_0xf0e6e9[_0x52048c(0x16b)]('/')[0x1]:_0xf0e6e9),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x1ac)])||_0x372cbf[_0x52048c(0x176)],_0x372cbf[_0x52048c(0x186)]=[]):(_0x372cbf[_0x52048c(0x176)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x194)][_0x52048c(0x185)])||_0x52048c(0x15c),_0x372cbf[_0x52048c(0x1ac)]=(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac['routerOptions']['description'])||'',_0x372cbf['routes']=[]);_0x4a4a2f[_0x52048c(0x181)]&&(_0x372cbf[_0x52048c(0x181)]=_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x181)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x190)])&&(_0x372cbf[_0x52048c(0x1ae)]=_0x4addac[_0x52048c(0x190)]);(_0x4addac===null||_0x4addac===void 0x0?void 0x0:_0x4addac[_0x52048c(0x18e)])&&(_0x372cbf[_0x52048c(0x18e)]=_0x4addac[_0x52048c(0x18e)]);let _0x3c2658=(0x0,decorator_3[_0x52048c(0x161)])(decorator_2['INJECT_CUSTOM_PARAM'],_0x4ab92a)||{};if(typeof _0x3ba295[Symbol[_0x52048c(0x157)]]===_0x52048c(0x18d))for(let _0x272e80 of _0x3ba295){let _0x10f00a={};_0x10f00a[_0x52048c(0x17d)]=_0x272e80['requestMethod'],_0x10f00a[_0x52048c(0x175)]=(_0xf0e6e9+_0x272e80[_0x52048c(0x17a)])[_0x52048c(0x1a5)](/\/{1,}/,'/'),_0x10f00a[_0x52048c(0x176)]=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80['routerName'])||_0x372cbf[_0x52048c(0x176)]||'default',_0x10f00a['description']=(_0x272e80===null||_0x272e80===void 0x0?void 0x0:_0x272e80[_0x52048c(0x1ac)])||'',_0x10f00a[_0x52048c(0x182)]=[];if(!(0x0,lodash_1['startsWith'])(_0x10f00a[_0x52048c(0x175)],'static/apitest')&&!(0x0,lodash_1[_0x52048c(0x19c)])(_0x10f00a[_0x52048c(0x175)],_0x52048c(0x166))&&_0x32eb6a['indexOf'](_0x10f00a[_0x52048c(0x175)])===-0x1){if(!(_0x4a4a2f===null||_0x4a4a2f===void 0x0?void 0x0:_0x4a4a2f[_0x52048c(0x198)])){let _0x57c7ae=(0x0,decorator_3[_0x52048c(0x155)])(new _0x4ab92a(),_0x272e80[_0x52048c(0x17d)]);for(const _0x280bcf in _0x57c7ae){let _0x2be4f6=(_0x52a37d=_0x3c2658[_0x272e80[_0x52048c(0x17d)]])===null||_0x52a37d===void 0x0?void 0x0:_0x52a37d[_0x52048c(0x18f)](_0x368ace=>_0x368ace[_0x52048c(0x189)]==_0x280bcf&&_0x368ace[_0x52048c(0x195)]===decorator_2['WEB_ROUTER_PARAM_KEY']&&(_0x368ace===null||_0x368ace===void 0x0?void 0x0:_0x368ace[_0x52048c(0x17f)]));if(_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)]){let _0x25cb8d=convertTypeToString(_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x170)]||0x0);if(['query',_0x52048c(0x1a3)]['indexOf'](_0x25cb8d)!=-0x1&&_0x2be4f6['metadata'][_0x52048c(0x156)][_0x52048c(0x15d)](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)][_0x52048c(0x18f)](_0x31d3fe=>_0x31d3fe['key']==_0x2be4f6[_0x52048c(0x17f)][_0x52048c(0x156)]))_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'title':_0x2be4f6[_0x52048c(0x17f)]['propertyData'],'type':convertSchemaType(_0x57c7ae[_0x2be4f6['parameterIndex']][_0x52048c(0x1a7)]),'required':![],'default':'','desc':''});else{if(_0x25cb8d==_0x52048c(0x18b)){let _0x3e1c15=((_0xd31f9c=_0x2be4f6===null||_0x2be4f6===void 0x0?void 0x0:_0x2be4f6[_0x52048c(0x17f)])===null||_0xd31f9c===void 0x0?void 0x0:_0xd31f9c['propertyData'])||_0x52048c(0x18b);_0x3e1c15['indexOf'](':')==-0x1&&!_0x10f00a[_0x52048c(0x182)]['find'](_0x2589be=>_0x2589be[_0x52048c(0x195)]==_0x3e1c15&&_0x2589be[_0x52048c(0x170)]=='file')&&_0x10f00a[_0x52048c(0x182)][_0x52048c(0x162)]({'key':_0x3e1c15,'title':'文件上传-'+_0x3e1c15,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x36f9af=(0x0,decorator_3[_0x52048c(0x191)])(validator_1[_0x52048c(0x16d)],_0x57c7ae[_0x280bcf]);_0x36f9af&&_0x10f00a['request'][_0x52048c(0x162)](...getJoiRequest(_0x36f9af));}}}_0x372cbf[_0x52048c(0x186)][_0x52048c(0x162)](_0x10f00a);}}if(_0x372cbf[_0x52048c(0x186)][_0x52048c(0x15a)]>0x0){let _0x583096=_0x14df52[_0xf0e6e9];_0x583096?(_0x583096[_0x52048c(0x176)]!=_0x372cbf[_0x52048c(0x176)]&&(_0x583096[_0x52048c(0x176)]=_0x583096[_0x52048c(0x176)]+','+_0x372cbf['summary']),_0x583096[_0x52048c(0x1ac)]!=_0x372cbf[_0x52048c(0x1ac)]&&(_0x583096[_0x52048c(0x1ac)]=_0x583096[_0x52048c(0x1ac)]+','+_0x372cbf['description']),_0x583096[_0x52048c(0x186)]=_0x583096[_0x52048c(0x186)][_0x52048c(0x1ab)](_0x372cbf[_0x52048c(0x186)]),_0x14df52[_0xf0e6e9]=_0x583096):_0x14df52[_0xf0e6e9]=_0x372cbf;}}}return _0x14df52;}exports['getRoutes']=getRoutes;function a7_0x4af0(){const _0x5ab148=['noreq','12ghHFJp','File','boolean','startsWith','FILESTREAM','number','log','header','1062606ungSSZ','HEADERS','body','@midwayjs/decorator','replace','FILESSTREAM','name','451998EwcdQv','QUERY','FIELDS','concat','description','flags.description','prefix','BODY','__esModule','getMethodParamTypes','propertyData','iterator','ACTION_KEY','listModule','length','flags.default','default','indexOf','string','328902bevKKR','-array','getClassMetadata','push','flags.presence','args','RouteParamTypes','/static/apitest','children','max','4642130oHnKsV','Boolean','split','filter','RULES_KEY','test','title','type','460885cmpoPP','min','required','2SXUYDv','route','summary','query','427164OUjygb','object','path','isArray','limit','method','rules','metadata','defineProperty','filepath','request','get','items','tagName','routes','3604580ybagUv','11zUFqIJ','parameterIndex','ACTION_ROUTE_KEY','file','allow','function','module','find','pprefix','getClassExtendedMetadata','describe','88VZSvcf','routerOptions','key','array','keys'];a7_0x4af0=function(){return _0x5ab148;};return a7_0x4af0();}function getJoiRequest(_0x3a9f3d){const _0x590f02=a7_0x32c4d4,_0xaca174=[];for(let _0x1e0c9d in _0x3a9f3d){const _0x58d9aa={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x384056=typeof _0x3a9f3d[_0x1e0c9d]['describe']==_0x590f02(0x18d)?_0x3a9f3d[_0x1e0c9d][_0x590f02(0x192)]():_0x3a9f3d[_0x1e0c9d];_0x58d9aa['key']=_0x1e0c9d,_0x58d9aa[_0x590f02(0x170)]=_0x384056[_0x590f02(0x170)],_0x58d9aa[_0x590f02(0x16f)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,'flags.label',_0x1e0c9d),_0x58d9aa[_0x590f02(0x15c)]=(0x0,lodash_1['get'])(_0x384056,_0x590f02(0x15b),''),_0x58d9aa[_0x590f02(0x173)]=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x163),'')=='required',_0x58d9aa['description']=(0x0,lodash_1[_0x590f02(0x183)])(_0x384056,_0x590f02(0x1ad),'');if(_0x384056['type']==_0x590f02(0x179))_0x58d9aa[_0x590f02(0x167)]=getJoiRequest(_0x384056[_0x590f02(0x197)]);else _0x384056[_0x590f02(0x170)]==_0x590f02(0x196)&&_0x384056['items']&&Array[_0x590f02(0x17b)](_0x384056['items'])&&_0x384056[_0x590f02(0x184)][0x0]&&console[_0x590f02(0x19f)](_0x1e0c9d+_0x590f02(0x160),_0x384056);_0x384056[_0x590f02(0x18c)]&&Array[_0x590f02(0x17b)](_0x384056['allow'])&&_0x384056[_0x590f02(0x18c)][_0x590f02(0x15a)]>0x0&&(_0x58d9aa[_0x590f02(0x1ac)]='只允许:['+_0x384056[_0x590f02(0x18c)]['join'](',')+'];'+_0x58d9aa[_0x590f02(0x1ac)]);if(_0x58d9aa['key']&&_0x58d9aa['type']){const _0x51720e={};for(const _0x48b5d5 of _0x384056['rules']||[]){if(_0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x172)&&_0x48b5d5[_0x590f02(0x164)])_0x51720e['min']=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)];else _0x48b5d5[_0x590f02(0x1a7)]===_0x590f02(0x168)&&(_0x51720e[_0x590f02(0x168)]=_0x48b5d5[_0x590f02(0x164)][_0x590f02(0x17c)]);}_0x58d9aa[_0x590f02(0x17e)]=_0x51720e;}_0x58d9aa[_0x590f02(0x195)]&&_0x58d9aa[_0x590f02(0x16f)]&&_0xaca174[_0x590f02(0x162)](_0x58d9aa);}return _0xaca174;}function convertSchemaType(_0x1f703a){const _0x37c8db=a7_0x32c4d4;switch(_0x1f703a){case'Object':return _0x37c8db(0x179);case _0x37c8db(0x16a):return _0x37c8db(0x19b);case'Number':return _0x37c8db(0x19e);case'String':return _0x37c8db(0x15e);case _0x37c8db(0x19a):return _0x37c8db(0x18b);default:return _0x37c8db(0x15e);}}function convertTypeToString(_0x4b30cb){const _0x2d8824=a7_0x32c4d4;switch(_0x4b30cb){case decorator_1['RouteParamTypes'][_0x2d8824(0x1a2)]:return _0x2d8824(0x1a0);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a9)]:return _0x2d8824(0x177);case decorator_1[_0x2d8824(0x165)]['PARAM']:return _0x2d8824(0x17a);case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1af)]:return _0x2d8824(0x1a3);case decorator_1['RouteParamTypes'][_0x2d8824(0x1aa)]:case decorator_1[_0x2d8824(0x165)][_0x2d8824(0x1a6)]:case decorator_1['RouteParamTypes'][_0x2d8824(0x19d)]:return _0x2d8824(0x18b);default:return _0x2d8824(0x1a0);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a8_0x3525(_0x2f3bef,_0x25a22c){var _0x1249c1=a8_0x1249();return a8_0x3525=function(_0x352551,_0x53f58f){_0x352551=_0x352551-0x1a0;var _0x314562=_0x1249c1[_0x352551];return _0x314562;},a8_0x3525(_0x2f3bef,_0x25a22c);}var a8_0x395d8c=a8_0x3525;(function(_0x321ea0,_0x13f104){var _0x3c1c09=a8_0x3525,_0x1ddce4=_0x321ea0();while(!![]){try{var _0x5eba17=-parseInt(_0x3c1c09(0x1b2))/0x1+parseInt(_0x3c1c09(0x1c6))/0x2+-parseInt(_0x3c1c09(0x1d8))/0x3+-parseInt(_0x3c1c09(0x1b3))/0x4*(-parseInt(_0x3c1c09(0x1d7))/0x5)+-parseInt(_0x3c1c09(0x1cb))/0x6*(parseInt(_0x3c1c09(0x1a4))/0x7)+parseInt(_0x3c1c09(0x1b6))/0x8*(-parseInt(_0x3c1c09(0x1aa))/0x9)+parseInt(_0x3c1c09(0x1cc))/0xa;if(_0x5eba17===_0x13f104)break;else _0x1ddce4['push'](_0x1ddce4['shift']());}catch(_0x8ccd8e){_0x1ddce4['push'](_0x1ddce4['shift']());}}}(a8_0x1249,0xbfd27));var __createBinding=this&&this[a8_0x395d8c(0x1dc)]||(Object[a8_0x395d8c(0x1a2)]?function(_0x2a9e57,_0xd32c56,_0xf17b8a,_0x5f0e24){var _0x57ad2e=a8_0x395d8c;if(_0x5f0e24===undefined)_0x5f0e24=_0xf17b8a;var _0x438268=Object[_0x57ad2e(0x1a0)](_0xd32c56,_0xf17b8a);(!_0x438268||(_0x57ad2e(0x1d6)in _0x438268?!_0xd32c56[_0x57ad2e(0x1c9)]:_0x438268[_0x57ad2e(0x1cd)]||_0x438268[_0x57ad2e(0x1b5)]))&&(_0x438268={'enumerable':!![],'get':function(){return _0xd32c56[_0xf17b8a];}}),Object['defineProperty'](_0x2a9e57,_0x5f0e24,_0x438268);}:function(_0x5696cb,_0x3a2b1a,_0x39f4cb,_0x229fc3){if(_0x229fc3===undefined)_0x229fc3=_0x39f4cb;_0x5696cb[_0x229fc3]=_0x3a2b1a[_0x39f4cb];}),__exportStar=this&&this[a8_0x395d8c(0x1c0)]||function(_0x59807e,_0xedc4a0){var _0x2b681d=a8_0x395d8c;for(var _0x225626 in _0x59807e)if(_0x225626!==_0x2b681d(0x1a1)&&!Object[_0x2b681d(0x1ca)][_0x2b681d(0x1c8)][_0x2b681d(0x1be)](_0xedc4a0,_0x225626))__createBinding(_0xedc4a0,_0x59807e,_0x225626);};Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c9),{'value':!![]}),exports['ScopeEnum']=exports[a8_0x395d8c(0x1b0)]=exports[a8_0x395d8c(0x1d4)]=exports[a8_0x395d8c(0x1c2)]=exports[a8_0x395d8c(0x1a9)]=exports[a8_0x395d8c(0x1b8)]=exports[a8_0x395d8c(0x1d2)]=exports[a8_0x395d8c(0x1db)]=exports['Headers']=exports['Query']=exports[a8_0x395d8c(0x1ba)]=exports[a8_0x395d8c(0x1a5)]=exports[a8_0x395d8c(0x1ab)]=exports['Files']=exports[a8_0x395d8c(0x1c1)]=exports[a8_0x395d8c(0x1dd)]=exports[a8_0x395d8c(0x1bb)]=exports['ValidatorError']=exports['ExcelService']=exports[a8_0x395d8c(0x1af)]=exports['EventService']=exports[a8_0x395d8c(0x1bd)]=exports[a8_0x395d8c(0x1da)]=exports[a8_0x395d8c(0x1a6)]=exports[a8_0x395d8c(0x1ad)]=exports['Action']=exports['Api']=exports['getRoutes']=void 0x0,__exportStar(require(a8_0x395d8c(0x1d9)),exports),__exportStar(require(a8_0x395d8c(0x1d0)),exports);var getRoutes_1=require(a8_0x395d8c(0x1b1));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c5),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ActionApi_1=require(a8_0x395d8c(0x1b7));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1a7),{'enumerable':!![],'get':function(){var _0x4cdefa=a8_0x395d8c;return ActionApi_1[_0x4cdefa(0x1a7)];}});var Action_1=require(a8_0x395d8c(0x1c3));Object['defineProperty'](exports,a8_0x395d8c(0x1b4),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a8_0x395d8c(0x1ac));Object[a8_0x395d8c(0x1a3)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x15401f=a8_0x395d8c;return ActionApitest_1[_0x15401f(0x1ad)];}});var ApiError_1=require(a8_0x395d8c(0x1bc));Object['defineProperty'](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x2c05f4=a8_0x395d8c;return ApiError_1[_0x2c05f4(0x1a6)];}});var task_1=require(a8_0x395d8c(0x1bf));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1da),{'enumerable':!![],'get':function(){var _0x168abc=a8_0x395d8c;return task_1[_0x168abc(0x1da)];}});var cache_1=require(a8_0x395d8c(0x1a8));Object[a8_0x395d8c(0x1a3)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5643f7=a8_0x395d8c;return cache_1[_0x5643f7(0x1bd)];}});var event_1=require('@anncic-api/event');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c7),{'enumerable':!![],'get':function(){var _0x167f88=a8_0x395d8c;return event_1[_0x167f88(0x1c7)];}});var ApiService_1=require('./service/ApiService');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1af),{'enumerable':!![],'get':function(){return ApiService_1['ApiService'];}});var ExcelService_1=require(a8_0x395d8c(0x1d1));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1d5),{'enumerable':!![],'get':function(){var _0xefdd1f=a8_0x395d8c;return ExcelService_1[_0xefdd1f(0x1d5)];}});var validator_1=require('@anncic-api/validator');Object['defineProperty'](exports,a8_0x395d8c(0x1de),{'enumerable':!![],'get':function(){var _0x1e6d1c=a8_0x395d8c;return validator_1[_0x1e6d1c(0x1de)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1bb),{'enumerable':!![],'get':function(){var _0x37cfaf=a8_0x395d8c;return validator_1[_0x37cfaf(0x1bb)];}});var configuration_1=require(a8_0x395d8c(0x1cf));Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1dd),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var decorator_1=require(a8_0x395d8c(0x1b9));Object[a8_0x395d8c(0x1a3)](exports,'File',{'enumerable':!![],'get':function(){var _0x3b2d16=a8_0x395d8c;return decorator_1[_0x3b2d16(0x1c1)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ce),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object['defineProperty'](exports,'Fields',{'enumerable':!![],'get':function(){var _0x4ef65f=a8_0x395d8c;return decorator_1[_0x4ef65f(0x1ab)];}}),Object[a8_0x395d8c(0x1a3)](exports,'Body',{'enumerable':!![],'get':function(){var _0x2e0a4c=a8_0x395d8c;return decorator_1[_0x2e0a4c(0x1a5)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ba),{'enumerable':!![],'get':function(){var _0xa20a3a=a8_0x395d8c;return decorator_1[_0xa20a3a(0x1ba)];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1d3),{'enumerable':!![],'get':function(){var _0x432bbc=a8_0x395d8c;return decorator_1[_0x432bbc(0x1d3)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1ae),{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1db),{'enumerable':!![],'get':function(){var _0x1ee290=a8_0x395d8c;return decorator_1[_0x1ee290(0x1db)];}});function a8_0x1249(){var _0x45f5c5=['707527eTjaZp','104ZnmpJN','Action','configurable','8gmwkgX','./decorator/ActionApi','Config','@midwayjs/decorator','Param','ValidatorService','./exception/ApiError','CacheService','call','@midwayjs/task','__exportStar','File','Provide','./decorator/Action','ScopeEnum','getRoutes','2983602ZqiPGm','EventService','hasOwnProperty','__esModule','prototype','18432NDQWDl','22495640OonoqR','writable','Files','./configuration','./service/ApitestService','./service/ExcelService','App','Query','Inject','ExcelService','get','40835krExtX','1511742srExab','./types/common','QueueService','Init','__createBinding','Configuration','ValidatorError','getOwnPropertyDescriptor','default','create','defineProperty','1729aozDhE','Body','ApiError','Api','@anncic-api/cache','Logger','10780011qLEHBB','Fields','./decorator/ActionApitest','Apitest','Headers','ApiService','Scope','./helper/getRoutes'];a8_0x1249=function(){return _0x45f5c5;};return a8_0x1249();}var decorator_2=require('@midwayjs/decorator');Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1d2),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object[a8_0x395d8c(0x1a3)](exports,'Config',{'enumerable':!![],'get':function(){var _0x5b2ec8=a8_0x395d8c;return decorator_2[_0x5b2ec8(0x1b8)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1a9),{'enumerable':!![],'get':function(){var _0x102f28=a8_0x395d8c;return decorator_2[_0x102f28(0x1a9)];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c2),{'enumerable':!![],'get':function(){var _0x3d13b7=a8_0x395d8c;return decorator_2[_0x3d13b7(0x1c2)];}}),Object[a8_0x395d8c(0x1a3)](exports,'Inject',{'enumerable':!![],'get':function(){return decorator_2['Inject'];}}),Object['defineProperty'](exports,a8_0x395d8c(0x1b0),{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a8_0x395d8c(0x1a3)](exports,a8_0x395d8c(0x1c4),{'enumerable':!![],'get':function(){var _0x1323d4=a8_0x395d8c;return decorator_2[_0x1323d4(0x1c4)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a9_0x1ff0c3=a9_0x14a6;function a9_0x14a6(_0x2cebe5,_0x51b694){var _0x3b5bd2=a9_0x3b5b();return a9_0x14a6=function(_0x14a67b,_0x519c4d){_0x14a67b=_0x14a67b-0x13a;var _0x5c6b93=_0x3b5bd2[_0x14a67b];return _0x5c6b93;},a9_0x14a6(_0x2cebe5,_0x51b694);}(function(_0x4cd2fa,_0x292df8){var _0xccd52f=a9_0x14a6,_0x1abf19=_0x4cd2fa();while(!![]){try{var _0x374dc6=-parseInt(_0xccd52f(0x13c))/0x1+-parseInt(_0xccd52f(0x15f))/0x2+parseInt(_0xccd52f(0x161))/0x3*(-parseInt(_0xccd52f(0x162))/0x4)+parseInt(_0xccd52f(0x167))/0x5+-parseInt(_0xccd52f(0x14b))/0x6+parseInt(_0xccd52f(0x145))/0x7+parseInt(_0xccd52f(0x152))/0x8;if(_0x374dc6===_0x292df8)break;else _0x1abf19['push'](_0x1abf19['shift']());}catch(_0x13ee5a){_0x1abf19['push'](_0x1abf19['shift']());}}}(a9_0x3b5b,0x67ef0));var __decorate=this&&this[a9_0x1ff0c3(0x13b)]||function(_0x5c43e5,_0x580546,_0x2fa6e8,_0x23d928){var _0x244fb2=a9_0x1ff0c3,_0xdfcecc=arguments[_0x244fb2(0x14e)],_0x59191b=_0xdfcecc<0x3?_0x580546:_0x23d928===null?_0x23d928=Object['getOwnPropertyDescriptor'](_0x580546,_0x2fa6e8):_0x23d928,_0x128c10;if(typeof Reflect===_0x244fb2(0x16e)&&typeof Reflect[_0x244fb2(0x151)]===_0x244fb2(0x15a))_0x59191b=Reflect[_0x244fb2(0x151)](_0x5c43e5,_0x580546,_0x2fa6e8,_0x23d928);else{for(var _0x1b6f44=_0x5c43e5[_0x244fb2(0x14e)]-0x1;_0x1b6f44>=0x0;_0x1b6f44--)if(_0x128c10=_0x5c43e5[_0x1b6f44])_0x59191b=(_0xdfcecc<0x3?_0x128c10(_0x59191b):_0xdfcecc>0x3?_0x128c10(_0x580546,_0x2fa6e8,_0x59191b):_0x128c10(_0x580546,_0x2fa6e8))||_0x59191b;}return _0xdfcecc>0x3&&_0x59191b&&Object[_0x244fb2(0x163)](_0x580546,_0x2fa6e8,_0x59191b),_0x59191b;},__metadata=this&&this['__metadata']||function(_0x8ab4b8,_0x1003a0){var _0xc4c95b=a9_0x1ff0c3;if(typeof Reflect===_0xc4c95b(0x16e)&&typeof Reflect[_0xc4c95b(0x16c)]===_0xc4c95b(0x15a))return Reflect['metadata'](_0x8ab4b8,_0x1003a0);};Object[a9_0x1ff0c3(0x163)](exports,a9_0x1ff0c3(0x155),{'value':!![]}),exports[a9_0x1ff0c3(0x169)]=void 0x0;function a9_0x3b5b(){var _0x4747c9=['secret=','getsign','Config','缺少头信息:signature','checksign','2276292rHbJZo','entries','join','length','design:type','token','decorate','15988088uiupgK','now','Provide','__esModule','HEADERS_SIGNATURE','map','toLowerCase','config','function','ApiError','toString','password','TIMEOUT','979354ZugIRw','缺少头信息:','12kNOVex','536812rpdBUr','defineProperty','abs','getcheck','sort','263750AZcBLd','HEADERS_DEVICE','ApiService','Scope','@midwayjs/decorator','metadata','Singleton','object','signature','MD5','push','__decorate','683961IAkPXa','device','checkcode','../exception/ApiError','HEADERS_LACK','timeout','ScopeEnum','requesttime','devices','3249981ZLleGZ'];a9_0x3b5b=function(){return _0x4747c9;};return a9_0x3b5b();}const crypto_js_1=require('crypto-js'),decorator_1=require(a9_0x1ff0c3(0x16b)),ApiError_1=require(a9_0x1ff0c3(0x13f));let ApiService=class ApiService{[a9_0x1ff0c3(0x15d)](_0x295c93){var _0x58f755=a9_0x1ff0c3,_0x5c4f33;return _0x295c93?(0x0,crypto_js_1['MD5'])(_0x295c93+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1['MD5'])(_0x295c93)['toString']()+((_0x5c4f33=this[_0x58f755(0x159)])===null||_0x5c4f33===void 0x0?void 0x0:_0x5c4f33['password']))['toString']())['toString']():'';}[a9_0x1ff0c3(0x165)](_0x52dcdb,_0x1be6bc,_0x301928=Date[a9_0x1ff0c3(0x153)]()){var _0x4bf5c3=a9_0x1ff0c3;return{'Token':_0x52dcdb,'Logintime':_0x301928,'Checkcode':this[_0x4bf5c3(0x13e)](_0x52dcdb,_0x1be6bc,_0x301928)};}['getsign'](_0x25656b={}){var _0xe2b7fc=a9_0x1ff0c3;const _0x5b6eb1=[],_0x412a35=Object['fromEntries'](Object[_0xe2b7fc(0x14c)](_0x25656b)['map'](_0x3e564a=>[_0x3e564a[0x0]['toLowerCase'](),_0x3e564a[0x1]]));for(let _0x451883 of[_0xe2b7fc(0x13d),_0xe2b7fc(0x143),_0xe2b7fc(0x150),'logintime',_0xe2b7fc(0x13e)]){if(typeof _0x412a35[_0x451883]=='undefined')throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x140)],{'message':_0xe2b7fc(0x160)+_0x451883});_0x5b6eb1['push'](_0x451883+'='+_0x412a35[_0x451883]);}if(Math[_0xe2b7fc(0x164)](_0x412a35[_0xe2b7fc(0x143)])-Date[_0xe2b7fc(0x153)]()>this['config'][_0xe2b7fc(0x141)])throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x15e)]);if(!this[_0xe2b7fc(0x159)][_0xe2b7fc(0x144)][_0x412a35[_0xe2b7fc(0x13d)]]||!this[_0xe2b7fc(0x159)]['devices'][_0x412a35[_0xe2b7fc(0x13d)]]['secret']||!this[_0xe2b7fc(0x159)][_0xe2b7fc(0x144)][_0x412a35['device']][_0xe2b7fc(0x13e)])throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)][_0xe2b7fc(0x168)]);if(_0x412a35[_0xe2b7fc(0x150)]&&_0x412a35[_0xe2b7fc(0x13e)]!=this[_0xe2b7fc(0x13e)](_0x412a35['token'],_0x412a35[_0xe2b7fc(0x13d)],_0x412a35['logintime']))throw new AnnError(ApiError_1[_0xe2b7fc(0x15b)]['HEADERS_CHECKCODE']);return _0x5b6eb1[_0xe2b7fc(0x13a)](_0xe2b7fc(0x146)+this[_0xe2b7fc(0x159)]['devices'][_0x412a35[_0xe2b7fc(0x13d)]]['secret']),(0x0,crypto_js_1[_0xe2b7fc(0x170)])(_0x5b6eb1[_0xe2b7fc(0x166)]()[_0xe2b7fc(0x14d)](''))['toString']();}[a9_0x1ff0c3(0x13e)](_0x546617,_0x55f368,_0x3d066e=Date['now']()){var _0x4c066d=a9_0x1ff0c3,_0x5deb8f,_0x2688a6,_0x53ba5b;if(!((_0x5deb8f=this[_0x4c066d(0x159)])===null||_0x5deb8f===void 0x0?void 0x0:_0x5deb8f['devices'][_0x55f368])||!((_0x53ba5b=(_0x2688a6=this[_0x4c066d(0x159)])===null||_0x2688a6===void 0x0?void 0x0:_0x2688a6['devices'][_0x55f368])===null||_0x53ba5b===void 0x0?void 0x0:_0x53ba5b[_0x4c066d(0x13e)]))throw new AnnError(ApiError_1['ApiError'][_0x4c066d(0x168)]);return(0x0,crypto_js_1[_0x4c066d(0x170)])(_0x546617+(0x0,crypto_js_1[_0x4c066d(0x170)])(_0x3d066e+this[_0x4c066d(0x159)][_0x4c066d(0x144)][_0x55f368][_0x4c066d(0x13e)])[_0x4c066d(0x15c)]())['toString']();}[a9_0x1ff0c3(0x14a)](_0x19c84d={}){var _0x19b843=a9_0x1ff0c3;const _0xd2efa4=Object['fromEntries'](Object['entries'](_0x19c84d)[_0x19b843(0x157)](_0x8b6b5a=>[_0x8b6b5a[0x0][_0x19b843(0x158)](),_0x8b6b5a[0x1]]));if(!(_0xd2efa4===null||_0xd2efa4===void 0x0?void 0x0:_0xd2efa4[_0x19b843(0x16f)]))throw new AnnError(ApiError_1[_0x19b843(0x15b)][_0x19b843(0x140)],{'message':_0x19b843(0x149)});if((_0xd2efa4===null||_0xd2efa4===void 0x0?void 0x0:_0xd2efa4[_0x19b843(0x16f)])!=this[_0x19b843(0x147)](_0xd2efa4))throw new AnnError(ApiError_1[_0x19b843(0x15b)][_0x19b843(0x156)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x1ff0c3(0x148)])('anncicapi'),__metadata(a9_0x1ff0c3(0x14f),Object)],ApiService['prototype'],a9_0x1ff0c3(0x159),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x1ff0c3(0x154)])(),(0x0,decorator_1[a9_0x1ff0c3(0x16a)])(decorator_1[a9_0x1ff0c3(0x142)][a9_0x1ff0c3(0x16d)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a10_0x5c93(_0x37478e,_0x5a48e3){const _0x7b7000=a10_0x7b70();return a10_0x5c93=function(_0x5c93a1,_0x1226cc){_0x5c93a1=_0x5c93a1-0xc0;let _0x57f693=_0x7b7000[_0x5c93a1];return _0x57f693;},a10_0x5c93(_0x37478e,_0x5a48e3);}const a10_0x24956d=a10_0x5c93;(function(_0x1ed2da,_0x595d7d){const _0x3d3a6e=a10_0x5c93,_0x1dae90=_0x1ed2da();while(!![]){try{const _0x328f4b=-parseInt(_0x3d3a6e(0x109))/0x1*(parseInt(_0x3d3a6e(0xd5))/0x2)+-parseInt(_0x3d3a6e(0xf2))/0x3*(parseInt(_0x3d3a6e(0xd3))/0x4)+-parseInt(_0x3d3a6e(0xee))/0x5+parseInt(_0x3d3a6e(0xde))/0x6+parseInt(_0x3d3a6e(0x102))/0x7*(-parseInt(_0x3d3a6e(0xd2))/0x8)+parseInt(_0x3d3a6e(0xea))/0x9+parseInt(_0x3d3a6e(0xf6))/0xa*(parseInt(_0x3d3a6e(0xfb))/0xb);if(_0x328f4b===_0x595d7d)break;else _0x1dae90['push'](_0x1dae90['shift']());}catch(_0x58d789){_0x1dae90['push'](_0x1dae90['shift']());}}}(a10_0x7b70,0x50d53));function a10_0x7b70(){const _0x1678ea=['__decorate','/apitest','.css','apidoc','config','replace','3089514JAJxZb','ctx','Get','Environment','apitestmodule','design:paramtypes','metadata','Config','route','prototype','text/css;\x20charset=utf-8','stringify','1140057PsCxFD','.js','isDevelopmentEnvironment','../helper/getRoutes','2899720khfHpT','substring','public,\x20max-age=604800','apitesthtml','653370JQhbtQ','request','design:returntype','__param','10890pWDPOG','url','content-type','decorate','push','19536vdWbHS','Singleton','/apiteststatic/*','path','@midwayjs/core','existsSync','join','42Qeegsa','Param','__apiList__','getRoutes','../../public/index.html','apiteststatic','extname','337TwMnRp','method','filepath','ApitestStaticController','design:type','length','Request','cache-control','function','object','ApitestService','description','anncicapi','summary','apitest','@midwayjs/decorator','Inject','ScopeEnum','__esModule','853736wptJcs','8fosKnd','set','3494jLcaCk','readFileSync','routes'];a10_0x7b70=function(){return _0x1678ea;};return a10_0x7b70();}var __decorate=this&&this[a10_0x24956d(0xd8)]||function(_0x2e2dd4,_0x5aea45,_0x2ace73,_0x7b295f){const _0x413b01=a10_0x24956d;var _0x5a5037=arguments['length'],_0x48c7e1=_0x5a5037<0x3?_0x5aea45:_0x7b295f===null?_0x7b295f=Object['getOwnPropertyDescriptor'](_0x5aea45,_0x2ace73):_0x7b295f,_0x16a12b;if(typeof Reflect==='object'&&typeof Reflect[_0x413b01(0xf9)]==='function')_0x48c7e1=Reflect[_0x413b01(0xf9)](_0x2e2dd4,_0x5aea45,_0x2ace73,_0x7b295f);else{for(var _0x11d91a=_0x2e2dd4[_0x413b01(0xc4)]-0x1;_0x11d91a>=0x0;_0x11d91a--)if(_0x16a12b=_0x2e2dd4[_0x11d91a])_0x48c7e1=(_0x5a5037<0x3?_0x16a12b(_0x48c7e1):_0x5a5037>0x3?_0x16a12b(_0x5aea45,_0x2ace73,_0x48c7e1):_0x16a12b(_0x5aea45,_0x2ace73))||_0x48c7e1;}return _0x5a5037>0x3&&_0x48c7e1&&Object['defineProperty'](_0x5aea45,_0x2ace73,_0x48c7e1),_0x48c7e1;},__metadata=this&&this['__metadata']||function(_0x2490f7,_0x560a06){const _0xed874=a10_0x24956d;if(typeof Reflect===_0xed874(0xc8)&&typeof Reflect[_0xed874(0xe4)]===_0xed874(0xc7))return Reflect['metadata'](_0x2490f7,_0x560a06);},__param=this&&this[a10_0x24956d(0xf5)]||function(_0x4c0aa4,_0x4986af){return function(_0x241066,_0x2071e3){_0x4986af(_0x241066,_0x2071e3,_0x4c0aa4);};};Object['defineProperty'](exports,a10_0x24956d(0xd1),{'value':!![]}),exports[a10_0x24956d(0xc2)]=exports[a10_0x24956d(0xc9)]=void 0x0;const path_1=require(a10_0x24956d(0xfe)),fs_1=require('fs'),core_1=require(a10_0x24956d(0xff)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a10_0x24956d(0xce)),getRoutes_1=require(a10_0x24956d(0xed));let ApitestService=class ApitestService{async[a10_0x24956d(0xdb)](_0x510213){const _0x374a81=a10_0x24956d,_0x5bbd80=(0x0,getRoutes_1[_0x374a81(0x105)])(_0x510213),_0x1035e6=[];for(let _0x20cb76 in _0x5bbd80){for(let _0x45e9a8 in _0x5bbd80[_0x20cb76][_0x374a81(0xd7)]){let _0x4addd4=_0x5bbd80[_0x20cb76][_0x374a81(0xd7)][_0x45e9a8],_0x23d572=[];for(let _0x20a930 in _0x4addd4[_0x374a81(0xf3)]){_0x23d572[_0x374a81(0xfa)](_0x4addd4[_0x374a81(0xf3)][_0x20a930]);}_0x1035e6[_0x374a81(0xfa)]({'title':_0x5bbd80[_0x20cb76]['summary']+':'+_0x4addd4[_0x374a81(0xcc)],'prefix':_0x5bbd80[_0x20cb76]['prefix'],'router':_0x4addd4[_0x374a81(0xe6)],'method':_0x4addd4[_0x374a81(0xc0)],'describe':_0x4addd4[_0x374a81(0xca)]||'','filepath':_0x5bbd80[_0x20cb76][_0x374a81(0xc1)]||'','request':_0x23d572});}}const _0x4968f4=(0x0,path_1[_0x374a81(0x101)])(__dirname,_0x374a81(0x106));return(0x0,fs_1[_0x374a81(0xd6)])(_0x4968f4,{'encoding':'utf-8'})['replace'](/__res__/g,'/apiteststatic/')['replace'](_0x374a81(0x104),JSON[_0x374a81(0xe9)](_0x1035e6))[_0x374a81(0xdd)]('__devices__',JSON[_0x374a81(0xe9)](this[_0x374a81(0xdc)]['devices']));}};__decorate([(0x0,decorator_2['Config'])(a10_0x24956d(0xcb)),__metadata(a10_0x24956d(0xc3),Object)],ApitestService['prototype'],a10_0x24956d(0xdc),void 0x0),ApitestService=__decorate([(0x0,decorator_1['Provide'])('apitest'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x24956d(0xd0)][a10_0x24956d(0xfc)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x24956d(0xf1)](){const _0x396ad4=a10_0x24956d;if(this['apitest']){const _0x2f0820={'module':![]};return this[_0x396ad4(0xe1)][_0x396ad4(0xec)]()&&(_0x2f0820[_0x396ad4(0xc1)]=!![]),await this[_0x396ad4(0xc9)][_0x396ad4(0xdb)](_0x2f0820);}return'';}async[a10_0x24956d(0xe2)](_0xd28a4){const _0x5ac7ab=a10_0x24956d;if(this[_0x5ac7ab(0xcd)]){const _0x32bbc8={'module':_0xd28a4};return this['Environment'][_0x5ac7ab(0xec)]()&&(_0x32bbc8[_0x5ac7ab(0xc1)]=!![]),await this[_0x5ac7ab(0xc9)]['apidoc'](_0x32bbc8);}return'';}async[a10_0x24956d(0x107)](){const _0x5401c8=a10_0x24956d;if((0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)][_0x5401c8(0xf3)][_0x5401c8(0xf7)])){var _0x2d18b0=(0x0,path_1[_0x5401c8(0x101)])(__dirname,'../../public/'+this['ctx'][_0x5401c8(0xf3)][_0x5401c8(0xf7)][_0x5401c8(0xdd)]('/apiteststatic/','/'));if(_0x2d18b0[_0x5401c8(0xef)](_0x2d18b0['length']-0xb)!='/index.html'){this['ctx']['set'](_0x5401c8(0xc6),_0x5401c8(0xf0));if((0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)]['request'][_0x5401c8(0xf7)])==_0x5401c8(0xeb))this[_0x5401c8(0xdf)][_0x5401c8(0xd4)]('content-type','application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x5401c8(0x108)])(this[_0x5401c8(0xdf)]['request'][_0x5401c8(0xf7)])==_0x5401c8(0xda)&&this[_0x5401c8(0xdf)]['set'](_0x5401c8(0xf8),_0x5401c8(0xe8));return(0x0,fs_1[_0x5401c8(0x100)])(_0x2d18b0)&&(0x0,fs_1[_0x5401c8(0xd6)])(_0x2d18b0,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata('design:type',Object)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xdf),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata(a10_0x24956d(0xc3),core_1['MidwayEnvironmentService'])],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xe1),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xcf)])(),__metadata(a10_0x24956d(0xc3),ApitestService)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xc9),void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xe5)])(a10_0x24956d(0xcd)),__metadata('design:type',Boolean)],ApitestStaticController[a10_0x24956d(0xe7)],'apitest',void 0x0),__decorate([(0x0,decorator_2[a10_0x24956d(0xe5)])(a10_0x24956d(0xcb)),__metadata(a10_0x24956d(0xc3),Object)],ApitestStaticController['prototype'],a10_0x24956d(0xdc),void 0x0),__decorate([(0x0,decorator_1[a10_0x24956d(0xe0)])(a10_0x24956d(0xd9)),__metadata(a10_0x24956d(0xc3),Function),__metadata(a10_0x24956d(0xe3),[]),__metadata(a10_0x24956d(0xf4),Promise)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0xf1),null),__decorate([(0x0,decorator_1['Get'])('/apitest-:module'),__param(0x0,(0x0,decorator_1[a10_0x24956d(0x103)])('module')),__metadata(a10_0x24956d(0xc3),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x24956d(0xe7)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x24956d(0xe0)])(a10_0x24956d(0xfd)),__metadata(a10_0x24956d(0xc3),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x24956d(0xe7)],a10_0x24956d(0x107),null),ApitestStaticController=__decorate([(0x0,decorator_1['Controller'])('/'),(0x0,decorator_2['Scope'])(decorator_2[a10_0x24956d(0xd0)][a10_0x24956d(0xc5)])],ApitestStaticController),exports[a10_0x24956d(0xc2)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x2d88dc=a11_0x5c85;(function(_0x4edb14,_0x567c43){const _0x50d807=a11_0x5c85,_0x1651b7=_0x4edb14();while(!![]){try{const _0x50fc8c=-parseInt(_0x50d807(0x7c))/0x1+-parseInt(_0x50d807(0x74))/0x2*(parseInt(_0x50d807(0x73))/0x3)+parseInt(_0x50d807(0x95))/0x4*(-parseInt(_0x50d807(0x8c))/0x5)+parseInt(_0x50d807(0xb3))/0x6*(parseInt(_0x50d807(0xab))/0x7)+-parseInt(_0x50d807(0x76))/0x8*(parseInt(_0x50d807(0x8f))/0x9)+parseInt(_0x50d807(0x88))/0xa+parseInt(_0x50d807(0x7e))/0xb;if(_0x50fc8c===_0x567c43)break;else _0x1651b7['push'](_0x1651b7['shift']());}catch(_0x5eea7a){_0x1651b7['push'](_0x1651b7['shift']());}}}(a11_0xf934,0x5c8bb));function a11_0x5c85(_0x2857ed,_0x1508c3){const _0xf93456=a11_0xf934();return a11_0x5c85=function(_0x5c8575,_0xf96481){_0x5c8575=_0x5c8575-0x6d;let _0x54e7f1=_0xf93456[_0x5c8575];return _0x54e7f1;},a11_0x5c85(_0x2857ed,_0x1508c3);}function a11_0xf934(){const _0x8f9d28=['getAppDir','frozen','function','substring','startsWith','defineProperty','79040HFFtja','\x20is\x20read\x20fail','Provide','worksheets','131570zXKaAM','log','ScopeEnum','278496tGVqYN','isNumber','getRow','push','.xlsx','replace','56jDfcvt','handler','download','Singleton','App','columns','value','header','__decorate','Sheet\x201','/public/xlsx','export','prototype','getWorksheet','__esModule','length','key','metadata','addWorksheet','koa-send','decorate','object','3640931exTVgI','col','writeFile','public/xlsx','cellCount','mkdirSync','findRows','toString','6QkBACX','getCell','getOwnPropertyDescriptor','ExcelService','trim','design:type','exceljs','endsWith','1646529YVIbjY','2YpzEkI','__metadata','160oafhqd','xlsx','readFile','eachCell','app','get','6373ATZchK','Scope','15328742tFzYpB','existsSync','Workbook','@midwayjs/decorator'];a11_0xf934=function(){return _0x8f9d28;};return a11_0xf934();}var __decorate=this&&this[a11_0x2d88dc(0x9d)]||function(_0xed747,_0x1c3ce6,_0x34f01c,_0x4b5fd0){const _0x4b7ef7=a11_0x2d88dc;var _0x1e7d52=arguments[_0x4b7ef7(0xa4)],_0x30365a=_0x1e7d52<0x3?_0x1c3ce6:_0x4b5fd0===null?_0x4b5fd0=Object[_0x4b7ef7(0x6d)](_0x1c3ce6,_0x34f01c):_0x4b5fd0,_0xa5f723;if(typeof Reflect===_0x4b7ef7(0xaa)&&typeof Reflect[_0x4b7ef7(0xa9)]===_0x4b7ef7(0x84))_0x30365a=Reflect[_0x4b7ef7(0xa9)](_0xed747,_0x1c3ce6,_0x34f01c,_0x4b5fd0);else{for(var _0x487f34=_0xed747[_0x4b7ef7(0xa4)]-0x1;_0x487f34>=0x0;_0x487f34--)if(_0xa5f723=_0xed747[_0x487f34])_0x30365a=(_0x1e7d52<0x3?_0xa5f723(_0x30365a):_0x1e7d52>0x3?_0xa5f723(_0x1c3ce6,_0x34f01c,_0x30365a):_0xa5f723(_0x1c3ce6,_0x34f01c))||_0x30365a;}return _0x1e7d52>0x3&&_0x30365a&&Object[_0x4b7ef7(0x87)](_0x1c3ce6,_0x34f01c,_0x30365a),_0x30365a;},__metadata=this&&this[a11_0x2d88dc(0x75)]||function(_0x361b56,_0x83a865){const _0x5af357=a11_0x2d88dc;if(typeof Reflect===_0x5af357(0xaa)&&typeof Reflect[_0x5af357(0xa6)]===_0x5af357(0x84))return Reflect[_0x5af357(0xa6)](_0x361b56,_0x83a865);};Object['defineProperty'](exports,a11_0x2d88dc(0xa3),{'value':!![]}),exports[a11_0x2d88dc(0x6e)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x2d88dc(0x71)),koasend=require(a11_0x2d88dc(0xa8)),decorator_1=require(a11_0x2d88dc(0x81));let ExcelService=class ExcelService{async['parse'](_0x4147d4,_0x1fdea0,_0x3fecde=[0x0]){const _0x496ec0=a11_0x2d88dc;var _0x4b80b9,_0x20516b;const _0x28285c=new exceljs['Workbook'](),_0x21f012=[];let _0x1f8e55=_0x4147d4['replace'](/(\\|\/)/g,'/')[_0x496ec0(0x94)](/\/{2,}/g,'/');!(_0x1f8e55===null||_0x1f8e55===void 0x0?void 0x0:_0x1f8e55[_0x496ec0(0x86)]('/'))&&(_0x1f8e55=this['app'][_0x496ec0(0x82)]()+'/'+_0x1f8e55);try{await _0x28285c[_0x496ec0(0x77)][_0x496ec0(0x78)](_0x1f8e55);}catch(_0x70dd25){return console[_0x496ec0(0x8d)]('Api\x20Excel\x20Error:\x20'+_0x1f8e55+_0x496ec0(0x89)),_0x21f012;}for(const _0xafcb9c of _0x3fecde){const _0x2171f8=lodash[_0x496ec0(0x90)](_0xafcb9c)?((_0x4b80b9=_0x28285c[_0x496ec0(0x8b)])===null||_0x4b80b9===void 0x0?void 0x0:_0x4b80b9[_0xafcb9c])||undefined:_0x28285c[_0x496ec0(0xa2)](_0xafcb9c);if(_0x2171f8){var _0x464083=0x1;const _0x4466be=_0x2171f8[_0x496ec0(0x91)](0x1),_0x1c18e7=await new Promise(_0x484f33=>{const _0x808654=_0x496ec0,_0x1e62d0={};_0x4466be[_0x808654(0x79)]((_0x4b7e2a,_0xabc207)=>{const _0x2f8225=_0x808654;for(const _0x415e60 of _0x1fdea0){if(_0x4b7e2a[_0x2f8225(0x9b)]==_0x415e60['header'])_0x464083=0x2,_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]]={'header':_0x4b7e2a[_0x2f8225(0xac)],'handler':_0x415e60[_0x2f8225(0x96)]};else{if(!_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]])try{const _0x4a1b5e=_0x4466be['getCell'](_0x415e60[_0x2f8225(0x9c)]);_0x4a1b5e&&(_0x1e62d0[_0x415e60[_0x2f8225(0xa5)]]={'header':_0x4a1b5e[_0x2f8225(0xac)],'handler':_0x415e60['handler']});}catch{}}}_0x4466be[_0x2f8225(0xaf)]==_0xabc207&&_0x484f33(_0x1e62d0);});});for(const _0x29b18e of _0x2171f8[_0x496ec0(0xb1)](_0x464083,_0x2171f8['rowCount'])){const _0x54c7b7={};for(const _0x1ec2b0 in _0x1c18e7){_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)]&&(typeof((_0x20516b=_0x1c18e7[_0x1ec2b0])===null||_0x20516b===void 0x0?void 0x0:_0x20516b['handler'])=='function'?_0x54c7b7[_0x1ec2b0]=_0x1c18e7[_0x1ec2b0]['handler'](_0x29b18e[_0x496ec0(0xb4)](lodash[_0x496ec0(0x6f)](''+_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)],'\x20'))[_0x496ec0(0xb2)]()):_0x54c7b7[_0x1ec2b0]=_0x29b18e[_0x496ec0(0xb4)](_0x1c18e7[_0x1ec2b0][_0x496ec0(0x9c)])['toString']());}Object['keys'](_0x54c7b7)['length']>0x0&&_0x21f012[_0x496ec0(0x92)](_0x54c7b7);}}}return _0x21f012;}async[a11_0x2d88dc(0xa0)](_0x4d1e85,_0x281a2f,_0x53bc7d,_0x4cdee7=a11_0x2d88dc(0xae)){const _0x35197d=a11_0x2d88dc;var _0x185449,_0x2de25a;const _0x4c72a4=new exceljs[(_0x35197d(0x80))](),_0x243f83={},_0x23c477=[],_0x584ed7=_0x4c72a4[_0x35197d(0xa7)](_0x35197d(0x9e),{'views':[{'state':_0x35197d(0x83),'xSplit':0x1}]});for(const _0x2fb8c4 in _0x281a2f){_0x243f83[_0x281a2f[_0x2fb8c4][_0x35197d(0xa5)]]=_0x281a2f[_0x2fb8c4][_0x35197d(0x9c)],_0x23c477[_0x35197d(0x92)]({'header':_0x281a2f[_0x2fb8c4][_0x35197d(0x9c)],'key':(_0x185449=_0x281a2f[_0x2fb8c4])===null||_0x185449===void 0x0?void 0x0:_0x185449[_0x35197d(0xa5)][_0x35197d(0x94)](/\./g,'_')});}_0x584ed7[_0x35197d(0x9a)]=_0x23c477;for(const _0x2d8ced of _0x53bc7d){const _0x4bd69b={};for(const _0x3c4269 in _0x281a2f){typeof((_0x2de25a=_0x281a2f[_0x3c4269])===null||_0x2de25a===void 0x0?void 0x0:_0x2de25a[_0x35197d(0x96)])==_0x35197d(0x84)?_0x4bd69b[_0x281a2f[_0x3c4269]['key'][_0x35197d(0x94)](/\./g,'_')]=await _0x281a2f[_0x3c4269][_0x35197d(0x96)](_0x2d8ced):_0x4bd69b[_0x281a2f[_0x3c4269]['key'][_0x35197d(0x94)](/\./g,'_')]=lodash[_0x35197d(0x7b)](_0x2d8ced,_0x281a2f[_0x3c4269][_0x35197d(0xa5)],'');}_0x584ed7['addRow'](_0x4bd69b);}let _0x3ca819='';const _0xb17116=_0x4d1e85+'-'+lodash['random'](0x2710,0x1869f)+_0x35197d(0x93);if(_0x4cdee7&&_0x4cdee7[_0x35197d(0x86)]('/'))_0x3ca819=_0x4cdee7+'/'+_0xb17116;else _0x4cdee7&&!_0x4cdee7[_0x35197d(0x86)]('/')&&!_0x4cdee7['startsWith']('\x5c')?_0x3ca819=this[_0x35197d(0x7a)][_0x35197d(0x82)]()+'/'+_0x4cdee7+'/'+_0xb17116:_0x3ca819=this[_0x35197d(0x7a)]['getAppDir']()+_0x35197d(0x9f);return(_0x3ca819[_0x35197d(0x72)]('/')||_0x3ca819[_0x35197d(0x72)]('\x5c'))&&(_0x3ca819=_0x3ca819[_0x35197d(0x85)](0x0,_0x3ca819[_0x35197d(0xa4)]-0x1)),_0x3ca819=_0x3ca819['replace'](/(\\|\/)/g,'/')[_0x35197d(0x94)](/\/{2,}/g,'/'),!fs[_0x35197d(0x7f)](_0x3ca819)&&fs[_0x35197d(0xb0)](_0x3ca819,{'recursive':!![]}),await _0x4c72a4[_0x35197d(0x77)][_0x35197d(0xad)]((_0x3ca819+'/'+_0xb17116)[_0x35197d(0x94)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0xb17116,'filepath':_0x3ca819};}async[a11_0x2d88dc(0x97)](_0xf9a162,_0x5218eb){await koasend(_0xf9a162,'/public/xlsx/'+_0x5218eb);}};__decorate([(0x0,decorator_1[a11_0x2d88dc(0x99)])(),__metadata(a11_0x2d88dc(0x70),Object)],ExcelService[a11_0x2d88dc(0xa1)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x2d88dc(0x8a)])(),(0x0,decorator_1[a11_0x2d88dc(0x7d)])(decorator_1[a11_0x2d88dc(0x8e)][a11_0x2d88dc(0x98)])],ExcelService),exports[a11_0x2d88dc(0x6e)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a12_0x3f6b(){var _0x30e4bd=['2796288beYtOr','5021TWOlUz','20249334XgvPxh','1270101YkONrI','4JjUKao','9962240kCdEUl','defineProperty','20NSbrAM','anncic-api:action:route','2019770pNfKRx','7506120IILYiZ','ACTION_KEY','2RLbgkN','__esModule','ACTION_ROUTE_KEY'];a12_0x3f6b=function(){return _0x30e4bd;};return a12_0x3f6b();}var a12_0x4eb747=a12_0x5795;function a12_0x5795(_0x112bb1,_0x11473a){var _0x3f6bbc=a12_0x3f6b();return a12_0x5795=function(_0x57959e,_0x254a44){_0x57959e=_0x57959e-0xbf;var _0x4675df=_0x3f6bbc[_0x57959e];return _0x4675df;},a12_0x5795(_0x112bb1,_0x11473a);}(function(_0x4b2a4f,_0x444256){var _0x4f28ac=a12_0x5795,_0xdeb71a=_0x4b2a4f();while(!![]){try{var _0x3f46b0=parseInt(_0x4f28ac(0xcd))/0x1*(parseInt(_0x4f28ac(0xc9))/0x2)+-parseInt(_0x4f28ac(0xcc))/0x3+-parseInt(_0x4f28ac(0xc1))/0x4*(parseInt(_0x4f28ac(0xc6))/0x5)+-parseInt(_0x4f28ac(0xc7))/0x6+parseInt(_0x4f28ac(0xc0))/0x7+-parseInt(_0x4f28ac(0xc2))/0x8+-parseInt(_0x4f28ac(0xbf))/0x9*(-parseInt(_0x4f28ac(0xc4))/0xa);if(_0x3f46b0===_0x444256)break;else _0xdeb71a['push'](_0xdeb71a['shift']());}catch(_0x4e9a49){_0xdeb71a['push'](_0xdeb71a['shift']());}}}(a12_0x3f6b,0xd07ce));Object[a12_0x4eb747(0xc3)](exports,a12_0x4eb747(0xca),{'value':!![]}),exports[a12_0x4eb747(0xcb)]=exports[a12_0x4eb747(0xc8)]=void 0x0,exports[a12_0x4eb747(0xc8)]='anncic-api:action',exports['ACTION_ROUTE_KEY']=a12_0x4eb747(0xc5);
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x3b2f7f=a13_0x4155;function a13_0x3c97(){var _0x2cdd52=['prototype','_isreverse','270697KlWaMz','505785uKIyrk','function','1:是;0:否','number','PageDTO','defineProperty','Rule','object','string','分页数量','trim','464902xbjpeO','decorate','_size','metadata','min','104280Uvykcr','4XOeUOF','__metadata','@anncic-api/validator','design:type','integer','216822fDONxH','getOwnPropertyDescriptor','_order','是否倒序','第一页为1,第二页为2','__esModule','4737780cVOyIn','RuleType','valid','length','577160vyVKNn','21VkUfMz'];a13_0x3c97=function(){return _0x2cdd52;};return a13_0x3c97();}(function(_0x5b921c,_0x546a61){var _0x1b3722=a13_0x4155,_0x191f9c=_0x5b921c();while(!![]){try{var _0x2c1fce=parseInt(_0x1b3722(0x85))/0x1+parseInt(_0x1b3722(0x91))/0x2+parseInt(_0x1b3722(0x86))/0x3+parseInt(_0x1b3722(0x97))/0x4*(parseInt(_0x1b3722(0x96))/0x5)+parseInt(_0x1b3722(0x77))/0x6*(parseInt(_0x1b3722(0x82))/0x7)+-parseInt(_0x1b3722(0x81))/0x8+-parseInt(_0x1b3722(0x7d))/0x9;if(_0x2c1fce===_0x546a61)break;else _0x191f9c['push'](_0x191f9c['shift']());}catch(_0x100528){_0x191f9c['push'](_0x191f9c['shift']());}}}(a13_0x3c97,0x316cd));function a13_0x4155(_0x550cd4,_0x2939b5){var _0x3c9715=a13_0x3c97();return a13_0x4155=function(_0x4155e1,_0x2aa202){_0x4155e1=_0x4155e1-0x74;var _0x5c1776=_0x3c9715[_0x4155e1];return _0x5c1776;},a13_0x4155(_0x550cd4,_0x2939b5);}var __decorate=this&&this['__decorate']||function(_0x1d83d7,_0x228865,_0x553aeb,_0xf9f63c){var _0x55de22=a13_0x4155,_0x5b05dd=arguments[_0x55de22(0x80)],_0x10a4bc=_0x5b05dd<0x3?_0x228865:_0xf9f63c===null?_0xf9f63c=Object[_0x55de22(0x78)](_0x228865,_0x553aeb):_0xf9f63c,_0x77ce0f;if(typeof Reflect==='object'&&typeof Reflect[_0x55de22(0x92)]===_0x55de22(0x87))_0x10a4bc=Reflect[_0x55de22(0x92)](_0x1d83d7,_0x228865,_0x553aeb,_0xf9f63c);else{for(var _0x484f72=_0x1d83d7['length']-0x1;_0x484f72>=0x0;_0x484f72--)if(_0x77ce0f=_0x1d83d7[_0x484f72])_0x10a4bc=(_0x5b05dd<0x3?_0x77ce0f(_0x10a4bc):_0x5b05dd>0x3?_0x77ce0f(_0x228865,_0x553aeb,_0x10a4bc):_0x77ce0f(_0x228865,_0x553aeb))||_0x10a4bc;}return _0x5b05dd>0x3&&_0x10a4bc&&Object[_0x55de22(0x8b)](_0x228865,_0x553aeb,_0x10a4bc),_0x10a4bc;},__metadata=this&&this[a13_0x3b2f7f(0x98)]||function(_0x101022,_0x5c3750){var _0x454a88=a13_0x3b2f7f;if(typeof Reflect===_0x454a88(0x8d)&&typeof Reflect[_0x454a88(0x94)]===_0x454a88(0x87))return Reflect['metadata'](_0x101022,_0x5c3750);};Object[a13_0x3b2f7f(0x8b)](exports,a13_0x3b2f7f(0x7c),{'value':!![]}),exports[a13_0x3b2f7f(0x8a)]=void 0x0;const validator_1=require(a13_0x3b2f7f(0x74));class PageDTO{}__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])('分页',validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()['integer']()[a13_0x3b2f7f(0x95)](0x1),a13_0x3b2f7f(0x7b)),__metadata(a13_0x3b2f7f(0x75),Number)],PageDTO['prototype'],'_page',void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])(a13_0x3b2f7f(0x8f),validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()[a13_0x3b2f7f(0x76)]()[a13_0x3b2f7f(0x95)](0x1)),__metadata('design:type',Number)],PageDTO[a13_0x3b2f7f(0x83)],a13_0x3b2f7f(0x93),void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])('排序方式',validator_1['RuleType'][a13_0x3b2f7f(0x8e)]()[a13_0x3b2f7f(0x90)]()),__metadata(a13_0x3b2f7f(0x75),String)],PageDTO[a13_0x3b2f7f(0x83)],a13_0x3b2f7f(0x79),void 0x0),__decorate([(0x0,validator_1[a13_0x3b2f7f(0x8c)])(a13_0x3b2f7f(0x7a),validator_1[a13_0x3b2f7f(0x7e)][a13_0x3b2f7f(0x89)]()['integer']()[a13_0x3b2f7f(0x7f)](0x0,0x1),a13_0x3b2f7f(0x88)),__metadata(a13_0x3b2f7f(0x75),Number)],PageDTO['prototype'],a13_0x3b2f7f(0x84),void 0x0),exports[a13_0x3b2f7f(0x8a)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.1.
|
|
21
|
-
"@anncic-api/core": "^1.1.
|
|
22
|
-
"@anncic-api/event": "^1.1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.1.
|
|
24
|
-
"@anncic-api/validator": "^1.1.
|
|
20
|
+
"@anncic-api/cache": "^1.1.10",
|
|
21
|
+
"@anncic-api/core": "^1.1.10",
|
|
22
|
+
"@anncic-api/event": "^1.1.10",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.10",
|
|
24
|
+
"@anncic-api/validator": "^1.1.10",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.0",
|
|
27
27
|
"@midwayjs/koa": "^3.5.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.0",
|
|
30
30
|
"@midwayjs/upload": "^3.5.0",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.10",
|
|
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": "dc48f123829af47e61c70a523fcd1c35e79e68e3"
|
|
45
45
|
}
|