anncic-api 3.4.12 → 3.4.15
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/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/service/ExcelStream.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/index.d.ts +32 -32
- package/package.json +8 -8
- package/public/apitest.js +945 -945
- package/public/config.js +94 -94
- package/public/index.html +109 -109
- package/public/style/apitest.css +128 -128
- package/public/style/bootstrap/bootstrap.css +6799 -6799
- package/public/style/bootstrap/bootstrap.js +2363 -2363
- package/public/style/bootstrap.css +6798 -6798
- package/public/style/jquery/jquery.min.js +6 -6
- package/public/style/pinyin.js +45 -45
- package/public/style/pretty-json/backbone-min.js +1 -1
- package/public/style/pretty-json/pretty-json-min.js +334 -334
- package/public/style/pretty-json/pretty-json.css +47 -47
- package/public/style/pretty-json/underscore-min.js +5 -5
- package/public/style/pretty-json.css +47 -47
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x198f69=a0_0x14c0;(function(_0xa7c08c,_0x5ccd47){var _0x46a887=a0_0x14c0,_0x2c9dcd=_0xa7c08c();while(!![]){try{var _0x4f3aae=parseInt(_0x46a887(0x181))/0x1*(parseInt(_0x46a887(0x193))/0x2)+-parseInt(_0x46a887(0x17f))/0x3+parseInt(_0x46a887(0x18c))/0x4+-parseInt(_0x46a887(0x195))/0x5*(parseInt(_0x46a887(0x185))/0x6)+-parseInt(_0x46a887(0x18b))/0x7+parseInt(_0x46a887(0x191))/0x8+parseInt(_0x46a887(0x182))/0x9*(-parseInt(_0x46a887(0x197))/0xa);if(_0x4f3aae===_0x5ccd47)break;else _0x2c9dcd['push'](_0x2c9dcd['shift']());}catch(_0x2b2756){_0x2c9dcd['push'](_0x2c9dcd['shift']());}}}(a0_0xdee0,0xc3851));var a0_0x193893=(function(){var _0x27a549=!![];return function(_0x393696,_0x4b2d1a){var _0x339d65=_0x27a549?function(){var _0x203a28=a0_0x14c0;if(_0x4b2d1a){var _0x53eefd=_0x4b2d1a[_0x203a28(0x184)](_0x393696,arguments);return _0x4b2d1a=null,_0x53eefd;}}:function(){};return _0x27a549=![],_0x339d65;};}()),a0_0x26b858=a0_0x193893(this,function(){var _0x456776=a0_0x14c0;return a0_0x26b858[_0x456776(0x190)]()['search'](_0x456776(0x196))[_0x456776(0x190)]()[_0x456776(0x17e)](a0_0x26b858)[_0x456776(0x18e)](_0x456776(0x196));});a0_0x26b858();function a0_0xdee0(){var _0x55d075=['__esModule','search','zhiulanuiy7892387985hnoi','toString','10178864WVEaiK','/runtime/.upload','7090TlaBcG','json','63590HNKPwD','(((.+)+)+)+$','11852190vzTNdC','default','constructor','2483724jxOobM','dhauo1234420123gg3234901','339iGwcEx','9kjwUzf','appDir','apply','474ixCZYU','name','defineProperty','text','20mb','xml','7126bgTEls','5382412JhDNVa'];a0_0xdee0=function(){return _0x55d075;};return a0_0xdee0();}function a0_0x14c0(_0x1a9a85,_0x1c306b){var _0x40e8b0=a0_0xdee0();return a0_0x14c0=function(_0x26b858,_0x193893){_0x26b858=_0x26b858-0x17d;var _0xdee099=_0x40e8b0[_0x26b858];return _0xdee099;},a0_0x14c0(_0x1a9a85,_0x1c306b);}'use strict';Object[a0_0x198f69(0x187)](exports,a0_0x198f69(0x18d),{'value':!![]}),exports[a0_0x198f69(0x17d)]=_0x1851d0=>{var _0x5954b7=a0_0x198f69;return{'apitest':!![],'keys':_0x1851d0[_0x5954b7(0x186)],'anncicapi':{'requestKey':'_token','password':_0x5954b7(0x18f),'devices':{'DEFAULT':{'secret':_0x5954b7(0x180),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x5954b7(0x194),'form',_0x5954b7(0x188),_0x5954b7(0x18a)],'formLimit':_0x5954b7(0x189),'jsonLimit':'20mb','textLimit':_0x5954b7(0x189),'xmlLimit':_0x5954b7(0x189),'enable':!![]},'upload':{'tmpdir':_0x1851d0[_0x5954b7(0x183)]+_0x5954b7(0x192),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a1_0x1b42(_0x245d38,_0x2b4d1b){var _0x3442a1=a1_0x183e();return a1_0x1b42=function(_0x51d0f3,_0x50785e){_0x51d0f3=_0x51d0f3-0x71;var _0x183ef4=_0x3442a1[_0x51d0f3];return _0x183ef4;},a1_0x1b42(_0x245d38,_0x2b4d1b);}(function(_0x2bc55b,_0x28cc66){var _0x2f9893=a1_0x1b42,_0x3f71da=_0x2bc55b();while(!![]){try{var _0x213cca=parseInt(_0x2f9893(0x7c))/0x1+parseInt(_0x2f9893(0x78))/0x2*(parseInt(_0x2f9893(0x72))/0x3)+parseInt(_0x2f9893(0x79))/0x4+-parseInt(_0x2f9893(0x71))/0x5*(-parseInt(_0x2f9893(0x74))/0x6)+parseInt(_0x2f9893(0x73))/0x7+parseInt(_0x2f9893(0x7d))/0x8+-parseInt(_0x2f9893(0x7b))/0x9;if(_0x213cca===_0x28cc66)break;else _0x3f71da['push'](_0x3f71da['shift']());}catch(_0x249447){_0x3f71da['push'](_0x3f71da['shift']());}}}(a1_0x183e,0xcc53c));var a1_0x50785e=(function(){var _0xc115b4=!![];return function(_0x291a18,_0x6dea30){var _0x5eb223=_0xc115b4?function(){var _0x4d7cb2=a1_0x1b42;if(_0x6dea30){var _0x2127e2=_0x6dea30[_0x4d7cb2(0x77)](_0x291a18,arguments);return _0x6dea30=null,_0x2127e2;}}:function(){};return _0xc115b4=![],_0x5eb223;};}()),a1_0x51d0f3=a1_0x50785e(this,function(){var _0x230877=a1_0x1b42;return a1_0x51d0f3['toString']()[_0x230877(0x75)](_0x230877(0x76))[_0x230877(0x7a)]()['constructor'](a1_0x51d0f3)[_0x230877(0x75)]('(((.+)+)+)+$');});a1_0x51d0f3();'use strict';function a1_0x183e(){var _0x2e1a59=['50550201tXtpFT','1498842uYuPfY','10303416HcUDHV','1990CwgLjA','60015lTqFDO','1714097YGtKbM','8016SeNYgn','search','(((.+)+)+)+$','apply','156bctWCx','5319420FSSfxy','toString'];a1_0x183e=function(){return _0x2e1a59;};return a1_0x183e();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4d2180=a2_0x3c60;(function(_0x307e87,_0x36c322){const _0x4e9be0=a2_0x3c60,_0x416950=_0x307e87();while(!![]){try{const _0x4b0ee7=-parseInt(_0x4e9be0(0xc3))/0x1+parseInt(_0x4e9be0(0xe3))/0x2*(-parseInt(_0x4e9be0(0xc7))/0x3)+parseInt(_0x4e9be0(0x13e))/0x4*(parseInt(_0x4e9be0(0xdd))/0x5)+parseInt(_0x4e9be0(0xd5))/0x6+-parseInt(_0x4e9be0(0xdb))/0x7*(-parseInt(_0x4e9be0(0x14e))/0x8)+-parseInt(_0x4e9be0(0x104))/0x9*(-parseInt(_0x4e9be0(0x14a))/0xa)+parseInt(_0x4e9be0(0xc4))/0xb*(-parseInt(_0x4e9be0(0x129))/0xc);if(_0x4b0ee7===_0x36c322)break;else _0x416950['push'](_0x416950['shift']());}catch(_0x3f8acc){_0x416950['push'](_0x416950['shift']());}}}(a2_0x309e,0x742df));const a2_0x43ecbe=(function(){let _0x2721d7=!![];return function(_0x1b60c9,_0x4710fd){const _0x2bc79d=_0x2721d7?function(){const _0xa5fdcb=a2_0x3c60;if(_0x4710fd){const _0x4a277b=_0x4710fd[_0xa5fdcb(0xba)](_0x1b60c9,arguments);return _0x4710fd=null,_0x4a277b;}}:function(){};return _0x2721d7=![],_0x2bc79d;};}()),a2_0x48587f=a2_0x43ecbe(this,function(){const _0x4589bf=a2_0x3c60;return a2_0x48587f[_0x4589bf(0x146)]()[_0x4589bf(0x132)](_0x4589bf(0xe5))[_0x4589bf(0x146)]()[_0x4589bf(0x109)](a2_0x48587f)[_0x4589bf(0x132)](_0x4589bf(0xe5));});a2_0x48587f();'use strict';var __decorate=this&&this['__decorate']||function(_0x1d0c5f,_0x34a9a5,_0x15aa73,_0x19d610){const _0x520fbf=a2_0x3c60;var _0x5152dc=arguments['length'],_0xbef0cc=_0x5152dc<0x3?_0x34a9a5:_0x19d610===null?_0x19d610=Object[_0x520fbf(0x14c)](_0x34a9a5,_0x15aa73):_0x19d610,_0x3cb94f;if(typeof Reflect==='object'&&typeof Reflect[_0x520fbf(0x110)]==='function')_0xbef0cc=Reflect[_0x520fbf(0x110)](_0x1d0c5f,_0x34a9a5,_0x15aa73,_0x19d610);else{for(var _0x302eb0=_0x1d0c5f[_0x520fbf(0xea)]-0x1;_0x302eb0>=0x0;_0x302eb0--)if(_0x3cb94f=_0x1d0c5f[_0x302eb0])_0xbef0cc=(_0x5152dc<0x3?_0x3cb94f(_0xbef0cc):_0x5152dc>0x3?_0x3cb94f(_0x34a9a5,_0x15aa73,_0xbef0cc):_0x3cb94f(_0x34a9a5,_0x15aa73))||_0xbef0cc;}return _0x5152dc>0x3&&_0xbef0cc&&Object[_0x520fbf(0x116)](_0x34a9a5,_0x15aa73,_0xbef0cc),_0xbef0cc;},__metadata=this&&this[a2_0x4d2180(0x11e)]||function(_0x1217e9,_0x499630){const _0x18209f=a2_0x4d2180;if(typeof Reflect===_0x18209f(0xc6)&&typeof Reflect['metadata']===_0x18209f(0x149))return Reflect[_0x18209f(0xfc)](_0x1217e9,_0x499630);};function a2_0x3c60(_0x1ba559,_0x1d0546){const _0x20d27a=a2_0x309e();return a2_0x3c60=function(_0x48587f,_0x43ecbe){_0x48587f=_0x48587f-0xb6;let _0x309ec9=_0x20d27a[_0x48587f];return _0x309ec9;},a2_0x3c60(_0x1ba559,_0x1d0546);}function a2_0x309e(){const _0xc5b45=['toLowerCase','headers','/apps','ApiService','forEach','文件不存在','92WqAYSu','/apps/','apimit','isArray','get','getConfiguration','hanlderApplications','registerMethodHandler','toString','AppsConfigTmp','anncicapi','function','60hAwFKX','./types/intercept','getOwnPropertyDescriptor','design:type','4180872qXMDZQ','InterceptTargetTmp','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/core','dirs','filepath','apply','app','@midwayjs/upload','connection','proceed','./service/ApiService','isNull','loggerConfig','anncic-api','135757ffyiRP','2972849BjLpOo','tmpdir','object','12roCpSg','@midwayjs/core','./config/config.production','keys','bodyXml','tagName','decorator','getBaseDir','handlerActionRoute','match','isDirectory','req','upload','defineProperties','3479514HVsGsc','environment','assign','isFunction','dir','requestKey','7ecBGzT','name','141695XZMwgB','handler','statSync','clients','CustomConfiguration','koa','278522rlUtzH','query','(((.+)+)+)+$','defaultsDeep','@anncic-api/validator','koa-send','context','length','encrypted','ApiError','intercept','@anncic-api/cache','request','device','HEADERS_SIGNATURE','includes','key','./types/action','http://','staticFile','ACTION_ROUTE_KEY','filterConfig','host','MidwayApplicationManager','target','metadata','_UNKNOW_','loggerService','split','routerOptions','getAppDir','443','args','1148463wNSgEQ','Inject','App','getClassMetadata','readdirSync','constructor','http','./exception/ApiError','module','DEFAULT','Configuration','prototype','decorate','body','isDevelopmentEnvironment','./config/config.default','getAsync','_matchedRoute','defineProperty','MidwayDecoratorService','anncic-apihelper','Types','isString','config','method','existsSync','__metadata','MidwayConfigService','midwayLogger','@anncic-api/event','devices','attachment','ACTION_KEY','createLogger','application','isClass','startsWith','60HMMdMW','https://','string','MidwayEnvironmentService','mkdirSync','/runtime','getApplications','@midwayjs/cross-domain','routerName','search','MidwayLoggerService','requestMethod','requestContext','input','undefined'];a2_0x309e=function(){return _0xc5b45;};return a2_0x309e();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x4d2180(0xc8)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4d2180(0x10b)),ApiService_1=require(a2_0x4d2180(0xbf)),intercept_1=require(a2_0x4d2180(0x14b)),action_1=require(a2_0x4d2180(0xf4)),fs=require('fs'),koasend=require(a2_0x4d2180(0xe8)),koa=require('@midwayjs/koa'),upload=require(a2_0x4d2180(0xbc)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4d2180(0x130)),ConfigDefault=require(a2_0x4d2180(0x113)),ConfigProduction=require(a2_0x4d2180(0xc9)),anncic=require(a2_0x4d2180(0xb7)),anncicCache=require(a2_0x4d2180(0xee)),anncicEvent=require(a2_0x4d2180(0x121)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x4d2180(0xe7)),anncicHelper=require(a2_0x4d2180(0x118));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x2b1598=a2_0x4d2180;await this[_0x2b1598(0xf8)](),await this[_0x2b1598(0xc1)](),await this[_0x2b1598(0xcf)](),await this['hanlderApplications']();}async['handlerActionRoute'](){const _0x5e966e=a2_0x4d2180,_0x182d1b=this[_0x5e966e(0x11b)][_0x5e966e(0x143)](),_0x98de9b=(0x0,core_1[_0x5e966e(0x107)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x5e966e(0x14f)])||{};this[_0x5e966e(0xcd)][_0x5e966e(0x145)](action_1[_0x5e966e(0xf7)],_0x48c78a=>{const _0x2be695=_0x5e966e;var _0x157cbd;const _0x4bc735=(0x0,core_1[_0x2be695(0x107)])(action_1['APPSCONFIG_KEY'],action_1[_0x2be695(0x147)])||{},_0x3e79a9=_0x48c78a[_0x2be695(0xfc)],_0x482f3e=(0x0,core_1['getClassMetadata'])(action_1[_0x2be695(0x124)],_0x48c78a[_0x2be695(0xfb)])||{},_0x16e160=((_0x157cbd=_0x482f3e===null||_0x482f3e===void 0x0?void 0x0:_0x482f3e[_0x2be695(0xb9)])===null||_0x157cbd===void 0x0?void 0x0:_0x157cbd['substring'](0x0,_0x482f3e[_0x2be695(0xb9)]['lastIndexOf']('.')))||'',_0x208aa6=(_0x482f3e===null||_0x482f3e===void 0x0?void 0x0:_0x482f3e['module'])?(_0x4bc735===null||_0x4bc735===void 0x0?void 0x0:_0x4bc735[_0x482f3e[_0x2be695(0x10c)]])||{}:{};return{'before':async _0x233fb9=>{const _0xc260f1=_0x2be695;var _0x5493bd,_0x5b0f2e,_0xc3eb16,_0x364433;const _0x13c7c0=(_0x5493bd=_0x233fb9===null||_0x233fb9===void 0x0?void 0x0:_0x233fb9[_0xc260f1(0xfb)])===null||_0x5493bd===void 0x0?void 0x0:_0x5493bd[core_2['REQUEST_OBJ_CTX_KEY']],_0x199974=lodash[_0xc260f1(0xe6)]({},_0x13c7c0[_0xc260f1(0xef)][_0xc260f1(0x111)]||_0x13c7c0[_0xc260f1(0xef)][((_0x5b0f2e=_0x182d1b===null||_0x182d1b===void 0x0?void 0x0:_0x182d1b[_0xc260f1(0xcb)])===null||_0x5b0f2e===void 0x0?void 0x0:_0x5b0f2e[_0xc260f1(0xf3)])||_0xc260f1(0x111)]||{},_0x13c7c0[_0xc260f1(0xef)][_0xc260f1(0xe4)]||{});_0x13c7c0['_matchedRouteMeta']={'module':(_0x208aa6===null||_0x208aa6===void 0x0?void 0x0:_0x208aa6[_0xc260f1(0xdc)])||'','routePath':''+_0x13c7c0['path'],'routeName':_0x482f3e[_0xc260f1(0x100)][_0xc260f1(0xcc)]+'@'+_0x3e79a9[_0xc260f1(0x131)],'routeMethod':((_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9[_0xc260f1(0x134)])||_0x13c7c0['method']||'')['toLowerCase'](),'routeDescription':(_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9['description'])||'','filemethod':_0x16e160+'@'+(_0x3e79a9[_0xc260f1(0x11c)]||'')};if(_0x13c7c0&&(_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9['apimit']))try{const _0x310f20=((_0xc3eb16=_0x182d1b===null||_0x182d1b===void 0x0?void 0x0:_0x182d1b[_0xc260f1(0x148)])===null||_0xc3eb16===void 0x0?void 0x0:_0xc3eb16[_0xc260f1(0xda)])&&typeof(_0x199974===null||_0x199974===void 0x0?void 0x0:_0x199974[_0x182d1b[_0xc260f1(0x148)]['requestKey']])==_0xc260f1(0x12b)?JSON['parse'](base64_decode(_0x199974[_0x182d1b['anncicapi']['requestKey']])||'{}')||{}:((_0x364433=_0x13c7c0===null||_0x13c7c0===void 0x0?void 0x0:_0x13c7c0[_0xc260f1(0xef)])===null||_0x364433===void 0x0?void 0x0:_0x364433[_0xc260f1(0x139)])||{};if(!this[_0xc260f1(0x13b)]['checksign'](_0x310f20))throw new AnnError(ApiError_1[_0xc260f1(0xec)][_0xc260f1(0xf1)]);}catch(_0x1fb787){if(_0x1fb787 instanceof AnnError)throw _0x1fb787;else throw new AnnError(ApiError_1[_0xc260f1(0xec)][_0xc260f1(0xfd)]);}},'around':async _0x2ed730=>{const _0x59a94c=_0x2be695;var _0x9d6f60,_0xb693b2,_0x5486c8;const _0x543751=(_0x9d6f60=_0x2ed730===null||_0x2ed730===void 0x0?void 0x0:_0x2ed730[_0x59a94c(0xfb)])===null||_0x9d6f60===void 0x0?void 0x0:_0x9d6f60[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x543751&&(_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9[_0x59a94c(0x140)])&&((_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9[_0x59a94c(0xed)])||typeof(_0x3e79a9===null||_0x3e79a9===void 0x0?void 0x0:_0x3e79a9[_0x59a94c(0xed)])==_0x59a94c(0x137))){if(((_0xb693b2=_0x543751[_0x59a94c(0x139)])===null||_0xb693b2===void 0x0?void 0x0:_0xb693b2[_0x59a94c(0xf0)])&&((_0x5486c8=_0x98de9b===null||_0x98de9b===void 0x0?void 0x0:_0x98de9b[_0x543751[_0x59a94c(0x139)]['device']])===null||_0x5486c8===void 0x0?void 0x0:_0x5486c8[_0x59a94c(0xea)])>0x0)for(const _0x1d43aa of _0x98de9b[_0x543751[_0x59a94c(0x139)][_0x59a94c(0xf0)]]||[]){if(core_1[_0x59a94c(0x119)][_0x59a94c(0x127)](_0x1d43aa)){const _0x3c23c6=await _0x543751[_0x59a94c(0x135)][_0x59a94c(0x114)](_0x1d43aa);typeof(_0x3c23c6===null||_0x3c23c6===void 0x0?void 0x0:_0x3c23c6[_0x59a94c(0xd0)])==_0x59a94c(0x149)?await _0x3c23c6[_0x59a94c(0xd0)](_0x543751,typeof(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x11c)])=='string'&&(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)])?_0x543751[_0x59a94c(0x11c)][_0x59a94c(0x138)]()+'@'+(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)]):undefined,_0x3e79a9)&&await _0x3c23c6[_0x59a94c(0xde)](_0x543751,typeof(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x11c)])==_0x59a94c(0x12b)&&(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)])?_0x543751['method'][_0x59a94c(0x138)]()+'@'+(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)]):undefined,_0x3e79a9):await _0x3c23c6[_0x59a94c(0xde)](_0x543751,typeof(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x11c)])=='string'&&(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)])?_0x543751[_0x59a94c(0x11c)]['toLowerCase']()+'@'+(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)]):undefined,_0x3e79a9);}else core_1[_0x59a94c(0x119)][_0x59a94c(0xd8)](_0x1d43aa)&&await _0x1d43aa(_0x543751,typeof(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x11c)])==_0x59a94c(0x12b)&&(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)])?_0x543751[_0x59a94c(0x11c)]['toLowerCase']()+'@'+(_0x543751===null||_0x543751===void 0x0?void 0x0:_0x543751[_0x59a94c(0x115)]):undefined,_0x3e79a9);}}return await _0x2ed730[_0x59a94c(0xbe)](..._0x2ed730[_0x59a94c(0x103)]);},'afterThrow':(_0x534a2f,_0x5ec1f6)=>{throw _0x5ec1f6;}};});}async[a2_0x4d2180(0x144)](){const _0x55bd87=a2_0x4d2180,_0x4db0b8=this[_0x55bd87(0x11b)][_0x55bd87(0x143)]();this['application'][_0x55bd87(0x12f)]([_0x55bd87(0xe2)])[_0x55bd87(0x13c)](_0x1763dc=>{const _0x3d65fe=_0x55bd87;(_0x1763dc===null||_0x1763dc===void 0x0?void 0x0:_0x1763dc['context'])&&Object[_0x3d65fe(0xd4)](_0x1763dc[_0x3d65fe(0xe9)],{'hosturl':{'configurable':![],'get':function(){const _0xe0cbb8=_0x3d65fe;var _0x5b694e,_0x754fd7,_0x3dcd8c,_0x386647;if((this===null||this===void 0x0?void 0x0:this[_0xe0cbb8(0xf9)])&&!this[_0xe0cbb8(0xf9)][_0xe0cbb8(0x128)](_0xe0cbb8(0x10a))){let _0x1a4f27=this['host'][_0xe0cbb8(0xff)](':');return['80',_0xe0cbb8(0x102)][_0xe0cbb8(0xf2)](_0x1a4f27===null||_0x1a4f27===void 0x0?void 0x0:_0x1a4f27[0x1])?''+(!!((_0x754fd7=(_0x5b694e=this===null||this===void 0x0?void 0x0:this[_0xe0cbb8(0xd2)])===null||_0x5b694e===void 0x0?void 0x0:_0x5b694e[_0xe0cbb8(0xbd)])===null||_0x754fd7===void 0x0?void 0x0:_0x754fd7[_0xe0cbb8(0xeb)])||(_0x1a4f27===null||_0x1a4f27===void 0x0?void 0x0:_0x1a4f27[0x1])==_0xe0cbb8(0x102)?_0xe0cbb8(0x12a):_0xe0cbb8(0xf5))+_0x1a4f27[0x0]:''+(!!((_0x386647=(_0x3dcd8c=this===null||this===void 0x0?void 0x0:this[_0xe0cbb8(0xd2)])===null||_0x3dcd8c===void 0x0?void 0x0:_0x3dcd8c[_0xe0cbb8(0xbd)])===null||_0x386647===void 0x0?void 0x0:_0x386647['encrypted'])?_0xe0cbb8(0x12a):_0xe0cbb8(0xf5))+this[_0xe0cbb8(0xf9)];}return'';}},'ok':{'value':function(_0x2e1f34,_0x5b9eab,_0x4684a6=0x0){return{'code':_0x4684a6,'data':_0x2e1f34,'extra':_0x5b9eab};}},'input':{'value':function(_0x2611e3,_0x2bbd37){const _0x3e0f5f=_0x3d65fe;var _0x28742e;const _0x32114b=lodash[_0x3e0f5f(0xe6)]({},this[_0x3e0f5f(0xef)][_0x3e0f5f(0x111)]||this[_0x3e0f5f(0xef)][((_0x28742e=_0x4db0b8===null||_0x4db0b8===void 0x0?void 0x0:_0x4db0b8['bodyXml'])===null||_0x28742e===void 0x0?void 0x0:_0x28742e[_0x3e0f5f(0xf3)])||_0x3e0f5f(0x111)]||{},this[_0x3e0f5f(0xef)][_0x3e0f5f(0xe4)]||{});return _0x2611e3?lodash[_0x3e0f5f(0x142)](_0x32114b,_0x2611e3,_0x2bbd37):_0x32114b;}},'when':{'value':async function(_0x4ca62b,_0x217366){const _0x4d392e=_0x3d65fe,_0x28be1f=this['input'](_0x4ca62b,null);if(!lodash[_0x4d392e(0xc0)](_0x28be1f))return await _0x217366(_0x28be1f);}},'only':{'value':function(_0xa176f2){const _0x28ce8b=_0x3d65fe,_0x15cfe3={};for(let _0x167ca8=0x0;_0x167ca8<_0xa176f2[_0x28ce8b(0xea)];_0x167ca8++){lodash[_0x28ce8b(0x141)](_0xa176f2[_0x167ca8])&&_0xa176f2[_0x167ca8][_0x28ce8b(0xea)]>0x0&&lodash[_0x28ce8b(0x11a)](_0xa176f2[_0x167ca8][0x0])&&(_0x15cfe3[_0xa176f2[_0x167ca8][0x0]]=this[_0x28ce8b(0x136)](_0xa176f2[_0x167ca8][0x0],_0xa176f2[_0x167ca8][_0x28ce8b(0xea)]>0x1?_0xa176f2[_0x167ca8][0x1]:null));}return _0x15cfe3;}},'koasend':{'value':async function(_0x5b4c74,_0x17a383){const _0x2c16ae=_0x3d65fe;if(_0x5b4c74&&!fs[_0x2c16ae(0x11d)](_0x5b4c74)&&!fs[_0x2c16ae(0x11d)](this[_0x2c16ae(0xbb)][_0x2c16ae(0x101)]()+'/'+_0x5b4c74))return _0x2c16ae(0x13d);return _0x5b4c74=fs[_0x2c16ae(0x11d)](_0x5b4c74)?_0x5b4c74:this['app'][_0x2c16ae(0x101)]()+'/'+_0x5b4c74,this[_0x2c16ae(0x123)](_0x17a383||_0x5b4c74),await koasend(this,_0x5b4c74);}}});});}async['loggerConfig'](){const _0x5d6d4d=a2_0x4d2180;var _0x186604,_0x3d4a54;if(fs[_0x5d6d4d(0x11d)](this[_0x5d6d4d(0xbb)][_0x5d6d4d(0xce)]()+'/apps')&&fs['statSync'](this[_0x5d6d4d(0xbb)][_0x5d6d4d(0xce)]()+'/apps')[_0x5d6d4d(0xd1)]()){const _0x5643e9=this[_0x5d6d4d(0x11b)][_0x5d6d4d(0x143)](),_0x2932ed=((_0x186604=_0x5643e9===null||_0x5643e9===void 0x0?void 0x0:_0x5643e9[_0x5d6d4d(0x120)])===null||_0x186604===void 0x0?void 0x0:_0x186604['clients'])||{};for(const _0x3b6b1a of fs[_0x5d6d4d(0x108)](this['app'][_0x5d6d4d(0xce)]()+_0x5d6d4d(0x13a))){if(!fs[_0x5d6d4d(0xdf)](this[_0x5d6d4d(0xbb)][_0x5d6d4d(0xce)]()+_0x5d6d4d(0x13f)+_0x3b6b1a)[_0x5d6d4d(0xd1)]())continue;!(_0x2932ed===null||_0x2932ed===void 0x0?void 0x0:_0x2932ed[_0x3b6b1a])&&(_0x2932ed[_0x3b6b1a]=Object[_0x5d6d4d(0xd7)]({},((_0x3d4a54=_0x5643e9===null||_0x5643e9===void 0x0?void 0x0:_0x5643e9[_0x5d6d4d(0x120)])===null||_0x3d4a54===void 0x0?void 0x0:_0x3d4a54['default'])||{'maxSize':'1m','dir':this['app'][_0x5d6d4d(0x101)]()+_0x5d6d4d(0x12e)},{'enableJSON':!![],'enableConsole':this[_0x5d6d4d(0xd6)][_0x5d6d4d(0x112)](),'fileLogName':_0x3b6b1a+'.log','dir':this['app'][_0x5d6d4d(0x101)]()+'/runtime/apps-'+_0x3b6b1a})),this['loggerService'][_0x5d6d4d(0x125)](_0x3b6b1a,_0x2932ed[_0x3b6b1a]);}Object[_0x5d6d4d(0xca)](_0x2932ed)[_0x5d6d4d(0xea)]>0x0&&(!_0x5643e9[_0x5d6d4d(0x120)]&&(_0x5643e9[_0x5d6d4d(0x120)]={'default':{'maxSize':'1m','dir':this['app'][_0x5d6d4d(0x101)]()+'/runtime'}}),_0x5643e9['midwayLogger'][_0x5d6d4d(0xe0)]=_0x2932ed),this[_0x5d6d4d(0x11b)]['addObject'](_0x5643e9);}}async[a2_0x4d2180(0xf8)](){const _0x51d0c1=a2_0x4d2180;var _0x467065,_0x3a13f4,_0x200478,_0x3e1f65,_0x2c2285,_0x56593b;const _0x410262=this['config'][_0x51d0c1(0x143)]();((_0x3a13f4=(_0x467065=_0x410262===null||_0x410262===void 0x0?void 0x0:_0x410262['anncicapi'])===null||_0x467065===void 0x0?void 0x0:_0x467065[_0x51d0c1(0x122)])===null||_0x3a13f4===void 0x0?void 0x0:_0x3a13f4[_0x51d0c1(0x10d)])&&Object['keys'](_0x410262[_0x51d0c1(0x148)][_0x51d0c1(0x122)])[_0x51d0c1(0xea)]>0x1&&delete _0x410262[_0x51d0c1(0x148)][_0x51d0c1(0x122)][_0x51d0c1(0x10d)];if((_0x200478=_0x410262===null||_0x410262===void 0x0?void 0x0:_0x410262[_0x51d0c1(0xf6)])===null||_0x200478===void 0x0?void 0x0:_0x200478[_0x51d0c1(0xb8)])for(const _0xcb54d in _0x410262[_0x51d0c1(0xf6)][_0x51d0c1(0xb8)]){((_0x3e1f65=_0x410262['staticFile'][_0x51d0c1(0xb8)][_0xcb54d])===null||_0x3e1f65===void 0x0?void 0x0:_0x3e1f65[_0x51d0c1(0xd9)])&&typeof((_0x2c2285=_0x410262[_0x51d0c1(0xf6)][_0x51d0c1(0xb8)][_0xcb54d])===null||_0x2c2285===void 0x0?void 0x0:_0x2c2285[_0x51d0c1(0xd9)])=='string'&&!fs[_0x51d0c1(0x11d)](_0x410262[_0x51d0c1(0xf6)]['dirs'][_0xcb54d]['dir'])&&(fs[_0x51d0c1(0x12d)](_0x410262['staticFile'][_0x51d0c1(0xb8)][_0xcb54d]['dir'],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x410262[_0x51d0c1(0xf6)][_0x51d0c1(0xb8)][_0xcb54d][_0x51d0c1(0xd9)]));}((_0x56593b=_0x410262===null||_0x410262===void 0x0?void 0x0:_0x410262[_0x51d0c1(0xd3)])===null||_0x56593b===void 0x0?void 0x0:_0x56593b[_0x51d0c1(0xc5)])&&!fs['existsSync'](_0x410262[_0x51d0c1(0xd3)]['tmpdir'])&&(fs['mkdirSync'](_0x410262[_0x51d0c1(0xd3)][_0x51d0c1(0xc5)],{'recursive':!![]}),console['log'](_0x51d0c1(0xb6)+_0x410262[_0x51d0c1(0xd3)][_0x51d0c1(0xc5)])),this[_0x51d0c1(0x11b)]['addObject'](_0x410262);}};exports['CustomConfiguration']=CustomConfiguration,__decorate([(0x0,core_1[a2_0x4d2180(0x106)])(),__metadata(a2_0x4d2180(0x14d),Object)],CustomConfiguration[a2_0x4d2180(0x10f)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x4d2180(0x105)])(),__metadata(a2_0x4d2180(0x14d),core_2[a2_0x4d2180(0x11f)])],CustomConfiguration[a2_0x4d2180(0x10f)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x4d2180(0x105)])(),__metadata(a2_0x4d2180(0x14d),core_2[a2_0x4d2180(0x117)])],CustomConfiguration[a2_0x4d2180(0x10f)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x4d2180(0x105)])(),__metadata(a2_0x4d2180(0x14d),core_2[a2_0x4d2180(0xfa)])],CustomConfiguration[a2_0x4d2180(0x10f)],a2_0x4d2180(0x126),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4d2180(0x14d),core_2[a2_0x4d2180(0x12c)])],CustomConfiguration[a2_0x4d2180(0x10f)],'environment',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_1[a2_0x4d2180(0x133)])],CustomConfiguration[a2_0x4d2180(0x10f)],a2_0x4d2180(0xfe),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4d2180(0x14d),ApiService_1['ApiService'])],CustomConfiguration['prototype'],a2_0x4d2180(0x13b),void 0x0),exports[a2_0x4d2180(0xe1)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x4d2180(0x10e)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4d2180(0xc2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x3eb670=a2_0x349a;function a2_0x470c(){const _0x39ca32=['lastIndexOf','loggerConfig','@midwayjs/upload','method','AppsConfigTmp','Inject','apply','assign','4653024gkdVic','__decorate','http://','/apps','match','devices','23695930nQxpYJ','./config/config.production','getAppDir','requestKey','defineProperty','req','/runtime','log','@anncic-api/typeorm','1705311UNvsJF','MidwayDecoratorService','constructor','bodyXml','@midwayjs/koa','isDevelopmentEnvironment','toLowerCase','getOwnPropertyDescriptor','routerName','mkdirSync','attachment','length','routerOptions','dirs','ACTION_KEY','staticFile','default','key','getClassMetadata','query','args','getBaseDir','upload','CustomConfiguration','defineProperties','decorate','parse','./types/intercept','loggerService','split','handler','existsSync','.log','toString','24FqJTFS','MidwayConfigService','context','forEach','path','1921330DijdqU','function','get','application','tagName','getApplications','MidwayEnvironmentService','dir','apimit','Anncic-api\x20static-file\x20:\x20mkdir\x20','Types','89190ycDjTR','anncic-apihelper','Configuration','@midwayjs/core','App','_UNKNOW_','anncicapi','prototype','startsWith','2VagzXt','isNull','handlerActionRoute','./service/ApiService','addObject','__esModule','design:type','getConfiguration','search','443','requestMethod','target','hanlderApplications','isFunction','substring','@anncic-api/cache','clients','object','app','INTERCEPT_KEY','checksign','undefined','input','headers','decorator','metadata','request','8637162eOOsPN','./types/action','@anncic-api/validator','ApiError','MidwayLoggerService','body','tmpdir','module','_matchedRoute','filterConfig','/runtime/apps-','config','isString','ACTION_ROUTE_KEY','host','DEFAULT','getAsync','midwayLogger','ApiService','@midwayjs/cross-domain','REQUEST_OBJ_CTX_KEY','connection','@anncic-api/event','_matchedRouteMeta','device','@midwayjs/static-file','encrypted','7QpedHn','environment','readdirSync','(((.+)+)+)+$','intercept','name','/apps/','HEADERS_SIGNATURE','defaultsDeep','3138351QsNaWe','filepath','string','http','InterceptTargetTmp','requestContext'];a2_0x470c=function(){return _0x39ca32;};return a2_0x470c();}(function(_0x330c95,_0xe5c3a4){const _0x3fb32b=a2_0x349a,_0x19d544=_0x330c95();while(!![]){try{const _0x1da71b=parseInt(_0x3fb32b(0x1f2))/0x1+-parseInt(_0x3fb32b(0x1fb))/0x2*(parseInt(_0x3fb32b(0x23a))/0x3)+-parseInt(_0x3fb32b(0x248))/0x4+-parseInt(_0x3fb32b(0x1e7))/0x5+parseInt(_0x3fb32b(0x216))/0x6*(parseInt(_0x3fb32b(0x231))/0x7)+-parseInt(_0x3fb32b(0x1e2))/0x8*(parseInt(_0x3fb32b(0x257))/0x9)+parseInt(_0x3fb32b(0x24e))/0xa;if(_0x1da71b===_0xe5c3a4)break;else _0x19d544['push'](_0x19d544['shift']());}catch(_0x5b15a6){_0x19d544['push'](_0x19d544['shift']());}}}(a2_0x470c,0xb3bea));const a2_0x398683=(function(){let _0x4d352d=!![];return function(_0x97f226,_0x1dfe6f){const _0x22264c=_0x4d352d?function(){const _0x2f26f3=a2_0x349a;if(_0x1dfe6f){const _0x2c3b1b=_0x1dfe6f[_0x2f26f3(0x246)](_0x97f226,arguments);return _0x1dfe6f=null,_0x2c3b1b;}}:function(){};return _0x4d352d=![],_0x22264c;};}()),a2_0x292841=a2_0x398683(this,function(){const _0x5ce070=a2_0x349a;return a2_0x292841[_0x5ce070(0x1e1)]()[_0x5ce070(0x203)](_0x5ce070(0x234))['toString']()[_0x5ce070(0x259)](a2_0x292841)[_0x5ce070(0x203)](_0x5ce070(0x234));});a2_0x292841();'use strict';var __decorate=this&&this[a2_0x3eb670(0x249)]||function(_0x259f84,_0x2fd65e,_0x55fa5e,_0x190bd1){const _0x49de98=a2_0x3eb670;var _0x1561a4=arguments['length'],_0x375f22=_0x1561a4<0x3?_0x2fd65e:_0x190bd1===null?_0x190bd1=Object[_0x49de98(0x1c7)](_0x2fd65e,_0x55fa5e):_0x190bd1,_0x131514;if(typeof Reflect==='object'&&typeof Reflect[_0x49de98(0x1d9)]===_0x49de98(0x1e8))_0x375f22=Reflect[_0x49de98(0x1d9)](_0x259f84,_0x2fd65e,_0x55fa5e,_0x190bd1);else{for(var _0x28e663=_0x259f84['length']-0x1;_0x28e663>=0x0;_0x28e663--)if(_0x131514=_0x259f84[_0x28e663])_0x375f22=(_0x1561a4<0x3?_0x131514(_0x375f22):_0x1561a4>0x3?_0x131514(_0x2fd65e,_0x55fa5e,_0x375f22):_0x131514(_0x2fd65e,_0x55fa5e))||_0x375f22;}return _0x1561a4>0x3&&_0x375f22&&Object['defineProperty'](_0x2fd65e,_0x55fa5e,_0x375f22),_0x375f22;},__metadata=this&&this['__metadata']||function(_0x270b96,_0x1da587){const _0x1d05ba=a2_0x3eb670;if(typeof Reflect===_0x1d05ba(0x20c)&&typeof Reflect[_0x1d05ba(0x214)]===_0x1d05ba(0x1e8))return Reflect[_0x1d05ba(0x214)](_0x270b96,_0x1da587);};Object[a2_0x3eb670(0x252)](exports,a2_0x3eb670(0x200),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x3eb670(0x1f5)),core_2=require(a2_0x3eb670(0x1f5)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x3eb670(0x1fe)),intercept_1=require(a2_0x3eb670(0x1db)),action_1=require(a2_0x3eb670(0x217)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x3eb670(0x1c4)),upload=require(a2_0x3eb670(0x242)),staticFile=require(a2_0x3eb670(0x22f)),crossDomain=require(a2_0x3eb670(0x229)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x3eb670(0x24f)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x3eb670(0x20a)),anncicEvent=require(a2_0x3eb670(0x22c)),anncicTypeorm=require(a2_0x3eb670(0x256)),anncicValidator=require(a2_0x3eb670(0x218)),anncicHelper=require(a2_0x3eb670(0x1f3));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x58731b=a2_0x3eb670;await this['filterConfig'](),await this[_0x58731b(0x241)](),await this[_0x58731b(0x1fd)](),await this[_0x58731b(0x207)]();}async[a2_0x3eb670(0x1fd)](){const _0x386e6b=a2_0x3eb670,_0x51311a=this[_0x386e6b(0x221)][_0x386e6b(0x202)](),_0x5a96bb=(0x0,core_1[_0x386e6b(0x1d2)])(intercept_1[_0x386e6b(0x20e)],intercept_1[_0x386e6b(0x23e)])||{};this['decorator']['registerMethodHandler'](action_1[_0x386e6b(0x223)],_0x3563f4=>{const _0x3db55c=_0x386e6b;var _0x302d72;const _0x3bef6e=(0x0,core_1[_0x3db55c(0x1d2)])(action_1['APPSCONFIG_KEY'],action_1[_0x3db55c(0x244)])||{},_0x22280a=_0x3563f4[_0x3db55c(0x214)],_0x3bdc0e=(0x0,core_1[_0x3db55c(0x1d2)])(action_1[_0x3db55c(0x1ce)],_0x3563f4['target'])||{},_0x58725f=((_0x302d72=_0x3bdc0e===null||_0x3bdc0e===void 0x0?void 0x0:_0x3bdc0e[_0x3db55c(0x23b)])===null||_0x302d72===void 0x0?void 0x0:_0x302d72[_0x3db55c(0x209)](0x0,_0x3bdc0e[_0x3db55c(0x23b)][_0x3db55c(0x240)]('.')))||'',_0x33bf11=(_0x3bdc0e===null||_0x3bdc0e===void 0x0?void 0x0:_0x3bdc0e['module'])?(_0x3bef6e===null||_0x3bef6e===void 0x0?void 0x0:_0x3bef6e[_0x3bdc0e[_0x3db55c(0x21d)]])||{}:{};return{'before':async _0x429078=>{const _0x30a34c=_0x3db55c;var _0x3adbb8,_0x3e8a2c,_0x1c6925,_0x4b6ce9;const _0x3a4e2e=(_0x3adbb8=_0x429078===null||_0x429078===void 0x0?void 0x0:_0x429078[_0x30a34c(0x206)])===null||_0x3adbb8===void 0x0?void 0x0:_0x3adbb8[core_2[_0x30a34c(0x22a)]],_0x2b1729=lodash[_0x30a34c(0x239)]({},_0x3a4e2e['request'][_0x30a34c(0x21b)]||_0x3a4e2e[_0x30a34c(0x215)][((_0x3e8a2c=_0x51311a===null||_0x51311a===void 0x0?void 0x0:_0x51311a['bodyXml'])===null||_0x3e8a2c===void 0x0?void 0x0:_0x3e8a2c[_0x30a34c(0x1d1)])||_0x30a34c(0x21b)]||{},_0x3a4e2e[_0x30a34c(0x215)]['query']||{});_0x3a4e2e[_0x30a34c(0x22d)]={'module':(_0x33bf11===null||_0x33bf11===void 0x0?void 0x0:_0x33bf11[_0x30a34c(0x236)])||'','routePath':''+_0x3a4e2e[_0x30a34c(0x1e6)],'routeName':_0x3bdc0e[_0x30a34c(0x1cc)][_0x30a34c(0x1eb)]+'@'+_0x22280a[_0x30a34c(0x1c8)],'routeMethod':((_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a[_0x30a34c(0x205)])||_0x3a4e2e['method']||'')['toLowerCase'](),'routeDescription':(_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a['description'])||'','filemethod':_0x58725f+'@'+(_0x22280a[_0x30a34c(0x243)]||'')};if(_0x3a4e2e&&(_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a[_0x30a34c(0x1ef)]))try{const _0x8ec04d=((_0x1c6925=_0x51311a===null||_0x51311a===void 0x0?void 0x0:_0x51311a[_0x30a34c(0x1f8)])===null||_0x1c6925===void 0x0?void 0x0:_0x1c6925[_0x30a34c(0x251)])&&typeof(_0x2b1729===null||_0x2b1729===void 0x0?void 0x0:_0x2b1729[_0x51311a[_0x30a34c(0x1f8)][_0x30a34c(0x251)]])==_0x30a34c(0x23c)?JSON[_0x30a34c(0x1da)](base64_decode(_0x2b1729[_0x51311a[_0x30a34c(0x1f8)][_0x30a34c(0x251)]])||'{}')||{}:((_0x4b6ce9=_0x3a4e2e===null||_0x3a4e2e===void 0x0?void 0x0:_0x3a4e2e[_0x30a34c(0x215)])===null||_0x4b6ce9===void 0x0?void 0x0:_0x4b6ce9[_0x30a34c(0x212)])||{};if(!this[_0x30a34c(0x228)][_0x30a34c(0x20f)](_0x8ec04d))throw new AnnError(ApiError_1['ApiError'][_0x30a34c(0x238)]);}catch(_0x9cefa4){if(_0x9cefa4 instanceof AnnError)throw _0x9cefa4;else throw new AnnError(ApiError_1[_0x30a34c(0x219)][_0x30a34c(0x1f7)]);}},'around':async _0x1fcb3f=>{const _0x1ca1a5=_0x3db55c;var _0x3e495c,_0x4f03d5,_0x50202f;const _0x38076f=(_0x3e495c=_0x1fcb3f===null||_0x1fcb3f===void 0x0?void 0x0:_0x1fcb3f[_0x1ca1a5(0x206)])===null||_0x3e495c===void 0x0?void 0x0:_0x3e495c[core_2[_0x1ca1a5(0x22a)]];if(_0x38076f&&(_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a[_0x1ca1a5(0x1ef)])&&((_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a[_0x1ca1a5(0x235)])||typeof(_0x22280a===null||_0x22280a===void 0x0?void 0x0:_0x22280a[_0x1ca1a5(0x235)])==_0x1ca1a5(0x210))){if(((_0x4f03d5=_0x38076f[_0x1ca1a5(0x212)])===null||_0x4f03d5===void 0x0?void 0x0:_0x4f03d5[_0x1ca1a5(0x22e)])&&((_0x50202f=_0x5a96bb===null||_0x5a96bb===void 0x0?void 0x0:_0x5a96bb[_0x38076f[_0x1ca1a5(0x212)]['device']])===null||_0x50202f===void 0x0?void 0x0:_0x50202f[_0x1ca1a5(0x1cb)])>0x0)for(const _0x4e8eae of _0x5a96bb[_0x38076f['headers']['device']]||[]){if(core_1[_0x1ca1a5(0x1f1)]['isClass'](_0x4e8eae)){const _0x3c923c=await _0x38076f[_0x1ca1a5(0x23f)][_0x1ca1a5(0x226)](_0x4e8eae);typeof(_0x3c923c===null||_0x3c923c===void 0x0?void 0x0:_0x3c923c[_0x1ca1a5(0x24c)])==_0x1ca1a5(0x1e8)?await _0x3c923c[_0x1ca1a5(0x24c)](_0x38076f,typeof(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x243)])==_0x1ca1a5(0x23c)&&(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)])?_0x38076f[_0x1ca1a5(0x243)]['toLowerCase']()+'@'+(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)]):undefined,_0x22280a)&&await _0x3c923c[_0x1ca1a5(0x1de)](_0x38076f,typeof(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f['method'])==_0x1ca1a5(0x23c)&&(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)])?_0x38076f[_0x1ca1a5(0x243)][_0x1ca1a5(0x1c6)]()+'@'+(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)]):undefined,_0x22280a):await _0x3c923c[_0x1ca1a5(0x1de)](_0x38076f,typeof(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x243)])==_0x1ca1a5(0x23c)&&(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)])?_0x38076f['method'][_0x1ca1a5(0x1c6)]()+'@'+(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)]):undefined,_0x22280a);}else core_1[_0x1ca1a5(0x1f1)][_0x1ca1a5(0x208)](_0x4e8eae)&&await _0x4e8eae(_0x38076f,typeof(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x243)])==_0x1ca1a5(0x23c)&&(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f[_0x1ca1a5(0x21e)])?_0x38076f['method']['toLowerCase']()+'@'+(_0x38076f===null||_0x38076f===void 0x0?void 0x0:_0x38076f['_matchedRoute']):undefined,_0x22280a);}}return await _0x1fcb3f['proceed'](..._0x1fcb3f[_0x1ca1a5(0x1d4)]);},'afterThrow':(_0x2c6e36,_0x2c90bc)=>{throw _0x2c90bc;}};});}async[a2_0x3eb670(0x207)](){const _0x50fe64=a2_0x3eb670,_0x6265de=this[_0x50fe64(0x221)]['getConfiguration']();this[_0x50fe64(0x1ea)][_0x50fe64(0x1ec)](['koa'])[_0x50fe64(0x1e5)](_0x376256=>{const _0x4e5025=_0x50fe64;(_0x376256===null||_0x376256===void 0x0?void 0x0:_0x376256[_0x4e5025(0x1e4)])&&Object[_0x4e5025(0x1d8)](_0x376256[_0x4e5025(0x1e4)],{'hosturl':{'configurable':![],'get':function(){const _0x2c8bd4=_0x4e5025;var _0x59503c,_0x3b69a6,_0x46bc53,_0x371240;if((this===null||this===void 0x0?void 0x0:this[_0x2c8bd4(0x224)])&&!this[_0x2c8bd4(0x224)][_0x2c8bd4(0x1fa)](_0x2c8bd4(0x23d))){let _0x237b7a=this[_0x2c8bd4(0x224)][_0x2c8bd4(0x1dd)](':');return['80',_0x2c8bd4(0x204)]['includes'](_0x237b7a===null||_0x237b7a===void 0x0?void 0x0:_0x237b7a[0x1])?''+(!!((_0x3b69a6=(_0x59503c=this===null||this===void 0x0?void 0x0:this[_0x2c8bd4(0x253)])===null||_0x59503c===void 0x0?void 0x0:_0x59503c['connection'])===null||_0x3b69a6===void 0x0?void 0x0:_0x3b69a6[_0x2c8bd4(0x230)])||(_0x237b7a===null||_0x237b7a===void 0x0?void 0x0:_0x237b7a[0x1])==_0x2c8bd4(0x204)?'https://':_0x2c8bd4(0x24a))+_0x237b7a[0x0]:''+(!!((_0x371240=(_0x46bc53=this===null||this===void 0x0?void 0x0:this[_0x2c8bd4(0x253)])===null||_0x46bc53===void 0x0?void 0x0:_0x46bc53[_0x2c8bd4(0x22b)])===null||_0x371240===void 0x0?void 0x0:_0x371240[_0x2c8bd4(0x230)])?'https://':_0x2c8bd4(0x24a))+this[_0x2c8bd4(0x224)];}return'';}},'ok':{'value':function(_0x378433,_0x1f1516,_0x38dfdf=0x0){return{'code':_0x38dfdf,'data':_0x378433,'extra':_0x1f1516};}},'input':{'value':function(_0x1b1fa2,_0x1fb123){const _0x37fc63=_0x4e5025;var _0x2ee9da;const _0x313eb2=lodash[_0x37fc63(0x239)]({},this['request']['body']||this[_0x37fc63(0x215)][((_0x2ee9da=_0x6265de===null||_0x6265de===void 0x0?void 0x0:_0x6265de[_0x37fc63(0x25a)])===null||_0x2ee9da===void 0x0?void 0x0:_0x2ee9da[_0x37fc63(0x1d1)])||_0x37fc63(0x21b)]||{},this['request'][_0x37fc63(0x1d3)]||{});return _0x1b1fa2?lodash[_0x37fc63(0x1e9)](_0x313eb2,_0x1b1fa2,_0x1fb123):_0x313eb2;}},'when':{'value':async function(_0x35ac70,_0x33fc10){const _0x5909a2=_0x4e5025,_0xcdf790=this[_0x5909a2(0x211)](_0x35ac70,null);if(!lodash[_0x5909a2(0x1fc)](_0xcdf790))return await _0x33fc10(_0xcdf790);}},'only':{'value':function(_0x3b92db){const _0x43716e=_0x4e5025,_0x12b970={};for(let _0x4f63f1=0x0;_0x4f63f1<_0x3b92db[_0x43716e(0x1cb)];_0x4f63f1++){lodash['isArray'](_0x3b92db[_0x4f63f1])&&_0x3b92db[_0x4f63f1][_0x43716e(0x1cb)]>0x0&&lodash[_0x43716e(0x222)](_0x3b92db[_0x4f63f1][0x0])&&(_0x12b970[_0x3b92db[_0x4f63f1][0x0]]=this[_0x43716e(0x211)](_0x3b92db[_0x4f63f1][0x0],_0x3b92db[_0x4f63f1][_0x43716e(0x1cb)]>0x1?_0x3b92db[_0x4f63f1][0x1]:null));}return _0x12b970;}},'koasend':{'value':async function(_0x3f4d05,_0x24aaab){const _0x53e8af=_0x4e5025;if(_0x3f4d05&&!fs[_0x53e8af(0x1df)](_0x3f4d05)&&!fs[_0x53e8af(0x1df)](this[_0x53e8af(0x20d)][_0x53e8af(0x250)]()+'/'+_0x3f4d05))return'文件不存在';return _0x3f4d05=fs[_0x53e8af(0x1df)](_0x3f4d05)?_0x3f4d05:this[_0x53e8af(0x20d)][_0x53e8af(0x250)]()+'/'+_0x3f4d05,this[_0x53e8af(0x1ca)](_0x24aaab||_0x3f4d05),await koasend(this,_0x3f4d05);}}});});}async['loggerConfig'](){const _0x3c2bb5=a2_0x3eb670;var _0x2e71e8,_0x47c7ce;if(fs[_0x3c2bb5(0x1df)](this[_0x3c2bb5(0x20d)][_0x3c2bb5(0x1d5)]()+'/apps')&&fs['statSync'](this['app'][_0x3c2bb5(0x1d5)]()+_0x3c2bb5(0x24b))['isDirectory']()){const _0x1c54be=this[_0x3c2bb5(0x221)]['getConfiguration'](),_0x1b7207=((_0x2e71e8=_0x1c54be===null||_0x1c54be===void 0x0?void 0x0:_0x1c54be[_0x3c2bb5(0x227)])===null||_0x2e71e8===void 0x0?void 0x0:_0x2e71e8[_0x3c2bb5(0x20b)])||{};for(const _0x494223 of fs[_0x3c2bb5(0x233)](this['app'][_0x3c2bb5(0x1d5)]()+_0x3c2bb5(0x24b))){if(!fs['statSync'](this['app']['getBaseDir']()+_0x3c2bb5(0x237)+_0x494223)['isDirectory']())continue;!(_0x1b7207===null||_0x1b7207===void 0x0?void 0x0:_0x1b7207[_0x494223])&&(_0x1b7207[_0x494223]=Object[_0x3c2bb5(0x247)]({},((_0x47c7ce=_0x1c54be===null||_0x1c54be===void 0x0?void 0x0:_0x1c54be[_0x3c2bb5(0x227)])===null||_0x47c7ce===void 0x0?void 0x0:_0x47c7ce[_0x3c2bb5(0x1d0)])||{'maxSize':'1m','dir':this[_0x3c2bb5(0x20d)][_0x3c2bb5(0x250)]()+_0x3c2bb5(0x254)},{'enableJSON':!![],'enableConsole':this['environment'][_0x3c2bb5(0x1c5)](),'fileLogName':_0x494223+_0x3c2bb5(0x1e0),'dir':this[_0x3c2bb5(0x20d)][_0x3c2bb5(0x250)]()+_0x3c2bb5(0x220)+_0x494223})),this[_0x3c2bb5(0x1dc)]['createLogger'](_0x494223,_0x1b7207[_0x494223]);}Object['keys'](_0x1b7207)['length']>0x0&&(!_0x1c54be['midwayLogger']&&(_0x1c54be[_0x3c2bb5(0x227)]={'default':{'maxSize':'1m','dir':this[_0x3c2bb5(0x20d)][_0x3c2bb5(0x250)]()+_0x3c2bb5(0x254)}}),_0x1c54be['midwayLogger']['clients']=_0x1b7207),this[_0x3c2bb5(0x221)][_0x3c2bb5(0x1ff)](_0x1c54be);}}async[a2_0x3eb670(0x21f)](){const _0x27024a=a2_0x3eb670;var _0x538fc0,_0x11ad31,_0x407ecb,_0x3136f2,_0x14faa3,_0x24dc29;const _0x447f84=this[_0x27024a(0x221)][_0x27024a(0x202)]();((_0x11ad31=(_0x538fc0=_0x447f84===null||_0x447f84===void 0x0?void 0x0:_0x447f84[_0x27024a(0x1f8)])===null||_0x538fc0===void 0x0?void 0x0:_0x538fc0[_0x27024a(0x24d)])===null||_0x11ad31===void 0x0?void 0x0:_0x11ad31[_0x27024a(0x225)])&&Object['keys'](_0x447f84[_0x27024a(0x1f8)]['devices'])[_0x27024a(0x1cb)]>0x1&&delete _0x447f84[_0x27024a(0x1f8)][_0x27024a(0x24d)]['DEFAULT'];if((_0x407ecb=_0x447f84===null||_0x447f84===void 0x0?void 0x0:_0x447f84[_0x27024a(0x1cf)])===null||_0x407ecb===void 0x0?void 0x0:_0x407ecb[_0x27024a(0x1cd)])for(const _0x2d0169 in _0x447f84[_0x27024a(0x1cf)][_0x27024a(0x1cd)]){((_0x3136f2=_0x447f84[_0x27024a(0x1cf)][_0x27024a(0x1cd)][_0x2d0169])===null||_0x3136f2===void 0x0?void 0x0:_0x3136f2[_0x27024a(0x1ee)])&&typeof((_0x14faa3=_0x447f84[_0x27024a(0x1cf)]['dirs'][_0x2d0169])===null||_0x14faa3===void 0x0?void 0x0:_0x14faa3[_0x27024a(0x1ee)])==_0x27024a(0x23c)&&!fs[_0x27024a(0x1df)](_0x447f84[_0x27024a(0x1cf)][_0x27024a(0x1cd)][_0x2d0169]['dir'])&&(fs[_0x27024a(0x1c9)](_0x447f84[_0x27024a(0x1cf)][_0x27024a(0x1cd)][_0x2d0169][_0x27024a(0x1ee)],{'recursive':!![]}),console[_0x27024a(0x255)](_0x27024a(0x1f0)+_0x447f84[_0x27024a(0x1cf)]['dirs'][_0x2d0169]['dir']));}((_0x24dc29=_0x447f84===null||_0x447f84===void 0x0?void 0x0:_0x447f84[_0x27024a(0x1d6)])===null||_0x24dc29===void 0x0?void 0x0:_0x24dc29['tmpdir'])&&!fs[_0x27024a(0x1df)](_0x447f84[_0x27024a(0x1d6)]['tmpdir'])&&(fs[_0x27024a(0x1c9)](_0x447f84[_0x27024a(0x1d6)][_0x27024a(0x21c)],{'recursive':!![]}),console[_0x27024a(0x255)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x447f84[_0x27024a(0x1d6)][_0x27024a(0x21c)])),this[_0x27024a(0x221)]['addObject'](_0x447f84);}};function a2_0x349a(_0x4661f9,_0x27d4da){const _0x5eae66=a2_0x470c();return a2_0x349a=function(_0x292841,_0x398683){_0x292841=_0x292841-0x1c4;let _0x470c92=_0x5eae66[_0x292841];return _0x470c92;},a2_0x349a(_0x4661f9,_0x27d4da);}exports[a2_0x3eb670(0x1d7)]=CustomConfiguration,__decorate([(0x0,core_1[a2_0x3eb670(0x1f6)])(),__metadata(a2_0x3eb670(0x201),Object)],CustomConfiguration[a2_0x3eb670(0x1f9)],a2_0x3eb670(0x20d),void 0x0),__decorate([(0x0,core_1[a2_0x3eb670(0x245)])(),__metadata(a2_0x3eb670(0x201),core_2[a2_0x3eb670(0x1e3)])],CustomConfiguration[a2_0x3eb670(0x1f9)],a2_0x3eb670(0x221),void 0x0),__decorate([(0x0,core_1[a2_0x3eb670(0x245)])(),__metadata('design:type',core_2[a2_0x3eb670(0x258)])],CustomConfiguration[a2_0x3eb670(0x1f9)],a2_0x3eb670(0x213),void 0x0),__decorate([(0x0,core_1[a2_0x3eb670(0x245)])(),__metadata(a2_0x3eb670(0x201),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x3eb670(0x1f9)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x3eb670(0x245)])(),__metadata(a2_0x3eb670(0x201),core_2[a2_0x3eb670(0x1ed)])],CustomConfiguration['prototype'],a2_0x3eb670(0x232),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_1[a2_0x3eb670(0x21a)])],CustomConfiguration[a2_0x3eb670(0x1f9)],'loggerService',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x3eb670(0x201),ApiService_1[a2_0x3eb670(0x228)])],CustomConfiguration[a2_0x3eb670(0x1f9)],a2_0x3eb670(0x228),void 0x0),exports[a2_0x3eb670(0x1d7)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x3eb670(0x1f4)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x3f3f(){const _0x457bd1=['route','28KWndkM','\x20文件请放在apps/','Action','assign','intercept','ActionApi','/controller/','171zxFSaq','saveModule','validate','saveClassMetadata','869800BpMVVv','basic/controller/','routerName','Controller','filepath','/config.','apply','@anncic-api/validator','68LDAXdY','RequestMapping','toString','1035570poeoGt','startsWith','validationOptions','/controller/文件下','prefix','442032LcysHP','undefined','-action','search','AppsConfigTmp','middlewareIgnore','ACTION_KEY','string','substring','indexOf','(((.+)+)+)+$','defineProperty','isArray','-controller','splice','63950uioXvp','constructor','APPSCONFIG_KEY','existsSync','/apps/','trim','Validator','14723797TguYkE','endsWith','parseRoute','length','attachClassMetadata','__esModule','rootpath','app/controller/','10FPoXBL','apps/','ACTION_ROUTE_KEY','filter','getClassMetadata','join','get','apimit','split','1034141OmAslW','post','toLowerCase','replace','middleware','3703467PobmNI','module'];a3_0x3f3f=function(){return _0x457bd1;};return a3_0x3f3f();}const a3_0x382150=a3_0x4496;(function(_0x3c8d0e,_0x3f6f53){const _0x3c9ae3=a3_0x4496,_0x26a8ef=_0x3c8d0e();while(!![]){try{const _0x1d4c58=parseInt(_0x3c9ae3(0x1ac))/0x1+-parseInt(_0x3c9ae3(0x1bf))/0x2+parseInt(_0x3c9ae3(0x1b1))/0x3+parseInt(_0x3c9ae3(0x1c7))/0x4*(-parseInt(_0x3c9ae3(0x1de))/0x5)+-parseInt(_0x3c9ae3(0x1ca))/0x6*(parseInt(_0x3c9ae3(0x1b4))/0x7)+-parseInt(_0x3c9ae3(0x1cf))/0x8*(-parseInt(_0x3c9ae3(0x1bb))/0x9)+parseInt(_0x3c9ae3(0x1a3))/0xa*(-parseInt(_0x3c9ae3(0x1e5))/0xb);if(_0x1d4c58===_0x3f6f53)break;else _0x26a8ef['push'](_0x26a8ef['shift']());}catch(_0x2e5a04){_0x26a8ef['push'](_0x26a8ef['shift']());}}}(a3_0x3f3f,0x9b923));const a3_0x34cdef=(function(){let _0x51eda5=!![];return function(_0x1c182d,_0x375d9d){const _0x560163=_0x51eda5?function(){const _0x397bc1=a3_0x4496;if(_0x375d9d){const _0x10c5d2=_0x375d9d[_0x397bc1(0x1c5)](_0x1c182d,arguments);return _0x375d9d=null,_0x10c5d2;}}:function(){};return _0x51eda5=![],_0x560163;};}()),a3_0x7dcf9d=a3_0x34cdef(this,function(){const _0x1be3ba=a3_0x4496;return a3_0x7dcf9d[_0x1be3ba(0x1c9)]()[_0x1be3ba(0x1d2)](_0x1be3ba(0x1d9))[_0x1be3ba(0x1c9)]()[_0x1be3ba(0x1df)](a3_0x7dcf9d)['search'](_0x1be3ba(0x1d9));});a3_0x7dcf9d();function a3_0x4496(_0x1c6e2b,_0x5e9059){const _0x134340=a3_0x3f3f();return a3_0x4496=function(_0x7dcf9d,_0x34cdef){_0x7dcf9d=_0x7dcf9d-0x19f;let _0x3f3fe5=_0x134340[_0x7dcf9d];return _0x3f3fe5;},a3_0x4496(_0x1c6e2b,_0x5e9059);}'use strict';Object[a3_0x382150(0x1da)](exports,a3_0x382150(0x1a0),{'value':!![]}),exports['parseRoute']=exports[a3_0x382150(0x1b9)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x382150(0x1c6)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require('../types/action');function Action(_0xd85bad,_0x4fd736,_0x5bf435={'middleware':[],'sensitive':!![]}){return _0x459377=>{const _0x4a2392=a3_0x4496;var _0x21034e;_0x5bf435['tagName']=_0x4fd736;const _0x186b93=parseRoute(_0xd85bad);if(_0x186b93[_0x4a2392(0x1b2)]){_0x5bf435[_0x4a2392(0x1ce)]=_0x5bf435[_0x4a2392(0x1ce)]?'/'+_0x186b93[_0x4a2392(0x1b2)]+'/'+_0x5bf435[_0x4a2392(0x1ce)]:'/'+_0x186b93[_0x4a2392(0x1b3)];_0x186b93[_0x4a2392(0x1ce)]&&(_0x5bf435['prefix']='/'+_0x186b93['prefix']+'/'+_0x5bf435[_0x4a2392(0x1ce)]);if(fs[_0x4a2392(0x1e1)](_0x186b93['rootpath']+_0x4a2392(0x1e2)+_0x186b93[_0x4a2392(0x1b2)]+_0x4a2392(0x1c4)+(lodash[_0x4a2392(0x1e6)](_0x186b93[_0x4a2392(0x1c3)],'ts')?'ts':'js'))){const _0x1a5725=include(_0x186b93[_0x4a2392(0x1a1)]+'/apps/'+_0x186b93[_0x4a2392(0x1b2)]+'/config.'+(lodash[_0x4a2392(0x1e6)](_0x186b93[_0x4a2392(0x1c3)],'ts')?'ts':'js'));if(lodash[_0x4a2392(0x1db)](_0x1a5725[_0x4a2392(0x1b0)])&&_0x1a5725[_0x4a2392(0x1b0)][_0x4a2392(0x1e8)]>0x0)for(let _0x267e3f in _0x1a5725[_0x4a2392(0x1b0)]){if(((_0x21034e=_0x1a5725===null||_0x1a5725===void 0x0?void 0x0:_0x1a5725[_0x4a2392(0x1d4)])===null||_0x21034e===void 0x0?void 0x0:_0x21034e[_0x4a2392(0x1e8)])>0x0&&_0x1a5725['middlewareIgnore'][_0x4a2392(0x1d8)](_0x1a5725[_0x4a2392(0x1b0)][_0x267e3f])!=-0x1)continue;_0x5bf435[_0x4a2392(0x1b0)]['push'](_0x1a5725[_0x4a2392(0x1b0)][_0x267e3f]);}const _0x1bc1f3=(0x0,core_1[_0x4a2392(0x1a7)])(action_1[_0x4a2392(0x1e0)],action_1[_0x4a2392(0x1d3)])||{};_0x1bc1f3[''+_0x186b93[_0x4a2392(0x1b2)]]=_0x1a5725,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x1bc1f3,action_1[_0x4a2392(0x1d3)]);}_0x5bf435[_0x4a2392(0x1ce)]=_0x5bf435['prefix'][_0x4a2392(0x1ae)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x4a2392(0x1bc)])(action_1[_0x4a2392(0x1d5)],_0x459377),(0x0,core_1[_0x4a2392(0x1c2)])(_0x5bf435[_0x4a2392(0x1ce)],_0x5bf435)(_0x459377),(0x0,core_1[_0x4a2392(0x1be)])(action_1['ACTION_KEY'],{'prefix':_0x5bf435[_0x4a2392(0x1ce)],'pprefix':_0x186b93[_0x4a2392(0x1ce)],'module':_0x186b93[_0x4a2392(0x1b2)],'filepath':_0x186b93['filepath'],'routerOptions':_0x5bf435},_0x459377);}else _0x5bf435['prefix']=_0x5bf435[_0x4a2392(0x1ce)]?'/'+_0x5bf435[_0x4a2392(0x1ce)]:'/'+_0x186b93[_0x4a2392(0x1b3)],_0x186b93['prefix']&&(_0x5bf435['prefix']='/'+_0x186b93[_0x4a2392(0x1ce)]+'/'+_0x5bf435['prefix']),_0x5bf435[_0x4a2392(0x1ce)]=_0x5bf435[_0x4a2392(0x1ce)][_0x4a2392(0x1ae)]()[_0x4a2392(0x1af)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x4a2392(0x1d5)],_0x459377),(0x0,core_1[_0x4a2392(0x1c2)])(_0x5bf435[_0x4a2392(0x1ce)],_0x5bf435)(_0x459377),(0x0,core_1[_0x4a2392(0x1be)])(action_1[_0x4a2392(0x1d5)],{'prefix':_0x5bf435[_0x4a2392(0x1ce)],'module':_0x186b93[_0x4a2392(0x1b2)],'pprefix':_0x186b93[_0x4a2392(0x1ce)],'filepath':_0x186b93[_0x4a2392(0x1c3)],'routerOptions':_0x5bf435},_0x459377);};}exports[a3_0x382150(0x1b6)]=Action,Action['get']=function(_0x23402d,_0xd97ea7='/',_0x41e4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1c9be1,_0x1cd125,_0x2e64ac)=>{const _0x3ab89=a3_0x4496;ActionApi(_0x23402d,_0x3ab89(0x1a9),_0xd97ea7,_0x41e4)(_0x1c9be1,_0x1cd125,_0x2e64ac);};},Action[a3_0x382150(0x1ad)]=function(_0x5537b9,_0x5e36dc='/',_0x26c2a1={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x6a1b76,_0x209318,_0x548c20)=>{const _0x3175e4=a3_0x4496;ActionApi(_0x5537b9,_0x3175e4(0x1ad),_0x5e36dc,_0x26c2a1)(_0x6a1b76,_0x209318,_0x548c20);};};function ActionApi(_0x4cf051,_0x55b9f0=a3_0x382150(0x1a9),_0x3e6614='/',_0x4e0d0c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x345303,_0x4185f3,_0x5218d2)=>{const _0x53964f=a3_0x4496;var _0x495d2e,_0x10d51e,_0x5aab68;!_0x4e0d0c[_0x53964f(0x1b0)]&&(_0x4e0d0c[_0x53964f(0x1b0)]=[]);!((_0x495d2e=_0x4e0d0c===null||_0x4e0d0c===void 0x0?void 0x0:_0x4e0d0c[_0x53964f(0x1bd)])===null||_0x495d2e===void 0x0?void 0x0:_0x495d2e[_0x53964f(0x1cc)])&&(_0x4e0d0c[_0x53964f(0x1bd)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x53964f(0x1d6)}});if(!_0x3e6614)_0x3e6614='/';else typeof _0x3e6614==_0x53964f(0x1d6)&&(!_0x3e6614[_0x53964f(0x1cb)]('/')&&!_0x3e6614[_0x53964f(0x1cb)]('-')&&(_0x3e6614='/'+_0x3e6614));typeof _0x4e0d0c['apimit']==_0x53964f(0x1d0)&&(_0x4e0d0c['apimit']=!![]);if(((_0x10d51e=_0x4e0d0c===null||_0x4e0d0c===void 0x0?void 0x0:_0x4e0d0c[_0x53964f(0x1b0)])===null||_0x10d51e===void 0x0?void 0x0:_0x10d51e['length'])>0x0&&((_0x5aab68=_0x4e0d0c===null||_0x4e0d0c===void 0x0?void 0x0:_0x4e0d0c[_0x53964f(0x1d4)])===null||_0x5aab68===void 0x0?void 0x0:_0x5aab68[_0x53964f(0x1e8)])>0x0)for(let _0x550a4a in _0x4e0d0c[_0x53964f(0x1b0)]){_0x4e0d0c[_0x53964f(0x1d4)][_0x53964f(0x1d8)](_0x4e0d0c[_0x53964f(0x1b0)][_0x550a4a])!==-0x1&&(_0x4e0d0c[_0x53964f(0x1b0)][_0x550a4a]=null);}_0x4e0d0c[_0x53964f(0x1c1)]=_0x4cf051,(0x0,validator_1[_0x53964f(0x1e4)])(_0x4e0d0c[_0x53964f(0x1bd)])(_0x345303,_0x4185f3,_0x5218d2),(0x0,core_2[_0x53964f(0x1c8)])(Object[_0x53964f(0x1b7)](_0x4e0d0c,{'path':_0x3e6614,'requestMethod':(_0x55b9f0||_0x53964f(0x1a9))[_0x53964f(0x1ae)]()}))(_0x345303,_0x4185f3,_0x5218d2),(0x0,core_2[_0x53964f(0x19f)])(action_1[_0x53964f(0x1a5)],{'path':_0x3e6614,'method':_0x4185f3,'apimit':_0x4e0d0c[_0x53964f(0x1aa)],'intercept':_0x4e0d0c[_0x53964f(0x1b8)],'routerName':_0x4e0d0c[_0x53964f(0x1c1)],'description':_0x4e0d0c['description'],'middleware':(_0x4e0d0c[_0x53964f(0x1b0)]||[])[_0x53964f(0x1a6)](_0x31cf9f=>!!_0x31cf9f),'requestMethod':(_0x55b9f0||_0x53964f(0x1a9))[_0x53964f(0x1ae)]()},_0x345303),(0x0,core_2['createCustomMethodDecorator'])(action_1[_0x53964f(0x1a5)],{'path':_0x3e6614,'method':_0x4185f3,'apimit':_0x4e0d0c['apimit'],'intercept':_0x4e0d0c[_0x53964f(0x1b8)],'routerName':_0x4e0d0c[_0x53964f(0x1c1)],'description':_0x4e0d0c['description'],'middleware':(_0x4e0d0c['middleware']||[])[_0x53964f(0x1a6)](_0x4298d2=>!!_0x4298d2),'requestMethod':(_0x55b9f0||'get')[_0x53964f(0x1ae)]()})(_0x345303,_0x4185f3,_0x5218d2);};}exports[a3_0x382150(0x1b9)]=ActionApi;function parseRoute(_0x5bbd00){const _0x119189=a3_0x382150;_0x5bbd00=_0x5bbd00['replace'](/(\\|\/)/g,'/');const _0x29c631=process['cwd']()[_0x119189(0x1af)](/(\\|\/)/g,'/'),_0x5e9b9d=_0x5bbd00[_0x119189(0x1d7)](0x0,_0x29c631[_0x119189(0x1e8)]+_0x5bbd00[_0x119189(0x1d7)](_0x29c631[_0x119189(0x1e8)]+0x1)[_0x119189(0x1d8)]('/')+0x1),_0x22d29c=_0x5bbd00[_0x119189(0x1d7)](_0x5e9b9d[_0x119189(0x1e8)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x3515e2={'route':'','prefix':![],'module':![],'rootpath':_0x5e9b9d,'filepath':_0x22d29c};if(_0x22d29c['startsWith'](_0x119189(0x1a2))||_0x22d29c['startsWith'](_0x119189(0x1c0))){const _0x142b9d=_0x22d29c['substring']((_0x22d29c['startsWith'](_0x119189(0x1a2))?_0x119189(0x1a2):'basic/controller/')['length'])[_0x119189(0x1ab)]('/')[_0x119189(0x1a6)](_0x46de52=>_0x46de52&&_0x46de52[_0x119189(0x1e3)]());return _0x142b9d[_0x119189(0x1e8)]>0x1&&(_0x3515e2[_0x119189(0x1ce)]=_0x142b9d[0x0][_0x119189(0x1ae)](),_0x142b9d['splice'](0x0,0x1)),_0x3515e2[_0x119189(0x1b3)]=('/'+_0x142b9d['join']('/'))[_0x119189(0x1af)](/(\.ts|\.js)$/,'')[_0x119189(0x1af)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x119189(0x1ae)]()[_0x119189(0x1af)](/\/\-/g,'/'),_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1e6)](_0x119189(0x1d1))&&(_0x3515e2['route']=_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1d7)](0x0,_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1e8)]-0x7)),_0x3515e2['route'][_0x119189(0x1e6)](_0x119189(0x1dc))&&(_0x3515e2[_0x119189(0x1b3)]=_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1d7)](0x0,_0x3515e2['route']['length']-0xb)),_0x3515e2;}else{if(_0x22d29c[_0x119189(0x1cb)](_0x119189(0x1a4))){const _0x5475d4=_0x22d29c[_0x119189(0x1d7)](0x0,_0x22d29c['indexOf'](_0x119189(0x1e2))+0x5),_0x953482=_0x22d29c[_0x119189(0x1d7)](_0x5475d4[_0x119189(0x1e8)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x22d29c[_0x119189(0x1cb)](_0x119189(0x1a4)+_0x953482+_0x119189(0x1ba))){const _0x5a16c9=_0x22d29c[_0x119189(0x1d7)]((_0x5475d4+'/'+_0x953482+_0x119189(0x1ba))['length'])[_0x119189(0x1ab)]('/')[_0x119189(0x1a6)](_0x3c2e5c=>_0x3c2e5c&&_0x3c2e5c[_0x119189(0x1e3)]());return _0x5a16c9[_0x119189(0x1e8)]>0x1&&(_0x3515e2[_0x119189(0x1ce)]=_0x5a16c9[0x0][_0x119189(0x1ae)](),_0x5a16c9[_0x119189(0x1dd)](0x0,0x1)),_0x3515e2[_0x119189(0x1b2)]=_0x953482,_0x3515e2[_0x119189(0x1b3)]=('/'+_0x953482+'/'+_0x5a16c9[_0x119189(0x1a8)]('/'))[_0x119189(0x1af)](/(\.ts|\.js)$/,'')[_0x119189(0x1af)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x119189(0x1a8)]('-')['toLowerCase']()[_0x119189(0x1af)](/\/\-/g,'/'),_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1e6)](_0x119189(0x1d1))&&(_0x3515e2[_0x119189(0x1b3)]=_0x3515e2['route'][_0x119189(0x1d7)](0x0,_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1e8)]-0x7)),_0x3515e2[_0x119189(0x1b3)]['endsWith'](_0x119189(0x1dc))&&(_0x3515e2[_0x119189(0x1b3)]=_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1d7)](0x0,_0x3515e2[_0x119189(0x1b3)][_0x119189(0x1e8)]-0xb)),_0x3515e2;}throw new Error(_0x22d29c+_0x119189(0x1b5)+_0x953482+_0x119189(0x1cd));}}throw new Error(_0x22d29c+'\x20文件请放在app/controller/文件下');}exports[a3_0x382150(0x1e7)]=parseRoute;
|
|
1
|
+
const a3_0x4a2bee=a3_0x2200;(function(_0x286685,_0x1b6d5b){const _0x3da7af=a3_0x2200,_0x1dc908=_0x286685();while(!![]){try{const _0x5c8135=-parseInt(_0x3da7af(0x1a6))/0x1*(-parseInt(_0x3da7af(0x193))/0x2)+-parseInt(_0x3da7af(0x1cf))/0x3*(parseInt(_0x3da7af(0x1ac))/0x4)+-parseInt(_0x3da7af(0x19c))/0x5+parseInt(_0x3da7af(0x1b6))/0x6+-parseInt(_0x3da7af(0x19f))/0x7+parseInt(_0x3da7af(0x195))/0x8+-parseInt(_0x3da7af(0x1b9))/0x9;if(_0x5c8135===_0x1b6d5b)break;else _0x1dc908['push'](_0x1dc908['shift']());}catch(_0x2fdb38){_0x1dc908['push'](_0x1dc908['shift']());}}}(a3_0x5c33,0xbe1f4));const a3_0x34bca3=(function(){let _0x16ce83=!![];return function(_0x131a27,_0x3f419c){const _0x2fe7ca=_0x16ce83?function(){const _0x91efb7=a3_0x2200;if(_0x3f419c){const _0x10357c=_0x3f419c[_0x91efb7(0x1db)](_0x131a27,arguments);return _0x3f419c=null,_0x10357c;}}:function(){};return _0x16ce83=![],_0x2fe7ca;};}()),a3_0x13001a=a3_0x34bca3(this,function(){const _0x17584b=a3_0x2200;return a3_0x13001a[_0x17584b(0x1c0)]()[_0x17584b(0x1c2)](_0x17584b(0x1b8))[_0x17584b(0x1c0)]()[_0x17584b(0x1b3)](a3_0x13001a)[_0x17584b(0x1c2)](_0x17584b(0x1b8));});a3_0x13001a();'use strict';Object[a3_0x4a2bee(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a3_0x4a2bee(0x1af)]=exports[a3_0x4a2bee(0x1c1)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x4a2bee(0x1bc)),core_1=require('@midwayjs/core'),core_2=require(a3_0x4a2bee(0x198)),action_1=require(a3_0x4a2bee(0x18e));function Action(_0x21b0d4,_0x4e6a47,_0x970511={'middleware':[],'sensitive':!![]}){return _0x3417c1=>{const _0x32a029=a3_0x2200;var _0x4a15e3;_0x970511[_0x32a029(0x1be)]=_0x4e6a47;const _0x550bf1=parseRoute(_0x21b0d4);if(_0x550bf1[_0x32a029(0x19b)]){_0x970511[_0x32a029(0x1cc)]=_0x970511['prefix']?'/'+_0x550bf1[_0x32a029(0x19b)]+'/'+_0x970511[_0x32a029(0x1cc)]:'/'+_0x550bf1['route'];_0x550bf1['prefix']&&(_0x970511['prefix']='/'+_0x550bf1[_0x32a029(0x1cc)]+'/'+_0x970511[_0x32a029(0x1cc)]);if(fs[_0x32a029(0x1a8)](_0x550bf1['rootpath']+'/apps/'+_0x550bf1['module']+'/config.'+(lodash[_0x32a029(0x191)](_0x550bf1['filepath'],'ts')?'ts':'js'))){const _0x9ec9e2=include(_0x550bf1[_0x32a029(0x19d)]+'/apps/'+_0x550bf1[_0x32a029(0x19b)]+_0x32a029(0x1bf)+(lodash[_0x32a029(0x191)](_0x550bf1['filepath'],'ts')?'ts':'js'));if(lodash[_0x32a029(0x1c3)](_0x9ec9e2['middleware'])&&_0x9ec9e2[_0x32a029(0x1b4)][_0x32a029(0x194)]>0x0)for(let _0x4f6d41 in _0x9ec9e2[_0x32a029(0x1b4)]){if(((_0x4a15e3=_0x9ec9e2===null||_0x9ec9e2===void 0x0?void 0x0:_0x9ec9e2[_0x32a029(0x199)])===null||_0x4a15e3===void 0x0?void 0x0:_0x4a15e3[_0x32a029(0x194)])>0x0&&_0x9ec9e2['middlewareIgnore']['indexOf'](_0x9ec9e2[_0x32a029(0x1b4)][_0x4f6d41])!=-0x1)continue;_0x970511[_0x32a029(0x1b4)][_0x32a029(0x1c8)](_0x9ec9e2[_0x32a029(0x1b4)][_0x4f6d41]);}const _0x575e4e=(0x0,core_1[_0x32a029(0x192)])(action_1['APPSCONFIG_KEY'],action_1[_0x32a029(0x1b0)])||{};_0x575e4e[''+_0x550bf1['module']]=_0x9ec9e2,(0x0,core_1[_0x32a029(0x1bb)])(action_1[_0x32a029(0x1a2)],_0x575e4e,action_1[_0x32a029(0x1b0)]);}_0x970511['prefix']=_0x970511[_0x32a029(0x1cc)][_0x32a029(0x1a4)]()[_0x32a029(0x1c7)](/\/{2,}/g,'/'),(0x0,core_1[_0x32a029(0x1d9)])(action_1['ACTION_KEY'],_0x3417c1),(0x0,core_1[_0x32a029(0x1bd)])(_0x970511['prefix'],_0x970511)(_0x3417c1),(0x0,core_1['saveClassMetadata'])(action_1[_0x32a029(0x1d1)],{'prefix':_0x970511[_0x32a029(0x1cc)],'pprefix':_0x550bf1['prefix'],'module':_0x550bf1[_0x32a029(0x19b)],'filepath':_0x550bf1[_0x32a029(0x1a3)],'routerOptions':_0x970511},_0x3417c1);}else _0x970511['prefix']=_0x970511['prefix']?'/'+_0x970511[_0x32a029(0x1cc)]:'/'+_0x550bf1['route'],_0x550bf1[_0x32a029(0x1cc)]&&(_0x970511[_0x32a029(0x1cc)]='/'+_0x550bf1[_0x32a029(0x1cc)]+'/'+_0x970511[_0x32a029(0x1cc)]),_0x970511['prefix']=_0x970511['prefix'][_0x32a029(0x1a4)]()[_0x32a029(0x1c7)](/\/{2,}/g,'/'),(0x0,core_1[_0x32a029(0x1d9)])(action_1[_0x32a029(0x1d1)],_0x3417c1),(0x0,core_1[_0x32a029(0x1bd)])(_0x970511['prefix'],_0x970511)(_0x3417c1),(0x0,core_1[_0x32a029(0x1bb)])(action_1[_0x32a029(0x1d1)],{'prefix':_0x970511[_0x32a029(0x1cc)],'module':_0x550bf1[_0x32a029(0x19b)],'pprefix':_0x550bf1[_0x32a029(0x1cc)],'filepath':_0x550bf1[_0x32a029(0x1a3)],'routerOptions':_0x970511},_0x3417c1);};}exports[a3_0x4a2bee(0x1b2)]=Action,Action[a3_0x4a2bee(0x19e)]=function(_0x20e371,_0x4a159c='/',_0xbd8600={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4d1f40,_0x343d36,_0x4224f7)=>{ActionApi(_0x20e371,'get',_0x4a159c,_0xbd8600)(_0x4d1f40,_0x343d36,_0x4224f7);};},Action[a3_0x4a2bee(0x1d5)]=function(_0x50c515,_0x114d68='/',_0x3fd3e0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x145b82,_0x1a5b6b,_0x5a40cb)=>{const _0x56a558=a3_0x2200;ActionApi(_0x50c515,_0x56a558(0x1d5),_0x114d68,_0x3fd3e0)(_0x145b82,_0x1a5b6b,_0x5a40cb);};};function a3_0x2200(_0x36e1d9,_0x3a2dc5){const _0x34c6a1=a3_0x5c33();return a3_0x2200=function(_0x13001a,_0x34bca3){_0x13001a=_0x13001a-0x18e;let _0x5c339e=_0x34c6a1[_0x13001a];return _0x5c339e;},a3_0x2200(_0x36e1d9,_0x3a2dc5);}function ActionApi(_0x36db99,_0x5a0ee5=a3_0x4a2bee(0x19e),_0x68d67f='/',_0x28a9ed={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1084c0,_0x35f4c7,_0x3e06fa)=>{const _0xb4a8b2=a3_0x2200;var _0x228c9e,_0x5ca038,_0x21b9fa;!_0x28a9ed[_0xb4a8b2(0x1b4)]&&(_0x28a9ed['middleware']=[]);!((_0x228c9e=_0x28a9ed===null||_0x28a9ed===void 0x0?void 0x0:_0x28a9ed['validate'])===null||_0x228c9e===void 0x0?void 0x0:_0x228c9e[_0xb4a8b2(0x1d7)])&&(_0x28a9ed[_0xb4a8b2(0x1a9)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0xb4a8b2(0x1ce)}});if(!_0x68d67f)_0x68d67f='/';else typeof _0x68d67f==_0xb4a8b2(0x1ce)&&(!_0x68d67f[_0xb4a8b2(0x1b7)]('/')&&!_0x68d67f[_0xb4a8b2(0x1b7)]('-')&&(_0x68d67f='/'+_0x68d67f));typeof _0x28a9ed[_0xb4a8b2(0x19a)]==_0xb4a8b2(0x1c6)&&(_0x28a9ed[_0xb4a8b2(0x19a)]=!![]);if(((_0x5ca038=_0x28a9ed===null||_0x28a9ed===void 0x0?void 0x0:_0x28a9ed['middleware'])===null||_0x5ca038===void 0x0?void 0x0:_0x5ca038[_0xb4a8b2(0x194)])>0x0&&((_0x21b9fa=_0x28a9ed===null||_0x28a9ed===void 0x0?void 0x0:_0x28a9ed[_0xb4a8b2(0x199)])===null||_0x21b9fa===void 0x0?void 0x0:_0x21b9fa[_0xb4a8b2(0x194)])>0x0)for(let _0x86fb48 in _0x28a9ed[_0xb4a8b2(0x1b4)]){_0x28a9ed[_0xb4a8b2(0x199)][_0xb4a8b2(0x1ba)](_0x28a9ed['middleware'][_0x86fb48])!==-0x1&&(_0x28a9ed[_0xb4a8b2(0x1b4)][_0x86fb48]=null);}_0x28a9ed[_0xb4a8b2(0x1a7)]=_0x36db99,(0x0,validator_1[_0xb4a8b2(0x1c9)])(_0x28a9ed[_0xb4a8b2(0x1a9)])(_0x1084c0,_0x35f4c7,_0x3e06fa),(0x0,core_2[_0xb4a8b2(0x1a0)])(Object[_0xb4a8b2(0x1ca)](_0x28a9ed,{'path':_0x68d67f,'requestMethod':(_0x5a0ee5||_0xb4a8b2(0x19e))[_0xb4a8b2(0x1a4)]()}))(_0x1084c0,_0x35f4c7,_0x3e06fa),(0x0,core_2[_0xb4a8b2(0x1da)])(action_1[_0xb4a8b2(0x1cb)],{'path':_0x68d67f,'method':_0x35f4c7,'apimit':_0x28a9ed[_0xb4a8b2(0x19a)],'intercept':_0x28a9ed[_0xb4a8b2(0x18f)],'routerName':_0x28a9ed[_0xb4a8b2(0x1a7)],'description':_0x28a9ed[_0xb4a8b2(0x1aa)],'middleware':(_0x28a9ed['middleware']||[])[_0xb4a8b2(0x1b1)](_0x276d67=>!!_0x276d67),'requestMethod':(_0x5a0ee5||_0xb4a8b2(0x19e))[_0xb4a8b2(0x1a4)]()},_0x1084c0),(0x0,core_2[_0xb4a8b2(0x1d4)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x68d67f,'method':_0x35f4c7,'apimit':_0x28a9ed[_0xb4a8b2(0x19a)],'intercept':_0x28a9ed[_0xb4a8b2(0x18f)],'routerName':_0x28a9ed[_0xb4a8b2(0x1a7)],'description':_0x28a9ed[_0xb4a8b2(0x1aa)],'middleware':(_0x28a9ed[_0xb4a8b2(0x1b4)]||[])[_0xb4a8b2(0x1b1)](_0x5ae247=>!!_0x5ae247),'requestMethod':(_0x5a0ee5||_0xb4a8b2(0x19e))[_0xb4a8b2(0x1a4)]()})(_0x1084c0,_0x35f4c7,_0x3e06fa);};}exports[a3_0x4a2bee(0x1c1)]=ActionApi;function parseRoute(_0x18457b){const _0x496484=a3_0x4a2bee;_0x18457b=_0x18457b[_0x496484(0x1c7)](/(\\|\/)/g,'/');const _0x53a5c2=process['cwd']()[_0x496484(0x1c7)](/(\\|\/)/g,'/'),_0x19d417=_0x18457b[_0x496484(0x1ab)](0x0,_0x53a5c2[_0x496484(0x194)]+_0x18457b['substring'](_0x53a5c2[_0x496484(0x194)]+0x1)[_0x496484(0x1ba)]('/')+0x1),_0x4910e9=_0x18457b[_0x496484(0x1ab)](_0x19d417[_0x496484(0x194)]+0x1)[_0x496484(0x1c7)](/(\\|\/)/g,'/'),_0x52a78b={'route':'','prefix':![],'module':![],'rootpath':_0x19d417,'filepath':_0x4910e9};if(_0x4910e9['startsWith'](_0x496484(0x1b5))||_0x4910e9[_0x496484(0x1b7)](_0x496484(0x196))){const _0x399873=_0x4910e9[_0x496484(0x1ab)]((_0x4910e9[_0x496484(0x1b7)](_0x496484(0x1b5))?_0x496484(0x1b5):_0x496484(0x196))[_0x496484(0x194)])[_0x496484(0x1d8)]('/')[_0x496484(0x1b1)](_0x5802e9=>_0x5802e9&&_0x5802e9[_0x496484(0x1d0)]());return _0x399873['length']>0x1&&(_0x52a78b['prefix']=_0x399873[0x0][_0x496484(0x1a4)](),_0x399873[_0x496484(0x1ad)](0x0,0x1)),_0x52a78b[_0x496484(0x190)]=('/'+_0x399873['join']('/'))[_0x496484(0x1c7)](/(\.ts|\.js)$/,'')[_0x496484(0x1c7)](/\/{2,}/g,'/')[_0x496484(0x197)](/[\/|A-Z]*[^A-Z]+/g)[_0x496484(0x1cd)]('-')['toLowerCase']()[_0x496484(0x1c7)](/\/\-/g,'/'),_0x52a78b[_0x496484(0x190)][_0x496484(0x191)](_0x496484(0x1d6))&&(_0x52a78b[_0x496484(0x190)]=_0x52a78b[_0x496484(0x190)][_0x496484(0x1ab)](0x0,_0x52a78b[_0x496484(0x190)][_0x496484(0x194)]-0x7)),_0x52a78b[_0x496484(0x190)][_0x496484(0x191)](_0x496484(0x1d3))&&(_0x52a78b[_0x496484(0x190)]=_0x52a78b[_0x496484(0x190)]['substring'](0x0,_0x52a78b['route'][_0x496484(0x194)]-0xb)),_0x52a78b;}else{if(_0x4910e9[_0x496484(0x1b7)](_0x496484(0x1d2))){const _0x438281=_0x4910e9[_0x496484(0x1ab)](0x0,_0x4910e9[_0x496484(0x1ba)](_0x496484(0x1c4))+0x5),_0x3147ea=_0x4910e9[_0x496484(0x1ab)](_0x438281[_0x496484(0x194)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x4910e9[_0x496484(0x1b7)](_0x496484(0x1d2)+_0x3147ea+_0x496484(0x1a5))){const _0x1ff83e=_0x4910e9['substring']((_0x438281+'/'+_0x3147ea+_0x496484(0x1a5))[_0x496484(0x194)])[_0x496484(0x1d8)]('/')[_0x496484(0x1b1)](_0x29bd12=>_0x29bd12&&_0x29bd12[_0x496484(0x1d0)]());return _0x1ff83e['length']>0x1&&(_0x52a78b[_0x496484(0x1cc)]=_0x1ff83e[0x0][_0x496484(0x1a4)](),_0x1ff83e[_0x496484(0x1ad)](0x0,0x1)),_0x52a78b[_0x496484(0x19b)]=_0x3147ea,_0x52a78b['route']=('/'+_0x3147ea+'/'+_0x1ff83e[_0x496484(0x1cd)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x496484(0x197)](/[\/|A-Z]*[^A-Z]+/g)[_0x496484(0x1cd)]('-')[_0x496484(0x1a4)]()[_0x496484(0x1c7)](/\/\-/g,'/'),_0x52a78b['route']['endsWith'](_0x496484(0x1d6))&&(_0x52a78b[_0x496484(0x190)]=_0x52a78b[_0x496484(0x190)][_0x496484(0x1ab)](0x0,_0x52a78b[_0x496484(0x190)][_0x496484(0x194)]-0x7)),_0x52a78b[_0x496484(0x190)][_0x496484(0x191)](_0x496484(0x1d3))&&(_0x52a78b[_0x496484(0x190)]=_0x52a78b[_0x496484(0x190)][_0x496484(0x1ab)](0x0,_0x52a78b[_0x496484(0x190)][_0x496484(0x194)]-0xb)),_0x52a78b;}throw new Error(_0x4910e9+_0x496484(0x1ae)+_0x3147ea+'/controller/文件下');}}throw new Error(_0x4910e9+_0x496484(0x1a1));}exports[a3_0x4a2bee(0x1af)]=parseRoute;function a3_0x5c33(){const _0x3ece9e=['splice','\x20文件请放在apps/','parseRoute','AppsConfigTmp','filter','Action','constructor','middleware','app/controller/','7490268cmOTCX','startsWith','(((.+)+)+)+$','12946374pTLieB','indexOf','saveClassMetadata','@anncic-api/validator','Controller','tagName','/config.','toString','ActionApi','search','isArray','/apps/','defineProperty','undefined','replace','push','Validator','assign','ACTION_ROUTE_KEY','prefix','join','string','3dOaVCW','trim','ACTION_KEY','apps/','-controller','createCustomMethodDecorator','post','-action','validationOptions','split','saveModule','attachClassMetadata','apply','../types/action','intercept','route','endsWith','getClassMetadata','898918QvlsXX','length','5961728RBpEws','basic/controller/','match','@midwayjs/core','middlewareIgnore','apimit','module','3230840BpAhHu','rootpath','get','3194436hAeUrJ','RequestMapping','\x20文件请放在app/controller/文件下','APPSCONFIG_KEY','filepath','toLowerCase','/controller/','3fRwrhR','routerName','existsSync','validate','description','substring','88916sHisPo'];a3_0x5c33=function(){return _0x3ece9e;};return a3_0x5c33();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x11ca12=a4_0x15e1;(function(_0x710ae0,_0x1e68ae){const _0x2e778b=a4_0x15e1,_0x1463ad=_0x710ae0();while(!![]){try{const _0x5ce331=parseInt(_0x2e778b(0x152))/0x1*(parseInt(_0x2e778b(0x154))/0x2)+-parseInt(_0x2e778b(0x15a))/0x3*(parseInt(_0x2e778b(0x159))/0x4)+-parseInt(_0x2e778b(0x145))/0x5*(-parseInt(_0x2e778b(0x155))/0x6)+parseInt(_0x2e778b(0x140))/0x7*(-parseInt(_0x2e778b(0x15c))/0x8)+parseInt(_0x2e778b(0x150))/0x9+-parseInt(_0x2e778b(0x142))/0xa+parseInt(_0x2e778b(0x147))/0xb;if(_0x5ce331===_0x1e68ae)break;else _0x1463ad['push'](_0x1463ad['shift']());}catch(_0x1801cc){_0x1463ad['push'](_0x1463ad['shift']());}}}(a4_0x512f,0x56858));function a4_0x512f(){const _0x57754b=['getAsync','__esModule','RequestMapping','ApitestService','getConfig','4848417NtWdOq','filepath','7BGIhXt','value','3734inXDJg','1112406ZktPba','constructor','Apitest','getApplicationContext','1292jMYEuq','2349iodQlq','get','88448jttSat','MidwayEnvironmentService','217zbPxCL','apidoc','4930350WeqtKv','toString','defineProperty','5IDckgh','../service/ApitestService','7764779FTifXG','(((.+)+)+)+$','@midwayjs/core','REQUEST_OBJ_CTX_KEY'];a4_0x512f=function(){return _0x57754b;};return a4_0x512f();}const a4_0x541f72=(function(){let _0x59c84e=!![];return function(_0x450ae9,_0x20351a){const _0x38121e=_0x59c84e?function(){if(_0x20351a){const _0x4fa296=_0x20351a['apply'](_0x450ae9,arguments);return _0x20351a=null,_0x4fa296;}}:function(){};return _0x59c84e=![],_0x38121e;};}()),a4_0x5025e3=a4_0x541f72(this,function(){const _0x3517b9=a4_0x15e1;return a4_0x5025e3[_0x3517b9(0x143)]()['search'](_0x3517b9(0x148))['toString']()[_0x3517b9(0x156)](a4_0x5025e3)['search']('(((.+)+)+)+$');});a4_0x5025e3();'use strict';Object[a4_0x11ca12(0x144)](exports,a4_0x11ca12(0x14c),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a4_0x11ca12(0x149)),ApitestService_1=require(a4_0x11ca12(0x146));function a4_0x15e1(_0x5c57f5,_0x3526d1){const _0x4f8b92=a4_0x512f();return a4_0x15e1=function(_0x5025e3,_0x541f72){_0x5025e3=_0x5025e3-0x13f;let _0x512f81=_0x4f8b92[_0x5025e3];return _0x512f81;},a4_0x15e1(_0x5c57f5,_0x3526d1);}function Apitest(_0x5b92b6='/apitest',_0x3cd486){return(_0x17c55d,_0x3f9433,_0x4f1c86)=>{const _0x15d39a=a4_0x15e1;return(0x0,core_1[_0x15d39a(0x14d)])({'path':_0x5b92b6,'requestMethod':_0x15d39a(0x15b)})(_0x17c55d,_0x3f9433,_0x4f1c86),_0x4f1c86[_0x15d39a(0x153)]=async function(..._0x411dad){const _0x517e65=_0x15d39a;var _0x5c1d83;const _0x76fb59=(_0x5c1d83=this[core_1[_0x517e65(0x14a)]])===null||_0x5c1d83===void 0x0?void 0x0:_0x5c1d83['app'];if(_0x76fb59&&_0x76fb59[_0x517e65(0x14f)]('apitest')){const _0x1c6e5b=await _0x76fb59[_0x517e65(0x158)]()[_0x517e65(0x14b)](ApitestService_1[_0x517e65(0x14e)]),_0xeac272=await _0x76fb59[_0x517e65(0x158)]()[_0x517e65(0x14b)](core_1[_0x517e65(0x13f)]);return _0xeac272['isDevelopmentEnvironment']()&&(_0x3cd486[_0x517e65(0x151)]=!![]),await _0x1c6e5b[_0x517e65(0x141)](_0x3cd486);}return'';},_0x4f1c86;};}exports[a4_0x11ca12(0x157)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a5_0x3951(_0x11b53b,_0x4cd90f){const _0x1555a4=a5_0x414b();return a5_0x3951=function(_0x101ae9,_0x55b413){_0x101ae9=_0x101ae9-0xc8;let _0x414bd9=_0x1555a4[_0x101ae9];return _0x414bd9;},a5_0x3951(_0x11b53b,_0x4cd90f);}const a5_0x45c4d0=a5_0x3951;(function(_0x597179,_0x3ef3ca){const _0x4577cd=a5_0x3951,_0x145764=_0x597179();while(!![]){try{const _0x1eb9b0=-parseInt(_0x4577cd(0xcc))/0x1*(-parseInt(_0x4577cd(0xce))/0x2)+-parseInt(_0x4577cd(0xcb))/0x3+parseInt(_0x4577cd(0xd7))/0x4*(parseInt(_0x4577cd(0xde))/0x5)+parseInt(_0x4577cd(0xdd))/0x6*(parseInt(_0x4577cd(0xe7))/0x7)+-parseInt(_0x4577cd(0xe9))/0x8*(parseInt(_0x4577cd(0xd2))/0x9)+parseInt(_0x4577cd(0xd4))/0xa*(parseInt(_0x4577cd(0xe3))/0xb)+-parseInt(_0x4577cd(0xe5))/0xc;if(_0x1eb9b0===_0x3ef3ca)break;else _0x145764['push'](_0x145764['shift']());}catch(_0x1d0ba7){_0x145764['push'](_0x145764['shift']());}}}(a5_0x414b,0xe18f4));const a5_0x55b413=(function(){let _0x53affb=!![];return function(_0x469580,_0xfa17a2){const _0x14ec64=_0x53affb?function(){const _0x4e74a5=a5_0x3951;if(_0xfa17a2){const _0x8d1101=_0xfa17a2[_0x4e74a5(0xd1)](_0x469580,arguments);return _0xfa17a2=null,_0x8d1101;}}:function(){};return _0x53affb=![],_0x14ec64;};}()),a5_0x101ae9=a5_0x55b413(this,function(){const _0x21450b=a5_0x3951;return a5_0x101ae9['toString']()[_0x21450b(0xea)](_0x21450b(0xda))[_0x21450b(0xd0)]()[_0x21450b(0xe4)](a5_0x101ae9)[_0x21450b(0xea)](_0x21450b(0xda));});a5_0x101ae9();'use strict';Object[a5_0x45c4d0(0xe0)](exports,a5_0x45c4d0(0xcf),{'value':!![]}),exports[a5_0x45c4d0(0xc9)]=exports[a5_0x45c4d0(0xdb)]=void 0x0;function a5_0x414b(){const _0xd3fcd4=['5710ahmqIJ','INTERCEPT_KEY','Provide','160184yOksFw','saveClassMetadata','Singleton','(((.+)+)+)+$','Intercept','includes','2266182tVmNRT','155Seqefk','ScopeEnum','defineProperty','toUpperCase','InterceptTargetTmp','2211Ysuafc','constructor','2059140sHWfVF','@midwayjs/core','21gJoFbo','../types/intercept','584SBeQDD','search','match','IIntercept','push','2171277kKQrdZ','10124LqlxeK','isArray','220tvvJzi','__esModule','toString','apply','219906cNORAO','getClassMetadata'];a5_0x414b=function(){return _0xd3fcd4;};return a5_0x414b();}const core_1=require(a5_0x45c4d0(0xe6)),intercept_1=require(a5_0x45c4d0(0xe8));function Intercept(_0x58df23){return _0x59f025=>{const _0x46b8d6=a5_0x3951,_0x241152=(0x0,core_1[_0x46b8d6(0xd3)])(intercept_1[_0x46b8d6(0xd5)],intercept_1[_0x46b8d6(0xe2)])||{};for(let _0x2debd0 of Array[_0x46b8d6(0xcd)](_0x58df23)?_0x58df23:[_0x58df23]){_0x2debd0=_0x2debd0[_0x46b8d6(0xe1)]();!(_0x241152===null||_0x241152===void 0x0?void 0x0:_0x241152[_0x2debd0])&&(_0x241152[_0x2debd0]=[]);if(_0x241152[_0x2debd0][_0x46b8d6(0xdc)](_0x59f025))continue;_0x241152[_0x2debd0][_0x46b8d6(0xca)](_0x59f025);}(0x0,core_1[_0x46b8d6(0xd6)])()(_0x59f025),(0x0,core_1['Scope'])(core_1[_0x46b8d6(0xdf)][_0x46b8d6(0xd9)])(_0x59f025),(0x0,core_1[_0x46b8d6(0xd8)])(intercept_1['INTERCEPT_KEY'],_0x241152,intercept_1[_0x46b8d6(0xe2)]);};}exports[a5_0x45c4d0(0xdb)]=Intercept;class IIntercept{async[a5_0x45c4d0(0xc8)](_0xc20d5,_0x339b9e,_0x2aea61){return!![];}}exports[a5_0x45c4d0(0xc9)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x441d8f=a6_0x32c8;(function(_0x114e9b,_0x3640cb){var _0x4f3e21=a6_0x32c8,_0x377012=_0x114e9b();while(!![]){try{var _0xdf55ef=-parseInt(_0x4f3e21(0x18b))/0x1*(parseInt(_0x4f3e21(0x187))/0x2)+parseInt(_0x4f3e21(0x188))/0x3+-parseInt(_0x4f3e21(0x184))/0x4+parseInt(_0x4f3e21(0x193))/0x5*(-parseInt(_0x4f3e21(0x178))/0x6)+-parseInt(_0x4f3e21(0x180))/0x7*(-parseInt(_0x4f3e21(0x179))/0x8)+-parseInt(_0x4f3e21(0x17a))/0x9*(-parseInt(_0x4f3e21(0x17b))/0xa)+parseInt(_0x4f3e21(0x182))/0xb;if(_0xdf55ef===_0x3640cb)break;else _0x377012['push'](_0x377012['shift']());}catch(_0x1ade2e){_0x377012['push'](_0x377012['shift']());}}}(a6_0x515d,0xaff12));var a6_0x45f377=(function(){var _0x43e31b=!![];return function(_0x4e6e32,_0x43c3a5){var _0x1e3806=_0x43e31b?function(){var _0x5af95f=a6_0x32c8;if(_0x43c3a5){var _0x27c89d=_0x43c3a5[_0x5af95f(0x196)](_0x4e6e32,arguments);return _0x43c3a5=null,_0x27c89d;}}:function(){};return _0x43e31b=![],_0x1e3806;};}()),a6_0x17140e=a6_0x45f377(this,function(){var _0x4621a0=a6_0x32c8;return a6_0x17140e[_0x4621a0(0x186)]()['search']('(((.+)+)+)+$')[_0x4621a0(0x186)]()[_0x4621a0(0x177)](a6_0x17140e)[_0x4621a0(0x192)](_0x4621a0(0x197));});a6_0x17140e();function a6_0x515d(){var _0x58b1fe=['getOwnPropertyDescriptor','HEADERS_CHECKCODE','search','5olsqrd','请使用正确的设备','__esModule','apply','(((.+)+)+)+$','HEADERS_DEVICE','defineProperty','metadata','HEADERS_SIGNATURE','constructor','4371342xdqcvR','5096rxcSLK','5079429Zkvclz','20DjvEvE','decorate','function','TIMEOUT_LOGINTIME','design:type','364kJbbee','TIMEOUT','22127259nLbpKy','length','5046252gJHKCA','object','toString','13382batsqL','960510WKvGvY','ApiError','HEADERS_LACK','117xiyBjx','__decorate','登录超时,请重新登录','signature验证失败','验证失败,请重新登录'];a6_0x515d=function(){return _0x58b1fe;};return a6_0x515d();}'use strict';var __decorate=this&&this[a6_0x441d8f(0x18c)]||function(_0x2c2f60,_0xb2d580,_0x49b578,_0x3386bf){var _0x48855f=a6_0x441d8f,_0x138a6a=arguments['length'],_0xd65ec7=_0x138a6a<0x3?_0xb2d580:_0x3386bf===null?_0x3386bf=Object[_0x48855f(0x190)](_0xb2d580,_0x49b578):_0x3386bf,_0x6d40dd;if(typeof Reflect===_0x48855f(0x185)&&typeof Reflect[_0x48855f(0x17c)]===_0x48855f(0x17d))_0xd65ec7=Reflect[_0x48855f(0x17c)](_0x2c2f60,_0xb2d580,_0x49b578,_0x3386bf);else{for(var _0x1a6d74=_0x2c2f60[_0x48855f(0x183)]-0x1;_0x1a6d74>=0x0;_0x1a6d74--)if(_0x6d40dd=_0x2c2f60[_0x1a6d74])_0xd65ec7=(_0x138a6a<0x3?_0x6d40dd(_0xd65ec7):_0x138a6a>0x3?_0x6d40dd(_0xb2d580,_0x49b578,_0xd65ec7):_0x6d40dd(_0xb2d580,_0x49b578))||_0xd65ec7;}return _0x138a6a>0x3&&_0xd65ec7&&Object[_0x48855f(0x199)](_0xb2d580,_0x49b578,_0xd65ec7),_0xd65ec7;},__metadata=this&&this['__metadata']||function(_0x5aa8db,_0x8fc770){var _0x41a2eb=a6_0x441d8f;if(typeof Reflect===_0x41a2eb(0x185)&&typeof Reflect['metadata']==='function')return Reflect[_0x41a2eb(0x19a)](_0x5aa8db,_0x8fc770);};Object['defineProperty'](exports,a6_0x441d8f(0x195),{'value':!![]}),exports[a6_0x441d8f(0x189)]=void 0x0;class ApiError extends AnnError{}function a6_0x32c8(_0x198e89,_0xdb089e){var _0x291073=a6_0x515d();return a6_0x32c8=function(_0x17140e,_0x45f377){_0x17140e=_0x17140e-0x177;var _0x515d7b=_0x291073[_0x17140e];return _0x515d7b;},a6_0x32c8(_0x198e89,_0xdb089e);}exports[a6_0x441d8f(0x189)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError['HEADERS_LACK']=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a6_0x441d8f(0x191)]=0x18e75,ApiError[a6_0x441d8f(0x17e)]=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata(a6_0x441d8f(0x17f),Object)],ApiError,a6_0x441d8f(0x181),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a6_0x441d8f(0x17f),Object)],ApiError,a6_0x441d8f(0x18a),void 0x0),__decorate([AnnErrorMsg(a6_0x441d8f(0x194)),__metadata(a6_0x441d8f(0x17f),Object)],ApiError,a6_0x441d8f(0x198),void 0x0),__decorate([AnnErrorMsg(a6_0x441d8f(0x18e)),__metadata('design:type',Object)],ApiError,a6_0x441d8f(0x19b),void 0x0),__decorate([AnnErrorMsg(a6_0x441d8f(0x18f)),__metadata(a6_0x441d8f(0x17f),Object)],ApiError,a6_0x441d8f(0x191),void 0x0),__decorate([AnnErrorMsg(a6_0x441d8f(0x18d)),__metadata(a6_0x441d8f(0x17f),Object)],ApiError,a6_0x441d8f(0x17e),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x7154(_0x237468,_0x5874c9){const _0x4871fa=a7_0x1be8();return a7_0x7154=function(_0xf58d02,_0x159e0e){_0xf58d02=_0xf58d02-0x14e;let _0x1be81f=_0x4871fa[_0xf58d02];return _0x1be81f;},a7_0x7154(_0x237468,_0x5874c9);}const a7_0x10964e=a7_0x7154;function a7_0x1be8(){const _0x3576d8=['970871wyOyZh','getAppsConfig','APPSCONFIG_KEY','1408kiFhoI','defineProperty','426DUrdXG','1032150MDKcQH','37219xSXCcO','get','2184681VxicAP','3897184xUxktp','AppsConfigTmp','toString','22jGwjkG','(((.+)+)+)+$','5GRdBJD','13383cIeXmP','11766770IFEGGa','getClassMetadata','search'];a7_0x1be8=function(){return _0x3576d8;};return a7_0x1be8();}(function(_0x1c49d4,_0x23555c){const _0x297b6e=a7_0x7154,_0x529522=_0x1c49d4();while(!![]){try{const _0x23ddfd=-parseInt(_0x297b6e(0x15e))/0x1+-parseInt(_0x297b6e(0x150))/0x2+parseInt(_0x297b6e(0x153))/0x3+-parseInt(_0x297b6e(0x154))/0x4*(parseInt(_0x297b6e(0x159))/0x5)+-parseInt(_0x297b6e(0x14f))/0x6*(parseInt(_0x297b6e(0x151))/0x7)+parseInt(_0x297b6e(0x161))/0x8*(parseInt(_0x297b6e(0x15a))/0x9)+parseInt(_0x297b6e(0x15b))/0xa*(parseInt(_0x297b6e(0x157))/0xb);if(_0x23ddfd===_0x23555c)break;else _0x529522['push'](_0x529522['shift']());}catch(_0x5a01fe){_0x529522['push'](_0x529522['shift']());}}}(a7_0x1be8,0x7b2e0));const a7_0x159e0e=(function(){let _0x1449c6=!![];return function(_0x5e21cd,_0x17002e){const _0x260924=_0x1449c6?function(){if(_0x17002e){const _0x5c1829=_0x17002e['apply'](_0x5e21cd,arguments);return _0x17002e=null,_0x5c1829;}}:function(){};return _0x1449c6=![],_0x260924;};}()),a7_0xf58d02=a7_0x159e0e(this,function(){const _0x108b8a=a7_0x7154;return a7_0xf58d02[_0x108b8a(0x156)]()[_0x108b8a(0x15d)](_0x108b8a(0x158))[_0x108b8a(0x156)]()['constructor'](a7_0xf58d02)['search'](_0x108b8a(0x158));});a7_0xf58d02();'use strict';Object[a7_0x10964e(0x14e)](exports,'__esModule',{'value':!![]}),exports[a7_0x10964e(0x15f)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x1d16b3){const _0x28faad=a7_0x10964e,_0x14d8ec=(0x0,core_1[_0x28faad(0x15c)])(action_1[_0x28faad(0x160)],action_1[_0x28faad(0x155)])||{};return _0x1d16b3?lodash[_0x28faad(0x152)](_0x14d8ec,_0x1d16b3):_0x14d8ec;}exports[a7_0x10964e(0x15f)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x111f14=a8_0x4dbe;(function(_0x5c0f81,_0x11b64c){const _0xdea5e7=a8_0x4dbe,_0x464773=_0x5c0f81();while(!![]){try{const _0x41d788=-parseInt(_0xdea5e7(0xd3))/0x1+parseInt(_0xdea5e7(0xb5))/0x2+parseInt(_0xdea5e7(0x9c))/0x3+-parseInt(_0xdea5e7(0xaa))/0x4+parseInt(_0xdea5e7(0xde))/0x5*(-parseInt(_0xdea5e7(0xca))/0x6)+parseInt(_0xdea5e7(0xa0))/0x7+parseInt(_0xdea5e7(0x99))/0x8;if(_0x41d788===_0x11b64c)break;else _0x464773['push'](_0x464773['shift']());}catch(_0x14e8d4){_0x464773['push'](_0x464773['shift']());}}}(a8_0x35b9,0x4f714));const a8_0x2ed2ea=(function(){let _0x2bfaa4=!![];return function(_0xdbab8a,_0x47b692){const _0x5023cf=_0x2bfaa4?function(){const _0x368059=a8_0x4dbe;if(_0x47b692){const _0x1a413b=_0x47b692[_0x368059(0xa5)](_0xdbab8a,arguments);return _0x47b692=null,_0x1a413b;}}:function(){};return _0x2bfaa4=![],_0x5023cf;};}()),a8_0x298b23=a8_0x2ed2ea(this,function(){const _0x256b40=a8_0x4dbe;return a8_0x298b23['toString']()[_0x256b40(0xe3)]('(((.+)+)+)+$')[_0x256b40(0x97)]()[_0x256b40(0xbf)](a8_0x298b23)['search']('(((.+)+)+)+$');});a8_0x298b23();'use strict';Object['defineProperty'](exports,a8_0x111f14(0xb8),{'value':!![]}),exports[a8_0x111f14(0xc8)]=void 0x0;const lodash_1=require(a8_0x111f14(0xd2)),validator_1=require(a8_0x111f14(0x93)),core_1=require('@midwayjs/core'),core_2=require(a8_0x111f14(0xd6)),core_3=require(a8_0x111f14(0xd6)),action_1=require(a8_0x111f14(0x8e));function getRoutes(_0x162e40={'prefix':'/','module':![]}){const _0x3d0a89=a8_0x111f14;var _0x523731,_0x37c907;const _0x4c913a=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x2fb0bf={},_0x215832=Array['isArray'](_0x162e40[_0x3d0a89(0xc6)]||[])?_0x162e40[_0x3d0a89(0xc6)]||[]:[_0x162e40[_0x3d0a89(0xc6)]];_0x35b294:for(const _0x49924a of _0x4c913a){let _0x14b4bd=(0x0,core_3['getClassMetadata'])(action_1[_0x3d0a89(0xea)],_0x49924a),_0x7eb0b8=(0x0,core_3[_0x3d0a89(0xe9)])(action_1[_0x3d0a89(0xab)],_0x49924a);if(_0x14b4bd&&_0x7eb0b8){let _0x2a051f=_0x14b4bd['prefix'],_0x50991a={};if(_0x162e40['module']&&(0x0,lodash_1[_0x3d0a89(0xc9)])(_0x14b4bd,'module',![])!=_0x162e40[_0x3d0a89(0xba)])continue _0x35b294;else{if(_0x162e40[_0x3d0a89(0xba)]===![]&&!!(0x0,lodash_1[_0x3d0a89(0xc9)])(_0x14b4bd,_0x3d0a89(0xba),null))continue _0x35b294;}if(_0x162e40['prefix']&&!_0x2a051f[_0x3d0a89(0xd4)](_0x162e40[_0x3d0a89(0xd0)]))continue _0x35b294;_0x2a051f!=='/'?(_0x50991a[_0x3d0a89(0xe7)]=(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd['routerOptions'][_0x3d0a89(0x9d)])||(/^\//[_0x3d0a89(0xa6)](_0x2a051f)?_0x2a051f['split']('/')[0x1]:_0x2a051f),_0x50991a[_0x3d0a89(0xb2)]=(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd[_0x3d0a89(0x98)][_0x3d0a89(0xb2)])||_0x50991a['summary'],_0x50991a[_0x3d0a89(0xc4)]=[]):(_0x50991a[_0x3d0a89(0xe7)]=(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd['routerOptions'][_0x3d0a89(0x9d)])||_0x3d0a89(0xd1),_0x50991a[_0x3d0a89(0xb2)]=(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd['routerOptions']['description'])||'',_0x50991a[_0x3d0a89(0xc4)]=[]);_0x162e40[_0x3d0a89(0x95)]&&(_0x50991a[_0x3d0a89(0x95)]=_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd[_0x3d0a89(0x95)]);(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd[_0x3d0a89(0xec)])&&(_0x50991a[_0x3d0a89(0xd0)]=_0x14b4bd['pprefix']);(_0x14b4bd===null||_0x14b4bd===void 0x0?void 0x0:_0x14b4bd['module'])&&(_0x50991a['module']=_0x14b4bd[_0x3d0a89(0xba)]);let _0xf67e1e=(0x0,core_3[_0x3d0a89(0xe9)])(core_2[_0x3d0a89(0xe6)],_0x49924a)||{};if(typeof _0x7eb0b8[Symbol[_0x3d0a89(0xce)]]===_0x3d0a89(0xa7))for(let _0xd80424 of _0x7eb0b8){if((_0x162e40===null||_0x162e40===void 0x0?void 0x0:_0x162e40[_0x3d0a89(0xbe)])&&!(_0xd80424===null||_0xd80424===void 0x0?void 0x0:_0xd80424['intercept']))continue;let _0x1c4aaa={};_0x1c4aaa[_0x3d0a89(0xb1)]=_0xd80424[_0x3d0a89(0xf0)],_0x1c4aaa[_0x3d0a89(0xaf)]=(_0x2a051f+_0xd80424[_0x3d0a89(0xe0)])['replace'](/\/{2,}/g,'/'),_0x1c4aaa[_0x3d0a89(0xe7)]=(_0xd80424===null||_0xd80424===void 0x0?void 0x0:_0xd80424[_0x3d0a89(0xeb)])||_0x50991a[_0x3d0a89(0xe7)]||_0x3d0a89(0xd1),_0x1c4aaa[_0x3d0a89(0xb2)]=(_0xd80424===null||_0xd80424===void 0x0?void 0x0:_0xd80424[_0x3d0a89(0xb2)])||'',_0x1c4aaa[_0x3d0a89(0xa3)]=[];_0x1c4aaa[_0x3d0a89(0xaf)]['endsWith']('/')&&(_0x1c4aaa[_0x3d0a89(0xaf)]=_0x1c4aaa[_0x3d0a89(0xaf)][_0x3d0a89(0x8b)](0x0,_0x1c4aaa[_0x3d0a89(0xaf)][_0x3d0a89(0xe2)]-0x1));if(!(0x0,lodash_1[_0x3d0a89(0xd4)])(_0x1c4aaa[_0x3d0a89(0xaf)],_0x3d0a89(0xa8))&&!(0x0,lodash_1['startsWith'])(_0x1c4aaa['route'],_0x3d0a89(0xc2))&&_0x215832[_0x3d0a89(0xdb)](_0x1c4aaa[_0x3d0a89(0xaf)])===-0x1){if(!(_0x162e40===null||_0x162e40===void 0x0?void 0x0:_0x162e40[_0x3d0a89(0xa4)])){let _0x4e829a=(0x0,core_3[_0x3d0a89(0xd7)])(new _0x49924a(),_0xd80424[_0x3d0a89(0xb1)]);for(const _0x5ae701 in _0x4e829a){let _0x1e8d56=(_0x523731=_0xf67e1e[_0xd80424['method']])===null||_0x523731===void 0x0?void 0x0:_0x523731[_0x3d0a89(0xb3)](_0x2a78eb=>_0x2a78eb[_0x3d0a89(0xdc)]==_0x5ae701&&_0x2a78eb[_0x3d0a89(0xc5)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2a78eb===null||_0x2a78eb===void 0x0?void 0x0:_0x2a78eb['metadata']));if(_0x1e8d56===null||_0x1e8d56===void 0x0?void 0x0:_0x1e8d56[_0x3d0a89(0xed)]){let _0x4ccf98=convertTypeToString(_0x1e8d56['metadata'][_0x3d0a89(0xd5)]||0x0);if([_0x3d0a89(0xdf),_0x3d0a89(0xe1)][_0x3d0a89(0xdb)](_0x4ccf98)!=-0x1&&_0x1e8d56[_0x3d0a89(0xed)]['propertyData'][_0x3d0a89(0xdb)](':')==-0x1&&!_0x1c4aaa[_0x3d0a89(0xa3)]['find'](_0x295f3e=>_0x295f3e[_0x3d0a89(0xc5)]==_0x1e8d56['metadata'][_0x3d0a89(0xb6)]))_0x1c4aaa[_0x3d0a89(0xa3)][_0x3d0a89(0xa1)]({'key':_0x1e8d56[_0x3d0a89(0xed)][_0x3d0a89(0xb6)],'title':_0x1e8d56['metadata'][_0x3d0a89(0xb6)],'type':convertSchemaType(_0x4e829a[_0x1e8d56[_0x3d0a89(0xdc)]][_0x3d0a89(0xc3)]),'required':![],'default':'','desc':''});else{if(_0x4ccf98==_0x3d0a89(0xcf)){let _0x484890=((_0x37c907=_0x1e8d56===null||_0x1e8d56===void 0x0?void 0x0:_0x1e8d56['metadata'])===null||_0x37c907===void 0x0?void 0x0:_0x37c907['propertyData'])||'file';_0x484890['indexOf'](':')==-0x1&&!_0x1c4aaa['request'][_0x3d0a89(0xb3)](_0x226b26=>_0x226b26[_0x3d0a89(0xc5)]==_0x484890&&_0x226b26[_0x3d0a89(0xd5)]==_0x3d0a89(0xcf))&&_0x1c4aaa[_0x3d0a89(0xa3)][_0x3d0a89(0xa1)]({'key':_0x484890,'title':_0x3d0a89(0xcc)+_0x484890,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5c64c3=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3d0a89(0x9a)],_0x4e829a[_0x5ae701]);_0x5c64c3&&_0x1c4aaa[_0x3d0a89(0xa3)][_0x3d0a89(0xa1)](...getJoiRequest(_0x5c64c3));}}}_0x50991a[_0x3d0a89(0xc4)][_0x3d0a89(0xa1)](_0x1c4aaa);}}if(_0x50991a[_0x3d0a89(0xc4)]['length']>0x0){let _0x5dc363=_0x2fb0bf[_0x2a051f];_0x5dc363?(_0x5dc363[_0x3d0a89(0xe7)]!=_0x50991a[_0x3d0a89(0xe7)]&&(_0x5dc363[_0x3d0a89(0xe7)]=_0x5dc363[_0x3d0a89(0xe7)]+','+_0x50991a[_0x3d0a89(0xe7)]),_0x5dc363['description']!=_0x50991a[_0x3d0a89(0xb2)]&&(_0x5dc363[_0x3d0a89(0xb2)]=_0x5dc363[_0x3d0a89(0xb2)]+','+_0x50991a[_0x3d0a89(0xb2)]),_0x5dc363['routes']=_0x5dc363[_0x3d0a89(0xc4)][_0x3d0a89(0x9e)](_0x50991a[_0x3d0a89(0xc4)]),_0x2fb0bf[_0x2a051f]=_0x5dc363):_0x2fb0bf[_0x2a051f]=_0x50991a;}}}return _0x2fb0bf;}exports[a8_0x111f14(0xc8)]=getRoutes;function getJoiRequest(_0x4aaa80){const _0x2cfda6=a8_0x111f14,_0x440e39=[];for(let _0x3b3dc2 in _0x4aaa80){const _0x3cd0d6={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x18f28a=typeof _0x4aaa80[_0x3b3dc2]['describe']==_0x2cfda6(0xa7)?_0x4aaa80[_0x3b3dc2]['describe']():_0x4aaa80[_0x3b3dc2];_0x3cd0d6[_0x2cfda6(0xc5)]=_0x3b3dc2,_0x3cd0d6[_0x2cfda6(0xd5)]=_0x18f28a[_0x2cfda6(0xd5)],_0x3cd0d6[_0x2cfda6(0xe8)]=(0x0,lodash_1['get'])(_0x18f28a,_0x2cfda6(0xda),_0x3b3dc2),_0x3cd0d6['default']=(0x0,lodash_1[_0x2cfda6(0xc9)])(_0x18f28a,_0x2cfda6(0x8c),''),_0x3cd0d6[_0x2cfda6(0xe5)]=(0x0,lodash_1[_0x2cfda6(0xc9)])(_0x18f28a,_0x2cfda6(0xdd),'')==_0x2cfda6(0xe5),_0x3cd0d6['description']=(0x0,lodash_1['get'])(_0x18f28a,'flags.description','');if(_0x18f28a['type']==_0x2cfda6(0xef))_0x3cd0d6[_0x2cfda6(0xae)]=getJoiRequest(_0x18f28a[_0x2cfda6(0xc0)]);else{if(_0x18f28a[_0x2cfda6(0xd5)]==_0x2cfda6(0xac)&&_0x18f28a[_0x2cfda6(0xe4)]&&Array[_0x2cfda6(0x94)](_0x18f28a[_0x2cfda6(0xe4)])&&_0x18f28a[_0x2cfda6(0xe4)][0x0]){}}_0x18f28a[_0x2cfda6(0x92)]&&Array['isArray'](_0x18f28a[_0x2cfda6(0x92)])&&_0x18f28a['allow'][_0x2cfda6(0xe2)]>0x0&&(_0x3cd0d6[_0x2cfda6(0xb2)]=_0x2cfda6(0xbd)+_0x18f28a[_0x2cfda6(0x92)][_0x2cfda6(0xbb)](',')+'];'+_0x3cd0d6['description']);if(_0x3cd0d6[_0x2cfda6(0xc5)]&&_0x3cd0d6[_0x2cfda6(0xd5)]){const _0x35033d={};for(const _0x17f5f1 of _0x18f28a[_0x2cfda6(0xcd)]||[]){if(_0x17f5f1[_0x2cfda6(0xc3)]===_0x2cfda6(0x9b)&&_0x17f5f1['args'])_0x35033d[_0x2cfda6(0x9b)]=_0x17f5f1[_0x2cfda6(0xd8)][_0x2cfda6(0xbc)];else _0x17f5f1[_0x2cfda6(0xc3)]===_0x2cfda6(0xa9)&&(_0x35033d[_0x2cfda6(0xa9)]=_0x17f5f1[_0x2cfda6(0xd8)][_0x2cfda6(0xbc)]);}_0x3cd0d6[_0x2cfda6(0xcd)]=_0x35033d;}_0x3cd0d6[_0x2cfda6(0xc5)]&&_0x3cd0d6[_0x2cfda6(0xe8)]&&_0x440e39['push'](_0x3cd0d6);}return _0x440e39;}function convertSchemaType(_0x45e258){const _0x24116d=a8_0x111f14;switch(_0x45e258){case _0x24116d(0xb0):return _0x24116d(0xef);case _0x24116d(0xd9):return _0x24116d(0xc7);case _0x24116d(0xcb):return _0x24116d(0xa2);case _0x24116d(0x90):return _0x24116d(0xb9);case _0x24116d(0x91):return'file';default:return _0x24116d(0xb9);}}function convertTypeToString(_0x4ab0db){const _0x3b8e6f=a8_0x111f14;switch(_0x4ab0db){case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0xad)]:return'header';case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0x9f)]:return _0x3b8e6f(0xdf);case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0xb7)]:return _0x3b8e6f(0xe0);case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0x96)]:return _0x3b8e6f(0xe1);case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0xc1)]:case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0x8d)]:case core_1[_0x3b8e6f(0xee)][_0x3b8e6f(0x8f)]:return'file';default:return _0x3b8e6f(0xb4);}}function a8_0x4dbe(_0x4c37a7,_0x47c2e9){const _0x1019a8=a8_0x35b9();return a8_0x4dbe=function(_0x298b23,_0x2ed2ea){_0x298b23=_0x298b23-0x8b;let _0x35b93f=_0x1019a8[_0x298b23];return _0x35b93f;},a8_0x4dbe(_0x4c37a7,_0x47c2e9);}function a8_0x35b9(){const _0x34729a=['routes','key','filter','boolean','getRoutes','get','33564qkBbJq','Number','文件上传-','rules','iterator','file','prefix','default','lodash','74620UldXSe','startsWith','type','@midwayjs/core','getMethodParamTypes','args','Boolean','flags.label','indexOf','parameterIndex','flags.presence','515jnVquA','query','path','body','length','search','items','required','INJECT_CUSTOM_PARAM','summary','title','getClassMetadata','ACTION_KEY','routerName','pprefix','metadata','RouteParamTypes','object','requestMethod','substring','flags.default','FILESSTREAM','../types/action','FILESTREAM','String','File','allow','@anncic-api/validator','isArray','filepath','BODY','toString','routerOptions','5319072kgHUQi','RULES_KEY','min','100398gIwOpn','tagName','concat','QUERY','1981056yfnDCF','push','number','request','noreq','apply','test','function','static/apitest','max','1504604QImexm','ACTION_ROUTE_KEY','array','HEADERS','children','route','Object','method','description','find','header','741982zckVxR','propertyData','PARAM','__esModule','string','module','join','limit','只允许:[','intercept','constructor','keys','FIELDS','/static/apitest','name'];a8_0x35b9=function(){return _0x34729a;};return a8_0x35b9();}
|
|
1
|
+
const a8_0x281eee=a8_0x3b6a;(function(_0xbc668a,_0x93f421){const _0x5128ca=a8_0x3b6a,_0x12aa96=_0xbc668a();while(!![]){try{const _0x76db02=-parseInt(_0x5128ca(0xca))/0x1+-parseInt(_0x5128ca(0xc7))/0x2*(-parseInt(_0x5128ca(0x9e))/0x3)+-parseInt(_0x5128ca(0x87))/0x4*(parseInt(_0x5128ca(0xb0))/0x5)+-parseInt(_0x5128ca(0xaa))/0x6*(parseInt(_0x5128ca(0xa5))/0x7)+parseInt(_0x5128ca(0xcb))/0x8*(parseInt(_0x5128ca(0xab))/0x9)+-parseInt(_0x5128ca(0x8d))/0xa+parseInt(_0x5128ca(0xe7))/0xb*(parseInt(_0x5128ca(0xc0))/0xc);if(_0x76db02===_0x93f421)break;else _0x12aa96['push'](_0x12aa96['shift']());}catch(_0x35da8c){_0x12aa96['push'](_0x12aa96['shift']());}}}(a8_0x9cd0,0x84e5c));const a8_0x3f8fe3=(function(){let _0x51d842=!![];return function(_0x50470d,_0x5bfe82){const _0x658cf9=_0x51d842?function(){const _0x4b5b79=a8_0x3b6a;if(_0x5bfe82){const _0x581e7f=_0x5bfe82[_0x4b5b79(0x93)](_0x50470d,arguments);return _0x5bfe82=null,_0x581e7f;}}:function(){};return _0x51d842=![],_0x658cf9;};}()),a8_0x103885=a8_0x3f8fe3(this,function(){const _0x4ae833=a8_0x3b6a;return a8_0x103885[_0x4ae833(0xcf)]()['search'](_0x4ae833(0xb6))[_0x4ae833(0xcf)]()['constructor'](a8_0x103885)['search'](_0x4ae833(0xb6));});a8_0x103885();'use strict';Object[a8_0x281eee(0x9f)](exports,a8_0x281eee(0xa1),{'value':!![]}),exports[a8_0x281eee(0xe6)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a8_0x281eee(0x88)),core_1=require(a8_0x281eee(0xa0)),core_2=require(a8_0x281eee(0xa0)),core_3=require(a8_0x281eee(0xa0)),action_1=require(a8_0x281eee(0xe9));function getRoutes(_0x31ec34={'prefix':'/','module':![]}){const _0x1d258a=a8_0x281eee;var _0xa3a991,_0x38abac;const _0x4a6a5a=(0x0,core_3[_0x1d258a(0xbc)])(action_1[_0x1d258a(0xb3)]),_0x1099e1={},_0x33d586=Array[_0x1d258a(0xcd)](_0x31ec34[_0x1d258a(0xa6)]||[])?_0x31ec34[_0x1d258a(0xa6)]||[]:[_0x31ec34['filter']];_0x9014a6:for(const _0x316684 of _0x4a6a5a){let _0x4634e9=(0x0,core_3['getClassMetadata'])(action_1[_0x1d258a(0xb3)],_0x316684),_0x2b04a1=(0x0,core_3[_0x1d258a(0xe5)])(action_1[_0x1d258a(0xce)],_0x316684);if(_0x4634e9&&_0x2b04a1){let _0x49f837=_0x4634e9['prefix'],_0x4fdca7={};if(_0x31ec34['module']&&(0x0,lodash_1['get'])(_0x4634e9,'module',![])!=_0x31ec34[_0x1d258a(0x89)])continue _0x9014a6;else{if(_0x31ec34[_0x1d258a(0x89)]===![]&&!!(0x0,lodash_1[_0x1d258a(0xb1)])(_0x4634e9,_0x1d258a(0x89),null))continue _0x9014a6;}if(_0x31ec34[_0x1d258a(0x84)]&&!_0x49f837[_0x1d258a(0xb2)](_0x31ec34[_0x1d258a(0x84)]))continue _0x9014a6;_0x49f837!=='/'?(_0x4fdca7[_0x1d258a(0xc8)]=(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xc1)]['tagName'])||(/^\//['test'](_0x49f837)?_0x49f837['split']('/')[0x1]:_0x49f837),_0x4fdca7['description']=(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xc1)][_0x1d258a(0xcc)])||_0x4fdca7['summary'],_0x4fdca7[_0x1d258a(0xbe)]=[]):(_0x4fdca7[_0x1d258a(0xc8)]=(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xc1)][_0x1d258a(0xd0)])||'default',_0x4fdca7[_0x1d258a(0xcc)]=(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xc1)][_0x1d258a(0xcc)])||'',_0x4fdca7[_0x1d258a(0xbe)]=[]);_0x31ec34[_0x1d258a(0xd6)]&&(_0x4fdca7['filepath']=_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xd6)]);(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0xc5)])&&(_0x4fdca7[_0x1d258a(0x84)]=_0x4634e9[_0x1d258a(0xc5)]);(_0x4634e9===null||_0x4634e9===void 0x0?void 0x0:_0x4634e9[_0x1d258a(0x89)])&&(_0x4fdca7[_0x1d258a(0x89)]=_0x4634e9['module']);let _0x362f30=(0x0,core_3[_0x1d258a(0xe5)])(core_2[_0x1d258a(0xae)],_0x316684)||{};if(typeof _0x2b04a1[Symbol[_0x1d258a(0xe0)]]===_0x1d258a(0x9b))for(let _0x340fd3 of _0x2b04a1){if((_0x31ec34===null||_0x31ec34===void 0x0?void 0x0:_0x31ec34[_0x1d258a(0xc6)])&&!(_0x340fd3===null||_0x340fd3===void 0x0?void 0x0:_0x340fd3[_0x1d258a(0xc6)]))continue;let _0x2e5be2={};_0x2e5be2[_0x1d258a(0xb4)]=_0x340fd3['requestMethod'],_0x2e5be2[_0x1d258a(0xb7)]=(_0x49f837+_0x340fd3[_0x1d258a(0xb5)])[_0x1d258a(0xbb)](/\/{2,}/g,'/'),_0x2e5be2[_0x1d258a(0xc8)]=(_0x340fd3===null||_0x340fd3===void 0x0?void 0x0:_0x340fd3[_0x1d258a(0x95)])||_0x4fdca7[_0x1d258a(0xc8)]||_0x1d258a(0xdc),_0x2e5be2[_0x1d258a(0xcc)]=(_0x340fd3===null||_0x340fd3===void 0x0?void 0x0:_0x340fd3['description'])||'',_0x2e5be2[_0x1d258a(0xa3)]=[];_0x2e5be2[_0x1d258a(0xb7)][_0x1d258a(0x8e)]('/')&&(_0x2e5be2[_0x1d258a(0xb7)]=_0x2e5be2[_0x1d258a(0xb7)][_0x1d258a(0xd8)](0x0,_0x2e5be2[_0x1d258a(0xb7)][_0x1d258a(0xbd)]-0x1));if(!(0x0,lodash_1[_0x1d258a(0xb2)])(_0x2e5be2[_0x1d258a(0xb7)],_0x1d258a(0xda))&&!(0x0,lodash_1[_0x1d258a(0xb2)])(_0x2e5be2[_0x1d258a(0xb7)],_0x1d258a(0x92))&&_0x33d586[_0x1d258a(0xa9)](_0x2e5be2[_0x1d258a(0xb7)])===-0x1){if(!(_0x31ec34===null||_0x31ec34===void 0x0?void 0x0:_0x31ec34[_0x1d258a(0xdd)])){let _0x229871=(0x0,core_3[_0x1d258a(0xd9)])(new _0x316684(),_0x340fd3[_0x1d258a(0xb4)]);for(const _0x257a1e in _0x229871){let _0x43fa9a=(_0xa3a991=_0x362f30[_0x340fd3[_0x1d258a(0xb4)]])===null||_0xa3a991===void 0x0?void 0x0:_0xa3a991[_0x1d258a(0x99)](_0x301530=>_0x301530[_0x1d258a(0x8f)]==_0x257a1e&&_0x301530[_0x1d258a(0xba)]===core_2[_0x1d258a(0xd1)]&&(_0x301530===null||_0x301530===void 0x0?void 0x0:_0x301530['metadata']));if(_0x43fa9a===null||_0x43fa9a===void 0x0?void 0x0:_0x43fa9a[_0x1d258a(0xbf)]){let _0x28bbab=convertTypeToString(_0x43fa9a[_0x1d258a(0xbf)]['type']||0x0);if([_0x1d258a(0xe3),_0x1d258a(0x91)][_0x1d258a(0xa9)](_0x28bbab)!=-0x1&&_0x43fa9a[_0x1d258a(0xbf)][_0x1d258a(0xad)][_0x1d258a(0xa9)](':')==-0x1&&!_0x2e5be2[_0x1d258a(0xa3)][_0x1d258a(0x99)](_0x3a636a=>_0x3a636a[_0x1d258a(0xba)]==_0x43fa9a[_0x1d258a(0xbf)][_0x1d258a(0xad)]))_0x2e5be2['request']['push']({'key':_0x43fa9a['metadata']['propertyData'],'title':_0x43fa9a[_0x1d258a(0xbf)]['propertyData'],'type':convertSchemaType(_0x229871[_0x43fa9a['parameterIndex']][_0x1d258a(0xde)]),'required':![],'default':'','desc':''});else{if(_0x28bbab==_0x1d258a(0xb9)){let _0x50501e=((_0x38abac=_0x43fa9a===null||_0x43fa9a===void 0x0?void 0x0:_0x43fa9a[_0x1d258a(0xbf)])===null||_0x38abac===void 0x0?void 0x0:_0x38abac['propertyData'])||_0x1d258a(0xb9);_0x50501e['indexOf'](':')==-0x1&&!_0x2e5be2[_0x1d258a(0xa3)][_0x1d258a(0x99)](_0x1c7c12=>_0x1c7c12['key']==_0x50501e&&_0x1c7c12['type']==_0x1d258a(0xb9))&&_0x2e5be2[_0x1d258a(0xa3)][_0x1d258a(0x9a)]({'key':_0x50501e,'title':_0x1d258a(0xa2)+_0x50501e,'type':_0x1d258a(0xb9),'required':!![],'default':'','desc':''});}}}else{const _0x1129ac=(0x0,core_3[_0x1d258a(0x86)])(validator_1[_0x1d258a(0x83)],_0x229871[_0x257a1e]);_0x1129ac&&_0x2e5be2['request'][_0x1d258a(0x9a)](...getJoiRequest(_0x1129ac));}}}_0x4fdca7[_0x1d258a(0xbe)][_0x1d258a(0x9a)](_0x2e5be2);}}if(_0x4fdca7[_0x1d258a(0xbe)][_0x1d258a(0xbd)]>0x0){let _0x36a492=_0x1099e1[_0x49f837];_0x36a492?(_0x36a492[_0x1d258a(0xc8)]!=_0x4fdca7[_0x1d258a(0xc8)]&&(_0x36a492['summary']=_0x36a492['summary']+','+_0x4fdca7[_0x1d258a(0xc8)]),_0x36a492['description']!=_0x4fdca7[_0x1d258a(0xcc)]&&(_0x36a492[_0x1d258a(0xcc)]=_0x36a492[_0x1d258a(0xcc)]+','+_0x4fdca7[_0x1d258a(0xcc)]),_0x36a492[_0x1d258a(0xbe)]=_0x36a492[_0x1d258a(0xbe)]['concat'](_0x4fdca7[_0x1d258a(0xbe)]),_0x1099e1[_0x49f837]=_0x36a492):_0x1099e1[_0x49f837]=_0x4fdca7;}}}return _0x1099e1;}function a8_0x3b6a(_0x440a71,_0x53ab7f){const _0x1a8041=a8_0x9cd0();return a8_0x3b6a=function(_0x103885,_0x3f8fe3){_0x103885=_0x103885-0x83;let _0x9cd080=_0x1a8041[_0x103885];return _0x9cd080;},a8_0x3b6a(_0x440a71,_0x53ab7f);}exports[a8_0x281eee(0xe6)]=getRoutes;function getJoiRequest(_0x1d5cc2){const _0xf7a658=a8_0x281eee,_0x10e92c=[];for(let _0x3e33ff in _0x1d5cc2){const _0xb0a312={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x110929=typeof _0x1d5cc2[_0x3e33ff][_0xf7a658(0x94)]==_0xf7a658(0x9b)?_0x1d5cc2[_0x3e33ff][_0xf7a658(0x94)]():_0x1d5cc2[_0x3e33ff];_0xb0a312['key']=_0x3e33ff,_0xb0a312['type']=_0x110929[_0xf7a658(0xe4)],_0xb0a312[_0xf7a658(0xa4)]=(0x0,lodash_1[_0xf7a658(0xb1)])(_0x110929,_0xf7a658(0xdf),_0x3e33ff),_0xb0a312[_0xf7a658(0xdc)]=(0x0,lodash_1[_0xf7a658(0xb1)])(_0x110929,_0xf7a658(0xd3),''),_0xb0a312[_0xf7a658(0xdb)]=(0x0,lodash_1[_0xf7a658(0xb1)])(_0x110929,_0xf7a658(0xc3),'')==_0xf7a658(0xdb),_0xb0a312[_0xf7a658(0xcc)]=(0x0,lodash_1['get'])(_0x110929,_0xf7a658(0x98),'');if(_0x110929[_0xf7a658(0xe4)]==_0xf7a658(0x8a))_0xb0a312[_0xf7a658(0xe2)]=getJoiRequest(_0x110929[_0xf7a658(0xec)]);else{if(_0x110929[_0xf7a658(0xe4)]=='array'&&_0x110929[_0xf7a658(0xd7)]&&Array[_0xf7a658(0xcd)](_0x110929['items'])&&_0x110929['items'][0x0]){}}_0x110929[_0xf7a658(0xb8)]&&Array[_0xf7a658(0xcd)](_0x110929[_0xf7a658(0xb8)])&&_0x110929['allow'][_0xf7a658(0xbd)]>0x0&&(_0xb0a312[_0xf7a658(0xcc)]=_0xf7a658(0x85)+_0x110929[_0xf7a658(0xb8)]['join'](',')+'];'+_0xb0a312['description']);if(_0xb0a312[_0xf7a658(0xba)]&&_0xb0a312[_0xf7a658(0xe4)]){const _0x27cf64={};for(const _0x4b0aa8 of _0x110929[_0xf7a658(0xe8)]||[]){if(_0x4b0aa8[_0xf7a658(0xde)]===_0xf7a658(0xc4)&&_0x4b0aa8[_0xf7a658(0x90)])_0x27cf64[_0xf7a658(0xc4)]=_0x4b0aa8[_0xf7a658(0x90)]['limit'];else _0x4b0aa8['name']===_0xf7a658(0xc2)&&(_0x27cf64['max']=_0x4b0aa8[_0xf7a658(0x90)][_0xf7a658(0x96)]);}_0xb0a312[_0xf7a658(0xe8)]=_0x27cf64;}_0xb0a312[_0xf7a658(0xba)]&&_0xb0a312[_0xf7a658(0xa4)]&&_0x10e92c[_0xf7a658(0x9a)](_0xb0a312);}return _0x10e92c;}function a8_0x9cd0(){const _0xabf7b4=['iterator','boolean','children','query','type','getClassMetadata','getRoutes','2794YpNrbD','rules','../types/action','FIELDS','HEADERS','keys','RULES_KEY','prefix','只允许:[','getClassExtendedMetadata','2932tBczOK','@anncic-api/validator','module','object','header','Boolean','27940vkZsdb','endsWith','parameterIndex','args','body','/static/apitest','apply','describe','routerName','limit','Number','flags.description','find','push','function','File','PARAM','76671FbTBbD','defineProperty','@midwayjs/core','__esModule','文件上传-','request','title','7LyWRGQ','filter','string','QUERY','indexOf','2079174nYqGEa','11601PmeCbL','FILESSTREAM','propertyData','INJECT_CUSTOM_PARAM','Object','5465znpFij','get','startsWith','ACTION_KEY','method','path','(((.+)+)+)+$','route','allow','file','key','replace','listModule','length','routes','metadata','48276RdVEEg','routerOptions','max','flags.presence','min','pprefix','intercept','2ssnabf','summary','RouteParamTypes','434030dwaVsZ','6712YdZrYt','description','isArray','ACTION_ROUTE_KEY','toString','tagName','WEB_ROUTER_PARAM_KEY','number','flags.default','BODY','FILESTREAM','filepath','items','substring','getMethodParamTypes','static/apitest','required','default','noreq','name','flags.label'];a8_0x9cd0=function(){return _0xabf7b4;};return a8_0x9cd0();}function convertSchemaType(_0x14ff58){const _0x23e018=a8_0x281eee;switch(_0x14ff58){case _0x23e018(0xaf):return _0x23e018(0x8a);case _0x23e018(0x8c):return _0x23e018(0xe1);case _0x23e018(0x97):return _0x23e018(0xd2);case'String':return _0x23e018(0xa7);case _0x23e018(0x9c):return _0x23e018(0xb9);default:return _0x23e018(0xa7);}}function convertTypeToString(_0xa8e453){const _0x56c92c=a8_0x281eee;switch(_0xa8e453){case core_1[_0x56c92c(0xc9)][_0x56c92c(0xeb)]:return _0x56c92c(0x8b);case core_1[_0x56c92c(0xc9)][_0x56c92c(0xa8)]:return _0x56c92c(0xe3);case core_1[_0x56c92c(0xc9)][_0x56c92c(0x9d)]:return'path';case core_1[_0x56c92c(0xc9)][_0x56c92c(0xd4)]:return _0x56c92c(0x91);case core_1[_0x56c92c(0xc9)][_0x56c92c(0xea)]:case core_1[_0x56c92c(0xc9)][_0x56c92c(0xac)]:case core_1[_0x56c92c(0xc9)][_0x56c92c(0xd5)]:return _0x56c92c(0xb9);default:return _0x56c92c(0x8b);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x449b5b=a9_0x29c5;(function(_0x525bfd,_0x1019c4){var _0x26176e=a9_0x29c5,_0x13c46c=_0x525bfd();while(!![]){try{var _0x515230=parseInt(_0x26176e(0x20e))/0x1*(-parseInt(_0x26176e(0x21c))/0x2)+parseInt(_0x26176e(0x208))/0x3+-parseInt(_0x26176e(0x1f3))/0x4*(-parseInt(_0x26176e(0x22f))/0x5)+parseInt(_0x26176e(0x1f1))/0x6+-parseInt(_0x26176e(0x22d))/0x7*(-parseInt(_0x26176e(0x215))/0x8)+parseInt(_0x26176e(0x223))/0x9+parseInt(_0x26176e(0x211))/0xa*(-parseInt(_0x26176e(0x1fa))/0xb);if(_0x515230===_0x1019c4)break;else _0x13c46c['push'](_0x13c46c['shift']());}catch(_0x1a3664){_0x13c46c['push'](_0x13c46c['shift']());}}}(a9_0x5cdd,0x259e1));var a9_0x69ae8b=(function(){var _0x3eb061=!![];return function(_0x572986,_0x4fab05){var _0x298d21=_0x3eb061?function(){var _0xab2dd4=a9_0x29c5;if(_0x4fab05){var _0xd9282c=_0x4fab05[_0xab2dd4(0x206)](_0x572986,arguments);return _0x4fab05=null,_0xd9282c;}}:function(){};return _0x3eb061=![],_0x298d21;};}()),a9_0x56b752=a9_0x69ae8b(this,function(){var _0x5e6dae=a9_0x29c5;return a9_0x56b752['toString']()[_0x5e6dae(0x222)](_0x5e6dae(0x205))[_0x5e6dae(0x207)]()[_0x5e6dae(0x21e)](a9_0x56b752)[_0x5e6dae(0x222)](_0x5e6dae(0x205));});a9_0x56b752();'use strict';var __createBinding=this&&this[a9_0x449b5b(0x228)]||(Object[a9_0x449b5b(0x233)]?function(_0x568160,_0x24fa95,_0x43d1d7,_0x59ec26){var _0xc6a3bf=a9_0x449b5b;if(_0x59ec26===undefined)_0x59ec26=_0x43d1d7;var _0x18b6f2=Object[_0xc6a3bf(0x209)](_0x24fa95,_0x43d1d7);(!_0x18b6f2||(_0xc6a3bf(0x202)in _0x18b6f2?!_0x24fa95[_0xc6a3bf(0x1f5)]:_0x18b6f2[_0xc6a3bf(0x1f9)]||_0x18b6f2[_0xc6a3bf(0x22c)]))&&(_0x18b6f2={'enumerable':!![],'get':function(){return _0x24fa95[_0x43d1d7];}}),Object[_0xc6a3bf(0x1ed)](_0x568160,_0x59ec26,_0x18b6f2);}:function(_0x8d7350,_0x2b6056,_0x5cedde,_0x37c840){if(_0x37c840===undefined)_0x37c840=_0x5cedde;_0x8d7350[_0x37c840]=_0x2b6056[_0x5cedde];}),__exportStar=this&&this[a9_0x449b5b(0x226)]||function(_0xf3a2f,_0xfc98e8){var _0x2234e2=a9_0x449b5b;for(var _0x40e392 in _0xf3a2f)if(_0x40e392!==_0x2234e2(0x1f2)&&!Object[_0x2234e2(0x201)][_0x2234e2(0x217)][_0x2234e2(0x229)](_0xfc98e8,_0x40e392))__createBinding(_0xfc98e8,_0xf3a2f,_0x40e392);};function a9_0x5cdd(){var _0x3089f1=['CacheService','24fPvwax','Fields','hasOwnProperty','App','./helper/getRoutes','File','Singleton','366EsiiVt','@anncic-api/cache','constructor','Action','./helper/getAppsConfig','Scope','search','700839JQbwkg','getRoutes','Configuration','__exportStar','./service/ApitestService','__createBinding','call','./decorator/Intercept','./exception/ApiError','configurable','247457ANKHTK','ValidatorError','9245HfTZEG','ScopeEnum','./decorator/Action','ValidatorService','create','defineProperty','@anncic-api/validator','Query','Body','1095708XDwMeC','default','212SrKGJM','Provide','__esModule','Inject','Intercept','EventService','writable','951775XNFgte','Headers','getAppsConfig','./configuration','Config','ExcelService','Init','prototype','get','@midwayjs/core','./service/ExcelService','(((.+)+)+)+$','apply','toString','702387NVfaOk','getOwnPropertyDescriptor','CustomConfiguration','Param','ApiService','Files','139PBPvBA','ApiError','Logger','60mRtNWA','./types/common','IIntercept'];a9_0x5cdd=function(){return _0x3089f1;};return a9_0x5cdd();}Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1f5),{'value':!![]}),exports[a9_0x449b5b(0x1fc)]=exports[a9_0x449b5b(0x230)]=exports[a9_0x449b5b(0x21b)]=exports[a9_0x449b5b(0x221)]=exports[a9_0x449b5b(0x1f6)]=exports[a9_0x449b5b(0x1f4)]=exports['Logger']=exports[a9_0x449b5b(0x1fe)]=exports[a9_0x449b5b(0x218)]=exports[a9_0x449b5b(0x200)]=exports[a9_0x449b5b(0x1fb)]=exports[a9_0x449b5b(0x1ef)]=exports['Param']=exports[a9_0x449b5b(0x1f0)]=exports[a9_0x449b5b(0x216)]=exports[a9_0x449b5b(0x20d)]=exports[a9_0x449b5b(0x21a)]=exports['Configuration']=exports[a9_0x449b5b(0x232)]=exports[a9_0x449b5b(0x22e)]=exports[a9_0x449b5b(0x1ff)]=exports['ApiService']=exports[a9_0x449b5b(0x1f8)]=exports[a9_0x449b5b(0x214)]=exports[a9_0x449b5b(0x20f)]=exports[a9_0x449b5b(0x224)]=exports['IIntercept']=exports[a9_0x449b5b(0x1f7)]=exports['Apitest']=exports[a9_0x449b5b(0x21f)]=void 0x0;const getAppsConfig_1=require(a9_0x449b5b(0x220));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1fc),{'enumerable':!![],'get':function(){var _0x1b64d0=a9_0x449b5b;return getAppsConfig_1[_0x1b64d0(0x1fc)];}}),__exportStar(require(a9_0x449b5b(0x212)),exports),__exportStar(require(a9_0x449b5b(0x227)),exports);var Action_1=require(a9_0x449b5b(0x231));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x21f),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a9_0x449b5b(0x1ed)](exports,'Apitest',{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a9_0x449b5b(0x22a));Object[a9_0x449b5b(0x1ed)](exports,'Intercept',{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object['defineProperty'](exports,a9_0x449b5b(0x213),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a9_0x449b5b(0x219));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x224),{'enumerable':!![],'get':function(){var _0x4953d9=a9_0x449b5b;return getRoutes_1[_0x4953d9(0x224)];}});var ApiError_1=require(a9_0x449b5b(0x22b));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x20f),{'enumerable':!![],'get':function(){var _0x5c2a5c=a9_0x449b5b;return ApiError_1[_0x5c2a5c(0x20f)];}});var cache_1=require(a9_0x449b5b(0x21d));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x214),{'enumerable':!![],'get':function(){var _0x459226=a9_0x449b5b;return cache_1[_0x459226(0x214)];}});var event_1=require('@anncic-api/event');Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1f8),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x20c),{'enumerable':!![],'get':function(){var _0x3c8034=a9_0x449b5b;return ApiService_1[_0x3c8034(0x20c)];}});var ExcelService_1=require(a9_0x449b5b(0x204));Object[a9_0x449b5b(0x1ed)](exports,'ExcelService',{'enumerable':!![],'get':function(){var _0x9f77ef=a9_0x449b5b;return ExcelService_1[_0x9f77ef(0x1ff)];}});var validator_1=require(a9_0x449b5b(0x1ee));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x22e),{'enumerable':!![],'get':function(){var _0x1e349d=a9_0x449b5b;return validator_1[_0x1e349d(0x22e)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x232),{'enumerable':!![],'get':function(){var _0x3f9c42=a9_0x449b5b;return validator_1[_0x3f9c42(0x232)];}});var configuration_1=require(a9_0x449b5b(0x1fd));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x225),{'enumerable':!![],'get':function(){var _0x4337e9=a9_0x449b5b;return configuration_1[_0x4337e9(0x20a)];}});var core_1=require(a9_0x449b5b(0x203));Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x21a),{'enumerable':!![],'get':function(){var _0x4eec30=a9_0x449b5b;return core_1[_0x4eec30(0x21a)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x20d),{'enumerable':!![],'get':function(){var _0x365a3c=a9_0x449b5b;return core_1[_0x365a3c(0x20d)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x216),{'enumerable':!![],'get':function(){var _0x9516cb=a9_0x449b5b;return core_1[_0x9516cb(0x216)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1f0),{'enumerable':!![],'get':function(){return core_1['Body'];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x20b),{'enumerable':!![],'get':function(){var _0x4aca94=a9_0x449b5b;return core_1[_0x4aca94(0x20b)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1ef),{'enumerable':!![],'get':function(){var _0x43ef65=a9_0x449b5b;return core_1[_0x43ef65(0x1ef)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1fb),{'enumerable':!![],'get':function(){var _0x27f858=a9_0x449b5b;return core_1[_0x27f858(0x1fb)];}}),Object[a9_0x449b5b(0x1ed)](exports,'Init',{'enumerable':!![],'get':function(){return core_1['Init'];}});function a9_0x29c5(_0x1d0141,_0x2e4626){var _0x548175=a9_0x5cdd();return a9_0x29c5=function(_0x56b752,_0x69ae8b){_0x56b752=_0x56b752-0x1ed;var _0x5cddcd=_0x548175[_0x56b752];return _0x5cddcd;},a9_0x29c5(_0x1d0141,_0x2e4626);}var core_2=require('@midwayjs/core');Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x218),{'enumerable':!![],'get':function(){var _0xab0897=a9_0x449b5b;return core_2[_0xab0897(0x218)];}}),Object['defineProperty'](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x210),{'enumerable':!![],'get':function(){var _0x610a2e=a9_0x449b5b;return core_2[_0x610a2e(0x210)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x1f4),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a9_0x449b5b(0x1ed)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x449b5b(0x1ed)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x487404=a9_0x449b5b;return core_2[_0x487404(0x221)];}}),Object[a9_0x449b5b(0x1ed)](exports,'Singleton',{'enumerable':!![],'get':function(){var _0x17a4e7=a9_0x449b5b;return core_2[_0x17a4e7(0x21b)];}}),Object[a9_0x449b5b(0x1ed)](exports,a9_0x449b5b(0x230),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x449b5b(0x1fc)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x8da995=a10_0x18d9;(function(_0x836f07,_0x5b68ea){var _0x388bdb=a10_0x18d9,_0x34a650=_0x836f07();while(!![]){try{var _0x3e2bc0=parseInt(_0x388bdb(0xd4))/0x1+-parseInt(_0x388bdb(0xdc))/0x2*(-parseInt(_0x388bdb(0xec))/0x3)+parseInt(_0x388bdb(0xbc))/0x4*(parseInt(_0x388bdb(0xe6))/0x5)+-parseInt(_0x388bdb(0xee))/0x6*(parseInt(_0x388bdb(0xc2))/0x7)+-parseInt(_0x388bdb(0xc3))/0x8*(-parseInt(_0x388bdb(0xf2))/0x9)+-parseInt(_0x388bdb(0xe0))/0xa+-parseInt(_0x388bdb(0xb4))/0xb*(parseInt(_0x388bdb(0xc5))/0xc);if(_0x3e2bc0===_0x5b68ea)break;else _0x34a650['push'](_0x34a650['shift']());}catch(_0x5209f5){_0x34a650['push'](_0x34a650['shift']());}}}(a10_0x2a18,0x918e5));function a10_0x2a18(){var _0x4a4a56=['3xBKGGp','secret=','6MkiMYi','logintimeout','constructor','MD5','159516sbelaz','请求超时,请重试或改善网络环境','Provide','push','473RDnTnl','decorate','toLowerCase','prototype','ApiError','substring','checkcode','验证失败','56796kebsNC','devices','ScopeEnum','signature','HEADERS_LACK','design:type','4541159kDTZYB','152iEqKnp','now','82392oRNjVa','token','fromEntries','config','ApiService','timeout','metadata','logintime','device','HEADERS_DEVICE','sort','length','requesttime','function','__esModule','727661jHdrzG','getOwnPropertyDescriptor','secret','HEADERS_SIGNATURE','toString','@midwayjs/core','padEnd','checksign','1661266xLdBea','entries','getsign','TIMEOUT_LOGINTIME','10222310lXDQSV','search','password','map','__metadata','anncicapi','235AkmAdZ','abs','crypto-js','object','Scope','../exception/ApiError'];a10_0x2a18=function(){return _0x4a4a56;};return a10_0x2a18();}var a10_0xc412fd=(function(){var _0x2b3cf4=!![];return function(_0x83c051,_0x124eb0){var _0x2c4c79=_0x2b3cf4?function(){if(_0x124eb0){var _0x42036c=_0x124eb0['apply'](_0x83c051,arguments);return _0x124eb0=null,_0x42036c;}}:function(){};return _0x2b3cf4=![],_0x2c4c79;};}()),a10_0x29a6b1=a10_0xc412fd(this,function(){var _0xf71c89=a10_0x18d9;return a10_0x29a6b1[_0xf71c89(0xd8)]()[_0xf71c89(0xe1)]('(((.+)+)+)+$')[_0xf71c89(0xd8)]()[_0xf71c89(0xf0)](a10_0x29a6b1)[_0xf71c89(0xe1)]('(((.+)+)+)+$');});a10_0x29a6b1();'use strict';var __decorate=this&&this['__decorate']||function(_0x39f1a5,_0x5f4bfb,_0x567991,_0x583dca){var _0x54d9cf=a10_0x18d9,_0x3754f5=arguments[_0x54d9cf(0xd0)],_0x50be1e=_0x3754f5<0x3?_0x5f4bfb:_0x583dca===null?_0x583dca=Object[_0x54d9cf(0xd5)](_0x5f4bfb,_0x567991):_0x583dca,_0x3bc5eb;if(typeof Reflect===_0x54d9cf(0xe9)&&typeof Reflect[_0x54d9cf(0xb5)]==='function')_0x50be1e=Reflect[_0x54d9cf(0xb5)](_0x39f1a5,_0x5f4bfb,_0x567991,_0x583dca);else{for(var _0x5f450d=_0x39f1a5['length']-0x1;_0x5f450d>=0x0;_0x5f450d--)if(_0x3bc5eb=_0x39f1a5[_0x5f450d])_0x50be1e=(_0x3754f5<0x3?_0x3bc5eb(_0x50be1e):_0x3754f5>0x3?_0x3bc5eb(_0x5f4bfb,_0x567991,_0x50be1e):_0x3bc5eb(_0x5f4bfb,_0x567991))||_0x50be1e;}return _0x3754f5>0x3&&_0x50be1e&&Object['defineProperty'](_0x5f4bfb,_0x567991,_0x50be1e),_0x50be1e;},__metadata=this&&this[a10_0x8da995(0xe4)]||function(_0x556568,_0x7265d3){var _0x538b6f=a10_0x8da995;if(typeof Reflect===_0x538b6f(0xe9)&&typeof Reflect[_0x538b6f(0xcb)]===_0x538b6f(0xd2))return Reflect[_0x538b6f(0xcb)](_0x556568,_0x7265d3);};Object['defineProperty'](exports,a10_0x8da995(0xd3),{'value':!![]}),exports[a10_0x8da995(0xc9)]=void 0x0;const crypto_js_1=require(a10_0x8da995(0xe8)),core_1=require(a10_0x8da995(0xd9)),ApiError_1=require(a10_0x8da995(0xeb));let ApiService=class ApiService{['password'](_0x113c72){var _0x3925cc=a10_0x8da995,_0x3161c7;return _0x113c72?(0x0,crypto_js_1[_0x3925cc(0xf1)])(''+_0x113c72+(0x0,crypto_js_1[_0x3925cc(0xf1)])((0x0,crypto_js_1[_0x3925cc(0xf1)])(''+_0x113c72)[_0x3925cc(0xd8)]()+(''+((_0x3161c7=this[_0x3925cc(0xc8)])===null||_0x3161c7===void 0x0?void 0x0:_0x3161c7[_0x3925cc(0xe2)])))['toString']())[_0x3925cc(0xd8)]():'';}['getcheck'](_0x5bbd42,_0x17b874,_0x4e1bca=Date['now']()){var _0x5b7e7a=a10_0x8da995;return{'Token':_0x5bbd42,'Logintime':_0x4e1bca,'Checkcode':this[_0x5b7e7a(0xba)](_0x5bbd42,_0x17b874,_0x4e1bca)};}[a10_0x8da995(0xde)](_0x5c8ee8={}){var _0x6a8be4=a10_0x8da995,_0x4900d1,_0x1c3a32;const _0x26dc44=[],_0x5e7d76=Object[_0x6a8be4(0xc7)](Object['entries'](_0x5c8ee8)['map'](_0x4f2ef1=>[_0x4f2ef1[0x0][_0x6a8be4(0xb6)](),_0x4f2ef1[0x1]]));for(let _0x1366d3 of[_0x6a8be4(0xcd),_0x6a8be4(0xd1),_0x6a8be4(0xc6),_0x6a8be4(0xcc),_0x6a8be4(0xba)]){if(typeof _0x5e7d76[_0x1366d3]=='undefined')throw new AnnError(ApiError_1[_0x6a8be4(0xb8)][_0x6a8be4(0xc0)],{'message':_0x6a8be4(0xbb)});_0x26dc44[_0x6a8be4(0xf5)](_0x1366d3+'='+_0x5e7d76[_0x1366d3]);}_0x5e7d76[_0x6a8be4(0xd1)]&&((_0x4900d1=_0x5e7d76['requesttime'])===null||_0x4900d1===void 0x0?void 0x0:_0x4900d1[_0x6a8be4(0xd0)])==0xa&&(_0x5e7d76[_0x6a8be4(0xd1)]=_0x5e7d76[_0x6a8be4(0xd1)]*0x3e8);if(this[_0x6a8be4(0xc8)][_0x6a8be4(0xca)]&&parseInt((''+Date[_0x6a8be4(0xc4)]())['substring'](0x0,0xd)[_0x6a8be4(0xda)](0xd,'0'))-parseInt((''+Math[_0x6a8be4(0xe7)](_0x5e7d76[_0x6a8be4(0xd1)]))[_0x6a8be4(0xb9)](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x6a8be4(0xc8)][_0x6a8be4(0xca)]))throw new AnnError(ApiError_1[_0x6a8be4(0xb8)]['TIMEOUT'],{'message':_0x6a8be4(0xf3),'requesttime':_0x5e7d76[_0x6a8be4(0xd1)],'timestamp':Date[_0x6a8be4(0xc4)]()});if((((_0x1c3a32=this[_0x6a8be4(0xc8)]['devices'][_0x5e7d76[_0x6a8be4(0xcd)]])===null||_0x1c3a32===void 0x0?void 0x0:_0x1c3a32[_0x6a8be4(0xef)])||0x0)>0x0&&Date[_0x6a8be4(0xc4)]()-Math[_0x6a8be4(0xe7)](_0x5e7d76[_0x6a8be4(0xcc)])>this[_0x6a8be4(0xc8)][_0x6a8be4(0xbd)][_0x5e7d76['device']]['logintimeout'])throw new AnnError(ApiError_1['ApiError'][_0x6a8be4(0xdf)]);if(!this[_0x6a8be4(0xc8)][_0x6a8be4(0xbd)][_0x5e7d76['device']]||!this['config']['devices'][_0x5e7d76[_0x6a8be4(0xcd)]][_0x6a8be4(0xd6)]||!this[_0x6a8be4(0xc8)][_0x6a8be4(0xbd)][_0x5e7d76[_0x6a8be4(0xcd)]][_0x6a8be4(0xba)])throw new AnnError(ApiError_1['ApiError']['HEADERS_DEVICE']);if(_0x5e7d76[_0x6a8be4(0xc6)]&&_0x5e7d76[_0x6a8be4(0xba)]!=this[_0x6a8be4(0xba)](_0x5e7d76[_0x6a8be4(0xc6)],_0x5e7d76[_0x6a8be4(0xcd)],_0x5e7d76[_0x6a8be4(0xcc)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_CHECKCODE']);return _0x26dc44['push'](_0x6a8be4(0xed)+this[_0x6a8be4(0xc8)][_0x6a8be4(0xbd)][_0x5e7d76[_0x6a8be4(0xcd)]][_0x6a8be4(0xd6)]),(0x0,crypto_js_1['MD5'])(_0x26dc44[_0x6a8be4(0xcf)]()['join'](''))[_0x6a8be4(0xd8)]();}['checkcode'](_0x14507f,_0x2b4592,_0x1f0db2=Date[a10_0x8da995(0xc4)]()){var _0x313871=a10_0x8da995,_0x58c950,_0x453ac4,_0x2b21aa;if(!((_0x58c950=this[_0x313871(0xc8)])===null||_0x58c950===void 0x0?void 0x0:_0x58c950[_0x313871(0xbd)][_0x2b4592])||!((_0x2b21aa=(_0x453ac4=this['config'])===null||_0x453ac4===void 0x0?void 0x0:_0x453ac4[_0x313871(0xbd)][_0x2b4592])===null||_0x2b21aa===void 0x0?void 0x0:_0x2b21aa[_0x313871(0xba)]))throw new AnnError(ApiError_1[_0x313871(0xb8)][_0x313871(0xce)]);return(0x0,crypto_js_1[_0x313871(0xf1)])(''+_0x14507f+(0x0,crypto_js_1[_0x313871(0xf1)])(''+_0x1f0db2+(''+this[_0x313871(0xc8)]['devices'][_0x2b4592][_0x313871(0xba)]))[_0x313871(0xd8)]())[_0x313871(0xd8)]();}[a10_0x8da995(0xdb)](_0x44a675={}){var _0x5c1b59=a10_0x8da995;const _0x10813b=Object[_0x5c1b59(0xc7)](Object[_0x5c1b59(0xdd)](_0x44a675)[_0x5c1b59(0xe3)](_0x4d6478=>[_0x4d6478[0x0][_0x5c1b59(0xb6)](),_0x4d6478[0x1]]));if(!(_0x10813b===null||_0x10813b===void 0x0?void 0x0:_0x10813b['signature']))throw new AnnError(ApiError_1[_0x5c1b59(0xb8)]['HEADERS_LACK'],{'message':_0x5c1b59(0xbb)});if((_0x10813b===null||_0x10813b===void 0x0?void 0x0:_0x10813b[_0x5c1b59(0xbf)])!=this['getsign'](_0x10813b))throw new AnnError(ApiError_1[_0x5c1b59(0xb8)][_0x5c1b59(0xd7)],{'message':_0x5c1b59(0xbb)});return!![];}};function a10_0x18d9(_0x3fdf33,_0x3c5ad0){var _0x104469=a10_0x2a18();return a10_0x18d9=function(_0x29a6b1,_0xc412fd){_0x29a6b1=_0x29a6b1-0xb4;var _0x2a1886=_0x104469[_0x29a6b1];return _0x2a1886;},a10_0x18d9(_0x3fdf33,_0x3c5ad0);}exports[a10_0x8da995(0xc9)]=ApiService,__decorate([(0x0,core_1['Config'])(a10_0x8da995(0xe5)),__metadata(a10_0x8da995(0xc1),Object)],ApiService[a10_0x8da995(0xb7)],a10_0x8da995(0xc8),void 0x0),exports[a10_0x8da995(0xc9)]=ApiService=__decorate([(0x0,core_1[a10_0x8da995(0xf4)])(),(0x0,core_1[a10_0x8da995(0xea)])(core_1[a10_0x8da995(0xbe)]['Singleton'])],ApiService);
|