anncic-api 1.5.11 → 1.5.13
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/decorator/Intercept.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/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x3c7bf1=a0_0x11b8;(function(_0x4fef2b,_0x1e8c29){var _0x179000=a0_0x11b8,_0x2e67fd=_0x4fef2b();while(!![]){try{var _0x5d7635=-parseInt(_0x179000(0xc7))/0x1*(-parseInt(_0x179000(0xb8))/0x2)+-parseInt(_0x179000(0xb7))/0x3+-parseInt(_0x179000(0xc0))/0x4+-parseInt(_0x179000(0xc5))/0x5+-parseInt(_0x179000(0xb1))/0x6+-parseInt(_0x179000(0xc6))/0x7*(-parseInt(_0x179000(0xb6))/0x8)+parseInt(_0x179000(0xb3))/0x9*(parseInt(_0x179000(0xb0))/0xa);if(_0x5d7635===_0x1e8c29)break;else _0x2e67fd['push'](_0x2e67fd['shift']());}catch(_0x14f3fd){_0x2e67fd['push'](_0x2e67fd['shift']());}}}(a0_0x186a,0xd5882));var a0_0x2dced9=(function(){var _0x19b946=!![];return function(_0x3da2f4,_0x444537){var _0x592d4a=_0x19b946?function(){var _0x5c32d6=a0_0x11b8;if(_0x444537){var _0x5dd220=_0x444537[_0x5c32d6(0xb4)](_0x3da2f4,arguments);return _0x444537=null,_0x5dd220;}}:function(){};return _0x19b946=![],_0x592d4a;};}()),a0_0xf094d8=a0_0x2dced9(this,function(){var _0x21c2c4=a0_0x11b8;return a0_0xf094d8['toString']()[_0x21c2c4(0xb5)](_0x21c2c4(0xc4))[_0x21c2c4(0xbc)]()[_0x21c2c4(0xb2)](a0_0xf094d8)[_0x21c2c4(0xb5)](_0x21c2c4(0xc4));});function a0_0x11b8(_0x383cc7,_0x270526){var _0x1c28f4=a0_0x186a();return a0_0x11b8=function(_0xf094d8,_0x2dced9){_0xf094d8=_0xf094d8-0xb0;var _0x186a9e=_0x1c28f4[_0xf094d8];return _0x186a9e;},a0_0x11b8(_0x383cc7,_0x270526);}a0_0xf094d8();function a0_0x186a(){var _0x20e97d=['3421638bWjErG','287632mAkBDn','json','form','defineProperty','toString','appDir','20mb','/runtime/.upload','5199808OULYtt','text','name','dhauo1234420123gg3234901','(((.+)+)+)+$','3999250PQqDQj','7oVhfWG','2qIgiuo','33531310VXaQWb','668256pSaLuL','constructor','9QMPEvr','apply','search','4684696mIiEhu'];a0_0x186a=function(){return _0x20e97d;};return a0_0x186a();}'use strict';Object[a0_0x3c7bf1(0xbb)](exports,'__esModule',{'value':!![]}),exports['default']=_0x523f58=>{var _0x3000ab=a0_0x3c7bf1;return{'apitest':!![],'keys':_0x523f58[_0x3000ab(0xc2)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x3000ab(0xc3),'checkcode':_0x3000ab(0xc3)}}},'bodyParser':{'enableTypes':[_0x3000ab(0xb9),_0x3000ab(0xba),_0x3000ab(0xc1),'xml'],'formLimit':_0x3000ab(0xbe),'jsonLimit':_0x3000ab(0xbe),'textLimit':_0x3000ab(0xbe),'xmlLimit':_0x3000ab(0xbe)},'upload':{'tmpdir':_0x523f58[_0x3000ab(0xbd)]+_0x3000ab(0xbf),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3067fb=a1_0x3e3e;function a1_0x3e3e(_0x20d3bc,_0x32fdd5){var _0x1e8ebf=a1_0x332b();return a1_0x3e3e=function(_0x42e80b,_0x4141dc){_0x42e80b=_0x42e80b-0x1c8;var _0x332b30=_0x1e8ebf[_0x42e80b];return _0x332b30;},a1_0x3e3e(_0x20d3bc,_0x32fdd5);}(function(_0x27de4b,_0x3fbcd8){var _0x328556=a1_0x3e3e,_0x305691=_0x27de4b();while(!![]){try{var _0x473431=parseInt(_0x328556(0x1d2))/0x1*(-parseInt(_0x328556(0x1d4))/0x2)+parseInt(_0x328556(0x1d0))/0x3*(-parseInt(_0x328556(0x1d1))/0x4)+parseInt(_0x328556(0x1ce))/0x5+parseInt(_0x328556(0x1d5))/0x6+parseInt(_0x328556(0x1cf))/0x7*(-parseInt(_0x328556(0x1d7))/0x8)+-parseInt(_0x328556(0x1d3))/0x9*(-parseInt(_0x328556(0x1c9))/0xa)+parseInt(_0x328556(0x1d6))/0xb;if(_0x473431===_0x3fbcd8)break;else _0x305691['push'](_0x305691['shift']());}catch(_0x30f0d9){_0x305691['push'](_0x305691['shift']());}}}(a1_0x332b,0x6f13c));function a1_0x332b(){var _0x2bf004=['113706IGPpgG','2ULHYuy','3918840mQXDFm','18984042gnPbAH','158192Wjrekl','toString','search','130NmBaAv','(((.+)+)+)+$','__esModule','defineProperty','default','786375JnnyLg','301ELKMvF','2682564CzATJT','4poGMnY','501037RDHZmu'];a1_0x332b=function(){return _0x2bf004;};return a1_0x332b();}var a1_0x4141dc=(function(){var _0x363e3b=!![];return function(_0x3e31ac,_0x155caa){var _0x48365a=_0x363e3b?function(){if(_0x155caa){var _0x242de0=_0x155caa['apply'](_0x3e31ac,arguments);return _0x155caa=null,_0x242de0;}}:function(){};return _0x363e3b=![],_0x48365a;};}()),a1_0x42e80b=a1_0x4141dc(this,function(){var _0xb7e623=a1_0x3e3e;return a1_0x42e80b['toString']()[_0xb7e623(0x1c8)]('(((.+)+)+)+$')[_0xb7e623(0x1d8)]()['constructor'](a1_0x42e80b)['search'](_0xb7e623(0x1ca));});a1_0x42e80b();'use strict';Object[a1_0x3067fb(0x1cc)](exports,a1_0x3067fb(0x1cb),{'value':!![]}),exports[a1_0x3067fb(0x1cd)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x135b45=a2_0xfeaf;(function(_0x3f5394,_0x4062f6){const _0x17c6fd=a2_0xfeaf,_0x83d6a4=_0x3f5394();while(!![]){try{const _0x120568=-parseInt(_0x17c6fd(0x1c4))/0x1+parseInt(_0x17c6fd(0x1e9))/0x2*(-parseInt(_0x17c6fd(0x172))/0x3)+parseInt(_0x17c6fd(0x1a4))/0x4*(parseInt(_0x17c6fd(0x1d5))/0x5)+-parseInt(_0x17c6fd(0x19d))/0x6*(-parseInt(_0x17c6fd(0x188))/0x7)+parseInt(_0x17c6fd(0x18a))/0x8+-parseInt(_0x17c6fd(0x1ce))/0x9+parseInt(_0x17c6fd(0x17c))/0xa*(-parseInt(_0x17c6fd(0x189))/0xb);if(_0x120568===_0x4062f6)break;else _0x83d6a4['push'](_0x83d6a4['shift']());}catch(_0x2dd466){_0x83d6a4['push'](_0x83d6a4['shift']());}}}(a2_0x30e6,0x3b3df));const a2_0x4dc9d7=(function(){let _0x5892bc=!![];return function(_0x35dc95,_0x25f373){const _0x38bef5=_0x5892bc?function(){const _0x4e8132=a2_0xfeaf;if(_0x25f373){const _0x1dd0fb=_0x25f373[_0x4e8132(0x1ac)](_0x35dc95,arguments);return _0x25f373=null,_0x1dd0fb;}}:function(){};return _0x5892bc=![],_0x38bef5;};}()),a2_0x1b3fcd=a2_0x4dc9d7(this,function(){const _0x6860e6=a2_0xfeaf;return a2_0x1b3fcd[_0x6860e6(0x1d9)]()[_0x6860e6(0x1a7)](_0x6860e6(0x17d))['toString']()[_0x6860e6(0x1ad)](a2_0x1b3fcd)['search']('(((.+)+)+)+$');});a2_0x1b3fcd();'use strict';var __decorate=this&&this[a2_0x135b45(0x1dc)]||function(_0x5cbd90,_0x23cbc6,_0x3f8be4,_0x4a4698){const _0x288628=a2_0x135b45;var _0x152670=arguments[_0x288628(0x1b1)],_0x2aa1a6=_0x152670<0x3?_0x23cbc6:_0x4a4698===null?_0x4a4698=Object['getOwnPropertyDescriptor'](_0x23cbc6,_0x3f8be4):_0x4a4698,_0x4ca0b4;if(typeof Reflect===_0x288628(0x1b8)&&typeof Reflect['decorate']===_0x288628(0x1bd))_0x2aa1a6=Reflect['decorate'](_0x5cbd90,_0x23cbc6,_0x3f8be4,_0x4a4698);else{for(var _0x4f95f2=_0x5cbd90['length']-0x1;_0x4f95f2>=0x0;_0x4f95f2--)if(_0x4ca0b4=_0x5cbd90[_0x4f95f2])_0x2aa1a6=(_0x152670<0x3?_0x4ca0b4(_0x2aa1a6):_0x152670>0x3?_0x4ca0b4(_0x23cbc6,_0x3f8be4,_0x2aa1a6):_0x4ca0b4(_0x23cbc6,_0x3f8be4))||_0x2aa1a6;}return _0x152670>0x3&&_0x2aa1a6&&Object[_0x288628(0x1da)](_0x23cbc6,_0x3f8be4,_0x2aa1a6),_0x2aa1a6;},__metadata=this&&this[a2_0x135b45(0x1d7)]||function(_0x12e695,_0x5f2f77){const _0x3d9e6d=a2_0x135b45;if(typeof Reflect===_0x3d9e6d(0x1b8)&&typeof Reflect[_0x3d9e6d(0x18e)]==='function')return Reflect['metadata'](_0x12e695,_0x5f2f77);};function a2_0x30e6(){const _0x4fa077=['length','CustomConfiguration','context','addObject','registerMethodHandler','method','_matchedRoute','object','target','Inject','getAsync','isArray','function','filterConfig','app','handlerActionRoute','MidwayDecoratorService','headers','@midwayjs/i18n','215335jUEKSW','intercept','DEFAULT','staticFile','isDevelopmentEnvironment','query','文件不存在','undefined','ApiError','prototype','251280icaNiq','Anncic-api\x20static-file\x20:\x20mkdir\x20','environment','dir','default','getClassMetadata','Types','6935VXWadk','koa-send','__metadata','@midwayjs/upload','toString','defineProperty','REQUEST_OBJ_CTX_KEY','__decorate','body','./exception/ApiError','request','isString','@midwayjs/koa','handler','ApiService','readdirSync','log','@anncic-api/typeorm','App','config','4TDXPDP','design:type','existsSync','args','INTERCEPT_KEY','input','./service/ApiService','forEach','@anncic-api/core','507213RMaAJq','/runtime/apps-','/runtime','bodyXml','@midwayjs/static-file','ACTION_ROUTE_KEY','loggerConfig','./types/intercept','clients','application','18990QQUCor','(((.+)+)+)+$','@anncic-api/event','toLowerCase','MidwayApplicationManager','keys','__esModule','upload','onReady','midwayLogger','device','getApplications','3371977RuYxTV','3113cblFIz','3864608KgKFRF','getAppDir','anncicapi','MidwayConfigService','metadata','string','/apps','devices','decorator','proceed','MidwayEnvironmentService','hanlderApplications','getBaseDir','defaultsDeep','get','isFunction','isDirectory','@midwayjs/core','./types/action','6YPaacj','match','dirs','apimit','/apps/','mkdirSync','assign','1144EinoaC','tmpdir','key','search','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','requestContext','@anncic-api/validator','InterceptTargetTmp','apply','constructor','getConfiguration','HEADERS_SIGNATURE','isClass'];a2_0x30e6=function(){return _0x4fa077;};return a2_0x30e6();}function a2_0xfeaf(_0x20ee50,_0x943289){const _0x13d96f=a2_0x30e6();return a2_0xfeaf=function(_0x1b3fcd,_0x4dc9d7){_0x1b3fcd=_0x1b3fcd-0x16a;let _0x30e677=_0x13d96f[_0x1b3fcd];return _0x30e677;},a2_0xfeaf(_0x20ee50,_0x943289);}Object[a2_0x135b45(0x1da)](exports,a2_0x135b45(0x182),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x135b45(0x19b)),core_2=require(a2_0x135b45(0x19b)),ApiError_1=require(a2_0x135b45(0x1de)),ApiService_1=require(a2_0x135b45(0x16f)),action_1=require(a2_0x135b45(0x19c)),intercept_1=require(a2_0x135b45(0x179)),fs=require('fs'),koasend=require(a2_0x135b45(0x1d6)),koa=require(a2_0x135b45(0x1e1)),i18n=require(a2_0x135b45(0x1c3)),upload=require(a2_0x135b45(0x1d8)),staticFile=require(a2_0x135b45(0x176)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require('./config/config.default'),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x135b45(0x171)),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x135b45(0x17e)),anncicTypeorm=require(a2_0x135b45(0x1e6)),anncicValidator=require(a2_0x135b45(0x1aa)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x135b45(0x184)](){const _0x37b9ed=a2_0x135b45;await this['filterConfig'](),await this[_0x37b9ed(0x178)](),await this['checkConfigKeys'](),await this[_0x37b9ed(0x1c0)](),await this[_0x37b9ed(0x195)]();}async['checkConfigKeys'](){}async[a2_0x135b45(0x1c0)](){const _0x29708a=a2_0x135b45,_0x2cfa38=(0x0,core_1[_0x29708a(0x1d3)])(intercept_1[_0x29708a(0x16d)],intercept_1[_0x29708a(0x1ab)])||{};this['decorator'][_0x29708a(0x1b5)](action_1[_0x29708a(0x177)],_0x39673c=>{const _0x520a61=_0x39673c['metadata'];return{'before':async _0x4b56f1=>{const _0x9bbbd6=a2_0xfeaf;var _0x3813c5,_0x367002;const _0x21531f=(_0x3813c5=_0x4b56f1===null||_0x4b56f1===void 0x0?void 0x0:_0x4b56f1[_0x9bbbd6(0x1b9)])===null||_0x3813c5===void 0x0?void 0x0:_0x3813c5[core_2[_0x9bbbd6(0x1db)]];if(_0x21531f&&(_0x520a61===null||_0x520a61===void 0x0?void 0x0:_0x520a61['apimit'])){if(!this[_0x9bbbd6(0x1e3)]['checksign']((_0x367002=_0x21531f===null||_0x21531f===void 0x0?void 0x0:_0x21531f['request'])===null||_0x367002===void 0x0?void 0x0:_0x367002[_0x9bbbd6(0x1c2)]))throw new AnnError(ApiError_1[_0x9bbbd6(0x1cc)][_0x9bbbd6(0x1af)]);}},'around':async _0x123ac2=>{const _0x34cb86=a2_0xfeaf;var _0x35cde9,_0x1db56b,_0x2b705a;const _0x14a743=(_0x35cde9=_0x123ac2===null||_0x123ac2===void 0x0?void 0x0:_0x123ac2[_0x34cb86(0x1b9)])===null||_0x35cde9===void 0x0?void 0x0:_0x35cde9[core_2[_0x34cb86(0x1db)]];if(_0x14a743&&(_0x520a61===null||_0x520a61===void 0x0?void 0x0:_0x520a61[_0x34cb86(0x1a0)])&&((_0x520a61===null||_0x520a61===void 0x0?void 0x0:_0x520a61[_0x34cb86(0x1c5)])||typeof(_0x520a61===null||_0x520a61===void 0x0?void 0x0:_0x520a61[_0x34cb86(0x1c5)])==_0x34cb86(0x1cb))){if(((_0x1db56b=_0x14a743[_0x34cb86(0x1c2)])===null||_0x1db56b===void 0x0?void 0x0:_0x1db56b[_0x34cb86(0x186)])&&((_0x2b705a=_0x2cfa38===null||_0x2cfa38===void 0x0?void 0x0:_0x2cfa38[_0x14a743['headers'][_0x34cb86(0x186)]])===null||_0x2b705a===void 0x0?void 0x0:_0x2b705a[_0x34cb86(0x1b1)])>0x0)for(const _0x433fe1 of _0x2cfa38[_0x14a743[_0x34cb86(0x1c2)][_0x34cb86(0x186)]]||[]){if(core_1[_0x34cb86(0x1d4)][_0x34cb86(0x1b0)](_0x433fe1)){const _0x2fe3a0=await _0x14a743[_0x34cb86(0x1a9)][_0x34cb86(0x1bb)](_0x433fe1);typeof(_0x2fe3a0===null||_0x2fe3a0===void 0x0?void 0x0:_0x2fe3a0[_0x34cb86(0x19e)])==_0x34cb86(0x1bd)?await _0x2fe3a0[_0x34cb86(0x19e)](_0x14a743,typeof(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b6)])==_0x34cb86(0x18f)&&(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)])?_0x14a743[_0x34cb86(0x1b6)][_0x34cb86(0x17f)]()+'@'+(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)]):undefined,_0x520a61)&&await _0x2fe3a0[_0x34cb86(0x1e2)](_0x14a743,typeof(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b6)])=='string'&&(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)])?_0x14a743[_0x34cb86(0x1b6)][_0x34cb86(0x17f)]()+'@'+(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)]):undefined,_0x520a61):await _0x2fe3a0[_0x34cb86(0x1e2)](_0x14a743,typeof(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b6)])==_0x34cb86(0x18f)&&(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)])?_0x14a743[_0x34cb86(0x1b6)][_0x34cb86(0x17f)]()+'@'+(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)]):undefined,_0x520a61);}else core_1['Types'][_0x34cb86(0x199)](_0x433fe1)&&await _0x433fe1(_0x14a743,typeof(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743['method'])==_0x34cb86(0x18f)&&(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743[_0x34cb86(0x1b7)])?_0x14a743[_0x34cb86(0x1b6)][_0x34cb86(0x17f)]()+'@'+(_0x14a743===null||_0x14a743===void 0x0?void 0x0:_0x14a743['_matchedRoute']):undefined,_0x520a61);}}return await _0x123ac2[_0x34cb86(0x193)](..._0x123ac2[_0x34cb86(0x16c)]);},'afterThrow':(_0x35cbf0,_0x4b1dbf)=>{throw _0x4b1dbf;}};});}async[a2_0x135b45(0x195)](){const _0x180967=a2_0x135b45;this[_0x180967(0x17b)][_0x180967(0x187)](['koa'])[_0x180967(0x170)](_0x21ff1e=>{const _0x43b98d=_0x180967;(_0x21ff1e===null||_0x21ff1e===void 0x0?void 0x0:_0x21ff1e[_0x43b98d(0x1b3)])&&Object['defineProperties'](_0x21ff1e[_0x43b98d(0x1b3)],{'ok':{'value':function(_0x3d1957,_0x38fa35,_0x380aab=0x0){return{'code':_0x380aab,'data':_0x3d1957,'extra':_0x38fa35};}},'input':{'value':function(_0x2d0e52,_0x485f6d){const _0x177e99=_0x43b98d;var _0x3c1665;const _0x2ea44a=lodash[_0x177e99(0x197)]({},this[_0x177e99(0x1df)][_0x177e99(0x1dd)]||this[_0x177e99(0x1df)][((_0x3c1665=config===null||config===void 0x0?void 0x0:config[_0x177e99(0x175)])===null||_0x3c1665===void 0x0?void 0x0:_0x3c1665[_0x177e99(0x1a6)])||_0x177e99(0x1dd)]||{},this[_0x177e99(0x1df)][_0x177e99(0x1c9)]||{});return _0x2d0e52?lodash[_0x177e99(0x198)](_0x2ea44a,_0x2d0e52,_0x485f6d):_0x2ea44a;}},'when':{'value':async function(_0x1b638c,_0x5ec65d){const _0x3785dd=_0x43b98d,_0x52638f=this[_0x3785dd(0x16e)](_0x1b638c,null);if(!lodash['isNull'](_0x52638f))return await _0x5ec65d(_0x52638f);}},'only':{'value':function(_0x26df5a){const _0x68917b=_0x43b98d,_0x28c94f={};for(let _0xf0efe3=0x0;_0xf0efe3<_0x26df5a[_0x68917b(0x1b1)];_0xf0efe3++){lodash[_0x68917b(0x1bc)](_0x26df5a[_0xf0efe3])&&_0x26df5a[_0xf0efe3][_0x68917b(0x1b1)]>0x0&&lodash[_0x68917b(0x1e0)](_0x26df5a[_0xf0efe3][0x0])&&(_0x28c94f[_0x26df5a[_0xf0efe3][0x0]]=this[_0x68917b(0x16e)](_0x26df5a[_0xf0efe3][0x0],_0x26df5a[_0xf0efe3][_0x68917b(0x1b1)]>0x1?_0x26df5a[_0xf0efe3][0x1]:null));}return _0x28c94f;}},'koasend':{'value':function(_0x4f702c,_0x1e1247){const _0x24eeb5=_0x43b98d;if(!fs['existsSync'](this['app'][_0x24eeb5(0x18b)]()+'/'+_0x4f702c))return _0x24eeb5(0x1ca);return this['attachment'](_0x1e1247||_0x4f702c),koasend(this,_0x4f702c);}}});});}async['loggerConfig'](){const _0x157e28=a2_0x135b45;var _0x364142,_0x27b061;if(fs[_0x157e28(0x16b)](this['app'][_0x157e28(0x196)]()+_0x157e28(0x190))&&fs['statSync'](this[_0x157e28(0x1bf)][_0x157e28(0x196)]()+_0x157e28(0x190))[_0x157e28(0x19a)]()){const _0x17c07b=this[_0x157e28(0x1e8)][_0x157e28(0x1ae)](),_0x74b382=((_0x364142=_0x17c07b===null||_0x17c07b===void 0x0?void 0x0:_0x17c07b[_0x157e28(0x185)])===null||_0x364142===void 0x0?void 0x0:_0x364142[_0x157e28(0x17a)])||{};for(const _0x5a2557 of fs[_0x157e28(0x1e4)](this[_0x157e28(0x1bf)][_0x157e28(0x196)]()+'/apps')){if(!fs['statSync'](this[_0x157e28(0x1bf)][_0x157e28(0x196)]()+_0x157e28(0x1a1)+_0x5a2557)['isDirectory']())continue;if(_0x74b382===null||_0x74b382===void 0x0?void 0x0:_0x74b382[_0x5a2557])continue;_0x74b382[_0x5a2557]=Object[_0x157e28(0x1a3)]({},((_0x27b061=_0x17c07b===null||_0x17c07b===void 0x0?void 0x0:_0x17c07b[_0x157e28(0x185)])===null||_0x27b061===void 0x0?void 0x0:_0x27b061[_0x157e28(0x1d2)])||{'maxSize':'1m','dir':this[_0x157e28(0x1bf)][_0x157e28(0x18b)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this['environment'][_0x157e28(0x1c8)](),'fileLogName':_0x5a2557+'.log','dir':this[_0x157e28(0x1bf)][_0x157e28(0x18b)]()+_0x157e28(0x173)+_0x5a2557+'-log'});}Object[_0x157e28(0x181)](_0x74b382)['length']>0x0&&(!_0x17c07b['midwayLogger']&&(_0x17c07b[_0x157e28(0x185)]={'default':{'maxSize':'1m','dir':this['app'][_0x157e28(0x18b)]()+_0x157e28(0x174)}}),_0x17c07b[_0x157e28(0x185)][_0x157e28(0x17a)]=_0x74b382),this[_0x157e28(0x1e8)][_0x157e28(0x1b4)](_0x17c07b);}}async[a2_0x135b45(0x1be)](){const _0x36910b=a2_0x135b45;var _0x3daf86,_0x4ea29e,_0x3e52e7,_0x26f057,_0x4a6e2c,_0xd4c715;const _0x2343ba=this['config']['getConfiguration']();((_0x4ea29e=(_0x3daf86=_0x2343ba===null||_0x2343ba===void 0x0?void 0x0:_0x2343ba[_0x36910b(0x18c)])===null||_0x3daf86===void 0x0?void 0x0:_0x3daf86['devices'])===null||_0x4ea29e===void 0x0?void 0x0:_0x4ea29e[_0x36910b(0x1c6)])&&Object[_0x36910b(0x181)](_0x2343ba[_0x36910b(0x18c)]['devices'])[_0x36910b(0x1b1)]>0x1&&delete _0x2343ba[_0x36910b(0x18c)][_0x36910b(0x191)][_0x36910b(0x1c6)];if((_0x3e52e7=_0x2343ba===null||_0x2343ba===void 0x0?void 0x0:_0x2343ba[_0x36910b(0x1c7)])===null||_0x3e52e7===void 0x0?void 0x0:_0x3e52e7[_0x36910b(0x19f)])for(const _0x25121d in _0x2343ba[_0x36910b(0x1c7)]['dirs']){((_0x26f057=_0x2343ba[_0x36910b(0x1c7)][_0x36910b(0x19f)][_0x25121d])===null||_0x26f057===void 0x0?void 0x0:_0x26f057[_0x36910b(0x1d1)])&&typeof((_0x4a6e2c=_0x2343ba[_0x36910b(0x1c7)][_0x36910b(0x19f)][_0x25121d])===null||_0x4a6e2c===void 0x0?void 0x0:_0x4a6e2c[_0x36910b(0x1d1)])==_0x36910b(0x18f)&&!fs[_0x36910b(0x16b)](_0x2343ba[_0x36910b(0x1c7)][_0x36910b(0x19f)][_0x25121d][_0x36910b(0x1d1)])&&(fs[_0x36910b(0x1a2)](_0x2343ba['staticFile']['dirs'][_0x25121d][_0x36910b(0x1d1)],{'recursive':!![]}),console[_0x36910b(0x1e5)](_0x36910b(0x1cf)+_0x2343ba[_0x36910b(0x1c7)][_0x36910b(0x19f)][_0x25121d][_0x36910b(0x1d1)]));}((_0xd4c715=_0x2343ba===null||_0x2343ba===void 0x0?void 0x0:_0x2343ba[_0x36910b(0x183)])===null||_0xd4c715===void 0x0?void 0x0:_0xd4c715[_0x36910b(0x1a5)])&&!fs[_0x36910b(0x16b)](_0x2343ba[_0x36910b(0x183)]['tmpdir'])&&(fs[_0x36910b(0x1a2)](_0x2343ba[_0x36910b(0x183)]['tmpdir'],{'recursive':!![]}),console[_0x36910b(0x1e5)](_0x36910b(0x1a8)+_0x2343ba[_0x36910b(0x183)][_0x36910b(0x1a5)])),this[_0x36910b(0x1e8)][_0x36910b(0x1b4)](_0x2343ba);}};__decorate([(0x0,core_1[a2_0x135b45(0x1e7)])(),__metadata(a2_0x135b45(0x16a),Object)],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x1bf),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x135b45(0x16a),core_2[a2_0x135b45(0x18d)])],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x1e8),void 0x0),__decorate([(0x0,core_1[a2_0x135b45(0x1ba)])(),__metadata('design:type',core_2[a2_0x135b45(0x1c1)])],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x192),void 0x0),__decorate([(0x0,core_1[a2_0x135b45(0x1ba)])(),__metadata(a2_0x135b45(0x16a),core_2[a2_0x135b45(0x180)])],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x17b),void 0x0),__decorate([(0x0,core_1[a2_0x135b45(0x1ba)])(),__metadata(a2_0x135b45(0x16a),core_2[a2_0x135b45(0x194)])],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x1d0),void 0x0),__decorate([(0x0,core_1[a2_0x135b45(0x1ba)])(),__metadata(a2_0x135b45(0x16a),ApiService_1[a2_0x135b45(0x1e3)])],CustomConfiguration[a2_0x135b45(0x1cd)],a2_0x135b45(0x1e3),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x135b45(0x1b2)]=CustomConfiguration;
|
|
1
|
+
const a2_0x105767=a2_0x6ec2;function a2_0x6ec2(_0x413405,_0x2e1c1b){const _0x19e249=a2_0x762b();return a2_0x6ec2=function(_0x2087b3,_0x54a1c3){_0x2087b3=_0x2087b3-0xc6;let _0x762b88=_0x19e249[_0x2087b3];return _0x762b88;},a2_0x6ec2(_0x413405,_0x2e1c1b);}(function(_0x3b23f5,_0x36a411){const _0xcf2bc4=a2_0x6ec2,_0x2c2eef=_0x3b23f5();while(!![]){try{const _0x19a35d=-parseInt(_0xcf2bc4(0x12e))/0x1*(-parseInt(_0xcf2bc4(0x120))/0x2)+-parseInt(_0xcf2bc4(0xd2))/0x3*(-parseInt(_0xcf2bc4(0x108))/0x4)+-parseInt(_0xcf2bc4(0x103))/0x5+parseInt(_0xcf2bc4(0x10b))/0x6*(parseInt(_0xcf2bc4(0x130))/0x7)+parseInt(_0xcf2bc4(0x125))/0x8+-parseInt(_0xcf2bc4(0x10d))/0x9*(parseInt(_0xcf2bc4(0x137))/0xa)+parseInt(_0xcf2bc4(0xe5))/0xb;if(_0x19a35d===_0x36a411)break;else _0x2c2eef['push'](_0x2c2eef['shift']());}catch(_0x7b2d0b){_0x2c2eef['push'](_0x2c2eef['shift']());}}}(a2_0x762b,0x48912));const a2_0x54a1c3=(function(){let _0x2ae095=!![];return function(_0x3e8967,_0xda5526){const _0x3718d7=_0x2ae095?function(){const _0x500f9a=a2_0x6ec2;if(_0xda5526){const _0x5594eb=_0xda5526[_0x500f9a(0x132)](_0x3e8967,arguments);return _0xda5526=null,_0x5594eb;}}:function(){};return _0x2ae095=![],_0x3718d7;};}()),a2_0x2087b3=a2_0x54a1c3(this,function(){const _0x533421=a2_0x6ec2;return a2_0x2087b3['toString']()[_0x533421(0xec)]('(((.+)+)+)+$')[_0x533421(0x121)]()[_0x533421(0x10c)](a2_0x2087b3)[_0x533421(0xec)](_0x533421(0xd8));});a2_0x2087b3();'use strict';var __decorate=this&&this[a2_0x105767(0xe7)]||function(_0x32a037,_0xd483fc,_0x5924d7,_0x398daf){const _0x1d44b6=a2_0x105767;var _0x3727aa=arguments[_0x1d44b6(0xfa)],_0x211206=_0x3727aa<0x3?_0xd483fc:_0x398daf===null?_0x398daf=Object[_0x1d44b6(0x136)](_0xd483fc,_0x5924d7):_0x398daf,_0xf7ed02;if(typeof Reflect===_0x1d44b6(0x101)&&typeof Reflect[_0x1d44b6(0xc9)]===_0x1d44b6(0xe2))_0x211206=Reflect[_0x1d44b6(0xc9)](_0x32a037,_0xd483fc,_0x5924d7,_0x398daf);else{for(var _0x1107e7=_0x32a037[_0x1d44b6(0xfa)]-0x1;_0x1107e7>=0x0;_0x1107e7--)if(_0xf7ed02=_0x32a037[_0x1107e7])_0x211206=(_0x3727aa<0x3?_0xf7ed02(_0x211206):_0x3727aa>0x3?_0xf7ed02(_0xd483fc,_0x5924d7,_0x211206):_0xf7ed02(_0xd483fc,_0x5924d7))||_0x211206;}return _0x3727aa>0x3&&_0x211206&&Object['defineProperty'](_0xd483fc,_0x5924d7,_0x211206),_0x211206;},__metadata=this&&this[a2_0x105767(0xfb)]||function(_0x219d2c,_0x4cc1b4){const _0x22d2ea=a2_0x105767;if(typeof Reflect==='object'&&typeof Reflect[_0x22d2ea(0x109)]===_0x22d2ea(0xe2))return Reflect['metadata'](_0x219d2c,_0x4cc1b4);};Object[a2_0x105767(0xf8)](exports,a2_0x105767(0xe8),{'value':!![]}),exports[a2_0x105767(0x131)]=void 0x0;const core_1=require(a2_0x105767(0x138)),core_2=require(a2_0x105767(0x138)),ApiError_1=require(a2_0x105767(0xe0)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x105767(0xe3)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x105767(0xf9)),koa=require(a2_0x105767(0x11f)),i18n=require(a2_0x105767(0x100)),upload=require(a2_0x105767(0xcb)),staticFile=require(a2_0x105767(0xde)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x105767(0xe1)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x105767(0x142)),anncicCache=require(a2_0x105767(0xfe)),anncicEvent=require(a2_0x105767(0xdb)),anncicTypeorm=require(a2_0x105767(0xc7)),anncicValidator=require(a2_0x105767(0xc8)),anncicHelper=require(a2_0x105767(0xf5));function a2_0x762b(){const _0x2d24ba=['defineProperty','koa-send','length','__metadata','MidwayEnvironmentService','App','@anncic-api/cache','isClass','@midwayjs/i18n','object','readdirSync','3155tVIhix','dir','isArray','MidwayDecoratorService','registerMethodHandler','12VRhaka','metadata','tmpdir','83742INOFxH','constructor','9DPJytE','getClassMetadata','isString','input','Anncic-api\x20static-file\x20:\x20mkdir\x20','app','onReady','Configuration','ApiService','DEFAULT','getConfiguration','handler','clients','bodyXml','isDirectory','apimit','isDevelopmentEnvironment','/apps','@midwayjs/koa','12jnvfeL','toString','koa','assign','ACTION_ROUTE_KEY','2068040jYxjxl','keys','REQUEST_OBJ_CTX_KEY','design:type','method','anncicapi','getApplications','intercept','Inject','25859nkHOVx','headers','91UQIHLk','CustomConfiguration','apply','InterceptTargetTmp','upload','checkConfigKeys','getOwnPropertyDescriptor','5465290tVlEON','@midwayjs/core','getAppDir','mkdirSync','query','existsSync','addObject','checksign','args','environment','context','@anncic-api/core','forEach','request','/apps/','getBaseDir','@anncic-api/typeorm','@anncic-api/validator','decorate','文件不存在','@midwayjs/upload','application','MidwayApplicationManager','devices','/runtime/apps-','decorator','body','25281TwsVwn','defineProperties','staticFile','dirs','device','loggerConfig','(((.+)+)+)+$','handlerActionRoute','toLowerCase','@anncic-api/event','statSync','prototype','@midwayjs/static-file','config','./exception/ApiError','./config/config.default','function','./types/action','HEADERS_SIGNATURE','2464143MumqtR','Types','__decorate','__esModule','/runtime','requestContext','INTERCEPT_KEY','search','_matchedRoute','defaultsDeep','hanlderApplications','midwayLogger','undefined','default','log','anncic-api','anncic-apihelper','target','string'];a2_0x762b=function(){return _0x2d24ba;};return a2_0x762b();}let CustomConfiguration=class CustomConfiguration{async[a2_0x105767(0x113)](){const _0x194ba2=a2_0x105767;await this['filterConfig'](),await this[_0x194ba2(0xd7)](),await this['checkConfigKeys'](),await this[_0x194ba2(0xd9)](),await this['hanlderApplications']();}async[a2_0x105767(0x135)](){}async[a2_0x105767(0xd9)](){const _0x54911b=a2_0x105767,_0x50ed06=(0x0,core_1[_0x54911b(0x10e)])(intercept_1[_0x54911b(0xeb)],intercept_1[_0x54911b(0x133)])||{};this[_0x54911b(0xd0)][_0x54911b(0x107)](action_1[_0x54911b(0x124)],_0x134bcd=>{const _0x1fec6c=_0x134bcd['metadata'];return{'before':async _0x52c38e=>{const _0x44864a=a2_0x6ec2;var _0x34fd81,_0x38363c;const _0x3dba1e=(_0x34fd81=_0x52c38e===null||_0x52c38e===void 0x0?void 0x0:_0x52c38e['target'])===null||_0x34fd81===void 0x0?void 0x0:_0x34fd81[core_2[_0x44864a(0x127)]];if(_0x3dba1e&&(_0x1fec6c===null||_0x1fec6c===void 0x0?void 0x0:_0x1fec6c[_0x44864a(0x11c)])){if(!this['ApiService'][_0x44864a(0x13e)]((_0x38363c=_0x3dba1e===null||_0x3dba1e===void 0x0?void 0x0:_0x3dba1e['request'])===null||_0x38363c===void 0x0?void 0x0:_0x38363c['headers']))throw new AnnError(ApiError_1['ApiError'][_0x44864a(0xe4)]);}},'around':async _0x3651cb=>{const _0x52fa23=a2_0x6ec2;var _0x1abfcc,_0x244201,_0x44fa70;const _0x100911=(_0x1abfcc=_0x3651cb===null||_0x3651cb===void 0x0?void 0x0:_0x3651cb[_0x52fa23(0xf6)])===null||_0x1abfcc===void 0x0?void 0x0:_0x1abfcc[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x100911&&(_0x1fec6c===null||_0x1fec6c===void 0x0?void 0x0:_0x1fec6c['apimit'])&&((_0x1fec6c===null||_0x1fec6c===void 0x0?void 0x0:_0x1fec6c[_0x52fa23(0x12c)])||typeof(_0x1fec6c===null||_0x1fec6c===void 0x0?void 0x0:_0x1fec6c['intercept'])==_0x52fa23(0xf1))){if(((_0x244201=_0x100911['headers'])===null||_0x244201===void 0x0?void 0x0:_0x244201[_0x52fa23(0xd6)])&&((_0x44fa70=_0x50ed06===null||_0x50ed06===void 0x0?void 0x0:_0x50ed06[_0x100911['headers'][_0x52fa23(0xd6)]])===null||_0x44fa70===void 0x0?void 0x0:_0x44fa70[_0x52fa23(0xfa)])>0x0)for(const _0x5ba3c1 of _0x50ed06[_0x100911[_0x52fa23(0x12f)][_0x52fa23(0xd6)]]||[]){if(core_1['Types'][_0x52fa23(0xff)](_0x5ba3c1)){const _0x36ded7=await _0x100911[_0x52fa23(0xea)]['getAsync'](_0x5ba3c1);typeof(_0x36ded7===null||_0x36ded7===void 0x0?void 0x0:_0x36ded7['match'])==_0x52fa23(0xe2)?await _0x36ded7['match'](_0x100911,typeof(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0x129)])==_0x52fa23(0xf7)&&(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)])?_0x100911[_0x52fa23(0x129)]['toLowerCase']()+'@'+(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)]):undefined,_0x1fec6c)&&await _0x36ded7[_0x52fa23(0x118)](_0x100911,typeof(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0x129)])==_0x52fa23(0xf7)&&(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)])?_0x100911['method']['toLowerCase']()+'@'+(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)]):undefined,_0x1fec6c):await _0x36ded7[_0x52fa23(0x118)](_0x100911,typeof(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911['method'])==_0x52fa23(0xf7)&&(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)])?_0x100911[_0x52fa23(0x129)]['toLowerCase']()+'@'+(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0xed)]):undefined,_0x1fec6c);}else core_1[_0x52fa23(0xe6)]['isFunction'](_0x5ba3c1)&&await _0x5ba3c1(_0x100911,typeof(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911[_0x52fa23(0x129)])==_0x52fa23(0xf7)&&(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911['_matchedRoute'])?_0x100911[_0x52fa23(0x129)][_0x52fa23(0xda)]()+'@'+(_0x100911===null||_0x100911===void 0x0?void 0x0:_0x100911['_matchedRoute']):undefined,_0x1fec6c);}}return await _0x3651cb['proceed'](..._0x3651cb[_0x52fa23(0x13f)]);},'afterThrow':(_0x13f0e0,_0x32550a)=>{throw _0x32550a;}};});}async[a2_0x105767(0xef)](){const _0x1b1ebb=a2_0x105767;this[_0x1b1ebb(0xcc)][_0x1b1ebb(0x12b)]([_0x1b1ebb(0x122)])[_0x1b1ebb(0x143)](_0x124a16=>{const _0x736a14=_0x1b1ebb;(_0x124a16===null||_0x124a16===void 0x0?void 0x0:_0x124a16[_0x736a14(0x141)])&&Object[_0x736a14(0xd3)](_0x124a16['context'],{'ok':{'value':function(_0x354a9b,_0x388512,_0x376c81=0x0){return{'code':_0x376c81,'data':_0x354a9b,'extra':_0x388512};}},'input':{'value':function(_0x46b301,_0x4d052a){const _0x164ee5=_0x736a14;var _0x13f9d5;const _0x451594=lodash[_0x164ee5(0xee)]({},this['request'][_0x164ee5(0xd1)]||this[_0x164ee5(0x144)][((_0x13f9d5=config===null||config===void 0x0?void 0x0:config[_0x164ee5(0x11a)])===null||_0x13f9d5===void 0x0?void 0x0:_0x13f9d5['key'])||_0x164ee5(0xd1)]||{},this[_0x164ee5(0x144)][_0x164ee5(0x13b)]||{});return _0x46b301?lodash['get'](_0x451594,_0x46b301,_0x4d052a):_0x451594;}},'when':{'value':async function(_0xc14b6a,_0x1ceea6){const _0x5a88c7=_0x736a14,_0x181e49=this[_0x5a88c7(0x110)](_0xc14b6a,null);if(!lodash['isNull'](_0x181e49))return await _0x1ceea6(_0x181e49);}},'only':{'value':function(_0x49ae9d){const _0x3ad357=_0x736a14,_0x371d50={};for(let _0x3be6aa=0x0;_0x3be6aa<_0x49ae9d['length'];_0x3be6aa++){lodash[_0x3ad357(0x105)](_0x49ae9d[_0x3be6aa])&&_0x49ae9d[_0x3be6aa][_0x3ad357(0xfa)]>0x0&&lodash[_0x3ad357(0x10f)](_0x49ae9d[_0x3be6aa][0x0])&&(_0x371d50[_0x49ae9d[_0x3be6aa][0x0]]=this['input'](_0x49ae9d[_0x3be6aa][0x0],_0x49ae9d[_0x3be6aa][_0x3ad357(0xfa)]>0x1?_0x49ae9d[_0x3be6aa][0x1]:null));}return _0x371d50;}},'koasend':{'value':function(_0x1d4359,_0x56a86b){const _0x59c598=_0x736a14;if(!fs['existsSync'](this[_0x59c598(0x112)]['getAppDir']()+'/'+_0x1d4359))return _0x59c598(0xca);return this['attachment'](_0x56a86b||_0x1d4359),koasend(this,_0x1d4359);}}});});}async['loggerConfig'](){const _0x1569c4=a2_0x105767;var _0x1455a3,_0x4c8c07;if(fs['existsSync'](this[_0x1569c4(0x112)][_0x1569c4(0xc6)]()+'/apps')&&fs[_0x1569c4(0xdc)](this[_0x1569c4(0x112)][_0x1569c4(0xc6)]()+'/apps')[_0x1569c4(0x11b)]()){const _0x381d31=this[_0x1569c4(0xdf)]['getConfiguration'](),_0x2439b5=((_0x1455a3=_0x381d31===null||_0x381d31===void 0x0?void 0x0:_0x381d31[_0x1569c4(0xf0)])===null||_0x1455a3===void 0x0?void 0x0:_0x1455a3['clients'])||{};for(const _0x570c9d of fs[_0x1569c4(0x102)](this[_0x1569c4(0x112)][_0x1569c4(0xc6)]()+_0x1569c4(0x11e))){if(!fs[_0x1569c4(0xdc)](this[_0x1569c4(0x112)][_0x1569c4(0xc6)]()+_0x1569c4(0x145)+_0x570c9d)[_0x1569c4(0x11b)]())continue;if(_0x2439b5===null||_0x2439b5===void 0x0?void 0x0:_0x2439b5[_0x570c9d])continue;_0x2439b5[_0x570c9d]=Object[_0x1569c4(0x123)]({},((_0x4c8c07=_0x381d31===null||_0x381d31===void 0x0?void 0x0:_0x381d31[_0x1569c4(0xf0)])===null||_0x4c8c07===void 0x0?void 0x0:_0x4c8c07[_0x1569c4(0xf2)])||{'maxSize':'1m','dir':this[_0x1569c4(0x112)][_0x1569c4(0x139)]()+_0x1569c4(0xe9)},{'enableJSON':!![],'enableConsole':this[_0x1569c4(0x140)][_0x1569c4(0x11d)](),'fileLogName':_0x570c9d+'.log','dir':this['app'][_0x1569c4(0x139)]()+_0x1569c4(0xcf)+_0x570c9d+'-log'});}Object[_0x1569c4(0x126)](_0x2439b5)[_0x1569c4(0xfa)]>0x0&&(!_0x381d31[_0x1569c4(0xf0)]&&(_0x381d31[_0x1569c4(0xf0)]={'default':{'maxSize':'1m','dir':this[_0x1569c4(0x112)][_0x1569c4(0x139)]()+_0x1569c4(0xe9)}}),_0x381d31[_0x1569c4(0xf0)][_0x1569c4(0x119)]=_0x2439b5),this['config'][_0x1569c4(0x13d)](_0x381d31);}}async['filterConfig'](){const _0x1ad34f=a2_0x105767;var _0x48693d,_0x2cfea1,_0x102685,_0x34adb7,_0xb0c503,_0x160583;const _0x32c548=this[_0x1ad34f(0xdf)][_0x1ad34f(0x117)]();((_0x2cfea1=(_0x48693d=_0x32c548===null||_0x32c548===void 0x0?void 0x0:_0x32c548[_0x1ad34f(0x12a)])===null||_0x48693d===void 0x0?void 0x0:_0x48693d[_0x1ad34f(0xce)])===null||_0x2cfea1===void 0x0?void 0x0:_0x2cfea1['DEFAULT'])&&Object[_0x1ad34f(0x126)](_0x32c548[_0x1ad34f(0x12a)][_0x1ad34f(0xce)])[_0x1ad34f(0xfa)]>0x1&&delete _0x32c548[_0x1ad34f(0x12a)][_0x1ad34f(0xce)][_0x1ad34f(0x116)];if((_0x102685=_0x32c548===null||_0x32c548===void 0x0?void 0x0:_0x32c548[_0x1ad34f(0xd4)])===null||_0x102685===void 0x0?void 0x0:_0x102685[_0x1ad34f(0xd5)])for(const _0x579233 in _0x32c548['staticFile'][_0x1ad34f(0xd5)]){((_0x34adb7=_0x32c548[_0x1ad34f(0xd4)]['dirs'][_0x579233])===null||_0x34adb7===void 0x0?void 0x0:_0x34adb7[_0x1ad34f(0x104)])&&typeof((_0xb0c503=_0x32c548[_0x1ad34f(0xd4)]['dirs'][_0x579233])===null||_0xb0c503===void 0x0?void 0x0:_0xb0c503[_0x1ad34f(0x104)])==_0x1ad34f(0xf7)&&!fs[_0x1ad34f(0x13c)](_0x32c548[_0x1ad34f(0xd4)][_0x1ad34f(0xd5)][_0x579233][_0x1ad34f(0x104)])&&(fs[_0x1ad34f(0x13a)](_0x32c548[_0x1ad34f(0xd4)][_0x1ad34f(0xd5)][_0x579233][_0x1ad34f(0x104)],{'recursive':!![]}),console[_0x1ad34f(0xf3)](_0x1ad34f(0x111)+_0x32c548[_0x1ad34f(0xd4)]['dirs'][_0x579233][_0x1ad34f(0x104)]));}((_0x160583=_0x32c548===null||_0x32c548===void 0x0?void 0x0:_0x32c548[_0x1ad34f(0x134)])===null||_0x160583===void 0x0?void 0x0:_0x160583[_0x1ad34f(0x10a)])&&!fs['existsSync'](_0x32c548[_0x1ad34f(0x134)][_0x1ad34f(0x10a)])&&(fs[_0x1ad34f(0x13a)](_0x32c548[_0x1ad34f(0x134)][_0x1ad34f(0x10a)],{'recursive':!![]}),console['log']('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x32c548[_0x1ad34f(0x134)][_0x1ad34f(0x10a)])),this[_0x1ad34f(0xdf)][_0x1ad34f(0x13d)](_0x32c548);}};__decorate([(0x0,core_1[a2_0x105767(0xfd)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x105767(0xdd)],a2_0x105767(0x112),void 0x0),__decorate([(0x0,core_1[a2_0x105767(0x12d)])(),__metadata(a2_0x105767(0x128),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x105767(0xdd)],a2_0x105767(0xdf),void 0x0),__decorate([(0x0,core_1[a2_0x105767(0x12d)])(),__metadata(a2_0x105767(0x128),core_2[a2_0x105767(0x106)])],CustomConfiguration[a2_0x105767(0xdd)],a2_0x105767(0xd0),void 0x0),__decorate([(0x0,core_1[a2_0x105767(0x12d)])(),__metadata('design:type',core_2[a2_0x105767(0xcd)])],CustomConfiguration['prototype'],a2_0x105767(0xcc),void 0x0),__decorate([(0x0,core_1[a2_0x105767(0x12d)])(),__metadata(a2_0x105767(0x128),core_2[a2_0x105767(0xfc)])],CustomConfiguration['prototype'],a2_0x105767(0x140),void 0x0),__decorate([(0x0,core_1[a2_0x105767(0x12d)])(),__metadata(a2_0x105767(0x128),ApiService_1[a2_0x105767(0x115)])],CustomConfiguration[a2_0x105767(0xdd)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x105767(0x114)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x105767(0xf4),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x105767(0x131)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3_0x1235bb=a3_0x1741;(function(_0x3147cc,_0x53e904){const _0x262e3b=a3_0x1741,_0x377145=_0x3147cc();while(!![]){try{const _0x3e643e=-parseInt(_0x262e3b(0x11b))/0x1*(parseInt(_0x262e3b(0x13f))/0x2)+parseInt(_0x262e3b(0x120))/0x3*(parseInt(_0x262e3b(0x124))/0x4)+parseInt(_0x262e3b(0x135))/0x5+parseInt(_0x262e3b(0x12c))/0x6*(-parseInt(_0x262e3b(0x10c))/0x7)+parseInt(_0x262e3b(0x13e))/0x8+parseInt(_0x262e3b(0x110))/0x9+parseInt(_0x262e3b(0x127))/0xa;if(_0x3e643e===_0x53e904)break;else _0x377145['push'](_0x377145['shift']());}catch(_0x51a297){_0x377145['push'](_0x377145['shift']());}}}(a3_0x4d7d,0x4d930));function a3_0x1741(_0x115455,_0x471aad){const _0x3d16e1=a3_0x4d7d();return a3_0x1741=function(_0x3b81ce,_0x5b0f8d){_0x3b81ce=_0x3b81ce-0x10c;let _0x4d7df9=_0x3d16e1[_0x3b81ce];return _0x4d7df9;},a3_0x1741(_0x115455,_0x471aad);}function a3_0x4d7d(){const _0x318bc5=['split','defineProperty','-action','88340qWeZAh','../types/action','search','indexOf','452070CLIclT','startsWith','tagName','saveClassMetadata','/config.','parseRoute','isArray','middlewareIgnore','AppsConfigTmp','filter','Controller','1SfWjPP','endsWith','__esModule','splice','\x20文件请放在app/controller/文件下','430911bvhjiq','(((.+)+)+)+$','replace','-controller','8kmgRav','rootpath','basic/controller/','80350gFoHLY','match','toLowerCase','prefix','app/controller/','138rnhCSL','filepath','\x20文件请放在apps/','/apps/','Action','middleware','saveModule','join','push','2453645xuPqyR','route','constructor','module','/controller/','substring','toString','existsSync','length','271400RHKrfL','524378QcNgFJ','ACTION_KEY'];a3_0x4d7d=function(){return _0x318bc5;};return a3_0x4d7d();}const a3_0x5b0f8d=(function(){let _0x340aa1=!![];return function(_0x27e441,_0x5a9ac6){const _0x39c812=_0x340aa1?function(){if(_0x5a9ac6){const _0x375d74=_0x5a9ac6['apply'](_0x27e441,arguments);return _0x5a9ac6=null,_0x375d74;}}:function(){};return _0x340aa1=![],_0x39c812;};}()),a3_0x3b81ce=a3_0x5b0f8d(this,function(){const _0x14a677=a3_0x1741;return a3_0x3b81ce[_0x14a677(0x13b)]()['search'](_0x14a677(0x121))[_0x14a677(0x13b)]()[_0x14a677(0x137)](a3_0x3b81ce)[_0x14a677(0x10e)](_0x14a677(0x121));});a3_0x3b81ce();'use strict';Object[a3_0x1235bb(0x142)](exports,a3_0x1235bb(0x11d),{'value':!![]}),exports['parseRoute']=exports[a3_0x1235bb(0x130)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require(a3_0x1235bb(0x10d));function Action(_0x19917f,_0x851250,_0x238e47={'middleware':[],'sensitive':!![]}){return _0x406bf8=>{const _0x16f064=a3_0x1741;var _0x41672b;_0x238e47[_0x16f064(0x112)]=_0x851250;const _0x1bad11=parseRoute(_0x19917f);if(_0x1bad11[_0x16f064(0x138)]){_0x238e47[_0x16f064(0x12a)]=_0x238e47[_0x16f064(0x12a)]?'/'+_0x1bad11[_0x16f064(0x138)]+'/'+_0x238e47[_0x16f064(0x12a)]:'/'+_0x1bad11[_0x16f064(0x136)];_0x1bad11[_0x16f064(0x12a)]&&(_0x238e47[_0x16f064(0x12a)]='/'+_0x1bad11[_0x16f064(0x12a)]+'/'+_0x238e47[_0x16f064(0x12a)]);if(fs[_0x16f064(0x13c)](_0x1bad11['rootpath']+_0x16f064(0x12f)+_0x1bad11[_0x16f064(0x138)]+_0x16f064(0x114)+(lodash['endsWith'](_0x1bad11['filepath'],'ts')?'ts':'js'))){const _0x363ae4=include(_0x1bad11[_0x16f064(0x125)]+_0x16f064(0x12f)+_0x1bad11[_0x16f064(0x138)]+_0x16f064(0x114)+(lodash['endsWith'](_0x1bad11[_0x16f064(0x12d)],'ts')?'ts':'js'));if(_0x363ae4[_0x16f064(0x131)]&&lodash[_0x16f064(0x116)](_0x363ae4[_0x16f064(0x131)])&&_0x363ae4[_0x16f064(0x131)][_0x16f064(0x13d)]>0x0)for(let _0x4d9cc5 in _0x363ae4['middleware']){if(((_0x41672b=_0x363ae4===null||_0x363ae4===void 0x0?void 0x0:_0x363ae4[_0x16f064(0x117)])===null||_0x41672b===void 0x0?void 0x0:_0x41672b['length'])>0x0&&_0x363ae4[_0x16f064(0x117)][_0x16f064(0x10f)](_0x363ae4[_0x16f064(0x131)][_0x4d9cc5])!=-0x1)continue;_0x238e47[_0x16f064(0x131)][_0x16f064(0x134)](_0x363ae4['middleware'][_0x4d9cc5]);}const _0x2123fa=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0x2123fa[''+_0x1bad11['module']]=_0x363ae4,(0x0,core_1[_0x16f064(0x113)])(action_1['APPSCONFIG_KEY'],_0x2123fa,action_1[_0x16f064(0x118)]);}_0x238e47['prefix']=_0x238e47[_0x16f064(0x12a)][_0x16f064(0x129)]()[_0x16f064(0x122)](/\/{2,}/g,'/'),(0x0,core_1[_0x16f064(0x132)])(action_1[_0x16f064(0x140)],_0x406bf8),(0x0,core_1['Controller'])(_0x238e47[_0x16f064(0x12a)],_0x238e47)(_0x406bf8),(0x0,core_1[_0x16f064(0x113)])(action_1[_0x16f064(0x140)],{'prefix':_0x238e47['prefix'],'pprefix':_0x1bad11[_0x16f064(0x12a)],'module':_0x1bad11[_0x16f064(0x138)],'filepath':_0x1bad11[_0x16f064(0x12d)],'routerOptions':_0x238e47},_0x406bf8);}else _0x238e47[_0x16f064(0x12a)]=_0x238e47[_0x16f064(0x12a)]?'/'+_0x238e47[_0x16f064(0x12a)]:'/'+_0x1bad11[_0x16f064(0x136)],_0x1bad11[_0x16f064(0x12a)]&&(_0x238e47['prefix']='/'+_0x1bad11['prefix']+'/'+_0x238e47[_0x16f064(0x12a)]),_0x238e47[_0x16f064(0x12a)]=_0x238e47[_0x16f064(0x12a)]['toLowerCase']()[_0x16f064(0x122)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x16f064(0x140)],_0x406bf8),(0x0,core_1[_0x16f064(0x11a)])(_0x238e47[_0x16f064(0x12a)],_0x238e47)(_0x406bf8),(0x0,core_1[_0x16f064(0x113)])(action_1[_0x16f064(0x140)],{'prefix':_0x238e47[_0x16f064(0x12a)],'module':_0x1bad11[_0x16f064(0x138)],'pprefix':_0x1bad11[_0x16f064(0x12a)],'filepath':_0x1bad11[_0x16f064(0x12d)],'routerOptions':_0x238e47},_0x406bf8);};}exports[a3_0x1235bb(0x130)]=Action;function parseRoute(_0x1ae510){const _0x3ab427=a3_0x1235bb;_0x1ae510=_0x1ae510[_0x3ab427(0x122)](/(\\|\/)/g,'/');const _0x1aee68=process['cwd']()[_0x3ab427(0x122)](/(\\|\/)/g,'/'),_0x39a851=_0x1ae510[_0x3ab427(0x13a)](0x0,_0x1aee68[_0x3ab427(0x13d)]+_0x1ae510[_0x3ab427(0x13a)](_0x1aee68[_0x3ab427(0x13d)]+0x1)[_0x3ab427(0x10f)]('/')+0x1),_0x1b414b=_0x1ae510['substring'](_0x39a851[_0x3ab427(0x13d)]+0x1)[_0x3ab427(0x122)](/(\\|\/)/g,'/'),_0x269173={'route':'','prefix':![],'module':![],'rootpath':_0x39a851,'filepath':_0x1b414b};if(_0x1b414b[_0x3ab427(0x111)](_0x3ab427(0x12b))||_0x1b414b['startsWith'](_0x3ab427(0x126))){const _0x509273=_0x1b414b[_0x3ab427(0x13a)]((_0x1b414b[_0x3ab427(0x111)](_0x3ab427(0x12b))?_0x3ab427(0x12b):_0x3ab427(0x126))['length'])[_0x3ab427(0x141)]('/')['filter'](_0x11d84f=>_0x11d84f&&_0x11d84f['trim']());return _0x509273[_0x3ab427(0x13d)]>0x1&&(_0x269173[_0x3ab427(0x12a)]=_0x509273[0x0]['toLowerCase'](),_0x509273[_0x3ab427(0x11e)](0x0,0x1)),_0x269173[_0x3ab427(0x136)]=('/'+_0x509273[_0x3ab427(0x133)]('/'))[_0x3ab427(0x122)](/(\.ts|\.js)$/,'')[_0x3ab427(0x122)](/\/{2,}/g,'/')[_0x3ab427(0x128)](/[\/|A-Z]*[^A-Z]+/g)[_0x3ab427(0x133)]('-')[_0x3ab427(0x129)]()['replace'](/\/\-/g,'/'),_0x269173[_0x3ab427(0x136)]['endsWith'](_0x3ab427(0x143))&&(_0x269173[_0x3ab427(0x136)]=_0x269173[_0x3ab427(0x136)][_0x3ab427(0x13a)](0x0,_0x269173[_0x3ab427(0x136)][_0x3ab427(0x13d)]-0x7)),_0x269173[_0x3ab427(0x136)]['endsWith'](_0x3ab427(0x123))&&(_0x269173[_0x3ab427(0x136)]=_0x269173[_0x3ab427(0x136)]['substring'](0x0,_0x269173['route'][_0x3ab427(0x13d)]-0xb)),_0x269173;}else{if(_0x1b414b[_0x3ab427(0x111)]('apps/')){const _0x112482=_0x1b414b[_0x3ab427(0x13a)](0x0,_0x1b414b['indexOf'](_0x3ab427(0x12f))+0x5),_0x19faa6=_0x1b414b[_0x3ab427(0x13a)](_0x112482[_0x3ab427(0x13d)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x1b414b[_0x3ab427(0x111)]('apps/'+_0x19faa6+_0x3ab427(0x139))){const _0x3cdceb=_0x1b414b[_0x3ab427(0x13a)]((_0x112482+'/'+_0x19faa6+_0x3ab427(0x139))[_0x3ab427(0x13d)])[_0x3ab427(0x141)]('/')[_0x3ab427(0x119)](_0x55c42e=>_0x55c42e&&_0x55c42e['trim']());return _0x3cdceb[_0x3ab427(0x13d)]>0x1&&(_0x269173['prefix']=_0x3cdceb[0x0]['toLowerCase'](),_0x3cdceb[_0x3ab427(0x11e)](0x0,0x1)),_0x269173[_0x3ab427(0x138)]=_0x19faa6,_0x269173[_0x3ab427(0x136)]=('/'+_0x19faa6+'/'+_0x3cdceb[_0x3ab427(0x133)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x3ab427(0x122)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x3ab427(0x122)](/\/\-/g,'/'),_0x269173[_0x3ab427(0x136)][_0x3ab427(0x11c)](_0x3ab427(0x143))&&(_0x269173[_0x3ab427(0x136)]=_0x269173['route'][_0x3ab427(0x13a)](0x0,_0x269173[_0x3ab427(0x136)][_0x3ab427(0x13d)]-0x7)),_0x269173[_0x3ab427(0x136)][_0x3ab427(0x11c)](_0x3ab427(0x123))&&(_0x269173[_0x3ab427(0x136)]=_0x269173[_0x3ab427(0x136)][_0x3ab427(0x13a)](0x0,_0x269173[_0x3ab427(0x136)]['length']-0xb)),_0x269173;}throw new Error(_0x1b414b+_0x3ab427(0x12e)+_0x19faa6+'/controller/文件下');}}throw new Error(_0x1b414b+_0x3ab427(0x11f));}exports[a3_0x1235bb(0x115)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x2e179b=a4_0x1269;(function(_0x12f98a,_0x3d27d3){const _0x365eba=a4_0x1269,_0x228da1=_0x12f98a();while(!![]){try{const _0xf8ca37=parseInt(_0x365eba(0x129))/0x1+parseInt(_0x365eba(0x11e))/0x2+-parseInt(_0x365eba(0x11b))/0x3+-parseInt(_0x365eba(0x10a))/0x4*(parseInt(_0x365eba(0x11f))/0x5)+parseInt(_0x365eba(0x116))/0x6+-parseInt(_0x365eba(0x111))/0x7*(parseInt(_0x365eba(0x120))/0x8)+-parseInt(_0x365eba(0x115))/0x9*(-parseInt(_0x365eba(0x124))/0xa);if(_0xf8ca37===_0x3d27d3)break;else _0x228da1['push'](_0x228da1['shift']());}catch(_0x337891){_0x228da1['push'](_0x228da1['shift']());}}}(a4_0x5886,0xcbfa4));const a4_0x383be3=(function(){let _0x28a45b=!![];return function(_0x2d6185,_0x3491cb){const _0x32f384=_0x28a45b?function(){const _0x151c5f=a4_0x1269;if(_0x3491cb){const _0x120b2b=_0x3491cb[_0x151c5f(0x125)](_0x2d6185,arguments);return _0x3491cb=null,_0x120b2b;}}:function(){};return _0x28a45b=![],_0x32f384;};}()),a4_0x5b03fe=a4_0x383be3(this,function(){const _0xad564b=a4_0x1269;return a4_0x5b03fe[_0xad564b(0x112)]()[_0xad564b(0x119)](_0xad564b(0x123))[_0xad564b(0x112)]()['constructor'](a4_0x5b03fe)[_0xad564b(0x119)](_0xad564b(0x123));});a4_0x5b03fe();function a4_0x5886(){const _0x48bf71=['search','defineProperty','3112797pUnlrZ','description','attachClassMetadata','1539684zHTzNZ','5pDrxry','229784quhTlV','del','assign','(((.+)+)+)+$','136410hLUtoL','apply','validate','Api','filter','1168905FWDBnb','@midwayjs/core','length','routerName','ACTION_ROUTE_KEY','intercept','181384XYOPiv','createCustomMethodDecorator','RequestMapping','validationOptions','middlewareIgnore','Validator','middleware','245aqYAti','toString','__esModule','apimit','621CjUHkZ','262596XflsRH','toLowerCase','delete'];a4_0x5886=function(){return _0x48bf71;};return a4_0x5886();}'use strict';Object[a4_0x2e179b(0x11a)](exports,a4_0x2e179b(0x113),{'value':!![]}),exports[a4_0x2e179b(0x127)]=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require(a4_0x2e179b(0x105)),action_1=require('../types/action');function a4_0x1269(_0x1fa346,_0x4c719f){const _0x188a24=a4_0x5886();return a4_0x1269=function(_0x5b03fe,_0x383be3){_0x5b03fe=_0x5b03fe-0x105;let _0x5886da=_0x188a24[_0x5b03fe];return _0x5886da;},a4_0x1269(_0x1fa346,_0x4c719f);}function Api(_0x18d546,_0x4400d3='get',_0x51ebb8='/',_0x4dca32={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x12d4f3,_0x101c98,_0x20c2a7)=>{const _0x37f214=a4_0x1269;var _0x17a6f8,_0x4fa68d,_0x481eed;!_0x4dca32[_0x37f214(0x110)]&&(_0x4dca32['middleware']=[]);!((_0x17a6f8=_0x4dca32===null||_0x4dca32===void 0x0?void 0x0:_0x4dca32[_0x37f214(0x126)])===null||_0x17a6f8===void 0x0?void 0x0:_0x17a6f8[_0x37f214(0x10d)])&&(_0x4dca32['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(((_0x4fa68d=_0x4dca32===null||_0x4dca32===void 0x0?void 0x0:_0x4dca32[_0x37f214(0x110)])===null||_0x4fa68d===void 0x0?void 0x0:_0x4fa68d[_0x37f214(0x106)])>0x0&&((_0x481eed=_0x4dca32===null||_0x4dca32===void 0x0?void 0x0:_0x4dca32['middlewareIgnore'])===null||_0x481eed===void 0x0?void 0x0:_0x481eed[_0x37f214(0x106)])>0x0)for(let _0x537a51 in _0x4dca32[_0x37f214(0x110)]){_0x4dca32[_0x37f214(0x10e)]['indexOf'](_0x4dca32[_0x37f214(0x110)][_0x537a51])!==-0x1&&(_0x4dca32[_0x37f214(0x110)][_0x537a51]=null);}_0x4dca32[_0x37f214(0x107)]=_0x18d546,(0x0,validator_1[_0x37f214(0x10f)])(_0x4dca32[_0x37f214(0x126)])(_0x12d4f3,_0x101c98,_0x20c2a7),(0x0,core_1[_0x37f214(0x10c)])(Object[_0x37f214(0x122)](_0x4dca32,{'path':_0x51ebb8,'requestMethod':(_0x4400d3==_0x37f214(0x121)?_0x37f214(0x118):_0x4400d3)['toLowerCase']()}))(_0x12d4f3,_0x101c98,_0x20c2a7),(0x0,core_1[_0x37f214(0x11d)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x51ebb8,'method':_0x101c98,'apimit':_0x4dca32[_0x37f214(0x114)],'intercept':_0x4dca32[_0x37f214(0x109)],'routerName':_0x4dca32[_0x37f214(0x107)],'description':_0x4dca32[_0x37f214(0x11c)],'middleware':(_0x4dca32[_0x37f214(0x110)]||[])[_0x37f214(0x128)](_0x5e2049=>!!_0x5e2049),'requestMethod':(_0x4400d3==_0x37f214(0x121)?_0x37f214(0x118):_0x4400d3)[_0x37f214(0x117)]()},_0x12d4f3),(0x0,core_1[_0x37f214(0x10b)])(action_1[_0x37f214(0x108)],{'path':_0x51ebb8,'method':_0x101c98,'apimit':_0x4dca32[_0x37f214(0x114)],'intercept':_0x4dca32['intercept'],'routerName':_0x4dca32[_0x37f214(0x107)],'description':_0x4dca32[_0x37f214(0x11c)],'middleware':(_0x4dca32[_0x37f214(0x110)]||[])[_0x37f214(0x128)](_0x2548a7=>!!_0x2548a7),'requestMethod':(_0x4400d3=='del'?_0x37f214(0x118):_0x4400d3)[_0x37f214(0x117)]()})(_0x12d4f3,_0x101c98,_0x20c2a7);};}exports[a4_0x2e179b(0x127)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a5_0x3905a5=a5_0x42cc;function a5_0x1dae(){const _0x9135ea=['app','toString','6kjzDAR','693572sLPiAz','MidwayEnvironmentService','Apitest','1810gZANbd','getAsync','112508ykUIjz','search','value','2560510fDOMux','isDevelopmentEnvironment','apidoc','758EbyiFW','constructor','../service/ApitestService','1973pEUbyE','/apitest','28CAoquv','(((.+)+)+)+$','__esModule','defineProperty','get','6083469EsUOFg','filepath','REQUEST_OBJ_CTX_KEY','4997994KrKdBM','apitest','1563288IAxzRO'];a5_0x1dae=function(){return _0x9135ea;};return a5_0x1dae();}(function(_0x38a4a2,_0x32b965){const _0x294c9d=a5_0x42cc,_0x36e1ec=_0x38a4a2();while(!![]){try{const _0x34c7d0=parseInt(_0x294c9d(0xbd))/0x1*(-parseInt(_0x294c9d(0xba))/0x2)+-parseInt(_0x294c9d(0xae))/0x3*(parseInt(_0x294c9d(0xaf))/0x4)+parseInt(_0x294c9d(0xb7))/0x5+-parseInt(_0x294c9d(0xa9))/0x6+-parseInt(_0x294c9d(0xbf))/0x7*(-parseInt(_0x294c9d(0xab))/0x8)+-parseInt(_0x294c9d(0xa6))/0x9+parseInt(_0x294c9d(0xb2))/0xa*(parseInt(_0x294c9d(0xb4))/0xb);if(_0x34c7d0===_0x32b965)break;else _0x36e1ec['push'](_0x36e1ec['shift']());}catch(_0x40e7f2){_0x36e1ec['push'](_0x36e1ec['shift']());}}}(a5_0x1dae,0x84351));const a5_0x5ce4da=(function(){let _0x5e723b=!![];return function(_0x282547,_0x3147a0){const _0x40f37a=_0x5e723b?function(){if(_0x3147a0){const _0xcedd78=_0x3147a0['apply'](_0x282547,arguments);return _0x3147a0=null,_0xcedd78;}}:function(){};return _0x5e723b=![],_0x40f37a;};}()),a5_0x557ef2=a5_0x5ce4da(this,function(){const _0x5cb6c4=a5_0x42cc;return a5_0x557ef2[_0x5cb6c4(0xad)]()[_0x5cb6c4(0xb5)](_0x5cb6c4(0xc0))['toString']()[_0x5cb6c4(0xbb)](a5_0x557ef2)['search'](_0x5cb6c4(0xc0));});a5_0x557ef2();'use strict';function a5_0x42cc(_0x45b6af,_0x235fb7){const _0x51376b=a5_0x1dae();return a5_0x42cc=function(_0x557ef2,_0x5ce4da){_0x557ef2=_0x557ef2-0xa5;let _0x1dae30=_0x51376b[_0x557ef2];return _0x1dae30;},a5_0x42cc(_0x45b6af,_0x235fb7);}Object[a5_0x3905a5(0xc2)](exports,a5_0x3905a5(0xc1),{'value':!![]}),exports[a5_0x3905a5(0xb1)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a5_0x3905a5(0xbc));function Apitest(_0xe81384=a5_0x3905a5(0xbe),_0x5cb1d9){return(_0x20214e,_0x31f330,_0x59ffc0)=>{const _0x174112=a5_0x42cc;return(0x0,core_1['RequestMapping'])({'path':_0xe81384,'requestMethod':_0x174112(0xa5)})(_0x20214e,_0x31f330,_0x59ffc0),_0x59ffc0[_0x174112(0xb6)]=async function(..._0x1ae510){const _0x442024=_0x174112;var _0x98d180;const _0x3b63a4=(_0x98d180=this[core_1[_0x442024(0xa8)]])===null||_0x98d180===void 0x0?void 0x0:_0x98d180[_0x442024(0xac)];if(_0x3b63a4&&_0x3b63a4['getConfig'](_0x442024(0xaa))){const _0x42645b=await _0x3b63a4['getApplicationContext']()['getAsync'](ApitestService_1['ApitestService']),_0x3fd739=await _0x3b63a4['getApplicationContext']()[_0x442024(0xb3)](core_1[_0x442024(0xb0)]);return _0x3fd739[_0x442024(0xb8)]()&&(_0x5cb1d9[_0x442024(0xa7)]=!![]),await _0x42645b[_0x442024(0xb9)](_0x5cb1d9);}return'';},_0x59ffc0;};}exports[a5_0x3905a5(0xb1)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x242d0f=a6_0x1da6;(function(_0x4db47b,_0x4b7836){const _0x3f51c3=a6_0x1da6,_0x238756=_0x4db47b();while(!![]){try{const _0x20e9fb=-parseInt(_0x3f51c3(0xa7))/0x1*(-parseInt(_0x3f51c3(0xa2))/0x2)+-parseInt(_0x3f51c3(0x9b))/0x3+-parseInt(_0x3f51c3(0xb0))/0x4*(-parseInt(_0x3f51c3(0xad))/0x5)+-parseInt(_0x3f51c3(0xb1))/0x6*(-parseInt(_0x3f51c3(0xac))/0x7)+parseInt(_0x3f51c3(0xa6))/0x8*(-parseInt(_0x3f51c3(0x9c))/0x9)+-parseInt(_0x3f51c3(0xa8))/0xa+parseInt(_0x3f51c3(0xa5))/0xb*(parseInt(_0x3f51c3(0xae))/0xc);if(_0x20e9fb===_0x4b7836)break;else _0x238756['push'](_0x238756['shift']());}catch(_0x25e16e){_0x238756['push'](_0x238756['shift']());}}}(a6_0x57e3,0x7b52c));const a6_0x3f0bae=(function(){let _0x4a6330=!![];return function(_0x357cee,_0xf06ae1){const _0x1a55bc=_0x4a6330?function(){const _0x34eb87=a6_0x1da6;if(_0xf06ae1){const _0x36ea34=_0xf06ae1[_0x34eb87(0xa9)](_0x357cee,arguments);return _0xf06ae1=null,_0x36ea34;}}:function(){};return _0x4a6330=![],_0x1a55bc;};}()),a6_0x6b9e49=a6_0x3f0bae(this,function(){const _0x2bd2b0=a6_0x1da6;return a6_0x6b9e49[_0x2bd2b0(0xaa)]()[_0x2bd2b0(0xaf)](_0x2bd2b0(0x9f))[_0x2bd2b0(0xaa)]()[_0x2bd2b0(0xab)](a6_0x6b9e49)[_0x2bd2b0(0xaf)](_0x2bd2b0(0x9f));});a6_0x6b9e49();'use strict';Object[a6_0x242d0f(0x9d)](exports,'__esModule',{'value':!![]}),exports[a6_0x242d0f(0xb4)]=exports[a6_0x242d0f(0xb3)]=void 0x0;const core_1=require(a6_0x242d0f(0xa3)),intercept_1=require(a6_0x242d0f(0xa0));function Intercept(_0x21d9e){return _0x1a11d9=>{const _0xa6e130=a6_0x1da6,_0x12bf62=(0x0,core_1[_0xa6e130(0xb6)])(intercept_1[_0xa6e130(0xb5)],intercept_1['InterceptTargetTmp'])||{};for(let _0x448335 of Array['isArray'](_0x21d9e)?_0x21d9e:[_0x21d9e]){_0x448335=_0x448335[_0xa6e130(0xa1)]();!(_0x12bf62===null||_0x12bf62===void 0x0?void 0x0:_0x12bf62[_0x448335])&&(_0x12bf62[_0x448335]=[]);if(_0x12bf62[_0x448335][_0xa6e130(0xa4)](_0x1a11d9))continue;_0x12bf62[_0x448335][_0xa6e130(0xb2)](_0x1a11d9);}(0x0,core_1['Provide'])()(_0x1a11d9),(0x0,core_1['Scope'])(core_1['ScopeEnum'][_0xa6e130(0x9e)])(_0x1a11d9),(0x0,core_1['saveClassMetadata'])(intercept_1[_0xa6e130(0xb5)],_0x12bf62,intercept_1['InterceptTargetTmp']);};}exports[a6_0x242d0f(0xb3)]=Intercept;class IIntercept{async['match'](_0x3e437e,_0x16136a,_0x57a5f6){return!![];}}function a6_0x1da6(_0x43903e,_0x861ce6){const _0xfe8122=a6_0x57e3();return a6_0x1da6=function(_0x6b9e49,_0x3f0bae){_0x6b9e49=_0x6b9e49-0x9b;let _0x57e3a4=_0xfe8122[_0x6b9e49];return _0x57e3a4;},a6_0x1da6(_0x43903e,_0x861ce6);}function a6_0x57e3(){const _0x53e7d1=['12rxrphi','search','76BCygQM','1946640BAvmNv','push','Intercept','IIntercept','INTERCEPT_KEY','getClassMetadata','349230OPkMFN','9aRaMbr','defineProperty','Singleton','(((.+)+)+)+$','../types/intercept','toUpperCase','88586vXmgbV','@midwayjs/core','includes','13349611ZSgEkC','5917128xbvntI','3BAneDm','3145440lMIHOx','apply','toString','constructor','7PdvWHV','1265PfMVfV'];a6_0x57e3=function(){return _0x53e7d1;};return a6_0x57e3();}exports[a6_0x242d0f(0xb4)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0x2ca44b=a7_0x56bb;(function(_0x4b6a0a,_0x22d9a1){var _0xb9500e=a7_0x56bb,_0x3ad630=_0x4b6a0a();while(!![]){try{var _0x5168c7=parseInt(_0xb9500e(0x17b))/0x1*(parseInt(_0xb9500e(0x185))/0x2)+-parseInt(_0xb9500e(0x17c))/0x3+parseInt(_0xb9500e(0x190))/0x4+parseInt(_0xb9500e(0x172))/0x5*(-parseInt(_0xb9500e(0x184))/0x6)+-parseInt(_0xb9500e(0x17e))/0x7+-parseInt(_0xb9500e(0x16d))/0x8*(parseInt(_0xb9500e(0x180))/0x9)+parseInt(_0xb9500e(0x18a))/0xa*(parseInt(_0xb9500e(0x16e))/0xb);if(_0x5168c7===_0x22d9a1)break;else _0x3ad630['push'](_0x3ad630['shift']());}catch(_0x47abb1){_0x3ad630['push'](_0x3ad630['shift']());}}}(a7_0xf63b,0xf040e));function a7_0x56bb(_0x35d319,_0x544deb){var _0x50ba15=a7_0xf63b();return a7_0x56bb=function(_0x45b63c,_0x1f18d3){_0x45b63c=_0x45b63c-0x16d;var _0xf63bdb=_0x50ba15[_0x45b63c];return _0xf63bdb;},a7_0x56bb(_0x35d319,_0x544deb);}var a7_0x1f18d3=(function(){var _0x9ec4da=!![];return function(_0x16cd7a,_0x3bb1a4){var _0x190abe=_0x9ec4da?function(){var _0x2e9b16=a7_0x56bb;if(_0x3bb1a4){var _0x48deb6=_0x3bb1a4[_0x2e9b16(0x174)](_0x16cd7a,arguments);return _0x3bb1a4=null,_0x48deb6;}}:function(){};return _0x9ec4da=![],_0x190abe;};}()),a7_0x45b63c=a7_0x1f18d3(this,function(){var _0x55aeac=a7_0x56bb;return a7_0x45b63c['toString']()[_0x55aeac(0x18b)](_0x55aeac(0x173))[_0x55aeac(0x175)]()['constructor'](a7_0x45b63c)[_0x55aeac(0x18b)](_0x55aeac(0x173));});a7_0x45b63c();function a7_0xf63b(){var _0x41e3f9=['search','HEADERS_DEVICE','function','请求超时,请重试','getOwnPropertyDescriptor','4976632TFMkzT','HEADERS_LACK','8swveki','891NBdIOF','HEADERS_CHECKCODE','验证失败,请重新登录','defineProperty','5FlcFrh','(((.+)+)+)+$','apply','toString','design:type','object','metadata','decorate','TIMEOUT_LOGINTIME','1249XJyWWb','3274329JLodJA','HEADERS_SIGNATURE','10116988NmFSSi','ApiError','970209IFJqwV','请求头信息不完整','__decorate','__esModule','10857294CajzmL','1614QIlunG','signature验证失败','TIMEOUT','请使用正确的设备','length','393340mnxuIh'];a7_0xf63b=function(){return _0x41e3f9;};return a7_0xf63b();}'use strict';var __decorate=this&&this[a7_0x2ca44b(0x182)]||function(_0x479e76,_0x24d602,_0x3c126d,_0x24a87e){var _0x566c5e=a7_0x2ca44b,_0x165e39=arguments[_0x566c5e(0x189)],_0x1931dc=_0x165e39<0x3?_0x24d602:_0x24a87e===null?_0x24a87e=Object[_0x566c5e(0x18f)](_0x24d602,_0x3c126d):_0x24a87e,_0x42cd64;if(typeof Reflect===_0x566c5e(0x177)&&typeof Reflect[_0x566c5e(0x179)]===_0x566c5e(0x18d))_0x1931dc=Reflect['decorate'](_0x479e76,_0x24d602,_0x3c126d,_0x24a87e);else{for(var _0x2ba5e1=_0x479e76['length']-0x1;_0x2ba5e1>=0x0;_0x2ba5e1--)if(_0x42cd64=_0x479e76[_0x2ba5e1])_0x1931dc=(_0x165e39<0x3?_0x42cd64(_0x1931dc):_0x165e39>0x3?_0x42cd64(_0x24d602,_0x3c126d,_0x1931dc):_0x42cd64(_0x24d602,_0x3c126d))||_0x1931dc;}return _0x165e39>0x3&&_0x1931dc&&Object[_0x566c5e(0x171)](_0x24d602,_0x3c126d,_0x1931dc),_0x1931dc;},__metadata=this&&this['__metadata']||function(_0xe0aea,_0xcca14f){var _0x236ff5=a7_0x2ca44b;if(typeof Reflect===_0x236ff5(0x177)&&typeof Reflect[_0x236ff5(0x178)]===_0x236ff5(0x18d))return Reflect[_0x236ff5(0x178)](_0xe0aea,_0xcca14f);};Object[a7_0x2ca44b(0x171)](exports,a7_0x2ca44b(0x183),{'value':!![]}),exports[a7_0x2ca44b(0x17f)]=void 0x0;class ApiError{}ApiError[a7_0x2ca44b(0x187)]=0x3d7e31,ApiError[a7_0x2ca44b(0x191)]=0x3d7e32,ApiError[a7_0x2ca44b(0x18c)]=0x3d7e33,ApiError[a7_0x2ca44b(0x17d)]=0x3d7e34,ApiError[a7_0x2ca44b(0x16f)]=0x3d7e35,ApiError[a7_0x2ca44b(0x17a)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0x2ca44b(0x18e)),__metadata(a7_0x2ca44b(0x176),Object)],ApiError,a7_0x2ca44b(0x187),void 0x0),__decorate([AnnErrorMsg(a7_0x2ca44b(0x181)),__metadata(a7_0x2ca44b(0x176),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0x2ca44b(0x188)),__metadata(a7_0x2ca44b(0x176),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a7_0x2ca44b(0x186)),__metadata('design:type',Object)],ApiError,a7_0x2ca44b(0x17d),void 0x0),__decorate([AnnErrorMsg(a7_0x2ca44b(0x170)),__metadata('design:type',Object)],ApiError,a7_0x2ca44b(0x16f),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x2ca44b(0x176),Object)],ApiError,a7_0x2ca44b(0x17a),void 0x0),exports[a7_0x2ca44b(0x17f)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x16e1(){const _0x254563=['toString','335VPvEDY','defineProperty','626682MyBHqX','2652008diCKoS','63kbxPSG','(((.+)+)+)+$','22838101hiTeIV','10KjjMZF','getAppsConfig','70506TJcFki','1379824bLTCdl','6951105AmQNeo','__esModule','9001Ttrgmi','constructor','search','146BtQbRh','get'];a8_0x16e1=function(){return _0x254563;};return a8_0x16e1();}const a8_0x1f4746=a8_0x51f7;(function(_0x3de64c,_0x41a263){const _0x482b6f=a8_0x51f7,_0x344e7e=_0x3de64c();while(!![]){try{const _0x3c5b92=parseInt(_0x482b6f(0x178))/0x1*(parseInt(_0x482b6f(0x17b))/0x2)+parseInt(_0x482b6f(0x180))/0x3+parseInt(_0x482b6f(0x181))/0x4+-parseInt(_0x482b6f(0x17e))/0x5*(parseInt(_0x482b6f(0x174))/0x6)+-parseInt(_0x482b6f(0x176))/0x7+parseInt(_0x482b6f(0x175))/0x8*(-parseInt(_0x482b6f(0x182))/0x9)+-parseInt(_0x482b6f(0x185))/0xa*(-parseInt(_0x482b6f(0x184))/0xb);if(_0x3c5b92===_0x41a263)break;else _0x344e7e['push'](_0x344e7e['shift']());}catch(_0x5e5812){_0x344e7e['push'](_0x344e7e['shift']());}}}(a8_0x16e1,0x96c0a));const a8_0x142757=(function(){let _0xbaccb4=!![];return function(_0x291e4a,_0x32c382){const _0x3038c3=_0xbaccb4?function(){if(_0x32c382){const _0x75cdf0=_0x32c382['apply'](_0x291e4a,arguments);return _0x32c382=null,_0x75cdf0;}}:function(){};return _0xbaccb4=![],_0x3038c3;};}()),a8_0x40b470=a8_0x142757(this,function(){const _0x2862e9=a8_0x51f7;return a8_0x40b470['toString']()[_0x2862e9(0x17a)](_0x2862e9(0x183))[_0x2862e9(0x17d)]()[_0x2862e9(0x179)](a8_0x40b470)[_0x2862e9(0x17a)](_0x2862e9(0x183));});a8_0x40b470();'use strict';Object[a8_0x1f4746(0x17f)](exports,a8_0x1f4746(0x177),{'value':!![]}),exports[a8_0x1f4746(0x173)]=void 0x0;function a8_0x51f7(_0xaa275b,_0x41062a){const _0x339340=a8_0x16e1();return a8_0x51f7=function(_0x40b470,_0x142757){_0x40b470=_0x40b470-0x173;let _0x16e13a=_0x339340[_0x40b470];return _0x16e13a;},a8_0x51f7(_0xaa275b,_0x41062a);}const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x30b776){const _0x250892=a8_0x1f4746,_0x18c143=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x30b776?lodash[_0x250892(0x17c)](_0x18c143,_0x30b776):_0x18c143;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x1e6def=a9_0x8e9e;(function(_0xf6c36,_0x5ca5c3){const _0xd74693=a9_0x8e9e,_0x138134=_0xf6c36();while(!![]){try{const _0x38c154=parseInt(_0xd74693(0x192))/0x1*(parseInt(_0xd74693(0x1b4))/0x2)+parseInt(_0xd74693(0x1bc))/0x3*(parseInt(_0xd74693(0x197))/0x4)+parseInt(_0xd74693(0x1d2))/0x5+parseInt(_0xd74693(0x180))/0x6+-parseInt(_0xd74693(0x1e4))/0x7+-parseInt(_0xd74693(0x1d3))/0x8+-parseInt(_0xd74693(0x1c5))/0x9*(parseInt(_0xd74693(0x187))/0xa);if(_0x38c154===_0x5ca5c3)break;else _0x138134['push'](_0x138134['shift']());}catch(_0xe77131){_0x138134['push'](_0x138134['shift']());}}}(a9_0x3bd8,0xf13eb));const a9_0x1f1290=(function(){let _0x4f06b2=!![];return function(_0x326621,_0x5307e2){const _0x481831=_0x4f06b2?function(){if(_0x5307e2){const _0x41d9cc=_0x5307e2['apply'](_0x326621,arguments);return _0x5307e2=null,_0x41d9cc;}}:function(){};return _0x4f06b2=![],_0x481831;};}()),a9_0x323171=a9_0x1f1290(this,function(){const _0x71db95=a9_0x8e9e;return a9_0x323171[_0x71db95(0x19a)]()[_0x71db95(0x185)](_0x71db95(0x1db))[_0x71db95(0x19a)]()[_0x71db95(0x1d4)](a9_0x323171)[_0x71db95(0x185)](_0x71db95(0x1db));});a9_0x323171();'use strict';Object[a9_0x1e6def(0x1cc)](exports,'__esModule',{'value':!![]}),exports[a9_0x1e6def(0x1de)]=void 0x0;function a9_0x3bd8(){const _0x3ced2a=['describe','routerName','File','-array','351943uzUyjP','requestMethod','endsWith','type','get','6924TanYtz','push','indexOf','toString','children','tagName','Boolean','concat','string','required','@midwayjs/core','metadata','文件上传-','startsWith','filter','default','QUERY','key','split','function','lodash','summary','HEADERS','module','join','request','iterator','header','flags.presence','10VUTDDu','body','rules','flags.description','Number','description','WEB_ROUTER_PARAM_KEY','allow','1824brpNdK','FIELDS','pprefix','noreq','limit','只允许:[','path','route','../types/action','10116GwdCXA','keys','prefix','FILESSTREAM','routerOptions','log','propertyData','defineProperty','method','BODY','number','@anncic-api/validator','intercept','1552080YjkkXR','7268672kWxToh','constructor','min','ACTION_ROUTE_KEY','args','items','isArray','RouteParamTypes','(((.+)+)+)+$','String','flags.default','getRoutes','title','name','max','PARAM','static/apitest','409402NXMNeu','7940484tlWUAE','find','routes','filepath','substring','search','getClassMetadata','22160rsHCGG','query','parameterIndex','boolean','length','file','object'];a9_0x3bd8=function(){return _0x3ced2a;};return a9_0x3bd8();}const lodash_1=require(a9_0x1e6def(0x1ab)),validator_1=require(a9_0x1e6def(0x1d0)),core_1=require('@midwayjs/core'),core_2=require(a9_0x1e6def(0x1a1)),core_3=require('@midwayjs/core'),action_1=require(a9_0x1e6def(0x1c4));function getRoutes(_0x37e8f8={'prefix':'/','module':![]}){const _0x5b179f=a9_0x1e6def;var _0x11aeb0,_0x2588af;const _0x2576ad=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x43fc06={},_0x502a69=Array[_0x5b179f(0x1d9)](_0x37e8f8[_0x5b179f(0x1a5)]||[])?_0x37e8f8[_0x5b179f(0x1a5)]||[]:[_0x37e8f8[_0x5b179f(0x1a5)]];_0x25ff2d:for(const _0x3a19f7 of _0x2576ad){let _0x140ac6=(0x0,core_3[_0x5b179f(0x186)])(action_1['ACTION_KEY'],_0x3a19f7),_0x49559a=(0x0,core_3[_0x5b179f(0x186)])(action_1[_0x5b179f(0x1d6)],_0x3a19f7);if(_0x140ac6&&_0x49559a){let _0x283ce7=_0x140ac6[_0x5b179f(0x1c7)],_0x13966b={};if(_0x37e8f8[_0x5b179f(0x1ae)]&&(0x0,lodash_1[_0x5b179f(0x196)])(_0x140ac6,_0x5b179f(0x1ae),![])!=_0x37e8f8['module'])continue _0x25ff2d;else{if(_0x37e8f8[_0x5b179f(0x1ae)]===![]&&!!(0x0,lodash_1[_0x5b179f(0x196)])(_0x140ac6,_0x5b179f(0x1ae),null))continue _0x25ff2d;}if(_0x37e8f8['prefix']&&!_0x283ce7[_0x5b179f(0x1a4)](_0x37e8f8['prefix']))continue _0x25ff2d;_0x283ce7!=='/'?(_0x13966b[_0x5b179f(0x1ac)]=(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6['routerOptions'][_0x5b179f(0x19c)])||(/^\//['test'](_0x283ce7)?_0x283ce7[_0x5b179f(0x1a9)]('/')[0x1]:_0x283ce7),_0x13966b[_0x5b179f(0x1b9)]=(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6[_0x5b179f(0x1c9)][_0x5b179f(0x1b9)])||_0x13966b[_0x5b179f(0x1ac)],_0x13966b[_0x5b179f(0x182)]=[]):(_0x13966b['summary']=(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6[_0x5b179f(0x1c9)][_0x5b179f(0x19c)])||_0x5b179f(0x1a6),_0x13966b[_0x5b179f(0x1b9)]=(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6['routerOptions'][_0x5b179f(0x1b9)])||'',_0x13966b['routes']=[]);_0x37e8f8[_0x5b179f(0x183)]&&(_0x13966b[_0x5b179f(0x183)]=_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6['filepath']);(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6[_0x5b179f(0x1be)])&&(_0x13966b['prefix']=_0x140ac6[_0x5b179f(0x1be)]);(_0x140ac6===null||_0x140ac6===void 0x0?void 0x0:_0x140ac6[_0x5b179f(0x1ae)])&&(_0x13966b[_0x5b179f(0x1ae)]=_0x140ac6[_0x5b179f(0x1ae)]);let _0x2a9a90=(0x0,core_3[_0x5b179f(0x186)])(core_2['INJECT_CUSTOM_PARAM'],_0x3a19f7)||{};if(typeof _0x49559a[Symbol[_0x5b179f(0x1b1)]]===_0x5b179f(0x1aa))for(let _0x5a9e05 of _0x49559a){if((_0x37e8f8===null||_0x37e8f8===void 0x0?void 0x0:_0x37e8f8[_0x5b179f(0x1d1)])&&!(_0x5a9e05===null||_0x5a9e05===void 0x0?void 0x0:_0x5a9e05[_0x5b179f(0x1d1)]))continue;let _0x236527={};_0x236527[_0x5b179f(0x1cd)]=_0x5a9e05[_0x5b179f(0x193)],_0x236527['route']=(_0x283ce7+_0x5a9e05[_0x5b179f(0x1c2)])['replace'](/\/{1,}/,'/'),_0x236527[_0x5b179f(0x1ac)]=(_0x5a9e05===null||_0x5a9e05===void 0x0?void 0x0:_0x5a9e05[_0x5b179f(0x18f)])||_0x13966b['summary']||'default',_0x236527['description']=(_0x5a9e05===null||_0x5a9e05===void 0x0?void 0x0:_0x5a9e05[_0x5b179f(0x1b9)])||'',_0x236527['request']=[];_0x236527['route'][_0x5b179f(0x194)]('/')&&(_0x236527[_0x5b179f(0x1c3)]=_0x236527[_0x5b179f(0x1c3)][_0x5b179f(0x184)](0x0,_0x236527[_0x5b179f(0x1c3)][_0x5b179f(0x18b)]-0x1));if(!(0x0,lodash_1[_0x5b179f(0x1a4)])(_0x236527[_0x5b179f(0x1c3)],_0x5b179f(0x1e3))&&!(0x0,lodash_1[_0x5b179f(0x1a4)])(_0x236527['route'],'/static/apitest')&&_0x502a69[_0x5b179f(0x199)](_0x236527[_0x5b179f(0x1c3)])===-0x1){if(!(_0x37e8f8===null||_0x37e8f8===void 0x0?void 0x0:_0x37e8f8[_0x5b179f(0x1bf)])){let _0x3de51c=(0x0,core_3['getMethodParamTypes'])(new _0x3a19f7(),_0x5a9e05[_0x5b179f(0x1cd)]);for(const _0x4071e9 in _0x3de51c){let _0x4513b3=(_0x11aeb0=_0x2a9a90[_0x5a9e05[_0x5b179f(0x1cd)]])===null||_0x11aeb0===void 0x0?void 0x0:_0x11aeb0[_0x5b179f(0x181)](_0x9982b0=>_0x9982b0['parameterIndex']==_0x4071e9&&_0x9982b0[_0x5b179f(0x1a8)]===core_2[_0x5b179f(0x1ba)]&&(_0x9982b0===null||_0x9982b0===void 0x0?void 0x0:_0x9982b0[_0x5b179f(0x1a2)]));if(_0x4513b3===null||_0x4513b3===void 0x0?void 0x0:_0x4513b3[_0x5b179f(0x1a2)]){let _0x46397c=convertTypeToString(_0x4513b3[_0x5b179f(0x1a2)][_0x5b179f(0x195)]||0x0);if(['query',_0x5b179f(0x1b5)][_0x5b179f(0x199)](_0x46397c)!=-0x1&&_0x4513b3[_0x5b179f(0x1a2)][_0x5b179f(0x1cb)][_0x5b179f(0x199)](':')==-0x1&&!_0x236527[_0x5b179f(0x1b0)][_0x5b179f(0x181)](_0x55f56e=>_0x55f56e['key']==_0x4513b3[_0x5b179f(0x1a2)]['propertyData']))_0x236527[_0x5b179f(0x1b0)]['push']({'key':_0x4513b3[_0x5b179f(0x1a2)][_0x5b179f(0x1cb)],'title':_0x4513b3[_0x5b179f(0x1a2)][_0x5b179f(0x1cb)],'type':convertSchemaType(_0x3de51c[_0x4513b3[_0x5b179f(0x189)]][_0x5b179f(0x1e0)]),'required':![],'default':'','desc':''});else{if(_0x46397c==_0x5b179f(0x18c)){let _0x15315a=((_0x2588af=_0x4513b3===null||_0x4513b3===void 0x0?void 0x0:_0x4513b3[_0x5b179f(0x1a2)])===null||_0x2588af===void 0x0?void 0x0:_0x2588af[_0x5b179f(0x1cb)])||_0x5b179f(0x18c);_0x15315a[_0x5b179f(0x199)](':')==-0x1&&!_0x236527[_0x5b179f(0x1b0)][_0x5b179f(0x181)](_0x2ea3fc=>_0x2ea3fc[_0x5b179f(0x1a8)]==_0x15315a&&_0x2ea3fc[_0x5b179f(0x195)]=='file')&&_0x236527['request'][_0x5b179f(0x198)]({'key':_0x15315a,'title':_0x5b179f(0x1a3)+_0x15315a,'type':_0x5b179f(0x18c),'required':!![],'default':'','desc':''});}}}else{const _0x30fb8f=(0x0,core_3['getClassExtendedMetadata'])(validator_1['RULES_KEY'],_0x3de51c[_0x4071e9]);_0x30fb8f&&_0x236527['request'][_0x5b179f(0x198)](...getJoiRequest(_0x30fb8f));}}}_0x13966b[_0x5b179f(0x182)][_0x5b179f(0x198)](_0x236527);}}if(_0x13966b[_0x5b179f(0x182)][_0x5b179f(0x18b)]>0x0){let _0x93065d=_0x43fc06[_0x283ce7];_0x93065d?(_0x93065d[_0x5b179f(0x1ac)]!=_0x13966b[_0x5b179f(0x1ac)]&&(_0x93065d[_0x5b179f(0x1ac)]=_0x93065d[_0x5b179f(0x1ac)]+','+_0x13966b[_0x5b179f(0x1ac)]),_0x93065d['description']!=_0x13966b[_0x5b179f(0x1b9)]&&(_0x93065d[_0x5b179f(0x1b9)]=_0x93065d[_0x5b179f(0x1b9)]+','+_0x13966b[_0x5b179f(0x1b9)]),_0x93065d[_0x5b179f(0x182)]=_0x93065d[_0x5b179f(0x182)][_0x5b179f(0x19e)](_0x13966b['routes']),_0x43fc06[_0x283ce7]=_0x93065d):_0x43fc06[_0x283ce7]=_0x13966b;}}}return _0x43fc06;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x29438e){const _0x518ce5=a9_0x1e6def,_0x14636f=[];for(let _0x4f0866 in _0x29438e){const _0x449982={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x91df8e=typeof _0x29438e[_0x4f0866][_0x518ce5(0x18e)]==_0x518ce5(0x1aa)?_0x29438e[_0x4f0866][_0x518ce5(0x18e)]():_0x29438e[_0x4f0866];_0x449982[_0x518ce5(0x1a8)]=_0x4f0866,_0x449982[_0x518ce5(0x195)]=_0x91df8e['type'],_0x449982[_0x518ce5(0x1df)]=(0x0,lodash_1[_0x518ce5(0x196)])(_0x91df8e,'flags.label',_0x4f0866),_0x449982[_0x518ce5(0x1a6)]=(0x0,lodash_1[_0x518ce5(0x196)])(_0x91df8e,_0x518ce5(0x1dd),''),_0x449982[_0x518ce5(0x1a0)]=(0x0,lodash_1[_0x518ce5(0x196)])(_0x91df8e,_0x518ce5(0x1b3),'')==_0x518ce5(0x1a0),_0x449982['description']=(0x0,lodash_1[_0x518ce5(0x196)])(_0x91df8e,_0x518ce5(0x1b7),'');if(_0x91df8e[_0x518ce5(0x195)]==_0x518ce5(0x18d))_0x449982[_0x518ce5(0x19b)]=getJoiRequest(_0x91df8e[_0x518ce5(0x1c6)]);else _0x91df8e['type']=='array'&&_0x91df8e[_0x518ce5(0x1d8)]&&Array['isArray'](_0x91df8e[_0x518ce5(0x1d8)])&&_0x91df8e['items'][0x0]&&console[_0x518ce5(0x1ca)](_0x4f0866+_0x518ce5(0x191),_0x91df8e);_0x91df8e[_0x518ce5(0x1bb)]&&Array[_0x518ce5(0x1d9)](_0x91df8e[_0x518ce5(0x1bb)])&&_0x91df8e[_0x518ce5(0x1bb)][_0x518ce5(0x18b)]>0x0&&(_0x449982[_0x518ce5(0x1b9)]=_0x518ce5(0x1c1)+_0x91df8e['allow'][_0x518ce5(0x1af)](',')+'];'+_0x449982['description']);if(_0x449982[_0x518ce5(0x1a8)]&&_0x449982[_0x518ce5(0x195)]){const _0x273a80={};for(const _0x3d2086 of _0x91df8e[_0x518ce5(0x1b6)]||[]){if(_0x3d2086[_0x518ce5(0x1e0)]==='min'&&_0x3d2086[_0x518ce5(0x1d7)])_0x273a80[_0x518ce5(0x1d5)]=_0x3d2086[_0x518ce5(0x1d7)][_0x518ce5(0x1c0)];else _0x3d2086[_0x518ce5(0x1e0)]===_0x518ce5(0x1e1)&&(_0x273a80[_0x518ce5(0x1e1)]=_0x3d2086['args'][_0x518ce5(0x1c0)]);}_0x449982[_0x518ce5(0x1b6)]=_0x273a80;}_0x449982[_0x518ce5(0x1a8)]&&_0x449982[_0x518ce5(0x1df)]&&_0x14636f['push'](_0x449982);}return _0x14636f;}function a9_0x8e9e(_0x4d8ec7,_0x47cc8b){const _0x3f1642=a9_0x3bd8();return a9_0x8e9e=function(_0x323171,_0x1f1290){_0x323171=_0x323171-0x180;let _0x3bd8c5=_0x3f1642[_0x323171];return _0x3bd8c5;},a9_0x8e9e(_0x4d8ec7,_0x47cc8b);}function convertSchemaType(_0x43341e){const _0x516c3d=a9_0x1e6def;switch(_0x43341e){case'Object':return _0x516c3d(0x18d);case _0x516c3d(0x19d):return _0x516c3d(0x18a);case _0x516c3d(0x1b8):return _0x516c3d(0x1cf);case _0x516c3d(0x1dc):return _0x516c3d(0x19f);case _0x516c3d(0x190):return _0x516c3d(0x18c);default:return _0x516c3d(0x19f);}}function convertTypeToString(_0x1e5362){const _0x19ccf3=a9_0x1e6def;switch(_0x1e5362){case core_1[_0x19ccf3(0x1da)][_0x19ccf3(0x1ad)]:return'header';case core_1[_0x19ccf3(0x1da)][_0x19ccf3(0x1a7)]:return _0x19ccf3(0x188);case core_1['RouteParamTypes'][_0x19ccf3(0x1e2)]:return _0x19ccf3(0x1c2);case core_1[_0x19ccf3(0x1da)][_0x19ccf3(0x1ce)]:return _0x19ccf3(0x1b5);case core_1[_0x19ccf3(0x1da)][_0x19ccf3(0x1bd)]:case core_1[_0x19ccf3(0x1da)][_0x19ccf3(0x1c8)]:case core_1['RouteParamTypes']['FILESTREAM']:return _0x19ccf3(0x18c);default:return _0x19ccf3(0x1b2);}}
|
|
1
|
+
const a9_0x2ba9ce=a9_0x27cf;(function(_0x3e61ca,_0x4b84fb){const _0x56ef19=a9_0x27cf,_0x23b03b=_0x3e61ca();while(!![]){try{const _0x235f08=-parseInt(_0x56ef19(0x1fe))/0x1+-parseInt(_0x56ef19(0x1f3))/0x2+parseInt(_0x56ef19(0x1eb))/0x3*(parseInt(_0x56ef19(0x220))/0x4)+parseInt(_0x56ef19(0x1fd))/0x5+-parseInt(_0x56ef19(0x20f))/0x6*(-parseInt(_0x56ef19(0x1f9))/0x7)+parseInt(_0x56ef19(0x200))/0x8*(parseInt(_0x56ef19(0x20e))/0x9)+-parseInt(_0x56ef19(0x22e))/0xa;if(_0x235f08===_0x4b84fb)break;else _0x23b03b['push'](_0x23b03b['shift']());}catch(_0x386780){_0x23b03b['push'](_0x23b03b['shift']());}}}(a9_0x1deb,0xe15c8));const a9_0x521415=(function(){let _0x12a39c=!![];return function(_0x222749,_0x1aec3b){const _0x39f89d=_0x12a39c?function(){if(_0x1aec3b){const _0x144e9e=_0x1aec3b['apply'](_0x222749,arguments);return _0x1aec3b=null,_0x144e9e;}}:function(){};return _0x12a39c=![],_0x39f89d;};}()),a9_0x5de5c7=a9_0x521415(this,function(){const _0x442f13=a9_0x27cf;return a9_0x5de5c7[_0x442f13(0x1ef)]()[_0x442f13(0x229)](_0x442f13(0x22f))[_0x442f13(0x1ef)]()['constructor'](a9_0x5de5c7)[_0x442f13(0x229)](_0x442f13(0x22f));});a9_0x5de5c7();'use strict';function a9_0x1deb(){const _0xf5a036=['toString','describe','propertyData','HEADERS','843738ZxiveC','String','static/apitest','PARAM','@midwayjs/core','lodash','7xZzUFc','join','File','items','7254155MCdOUn','291597FjMvCb','FIELDS','36328XjcQas','allow','FILESTREAM','ACTION_KEY','indexOf','find','prefix','flags.label','isArray','文件上传-','Object','intercept','flags.default','startsWith','1395qbcjHR','705282mARRUc','name','split','length','object','parameterIndex','route','只允许:[','keys','getClassMetadata','push','routerName','min','type','ACTION_ROUTE_KEY','title','rules','88anzKpR','pprefix','iterator','FILESSTREAM','array','required','key','requestMethod','RouteParamTypes','search','../types/action','number','body','path','9087730EzghMC','(((.+)+)+)+$','__esModule','args','method','/static/apitest','RULES_KEY','flags.description','concat','BODY','tagName','module','description','default','endsWith','children','metadata','test','summary','header','file','routerOptions','getMethodParamTypes','get','query','Number','listModule','routes','request','replace','max','filepath','noreq','INJECT_CUSTOM_PARAM','37239NyvTRN','getClassExtendedMetadata','filter','function'];a9_0x1deb=function(){return _0xf5a036;};return a9_0x1deb();}Object['defineProperty'](exports,a9_0x2ba9ce(0x230),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a9_0x2ba9ce(0x1f8)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x2ba9ce(0x1f7)),core_2=require(a9_0x2ba9ce(0x1f7)),core_3=require(a9_0x2ba9ce(0x1f7)),action_1=require(a9_0x2ba9ce(0x22a));function getRoutes(_0x409657={'prefix':'/','module':![]}){const _0x16de7d=a9_0x2ba9ce;var _0x41fc69,_0x535120;const _0x420397=(0x0,core_3[_0x16de7d(0x1e3)])(action_1['ACTION_KEY']),_0x186b77={},_0x2ee9b3=Array[_0x16de7d(0x208)](_0x409657[_0x16de7d(0x1ed)]||[])?_0x409657[_0x16de7d(0x1ed)]||[]:[_0x409657[_0x16de7d(0x1ed)]];_0x1acbac:for(const _0x4e3524 of _0x420397){let _0x5158b7=(0x0,core_3[_0x16de7d(0x218)])(action_1[_0x16de7d(0x203)],_0x4e3524),_0x5a9c42=(0x0,core_3[_0x16de7d(0x218)])(action_1[_0x16de7d(0x21d)],_0x4e3524);if(_0x5158b7&&_0x5a9c42){let _0xb36b72=_0x5158b7[_0x16de7d(0x206)],_0x56ef28={};if(_0x409657[_0x16de7d(0x1d4)]&&(0x0,lodash_1[_0x16de7d(0x1e0)])(_0x5158b7,'module',![])!=_0x409657['module'])continue _0x1acbac;else{if(_0x409657[_0x16de7d(0x1d4)]===![]&&!!(0x0,lodash_1[_0x16de7d(0x1e0)])(_0x5158b7,'module',null))continue _0x1acbac;}if(_0x409657[_0x16de7d(0x206)]&&!_0xb36b72[_0x16de7d(0x20d)](_0x409657[_0x16de7d(0x206)]))continue _0x1acbac;_0xb36b72!=='/'?(_0x56ef28[_0x16de7d(0x1db)]=(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7['routerOptions'][_0x16de7d(0x1d3)])||(/^\//[_0x16de7d(0x1da)](_0xb36b72)?_0xb36b72[_0x16de7d(0x211)]('/')[0x1]:_0xb36b72),_0x56ef28[_0x16de7d(0x1d5)]=(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7[_0x16de7d(0x1de)]['description'])||_0x56ef28['summary'],_0x56ef28['routes']=[]):(_0x56ef28[_0x16de7d(0x1db)]=(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7['routerOptions']['tagName'])||_0x16de7d(0x1d6),_0x56ef28['description']=(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7['routerOptions'][_0x16de7d(0x1d5)])||'',_0x56ef28[_0x16de7d(0x1e4)]=[]);_0x409657[_0x16de7d(0x1e8)]&&(_0x56ef28['filepath']=_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7[_0x16de7d(0x1e8)]);(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7[_0x16de7d(0x221)])&&(_0x56ef28[_0x16de7d(0x206)]=_0x5158b7[_0x16de7d(0x221)]);(_0x5158b7===null||_0x5158b7===void 0x0?void 0x0:_0x5158b7[_0x16de7d(0x1d4)])&&(_0x56ef28[_0x16de7d(0x1d4)]=_0x5158b7['module']);let _0x284550=(0x0,core_3['getClassMetadata'])(core_2[_0x16de7d(0x1ea)],_0x4e3524)||{};if(typeof _0x5a9c42[Symbol[_0x16de7d(0x222)]]==='function')for(let _0x3f0f7c of _0x5a9c42){if((_0x409657===null||_0x409657===void 0x0?void 0x0:_0x409657[_0x16de7d(0x20b)])&&!(_0x3f0f7c===null||_0x3f0f7c===void 0x0?void 0x0:_0x3f0f7c[_0x16de7d(0x20b)]))continue;let _0x488e8f={};_0x488e8f[_0x16de7d(0x232)]=_0x3f0f7c[_0x16de7d(0x227)],_0x488e8f[_0x16de7d(0x215)]=(_0xb36b72+_0x3f0f7c[_0x16de7d(0x22d)])[_0x16de7d(0x1e6)](/\/{1,}/,'/'),_0x488e8f[_0x16de7d(0x1db)]=(_0x3f0f7c===null||_0x3f0f7c===void 0x0?void 0x0:_0x3f0f7c[_0x16de7d(0x21a)])||_0x56ef28[_0x16de7d(0x1db)]||_0x16de7d(0x1d6),_0x488e8f[_0x16de7d(0x1d5)]=(_0x3f0f7c===null||_0x3f0f7c===void 0x0?void 0x0:_0x3f0f7c[_0x16de7d(0x1d5)])||'',_0x488e8f['request']=[];_0x488e8f[_0x16de7d(0x215)][_0x16de7d(0x1d7)]('/')&&(_0x488e8f['route']=_0x488e8f[_0x16de7d(0x215)]['substring'](0x0,_0x488e8f[_0x16de7d(0x215)][_0x16de7d(0x212)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x488e8f[_0x16de7d(0x215)],_0x16de7d(0x1f5))&&!(0x0,lodash_1[_0x16de7d(0x20d)])(_0x488e8f['route'],_0x16de7d(0x233))&&_0x2ee9b3['indexOf'](_0x488e8f[_0x16de7d(0x215)])===-0x1){if(!(_0x409657===null||_0x409657===void 0x0?void 0x0:_0x409657[_0x16de7d(0x1e9)])){let _0x3f461e=(0x0,core_3[_0x16de7d(0x1df)])(new _0x4e3524(),_0x3f0f7c['method']);for(const _0xcd5853 in _0x3f461e){let _0x271882=(_0x41fc69=_0x284550[_0x3f0f7c[_0x16de7d(0x232)]])===null||_0x41fc69===void 0x0?void 0x0:_0x41fc69[_0x16de7d(0x205)](_0x5322e6=>_0x5322e6[_0x16de7d(0x214)]==_0xcd5853&&_0x5322e6[_0x16de7d(0x226)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x5322e6===null||_0x5322e6===void 0x0?void 0x0:_0x5322e6[_0x16de7d(0x1d9)]));if(_0x271882===null||_0x271882===void 0x0?void 0x0:_0x271882['metadata']){let _0x5d8b7d=convertTypeToString(_0x271882[_0x16de7d(0x1d9)]['type']||0x0);if([_0x16de7d(0x1e1),_0x16de7d(0x22c)][_0x16de7d(0x204)](_0x5d8b7d)!=-0x1&&_0x271882[_0x16de7d(0x1d9)][_0x16de7d(0x1f1)][_0x16de7d(0x204)](':')==-0x1&&!_0x488e8f[_0x16de7d(0x1e5)][_0x16de7d(0x205)](_0x579dbd=>_0x579dbd[_0x16de7d(0x226)]==_0x271882[_0x16de7d(0x1d9)]['propertyData']))_0x488e8f[_0x16de7d(0x1e5)][_0x16de7d(0x219)]({'key':_0x271882[_0x16de7d(0x1d9)][_0x16de7d(0x1f1)],'title':_0x271882['metadata'][_0x16de7d(0x1f1)],'type':convertSchemaType(_0x3f461e[_0x271882[_0x16de7d(0x214)]][_0x16de7d(0x210)]),'required':![],'default':'','desc':''});else{if(_0x5d8b7d==_0x16de7d(0x1dd)){let _0x4884b9=((_0x535120=_0x271882===null||_0x271882===void 0x0?void 0x0:_0x271882['metadata'])===null||_0x535120===void 0x0?void 0x0:_0x535120[_0x16de7d(0x1f1)])||_0x16de7d(0x1dd);_0x4884b9['indexOf'](':')==-0x1&&!_0x488e8f['request'][_0x16de7d(0x205)](_0x4df345=>_0x4df345[_0x16de7d(0x226)]==_0x4884b9&&_0x4df345[_0x16de7d(0x21c)]==_0x16de7d(0x1dd))&&_0x488e8f[_0x16de7d(0x1e5)][_0x16de7d(0x219)]({'key':_0x4884b9,'title':_0x16de7d(0x209)+_0x4884b9,'type':_0x16de7d(0x1dd),'required':!![],'default':'','desc':''});}}}else{const _0x2ad379=(0x0,core_3[_0x16de7d(0x1ec)])(validator_1[_0x16de7d(0x234)],_0x3f461e[_0xcd5853]);_0x2ad379&&_0x488e8f['request'][_0x16de7d(0x219)](...getJoiRequest(_0x2ad379));}}}_0x56ef28[_0x16de7d(0x1e4)][_0x16de7d(0x219)](_0x488e8f);}}if(_0x56ef28[_0x16de7d(0x1e4)][_0x16de7d(0x212)]>0x0){let _0x2313c4=_0x186b77[_0xb36b72];_0x2313c4?(_0x2313c4['summary']!=_0x56ef28[_0x16de7d(0x1db)]&&(_0x2313c4[_0x16de7d(0x1db)]=_0x2313c4[_0x16de7d(0x1db)]+','+_0x56ef28[_0x16de7d(0x1db)]),_0x2313c4[_0x16de7d(0x1d5)]!=_0x56ef28[_0x16de7d(0x1d5)]&&(_0x2313c4[_0x16de7d(0x1d5)]=_0x2313c4[_0x16de7d(0x1d5)]+','+_0x56ef28[_0x16de7d(0x1d5)]),_0x2313c4[_0x16de7d(0x1e4)]=_0x2313c4['routes'][_0x16de7d(0x236)](_0x56ef28[_0x16de7d(0x1e4)]),_0x186b77[_0xb36b72]=_0x2313c4):_0x186b77[_0xb36b72]=_0x56ef28;}}}return _0x186b77;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x16e5d2){const _0x41c05b=a9_0x2ba9ce,_0x4d2f3a=[];for(let _0x255452 in _0x16e5d2){const _0x4024e9={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1cdbb8=typeof _0x16e5d2[_0x255452][_0x41c05b(0x1f0)]==_0x41c05b(0x1ee)?_0x16e5d2[_0x255452][_0x41c05b(0x1f0)]():_0x16e5d2[_0x255452];_0x4024e9[_0x41c05b(0x226)]=_0x255452,_0x4024e9[_0x41c05b(0x21c)]=_0x1cdbb8[_0x41c05b(0x21c)],_0x4024e9[_0x41c05b(0x21e)]=(0x0,lodash_1[_0x41c05b(0x1e0)])(_0x1cdbb8,_0x41c05b(0x207),_0x255452),_0x4024e9[_0x41c05b(0x1d6)]=(0x0,lodash_1['get'])(_0x1cdbb8,_0x41c05b(0x20c),''),_0x4024e9[_0x41c05b(0x225)]=(0x0,lodash_1['get'])(_0x1cdbb8,'flags.presence','')=='required',_0x4024e9[_0x41c05b(0x1d5)]=(0x0,lodash_1['get'])(_0x1cdbb8,_0x41c05b(0x235),'');if(_0x1cdbb8['type']==_0x41c05b(0x213))_0x4024e9[_0x41c05b(0x1d8)]=getJoiRequest(_0x1cdbb8[_0x41c05b(0x217)]);else _0x1cdbb8[_0x41c05b(0x21c)]==_0x41c05b(0x224)&&_0x1cdbb8['items']&&Array[_0x41c05b(0x208)](_0x1cdbb8[_0x41c05b(0x1fc)])&&_0x1cdbb8[_0x41c05b(0x1fc)][0x0]&&console['log'](_0x255452+'-array',_0x1cdbb8);_0x1cdbb8[_0x41c05b(0x201)]&&Array[_0x41c05b(0x208)](_0x1cdbb8[_0x41c05b(0x201)])&&_0x1cdbb8[_0x41c05b(0x201)][_0x41c05b(0x212)]>0x0&&(_0x4024e9['description']=_0x41c05b(0x216)+_0x1cdbb8[_0x41c05b(0x201)][_0x41c05b(0x1fa)](',')+'];'+_0x4024e9['description']);if(_0x4024e9[_0x41c05b(0x226)]&&_0x4024e9[_0x41c05b(0x21c)]){const _0x525e5f={};for(const _0x5e0797 of _0x1cdbb8[_0x41c05b(0x21f)]||[]){if(_0x5e0797[_0x41c05b(0x210)]===_0x41c05b(0x21b)&&_0x5e0797[_0x41c05b(0x231)])_0x525e5f['min']=_0x5e0797[_0x41c05b(0x231)]['limit'];else _0x5e0797[_0x41c05b(0x210)]===_0x41c05b(0x1e7)&&(_0x525e5f[_0x41c05b(0x1e7)]=_0x5e0797['args']['limit']);}_0x4024e9['rules']=_0x525e5f;}_0x4024e9[_0x41c05b(0x226)]&&_0x4024e9['title']&&_0x4d2f3a[_0x41c05b(0x219)](_0x4024e9);}return _0x4d2f3a;}function a9_0x27cf(_0x22df3d,_0x92a6ec){const _0x423665=a9_0x1deb();return a9_0x27cf=function(_0x5de5c7,_0x521415){_0x5de5c7=_0x5de5c7-0x1d2;let _0x1deb7b=_0x423665[_0x5de5c7];return _0x1deb7b;},a9_0x27cf(_0x22df3d,_0x92a6ec);}function convertSchemaType(_0x33b6fc){const _0x158ec9=a9_0x2ba9ce;switch(_0x33b6fc){case _0x158ec9(0x20a):return'object';case'Boolean':return'boolean';case _0x158ec9(0x1e2):return _0x158ec9(0x22b);case _0x158ec9(0x1f4):return'string';case _0x158ec9(0x1fb):return'file';default:return'string';}}function convertTypeToString(_0x32ee3e){const _0x29e14d=a9_0x2ba9ce;switch(_0x32ee3e){case core_1[_0x29e14d(0x228)][_0x29e14d(0x1f2)]:return _0x29e14d(0x1dc);case core_1['RouteParamTypes']['QUERY']:return'query';case core_1['RouteParamTypes'][_0x29e14d(0x1f6)]:return _0x29e14d(0x22d);case core_1[_0x29e14d(0x228)][_0x29e14d(0x1d2)]:return _0x29e14d(0x22c);case core_1['RouteParamTypes'][_0x29e14d(0x1ff)]:case core_1[_0x29e14d(0x228)][_0x29e14d(0x223)]:case core_1[_0x29e14d(0x228)][_0x29e14d(0x202)]:return'file';default:return _0x29e14d(0x1dc);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x41b137=a10_0xe055;(function(_0x111bc7,_0x306e46){var _0x1d340d=a10_0xe055,_0x32a1dd=_0x111bc7();while(!![]){try{var _0x41b9ed=parseInt(_0x1d340d(0xca))/0x1+-parseInt(_0x1d340d(0xf2))/0x2*(-parseInt(_0x1d340d(0xc1))/0x3)+parseInt(_0x1d340d(0xcb))/0x4+parseInt(_0x1d340d(0xd9))/0x5+parseInt(_0x1d340d(0xbb))/0x6*(-parseInt(_0x1d340d(0xe1))/0x7)+parseInt(_0x1d340d(0xd5))/0x8*(parseInt(_0x1d340d(0xc2))/0x9)+-parseInt(_0x1d340d(0xc9))/0xa;if(_0x41b9ed===_0x306e46)break;else _0x32a1dd['push'](_0x32a1dd['shift']());}catch(_0x4aec81){_0x32a1dd['push'](_0x32a1dd['shift']());}}}(a10_0x11f9,0xa5db6));var a10_0x37107a=(function(){var _0x317e53=!![];return function(_0x4ea476,_0x5521a2){var _0x30ead2=_0x317e53?function(){if(_0x5521a2){var _0x284eaf=_0x5521a2['apply'](_0x4ea476,arguments);return _0x5521a2=null,_0x284eaf;}}:function(){};return _0x317e53=![],_0x30ead2;};}()),a10_0x364d53=a10_0x37107a(this,function(){var _0x5c75f4=a10_0xe055;return a10_0x364d53[_0x5c75f4(0xe0)]()[_0x5c75f4(0xd8)](_0x5c75f4(0xd7))[_0x5c75f4(0xe0)]()[_0x5c75f4(0xc7)](a10_0x364d53)[_0x5c75f4(0xd8)](_0x5c75f4(0xd7));});a10_0x364d53();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a10_0x41b137(0xe5)]?function(_0xb3f738,_0xfb9350,_0xae7b75,_0x571504){var _0x3c00c3=a10_0x41b137;if(_0x571504===undefined)_0x571504=_0xae7b75;var _0x29b174=Object['getOwnPropertyDescriptor'](_0xfb9350,_0xae7b75);(!_0x29b174||('get'in _0x29b174?!_0xfb9350[_0x3c00c3(0xdd)]:_0x29b174[_0x3c00c3(0xbd)]||_0x29b174[_0x3c00c3(0xd6)]))&&(_0x29b174={'enumerable':!![],'get':function(){return _0xfb9350[_0xae7b75];}}),Object[_0x3c00c3(0xe7)](_0xb3f738,_0x571504,_0x29b174);}:function(_0x4fc528,_0x2d2ede,_0x2ebf11,_0x26dc9c){if(_0x26dc9c===undefined)_0x26dc9c=_0x2ebf11;_0x4fc528[_0x26dc9c]=_0x2d2ede[_0x2ebf11];}),__exportStar=this&&this['__exportStar']||function(_0x2c08db,_0x111cb2){var _0x22c898=a10_0x41b137;for(var _0x58e96d in _0x2c08db)if(_0x58e96d!==_0x22c898(0xc6)&&!Object[_0x22c898(0xc3)]['hasOwnProperty'][_0x22c898(0xe9)](_0x111cb2,_0x58e96d))__createBinding(_0x111cb2,_0x2c08db,_0x58e96d);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x41b137(0xb7)]=exports[a10_0x41b137(0xed)]=exports[a10_0x41b137(0xce)]=exports[a10_0x41b137(0xb6)]=exports[a10_0x41b137(0xd4)]=exports[a10_0x41b137(0xea)]=exports[a10_0x41b137(0xe4)]=exports[a10_0x41b137(0xe2)]=exports[a10_0x41b137(0xb1)]=exports[a10_0x41b137(0xb5)]=exports[a10_0x41b137(0xc5)]=exports['Query']=exports[a10_0x41b137(0xb0)]=exports[a10_0x41b137(0xbe)]=exports[a10_0x41b137(0xda)]=exports[a10_0x41b137(0xeb)]=exports['File']=exports[a10_0x41b137(0xb3)]=exports['ValidatorService']=exports[a10_0x41b137(0xf0)]=exports['ExcelService']=exports[a10_0x41b137(0xb9)]=exports[a10_0x41b137(0xdc)]=exports[a10_0x41b137(0xf1)]=exports[a10_0x41b137(0xba)]=exports[a10_0x41b137(0xcc)]=exports[a10_0x41b137(0xc0)]=exports[a10_0x41b137(0xec)]=exports[a10_0x41b137(0xd2)]=exports[a10_0x41b137(0xef)]=exports[a10_0x41b137(0xc8)]=void 0x0;const getAppsConfig_1=require(a10_0x41b137(0xdf));Object['defineProperty'](exports,a10_0x41b137(0xb7),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x41b137(0xe8)),exports),__exportStar(require(a10_0x41b137(0xc4)),exports);var ActionApi_1=require('./decorator/ActionApi');Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xc8),{'enumerable':!![],'get':function(){var _0x192643=a10_0x41b137;return ActionApi_1[_0x192643(0xc8)];}});var Action_1=require(a10_0x41b137(0xbc));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xef),{'enumerable':!![],'get':function(){var _0x377e70=a10_0x41b137;return Action_1[_0x377e70(0xef)];}});var ActionApitest_1=require(a10_0x41b137(0xd3));function a10_0xe055(_0x431111,_0x524694){var _0x321c79=a10_0x11f9();return a10_0xe055=function(_0x364d53,_0x37107a){_0x364d53=_0x364d53-0xb0;var _0x11f9d1=_0x321c79[_0x364d53];return _0x11f9d1;},a10_0xe055(_0x431111,_0x524694);}Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xd2),{'enumerable':!![],'get':function(){var _0x40053a=a10_0x41b137;return ActionApitest_1[_0x40053a(0xd2)];}});var Intercept_1=require(a10_0x41b137(0xcf));Object['defineProperty'](exports,a10_0x41b137(0xec),{'enumerable':!![],'get':function(){var _0x4fc037=a10_0x41b137;return Intercept_1[_0x4fc037(0xec)];}}),Object['defineProperty'](exports,'IIntercept',{'enumerable':!![],'get':function(){var _0x305014=a10_0x41b137;return Intercept_1[_0x305014(0xc0)];}});var getRoutes_1=require(a10_0x41b137(0xd1));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xcc),{'enumerable':!![],'get':function(){var _0x6158dc=a10_0x41b137;return getRoutes_1[_0x6158dc(0xcc)];}});function a10_0x11f9(){var _0x53099a=['15334240mkBCsu','50501cNynXS','4287160jUoCAK','getRoutes','@midwayjs/core','Singleton','./decorator/Intercept','@anncic-api/event','./helper/getRoutes','Apitest','./decorator/ActionApitest','Inject','216824GdbwHw','configurable','(((.+)+)+)+$','search','5712975VXzaRv','Fields','./configuration','EventService','__esModule','ValidatorService','./helper/getAppsConfig','toString','12439CqnLZX','Config','./exception/ApiError','Logger','create','File','defineProperty','./types/common','call','Provide','Files','Intercept','ScopeEnum','./service/ApiService','Action','ValidatorError','CacheService','146BAMGeH','ExcelService','Param','App','CustomConfiguration','Configuration','@anncic-api/validator','Init','Scope','getAppsConfig','Query','ApiService','ApiError','1506GarPBx','./decorator/Action','writable','Body','@anncic-api/cache','IIntercept','11733cYZSAD','36TkWXVG','prototype','./service/ApitestService','Headers','default','constructor','Api'];a10_0x11f9=function(){return _0x53099a;};return a10_0x11f9();}var ApiError_1=require(a10_0x41b137(0xe3));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xba),{'enumerable':!![],'get':function(){var _0x5094fa=a10_0x41b137;return ApiError_1[_0x5094fa(0xba)];}});var cache_1=require(a10_0x41b137(0xbf));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xf1),{'enumerable':!![],'get':function(){var _0x161ec2=a10_0x41b137;return cache_1[_0x161ec2(0xf1)];}});var event_1=require(a10_0x41b137(0xd0));Object['defineProperty'](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a10_0x41b137(0xee));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb9),{'enumerable':!![],'get':function(){var _0x12e196=a10_0x41b137;return ApiService_1[_0x12e196(0xb9)];}});var ExcelService_1=require('./service/ExcelService');Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xf3),{'enumerable':!![],'get':function(){var _0x131173=a10_0x41b137;return ExcelService_1[_0x131173(0xf3)];}});var validator_1=require(a10_0x41b137(0xb4));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xf0),{'enumerable':!![],'get':function(){var _0xc41cb4=a10_0x41b137;return validator_1[_0xc41cb4(0xf0)];}}),Object['defineProperty'](exports,a10_0x41b137(0xde),{'enumerable':!![],'get':function(){var _0xea2123=a10_0x41b137;return validator_1[_0xea2123(0xde)];}});var configuration_1=require(a10_0x41b137(0xdb));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb3),{'enumerable':!![],'get':function(){var _0x5e74c3=a10_0x41b137;return configuration_1[_0x5e74c3(0xb2)];}});var core_1=require(a10_0x41b137(0xcd));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xe6),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xeb),{'enumerable':!![],'get':function(){var _0x3ec16a=a10_0x41b137;return core_1[_0x3ec16a(0xeb)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xda),{'enumerable':!![],'get':function(){var _0x4b7cdf=a10_0x41b137;return core_1[_0x4b7cdf(0xda)];}}),Object[a10_0x41b137(0xe7)](exports,'Body',{'enumerable':!![],'get':function(){var _0x55503a=a10_0x41b137;return core_1[_0x55503a(0xbe)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb0),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb8),{'enumerable':!![],'get':function(){var _0x388c76=a10_0x41b137;return core_1[_0x388c76(0xb8)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xc5),{'enumerable':!![],'get':function(){var _0xbf4602=a10_0x41b137;return core_1[_0xbf4602(0xc5)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb5),{'enumerable':!![],'get':function(){var _0x73f9fa=a10_0x41b137;return core_1[_0x73f9fa(0xb5)];}});var core_2=require(a10_0x41b137(0xcd));Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb1),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xe2),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xe4),{'enumerable':!![],'get':function(){var _0x45ec3f=a10_0x41b137;return core_2[_0x45ec3f(0xe4)];}}),Object[a10_0x41b137(0xe7)](exports,'Provide',{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xd4),{'enumerable':!![],'get':function(){var _0x14464a=a10_0x41b137;return core_2[_0x14464a(0xd4)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xb6),{'enumerable':!![],'get':function(){var _0x4cc43e=a10_0x41b137;return core_2[_0x4cc43e(0xb6)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xce),{'enumerable':!![],'get':function(){var _0x7df822=a10_0x41b137;return core_2[_0x7df822(0xce)];}}),Object[a10_0x41b137(0xe7)](exports,a10_0x41b137(0xed),{'enumerable':!![],'get':function(){var _0x3fe1f=a10_0x41b137;return core_2[_0x3fe1f(0xed)];}}),global[a10_0x41b137(0xb7)]=getAppsConfig_1[a10_0x41b137(0xb7)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x4141be=a11_0x5ad8;(function(_0x49e5c0,_0x159939){var _0x3ffde1=a11_0x5ad8,_0x481791=_0x49e5c0();while(!![]){try{var _0x1c475e=parseInt(_0x3ffde1(0x176))/0x1+parseInt(_0x3ffde1(0x184))/0x2+parseInt(_0x3ffde1(0x17f))/0x3+-parseInt(_0x3ffde1(0x17d))/0x4+-parseInt(_0x3ffde1(0x178))/0x5+-parseInt(_0x3ffde1(0x194))/0x6*(-parseInt(_0x3ffde1(0x193))/0x7)+-parseInt(_0x3ffde1(0x172))/0x8;if(_0x1c475e===_0x159939)break;else _0x481791['push'](_0x481791['shift']());}catch(_0x57e264){_0x481791['push'](_0x481791['shift']());}}}(a11_0x7dd8,0xa4fd9));var a11_0x5b7f1c=(function(){var _0x41301e=!![];return function(_0x2db493,_0x571b7c){var _0x1325b8=_0x41301e?function(){if(_0x571b7c){var _0x4ee6ed=_0x571b7c['apply'](_0x2db493,arguments);return _0x571b7c=null,_0x4ee6ed;}}:function(){};return _0x41301e=![],_0x1325b8;};}()),a11_0x40e0d5=a11_0x5b7f1c(this,function(){var _0x47adbe=a11_0x5ad8;return a11_0x40e0d5['toString']()[_0x47adbe(0x1a2)]('(((.+)+)+)+$')[_0x47adbe(0x16b)]()[_0x47adbe(0x18b)](a11_0x40e0d5)['search'](_0x47adbe(0x198));});a11_0x40e0d5();'use strict';function a11_0x5ad8(_0x1a0d5e,_0x2ea017){var _0x28036b=a11_0x7dd8();return a11_0x5ad8=function(_0x40e0d5,_0x5b7f1c){_0x40e0d5=_0x40e0d5-0x168;var _0x7dd87d=_0x28036b[_0x40e0d5];return _0x7dd87d;},a11_0x5ad8(_0x1a0d5e,_0x2ea017);}var __decorate=this&&this[a11_0x4141be(0x18c)]||function(_0x2cea02,_0x5bdcab,_0x22baf5,_0x7a6012){var _0x2a0b6a=a11_0x4141be,_0x261722=arguments[_0x2a0b6a(0x181)],_0x175b5c=_0x261722<0x3?_0x5bdcab:_0x7a6012===null?_0x7a6012=Object[_0x2a0b6a(0x16f)](_0x5bdcab,_0x22baf5):_0x7a6012,_0x44c4d5;if(typeof Reflect===_0x2a0b6a(0x1a1)&&typeof Reflect[_0x2a0b6a(0x16c)]===_0x2a0b6a(0x18a))_0x175b5c=Reflect[_0x2a0b6a(0x16c)](_0x2cea02,_0x5bdcab,_0x22baf5,_0x7a6012);else{for(var _0x34699e=_0x2cea02[_0x2a0b6a(0x181)]-0x1;_0x34699e>=0x0;_0x34699e--)if(_0x44c4d5=_0x2cea02[_0x34699e])_0x175b5c=(_0x261722<0x3?_0x44c4d5(_0x175b5c):_0x261722>0x3?_0x44c4d5(_0x5bdcab,_0x22baf5,_0x175b5c):_0x44c4d5(_0x5bdcab,_0x22baf5))||_0x175b5c;}return _0x261722>0x3&&_0x175b5c&&Object[_0x2a0b6a(0x192)](_0x5bdcab,_0x22baf5,_0x175b5c),_0x175b5c;},__metadata=this&&this[a11_0x4141be(0x190)]||function(_0x41a420,_0x38812a){var _0xad5fff=a11_0x4141be;if(typeof Reflect===_0xad5fff(0x1a1)&&typeof Reflect[_0xad5fff(0x17b)]===_0xad5fff(0x18a))return Reflect[_0xad5fff(0x17b)](_0x41a420,_0x38812a);};function a11_0x7dd8(){var _0x1b907f=['secret','3507087NXtnKe','config','length','logintime','Singleton','1212230kNZXYK','prototype','Provide','TIMEOUT_LOGINTIME','password','MD5','function','constructor','__decorate','secret=','HEADERS_CHECKCODE','device','__metadata','checkcode','defineProperty','98567dMZSnW','414VXvMGJ','now','HEADERS_LACK','signature','(((.+)+)+)+$','ScopeEnum','abs','缺少头信息:','undefined','HEADERS_SIGNATURE','getsign','devices','ApiService','object','search','logintimeout','__esModule','push','../exception/ApiError','toString','decorate','Config','entries','getOwnPropertyDescriptor','requesttime','checksign','16395872LJNzig','toLowerCase','token','map','1296793QgEsES','缺少头信息:signature','5472000ExwAHs','HEADERS_DEVICE','ApiError','metadata','timeout','895364RuPOWe'];a11_0x7dd8=function(){return _0x1b907f;};return a11_0x7dd8();}Object[a11_0x4141be(0x192)](exports,a11_0x4141be(0x168),{'value':!![]}),exports[a11_0x4141be(0x1a0)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require('@midwayjs/core'),ApiError_1=require(a11_0x4141be(0x16a));let ApiService=class ApiService{[a11_0x4141be(0x188)](_0x500204){var _0x43593c=a11_0x4141be,_0x354c7e;return _0x500204?(0x0,crypto_js_1[_0x43593c(0x189)])(''+_0x500204+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x43593c(0x189)])(''+_0x500204)[_0x43593c(0x16b)]()+(''+((_0x354c7e=this[_0x43593c(0x180)])===null||_0x354c7e===void 0x0?void 0x0:_0x354c7e[_0x43593c(0x188)])))[_0x43593c(0x16b)]())[_0x43593c(0x16b)]():'';}['getcheck'](_0x2ac7eb,_0x47e328,_0x55ac91=Date['now']()){var _0x433e8b=a11_0x4141be;return{'Token':_0x2ac7eb,'Logintime':_0x55ac91,'Checkcode':this[_0x433e8b(0x191)](_0x2ac7eb,_0x47e328,_0x55ac91)};}[a11_0x4141be(0x19e)](_0x1177d4={}){var _0xf258cc=a11_0x4141be,_0x290b29,_0x28cd9e;const _0x15fbbf=[],_0x1ac31e=Object['fromEntries'](Object[_0xf258cc(0x16e)](_0x1177d4)[_0xf258cc(0x175)](_0x42f681=>[_0x42f681[0x0][_0xf258cc(0x173)](),_0x42f681[0x1]]));for(let _0xdda045 of['device',_0xf258cc(0x170),_0xf258cc(0x174),'logintime',_0xf258cc(0x191)]){if(typeof _0x1ac31e[_0xdda045]==_0xf258cc(0x19c))throw new AnnError(ApiError_1['ApiError'][_0xf258cc(0x196)],{'message':_0xf258cc(0x19b)+_0xdda045});_0x15fbbf['push'](_0xdda045+'='+_0x1ac31e[_0xdda045]);}_0x1ac31e[_0xf258cc(0x170)]&&((_0x290b29=_0x1ac31e[_0xf258cc(0x170)])===null||_0x290b29===void 0x0?void 0x0:_0x290b29[_0xf258cc(0x181)])==0xa&&(_0x1ac31e['requesttime']=_0x1ac31e[_0xf258cc(0x170)]*0x3e8);if(this[_0xf258cc(0x180)][_0xf258cc(0x17c)]&&Date[_0xf258cc(0x195)]()-Math[_0xf258cc(0x19a)](_0x1ac31e[_0xf258cc(0x170)])>this[_0xf258cc(0x180)][_0xf258cc(0x17c)])throw new AnnError(ApiError_1[_0xf258cc(0x17a)]['TIMEOUT'],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x1ac31e['requesttime'],'timestamp':Date[_0xf258cc(0x195)]()});if((((_0x28cd9e=this['config']['devices'][_0x1ac31e['device']])===null||_0x28cd9e===void 0x0?void 0x0:_0x28cd9e[_0xf258cc(0x1a3)])||0x0)>0x0&&Date[_0xf258cc(0x195)]()-Math[_0xf258cc(0x19a)](_0x1ac31e[_0xf258cc(0x182)])>this['config'][_0xf258cc(0x19f)][_0x1ac31e['device']][_0xf258cc(0x1a3)])throw new AnnError(ApiError_1[_0xf258cc(0x17a)][_0xf258cc(0x187)]);if(!this[_0xf258cc(0x180)]['devices'][_0x1ac31e[_0xf258cc(0x18f)]]||!this['config'][_0xf258cc(0x19f)][_0x1ac31e[_0xf258cc(0x18f)]][_0xf258cc(0x17e)]||!this[_0xf258cc(0x180)]['devices'][_0x1ac31e[_0xf258cc(0x18f)]][_0xf258cc(0x191)])throw new AnnError(ApiError_1[_0xf258cc(0x17a)][_0xf258cc(0x179)]);if(_0x1ac31e[_0xf258cc(0x174)]&&_0x1ac31e[_0xf258cc(0x191)]!=this[_0xf258cc(0x191)](_0x1ac31e[_0xf258cc(0x174)],_0x1ac31e['device'],_0x1ac31e['logintime']))throw new AnnError(ApiError_1[_0xf258cc(0x17a)][_0xf258cc(0x18e)]);return _0x15fbbf[_0xf258cc(0x169)](_0xf258cc(0x18d)+this['config'][_0xf258cc(0x19f)][_0x1ac31e[_0xf258cc(0x18f)]][_0xf258cc(0x17e)]),(0x0,crypto_js_1['MD5'])(_0x15fbbf['sort']()['join'](''))[_0xf258cc(0x16b)]();}['checkcode'](_0x26596f,_0x2091ce,_0x44cdfe=Date[a11_0x4141be(0x195)]()){var _0x120a37=a11_0x4141be,_0x2db89d,_0x41c6d4,_0x1df979;if(!((_0x2db89d=this[_0x120a37(0x180)])===null||_0x2db89d===void 0x0?void 0x0:_0x2db89d[_0x120a37(0x19f)][_0x2091ce])||!((_0x1df979=(_0x41c6d4=this[_0x120a37(0x180)])===null||_0x41c6d4===void 0x0?void 0x0:_0x41c6d4[_0x120a37(0x19f)][_0x2091ce])===null||_0x1df979===void 0x0?void 0x0:_0x1df979[_0x120a37(0x191)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x120a37(0x189)])(''+_0x26596f+(0x0,crypto_js_1[_0x120a37(0x189)])(''+_0x44cdfe+(''+this[_0x120a37(0x180)][_0x120a37(0x19f)][_0x2091ce][_0x120a37(0x191)]))[_0x120a37(0x16b)]())['toString']();}[a11_0x4141be(0x171)](_0x4e5b29={}){var _0x5f3a68=a11_0x4141be;const _0x5ca704=Object['fromEntries'](Object[_0x5f3a68(0x16e)](_0x4e5b29)['map'](_0x18f1ca=>[_0x18f1ca[0x0][_0x5f3a68(0x173)](),_0x18f1ca[0x1]]));if(!(_0x5ca704===null||_0x5ca704===void 0x0?void 0x0:_0x5ca704[_0x5f3a68(0x197)]))throw new AnnError(ApiError_1[_0x5f3a68(0x17a)][_0x5f3a68(0x196)],{'message':_0x5f3a68(0x177)});if((_0x5ca704===null||_0x5ca704===void 0x0?void 0x0:_0x5ca704[_0x5f3a68(0x197)])!=this[_0x5f3a68(0x19e)](_0x5ca704))throw new AnnError(ApiError_1[_0x5f3a68(0x17a)][_0x5f3a68(0x19d)]);return!![];}};__decorate([(0x0,core_1[a11_0x4141be(0x16d)])('anncicapi'),__metadata('design:type',Object)],ApiService[a11_0x4141be(0x185)],a11_0x4141be(0x180),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x4141be(0x186)])(),(0x0,core_1['Scope'])(core_1[a11_0x4141be(0x199)][a11_0x4141be(0x183)])],ApiService),exports[a11_0x4141be(0x1a0)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a12_0x3248(){const _0x30a911=['defineProperty','272026DzbLMI','1481724zNVWCT','search','MidwayEnvironmentService','19612683VETjDn','public,\x20max-age=604800','apiteststatic','apitesthtml','1033616xCgWnR','Scope','3038825khboRR','ApitestService','1067874tGTHXt','Request','design:returntype','/apiteststatic/*','toString','method','set','/index.html','__metadata','10lpSxad','utf-8','apitestmodule','ApitestStaticController','Config','prefix','content-type','isDevelopmentEnvironment','design:type','Inject','summary','/apitest-:module','replace','Controller','ScopeEnum','object','.js','existsSync','readFileSync','decorate','filepath','(((.+)+)+)+$','__decorate','route','104oIgKtc','push','ctx','length','@midwayjs/core','Environment','getRoutes','text/css;\x20charset=utf-8','getOwnPropertyDescriptor','cache-control','request','/apitest','apidoc','metadata','extname','../../public/','__devices__','anncicapi','apitest','Param','function','../../public/index.html','prototype','44695AZOKts','substring','url','Get','6ycodes','config','path','/apiteststatic/','routes','design:paramtypes'];a12_0x3248=function(){return _0x30a911;};return a12_0x3248();}const a12_0x574fa0=a12_0x4407;(function(_0x323aa6,_0x3dd82b){const _0x185776=a12_0x4407,_0x33c39c=_0x323aa6();while(!![]){try{const _0x4191ff=-parseInt(_0x185776(0x12f))/0x1+-parseInt(_0x185776(0x13b))/0x2+-parseInt(_0x185776(0x128))/0x3*(parseInt(_0x185776(0x137))/0x4)+-parseInt(_0x185776(0x139))/0x5+parseInt(_0x185776(0x130))/0x6+parseInt(_0x185776(0x124))/0x7*(-parseInt(_0x185776(0x10d))/0x8)+-parseInt(_0x185776(0x133))/0x9*(-parseInt(_0x185776(0x144))/0xa);if(_0x4191ff===_0x3dd82b)break;else _0x33c39c['push'](_0x33c39c['shift']());}catch(_0x433a45){_0x33c39c['push'](_0x33c39c['shift']());}}}(a12_0x3248,0x64bb8));const a12_0xaf42c5=(function(){let _0x1e9b15=!![];return function(_0x50c1d5,_0x2db1e2){const _0x5b9d33=_0x1e9b15?function(){if(_0x2db1e2){const _0x595e95=_0x2db1e2['apply'](_0x50c1d5,arguments);return _0x2db1e2=null,_0x595e95;}}:function(){};return _0x1e9b15=![],_0x5b9d33;};}()),a12_0x1def73=a12_0xaf42c5(this,function(){const _0x44b1ca=a12_0x4407;return a12_0x1def73[_0x44b1ca(0x13f)]()[_0x44b1ca(0x131)](_0x44b1ca(0x10a))[_0x44b1ca(0x13f)]()['constructor'](a12_0x1def73)['search'](_0x44b1ca(0x10a));});a12_0x1def73();'use strict';var __decorate=this&&this[a12_0x574fa0(0x10b)]||function(_0x5693cd,_0x1cf59e,_0x34cd82,_0x2e51ad){const _0x3ecba5=a12_0x574fa0;var _0x5c9871=arguments['length'],_0x1d7577=_0x5c9871<0x3?_0x1cf59e:_0x2e51ad===null?_0x2e51ad=Object[_0x3ecba5(0x115)](_0x1cf59e,_0x34cd82):_0x2e51ad,_0xb95088;if(typeof Reflect===_0x3ecba5(0x104)&&typeof Reflect[_0x3ecba5(0x108)]===_0x3ecba5(0x121))_0x1d7577=Reflect[_0x3ecba5(0x108)](_0x5693cd,_0x1cf59e,_0x34cd82,_0x2e51ad);else{for(var _0x2f40e0=_0x5693cd[_0x3ecba5(0x110)]-0x1;_0x2f40e0>=0x0;_0x2f40e0--)if(_0xb95088=_0x5693cd[_0x2f40e0])_0x1d7577=(_0x5c9871<0x3?_0xb95088(_0x1d7577):_0x5c9871>0x3?_0xb95088(_0x1cf59e,_0x34cd82,_0x1d7577):_0xb95088(_0x1cf59e,_0x34cd82))||_0x1d7577;}return _0x5c9871>0x3&&_0x1d7577&&Object[_0x3ecba5(0x12e)](_0x1cf59e,_0x34cd82,_0x1d7577),_0x1d7577;},__metadata=this&&this[a12_0x574fa0(0x143)]||function(_0x20aee5,_0x5561ed){const _0x42b85e=a12_0x574fa0;if(typeof Reflect===_0x42b85e(0x104)&&typeof Reflect[_0x42b85e(0x11a)]===_0x42b85e(0x121))return Reflect['metadata'](_0x20aee5,_0x5561ed);},__param=this&&this['__param']||function(_0x3a7328,_0x196a78){return function(_0x2e2f54,_0x402df7){_0x196a78(_0x2e2f54,_0x402df7,_0x3a7328);};};Object[a12_0x574fa0(0x12e)](exports,'__esModule',{'value':!![]}),exports['ApitestStaticController']=exports[a12_0x574fa0(0x13a)]=void 0x0;const path_1=require(a12_0x574fa0(0x12a)),fs_1=require('fs'),core_1=require(a12_0x574fa0(0x111)),core_2=require(a12_0x574fa0(0x111)),core_3=require(a12_0x574fa0(0x111)),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a12_0x574fa0(0x119)](_0x50a69e){const _0x55c8d6=a12_0x574fa0,_0x527068=(0x0,getRoutes_1[_0x55c8d6(0x113)])(_0x50a69e),_0x10705e=[];for(let _0x3a5d23 in _0x527068){for(let _0x590ec1 in _0x527068[_0x3a5d23][_0x55c8d6(0x12c)]){let _0x1d1c3e=_0x527068[_0x3a5d23]['routes'][_0x590ec1],_0x314211=[];for(let _0x25c46e in _0x1d1c3e[_0x55c8d6(0x117)]){_0x314211['push'](_0x1d1c3e['request'][_0x25c46e]);}_0x10705e[_0x55c8d6(0x10e)]({'title':_0x527068[_0x3a5d23][_0x55c8d6(0x14e)]+':'+_0x1d1c3e[_0x55c8d6(0x14e)],'prefix':_0x527068[_0x3a5d23][_0x55c8d6(0x149)],'router':_0x1d1c3e[_0x55c8d6(0x10c)],'method':_0x1d1c3e[_0x55c8d6(0x140)],'describe':_0x1d1c3e['description']||'','filepath':_0x527068[_0x3a5d23][_0x55c8d6(0x109)]||'','request':_0x314211});}}const _0x180f54=(0x0,path_1['join'])(__dirname,_0x55c8d6(0x122));return(0x0,fs_1[_0x55c8d6(0x107)])(_0x180f54,{'encoding':_0x55c8d6(0x145)})[_0x55c8d6(0x150)](/__res__/g,_0x55c8d6(0x12b))[_0x55c8d6(0x150)]('__apiList__',JSON['stringify'](_0x10705e))['replace'](_0x55c8d6(0x11d),JSON['stringify'](this[_0x55c8d6(0x129)]['devices']));}};__decorate([(0x0,core_3['Config'])(a12_0x574fa0(0x11e)),__metadata(a12_0x574fa0(0x14c),Object)],ApitestService['prototype'],'config',void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])('apitest'),(0x0,core_3[a12_0x574fa0(0x138)])(core_3[a12_0x574fa0(0x103)]['Singleton'])],ApitestService),exports[a12_0x574fa0(0x13a)]=ApitestService;function a12_0x4407(_0x29b36d,_0x4104dd){const _0x399d75=a12_0x3248();return a12_0x4407=function(_0x1def73,_0xaf42c5){_0x1def73=_0x1def73-0x103;let _0x3248fc=_0x399d75[_0x1def73];return _0x3248fc;},a12_0x4407(_0x29b36d,_0x4104dd);}let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x3367dc=a12_0x574fa0;if(this['apitest']){const _0x441645={'module':![]};return this[_0x3367dc(0x112)][_0x3367dc(0x14b)]()&&(_0x441645['filepath']=!![]),await this[_0x3367dc(0x13a)][_0x3367dc(0x119)](_0x441645);}return'';}async['apitestmodule'](_0x220bbd){const _0x402ebd=a12_0x574fa0;if(this[_0x402ebd(0x11f)]){const _0x5e587e={'module':_0x220bbd};return this[_0x402ebd(0x112)]['isDevelopmentEnvironment']()&&(_0x5e587e[_0x402ebd(0x109)]=!![]),await this[_0x402ebd(0x13a)][_0x402ebd(0x119)](_0x5e587e);}return'';}async[a12_0x574fa0(0x135)](){const _0x26e9b9=a12_0x574fa0;if((0x0,path_1[_0x26e9b9(0x11b)])(this[_0x26e9b9(0x10f)][_0x26e9b9(0x117)][_0x26e9b9(0x126)])){var _0x23a205=(0x0,path_1['join'])(__dirname,_0x26e9b9(0x11c)+this['ctx'][_0x26e9b9(0x117)]['url'][_0x26e9b9(0x150)](_0x26e9b9(0x12b),'/'));if(_0x23a205[_0x26e9b9(0x125)](_0x23a205[_0x26e9b9(0x110)]-0xb)!=_0x26e9b9(0x142)){this[_0x26e9b9(0x10f)][_0x26e9b9(0x141)](_0x26e9b9(0x116),_0x26e9b9(0x134));if((0x0,path_1[_0x26e9b9(0x11b)])(this[_0x26e9b9(0x10f)][_0x26e9b9(0x117)][_0x26e9b9(0x126)])==_0x26e9b9(0x105))this[_0x26e9b9(0x10f)]['set'](_0x26e9b9(0x14a),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x26e9b9(0x11b)])(this[_0x26e9b9(0x10f)][_0x26e9b9(0x117)][_0x26e9b9(0x126)])=='.css'&&this[_0x26e9b9(0x10f)][_0x26e9b9(0x141)](_0x26e9b9(0x14a),_0x26e9b9(0x114));return(0x0,fs_1[_0x26e9b9(0x106)])(_0x23a205)&&(0x0,fs_1[_0x26e9b9(0x107)])(_0x23a205,{'encoding':_0x26e9b9(0x145)});}}return'';}};__decorate([(0x0,core_3[a12_0x574fa0(0x14d)])(),__metadata('design:type',Object)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x10f),void 0x0),__decorate([(0x0,core_3[a12_0x574fa0(0x14d)])(),__metadata('design:type',core_1[a12_0x574fa0(0x132)])],ApitestStaticController['prototype'],a12_0x574fa0(0x112),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x574fa0(0x14c),ApitestService)],ApitestStaticController[a12_0x574fa0(0x123)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a12_0x574fa0(0x148)])(a12_0x574fa0(0x11f)),__metadata('design:type',Boolean)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x11f),void 0x0),__decorate([(0x0,core_3[a12_0x574fa0(0x148)])(a12_0x574fa0(0x11e)),__metadata(a12_0x574fa0(0x14c),Object)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x129),void 0x0),__decorate([(0x0,core_2[a12_0x574fa0(0x127)])(a12_0x574fa0(0x118)),__metadata('design:type',Function),__metadata(a12_0x574fa0(0x12d),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x136),null),__decorate([(0x0,core_2[a12_0x574fa0(0x127)])(a12_0x574fa0(0x14f)),__param(0x0,(0x0,core_2[a12_0x574fa0(0x120)])('module')),__metadata('design:type',Function),__metadata(a12_0x574fa0(0x12d),[String]),__metadata(a12_0x574fa0(0x13d),Promise)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x146),null),__decorate([(0x0,core_2['Get'])(a12_0x574fa0(0x13e)),__metadata(a12_0x574fa0(0x14c),Function),__metadata(a12_0x574fa0(0x12d),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x574fa0(0x123)],a12_0x574fa0(0x135),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x574fa0(0x151)])('/'),(0x0,core_3[a12_0x574fa0(0x138)])(core_3[a12_0x574fa0(0x103)][a12_0x574fa0(0x13c)])],ApitestStaticController),exports[a12_0x574fa0(0x147)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x13d9f7=a13_0x5b2b;(function(_0x4dd9ab,_0x22e43c){const _0x151e0b=a13_0x5b2b,_0x2a19d7=_0x4dd9ab();while(!![]){try{const _0x41e3fd=-parseInt(_0x151e0b(0x102))/0x1*(-parseInt(_0x151e0b(0xcf))/0x2)+-parseInt(_0x151e0b(0xc2))/0x3+-parseInt(_0x151e0b(0xd3))/0x4*(-parseInt(_0x151e0b(0xdd))/0x5)+parseInt(_0x151e0b(0xd8))/0x6+parseInt(_0x151e0b(0xe7))/0x7*(-parseInt(_0x151e0b(0xc8))/0x8)+-parseInt(_0x151e0b(0xd5))/0x9+parseInt(_0x151e0b(0xc5))/0xa;if(_0x41e3fd===_0x22e43c)break;else _0x2a19d7['push'](_0x2a19d7['shift']());}catch(_0x1a60da){_0x2a19d7['push'](_0x2a19d7['shift']());}}}(a13_0x4310,0x3b03f));const a13_0x5a8112=(function(){let _0x405662=!![];return function(_0x12c704,_0x21474e){const _0x1d21f7=_0x405662?function(){const _0x4ad5f3=a13_0x5b2b;if(_0x21474e){const _0x429a41=_0x21474e[_0x4ad5f3(0xf6)](_0x12c704,arguments);return _0x21474e=null,_0x429a41;}}:function(){};return _0x405662=![],_0x1d21f7;};}()),a13_0x4ec166=a13_0x5a8112(this,function(){const _0x2f5409=a13_0x5b2b;return a13_0x4ec166[_0x2f5409(0xfb)]()['search'](_0x2f5409(0xf9))[_0x2f5409(0xfb)]()[_0x2f5409(0xdb)](a13_0x4ec166)['search'](_0x2f5409(0xf9));});function a13_0x4310(){const _0x5cd071=['mkdirSync','push','Scope','Provide','147ENonOi','eachCell','ScopeEnum','length','ExcelService','__esModule','replace','rowCount','frozen','xlsx','.xlsx','design:type','decorate','readFile','getCell','apply','Api\x20Excel\x20Error:\x20','Workbook','(((.+)+)+)+$','addRow','toString','getWorksheet','worksheets','endsWith','__metadata','random','exceljs','1UJDxhB','format','substring','cellCount','parse','\x20is\x20read\x20fail','metadata','prototype','598284SgGiWL','koa-send','getAppDir','1591370bPHyzI','existsSync','export','5432dSylfQ','key','@midwayjs/core','set','defineProperty','app','handler','1436nGKIIp','addWorksheet','value','startsWith','556yQNPfZ','/public/xlsx/','2999439XaFotu','function','getRow','2510304EsZNLH','findRows','writeFile','constructor','filter','7570ISCfQP','header','col','object','__decorate','Singleton'];a13_0x4310=function(){return _0x5cd071;};return a13_0x4310();}a13_0x4ec166();'use strict';var __decorate=this&&this[a13_0x13d9f7(0xe1)]||function(_0x5b990f,_0x87b914,_0x56cb43,_0x5c73a7){const _0x573aae=a13_0x13d9f7;var _0x3ac1a1=arguments[_0x573aae(0xea)],_0x1eca8e=_0x3ac1a1<0x3?_0x87b914:_0x5c73a7===null?_0x5c73a7=Object['getOwnPropertyDescriptor'](_0x87b914,_0x56cb43):_0x5c73a7,_0x5d6f81;if(typeof Reflect===_0x573aae(0xe0)&&typeof Reflect['decorate']===_0x573aae(0xd6))_0x1eca8e=Reflect[_0x573aae(0xf3)](_0x5b990f,_0x87b914,_0x56cb43,_0x5c73a7);else{for(var _0x570a1c=_0x5b990f[_0x573aae(0xea)]-0x1;_0x570a1c>=0x0;_0x570a1c--)if(_0x5d6f81=_0x5b990f[_0x570a1c])_0x1eca8e=(_0x3ac1a1<0x3?_0x5d6f81(_0x1eca8e):_0x3ac1a1>0x3?_0x5d6f81(_0x87b914,_0x56cb43,_0x1eca8e):_0x5d6f81(_0x87b914,_0x56cb43))||_0x1eca8e;}return _0x3ac1a1>0x3&&_0x1eca8e&&Object['defineProperty'](_0x87b914,_0x56cb43,_0x1eca8e),_0x1eca8e;},__metadata=this&&this[a13_0x13d9f7(0xff)]||function(_0x15b72e,_0x26fb01){const _0x522968=a13_0x13d9f7;if(typeof Reflect===_0x522968(0xe0)&&typeof Reflect['metadata']===_0x522968(0xd6))return Reflect[_0x522968(0x108)](_0x15b72e,_0x26fb01);};Object[a13_0x13d9f7(0xcc)](exports,a13_0x13d9f7(0xec),{'value':!![]}),exports[a13_0x13d9f7(0xeb)]=void 0x0;function a13_0x5b2b(_0x5285e0,_0x5ad6a4){const _0x3c3547=a13_0x4310();return a13_0x5b2b=function(_0x4ec166,_0x5a8112){_0x4ec166=_0x4ec166-0xc2;let _0x431022=_0x3c3547[_0x4ec166];return _0x431022;},a13_0x5b2b(_0x5285e0,_0x5ad6a4);}const fs=require('fs'),exceljs=require(a13_0x13d9f7(0x101)),koasend=require(a13_0x13d9f7(0xc3)),core_1=require(a13_0x13d9f7(0xca));let ExcelService=class ExcelService{async[a13_0x13d9f7(0x106)](_0x27b436,_0x58a7fc,_0x4e9953=[0x0]){const _0x575fb4=a13_0x13d9f7;var _0x47d2e8,_0xc0b5db;const _0xa14e7d=new exceljs[(_0x575fb4(0xf8))](),_0x5f29a9=[];let _0x2ec1a9=_0x27b436[_0x575fb4(0xed)](/(\\|\/)/g,'/')[_0x575fb4(0xed)](/\/{2,}/g,'/');!(_0x2ec1a9===null||_0x2ec1a9===void 0x0?void 0x0:_0x2ec1a9['startsWith']('/'))&&(_0x2ec1a9=this[_0x575fb4(0xcd)][_0x575fb4(0xc4)]()+'/'+_0x2ec1a9);try{await _0xa14e7d[_0x575fb4(0xf0)][_0x575fb4(0xf4)](_0x2ec1a9);}catch(_0x3ebf49){return console['log'](_0x575fb4(0xf7)+_0x2ec1a9+_0x575fb4(0x107)),_0x5f29a9;}for(const _0x539514 of _0x4e9953){const _0x50b9ed=lodash['isNumber'](_0x539514)?((_0x47d2e8=_0xa14e7d[_0x575fb4(0xfd)])===null||_0x47d2e8===void 0x0?void 0x0:_0x47d2e8[_0x539514])||undefined:_0xa14e7d[_0x575fb4(0xfc)](_0x539514);if(_0x50b9ed){var _0x1874c7=0x1;const _0x513965=_0x50b9ed[_0x575fb4(0xd7)](0x1),_0x441841=await new Promise(_0x5c58ed=>{const _0x20ae45=_0x575fb4,_0x524c8e={};_0x513965[_0x20ae45(0xe8)]((_0x233ab5,_0x393b7b)=>{const _0x1a753d=_0x20ae45;for(const _0x3f4bbc of _0x58a7fc){if(_0x233ab5[_0x1a753d(0xd1)]==_0x3f4bbc[_0x1a753d(0xde)])_0x1874c7=0x2,_0x524c8e[_0x3f4bbc[_0x1a753d(0xc9)]]={'header':_0x233ab5[_0x1a753d(0xdf)],'handler':_0x3f4bbc[_0x1a753d(0xce)]};else{if(!_0x524c8e[_0x3f4bbc['key']])try{const _0x34ad11=_0x513965&&_0x513965[_0x1a753d(0xf5)](_0x3f4bbc[_0x1a753d(0xde)]);_0x34ad11&&(_0x524c8e[_0x3f4bbc['key']]={'header':_0x34ad11[_0x1a753d(0xdf)],'handler':_0x3f4bbc[_0x1a753d(0xce)]});}catch{}}}_0x513965[_0x1a753d(0x105)]==_0x393b7b&&_0x5c58ed(_0x524c8e);});});for(const _0x14c581 of _0x50b9ed[_0x575fb4(0xd9)](_0x1874c7,_0x50b9ed[_0x575fb4(0xee)])){const _0x3460fe={};for(const _0x3c3e2c in _0x441841){if(_0x441841[_0x3c3e2c][_0x575fb4(0xde)]){const _0x1f3910=_0x14c581&&_0x14c581[_0x575fb4(0xf5)](_0x441841[_0x3c3e2c]['header']);typeof((_0xc0b5db=_0x441841[_0x3c3e2c])===null||_0xc0b5db===void 0x0?void 0x0:_0xc0b5db[_0x575fb4(0xce)])==_0x575fb4(0xd6)?_0x3460fe[_0x3c3e2c]=await _0x441841[_0x3c3e2c]['handler'](lodash[_0x575fb4(0xcb)]({},_0x3c3e2c,(_0x1f3910===null||_0x1f3910===void 0x0?void 0x0:_0x1f3910[_0x575fb4(0xfb)]())||''),_0x1f3910['model']):_0x3460fe[_0x3c3e2c]=(_0x1f3910===null||_0x1f3910===void 0x0?void 0x0:_0x1f3910[_0x575fb4(0xfb)]())||'';}}Object['keys'](_0x3460fe)[_0x575fb4(0xea)]>0x0&&Object['values'](_0x3460fe)[_0x575fb4(0xdc)](_0x1d02c2=>_0x1d02c2!=='')[_0x575fb4(0xea)]>0x0&&_0x5f29a9['push'](_0x3460fe);}}}return _0x5f29a9;}async[a13_0x13d9f7(0xc7)](_0x3991b2,_0x5cad07,_0x3bd233,_0x5ec17c){const _0x27a8d6=a13_0x13d9f7;var _0x5c98a6,_0xf66339;const _0x40de2b=new exceljs['Workbook'](),_0x10d662={},_0x19c273=[],_0x2379c1=_0x40de2b[_0x27a8d6(0xd0)]('Sheet\x201',{'views':[{'state':_0x27a8d6(0xef),'xSplit':0x1}]});for(const _0x1a4f7b in _0x5cad07){_0x10d662[_0x5cad07[_0x1a4f7b]['key']]=_0x5cad07[_0x1a4f7b]['header'],_0x19c273[_0x27a8d6(0xe4)]({'header':_0x5cad07[_0x1a4f7b][_0x27a8d6(0xde)],'key':(_0x5c98a6=_0x5cad07[_0x1a4f7b])===null||_0x5c98a6===void 0x0?void 0x0:_0x5c98a6[_0x27a8d6(0xc9)][_0x27a8d6(0xed)](/\./g,'_')});}_0x2379c1['columns']=_0x19c273;for(const _0x32e28b of _0x3bd233){const _0x142094={};for(const _0x2736b4 in _0x5cad07){typeof((_0xf66339=_0x5cad07[_0x2736b4])===null||_0xf66339===void 0x0?void 0x0:_0xf66339[_0x27a8d6(0xce)])==_0x27a8d6(0xd6)?_0x142094[_0x5cad07[_0x2736b4][_0x27a8d6(0xc9)]['replace'](/\./g,'_')]=await _0x5cad07[_0x2736b4][_0x27a8d6(0xce)](_0x32e28b):_0x142094[_0x5cad07[_0x2736b4][_0x27a8d6(0xc9)][_0x27a8d6(0xed)](/\./g,'_')]=lodash['get'](_0x32e28b,_0x5cad07[_0x2736b4][_0x27a8d6(0xc9)],'');}_0x2379c1[_0x27a8d6(0xfa)](_0x142094);}let _0x3ffd5d='';const _0x41beaa=_0x3991b2+'-'+lodash[_0x27a8d6(0x100)](0x186a0,0xf423f)+_0x27a8d6(0xf1);if(_0x5ec17c&&_0x5ec17c[_0x27a8d6(0xd2)]('/'))_0x3ffd5d=''+_0x5ec17c;else _0x5ec17c&&!_0x5ec17c[_0x27a8d6(0xd2)]('/')&&!_0x5ec17c[_0x27a8d6(0xd2)]('\x5c')?_0x3ffd5d=this[_0x27a8d6(0xcd)][_0x27a8d6(0xc4)]()+'/'+_0x5ec17c:_0x3ffd5d=this[_0x27a8d6(0xcd)]['getAppDir']()+_0x27a8d6(0xd4)+dayjs()[_0x27a8d6(0x103)]('YYYY/MM/DD');return(_0x3ffd5d[_0x27a8d6(0xfe)]('/')||_0x3ffd5d[_0x27a8d6(0xfe)]('\x5c'))&&(_0x3ffd5d=_0x3ffd5d[_0x27a8d6(0x104)](0x0,_0x3ffd5d['length']-0x1)),_0x3ffd5d=_0x3ffd5d[_0x27a8d6(0xed)](/(\\|\/)/g,'/')[_0x27a8d6(0xed)](/\/{2,}/g,'/'),!fs[_0x27a8d6(0xc6)](_0x3ffd5d)&&fs[_0x27a8d6(0xe3)](_0x3ffd5d,{'recursive':!![]}),await _0x40de2b[_0x27a8d6(0xf0)][_0x27a8d6(0xda)]((_0x3ffd5d+'/'+_0x41beaa)['replace'](/(\\|\/)/g,'/')[_0x27a8d6(0xed)](/\/{2,}/g,'/')),{'filename':_0x41beaa,'filepath':(_0x3ffd5d['substring']((''+this[_0x27a8d6(0xcd)][_0x27a8d6(0xc4)]())[_0x27a8d6(0xea)])+'/'+_0x41beaa)[_0x27a8d6(0xed)](/(\\|\/)/g,'/')[_0x27a8d6(0xed)](/\/{2,}/g,'/')};}async['download'](_0xe89195,_0x21b606){return await koasend(_0xe89195,''+_0x21b606);}};__decorate([(0x0,core_1['App'])(),__metadata(a13_0x13d9f7(0xf2),Object)],ExcelService[a13_0x13d9f7(0x109)],'app',void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x13d9f7(0xe6)])(),(0x0,core_1[a13_0x13d9f7(0xe5)])(core_1[a13_0x13d9f7(0xe9)][a13_0x13d9f7(0xe2)])],ExcelService),exports[a13_0x13d9f7(0xeb)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0xa45649=a14_0x5a7e;function a14_0x5a7e(_0x142c58,_0x5c4050){var _0x41c8d9=a14_0x3e68();return a14_0x5a7e=function(_0x11a32d,_0x5acb51){_0x11a32d=_0x11a32d-0x105;var _0x3e68bf=_0x41c8d9[_0x11a32d];return _0x3e68bf;},a14_0x5a7e(_0x142c58,_0x5c4050);}(function(_0x4cf6f5,_0x1c69cb){var _0x524ef1=a14_0x5a7e,_0x2801cd=_0x4cf6f5();while(!![]){try{var _0x285ba8=-parseInt(_0x524ef1(0x118))/0x1*(-parseInt(_0x524ef1(0x106))/0x2)+parseInt(_0x524ef1(0x113))/0x3*(parseInt(_0x524ef1(0x112))/0x4)+-parseInt(_0x524ef1(0x11d))/0x5+-parseInt(_0x524ef1(0x107))/0x6*(-parseInt(_0x524ef1(0x11b))/0x7)+-parseInt(_0x524ef1(0x10b))/0x8+parseInt(_0x524ef1(0x116))/0x9+parseInt(_0x524ef1(0x117))/0xa*(-parseInt(_0x524ef1(0x114))/0xb);if(_0x285ba8===_0x1c69cb)break;else _0x2801cd['push'](_0x2801cd['shift']());}catch(_0x47023e){_0x2801cd['push'](_0x2801cd['shift']());}}}(a14_0x3e68,0xd2500));function a14_0x3e68(){var _0x445904=['7OdkwWi','apply','676750aHBrmI','anncic-api:action','272qeaqGr','3020436CfrBJh','AppsConfigTmp','(((.+)+)+)+$','defineProperty','5621248uWDbyO','__esModule','anncic-api:action:route','constructor','search','ACTION_KEY','APPSCONFIG_KEY','256irXJdc','40548QEWXAw','6178601LVpooj','toString','1063683UTkeIB','10LytQjc','5695qsAMaU','ACTION_ROUTE_KEY','anncic-api:apps:config'];a14_0x3e68=function(){return _0x445904;};return a14_0x3e68();}var a14_0x5acb51=(function(){var _0x450356=!![];return function(_0x5d4ba1,_0x2130f9){var _0x112d1e=_0x450356?function(){var _0x2b70c8=a14_0x5a7e;if(_0x2130f9){var _0x5a8ce0=_0x2130f9[_0x2b70c8(0x11c)](_0x5d4ba1,arguments);return _0x2130f9=null,_0x5a8ce0;}}:function(){};return _0x450356=![],_0x112d1e;};}()),a14_0x11a32d=a14_0x5acb51(this,function(){var _0x39c562=a14_0x5a7e;return a14_0x11a32d[_0x39c562(0x115)]()[_0x39c562(0x10f)](_0x39c562(0x109))[_0x39c562(0x115)]()[_0x39c562(0x10e)](a14_0x11a32d)[_0x39c562(0x10f)]('(((.+)+)+)+$');});a14_0x11a32d();'use strict';Object[a14_0xa45649(0x10a)](exports,a14_0xa45649(0x10c),{'value':!![]}),exports[a14_0xa45649(0x108)]=exports['APPSCONFIG_KEY']=exports[a14_0xa45649(0x119)]=exports[a14_0xa45649(0x110)]=void 0x0,exports['ACTION_KEY']=a14_0xa45649(0x105),exports[a14_0xa45649(0x119)]=a14_0xa45649(0x10d),exports[a14_0xa45649(0x111)]=a14_0xa45649(0x11a);class AppsConfigTmp{}exports[a14_0xa45649(0x108)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x1bcdd3=a15_0x4632;(function(_0x16484c,_0x3a2ff0){var _0x5cd7a7=a15_0x4632,_0x47e8d7=_0x16484c();while(!![]){try{var _0x17740=parseInt(_0x5cd7a7(0x178))/0x1*(-parseInt(_0x5cd7a7(0x177))/0x2)+parseInt(_0x5cd7a7(0x175))/0x3+-parseInt(_0x5cd7a7(0x17d))/0x4+parseInt(_0x5cd7a7(0x17e))/0x5+parseInt(_0x5cd7a7(0x183))/0x6*(parseInt(_0x5cd7a7(0x17a))/0x7)+-parseInt(_0x5cd7a7(0x16c))/0x8*(parseInt(_0x5cd7a7(0x16a))/0x9)+parseInt(_0x5cd7a7(0x180))/0xa*(parseInt(_0x5cd7a7(0x17b))/0xb);if(_0x17740===_0x3a2ff0)break;else _0x47e8d7['push'](_0x47e8d7['shift']());}catch(_0x2e2b02){_0x47e8d7['push'](_0x47e8d7['shift']());}}}(a15_0xccd4,0xaf1d0));var a15_0x4795ac=(function(){var _0x1acda0=!![];return function(_0x5a8046,_0x3f60b4){var _0x51914a=_0x1acda0?function(){var _0x231f87=a15_0x4632;if(_0x3f60b4){var _0x37dec6=_0x3f60b4[_0x231f87(0x168)](_0x5a8046,arguments);return _0x3f60b4=null,_0x37dec6;}}:function(){};return _0x1acda0=![],_0x51914a;};}()),a15_0x5d0ba8=a15_0x4795ac(this,function(){var _0x175b49=a15_0x4632;return a15_0x5d0ba8[_0x175b49(0x186)]()[_0x175b49(0x187)](_0x175b49(0x171))['toString']()[_0x175b49(0x166)](a15_0x5d0ba8)[_0x175b49(0x187)]('(((.+)+)+)+$');});a15_0x5d0ba8();'use strict';function a15_0xccd4(){var _0x4f24d7=['117xzbfOx','第一页为1,第二页为2','187416JcHGCT','object','getOwnPropertyDescriptor','RuleType','string','(((.+)+)+)+$','decorate','_page','valid','540237lznFUl','1:是;0:否','2294926SYMDYC','1pCtVqx','length','296373dZxDEA','11hMnyeS','min','5058536hJKfTn','5703925ALVbzC','integer','19013530sVaCmj','defineProperty','trim','30AmJUgH','function','_isreverse','toString','search','number','design:type','分页数量','@anncic-api/validator','_order','排序方式','metadata','是否倒序','__decorate','Rule','__esModule','constructor','_size','apply','prototype'];a15_0xccd4=function(){return _0x4f24d7;};return a15_0xccd4();}function a15_0x4632(_0x1666ec,_0xed30e){var _0x4774da=a15_0xccd4();return a15_0x4632=function(_0x5d0ba8,_0x4795ac){_0x5d0ba8=_0x5d0ba8-0x164;var _0xccd496=_0x4774da[_0x5d0ba8];return _0xccd496;},a15_0x4632(_0x1666ec,_0xed30e);}var __decorate=this&&this[a15_0x1bcdd3(0x190)]||function(_0x6d3a1d,_0x23536f,_0x21ea6e,_0x35f0c2){var _0x2437a0=a15_0x1bcdd3,_0x5cae15=arguments[_0x2437a0(0x179)],_0x45b2fc=_0x5cae15<0x3?_0x23536f:_0x35f0c2===null?_0x35f0c2=Object[_0x2437a0(0x16e)](_0x23536f,_0x21ea6e):_0x35f0c2,_0x14388f;if(typeof Reflect===_0x2437a0(0x16d)&&typeof Reflect[_0x2437a0(0x172)]===_0x2437a0(0x184))_0x45b2fc=Reflect['decorate'](_0x6d3a1d,_0x23536f,_0x21ea6e,_0x35f0c2);else{for(var _0x46d47f=_0x6d3a1d['length']-0x1;_0x46d47f>=0x0;_0x46d47f--)if(_0x14388f=_0x6d3a1d[_0x46d47f])_0x45b2fc=(_0x5cae15<0x3?_0x14388f(_0x45b2fc):_0x5cae15>0x3?_0x14388f(_0x23536f,_0x21ea6e,_0x45b2fc):_0x14388f(_0x23536f,_0x21ea6e))||_0x45b2fc;}return _0x5cae15>0x3&&_0x45b2fc&&Object[_0x2437a0(0x181)](_0x23536f,_0x21ea6e,_0x45b2fc),_0x45b2fc;},__metadata=this&&this['__metadata']||function(_0x163ee4,_0x5b7dcb){var _0x34361e=a15_0x1bcdd3;if(typeof Reflect===_0x34361e(0x16d)&&typeof Reflect[_0x34361e(0x18e)]==='function')return Reflect['metadata'](_0x163ee4,_0x5b7dcb);};Object[a15_0x1bcdd3(0x181)](exports,a15_0x1bcdd3(0x165),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x1bcdd3(0x18b));class PageDTO{}__decorate([(0x0,validator_1[a15_0x1bcdd3(0x164)])('分页',validator_1['RuleType'][a15_0x1bcdd3(0x188)]()[a15_0x1bcdd3(0x17f)]()['min'](0x1),a15_0x1bcdd3(0x16b)),__metadata('design:type',Number)],PageDTO[a15_0x1bcdd3(0x169)],a15_0x1bcdd3(0x173),void 0x0),__decorate([(0x0,validator_1[a15_0x1bcdd3(0x164)])(a15_0x1bcdd3(0x18a),validator_1[a15_0x1bcdd3(0x16f)][a15_0x1bcdd3(0x188)]()['integer']()[a15_0x1bcdd3(0x17c)](0x1)),__metadata(a15_0x1bcdd3(0x189),Number)],PageDTO[a15_0x1bcdd3(0x169)],a15_0x1bcdd3(0x167),void 0x0),__decorate([(0x0,validator_1[a15_0x1bcdd3(0x164)])(a15_0x1bcdd3(0x18d),validator_1['RuleType'][a15_0x1bcdd3(0x170)]()[a15_0x1bcdd3(0x182)]()),__metadata(a15_0x1bcdd3(0x189),String)],PageDTO['prototype'],a15_0x1bcdd3(0x18c),void 0x0),__decorate([(0x0,validator_1[a15_0x1bcdd3(0x164)])(a15_0x1bcdd3(0x18f),validator_1['RuleType']['number']()[a15_0x1bcdd3(0x17f)]()[a15_0x1bcdd3(0x174)](0x0,0x1),a15_0x1bcdd3(0x176)),__metadata(a15_0x1bcdd3(0x189),Number)],PageDTO[a15_0x1bcdd3(0x169)],a15_0x1bcdd3(0x185),void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x3d07ea=a16_0x2dde;(function(_0x5ec221,_0x5e5fd1){var _0x1b0b39=a16_0x2dde,_0xb04e63=_0x5ec221();while(!![]){try{var _0x1c8234=-parseInt(_0x1b0b39(0x177))/0x1+parseInt(_0x1b0b39(0x169))/0x2*(-parseInt(_0x1b0b39(0x16d))/0x3)+-parseInt(_0x1b0b39(0x16f))/0x4+parseInt(_0x1b0b39(0x172))/0x5*(parseInt(_0x1b0b39(0x179))/0x6)+-parseInt(_0x1b0b39(0x16e))/0x7*(parseInt(_0x1b0b39(0x16c))/0x8)+parseInt(_0x1b0b39(0x170))/0x9*(parseInt(_0x1b0b39(0x16a))/0xa)+parseInt(_0x1b0b39(0x176))/0xb;if(_0x1c8234===_0x5e5fd1)break;else _0xb04e63['push'](_0xb04e63['shift']());}catch(_0x25e013){_0xb04e63['push'](_0xb04e63['shift']());}}}(a16_0x1322,0x4dbc7));var a16_0x2c86dd=(function(){var _0x52c294=!![];return function(_0x29bb11,_0x593ff1){var _0x413129=_0x52c294?function(){var _0x285660=a16_0x2dde;if(_0x593ff1){var _0x2e8d12=_0x593ff1[_0x285660(0x174)](_0x29bb11,arguments);return _0x593ff1=null,_0x2e8d12;}}:function(){};return _0x52c294=![],_0x413129;};}()),a16_0xed96f1=a16_0x2c86dd(this,function(){var _0x308a25=a16_0x2dde;return a16_0xed96f1[_0x308a25(0x16b)]()[_0x308a25(0x173)]('(((.+)+)+)+$')[_0x308a25(0x16b)]()[_0x308a25(0x171)](a16_0xed96f1)[_0x308a25(0x173)](_0x308a25(0x175));});function a16_0x2dde(_0x201a6d,_0x3746f9){var _0x409275=a16_0x1322();return a16_0x2dde=function(_0xed96f1,_0x2c86dd){_0xed96f1=_0xed96f1-0x169;var _0x132299=_0x409275[_0xed96f1];return _0x132299;},a16_0x2dde(_0x201a6d,_0x3746f9);}a16_0xed96f1();function a16_0x1322(){var _0x1207c2=['7DtnPhE','1603680njRygE','756621GOrdiz','constructor','130sVjBeH','search','apply','(((.+)+)+)+$','14579004uZzPRr','430737aaWwUd','defineProperty','118488eaVtlG','anncic-api:intercept','INTERCEPT_KEY','__esModule','810668KIxavo','40KvgKcl','toString','4957520TRIXzq','3kgzbhm'];a16_0x1322=function(){return _0x1207c2;};return a16_0x1322();}'use strict';Object[a16_0x3d07ea(0x178)](exports,a16_0x3d07ea(0x17c),{'value':!![]}),exports['InterceptTargetTmp']=exports['INTERCEPT_KEY']=void 0x0,exports[a16_0x3d07ea(0x17b)]=a16_0x3d07ea(0x17a);class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.5.
|
|
21
|
-
"@anncic-api/core": "^1.5.
|
|
22
|
-
"@anncic-api/event": "^1.5.
|
|
23
|
-
"@anncic-api/typeorm": "^1.5.
|
|
24
|
-
"@anncic-api/validator": "^1.5.
|
|
20
|
+
"@anncic-api/cache": "^1.5.13",
|
|
21
|
+
"@anncic-api/core": "^1.5.13",
|
|
22
|
+
"@anncic-api/event": "^1.5.13",
|
|
23
|
+
"@anncic-api/typeorm": "^1.5.13",
|
|
24
|
+
"@anncic-api/validator": "^1.5.13",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^1.5.
|
|
30
|
+
"anncic-apihelper": "^1.5.13",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "fe1ca3a11bf880d9911c6bd892fb00ed7929dbb8"
|
|
41
41
|
}
|