anncic-api 1.1.7 → 1.1.8
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_0x2b0b1d=a0_0x1875;function a0_0x32a0(){var _0x523c42=['65383KURNDM','152581jXQxQd','70rZeQXp','9eFCDKG','7ufooPe','248tYPOHS','2639460SogqIb','1260339fOwnZH','defineProperty','5617320uWgyNp','1214648VtMUYu','2UkPegO','15205wxJEDL','13NCCpum','default'];a0_0x32a0=function(){return _0x523c42;};return a0_0x32a0();}(function(_0x3f4f57,_0x74a48d){var _0x763582=a0_0x1875,_0x317585=_0x3f4f57();while(!![]){try{var _0x48e9a6=-parseInt(_0x763582(0xaa))/0x1+-parseInt(_0x763582(0xa6))/0x2*(-parseInt(_0x763582(0xa2))/0x3)+-parseInt(_0x763582(0xa0))/0x4*(parseInt(_0x763582(0xa7))/0x5)+parseInt(_0x763582(0xa1))/0x6*(-parseInt(_0x763582(0xae))/0x7)+parseInt(_0x763582(0xa5))/0x8*(parseInt(_0x763582(0xad))/0x9)+-parseInt(_0x763582(0xac))/0xa*(parseInt(_0x763582(0xab))/0xb)+parseInt(_0x763582(0xa4))/0xc*(parseInt(_0x763582(0xa8))/0xd);if(_0x48e9a6===_0x74a48d)break;else _0x317585['push'](_0x317585['shift']());}catch(_0x534ba3){_0x317585['push'](_0x317585['shift']());}}}(a0_0x32a0,0x3cd22));function a0_0x1875(_0x1fff18,_0x4cdc61){var _0x32a0ad=a0_0x32a0();return a0_0x1875=function(_0x18750c,_0x56df63){_0x18750c=_0x18750c-0xa0;var _0x40df56=_0x32a0ad[_0x18750c];return _0x40df56;},a0_0x1875(_0x1fff18,_0x4cdc61);}Object[a0_0x2b0b1d(0xa3)](exports,'__esModule',{'value':!![]}),exports[a0_0x2b0b1d(0xa9)]=_0x3adb6e=>{return{'apitest':!![],'keys':_0x3adb6e['name'],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':'dhauo1234420123gg3234901'}}},'upload':{'tmpdir':_0x3adb6e['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x108d(){var _0x274ffd=['1317546vIVvpm','2cXbDKu','defineProperty','390987ksjmkX','480wRyGPn','12037340iEMIvq','22832PfPuwE','185185GtRXEw','185087cVdfbl','3580568cTFDIE','150UzYoEA','default'];a1_0x108d=function(){return _0x274ffd;};return a1_0x108d();}var a1_0x1c4fe1=a1_0x14cf;function a1_0x14cf(_0x7ec821,_0x3bd3d2){var _0x108d3b=a1_0x108d();return a1_0x14cf=function(_0x14cfd5,_0xf367ca){_0x14cfd5=_0x14cfd5-0x1e8;var _0x517679=_0x108d3b[_0x14cfd5];return _0x517679;},a1_0x14cf(_0x7ec821,_0x3bd3d2);}(function(_0x22f966,_0x3664b3){var _0x46ff7d=a1_0x14cf,_0x30c193=_0x22f966();while(!![]){try{var _0x1561dc=-parseInt(_0x46ff7d(0x1f3))/0x1*(-parseInt(_0x46ff7d(0x1ed))/0x2)+-parseInt(_0x46ff7d(0x1ef))/0x3+-parseInt(_0x46ff7d(0x1f2))/0x4*(parseInt(_0x46ff7d(0x1f0))/0x5)+parseInt(_0x46ff7d(0x1ea))/0x6*(-parseInt(_0x46ff7d(0x1e8))/0x7)+parseInt(_0x46ff7d(0x1e9))/0x8+-parseInt(_0x46ff7d(0x1ec))/0x9+parseInt(_0x46ff7d(0x1f1))/0xa;if(_0x1561dc===_0x3664b3)break;else _0x30c193['push'](_0x30c193['shift']());}catch(_0x55658f){_0x30c193['push'](_0x30c193['shift']());}}}(a1_0x108d,0x55a36));Object[a1_0x1c4fe1(0x1ee)](exports,'__esModule',{'value':!![]}),exports[a1_0x1c4fe1(0x1eb)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a2_0x29eb(){const _0x1c9dbc=['@midwayjs/cross-domain','addObject','./config/config.production','application','@anncic-api/core','koa','defineProperties','isString','registerMethodHandler','MidwayEnvironmentService','ApiService','549dILDjH','config','./service/ApiService','ApiError','@midwayjs/i18n','dirs','MidwayDecoratorService','checkConfigKeys','key','isArray','input','koa-xml-body','@midwayjs/static-file','1805840eHhhAT','429306ewmEat','18376jCJxbQ','tmpdir','32152ToiWlM','Anncic-api\x20static-file\x20:\x20mkdir\x20','DEFAULT','get','forEach','5oXRWbQ','prototype','@anncic-api/validator','@midwayjs/upload','log','koa-bodyparser','beforeRoute','REQUEST_OBJ_CTX_KEY','decorate','getOwnPropertyDescriptor','Inject','environment','ACTION_ROUTE_KEY','MidwayApplicationManager','isNull','onReady','mkdirSync','function','decorator','238364jReIfl','@anncic-api/typeorm','request','dir','context','length','query','staticFile','existsSync','filterConfig','target','devices','keys','MidwayConfigService','headers','__decorate','6WbfxlK','1470396YCPLJR','handlerActionRoute','device','defineProperty','@midwayjs/koa','__metadata','bodyParser','apimit','useMiddleware','upload','./types/action','3921258YqIynq','getConfiguration','anncicapi','string','HEADERS_SIGNATURE','bodyXml','design:type','hanlderApplications','metadata','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','body','object','getApplications','27xTEclS','CustomConfiguration','defaultsDeep','Configuration'];a2_0x29eb=function(){return _0x1c9dbc;};return a2_0x29eb();}const a2_0x3c3fd9=a2_0xcf84;(function(_0x9ef672,_0x2fe6b2){const _0x33f8a3=a2_0xcf84,_0x2dadbc=_0x9ef672();while(!![]){try{const _0x315c2c=parseInt(_0x33f8a3(0xac))/0x1+parseInt(_0x33f8a3(0xaf))/0x2*(-parseInt(_0x33f8a3(0x8f))/0x3)+parseInt(_0x33f8a3(0xd8))/0x4*(parseInt(_0x33f8a3(0xb4))/0x5)+-parseInt(_0x33f8a3(0xd7))/0x6*(parseInt(_0x33f8a3(0xc7))/0x7)+-parseInt(_0x33f8a3(0xad))/0x8*(-parseInt(_0x33f8a3(0x9e))/0x9)+-parseInt(_0x33f8a3(0xab))/0xa+-parseInt(_0x33f8a3(0x82))/0xb;if(_0x315c2c===_0x2fe6b2)break;else _0x2dadbc['push'](_0x2dadbc['shift']());}catch(_0x5472cd){_0x2dadbc['push'](_0x2dadbc['shift']());}}}(a2_0x29eb,0x36028));function a2_0xcf84(_0x1c4f7f,_0x4cf73f){const _0x29eb05=a2_0x29eb();return a2_0xcf84=function(_0xcf84b0,_0x34398d){_0xcf84b0=_0xcf84b0-0x7b;let _0x2357c3=_0x29eb05[_0xcf84b0];return _0x2357c3;},a2_0xcf84(_0x1c4f7f,_0x4cf73f);}var __decorate=this&&this[a2_0x3c3fd9(0xd6)]||function(_0x5f5a18,_0x3d6c7d,_0x2d48b2,_0x531269){const _0x2ab7e6=a2_0x3c3fd9;var _0x694488=arguments['length'],_0x36db42=_0x694488<0x3?_0x3d6c7d:_0x531269===null?_0x531269=Object[_0x2ab7e6(0xbd)](_0x3d6c7d,_0x2d48b2):_0x531269,_0x2dbc6d;if(typeof Reflect===_0x2ab7e6(0x8d)&&typeof Reflect['decorate']===_0x2ab7e6(0xc5))_0x36db42=Reflect[_0x2ab7e6(0xbc)](_0x5f5a18,_0x3d6c7d,_0x2d48b2,_0x531269);else{for(var _0x5d4b2b=_0x5f5a18[_0x2ab7e6(0xcc)]-0x1;_0x5d4b2b>=0x0;_0x5d4b2b--)if(_0x2dbc6d=_0x5f5a18[_0x5d4b2b])_0x36db42=(_0x694488<0x3?_0x2dbc6d(_0x36db42):_0x694488>0x3?_0x2dbc6d(_0x3d6c7d,_0x2d48b2,_0x36db42):_0x2dbc6d(_0x3d6c7d,_0x2d48b2))||_0x36db42;}return _0x694488>0x3&&_0x36db42&&Object[_0x2ab7e6(0xdb)](_0x3d6c7d,_0x2d48b2,_0x36db42),_0x36db42;},__metadata=this&&this[a2_0x3c3fd9(0x7c)]||function(_0xa9314f,_0x434ed5){const _0x2a13a5=a2_0x3c3fd9;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2a13a5(0xc5))return Reflect[_0x2a13a5(0x8a)](_0xa9314f,_0x434ed5);};Object[a2_0x3c3fd9(0xdb)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require('@midwayjs/core'),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x3c3fd9(0xa0)),action_1=require(a2_0x3c3fd9(0x81)),fs=require('fs'),koa=require(a2_0x3c3fd9(0x7b)),i18n=require(a2_0x3c3fd9(0xa2)),task=require('@midwayjs/task'),upload=require(a2_0x3c3fd9(0xb7)),staticFile=require(a2_0x3c3fd9(0xaa)),crossDomain=require(a2_0x3c3fd9(0x93)),bodyXml=require(a2_0x3c3fd9(0xa9)),bodyParser=require(a2_0x3c3fd9(0xb9)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x3c3fd9(0x95)),anncic=require(a2_0x3c3fd9(0x97)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x3c3fd9(0xc8)),anncicValidator=require(a2_0x3c3fd9(0xb6)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x3c3fd9(0xc3)](){const _0xc42503=a2_0x3c3fd9;await this[_0xc42503(0xd0)](),await this[_0xc42503(0xa5)](),await this[_0xc42503(0xd9)](),await this[_0xc42503(0x89)]();}async[a2_0x3c3fd9(0xa5)](){}async[a2_0x3c3fd9(0xd9)](){const _0x16cec9=a2_0x3c3fd9,_0x104ce2=this[_0x16cec9(0x9f)]['getConfiguration']();this[_0x16cec9(0xc6)][_0x16cec9(0x9b)](action_1[_0x16cec9(0xc0)],_0x2e4725=>{const _0x1a257f=_0x2e4725['metadata'];return{'before':async _0xe90756=>{const _0x1c4394=a2_0xcf84;var _0x55db3a,_0x483174,_0x3f4278,_0x4c9b63,_0x89ab4f;const _0x21183c=(_0x55db3a=_0xe90756===null||_0xe90756===void 0x0?void 0x0:_0xe90756[_0x1c4394(0xd1)])===null||_0x55db3a===void 0x0?void 0x0:_0x55db3a[core_1[_0x1c4394(0xbb)]];if(_0x21183c){if((_0x1a257f===null||_0x1a257f===void 0x0?void 0x0:_0x1a257f[_0x1c4394(0x7e)])&&!this['ApiService']['checksign']((_0x483174=_0x21183c===null||_0x21183c===void 0x0?void 0x0:_0x21183c[_0x1c4394(0xc9)])===null||_0x483174===void 0x0?void 0x0:_0x483174[_0x1c4394(0xd5)]))throw new AnnError(ApiError_1[_0x1c4394(0xa1)][_0x1c4394(0x86)]);((_0x3f4278=_0x21183c[_0x1c4394(0xd5)])===null||_0x3f4278===void 0x0?void 0x0:_0x3f4278[_0x1c4394(0xda)])&&((_0x89ab4f=(_0x4c9b63=_0x104ce2===null||_0x104ce2===void 0x0?void 0x0:_0x104ce2['anncicapi'])===null||_0x4c9b63===void 0x0?void 0x0:_0x4c9b63['devices'])===null||_0x89ab4f===void 0x0?void 0x0:_0x89ab4f[_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]])&&(typeof _0x104ce2[_0x1c4394(0x84)]['devices'][_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]][_0x1c4394(0xba)]=='function'&&await _0x104ce2[_0x1c4394(0x84)]['devices'][_0x21183c[_0x1c4394(0xd5)][_0x1c4394(0xda)]][_0x1c4394(0xba)]((_0x21183c===null||_0x21183c===void 0x0?void 0x0:_0x21183c['_matchedRoute'])||undefined,_0x1a257f,_0x21183c));}},'afterThrow':(_0x41facc,_0x25582c)=>{throw _0x25582c;}};});}async[a2_0x3c3fd9(0x89)](){const _0x4c7eed=a2_0x3c3fd9;this[_0x4c7eed(0x96)][_0x4c7eed(0x8e)]([_0x4c7eed(0x98)])[_0x4c7eed(0xb3)](_0x459782=>{const _0x4e3835=_0x4c7eed;_0x459782[_0x4e3835(0x7f)](bodyXml(this[_0x4e3835(0x9f)][_0x4e3835(0x83)](_0x4e3835(0x87)))),_0x459782[_0x4e3835(0x7f)](bodyParser(this[_0x4e3835(0x9f)][_0x4e3835(0x83)](_0x4e3835(0x7d)))),(_0x459782===null||_0x459782===void 0x0?void 0x0:_0x459782[_0x4e3835(0xcb)])&&Object[_0x4e3835(0x99)](_0x459782[_0x4e3835(0xcb)],{'ok':{'value':function(_0x1e4c14,_0x4853de,_0x5339ca=0x0){return{'code':_0x5339ca,'data':_0x1e4c14,'extra':_0x4853de};}},'err':{'value':function(_0x55e84f,_0x5091b9,_0x304ba3=0x1){return{'code':_0x304ba3,'extra':_0x5091b9,'msg':_0x55e84f};}},'input':{'value':function(_0x17bf64,_0x501df0){const _0x20f560=_0x4e3835;var _0x48deb0;const _0x7adc9f=lodash[_0x20f560(0x91)]({},this['request'][_0x20f560(0x8c)]||this['request'][((_0x48deb0=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x48deb0===void 0x0?void 0x0:_0x48deb0[_0x20f560(0xa6)])||_0x20f560(0x8c)]||{},this[_0x20f560(0xc9)][_0x20f560(0xcd)]||{});return _0x17bf64?lodash[_0x20f560(0xb2)](_0x7adc9f,_0x17bf64,_0x501df0):_0x7adc9f;}},'when':{'value':async function(_0x4824a6,_0x2c4cf6){const _0x548e9c=_0x4e3835,_0x12738a=this[_0x548e9c(0xa8)](_0x4824a6,null);if(!lodash[_0x548e9c(0xc2)](_0x12738a))return await _0x2c4cf6(_0x12738a);}},'only':{'value':function(_0x384f0b){const _0x43f9c3=_0x4e3835,_0x25a56b={};for(let _0x2aef2d=0x0;_0x2aef2d<_0x384f0b[_0x43f9c3(0xcc)];_0x2aef2d++){lodash[_0x43f9c3(0xa7)](_0x384f0b[_0x2aef2d])&&_0x384f0b[_0x2aef2d]['length']>0x0&&lodash[_0x43f9c3(0x9a)](_0x384f0b[_0x2aef2d][0x0])&&(_0x25a56b[_0x384f0b[_0x2aef2d][0x0]]=this[_0x43f9c3(0xa8)](_0x384f0b[_0x2aef2d][0x0],_0x384f0b[_0x2aef2d]['length']>0x1?_0x384f0b[_0x2aef2d][0x1]:null));}return _0x25a56b;}}});});}async[a2_0x3c3fd9(0xd0)](){const _0x2a2e60=a2_0x3c3fd9;var _0x3e2b0e,_0x5c528b,_0x212390,_0x2c5c89,_0x4dac29,_0x3556da;const _0x1b29a6=this[_0x2a2e60(0x9f)][_0x2a2e60(0x83)]();((_0x5c528b=(_0x3e2b0e=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6[_0x2a2e60(0x84)])===null||_0x3e2b0e===void 0x0?void 0x0:_0x3e2b0e['devices'])===null||_0x5c528b===void 0x0?void 0x0:_0x5c528b[_0x2a2e60(0xb1)])&&Object[_0x2a2e60(0xd3)](_0x1b29a6[_0x2a2e60(0x84)][_0x2a2e60(0xd2)])['length']>0x1&&delete _0x1b29a6[_0x2a2e60(0x84)][_0x2a2e60(0xd2)][_0x2a2e60(0xb1)];if((_0x212390=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6['staticFile'])===null||_0x212390===void 0x0?void 0x0:_0x212390[_0x2a2e60(0xa3)])for(const _0x475a94 in _0x1b29a6['staticFile'][_0x2a2e60(0xa3)]){((_0x2c5c89=_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94])===null||_0x2c5c89===void 0x0?void 0x0:_0x2c5c89[_0x2a2e60(0xca)])&&typeof((_0x4dac29=_0x1b29a6['staticFile']['dirs'][_0x475a94])===null||_0x4dac29===void 0x0?void 0x0:_0x4dac29[_0x2a2e60(0xca)])==_0x2a2e60(0x85)&&!fs['existsSync'](_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94][_0x2a2e60(0xca)])&&(fs[_0x2a2e60(0xc4)](_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94]['dir'],{'recursive':!![]}),console[_0x2a2e60(0xb8)](_0x2a2e60(0xb0)+_0x1b29a6[_0x2a2e60(0xce)][_0x2a2e60(0xa3)][_0x475a94][_0x2a2e60(0xca)]));}((_0x3556da=_0x1b29a6===null||_0x1b29a6===void 0x0?void 0x0:_0x1b29a6[_0x2a2e60(0x80)])===null||_0x3556da===void 0x0?void 0x0:_0x3556da[_0x2a2e60(0xae)])&&!fs[_0x2a2e60(0xcf)](_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)])&&(fs[_0x2a2e60(0xc4)](_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)],{'recursive':!![]}),console['log'](_0x2a2e60(0x8b)+_0x1b29a6[_0x2a2e60(0x80)][_0x2a2e60(0xae)])),this[_0x2a2e60(0x9f)][_0x2a2e60(0x94)](_0x1b29a6);}};__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xd4)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0x9f),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xa4)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0xc1)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0x96),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),core_1[a2_0x3c3fd9(0x9c)])],CustomConfiguration[a2_0x3c3fd9(0xb5)],a2_0x3c3fd9(0xbf),void 0x0),__decorate([(0x0,decorator_1[a2_0x3c3fd9(0xbe)])(),__metadata(a2_0x3c3fd9(0x88),ApiService_1[a2_0x3c3fd9(0x9d)])],CustomConfiguration['prototype'],a2_0x3c3fd9(0x9d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x3c3fd9(0x92)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x3c3fd9(0x90)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x1143ee=a2_0x5704;(function(_0x4c160c,_0x47f352){const _0x1ff65b=a2_0x5704,_0x17019c=_0x4c160c();while(!![]){try{const _0x37cd5d=-parseInt(_0x1ff65b(0x215))/0x1*(parseInt(_0x1ff65b(0x21e))/0x2)+-parseInt(_0x1ff65b(0x1f4))/0x3*(parseInt(_0x1ff65b(0x1fe))/0x4)+-parseInt(_0x1ff65b(0x219))/0x5*(-parseInt(_0x1ff65b(0x21d))/0x6)+-parseInt(_0x1ff65b(0x24f))/0x7+parseInt(_0x1ff65b(0x20c))/0x8+-parseInt(_0x1ff65b(0x217))/0x9+parseInt(_0x1ff65b(0x207))/0xa;if(_0x37cd5d===_0x47f352)break;else _0x17019c['push'](_0x17019c['shift']());}catch(_0x1f0fdd){_0x17019c['push'](_0x17019c['shift']());}}}(a2_0x9178,0xa33c3));function a2_0x9178(){const _0x46720d=['@midwayjs/cross-domain','koa','@anncic-api/core','tmpdir','defaultsDeep','58594fSAYCR','./exception/ApiError','3604608FyGlWL','Inject','31435JNfDkp','__metadata','registerMethodHandler','decorate','24OpqGFX','30aWHiHu','mkdirSync','headers','getConfiguration','checkConfigKeys','existsSync','request','@midwayjs/koa','__esModule','input','string','object','bodyXml','getOwnPropertyDescriptor','hanlderApplications','handlerActionRoute','environment','@midwayjs/decorator','function','device','design:type','staticFile','@anncic-api/event','log','anncicapi','defineProperties','onReady','@midwayjs/upload','useMiddleware','isString','beforeRoute','./config/config.production','ApiService','./config/config.default','isNull','context','MidwayEnvironmentService','REQUEST_OBJ_CTX_KEY','upload','filterConfig','koa-xml-body','apimit','Configuration','get','./types/action','MidwayApplicationManager','bodyParser','getApplications','forEach','2945600hAqhQE','length','@anncic-api/validator','234xeQtad','anncic-apihelper','config','ACTION_ROUTE_KEY','query','CustomConfiguration','isArray','dir','DEFAULT','defineProperty','17484fdtLKh','anncic-api','Anncic-api\x20static-file\x20:\x20mkdir\x20','@midwayjs/core','metadata','@midwayjs/static-file','key','@midwayjs/i18n','application','14346240oYePPe','HEADERS_SIGNATURE','devices','@midwayjs/task','prototype','9999992NgKqHg','ApiError','dirs','target'];a2_0x9178=function(){return _0x46720d;};return a2_0x9178();}var __decorate=this&&this['__decorate']||function(_0x3ff85d,_0x220e18,_0xb505b2,_0x33bbd8){const _0x300779=a2_0x5704;var _0x3e2f94=arguments[_0x300779(0x250)],_0x6f83e9=_0x3e2f94<0x3?_0x220e18:_0x33bbd8===null?_0x33bbd8=Object[_0x300779(0x22b)](_0x220e18,_0xb505b2):_0x33bbd8,_0xbd73ee;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x300779(0x230))_0x6f83e9=Reflect[_0x300779(0x21c)](_0x3ff85d,_0x220e18,_0xb505b2,_0x33bbd8);else{for(var _0x3a6266=_0x3ff85d[_0x300779(0x250)]-0x1;_0x3a6266>=0x0;_0x3a6266--)if(_0xbd73ee=_0x3ff85d[_0x3a6266])_0x6f83e9=(_0x3e2f94<0x3?_0xbd73ee(_0x6f83e9):_0x3e2f94>0x3?_0xbd73ee(_0x220e18,_0xb505b2,_0x6f83e9):_0xbd73ee(_0x220e18,_0xb505b2))||_0x6f83e9;}return _0x3e2f94>0x3&&_0x6f83e9&&Object[_0x300779(0x1fd)](_0x220e18,_0xb505b2,_0x6f83e9),_0x6f83e9;},__metadata=this&&this[a2_0x1143ee(0x21a)]||function(_0x1e84e3,_0x3cb935){const _0x46127e=a2_0x1143ee;if(typeof Reflect===_0x46127e(0x229)&&typeof Reflect[_0x46127e(0x202)]===_0x46127e(0x230))return Reflect[_0x46127e(0x202)](_0x1e84e3,_0x3cb935);};Object[a2_0x1143ee(0x1fd)](exports,a2_0x1143ee(0x226),{'value':!![]}),exports[a2_0x1143ee(0x1f9)]=void 0x0;function a2_0x5704(_0x29ba80,_0x34090d){const _0x91786d=a2_0x9178();return a2_0x5704=function(_0x57042d,_0x4a9c2a){_0x57042d=_0x57042d-0x1f4;let _0x4355bc=_0x91786d[_0x57042d];return _0x4355bc;},a2_0x5704(_0x29ba80,_0x34090d);}const decorator_1=require(a2_0x1143ee(0x22f)),core_1=require(a2_0x1143ee(0x201)),ApiError_1=require(a2_0x1143ee(0x216)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x1143ee(0x24a)),fs=require('fs'),koa=require(a2_0x1143ee(0x225)),i18n=require(a2_0x1143ee(0x205)),task=require(a2_0x1143ee(0x20a)),upload=require(a2_0x1143ee(0x239)),staticFile=require(a2_0x1143ee(0x203)),crossDomain=require(a2_0x1143ee(0x210)),bodyXml=require(a2_0x1143ee(0x246)),bodyParser=require('koa-bodyparser'),ConfigDefault=require(a2_0x1143ee(0x23f)),ConfigProduction=require(a2_0x1143ee(0x23d)),anncic=require(a2_0x1143ee(0x212)),anncicEvent=require(a2_0x1143ee(0x234)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x1143ee(0x251)),anncicHelper=require(a2_0x1143ee(0x1f5));let CustomConfiguration=class CustomConfiguration{async[a2_0x1143ee(0x238)](){const _0x1f8535=a2_0x1143ee;await this['filterConfig'](),await this['checkConfigKeys'](),await this[_0x1f8535(0x22d)](),await this[_0x1f8535(0x22c)]();}async[a2_0x1143ee(0x222)](){}async[a2_0x1143ee(0x22d)](){const _0x4ed348=a2_0x1143ee,_0xf66782=this['config']['getConfiguration']();this['decorator'][_0x4ed348(0x21b)](action_1[_0x4ed348(0x1f7)],_0x281255=>{const _0x32abe0=_0x4ed348,_0x15337f=_0x281255[_0x32abe0(0x202)];return{'before':async _0xa28438=>{const _0x842d50=_0x32abe0;var _0x4b5546,_0x352b63,_0x400761,_0x804389,_0x47a468;const _0x41f5e3=(_0x4b5546=_0xa28438===null||_0xa28438===void 0x0?void 0x0:_0xa28438[_0x842d50(0x20f)])===null||_0x4b5546===void 0x0?void 0x0:_0x4b5546[core_1[_0x842d50(0x243)]];if(_0x41f5e3){if((_0x15337f===null||_0x15337f===void 0x0?void 0x0:_0x15337f[_0x842d50(0x247)])&&!this[_0x842d50(0x23e)]['checksign']((_0x352b63=_0x41f5e3===null||_0x41f5e3===void 0x0?void 0x0:_0x41f5e3[_0x842d50(0x224)])===null||_0x352b63===void 0x0?void 0x0:_0x352b63['headers']))throw new AnnError(ApiError_1[_0x842d50(0x20d)][_0x842d50(0x208)]);((_0x400761=_0x41f5e3['headers'])===null||_0x400761===void 0x0?void 0x0:_0x400761['device'])&&((_0x47a468=(_0x804389=_0xf66782===null||_0xf66782===void 0x0?void 0x0:_0xf66782['anncicapi'])===null||_0x804389===void 0x0?void 0x0:_0x804389['devices'])===null||_0x47a468===void 0x0?void 0x0:_0x47a468[_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]])&&(typeof _0xf66782[_0x842d50(0x236)][_0x842d50(0x209)][_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]]['beforeRoute']==_0x842d50(0x230)&&await _0xf66782['anncicapi'][_0x842d50(0x209)][_0x41f5e3[_0x842d50(0x220)][_0x842d50(0x231)]][_0x842d50(0x23c)]((_0x41f5e3===null||_0x41f5e3===void 0x0?void 0x0:_0x41f5e3['_matchedRoute'])||undefined,_0x15337f,_0x41f5e3));}},'afterThrow':(_0x43edb9,_0x1f7937)=>{throw _0x1f7937;}};});}async['hanlderApplications'](){const _0x280e03=a2_0x1143ee;this[_0x280e03(0x206)][_0x280e03(0x24d)]([_0x280e03(0x211)])[_0x280e03(0x24e)](_0x393d74=>{const _0x47c52b=_0x280e03;_0x393d74[_0x47c52b(0x23a)](bodyXml(this['config'][_0x47c52b(0x221)](_0x47c52b(0x22a)))),_0x393d74[_0x47c52b(0x23a)](bodyParser(this[_0x47c52b(0x1f6)][_0x47c52b(0x221)](_0x47c52b(0x24c)))),(_0x393d74===null||_0x393d74===void 0x0?void 0x0:_0x393d74[_0x47c52b(0x241)])&&Object[_0x47c52b(0x237)](_0x393d74['context'],{'ok':{'value':function(_0x448bb0,_0x2b9bc6,_0x264d73=0x0){return{'code':_0x264d73,'data':_0x448bb0,'extra':_0x2b9bc6};}},'err':{'value':function(_0x57cecf,_0x29c3ed,_0xe2baf4=0x1){return{'code':_0xe2baf4,'extra':_0x29c3ed,'msg':_0x57cecf};}},'input':{'value':function(_0x2462dc,_0x52902a){const _0x5b72b8=_0x47c52b;var _0x5f3456;const _0x2fc1a7=lodash[_0x5b72b8(0x214)]({},this[_0x5b72b8(0x224)]['body']||this['request'][((_0x5f3456=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x5f3456===void 0x0?void 0x0:_0x5f3456[_0x5b72b8(0x204)])||'body']||{},this[_0x5b72b8(0x224)][_0x5b72b8(0x1f8)]||{});return _0x2462dc?lodash[_0x5b72b8(0x249)](_0x2fc1a7,_0x2462dc,_0x52902a):_0x2fc1a7;}},'when':{'value':async function(_0x4afbfc,_0x3470c9){const _0x27c617=_0x47c52b,_0x508d9c=this[_0x27c617(0x227)](_0x4afbfc,null);if(!lodash[_0x27c617(0x240)](_0x508d9c))return await _0x3470c9(_0x508d9c);}},'only':{'value':function(_0x27ecc1){const _0x3e4b48=_0x47c52b,_0x1c173e={};for(let _0x304e50=0x0;_0x304e50<_0x27ecc1[_0x3e4b48(0x250)];_0x304e50++){lodash[_0x3e4b48(0x1fa)](_0x27ecc1[_0x304e50])&&_0x27ecc1[_0x304e50]['length']>0x0&&lodash[_0x3e4b48(0x23b)](_0x27ecc1[_0x304e50][0x0])&&(_0x1c173e[_0x27ecc1[_0x304e50][0x0]]=this[_0x3e4b48(0x227)](_0x27ecc1[_0x304e50][0x0],_0x27ecc1[_0x304e50][_0x3e4b48(0x250)]>0x1?_0x27ecc1[_0x304e50][0x1]:null));}return _0x1c173e;}}});});}async[a2_0x1143ee(0x245)](){const _0x2d5874=a2_0x1143ee;var _0x1ee85e,_0x3caefc,_0x4a5117,_0x3aa1a8,_0x196288,_0x495ad5;const _0x94217e=this[_0x2d5874(0x1f6)]['getConfiguration']();((_0x3caefc=(_0x1ee85e=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x236)])===null||_0x1ee85e===void 0x0?void 0x0:_0x1ee85e['devices'])===null||_0x3caefc===void 0x0?void 0x0:_0x3caefc[_0x2d5874(0x1fc)])&&Object['keys'](_0x94217e[_0x2d5874(0x236)][_0x2d5874(0x209)])[_0x2d5874(0x250)]>0x1&&delete _0x94217e[_0x2d5874(0x236)]['devices'][_0x2d5874(0x1fc)];if((_0x4a5117=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x233)])===null||_0x4a5117===void 0x0?void 0x0:_0x4a5117[_0x2d5874(0x20e)])for(const _0x4c5f26 in _0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)]){((_0x3aa1a8=_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26])===null||_0x3aa1a8===void 0x0?void 0x0:_0x3aa1a8['dir'])&&typeof((_0x196288=_0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)][_0x4c5f26])===null||_0x196288===void 0x0?void 0x0:_0x196288['dir'])==_0x2d5874(0x228)&&!fs[_0x2d5874(0x223)](_0x94217e[_0x2d5874(0x233)][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)])&&(fs[_0x2d5874(0x21f)](_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)],{'recursive':!![]}),console[_0x2d5874(0x235)](_0x2d5874(0x200)+_0x94217e['staticFile'][_0x2d5874(0x20e)][_0x4c5f26][_0x2d5874(0x1fb)]));}((_0x495ad5=_0x94217e===null||_0x94217e===void 0x0?void 0x0:_0x94217e[_0x2d5874(0x244)])===null||_0x495ad5===void 0x0?void 0x0:_0x495ad5['tmpdir'])&&!fs[_0x2d5874(0x223)](_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)])&&(fs[_0x2d5874(0x21f)](_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)],{'recursive':!![]}),console[_0x2d5874(0x235)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x94217e[_0x2d5874(0x244)][_0x2d5874(0x213)])),this[_0x2d5874(0x1f6)]['addObject'](_0x94217e);}};__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1['MidwayConfigService'])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x1f6),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1['MidwayDecoratorService'])],CustomConfiguration[a2_0x1143ee(0x20b)],'decorator',void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1[a2_0x1143ee(0x24b)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x206),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),core_1[a2_0x1143ee(0x242)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x22e),void 0x0),__decorate([(0x0,decorator_1[a2_0x1143ee(0x218)])(),__metadata(a2_0x1143ee(0x232),ApiService_1[a2_0x1143ee(0x23e)])],CustomConfiguration[a2_0x1143ee(0x20b)],a2_0x1143ee(0x23e),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1[a2_0x1143ee(0x248)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x1143ee(0x1ff),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x1143ee(0x1f9)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x52a011=a3_0x5ca0;(function(_0xd99b4e,_0x8a02c8){const _0x302b64=a3_0x5ca0,_0xb4a66e=_0xd99b4e();while(!![]){try{const _0x41162b=parseInt(_0x302b64(0x168))/0x1+-parseInt(_0x302b64(0x141))/0x2+-parseInt(_0x302b64(0x16b))/0x3*(parseInt(_0x302b64(0x161))/0x4)+parseInt(_0x302b64(0x152))/0x5*(parseInt(_0x302b64(0x167))/0x6)+parseInt(_0x302b64(0x15e))/0x7*(-parseInt(_0x302b64(0x14e))/0x8)+-parseInt(_0x302b64(0x144))/0x9+-parseInt(_0x302b64(0x14a))/0xa*(-parseInt(_0x302b64(0x157))/0xb);if(_0x41162b===_0x8a02c8)break;else _0xb4a66e['push'](_0xb4a66e['shift']());}catch(_0x55a398){_0xb4a66e['push'](_0xb4a66e['shift']());}}}(a3_0x4615,0x25636));function a3_0x4615(){const _0x3df60f=['replace','1254RthUxM','trim','filter','middleware','defineProperty','app/controller/','ACTION_KEY','364SbayKX','Action','/apps/','548748wtLFqG','push','splice','/config.','saveModule','\x20文件请放在app/controller/文件下','126bsaheG','228161shPYys','substring','route','3wsXbsv','prefix','@midwayjs/decorator','apps/','/controller/文件下','Controller','join','__esModule','module','507888mvlHhZ','filepath','length','313713zfLrEy','toLowerCase','match','saveClassMetadata','parseRoute','isArray','38390rYuqvB','existsSync','-controller','/controller/','28904apxbWy','../types/action','endsWith','indexOf','24095ObRLtV','-action','split','startsWith'];a3_0x4615=function(){return _0x3df60f;};return a3_0x4615();}function a3_0x5ca0(_0xb6c638,_0x556556){const _0x46153=a3_0x4615();return a3_0x5ca0=function(_0x5ca056,_0x4c07f3){_0x5ca056=_0x5ca056-0x13c;let _0x3862fd=_0x46153[_0x5ca056];return _0x3862fd;},a3_0x5ca0(_0xb6c638,_0x556556);}Object[a3_0x52a011(0x15b)](exports,a3_0x52a011(0x13f),{'value':!![]}),exports[a3_0x52a011(0x148)]=exports[a3_0x52a011(0x15f)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x52a011(0x16d)),action_1=require(a3_0x52a011(0x14f));function Action(_0x5accab,_0xf27e5c,_0x269ddc={'middleware':[],'sensitive':!![]}){return _0x62ec44=>{const _0x566c8a=a3_0x5ca0;_0x269ddc['tagName']=_0xf27e5c;const _0x19620e=parseRoute(_0x5accab);if(_0x19620e[_0x566c8a(0x140)]){_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc[_0x566c8a(0x16c)]?'/'+_0x19620e[_0x566c8a(0x140)]+'/'+_0x269ddc[_0x566c8a(0x16c)]:'/'+_0x19620e[_0x566c8a(0x16a)];_0x19620e[_0x566c8a(0x16c)]&&(_0x269ddc['prefix']='/'+_0x19620e[_0x566c8a(0x16c)]+'/'+_0x269ddc[_0x566c8a(0x16c)]);if(fs[_0x566c8a(0x14b)](_0x19620e['rootpath']+_0x566c8a(0x160)+_0x19620e[_0x566c8a(0x140)]+'/config.'+(lodash[_0x566c8a(0x150)](_0x19620e[_0x566c8a(0x142)],'ts')?'ts':'js'))){const _0x40be38=include(_0x19620e['rootpath']+'/apps/'+_0x19620e[_0x566c8a(0x140)]+_0x566c8a(0x164)+(lodash[_0x566c8a(0x150)](_0x19620e[_0x566c8a(0x142)],'ts')?'ts':'js'));if(_0x40be38[_0x566c8a(0x15a)]&&lodash[_0x566c8a(0x149)](_0x40be38[_0x566c8a(0x15a)])&&_0x40be38['middleware'][_0x566c8a(0x143)]>0x0)for(let _0x3931ca in _0x40be38[_0x566c8a(0x15a)]){_0x40be38['middlewareIgnore'][_0x566c8a(0x151)](_0x40be38[_0x566c8a(0x15a)][_0x3931ca])==-0x1&&_0x269ddc['middleware'][_0x566c8a(0x162)](_0x40be38[_0x566c8a(0x15a)][_0x3931ca]);}}_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc['prefix'][_0x566c8a(0x145)]()[_0x566c8a(0x156)](/\/{2,}/g,'/'),(0x0,decorator_1['saveModule'])(action_1[_0x566c8a(0x15d)],_0x62ec44),(0x0,decorator_1[_0x566c8a(0x13d)])(_0x269ddc[_0x566c8a(0x16c)],_0x269ddc)(_0x62ec44),(0x0,decorator_1[_0x566c8a(0x147)])(action_1[_0x566c8a(0x15d)],{'prefix':_0x269ddc[_0x566c8a(0x16c)],'pprefix':_0x19620e[_0x566c8a(0x16c)],'module':_0x19620e[_0x566c8a(0x140)],'filepath':_0x19620e['filepath'],'routerOptions':_0x269ddc},_0x62ec44);}else _0x269ddc[_0x566c8a(0x16c)]=_0x269ddc['prefix']?'/'+_0x269ddc[_0x566c8a(0x16c)]:'/'+_0x19620e[_0x566c8a(0x16a)],_0x19620e['prefix']&&(_0x269ddc[_0x566c8a(0x16c)]='/'+_0x19620e[_0x566c8a(0x16c)]+'/'+_0x269ddc['prefix']),_0x269ddc[_0x566c8a(0x16c)]=_0x269ddc[_0x566c8a(0x16c)][_0x566c8a(0x145)]()[_0x566c8a(0x156)](/\/{2,}/g,'/'),(0x0,decorator_1[_0x566c8a(0x165)])(action_1[_0x566c8a(0x15d)],_0x62ec44),(0x0,decorator_1[_0x566c8a(0x13d)])(_0x269ddc[_0x566c8a(0x16c)],_0x269ddc)(_0x62ec44),(0x0,decorator_1['saveClassMetadata'])(action_1[_0x566c8a(0x15d)],{'prefix':_0x269ddc['prefix'],'module':_0x19620e[_0x566c8a(0x140)],'pprefix':_0x19620e[_0x566c8a(0x16c)],'filepath':_0x19620e[_0x566c8a(0x142)],'routerOptions':_0x269ddc},_0x62ec44);};}exports[a3_0x52a011(0x15f)]=Action;function parseRoute(_0x4f6983){const _0x10abd8=a3_0x52a011;_0x4f6983=_0x4f6983[_0x10abd8(0x156)](/(\\|\/)/g,'/');const _0xa51685=process['cwd']()[_0x10abd8(0x156)](/(\\|\/)/g,'/'),_0x323bd2=_0x4f6983['substring'](0x0,_0xa51685[_0x10abd8(0x143)]+_0x4f6983[_0x10abd8(0x169)](_0xa51685[_0x10abd8(0x143)]+0x1)[_0x10abd8(0x151)]('/')+0x1),_0x21f8a9=_0x4f6983[_0x10abd8(0x169)](_0x323bd2['length']+0x1)[_0x10abd8(0x156)](/(\\|\/)/g,'/'),_0x5a85c3={'route':'','prefix':![],'module':![],'rootpath':_0x323bd2,'filepath':_0x21f8a9};if(_0x21f8a9['startsWith'](_0x10abd8(0x15c))){const _0x50930f=_0x21f8a9[_0x10abd8(0x169)](_0x10abd8(0x15c)[_0x10abd8(0x143)])[_0x10abd8(0x154)]('/')[_0x10abd8(0x159)](_0x1fb1a9=>_0x1fb1a9&&_0x1fb1a9[_0x10abd8(0x158)]());return _0x50930f[_0x10abd8(0x143)]>0x1&&(_0x5a85c3['prefix']=_0x50930f[0x0][_0x10abd8(0x145)](),_0x50930f[_0x10abd8(0x163)](0x0,0x1)),_0x5a85c3[_0x10abd8(0x16a)]=('/'+_0x50930f[_0x10abd8(0x13e)]('/'))[_0x10abd8(0x156)](/(\.ts|\.js)$/,'')[_0x10abd8(0x156)](/\/{2,}/g,'/')[_0x10abd8(0x146)](/[\/|A-Z]*[^A-Z]+/g)[_0x10abd8(0x13e)]('-')['toLowerCase']()[_0x10abd8(0x156)](/\/\-/g,'/'),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)]('-action')&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0x7)),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x14c))&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)]['length']-0xb)),_0x5a85c3;}else{if(_0x21f8a9['startsWith'](_0x10abd8(0x16e))){const _0x55aa2f=_0x21f8a9[_0x10abd8(0x169)](0x0,_0x21f8a9[_0x10abd8(0x151)](_0x10abd8(0x160))+0x5),_0x475760=_0x21f8a9['substring'](_0x55aa2f[_0x10abd8(0x143)]+0x1)[_0x10abd8(0x156)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x21f8a9[_0x10abd8(0x155)](_0x10abd8(0x16e)+_0x475760+'/controller/')){const _0x23987c=_0x21f8a9['substring']((_0x55aa2f+'/'+_0x475760+_0x10abd8(0x14d))[_0x10abd8(0x143)])[_0x10abd8(0x154)]('/')[_0x10abd8(0x159)](_0x5601c7=>_0x5601c7&&_0x5601c7[_0x10abd8(0x158)]());return _0x23987c[_0x10abd8(0x143)]>0x1&&(_0x5a85c3[_0x10abd8(0x16c)]=_0x23987c[0x0]['toLowerCase'](),_0x23987c[_0x10abd8(0x163)](0x0,0x1)),_0x5a85c3[_0x10abd8(0x140)]=_0x475760,_0x5a85c3[_0x10abd8(0x16a)]=('/'+_0x475760+'/'+_0x23987c[_0x10abd8(0x13e)]('/'))[_0x10abd8(0x156)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x10abd8(0x13e)]('-')['toLowerCase']()[_0x10abd8(0x156)](/\/\-/g,'/'),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x153))&&(_0x5a85c3['route']=_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x169)](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0x7)),_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x150)](_0x10abd8(0x14c))&&(_0x5a85c3[_0x10abd8(0x16a)]=_0x5a85c3['route']['substring'](0x0,_0x5a85c3[_0x10abd8(0x16a)][_0x10abd8(0x143)]-0xb)),_0x5a85c3;}throw new Error(_0x21f8a9+'\x20文件请放在apps/'+_0x475760+_0x10abd8(0x13c));}}throw new Error(_0x21f8a9+_0x10abd8(0x166));}exports[a3_0x52a011(0x148)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0x34a3(_0x2138d4,_0x53c204){const _0x5956d6=a4_0x5956();return a4_0x34a3=function(_0x34a315,_0x5f0334){_0x34a315=_0x34a315-0x18c;let _0x1d6c3c=_0x5956d6[_0x34a315];return _0x1d6c3c;},a4_0x34a3(_0x2138d4,_0x53c204);}const a4_0x421d08=a4_0x34a3;(function(_0x4dec5c,_0x5560bb){const _0x4bcccb=a4_0x34a3,_0x58f124=_0x4dec5c();while(!![]){try{const _0x43b275=-parseInt(_0x4bcccb(0x197))/0x1+parseInt(_0x4bcccb(0x19c))/0x2+-parseInt(_0x4bcccb(0x18d))/0x3+-parseInt(_0x4bcccb(0x190))/0x4*(parseInt(_0x4bcccb(0x198))/0x5)+parseInt(_0x4bcccb(0x18c))/0x6*(-parseInt(_0x4bcccb(0x1a4))/0x7)+-parseInt(_0x4bcccb(0x19a))/0x8*(parseInt(_0x4bcccb(0x1a2))/0x9)+parseInt(_0x4bcccb(0x199))/0xa*(parseInt(_0x4bcccb(0x19f))/0xb);if(_0x43b275===_0x5560bb)break;else _0x58f124['push'](_0x58f124['shift']());}catch(_0x469007){_0x58f124['push'](_0x58f124['shift']());}}}(a4_0x5956,0xe5d3c));function a4_0x5956(){const _0x4c4abc=['middlewareIgnore','filter','55aNOZPB','ACTION_ROUTE_KEY','@anncic-api/validator','27BuzeLQ','delete','7Lyxcwz','utc','Api','del','attachClassMetadata','toLowerCase','middleware','2639508sCvTmy','3949197tWgOyZ','validate','apimit','4APYwAf','../types/action','assign','RequestMapping','indexOf','length','Validator','249181fubpei','2261645SLTLLJ','8683190lDsZdr','3617448DSVeop','routerName','828294bGHmVC'];a4_0x5956=function(){return _0x4c4abc;};return a4_0x5956();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Api']=void 0x0;const validator_1=require(a4_0x421d08(0x1a1)),decorator_1=require('@midwayjs/decorator'),action_1=require(a4_0x421d08(0x191));function Api(_0x48cdad,_0x52763c='get',_0x4318ad='/',_0x351c1e={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3f97fe,_0x89432,_0x3f17d0)=>{const _0x4c3b7e=a4_0x34a3;var _0x50acf4,_0x3579a3,_0x26d4d6;!_0x351c1e[_0x4c3b7e(0x1aa)]&&(_0x351c1e['middleware']=[]);!((_0x50acf4=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e[_0x4c3b7e(0x18e)])===null||_0x50acf4===void 0x0?void 0x0:_0x50acf4['validationOptions'])&&(_0x351c1e['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x4c3b7e(0x1a5)}});if(((_0x3579a3=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e['middleware'])===null||_0x3579a3===void 0x0?void 0x0:_0x3579a3[_0x4c3b7e(0x195)])>0x0&&((_0x26d4d6=_0x351c1e===null||_0x351c1e===void 0x0?void 0x0:_0x351c1e[_0x4c3b7e(0x19d)])===null||_0x26d4d6===void 0x0?void 0x0:_0x26d4d6[_0x4c3b7e(0x195)])>0x0)for(let _0x3b6b91 in _0x351c1e[_0x4c3b7e(0x1aa)]){_0x351c1e[_0x4c3b7e(0x19d)][_0x4c3b7e(0x194)](_0x351c1e[_0x4c3b7e(0x1aa)][_0x3b6b91])!==-0x1&&(_0x351c1e[_0x4c3b7e(0x1aa)][_0x3b6b91]=null);}_0x351c1e['routerName']=_0x48cdad,(0x0,validator_1[_0x4c3b7e(0x196)])(_0x351c1e[_0x4c3b7e(0x18e)])(_0x3f97fe,_0x89432,_0x3f17d0),(0x0,decorator_1[_0x4c3b7e(0x193)])(Object[_0x4c3b7e(0x192)](_0x351c1e,{'path':_0x4318ad,'requestMethod':(_0x52763c=='del'?_0x4c3b7e(0x1a3):_0x52763c)[_0x4c3b7e(0x1a9)]()}))(_0x3f97fe,_0x89432,_0x3f17d0),(0x0,decorator_1[_0x4c3b7e(0x1a8)])(action_1[_0x4c3b7e(0x1a0)],{'path':_0x4318ad,'method':_0x89432,'apimit':_0x351c1e[_0x4c3b7e(0x18f)],'routerName':_0x351c1e['routerName'],'description':_0x351c1e['description'],'middleware':(_0x351c1e['middleware']||[])[_0x4c3b7e(0x19e)](_0x4922cd=>!!_0x4922cd),'requestMethod':(_0x52763c==_0x4c3b7e(0x1a7)?_0x4c3b7e(0x1a3):_0x52763c)['toLowerCase']()},_0x3f97fe),(0x0,decorator_1['createCustomMethodDecorator'])(action_1[_0x4c3b7e(0x1a0)],{'path':_0x4318ad,'method':_0x89432,'apimit':_0x351c1e['apimit'],'routerName':_0x351c1e[_0x4c3b7e(0x19b)],'description':_0x351c1e['description'],'middleware':(_0x351c1e[_0x4c3b7e(0x1aa)]||[])[_0x4c3b7e(0x19e)](_0x1c44eb=>!!_0x1c44eb),'requestMethod':(_0x52763c==_0x4c3b7e(0x1a7)?_0x4c3b7e(0x1a3):_0x52763c)[_0x4c3b7e(0x1a9)]()})(_0x3f97fe,_0x89432,_0x3f17d0);};}exports[a4_0x421d08(0x1a6)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x8eb393=a5_0x3e00;(function(_0xf799fa,_0x5af13f){const _0x254d51=a5_0x3e00,_0x18cba3=_0xf799fa();while(!![]){try{const _0x32357f=-parseInt(_0x254d51(0x19a))/0x1*(parseInt(_0x254d51(0x1a4))/0x2)+-parseInt(_0x254d51(0x1ac))/0x3*(parseInt(_0x254d51(0x1aa))/0x4)+-parseInt(_0x254d51(0x1b3))/0x5+-parseInt(_0x254d51(0x19d))/0x6+parseInt(_0x254d51(0x1a5))/0x7*(-parseInt(_0x254d51(0x1ae))/0x8)+parseInt(_0x254d51(0x1ab))/0x9*(parseInt(_0x254d51(0x19b))/0xa)+parseInt(_0x254d51(0x1b2))/0xb*(parseInt(_0x254d51(0x19c))/0xc);if(_0x32357f===_0x5af13f)break;else _0x18cba3['push'](_0x18cba3['shift']());}catch(_0xfd1095){_0x18cba3['push'](_0x18cba3['shift']());}}}(a5_0x19c2,0x3767d));Object[a5_0x8eb393(0x1a3)](exports,a5_0x8eb393(0x1a6),{'value':!![]}),exports[a5_0x8eb393(0x199)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),core_1=require(a5_0x8eb393(0x1a7)),ApitestService_1=require(a5_0x8eb393(0x1a1));function Apitest(_0x46415a='/apitest',_0x14db8f){return(_0x18d9a1,_0x4c0282,_0x4c7963)=>{const _0x3e6e25=a5_0x3e00;return(0x0,decorator_1[_0x3e6e25(0x1af)])({'path':_0x46415a,'requestMethod':_0x3e6e25(0x19f)})(_0x18d9a1,_0x4c0282,_0x4c7963),_0x4c7963[_0x3e6e25(0x1a0)]=async function(..._0xfcb6cf){const _0x318aa8=_0x3e6e25;var _0x14762d;const _0x15647b=(_0x14762d=this[core_1[_0x318aa8(0x1a8)]])===null||_0x14762d===void 0x0?void 0x0:_0x14762d['app'];if(_0x15647b&&_0x15647b[_0x318aa8(0x1b0)](_0x318aa8(0x1a2))){const _0x26bc29=await _0x15647b[_0x318aa8(0x1ad)]()[_0x318aa8(0x1a9)](ApitestService_1['ApitestService']),_0x385939=await _0x15647b[_0x318aa8(0x1ad)]()[_0x318aa8(0x1a9)](core_1[_0x318aa8(0x1b1)]);return _0x385939['isDevelopmentEnvironment']()&&(_0x14db8f[_0x318aa8(0x19e)]=!![]),await _0x26bc29['apidoc'](_0x14db8f);}return'';},_0x4c7963;};}function a5_0x3e00(_0x13c1e3,_0x182a98){const _0x19c28b=a5_0x19c2();return a5_0x3e00=function(_0x3e009d,_0x41a87b){_0x3e009d=_0x3e009d-0x199;let _0xb651a3=_0x19c28b[_0x3e009d];return _0xb651a3;},a5_0x3e00(_0x13c1e3,_0x182a98);}function a5_0x19c2(){const _0x487f35=['__esModule','@midwayjs/core','REQUEST_OBJ_CTX_KEY','getAsync','80412aDeqJO','1917eDXcsm','9IymyYA','getApplicationContext','16uFfdfK','RequestMapping','getConfig','MidwayEnvironmentService','11NsrnDF','438005DlaBUo','Apitest','158273carfBM','8150xGvsjO','10608432AoRXyX','620088qxMZxa','filepath','get','value','../service/ApitestService','apitest','defineProperty','4kMJHuY','920101jseXVA'];a5_0x19c2=function(){return _0x487f35;};return a5_0x19c2();}exports[a5_0x8eb393(0x199)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x4d55f7=a6_0x5943;function a6_0x5943(_0x38bc48,_0x84ed8b){var _0x16e5a7=a6_0x16e5();return a6_0x5943=function(_0x594372,_0x154ea5){_0x594372=_0x594372-0x1d1;var _0x599945=_0x16e5a7[_0x594372];return _0x599945;},a6_0x5943(_0x38bc48,_0x84ed8b);}(function(_0x530cc5,_0x373f92){var _0x1f7910=a6_0x5943,_0x3b25ea=_0x530cc5();while(!![]){try{var _0x5c4d22=-parseInt(_0x1f7910(0x1d2))/0x1+parseInt(_0x1f7910(0x1e4))/0x2+-parseInt(_0x1f7910(0x1e1))/0x3*(parseInt(_0x1f7910(0x1e0))/0x4)+parseInt(_0x1f7910(0x1e5))/0x5*(parseInt(_0x1f7910(0x1dc))/0x6)+-parseInt(_0x1f7910(0x1db))/0x7+-parseInt(_0x1f7910(0x1d1))/0x8*(parseInt(_0x1f7910(0x1e8))/0x9)+-parseInt(_0x1f7910(0x1e3))/0xa*(-parseInt(_0x1f7910(0x1d3))/0xb);if(_0x5c4d22===_0x373f92)break;else _0x3b25ea['push'](_0x3b25ea['shift']());}catch(_0x3e3dcc){_0x3b25ea['push'](_0x3b25ea['shift']());}}}(a6_0x16e5,0xe684d));function a6_0x16e5(){var _0x17cac6=['1816046kMgdFU','11NOEVFF','请求头信息不完整','网络繁忙,请稍后重试','length','TIMEOUT','design:type','请使用正确的设备','decorate','4751656hQKYrR','7806PVYYdV','ApiError','defineProperty','HEADERS_LACK','16444oJIVbx','75crKJaX','HEADERS_DEVICE','37013630cxjMRg','467106hVCItj','1175gnDSEg','object','HEADERS_SIGNATURE','9fotyik','5590536sdDtTr'];a6_0x16e5=function(){return _0x17cac6;};return a6_0x16e5();}var __decorate=this&&this['__decorate']||function(_0xdda73,_0x4488a8,_0xd5afbc,_0xac3c5f){var _0x159a53=a6_0x5943,_0x558c0f=arguments[_0x159a53(0x1d6)],_0x8a1bdb=_0x558c0f<0x3?_0x4488a8:_0xac3c5f===null?_0xac3c5f=Object['getOwnPropertyDescriptor'](_0x4488a8,_0xd5afbc):_0xac3c5f,_0x45e269;if(typeof Reflect===_0x159a53(0x1e6)&&typeof Reflect[_0x159a53(0x1da)]==='function')_0x8a1bdb=Reflect['decorate'](_0xdda73,_0x4488a8,_0xd5afbc,_0xac3c5f);else{for(var _0x2c981e=_0xdda73[_0x159a53(0x1d6)]-0x1;_0x2c981e>=0x0;_0x2c981e--)if(_0x45e269=_0xdda73[_0x2c981e])_0x8a1bdb=(_0x558c0f<0x3?_0x45e269(_0x8a1bdb):_0x558c0f>0x3?_0x45e269(_0x4488a8,_0xd5afbc,_0x8a1bdb):_0x45e269(_0x4488a8,_0xd5afbc))||_0x8a1bdb;}return _0x558c0f>0x3&&_0x8a1bdb&&Object[_0x159a53(0x1de)](_0x4488a8,_0xd5afbc,_0x8a1bdb),_0x8a1bdb;},__metadata=this&&this['__metadata']||function(_0x511f9b,_0x5172fa){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x511f9b,_0x5172fa);};Object[a6_0x4d55f7(0x1de)](exports,'__esModule',{'value':!![]}),exports[a6_0x4d55f7(0x1dd)]=void 0x0;class ApiError{}ApiError[a6_0x4d55f7(0x1d7)]=0x18a89,ApiError[a6_0x4d55f7(0x1df)]=0x18a8a,ApiError['HEADERS_DEVICE']=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError[a6_0x4d55f7(0x1e7)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d5)),__metadata('design:type',Object)],ApiError,a6_0x4d55f7(0x1d7),void 0x0),__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d4)),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,a6_0x4d55f7(0x1df),void 0x0),__decorate([AnnErrorMsg(a6_0x4d55f7(0x1d9)),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,a6_0x4d55f7(0x1e2),void 0x0),__decorate([AnnErrorMsg('checkcode验证失败'),__metadata(a6_0x4d55f7(0x1d8),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata('design:type',Object)],ApiError,a6_0x4d55f7(0x1e7),void 0x0),exports[a6_0x4d55f7(0x1dd)]=ApiError;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a7_0x387877=a7_0x51f7;(function(_0x12e92c,_0x4bf8e4){const _0x41d01f=a7_0x51f7,_0xf25c66=_0x12e92c();while(!![]){try{const _0x341a05=-parseInt(_0x41d01f(0x19d))/0x1+parseInt(_0x41d01f(0x178))/0x2+parseInt(_0x41d01f(0x174))/0x3+-parseInt(_0x41d01f(0x170))/0x4+parseInt(_0x41d01f(0x17f))/0x5*(-parseInt(_0x41d01f(0x19e))/0x6)+-parseInt(_0x41d01f(0x1b7))/0x7*(-parseInt(_0x41d01f(0x197))/0x8)+parseInt(_0x41d01f(0x1b8))/0x9*(parseInt(_0x41d01f(0x1ad))/0xa);if(_0x341a05===_0x4bf8e4)break;else _0xf25c66['push'](_0xf25c66['shift']());}catch(_0x52c398){_0xf25c66['push'](_0xf25c66['shift']());}}}(a7_0x1989,0x7e356));function a7_0x51f7(_0x5c8650,_0x246af0){const _0x1989f5=a7_0x1989();return a7_0x51f7=function(_0x51f766,_0x5cf255){_0x51f766=_0x51f766-0x164;let _0x50a104=_0x1989f5[_0x51f766];return _0x50a104;},a7_0x51f7(_0x5c8650,_0x246af0);}Object['defineProperty'](exports,a7_0x387877(0x179),{'value':!![]}),exports[a7_0x387877(0x169)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a7_0x387877(0x18d)),decorator_1=require(a7_0x387877(0x18b)),decorator_2=require(a7_0x387877(0x18b)),decorator_3=require(a7_0x387877(0x18b)),action_1=require('../types/action');function getRoutes(_0x537ca5={'prefix':'/','module':![]}){const _0x306f07=a7_0x387877;var _0x36e703,_0x30f4f9;const _0x12be95=(0x0,decorator_3['listModule'])(action_1[_0x306f07(0x16f)]),_0x3a98dd={},_0x671684=Array[_0x306f07(0x165)](_0x537ca5[_0x306f07(0x171)]||[])?_0x537ca5[_0x306f07(0x171)]||[]:[_0x537ca5[_0x306f07(0x171)]];_0x5f251f:for(const _0x116d47 of _0x12be95){let _0x3f743d=(0x0,decorator_3[_0x306f07(0x184)])(action_1[_0x306f07(0x16f)],_0x116d47),_0x52052c=(0x0,decorator_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x116d47);if(_0x3f743d&&_0x52052c){let _0x57f786=_0x3f743d['prefix'],_0x16f177={};if(_0x537ca5[_0x306f07(0x1b1)]&&(0x0,lodash_1[_0x306f07(0x17b)])(_0x3f743d,_0x306f07(0x1b1),![])!=_0x537ca5['module'])continue _0x5f251f;else{if(_0x537ca5[_0x306f07(0x1b1)]===![]&&!!(0x0,lodash_1[_0x306f07(0x17b)])(_0x3f743d,'module',null))continue _0x5f251f;}if(_0x537ca5[_0x306f07(0x1bf)]&&!_0x57f786[_0x306f07(0x17a)](_0x537ca5[_0x306f07(0x1bf)]))continue _0x5f251f;_0x57f786!=='/'?(_0x16f177[_0x306f07(0x17e)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1c0)][_0x306f07(0x1a4)])||(/^\//[_0x306f07(0x19c)](_0x57f786)?_0x57f786[_0x306f07(0x1b2)]('/')[0x1]:_0x57f786),_0x16f177[_0x306f07(0x167)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['routerOptions']['description'])||_0x16f177[_0x306f07(0x17e)],_0x16f177[_0x306f07(0x1b6)]=[]):(_0x16f177[_0x306f07(0x17e)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1c0)][_0x306f07(0x1a4)])||_0x306f07(0x1a0),_0x16f177[_0x306f07(0x167)]=(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['routerOptions'][_0x306f07(0x167)])||'',_0x16f177['routes']=[]);_0x537ca5[_0x306f07(0x183)]&&(_0x16f177[_0x306f07(0x183)]=_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x183)]);(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d['pprefix'])&&(_0x16f177[_0x306f07(0x1bf)]=_0x3f743d[_0x306f07(0x1be)]);(_0x3f743d===null||_0x3f743d===void 0x0?void 0x0:_0x3f743d[_0x306f07(0x1b1)])&&(_0x16f177[_0x306f07(0x1b1)]=_0x3f743d[_0x306f07(0x1b1)]);let _0xaff790=(0x0,decorator_3['getClassMetadata'])(decorator_2[_0x306f07(0x1bd)],_0x116d47)||{};if(typeof _0x52052c[Symbol[_0x306f07(0x185)]]===_0x306f07(0x16e))for(let _0x123dc2 of _0x52052c){let _0x18c0c8={};_0x18c0c8[_0x306f07(0x187)]=_0x123dc2[_0x306f07(0x168)],_0x18c0c8['route']=(_0x57f786+_0x123dc2[_0x306f07(0x190)])['replace'](/\/{1,}/,'/'),_0x18c0c8[_0x306f07(0x17e)]=(_0x123dc2===null||_0x123dc2===void 0x0?void 0x0:_0x123dc2['routerName'])||_0x16f177['summary']||'default',_0x18c0c8['description']=(_0x123dc2===null||_0x123dc2===void 0x0?void 0x0:_0x123dc2['description'])||'',_0x18c0c8[_0x306f07(0x1b4)]=[];if(!(0x0,lodash_1['startsWith'])(_0x18c0c8[_0x306f07(0x1a7)],_0x306f07(0x164))&&!(0x0,lodash_1[_0x306f07(0x17a)])(_0x18c0c8[_0x306f07(0x1a7)],'/static/apitest')&&_0x671684[_0x306f07(0x193)](_0x18c0c8[_0x306f07(0x1a7)])===-0x1){if(!(_0x537ca5===null||_0x537ca5===void 0x0?void 0x0:_0x537ca5[_0x306f07(0x1ac)])){let _0x1e2bc0=(0x0,decorator_3[_0x306f07(0x1ae)])(new _0x116d47(),_0x123dc2[_0x306f07(0x187)]);for(const _0x167715 in _0x1e2bc0){let _0x2201e1=(_0x36e703=_0xaff790[_0x123dc2[_0x306f07(0x187)]])===null||_0x36e703===void 0x0?void 0x0:_0x36e703[_0x306f07(0x1ba)](_0x181339=>_0x181339[_0x306f07(0x18e)]==_0x167715&&_0x181339[_0x306f07(0x17c)]===decorator_2[_0x306f07(0x16b)]&&(_0x181339===null||_0x181339===void 0x0?void 0x0:_0x181339[_0x306f07(0x188)]));if(_0x2201e1===null||_0x2201e1===void 0x0?void 0x0:_0x2201e1['metadata']){let _0x44ba62=convertTypeToString(_0x2201e1['metadata']['type']||0x0);if([_0x306f07(0x175),_0x306f07(0x172)][_0x306f07(0x193)](_0x44ba62)!=-0x1&&_0x2201e1[_0x306f07(0x188)]['propertyData'][_0x306f07(0x193)](':')==-0x1&&!_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x1ba)](_0x565c97=>_0x565c97[_0x306f07(0x17c)]==_0x2201e1[_0x306f07(0x188)][_0x306f07(0x189)]))_0x18c0c8['request'][_0x306f07(0x195)]({'key':_0x2201e1[_0x306f07(0x188)]['propertyData'],'title':_0x2201e1[_0x306f07(0x188)]['propertyData'],'type':convertSchemaType(_0x1e2bc0[_0x2201e1[_0x306f07(0x18e)]]['name']),'required':![],'default':'','desc':''});else{if(_0x44ba62==_0x306f07(0x18a)){let _0x5aa858=((_0x30f4f9=_0x2201e1===null||_0x2201e1===void 0x0?void 0x0:_0x2201e1[_0x306f07(0x188)])===null||_0x30f4f9===void 0x0?void 0x0:_0x30f4f9[_0x306f07(0x189)])||_0x306f07(0x18a);_0x5aa858[_0x306f07(0x193)](':')==-0x1&&!_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x1ba)](_0x27926d=>_0x27926d[_0x306f07(0x17c)]==_0x5aa858&&_0x27926d[_0x306f07(0x199)]==_0x306f07(0x18a))&&_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x195)]({'key':_0x5aa858,'title':_0x306f07(0x1bc)+_0x5aa858,'type':_0x306f07(0x18a),'required':!![],'default':'','desc':''});}}}else{const _0xc1e204=(0x0,decorator_3[_0x306f07(0x191)])(validator_1[_0x306f07(0x1b3)],_0x1e2bc0[_0x167715]);_0xc1e204&&_0x18c0c8[_0x306f07(0x1b4)][_0x306f07(0x195)](...getJoiRequest(_0xc1e204));}}}_0x16f177[_0x306f07(0x1b6)]['push'](_0x18c0c8);}}if(_0x16f177['routes'][_0x306f07(0x198)]>0x0){let _0x1f5993=_0x3a98dd[_0x57f786];_0x1f5993?(_0x1f5993[_0x306f07(0x17e)]!=_0x16f177['summary']&&(_0x1f5993['summary']=_0x1f5993['summary']+','+_0x16f177['summary']),_0x1f5993[_0x306f07(0x167)]!=_0x16f177[_0x306f07(0x167)]&&(_0x1f5993[_0x306f07(0x167)]=_0x1f5993['description']+','+_0x16f177[_0x306f07(0x167)]),_0x1f5993[_0x306f07(0x1b6)]=_0x1f5993[_0x306f07(0x1b6)]['concat'](_0x16f177['routes']),_0x3a98dd[_0x57f786]=_0x1f5993):_0x3a98dd[_0x57f786]=_0x16f177;}}}return _0x3a98dd;}exports[a7_0x387877(0x169)]=getRoutes;function getJoiRequest(_0x52b401){const _0xf8010f=a7_0x387877,_0x5f204e=[];for(let _0x1cc3f0 in _0x52b401){const _0x3a112f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x48d9fa=typeof _0x52b401[_0x1cc3f0][_0xf8010f(0x1a9)]==_0xf8010f(0x16e)?_0x52b401[_0x1cc3f0][_0xf8010f(0x1a9)]():_0x52b401[_0x1cc3f0];_0x3a112f[_0xf8010f(0x17c)]=_0x1cc3f0,_0x3a112f[_0xf8010f(0x199)]=_0x48d9fa[_0xf8010f(0x199)],_0x3a112f[_0xf8010f(0x176)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x17d),_0x1cc3f0),_0x3a112f[_0xf8010f(0x1a0)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x181),''),_0x3a112f[_0xf8010f(0x1a3)]=(0x0,lodash_1[_0xf8010f(0x17b)])(_0x48d9fa,'flags.presence','')==_0xf8010f(0x1a3),_0x3a112f[_0xf8010f(0x167)]=(0x0,lodash_1['get'])(_0x48d9fa,_0xf8010f(0x1ab),'');if(_0x48d9fa[_0xf8010f(0x199)]=='object')_0x3a112f[_0xf8010f(0x16d)]=getJoiRequest(_0x48d9fa[_0xf8010f(0x180)]);else _0x48d9fa[_0xf8010f(0x199)]==_0xf8010f(0x1a8)&&_0x48d9fa[_0xf8010f(0x194)]&&Array['isArray'](_0x48d9fa[_0xf8010f(0x194)])&&_0x48d9fa[_0xf8010f(0x194)][0x0]&&console['log'](_0x1cc3f0+_0xf8010f(0x1af),_0x48d9fa);_0x48d9fa[_0xf8010f(0x186)]&&Array['isArray'](_0x48d9fa[_0xf8010f(0x186)])&&_0x48d9fa[_0xf8010f(0x186)][_0xf8010f(0x198)]>0x0&&(_0x3a112f[_0xf8010f(0x167)]=_0xf8010f(0x196)+_0x48d9fa[_0xf8010f(0x186)][_0xf8010f(0x1aa)](',')+'];'+_0x3a112f[_0xf8010f(0x167)]);if(_0x3a112f[_0xf8010f(0x17c)]&&_0x3a112f[_0xf8010f(0x199)]){const _0x293b81={};for(const _0x2bf9fc of _0x48d9fa['rules']||[]){if(_0x2bf9fc[_0xf8010f(0x19b)]==='min'&&_0x2bf9fc['args'])_0x293b81[_0xf8010f(0x1a5)]=_0x2bf9fc[_0xf8010f(0x177)][_0xf8010f(0x1b5)];else _0x2bf9fc[_0xf8010f(0x19b)]===_0xf8010f(0x1a6)&&(_0x293b81[_0xf8010f(0x1a6)]=_0x2bf9fc['args']['limit']);}_0x3a112f[_0xf8010f(0x1a2)]=_0x293b81;}_0x3a112f[_0xf8010f(0x17c)]&&_0x3a112f[_0xf8010f(0x176)]&&_0x5f204e['push'](_0x3a112f);}return _0x5f204e;}function convertSchemaType(_0x210c0b){const _0x656dd5=a7_0x387877;switch(_0x210c0b){case _0x656dd5(0x192):return'object';case'Boolean':return _0x656dd5(0x1b9);case _0x656dd5(0x16a):return'number';case _0x656dd5(0x19a):return'string';case _0x656dd5(0x1bb):return _0x656dd5(0x18a);default:return _0x656dd5(0x166);}}function a7_0x1989(){const _0x7fa127=['filter','body','FILESSTREAM','2557662cYLxae','query','title','args','1892912qDejte','__esModule','startsWith','get','key','flags.label','summary','91945TGLMhs','keys','flags.default','FILESTREAM','filepath','getClassMetadata','iterator','allow','method','metadata','propertyData','file','@midwayjs/decorator','PARAM','@anncic-api/validator','parameterIndex','HEADERS','path','getClassExtendedMetadata','Object','indexOf','items','push','只允许:[','15704YvYSUC','length','type','String','name','test','691713eEweNF','18VXSTmw','QUERY','default','header','rules','required','tagName','min','max','route','array','describe','join','flags.description','noreq','10KUaprV','getMethodParamTypes','-array','FIELDS','module','split','RULES_KEY','request','limit','routes','574UoFMut','2917404lTUCqb','boolean','find','File','文件上传-','INJECT_CUSTOM_PARAM','pprefix','prefix','routerOptions','static/apitest','isArray','string','description','requestMethod','getRoutes','Number','WEB_ROUTER_PARAM_KEY','RouteParamTypes','children','function','ACTION_KEY','4081208rRgcUE'];a7_0x1989=function(){return _0x7fa127;};return a7_0x1989();}function convertTypeToString(_0x577e6f){const _0xfdd6dd=a7_0x387877;switch(_0x577e6f){case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x18f)]:return _0xfdd6dd(0x1a1);case decorator_1['RouteParamTypes'][_0xfdd6dd(0x19f)]:return _0xfdd6dd(0x175);case decorator_1['RouteParamTypes'][_0xfdd6dd(0x18c)]:return'path';case decorator_1[_0xfdd6dd(0x16c)]['BODY']:return _0xfdd6dd(0x172);case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x1b0)]:case decorator_1['RouteParamTypes'][_0xfdd6dd(0x173)]:case decorator_1[_0xfdd6dd(0x16c)][_0xfdd6dd(0x182)]:return _0xfdd6dd(0x18a);default:return _0xfdd6dd(0x1a1);}}
|
|
1
|
+
'use strict';function a7_0x5634(){const _0x2a6eda=['ACTION_KEY','method','648osaBRm','static/apitest','get','path','Boolean','flags.description','369162lCXwxg','@midwayjs/decorator','metadata','Object','flags.default','header','defineProperty','String','keys','File','getClassExtendedMetadata','log','title','max','rules','summary','describe','test','1165715KXsjiR','function','query','key','getClassMetadata','noreq','request','children','split','min','FILESTREAM','find','listModule','name','filepath','pprefix','prefix','4VbFQxt','FIELDS','limit','route','array','Number','number','replace','flags.label','isArray','args','tagName','routerOptions','startsWith','PARAM','258684DzrlRh','flags.presence','join','push','RouteParamTypes','../types/action','propertyData','964510SXVnCs','iterator','length','19922SUXIZO','object','boolean','file','__esModule','214243azECtc','/static/apitest','default','items','文件上传-','type','lodash','12rOCJZG','requestMethod','FILESSTREAM','routes','required','679294pdULZK','WEB_ROUTER_PARAM_KEY','allow','36iHDoDm','concat','348kPWKOX','string','QUERY','getMethodParamTypes','body','indexOf','module','filter','INJECT_CUSTOM_PARAM','description','parameterIndex'];a7_0x5634=function(){return _0x2a6eda;};return a7_0x5634();}const a7_0x369b73=a7_0x52db;(function(_0x2d0f36,_0x38f881){const _0x25fa86=a7_0x52db,_0x15994c=_0x2d0f36();while(!![]){try{const _0x482029=-parseInt(_0x25fa86(0x77))/0x1+-parseInt(_0x25fa86(0x68))/0x2+parseInt(_0x25fa86(0x9b))/0x3*(-parseInt(_0x25fa86(0xbe))/0x4)+parseInt(_0x25fa86(0xad))/0x5*(-parseInt(_0x25fa86(0x7e))/0x6)+-parseInt(_0x25fa86(0x72))/0x7*(parseInt(_0x25fa86(0x95))/0x8)+parseInt(_0x25fa86(0x86))/0x9*(-parseInt(_0x25fa86(0x6f))/0xa)+-parseInt(_0x25fa86(0x83))/0xb*(-parseInt(_0x25fa86(0x88))/0xc);if(_0x482029===_0x38f881)break;else _0x15994c['push'](_0x15994c['shift']());}catch(_0x9c59ce){_0x15994c['push'](_0x15994c['shift']());}}}(a7_0x5634,0x3afcb));Object[a7_0x369b73(0xa1)](exports,a7_0x369b73(0x76),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a7_0x369b73(0x7d)),validator_1=require('@anncic-api/validator'),decorator_1=require(a7_0x369b73(0x9c)),decorator_2=require(a7_0x369b73(0x9c)),decorator_3=require(a7_0x369b73(0x9c)),action_1=require(a7_0x369b73(0x6d));function getRoutes(_0x3ae45c={'prefix':'/','module':![]}){const _0x25ce71=a7_0x369b73;var _0x3560f6,_0xc98b80;const _0x1e8b9d=(0x0,decorator_3[_0x25ce71(0xb9)])(action_1[_0x25ce71(0x93)]),_0x21b2f4={},_0x2ae6e2=Array[_0x25ce71(0xc7)](_0x3ae45c[_0x25ce71(0x8f)]||[])?_0x3ae45c[_0x25ce71(0x8f)]||[]:[_0x3ae45c[_0x25ce71(0x8f)]];_0x27e099:for(const _0x4d4978 of _0x1e8b9d){let _0xbc28e3=(0x0,decorator_3[_0x25ce71(0xb1)])(action_1[_0x25ce71(0x93)],_0x4d4978),_0x401a9e=(0x0,decorator_3[_0x25ce71(0xb1)])(action_1['ACTION_ROUTE_KEY'],_0x4d4978);if(_0xbc28e3&&_0x401a9e){let _0xc7a606=_0xbc28e3[_0x25ce71(0xbd)],_0x29204c={};if(_0x3ae45c['module']&&(0x0,lodash_1['get'])(_0xbc28e3,_0x25ce71(0x8e),![])!=_0x3ae45c['module'])continue _0x27e099;else{if(_0x3ae45c['module']===![]&&!!(0x0,lodash_1[_0x25ce71(0x97)])(_0xbc28e3,_0x25ce71(0x8e),null))continue _0x27e099;}if(_0x3ae45c[_0x25ce71(0xbd)]&&!_0xc7a606[_0x25ce71(0x66)](_0x3ae45c[_0x25ce71(0xbd)]))continue _0x27e099;_0xc7a606!=='/'?(_0x29204c[_0x25ce71(0xaa)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0xc9)])||(/^\//[_0x25ce71(0xac)](_0xc7a606)?_0xc7a606[_0x25ce71(0xb5)]('/')[0x1]:_0xc7a606),_0x29204c[_0x25ce71(0x91)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0x91)])||_0x29204c[_0x25ce71(0xaa)],_0x29204c[_0x25ce71(0x81)]=[]):(_0x29204c[_0x25ce71(0xaa)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3['routerOptions'][_0x25ce71(0xc9)])||_0x25ce71(0x79),_0x29204c[_0x25ce71(0x91)]=(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xca)][_0x25ce71(0x91)])||'',_0x29204c[_0x25ce71(0x81)]=[]);_0x3ae45c[_0x25ce71(0xbb)]&&(_0x29204c[_0x25ce71(0xbb)]=_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xbb)]);(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3[_0x25ce71(0xbc)])&&(_0x29204c[_0x25ce71(0xbd)]=_0xbc28e3[_0x25ce71(0xbc)]);(_0xbc28e3===null||_0xbc28e3===void 0x0?void 0x0:_0xbc28e3['module'])&&(_0x29204c[_0x25ce71(0x8e)]=_0xbc28e3[_0x25ce71(0x8e)]);let _0x5b17e2=(0x0,decorator_3[_0x25ce71(0xb1)])(decorator_2[_0x25ce71(0x90)],_0x4d4978)||{};if(typeof _0x401a9e[Symbol[_0x25ce71(0x70)]]==='function')for(let _0x345a2f of _0x401a9e){let _0x3a31c4={};_0x3a31c4[_0x25ce71(0x94)]=_0x345a2f[_0x25ce71(0x7f)],_0x3a31c4[_0x25ce71(0xc1)]=(_0xc7a606+_0x345a2f[_0x25ce71(0x98)])[_0x25ce71(0xc5)](/\/{1,}/,'/'),_0x3a31c4['summary']=(_0x345a2f===null||_0x345a2f===void 0x0?void 0x0:_0x345a2f['routerName'])||_0x29204c['summary']||_0x25ce71(0x79),_0x3a31c4['description']=(_0x345a2f===null||_0x345a2f===void 0x0?void 0x0:_0x345a2f['description'])||'',_0x3a31c4[_0x25ce71(0xb3)]=[];if(!(0x0,lodash_1['startsWith'])(_0x3a31c4[_0x25ce71(0xc1)],_0x25ce71(0x96))&&!(0x0,lodash_1[_0x25ce71(0x66)])(_0x3a31c4['route'],_0x25ce71(0x78))&&_0x2ae6e2[_0x25ce71(0x8d)](_0x3a31c4[_0x25ce71(0xc1)])===-0x1){if(!(_0x3ae45c===null||_0x3ae45c===void 0x0?void 0x0:_0x3ae45c[_0x25ce71(0xb2)])){let _0x15ea83=(0x0,decorator_3[_0x25ce71(0x8b)])(new _0x4d4978(),_0x345a2f[_0x25ce71(0x94)]);for(const _0x4fcd83 in _0x15ea83){let _0x2a993f=(_0x3560f6=_0x5b17e2[_0x345a2f[_0x25ce71(0x94)]])===null||_0x3560f6===void 0x0?void 0x0:_0x3560f6[_0x25ce71(0xb8)](_0x2f4fda=>_0x2f4fda[_0x25ce71(0x92)]==_0x4fcd83&&_0x2f4fda[_0x25ce71(0xb0)]===decorator_2[_0x25ce71(0x84)]&&(_0x2f4fda===null||_0x2f4fda===void 0x0?void 0x0:_0x2f4fda[_0x25ce71(0x9d)]));if(_0x2a993f===null||_0x2a993f===void 0x0?void 0x0:_0x2a993f[_0x25ce71(0x9d)]){let _0x4bd025=convertTypeToString(_0x2a993f['metadata'][_0x25ce71(0x7c)]||0x0);if([_0x25ce71(0xaf),_0x25ce71(0x8c)][_0x25ce71(0x8d)](_0x4bd025)!=-0x1&&_0x2a993f['metadata'][_0x25ce71(0x6e)][_0x25ce71(0x8d)](':')==-0x1&&!_0x3a31c4['request'][_0x25ce71(0xb8)](_0x24ec2e=>_0x24ec2e[_0x25ce71(0xb0)]==_0x2a993f[_0x25ce71(0x9d)][_0x25ce71(0x6e)]))_0x3a31c4[_0x25ce71(0xb3)]['push']({'key':_0x2a993f[_0x25ce71(0x9d)][_0x25ce71(0x6e)],'title':_0x2a993f['metadata']['propertyData'],'type':convertSchemaType(_0x15ea83[_0x2a993f[_0x25ce71(0x92)]][_0x25ce71(0xba)]),'required':![],'default':'','desc':''});else{if(_0x4bd025==_0x25ce71(0x75)){let _0x5610a6=((_0xc98b80=_0x2a993f===null||_0x2a993f===void 0x0?void 0x0:_0x2a993f[_0x25ce71(0x9d)])===null||_0xc98b80===void 0x0?void 0x0:_0xc98b80[_0x25ce71(0x6e)])||_0x25ce71(0x75);_0x5610a6[_0x25ce71(0x8d)](':')==-0x1&&!_0x3a31c4[_0x25ce71(0xb3)]['find'](_0x5544dc=>_0x5544dc['key']==_0x5610a6&&_0x5544dc[_0x25ce71(0x7c)]==_0x25ce71(0x75))&&_0x3a31c4['request'][_0x25ce71(0x6b)]({'key':_0x5610a6,'title':_0x25ce71(0x7b)+_0x5610a6,'type':_0x25ce71(0x75),'required':!![],'default':'','desc':''});}}}else{const _0x32fd19=(0x0,decorator_3[_0x25ce71(0xa5)])(validator_1['RULES_KEY'],_0x15ea83[_0x4fcd83]);_0x32fd19&&_0x3a31c4[_0x25ce71(0xb3)]['push'](...getJoiRequest(_0x32fd19));}}}_0x29204c[_0x25ce71(0x81)][_0x25ce71(0x6b)](_0x3a31c4);}}if(_0x29204c[_0x25ce71(0x81)][_0x25ce71(0x71)]>0x0){let _0x209365=_0x21b2f4[_0xc7a606];_0x209365?(_0x209365[_0x25ce71(0xaa)]!=_0x29204c[_0x25ce71(0xaa)]&&(_0x209365['summary']=_0x209365[_0x25ce71(0xaa)]+','+_0x29204c['summary']),_0x209365['description']!=_0x29204c[_0x25ce71(0x91)]&&(_0x209365[_0x25ce71(0x91)]=_0x209365[_0x25ce71(0x91)]+','+_0x29204c[_0x25ce71(0x91)]),_0x209365['routes']=_0x209365[_0x25ce71(0x81)][_0x25ce71(0x87)](_0x29204c[_0x25ce71(0x81)]),_0x21b2f4[_0xc7a606]=_0x209365):_0x21b2f4[_0xc7a606]=_0x29204c;}}}return _0x21b2f4;}function a7_0x52db(_0x3f583e,_0x1117eb){const _0x5634a5=a7_0x5634();return a7_0x52db=function(_0x52db9f,_0x115be1){_0x52db9f=_0x52db9f-0x66;let _0x16aa31=_0x5634a5[_0x52db9f];return _0x16aa31;},a7_0x52db(_0x3f583e,_0x1117eb);}exports['getRoutes']=getRoutes;function getJoiRequest(_0x1bd0a1){const _0x31696a=a7_0x369b73,_0x41b1d0=[];for(let _0x1e7d42 in _0x1bd0a1){const _0x183b6b={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0xfa3a5d=typeof _0x1bd0a1[_0x1e7d42][_0x31696a(0xab)]==_0x31696a(0xae)?_0x1bd0a1[_0x1e7d42][_0x31696a(0xab)]():_0x1bd0a1[_0x1e7d42];_0x183b6b[_0x31696a(0xb0)]=_0x1e7d42,_0x183b6b[_0x31696a(0x7c)]=_0xfa3a5d[_0x31696a(0x7c)],_0x183b6b[_0x31696a(0xa7)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0xc6),_0x1e7d42),_0x183b6b['default']=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x9f),''),_0x183b6b[_0x31696a(0x82)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x69),'')==_0x31696a(0x82),_0x183b6b[_0x31696a(0x91)]=(0x0,lodash_1[_0x31696a(0x97)])(_0xfa3a5d,_0x31696a(0x9a),'');if(_0xfa3a5d[_0x31696a(0x7c)]==_0x31696a(0x73))_0x183b6b[_0x31696a(0xb4)]=getJoiRequest(_0xfa3a5d[_0x31696a(0xa3)]);else _0xfa3a5d[_0x31696a(0x7c)]==_0x31696a(0xc2)&&_0xfa3a5d[_0x31696a(0x7a)]&&Array[_0x31696a(0xc7)](_0xfa3a5d[_0x31696a(0x7a)])&&_0xfa3a5d[_0x31696a(0x7a)][0x0]&&console[_0x31696a(0xa6)](_0x1e7d42+'-array',_0xfa3a5d);_0xfa3a5d[_0x31696a(0x85)]&&Array[_0x31696a(0xc7)](_0xfa3a5d['allow'])&&_0xfa3a5d[_0x31696a(0x85)]['length']>0x0&&(_0x183b6b[_0x31696a(0x91)]='只允许:['+_0xfa3a5d['allow'][_0x31696a(0x6a)](',')+'];'+_0x183b6b[_0x31696a(0x91)]);if(_0x183b6b[_0x31696a(0xb0)]&&_0x183b6b['type']){const _0x4e1efa={};for(const _0x497827 of _0xfa3a5d[_0x31696a(0xa9)]||[]){if(_0x497827[_0x31696a(0xba)]===_0x31696a(0xb6)&&_0x497827[_0x31696a(0xc8)])_0x4e1efa[_0x31696a(0xb6)]=_0x497827['args'][_0x31696a(0xc0)];else _0x497827[_0x31696a(0xba)]===_0x31696a(0xa8)&&(_0x4e1efa[_0x31696a(0xa8)]=_0x497827[_0x31696a(0xc8)]['limit']);}_0x183b6b[_0x31696a(0xa9)]=_0x4e1efa;}_0x183b6b[_0x31696a(0xb0)]&&_0x183b6b[_0x31696a(0xa7)]&&_0x41b1d0[_0x31696a(0x6b)](_0x183b6b);}return _0x41b1d0;}function convertSchemaType(_0x282989){const _0x31de7b=a7_0x369b73;switch(_0x282989){case _0x31de7b(0x9e):return _0x31de7b(0x73);case _0x31de7b(0x99):return _0x31de7b(0x74);case _0x31de7b(0xc3):return _0x31de7b(0xc4);case _0x31de7b(0xa2):return _0x31de7b(0x89);case _0x31de7b(0xa4):return _0x31de7b(0x75);default:return'string';}}function convertTypeToString(_0x1b5c7d){const _0x272235=a7_0x369b73;switch(_0x1b5c7d){case decorator_1['RouteParamTypes']['HEADERS']:return _0x272235(0xa0);case decorator_1[_0x272235(0x6c)][_0x272235(0x8a)]:return _0x272235(0xaf);case decorator_1[_0x272235(0x6c)][_0x272235(0x67)]:return'path';case decorator_1[_0x272235(0x6c)]['BODY']:return _0x272235(0x8c);case decorator_1[_0x272235(0x6c)][_0x272235(0xbf)]:case decorator_1['RouteParamTypes'][_0x272235(0x80)]:case decorator_1[_0x272235(0x6c)][_0x272235(0xb7)]:return'file';default:return _0x272235(0xa0);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a8_0x4c62e1=a8_0x5aa9;(function(_0x5f3fe9,_0x4ee3fe){var _0x4ed9f9=a8_0x5aa9,_0x119779=_0x5f3fe9();while(!![]){try{var _0x49d4e8=parseInt(_0x4ed9f9(0x168))/0x1*(parseInt(_0x4ed9f9(0x171))/0x2)+-parseInt(_0x4ed9f9(0x181))/0x3*(parseInt(_0x4ed9f9(0x17e))/0x4)+-parseInt(_0x4ed9f9(0x180))/0x5*(parseInt(_0x4ed9f9(0x163))/0x6)+parseInt(_0x4ed9f9(0x17d))/0x7+parseInt(_0x4ed9f9(0x142))/0x8*(-parseInt(_0x4ed9f9(0x176))/0x9)+parseInt(_0x4ed9f9(0x16a))/0xa*(-parseInt(_0x4ed9f9(0x14e))/0xb)+parseInt(_0x4ed9f9(0x17a))/0xc;if(_0x49d4e8===_0x4ee3fe)break;else _0x119779['push'](_0x119779['shift']());}catch(_0x321564){_0x119779['push'](_0x119779['shift']());}}}(a8_0x28e8,0xb4d3b));var __createBinding=this&&this[a8_0x4c62e1(0x179)]||(Object[a8_0x4c62e1(0x145)]?function(_0x359db3,_0x2dcb9d,_0x1bba97,_0x4dd790){var _0x365656=a8_0x4c62e1;if(_0x4dd790===undefined)_0x4dd790=_0x1bba97;var _0x3d2548=Object['getOwnPropertyDescriptor'](_0x2dcb9d,_0x1bba97);(!_0x3d2548||(_0x365656(0x165)in _0x3d2548?!_0x2dcb9d[_0x365656(0x15d)]:_0x3d2548['writable']||_0x3d2548[_0x365656(0x149)]))&&(_0x3d2548={'enumerable':!![],'get':function(){return _0x2dcb9d[_0x1bba97];}}),Object[_0x365656(0x16b)](_0x359db3,_0x4dd790,_0x3d2548);}:function(_0x17f0b3,_0xc7cf11,_0x4f49bd,_0x583990){if(_0x583990===undefined)_0x583990=_0x4f49bd;_0x17f0b3[_0x583990]=_0xc7cf11[_0x4f49bd];}),__exportStar=this&&this[a8_0x4c62e1(0x15f)]||function(_0x16866e,_0x1ee540){var _0x7117b0=a8_0x4c62e1;for(var _0x1d9748 in _0x16866e)if(_0x1d9748!==_0x7117b0(0x16e)&&!Object['prototype'][_0x7117b0(0x175)][_0x7117b0(0x16f)](_0x1ee540,_0x1d9748))__createBinding(_0x1ee540,_0x16866e,_0x1d9748);};Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x15d),{'value':!![]}),exports['ScopeEnum']=exports[a8_0x4c62e1(0x154)]=exports['Inject']=exports[a8_0x4c62e1(0x17f)]=exports['Logger']=exports[a8_0x4c62e1(0x146)]=exports[a8_0x4c62e1(0x159)]=exports[a8_0x4c62e1(0x144)]=exports[a8_0x4c62e1(0x177)]=exports['Query']=exports[a8_0x4c62e1(0x169)]=exports[a8_0x4c62e1(0x148)]=exports['Fields']=exports['Files']=exports['File']=exports[a8_0x4c62e1(0x14b)]=exports[a8_0x4c62e1(0x14d)]=exports[a8_0x4c62e1(0x162)]=exports['ExcelService']=exports[a8_0x4c62e1(0x174)]=exports[a8_0x4c62e1(0x15c)]=exports[a8_0x4c62e1(0x15a)]=exports[a8_0x4c62e1(0x16c)]=exports['ApiError']=exports[a8_0x4c62e1(0x16d)]=exports[a8_0x4c62e1(0x160)]=exports[a8_0x4c62e1(0x143)]=exports[a8_0x4c62e1(0x173)]=void 0x0,__exportStar(require(a8_0x4c62e1(0x167)),exports),__exportStar(require(a8_0x4c62e1(0x17b)),exports);var getRoutes_1=require(a8_0x4c62e1(0x15b));Object[a8_0x4c62e1(0x16b)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x52131e=a8_0x4c62e1;return getRoutes_1[_0x52131e(0x173)];}});var ActionApi_1=require(a8_0x4c62e1(0x172));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x143),{'enumerable':!![],'get':function(){var _0x3c49dc=a8_0x4c62e1;return ActionApi_1[_0x3c49dc(0x143)];}});var Action_1=require(a8_0x4c62e1(0x164));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x160),{'enumerable':!![],'get':function(){var _0x50fba4=a8_0x4c62e1;return Action_1[_0x50fba4(0x160)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x16d),{'enumerable':!![],'get':function(){var _0x3ec0e8=a8_0x4c62e1;return ActionApitest_1[_0x3ec0e8(0x16d)];}});var ApiError_1=require(a8_0x4c62e1(0x17c));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x157),{'enumerable':!![],'get':function(){var _0xb9a61d=a8_0x4c62e1;return ApiError_1[_0xb9a61d(0x157)];}});var task_1=require(a8_0x4c62e1(0x161));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x16c),{'enumerable':!![],'get':function(){var _0x3d6c6c=a8_0x4c62e1;return task_1[_0x3d6c6c(0x16c)];}});var cache_1=require(a8_0x4c62e1(0x14a));Object['defineProperty'](exports,a8_0x4c62e1(0x15a),{'enumerable':!![],'get':function(){var _0xe00386=a8_0x4c62e1;return cache_1[_0xe00386(0x15a)];}});var event_1=require(a8_0x4c62e1(0x151));function a8_0x5aa9(_0x443ddc,_0x4778e1){var _0x28e8e0=a8_0x28e8();return a8_0x5aa9=function(_0x5aa958,_0x294b7f){_0x5aa958=_0x5aa958-0x142;var _0x518d9a=_0x28e8e0[_0x5aa958];return _0x518d9a;},a8_0x5aa9(_0x443ddc,_0x4778e1);}Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x15c),{'enumerable':!![],'get':function(){var _0x5e0aee=a8_0x4c62e1;return event_1[_0x5e0aee(0x15c)];}});function a8_0x28e8(){var _0x519594=['configurable','@anncic-api/cache','Configuration','./service/ExcelService','ValidatorService','40513sSLhRW','Inject','ExcelService','@anncic-api/event','ScopeEnum','@midwayjs/decorator','Scope','File','Logger','ApiError','Fields','App','CacheService','./helper/getRoutes','EventService','__esModule','CustomConfiguration','__exportStar','Action','@midwayjs/task','ValidatorError','12ONVvzQ','./decorator/Action','get','Files','./types/common','996423pJFtXv','Param','3660mgxGdM','defineProperty','QueueService','Apitest','default','call','@anncic-api/validator','2gSekNg','./decorator/ActionApi','getRoutes','ApiService','hasOwnProperty','63gRRzHh','Headers','./configuration','__createBinding','17459628XmltIA','./service/ApitestService','./exception/ApiError','10318105tbjQbR','20948qOeFoP','Provide','1255505cAuCPo','639FPCnGY','250376vgZnpc','Api','Init','create','Config','./service/ApiService','Body'];a8_0x28e8=function(){return _0x519594;};return a8_0x28e8();}var ApiService_1=require(a8_0x4c62e1(0x147));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x174),{'enumerable':!![],'get':function(){var _0x5960d2=a8_0x4c62e1;return ApiService_1[_0x5960d2(0x174)];}});var ExcelService_1=require(a8_0x4c62e1(0x14c));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x150),{'enumerable':!![],'get':function(){var _0x22825c=a8_0x4c62e1;return ExcelService_1[_0x22825c(0x150)];}});var validator_1=require(a8_0x4c62e1(0x170));Object['defineProperty'](exports,a8_0x4c62e1(0x162),{'enumerable':!![],'get':function(){var _0x231d78=a8_0x4c62e1;return validator_1[_0x231d78(0x162)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x14d),{'enumerable':!![],'get':function(){var _0x7807d7=a8_0x4c62e1;return validator_1[_0x7807d7(0x14d)];}});var configuration_1=require(a8_0x4c62e1(0x178));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x14b),{'enumerable':!![],'get':function(){var _0x526ba1=a8_0x4c62e1;return configuration_1[_0x526ba1(0x15e)];}});var decorator_1=require(a8_0x4c62e1(0x153));Object[a8_0x4c62e1(0x16b)](exports,'File',{'enumerable':!![],'get':function(){var _0x3659ce=a8_0x4c62e1;return decorator_1[_0x3659ce(0x155)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x166),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x158),{'enumerable':!![],'get':function(){var _0x10790a=a8_0x4c62e1;return decorator_1[_0x10790a(0x158)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Body',{'enumerable':!![],'get':function(){var _0x4068e8=a8_0x4c62e1;return decorator_1[_0x4068e8(0x148)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x169),{'enumerable':!![],'get':function(){var _0x10e7c1=a8_0x4c62e1;return decorator_1[_0x10e7c1(0x169)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Query',{'enumerable':!![],'get':function(){return decorator_1['Query'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x177),{'enumerable':!![],'get':function(){var _0x211e52=a8_0x4c62e1;return decorator_1[_0x211e52(0x177)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Init',{'enumerable':!![],'get':function(){var _0x34e5a0=a8_0x4c62e1;return decorator_1[_0x34e5a0(0x144)];}});var decorator_2=require(a8_0x4c62e1(0x153));Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x159),{'enumerable':!![],'get':function(){return decorator_2['App'];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x146),{'enumerable':!![],'get':function(){var _0x1df5a3=a8_0x4c62e1;return decorator_2[_0x1df5a3(0x146)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x156),{'enumerable':!![],'get':function(){return decorator_2['Logger'];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x17f),{'enumerable':!![],'get':function(){var _0x1dcca5=a8_0x4c62e1;return decorator_2[_0x1dcca5(0x17f)];}}),Object[a8_0x4c62e1(0x16b)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x2214d4=a8_0x4c62e1;return decorator_2[_0x2214d4(0x14f)];}}),Object['defineProperty'](exports,a8_0x4c62e1(0x154),{'enumerable':!![],'get':function(){var _0x313bf9=a8_0x4c62e1;return decorator_2[_0x313bf9(0x154)];}}),Object[a8_0x4c62e1(0x16b)](exports,a8_0x4c62e1(0x152),{'enumerable':!![],'get':function(){var _0x59cf81=a8_0x4c62e1;return decorator_2[_0x59cf81(0x152)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a9_0x2ada(){var _0x34a636=['ApiService','Provide','toLowerCase','defineProperty','fromEntries','crypto-js','1206774QYTJey','undefined','now','HEADERS_LACK','config','anncicapi','ScopeEnum','16ICDwCY','password','908886PmoQVa','getcheck','metadata','TIMEOUT','7WDJUBz','3747vVmyGt','prototype','../exception/ApiError','device','198rhBjbq','timeout','576890HhPQmS','secret=','decorate','@midwayjs/decorator','signature','function','entries','819066hcCrYm','3467696mMuipL','design:type','checkcode','abs','Config','Scope','map','1238HKbpmy','MD5','ApiError','getsign','join','length','object','devices','checksign','push','HEADERS_DEVICE','HEADERS_CHECKCODE','requesttime','secret','toString','HEADERS_SIGNATURE','3416750RFoABv'];a9_0x2ada=function(){return _0x34a636;};return a9_0x2ada();}var a9_0x216739=a9_0x5ca3;(function(_0x2cf839,_0x4293d8){var _0x198973=a9_0x5ca3,_0x11b7ff=_0x2cf839();while(!![]){try{var _0x131330=parseInt(_0x198973(0x11b))/0x1+-parseInt(_0x198973(0x135))/0x2*(parseInt(_0x198973(0x120))/0x3)+-parseInt(_0x198973(0x12e))/0x4+parseInt(_0x198973(0x10b))/0x5+parseInt(_0x198973(0x12d))/0x6*(-parseInt(_0x198973(0x11f))/0x7)+-parseInt(_0x198973(0x119))/0x8*(parseInt(_0x198973(0x112))/0x9)+-parseInt(_0x198973(0x126))/0xa*(-parseInt(_0x198973(0x124))/0xb);if(_0x131330===_0x4293d8)break;else _0x11b7ff['push'](_0x11b7ff['shift']());}catch(_0x4dddba){_0x11b7ff['push'](_0x11b7ff['shift']());}}}(a9_0x2ada,0x8f0ac));var __decorate=this&&this['__decorate']||function(_0x4521c5,_0x2660e2,_0x5b5594,_0x24ad0d){var _0x544e23=a9_0x5ca3,_0x3a7128=arguments[_0x544e23(0x13a)],_0xc1c328=_0x3a7128<0x3?_0x2660e2:_0x24ad0d===null?_0x24ad0d=Object['getOwnPropertyDescriptor'](_0x2660e2,_0x5b5594):_0x24ad0d,_0x114e58;if(typeof Reflect===_0x544e23(0x13b)&&typeof Reflect[_0x544e23(0x128)]===_0x544e23(0x12b))_0xc1c328=Reflect[_0x544e23(0x128)](_0x4521c5,_0x2660e2,_0x5b5594,_0x24ad0d);else{for(var _0x1b9330=_0x4521c5[_0x544e23(0x13a)]-0x1;_0x1b9330>=0x0;_0x1b9330--)if(_0x114e58=_0x4521c5[_0x1b9330])_0xc1c328=(_0x3a7128<0x3?_0x114e58(_0xc1c328):_0x3a7128>0x3?_0x114e58(_0x2660e2,_0x5b5594,_0xc1c328):_0x114e58(_0x2660e2,_0x5b5594))||_0xc1c328;}return _0x3a7128>0x3&&_0xc1c328&&Object[_0x544e23(0x10f)](_0x2660e2,_0x5b5594,_0xc1c328),_0xc1c328;},__metadata=this&&this['__metadata']||function(_0x1db7c8,_0x5ee65f){var _0x2d8727=a9_0x5ca3;if(typeof Reflect===_0x2d8727(0x13b)&&typeof Reflect['metadata']===_0x2d8727(0x12b))return Reflect[_0x2d8727(0x11d)](_0x1db7c8,_0x5ee65f);};function a9_0x5ca3(_0xbc4a0d,_0x2334ac){var _0x2ada03=a9_0x2ada();return a9_0x5ca3=function(_0x5ca3c2,_0x5e4d42){_0x5ca3c2=_0x5ca3c2-0x106;var _0x68e164=_0x2ada03[_0x5ca3c2];return _0x68e164;},a9_0x5ca3(_0xbc4a0d,_0x2334ac);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x216739(0x10c)]=void 0x0;const crypto_js_1=require(a9_0x216739(0x111)),decorator_1=require(a9_0x216739(0x129)),ApiError_1=require(a9_0x216739(0x122));let ApiService=class ApiService{[a9_0x216739(0x11a)](_0x459d71){var _0x4c31f4=a9_0x216739,_0x4a6647;return _0x459d71?(0x0,crypto_js_1[_0x4c31f4(0x136)])(_0x459d71+(0x0,crypto_js_1[_0x4c31f4(0x136)])((0x0,crypto_js_1[_0x4c31f4(0x136)])(_0x459d71)[_0x4c31f4(0x109)]()+((_0x4a6647=this['config'])===null||_0x4a6647===void 0x0?void 0x0:_0x4a6647[_0x4c31f4(0x11a)]))[_0x4c31f4(0x109)]())[_0x4c31f4(0x109)]():'';}[a9_0x216739(0x11c)](_0x51a617,_0x355d67,_0x5b05dc=Date[a9_0x216739(0x114)]()){var _0xc08f9d=a9_0x216739;return{'Token':_0x51a617,'Logintime':_0x5b05dc,'Checkcode':this[_0xc08f9d(0x130)](_0x51a617,_0x355d67,_0x5b05dc)};}['getsign'](_0x299fbf={}){var _0x37f26c=a9_0x216739;const _0x50552f=[],_0x4ee3b1=Object[_0x37f26c(0x110)](Object['entries'](_0x299fbf)['map'](_0x397e13=>[_0x397e13[0x0][_0x37f26c(0x10e)](),_0x397e13[0x1]]));for(let _0x1ff1f2 of[_0x37f26c(0x123),_0x37f26c(0x107),'token','logintime','checkcode']){if(typeof _0x4ee3b1[_0x1ff1f2]==_0x37f26c(0x113))throw new AnnError(ApiError_1['ApiError'][_0x37f26c(0x115)],{'message':'缺少头信息:'+_0x1ff1f2});_0x50552f[_0x37f26c(0x13e)](_0x1ff1f2+'='+_0x4ee3b1[_0x1ff1f2]);}if(Math[_0x37f26c(0x131)](_0x4ee3b1[_0x37f26c(0x107)])-Date[_0x37f26c(0x114)]()>this[_0x37f26c(0x116)][_0x37f26c(0x125)])throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x11e)]);if(!this[_0x37f26c(0x116)][_0x37f26c(0x13c)][_0x4ee3b1[_0x37f26c(0x123)]]||!this['config'][_0x37f26c(0x13c)][_0x4ee3b1['device']]['secret']||!this['config'][_0x37f26c(0x13c)][_0x4ee3b1[_0x37f26c(0x123)]][_0x37f26c(0x130)])throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x13f)]);if(_0x4ee3b1['token']&&_0x4ee3b1[_0x37f26c(0x130)]!=this[_0x37f26c(0x130)](_0x4ee3b1['token'],_0x4ee3b1[_0x37f26c(0x123)],_0x4ee3b1['logintime']))throw new AnnError(ApiError_1[_0x37f26c(0x137)][_0x37f26c(0x106)]);return _0x50552f[_0x37f26c(0x13e)](_0x37f26c(0x127)+this[_0x37f26c(0x116)]['devices'][_0x4ee3b1['device']][_0x37f26c(0x108)]),(0x0,crypto_js_1[_0x37f26c(0x136)])(_0x50552f['sort']()[_0x37f26c(0x139)](''))[_0x37f26c(0x109)]();}[a9_0x216739(0x130)](_0x133cec,_0x23244d,_0x4afd67=Date['now']()){var _0x4429f3=a9_0x216739,_0x284ab7,_0x4e4e61,_0x1e5fa1;if(!((_0x284ab7=this[_0x4429f3(0x116)])===null||_0x284ab7===void 0x0?void 0x0:_0x284ab7[_0x4429f3(0x13c)][_0x23244d])||!((_0x1e5fa1=(_0x4e4e61=this[_0x4429f3(0x116)])===null||_0x4e4e61===void 0x0?void 0x0:_0x4e4e61[_0x4429f3(0x13c)][_0x23244d])===null||_0x1e5fa1===void 0x0?void 0x0:_0x1e5fa1[_0x4429f3(0x130)]))throw new AnnError(ApiError_1[_0x4429f3(0x137)][_0x4429f3(0x13f)]);return(0x0,crypto_js_1[_0x4429f3(0x136)])(_0x133cec+(0x0,crypto_js_1[_0x4429f3(0x136)])(_0x4afd67+this[_0x4429f3(0x116)][_0x4429f3(0x13c)][_0x23244d][_0x4429f3(0x130)])[_0x4429f3(0x109)]())['toString']();}[a9_0x216739(0x13d)](_0x4ecd96={}){var _0x1dea7a=a9_0x216739;const _0x69492f=Object[_0x1dea7a(0x110)](Object[_0x1dea7a(0x12c)](_0x4ecd96)[_0x1dea7a(0x134)](_0x4ae32b=>[_0x4ae32b[0x0][_0x1dea7a(0x10e)](),_0x4ae32b[0x1]]));if(!(_0x69492f===null||_0x69492f===void 0x0?void 0x0:_0x69492f[_0x1dea7a(0x12a)]))throw new AnnError(ApiError_1[_0x1dea7a(0x137)][_0x1dea7a(0x115)],{'message':'缺少头信息:signature'});if((_0x69492f===null||_0x69492f===void 0x0?void 0x0:_0x69492f[_0x1dea7a(0x12a)])!=this[_0x1dea7a(0x138)](_0x69492f))throw new AnnError(ApiError_1[_0x1dea7a(0x137)][_0x1dea7a(0x10a)]);return!![];}};__decorate([(0x0,decorator_1[a9_0x216739(0x132)])(a9_0x216739(0x117)),__metadata(a9_0x216739(0x12f),Object)],ApiService[a9_0x216739(0x121)],a9_0x216739(0x116),void 0x0),ApiService=__decorate([(0x0,decorator_1[a9_0x216739(0x10d)])(),(0x0,decorator_1[a9_0x216739(0x133)])(decorator_1[a9_0x216739(0x118)]['Singleton'])],ApiService),exports[a9_0x216739(0x10c)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a10_0x34bd7f=a10_0x6676;(function(_0x4c1726,_0x564522){const _0x114105=a10_0x6676,_0x519c69=_0x4c1726();while(!![]){try{const _0x120b05=parseInt(_0x114105(0x1bb))/0x1+-parseInt(_0x114105(0x191))/0x2+parseInt(_0x114105(0x1d0))/0x3*(-parseInt(_0x114105(0x1d7))/0x4)+parseInt(_0x114105(0x192))/0x5*(-parseInt(_0x114105(0x1bc))/0x6)+parseInt(_0x114105(0x199))/0x7+-parseInt(_0x114105(0x1be))/0x8*(parseInt(_0x114105(0x1c7))/0x9)+parseInt(_0x114105(0x1a9))/0xa;if(_0x120b05===_0x564522)break;else _0x519c69['push'](_0x519c69['shift']());}catch(_0x1155de){_0x519c69['push'](_0x519c69['shift']());}}}(a10_0x3ce6,0x96107));var __decorate=this&&this[a10_0x34bd7f(0x198)]||function(_0xc7a796,_0x4b8bbb,_0x248ae4,_0x12dec4){const _0x177f25=a10_0x34bd7f;var _0x22b1bf=arguments[_0x177f25(0x1b3)],_0xd79a2d=_0x22b1bf<0x3?_0x4b8bbb:_0x12dec4===null?_0x12dec4=Object[_0x177f25(0x1d8)](_0x4b8bbb,_0x248ae4):_0x12dec4,_0x447c28;if(typeof Reflect==='object'&&typeof Reflect[_0x177f25(0x1a2)]===_0x177f25(0x1a1))_0xd79a2d=Reflect[_0x177f25(0x1a2)](_0xc7a796,_0x4b8bbb,_0x248ae4,_0x12dec4);else{for(var _0x249c24=_0xc7a796[_0x177f25(0x1b3)]-0x1;_0x249c24>=0x0;_0x249c24--)if(_0x447c28=_0xc7a796[_0x249c24])_0xd79a2d=(_0x22b1bf<0x3?_0x447c28(_0xd79a2d):_0x22b1bf>0x3?_0x447c28(_0x4b8bbb,_0x248ae4,_0xd79a2d):_0x447c28(_0x4b8bbb,_0x248ae4))||_0xd79a2d;}return _0x22b1bf>0x3&&_0xd79a2d&&Object[_0x177f25(0x1c0)](_0x4b8bbb,_0x248ae4,_0xd79a2d),_0xd79a2d;},__metadata=this&&this[a10_0x34bd7f(0x1a0)]||function(_0x338790,_0x190853){const _0x22d857=a10_0x34bd7f;if(typeof Reflect===_0x22d857(0x19f)&&typeof Reflect[_0x22d857(0x1cc)]===_0x22d857(0x1a1))return Reflect[_0x22d857(0x1cc)](_0x338790,_0x190853);},__param=this&&this[a10_0x34bd7f(0x1c9)]||function(_0x4c8696,_0x22a961){return function(_0x47035a,_0x3b0a17){_0x22a961(_0x47035a,_0x3b0a17,_0x4c8696);};};function a10_0x6676(_0x46ab1c,_0x19af2f){const _0x3ce610=a10_0x3ce6();return a10_0x6676=function(_0x66763a,_0x2dd2c3){_0x66763a=_0x66763a-0x18b;let _0xe64783=_0x3ce610[_0x66763a];return _0xe64783;},a10_0x6676(_0x46ab1c,_0x19af2f);}Object[a10_0x34bd7f(0x1c0)](exports,a10_0x34bd7f(0x1bf),{'value':!![]}),exports[a10_0x34bd7f(0x1af)]=exports[a10_0x34bd7f(0x195)]=void 0x0;const path_1=require(a10_0x34bd7f(0x1ae)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a10_0x34bd7f(0x1ba)),decorator_2=require('@midwayjs/decorator'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a10_0x34bd7f(0x194)](_0x5bdb52){const _0x2556ff=a10_0x34bd7f,_0x17d155=(0x0,getRoutes_1[_0x2556ff(0x197)])(_0x5bdb52),_0x27d9f3=[];for(let _0xc94ff1 in _0x17d155){for(let _0x77c0df in _0x17d155[_0xc94ff1][_0x2556ff(0x1d5)]){let _0x3f49c6=_0x17d155[_0xc94ff1][_0x2556ff(0x1d5)][_0x77c0df],_0x50be6e=[];for(let _0x1bd9a7 in _0x3f49c6[_0x2556ff(0x1a8)]){_0x50be6e['push'](_0x3f49c6[_0x2556ff(0x1a8)][_0x1bd9a7]);}_0x27d9f3[_0x2556ff(0x1b6)]({'title':_0x17d155[_0xc94ff1][_0x2556ff(0x196)]+':'+_0x3f49c6['summary'],'prefix':_0x17d155[_0xc94ff1][_0x2556ff(0x1a4)],'router':_0x3f49c6[_0x2556ff(0x1d3)],'method':_0x3f49c6[_0x2556ff(0x1c4)],'describe':_0x3f49c6[_0x2556ff(0x1a7)]||'','filepath':_0x17d155[_0xc94ff1]['filepath']||'','request':_0x50be6e});}}const _0x42783b=(0x0,path_1[_0x2556ff(0x1c3)])(__dirname,_0x2556ff(0x19a));return(0x0,fs_1[_0x2556ff(0x1aa)])(_0x42783b,{'encoding':_0x2556ff(0x1d4)})[_0x2556ff(0x1ca)](/__res__/g,_0x2556ff(0x19e))[_0x2556ff(0x1ca)]('__apiList__',JSON[_0x2556ff(0x1b7)](_0x27d9f3))[_0x2556ff(0x1ca)](_0x2556ff(0x1a6),JSON[_0x2556ff(0x1b7)](this[_0x2556ff(0x1ac)][_0x2556ff(0x1b9)]));}};__decorate([(0x0,decorator_2['Config'])(a10_0x34bd7f(0x18f)),__metadata(a10_0x34bd7f(0x190),Object)],ApitestService['prototype'],a10_0x34bd7f(0x1ac),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c6)])(a10_0x34bd7f(0x1cf)),(0x0,decorator_2['Scope'])(decorator_2[a10_0x34bd7f(0x1c2)][a10_0x34bd7f(0x1b5)])],ApitestService),exports[a10_0x34bd7f(0x195)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a10_0x34bd7f(0x1d2)](){const _0x305968=a10_0x34bd7f;if(this[_0x305968(0x1cf)]){const _0x4fb069={'module':![]};return this[_0x305968(0x1d6)][_0x305968(0x1bd)]()&&(_0x4fb069[_0x305968(0x19c)]=!![]),await this[_0x305968(0x195)][_0x305968(0x194)](_0x4fb069);}return'';}async[a10_0x34bd7f(0x1a3)](_0x4018fd){const _0x414c8f=a10_0x34bd7f;if(this[_0x414c8f(0x1cf)]){const _0x3e58f4={'module':_0x4018fd};return this[_0x414c8f(0x1d6)][_0x414c8f(0x1bd)]()&&(_0x3e58f4[_0x414c8f(0x19c)]=!![]),await this[_0x414c8f(0x195)]['apidoc'](_0x3e58f4);}return'';}async['apiteststatic'](){const _0x882169=a10_0x34bd7f;if((0x0,path_1['extname'])(this['ctx']['request'][_0x882169(0x1cb)])){var _0x1a00e3=(0x0,path_1[_0x882169(0x1c3)])(__dirname,'../../public/'+this[_0x882169(0x1d1)]['request'][_0x882169(0x1cb)]['replace'](_0x882169(0x19e),'/'));if(_0x1a00e3['substring'](_0x1a00e3['length']-0xb)!='/index.html'){this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x1b1),_0x882169(0x1b8));if((0x0,path_1['extname'])(this['ctx'][_0x882169(0x1a8)][_0x882169(0x1cb)])==_0x882169(0x1c8))this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x19b),'application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this['ctx'][_0x882169(0x1a8)][_0x882169(0x1cb)])==_0x882169(0x1ab)&&this[_0x882169(0x1d1)][_0x882169(0x1b0)](_0x882169(0x19b),_0x882169(0x1ad));return(0x0,fs_1[_0x882169(0x1cd)])(_0x1a00e3)&&(0x0,fs_1['readFileSync'])(_0x1a00e3,{'encoding':'utf-8'});}}return'';}};function a10_0x3ce6(){const _0x3a6297=['3590361IGPQUn','.js','__param','replace','url','metadata','existsSync','Config','apitest','98742HxuMlL','ctx','apitesthtml','route','utf-8','routes','Environment','4ganama','getOwnPropertyDescriptor','/apitest-:module','prototype','design:paramtypes','Controller','anncicapi','design:type','569154CIGjab','2000tXSQyp','Request','apidoc','ApitestService','summary','getRoutes','__decorate','3097969QzaZeV','../../public/index.html','content-type','filepath','/apiteststatic/*','/apiteststatic/','object','__metadata','function','decorate','apitestmodule','prefix','MidwayEnvironmentService','__devices__','description','request','10294790bckdfv','readFileSync','.css','config','text/css;\x20charset=utf-8','path','ApitestStaticController','set','cache-control','Inject','length','design:returntype','Singleton','push','stringify','public,\x20max-age=604800','devices','@midwayjs/decorator','1067837ROQcYn','18132wOAqTo','isDevelopmentEnvironment','8xiWidg','__esModule','defineProperty','Scope','ScopeEnum','join','method','Get','Provide'];a10_0x3ce6=function(){return _0x3a6297;};return a10_0x3ce6();}__decorate([(0x0,decorator_2[a10_0x34bd7f(0x1b2)])(),__metadata('design:type',Object)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1d1),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a10_0x34bd7f(0x190),core_1[a10_0x34bd7f(0x1a5)])],ApitestStaticController[a10_0x34bd7f(0x18c)],'Environment',void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController['prototype'],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a10_0x34bd7f(0x1ce)])(a10_0x34bd7f(0x1cf)),__metadata('design:type',Boolean)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apitest',void 0x0),__decorate([(0x0,decorator_2['Config'])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1ac),void 0x0),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])('/apitest'),__metadata(a10_0x34bd7f(0x190),Function),__metadata(a10_0x34bd7f(0x18d),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],a10_0x34bd7f(0x1d2),null),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])(a10_0x34bd7f(0x18b)),__param(0x0,(0x0,decorator_1['Param'])('module')),__metadata('design:type',Function),__metadata(a10_0x34bd7f(0x18d),[String]),__metadata(a10_0x34bd7f(0x1b4),Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apitestmodule',null),__decorate([(0x0,decorator_1[a10_0x34bd7f(0x1c5)])(a10_0x34bd7f(0x19d)),__metadata('design:type',Function),__metadata(a10_0x34bd7f(0x18d),[]),__metadata(a10_0x34bd7f(0x1b4),Promise)],ApitestStaticController[a10_0x34bd7f(0x18c)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,decorator_1[a10_0x34bd7f(0x18e)])('/'),(0x0,decorator_2[a10_0x34bd7f(0x1c1)])(decorator_2[a10_0x34bd7f(0x1c2)][a10_0x34bd7f(0x193)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x1570(){const _0xc703bf=['getOwnPropertyDescriptor','length','cellCount','mkdirSync','startsWith','App','__metadata','col','26744zqzgqb','4518NEJorV','download','endsWith','object','trim','ScopeEnum','Api\x20Excel\x20Error:\x20','toString','public/xlsx','Workbook','3611020zKxZVw','prototype','18sHjXPG','addWorksheet','metadata','export','header','1206558NfkIXd','push','decorate','/public/xlsx','eachCell','getAppDir','50611tXCOPX','Sheet\x201','handler','Scope','random','existsSync','keys','rowCount','getWorksheet','979573CzdPdp','readFile','addRow','@midwayjs/decorator','defineProperty','key','xlsx','8iASfPp','app','Provide','getRow','value','worksheets','getCell','design:type','2556dzILZY','ExcelService','columns','replace','Singleton','writeFile','126MfaUdn','7655UezGtw','function','get','log','2894396pxlLjP','findRows','exceljs'];a11_0x1570=function(){return _0xc703bf;};return a11_0x1570();}const a11_0x19b59c=a11_0x2836;(function(_0x5e9a00,_0x2dd6ee){const _0x4a5d7c=a11_0x2836,_0x3d9316=_0x5e9a00();while(!![]){try{const _0x3a95dc=parseInt(_0x4a5d7c(0xfa))/0x1+parseInt(_0x4a5d7c(0xe8))/0x2*(-parseInt(_0x4a5d7c(0x11e))/0x3)+-parseInt(_0x4a5d7c(0x123))/0x4+parseInt(_0x4a5d7c(0x11f))/0x5*(parseInt(_0x4a5d7c(0xe9))/0x6)+parseInt(_0x4a5d7c(0x109))/0x7*(-parseInt(_0x4a5d7c(0x110))/0x8)+-parseInt(_0x4a5d7c(0xf5))/0x9*(-parseInt(_0x4a5d7c(0xf3))/0xa)+-parseInt(_0x4a5d7c(0x100))/0xb*(parseInt(_0x4a5d7c(0x118))/0xc);if(_0x3a95dc===_0x2dd6ee)break;else _0x3d9316['push'](_0x3d9316['shift']());}catch(_0x4f2afa){_0x3d9316['push'](_0x3d9316['shift']());}}}(a11_0x1570,0xa524e));var __decorate=this&&this['__decorate']||function(_0x404430,_0x122650,_0x65ac4d,_0x3187bc){const _0x3ef303=a11_0x2836;var _0x22e8de=arguments[_0x3ef303(0x127)],_0x5440c2=_0x22e8de<0x3?_0x122650:_0x3187bc===null?_0x3187bc=Object[_0x3ef303(0x126)](_0x122650,_0x65ac4d):_0x3187bc,_0x3d7753;if(typeof Reflect===_0x3ef303(0xec)&&typeof Reflect[_0x3ef303(0xfc)]===_0x3ef303(0x120))_0x5440c2=Reflect[_0x3ef303(0xfc)](_0x404430,_0x122650,_0x65ac4d,_0x3187bc);else{for(var _0x34748c=_0x404430[_0x3ef303(0x127)]-0x1;_0x34748c>=0x0;_0x34748c--)if(_0x3d7753=_0x404430[_0x34748c])_0x5440c2=(_0x22e8de<0x3?_0x3d7753(_0x5440c2):_0x22e8de>0x3?_0x3d7753(_0x122650,_0x65ac4d,_0x5440c2):_0x3d7753(_0x122650,_0x65ac4d))||_0x5440c2;}return _0x22e8de>0x3&&_0x5440c2&&Object[_0x3ef303(0x10d)](_0x122650,_0x65ac4d,_0x5440c2),_0x5440c2;},__metadata=this&&this[a11_0x19b59c(0xe6)]||function(_0x5b8045,_0x50275c){const _0x39185f=a11_0x19b59c;if(typeof Reflect===_0x39185f(0xec)&&typeof Reflect[_0x39185f(0xf7)]===_0x39185f(0x120))return Reflect['metadata'](_0x5b8045,_0x50275c);};Object[a11_0x19b59c(0x10d)](exports,'__esModule',{'value':!![]}),exports[a11_0x19b59c(0x119)]=void 0x0;const fs=require('fs'),exceljs=require(a11_0x19b59c(0x125)),koasend=require('koa-send'),decorator_1=require(a11_0x19b59c(0x10c));function a11_0x2836(_0x238264,_0xcd0dde){const _0x1570a=a11_0x1570();return a11_0x2836=function(_0x2836de,_0x5ace23){_0x2836de=_0x2836de-0xe4;let _0x441c4b=_0x1570a[_0x2836de];return _0x441c4b;},a11_0x2836(_0x238264,_0xcd0dde);}let ExcelService=class ExcelService{async['parse'](_0x2dff55,_0x3ce342,_0x122aeb=[0x0]){const _0x257b59=a11_0x19b59c;var _0x26be78,_0x38f3e2;const _0x8d0597=new exceljs['Workbook'](),_0x2774bd=[];let _0xf9d498=_0x2dff55['replace'](/(\\|\/)/g,'/')[_0x257b59(0x11b)](/\/{2,}/g,'/');!(_0xf9d498===null||_0xf9d498===void 0x0?void 0x0:_0xf9d498['startsWith']('/'))&&(_0xf9d498=this[_0x257b59(0x111)][_0x257b59(0xff)]()+'/'+_0xf9d498);try{await _0x8d0597[_0x257b59(0x10f)][_0x257b59(0x10a)](_0xf9d498);}catch(_0x40fd9b){return console[_0x257b59(0x122)](_0x257b59(0xef)+_0xf9d498+'\x20is\x20read\x20fail'),_0x2774bd;}for(const _0x3aac79 of _0x122aeb){const _0x34a329=lodash['isNumber'](_0x3aac79)?((_0x26be78=_0x8d0597[_0x257b59(0x115)])===null||_0x26be78===void 0x0?void 0x0:_0x26be78[_0x3aac79])||undefined:_0x8d0597[_0x257b59(0x108)](_0x3aac79);if(_0x34a329){var _0x52146e=0x1;const _0x2e89a6=_0x34a329[_0x257b59(0x113)](0x1),_0x27bd68=await new Promise(_0x554910=>{const _0x1163e9=_0x257b59,_0x159831={};_0x2e89a6[_0x1163e9(0xfe)]((_0x215d58,_0x1bc46)=>{const _0x4aa0ee=_0x1163e9;for(const _0x2d7e9e of _0x3ce342){if(_0x215d58[_0x4aa0ee(0x114)]==_0x2d7e9e[_0x4aa0ee(0xf9)])_0x52146e=0x2,_0x159831[_0x2d7e9e[_0x4aa0ee(0x10e)]]={'header':_0x215d58[_0x4aa0ee(0xe7)],'handler':_0x2d7e9e[_0x4aa0ee(0x102)]};else{if(!_0x159831[_0x2d7e9e['key']])try{const _0x2b0325=_0x2e89a6['getCell'](_0x2d7e9e['header']);_0x2b0325&&(_0x159831[_0x2d7e9e[_0x4aa0ee(0x10e)]]={'header':_0x2b0325['col'],'handler':_0x2d7e9e['handler']});}catch{}}}_0x2e89a6[_0x4aa0ee(0x128)]==_0x1bc46&&_0x554910(_0x159831);});});for(const _0x2f199a of _0x34a329[_0x257b59(0x124)](_0x52146e,_0x34a329[_0x257b59(0x107)])){const _0x38c66e={};for(const _0x1f8022 in _0x27bd68){_0x27bd68[_0x1f8022][_0x257b59(0xf9)]&&(typeof((_0x38f3e2=_0x27bd68[_0x1f8022])===null||_0x38f3e2===void 0x0?void 0x0:_0x38f3e2[_0x257b59(0x102)])=='function'?_0x38c66e[_0x1f8022]=_0x27bd68[_0x1f8022][_0x257b59(0x102)](_0x2f199a[_0x257b59(0x116)](lodash[_0x257b59(0xed)](''+_0x27bd68[_0x1f8022][_0x257b59(0xf9)],'\x20'))[_0x257b59(0xf0)]()):_0x38c66e[_0x1f8022]=_0x2f199a[_0x257b59(0x116)](_0x27bd68[_0x1f8022][_0x257b59(0xf9)])['toString']());}Object[_0x257b59(0x106)](_0x38c66e)['length']>0x0&&_0x2774bd[_0x257b59(0xfb)](_0x38c66e);}}}return _0x2774bd;}async[a11_0x19b59c(0xf8)](_0x206e2d,_0x79ef49,_0x11184b,_0x492a43=a11_0x19b59c(0xf1)){const _0x322371=a11_0x19b59c;var _0x3629d9,_0x350f8b;const _0x104683=new exceljs[(_0x322371(0xf2))](),_0x5783a2={},_0x22edf6=[],_0x515d9b=_0x104683[_0x322371(0xf6)](_0x322371(0x101),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x582479 in _0x79ef49){_0x5783a2[_0x79ef49[_0x582479]['key']]=_0x79ef49[_0x582479][_0x322371(0xf9)],_0x22edf6[_0x322371(0xfb)]({'header':_0x79ef49[_0x582479][_0x322371(0xf9)],'key':(_0x3629d9=_0x79ef49[_0x582479])===null||_0x3629d9===void 0x0?void 0x0:_0x3629d9[_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')});}_0x515d9b[_0x322371(0x11a)]=_0x22edf6;for(const _0x33aa25 of _0x11184b){const _0x359eb6={};for(const _0x538e02 in _0x79ef49){typeof((_0x350f8b=_0x79ef49[_0x538e02])===null||_0x350f8b===void 0x0?void 0x0:_0x350f8b[_0x322371(0x102)])==_0x322371(0x120)?_0x359eb6[_0x79ef49[_0x538e02][_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')]=await _0x79ef49[_0x538e02][_0x322371(0x102)](_0x33aa25):_0x359eb6[_0x79ef49[_0x538e02][_0x322371(0x10e)][_0x322371(0x11b)](/\./g,'_')]=lodash[_0x322371(0x121)](_0x33aa25,_0x79ef49[_0x538e02]['key'],'');}_0x515d9b[_0x322371(0x10b)](_0x359eb6);}let _0x324b48='';const _0x1c6a6b=_0x206e2d+'-'+lodash[_0x322371(0x104)](0x2710,0x1869f)+'.xlsx';if(_0x492a43&&_0x492a43['startsWith']('/'))_0x324b48=_0x492a43+'/'+_0x1c6a6b;else _0x492a43&&!_0x492a43['startsWith']('/')&&!_0x492a43[_0x322371(0xe4)]('\x5c')?_0x324b48=this[_0x322371(0x111)][_0x322371(0xff)]()+'/'+_0x492a43+'/'+_0x1c6a6b:_0x324b48=this[_0x322371(0x111)][_0x322371(0xff)]()+_0x322371(0xfd);return(_0x324b48[_0x322371(0xeb)]('/')||_0x324b48[_0x322371(0xeb)]('\x5c'))&&(_0x324b48=_0x324b48['substring'](0x0,_0x324b48['length']-0x1)),_0x324b48=_0x324b48[_0x322371(0x11b)](/(\\|\/)/g,'/')[_0x322371(0x11b)](/\/{2,}/g,'/'),!fs[_0x322371(0x105)](_0x324b48)&&fs[_0x322371(0x129)](_0x324b48,{'recursive':!![]}),await _0x104683[_0x322371(0x10f)][_0x322371(0x11d)]((_0x324b48+'/'+_0x1c6a6b)[_0x322371(0x11b)](/(\\|\/)/g,'/')[_0x322371(0x11b)](/\/{2,}/g,'/')),{'filename':_0x1c6a6b,'filepath':_0x324b48};}async[a11_0x19b59c(0xea)](_0x9a60c3,_0x398db6){await koasend(_0x9a60c3,'/public/xlsx/'+_0x398db6);}};__decorate([(0x0,decorator_1[a11_0x19b59c(0xe5)])(),__metadata(a11_0x19b59c(0x117),Object)],ExcelService[a11_0x19b59c(0xf4)],a11_0x19b59c(0x111),void 0x0),ExcelService=__decorate([(0x0,decorator_1[a11_0x19b59c(0x112)])(),(0x0,decorator_1[a11_0x19b59c(0x103)])(decorator_1[a11_0x19b59c(0xee)][a11_0x19b59c(0x11c)])],ExcelService),exports[a11_0x19b59c(0x119)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a12_0xd323(_0x18e2aa,_0x10b752){var _0x281abb=a12_0x281a();return a12_0xd323=function(_0xd323a8,_0xae7830){_0xd323a8=_0xd323a8-0xfc;var _0x387116=_0x281abb[_0xd323a8];return _0x387116;},a12_0xd323(_0x18e2aa,_0x10b752);}function a12_0x281a(){var _0x4bfe1b=['656858unFfpv','8bkbLjX','defineProperty','1043916kXPKqj','2090162eWvkJZ','12TIZTfd','1980985TQfqnc','ACTION_ROUTE_KEY','3568341tglrSu','239648kMUqWN','anncic-api:action:route','28006992ZDQAYg'];a12_0x281a=function(){return _0x4bfe1b;};return a12_0x281a();}var a12_0x3b2885=a12_0xd323;(function(_0x3af030,_0x3f7570){var _0x20e295=a12_0xd323,_0xa360c0=_0x3af030();while(!![]){try{var _0xc22261=parseInt(_0x20e295(0x104))/0x1+-parseInt(_0x20e295(0xfc))/0x2+-parseInt(_0x20e295(0x107))/0x3+parseInt(_0x20e295(0x105))/0x4*(-parseInt(_0x20e295(0xfe))/0x5)+-parseInt(_0x20e295(0xfd))/0x6*(parseInt(_0x20e295(0x100))/0x7)+-parseInt(_0x20e295(0x101))/0x8+parseInt(_0x20e295(0x103))/0x9;if(_0xc22261===_0x3f7570)break;else _0xa360c0['push'](_0xa360c0['shift']());}catch(_0xe7f5){_0xa360c0['push'](_0xa360c0['shift']());}}}(a12_0x281a,0x82539));Object[a12_0x3b2885(0x106)](exports,'__esModule',{'value':!![]}),exports[a12_0x3b2885(0xff)]=exports['ACTION_KEY']=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a12_0x3b2885(0xff)]=a12_0x3b2885(0x102);
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a13_0x31577d=a13_0x2c6f;function a13_0x2c6f(_0x4a6d5e,_0x3f5355){var _0x33aac5=a13_0x33aa();return a13_0x2c6f=function(_0x2c6f3b,_0x5da979){_0x2c6f3b=_0x2c6f3b-0xeb;var _0x195dc8=_0x33aac5[_0x2c6f3b];return _0x195dc8;},a13_0x2c6f(_0x4a6d5e,_0x3f5355);}(function(_0x4437ae,_0x28d450){var _0x2f98e5=a13_0x2c6f,_0xe2b69e=_0x4437ae();while(!![]){try{var _0x5b49b1=parseInt(_0x2f98e5(0xf6))/0x1*(parseInt(_0x2f98e5(0xed))/0x2)+-parseInt(_0x2f98e5(0x10a))/0x3+-parseInt(_0x2f98e5(0xff))/0x4*(parseInt(_0x2f98e5(0xf9))/0x5)+parseInt(_0x2f98e5(0xf0))/0x6+parseInt(_0x2f98e5(0x102))/0x7+-parseInt(_0x2f98e5(0xeb))/0x8+parseInt(_0x2f98e5(0xec))/0x9;if(_0x5b49b1===_0x28d450)break;else _0xe2b69e['push'](_0xe2b69e['shift']());}catch(_0x3b26b5){_0xe2b69e['push'](_0xe2b69e['shift']());}}}(a13_0x33aa,0x269f7));var __decorate=this&&this['__decorate']||function(_0x331b54,_0x4b1ffd,_0xf88443,_0x48ff8c){var _0x4f2d13=a13_0x2c6f,_0x531c1a=arguments[_0x4f2d13(0x108)],_0x59c1e5=_0x531c1a<0x3?_0x4b1ffd:_0x48ff8c===null?_0x48ff8c=Object['getOwnPropertyDescriptor'](_0x4b1ffd,_0xf88443):_0x48ff8c,_0x3433fa;if(typeof Reflect===_0x4f2d13(0xf4)&&typeof Reflect[_0x4f2d13(0xf2)]===_0x4f2d13(0x100))_0x59c1e5=Reflect[_0x4f2d13(0xf2)](_0x331b54,_0x4b1ffd,_0xf88443,_0x48ff8c);else{for(var _0x4acf2=_0x331b54[_0x4f2d13(0x108)]-0x1;_0x4acf2>=0x0;_0x4acf2--)if(_0x3433fa=_0x331b54[_0x4acf2])_0x59c1e5=(_0x531c1a<0x3?_0x3433fa(_0x59c1e5):_0x531c1a>0x3?_0x3433fa(_0x4b1ffd,_0xf88443,_0x59c1e5):_0x3433fa(_0x4b1ffd,_0xf88443))||_0x59c1e5;}return _0x531c1a>0x3&&_0x59c1e5&&Object[_0x4f2d13(0xf3)](_0x4b1ffd,_0xf88443,_0x59c1e5),_0x59c1e5;},__metadata=this&&this[a13_0x31577d(0xf7)]||function(_0x3098f1,_0x36f8c6){var _0x5720d8=a13_0x31577d;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x5720d8(0xef)](_0x3098f1,_0x36f8c6);};Object[a13_0x31577d(0xf3)](exports,a13_0x31577d(0x109),{'value':!![]}),exports[a13_0x31577d(0xf1)]=void 0x0;const validator_1=require('@anncic-api/validator');function a13_0x33aa(){var _0x2ad57d=['__metadata','number','95dQRnqN','min','string','prototype','是否倒序','RuleType','45896KRRfYt','function','_size','1435343JglhYC','排序方式','trim','Rule','valid','design:type','length','__esModule','554031rQcGMS','分页数量','_order','_isreverse','1143384pcgBzW','3958002XjyBkX','46858nlGgHC','1:是;0:否','metadata','72720SYkfRE','PageDTO','decorate','defineProperty','object','integer','2jbnRGx'];a13_0x33aa=function(){return _0x2ad57d;};return a13_0x33aa();}class PageDTO{}__decorate([(0x0,validator_1[a13_0x31577d(0x105)])('分页',validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xf8)]()[a13_0x31577d(0xf5)]()[a13_0x31577d(0xfa)](0x1),'第一页为1,第二页为2'),__metadata(a13_0x31577d(0x107),Number)],PageDTO[a13_0x31577d(0xfc)],'_page',void 0x0),__decorate([(0x0,validator_1[a13_0x31577d(0x105)])(a13_0x31577d(0x10b),validator_1[a13_0x31577d(0xfe)]['number']()[a13_0x31577d(0xf5)]()[a13_0x31577d(0xfa)](0x1)),__metadata(a13_0x31577d(0x107),Number)],PageDTO['prototype'],a13_0x31577d(0x101),void 0x0),__decorate([(0x0,validator_1['Rule'])(a13_0x31577d(0x103),validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xfb)]()[a13_0x31577d(0x104)]()),__metadata('design:type',String)],PageDTO[a13_0x31577d(0xfc)],a13_0x31577d(0x10c),void 0x0),__decorate([(0x0,validator_1[a13_0x31577d(0x105)])(a13_0x31577d(0xfd),validator_1[a13_0x31577d(0xfe)][a13_0x31577d(0xf8)]()[a13_0x31577d(0xf5)]()[a13_0x31577d(0x106)](0x0,0x1),a13_0x31577d(0xee)),__metadata(a13_0x31577d(0x107),Number)],PageDTO['prototype'],a13_0x31577d(0x10d),void 0x0),exports['PageDTO']=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
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.8",
|
|
21
|
+
"@anncic-api/core": "^1.1.8",
|
|
22
|
+
"@anncic-api/event": "^1.1.8",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.8",
|
|
24
|
+
"@anncic-api/validator": "^1.1.8",
|
|
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.8",
|
|
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": "8e67a65d479feee3c586cebc182378beacb68d2f"
|
|
45
45
|
}
|