anncic-api 1.1.29 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a0_0x4d31(){var _0x33da3d=['20mb','657uuKeiJ','dhauo1234420123gg3234901','372iRlbFC','xml','json','4494415snhmUz','908705FylZDx','defineProperty','5990824OEZZqN','42clXTrO','44124nkQDHE','default','78730HasfCA','/runtime/.upload','3356568NDhwVs','text','31101xDNfAb','zhiulanuiy7892387985hnoi'];a0_0x4d31=function(){return _0x33da3d;};return a0_0x4d31();}var a0_0x48a31d=a0_0x2310;function a0_0x2310(_0x52d1a9,_0x3413b6){var _0x4d313d=a0_0x4d31();return a0_0x2310=function(_0x2310b5,_0xbb0a04){_0x2310b5=_0x2310b5-0xc6;var _0x99a2a9=_0x4d313d[_0x2310b5];return _0x99a2a9;},a0_0x2310(_0x52d1a9,_0x3413b6);}(function(_0x3b5f83,_0x37386d){var _0x3552ea=a0_0x2310,_0x201f1a=_0x3b5f83();while(!![]){try{var _0x2d990d=parseInt(_0x3552ea(0xc9))/0x1+-parseInt(_0x3552ea(0xcd))/0x2*(-parseInt(_0x3552ea(0xcc))/0x3)+-parseInt(_0x3552ea(0xd1))/0x4+-parseInt(_0x3552ea(0xc8))/0x5+parseInt(_0x3552ea(0xd8))/0x6*(-parseInt(_0x3552ea(0xd3))/0x7)+parseInt(_0x3552ea(0xcb))/0x8+-parseInt(_0x3552ea(0xd6))/0x9*(-parseInt(_0x3552ea(0xcf))/0xa);if(_0x2d990d===_0x37386d)break;else _0x201f1a['push'](_0x201f1a['shift']());}catch(_0x310371){_0x201f1a['push'](_0x201f1a['shift']());}}}(a0_0x4d31,0x80d30));Object[a0_0x48a31d(0xca)](exports,'__esModule',{'value':!![]}),exports[a0_0x48a31d(0xce)]=_0x3ad7d2=>{var _0x1d573d=a0_0x48a31d;return{'apitest':!![],'keys':_0x3ad7d2['name'],'anncicapi':{'timeout':0x1388,'password':_0x1d573d(0xd4),'devices':{'DEFAULT':{'secret':_0x1d573d(0xd7),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x1d573d(0xc7),'form',_0x1d573d(0xd2),_0x1d573d(0xc6)],'formLimit':_0x1d573d(0xd5),'jsonLimit':_0x1d573d(0xd5),'textLimit':_0x1d573d(0xd5),'xmlLimit':'20mb'},'upload':{'tmpdir':_0x3ad7d2['appDir']+_0x1d573d(0xd0),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0xbf22(_0xa5c52,_0xd25479){var _0x16ae5e=a1_0x16ae();return a1_0xbf22=function(_0xbf2238,_0x2bca5e){_0xbf2238=_0xbf2238-0x112;var _0x21ae6a=_0x16ae5e[_0xbf2238];return _0x21ae6a;},a1_0xbf22(_0xa5c52,_0xd25479);}var a1_0x4ee42c=a1_0xbf22;(function(_0x33d86b,_0x576799){var _0x54c643=a1_0xbf22,_0x5e82e0=_0x33d86b();while(!![]){try{var _0x8d1dee=-parseInt(_0x54c643(0x117))/0x1+parseInt(_0x54c643(0x11a))/0x2*(parseInt(_0x54c643(0x115))/0x3)+-parseInt(_0x54c643(0x112))/0x4+parseInt(_0x54c643(0x118))/0x5+-parseInt(_0x54c643(0x11d))/0x6*(parseInt(_0x54c643(0x11c))/0x7)+-parseInt(_0x54c643(0x119))/0x8+-parseInt(_0x54c643(0x11b))/0x9*(-parseInt(_0x54c643(0x114))/0xa);if(_0x8d1dee===_0x576799)break;else _0x5e82e0['push'](_0x5e82e0['shift']());}catch(_0x428f22){_0x5e82e0['push'](_0x5e82e0['shift']());}}}(a1_0x16ae,0x6958c));function a1_0x16ae(){var _0x41d523=['229776WMiAxn','default','5085670boWOCn','549VzSqHB','__esModule','629315VxFZls','2000niftbJ','5075368aNREcg','3442VMXyJu','27buVkOW','14goJxPt','265092CsSFAp'];a1_0x16ae=function(){return _0x41d523;};return a1_0x16ae();}Object['defineProperty'](exports,a1_0x4ee42c(0x116),{'value':!![]}),exports[a1_0x4ee42c(0x113)]={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x540df6=a2_0x1b0c;function a2_0x1b0c(_0x3c8b20,_0x1089f9){const _0x3d1116=a2_0x3d11();return a2_0x1b0c=function(_0x1b0c20,_0x426031){_0x1b0c20=_0x1b0c20-0x66;let _0x1cd170=_0x3d1116[_0x1b0c20];return _0x1cd170;},a2_0x1b0c(_0x3c8b20,_0x1089f9);}function a2_0x3d11(){const _0x145a82=['2703726LlHRQo','./config/config.production','config','body','@midwayjs/koa','koa','anncicapi','device','defineProperties','string','filterConfig','36kXquZc','registerMethodHandler','prototype','3416716sfKNDR','handlerActionRoute','metadata','CustomConfiguration','11xlxHLi','upload','function','mkdirSync','onReady','@anncic-api/cache','__metadata','_matchedRoute','request','object','Inject','MidwayEnvironmentService','tmpdir','ApiError','decorator','186123aafMKo','keys','1005219IAhVTW','./exception/ApiError','isNull','REQUEST_OBJ_CTX_KEY','headers','MidwayConfigService','staticFile','log','@midwayjs/task','@anncic-api/validator','@anncic-api/typeorm','apimit','HEADERS_SIGNATURE','bodyXml','getConfiguration','application','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/event','checkConfigKeys','1FvULER','dirs','anncic-api','10sBwaoT','Anncic-api\x20static-file\x20:\x20mkdir\x20','existsSync','@midwayjs/decorator','MidwayApplicationManager','decorate','length','DEFAULT','isArray','input','@midwayjs/static-file','12298797mBRMwN','isString','devices','88ypkdQI','checksign','863195eebMDg','defineProperty','@midwayjs/cross-domain','context','beforeRoute','dir','defaultsDeep','ApiService','forEach','key','get','./types/action','hanlderApplications','35784636EsgxST','design:type'];a2_0x3d11=function(){return _0x145a82;};return a2_0x3d11();}(function(_0x124ba1,_0x2fc22d){const _0x57333f=a2_0x1b0c,_0x2c00b5=_0x124ba1();while(!![]){try{const _0x671f37=parseInt(_0x57333f(0x76))/0x1*(-parseInt(_0x57333f(0x98))/0x2)+parseInt(_0x57333f(0xbb))/0x3+parseInt(_0x57333f(0xa6))/0x4+-parseInt(_0x57333f(0x89))/0x5*(parseInt(_0x57333f(0xa3))/0x6)+parseInt(_0x57333f(0xb9))/0x7*(parseInt(_0x57333f(0x87))/0x8)+parseInt(_0x57333f(0x84))/0x9*(-parseInt(_0x57333f(0x79))/0xa)+-parseInt(_0x57333f(0xaa))/0xb*(-parseInt(_0x57333f(0x96))/0xc);if(_0x671f37===_0x2fc22d)break;else _0x2c00b5['push'](_0x2c00b5['shift']());}catch(_0x5870a0){_0x2c00b5['push'](_0x2c00b5['shift']());}}}(a2_0x3d11,0xad3b2));var __decorate=this&&this['__decorate']||function(_0xe7b24c,_0x2dd8d0,_0x50bf0a,_0x50db06){const _0x41d139=a2_0x1b0c;var _0x46c351=arguments[_0x41d139(0x7f)],_0x53adde=_0x46c351<0x3?_0x2dd8d0:_0x50db06===null?_0x50db06=Object['getOwnPropertyDescriptor'](_0x2dd8d0,_0x50bf0a):_0x50db06,_0x37b774;if(typeof Reflect===_0x41d139(0xb3)&&typeof Reflect['decorate']===_0x41d139(0xac))_0x53adde=Reflect[_0x41d139(0x7e)](_0xe7b24c,_0x2dd8d0,_0x50bf0a,_0x50db06);else{for(var _0x15ea42=_0xe7b24c['length']-0x1;_0x15ea42>=0x0;_0x15ea42--)if(_0x37b774=_0xe7b24c[_0x15ea42])_0x53adde=(_0x46c351<0x3?_0x37b774(_0x53adde):_0x46c351>0x3?_0x37b774(_0x2dd8d0,_0x50bf0a,_0x53adde):_0x37b774(_0x2dd8d0,_0x50bf0a))||_0x53adde;}return _0x46c351>0x3&&_0x53adde&&Object[_0x41d139(0x8a)](_0x2dd8d0,_0x50bf0a,_0x53adde),_0x53adde;},__metadata=this&&this[a2_0x540df6(0xb0)]||function(_0x45dcaa,_0xefbea2){const _0xd8caf5=a2_0x540df6;if(typeof Reflect==='object'&&typeof Reflect[_0xd8caf5(0xa8)]===_0xd8caf5(0xac))return Reflect['metadata'](_0x45dcaa,_0xefbea2);};Object[a2_0x540df6(0x8a)](exports,'__esModule',{'value':!![]}),exports[a2_0x540df6(0xa9)]=void 0x0;const decorator_1=require(a2_0x540df6(0x7c)),core_1=require('@midwayjs/core'),ApiError_1=require(a2_0x540df6(0xbc)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x540df6(0x94)),fs=require('fs'),koa=require(a2_0x540df6(0x9c)),i18n=require('@midwayjs/i18n'),task=require(a2_0x540df6(0x6b)),upload=require('@midwayjs/upload'),staticFile=require(a2_0x540df6(0x83)),crossDomain=require(a2_0x540df6(0x8b)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x540df6(0x99)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x540df6(0xaf)),anncicEvent=require(a2_0x540df6(0x74)),anncicTypeorm=require(a2_0x540df6(0x6d)),anncicValidator=require(a2_0x540df6(0x6c)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x540df6(0xae)](){const _0x24fc3e=a2_0x540df6;await this[_0x24fc3e(0xa2)](),await this['checkConfigKeys'](),await this[_0x24fc3e(0xa7)](),await this[_0x24fc3e(0x95)]();}async[a2_0x540df6(0x75)](){}async[a2_0x540df6(0xa7)](){const _0x50ecc8=a2_0x540df6,_0xf61be0=this[_0x50ecc8(0x9a)][_0x50ecc8(0x71)]();this['decorator'][_0x50ecc8(0xa4)](action_1['ACTION_ROUTE_KEY'],_0x3f5c84=>{const _0x1c2189=_0x50ecc8,_0x10af6d=_0x3f5c84[_0x1c2189(0xa8)];return{'before':async _0xa3f945=>{const _0x28afc1=_0x1c2189;var _0x4352fb,_0x2ee4f5,_0x454f0d,_0x2fe5cb,_0x270004;const _0x415dfd=(_0x4352fb=_0xa3f945===null||_0xa3f945===void 0x0?void 0x0:_0xa3f945['target'])===null||_0x4352fb===void 0x0?void 0x0:_0x4352fb[core_1[_0x28afc1(0x66)]];if(_0x415dfd){if((_0x10af6d===null||_0x10af6d===void 0x0?void 0x0:_0x10af6d[_0x28afc1(0x6e)])&&!this[_0x28afc1(0x90)][_0x28afc1(0x88)]((_0x2ee4f5=_0x415dfd===null||_0x415dfd===void 0x0?void 0x0:_0x415dfd[_0x28afc1(0xb2)])===null||_0x2ee4f5===void 0x0?void 0x0:_0x2ee4f5[_0x28afc1(0x67)]))throw new AnnError(ApiError_1[_0x28afc1(0xb7)][_0x28afc1(0x6f)]);((_0x454f0d=_0x415dfd[_0x28afc1(0x67)])===null||_0x454f0d===void 0x0?void 0x0:_0x454f0d[_0x28afc1(0x9f)])&&((_0x270004=(_0x2fe5cb=_0xf61be0===null||_0xf61be0===void 0x0?void 0x0:_0xf61be0['anncicapi'])===null||_0x2fe5cb===void 0x0?void 0x0:_0x2fe5cb[_0x28afc1(0x86)])===null||_0x270004===void 0x0?void 0x0:_0x270004[_0x415dfd[_0x28afc1(0x67)][_0x28afc1(0x9f)]])&&(typeof _0xf61be0['anncicapi'][_0x28afc1(0x86)][_0x415dfd[_0x28afc1(0x67)][_0x28afc1(0x9f)]][_0x28afc1(0x8d)]==_0x28afc1(0xac)&&await _0xf61be0[_0x28afc1(0x9e)]['devices'][_0x415dfd['headers'][_0x28afc1(0x9f)]][_0x28afc1(0x8d)]((_0x415dfd===null||_0x415dfd===void 0x0?void 0x0:_0x415dfd[_0x28afc1(0xb1)])||undefined,_0x415dfd,_0x10af6d));}},'afterThrow':(_0x50108e,_0xe2b46)=>{throw _0xe2b46;}};});}async[a2_0x540df6(0x95)](){const _0x322d52=a2_0x540df6;this[_0x322d52(0x72)]['getApplications']([_0x322d52(0x9d)])[_0x322d52(0x91)](_0x2cefe0=>{const _0x1b5a59=_0x322d52;(_0x2cefe0===null||_0x2cefe0===void 0x0?void 0x0:_0x2cefe0[_0x1b5a59(0x8c)])&&Object[_0x1b5a59(0xa0)](_0x2cefe0['context'],{'ok':{'value':function(_0x2d8678,_0x504c9e,_0x545b6a=0x0){return{'code':_0x545b6a,'data':_0x2d8678,'extra':_0x504c9e};}},'err':{'value':function(_0x1ecd39,_0x89544b,_0x2619cc=0x1){return{'code':_0x2619cc,'extra':_0x89544b,'msg':_0x1ecd39};}},'input':{'value':function(_0x1ed343,_0x587ac3){const _0xd79095=_0x1b5a59;var _0x426278;const _0x44f99f=lodash[_0xd79095(0x8f)]({},this[_0xd79095(0xb2)][_0xd79095(0x9b)]||this[_0xd79095(0xb2)][((_0x426278=config===null||config===void 0x0?void 0x0:config[_0xd79095(0x70)])===null||_0x426278===void 0x0?void 0x0:_0x426278[_0xd79095(0x92)])||'body']||{},this[_0xd79095(0xb2)]['query']||{});return _0x1ed343?lodash[_0xd79095(0x93)](_0x44f99f,_0x1ed343,_0x587ac3):_0x44f99f;}},'when':{'value':async function(_0x4d9fd1,_0x31e7bf){const _0x20b63c=_0x1b5a59,_0x4edc90=this['input'](_0x4d9fd1,null);if(!lodash[_0x20b63c(0xbd)](_0x4edc90))return await _0x31e7bf(_0x4edc90);}},'only':{'value':function(_0x24d329){const _0x1586ba=_0x1b5a59,_0x548f51={};for(let _0x1ece8e=0x0;_0x1ece8e<_0x24d329[_0x1586ba(0x7f)];_0x1ece8e++){lodash[_0x1586ba(0x81)](_0x24d329[_0x1ece8e])&&_0x24d329[_0x1ece8e][_0x1586ba(0x7f)]>0x0&&lodash[_0x1586ba(0x85)](_0x24d329[_0x1ece8e][0x0])&&(_0x548f51[_0x24d329[_0x1ece8e][0x0]]=this[_0x1586ba(0x82)](_0x24d329[_0x1ece8e][0x0],_0x24d329[_0x1ece8e][_0x1586ba(0x7f)]>0x1?_0x24d329[_0x1ece8e][0x1]:null));}return _0x548f51;}}});});}async[a2_0x540df6(0xa2)](){const _0x438d67=a2_0x540df6;var _0x53084d,_0x46fcf2,_0x2009ad,_0x54b03a,_0x24cd36,_0x1988fe;const _0x5048e6=this[_0x438d67(0x9a)][_0x438d67(0x71)]();((_0x46fcf2=(_0x53084d=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6[_0x438d67(0x9e)])===null||_0x53084d===void 0x0?void 0x0:_0x53084d['devices'])===null||_0x46fcf2===void 0x0?void 0x0:_0x46fcf2[_0x438d67(0x80)])&&Object[_0x438d67(0xba)](_0x5048e6[_0x438d67(0x9e)][_0x438d67(0x86)])['length']>0x1&&delete _0x5048e6[_0x438d67(0x9e)][_0x438d67(0x86)][_0x438d67(0x80)];if((_0x2009ad=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6[_0x438d67(0x69)])===null||_0x2009ad===void 0x0?void 0x0:_0x2009ad[_0x438d67(0x77)])for(const _0x4d7197 in _0x5048e6[_0x438d67(0x69)]['dirs']){((_0x54b03a=_0x5048e6[_0x438d67(0x69)]['dirs'][_0x4d7197])===null||_0x54b03a===void 0x0?void 0x0:_0x54b03a[_0x438d67(0x8e)])&&typeof((_0x24cd36=_0x5048e6['staticFile'][_0x438d67(0x77)][_0x4d7197])===null||_0x24cd36===void 0x0?void 0x0:_0x24cd36[_0x438d67(0x8e)])==_0x438d67(0xa1)&&!fs[_0x438d67(0x7b)](_0x5048e6[_0x438d67(0x69)][_0x438d67(0x77)][_0x4d7197]['dir'])&&(fs[_0x438d67(0xad)](_0x5048e6[_0x438d67(0x69)]['dirs'][_0x4d7197][_0x438d67(0x8e)],{'recursive':!![]}),console[_0x438d67(0x6a)](_0x438d67(0x7a)+_0x5048e6[_0x438d67(0x69)][_0x438d67(0x77)][_0x4d7197][_0x438d67(0x8e)]));}((_0x1988fe=_0x5048e6===null||_0x5048e6===void 0x0?void 0x0:_0x5048e6['upload'])===null||_0x1988fe===void 0x0?void 0x0:_0x1988fe['tmpdir'])&&!fs[_0x438d67(0x7b)](_0x5048e6[_0x438d67(0xab)][_0x438d67(0xb6)])&&(fs[_0x438d67(0xad)](_0x5048e6[_0x438d67(0xab)]['tmpdir'],{'recursive':!![]}),console[_0x438d67(0x6a)](_0x438d67(0x73)+_0x5048e6['upload'][_0x438d67(0xb6)])),this[_0x438d67(0x9a)]['addObject'](_0x5048e6);}};__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata('design:type',core_1[a2_0x540df6(0x68)])],CustomConfiguration[a2_0x540df6(0xa5)],'config',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x540df6(0x97),core_1['MidwayDecoratorService'])],CustomConfiguration['prototype'],a2_0x540df6(0xb8),void 0x0),__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata(a2_0x540df6(0x97),core_1[a2_0x540df6(0x7d)])],CustomConfiguration['prototype'],a2_0x540df6(0x72),void 0x0),__decorate([(0x0,decorator_1[a2_0x540df6(0xb4)])(),__metadata(a2_0x540df6(0x97),core_1[a2_0x540df6(0xb5)])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x540df6(0x97),ApiService_1['ApiService'])],CustomConfiguration[a2_0x540df6(0xa5)],a2_0x540df6(0x90),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x540df6(0x78),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x540df6(0xa9)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x23f593=a2_0x1d65;(function(_0x5ba018,_0x37c741){const _0x46b629=a2_0x1d65,_0x393355=_0x5ba018();while(!![]){try{const _0x39f601=parseInt(_0x46b629(0x173))/0x1+parseInt(_0x46b629(0x150))/0x2*(-parseInt(_0x46b629(0x17d))/0x3)+-parseInt(_0x46b629(0x13c))/0x4*(parseInt(_0x46b629(0x180))/0x5)+-parseInt(_0x46b629(0x178))/0x6+-parseInt(_0x46b629(0x155))/0x7+-parseInt(_0x46b629(0x185))/0x8*(parseInt(_0x46b629(0x17b))/0x9)+parseInt(_0x46b629(0x157))/0xa;if(_0x39f601===_0x37c741)break;else _0x393355['push'](_0x393355['shift']());}catch(_0x48b24f){_0x393355['push'](_0x393355['shift']());}}}(a2_0x3367,0x47287));var __decorate=this&&this[a2_0x23f593(0x187)]||function(_0x44f7a2,_0xc94c5c,_0x5ccbcb,_0x5135a5){const _0x42459a=a2_0x23f593;var _0x7fd49f=arguments['length'],_0x391366=_0x7fd49f<0x3?_0xc94c5c:_0x5135a5===null?_0x5135a5=Object[_0x42459a(0x17f)](_0xc94c5c,_0x5ccbcb):_0x5135a5,_0xe48900;if(typeof Reflect===_0x42459a(0x182)&&typeof Reflect['decorate']===_0x42459a(0x181))_0x391366=Reflect[_0x42459a(0x145)](_0x44f7a2,_0xc94c5c,_0x5ccbcb,_0x5135a5);else{for(var _0x4896c8=_0x44f7a2[_0x42459a(0x15b)]-0x1;_0x4896c8>=0x0;_0x4896c8--)if(_0xe48900=_0x44f7a2[_0x4896c8])_0x391366=(_0x7fd49f<0x3?_0xe48900(_0x391366):_0x7fd49f>0x3?_0xe48900(_0xc94c5c,_0x5ccbcb,_0x391366):_0xe48900(_0xc94c5c,_0x5ccbcb))||_0x391366;}return _0x7fd49f>0x3&&_0x391366&&Object[_0x42459a(0x13a)](_0xc94c5c,_0x5ccbcb,_0x391366),_0x391366;},__metadata=this&&this['__metadata']||function(_0xb73a45,_0x531dd5){const _0x59f149=a2_0x23f593;if(typeof Reflect==='object'&&typeof Reflect[_0x59f149(0x17e)]==='function')return Reflect['metadata'](_0xb73a45,_0x531dd5);};Object[a2_0x23f593(0x13a)](exports,a2_0x23f593(0x188),{'value':!![]}),exports[a2_0x23f593(0x179)]=void 0x0;const decorator_1=require(a2_0x23f593(0x16b)),core_1=require(a2_0x23f593(0x18c)),ApiError_1=require(a2_0x23f593(0x13e)),ApiService_1=require(a2_0x23f593(0x167)),action_1=require('./types/action'),fs=require('fs'),koa=require('@midwayjs/koa'),i18n=require(a2_0x23f593(0x18d)),task=require('@midwayjs/task'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x23f593(0x163)),crossDomain=require(a2_0x23f593(0x139)),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x23f593(0x14a)),anncicEvent=require(a2_0x23f593(0x172)),anncicTypeorm=require(a2_0x23f593(0x140)),anncicValidator=require(a2_0x23f593(0x171)),anncicHelper=require(a2_0x23f593(0x16c));function a2_0x1d65(_0x4c0764,_0x1eec7c){const _0x33674b=a2_0x3367();return a2_0x1d65=function(_0x1d655b,_0x7b34f5){_0x1d655b=_0x1d655b-0x138;let _0x3b3f61=_0x33674b[_0x1d655b];return _0x3b3f61;},a2_0x1d65(_0x4c0764,_0x1eec7c);}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x1c98b6=a2_0x23f593;await this['filterConfig'](),await this[_0x1c98b6(0x164)](),await this['handlerActionRoute'](),await this[_0x1c98b6(0x16e)]();}async[a2_0x23f593(0x164)](){}async[a2_0x23f593(0x17a)](){const _0x260aa4=a2_0x23f593,_0x32d14b=this[_0x260aa4(0x146)][_0x260aa4(0x176)]();this[_0x260aa4(0x143)][_0x260aa4(0x14e)](action_1[_0x260aa4(0x14d)],_0x4992a0=>{const _0x46bfaf=_0x260aa4,_0x5172e1=_0x4992a0[_0x46bfaf(0x17e)];return{'before':async _0x3e710d=>{const _0x22cd21=_0x46bfaf;var _0x1e242e,_0x93ed48;const _0x5c9100=(_0x1e242e=_0x3e710d===null||_0x3e710d===void 0x0?void 0x0:_0x3e710d['target'])===null||_0x1e242e===void 0x0?void 0x0:_0x1e242e[core_1['REQUEST_OBJ_CTX_KEY']];if(_0x5c9100){if((_0x5172e1===null||_0x5172e1===void 0x0?void 0x0:_0x5172e1[_0x22cd21(0x15d)])&&!this['ApiService'][_0x22cd21(0x162)]((_0x93ed48=_0x5c9100===null||_0x5c9100===void 0x0?void 0x0:_0x5c9100[_0x22cd21(0x169)])===null||_0x93ed48===void 0x0?void 0x0:_0x93ed48[_0x22cd21(0x190)]))throw new AnnError(ApiError_1[_0x22cd21(0x177)]['HEADERS_SIGNATURE']);}},'around':async _0x4a5e3d=>{const _0x424e5f=_0x46bfaf;var _0xc0648f,_0x233c77,_0x5b4d70,_0x2d8977,_0x238e11;const _0x3076c0=(_0xc0648f=_0x4a5e3d===null||_0x4a5e3d===void 0x0?void 0x0:_0x4a5e3d[_0x424e5f(0x138)])===null||_0xc0648f===void 0x0?void 0x0:_0xc0648f[core_1[_0x424e5f(0x13b)]];if(_0x3076c0){if(((_0x233c77=_0x3076c0['headers'])===null||_0x233c77===void 0x0?void 0x0:_0x233c77[_0x424e5f(0x192)])&&((_0x238e11=(_0x2d8977=(_0x5b4d70=_0x32d14b===null||_0x32d14b===void 0x0?void 0x0:_0x32d14b[_0x424e5f(0x158)])===null||_0x5b4d70===void 0x0?void 0x0:_0x5b4d70['devices'])===null||_0x2d8977===void 0x0?void 0x0:_0x2d8977[_0x3076c0[_0x424e5f(0x190)][_0x424e5f(0x192)]])===null||_0x238e11===void 0x0?void 0x0:_0x238e11[_0x424e5f(0x154)])){const _0x28ca3a=_0x32d14b[_0x424e5f(0x158)][_0x424e5f(0x166)][_0x3076c0['headers'][_0x424e5f(0x192)]]['beforeRoute'];if(decorator_1[_0x424e5f(0x153)]['isClass'](_0x28ca3a)||typeof _0x28ca3a==_0x424e5f(0x147)){const _0x468c2b=await _0x3076c0[_0x424e5f(0x160)][_0x424e5f(0x15e)](_0x28ca3a);typeof(_0x468c2b===null||_0x468c2b===void 0x0?void 0x0:_0x468c2b['handler'])==_0x424e5f(0x181)&&await _0x468c2b[_0x424e5f(0x184)]((_0x3076c0===null||_0x3076c0===void 0x0?void 0x0:_0x3076c0['_matchedRoute'])||undefined,_0x3076c0,_0x5172e1);}else decorator_1['Types']['isFunction'](_0x28ca3a)&&await _0x28ca3a((_0x3076c0===null||_0x3076c0===void 0x0?void 0x0:_0x3076c0[_0x424e5f(0x159)])||undefined,_0x3076c0,_0x5172e1);}}return await _0x4a5e3d[_0x424e5f(0x165)](..._0x4a5e3d[_0x424e5f(0x15c)]);},'afterThrow':(_0x18a936,_0x4a8c11)=>{throw _0x4a8c11;}};});}async['hanlderApplications'](){const _0x5c3d95=a2_0x23f593;this[_0x5c3d95(0x174)]['getApplications']([_0x5c3d95(0x15a)])[_0x5c3d95(0x18b)](_0x1985aa=>{const _0x3bedc4=_0x5c3d95;(_0x1985aa===null||_0x1985aa===void 0x0?void 0x0:_0x1985aa[_0x3bedc4(0x151)])&&Object[_0x3bedc4(0x149)](_0x1985aa[_0x3bedc4(0x151)],{'ok':{'value':function(_0xdaef1c,_0x372bb2,_0x28e8d3=0x0){return{'code':_0x28e8d3,'data':_0xdaef1c,'extra':_0x372bb2};}},'err':{'value':function(_0x413eea,_0x5e022a,_0x2d0bc7=0x1){return{'code':_0x2d0bc7,'extra':_0x5e022a,'msg':_0x413eea};}},'input':{'value':function(_0x5e8ff6,_0x5b5cbb){const _0x5e5e4b=_0x3bedc4;var _0x38e394;const _0x119348=lodash[_0x5e5e4b(0x13f)]({},this[_0x5e5e4b(0x169)][_0x5e5e4b(0x15f)]||this[_0x5e5e4b(0x169)][((_0x38e394=config===null||config===void 0x0?void 0x0:config[_0x5e5e4b(0x156)])===null||_0x38e394===void 0x0?void 0x0:_0x38e394[_0x5e5e4b(0x17c)])||'body']||{},this[_0x5e5e4b(0x169)]['query']||{});return _0x5e8ff6?lodash[_0x5e5e4b(0x14c)](_0x119348,_0x5e8ff6,_0x5b5cbb):_0x119348;}},'when':{'value':async function(_0x3cbb21,_0x5696d5){const _0x40b05d=_0x3bedc4,_0x13d630=this[_0x40b05d(0x175)](_0x3cbb21,null);if(!lodash[_0x40b05d(0x183)](_0x13d630))return await _0x5696d5(_0x13d630);}},'only':{'value':function(_0x188599){const _0x4c24bf=_0x3bedc4,_0x3b8dbe={};for(let _0x263dbf=0x0;_0x263dbf<_0x188599[_0x4c24bf(0x15b)];_0x263dbf++){lodash['isArray'](_0x188599[_0x263dbf])&&_0x188599[_0x263dbf]['length']>0x0&&lodash['isString'](_0x188599[_0x263dbf][0x0])&&(_0x3b8dbe[_0x188599[_0x263dbf][0x0]]=this[_0x4c24bf(0x175)](_0x188599[_0x263dbf][0x0],_0x188599[_0x263dbf]['length']>0x1?_0x188599[_0x263dbf][0x1]:null));}return _0x3b8dbe;}}});});}async['filterConfig'](){const _0x181a86=a2_0x23f593;var _0x2f3ce7,_0x287b6e,_0x45548f,_0x29036e,_0x537f36,_0x459c78;const _0x7e0f9e=this[_0x181a86(0x146)][_0x181a86(0x176)]();((_0x287b6e=(_0x2f3ce7=_0x7e0f9e===null||_0x7e0f9e===void 0x0?void 0x0:_0x7e0f9e[_0x181a86(0x158)])===null||_0x2f3ce7===void 0x0?void 0x0:_0x2f3ce7[_0x181a86(0x166)])===null||_0x287b6e===void 0x0?void 0x0:_0x287b6e[_0x181a86(0x161)])&&Object[_0x181a86(0x142)](_0x7e0f9e[_0x181a86(0x158)]['devices'])[_0x181a86(0x15b)]>0x1&&delete _0x7e0f9e[_0x181a86(0x158)]['devices'][_0x181a86(0x161)];if((_0x45548f=_0x7e0f9e===null||_0x7e0f9e===void 0x0?void 0x0:_0x7e0f9e[_0x181a86(0x18e)])===null||_0x45548f===void 0x0?void 0x0:_0x45548f[_0x181a86(0x186)])for(const _0xebcd46 in _0x7e0f9e[_0x181a86(0x18e)]['dirs']){((_0x29036e=_0x7e0f9e['staticFile'][_0x181a86(0x186)][_0xebcd46])===null||_0x29036e===void 0x0?void 0x0:_0x29036e['dir'])&&typeof((_0x537f36=_0x7e0f9e[_0x181a86(0x18e)]['dirs'][_0xebcd46])===null||_0x537f36===void 0x0?void 0x0:_0x537f36[_0x181a86(0x194)])==_0x181a86(0x147)&&!fs[_0x181a86(0x189)](_0x7e0f9e[_0x181a86(0x18e)]['dirs'][_0xebcd46][_0x181a86(0x194)])&&(fs[_0x181a86(0x141)](_0x7e0f9e[_0x181a86(0x18e)]['dirs'][_0xebcd46]['dir'],{'recursive':!![]}),console[_0x181a86(0x191)](_0x181a86(0x14b)+_0x7e0f9e[_0x181a86(0x18e)][_0x181a86(0x186)][_0xebcd46][_0x181a86(0x194)]));}((_0x459c78=_0x7e0f9e===null||_0x7e0f9e===void 0x0?void 0x0:_0x7e0f9e[_0x181a86(0x18f)])===null||_0x459c78===void 0x0?void 0x0:_0x459c78[_0x181a86(0x16a)])&&!fs['existsSync'](_0x7e0f9e[_0x181a86(0x18f)]['tmpdir'])&&(fs['mkdirSync'](_0x7e0f9e['upload'][_0x181a86(0x16a)],{'recursive':!![]}),console[_0x181a86(0x191)](_0x181a86(0x170)+_0x7e0f9e[_0x181a86(0x18f)]['tmpdir'])),this[_0x181a86(0x146)][_0x181a86(0x152)](_0x7e0f9e);}};function a2_0x3367(){const _0xe46662=['9kFFxxt','metadata','getOwnPropertyDescriptor','415cVPldi','function','object','isNull','handler','2666744TDkOUK','dirs','__decorate','__esModule','existsSync','design:type','forEach','@midwayjs/core','@midwayjs/i18n','staticFile','upload','headers','log','device','environment','dir','target','@midwayjs/cross-domain','defineProperty','REQUEST_OBJ_CTX_KEY','21568ugOfAs','ApiService','./exception/ApiError','defaultsDeep','@anncic-api/typeorm','mkdirSync','keys','decorator','anncic-api','decorate','config','string','MidwayApplicationManager','defineProperties','@anncic-api/cache','Anncic-api\x20static-file\x20:\x20mkdir\x20','get','ACTION_ROUTE_KEY','registerMethodHandler','Inject','316276ekHjJV','context','addObject','Types','beforeRoute','2946447IjniBv','bodyXml','21237370rbOZMH','anncicapi','_matchedRoute','koa','length','args','apimit','getAsync','body','requestContext','DEFAULT','checksign','@midwayjs/static-file','checkConfigKeys','proceed','devices','./service/ApiService','prototype','request','tmpdir','@midwayjs/decorator','anncic-apihelper','MidwayDecoratorService','hanlderApplications','MidwayEnvironmentService','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/validator','@anncic-api/event','9013VGojzM','application','input','getConfiguration','ApiError','990438Hyogoi','CustomConfiguration','handlerActionRoute','9TQSOPb','key'];a2_0x3367=function(){return _0xe46662;};return a2_0x3367();}__decorate([(0x0,decorator_1[a2_0x23f593(0x14f)])(),__metadata('design:type',core_1['MidwayConfigService'])],CustomConfiguration[a2_0x23f593(0x168)],a2_0x23f593(0x146),void 0x0),__decorate([(0x0,decorator_1[a2_0x23f593(0x14f)])(),__metadata(a2_0x23f593(0x18a),core_1[a2_0x23f593(0x16d)])],CustomConfiguration[a2_0x23f593(0x168)],a2_0x23f593(0x143),void 0x0),__decorate([(0x0,decorator_1[a2_0x23f593(0x14f)])(),__metadata(a2_0x23f593(0x18a),core_1[a2_0x23f593(0x148)])],CustomConfiguration[a2_0x23f593(0x168)],a2_0x23f593(0x174),void 0x0),__decorate([(0x0,decorator_1['Inject'])(),__metadata(a2_0x23f593(0x18a),core_1[a2_0x23f593(0x16f)])],CustomConfiguration[a2_0x23f593(0x168)],a2_0x23f593(0x193),void 0x0),__decorate([(0x0,decorator_1[a2_0x23f593(0x14f)])(),__metadata(a2_0x23f593(0x18a),ApiService_1[a2_0x23f593(0x13d)])],CustomConfiguration[a2_0x23f593(0x168)],a2_0x23f593(0x13d),void 0x0),CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper,task],'namespace':a2_0x23f593(0x144),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x23f593(0x179)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x5595c6=a3_0x53f9;function a3_0x53f9(_0x4dbf66,_0x3c8ac0){const _0x19c44a=a3_0x19c4();return a3_0x53f9=function(_0x53f9ff,_0x42bd2a){_0x53f9ff=_0x53f9ff-0xe6;let _0x511a48=_0x19c44a[_0x53f9ff];return _0x511a48;},a3_0x53f9(_0x4dbf66,_0x3c8ac0);}function a3_0x19c4(){const _0x2c90a2=['521589SUZsBu','144968DxTeJk','splice','filter','/apps/','indexOf','parseRoute','/controller/','Controller','@midwayjs/decorator','1165160DmyRIb','\x20文件请放在app/controller/文件下','APPSCONFIG_KEY','join','77vYcLga','-controller','prefix','3145470OqiUvg','split','274488tEKjsi','trim','middleware','route','length','existsSync','endsWith','middlewareIgnore','/config.','saveClassMetadata','toLowerCase','/controller/文件下','defineProperty','apps/','\x20文件请放在apps/','module','3446456CZFjea','cwd','2545908eNGJAj','Action','rootpath','AppsConfigTmp','ACTION_KEY','filepath','getClassMetadata','startsWith','match','substring','-action','app/controller/','saveModule','replace'];a3_0x19c4=function(){return _0x2c90a2;};return a3_0x19c4();}(function(_0x2fb686,_0x296824){const _0x35d7fd=a3_0x53f9,_0x25c481=_0x2fb686();while(!![]){try{const _0x8e9b09=-parseInt(_0x35d7fd(0x114))/0x1+parseInt(_0x35d7fd(0xea))/0x2+-parseInt(_0x35d7fd(0x113))/0x3+parseInt(_0x35d7fd(0x105))/0x4+-parseInt(_0x35d7fd(0xf1))/0x5+-parseInt(_0x35d7fd(0xf3))/0x6*(-parseInt(_0x35d7fd(0xee))/0x7)+-parseInt(_0x35d7fd(0x103))/0x8;if(_0x8e9b09===_0x296824)break;else _0x25c481['push'](_0x25c481['shift']());}catch(_0x331da8){_0x25c481['push'](_0x25c481['shift']());}}}(a3_0x19c4,0x53e01));Object[a3_0x5595c6(0xff)](exports,'__esModule',{'value':!![]}),exports['parseRoute']=exports[a3_0x5595c6(0x106)]=void 0x0;const fs=require('fs'),decorator_1=require(a3_0x5595c6(0xe9)),action_1=require('../types/action');function Action(_0x381214,_0x5d10dc,_0x346cfa={'middleware':[],'sensitive':!![]}){return _0x43b775=>{const _0x13fb5e=a3_0x53f9;_0x346cfa['tagName']=_0x5d10dc;const _0x15aced=parseRoute(_0x381214);if(_0x15aced[_0x13fb5e(0x102)]){_0x346cfa[_0x13fb5e(0xf0)]=_0x346cfa[_0x13fb5e(0xf0)]?'/'+_0x15aced[_0x13fb5e(0x102)]+'/'+_0x346cfa[_0x13fb5e(0xf0)]:'/'+_0x15aced[_0x13fb5e(0xf6)];_0x15aced['prefix']&&(_0x346cfa['prefix']='/'+_0x15aced[_0x13fb5e(0xf0)]+'/'+_0x346cfa[_0x13fb5e(0xf0)]);if(fs[_0x13fb5e(0xf8)](_0x15aced['rootpath']+_0x13fb5e(0x117)+_0x15aced[_0x13fb5e(0x102)]+_0x13fb5e(0xfb)+(lodash[_0x13fb5e(0xf9)](_0x15aced[_0x13fb5e(0x10a)],'ts')?'ts':'js'))){const _0x1cdbb0=include(_0x15aced[_0x13fb5e(0x107)]+_0x13fb5e(0x117)+_0x15aced[_0x13fb5e(0x102)]+_0x13fb5e(0xfb)+(lodash[_0x13fb5e(0xf9)](_0x15aced[_0x13fb5e(0x10a)],'ts')?'ts':'js'));if(_0x1cdbb0[_0x13fb5e(0xf5)]&&lodash['isArray'](_0x1cdbb0[_0x13fb5e(0xf5)])&&_0x1cdbb0[_0x13fb5e(0xf5)][_0x13fb5e(0xf7)]>0x0)for(let _0x4f242f in _0x1cdbb0[_0x13fb5e(0xf5)]){_0x1cdbb0[_0x13fb5e(0xfa)][_0x13fb5e(0x118)](_0x1cdbb0[_0x13fb5e(0xf5)][_0x4f242f])==-0x1&&_0x346cfa[_0x13fb5e(0xf5)]['push'](_0x1cdbb0['middleware'][_0x4f242f]);}const _0x1e1fa3=(0x0,decorator_1[_0x13fb5e(0x10b)])(action_1['APPSCONFIG_KEY'],action_1[_0x13fb5e(0x108)])||{};_0x1e1fa3[''+_0x15aced[_0x13fb5e(0x102)]]=_0x1cdbb0,(0x0,decorator_1[_0x13fb5e(0xfc)])(action_1[_0x13fb5e(0xec)],_0x1e1fa3,action_1[_0x13fb5e(0x108)]);}_0x346cfa[_0x13fb5e(0xf0)]=_0x346cfa['prefix']['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x13fb5e(0x111)])(action_1[_0x13fb5e(0x109)],_0x43b775),(0x0,decorator_1[_0x13fb5e(0xe8)])(_0x346cfa['prefix'],_0x346cfa)(_0x43b775),(0x0,decorator_1[_0x13fb5e(0xfc)])(action_1['ACTION_KEY'],{'prefix':_0x346cfa[_0x13fb5e(0xf0)],'pprefix':_0x15aced[_0x13fb5e(0xf0)],'module':_0x15aced[_0x13fb5e(0x102)],'filepath':_0x15aced[_0x13fb5e(0x10a)],'routerOptions':_0x346cfa},_0x43b775);}else _0x346cfa[_0x13fb5e(0xf0)]=_0x346cfa[_0x13fb5e(0xf0)]?'/'+_0x346cfa['prefix']:'/'+_0x15aced[_0x13fb5e(0xf6)],_0x15aced[_0x13fb5e(0xf0)]&&(_0x346cfa[_0x13fb5e(0xf0)]='/'+_0x15aced[_0x13fb5e(0xf0)]+'/'+_0x346cfa['prefix']),_0x346cfa['prefix']=_0x346cfa[_0x13fb5e(0xf0)][_0x13fb5e(0xfd)]()['replace'](/\/{2,}/g,'/'),(0x0,decorator_1[_0x13fb5e(0x111)])(action_1[_0x13fb5e(0x109)],_0x43b775),(0x0,decorator_1['Controller'])(_0x346cfa[_0x13fb5e(0xf0)],_0x346cfa)(_0x43b775),(0x0,decorator_1[_0x13fb5e(0xfc)])(action_1['ACTION_KEY'],{'prefix':_0x346cfa[_0x13fb5e(0xf0)],'module':_0x15aced[_0x13fb5e(0x102)],'pprefix':_0x15aced['prefix'],'filepath':_0x15aced[_0x13fb5e(0x10a)],'routerOptions':_0x346cfa},_0x43b775);};}exports[a3_0x5595c6(0x106)]=Action;function parseRoute(_0x1af8e9){const _0x4d8c57=a3_0x5595c6;_0x1af8e9=_0x1af8e9['replace'](/(\\|\/)/g,'/');const _0x10503a=process[_0x4d8c57(0x104)]()['replace'](/(\\|\/)/g,'/'),_0x2bddce=_0x1af8e9[_0x4d8c57(0x10e)](0x0,_0x10503a['length']+_0x1af8e9['substring'](_0x10503a[_0x4d8c57(0xf7)]+0x1)[_0x4d8c57(0x118)]('/')+0x1),_0x3ed602=_0x1af8e9[_0x4d8c57(0x10e)](_0x2bddce['length']+0x1)[_0x4d8c57(0x112)](/(\\|\/)/g,'/'),_0x7d9409={'route':'','prefix':![],'module':![],'rootpath':_0x2bddce,'filepath':_0x3ed602};if(_0x3ed602[_0x4d8c57(0x10c)](_0x4d8c57(0x110))){const _0x3d5daa=_0x3ed602[_0x4d8c57(0x10e)](_0x4d8c57(0x110)['length'])[_0x4d8c57(0xf2)]('/')['filter'](_0x301585=>_0x301585&&_0x301585[_0x4d8c57(0xf4)]());return _0x3d5daa[_0x4d8c57(0xf7)]>0x1&&(_0x7d9409[_0x4d8c57(0xf0)]=_0x3d5daa[0x0]['toLowerCase'](),_0x3d5daa[_0x4d8c57(0x115)](0x0,0x1)),_0x7d9409[_0x4d8c57(0xf6)]=('/'+_0x3d5daa[_0x4d8c57(0xed)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x4d8c57(0x10d)](/[\/|A-Z]*[^A-Z]+/g)[_0x4d8c57(0xed)]('-')[_0x4d8c57(0xfd)]()[_0x4d8c57(0x112)](/\/\-/g,'/'),_0x7d9409['route']['endsWith'](_0x4d8c57(0x10f))&&(_0x7d9409[_0x4d8c57(0xf6)]=_0x7d9409[_0x4d8c57(0xf6)]['substring'](0x0,_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0xf7)]-0x7)),_0x7d9409['route'][_0x4d8c57(0xf9)](_0x4d8c57(0xef))&&(_0x7d9409[_0x4d8c57(0xf6)]=_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0x10e)](0x0,_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0xf7)]-0xb)),_0x7d9409;}else{if(_0x3ed602['startsWith'](_0x4d8c57(0x100))){const _0x53f960=_0x3ed602['substring'](0x0,_0x3ed602[_0x4d8c57(0x118)](_0x4d8c57(0x117))+0x5),_0x1c7803=_0x3ed602['substring'](_0x53f960[_0x4d8c57(0xf7)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x4d8c57(0xf2)]('/')[0x0];if(_0x3ed602[_0x4d8c57(0x10c)](_0x4d8c57(0x100)+_0x1c7803+_0x4d8c57(0xe7))){const _0x59b180=_0x3ed602[_0x4d8c57(0x10e)]((_0x53f960+'/'+_0x1c7803+_0x4d8c57(0xe7))[_0x4d8c57(0xf7)])[_0x4d8c57(0xf2)]('/')[_0x4d8c57(0x116)](_0x330a76=>_0x330a76&&_0x330a76[_0x4d8c57(0xf4)]());return _0x59b180['length']>0x1&&(_0x7d9409[_0x4d8c57(0xf0)]=_0x59b180[0x0][_0x4d8c57(0xfd)](),_0x59b180['splice'](0x0,0x1)),_0x7d9409[_0x4d8c57(0x102)]=_0x1c7803,_0x7d9409[_0x4d8c57(0xf6)]=('/'+_0x1c7803+'/'+_0x59b180['join']('/'))[_0x4d8c57(0x112)](/(\.ts|\.js)$/,'')[_0x4d8c57(0x112)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x4d8c57(0xed)]('-')[_0x4d8c57(0xfd)]()['replace'](/\/\-/g,'/'),_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0xf9)](_0x4d8c57(0x10f))&&(_0x7d9409[_0x4d8c57(0xf6)]=_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0x10e)](0x0,_0x7d9409[_0x4d8c57(0xf6)][_0x4d8c57(0xf7)]-0x7)),_0x7d9409['route'][_0x4d8c57(0xf9)](_0x4d8c57(0xef))&&(_0x7d9409['route']=_0x7d9409[_0x4d8c57(0xf6)]['substring'](0x0,_0x7d9409[_0x4d8c57(0xf6)]['length']-0xb)),_0x7d9409;}throw new Error(_0x3ed602+_0x4d8c57(0x101)+_0x1c7803+_0x4d8c57(0xfe));}}throw new Error(_0x3ed602+_0x4d8c57(0xeb));}exports[a3_0x5595c6(0xe6)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a4_0x3c30(_0x1a914d,_0x36aa25){const _0x195d2d=a4_0x195d();return a4_0x3c30=function(_0x3c3009,_0x4904c8){_0x3c3009=_0x3c3009-0x64;let _0x55a027=_0x195d2d[_0x3c3009];return _0x55a027;},a4_0x3c30(_0x1a914d,_0x36aa25);}const a4_0x4fa905=a4_0x3c30;(function(_0x403805,_0x203e21){const _0x3dbd4f=a4_0x3c30,_0x51b791=_0x403805();while(!![]){try{const _0x42f54e=parseInt(_0x3dbd4f(0x77))/0x1*(-parseInt(_0x3dbd4f(0x84))/0x2)+parseInt(_0x3dbd4f(0x71))/0x3+parseInt(_0x3dbd4f(0x70))/0x4+parseInt(_0x3dbd4f(0x6f))/0x5*(-parseInt(_0x3dbd4f(0x74))/0x6)+parseInt(_0x3dbd4f(0x6e))/0x7+-parseInt(_0x3dbd4f(0x85))/0x8*(parseInt(_0x3dbd4f(0x6c))/0x9)+parseInt(_0x3dbd4f(0x79))/0xa*(parseInt(_0x3dbd4f(0x81))/0xb);if(_0x42f54e===_0x203e21)break;else _0x51b791['push'](_0x51b791['shift']());}catch(_0x28181a){_0x51b791['push'](_0x51b791['shift']());}}}(a4_0x195d,0xf1a2f));Object[a4_0x4fa905(0x65)](exports,'__esModule',{'value':!![]}),exports[a4_0x4fa905(0x67)]=void 0x0;const validator_1=require(a4_0x4fa905(0x7f)),decorator_1=require(a4_0x4fa905(0x7d)),action_1=require(a4_0x4fa905(0x75));function Api(_0x460ac2,_0x316fac='get',_0x52fd27='/',_0x403c44={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x3b3922,_0x28a964,_0x13fc1e)=>{const _0x13f38b=a4_0x3c30;var _0x45e6d1,_0x15c938,_0x2bd374;!_0x403c44['middleware']&&(_0x403c44[_0x13f38b(0x68)]=[]);!((_0x45e6d1=_0x403c44===null||_0x403c44===void 0x0?void 0x0:_0x403c44['validate'])===null||_0x45e6d1===void 0x0?void 0x0:_0x45e6d1[_0x13f38b(0x7c)])&&(_0x403c44[_0x13f38b(0x73)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x13f38b(0x6a)}});if(((_0x15c938=_0x403c44===null||_0x403c44===void 0x0?void 0x0:_0x403c44['middleware'])===null||_0x15c938===void 0x0?void 0x0:_0x15c938[_0x13f38b(0x76)])>0x0&&((_0x2bd374=_0x403c44===null||_0x403c44===void 0x0?void 0x0:_0x403c44['middlewareIgnore'])===null||_0x2bd374===void 0x0?void 0x0:_0x2bd374[_0x13f38b(0x76)])>0x0)for(let _0x5843f3 in _0x403c44[_0x13f38b(0x68)]){_0x403c44[_0x13f38b(0x66)][_0x13f38b(0x7b)](_0x403c44[_0x13f38b(0x68)][_0x5843f3])!==-0x1&&(_0x403c44[_0x13f38b(0x68)][_0x5843f3]=null);}_0x403c44[_0x13f38b(0x78)]=_0x460ac2,(0x0,validator_1[_0x13f38b(0x72)])(_0x403c44[_0x13f38b(0x73)])(_0x3b3922,_0x28a964,_0x13fc1e),(0x0,decorator_1[_0x13f38b(0x86)])(Object[_0x13f38b(0x69)](_0x403c44,{'path':_0x52fd27,'requestMethod':(_0x316fac==_0x13f38b(0x6d)?'delete':_0x316fac)[_0x13f38b(0x83)]()}))(_0x3b3922,_0x28a964,_0x13fc1e),(0x0,decorator_1['attachClassMetadata'])(action_1[_0x13f38b(0x7e)],{'path':_0x52fd27,'method':_0x28a964,'apimit':_0x403c44[_0x13f38b(0x82)],'routerName':_0x403c44['routerName'],'description':_0x403c44[_0x13f38b(0x80)],'middleware':(_0x403c44[_0x13f38b(0x68)]||[])['filter'](_0x3006e3=>!!_0x3006e3),'requestMethod':(_0x316fac==_0x13f38b(0x6d)?_0x13f38b(0x7a):_0x316fac)[_0x13f38b(0x83)]()},_0x3b3922),(0x0,decorator_1[_0x13f38b(0x6b)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x52fd27,'method':_0x28a964,'apimit':_0x403c44[_0x13f38b(0x82)],'routerName':_0x403c44['routerName'],'description':_0x403c44[_0x13f38b(0x80)],'middleware':(_0x403c44['middleware']||[])[_0x13f38b(0x64)](_0x535fd9=>!!_0x535fd9),'requestMethod':(_0x316fac==_0x13f38b(0x6d)?_0x13f38b(0x7a):_0x316fac)[_0x13f38b(0x83)]()})(_0x3b3922,_0x28a964,_0x13fc1e);};}function a4_0x195d(){const _0x180849=['Api','middleware','assign','utc','createCustomMethodDecorator','9411183hMcyEh','del','12120339fJBFKX','439365rjkYdj','2139724SZlHyb','4514610rVIExv','Validator','validate','6EYyYKB','../types/action','length','1788862YvxVnC','routerName','890xdCrKq','delete','indexOf','validationOptions','@midwayjs/decorator','ACTION_ROUTE_KEY','@anncic-api/validator','description','17413TbgTAx','apimit','toLowerCase','2BDAuvL','8oTWYeh','RequestMapping','filter','defineProperty','middlewareIgnore'];a4_0x195d=function(){return _0x180849;};return a4_0x195d();}exports['Api']=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x5a9ace=a5_0x3fe2;function a5_0x3fe2(_0xa75ed6,_0x2a443b){const _0x546750=a5_0x5467();return a5_0x3fe2=function(_0x3fe227,_0x1811dd){_0x3fe227=_0x3fe227-0x150;let _0x4f0bf4=_0x546750[_0x3fe227];return _0x4f0bf4;},a5_0x3fe2(_0xa75ed6,_0x2a443b);}(function(_0x403313,_0x359f3e){const _0x33fd65=a5_0x3fe2,_0x13114e=_0x403313();while(!![]){try{const _0x2abf4b=parseInt(_0x33fd65(0x156))/0x1*(-parseInt(_0x33fd65(0x155))/0x2)+-parseInt(_0x33fd65(0x169))/0x3*(-parseInt(_0x33fd65(0x162))/0x4)+-parseInt(_0x33fd65(0x161))/0x5*(-parseInt(_0x33fd65(0x15f))/0x6)+parseInt(_0x33fd65(0x168))/0x7+-parseInt(_0x33fd65(0x166))/0x8*(parseInt(_0x33fd65(0x15a))/0x9)+-parseInt(_0x33fd65(0x154))/0xa+parseInt(_0x33fd65(0x153))/0xb*(parseInt(_0x33fd65(0x15e))/0xc);if(_0x2abf4b===_0x359f3e)break;else _0x13114e['push'](_0x13114e['shift']());}catch(_0x51205e){_0x13114e['push'](_0x13114e['shift']());}}}(a5_0x5467,0x9d726));Object[a5_0x5a9ace(0x152)](exports,a5_0x5a9ace(0x159),{'value':!![]}),exports[a5_0x5a9ace(0x157)]=void 0x0;const decorator_1=require(a5_0x5a9ace(0x167)),core_1=require(a5_0x5a9ace(0x164)),ApitestService_1=require(a5_0x5a9ace(0x163));function a5_0x5467(){const _0x2bf9f9=['156kBcGVH','RequestMapping','MidwayEnvironmentService','value','defineProperty','22655336DqnBBN','12740130gKbmXE','2351546aBdqvc','1WMnUxN','Apitest','getAsync','__esModule','12312HBUwnj','app','getApplicationContext','REQUEST_OBJ_CTX_KEY','12FauxeH','1414722AXnPPH','isDevelopmentEnvironment','15XXGtdz','58792KuMKDW','../service/ApitestService','@midwayjs/core','get','5176OAXObL','@midwayjs/decorator','3139857HspQLY'];a5_0x5467=function(){return _0x2bf9f9;};return a5_0x5467();}function Apitest(_0x5500a5='/apitest',_0x1cd1a2){return(_0x1a8b0c,_0x239da5,_0x2df0d8)=>{const _0x450e8f=a5_0x3fe2;return(0x0,decorator_1[_0x450e8f(0x16a)])({'path':_0x5500a5,'requestMethod':_0x450e8f(0x165)})(_0x1a8b0c,_0x239da5,_0x2df0d8),_0x2df0d8[_0x450e8f(0x151)]=async function(..._0x152204){const _0x34232f=_0x450e8f;var _0x402327;const _0x524c32=(_0x402327=this[core_1[_0x34232f(0x15d)]])===null||_0x402327===void 0x0?void 0x0:_0x402327[_0x34232f(0x15b)];if(_0x524c32&&_0x524c32['getConfig']('apitest')){const _0x22aaab=await _0x524c32[_0x34232f(0x15c)]()[_0x34232f(0x158)](ApitestService_1['ApitestService']),_0x1af5b6=await _0x524c32['getApplicationContext']()[_0x34232f(0x158)](core_1[_0x34232f(0x150)]);return _0x1af5b6[_0x34232f(0x160)]()&&(_0x1cd1a2['filepath']=!![]),await _0x22aaab['apidoc'](_0x1cd1a2);}return'';},_0x2df0d8;};}exports[a5_0x5a9ace(0x157)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a6_0x2fc5c7=a6_0x2b25;function a6_0x2b25(_0x232c3f,_0x25c6ba){var _0xfa3cc=a6_0xfa3c();return a6_0x2b25=function(_0x2b256b,_0x17a1c7){_0x2b256b=_0x2b256b-0x8b;var _0x3ab206=_0xfa3cc[_0x2b256b];return _0x3ab206;},a6_0x2b25(_0x232c3f,_0x25c6ba);}(function(_0x54c29f,_0x80eb1e){var _0x476e7e=a6_0x2b25,_0x4b30b7=_0x54c29f();while(!![]){try{var _0x42d364=parseInt(_0x476e7e(0x97))/0x1+parseInt(_0x476e7e(0x95))/0x2*(parseInt(_0x476e7e(0x9f))/0x3)+-parseInt(_0x476e7e(0x98))/0x4+parseInt(_0x476e7e(0x9d))/0x5+parseInt(_0x476e7e(0x9e))/0x6+-parseInt(_0x476e7e(0xa2))/0x7*(-parseInt(_0x476e7e(0x9c))/0x8)+-parseInt(_0x476e7e(0x96))/0x9;if(_0x42d364===_0x80eb1e)break;else _0x4b30b7['push'](_0x4b30b7['shift']());}catch(_0x5927d7){_0x4b30b7['push'](_0x4b30b7['shift']());}}}(a6_0xfa3c,0x6caa6));var __decorate=this&&this[a6_0x2fc5c7(0x99)]||function(_0x2b9445,_0x25fe9b,_0xebd4e6,_0x1b67a1){var _0x51e2d3=a6_0x2fc5c7,_0x1c9c77=arguments['length'],_0x58261f=_0x1c9c77<0x3?_0x25fe9b:_0x1b67a1===null?_0x1b67a1=Object[_0x51e2d3(0x91)](_0x25fe9b,_0xebd4e6):_0x1b67a1,_0x20cb39;if(typeof Reflect===_0x51e2d3(0x94)&&typeof Reflect[_0x51e2d3(0x8d)]===_0x51e2d3(0x90))_0x58261f=Reflect[_0x51e2d3(0x8d)](_0x2b9445,_0x25fe9b,_0xebd4e6,_0x1b67a1);else{for(var _0x2bece0=_0x2b9445['length']-0x1;_0x2bece0>=0x0;_0x2bece0--)if(_0x20cb39=_0x2b9445[_0x2bece0])_0x58261f=(_0x1c9c77<0x3?_0x20cb39(_0x58261f):_0x1c9c77>0x3?_0x20cb39(_0x25fe9b,_0xebd4e6,_0x58261f):_0x20cb39(_0x25fe9b,_0xebd4e6))||_0x58261f;}return _0x1c9c77>0x3&&_0x58261f&&Object[_0x51e2d3(0x93)](_0x25fe9b,_0xebd4e6,_0x58261f),_0x58261f;},__metadata=this&&this[a6_0x2fc5c7(0x92)]||function(_0x1b1b7b,_0x3a5313){if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect['metadata'](_0x1b1b7b,_0x3a5313);};Object[a6_0x2fc5c7(0x93)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;function a6_0xfa3c(){var _0x10f1fc=['HEADERS_LACK','238287YLvTXv','checkcode验证失败','HEADERS_CHECKCODE','请使用正确的设备','HEADERS_SIGNATURE','ApiError','decorate','design:type','TIMEOUT','function','getOwnPropertyDescriptor','__metadata','defineProperty','object','4hPQNQr','10146609AYXYCC','232439RhdALr','629836HKyNDD','__decorate','网络繁忙,请稍后重试','HEADERS_DEVICE','16sClaqv','4309830eTfyGV','584826yqfzGM','704994qBTYXr','signature验证失败'];a6_0xfa3c=function(){return _0x10f1fc;};return a6_0xfa3c();}class ApiError{}ApiError[a6_0x2fc5c7(0x8f)]=0x18a89,ApiError[a6_0x2fc5c7(0xa1)]=0x18a8a,ApiError[a6_0x2fc5c7(0x9b)]=0x18a8b,ApiError['HEADERS_CHECKCODE']=0x18a8c,ApiError[a6_0x2fc5c7(0x8b)]=0x18a8d,__decorate([AnnErrorMsg(a6_0x2fc5c7(0x9a)),__metadata(a6_0x2fc5c7(0x8e),Object)],ApiError,a6_0x2fc5c7(0x8f),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x2fc5c7(0x8e),Object)],ApiError,a6_0x2fc5c7(0xa1),void 0x0),__decorate([AnnErrorMsg(a6_0x2fc5c7(0xa5)),__metadata(a6_0x2fc5c7(0x8e),Object)],ApiError,a6_0x2fc5c7(0x9b),void 0x0),__decorate([AnnErrorMsg(a6_0x2fc5c7(0xa3)),__metadata(a6_0x2fc5c7(0x8e),Object)],ApiError,a6_0x2fc5c7(0xa4),void 0x0),__decorate([AnnErrorMsg(a6_0x2fc5c7(0xa0)),__metadata('design:type',Object)],ApiError,a6_0x2fc5c7(0x8b),void 0x0),exports[a6_0x2fc5c7(0x8c)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x1f9c6f=a7_0x413c;(function(_0x310e0f,_0x4fa128){const _0x7841fd=a7_0x413c,_0x2ca6d9=_0x310e0f();while(!![]){try{const _0x4d5650=parseInt(_0x7841fd(0x122))/0x1*(-parseInt(_0x7841fd(0x12c))/0x2)+parseInt(_0x7841fd(0x127))/0x3+parseInt(_0x7841fd(0x128))/0x4+parseInt(_0x7841fd(0x125))/0x5+parseInt(_0x7841fd(0x11e))/0x6+-parseInt(_0x7841fd(0x12b))/0x7*(parseInt(_0x7841fd(0x121))/0x8)+-parseInt(_0x7841fd(0x129))/0x9*(parseInt(_0x7841fd(0x120))/0xa);if(_0x4d5650===_0x4fa128)break;else _0x2ca6d9['push'](_0x2ca6d9['shift']());}catch(_0x20927a){_0x2ca6d9['push'](_0x2ca6d9['shift']());}}}(a7_0x24be,0xd1e65));function a7_0x413c(_0x4464c3,_0x4b5e86){const _0x24be94=a7_0x24be();return a7_0x413c=function(_0x413c73,_0x3fc3d1){_0x413c73=_0x413c73-0x11e;let _0x5e39c9=_0x24be94[_0x413c73];return _0x5e39c9;},a7_0x413c(_0x4464c3,_0x4b5e86);}Object[a7_0x1f9c6f(0x126)](exports,a7_0x1f9c6f(0x124),{'value':!![]}),exports[a7_0x1f9c6f(0x123)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),action_1=require('../types/action');function getAppsConfig(_0x5e7bb0){const _0x13264d=a7_0x1f9c6f,_0xc26621=(0x0,decorator_1['getClassMetadata'])(action_1[_0x13264d(0x12a)],action_1[_0x13264d(0x11f)])||{};return _0x5e7bb0?lodash['get'](_0xc26621,_0x5e7bb0):_0xc26621;}function a7_0x24be(){const _0x5c3d3e=['1982AfktKm','getAppsConfig','__esModule','8387355DUQQXb','defineProperty','3485694waCkTs','5649124piiHIW','36hVxAPt','APPSCONFIG_KEY','1528366xEttwh','1464BEMCld','308022gQLjqq','AppsConfigTmp','2251810sIpUnc','40PxRpyT'];a7_0x24be=function(){return _0x5c3d3e;};return a7_0x24be();}exports[a7_0x1f9c6f(0x123)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x556d16=a8_0x5807;(function(_0x5296e3,_0xf2bd2){const _0x256bae=a8_0x5807,_0x48beaa=_0x5296e3();while(!![]){try{const _0xb52c51=-parseInt(_0x256bae(0x203))/0x1*(parseInt(_0x256bae(0x20c))/0x2)+parseInt(_0x256bae(0x1ec))/0x3+parseInt(_0x256bae(0x1ea))/0x4*(parseInt(_0x256bae(0x1e9))/0x5)+parseInt(_0x256bae(0x1f7))/0x6*(-parseInt(_0x256bae(0x1d2))/0x7)+parseInt(_0x256bae(0x1c4))/0x8+parseInt(_0x256bae(0x1cd))/0x9*(-parseInt(_0x256bae(0x1d1))/0xa)+parseInt(_0x256bae(0x1f5))/0xb;if(_0xb52c51===_0xf2bd2)break;else _0x48beaa['push'](_0x48beaa['shift']());}catch(_0x31b44c){_0x48beaa['push'](_0x48beaa['shift']());}}}(a8_0x222b,0xda679));Object['defineProperty'](exports,a8_0x556d16(0x1f0),{'value':!![]}),exports['getRoutes']=void 0x0;function a8_0x5807(_0x15e861,_0x29e977){const _0x222b65=a8_0x222b();return a8_0x5807=function(_0x580766,_0x345e6b){_0x580766=_0x580766-0x1c4;let _0x158d98=_0x222b65[_0x580766];return _0x158d98;},a8_0x5807(_0x15e861,_0x29e977);}const lodash_1=require(a8_0x556d16(0x1ee)),validator_1=require(a8_0x556d16(0x1c6)),decorator_1=require('@midwayjs/decorator'),decorator_2=require(a8_0x556d16(0x1ca)),decorator_3=require(a8_0x556d16(0x1ca)),action_1=require(a8_0x556d16(0x1d5));function getRoutes(_0x1d487e={'prefix':'/','module':![]}){const _0x19cd67=a8_0x556d16;var _0xf6966c,_0x34de8b;const _0x1f8a06=(0x0,decorator_3['listModule'])(action_1[_0x19cd67(0x1d8)]),_0x41c9bc={},_0x2732f3=Array[_0x19cd67(0x1de)](_0x1d487e['filter']||[])?_0x1d487e[_0x19cd67(0x21f)]||[]:[_0x1d487e[_0x19cd67(0x21f)]];_0xffb656:for(const _0x5058bf of _0x1f8a06){let _0x773173=(0x0,decorator_3[_0x19cd67(0x1cb)])(action_1['ACTION_KEY'],_0x5058bf),_0xf94895=(0x0,decorator_3[_0x19cd67(0x1cb)])(action_1['ACTION_ROUTE_KEY'],_0x5058bf);if(_0x773173&&_0xf94895){let _0x1e7a27=_0x773173['prefix'],_0x2029b5={};if(_0x1d487e['module']&&(0x0,lodash_1[_0x19cd67(0x1f8)])(_0x773173,_0x19cd67(0x209),![])!=_0x1d487e[_0x19cd67(0x209)])continue _0xffb656;else{if(_0x1d487e[_0x19cd67(0x209)]===![]&&!!(0x0,lodash_1[_0x19cd67(0x1f8)])(_0x773173,_0x19cd67(0x209),null))continue _0xffb656;}if(_0x1d487e[_0x19cd67(0x1e1)]&&!_0x1e7a27['startsWith'](_0x1d487e[_0x19cd67(0x1e1)]))continue _0xffb656;_0x1e7a27!=='/'?(_0x2029b5[_0x19cd67(0x201)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x217)])||(/^\//['test'](_0x1e7a27)?_0x1e7a27[_0x19cd67(0x218)]('/')[0x1]:_0x1e7a27),_0x2029b5[_0x19cd67(0x202)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x202)])||_0x2029b5['summary'],_0x2029b5['routes']=[]):(_0x2029b5[_0x19cd67(0x201)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)][_0x19cd67(0x217)])||_0x19cd67(0x21b),_0x2029b5[_0x19cd67(0x202)]=(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1f3)]['description'])||'',_0x2029b5[_0x19cd67(0x1c5)]=[]);_0x1d487e['filepath']&&(_0x2029b5['filepath']=_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173['filepath']);(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x1dd)])&&(_0x2029b5[_0x19cd67(0x1e1)]=_0x773173[_0x19cd67(0x1dd)]);(_0x773173===null||_0x773173===void 0x0?void 0x0:_0x773173[_0x19cd67(0x209)])&&(_0x2029b5['module']=_0x773173[_0x19cd67(0x209)]);let _0x54cd3f=(0x0,decorator_3[_0x19cd67(0x1cb)])(decorator_2[_0x19cd67(0x1da)],_0x5058bf)||{};if(typeof _0xf94895[Symbol['iterator']]===_0x19cd67(0x20e))for(let _0x20012d of _0xf94895){let _0x4e9ec6={};_0x4e9ec6[_0x19cd67(0x1e8)]=_0x20012d[_0x19cd67(0x1c8)],_0x4e9ec6[_0x19cd67(0x213)]=(_0x1e7a27+_0x20012d['path'])['replace'](/\/{1,}/,'/'),_0x4e9ec6[_0x19cd67(0x201)]=(_0x20012d===null||_0x20012d===void 0x0?void 0x0:_0x20012d[_0x19cd67(0x1d9)])||_0x2029b5[_0x19cd67(0x201)]||_0x19cd67(0x21b),_0x4e9ec6['description']=(_0x20012d===null||_0x20012d===void 0x0?void 0x0:_0x20012d['description'])||'',_0x4e9ec6['request']=[];if(!(0x0,lodash_1[_0x19cd67(0x211)])(_0x4e9ec6['route'],_0x19cd67(0x1f9))&&!(0x0,lodash_1['startsWith'])(_0x4e9ec6['route'],_0x19cd67(0x212))&&_0x2732f3[_0x19cd67(0x1fe)](_0x4e9ec6[_0x19cd67(0x213)])===-0x1){if(!(_0x1d487e===null||_0x1d487e===void 0x0?void 0x0:_0x1d487e[_0x19cd67(0x1f4)])){let _0x5cc2f3=(0x0,decorator_3[_0x19cd67(0x1d6)])(new _0x5058bf(),_0x20012d[_0x19cd67(0x1e8)]);for(const _0x4a73f5 in _0x5cc2f3){let _0x1dfb43=(_0xf6966c=_0x54cd3f[_0x20012d['method']])===null||_0xf6966c===void 0x0?void 0x0:_0xf6966c[_0x19cd67(0x1e0)](_0x4b4790=>_0x4b4790[_0x19cd67(0x1dc)]==_0x4a73f5&&_0x4b4790[_0x19cd67(0x1e6)]===decorator_2[_0x19cd67(0x214)]&&(_0x4b4790===null||_0x4b4790===void 0x0?void 0x0:_0x4b4790[_0x19cd67(0x21a)]));if(_0x1dfb43===null||_0x1dfb43===void 0x0?void 0x0:_0x1dfb43[_0x19cd67(0x21a)]){let _0x21851b=convertTypeToString(_0x1dfb43['metadata'][_0x19cd67(0x207)]||0x0);if([_0x19cd67(0x204),'body'][_0x19cd67(0x1fe)](_0x21851b)!=-0x1&&_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)][_0x19cd67(0x1fe)](':')==-0x1&&!_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1e0)](_0x5ca2d5=>_0x5ca2d5[_0x19cd67(0x1e6)]==_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)]))_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1fb)]({'key':_0x1dfb43[_0x19cd67(0x21a)]['propertyData'],'title':_0x1dfb43[_0x19cd67(0x21a)][_0x19cd67(0x216)],'type':convertSchemaType(_0x5cc2f3[_0x1dfb43[_0x19cd67(0x1dc)]]['name']),'required':![],'default':'','desc':''});else{if(_0x21851b==_0x19cd67(0x210)){let _0x54e600=((_0x34de8b=_0x1dfb43===null||_0x1dfb43===void 0x0?void 0x0:_0x1dfb43[_0x19cd67(0x21a)])===null||_0x34de8b===void 0x0?void 0x0:_0x34de8b[_0x19cd67(0x216)])||_0x19cd67(0x210);_0x54e600[_0x19cd67(0x1fe)](':')==-0x1&&!_0x4e9ec6[_0x19cd67(0x1d0)]['find'](_0x3b59f4=>_0x3b59f4[_0x19cd67(0x1e6)]==_0x54e600&&_0x3b59f4[_0x19cd67(0x207)]==_0x19cd67(0x210))&&_0x4e9ec6[_0x19cd67(0x1d0)][_0x19cd67(0x1fb)]({'key':_0x54e600,'title':_0x19cd67(0x1d7)+_0x54e600,'type':_0x19cd67(0x210),'required':!![],'default':'','desc':''});}}}else{const _0xd2cfb6=(0x0,decorator_3[_0x19cd67(0x1fc)])(validator_1[_0x19cd67(0x20f)],_0x5cc2f3[_0x4a73f5]);_0xd2cfb6&&_0x4e9ec6['request'][_0x19cd67(0x1fb)](...getJoiRequest(_0xd2cfb6));}}}_0x2029b5[_0x19cd67(0x1c5)][_0x19cd67(0x1fb)](_0x4e9ec6);}}if(_0x2029b5['routes'][_0x19cd67(0x1d4)]>0x0){let _0x28a221=_0x41c9bc[_0x1e7a27];_0x28a221?(_0x28a221[_0x19cd67(0x201)]!=_0x2029b5[_0x19cd67(0x201)]&&(_0x28a221[_0x19cd67(0x201)]=_0x28a221[_0x19cd67(0x201)]+','+_0x2029b5['summary']),_0x28a221[_0x19cd67(0x202)]!=_0x2029b5[_0x19cd67(0x202)]&&(_0x28a221[_0x19cd67(0x202)]=_0x28a221[_0x19cd67(0x202)]+','+_0x2029b5['description']),_0x28a221[_0x19cd67(0x1c5)]=_0x28a221[_0x19cd67(0x1c5)][_0x19cd67(0x215)](_0x2029b5[_0x19cd67(0x1c5)]),_0x41c9bc[_0x1e7a27]=_0x28a221):_0x41c9bc[_0x1e7a27]=_0x2029b5;}}}return _0x41c9bc;}exports[a8_0x556d16(0x1e3)]=getRoutes;function getJoiRequest(_0x1064fb){const _0x11840b=a8_0x556d16,_0x4452b5=[];for(let _0x4adc9c in _0x1064fb){const _0x17f47d={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x345056=typeof _0x1064fb[_0x4adc9c][_0x11840b(0x206)]==_0x11840b(0x20e)?_0x1064fb[_0x4adc9c][_0x11840b(0x206)]():_0x1064fb[_0x4adc9c];_0x17f47d[_0x11840b(0x1e6)]=_0x4adc9c,_0x17f47d['type']=_0x345056[_0x11840b(0x207)],_0x17f47d[_0x11840b(0x20a)]=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x205),_0x4adc9c),_0x17f47d['default']=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1c7),''),_0x17f47d['required']=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1c9),'')=='required',_0x17f47d[_0x11840b(0x202)]=(0x0,lodash_1[_0x11840b(0x1f8)])(_0x345056,_0x11840b(0x1ce),'');if(_0x345056[_0x11840b(0x207)]==_0x11840b(0x1ef))_0x17f47d[_0x11840b(0x1f1)]=getJoiRequest(_0x345056[_0x11840b(0x1db)]);else _0x345056[_0x11840b(0x207)]=='array'&&_0x345056[_0x11840b(0x1cf)]&&Array['isArray'](_0x345056[_0x11840b(0x1cf)])&&_0x345056[_0x11840b(0x1cf)][0x0]&&console[_0x11840b(0x1ed)](_0x4adc9c+'-array',_0x345056);_0x345056[_0x11840b(0x1fd)]&&Array[_0x11840b(0x1de)](_0x345056[_0x11840b(0x1fd)])&&_0x345056['allow'][_0x11840b(0x1d4)]>0x0&&(_0x17f47d[_0x11840b(0x202)]=_0x11840b(0x21d)+_0x345056['allow']['join'](',')+'];'+_0x17f47d[_0x11840b(0x202)]);if(_0x17f47d[_0x11840b(0x1e6)]&&_0x17f47d['type']){const _0x37a4bf={};for(const _0x5646a4 of _0x345056['rules']||[]){if(_0x5646a4[_0x11840b(0x21e)]===_0x11840b(0x1e2)&&_0x5646a4[_0x11840b(0x1fa)])_0x37a4bf[_0x11840b(0x1e2)]=_0x5646a4[_0x11840b(0x1fa)][_0x11840b(0x1df)];else _0x5646a4[_0x11840b(0x21e)]===_0x11840b(0x20b)&&(_0x37a4bf[_0x11840b(0x20b)]=_0x5646a4[_0x11840b(0x1fa)]['limit']);}_0x17f47d['rules']=_0x37a4bf;}_0x17f47d[_0x11840b(0x1e6)]&&_0x17f47d['title']&&_0x4452b5['push'](_0x17f47d);}return _0x4452b5;}function convertSchemaType(_0x8a59bb){const _0xfb5185=a8_0x556d16;switch(_0x8a59bb){case _0xfb5185(0x21c):return _0xfb5185(0x1ef);case'Boolean':return _0xfb5185(0x1e5);case'Number':return _0xfb5185(0x219);case _0xfb5185(0x1cc):return _0xfb5185(0x20d);case'File':return _0xfb5185(0x210);default:return'string';}}function convertTypeToString(_0x33867f){const _0x1908dd=a8_0x556d16;switch(_0x33867f){case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1f6)]:return _0x1908dd(0x1d3);case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1e4)]:return _0x1908dd(0x204);case decorator_1['RouteParamTypes'][_0x1908dd(0x1eb)]:return'path';case decorator_1[_0x1908dd(0x1ff)]['BODY']:return _0x1908dd(0x1f2);case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x208)]:case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x200)]:case decorator_1[_0x1908dd(0x1ff)][_0x1908dd(0x1e7)]:return _0x1908dd(0x210);default:return _0x1908dd(0x1d3);}}function a8_0x222b(){const _0x243c06=['flags.label','describe','type','FIELDS','module','title','max','1736onNyKF','string','function','RULES_KEY','file','startsWith','/static/apitest','route','WEB_ROUTER_PARAM_KEY','concat','propertyData','tagName','split','number','metadata','default','Object','只允许:[','name','filter','7647952RLqTAW','routes','@anncic-api/validator','flags.default','requestMethod','flags.presence','@midwayjs/decorator','getClassMetadata','String','9xngZsa','flags.description','items','request','15847350REsHVP','7rWkiLj','header','length','../types/action','getMethodParamTypes','文件上传-','ACTION_KEY','routerName','INJECT_CUSTOM_PARAM','keys','parameterIndex','pprefix','isArray','limit','find','prefix','min','getRoutes','QUERY','boolean','key','FILESTREAM','method','195265NjYBAZ','68KMyaVq','PARAM','2744670HhKoJF','log','lodash','object','__esModule','children','body','routerOptions','noreq','21946056RbNEPF','HEADERS','8189046KGdczJ','get','static/apitest','args','push','getClassExtendedMetadata','allow','indexOf','RouteParamTypes','FILESSTREAM','summary','description','790xiPymX','query'];a8_0x222b=function(){return _0x243c06;};return a8_0x222b();}
|
|
1
|
+
'use strict';const a8_0x2d38a2=a8_0x4d2f;(function(_0x4c04b6,_0x1f2375){const _0x2b022e=a8_0x4d2f,_0x5d8ea6=_0x4c04b6();while(!![]){try{const _0x293936=-parseInt(_0x2b022e(0x1a8))/0x1+parseInt(_0x2b022e(0x189))/0x2*(parseInt(_0x2b022e(0x1b0))/0x3)+parseInt(_0x2b022e(0x165))/0x4+parseInt(_0x2b022e(0x15d))/0x5*(-parseInt(_0x2b022e(0x16b))/0x6)+-parseInt(_0x2b022e(0x15f))/0x7*(parseInt(_0x2b022e(0x19a))/0x8)+-parseInt(_0x2b022e(0x1a3))/0x9+-parseInt(_0x2b022e(0x1a9))/0xa*(-parseInt(_0x2b022e(0x1af))/0xb);if(_0x293936===_0x1f2375)break;else _0x5d8ea6['push'](_0x5d8ea6['shift']());}catch(_0x27f6b1){_0x5d8ea6['push'](_0x5d8ea6['shift']());}}}(a8_0x3dd4,0x8f5db));function a8_0x4d2f(_0x34e560,_0x198ab2){const _0x3dd40f=a8_0x3dd4();return a8_0x4d2f=function(_0x4d2f7e,_0x5916e9){_0x4d2f7e=_0x4d2f7e-0x156;let _0x59493f=_0x3dd40f[_0x4d2f7e];return _0x59493f;},a8_0x4d2f(_0x34e560,_0x198ab2);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x2d38a2(0x171)]=void 0x0;const lodash_1=require(a8_0x2d38a2(0x183)),validator_1=require(a8_0x2d38a2(0x157)),decorator_1=require(a8_0x2d38a2(0x166)),decorator_2=require(a8_0x2d38a2(0x166)),decorator_3=require(a8_0x2d38a2(0x166)),action_1=require(a8_0x2d38a2(0x18e));function getRoutes(_0x20f7b4={'prefix':'/','module':![]}){const _0xec5aa5=a8_0x2d38a2;var _0x39244a,_0x3ad93e;const _0x461420=(0x0,decorator_3[_0xec5aa5(0x190)])(action_1['ACTION_KEY']),_0x103106={},_0x152041=Array['isArray'](_0x20f7b4[_0xec5aa5(0x160)]||[])?_0x20f7b4[_0xec5aa5(0x160)]||[]:[_0x20f7b4[_0xec5aa5(0x160)]];_0x766c47:for(const _0x401d70 of _0x461420){let _0x5f07cd=(0x0,decorator_3[_0xec5aa5(0x185)])(action_1[_0xec5aa5(0x16a)],_0x401d70),_0x11d6b1=(0x0,decorator_3[_0xec5aa5(0x185)])(action_1['ACTION_ROUTE_KEY'],_0x401d70);if(_0x5f07cd&&_0x11d6b1){let _0x54c579=_0x5f07cd[_0xec5aa5(0x163)],_0x53804a={};if(_0x20f7b4['module']&&(0x0,lodash_1['get'])(_0x5f07cd,'module',![])!=_0x20f7b4['module'])continue _0x766c47;else{if(_0x20f7b4[_0xec5aa5(0x191)]===![]&&!!(0x0,lodash_1[_0xec5aa5(0x158)])(_0x5f07cd,'module',null))continue _0x766c47;}if(_0x20f7b4[_0xec5aa5(0x163)]&&!_0x54c579[_0xec5aa5(0x16c)](_0x20f7b4['prefix']))continue _0x766c47;_0x54c579!=='/'?(_0x53804a[_0xec5aa5(0x1ac)]=(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x19f)]['tagName'])||(/^\//[_0xec5aa5(0x1a7)](_0x54c579)?_0x54c579[_0xec5aa5(0x174)]('/')[0x1]:_0x54c579),_0x53804a[_0xec5aa5(0x1ae)]=(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x19f)][_0xec5aa5(0x1ae)])||_0x53804a['summary'],_0x53804a[_0xec5aa5(0x194)]=[]):(_0x53804a['summary']=(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x19f)][_0xec5aa5(0x176)])||_0xec5aa5(0x16f),_0x53804a[_0xec5aa5(0x1ae)]=(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x19f)][_0xec5aa5(0x1ae)])||'',_0x53804a[_0xec5aa5(0x194)]=[]);_0x20f7b4[_0xec5aa5(0x15c)]&&(_0x53804a[_0xec5aa5(0x15c)]=_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x15c)]);(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x19e)])&&(_0x53804a[_0xec5aa5(0x163)]=_0x5f07cd[_0xec5aa5(0x19e)]);(_0x5f07cd===null||_0x5f07cd===void 0x0?void 0x0:_0x5f07cd[_0xec5aa5(0x191)])&&(_0x53804a[_0xec5aa5(0x191)]=_0x5f07cd['module']);let _0x146dc=(0x0,decorator_3[_0xec5aa5(0x185)])(decorator_2[_0xec5aa5(0x193)],_0x401d70)||{};if(typeof _0x11d6b1[Symbol[_0xec5aa5(0x19d)]]==='function')for(let _0x42cf24 of _0x11d6b1){let _0x3d058b={};_0x3d058b[_0xec5aa5(0x19b)]=_0x42cf24[_0xec5aa5(0x181)],_0x3d058b[_0xec5aa5(0x17e)]=(_0x54c579+_0x42cf24[_0xec5aa5(0x15b)])[_0xec5aa5(0x18a)](/\/{1,}/,'/'),_0x3d058b['summary']=(_0x42cf24===null||_0x42cf24===void 0x0?void 0x0:_0x42cf24[_0xec5aa5(0x178)])||_0x53804a[_0xec5aa5(0x1ac)]||_0xec5aa5(0x16f),_0x3d058b[_0xec5aa5(0x1ae)]=(_0x42cf24===null||_0x42cf24===void 0x0?void 0x0:_0x42cf24[_0xec5aa5(0x1ae)])||'',_0x3d058b[_0xec5aa5(0x1a5)]=[];if(!(0x0,lodash_1[_0xec5aa5(0x16c)])(_0x3d058b[_0xec5aa5(0x17e)],_0xec5aa5(0x18f))&&!(0x0,lodash_1[_0xec5aa5(0x16c)])(_0x3d058b[_0xec5aa5(0x17e)],'/static/apitest')&&_0x152041[_0xec5aa5(0x1ad)](_0x3d058b[_0xec5aa5(0x17e)])===-0x1){if(!(_0x20f7b4===null||_0x20f7b4===void 0x0?void 0x0:_0x20f7b4[_0xec5aa5(0x170)])){let _0x377b9d=(0x0,decorator_3[_0xec5aa5(0x156)])(new _0x401d70(),_0x42cf24['method']);for(const _0xb2a975 in _0x377b9d){let _0x797620=(_0x39244a=_0x146dc[_0x42cf24['method']])===null||_0x39244a===void 0x0?void 0x0:_0x39244a[_0xec5aa5(0x15a)](_0x5117e3=>_0x5117e3[_0xec5aa5(0x17c)]==_0xb2a975&&_0x5117e3['key']===decorator_2[_0xec5aa5(0x173)]&&(_0x5117e3===null||_0x5117e3===void 0x0?void 0x0:_0x5117e3[_0xec5aa5(0x1a4)]));if(_0x797620===null||_0x797620===void 0x0?void 0x0:_0x797620[_0xec5aa5(0x1a4)]){let _0x672c3c=convertTypeToString(_0x797620[_0xec5aa5(0x1a4)][_0xec5aa5(0x17a)]||0x0);if(['query',_0xec5aa5(0x19c)][_0xec5aa5(0x1ad)](_0x672c3c)!=-0x1&&_0x797620[_0xec5aa5(0x1a4)][_0xec5aa5(0x1a6)][_0xec5aa5(0x1ad)](':')==-0x1&&!_0x3d058b[_0xec5aa5(0x1a5)][_0xec5aa5(0x15a)](_0x265c7b=>_0x265c7b[_0xec5aa5(0x17f)]==_0x797620[_0xec5aa5(0x1a4)][_0xec5aa5(0x1a6)]))_0x3d058b[_0xec5aa5(0x1a5)][_0xec5aa5(0x199)]({'key':_0x797620[_0xec5aa5(0x1a4)]['propertyData'],'title':_0x797620[_0xec5aa5(0x1a4)][_0xec5aa5(0x1a6)],'type':convertSchemaType(_0x377b9d[_0x797620[_0xec5aa5(0x17c)]][_0xec5aa5(0x18d)]),'required':![],'default':'','desc':''});else{if(_0x672c3c==_0xec5aa5(0x182)){let _0x40736f=((_0x3ad93e=_0x797620===null||_0x797620===void 0x0?void 0x0:_0x797620[_0xec5aa5(0x1a4)])===null||_0x3ad93e===void 0x0?void 0x0:_0x3ad93e[_0xec5aa5(0x1a6)])||_0xec5aa5(0x182);_0x40736f[_0xec5aa5(0x1ad)](':')==-0x1&&!_0x3d058b[_0xec5aa5(0x1a5)]['find'](_0x2e1093=>_0x2e1093['key']==_0x40736f&&_0x2e1093[_0xec5aa5(0x17a)]==_0xec5aa5(0x182))&&_0x3d058b[_0xec5aa5(0x1a5)][_0xec5aa5(0x199)]({'key':_0x40736f,'title':_0xec5aa5(0x192)+_0x40736f,'type':_0xec5aa5(0x182),'required':!![],'default':'','desc':''});}}}else{const _0xde0b86=(0x0,decorator_3['getClassExtendedMetadata'])(validator_1[_0xec5aa5(0x161)],_0x377b9d[_0xb2a975]);_0xde0b86&&_0x3d058b['request'][_0xec5aa5(0x199)](...getJoiRequest(_0xde0b86));}}}_0x53804a[_0xec5aa5(0x194)][_0xec5aa5(0x199)](_0x3d058b);}}if(_0x53804a[_0xec5aa5(0x194)][_0xec5aa5(0x169)]>0x0){let _0x36d665=_0x103106[_0x54c579];_0x36d665?(_0x36d665[_0xec5aa5(0x1ac)]!=_0x53804a[_0xec5aa5(0x1ac)]&&(_0x36d665[_0xec5aa5(0x1ac)]=_0x36d665[_0xec5aa5(0x1ac)]+','+_0x53804a[_0xec5aa5(0x1ac)]),_0x36d665[_0xec5aa5(0x1ae)]!=_0x53804a[_0xec5aa5(0x1ae)]&&(_0x36d665['description']=_0x36d665[_0xec5aa5(0x1ae)]+','+_0x53804a[_0xec5aa5(0x1ae)]),_0x36d665[_0xec5aa5(0x194)]=_0x36d665['routes']['concat'](_0x53804a[_0xec5aa5(0x194)]),_0x103106[_0x54c579]=_0x36d665):_0x103106[_0x54c579]=_0x53804a;}}}return _0x103106;}function a8_0x3dd4(){const _0x108a35=['type','function','parameterIndex','isArray','route','key','FIELDS','requestMethod','file','lodash','items','getClassMetadata','keys','join','max','7406hxazJi','replace','String','min','name','../types/action','static/apitest','listModule','module','文件上传-','INJECT_CUSTOM_PARAM','routes','FILESSTREAM','allow','array','FILESTREAM','push','8XRzXcJ','method','body','iterator','pprefix','routerOptions','describe','PARAM','RouteParamTypes','5441724ytWMzS','metadata','request','propertyData','test','228383rcLbST','60JjfmTh','args','required','summary','indexOf','description','2716318bmqXnY','189lpOvAF','getMethodParamTypes','@anncic-api/validator','get','flags.presence','find','path','filepath','774905VXWtHB','Boolean','5071787NHKRko','filter','RULES_KEY','QUERY','prefix','rules','2959328PxtNHJ','@midwayjs/decorator','flags.description','Number','length','ACTION_KEY','12QeKjZG','startsWith','boolean','limit','default','noreq','getRoutes','children','WEB_ROUTER_PARAM_KEY','split','HEADERS','tagName','object','routerName','header'];a8_0x3dd4=function(){return _0x108a35;};return a8_0x3dd4();}exports[a8_0x2d38a2(0x171)]=getRoutes;function getJoiRequest(_0xf0d112){const _0x3b7f32=a8_0x2d38a2,_0xfbb084=[];for(let _0x1f5a3b in _0xf0d112){const _0x208d81={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x2a424f=typeof _0xf0d112[_0x1f5a3b][_0x3b7f32(0x1a0)]==_0x3b7f32(0x17b)?_0xf0d112[_0x1f5a3b]['describe']():_0xf0d112[_0x1f5a3b];_0x208d81['key']=_0x1f5a3b,_0x208d81['type']=_0x2a424f['type'],_0x208d81['title']=(0x0,lodash_1[_0x3b7f32(0x158)])(_0x2a424f,'flags.label',_0x1f5a3b),_0x208d81[_0x3b7f32(0x16f)]=(0x0,lodash_1['get'])(_0x2a424f,'flags.default',''),_0x208d81[_0x3b7f32(0x1ab)]=(0x0,lodash_1['get'])(_0x2a424f,_0x3b7f32(0x159),'')==_0x3b7f32(0x1ab),_0x208d81[_0x3b7f32(0x1ae)]=(0x0,lodash_1[_0x3b7f32(0x158)])(_0x2a424f,_0x3b7f32(0x167),'');if(_0x2a424f[_0x3b7f32(0x17a)]=='object')_0x208d81[_0x3b7f32(0x172)]=getJoiRequest(_0x2a424f[_0x3b7f32(0x186)]);else _0x2a424f['type']==_0x3b7f32(0x197)&&_0x2a424f[_0x3b7f32(0x184)]&&Array[_0x3b7f32(0x17d)](_0x2a424f['items'])&&_0x2a424f[_0x3b7f32(0x184)][0x0]&&console['log'](_0x1f5a3b+'-array',_0x2a424f);_0x2a424f[_0x3b7f32(0x196)]&&Array[_0x3b7f32(0x17d)](_0x2a424f[_0x3b7f32(0x196)])&&_0x2a424f[_0x3b7f32(0x196)][_0x3b7f32(0x169)]>0x0&&(_0x208d81['description']='只允许:['+_0x2a424f['allow'][_0x3b7f32(0x187)](',')+'];'+_0x208d81['description']);if(_0x208d81[_0x3b7f32(0x17f)]&&_0x208d81[_0x3b7f32(0x17a)]){const _0x2b6f2b={};for(const _0x1d8e34 of _0x2a424f[_0x3b7f32(0x164)]||[]){if(_0x1d8e34[_0x3b7f32(0x18d)]===_0x3b7f32(0x18c)&&_0x1d8e34[_0x3b7f32(0x1aa)])_0x2b6f2b['min']=_0x1d8e34[_0x3b7f32(0x1aa)]['limit'];else _0x1d8e34[_0x3b7f32(0x18d)]===_0x3b7f32(0x188)&&(_0x2b6f2b[_0x3b7f32(0x188)]=_0x1d8e34[_0x3b7f32(0x1aa)][_0x3b7f32(0x16e)]);}_0x208d81[_0x3b7f32(0x164)]=_0x2b6f2b;}_0x208d81['key']&&_0x208d81['title']&&_0xfbb084[_0x3b7f32(0x199)](_0x208d81);}return _0xfbb084;}function convertSchemaType(_0x231bac){const _0x57a2ec=a8_0x2d38a2;switch(_0x231bac){case'Object':return _0x57a2ec(0x177);case _0x57a2ec(0x15e):return _0x57a2ec(0x16d);case _0x57a2ec(0x168):return'number';case _0x57a2ec(0x18b):return'string';case'File':return _0x57a2ec(0x182);default:return'string';}}function convertTypeToString(_0x357180){const _0x26a88d=a8_0x2d38a2;switch(_0x357180){case decorator_1[_0x26a88d(0x1a2)][_0x26a88d(0x175)]:return _0x26a88d(0x179);case decorator_1['RouteParamTypes'][_0x26a88d(0x162)]:return'query';case decorator_1[_0x26a88d(0x1a2)][_0x26a88d(0x1a1)]:return _0x26a88d(0x15b);case decorator_1[_0x26a88d(0x1a2)]['BODY']:return _0x26a88d(0x19c);case decorator_1[_0x26a88d(0x1a2)][_0x26a88d(0x180)]:case decorator_1[_0x26a88d(0x1a2)][_0x26a88d(0x195)]:case decorator_1[_0x26a88d(0x1a2)][_0x26a88d(0x198)]:return _0x26a88d(0x182);default:return _0x26a88d(0x179);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x1364da=a9_0x53f7;(function(_0x4c526a,_0x2c1b4e){var _0x4e19fb=a9_0x53f7,_0x398f77=_0x4c526a();while(!![]){try{var _0x166f41=parseInt(_0x4e19fb(0x109))/0x1*(parseInt(_0x4e19fb(0x132))/0x2)+parseInt(_0x4e19fb(0x128))/0x3*(-parseInt(_0x4e19fb(0x10c))/0x4)+-parseInt(_0x4e19fb(0x137))/0x5*(-parseInt(_0x4e19fb(0x13a))/0x6)+parseInt(_0x4e19fb(0x10d))/0x7*(-parseInt(_0x4e19fb(0x139))/0x8)+-parseInt(_0x4e19fb(0x122))/0x9+-parseInt(_0x4e19fb(0x114))/0xa*(parseInt(_0x4e19fb(0x126))/0xb)+parseInt(_0x4e19fb(0x127))/0xc*(parseInt(_0x4e19fb(0x11b))/0xd);if(_0x166f41===_0x2c1b4e)break;else _0x398f77['push'](_0x398f77['shift']());}catch(_0x2799ec){_0x398f77['push'](_0x398f77['shift']());}}}(a9_0x5ded,0x1c01a));var __createBinding=this&&this['__createBinding']||(Object[a9_0x1364da(0x136)]?function(_0x5008c0,_0x348bad,_0x3be9c3,_0x4ba721){var _0x51d34f=a9_0x1364da;if(_0x4ba721===undefined)_0x4ba721=_0x3be9c3;var _0x24d726=Object[_0x51d34f(0x116)](_0x348bad,_0x3be9c3);(!_0x24d726||(_0x51d34f(0x125)in _0x24d726?!_0x348bad[_0x51d34f(0x131)]:_0x24d726['writable']||_0x24d726[_0x51d34f(0x12f)]))&&(_0x24d726={'enumerable':!![],'get':function(){return _0x348bad[_0x3be9c3];}}),Object[_0x51d34f(0xfd)](_0x5008c0,_0x4ba721,_0x24d726);}:function(_0x48db57,_0x37cff2,_0x385372,_0x5c5efc){if(_0x5c5efc===undefined)_0x5c5efc=_0x385372;_0x48db57[_0x5c5efc]=_0x37cff2[_0x385372];}),__exportStar=this&&this[a9_0x1364da(0xfe)]||function(_0x1891af,_0x525e00){var _0x5b9a9f=a9_0x1364da;for(var _0x43fc84 in _0x1891af)if(_0x43fc84!==_0x5b9a9f(0x103)&&!Object[_0x5b9a9f(0x124)]['hasOwnProperty'][_0x5b9a9f(0x12d)](_0x525e00,_0x43fc84))__createBinding(_0x525e00,_0x1891af,_0x43fc84);};Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x131),{'value':!![]}),exports['getAppsConfig']=exports[a9_0x1364da(0x108)]=exports[a9_0x1364da(0x123)]=exports[a9_0x1364da(0x107)]=exports[a9_0x1364da(0x111)]=exports['Logger']=exports[a9_0x1364da(0x121)]=exports[a9_0x1364da(0x118)]=exports['Init']=exports[a9_0x1364da(0x102)]=exports[a9_0x1364da(0x11c)]=exports['Param']=exports[a9_0x1364da(0x11d)]=exports['Fields']=exports[a9_0x1364da(0x115)]=exports[a9_0x1364da(0x117)]=exports[a9_0x1364da(0x105)]=exports[a9_0x1364da(0x112)]=exports[a9_0x1364da(0x11a)]=exports[a9_0x1364da(0x12c)]=exports[a9_0x1364da(0x12e)]=exports[a9_0x1364da(0x13b)]=exports[a9_0x1364da(0xff)]=exports[a9_0x1364da(0x113)]=exports[a9_0x1364da(0x101)]=exports[a9_0x1364da(0x130)]=exports[a9_0x1364da(0x106)]=exports[a9_0x1364da(0x100)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x10e),{'enumerable':!![],'get':function(){var _0x50902f=a9_0x1364da;return getAppsConfig_1[_0x50902f(0x10e)];}}),__exportStar(require('./types/common'),exports),__exportStar(require(a9_0x1364da(0x134)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x12a),{'enumerable':!![],'get':function(){var _0xa825a9=a9_0x1364da;return ActionApi_1[_0xa825a9(0x12a)];}});function a9_0x5ded(){var _0x286983=['Apitest','Inject','ScopeEnum','1fHSHNh','Logger','Init','4jcyIWv','707833bAOQYI','getAppsConfig','@anncic-api/validator','@midwayjs/decorator','Provide','ValidatorService','QueueService','4080adhNLx','Files','getOwnPropertyDescriptor','File','App','@anncic-api/event','ValidatorError','64142mywdhw','Query','Body','./service/ExcelService','./helper/getRoutes','./exception/ApiError','Config','1154511sSeDPc','Scope','prototype','get','5731ftkTwC','972DSsYVC','587526aVgzaA','Fields','Api','./configuration','ExcelService','call','ApiService','configurable','getRoutes','__esModule','409042QcFIfa','CustomConfiguration','./service/ApitestService','./decorator/Action','create','13995MDNxYq','Param','8HpWKhP','318tePtNv','EventService','defineProperty','__exportStar','CacheService','Action','ApiError','Headers','default','./service/ApiService','Configuration'];a9_0x5ded=function(){return _0x286983;};return a9_0x5ded();}var Action_1=require(a9_0x1364da(0x135));Object[a9_0x1364da(0xfd)](exports,'Action',{'enumerable':!![],'get':function(){var _0x59bcc3=a9_0x1364da;return Action_1[_0x59bcc3(0x100)];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x106),{'enumerable':!![],'get':function(){var _0x45899c=a9_0x1364da;return ActionApitest_1[_0x45899c(0x106)];}});var getRoutes_1=require(a9_0x1364da(0x11f));Object[a9_0x1364da(0xfd)](exports,'getRoutes',{'enumerable':!![],'get':function(){var _0x3fb704=a9_0x1364da;return getRoutes_1[_0x3fb704(0x130)];}});var ApiError_1=require(a9_0x1364da(0x120));Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x101),{'enumerable':!![],'get':function(){var _0x4323c2=a9_0x1364da;return ApiError_1[_0x4323c2(0x101)];}});var task_1=require('@midwayjs/task');Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x113),{'enumerable':!![],'get':function(){var _0x3fdfe0=a9_0x1364da;return task_1[_0x3fdfe0(0x113)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x1364da(0xfd)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x203870=a9_0x1364da;return cache_1[_0x203870(0xff)];}});var event_1=require(a9_0x1364da(0x119));Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x13b),{'enumerable':!![],'get':function(){var _0x2e3c21=a9_0x1364da;return event_1[_0x2e3c21(0x13b)];}});var ApiService_1=require(a9_0x1364da(0x104));Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0xdc5427=a9_0x1364da;return ApiService_1[_0xdc5427(0x12e)];}});var ExcelService_1=require(a9_0x1364da(0x11e));Object['defineProperty'](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x53056b=a9_0x1364da;return ExcelService_1[_0x53056b(0x12c)];}});var validator_1=require(a9_0x1364da(0x10f));Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x11a),{'enumerable':!![],'get':function(){var _0x3d219b=a9_0x1364da;return validator_1[_0x3d219b(0x11a)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x112),{'enumerable':!![],'get':function(){var _0x3f4c22=a9_0x1364da;return validator_1[_0x3f4c22(0x112)];}});var configuration_1=require(a9_0x1364da(0x12b));Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x105),{'enumerable':!![],'get':function(){var _0x3a1bd8=a9_0x1364da;return configuration_1[_0x3a1bd8(0x133)];}});var decorator_1=require(a9_0x1364da(0x110));Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x117),{'enumerable':!![],'get':function(){var _0x443fe2=a9_0x1364da;return decorator_1[_0x443fe2(0x117)];}}),Object['defineProperty'](exports,a9_0x1364da(0x115),{'enumerable':!![],'get':function(){return decorator_1['Files'];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x129),{'enumerable':!![],'get':function(){var _0x5edd18=a9_0x1364da;return decorator_1[_0x5edd18(0x129)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x11d),{'enumerable':!![],'get':function(){var _0x4723e5=a9_0x1364da;return decorator_1[_0x4723e5(0x11d)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x138),{'enumerable':!![],'get':function(){return decorator_1['Param'];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x11c),{'enumerable':!![],'get':function(){var _0x5a5500=a9_0x1364da;return decorator_1[_0x5a5500(0x11c)];}}),Object[a9_0x1364da(0xfd)](exports,'Headers',{'enumerable':!![],'get':function(){return decorator_1['Headers'];}}),Object['defineProperty'](exports,a9_0x1364da(0x10b),{'enumerable':!![],'get':function(){var _0x24aec0=a9_0x1364da;return decorator_1[_0x24aec0(0x10b)];}});var decorator_2=require(a9_0x1364da(0x110));function a9_0x53f7(_0x3b75ab,_0x30fb7c){var _0x5dedf5=a9_0x5ded();return a9_0x53f7=function(_0x53f783,_0x58cf32){_0x53f783=_0x53f783-0xfd;var _0x182bc3=_0x5dedf5[_0x53f783];return _0x182bc3;},a9_0x53f7(_0x3b75ab,_0x30fb7c);}Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){var _0x162e36=a9_0x1364da;return decorator_2[_0x162e36(0x118)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x121),{'enumerable':!![],'get':function(){var _0x1637c4=a9_0x1364da;return decorator_2[_0x1637c4(0x121)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x10a),{'enumerable':!![],'get':function(){var _0x556e54=a9_0x1364da;return decorator_2[_0x556e54(0x10a)];}}),Object[a9_0x1364da(0xfd)](exports,a9_0x1364da(0x111),{'enumerable':!![],'get':function(){return decorator_2['Provide'];}}),Object['defineProperty'](exports,a9_0x1364da(0x107),{'enumerable':!![],'get':function(){var _0x22e74e=a9_0x1364da;return decorator_2[_0x22e74e(0x107)];}}),Object[a9_0x1364da(0xfd)](exports,'Scope',{'enumerable':!![],'get':function(){return decorator_2['Scope'];}}),Object[a9_0x1364da(0xfd)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x47e226=a9_0x1364da;return decorator_2[_0x47e226(0x108)];}}),global[a9_0x1364da(0x10e)]=getAppsConfig_1[a9_0x1364da(0x10e)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x563b36=a10_0x2bc8;(function(_0xc00677,_0x4a894c){var _0x19d166=a10_0x2bc8,_0x423cd9=_0xc00677();while(!![]){try{var _0x33d29a=parseInt(_0x19d166(0x1a3))/0x1*(parseInt(_0x19d166(0x1d6))/0x2)+-parseInt(_0x19d166(0x1cb))/0x3*(parseInt(_0x19d166(0x1c7))/0x4)+parseInt(_0x19d166(0x1d1))/0x5*(parseInt(_0x19d166(0x1c9))/0x6)+-parseInt(_0x19d166(0x1b2))/0x7*(-parseInt(_0x19d166(0x1bd))/0x8)+-parseInt(_0x19d166(0x1aa))/0x9*(parseInt(_0x19d166(0x1a4))/0xa)+-parseInt(_0x19d166(0x1d3))/0xb*(-parseInt(_0x19d166(0x1b1))/0xc)+-parseInt(_0x19d166(0x1cf))/0xd*(parseInt(_0x19d166(0x1c2))/0xe);if(_0x33d29a===_0x4a894c)break;else _0x423cd9['push'](_0x423cd9['shift']());}catch(_0x186528){_0x423cd9['push'](_0x423cd9['shift']());}}}(a10_0x554e,0x6f3f9));function a10_0x554e(){var _0x308519=['3027kJMKTv','config','device','metadata','13rWNpsO','join','10XsEGbM','defineProperty','5763362qCBzSp','decorate','prototype','148510jwzWmS','token','MD5','push','checkcode','__metadata','缺少头信息:signature','ApiService','__esModule','Config','7TPVqzT','290sJaWIa','length','secret','ScopeEnum','signature','entries','169596cxiWrk','TIMEOUT','HEADERS_LACK','缺少头信息:','getsign','@midwayjs/decorator','anncicapi','12uwbJhU','154BrbCyY','toLowerCase','logintime','secret=','function','now','__decorate','Singleton','fromEntries','requesttime','toString','3656GhqtKN','devices','checksign','HEADERS_DEVICE','sort','1717534tGlGSP','password','map','ApiError','object','4rhyWYk','timeout','216174uVcnYu','Scope'];a10_0x554e=function(){return _0x308519;};return a10_0x554e();}function a10_0x2bc8(_0xd526c7,_0x5a859e){var _0x554e77=a10_0x554e();return a10_0x2bc8=function(_0x2bc851,_0x6adec2){_0x2bc851=_0x2bc851-0x19b;var _0xed6154=_0x554e77[_0x2bc851];return _0xed6154;},a10_0x2bc8(_0xd526c7,_0x5a859e);}var __decorate=this&&this[a10_0x563b36(0x1b8)]||function(_0x30b321,_0x3ced0f,_0x38ecea,_0x14e897){var _0xdc222a=a10_0x563b36,_0x5d75e5=arguments['length'],_0x109853=_0x5d75e5<0x3?_0x3ced0f:_0x14e897===null?_0x14e897=Object['getOwnPropertyDescriptor'](_0x3ced0f,_0x38ecea):_0x14e897,_0x551865;if(typeof Reflect===_0xdc222a(0x1c6)&&typeof Reflect[_0xdc222a(0x1d4)]===_0xdc222a(0x1b6))_0x109853=Reflect[_0xdc222a(0x1d4)](_0x30b321,_0x3ced0f,_0x38ecea,_0x14e897);else{for(var _0x3dabe8=_0x30b321[_0xdc222a(0x1a5)]-0x1;_0x3dabe8>=0x0;_0x3dabe8--)if(_0x551865=_0x30b321[_0x3dabe8])_0x109853=(_0x5d75e5<0x3?_0x551865(_0x109853):_0x5d75e5>0x3?_0x551865(_0x3ced0f,_0x38ecea,_0x109853):_0x551865(_0x3ced0f,_0x38ecea))||_0x109853;}return _0x5d75e5>0x3&&_0x109853&&Object[_0xdc222a(0x1d2)](_0x3ced0f,_0x38ecea,_0x109853),_0x109853;},__metadata=this&&this[a10_0x563b36(0x19e)]||function(_0x4d4192,_0x10878b){var _0x3f9b8c=a10_0x563b36;if(typeof Reflect===_0x3f9b8c(0x1c6)&&typeof Reflect[_0x3f9b8c(0x1ce)]===_0x3f9b8c(0x1b6))return Reflect[_0x3f9b8c(0x1ce)](_0x4d4192,_0x10878b);};Object[a10_0x563b36(0x1d2)](exports,a10_0x563b36(0x1a1),{'value':!![]}),exports[a10_0x563b36(0x1a0)]=void 0x0;const crypto_js_1=require('crypto-js'),decorator_1=require(a10_0x563b36(0x1af)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a10_0x563b36(0x1c3)](_0xd15184){var _0x1e1dc1=a10_0x563b36,_0x3a327e;return _0xd15184?(0x0,crypto_js_1['MD5'])(_0xd15184+(0x0,crypto_js_1[_0x1e1dc1(0x19b)])((0x0,crypto_js_1[_0x1e1dc1(0x19b)])(_0xd15184)[_0x1e1dc1(0x1bc)]()+((_0x3a327e=this[_0x1e1dc1(0x1cc)])===null||_0x3a327e===void 0x0?void 0x0:_0x3a327e[_0x1e1dc1(0x1c3)]))[_0x1e1dc1(0x1bc)]())['toString']():'';}['getcheck'](_0x2753f3,_0x147c73,_0x1c0089=Date['now']()){return{'Token':_0x2753f3,'Logintime':_0x1c0089,'Checkcode':this['checkcode'](_0x2753f3,_0x147c73,_0x1c0089)};}['getsign'](_0x16b279={}){var _0x3618b7=a10_0x563b36;const _0x5aacde=[],_0x5039c8=Object[_0x3618b7(0x1ba)](Object[_0x3618b7(0x1a9)](_0x16b279)['map'](_0x4a6578=>[_0x4a6578[0x0][_0x3618b7(0x1b3)](),_0x4a6578[0x1]]));for(let _0x5084f9 of[_0x3618b7(0x1cd),'requesttime',_0x3618b7(0x1d7),'logintime',_0x3618b7(0x19d)]){if(typeof _0x5039c8[_0x5084f9]=='undefined')throw new AnnError(ApiError_1[_0x3618b7(0x1c5)][_0x3618b7(0x1ac)],{'message':_0x3618b7(0x1ad)+_0x5084f9});_0x5aacde[_0x3618b7(0x19c)](_0x5084f9+'='+_0x5039c8[_0x5084f9]);}if(Math['abs'](_0x5039c8[_0x3618b7(0x1bb)])-Date['now']()>this['config'][_0x3618b7(0x1c8)])throw new AnnError(ApiError_1[_0x3618b7(0x1c5)][_0x3618b7(0x1ab)]);if(!this[_0x3618b7(0x1cc)][_0x3618b7(0x1be)][_0x5039c8[_0x3618b7(0x1cd)]]||!this[_0x3618b7(0x1cc)][_0x3618b7(0x1be)][_0x5039c8[_0x3618b7(0x1cd)]][_0x3618b7(0x1a6)]||!this['config'][_0x3618b7(0x1be)][_0x5039c8[_0x3618b7(0x1cd)]][_0x3618b7(0x19d)])throw new AnnError(ApiError_1[_0x3618b7(0x1c5)]['HEADERS_DEVICE']);if(_0x5039c8[_0x3618b7(0x1d7)]&&_0x5039c8['checkcode']!=this['checkcode'](_0x5039c8['token'],_0x5039c8['device'],_0x5039c8[_0x3618b7(0x1b4)]))throw new AnnError(ApiError_1[_0x3618b7(0x1c5)]['HEADERS_CHECKCODE']);return _0x5aacde[_0x3618b7(0x19c)](_0x3618b7(0x1b5)+this[_0x3618b7(0x1cc)]['devices'][_0x5039c8[_0x3618b7(0x1cd)]][_0x3618b7(0x1a6)]),(0x0,crypto_js_1[_0x3618b7(0x19b)])(_0x5aacde[_0x3618b7(0x1c1)]()[_0x3618b7(0x1d0)](''))['toString']();}[a10_0x563b36(0x19d)](_0x27427e,_0x25a4e7,_0xd559dc=Date[a10_0x563b36(0x1b7)]()){var _0x24a195=a10_0x563b36,_0x398798,_0x11ca58,_0x1a776c;if(!((_0x398798=this['config'])===null||_0x398798===void 0x0?void 0x0:_0x398798['devices'][_0x25a4e7])||!((_0x1a776c=(_0x11ca58=this[_0x24a195(0x1cc)])===null||_0x11ca58===void 0x0?void 0x0:_0x11ca58['devices'][_0x25a4e7])===null||_0x1a776c===void 0x0?void 0x0:_0x1a776c[_0x24a195(0x19d)]))throw new AnnError(ApiError_1['ApiError'][_0x24a195(0x1c0)]);return(0x0,crypto_js_1[_0x24a195(0x19b)])(_0x27427e+(0x0,crypto_js_1['MD5'])(_0xd559dc+this[_0x24a195(0x1cc)][_0x24a195(0x1be)][_0x25a4e7][_0x24a195(0x19d)])['toString']())[_0x24a195(0x1bc)]();}[a10_0x563b36(0x1bf)](_0xc8e683={}){var _0xf812a0=a10_0x563b36;const _0x481292=Object[_0xf812a0(0x1ba)](Object['entries'](_0xc8e683)[_0xf812a0(0x1c4)](_0x229398=>[_0x229398[0x0]['toLowerCase'](),_0x229398[0x1]]));if(!(_0x481292===null||_0x481292===void 0x0?void 0x0:_0x481292[_0xf812a0(0x1a8)]))throw new AnnError(ApiError_1['ApiError'][_0xf812a0(0x1ac)],{'message':_0xf812a0(0x19f)});if((_0x481292===null||_0x481292===void 0x0?void 0x0:_0x481292[_0xf812a0(0x1a8)])!=this[_0xf812a0(0x1ae)](_0x481292))throw new AnnError(ApiError_1[_0xf812a0(0x1c5)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,decorator_1[a10_0x563b36(0x1a2)])(a10_0x563b36(0x1b0)),__metadata('design:type',Object)],ApiService[a10_0x563b36(0x1d5)],a10_0x563b36(0x1cc),void 0x0),ApiService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a10_0x563b36(0x1ca)])(decorator_1[a10_0x563b36(0x1a7)][a10_0x563b36(0x1b9)])],ApiService),exports[a10_0x563b36(0x1a0)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x38e209=a11_0xee29;(function(_0x182f8a,_0x5a1cdf){const _0xca9ea0=a11_0xee29,_0x204cde=_0x182f8a();while(!![]){try{const _0x37f832=-parseInt(_0xca9ea0(0x13c))/0x1+-parseInt(_0xca9ea0(0x138))/0x2+parseInt(_0xca9ea0(0x115))/0x3+parseInt(_0xca9ea0(0xfe))/0x4*(-parseInt(_0xca9ea0(0x119))/0x5)+-parseInt(_0xca9ea0(0x11d))/0x6*(parseInt(_0xca9ea0(0x105))/0x7)+-parseInt(_0xca9ea0(0x139))/0x8*(parseInt(_0xca9ea0(0x10f))/0x9)+parseInt(_0xca9ea0(0x130))/0xa;if(_0x37f832===_0x5a1cdf)break;else _0x204cde['push'](_0x204cde['shift']());}catch(_0x2e759d){_0x204cde['push'](_0x204cde['shift']());}}}(a11_0x24bf,0xb7dd8));var __decorate=this&&this['__decorate']||function(_0xcc0277,_0x27287a,_0x5d8062,_0x249960){const _0x19a170=a11_0xee29;var _0x344dd3=arguments[_0x19a170(0x110)],_0x43f722=_0x344dd3<0x3?_0x27287a:_0x249960===null?_0x249960=Object[_0x19a170(0xfb)](_0x27287a,_0x5d8062):_0x249960,_0x35b402;if(typeof Reflect===_0x19a170(0x12f)&&typeof Reflect[_0x19a170(0x123)]===_0x19a170(0x12d))_0x43f722=Reflect['decorate'](_0xcc0277,_0x27287a,_0x5d8062,_0x249960);else{for(var _0xe2c568=_0xcc0277[_0x19a170(0x110)]-0x1;_0xe2c568>=0x0;_0xe2c568--)if(_0x35b402=_0xcc0277[_0xe2c568])_0x43f722=(_0x344dd3<0x3?_0x35b402(_0x43f722):_0x344dd3>0x3?_0x35b402(_0x27287a,_0x5d8062,_0x43f722):_0x35b402(_0x27287a,_0x5d8062))||_0x43f722;}return _0x344dd3>0x3&&_0x43f722&&Object['defineProperty'](_0x27287a,_0x5d8062,_0x43f722),_0x43f722;},__metadata=this&&this[a11_0x38e209(0x10e)]||function(_0x364486,_0x4aced2){const _0x1d1c38=a11_0x38e209;if(typeof Reflect===_0x1d1c38(0x12f)&&typeof Reflect[_0x1d1c38(0xfc)]===_0x1d1c38(0x12d))return Reflect[_0x1d1c38(0xfc)](_0x364486,_0x4aced2);},__param=this&&this[a11_0x38e209(0x126)]||function(_0x4cbda0,_0x39ce7c){return function(_0x2e44bb,_0x395340){_0x39ce7c(_0x2e44bb,_0x395340,_0x4cbda0);};};Object[a11_0x38e209(0x12e)](exports,a11_0x38e209(0x132),{'value':!![]}),exports[a11_0x38e209(0xf2)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x38e209(0x122)),fs_1=require('fs'),core_1=require('@midwayjs/core'),decorator_1=require(a11_0x38e209(0x12c)),decorator_2=require(a11_0x38e209(0x12c)),getRoutes_1=require(a11_0x38e209(0x107));function a11_0xee29(_0x51b5ee,_0x4d64cd){const _0x24bf21=a11_0x24bf();return a11_0xee29=function(_0xee29bb,_0x7d679){_0xee29bb=_0xee29bb-0xf1;let _0x537dae=_0x24bf21[_0xee29bb];return _0x537dae;},a11_0xee29(_0x51b5ee,_0x4d64cd);}let ApitestService=class ApitestService{async['apidoc'](_0x42203e){const _0x5ba745=a11_0x38e209,_0x429804=(0x0,getRoutes_1[_0x5ba745(0xfd)])(_0x42203e),_0xea312d=[];for(let _0x3d732c in _0x429804){for(let _0x39d369 in _0x429804[_0x3d732c]['routes']){let _0x43f2c9=_0x429804[_0x3d732c][_0x5ba745(0x142)][_0x39d369],_0x26f9d2=[];for(let _0x1d3e68 in _0x43f2c9['request']){_0x26f9d2[_0x5ba745(0x103)](_0x43f2c9[_0x5ba745(0x136)][_0x1d3e68]);}_0xea312d[_0x5ba745(0x103)]({'title':_0x429804[_0x3d732c]['summary']+':'+_0x43f2c9[_0x5ba745(0x10d)],'prefix':_0x429804[_0x3d732c][_0x5ba745(0x125)],'router':_0x43f2c9['route'],'method':_0x43f2c9[_0x5ba745(0x13a)],'describe':_0x43f2c9[_0x5ba745(0x10c)]||'','filepath':_0x429804[_0x3d732c][_0x5ba745(0x11a)]||'','request':_0x26f9d2});}}const _0x105ef0=(0x0,path_1[_0x5ba745(0x120)])(__dirname,_0x5ba745(0x134));return(0x0,fs_1['readFileSync'])(_0x105ef0,{'encoding':_0x5ba745(0x114)})[_0x5ba745(0x11b)](/__res__/g,'/apiteststatic/')[_0x5ba745(0x11b)](_0x5ba745(0x124),JSON[_0x5ba745(0xf4)](_0xea312d))[_0x5ba745(0x11b)](_0x5ba745(0x141),JSON['stringify'](this[_0x5ba745(0x13f)][_0x5ba745(0x135)]));}};__decorate([(0x0,decorator_2[a11_0x38e209(0xf1)])('anncicapi'),__metadata(a11_0x38e209(0xf8),Object)],ApitestService['prototype'],a11_0x38e209(0x13f),void 0x0),ApitestService=__decorate([(0x0,decorator_1[a11_0x38e209(0x13b)])(a11_0x38e209(0x12a)),(0x0,decorator_2['Scope'])(decorator_2[a11_0x38e209(0x108)][a11_0x38e209(0x113)])],ApitestService),exports['ApitestService']=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x38e209(0x106)](){const _0x4123f1=a11_0x38e209;if(this[_0x4123f1(0x12a)]){const _0x5a2835={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x5a2835['filepath']=!![]),await this[_0x4123f1(0x131)][_0x4123f1(0x111)](_0x5a2835);}return'';}async[a11_0x38e209(0x12b)](_0x5e6b9c){const _0x36ed41=a11_0x38e209;if(this[_0x36ed41(0x12a)]){const _0x2d7893={'module':_0x5e6b9c};return this[_0x36ed41(0x109)][_0x36ed41(0xf9)]()&&(_0x2d7893[_0x36ed41(0x11a)]=!![]),await this[_0x36ed41(0x131)][_0x36ed41(0x111)](_0x2d7893);}return'';}async[a11_0x38e209(0x140)](){const _0x279c0f=a11_0x38e209;if((0x0,path_1[_0x279c0f(0xff)])(this[_0x279c0f(0x118)]['request'][_0x279c0f(0x100)])){var _0x39a6ff=(0x0,path_1[_0x279c0f(0x120)])(__dirname,_0x279c0f(0x11c)+this[_0x279c0f(0x118)][_0x279c0f(0x136)][_0x279c0f(0x100)][_0x279c0f(0x11b)](_0x279c0f(0x10b),'/'));if(_0x39a6ff[_0x279c0f(0x104)](_0x39a6ff['length']-0xb)!='/index.html'){this[_0x279c0f(0x118)]['set'](_0x279c0f(0x13e),_0x279c0f(0x10a));if((0x0,path_1['extname'])(this['ctx'][_0x279c0f(0x136)][_0x279c0f(0x100)])==_0x279c0f(0x102))this[_0x279c0f(0x118)]['set'](_0x279c0f(0x121),_0x279c0f(0x11e));else(0x0,path_1[_0x279c0f(0xff)])(this['ctx']['request'][_0x279c0f(0x100)])==_0x279c0f(0x117)&&this[_0x279c0f(0x118)]['set'](_0x279c0f(0x121),_0x279c0f(0x101));return(0x0,fs_1['existsSync'])(_0x39a6ff)&&(0x0,fs_1['readFileSync'])(_0x39a6ff,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,decorator_2[a11_0x38e209(0x112)])(),__metadata(a11_0x38e209(0xf8),Object)],ApitestStaticController[a11_0x38e209(0xf3)],a11_0x38e209(0x118),void 0x0),__decorate([(0x0,decorator_2['Inject'])(),__metadata(a11_0x38e209(0xf8),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x38e209(0xf3)],'Environment',void 0x0),__decorate([(0x0,decorator_2[a11_0x38e209(0x112)])(),__metadata(a11_0x38e209(0xf8),ApitestService)],ApitestStaticController[a11_0x38e209(0xf3)],'ApitestService',void 0x0),__decorate([(0x0,decorator_2[a11_0x38e209(0xf1)])(a11_0x38e209(0x12a)),__metadata(a11_0x38e209(0xf8),Boolean)],ApitestStaticController[a11_0x38e209(0xf3)],'apitest',void 0x0),__decorate([(0x0,decorator_2[a11_0x38e209(0xf1)])(a11_0x38e209(0x13d)),__metadata(a11_0x38e209(0xf8),Object)],ApitestStaticController[a11_0x38e209(0xf3)],a11_0x38e209(0x13f),void 0x0),__decorate([(0x0,decorator_1[a11_0x38e209(0xf7)])(a11_0x38e209(0x133)),__metadata('design:type',Function),__metadata(a11_0x38e209(0x116),[]),__metadata(a11_0x38e209(0xf5),Promise)],ApitestStaticController['prototype'],a11_0x38e209(0x106),null),__decorate([(0x0,decorator_1[a11_0x38e209(0xf7)])(a11_0x38e209(0x129)),__param(0x0,(0x0,decorator_1[a11_0x38e209(0xfa)])(a11_0x38e209(0xf6))),__metadata(a11_0x38e209(0xf8),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0x38e209(0xf5),Promise)],ApitestStaticController[a11_0x38e209(0xf3)],'apitestmodule',null),__decorate([(0x0,decorator_1[a11_0x38e209(0xf7)])(a11_0x38e209(0x137)),__metadata(a11_0x38e209(0xf8),Function),__metadata(a11_0x38e209(0x116),[]),__metadata(a11_0x38e209(0xf5),Promise)],ApitestStaticController[a11_0x38e209(0xf3)],a11_0x38e209(0x140),null),ApitestStaticController=__decorate([(0x0,decorator_1[a11_0x38e209(0x127)])('/'),(0x0,decorator_2[a11_0x38e209(0x128)])(decorator_2[a11_0x38e209(0x108)][a11_0x38e209(0x11f)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;function a11_0x24bf(){const _0x26316d=['metadata','getRoutes','1462036IRVDgQ','extname','url','text/css;\x20charset=utf-8','.js','push','substring','119FnSDSm','apitesthtml','../helper/getRoutes','ScopeEnum','Environment','public,\x20max-age=604800','/apiteststatic/','description','summary','__metadata','990CbvACv','length','apidoc','Inject','Singleton','utf-8','3018546UCKbAW','design:paramtypes','.css','ctx','5PjsiOc','filepath','replace','../../public/','420474PbotEK','application/javascript;\x20charset=utf-8','Request','join','content-type','path','decorate','__apiList__','prefix','__param','Controller','Scope','/apitest-:module','apitest','apitestmodule','@midwayjs/decorator','function','defineProperty','object','25942050yLZfYK','ApitestService','__esModule','/apitest','../../public/index.html','devices','request','/apiteststatic/*','230540hMhquy','21376omwhTl','method','Provide','881233aUhniR','anncicapi','cache-control','config','apiteststatic','__devices__','routes','Config','ApitestStaticController','prototype','stringify','design:returntype','module','Get','design:type','isDevelopmentEnvironment','Param','getOwnPropertyDescriptor'];a11_0x24bf=function(){return _0x26316d;};return a11_0x24bf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a12_0x358c74=a12_0x4ec1;function a12_0x4ec1(_0x2a7f7f,_0x14e6eb){const _0x20084b=a12_0x2008();return a12_0x4ec1=function(_0x4ec116,_0x5ce99c){_0x4ec116=_0x4ec116-0x1b8;let _0x393f61=_0x20084b[_0x4ec116];return _0x393f61;},a12_0x4ec1(_0x2a7f7f,_0x14e6eb);}(function(_0x37ed61,_0x25adba){const _0x2bc324=a12_0x4ec1,_0x37a765=_0x37ed61();while(!![]){try{const _0x4d4f9d=-parseInt(_0x2bc324(0x1f3))/0x1*(parseInt(_0x2bc324(0x1e4))/0x2)+-parseInt(_0x2bc324(0x1f5))/0x3+parseInt(_0x2bc324(0x1c7))/0x4*(-parseInt(_0x2bc324(0x1ea))/0x5)+parseInt(_0x2bc324(0x1d0))/0x6+parseInt(_0x2bc324(0x1ee))/0x7+-parseInt(_0x2bc324(0x1f7))/0x8*(parseInt(_0x2bc324(0x1bf))/0x9)+parseInt(_0x2bc324(0x1d5))/0xa*(parseInt(_0x2bc324(0x1bb))/0xb);if(_0x4d4f9d===_0x25adba)break;else _0x37a765['push'](_0x37a765['shift']());}catch(_0x2380d1){_0x37a765['push'](_0x37a765['shift']());}}}(a12_0x2008,0xdf053));var __decorate=this&&this[a12_0x358c74(0x1cd)]||function(_0x27bf7c,_0x467022,_0x335b03,_0x532f98){const _0x23bb30=a12_0x358c74;var _0x519f46=arguments[_0x23bb30(0x1f8)],_0x1d24eb=_0x519f46<0x3?_0x467022:_0x532f98===null?_0x532f98=Object[_0x23bb30(0x1f1)](_0x467022,_0x335b03):_0x532f98,_0x36dc27;if(typeof Reflect==='object'&&typeof Reflect[_0x23bb30(0x1f4)]===_0x23bb30(0x1db))_0x1d24eb=Reflect['decorate'](_0x27bf7c,_0x467022,_0x335b03,_0x532f98);else{for(var _0x5bec47=_0x27bf7c[_0x23bb30(0x1f8)]-0x1;_0x5bec47>=0x0;_0x5bec47--)if(_0x36dc27=_0x27bf7c[_0x5bec47])_0x1d24eb=(_0x519f46<0x3?_0x36dc27(_0x1d24eb):_0x519f46>0x3?_0x36dc27(_0x467022,_0x335b03,_0x1d24eb):_0x36dc27(_0x467022,_0x335b03))||_0x1d24eb;}return _0x519f46>0x3&&_0x1d24eb&&Object[_0x23bb30(0x1ce)](_0x467022,_0x335b03,_0x1d24eb),_0x1d24eb;},__metadata=this&&this['__metadata']||function(_0xaa94b0,_0x3e8c5d){const _0x531136=a12_0x358c74;if(typeof Reflect===_0x531136(0x1e3)&&typeof Reflect[_0x531136(0x1e6)]==='function')return Reflect[_0x531136(0x1e6)](_0xaa94b0,_0x3e8c5d);};function a12_0x2008(){const _0x3f72b1=['eachCell','__decorate','defineProperty','\x20is\x20read\x20fail','2397042UjuFQq','addWorksheet','Workbook','toString','columns','27834580KpdlZG','getCell','/public/xlsx','startsWith','Sheet\x201','endsWith','function','getRow','key','handler','replace','random','readFile','app','object','2586iyHoDB','Provide','metadata','getAppDir','ExcelService','push','73595INiBaP','public/xlsx','exceljs','log','10033107yWEgWL','value','xlsx','getOwnPropertyDescriptor','download','689lKyAWZ','decorate','4089474nyZRII','prototype','3992nxglrg','length','Scope','koa-send','substring','11akpThc','Api\x20Excel\x20Error:\x20','__esModule','isNumber','7281yjrfiR','App','existsSync','header','keys','findRows','@midwayjs/decorator','get','284JApLaa','ScopeEnum','rowCount','col','getWorksheet'];a12_0x2008=function(){return _0x3f72b1;};return a12_0x2008();}Object[a12_0x358c74(0x1ce)](exports,a12_0x358c74(0x1bd),{'value':!![]}),exports[a12_0x358c74(0x1e8)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x358c74(0x1ec)),koasend=require(a12_0x358c74(0x1b9)),decorator_1=require(a12_0x358c74(0x1c5));let ExcelService=class ExcelService{async['parse'](_0x75f345,_0x1fc9a5,_0x37c3a2=[0x0]){const _0x495266=a12_0x358c74;var _0x40eaba,_0xb32749;const _0x254349=new exceljs[(_0x495266(0x1d2))](),_0xaf2382=[];let _0x47f745=_0x75f345[_0x495266(0x1df)](/(\\|\/)/g,'/')[_0x495266(0x1df)](/\/{2,}/g,'/');!(_0x47f745===null||_0x47f745===void 0x0?void 0x0:_0x47f745[_0x495266(0x1d8)]('/'))&&(_0x47f745=this[_0x495266(0x1e2)][_0x495266(0x1e7)]()+'/'+_0x47f745);try{await _0x254349[_0x495266(0x1f0)][_0x495266(0x1e1)](_0x47f745);}catch(_0x5b732c){return console[_0x495266(0x1ed)](_0x495266(0x1bc)+_0x47f745+_0x495266(0x1cf)),_0xaf2382;}for(const _0x256430 of _0x37c3a2){const _0xf1f5a8=lodash[_0x495266(0x1be)](_0x256430)?((_0x40eaba=_0x254349['worksheets'])===null||_0x40eaba===void 0x0?void 0x0:_0x40eaba[_0x256430])||undefined:_0x254349[_0x495266(0x1cb)](_0x256430);if(_0xf1f5a8){var _0xa6de27=0x1;const _0x366817=_0xf1f5a8[_0x495266(0x1dc)](0x1),_0x5e78f7=await new Promise(_0x3fe504=>{const _0x5495a7=_0x495266,_0x5a3937={};_0x366817[_0x5495a7(0x1cc)]((_0x412cdb,_0xfb6fb0)=>{const _0x1bfe6f=_0x5495a7;for(const _0x42d036 of _0x1fc9a5){if(_0x412cdb[_0x1bfe6f(0x1ef)]==_0x42d036[_0x1bfe6f(0x1c2)])_0xa6de27=0x2,_0x5a3937[_0x42d036[_0x1bfe6f(0x1dd)]]={'header':_0x412cdb[_0x1bfe6f(0x1ca)],'handler':_0x42d036['handler']};else{if(!_0x5a3937[_0x42d036[_0x1bfe6f(0x1dd)]])try{const _0x4b8451=_0x366817[_0x1bfe6f(0x1d6)](_0x42d036[_0x1bfe6f(0x1c2)]);_0x4b8451&&(_0x5a3937[_0x42d036[_0x1bfe6f(0x1dd)]]={'header':_0x4b8451[_0x1bfe6f(0x1ca)],'handler':_0x42d036['handler']});}catch{}}}_0x366817['cellCount']==_0xfb6fb0&&_0x3fe504(_0x5a3937);});});for(const _0xaef973 of _0xf1f5a8[_0x495266(0x1c4)](_0xa6de27,_0xf1f5a8[_0x495266(0x1c9)])){const _0x21c8dc={};for(const _0x16fd89 in _0x5e78f7){_0x5e78f7[_0x16fd89][_0x495266(0x1c2)]&&(typeof((_0xb32749=_0x5e78f7[_0x16fd89])===null||_0xb32749===void 0x0?void 0x0:_0xb32749[_0x495266(0x1de)])==_0x495266(0x1db)?_0x21c8dc[_0x16fd89]=_0x5e78f7[_0x16fd89][_0x495266(0x1de)](_0xaef973[_0x495266(0x1d6)](lodash['trim'](''+_0x5e78f7[_0x16fd89][_0x495266(0x1c2)],'\x20'))[_0x495266(0x1d3)]()):_0x21c8dc[_0x16fd89]=_0xaef973[_0x495266(0x1d6)](_0x5e78f7[_0x16fd89][_0x495266(0x1c2)])[_0x495266(0x1d3)]());}Object[_0x495266(0x1c3)](_0x21c8dc)['length']>0x0&&_0xaf2382['push'](_0x21c8dc);}}}return _0xaf2382;}async['export'](_0x52a621,_0x448915,_0x5c0aef,_0x2b4ed5=a12_0x358c74(0x1eb)){const _0x25ad64=a12_0x358c74;var _0x5df163,_0xf6abc6;const _0x1b1d1b=new exceljs[(_0x25ad64(0x1d2))](),_0x59f845={},_0x54f66b=[],_0xf9e86f=_0x1b1d1b[_0x25ad64(0x1d1)](_0x25ad64(0x1d9),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x2016be in _0x448915){_0x59f845[_0x448915[_0x2016be][_0x25ad64(0x1dd)]]=_0x448915[_0x2016be]['header'],_0x54f66b[_0x25ad64(0x1e9)]({'header':_0x448915[_0x2016be]['header'],'key':(_0x5df163=_0x448915[_0x2016be])===null||_0x5df163===void 0x0?void 0x0:_0x5df163['key']['replace'](/\./g,'_')});}_0xf9e86f[_0x25ad64(0x1d4)]=_0x54f66b;for(const _0x23227e of _0x5c0aef){const _0x38a7c7={};for(const _0x4eff23 in _0x448915){typeof((_0xf6abc6=_0x448915[_0x4eff23])===null||_0xf6abc6===void 0x0?void 0x0:_0xf6abc6['handler'])=='function'?_0x38a7c7[_0x448915[_0x4eff23][_0x25ad64(0x1dd)][_0x25ad64(0x1df)](/\./g,'_')]=await _0x448915[_0x4eff23]['handler'](_0x23227e):_0x38a7c7[_0x448915[_0x4eff23][_0x25ad64(0x1dd)][_0x25ad64(0x1df)](/\./g,'_')]=lodash[_0x25ad64(0x1c6)](_0x23227e,_0x448915[_0x4eff23][_0x25ad64(0x1dd)],'');}_0xf9e86f['addRow'](_0x38a7c7);}let _0x2c39a3='';const _0x58906c=_0x52a621+'-'+lodash[_0x25ad64(0x1e0)](0x2710,0x1869f)+'.xlsx';if(_0x2b4ed5&&_0x2b4ed5[_0x25ad64(0x1d8)]('/'))_0x2c39a3=''+_0x2b4ed5;else _0x2b4ed5&&!_0x2b4ed5[_0x25ad64(0x1d8)]('/')&&!_0x2b4ed5['startsWith']('\x5c')?_0x2c39a3=this[_0x25ad64(0x1e2)][_0x25ad64(0x1e7)]()+'/'+_0x2b4ed5:_0x2c39a3=this[_0x25ad64(0x1e2)][_0x25ad64(0x1e7)]()+_0x25ad64(0x1d7);return(_0x2c39a3[_0x25ad64(0x1da)]('/')||_0x2c39a3[_0x25ad64(0x1da)]('\x5c'))&&(_0x2c39a3=_0x2c39a3['substring'](0x0,_0x2c39a3['length']-0x1)),_0x2c39a3=_0x2c39a3[_0x25ad64(0x1df)](/(\\|\/)/g,'/')[_0x25ad64(0x1df)](/\/{2,}/g,'/'),!fs[_0x25ad64(0x1c1)](_0x2c39a3)&&fs['mkdirSync'](_0x2c39a3,{'recursive':!![]}),await _0x1b1d1b[_0x25ad64(0x1f0)]['writeFile']((_0x2c39a3+'/'+_0x58906c)[_0x25ad64(0x1df)](/(\\|\/)/g,'/')[_0x25ad64(0x1df)](/\/{2,}/g,'/')),{'filename':_0x58906c,'filepath':(_0x2c39a3[_0x25ad64(0x1ba)]((''+this[_0x25ad64(0x1e2)][_0x25ad64(0x1e7)]())[_0x25ad64(0x1f8)])+'/'+_0x58906c)[_0x25ad64(0x1df)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a12_0x358c74(0x1f2)](_0x9a06ec,_0x1269f1){return await koasend(_0x9a06ec,''+_0x1269f1);}};__decorate([(0x0,decorator_1[a12_0x358c74(0x1c0)])(),__metadata('design:type',Object)],ExcelService[a12_0x358c74(0x1f6)],'app',void 0x0),ExcelService=__decorate([(0x0,decorator_1[a12_0x358c74(0x1e5)])(),(0x0,decorator_1[a12_0x358c74(0x1b8)])(decorator_1[a12_0x358c74(0x1c8)]['Singleton'])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x59d964=a13_0x1d87;(function(_0x37f5b4,_0x55245f){var _0x28fdc7=a13_0x1d87,_0x29a509=_0x37f5b4();while(!![]){try{var _0x42ae55=parseInt(_0x28fdc7(0x148))/0x1*(parseInt(_0x28fdc7(0x138))/0x2)+parseInt(_0x28fdc7(0x13d))/0x3+parseInt(_0x28fdc7(0x140))/0x4*(-parseInt(_0x28fdc7(0x147))/0x5)+-parseInt(_0x28fdc7(0x141))/0x6*(parseInt(_0x28fdc7(0x13c))/0x7)+parseInt(_0x28fdc7(0x13f))/0x8+parseInt(_0x28fdc7(0x144))/0x9+-parseInt(_0x28fdc7(0x13e))/0xa;if(_0x42ae55===_0x55245f)break;else _0x29a509['push'](_0x29a509['shift']());}catch(_0xa2ca31){_0x29a509['push'](_0x29a509['shift']());}}}(a13_0x1b27,0x5bc49));Object[a13_0x59d964(0x136)](exports,a13_0x59d964(0x142),{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x59d964(0x143)]=exports[a13_0x59d964(0x13a)]=exports[a13_0x59d964(0x137)]=void 0x0,exports[a13_0x59d964(0x137)]=a13_0x59d964(0x13b),exports[a13_0x59d964(0x13a)]=a13_0x59d964(0x145),exports['APPSCONFIG_KEY']=a13_0x59d964(0x139);function a13_0x1b27(){var _0x52705f=['1647583tqxyOa','298845VSLMyR','4063420YMwPeA','3690056frAdLW','1774892iuagLp','12GfBPyN','__esModule','APPSCONFIG_KEY','6037893ocMFrs','anncic-api:action:route','AppsConfigTmp','5aDLGsp','92987MPNqpH','defineProperty','ACTION_KEY','10lajcBk','anncic-api:apps:config','ACTION_ROUTE_KEY','anncic-api:action'];a13_0x1b27=function(){return _0x52705f;};return a13_0x1b27();}class AppsConfigTmp{}function a13_0x1d87(_0x39d783,_0x294cf7){var _0x1b27ea=a13_0x1b27();return a13_0x1d87=function(_0x1d872b,_0x6acb4d){_0x1d872b=_0x1d872b-0x136;var _0x14a372=_0x1b27ea[_0x1d872b];return _0x14a372;},a13_0x1d87(_0x39d783,_0x294cf7);}exports[a13_0x59d964(0x146)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x48232f=a14_0x5c85;(function(_0x510170,_0x498974){var _0x11517b=a14_0x5c85,_0x498d6e=_0x510170();while(!![]){try{var _0x4c2223=parseInt(_0x11517b(0x16e))/0x1+parseInt(_0x11517b(0x18d))/0x2*(parseInt(_0x11517b(0x16c))/0x3)+-parseInt(_0x11517b(0x18a))/0x4+-parseInt(_0x11517b(0x183))/0x5*(-parseInt(_0x11517b(0x180))/0x6)+parseInt(_0x11517b(0x181))/0x7*(-parseInt(_0x11517b(0x16f))/0x8)+-parseInt(_0x11517b(0x18f))/0x9+parseInt(_0x11517b(0x16d))/0xa*(parseInt(_0x11517b(0x171))/0xb);if(_0x4c2223===_0x498974)break;else _0x498d6e['push'](_0x498d6e['shift']());}catch(_0x22c869){_0x498d6e['push'](_0x498d6e['shift']());}}}(a14_0x48c7,0x1b4ed));var __decorate=this&&this['__decorate']||function(_0x37954f,_0xbe42d2,_0x5dac55,_0x2b31dc){var _0x9389f8=a14_0x5c85,_0x2fecd1=arguments[_0x9389f8(0x182)],_0x36481f=_0x2fecd1<0x3?_0xbe42d2:_0x2b31dc===null?_0x2b31dc=Object['getOwnPropertyDescriptor'](_0xbe42d2,_0x5dac55):_0x2b31dc,_0x3e3576;if(typeof Reflect==='object'&&typeof Reflect[_0x9389f8(0x187)]===_0x9389f8(0x18e))_0x36481f=Reflect['decorate'](_0x37954f,_0xbe42d2,_0x5dac55,_0x2b31dc);else{for(var _0x4fac27=_0x37954f[_0x9389f8(0x182)]-0x1;_0x4fac27>=0x0;_0x4fac27--)if(_0x3e3576=_0x37954f[_0x4fac27])_0x36481f=(_0x2fecd1<0x3?_0x3e3576(_0x36481f):_0x2fecd1>0x3?_0x3e3576(_0xbe42d2,_0x5dac55,_0x36481f):_0x3e3576(_0xbe42d2,_0x5dac55))||_0x36481f;}return _0x2fecd1>0x3&&_0x36481f&&Object[_0x9389f8(0x17a)](_0xbe42d2,_0x5dac55,_0x36481f),_0x36481f;},__metadata=this&&this[a14_0x48232f(0x176)]||function(_0x398257,_0x5912bf){var _0x26a013=a14_0x48232f;if(typeof Reflect==='object'&&typeof Reflect[_0x26a013(0x17e)]===_0x26a013(0x18e))return Reflect['metadata'](_0x398257,_0x5912bf);};Object[a14_0x48232f(0x17a)](exports,a14_0x48232f(0x185),{'value':!![]}),exports[a14_0x48232f(0x173)]=void 0x0;function a14_0x5c85(_0x3a49bf,_0x11ad83){var _0x48c7ad=a14_0x48c7();return a14_0x5c85=function(_0x5c85d0,_0xb29625){_0x5c85d0=_0x5c85d0-0x16b;var _0x35e733=_0x48c7ad[_0x5c85d0];return _0x35e733;},a14_0x5c85(_0x3a49bf,_0x11ad83);}const validator_1=require(a14_0x48232f(0x179));class PageDTO{}function a14_0x48c7(){var _0x2029b2=['length','695apImEn','min','__esModule','number','decorate','是否倒序','prototype','679592NiAfAm','排序方式','valid','2166nvfeXA','function','27612wqJiMc','Rule','303dfkPNs','580iPlfuK','11999NFNUVE','4912pHnAGF','trim','49005DTVpik','design:type','PageDTO','integer','_isreverse','__metadata','string','1:是;0:否','@anncic-api/validator','defineProperty','第一页为1,第二页为2','_order','RuleType','metadata','_page','4674nufNEf','2317jonozc'];a14_0x48c7=function(){return _0x2029b2;};return a14_0x48c7();}__decorate([(0x0,validator_1[a14_0x48232f(0x16b)])('分页',validator_1[a14_0x48232f(0x17d)][a14_0x48232f(0x186)]()[a14_0x48232f(0x174)]()[a14_0x48232f(0x184)](0x1),a14_0x48232f(0x17b)),__metadata(a14_0x48232f(0x172),Number)],PageDTO[a14_0x48232f(0x189)],a14_0x48232f(0x17f),void 0x0),__decorate([(0x0,validator_1[a14_0x48232f(0x16b)])('分页数量',validator_1[a14_0x48232f(0x17d)][a14_0x48232f(0x186)]()[a14_0x48232f(0x174)]()['min'](0x1)),__metadata(a14_0x48232f(0x172),Number)],PageDTO['prototype'],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x48232f(0x16b)])(a14_0x48232f(0x18b),validator_1[a14_0x48232f(0x17d)][a14_0x48232f(0x177)]()[a14_0x48232f(0x170)]()),__metadata(a14_0x48232f(0x172),String)],PageDTO[a14_0x48232f(0x189)],a14_0x48232f(0x17c),void 0x0),__decorate([(0x0,validator_1[a14_0x48232f(0x16b)])(a14_0x48232f(0x188),validator_1[a14_0x48232f(0x17d)][a14_0x48232f(0x186)]()[a14_0x48232f(0x174)]()[a14_0x48232f(0x18c)](0x0,0x1),a14_0x48232f(0x178)),__metadata(a14_0x48232f(0x172),Number)],PageDTO[a14_0x48232f(0x189)],a14_0x48232f(0x175),void 0x0),exports[a14_0x48232f(0x173)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.30",
|
|
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.30",
|
|
21
|
+
"@anncic-api/core": "^1.1.30",
|
|
22
|
+
"@anncic-api/event": "^1.1.30",
|
|
23
|
+
"@anncic-api/typeorm": "^1.1.30",
|
|
24
|
+
"@anncic-api/validator": "^1.1.30",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.5.2",
|
|
26
26
|
"@midwayjs/i18n": "^3.5.2",
|
|
27
27
|
"@midwayjs/koa": "^3.5.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@midwayjs/task": "^3.5.1",
|
|
30
30
|
"@midwayjs/upload": "^3.5.2",
|
|
31
31
|
"@types/bull": "^3.15.9",
|
|
32
|
-
"anncic-apihelper": "^1.1.
|
|
32
|
+
"anncic-apihelper": "^1.1.30",
|
|
33
33
|
"exceljs": "^4.3.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
35
|
"urllib": "^3.1.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"javascript-obfuscator": "2.19.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c4cd350c0dce0c5b10a04009d861ab1198059197"
|
|
43
43
|
}
|