anncic-api 3.2.12 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x3f29(_0x45c0a5,_0xe6b961){var _0x334645=a0_0x584e();return a0_0x3f29=function(_0xda3a0b,_0x12a7c0){_0xda3a0b=_0xda3a0b-0xb0;var _0x584e35=_0x334645[_0xda3a0b];return _0x584e35;},a0_0x3f29(_0x45c0a5,_0xe6b961);}var a0_0x39540e=a0_0x3f29;(function(_0x1b67e9,_0x2f45fa){var _0xe5b80c=a0_0x3f29,_0x1a6074=_0x1b67e9();while(!![]){try{var _0x5d4d85=-parseInt(_0xe5b80c(0xb7))/0x1*(parseInt(_0xe5b80c(0xbf))/0x2)+-parseInt(_0xe5b80c(0xb9))/0x3*(-parseInt(_0xe5b80c(0xbe))/0x4)+-parseInt(_0xe5b80c(0xbb))/0x5+-parseInt(_0xe5b80c(0xba))/0x6*(-parseInt(_0xe5b80c(0xc7))/0x7)+parseInt(_0xe5b80c(0xc3))/0x8*(parseInt(_0xe5b80c(0xca))/0x9)+parseInt(_0xe5b80c(0xc8))/0xa*(parseInt(_0xe5b80c(0xc5))/0xb)+-parseInt(_0xe5b80c(0xb6))/0xc;if(_0x5d4d85===_0x2f45fa)break;else _0x1a6074['push'](_0x1a6074['shift']());}catch(_0x4d1401){_0x1a6074['push'](_0x1a6074['shift']());}}}(a0_0x584e,0xcb83f));var a0_0x12a7c0=(function(){var _0x332745=!![];return function(_0x5f1e48,_0xb3a0d3){var _0x423e64=_0x332745?function(){var _0x224861=a0_0x3f29;if(_0xb3a0d3){var _0x483f33=_0xb3a0d3[_0x224861(0xc6)](_0x5f1e48,arguments);return _0xb3a0d3=null,_0x483f33;}}:function(){};return _0x332745=![],_0x423e64;};}()),a0_0xda3a0b=a0_0x12a7c0(this,function(){var _0x1bd43a=a0_0x3f29;return a0_0xda3a0b[_0x1bd43a(0xb0)]()[_0x1bd43a(0xb4)](_0x1bd43a(0xc9))[_0x1bd43a(0xb0)]()[_0x1bd43a(0xb1)](a0_0xda3a0b)[_0x1bd43a(0xb4)](_0x1bd43a(0xc9));});a0_0xda3a0b();'use strict';function a0_0x584e(){var _0xd48763=['__esModule','dhauo1234420123gg3234901','default','160vIomXB','text','7447UIOnlx','apply','11942fANHrY','10460XVIYDX','(((.+)+)+)+$','185895tqNLEb','zhiulanuiy7892387985hnoi','toString','constructor','xml','/runtime/.upload','search','defineProperty','7525692QKvkiH','1009637dtKXma','form','9tMUjld','3018fcfwVp','3850105meUnBI','20mb','appDir','1681384SgxLig','2bOWdDY'];a0_0x584e=function(){return _0xd48763;};return a0_0x584e();}Object[a0_0x39540e(0xb5)](exports,a0_0x39540e(0xc0),{'value':!![]}),exports[a0_0x39540e(0xc2)]=_0x30cf75=>{var _0xd286b=a0_0x39540e;return{'apitest':!![],'keys':_0x30cf75['name'],'anncicapi':{'requestKey':'_token','password':_0xd286b(0xcb),'devices':{'DEFAULT':{'secret':_0xd286b(0xc1),'checkcode':_0xd286b(0xc1)}}},'bodyParser':{'enableTypes':['json',_0xd286b(0xb8),_0xd286b(0xc4),_0xd286b(0xb2)],'formLimit':_0xd286b(0xbc),'jsonLimit':_0xd286b(0xbc),'textLimit':_0xd286b(0xbc),'xmlLimit':_0xd286b(0xbc),'enable':!![]},'upload':{'tmpdir':_0x30cf75[_0xd286b(0xbd)]+_0xd286b(0xb3),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x5f0445=a1_0x14a9;(function(_0x2bd28e,_0x4d3382){var _0x3447c0=a1_0x14a9,_0x2343c2=_0x2bd28e();while(!![]){try{var _0x24ac55=parseInt(_0x3447c0(0x82))/0x1+parseInt(_0x3447c0(0x83))/0x2+parseInt(_0x3447c0(0x7e))/0x3*(parseInt(_0x3447c0(0x7d))/0x4)+parseInt(_0x3447c0(0x84))/0x5*(-parseInt(_0x3447c0(0x7f))/0x6)+parseInt(_0x3447c0(0x87))/0x7+parseInt(_0x3447c0(0x7c))/0x8+-parseInt(_0x3447c0(0x85))/0x9;if(_0x24ac55===_0x4d3382)break;else _0x2343c2['push'](_0x2343c2['shift']());}catch(_0x549673){_0x2343c2['push'](_0x2343c2['shift']());}}}(a1_0x5e8d,0x26571));function a1_0x5e8d(){var _0xa1354=['759934prEEab','(((.+)+)+)+$','defineProperty','default','1201016STOjRn','764hoUKnW','933yInnFX','18FgboQO','__esModule','toString','293535dNdhrk','195666ALDGqE','241960gRKAxA','3665169MTnURN','apply'];a1_0x5e8d=function(){return _0xa1354;};return a1_0x5e8d();}var a1_0x56cb73=(function(){var _0x43d72b=!![];return function(_0x1ef456,_0x1d4b3e){var _0x8b064c=_0x43d72b?function(){var _0x12e92a=a1_0x14a9;if(_0x1d4b3e){var _0x297fdc=_0x1d4b3e[_0x12e92a(0x86)](_0x1ef456,arguments);return _0x1d4b3e=null,_0x297fdc;}}:function(){};return _0x43d72b=![],_0x8b064c;};}()),a1_0x652a9a=a1_0x56cb73(this,function(){var _0x2954fc=a1_0x14a9;return a1_0x652a9a[_0x2954fc(0x81)]()['search'](_0x2954fc(0x88))[_0x2954fc(0x81)]()['constructor'](a1_0x652a9a)['search'](_0x2954fc(0x88));});function a1_0x14a9(_0x57e60f,_0x201ece){var _0x3c160e=a1_0x5e8d();return a1_0x14a9=function(_0x652a9a,_0x56cb73){_0x652a9a=_0x652a9a-0x7b;var _0x5e8dbf=_0x3c160e[_0x652a9a];return _0x5e8dbf;},a1_0x14a9(_0x57e60f,_0x201ece);}a1_0x652a9a();'use strict';Object[a1_0x5f0445(0x89)](exports,a1_0x5f0445(0x80),{'value':!![]}),exports[a1_0x5f0445(0x7b)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x89b914=a2_0x463a;(function(_0x3fc803,_0x4398fb){const _0x28e45f=a2_0x463a,_0xe905ce=_0x3fc803();while(!![]){try{const _0x4c0fc2=-parseInt(_0x28e45f(0x269))/0x1*(-parseInt(_0x28e45f(0x22f))/0x2)+-parseInt(_0x28e45f(0x1f6))/0x3*(parseInt(_0x28e45f(0x258))/0x4)+parseInt(_0x28e45f(0x244))/0x5+parseInt(_0x28e45f(0x22b))/0x6*(-parseInt(_0x28e45f(0x206))/0x7)+-parseInt(_0x28e45f(0x276))/0x8+parseInt(_0x28e45f(0x1f4))/0x9+parseInt(_0x28e45f(0x26f))/0xa*(parseInt(_0x28e45f(0x25f))/0xb);if(_0x4c0fc2===_0x4398fb)break;else _0xe905ce['push'](_0xe905ce['shift']());}catch(_0x3e2d25){_0xe905ce['push'](_0xe905ce['shift']());}}}(a2_0x3e3c,0x3d11a));const a2_0x18c99d=(function(){let _0x2513d6=!![];return function(_0x2bd60b,_0x136eb7){const _0x5d143e=_0x2513d6?function(){const _0x142ee1=a2_0x463a;if(_0x136eb7){const _0x136735=_0x136eb7[_0x142ee1(0x242)](_0x2bd60b,arguments);return _0x136eb7=null,_0x136735;}}:function(){};return _0x2513d6=![],_0x5d143e;};}()),a2_0x312557=a2_0x18c99d(this,function(){const _0xf80df8=a2_0x463a;return a2_0x312557[_0xf80df8(0x264)]()[_0xf80df8(0x1ee)]('(((.+)+)+)+$')['toString']()[_0xf80df8(0x21c)](a2_0x312557)['search']('(((.+)+)+)+$');});a2_0x312557();function a2_0x3e3c(){const _0x56d70f=['@midwayjs/upload','_UNKNOW_','apply','handlerActionRoute','1392840paoRvD','@midwayjs/core','checksign','existsSync','MidwayConfigService','intercept','req','headers','mkdirSync','@midwayjs/static-file','@anncic-api/event','statSync','body','string','midwayLogger','anncicapi','getOwnPropertyDescriptor','_matchedRoute','getClassMetadata','INTERCEPT_KEY','10556HHTeOG','handler','anncic-apihelper','443','defineProperties','/apps','https://','77DfdZfc','anncic-api','match','DEFAULT','/runtime/apps-','toString','bodyXml','split','context','upload','216EQpdRX','getApplications','defaultsDeep','length','koa-send','apimit','55870RPfAiz','HEADERS_SIGNATURE','@anncic-api/typeorm','ApiService','CustomConfiguration','dir','Types','2212408jnqQxZ','./exception/ApiError','search','requestKey','input','key','assign','function','285984dYbjvW','-log','51WrCUOO','environment','useMiddleware','isNull','method','Inject','hosturl','parse','getConfiguration','attachment','ApiError','__esModule','registerMethodHandler','getAppDir','isClass','./config/config.default','178059vBESHV','log','staticFile','InterceptTargetTmp','object','/runtime','decorate','connection','@midwayjs/cross-domain','config','requestContext','application','MidwayDecoratorService','isDevelopmentEnvironment','addObject','hanlderApplications','query','http://','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','filterConfig','loggerConfig','/apps/','constructor','args','design:type','isFunction','@midwayjs/koa','isArray','./types/action','device','target','REQUEST_OBJ_CTX_KEY','keys','request','getAsync','decorator','dirs','6UGezfr','getBaseDir','isString','encrypted','2292ednZAU','Anncic-api\x20static-file\x20:\x20mkdir\x20','clients','./service/ApiService','default','startsWith','defineProperty','forEach','host','toLowerCase','metadata','tmpdir','koa','proceed','app','devices','prototype'];a2_0x3e3c=function(){return _0x56d70f;};return a2_0x3e3c();}'use strict';var __decorate=this&&this['__decorate']||function(_0x5a6be5,_0x18e8b1,_0x5ccba3,_0xde59fe){const _0x1f41a8=a2_0x463a;var _0x52c2e6=arguments[_0x1f41a8(0x26c)],_0x3679ed=_0x52c2e6<0x3?_0x18e8b1:_0xde59fe===null?_0xde59fe=Object[_0x1f41a8(0x254)](_0x18e8b1,_0x5ccba3):_0xde59fe,_0x2f4e63;if(typeof Reflect===_0x1f41a8(0x20a)&&typeof Reflect[_0x1f41a8(0x20c)]===_0x1f41a8(0x1f3))_0x3679ed=Reflect[_0x1f41a8(0x20c)](_0x5a6be5,_0x18e8b1,_0x5ccba3,_0xde59fe);else{for(var _0x5db558=_0x5a6be5[_0x1f41a8(0x26c)]-0x1;_0x5db558>=0x0;_0x5db558--)if(_0x2f4e63=_0x5a6be5[_0x5db558])_0x3679ed=(_0x52c2e6<0x3?_0x2f4e63(_0x3679ed):_0x52c2e6>0x3?_0x2f4e63(_0x18e8b1,_0x5ccba3,_0x3679ed):_0x2f4e63(_0x18e8b1,_0x5ccba3))||_0x3679ed;}return _0x52c2e6>0x3&&_0x3679ed&&Object[_0x1f41a8(0x235)](_0x18e8b1,_0x5ccba3,_0x3679ed),_0x3679ed;},__metadata=this&&this['__metadata']||function(_0x19796a,_0x56cf57){const _0x1d258e=a2_0x463a;if(typeof Reflect===_0x1d258e(0x20a)&&typeof Reflect[_0x1d258e(0x239)]===_0x1d258e(0x1f3))return Reflect['metadata'](_0x19796a,_0x56cf57);};Object['defineProperty'](exports,a2_0x89b914(0x201),{'value':!![]}),exports[a2_0x89b914(0x273)]=void 0x0;function a2_0x463a(_0x2f1a4c,_0x26112e){const _0x3c7bd0=a2_0x3e3c();return a2_0x463a=function(_0x312557,_0x18c99d){_0x312557=_0x312557-0x1ee;let _0x3e3c48=_0x3c7bd0[_0x312557];return _0x3e3c48;},a2_0x463a(_0x2f1a4c,_0x26112e);}const core_1=require(a2_0x89b914(0x245)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x89b914(0x277)),ApiService_1=require(a2_0x89b914(0x232)),action_1=require(a2_0x89b914(0x222)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x89b914(0x26d)),koa=require(a2_0x89b914(0x220)),upload=require(a2_0x89b914(0x240)),staticFile=require(a2_0x89b914(0x24d)),crossDomain=require(a2_0x89b914(0x20e)),ConfigDefault=require(a2_0x89b914(0x205)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require('@anncic-api/cache'),anncicEvent=require(a2_0x89b914(0x24e)),anncicTypeorm=require(a2_0x89b914(0x271)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x89b914(0x25a));let CustomConfiguration=exports[a2_0x89b914(0x273)]=class CustomConfiguration{async['onReady'](){const _0x350711=a2_0x89b914;await this['filterConfig'](),await this[_0x350711(0x21a)](),await this['handlerActionRoute'](),await this[_0x350711(0x215)]();}async[a2_0x89b914(0x243)](){const _0x2fda53=a2_0x89b914,_0x31da64=this[_0x2fda53(0x20f)]['getConfiguration'](),_0x3a6e46=(0x0,core_1[_0x2fda53(0x256)])(intercept_1[_0x2fda53(0x257)],intercept_1[_0x2fda53(0x209)])||{};this[_0x2fda53(0x229)][_0x2fda53(0x202)](action_1['ACTION_ROUTE_KEY'],_0x2ad86d=>{const _0xb406a8=_0x2fda53,_0x1d6cd4=_0x2ad86d[_0xb406a8(0x239)];return{'before':async _0xe102f0=>{const _0x4131fc=_0xb406a8;var _0xba7521,_0x4afe66,_0x5f167f,_0xb7f4a8;const _0x358d34=(_0xba7521=_0xe102f0===null||_0xe102f0===void 0x0?void 0x0:_0xe102f0[_0x4131fc(0x224)])===null||_0xba7521===void 0x0?void 0x0:_0xba7521[core_2[_0x4131fc(0x225)]],_0x18a66e=lodash[_0x4131fc(0x26b)]({},_0x358d34['request'][_0x4131fc(0x250)]||_0x358d34[_0x4131fc(0x227)][((_0x4afe66=_0x31da64===null||_0x31da64===void 0x0?void 0x0:_0x31da64[_0x4131fc(0x265)])===null||_0x4afe66===void 0x0?void 0x0:_0x4afe66[_0x4131fc(0x1f1)])||_0x4131fc(0x250)]||{},_0x358d34[_0x4131fc(0x227)][_0x4131fc(0x216)]||{});if(_0x358d34&&(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x4131fc(0x26e)]))try{const _0x89222=((_0x5f167f=_0x31da64===null||_0x31da64===void 0x0?void 0x0:_0x31da64[_0x4131fc(0x253)])===null||_0x5f167f===void 0x0?void 0x0:_0x5f167f[_0x4131fc(0x1ef)])&&typeof(_0x18a66e===null||_0x18a66e===void 0x0?void 0x0:_0x18a66e[_0x31da64['anncicapi'][_0x4131fc(0x1ef)]])=='string'?JSON[_0x4131fc(0x1fd)](base64_decode(_0x18a66e[_0x31da64[_0x4131fc(0x253)][_0x4131fc(0x1ef)]])||'{}')||{}:((_0xb7f4a8=_0x358d34===null||_0x358d34===void 0x0?void 0x0:_0x358d34[_0x4131fc(0x227)])===null||_0xb7f4a8===void 0x0?void 0x0:_0xb7f4a8['headers'])||{};if(!this[_0x4131fc(0x272)][_0x4131fc(0x246)](_0x89222))throw new AnnError(ApiError_1[_0x4131fc(0x200)][_0x4131fc(0x270)]);}catch(_0x5772b6){if(_0x5772b6 instanceof AnnError)throw _0x5772b6;else throw new AnnError(ApiError_1[_0x4131fc(0x200)][_0x4131fc(0x241)]);}},'around':async _0xe490b2=>{const _0x5701eb=_0xb406a8;var _0x2ccee4,_0x513046,_0x48210b;const _0x2484a1=(_0x2ccee4=_0xe490b2===null||_0xe490b2===void 0x0?void 0x0:_0xe490b2['target'])===null||_0x2ccee4===void 0x0?void 0x0:_0x2ccee4[core_2[_0x5701eb(0x225)]];if(_0x2484a1&&(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x5701eb(0x26e)])&&((_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4[_0x5701eb(0x249)])||typeof(_0x1d6cd4===null||_0x1d6cd4===void 0x0?void 0x0:_0x1d6cd4['intercept'])=='undefined')){if(((_0x513046=_0x2484a1[_0x5701eb(0x24b)])===null||_0x513046===void 0x0?void 0x0:_0x513046[_0x5701eb(0x223)])&&((_0x48210b=_0x3a6e46===null||_0x3a6e46===void 0x0?void 0x0:_0x3a6e46[_0x2484a1[_0x5701eb(0x24b)][_0x5701eb(0x223)]])===null||_0x48210b===void 0x0?void 0x0:_0x48210b['length'])>0x0)for(const _0x53a4f3 of _0x3a6e46[_0x2484a1[_0x5701eb(0x24b)][_0x5701eb(0x223)]]||[]){if(core_1['Types'][_0x5701eb(0x204)](_0x53a4f3)){const _0x38b56c=await _0x2484a1[_0x5701eb(0x210)][_0x5701eb(0x228)](_0x53a4f3);typeof(_0x38b56c===null||_0x38b56c===void 0x0?void 0x0:_0x38b56c[_0x5701eb(0x261)])==_0x5701eb(0x1f3)?await _0x38b56c[_0x5701eb(0x261)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1['method'][_0x5701eb(0x238)]()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4)&&await _0x38b56c[_0x5701eb(0x259)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1[_0x5701eb(0x1fa)]['toLowerCase']()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4):await _0x38b56c[_0x5701eb(0x259)](_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])==_0x5701eb(0x251)&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1['_matchedRoute'])?_0x2484a1[_0x5701eb(0x1fa)][_0x5701eb(0x238)]()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)]):undefined,_0x1d6cd4);}else core_1[_0x5701eb(0x275)][_0x5701eb(0x21f)](_0x53a4f3)&&await _0x53a4f3(_0x2484a1,typeof(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x1fa)])=='string'&&(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1[_0x5701eb(0x255)])?_0x2484a1[_0x5701eb(0x1fa)]['toLowerCase']()+'@'+(_0x2484a1===null||_0x2484a1===void 0x0?void 0x0:_0x2484a1['_matchedRoute']):undefined,_0x1d6cd4);}}return await _0xe490b2[_0x5701eb(0x23c)](..._0xe490b2[_0x5701eb(0x21d)]);},'afterThrow':(_0x26261f,_0x27c908)=>{throw _0x27c908;}};});}async[a2_0x89b914(0x215)](){const _0x25b52d=a2_0x89b914,_0x287c91=this['config'][_0x25b52d(0x1fe)]();this['application'][_0x25b52d(0x26a)]([_0x25b52d(0x23b)])[_0x25b52d(0x236)](_0x1c4f6f=>{const _0x3329f8=_0x25b52d;typeof _0x1c4f6f[_0x3329f8(0x1f8)]==_0x3329f8(0x1f3)&&_0x1c4f6f[_0x3329f8(0x1f8)](async(_0x18c618,_0x1f81c0)=>{const _0x322b74=_0x3329f8;var _0x44c359,_0x2d0115,_0x48ea75,_0x47b29a;if((_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618['host'])&&!_0x18c618[_0x322b74(0x237)][_0x322b74(0x234)]('http')){let _0x546c86=_0x18c618[_0x322b74(0x237)][_0x322b74(0x266)](':');['80',_0x322b74(0x25b)]['includes'](_0x546c86===null||_0x546c86===void 0x0?void 0x0:_0x546c86[0x1])?_0x18c618['hosturl']=''+(!!((_0x2d0115=(_0x44c359=_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618[_0x322b74(0x24a)])===null||_0x44c359===void 0x0?void 0x0:_0x44c359['connection'])===null||_0x2d0115===void 0x0?void 0x0:_0x2d0115['encrypted'])||(_0x546c86===null||_0x546c86===void 0x0?void 0x0:_0x546c86[0x1])==_0x322b74(0x25b)?_0x322b74(0x25e):_0x322b74(0x217))+_0x546c86[0x0]:_0x18c618[_0x322b74(0x1fc)]=''+(!!((_0x47b29a=(_0x48ea75=_0x18c618===null||_0x18c618===void 0x0?void 0x0:_0x18c618[_0x322b74(0x24a)])===null||_0x48ea75===void 0x0?void 0x0:_0x48ea75[_0x322b74(0x20d)])===null||_0x47b29a===void 0x0?void 0x0:_0x47b29a[_0x322b74(0x22e)])?_0x322b74(0x25e):_0x322b74(0x217))+_0x18c618['host'];}await _0x1f81c0();}),(_0x1c4f6f===null||_0x1c4f6f===void 0x0?void 0x0:_0x1c4f6f[_0x3329f8(0x267)])&&Object[_0x3329f8(0x25c)](_0x1c4f6f['context'],{'ok':{'value':function(_0x2e4de7,_0x315da5,_0xd496a5=0x0){return{'code':_0xd496a5,'data':_0x2e4de7,'extra':_0x315da5};}},'input':{'value':function(_0x56702d,_0x137b6a){const _0x164303=_0x3329f8;var _0x4e5937;const _0x1818ec=lodash['defaultsDeep']({},this[_0x164303(0x227)][_0x164303(0x250)]||this[_0x164303(0x227)][((_0x4e5937=_0x287c91===null||_0x287c91===void 0x0?void 0x0:_0x287c91[_0x164303(0x265)])===null||_0x4e5937===void 0x0?void 0x0:_0x4e5937[_0x164303(0x1f1)])||_0x164303(0x250)]||{},this['request']['query']||{});return _0x56702d?lodash['get'](_0x1818ec,_0x56702d,_0x137b6a):_0x1818ec;}},'when':{'value':async function(_0x1507fa,_0x2ccd71){const _0x336582=_0x3329f8,_0x246373=this[_0x336582(0x1f0)](_0x1507fa,null);if(!lodash[_0x336582(0x1f9)](_0x246373))return await _0x2ccd71(_0x246373);}},'only':{'value':function(_0x59400a){const _0x55ab67=_0x3329f8,_0x4ec137={};for(let _0x2cffd2=0x0;_0x2cffd2<_0x59400a['length'];_0x2cffd2++){lodash[_0x55ab67(0x221)](_0x59400a[_0x2cffd2])&&_0x59400a[_0x2cffd2][_0x55ab67(0x26c)]>0x0&&lodash[_0x55ab67(0x22d)](_0x59400a[_0x2cffd2][0x0])&&(_0x4ec137[_0x59400a[_0x2cffd2][0x0]]=this[_0x55ab67(0x1f0)](_0x59400a[_0x2cffd2][0x0],_0x59400a[_0x2cffd2][_0x55ab67(0x26c)]>0x1?_0x59400a[_0x2cffd2][0x1]:null));}return _0x4ec137;}},'koasend':{'value':function(_0x347889,_0x1757ac){const _0x581cf6=_0x3329f8;if(_0x347889&&!fs[_0x581cf6(0x247)](_0x347889)&&!fs[_0x581cf6(0x247)](this[_0x581cf6(0x23d)][_0x581cf6(0x203)]()+'/'+_0x347889))return'文件不存在';return _0x347889=fs[_0x581cf6(0x247)](_0x347889)?_0x347889:this['app']['getAppDir']()+'/'+_0x347889,this[_0x581cf6(0x1ff)](_0x1757ac||_0x347889),koasend(this,_0x347889);}}});});}async[a2_0x89b914(0x21a)](){const _0x38cd48=a2_0x89b914;var _0xad8f22,_0x1f0a67;if(fs[_0x38cd48(0x247)](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+'/apps')&&fs[_0x38cd48(0x24f)](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+_0x38cd48(0x25d))['isDirectory']()){const _0x1b29c2=this[_0x38cd48(0x20f)][_0x38cd48(0x1fe)](),_0xbc5e75=((_0xad8f22=_0x1b29c2===null||_0x1b29c2===void 0x0?void 0x0:_0x1b29c2[_0x38cd48(0x252)])===null||_0xad8f22===void 0x0?void 0x0:_0xad8f22[_0x38cd48(0x231)])||{};for(const _0x213d20 of fs['readdirSync'](this[_0x38cd48(0x23d)][_0x38cd48(0x22c)]()+_0x38cd48(0x25d))){if(!fs[_0x38cd48(0x24f)](this['app'][_0x38cd48(0x22c)]()+_0x38cd48(0x21b)+_0x213d20)['isDirectory']())continue;if(_0xbc5e75===null||_0xbc5e75===void 0x0?void 0x0:_0xbc5e75[_0x213d20])continue;_0xbc5e75[_0x213d20]=Object[_0x38cd48(0x1f2)]({},((_0x1f0a67=_0x1b29c2===null||_0x1b29c2===void 0x0?void 0x0:_0x1b29c2[_0x38cd48(0x252)])===null||_0x1f0a67===void 0x0?void 0x0:_0x1f0a67[_0x38cd48(0x233)])||{'maxSize':'1m','dir':this[_0x38cd48(0x23d)][_0x38cd48(0x203)]()+_0x38cd48(0x20b)},{'enableJSON':!![],'enableConsole':this['environment'][_0x38cd48(0x213)](),'fileLogName':_0x213d20+'.log','dir':this[_0x38cd48(0x23d)][_0x38cd48(0x203)]()+_0x38cd48(0x263)+_0x213d20+_0x38cd48(0x1f5)});}Object['keys'](_0xbc5e75)['length']>0x0&&(!_0x1b29c2[_0x38cd48(0x252)]&&(_0x1b29c2[_0x38cd48(0x252)]={'default':{'maxSize':'1m','dir':this[_0x38cd48(0x23d)]['getAppDir']()+_0x38cd48(0x20b)}}),_0x1b29c2[_0x38cd48(0x252)][_0x38cd48(0x231)]=_0xbc5e75),this[_0x38cd48(0x20f)][_0x38cd48(0x214)](_0x1b29c2);}}async[a2_0x89b914(0x219)](){const _0x26fb57=a2_0x89b914;var _0x5b9578,_0xf04e1c,_0x25fbf9,_0x3c9592,_0x2e0d93,_0x2e144b;const _0x58d63e=this[_0x26fb57(0x20f)][_0x26fb57(0x1fe)]();((_0xf04e1c=(_0x5b9578=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e['anncicapi'])===null||_0x5b9578===void 0x0?void 0x0:_0x5b9578[_0x26fb57(0x23e)])===null||_0xf04e1c===void 0x0?void 0x0:_0xf04e1c[_0x26fb57(0x262)])&&Object[_0x26fb57(0x226)](_0x58d63e['anncicapi']['devices'])[_0x26fb57(0x26c)]>0x1&&delete _0x58d63e['anncicapi'][_0x26fb57(0x23e)][_0x26fb57(0x262)];if((_0x25fbf9=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e[_0x26fb57(0x208)])===null||_0x25fbf9===void 0x0?void 0x0:_0x25fbf9['dirs'])for(const _0x5d85fb in _0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)]){((_0x3c9592=_0x58d63e['staticFile'][_0x26fb57(0x22a)][_0x5d85fb])===null||_0x3c9592===void 0x0?void 0x0:_0x3c9592[_0x26fb57(0x274)])&&typeof((_0x2e0d93=_0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)][_0x5d85fb])===null||_0x2e0d93===void 0x0?void 0x0:_0x2e0d93[_0x26fb57(0x274)])==_0x26fb57(0x251)&&!fs[_0x26fb57(0x247)](_0x58d63e['staticFile']['dirs'][_0x5d85fb]['dir'])&&(fs[_0x26fb57(0x24c)](_0x58d63e['staticFile']['dirs'][_0x5d85fb][_0x26fb57(0x274)],{'recursive':!![]}),console[_0x26fb57(0x207)](_0x26fb57(0x230)+_0x58d63e[_0x26fb57(0x208)][_0x26fb57(0x22a)][_0x5d85fb][_0x26fb57(0x274)]));}((_0x2e144b=_0x58d63e===null||_0x58d63e===void 0x0?void 0x0:_0x58d63e[_0x26fb57(0x268)])===null||_0x2e144b===void 0x0?void 0x0:_0x2e144b[_0x26fb57(0x23a)])&&!fs[_0x26fb57(0x247)](_0x58d63e[_0x26fb57(0x268)][_0x26fb57(0x23a)])&&(fs[_0x26fb57(0x24c)](_0x58d63e['upload']['tmpdir'],{'recursive':!![]}),console[_0x26fb57(0x207)](_0x26fb57(0x218)+_0x58d63e[_0x26fb57(0x268)][_0x26fb57(0x23a)])),this[_0x26fb57(0x20f)][_0x26fb57(0x214)](_0x58d63e);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x89b914(0x21e),Object)],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x23d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2[a2_0x89b914(0x248)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x20f),void 0x0),__decorate([(0x0,core_1[a2_0x89b914(0x1fb)])(),__metadata('design:type',core_2[a2_0x89b914(0x212)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x229),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2['MidwayApplicationManager'])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x211),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x89b914(0x21e),core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],a2_0x89b914(0x1f7),void 0x0),__decorate([(0x0,core_1[a2_0x89b914(0x1fb)])(),__metadata('design:type',ApiService_1[a2_0x89b914(0x272)])],CustomConfiguration[a2_0x89b914(0x23f)],a2_0x89b914(0x272),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x89b914(0x260),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x54d456=a2_0x2dd8;function a2_0x2dd8(_0x3b7377,_0x2c6a89){const _0xe8d93f=a2_0x1009();return a2_0x2dd8=function(_0x1e7168,_0x24c606){_0x1e7168=_0x1e7168-0xc0;let _0x100902=_0xe8d93f[_0x1e7168];return _0x100902;},a2_0x2dd8(_0x3b7377,_0x2c6a89);}function a2_0x1009(){const _0x349924=['object','531480XZFxkf','handler','function','tmpdir','12737190aaceTy','@midwayjs/cross-domain','mkdirSync','apimit','./service/ApiService','target','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','headers','./config/config.default','DEFAULT','upload','log','defaultsDeep','loggerConfig','anncic-api','statSync','koa','@anncic-api/validator','isDirectory','attachment','assign','proceed','addObject','connection','device','body','@anncic-api/cache','existsSync','@anncic-api/typeorm','(((.+)+)+)+$','constructor','readdirSync','https://','context','defineProperty','req','match','Inject','isString','split','search','bodyXml','input','./types/action','8319510vuIqvN','midwayLogger','ApiService','文件不存在','App','MidwayApplicationManager','2qKiEkt','filterConfig','handlerActionRoute','Types','1460021bDWYTD','getClassMetadata','dir','includes','config','requestKey','onReady','clients','args','getConfiguration','length','/apps','decorator','key','undefined','__metadata','staticFile','getOwnPropertyDescriptor','application','dirs','startsWith','/runtime/apps-','toLowerCase','InterceptTargetTmp','method','MidwayConfigService','./types/intercept','metadata','string','keys','Anncic-api\x20static-file\x20:\x20mkdir\x20','-log','http://','prototype','toString','default','http','encrypted','devices','INTERCEPT_KEY','getAppDir','@midwayjs/static-file','HEADERS_SIGNATURE','isNull','parse','anncic-apihelper','hosturl','host','getAsync','koa-send','request','MidwayEnvironmentService','anncicapi','requestContext','10298771ZsztcE','/apps/','getBaseDir','checksign','design:type','@midwayjs/core','__esModule','773628wqpnQV','isClass','__decorate','./exception/ApiError','isFunction','app','getApplications','query','9xJnOxr','intercept','REQUEST_OBJ_CTX_KEY','useMiddleware','_matchedRoute','18TsqfQh','6398180OFsJlg','CustomConfiguration','apply','@anncic-api/event','.log','environment','443','Configuration','hanlderApplications','ACTION_ROUTE_KEY','decorate','isDevelopmentEnvironment'];a2_0x1009=function(){return _0x349924;};return a2_0x1009();}(function(_0x5d7707,_0x3ff972){const _0x23e57c=a2_0x2dd8,_0x3cd90a=_0x5d7707();while(!![]){try{const _0x113e53=parseInt(_0x23e57c(0x132))/0x1*(-parseInt(_0x23e57c(0x12e))/0x2)+-parseInt(_0x23e57c(0xe5))/0x3*(-parseInt(_0x23e57c(0xdd))/0x4)+parseInt(_0x23e57c(0xeb))/0x5+parseInt(_0x23e57c(0x128))/0x6+parseInt(_0x23e57c(0xd6))/0x7+parseInt(_0x23e57c(0xf8))/0x8+parseInt(_0x23e57c(0xea))/0x9*(-parseInt(_0x23e57c(0xfc))/0xa);if(_0x113e53===_0x3ff972)break;else _0x3cd90a['push'](_0x3cd90a['shift']());}catch(_0x223612){_0x3cd90a['push'](_0x3cd90a['shift']());}}}(a2_0x1009,0xbd9df));const a2_0x24c606=(function(){let _0x4b3f34=!![];return function(_0x3a89cc,_0x1c5ec8){const _0x5dfa01=_0x4b3f34?function(){const _0x3a5a1d=a2_0x2dd8;if(_0x1c5ec8){const _0x2c8e64=_0x1c5ec8[_0x3a5a1d(0xed)](_0x3a89cc,arguments);return _0x1c5ec8=null,_0x2c8e64;}}:function(){};return _0x4b3f34=![],_0x5dfa01;};}()),a2_0x1e7168=a2_0x24c606(this,function(){const _0x2bc334=a2_0x2dd8;return a2_0x1e7168[_0x2bc334(0xc2)]()[_0x2bc334(0x124)](_0x2bc334(0x119))[_0x2bc334(0xc2)]()[_0x2bc334(0x11a)](a2_0x1e7168)['search'](_0x2bc334(0x119));});a2_0x1e7168();'use strict';var __decorate=this&&this[a2_0x54d456(0xdf)]||function(_0x2c0c4b,_0x4bcee9,_0x4d701a,_0xbfbe11){const _0x5c3cb4=a2_0x54d456;var _0x3f5fec=arguments[_0x5c3cb4(0x13c)],_0x46cfa4=_0x3f5fec<0x3?_0x4bcee9:_0xbfbe11===null?_0xbfbe11=Object[_0x5c3cb4(0x143)](_0x4bcee9,_0x4d701a):_0xbfbe11,_0x4c22b1;if(typeof Reflect===_0x5c3cb4(0xf7)&&typeof Reflect['decorate']===_0x5c3cb4(0xfa))_0x46cfa4=Reflect[_0x5c3cb4(0xf5)](_0x2c0c4b,_0x4bcee9,_0x4d701a,_0xbfbe11);else{for(var _0x5f67a1=_0x2c0c4b['length']-0x1;_0x5f67a1>=0x0;_0x5f67a1--)if(_0x4c22b1=_0x2c0c4b[_0x5f67a1])_0x46cfa4=(_0x3f5fec<0x3?_0x4c22b1(_0x46cfa4):_0x3f5fec>0x3?_0x4c22b1(_0x4bcee9,_0x4d701a,_0x46cfa4):_0x4c22b1(_0x4bcee9,_0x4d701a))||_0x46cfa4;}return _0x3f5fec>0x3&&_0x46cfa4&&Object[_0x5c3cb4(0x11e)](_0x4bcee9,_0x4d701a,_0x46cfa4),_0x46cfa4;},__metadata=this&&this[a2_0x54d456(0x141)]||function(_0x51ee71,_0x212ec4){const _0x3262ce=a2_0x54d456;if(typeof Reflect===_0x3262ce(0xf7)&&typeof Reflect[_0x3262ce(0x14d)]===_0x3262ce(0xfa))return Reflect[_0x3262ce(0x14d)](_0x51ee71,_0x212ec4);};Object[a2_0x54d456(0x11e)](exports,a2_0x54d456(0xdc),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x54d456(0xdb)),core_2=require(a2_0x54d456(0xdb)),ApiError_1=require(a2_0x54d456(0xe0)),ApiService_1=require(a2_0x54d456(0x100)),action_1=require(a2_0x54d456(0x127)),intercept_1=require(a2_0x54d456(0x14c)),fs=require('fs'),koasend=require(a2_0x54d456(0xd1)),koa=require('@midwayjs/koa'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x54d456(0xc9)),crossDomain=require(a2_0x54d456(0xfd)),ConfigDefault=require(a2_0x54d456(0x104)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x54d456(0x116)),anncicEvent=require(a2_0x54d456(0xee)),anncicTypeorm=require(a2_0x54d456(0x118)),anncicValidator=require(a2_0x54d456(0x10d)),anncicHelper=require(a2_0x54d456(0xcd));let CustomConfiguration=exports[a2_0x54d456(0xec)]=class CustomConfiguration{async[a2_0x54d456(0x138)](){const _0x182e6d=a2_0x54d456;await this['filterConfig'](),await this[_0x182e6d(0x109)](),await this[_0x182e6d(0x130)](),await this[_0x182e6d(0xf3)]();}async['handlerActionRoute'](){const _0x13ec65=a2_0x54d456,_0x53c548=this[_0x13ec65(0x136)]['getConfiguration'](),_0x20deca=(0x0,core_1[_0x13ec65(0x133)])(intercept_1[_0x13ec65(0xc7)],intercept_1[_0x13ec65(0x149)])||{};this[_0x13ec65(0x13e)]['registerMethodHandler'](action_1[_0x13ec65(0xf4)],_0x592812=>{const _0xd3b019=_0x13ec65,_0x541f1a=_0x592812[_0xd3b019(0x14d)];return{'before':async _0x4335bd=>{const _0x44204f=_0xd3b019;var _0x5d4f8e,_0x2ba640,_0x1251d9,_0x5b9967;const _0x247afd=(_0x5d4f8e=_0x4335bd===null||_0x4335bd===void 0x0?void 0x0:_0x4335bd['target'])===null||_0x5d4f8e===void 0x0?void 0x0:_0x5d4f8e[core_2[_0x44204f(0xe7)]],_0xd2d326=lodash[_0x44204f(0x108)]({},_0x247afd['request'][_0x44204f(0x115)]||_0x247afd[_0x44204f(0xd2)][((_0x2ba640=_0x53c548===null||_0x53c548===void 0x0?void 0x0:_0x53c548[_0x44204f(0x125)])===null||_0x2ba640===void 0x0?void 0x0:_0x2ba640[_0x44204f(0x13f)])||'body']||{},_0x247afd[_0x44204f(0xd2)][_0x44204f(0xe4)]||{});if(_0x247afd&&(_0x541f1a===null||_0x541f1a===void 0x0?void 0x0:_0x541f1a[_0x44204f(0xff)]))try{const _0x59db56=((_0x1251d9=_0x53c548===null||_0x53c548===void 0x0?void 0x0:_0x53c548[_0x44204f(0xd4)])===null||_0x1251d9===void 0x0?void 0x0:_0x1251d9[_0x44204f(0x137)])&&typeof(_0xd2d326===null||_0xd2d326===void 0x0?void 0x0:_0xd2d326[_0x53c548[_0x44204f(0xd4)][_0x44204f(0x137)]])==_0x44204f(0x14e)?JSON[_0x44204f(0xcc)](base64_decode(_0xd2d326[_0x53c548[_0x44204f(0xd4)][_0x44204f(0x137)]])||'{}')||{}:((_0x5b9967=_0x247afd===null||_0x247afd===void 0x0?void 0x0:_0x247afd[_0x44204f(0xd2)])===null||_0x5b9967===void 0x0?void 0x0:_0x5b9967[_0x44204f(0x103)])||{};if(!this[_0x44204f(0x12a)][_0x44204f(0xd9)](_0x59db56))throw new AnnError(ApiError_1['ApiError'][_0x44204f(0xca)]);}catch(_0x4e5eda){if(_0x4e5eda instanceof AnnError)throw _0x4e5eda;else throw new AnnError(ApiError_1['ApiError']['_UNKNOW_']);}},'around':async _0x329cf3=>{const _0x54c905=_0xd3b019;var _0x23e414,_0x47ad31,_0x119635;const _0x5df613=(_0x23e414=_0x329cf3===null||_0x329cf3===void 0x0?void 0x0:_0x329cf3[_0x54c905(0x101)])===null||_0x23e414===void 0x0?void 0x0:_0x23e414[core_2[_0x54c905(0xe7)]];if(_0x5df613&&(_0x541f1a===null||_0x541f1a===void 0x0?void 0x0:_0x541f1a[_0x54c905(0xff)])&&((_0x541f1a===null||_0x541f1a===void 0x0?void 0x0:_0x541f1a['intercept'])||typeof(_0x541f1a===null||_0x541f1a===void 0x0?void 0x0:_0x541f1a[_0x54c905(0xe6)])==_0x54c905(0x140))){if(((_0x47ad31=_0x5df613['headers'])===null||_0x47ad31===void 0x0?void 0x0:_0x47ad31['device'])&&((_0x119635=_0x20deca===null||_0x20deca===void 0x0?void 0x0:_0x20deca[_0x5df613[_0x54c905(0x103)][_0x54c905(0x114)]])===null||_0x119635===void 0x0?void 0x0:_0x119635[_0x54c905(0x13c)])>0x0)for(const _0x3e8761 of _0x20deca[_0x5df613[_0x54c905(0x103)][_0x54c905(0x114)]]||[]){if(core_1[_0x54c905(0x131)][_0x54c905(0xde)](_0x3e8761)){const _0xdf2394=await _0x5df613[_0x54c905(0xd5)][_0x54c905(0xd0)](_0x3e8761);typeof(_0xdf2394===null||_0xdf2394===void 0x0?void 0x0:_0xdf2394[_0x54c905(0x120)])==_0x54c905(0xfa)?await _0xdf2394['match'](_0x5df613,typeof(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613['method'])==_0x54c905(0x14e)&&(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613['_matchedRoute'])?_0x5df613['method'][_0x54c905(0x148)]()+'@'+(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613['_matchedRoute']):undefined,_0x541f1a)&&await _0xdf2394[_0x54c905(0xf9)](_0x5df613,typeof(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0x14a)])==_0x54c905(0x14e)&&(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613['_matchedRoute'])?_0x5df613['method'][_0x54c905(0x148)]()+'@'+(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0xe9)]):undefined,_0x541f1a):await _0xdf2394[_0x54c905(0xf9)](_0x5df613,typeof(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0x14a)])==_0x54c905(0x14e)&&(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0xe9)])?_0x5df613[_0x54c905(0x14a)][_0x54c905(0x148)]()+'@'+(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0xe9)]):undefined,_0x541f1a);}else core_1['Types'][_0x54c905(0xe1)](_0x3e8761)&&await _0x3e8761(_0x5df613,typeof(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0x14a)])==_0x54c905(0x14e)&&(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613['_matchedRoute'])?_0x5df613[_0x54c905(0x14a)][_0x54c905(0x148)]()+'@'+(_0x5df613===null||_0x5df613===void 0x0?void 0x0:_0x5df613[_0x54c905(0xe9)]):undefined,_0x541f1a);}}return await _0x329cf3[_0x54c905(0x111)](..._0x329cf3[_0x54c905(0x13a)]);},'afterThrow':(_0x1f6a02,_0x54d23c)=>{throw _0x54d23c;}};});}async[a2_0x54d456(0xf3)](){const _0x15b5b3=a2_0x54d456,_0x1ce07a=this[_0x15b5b3(0x136)][_0x15b5b3(0x13b)]();this[_0x15b5b3(0x144)][_0x15b5b3(0xe3)]([_0x15b5b3(0x10c)])['forEach'](_0x150ba9=>{const _0x1e5be0=_0x15b5b3;typeof _0x150ba9['useMiddleware']==_0x1e5be0(0xfa)&&_0x150ba9[_0x1e5be0(0xe8)](async(_0x32b4a3,_0x174537)=>{const _0x397efe=_0x1e5be0;var _0x483391,_0x172338,_0x4efa7d,_0x480711;if((_0x32b4a3===null||_0x32b4a3===void 0x0?void 0x0:_0x32b4a3['host'])&&!_0x32b4a3[_0x397efe(0xcf)][_0x397efe(0x146)](_0x397efe(0xc4))){let _0x338bc7=_0x32b4a3[_0x397efe(0xcf)][_0x397efe(0x123)](':');['80',_0x397efe(0xf1)][_0x397efe(0x135)](_0x338bc7===null||_0x338bc7===void 0x0?void 0x0:_0x338bc7[0x1])?_0x32b4a3[_0x397efe(0xce)]=''+(!!((_0x172338=(_0x483391=_0x32b4a3===null||_0x32b4a3===void 0x0?void 0x0:_0x32b4a3[_0x397efe(0x11f)])===null||_0x483391===void 0x0?void 0x0:_0x483391[_0x397efe(0x113)])===null||_0x172338===void 0x0?void 0x0:_0x172338[_0x397efe(0xc5)])||(_0x338bc7===null||_0x338bc7===void 0x0?void 0x0:_0x338bc7[0x1])==_0x397efe(0xf1)?_0x397efe(0x11c):_0x397efe(0xc0))+_0x338bc7[0x0]:_0x32b4a3[_0x397efe(0xce)]=''+(!!((_0x480711=(_0x4efa7d=_0x32b4a3===null||_0x32b4a3===void 0x0?void 0x0:_0x32b4a3[_0x397efe(0x11f)])===null||_0x4efa7d===void 0x0?void 0x0:_0x4efa7d['connection'])===null||_0x480711===void 0x0?void 0x0:_0x480711[_0x397efe(0xc5)])?_0x397efe(0x11c):_0x397efe(0xc0))+_0x32b4a3['host'];}await _0x174537();}),(_0x150ba9===null||_0x150ba9===void 0x0?void 0x0:_0x150ba9[_0x1e5be0(0x11d)])&&Object['defineProperties'](_0x150ba9[_0x1e5be0(0x11d)],{'ok':{'value':function(_0x5a1364,_0x5d9619,_0x312628=0x0){return{'code':_0x312628,'data':_0x5a1364,'extra':_0x5d9619};}},'input':{'value':function(_0x5c884d,_0x158726){const _0x3485aa=_0x1e5be0;var _0x290423;const _0x55bba6=lodash[_0x3485aa(0x108)]({},this[_0x3485aa(0xd2)][_0x3485aa(0x115)]||this[_0x3485aa(0xd2)][((_0x290423=_0x1ce07a===null||_0x1ce07a===void 0x0?void 0x0:_0x1ce07a[_0x3485aa(0x125)])===null||_0x290423===void 0x0?void 0x0:_0x290423['key'])||_0x3485aa(0x115)]||{},this['request'][_0x3485aa(0xe4)]||{});return _0x5c884d?lodash['get'](_0x55bba6,_0x5c884d,_0x158726):_0x55bba6;}},'when':{'value':async function(_0xf6dda7,_0xf2cf33){const _0x1c0ddd=_0x1e5be0,_0x2635b4=this['input'](_0xf6dda7,null);if(!lodash[_0x1c0ddd(0xcb)](_0x2635b4))return await _0xf2cf33(_0x2635b4);}},'only':{'value':function(_0x5d9a06){const _0x4bc846=_0x1e5be0,_0x496280={};for(let _0x16ab7c=0x0;_0x16ab7c<_0x5d9a06[_0x4bc846(0x13c)];_0x16ab7c++){lodash['isArray'](_0x5d9a06[_0x16ab7c])&&_0x5d9a06[_0x16ab7c][_0x4bc846(0x13c)]>0x0&&lodash[_0x4bc846(0x122)](_0x5d9a06[_0x16ab7c][0x0])&&(_0x496280[_0x5d9a06[_0x16ab7c][0x0]]=this[_0x4bc846(0x126)](_0x5d9a06[_0x16ab7c][0x0],_0x5d9a06[_0x16ab7c][_0x4bc846(0x13c)]>0x1?_0x5d9a06[_0x16ab7c][0x1]:null));}return _0x496280;}},'koasend':{'value':function(_0x3e5479,_0x53a98b){const _0xbb279=_0x1e5be0;if(_0x3e5479&&!fs['existsSync'](_0x3e5479)&&!fs[_0xbb279(0x117)](this[_0xbb279(0xe2)][_0xbb279(0xc8)]()+'/'+_0x3e5479))return _0xbb279(0x12b);return _0x3e5479=fs[_0xbb279(0x117)](_0x3e5479)?_0x3e5479:this[_0xbb279(0xe2)][_0xbb279(0xc8)]()+'/'+_0x3e5479,this[_0xbb279(0x10f)](_0x53a98b||_0x3e5479),koasend(this,_0x3e5479);}}});});}async[a2_0x54d456(0x109)](){const _0x14398a=a2_0x54d456;var _0x50ff9c,_0xb2d882;if(fs[_0x14398a(0x117)](this['app'][_0x14398a(0xd8)]()+_0x14398a(0x13d))&&fs['statSync'](this[_0x14398a(0xe2)][_0x14398a(0xd8)]()+_0x14398a(0x13d))[_0x14398a(0x10e)]()){const _0x47ccd1=this[_0x14398a(0x136)]['getConfiguration'](),_0x16ec42=((_0x50ff9c=_0x47ccd1===null||_0x47ccd1===void 0x0?void 0x0:_0x47ccd1[_0x14398a(0x129)])===null||_0x50ff9c===void 0x0?void 0x0:_0x50ff9c[_0x14398a(0x139)])||{};for(const _0x2e4e32 of fs[_0x14398a(0x11b)](this[_0x14398a(0xe2)][_0x14398a(0xd8)]()+_0x14398a(0x13d))){if(!fs[_0x14398a(0x10b)](this[_0x14398a(0xe2)]['getBaseDir']()+_0x14398a(0xd7)+_0x2e4e32)[_0x14398a(0x10e)]())continue;if(_0x16ec42===null||_0x16ec42===void 0x0?void 0x0:_0x16ec42[_0x2e4e32])continue;_0x16ec42[_0x2e4e32]=Object[_0x14398a(0x110)]({},((_0xb2d882=_0x47ccd1===null||_0x47ccd1===void 0x0?void 0x0:_0x47ccd1[_0x14398a(0x129)])===null||_0xb2d882===void 0x0?void 0x0:_0xb2d882[_0x14398a(0xc3)])||{'maxSize':'1m','dir':this['app'][_0x14398a(0xc8)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x14398a(0xf0)][_0x14398a(0xf6)](),'fileLogName':_0x2e4e32+_0x14398a(0xef),'dir':this['app'][_0x14398a(0xc8)]()+_0x14398a(0x147)+_0x2e4e32+_0x14398a(0x151)});}Object[_0x14398a(0x14f)](_0x16ec42)[_0x14398a(0x13c)]>0x0&&(!_0x47ccd1[_0x14398a(0x129)]&&(_0x47ccd1[_0x14398a(0x129)]={'default':{'maxSize':'1m','dir':this['app'][_0x14398a(0xc8)]()+'/runtime'}}),_0x47ccd1[_0x14398a(0x129)][_0x14398a(0x139)]=_0x16ec42),this[_0x14398a(0x136)][_0x14398a(0x112)](_0x47ccd1);}}async[a2_0x54d456(0x12f)](){const _0x2150fc=a2_0x54d456;var _0xbd67f5,_0x50f4e4,_0x17eada,_0x563f0e,_0x1b30dd,_0x251e95;const _0x142b56=this[_0x2150fc(0x136)]['getConfiguration']();((_0x50f4e4=(_0xbd67f5=_0x142b56===null||_0x142b56===void 0x0?void 0x0:_0x142b56['anncicapi'])===null||_0xbd67f5===void 0x0?void 0x0:_0xbd67f5[_0x2150fc(0xc6)])===null||_0x50f4e4===void 0x0?void 0x0:_0x50f4e4[_0x2150fc(0x105)])&&Object['keys'](_0x142b56['anncicapi'][_0x2150fc(0xc6)])['length']>0x1&&delete _0x142b56['anncicapi'][_0x2150fc(0xc6)][_0x2150fc(0x105)];if((_0x17eada=_0x142b56===null||_0x142b56===void 0x0?void 0x0:_0x142b56[_0x2150fc(0x142)])===null||_0x17eada===void 0x0?void 0x0:_0x17eada[_0x2150fc(0x145)])for(const _0x4a86b8 in _0x142b56[_0x2150fc(0x142)]['dirs']){((_0x563f0e=_0x142b56[_0x2150fc(0x142)][_0x2150fc(0x145)][_0x4a86b8])===null||_0x563f0e===void 0x0?void 0x0:_0x563f0e[_0x2150fc(0x134)])&&typeof((_0x1b30dd=_0x142b56[_0x2150fc(0x142)][_0x2150fc(0x145)][_0x4a86b8])===null||_0x1b30dd===void 0x0?void 0x0:_0x1b30dd[_0x2150fc(0x134)])=='string'&&!fs[_0x2150fc(0x117)](_0x142b56['staticFile'][_0x2150fc(0x145)][_0x4a86b8][_0x2150fc(0x134)])&&(fs['mkdirSync'](_0x142b56['staticFile'][_0x2150fc(0x145)][_0x4a86b8][_0x2150fc(0x134)],{'recursive':!![]}),console['log'](_0x2150fc(0x150)+_0x142b56['staticFile'][_0x2150fc(0x145)][_0x4a86b8][_0x2150fc(0x134)]));}((_0x251e95=_0x142b56===null||_0x142b56===void 0x0?void 0x0:_0x142b56[_0x2150fc(0x106)])===null||_0x251e95===void 0x0?void 0x0:_0x251e95['tmpdir'])&&!fs[_0x2150fc(0x117)](_0x142b56['upload'][_0x2150fc(0xfb)])&&(fs[_0x2150fc(0xfe)](_0x142b56[_0x2150fc(0x106)][_0x2150fc(0xfb)],{'recursive':!![]}),console[_0x2150fc(0x107)](_0x2150fc(0x102)+_0x142b56['upload']['tmpdir'])),this[_0x2150fc(0x136)][_0x2150fc(0x112)](_0x142b56);}};__decorate([(0x0,core_1[a2_0x54d456(0x12c)])(),__metadata('design:type',Object)],CustomConfiguration['prototype'],a2_0x54d456(0xe2),void 0x0),__decorate([(0x0,core_1[a2_0x54d456(0x121)])(),__metadata(a2_0x54d456(0xda),core_2[a2_0x54d456(0x14b)])],CustomConfiguration[a2_0x54d456(0xc1)],a2_0x54d456(0x136),void 0x0),__decorate([(0x0,core_1[a2_0x54d456(0x121)])(),__metadata(a2_0x54d456(0xda),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x54d456(0xc1)],a2_0x54d456(0x13e),void 0x0),__decorate([(0x0,core_1[a2_0x54d456(0x121)])(),__metadata('design:type',core_2[a2_0x54d456(0x12d)])],CustomConfiguration[a2_0x54d456(0xc1)],a2_0x54d456(0x144),void 0x0),__decorate([(0x0,core_1[a2_0x54d456(0x121)])(),__metadata('design:type',core_2[a2_0x54d456(0xd3)])],CustomConfiguration[a2_0x54d456(0xc1)],a2_0x54d456(0xf0),void 0x0),__decorate([(0x0,core_1[a2_0x54d456(0x121)])(),__metadata('design:type',ApiService_1[a2_0x54d456(0x12a)])],CustomConfiguration[a2_0x54d456(0xc1)],'ApiService',void 0x0),exports[a2_0x54d456(0xec)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x54d456(0xf2)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x54d456(0x10a),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x5500(){const _0x123d3e=['getClassMetadata','Controller','description','filter','ACTION_KEY','post','@anncic-api/validator','/apps/','indexOf','ACTION_ROUTE_KEY','length','parseRoute','../types/action','basic/controller/','saveModule','trim','Action','assign','\x20文件请放在app/controller/文件下','createCustomMethodDecorator','2506164aBJzYP','6783iVrJoH','filepath','splice','-controller','apps/','6501573dAWCWa','existsSync','middleware','app/controller/','RequestMapping','split','505439SifXNg','search','/config.','string','intercept','22aFtSbA','4548FtlPIo','1256GOBPdR','endsWith','12cAsxnP','constructor','10141jyWuwK','get','/controller/','isArray','rootpath','route','substring','match','replace','@midwayjs/core','toLowerCase','routerName','validate','(((.+)+)+)+$','push','apply','module','defineProperty','1494GibAoo','Validator','apimit','toString','middlewareIgnore','16290yAFsVD','1030MehTDs','3UrTcpL','ActionApi','startsWith','\x20文件请放在apps/','AppsConfigTmp','-action','join','prefix'];a3_0x5500=function(){return _0x123d3e;};return a3_0x5500();}const a3_0x5c6e32=a3_0x5485;(function(_0x44c40,_0x33775f){const _0x3354d9=a3_0x5485,_0x1309da=_0x44c40();while(!![]){try{const _0x54dbdd=-parseInt(_0x3354d9(0x15c))/0x1*(-parseInt(_0x3354d9(0x156))/0x2)+parseInt(_0x3354d9(0x129))/0x3*(parseInt(_0x3354d9(0x145))/0x4)+-parseInt(_0x3354d9(0x174))/0x5*(-parseInt(_0x3354d9(0x157))/0x6)+-parseInt(_0x3354d9(0x146))/0x7*(-parseInt(_0x3354d9(0x158))/0x8)+-parseInt(_0x3354d9(0x16e))/0x9*(parseInt(_0x3354d9(0x173))/0xa)+parseInt(_0x3354d9(0x151))/0xb*(parseInt(_0x3354d9(0x15a))/0xc)+-parseInt(_0x3354d9(0x14b))/0xd;if(_0x54dbdd===_0x33775f)break;else _0x1309da['push'](_0x1309da['shift']());}catch(_0x317c32){_0x1309da['push'](_0x1309da['shift']());}}}(a3_0x5500,0x4e8fb));const a3_0x51eb42=(function(){let _0x6af0e=!![];return function(_0x49d96f,_0x5ca782){const _0x51c35f=_0x6af0e?function(){const _0x2f671b=a3_0x5485;if(_0x5ca782){const _0x52c87e=_0x5ca782[_0x2f671b(0x16b)](_0x49d96f,arguments);return _0x5ca782=null,_0x52c87e;}}:function(){};return _0x6af0e=![],_0x51c35f;};}()),a3_0x10ca6e=a3_0x51eb42(this,function(){const _0x441c89=a3_0x5485;return a3_0x10ca6e['toString']()[_0x441c89(0x152)](_0x441c89(0x169))[_0x441c89(0x171)]()[_0x441c89(0x15b)](a3_0x10ca6e)[_0x441c89(0x152)]('(((.+)+)+)+$');});function a3_0x5485(_0x4fcc02,_0x4710ef){const _0x46a317=a3_0x5500();return a3_0x5485=function(_0x10ca6e,_0x51eb42){_0x10ca6e=_0x10ca6e-0x129;let _0x550085=_0x46a317[_0x10ca6e];return _0x550085;},a3_0x5485(_0x4fcc02,_0x4710ef);}a3_0x10ca6e();'use strict';Object[a3_0x5c6e32(0x16d)](exports,'__esModule',{'value':!![]}),exports[a3_0x5c6e32(0x13c)]=exports[a3_0x5c6e32(0x12a)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x5c6e32(0x137)),core_1=require(a3_0x5c6e32(0x165)),core_2=require('@midwayjs/core'),action_1=require(a3_0x5c6e32(0x13d));function Action(_0x2bc126,_0x1eacd1,_0x57d6c4={'middleware':[],'sensitive':!![]}){return _0x4c153e=>{const _0x10d54f=a3_0x5485;var _0x39c0ce;_0x57d6c4['tagName']=_0x1eacd1;const _0x486a72=parseRoute(_0x2bc126);if(_0x486a72[_0x10d54f(0x16c)]){_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)]?'/'+_0x486a72[_0x10d54f(0x16c)]+'/'+_0x57d6c4[_0x10d54f(0x130)]:'/'+_0x486a72[_0x10d54f(0x161)];_0x486a72[_0x10d54f(0x130)]&&(_0x57d6c4[_0x10d54f(0x130)]='/'+_0x486a72[_0x10d54f(0x130)]+'/'+_0x57d6c4[_0x10d54f(0x130)]);if(fs[_0x10d54f(0x14c)](_0x486a72[_0x10d54f(0x160)]+_0x10d54f(0x138)+_0x486a72['module']+_0x10d54f(0x153)+(lodash[_0x10d54f(0x159)](_0x486a72['filepath'],'ts')?'ts':'js'))){const _0x177f10=include(_0x486a72['rootpath']+_0x10d54f(0x138)+_0x486a72[_0x10d54f(0x16c)]+_0x10d54f(0x153)+(lodash[_0x10d54f(0x159)](_0x486a72[_0x10d54f(0x147)],'ts')?'ts':'js'));if(_0x177f10[_0x10d54f(0x14d)]&&lodash[_0x10d54f(0x15f)](_0x177f10['middleware'])&&_0x177f10[_0x10d54f(0x14d)][_0x10d54f(0x13b)]>0x0)for(let _0x1904e0 in _0x177f10[_0x10d54f(0x14d)]){if(((_0x39c0ce=_0x177f10===null||_0x177f10===void 0x0?void 0x0:_0x177f10['middlewareIgnore'])===null||_0x39c0ce===void 0x0?void 0x0:_0x39c0ce[_0x10d54f(0x13b)])>0x0&&_0x177f10[_0x10d54f(0x172)][_0x10d54f(0x139)](_0x177f10['middleware'][_0x1904e0])!=-0x1)continue;_0x57d6c4[_0x10d54f(0x14d)][_0x10d54f(0x16a)](_0x177f10[_0x10d54f(0x14d)][_0x1904e0]);}const _0x6ace89=(0x0,core_1[_0x10d54f(0x131)])(action_1['APPSCONFIG_KEY'],action_1[_0x10d54f(0x12d)])||{};_0x6ace89[''+_0x486a72[_0x10d54f(0x16c)]]=_0x177f10,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x6ace89,action_1['AppsConfigTmp']);}_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)][_0x10d54f(0x166)]()[_0x10d54f(0x164)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x4c153e),(0x0,core_1[_0x10d54f(0x132)])(_0x57d6c4[_0x10d54f(0x130)],_0x57d6c4)(_0x4c153e),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x57d6c4[_0x10d54f(0x130)],'pprefix':_0x486a72[_0x10d54f(0x130)],'module':_0x486a72['module'],'filepath':_0x486a72[_0x10d54f(0x147)],'routerOptions':_0x57d6c4},_0x4c153e);}else _0x57d6c4['prefix']=_0x57d6c4[_0x10d54f(0x130)]?'/'+_0x57d6c4[_0x10d54f(0x130)]:'/'+_0x486a72[_0x10d54f(0x161)],_0x486a72[_0x10d54f(0x130)]&&(_0x57d6c4[_0x10d54f(0x130)]='/'+_0x486a72[_0x10d54f(0x130)]+'/'+_0x57d6c4['prefix']),_0x57d6c4[_0x10d54f(0x130)]=_0x57d6c4[_0x10d54f(0x130)]['toLowerCase']()[_0x10d54f(0x164)](/\/{2,}/g,'/'),(0x0,core_1[_0x10d54f(0x13f)])(action_1[_0x10d54f(0x135)],_0x4c153e),(0x0,core_1[_0x10d54f(0x132)])(_0x57d6c4[_0x10d54f(0x130)],_0x57d6c4)(_0x4c153e),(0x0,core_1['saveClassMetadata'])(action_1[_0x10d54f(0x135)],{'prefix':_0x57d6c4['prefix'],'module':_0x486a72[_0x10d54f(0x16c)],'pprefix':_0x486a72[_0x10d54f(0x130)],'filepath':_0x486a72[_0x10d54f(0x147)],'routerOptions':_0x57d6c4},_0x4c153e);};}exports[a3_0x5c6e32(0x141)]=Action,Action[a3_0x5c6e32(0x15d)]=function(_0x627c3b,_0x14cc21='/',_0x55bcf2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1d553b,_0x36fa9b,_0x142ee8)=>{const _0x4d06d5=a3_0x5485;ActionApi(_0x627c3b,_0x4d06d5(0x15d),_0x14cc21,_0x55bcf2)(_0x1d553b,_0x36fa9b,_0x142ee8);};},Action[a3_0x5c6e32(0x136)]=function(_0x5e2a91,_0x57acfa='/',_0x3e6ca4={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2fed0a,_0x2a05ea,_0x43119e)=>{const _0x260958=a3_0x5485;ActionApi(_0x5e2a91,_0x260958(0x136),_0x57acfa,_0x3e6ca4)(_0x2fed0a,_0x2a05ea,_0x43119e);};};function ActionApi(_0x26a770,_0x43cbac=a3_0x5c6e32(0x15d),_0x3a80c7='/',_0x3f525b={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4e612f,_0xa50b8a,_0x655059)=>{const _0x31f80b=a3_0x5485;var _0x1d7302,_0x596221,_0xcdaea2;!_0x3f525b[_0x31f80b(0x14d)]&&(_0x3f525b[_0x31f80b(0x14d)]=[]);!((_0x1d7302=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x168)])===null||_0x1d7302===void 0x0?void 0x0:_0x1d7302['validationOptions'])&&(_0x3f525b[_0x31f80b(0x168)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x31f80b(0x154)}});if(!_0x3a80c7)_0x3a80c7='/';else typeof _0x3a80c7=='string'&&(!_0x3a80c7[_0x31f80b(0x12b)]('/')&&!_0x3a80c7[_0x31f80b(0x12b)]('-')&&(_0x3a80c7='/'+_0x3a80c7));typeof _0x3f525b[_0x31f80b(0x170)]=='undefined'&&(_0x3f525b[_0x31f80b(0x170)]=!![]);if(((_0x596221=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x14d)])===null||_0x596221===void 0x0?void 0x0:_0x596221[_0x31f80b(0x13b)])>0x0&&((_0xcdaea2=_0x3f525b===null||_0x3f525b===void 0x0?void 0x0:_0x3f525b[_0x31f80b(0x172)])===null||_0xcdaea2===void 0x0?void 0x0:_0xcdaea2['length'])>0x0)for(let _0x2c5a1d in _0x3f525b['middleware']){_0x3f525b[_0x31f80b(0x172)][_0x31f80b(0x139)](_0x3f525b[_0x31f80b(0x14d)][_0x2c5a1d])!==-0x1&&(_0x3f525b[_0x31f80b(0x14d)][_0x2c5a1d]=null);}_0x3f525b['routerName']=_0x26a770,(0x0,validator_1[_0x31f80b(0x16f)])(_0x3f525b[_0x31f80b(0x168)])(_0x4e612f,_0xa50b8a,_0x655059),(0x0,core_2[_0x31f80b(0x14f)])(Object[_0x31f80b(0x142)](_0x3f525b,{'path':_0x3a80c7,'requestMethod':(_0x43cbac||_0x31f80b(0x15d))['toLowerCase']()}))(_0x4e612f,_0xa50b8a,_0x655059),(0x0,core_2['attachClassMetadata'])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3a80c7,'method':_0xa50b8a,'apimit':_0x3f525b['apimit'],'intercept':_0x3f525b['intercept'],'routerName':_0x3f525b[_0x31f80b(0x167)],'description':_0x3f525b[_0x31f80b(0x133)],'middleware':(_0x3f525b[_0x31f80b(0x14d)]||[])['filter'](_0x8a17de=>!!_0x8a17de),'requestMethod':(_0x43cbac||_0x31f80b(0x15d))[_0x31f80b(0x166)]()},_0x4e612f),(0x0,core_2[_0x31f80b(0x144)])(action_1[_0x31f80b(0x13a)],{'path':_0x3a80c7,'method':_0xa50b8a,'apimit':_0x3f525b['apimit'],'intercept':_0x3f525b[_0x31f80b(0x155)],'routerName':_0x3f525b[_0x31f80b(0x167)],'description':_0x3f525b[_0x31f80b(0x133)],'middleware':(_0x3f525b['middleware']||[])[_0x31f80b(0x134)](_0x162d62=>!!_0x162d62),'requestMethod':(_0x43cbac||_0x31f80b(0x15d))['toLowerCase']()})(_0x4e612f,_0xa50b8a,_0x655059);};}exports[a3_0x5c6e32(0x12a)]=ActionApi;function parseRoute(_0x5cec31){const _0x1b9b3e=a3_0x5c6e32;_0x5cec31=_0x5cec31[_0x1b9b3e(0x164)](/(\\|\/)/g,'/');const _0x5185ea=process['cwd']()[_0x1b9b3e(0x164)](/(\\|\/)/g,'/'),_0x3b4f2d=_0x5cec31[_0x1b9b3e(0x162)](0x0,_0x5185ea[_0x1b9b3e(0x13b)]+_0x5cec31[_0x1b9b3e(0x162)](_0x5185ea[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x139)]('/')+0x1),_0x49952f=_0x5cec31[_0x1b9b3e(0x162)](_0x3b4f2d[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x164)](/(\\|\/)/g,'/'),_0x2b250e={'route':'','prefix':![],'module':![],'rootpath':_0x3b4f2d,'filepath':_0x49952f};if(_0x49952f['startsWith']('app/controller/')||_0x49952f[_0x1b9b3e(0x12b)](_0x1b9b3e(0x13e))){const _0x2fe372=_0x49952f[_0x1b9b3e(0x162)]((_0x49952f['startsWith']('app/controller/')?_0x1b9b3e(0x14e):'basic/controller/')[_0x1b9b3e(0x13b)])[_0x1b9b3e(0x150)]('/')[_0x1b9b3e(0x134)](_0xd7c7f9=>_0xd7c7f9&&_0xd7c7f9['trim']());return _0x2fe372[_0x1b9b3e(0x13b)]>0x1&&(_0x2b250e[_0x1b9b3e(0x130)]=_0x2fe372[0x0][_0x1b9b3e(0x166)](),_0x2fe372[_0x1b9b3e(0x148)](0x0,0x1)),_0x2b250e[_0x1b9b3e(0x161)]=('/'+_0x2fe372[_0x1b9b3e(0x12f)]('/'))[_0x1b9b3e(0x164)](/(\.ts|\.js)$/,'')[_0x1b9b3e(0x164)](/\/{2,}/g,'/')[_0x1b9b3e(0x163)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b9b3e(0x12f)]('-')[_0x1b9b3e(0x166)]()[_0x1b9b3e(0x164)](/\/\-/g,'/'),_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x159)](_0x1b9b3e(0x12e))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x162)](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0x7)),_0x2b250e[_0x1b9b3e(0x161)]['endsWith'](_0x1b9b3e(0x149))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e['route']['substring'](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0xb)),_0x2b250e;}else{if(_0x49952f['startsWith'](_0x1b9b3e(0x14a))){const _0x234177=_0x49952f['substring'](0x0,_0x49952f['indexOf'](_0x1b9b3e(0x138))+0x5),_0x22fd30=_0x49952f[_0x1b9b3e(0x162)](_0x234177[_0x1b9b3e(0x13b)]+0x1)[_0x1b9b3e(0x164)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x49952f[_0x1b9b3e(0x12b)]('apps/'+_0x22fd30+_0x1b9b3e(0x15e))){const _0x5da2b7=_0x49952f[_0x1b9b3e(0x162)]((_0x234177+'/'+_0x22fd30+_0x1b9b3e(0x15e))[_0x1b9b3e(0x13b)])[_0x1b9b3e(0x150)]('/')['filter'](_0x2a5727=>_0x2a5727&&_0x2a5727[_0x1b9b3e(0x140)]());return _0x5da2b7[_0x1b9b3e(0x13b)]>0x1&&(_0x2b250e[_0x1b9b3e(0x130)]=_0x5da2b7[0x0][_0x1b9b3e(0x166)](),_0x5da2b7[_0x1b9b3e(0x148)](0x0,0x1)),_0x2b250e[_0x1b9b3e(0x16c)]=_0x22fd30,_0x2b250e['route']=('/'+_0x22fd30+'/'+_0x5da2b7['join']('/'))[_0x1b9b3e(0x164)](/(\.ts|\.js)$/,'')[_0x1b9b3e(0x164)](/\/{2,}/g,'/')[_0x1b9b3e(0x163)](/[\/|A-Z]*[^A-Z]+/g)[_0x1b9b3e(0x12f)]('-')['toLowerCase']()[_0x1b9b3e(0x164)](/\/\-/g,'/'),_0x2b250e['route'][_0x1b9b3e(0x159)]('-action')&&(_0x2b250e['route']=_0x2b250e['route'][_0x1b9b3e(0x162)](0x0,_0x2b250e['route']['length']-0x7)),_0x2b250e['route']['endsWith'](_0x1b9b3e(0x149))&&(_0x2b250e[_0x1b9b3e(0x161)]=_0x2b250e[_0x1b9b3e(0x161)]['substring'](0x0,_0x2b250e[_0x1b9b3e(0x161)][_0x1b9b3e(0x13b)]-0xb)),_0x2b250e;}throw new Error(_0x49952f+_0x1b9b3e(0x12c)+_0x22fd30+'/controller/文件下');}}throw new Error(_0x49952f+_0x1b9b3e(0x143));}exports[a3_0x5c6e32(0x13c)]=parseRoute;
|
|
1
|
+
const a3_0x5531ba=a3_0x5a54;(function(_0x5dd83b,_0x87932a){const _0x59f0b5=a3_0x5a54,_0x57ab10=_0x5dd83b();while(!![]){try{const _0x22e9a5=-parseInt(_0x59f0b5(0x116))/0x1+parseInt(_0x59f0b5(0xff))/0x2+-parseInt(_0x59f0b5(0xf8))/0x3*(parseInt(_0x59f0b5(0xf7))/0x4)+parseInt(_0x59f0b5(0xd6))/0x5+parseInt(_0x59f0b5(0xf4))/0x6+-parseInt(_0x59f0b5(0xd3))/0x7*(parseInt(_0x59f0b5(0xdc))/0x8)+-parseInt(_0x59f0b5(0x106))/0x9*(parseInt(_0x59f0b5(0xd9))/0xa);if(_0x22e9a5===_0x87932a)break;else _0x57ab10['push'](_0x57ab10['shift']());}catch(_0x1b77f5){_0x57ab10['push'](_0x57ab10['shift']());}}}(a3_0x2c9c,0x25cd7));const a3_0x50f99f=(function(){let _0x1a3697=!![];return function(_0x1bbc04,_0x21c7f1){const _0x2939ce=_0x1a3697?function(){const _0xc8c2d0=a3_0x5a54;if(_0x21c7f1){const _0x1bbb2f=_0x21c7f1[_0xc8c2d0(0xfa)](_0x1bbc04,arguments);return _0x21c7f1=null,_0x1bbb2f;}}:function(){};return _0x1a3697=![],_0x2939ce;};}()),a3_0x3fd15e=a3_0x50f99f(this,function(){const _0x15615e=a3_0x5a54;return a3_0x3fd15e[_0x15615e(0xd4)]()[_0x15615e(0x114)](_0x15615e(0xea))[_0x15615e(0xd4)]()[_0x15615e(0xe9)](a3_0x3fd15e)['search'](_0x15615e(0xea));});a3_0x3fd15e();'use strict';Object[a3_0x5531ba(0x108)](exports,a3_0x5531ba(0x117),{'value':!![]}),exports[a3_0x5531ba(0xe0)]=exports['ActionApi']=exports['Action']=void 0x0;function a3_0x5a54(_0x536ba4,_0x11eafd){const _0x41e25f=a3_0x2c9c();return a3_0x5a54=function(_0x3fd15e,_0x50f99f){_0x3fd15e=_0x3fd15e-0xcf;let _0x2c9c43=_0x41e25f[_0x3fd15e];return _0x2c9c43;},a3_0x5a54(_0x536ba4,_0x11eafd);}const fs=require('fs'),validator_1=require(a3_0x5531ba(0x104)),core_1=require(a3_0x5531ba(0xe7)),core_2=require(a3_0x5531ba(0xe7)),action_1=require(a3_0x5531ba(0xd0));function Action(_0xd9d677,_0x1a44d0,_0x145083={'middleware':[],'sensitive':!![]}){return _0x4eb100=>{const _0x146164=a3_0x5a54;var _0x2e1d6c;_0x145083[_0x146164(0xde)]=_0x1a44d0;const _0x1e5061=parseRoute(_0xd9d677);if(_0x1e5061[_0x146164(0x119)]){_0x145083['prefix']=_0x145083['prefix']?'/'+_0x1e5061[_0x146164(0x119)]+'/'+_0x145083[_0x146164(0x112)]:'/'+_0x1e5061[_0x146164(0x110)];_0x1e5061['prefix']&&(_0x145083[_0x146164(0x112)]='/'+_0x1e5061[_0x146164(0x112)]+'/'+_0x145083[_0x146164(0x112)]);if(fs[_0x146164(0xd1)](_0x1e5061[_0x146164(0x107)]+_0x146164(0x11b)+_0x1e5061['module']+_0x146164(0xdd)+(lodash[_0x146164(0xf9)](_0x1e5061['filepath'],'ts')?'ts':'js'))){const _0x5eab03=include(_0x1e5061[_0x146164(0x107)]+_0x146164(0x11b)+_0x1e5061[_0x146164(0x119)]+_0x146164(0xdd)+(lodash[_0x146164(0xf9)](_0x1e5061[_0x146164(0xf0)],'ts')?'ts':'js'));if(_0x5eab03[_0x146164(0xef)]&&lodash[_0x146164(0xd7)](_0x5eab03[_0x146164(0xef)])&&_0x5eab03[_0x146164(0xef)][_0x146164(0x10f)]>0x0)for(let _0x2abf32 in _0x5eab03[_0x146164(0xef)]){if(((_0x2e1d6c=_0x5eab03===null||_0x5eab03===void 0x0?void 0x0:_0x5eab03[_0x146164(0xe1)])===null||_0x2e1d6c===void 0x0?void 0x0:_0x2e1d6c[_0x146164(0x10f)])>0x0&&_0x5eab03['middlewareIgnore'][_0x146164(0xfe)](_0x5eab03[_0x146164(0xef)][_0x2abf32])!=-0x1)continue;_0x145083[_0x146164(0xef)][_0x146164(0x10e)](_0x5eab03[_0x146164(0xef)][_0x2abf32]);}const _0xb08273=(0x0,core_1[_0x146164(0x10a)])(action_1[_0x146164(0xdb)],action_1['AppsConfigTmp'])||{};_0xb08273[''+_0x1e5061[_0x146164(0x119)]]=_0x5eab03,(0x0,core_1['saveClassMetadata'])(action_1[_0x146164(0xdb)],_0xb08273,action_1['AppsConfigTmp']);}_0x145083[_0x146164(0x112)]=_0x145083[_0x146164(0x112)]['toLowerCase']()[_0x146164(0xee)](/\/{2,}/g,'/'),(0x0,core_1[_0x146164(0x111)])(action_1[_0x146164(0xfd)],_0x4eb100),(0x0,core_1[_0x146164(0x103)])(_0x145083[_0x146164(0x112)],_0x145083)(_0x4eb100),(0x0,core_1[_0x146164(0xe3)])(action_1[_0x146164(0xfd)],{'prefix':_0x145083['prefix'],'pprefix':_0x1e5061[_0x146164(0x112)],'module':_0x1e5061[_0x146164(0x119)],'filepath':_0x1e5061[_0x146164(0xf0)],'routerOptions':_0x145083},_0x4eb100);}else _0x145083[_0x146164(0x112)]=_0x145083[_0x146164(0x112)]?'/'+_0x145083['prefix']:'/'+_0x1e5061['route'],_0x1e5061[_0x146164(0x112)]&&(_0x145083[_0x146164(0x112)]='/'+_0x1e5061[_0x146164(0x112)]+'/'+_0x145083[_0x146164(0x112)]),_0x145083[_0x146164(0x112)]=_0x145083[_0x146164(0x112)][_0x146164(0xdf)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x146164(0x111)])(action_1[_0x146164(0xfd)],_0x4eb100),(0x0,core_1['Controller'])(_0x145083[_0x146164(0x112)],_0x145083)(_0x4eb100),(0x0,core_1[_0x146164(0xe3)])(action_1[_0x146164(0xfd)],{'prefix':_0x145083[_0x146164(0x112)],'module':_0x1e5061[_0x146164(0x119)],'pprefix':_0x1e5061[_0x146164(0x112)],'filepath':_0x1e5061['filepath'],'routerOptions':_0x145083},_0x4eb100);};}exports[a3_0x5531ba(0x100)]=Action,Action['get']=function(_0x370009,_0x1d9a5d='/',_0x34e903={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2537b8,_0x2ae7ef,_0x1e1279)=>{const _0x21f318=a3_0x5a54;ActionApi(_0x370009,_0x21f318(0x109),_0x1d9a5d,_0x34e903)(_0x2537b8,_0x2ae7ef,_0x1e1279);};},Action['post']=function(_0x4d6252,_0x23091e='/',_0x2db105={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x99e764,_0x4b321d,_0x4d343c)=>{ActionApi(_0x4d6252,'post',_0x23091e,_0x2db105)(_0x99e764,_0x4b321d,_0x4d343c);};};function ActionApi(_0x39e63d,_0x5d36f5=a3_0x5531ba(0x109),_0x270338='/',_0x474aca={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xa2e6c4,_0x34cd47,_0x41b119)=>{const _0x580b88=a3_0x5a54;var _0x5370d1,_0x5ef119,_0x1bcd3c;!_0x474aca['middleware']&&(_0x474aca[_0x580b88(0xef)]=[]);!((_0x5370d1=_0x474aca===null||_0x474aca===void 0x0?void 0x0:_0x474aca['validate'])===null||_0x5370d1===void 0x0?void 0x0:_0x5370d1['validationOptions'])&&(_0x474aca['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x580b88(0xd5)}});if(!_0x270338)_0x270338='/';else typeof _0x270338=='string'&&(!_0x270338[_0x580b88(0xd8)]('/')&&!_0x270338[_0x580b88(0xd8)]('-')&&(_0x270338='/'+_0x270338));typeof _0x474aca[_0x580b88(0xe2)]==_0x580b88(0xf5)&&(_0x474aca[_0x580b88(0xe2)]=!![]);if(((_0x5ef119=_0x474aca===null||_0x474aca===void 0x0?void 0x0:_0x474aca[_0x580b88(0xef)])===null||_0x5ef119===void 0x0?void 0x0:_0x5ef119[_0x580b88(0x10f)])>0x0&&((_0x1bcd3c=_0x474aca===null||_0x474aca===void 0x0?void 0x0:_0x474aca['middlewareIgnore'])===null||_0x1bcd3c===void 0x0?void 0x0:_0x1bcd3c['length'])>0x0)for(let _0x552d93 in _0x474aca[_0x580b88(0xef)]){_0x474aca[_0x580b88(0xe1)][_0x580b88(0xfe)](_0x474aca[_0x580b88(0xef)][_0x552d93])!==-0x1&&(_0x474aca['middleware'][_0x552d93]=null);}_0x474aca['routerName']=_0x39e63d,(0x0,validator_1['Validator'])(_0x474aca[_0x580b88(0x11a)])(_0xa2e6c4,_0x34cd47,_0x41b119),(0x0,core_2[_0x580b88(0xe8)])(Object[_0x580b88(0x115)](_0x474aca,{'path':_0x270338,'requestMethod':(_0x5d36f5||_0x580b88(0x109))[_0x580b88(0xdf)]()}))(_0xa2e6c4,_0x34cd47,_0x41b119),(0x0,core_2[_0x580b88(0xec)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x270338,'method':_0x34cd47,'apimit':_0x474aca[_0x580b88(0xe2)],'intercept':_0x474aca[_0x580b88(0xf3)],'routerName':_0x474aca[_0x580b88(0x113)],'description':_0x474aca[_0x580b88(0xe6)],'middleware':(_0x474aca['middleware']||[])[_0x580b88(0x10b)](_0x180408=>!!_0x180408),'requestMethod':(_0x5d36f5||_0x580b88(0x109))['toLowerCase']()},_0xa2e6c4),(0x0,core_2[_0x580b88(0xda)])(action_1[_0x580b88(0x105)],{'path':_0x270338,'method':_0x34cd47,'apimit':_0x474aca[_0x580b88(0xe2)],'intercept':_0x474aca[_0x580b88(0xf3)],'routerName':_0x474aca[_0x580b88(0x113)],'description':_0x474aca[_0x580b88(0xe6)],'middleware':(_0x474aca[_0x580b88(0xef)]||[])['filter'](_0x5263d3=>!!_0x5263d3),'requestMethod':(_0x5d36f5||_0x580b88(0x109))['toLowerCase']()})(_0xa2e6c4,_0x34cd47,_0x41b119);};}exports[a3_0x5531ba(0xf2)]=ActionApi;function a3_0x2c9c(){const _0x27426a=['get','getClassMetadata','filter','cwd','split','push','length','route','saveModule','prefix','routerName','search','assign','169592paDKqd','__esModule','-action','module','validate','/apps/','app/controller/','../types/action','existsSync','trim','7Sssyve','toString','string','1001160fIfGMm','isArray','startsWith','280KHhhpn','createCustomMethodDecorator','APPSCONFIG_KEY','249464GocZdv','/config.','tagName','toLowerCase','parseRoute','middlewareIgnore','apimit','saveClassMetadata','\x20文件请放在app/controller/文件下','join','description','@midwayjs/core','RequestMapping','constructor','(((.+)+)+)+$','match','attachClassMetadata','-controller','replace','middleware','filepath','/controller/文件下','ActionApi','intercept','887226NiJrQu','undefined','splice','132ZCIeFu','1158ZueBmT','endsWith','apply','basic/controller/','/controller/','ACTION_KEY','indexOf','473994TxcgGU','Action','apps/','substring','Controller','@anncic-api/validator','ACTION_ROUTE_KEY','69669ByAefr','rootpath','defineProperty'];a3_0x2c9c=function(){return _0x27426a;};return a3_0x2c9c();}function parseRoute(_0x44b47a){const _0x200085=a3_0x5531ba;_0x44b47a=_0x44b47a['replace'](/(\\|\/)/g,'/');const _0x1f556d=process[_0x200085(0x10c)]()[_0x200085(0xee)](/(\\|\/)/g,'/'),_0x106d24=_0x44b47a['substring'](0x0,_0x1f556d['length']+_0x44b47a['substring'](_0x1f556d[_0x200085(0x10f)]+0x1)[_0x200085(0xfe)]('/')+0x1),_0x382a17=_0x44b47a[_0x200085(0x102)](_0x106d24[_0x200085(0x10f)]+0x1)[_0x200085(0xee)](/(\\|\/)/g,'/'),_0x586fd7={'route':'','prefix':![],'module':![],'rootpath':_0x106d24,'filepath':_0x382a17};if(_0x382a17[_0x200085(0xd8)]('app/controller/')||_0x382a17[_0x200085(0xd8)]('basic/controller/')){const _0x2772dc=_0x382a17['substring']((_0x382a17['startsWith'](_0x200085(0xcf))?'app/controller/':_0x200085(0xfb))[_0x200085(0x10f)])['split']('/')['filter'](_0x4872b1=>_0x4872b1&&_0x4872b1[_0x200085(0xd2)]());return _0x2772dc[_0x200085(0x10f)]>0x1&&(_0x586fd7[_0x200085(0x112)]=_0x2772dc[0x0]['toLowerCase'](),_0x2772dc['splice'](0x0,0x1)),_0x586fd7['route']=('/'+_0x2772dc[_0x200085(0xe5)]('/'))[_0x200085(0xee)](/(\.ts|\.js)$/,'')[_0x200085(0xee)](/\/{2,}/g,'/')[_0x200085(0xeb)](/[\/|A-Z]*[^A-Z]+/g)[_0x200085(0xe5)]('-')[_0x200085(0xdf)]()[_0x200085(0xee)](/\/\-/g,'/'),_0x586fd7[_0x200085(0x110)]['endsWith'](_0x200085(0x118))&&(_0x586fd7[_0x200085(0x110)]=_0x586fd7['route'][_0x200085(0x102)](0x0,_0x586fd7['route'][_0x200085(0x10f)]-0x7)),_0x586fd7['route'][_0x200085(0xf9)]('-controller')&&(_0x586fd7['route']=_0x586fd7[_0x200085(0x110)][_0x200085(0x102)](0x0,_0x586fd7['route'][_0x200085(0x10f)]-0xb)),_0x586fd7;}else{if(_0x382a17['startsWith'](_0x200085(0x101))){const _0x186507=_0x382a17['substring'](0x0,_0x382a17['indexOf'](_0x200085(0x11b))+0x5),_0x15269c=_0x382a17['substring'](_0x186507['length']+0x1)[_0x200085(0xee)](/(\\|\/)/g,'/')[_0x200085(0x10d)]('/')[0x0];if(_0x382a17[_0x200085(0xd8)](_0x200085(0x101)+_0x15269c+_0x200085(0xfc))){const _0x3b5eee=_0x382a17[_0x200085(0x102)]((_0x186507+'/'+_0x15269c+'/controller/')[_0x200085(0x10f)])[_0x200085(0x10d)]('/')[_0x200085(0x10b)](_0x39d68e=>_0x39d68e&&_0x39d68e[_0x200085(0xd2)]());return _0x3b5eee[_0x200085(0x10f)]>0x1&&(_0x586fd7[_0x200085(0x112)]=_0x3b5eee[0x0][_0x200085(0xdf)](),_0x3b5eee[_0x200085(0xf6)](0x0,0x1)),_0x586fd7[_0x200085(0x119)]=_0x15269c,_0x586fd7[_0x200085(0x110)]=('/'+_0x15269c+'/'+_0x3b5eee[_0x200085(0xe5)]('/'))[_0x200085(0xee)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x200085(0xeb)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x200085(0xdf)]()[_0x200085(0xee)](/\/\-/g,'/'),_0x586fd7[_0x200085(0x110)]['endsWith']('-action')&&(_0x586fd7['route']=_0x586fd7[_0x200085(0x110)][_0x200085(0x102)](0x0,_0x586fd7['route']['length']-0x7)),_0x586fd7[_0x200085(0x110)][_0x200085(0xf9)](_0x200085(0xed))&&(_0x586fd7[_0x200085(0x110)]=_0x586fd7[_0x200085(0x110)][_0x200085(0x102)](0x0,_0x586fd7[_0x200085(0x110)][_0x200085(0x10f)]-0xb)),_0x586fd7;}throw new Error(_0x382a17+'\x20文件请放在apps/'+_0x15269c+_0x200085(0xf1));}}throw new Error(_0x382a17+_0x200085(0xe4));}exports[a3_0x5531ba(0xe0)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x28a18d=a4_0x1a69;(function(_0x2f9da8,_0xd19d12){const _0x7d927b=a4_0x1a69,_0x41910e=_0x2f9da8();while(!![]){try{const _0xddea69=-parseInt(_0x7d927b(0x100))/0x1*(parseInt(_0x7d927b(0x10e))/0x2)+-parseInt(_0x7d927b(0x115))/0x3*(-parseInt(_0x7d927b(0x10f))/0x4)+parseInt(_0x7d927b(0x10c))/0x5+parseInt(_0x7d927b(0x112))/0x6+parseInt(_0x7d927b(0x111))/0x7+-parseInt(_0x7d927b(0xfe))/0x8+-parseInt(_0x7d927b(0x10d))/0x9;if(_0xddea69===_0xd19d12)break;else _0x41910e['push'](_0x41910e['shift']());}catch(_0x12a39a){_0x41910e['push'](_0x41910e['shift']());}}}(a4_0x12ba,0x4ae8f));const a4_0x1e8d4f=(function(){let _0x19f8fb=!![];return function(_0x6f9604,_0x524251){const _0x59e058=_0x19f8fb?function(){const _0x53bee2=a4_0x1a69;if(_0x524251){const _0x1d7ed6=_0x524251[_0x53bee2(0x103)](_0x6f9604,arguments);return _0x524251=null,_0x1d7ed6;}}:function(){};return _0x19f8fb=![],_0x59e058;};}()),a4_0x118aa6=a4_0x1e8d4f(this,function(){const _0x5d6013=a4_0x1a69;return a4_0x118aa6['toString']()['search'](_0x5d6013(0xfb))[_0x5d6013(0x108)]()[_0x5d6013(0x114)](a4_0x118aa6)[_0x5d6013(0x113)](_0x5d6013(0xfb));});a4_0x118aa6();'use strict';function a4_0x1a69(_0x370b3a,_0x2c7162){const _0x2ed21a=a4_0x12ba();return a4_0x1a69=function(_0x118aa6,_0x1e8d4f){_0x118aa6=_0x118aa6-0xfa;let _0x12bada=_0x2ed21a[_0x118aa6];return _0x12bada;},a4_0x1a69(_0x370b3a,_0x2c7162);}Object[a4_0x28a18d(0x10b)](exports,'__esModule',{'value':!![]}),exports[a4_0x28a18d(0x106)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x28a18d(0x104));function a4_0x12ba(){const _0x57726c=['90GbNkyj','12gqKTDD','filepath','1938790xTgkfT','1059000cfBVWc','search','constructor','459201JHyusp','apidoc','getApplicationContext','(((.+)+)+)+$','get','REQUEST_OBJ_CTX_KEY','3838512hQLzXc','/apitest','11595xJjnKm','getConfig','apitest','apply','../service/ApitestService','app','Apitest','MidwayEnvironmentService','toString','RequestMapping','isDevelopmentEnvironment','defineProperty','2702380CNYtdA','1302543UKKrLD'];a4_0x12ba=function(){return _0x57726c;};return a4_0x12ba();}function Apitest(_0x2be73b=a4_0x28a18d(0xff),_0x5c85fc){return(_0x4ce40d,_0x11a29e,_0x4781fa)=>{const _0x4e0c5a=a4_0x1a69;return(0x0,core_1[_0x4e0c5a(0x109)])({'path':_0x2be73b,'requestMethod':_0x4e0c5a(0xfc)})(_0x4ce40d,_0x11a29e,_0x4781fa),_0x4781fa['value']=async function(..._0x11a351){const _0x55a25c=_0x4e0c5a;var _0x4f76cf;const _0x1a86a3=(_0x4f76cf=this[core_1[_0x55a25c(0xfd)]])===null||_0x4f76cf===void 0x0?void 0x0:_0x4f76cf[_0x55a25c(0x105)];if(_0x1a86a3&&_0x1a86a3[_0x55a25c(0x101)](_0x55a25c(0x102))){const _0x57e6d8=await _0x1a86a3[_0x55a25c(0xfa)]()['getAsync'](ApitestService_1['ApitestService']),_0x4ec9b3=await _0x1a86a3[_0x55a25c(0xfa)]()['getAsync'](core_1[_0x55a25c(0x107)]);return _0x4ec9b3[_0x55a25c(0x10a)]()&&(_0x5c85fc[_0x55a25c(0x110)]=!![]),await _0x57e6d8[_0x55a25c(0x116)](_0x5c85fc);}return'';},_0x4781fa;};}exports[a4_0x28a18d(0x106)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x3ab122=a5_0x5afa;(function(_0x2e61a4,_0x3a903e){const _0x2144a6=a5_0x5afa,_0x16787d=_0x2e61a4();while(!![]){try{const _0x23d907=-parseInt(_0x2144a6(0xd3))/0x1*(parseInt(_0x2144a6(0xcf))/0x2)+parseInt(_0x2144a6(0xd0))/0x3+-parseInt(_0x2144a6(0xd7))/0x4+-parseInt(_0x2144a6(0xd6))/0x5+-parseInt(_0x2144a6(0xe1))/0x6+-parseInt(_0x2144a6(0xc9))/0x7*(-parseInt(_0x2144a6(0xda))/0x8)+parseInt(_0x2144a6(0xd4))/0x9;if(_0x23d907===_0x3a903e)break;else _0x16787d['push'](_0x16787d['shift']());}catch(_0x5540f9){_0x16787d['push'](_0x16787d['shift']());}}}(a5_0x285d,0xc7de1));const a5_0x55f25d=(function(){let _0x2824ea=!![];return function(_0x40d1a5,_0x5210f8){const _0x39a12b=_0x2824ea?function(){const _0x2e0ba9=a5_0x5afa;if(_0x5210f8){const _0xb4d993=_0x5210f8[_0x2e0ba9(0xd9)](_0x40d1a5,arguments);return _0x5210f8=null,_0xb4d993;}}:function(){};return _0x2824ea=![],_0x39a12b;};}()),a5_0x3d4743=a5_0x55f25d(this,function(){const _0x4b7a2f=a5_0x5afa;return a5_0x3d4743['toString']()[_0x4b7a2f(0xe0)](_0x4b7a2f(0xd1))[_0x4b7a2f(0xc6)]()[_0x4b7a2f(0xdc)](a5_0x3d4743)[_0x4b7a2f(0xe0)](_0x4b7a2f(0xd1));});a5_0x3d4743();'use strict';function a5_0x5afa(_0x435e30,_0x507f69){const _0x1f20c5=a5_0x285d();return a5_0x5afa=function(_0x3d4743,_0x55f25d){_0x3d4743=_0x3d4743-0xc5;let _0x285d7d=_0x1f20c5[_0x3d4743];return _0x285d7d;},a5_0x5afa(_0x435e30,_0x507f69);}Object[a5_0x3ab122(0xcc)](exports,a5_0x3ab122(0xdd),{'value':!![]}),exports[a5_0x3ab122(0xde)]=exports[a5_0x3ab122(0xca)]=void 0x0;function a5_0x285d(){const _0x5dae4a=['IIntercept','../types/intercept','search','6093534XqzdDi','Provide','toString','InterceptTargetTmp','toUpperCase','7xrftEN','Intercept','Scope','defineProperty','@midwayjs/core','match','148iDXCgR','163374LfUQdX','(((.+)+)+)+$','INTERCEPT_KEY','20508CLGmeR','38488635ezfIJy','getClassMetadata','5996060aoHtZG','1325240AkxUZp','includes','apply','4411096ldVTKD','ScopeEnum','constructor','__esModule'];a5_0x285d=function(){return _0x5dae4a;};return a5_0x285d();}const core_1=require(a5_0x3ab122(0xcd)),intercept_1=require(a5_0x3ab122(0xdf));function Intercept(_0x58fb71){return _0x3c02db=>{const _0x69fcdd=a5_0x5afa,_0x2f54b6=(0x0,core_1[_0x69fcdd(0xd5)])(intercept_1[_0x69fcdd(0xd2)],intercept_1[_0x69fcdd(0xc7)])||{};for(let _0x2f11ca of Array['isArray'](_0x58fb71)?_0x58fb71:[_0x58fb71]){_0x2f11ca=_0x2f11ca[_0x69fcdd(0xc8)]();!(_0x2f54b6===null||_0x2f54b6===void 0x0?void 0x0:_0x2f54b6[_0x2f11ca])&&(_0x2f54b6[_0x2f11ca]=[]);if(_0x2f54b6[_0x2f11ca][_0x69fcdd(0xd8)](_0x3c02db))continue;_0x2f54b6[_0x2f11ca]['push'](_0x3c02db);}(0x0,core_1[_0x69fcdd(0xc5)])()(_0x3c02db),(0x0,core_1[_0x69fcdd(0xcb)])(core_1[_0x69fcdd(0xdb)]['Singleton'])(_0x3c02db),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x2f54b6,intercept_1['InterceptTargetTmp']);};}exports['Intercept']=Intercept;class IIntercept{async[a5_0x3ab122(0xce)](_0x2bd8d8,_0x219549,_0x49e97f){return!![];}}exports[a5_0x3ab122(0xde)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x30f17d=a6_0x2db9;(function(_0x43b462,_0x5c4b34){var _0x121683=a6_0x2db9,_0x2e126b=_0x43b462();while(!![]){try{var _0x20bce0=-parseInt(_0x121683(0x82))/0x1+-parseInt(_0x121683(0x7c))/0x2+parseInt(_0x121683(0x83))/0x3*(-parseInt(_0x121683(0x8b))/0x4)+parseInt(_0x121683(0x73))/0x5*(parseInt(_0x121683(0x7d))/0x6)+-parseInt(_0x121683(0x7b))/0x7*(-parseInt(_0x121683(0x6e))/0x8)+-parseInt(_0x121683(0x74))/0x9+-parseInt(_0x121683(0x7f))/0xa*(-parseInt(_0x121683(0x70))/0xb);if(_0x20bce0===_0x5c4b34)break;else _0x2e126b['push'](_0x2e126b['shift']());}catch(_0x1c6602){_0x2e126b['push'](_0x2e126b['shift']());}}}(a6_0x51eb,0xbda42));function a6_0x2db9(_0x122d3e,_0x4f8da7){var _0x3c3b20=a6_0x51eb();return a6_0x2db9=function(_0x3122e6,_0x41e5cf){_0x3122e6=_0x3122e6-0x69;var _0x51eb40=_0x3c3b20[_0x3122e6];return _0x51eb40;},a6_0x2db9(_0x122d3e,_0x4f8da7);}var a6_0x41e5cf=(function(){var _0x3c7aa4=!![];return function(_0x76e474,_0xd886a3){var _0x13bd8d=_0x3c7aa4?function(){var _0xa02c44=a6_0x2db9;if(_0xd886a3){var _0x3670ee=_0xd886a3[_0xa02c44(0x6c)](_0x76e474,arguments);return _0xd886a3=null,_0x3670ee;}}:function(){};return _0x3c7aa4=![],_0x13bd8d;};}()),a6_0x3122e6=a6_0x41e5cf(this,function(){var _0xeec7d5=a6_0x2db9;return a6_0x3122e6[_0xeec7d5(0x6a)]()[_0xeec7d5(0x6f)]('(((.+)+)+)+$')['toString']()[_0xeec7d5(0x78)](a6_0x3122e6)[_0xeec7d5(0x6f)](_0xeec7d5(0x85));});a6_0x3122e6();function a6_0x51eb(){var _0x2bc84e=['defineProperty','验证失败,请重新登录','design:type','请求头信息不完整','17180cGajEV','decorate','toString','HEADERS_SIGNATURE','apply','length','6032iQmySm','search','2312299HQPvQz','HEADERS_DEVICE','getOwnPropertyDescriptor','5ROxabT','7865388qmfajV','HEADERS_LACK','function','__metadata','constructor','object','请使用正确的设备','10227acaCJz','576110YQfIqn','83760ytBrqM','__decorate','140kmkIdX','TIMEOUT_LOGINTIME','metadata','895648xaMHtS','855lVJwaH','HEADERS_CHECKCODE','(((.+)+)+)+$','请求超时,请重试'];a6_0x51eb=function(){return _0x2bc84e;};return a6_0x51eb();}'use strict';var __decorate=this&&this[a6_0x30f17d(0x7e)]||function(_0x88d8e6,_0x213760,_0x52b9d9,_0x4e2072){var _0x3e74ec=a6_0x30f17d,_0x50ebb6=arguments[_0x3e74ec(0x6d)],_0xe6a98a=_0x50ebb6<0x3?_0x213760:_0x4e2072===null?_0x4e2072=Object[_0x3e74ec(0x72)](_0x213760,_0x52b9d9):_0x4e2072,_0x2566e6;if(typeof Reflect===_0x3e74ec(0x79)&&typeof Reflect[_0x3e74ec(0x69)]===_0x3e74ec(0x76))_0xe6a98a=Reflect[_0x3e74ec(0x69)](_0x88d8e6,_0x213760,_0x52b9d9,_0x4e2072);else{for(var _0x11446b=_0x88d8e6[_0x3e74ec(0x6d)]-0x1;_0x11446b>=0x0;_0x11446b--)if(_0x2566e6=_0x88d8e6[_0x11446b])_0xe6a98a=(_0x50ebb6<0x3?_0x2566e6(_0xe6a98a):_0x50ebb6>0x3?_0x2566e6(_0x213760,_0x52b9d9,_0xe6a98a):_0x2566e6(_0x213760,_0x52b9d9))||_0xe6a98a;}return _0x50ebb6>0x3&&_0xe6a98a&&Object[_0x3e74ec(0x87)](_0x213760,_0x52b9d9,_0xe6a98a),_0xe6a98a;},__metadata=this&&this[a6_0x30f17d(0x77)]||function(_0x4cd9e2,_0x53a8e7){var _0xee3554=a6_0x30f17d;if(typeof Reflect===_0xee3554(0x79)&&typeof Reflect[_0xee3554(0x81)]===_0xee3554(0x76))return Reflect[_0xee3554(0x81)](_0x4cd9e2,_0x53a8e7);};Object[a6_0x30f17d(0x87)](exports,'__esModule',{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}exports['ApiError']=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a6_0x30f17d(0x75)]=0x18e72,ApiError[a6_0x30f17d(0x71)]=0x18e73,ApiError[a6_0x30f17d(0x6b)]=0x18e74,ApiError[a6_0x30f17d(0x84)]=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a6_0x30f17d(0x86)),__metadata(a6_0x30f17d(0x89),Object)],ApiError,'TIMEOUT',void 0x0),__decorate([AnnErrorMsg(a6_0x30f17d(0x8a)),__metadata('design:type',Object)],ApiError,a6_0x30f17d(0x75),void 0x0),__decorate([AnnErrorMsg(a6_0x30f17d(0x7a)),__metadata(a6_0x30f17d(0x89),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0x30f17d(0x89),Object)],ApiError,a6_0x30f17d(0x6b),void 0x0),__decorate([AnnErrorMsg(a6_0x30f17d(0x88)),__metadata('design:type',Object)],ApiError,a6_0x30f17d(0x84),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,a6_0x30f17d(0x80),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x41d5cc=a7_0x1ade;function a7_0x1308(){const _0x2e1c16=['getClassMetadata','APPSCONFIG_KEY','4102084IjrTbk','AppsConfigTmp','(((.+)+)+)+$','getAppsConfig','78677YKHsTQ','../types/action','5fZqgAX','74598VeXtzU','__esModule','80ZghNRm','407034wziNwo','apply','toString','1144224qyujNh','get','861408IpgWaN','constructor','1843755EaBDAD','defineProperty','search'];a7_0x1308=function(){return _0x2e1c16;};return a7_0x1308();}(function(_0xaa8412,_0x39d455){const _0x4bf5de=a7_0x1ade,_0x163d93=_0xaa8412();while(!![]){try{const _0x23a24f=parseInt(_0x4bf5de(0xe6))/0x1+parseInt(_0x4bf5de(0xef))/0x2+-parseInt(_0x4bf5de(0xdd))/0x3+parseInt(_0x4bf5de(0xf1))/0x4+parseInt(_0x4bf5de(0xe8))/0x5*(-parseInt(_0x4bf5de(0xe9))/0x6)+parseInt(_0x4bf5de(0xe2))/0x7+parseInt(_0x4bf5de(0xeb))/0x8*(-parseInt(_0x4bf5de(0xec))/0x9);if(_0x23a24f===_0x39d455)break;else _0x163d93['push'](_0x163d93['shift']());}catch(_0x5242f2){_0x163d93['push'](_0x163d93['shift']());}}}(a7_0x1308,0x5b08b));const a7_0x45581a=(function(){let _0x569311=!![];return function(_0x1834b9,_0x2ee1e0){const _0x5cbe9b=_0x569311?function(){const _0x49cd15=a7_0x1ade;if(_0x2ee1e0){const _0x37d8b8=_0x2ee1e0[_0x49cd15(0xed)](_0x1834b9,arguments);return _0x2ee1e0=null,_0x37d8b8;}}:function(){};return _0x569311=![],_0x5cbe9b;};}()),a7_0x1a4f6c=a7_0x45581a(this,function(){const _0x562972=a7_0x1ade;return a7_0x1a4f6c[_0x562972(0xee)]()[_0x562972(0xdf)]('(((.+)+)+)+$')[_0x562972(0xee)]()[_0x562972(0xf2)](a7_0x1a4f6c)[_0x562972(0xdf)](_0x562972(0xe4));});a7_0x1a4f6c();'use strict';function a7_0x1ade(_0x5570ae,_0xf8fc5f){const _0x40cba6=a7_0x1308();return a7_0x1ade=function(_0x1a4f6c,_0x45581a){_0x1a4f6c=_0x1a4f6c-0xdd;let _0x130890=_0x40cba6[_0x1a4f6c];return _0x130890;},a7_0x1ade(_0x5570ae,_0xf8fc5f);}Object[a7_0x41d5cc(0xde)](exports,a7_0x41d5cc(0xea),{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x41d5cc(0xe7));function getAppsConfig(_0x3bd30b){const _0x24c21e=a7_0x41d5cc,_0x3cf26b=(0x0,core_1[_0x24c21e(0xe0)])(action_1[_0x24c21e(0xe1)],action_1[_0x24c21e(0xe3)])||{};return _0x3bd30b?lodash[_0x24c21e(0xf0)](_0x3cf26b,_0x3bd30b):_0x3cf26b;}exports[a7_0x41d5cc(0xe5)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x26d479=a8_0x16d1;(function(_0x5a6332,_0x5eff32){const _0x4a7c75=a8_0x16d1,_0x5948e2=_0x5a6332();while(!![]){try{const _0x30532e=parseInt(_0x4a7c75(0x1e8))/0x1+parseInt(_0x4a7c75(0x1d2))/0x2+-parseInt(_0x4a7c75(0x1f0))/0x3+parseInt(_0x4a7c75(0x1ae))/0x4+parseInt(_0x4a7c75(0x1b5))/0x5+parseInt(_0x4a7c75(0x1ca))/0x6+-parseInt(_0x4a7c75(0x1ed))/0x7;if(_0x30532e===_0x5eff32)break;else _0x5948e2['push'](_0x5948e2['shift']());}catch(_0x4fb402){_0x5948e2['push'](_0x5948e2['shift']());}}}(a8_0x7890,0x48ea6));const a8_0x15a8aa=(function(){let _0x3a03cd=!![];return function(_0x474eff,_0x1c393b){const _0x2f3b4b=_0x3a03cd?function(){if(_0x1c393b){const _0x46495a=_0x1c393b['apply'](_0x474eff,arguments);return _0x1c393b=null,_0x46495a;}}:function(){};return _0x3a03cd=![],_0x2f3b4b;};}()),a8_0x272ddd=a8_0x15a8aa(this,function(){const _0x559424=a8_0x16d1;return a8_0x272ddd[_0x559424(0x199)]()['search'](_0x559424(0x1a9))['toString']()[_0x559424(0x1be)](a8_0x272ddd)['search'](_0x559424(0x1a9));});a8_0x272ddd();'use strict';Object[a8_0x26d479(0x1c4)](exports,a8_0x26d479(0x1cd),{'value':!![]}),exports[a8_0x26d479(0x1c6)]=void 0x0;function a8_0x16d1(_0xb77211,_0x3d9fd3){const _0x388104=a8_0x7890();return a8_0x16d1=function(_0x272ddd,_0x15a8aa){_0x272ddd=_0x272ddd-0x196;let _0x7890f=_0x388104[_0x272ddd];return _0x7890f;},a8_0x16d1(_0xb77211,_0x3d9fd3);}const lodash_1=require(a8_0x26d479(0x1b1)),validator_1=require(a8_0x26d479(0x1a4)),core_1=require(a8_0x26d479(0x197)),core_2=require(a8_0x26d479(0x197)),core_3=require(a8_0x26d479(0x197)),action_1=require(a8_0x26d479(0x1e4));function getRoutes(_0x40934b={'prefix':'/','module':![]}){const _0x2e7ef3=a8_0x26d479;var _0x1fd872,_0x19f34c;const _0x9e56eb=(0x0,core_3['listModule'])(action_1[_0x2e7ef3(0x1ac)]),_0xb71e5={},_0x575fe0=Array[_0x2e7ef3(0x1ee)](_0x40934b[_0x2e7ef3(0x1e1)]||[])?_0x40934b[_0x2e7ef3(0x1e1)]||[]:[_0x40934b['filter']];_0x3e2bff:for(const _0x32b085 of _0x9e56eb){let _0xa59d94=(0x0,core_3[_0x2e7ef3(0x1c8)])(action_1['ACTION_KEY'],_0x32b085),_0x1ae0cf=(0x0,core_3[_0x2e7ef3(0x1c8)])(action_1[_0x2e7ef3(0x1de)],_0x32b085);if(_0xa59d94&&_0x1ae0cf){let _0x43a219=_0xa59d94['prefix'],_0xd3988d={};if(_0x40934b[_0x2e7ef3(0x1d7)]&&(0x0,lodash_1['get'])(_0xa59d94,_0x2e7ef3(0x1d7),![])!=_0x40934b[_0x2e7ef3(0x1d7)])continue _0x3e2bff;else{if(_0x40934b['module']===![]&&!!(0x0,lodash_1['get'])(_0xa59d94,_0x2e7ef3(0x1d7),null))continue _0x3e2bff;}if(_0x40934b[_0x2e7ef3(0x19a)]&&!_0x43a219[_0x2e7ef3(0x1d1)](_0x40934b['prefix']))continue _0x3e2bff;_0x43a219!=='/'?(_0xd3988d[_0x2e7ef3(0x1bd)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1b6)])||(/^\//['test'](_0x43a219)?_0x43a219[_0x2e7ef3(0x1e6)]('/')[0x1]:_0x43a219),_0xd3988d['description']=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1e2)])||_0xd3988d[_0x2e7ef3(0x1bd)],_0xd3988d['routes']=[]):(_0xd3988d[_0x2e7ef3(0x1bd)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1e9)][_0x2e7ef3(0x1b6)])||'default',_0xd3988d[_0x2e7ef3(0x1e2)]=(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94['routerOptions']['description'])||'',_0xd3988d[_0x2e7ef3(0x1a6)]=[]);_0x40934b[_0x2e7ef3(0x1b3)]&&(_0xd3988d['filepath']=_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1b3)]);(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1c5)])&&(_0xd3988d['prefix']=_0xa59d94[_0x2e7ef3(0x1c5)]);(_0xa59d94===null||_0xa59d94===void 0x0?void 0x0:_0xa59d94[_0x2e7ef3(0x1d7)])&&(_0xd3988d[_0x2e7ef3(0x1d7)]=_0xa59d94[_0x2e7ef3(0x1d7)]);let _0x474ed8=(0x0,core_3['getClassMetadata'])(core_2['INJECT_CUSTOM_PARAM'],_0x32b085)||{};if(typeof _0x1ae0cf[Symbol[_0x2e7ef3(0x1d3)]]===_0x2e7ef3(0x1dd))for(let _0x8f7ee3 of _0x1ae0cf){if((_0x40934b===null||_0x40934b===void 0x0?void 0x0:_0x40934b[_0x2e7ef3(0x1b0)])&&!(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3[_0x2e7ef3(0x1b0)]))continue;let _0x504ad9={};_0x504ad9[_0x2e7ef3(0x1a5)]=_0x8f7ee3[_0x2e7ef3(0x1c7)],_0x504ad9[_0x2e7ef3(0x19e)]=(_0x43a219+_0x8f7ee3[_0x2e7ef3(0x1bc)])['replace'](/\/{2,}/g,'/'),_0x504ad9['summary']=(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3['routerName'])||_0xd3988d['summary']||_0x2e7ef3(0x1ba),_0x504ad9[_0x2e7ef3(0x1e2)]=(_0x8f7ee3===null||_0x8f7ee3===void 0x0?void 0x0:_0x8f7ee3['description'])||'',_0x504ad9[_0x2e7ef3(0x1dc)]=[];_0x504ad9[_0x2e7ef3(0x19e)][_0x2e7ef3(0x1f2)]('/')&&(_0x504ad9[_0x2e7ef3(0x19e)]=_0x504ad9['route'][_0x2e7ef3(0x1a0)](0x0,_0x504ad9[_0x2e7ef3(0x19e)][_0x2e7ef3(0x1ec)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x504ad9[_0x2e7ef3(0x19e)],_0x2e7ef3(0x1e7))&&!(0x0,lodash_1[_0x2e7ef3(0x1d1)])(_0x504ad9[_0x2e7ef3(0x19e)],'/static/apitest')&&_0x575fe0[_0x2e7ef3(0x1a8)](_0x504ad9[_0x2e7ef3(0x19e)])===-0x1){if(!(_0x40934b===null||_0x40934b===void 0x0?void 0x0:_0x40934b[_0x2e7ef3(0x1d6)])){let _0x25a253=(0x0,core_3[_0x2e7ef3(0x1c2)])(new _0x32b085(),_0x8f7ee3[_0x2e7ef3(0x1a5)]);for(const _0x16a760 in _0x25a253){let _0x7a368d=(_0x1fd872=_0x474ed8[_0x8f7ee3[_0x2e7ef3(0x1a5)]])===null||_0x1fd872===void 0x0?void 0x0:_0x1fd872[_0x2e7ef3(0x1e0)](_0x3b1cd0=>_0x3b1cd0['parameterIndex']==_0x16a760&&_0x3b1cd0[_0x2e7ef3(0x1d8)]===core_2[_0x2e7ef3(0x19f)]&&(_0x3b1cd0===null||_0x3b1cd0===void 0x0?void 0x0:_0x3b1cd0[_0x2e7ef3(0x19c)]));if(_0x7a368d===null||_0x7a368d===void 0x0?void 0x0:_0x7a368d[_0x2e7ef3(0x19c)]){let _0x2515b6=convertTypeToString(_0x7a368d[_0x2e7ef3(0x19c)]['type']||0x0);if([_0x2e7ef3(0x1c0),_0x2e7ef3(0x1ce)][_0x2e7ef3(0x1a8)](_0x2515b6)!=-0x1&&_0x7a368d['metadata']['propertyData'][_0x2e7ef3(0x1a8)](':')==-0x1&&!_0x504ad9[_0x2e7ef3(0x1dc)]['find'](_0x12b68a=>_0x12b68a['key']==_0x7a368d['metadata'][_0x2e7ef3(0x1cb)]))_0x504ad9[_0x2e7ef3(0x1dc)][_0x2e7ef3(0x1c1)]({'key':_0x7a368d[_0x2e7ef3(0x19c)]['propertyData'],'title':_0x7a368d[_0x2e7ef3(0x19c)][_0x2e7ef3(0x1cb)],'type':convertSchemaType(_0x25a253[_0x7a368d[_0x2e7ef3(0x1cc)]]['name']),'required':![],'default':'','desc':''});else{if(_0x2515b6==_0x2e7ef3(0x1d5)){let _0x124f10=((_0x19f34c=_0x7a368d===null||_0x7a368d===void 0x0?void 0x0:_0x7a368d[_0x2e7ef3(0x19c)])===null||_0x19f34c===void 0x0?void 0x0:_0x19f34c[_0x2e7ef3(0x1cb)])||'file';_0x124f10[_0x2e7ef3(0x1a8)](':')==-0x1&&!_0x504ad9['request'][_0x2e7ef3(0x1e0)](_0x21eed7=>_0x21eed7[_0x2e7ef3(0x1d8)]==_0x124f10&&_0x21eed7['type']==_0x2e7ef3(0x1d5))&&_0x504ad9[_0x2e7ef3(0x1dc)][_0x2e7ef3(0x1c1)]({'key':_0x124f10,'title':'文件上传-'+_0x124f10,'type':_0x2e7ef3(0x1d5),'required':!![],'default':'','desc':''});}}}else{const _0x4fef56=(0x0,core_3[_0x2e7ef3(0x19b)])(validator_1[_0x2e7ef3(0x1bf)],_0x25a253[_0x16a760]);_0x4fef56&&_0x504ad9[_0x2e7ef3(0x1dc)]['push'](...getJoiRequest(_0x4fef56));}}}_0xd3988d[_0x2e7ef3(0x1a6)]['push'](_0x504ad9);}}if(_0xd3988d['routes'][_0x2e7ef3(0x1ec)]>0x0){let _0x3569dc=_0xb71e5[_0x43a219];_0x3569dc?(_0x3569dc['summary']!=_0xd3988d[_0x2e7ef3(0x1bd)]&&(_0x3569dc['summary']=_0x3569dc[_0x2e7ef3(0x1bd)]+','+_0xd3988d[_0x2e7ef3(0x1bd)]),_0x3569dc[_0x2e7ef3(0x1e2)]!=_0xd3988d['description']&&(_0x3569dc[_0x2e7ef3(0x1e2)]=_0x3569dc[_0x2e7ef3(0x1e2)]+','+_0xd3988d[_0x2e7ef3(0x1e2)]),_0x3569dc['routes']=_0x3569dc[_0x2e7ef3(0x1a6)]['concat'](_0xd3988d[_0x2e7ef3(0x1a6)]),_0xb71e5[_0x43a219]=_0x3569dc):_0xb71e5[_0x43a219]=_0xd3988d;}}}return _0xb71e5;}exports['getRoutes']=getRoutes;function a8_0x7890(){const _0x575e28=['7307090EHjzBF','isArray','flags.default','172629eCoBYJ','args','endsWith','RouteParamTypes','items','@midwayjs/core','keys','toString','prefix','getClassExtendedMetadata','metadata','rules','route','WEB_ROUTER_PARAM_KEY','substring','Boolean','flags.presence','type','@anncic-api/validator','method','routes','number','indexOf','(((.+)+)+)+$','limit','QUERY','ACTION_KEY','object','1489836AepkmA','get','intercept','lodash','name','filepath','只允许:[','75000CEjErn','tagName','string','join','flags.description','default','Object','path','summary','constructor','RULES_KEY','query','push','getMethodParamTypes','min','defineProperty','pprefix','getRoutes','requestMethod','getClassMetadata','BODY','2100438xgesyg','propertyData','parameterIndex','__esModule','body','FIELDS','FILESTREAM','startsWith','1091130aFEkNt','iterator','boolean','file','noreq','module','key','describe','required','array','request','function','ACTION_ROUTE_KEY','allow','find','filter','description','FILESSTREAM','../types/action','header','split','static/apitest','116978GJncSU','routerOptions','PARAM','max','length'];a8_0x7890=function(){return _0x575e28;};return a8_0x7890();}function getJoiRequest(_0x38fcb5){const _0x1b3e73=a8_0x26d479,_0x16f621=[];for(let _0x5e248a in _0x38fcb5){const _0x2114cc={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x5a6574=typeof _0x38fcb5[_0x5e248a][_0x1b3e73(0x1d9)]==_0x1b3e73(0x1dd)?_0x38fcb5[_0x5e248a][_0x1b3e73(0x1d9)]():_0x38fcb5[_0x5e248a];_0x2114cc[_0x1b3e73(0x1d8)]=_0x5e248a,_0x2114cc[_0x1b3e73(0x1a3)]=_0x5a6574[_0x1b3e73(0x1a3)],_0x2114cc['title']=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,'flags.label',_0x5e248a),_0x2114cc['default']=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,_0x1b3e73(0x1ef),''),_0x2114cc[_0x1b3e73(0x1da)]=(0x0,lodash_1[_0x1b3e73(0x1af)])(_0x5a6574,_0x1b3e73(0x1a2),'')==_0x1b3e73(0x1da),_0x2114cc[_0x1b3e73(0x1e2)]=(0x0,lodash_1['get'])(_0x5a6574,_0x1b3e73(0x1b9),'');if(_0x5a6574[_0x1b3e73(0x1a3)]=='object')_0x2114cc['children']=getJoiRequest(_0x5a6574[_0x1b3e73(0x198)]);else{if(_0x5a6574[_0x1b3e73(0x1a3)]==_0x1b3e73(0x1db)&&_0x5a6574[_0x1b3e73(0x196)]&&Array[_0x1b3e73(0x1ee)](_0x5a6574['items'])&&_0x5a6574['items'][0x0]){}}_0x5a6574['allow']&&Array[_0x1b3e73(0x1ee)](_0x5a6574['allow'])&&_0x5a6574[_0x1b3e73(0x1df)][_0x1b3e73(0x1ec)]>0x0&&(_0x2114cc[_0x1b3e73(0x1e2)]=_0x1b3e73(0x1b4)+_0x5a6574[_0x1b3e73(0x1df)][_0x1b3e73(0x1b8)](',')+'];'+_0x2114cc[_0x1b3e73(0x1e2)]);if(_0x2114cc[_0x1b3e73(0x1d8)]&&_0x2114cc[_0x1b3e73(0x1a3)]){const _0x1f0fa6={};for(const _0x2bfbe4 of _0x5a6574['rules']||[]){if(_0x2bfbe4['name']===_0x1b3e73(0x1c3)&&_0x2bfbe4['args'])_0x1f0fa6[_0x1b3e73(0x1c3)]=_0x2bfbe4['args'][_0x1b3e73(0x1aa)];else _0x2bfbe4[_0x1b3e73(0x1b2)]===_0x1b3e73(0x1eb)&&(_0x1f0fa6[_0x1b3e73(0x1eb)]=_0x2bfbe4[_0x1b3e73(0x1f1)]['limit']);}_0x2114cc[_0x1b3e73(0x19d)]=_0x1f0fa6;}_0x2114cc[_0x1b3e73(0x1d8)]&&_0x2114cc['title']&&_0x16f621[_0x1b3e73(0x1c1)](_0x2114cc);}return _0x16f621;}function convertSchemaType(_0x28c1fa){const _0x2d2980=a8_0x26d479;switch(_0x28c1fa){case _0x2d2980(0x1bb):return _0x2d2980(0x1ad);case _0x2d2980(0x1a1):return _0x2d2980(0x1d4);case'Number':return _0x2d2980(0x1a7);case'String':return _0x2d2980(0x1b7);case'File':return _0x2d2980(0x1d5);default:return _0x2d2980(0x1b7);}}function convertTypeToString(_0x42f103){const _0x5aaa8b=a8_0x26d479;switch(_0x42f103){case core_1[_0x5aaa8b(0x1f3)]['HEADERS']:return'header';case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1ab)]:return _0x5aaa8b(0x1c0);case core_1['RouteParamTypes'][_0x5aaa8b(0x1ea)]:return _0x5aaa8b(0x1bc);case core_1['RouteParamTypes'][_0x5aaa8b(0x1c9)]:return _0x5aaa8b(0x1ce);case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1cf)]:case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1e3)]:case core_1[_0x5aaa8b(0x1f3)][_0x5aaa8b(0x1d0)]:return _0x5aaa8b(0x1d5);default:return _0x5aaa8b(0x1e5);}}
|
|
1
|
+
function a8_0xe71b(_0x10cda3,_0x4c5546){const _0x2b29cc=a8_0x2c1d();return a8_0xe71b=function(_0x31170,_0x2df85e){_0x31170=_0x31170-0xba;let _0x2c1d6d=_0x2b29cc[_0x31170];return _0x2c1d6d;},a8_0xe71b(_0x10cda3,_0x4c5546);}const a8_0x1c20f4=a8_0xe71b;(function(_0x38bd50,_0x5d00e7){const _0x336e6e=a8_0xe71b,_0x52b723=_0x38bd50();while(!![]){try{const _0x3693d8=parseInt(_0x336e6e(0xfe))/0x1*(parseInt(_0x336e6e(0xf6))/0x2)+parseInt(_0x336e6e(0xf2))/0x3*(parseInt(_0x336e6e(0xde))/0x4)+-parseInt(_0x336e6e(0xf4))/0x5+-parseInt(_0x336e6e(0xca))/0x6+-parseInt(_0x336e6e(0x10a))/0x7+parseInt(_0x336e6e(0xd2))/0x8*(parseInt(_0x336e6e(0xd5))/0x9)+parseInt(_0x336e6e(0xeb))/0xa;if(_0x3693d8===_0x5d00e7)break;else _0x52b723['push'](_0x52b723['shift']());}catch(_0x1792d4){_0x52b723['push'](_0x52b723['shift']());}}}(a8_0x2c1d,0xeb381));const a8_0x2df85e=(function(){let _0x36a67e=!![];return function(_0x33e597,_0x45932f){const _0x22a6d0=_0x36a67e?function(){if(_0x45932f){const _0x2b34db=_0x45932f['apply'](_0x33e597,arguments);return _0x45932f=null,_0x2b34db;}}:function(){};return _0x36a67e=![],_0x22a6d0;};}()),a8_0x31170=a8_0x2df85e(this,function(){const _0x3a0d74=a8_0xe71b;return a8_0x31170[_0x3a0d74(0x114)]()[_0x3a0d74(0xe0)](_0x3a0d74(0xed))[_0x3a0d74(0x114)]()['constructor'](a8_0x31170)[_0x3a0d74(0xe0)](_0x3a0d74(0xed));});a8_0x31170();'use strict';Object[a8_0x1c20f4(0xe4)](exports,a8_0x1c20f4(0xc4),{'value':!![]}),exports[a8_0x1c20f4(0xda)]=void 0x0;const lodash_1=require(a8_0x1c20f4(0xcb)),validator_1=require(a8_0x1c20f4(0x110)),core_1=require(a8_0x1c20f4(0x118)),core_2=require(a8_0x1c20f4(0x118)),core_3=require(a8_0x1c20f4(0x118)),action_1=require('../types/action');function getRoutes(_0x16065c={'prefix':'/','module':![]}){const _0x2b5333=a8_0x1c20f4;var _0xbfa764,_0x3a7036;const _0x1b7099=(0x0,core_3[_0x2b5333(0xe3)])(action_1[_0x2b5333(0xbd)]),_0x571180={},_0x2e8e75=Array[_0x2b5333(0xff)](_0x16065c['filter']||[])?_0x16065c[_0x2b5333(0x10f)]||[]:[_0x16065c[_0x2b5333(0x10f)]];_0x53bf73:for(const _0x22def5 of _0x1b7099){let _0x5ad5ed=(0x0,core_3['getClassMetadata'])(action_1['ACTION_KEY'],_0x22def5),_0xdc30eb=(0x0,core_3[_0x2b5333(0xce)])(action_1[_0x2b5333(0xdb)],_0x22def5);if(_0x5ad5ed&&_0xdc30eb){let _0x3c4b7c=_0x5ad5ed[_0x2b5333(0xdf)],_0x1ecc63={};if(_0x16065c[_0x2b5333(0xf0)]&&(0x0,lodash_1[_0x2b5333(0xfd)])(_0x5ad5ed,_0x2b5333(0xf0),![])!=_0x16065c[_0x2b5333(0xf0)])continue _0x53bf73;else{if(_0x16065c[_0x2b5333(0xf0)]===![]&&!!(0x0,lodash_1[_0x2b5333(0xfd)])(_0x5ad5ed,_0x2b5333(0xf0),null))continue _0x53bf73;}if(_0x16065c[_0x2b5333(0xdf)]&&!_0x3c4b7c[_0x2b5333(0xba)](_0x16065c[_0x2b5333(0xdf)]))continue _0x53bf73;_0x3c4b7c!=='/'?(_0x1ecc63[_0x2b5333(0xbe)]=(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed['routerOptions'][_0x2b5333(0x11a)])||(/^\//[_0x2b5333(0xd7)](_0x3c4b7c)?_0x3c4b7c[_0x2b5333(0xf7)]('/')[0x1]:_0x3c4b7c),_0x1ecc63[_0x2b5333(0x116)]=(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed[_0x2b5333(0x101)][_0x2b5333(0x116)])||_0x1ecc63[_0x2b5333(0xbe)],_0x1ecc63[_0x2b5333(0xf9)]=[]):(_0x1ecc63['summary']=(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed['routerOptions'][_0x2b5333(0x11a)])||_0x2b5333(0xc5),_0x1ecc63[_0x2b5333(0x116)]=(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed[_0x2b5333(0x101)][_0x2b5333(0x116)])||'',_0x1ecc63[_0x2b5333(0xf9)]=[]);_0x16065c[_0x2b5333(0x10c)]&&(_0x1ecc63[_0x2b5333(0x10c)]=_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed['filepath']);(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed[_0x2b5333(0xd1)])&&(_0x1ecc63[_0x2b5333(0xdf)]=_0x5ad5ed[_0x2b5333(0xd1)]);(_0x5ad5ed===null||_0x5ad5ed===void 0x0?void 0x0:_0x5ad5ed['module'])&&(_0x1ecc63[_0x2b5333(0xf0)]=_0x5ad5ed[_0x2b5333(0xf0)]);let _0xdb8272=(0x0,core_3['getClassMetadata'])(core_2[_0x2b5333(0x104)],_0x22def5)||{};if(typeof _0xdc30eb[Symbol['iterator']]===_0x2b5333(0x115))for(let _0x488b7c of _0xdc30eb){if((_0x16065c===null||_0x16065c===void 0x0?void 0x0:_0x16065c['intercept'])&&!(_0x488b7c===null||_0x488b7c===void 0x0?void 0x0:_0x488b7c[_0x2b5333(0xf5)]))continue;let _0x56f37f={};_0x56f37f[_0x2b5333(0x109)]=_0x488b7c['requestMethod'],_0x56f37f[_0x2b5333(0x100)]=(_0x3c4b7c+_0x488b7c[_0x2b5333(0xe5)])[_0x2b5333(0xe6)](/\/{2,}/g,'/'),_0x56f37f[_0x2b5333(0xbe)]=(_0x488b7c===null||_0x488b7c===void 0x0?void 0x0:_0x488b7c[_0x2b5333(0xbc)])||_0x1ecc63[_0x2b5333(0xbe)]||_0x2b5333(0xc5),_0x56f37f[_0x2b5333(0x116)]=(_0x488b7c===null||_0x488b7c===void 0x0?void 0x0:_0x488b7c['description'])||'',_0x56f37f[_0x2b5333(0x119)]=[];_0x56f37f['route'][_0x2b5333(0xd3)]('/')&&(_0x56f37f[_0x2b5333(0x100)]=_0x56f37f['route'][_0x2b5333(0xf8)](0x0,_0x56f37f[_0x2b5333(0x100)]['length']-0x1));if(!(0x0,lodash_1['startsWith'])(_0x56f37f[_0x2b5333(0x100)],_0x2b5333(0xc1))&&!(0x0,lodash_1[_0x2b5333(0xba)])(_0x56f37f[_0x2b5333(0x100)],_0x2b5333(0xbf))&&_0x2e8e75[_0x2b5333(0xec)](_0x56f37f['route'])===-0x1){if(!(_0x16065c===null||_0x16065c===void 0x0?void 0x0:_0x16065c[_0x2b5333(0xe9)])){let _0x4d99a9=(0x0,core_3['getMethodParamTypes'])(new _0x22def5(),_0x488b7c[_0x2b5333(0x109)]);for(const _0x3d6d67 in _0x4d99a9){let _0x7f4398=(_0xbfa764=_0xdb8272[_0x488b7c[_0x2b5333(0x109)]])===null||_0xbfa764===void 0x0?void 0x0:_0xbfa764[_0x2b5333(0xc0)](_0x23c2d0=>_0x23c2d0[_0x2b5333(0xfb)]==_0x3d6d67&&_0x23c2d0[_0x2b5333(0xc7)]===core_2[_0x2b5333(0xd4)]&&(_0x23c2d0===null||_0x23c2d0===void 0x0?void 0x0:_0x23c2d0[_0x2b5333(0xbb)]));if(_0x7f4398===null||_0x7f4398===void 0x0?void 0x0:_0x7f4398['metadata']){let _0xd5cb5d=convertTypeToString(_0x7f4398[_0x2b5333(0xbb)][_0x2b5333(0xc8)]||0x0);if([_0x2b5333(0x113),_0x2b5333(0xdd)][_0x2b5333(0xec)](_0xd5cb5d)!=-0x1&&_0x7f4398['metadata'][_0x2b5333(0xee)][_0x2b5333(0xec)](':')==-0x1&&!_0x56f37f[_0x2b5333(0x119)]['find'](_0x1ef341=>_0x1ef341[_0x2b5333(0xc7)]==_0x7f4398[_0x2b5333(0xbb)][_0x2b5333(0xee)]))_0x56f37f[_0x2b5333(0x119)][_0x2b5333(0x106)]({'key':_0x7f4398['metadata'][_0x2b5333(0xee)],'title':_0x7f4398[_0x2b5333(0xbb)][_0x2b5333(0xee)],'type':convertSchemaType(_0x4d99a9[_0x7f4398[_0x2b5333(0xfb)]][_0x2b5333(0x111)]),'required':![],'default':'','desc':''});else{if(_0xd5cb5d=='file'){let _0x1153cc=((_0x3a7036=_0x7f4398===null||_0x7f4398===void 0x0?void 0x0:_0x7f4398[_0x2b5333(0xbb)])===null||_0x3a7036===void 0x0?void 0x0:_0x3a7036[_0x2b5333(0xee)])||'file';_0x1153cc[_0x2b5333(0xec)](':')==-0x1&&!_0x56f37f['request']['find'](_0x5295f8=>_0x5295f8[_0x2b5333(0xc7)]==_0x1153cc&&_0x5295f8[_0x2b5333(0xc8)]==_0x2b5333(0xc3))&&_0x56f37f[_0x2b5333(0x119)][_0x2b5333(0x106)]({'key':_0x1153cc,'title':_0x2b5333(0xd9)+_0x1153cc,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x59748d=(0x0,core_3[_0x2b5333(0xc9)])(validator_1['RULES_KEY'],_0x4d99a9[_0x3d6d67]);_0x59748d&&_0x56f37f[_0x2b5333(0x119)]['push'](...getJoiRequest(_0x59748d));}}}_0x1ecc63['routes']['push'](_0x56f37f);}}if(_0x1ecc63[_0x2b5333(0xf9)][_0x2b5333(0xdc)]>0x0){let _0x2726c2=_0x571180[_0x3c4b7c];_0x2726c2?(_0x2726c2[_0x2b5333(0xbe)]!=_0x1ecc63['summary']&&(_0x2726c2[_0x2b5333(0xbe)]=_0x2726c2['summary']+','+_0x1ecc63[_0x2b5333(0xbe)]),_0x2726c2['description']!=_0x1ecc63['description']&&(_0x2726c2['description']=_0x2726c2[_0x2b5333(0x116)]+','+_0x1ecc63[_0x2b5333(0x116)]),_0x2726c2['routes']=_0x2726c2['routes'][_0x2b5333(0xe8)](_0x1ecc63[_0x2b5333(0xf9)]),_0x571180[_0x3c4b7c]=_0x2726c2):_0x571180[_0x3c4b7c]=_0x1ecc63;}}}return _0x571180;}exports[a8_0x1c20f4(0xda)]=getRoutes;function a8_0x2c1d(){const _0x285cf3=['rules','listModule','defineProperty','path','replace','String','concat','noreq','flags.description','476420aYjuZX','indexOf','(((.+)+)+)+$','propertyData','Number','module','flags.presence','3epDYbb','title','2177555cCCwIn','intercept','745406pGuPUq','split','substring','routes','RouteParamTypes','parameterIndex','limit','get','3IJWieP','isArray','route','routerOptions','min','只允许:[','INJECT_CUSTOM_PARAM','describe','push','Boolean','allow','method','1342880zioBKy','PARAM','filepath','File','required','filter','@anncic-api/validator','name','boolean','query','toString','function','description','header','@midwayjs/core','request','tagName','items','HEADERS','string','startsWith','metadata','routerName','ACTION_KEY','summary','/static/apitest','find','static/apitest','QUERY','file','__esModule','default','object','key','type','getClassExtendedMetadata','7843296AhwBeP','lodash','FILESSTREAM','join','getClassMetadata','max','array','pprefix','1746904LkjFnW','endsWith','WEB_ROUTER_PARAM_KEY','36aanwpx','args','test','BODY','文件上传-','getRoutes','ACTION_ROUTE_KEY','length','body','3435284hrsOpi','prefix','search','keys'];a8_0x2c1d=function(){return _0x285cf3;};return a8_0x2c1d();}function getJoiRequest(_0x587d8e){const _0x372a32=a8_0x1c20f4,_0x547fee=[];for(let _0x44aba4 in _0x587d8e){const _0x222d33={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x12ec1c=typeof _0x587d8e[_0x44aba4][_0x372a32(0x105)]=='function'?_0x587d8e[_0x44aba4][_0x372a32(0x105)]():_0x587d8e[_0x44aba4];_0x222d33[_0x372a32(0xc7)]=_0x44aba4,_0x222d33[_0x372a32(0xc8)]=_0x12ec1c[_0x372a32(0xc8)],_0x222d33[_0x372a32(0xf3)]=(0x0,lodash_1[_0x372a32(0xfd)])(_0x12ec1c,'flags.label',_0x44aba4),_0x222d33[_0x372a32(0xc5)]=(0x0,lodash_1[_0x372a32(0xfd)])(_0x12ec1c,'flags.default',''),_0x222d33[_0x372a32(0x10e)]=(0x0,lodash_1[_0x372a32(0xfd)])(_0x12ec1c,_0x372a32(0xf1),'')==_0x372a32(0x10e),_0x222d33['description']=(0x0,lodash_1[_0x372a32(0xfd)])(_0x12ec1c,_0x372a32(0xea),'');if(_0x12ec1c[_0x372a32(0xc8)]=='object')_0x222d33['children']=getJoiRequest(_0x12ec1c[_0x372a32(0xe1)]);else{if(_0x12ec1c['type']==_0x372a32(0xd0)&&_0x12ec1c['items']&&Array[_0x372a32(0xff)](_0x12ec1c['items'])&&_0x12ec1c[_0x372a32(0x11b)][0x0]){}}_0x12ec1c['allow']&&Array[_0x372a32(0xff)](_0x12ec1c['allow'])&&_0x12ec1c['allow'][_0x372a32(0xdc)]>0x0&&(_0x222d33[_0x372a32(0x116)]=_0x372a32(0x103)+_0x12ec1c[_0x372a32(0x108)][_0x372a32(0xcd)](',')+'];'+_0x222d33['description']);if(_0x222d33[_0x372a32(0xc7)]&&_0x222d33[_0x372a32(0xc8)]){const _0x29d2c4={};for(const _0x471e6d of _0x12ec1c[_0x372a32(0xe2)]||[]){if(_0x471e6d['name']==='min'&&_0x471e6d[_0x372a32(0xd6)])_0x29d2c4[_0x372a32(0x102)]=_0x471e6d['args']['limit'];else _0x471e6d['name']===_0x372a32(0xcf)&&(_0x29d2c4[_0x372a32(0xcf)]=_0x471e6d[_0x372a32(0xd6)][_0x372a32(0xfc)]);}_0x222d33['rules']=_0x29d2c4;}_0x222d33['key']&&_0x222d33['title']&&_0x547fee[_0x372a32(0x106)](_0x222d33);}return _0x547fee;}function convertSchemaType(_0x17abd3){const _0x19bce1=a8_0x1c20f4;switch(_0x17abd3){case'Object':return _0x19bce1(0xc6);case _0x19bce1(0x107):return _0x19bce1(0x112);case _0x19bce1(0xef):return'number';case _0x19bce1(0xe7):return _0x19bce1(0x11d);case _0x19bce1(0x10d):return _0x19bce1(0xc3);default:return _0x19bce1(0x11d);}}function convertTypeToString(_0x1c1cd6){const _0x3504c8=a8_0x1c20f4;switch(_0x1c1cd6){case core_1[_0x3504c8(0xfa)][_0x3504c8(0x11c)]:return _0x3504c8(0x117);case core_1[_0x3504c8(0xfa)][_0x3504c8(0xc2)]:return _0x3504c8(0x113);case core_1[_0x3504c8(0xfa)][_0x3504c8(0x10b)]:return'path';case core_1[_0x3504c8(0xfa)][_0x3504c8(0xd8)]:return _0x3504c8(0xdd);case core_1[_0x3504c8(0xfa)]['FIELDS']:case core_1[_0x3504c8(0xfa)][_0x3504c8(0xcc)]:case core_1[_0x3504c8(0xfa)]['FILESTREAM']:return _0x3504c8(0xc3);default:return _0x3504c8(0x117);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x113327=a9_0x58bc;(function(_0x45362d,_0x307872){var _0x2b04bf=a9_0x58bc,_0x374f94=_0x45362d();while(!![]){try{var _0x4bd290=-parseInt(_0x2b04bf(0x1fa))/0x1+-parseInt(_0x2b04bf(0x21c))/0x2+parseInt(_0x2b04bf(0x217))/0x3+-parseInt(_0x2b04bf(0x200))/0x4+parseInt(_0x2b04bf(0x202))/0x5*(parseInt(_0x2b04bf(0x227))/0x6)+-parseInt(_0x2b04bf(0x221))/0x7*(-parseInt(_0x2b04bf(0x1f7))/0x8)+parseInt(_0x2b04bf(0x206))/0x9*(parseInt(_0x2b04bf(0x22d))/0xa);if(_0x4bd290===_0x307872)break;else _0x374f94['push'](_0x374f94['shift']());}catch(_0x2ad81f){_0x374f94['push'](_0x374f94['shift']());}}}(a9_0x51c5,0xcf167));var a9_0x339803=(function(){var _0x26d72b=!![];return function(_0x5820e1,_0x3b1ba1){var _0x3177a7=_0x26d72b?function(){var _0x20c41c=a9_0x58bc;if(_0x3b1ba1){var _0x498b41=_0x3b1ba1[_0x20c41c(0x218)](_0x5820e1,arguments);return _0x3b1ba1=null,_0x498b41;}}:function(){};return _0x26d72b=![],_0x3177a7;};}()),a9_0x5c358f=a9_0x339803(this,function(){var _0x752b53=a9_0x58bc;return a9_0x5c358f[_0x752b53(0x228)]()['search'](_0x752b53(0x22b))[_0x752b53(0x228)]()[_0x752b53(0x1fd)](a9_0x5c358f)[_0x752b53(0x1f4)]('(((.+)+)+)+$');});a9_0x5c358f();'use strict';var __createBinding=this&&this[a9_0x113327(0x1f3)]||(Object[a9_0x113327(0x203)]?function(_0x1ec312,_0x26a092,_0x545d7a,_0x4b5da2){var _0x7b5b26=a9_0x113327;if(_0x4b5da2===undefined)_0x4b5da2=_0x545d7a;var _0x44df29=Object['getOwnPropertyDescriptor'](_0x26a092,_0x545d7a);(!_0x44df29||(_0x7b5b26(0x207)in _0x44df29?!_0x26a092[_0x7b5b26(0x1f5)]:_0x44df29[_0x7b5b26(0x1f6)]||_0x44df29[_0x7b5b26(0x20a)]))&&(_0x44df29={'enumerable':!![],'get':function(){return _0x26a092[_0x545d7a];}}),Object[_0x7b5b26(0x1f9)](_0x1ec312,_0x4b5da2,_0x44df29);}:function(_0x226d7d,_0x476693,_0x5a48f6,_0x1a6635){if(_0x1a6635===undefined)_0x1a6635=_0x5a48f6;_0x226d7d[_0x1a6635]=_0x476693[_0x5a48f6];}),__exportStar=this&&this[a9_0x113327(0x231)]||function(_0x591156,_0x50cdfe){var _0x3d04dc=a9_0x113327;for(var _0xd9c729 in _0x591156)if(_0xd9c729!=='default'&&!Object[_0x3d04dc(0x20b)]['hasOwnProperty']['call'](_0x50cdfe,_0xd9c729))__createBinding(_0x50cdfe,_0x591156,_0xd9c729);};Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x1f5),{'value':!![]}),exports[a9_0x113327(0x234)]=exports[a9_0x113327(0x233)]=exports[a9_0x113327(0x232)]=exports[a9_0x113327(0x235)]=exports['Inject']=exports[a9_0x113327(0x21d)]=exports[a9_0x113327(0x20d)]=exports[a9_0x113327(0x214)]=exports[a9_0x113327(0x209)]=exports[a9_0x113327(0x1f2)]=exports[a9_0x113327(0x1fb)]=exports[a9_0x113327(0x223)]=exports[a9_0x113327(0x21f)]=exports[a9_0x113327(0x22f)]=exports[a9_0x113327(0x220)]=exports[a9_0x113327(0x22c)]=exports[a9_0x113327(0x21e)]=exports['Configuration']=exports[a9_0x113327(0x204)]=exports['ValidatorError']=exports[a9_0x113327(0x212)]=exports[a9_0x113327(0x1ff)]=exports[a9_0x113327(0x219)]=exports[a9_0x113327(0x21b)]=exports['ApiError']=exports[a9_0x113327(0x216)]=exports['IIntercept']=exports[a9_0x113327(0x22e)]=exports[a9_0x113327(0x1fc)]=exports['Action']=void 0x0;function a9_0x51c5(){var _0x2ac82b=['./service/ApiService','(((.+)+)+)+$','Files','12710pWacFi','Intercept','Body','./exception/ApiError','__exportStar','Singleton','ScopeEnum','getAppsConfig','Scope','Init','__createBinding','search','__esModule','writable','52920NGnMKk','@midwayjs/core','defineProperty','96674acNCJI','Headers','Apitest','constructor','Configuration','ApiService','3891248rsOUyx','./helper/getRoutes','3505lmCqja','create','ValidatorService','IIntercept','5121HTOohf','get','Inject','App','configurable','prototype','./decorator/Action','Logger','@anncic-api/validator','./helper/getAppsConfig','@anncic-api/event','ValidatorError','ExcelService','./service/ExcelService','Config','CustomConfiguration','getRoutes','1799529XarlYt','apply','EventService','./configuration','CacheService','1201574fhDjlX','Provide','File','Param','Fields','952smpIbC','Action','Query','./decorator/Intercept','ApiError','./types/common','2532xnioYo','toString','./decorator/ActionApitest'];a9_0x51c5=function(){return _0x2ac82b;};return a9_0x51c5();}const getAppsConfig_1=require(a9_0x113327(0x20f));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x234),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x113327(0x226)),exports),__exportStar(require('./service/ApitestService'),exports);var Action_1=require(a9_0x113327(0x20c));Object[a9_0x113327(0x1f9)](exports,'Action',{'enumerable':!![],'get':function(){var _0x5a40a4=a9_0x113327;return Action_1[_0x5a40a4(0x222)];}});var ActionApitest_1=require(a9_0x113327(0x229));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x1fc),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a9_0x113327(0x224));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x22e),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object['defineProperty'](exports,a9_0x113327(0x205),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a9_0x113327(0x201));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x216),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x113327(0x230));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x225),{'enumerable':!![],'get':function(){var _0x28786b=a9_0x113327;return ApiError_1[_0x28786b(0x225)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x113327(0x1f9)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x15a5d9=a9_0x113327;return cache_1[_0x15a5d9(0x21b)];}});var event_1=require(a9_0x113327(0x210));Object[a9_0x113327(0x1f9)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x383c45=a9_0x113327;return event_1[_0x383c45(0x219)];}});var ApiService_1=require(a9_0x113327(0x22a));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x1ff),{'enumerable':!![],'get':function(){var _0x380510=a9_0x113327;return ApiService_1[_0x380510(0x1ff)];}});var ExcelService_1=require(a9_0x113327(0x213));Object[a9_0x113327(0x1f9)](exports,'ExcelService',{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x113327(0x20e));function a9_0x58bc(_0x314392,_0x501edd){var _0x23bbac=a9_0x51c5();return a9_0x58bc=function(_0x5c358f,_0x339803){_0x5c358f=_0x5c358f-0x1f2;var _0x51c5d5=_0x23bbac[_0x5c358f];return _0x51c5d5;},a9_0x58bc(_0x314392,_0x501edd);}Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x211),{'enumerable':!![],'get':function(){var _0x5356c4=a9_0x113327;return validator_1[_0x5356c4(0x211)];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x204),{'enumerable':!![],'get':function(){var _0x15e72b=a9_0x113327;return validator_1[_0x15e72b(0x204)];}});var configuration_1=require(a9_0x113327(0x21a));Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x1fe),{'enumerable':!![],'get':function(){var _0x50f167=a9_0x113327;return configuration_1[_0x50f167(0x215)];}});var core_1=require('@midwayjs/core');Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x21e),{'enumerable':!![],'get':function(){var _0x2d2f97=a9_0x113327;return core_1[_0x2d2f97(0x21e)];}}),Object['defineProperty'](exports,a9_0x113327(0x22c),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x220),{'enumerable':!![],'get':function(){var _0x4640e4=a9_0x113327;return core_1[_0x4640e4(0x220)];}}),Object[a9_0x113327(0x1f9)](exports,'Body',{'enumerable':!![],'get':function(){var _0x148c8f=a9_0x113327;return core_1[_0x148c8f(0x22f)];}}),Object['defineProperty'](exports,a9_0x113327(0x21f),{'enumerable':!![],'get':function(){var _0x563a63=a9_0x113327;return core_1[_0x563a63(0x21f)];}}),Object['defineProperty'](exports,a9_0x113327(0x223),{'enumerable':!![],'get':function(){var _0x3e74a2=a9_0x113327;return core_1[_0x3e74a2(0x223)];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x1fb),{'enumerable':!![],'get':function(){var _0x385ae7=a9_0x113327;return core_1[_0x385ae7(0x1fb)];}}),Object[a9_0x113327(0x1f9)](exports,'Init',{'enumerable':!![],'get':function(){var _0x134330=a9_0x113327;return core_1[_0x134330(0x1f2)];}});var core_2=require(a9_0x113327(0x1f8));Object['defineProperty'](exports,'App',{'enumerable':!![],'get':function(){var _0xf71b15=a9_0x113327;return core_2[_0xf71b15(0x209)];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x214),{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x113327(0x1f9)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x15735b=a9_0x113327;return core_2[_0x15735b(0x20d)];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x21d),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object['defineProperty'](exports,a9_0x113327(0x208),{'enumerable':!![],'get':function(){var _0x212948=a9_0x113327;return core_2[_0x212948(0x208)];}}),Object['defineProperty'](exports,a9_0x113327(0x235),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x232),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a9_0x113327(0x1f9)](exports,a9_0x113327(0x233),{'enumerable':!![],'get':function(){var _0x5b363b=a9_0x113327;return core_2[_0x5b363b(0x233)];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x113327(0x234)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a10_0xc8a1a9=a10_0x1716;(function(_0x43523c,_0x55d365){var _0x47782e=a10_0x1716,_0x58093d=_0x43523c();while(!![]){try{var _0x3a38bd=-parseInt(_0x47782e(0x209))/0x1*(parseInt(_0x47782e(0x207))/0x2)+-parseInt(_0x47782e(0x204))/0x3+-parseInt(_0x47782e(0x211))/0x4+parseInt(_0x47782e(0x1ee))/0x5*(-parseInt(_0x47782e(0x222))/0x6)+-parseInt(_0x47782e(0x1f1))/0x7+-parseInt(_0x47782e(0x21b))/0x8+parseInt(_0x47782e(0x1ec))/0x9;if(_0x3a38bd===_0x55d365)break;else _0x58093d['push'](_0x58093d['shift']());}catch(_0x2e3917){_0x58093d['push'](_0x58093d['shift']());}}}(a10_0xf113,0x6b2c9));var a10_0x4fd9e9=(function(){var _0x2caf22=!![];return function(_0x3fb0df,_0x3f5e99){var _0x15c176=_0x2caf22?function(){if(_0x3f5e99){var _0x5cd18b=_0x3f5e99['apply'](_0x3fb0df,arguments);return _0x3f5e99=null,_0x5cd18b;}}:function(){};return _0x2caf22=![],_0x15c176;};}()),a10_0x35decc=a10_0x4fd9e9(this,function(){var _0x5391d3=a10_0x1716;return a10_0x35decc['toString']()[_0x5391d3(0x200)]('(((.+)+)+)+$')[_0x5391d3(0x1ff)]()[_0x5391d3(0x20d)](a10_0x35decc)['search'](_0x5391d3(0x201));});a10_0x35decc();'use strict';var __decorate=this&&this[a10_0xc8a1a9(0x1fe)]||function(_0x6434bc,_0x4a258f,_0xa6b172,_0x94e155){var _0x38211b=a10_0xc8a1a9,_0x5c92b1=arguments[_0x38211b(0x203)],_0x3e4828=_0x5c92b1<0x3?_0x4a258f:_0x94e155===null?_0x94e155=Object[_0x38211b(0x210)](_0x4a258f,_0xa6b172):_0x94e155,_0x5e8d37;if(typeof Reflect==='object'&&typeof Reflect[_0x38211b(0x1f6)]===_0x38211b(0x1fc))_0x3e4828=Reflect['decorate'](_0x6434bc,_0x4a258f,_0xa6b172,_0x94e155);else{for(var _0x39049c=_0x6434bc['length']-0x1;_0x39049c>=0x0;_0x39049c--)if(_0x5e8d37=_0x6434bc[_0x39049c])_0x3e4828=(_0x5c92b1<0x3?_0x5e8d37(_0x3e4828):_0x5c92b1>0x3?_0x5e8d37(_0x4a258f,_0xa6b172,_0x3e4828):_0x5e8d37(_0x4a258f,_0xa6b172))||_0x3e4828;}return _0x5c92b1>0x3&&_0x3e4828&&Object[_0x38211b(0x20c)](_0x4a258f,_0xa6b172,_0x3e4828),_0x3e4828;},__metadata=this&&this[a10_0xc8a1a9(0x1e9)]||function(_0x2701c9,_0xb6948b){var _0x2dbb95=a10_0xc8a1a9;if(typeof Reflect==='object'&&typeof Reflect[_0x2dbb95(0x219)]==='function')return Reflect[_0x2dbb95(0x219)](_0x2701c9,_0xb6948b);};Object[a10_0xc8a1a9(0x20c)](exports,'__esModule',{'value':!![]}),exports['ApiService']=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0xc8a1a9(0x205)),ApiError_1=require('../exception/ApiError');function a10_0x1716(_0x2f6ba1,_0x56ec4a){var _0x4b7ecb=a10_0xf113();return a10_0x1716=function(_0x35decc,_0x4fd9e9){_0x35decc=_0x35decc-0x1e8;var _0xf113ec=_0x4b7ecb[_0x35decc];return _0xf113ec;},a10_0x1716(_0x2f6ba1,_0x56ec4a);}let ApiService=exports['ApiService']=class ApiService{[a10_0xc8a1a9(0x208)](_0x356e2e){var _0x507ebb=a10_0xc8a1a9,_0x337098;return _0x356e2e?(0x0,crypto_js_1['MD5'])(''+_0x356e2e+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x507ebb(0x202)])(''+_0x356e2e)[_0x507ebb(0x1ff)]()+(''+((_0x337098=this['config'])===null||_0x337098===void 0x0?void 0x0:_0x337098[_0x507ebb(0x208)])))[_0x507ebb(0x1ff)]())[_0x507ebb(0x1ff)]():'';}['getcheck'](_0x57cd83,_0x50f45c,_0x2ee49f=Date[a10_0xc8a1a9(0x1f7)]()){var _0x188994=a10_0xc8a1a9;return{'Token':_0x57cd83,'Logintime':_0x2ee49f,'Checkcode':this[_0x188994(0x21f)](_0x57cd83,_0x50f45c,_0x2ee49f)};}[a10_0xc8a1a9(0x1e8)](_0x330c26={}){var _0x514bb2=a10_0xc8a1a9,_0x7d7097,_0x501b54;const _0x5a89b7=[],_0x2bbf72=Object['fromEntries'](Object['entries'](_0x330c26)['map'](_0x2863ed=>[_0x2863ed[0x0][_0x514bb2(0x21a)](),_0x2863ed[0x1]]));for(let _0x5a933d of[_0x514bb2(0x1f3),'requesttime',_0x514bb2(0x1f0),_0x514bb2(0x1fa),'checkcode']){if(typeof _0x2bbf72[_0x5a933d]=='undefined')throw new AnnError(ApiError_1[_0x514bb2(0x1f5)][_0x514bb2(0x216)],{'message':_0x514bb2(0x1f4)});_0x5a89b7[_0x514bb2(0x212)](_0x5a933d+'='+_0x2bbf72[_0x5a933d]);}_0x2bbf72[_0x514bb2(0x21d)]&&((_0x7d7097=_0x2bbf72[_0x514bb2(0x21d)])===null||_0x7d7097===void 0x0?void 0x0:_0x7d7097[_0x514bb2(0x203)])==0xa&&(_0x2bbf72[_0x514bb2(0x21d)]=_0x2bbf72[_0x514bb2(0x21d)]*0x3e8);if(this['config'][_0x514bb2(0x206)]&&Date[_0x514bb2(0x1f7)]()-Math[_0x514bb2(0x223)](_0x2bbf72[_0x514bb2(0x21d)])>this[_0x514bb2(0x1fd)][_0x514bb2(0x206)])throw new AnnError(ApiError_1[_0x514bb2(0x1f5)][_0x514bb2(0x21e)],{'message':_0x514bb2(0x21c),'requesttime':_0x2bbf72[_0x514bb2(0x21d)],'timestamp':Date[_0x514bb2(0x1f7)]()});if((((_0x501b54=this[_0x514bb2(0x1fd)][_0x514bb2(0x215)][_0x2bbf72['device']])===null||_0x501b54===void 0x0?void 0x0:_0x501b54[_0x514bb2(0x1f2)])||0x0)>0x0&&Date[_0x514bb2(0x1f7)]()-Math[_0x514bb2(0x223)](_0x2bbf72[_0x514bb2(0x1fa)])>this['config'][_0x514bb2(0x215)][_0x2bbf72[_0x514bb2(0x1f3)]]['logintimeout'])throw new AnnError(ApiError_1[_0x514bb2(0x1f5)][_0x514bb2(0x217)]);if(!this['config'][_0x514bb2(0x215)][_0x2bbf72[_0x514bb2(0x1f3)]]||!this[_0x514bb2(0x1fd)]['devices'][_0x2bbf72['device']][_0x514bb2(0x20f)]||!this[_0x514bb2(0x1fd)][_0x514bb2(0x215)][_0x2bbf72['device']]['checkcode'])throw new AnnError(ApiError_1[_0x514bb2(0x1f5)][_0x514bb2(0x1eb)]);if(_0x2bbf72['token']&&_0x2bbf72[_0x514bb2(0x21f)]!=this[_0x514bb2(0x21f)](_0x2bbf72[_0x514bb2(0x1f0)],_0x2bbf72[_0x514bb2(0x1f3)],_0x2bbf72['logintime']))throw new AnnError(ApiError_1[_0x514bb2(0x1f5)]['HEADERS_CHECKCODE']);return _0x5a89b7[_0x514bb2(0x212)](_0x514bb2(0x1f8)+this['config']['devices'][_0x2bbf72[_0x514bb2(0x1f3)]]['secret']),(0x0,crypto_js_1['MD5'])(_0x5a89b7[_0x514bb2(0x1fb)]()[_0x514bb2(0x213)](''))[_0x514bb2(0x1ff)]();}[a10_0xc8a1a9(0x21f)](_0x1402f6,_0x1f6e0e,_0xb2d62c=Date['now']()){var _0x5246ff=a10_0xc8a1a9,_0x193554,_0xe083f0,_0x30b0cd;if(!((_0x193554=this[_0x5246ff(0x1fd)])===null||_0x193554===void 0x0?void 0x0:_0x193554[_0x5246ff(0x215)][_0x1f6e0e])||!((_0x30b0cd=(_0xe083f0=this['config'])===null||_0xe083f0===void 0x0?void 0x0:_0xe083f0['devices'][_0x1f6e0e])===null||_0x30b0cd===void 0x0?void 0x0:_0x30b0cd[_0x5246ff(0x21f)]))throw new AnnError(ApiError_1[_0x5246ff(0x1f5)][_0x5246ff(0x1eb)]);return(0x0,crypto_js_1['MD5'])(''+_0x1402f6+(0x0,crypto_js_1[_0x5246ff(0x202)])(''+_0xb2d62c+(''+this['config'][_0x5246ff(0x215)][_0x1f6e0e][_0x5246ff(0x21f)]))[_0x5246ff(0x1ff)]())[_0x5246ff(0x1ff)]();}[a10_0xc8a1a9(0x225)](_0x4ee72c={}){var _0x50f606=a10_0xc8a1a9;const _0x16a83c=Object[_0x50f606(0x214)](Object[_0x50f606(0x1f9)](_0x4ee72c)[_0x50f606(0x1ed)](_0x2619dc=>[_0x2619dc[0x0][_0x50f606(0x21a)](),_0x2619dc[0x1]]));if(!(_0x16a83c===null||_0x16a83c===void 0x0?void 0x0:_0x16a83c[_0x50f606(0x221)]))throw new AnnError(ApiError_1[_0x50f606(0x1f5)][_0x50f606(0x216)],{'message':_0x50f606(0x1f4)});if((_0x16a83c===null||_0x16a83c===void 0x0?void 0x0:_0x16a83c['signature'])!=this[_0x50f606(0x1e8)](_0x16a83c))throw new AnnError(ApiError_1[_0x50f606(0x1f5)][_0x50f606(0x1ea)],{'message':'验证失败'});return!![];}};function a10_0xf113(){var _0x255f08=['devices','HEADERS_LACK','TIMEOUT_LOGINTIME','Scope','metadata','toLowerCase','6406984vUbzYM','请求超时,请重试或改善网络环境','requesttime','TIMEOUT','checkcode','anncicapi','signature','24AuClgr','abs','Config','checksign','getsign','__metadata','HEADERS_SIGNATURE','HEADERS_DEVICE','29983410cQYzYR','map','197590qESJFn','Provide','token','1730106yCcKIx','logintimeout','device','验证失败','ApiError','decorate','now','secret=','entries','logintime','sort','function','config','__decorate','toString','search','(((.+)+)+)+$','MD5','length','2251509IdahBn','@midwayjs/core','timeout','901478cYzGET','password','1BmgxZU','ApiService','design:type','defineProperty','constructor','prototype','secret','getOwnPropertyDescriptor','1940640TlicZs','push','join','fromEntries'];a10_0xf113=function(){return _0x255f08;};return a10_0xf113();}__decorate([(0x0,core_1[a10_0xc8a1a9(0x224)])(a10_0xc8a1a9(0x220)),__metadata(a10_0xc8a1a9(0x20b),Object)],ApiService[a10_0xc8a1a9(0x20e)],a10_0xc8a1a9(0x1fd),void 0x0),exports[a10_0xc8a1a9(0x20a)]=ApiService=__decorate([(0x0,core_1[a10_0xc8a1a9(0x1ef)])(),(0x0,core_1[a10_0xc8a1a9(0x218)])(core_1['ScopeEnum']['Singleton'])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11_0x2055(_0x55da2a,_0x4cdfc2){const _0x2cac82=a11_0x126d();return a11_0x2055=function(_0x189c6a,_0x3bc6f8){_0x189c6a=_0x189c6a-0x1eb;let _0x126deb=_0x2cac82[_0x189c6a];return _0x126deb;},a11_0x2055(_0x55da2a,_0x4cdfc2);}const a11_0xe3d449=a11_0x2055;(function(_0x3e3c19,_0x1a624a){const _0x55c7ed=a11_0x2055,_0x124627=_0x3e3c19();while(!![]){try{const _0x2ff4b7=-parseInt(_0x55c7ed(0x1f9))/0x1*(parseInt(_0x55c7ed(0x1f8))/0x2)+-parseInt(_0x55c7ed(0x216))/0x3+-parseInt(_0x55c7ed(0x234))/0x4+-parseInt(_0x55c7ed(0x22d))/0x5*(-parseInt(_0x55c7ed(0x21a))/0x6)+parseInt(_0x55c7ed(0x233))/0x7+parseInt(_0x55c7ed(0x1fe))/0x8+parseInt(_0x55c7ed(0x215))/0x9*(parseInt(_0x55c7ed(0x1f1))/0xa);if(_0x2ff4b7===_0x1a624a)break;else _0x124627['push'](_0x124627['shift']());}catch(_0x4b6565){_0x124627['push'](_0x124627['shift']());}}}(a11_0x126d,0x73106));const a11_0x3bc6f8=(function(){let _0x5b8568=!![];return function(_0x2777e8,_0x314a20){const _0x28f42c=_0x5b8568?function(){const _0x9e3225=a11_0x2055;if(_0x314a20){const _0x3bdc76=_0x314a20[_0x9e3225(0x22c)](_0x2777e8,arguments);return _0x314a20=null,_0x3bdc76;}}:function(){};return _0x5b8568=![],_0x28f42c;};}()),a11_0x189c6a=a11_0x3bc6f8(this,function(){const _0x4aa55e=a11_0x2055;return a11_0x189c6a[_0x4aa55e(0x1ef)]()[_0x4aa55e(0x232)](_0x4aa55e(0x20b))[_0x4aa55e(0x1ef)]()[_0x4aa55e(0x23b)](a11_0x189c6a)[_0x4aa55e(0x232)](_0x4aa55e(0x20b));});a11_0x189c6a();'use strict';function a11_0x126d(){const _0x19fa7f=['2106372riRyMD','@midwayjs/core','url','path','23190fydnmq','content-type','config','defineProperty','function','set','push','getRoutes','design:paramtypes','text/css;\x20charset=utf-8','filepath','apitesthtml','existsSync','ScopeEnum','/index.html','Scope','Config','.js','apply','305CFFITg','../../public/index.html','Provide','/apiteststatic/','stringify','search','3661630VykSdU','3343356PeFdlf','method','description','.css','design:returntype','prototype','ApitestStaticController','constructor','decorate','/apitest-:module','ApitestService','Controller','__param','toString','apitest','9839490CDWftx','join','devices','Singleton','../helper/getRoutes','length','Get','201902pHqDDr','6XZmLFe','apiteststatic','__decorate','replace','summary','6977336BgmAxz','request','/apiteststatic/*','apidoc','object','prefix','ctx','__devices__','extname','isDevelopmentEnvironment','readFileSync','module','public,\x20max-age=604800','(((.+)+)+)+$','anncicapi','utf-8','/apitest','Environment','Inject','routes','Param','design:type','apitestmodule','9bhUHTU'];a11_0x126d=function(){return _0x19fa7f;};return a11_0x126d();}var __decorate=this&&this[a11_0xe3d449(0x1fb)]||function(_0x4ff89e,_0x8780a4,_0x38441a,_0x3f175e){const _0x48b6a0=a11_0xe3d449;var _0x50a577=arguments[_0x48b6a0(0x1f6)],_0x3c1c65=_0x50a577<0x3?_0x8780a4:_0x3f175e===null?_0x3f175e=Object['getOwnPropertyDescriptor'](_0x8780a4,_0x38441a):_0x3f175e,_0x322151;if(typeof Reflect===_0x48b6a0(0x202)&&typeof Reflect[_0x48b6a0(0x23c)]===_0x48b6a0(0x21e))_0x3c1c65=Reflect[_0x48b6a0(0x23c)](_0x4ff89e,_0x8780a4,_0x38441a,_0x3f175e);else{for(var _0x45f3a1=_0x4ff89e[_0x48b6a0(0x1f6)]-0x1;_0x45f3a1>=0x0;_0x45f3a1--)if(_0x322151=_0x4ff89e[_0x45f3a1])_0x3c1c65=(_0x50a577<0x3?_0x322151(_0x3c1c65):_0x50a577>0x3?_0x322151(_0x8780a4,_0x38441a,_0x3c1c65):_0x322151(_0x8780a4,_0x38441a))||_0x3c1c65;}return _0x50a577>0x3&&_0x3c1c65&&Object[_0x48b6a0(0x21d)](_0x8780a4,_0x38441a,_0x3c1c65),_0x3c1c65;},__metadata=this&&this['__metadata']||function(_0x34a7a1,_0x2bf23b){const _0x57b422=a11_0xe3d449;if(typeof Reflect===_0x57b422(0x202)&&typeof Reflect['metadata']===_0x57b422(0x21e))return Reflect['metadata'](_0x34a7a1,_0x2bf23b);},__param=this&&this[a11_0xe3d449(0x1ee)]||function(_0x245801,_0x24e145){return function(_0x5b7285,_0x49bf4e){_0x24e145(_0x5b7285,_0x49bf4e,_0x245801);};};Object[a11_0xe3d449(0x21d)](exports,'__esModule',{'value':!![]}),exports[a11_0xe3d449(0x23a)]=exports[a11_0xe3d449(0x1ec)]=void 0x0;const path_1=require(a11_0xe3d449(0x219)),fs_1=require('fs'),core_1=require(a11_0xe3d449(0x217)),core_2=require(a11_0xe3d449(0x217)),core_3=require(a11_0xe3d449(0x217)),getRoutes_1=require(a11_0xe3d449(0x1f5));let ApitestService=exports[a11_0xe3d449(0x1ec)]=class ApitestService{async[a11_0xe3d449(0x201)](_0x18e331){const _0x43a8c1=a11_0xe3d449,_0x51981d=(0x0,getRoutes_1[_0x43a8c1(0x221)])(_0x18e331),_0x2cfcf2=[];for(let _0x5c3125 in _0x51981d){for(let _0x197db4 in _0x51981d[_0x5c3125][_0x43a8c1(0x211)]){let _0x1668b2=_0x51981d[_0x5c3125][_0x43a8c1(0x211)][_0x197db4],_0x389aba=[];for(let _0x9267d5 in _0x1668b2['request']){_0x389aba[_0x43a8c1(0x220)](_0x1668b2[_0x43a8c1(0x1ff)][_0x9267d5]);}_0x2cfcf2[_0x43a8c1(0x220)]({'title':_0x51981d[_0x5c3125][_0x43a8c1(0x1fd)]+':'+_0x1668b2[_0x43a8c1(0x1fd)],'prefix':_0x51981d[_0x5c3125][_0x43a8c1(0x203)],'router':_0x1668b2['route'],'method':_0x1668b2[_0x43a8c1(0x235)],'describe':_0x1668b2[_0x43a8c1(0x236)]||'','filepath':_0x51981d[_0x5c3125]['filepath']||'','request':_0x389aba});}}const _0x1706f4=(0x0,path_1[_0x43a8c1(0x1f2)])(__dirname,_0x43a8c1(0x22e));return(0x0,fs_1[_0x43a8c1(0x208)])(_0x1706f4,{'encoding':_0x43a8c1(0x20d)})[_0x43a8c1(0x1fc)](/__res__/g,_0x43a8c1(0x230))[_0x43a8c1(0x1fc)]('__apiList__',JSON[_0x43a8c1(0x231)](_0x2cfcf2))[_0x43a8c1(0x1fc)](_0x43a8c1(0x205),JSON[_0x43a8c1(0x231)](this[_0x43a8c1(0x21c)][_0x43a8c1(0x1f3)]));}};__decorate([(0x0,core_3['Config'])(a11_0xe3d449(0x20c)),__metadata(a11_0xe3d449(0x213),Object)],ApitestService['prototype'],a11_0xe3d449(0x21c),void 0x0),exports[a11_0xe3d449(0x1ec)]=ApitestService=__decorate([(0x0,core_2[a11_0xe3d449(0x22f)])('apitest'),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a11_0xe3d449(0x1f4)])],ApitestService);let ApitestStaticController=exports[a11_0xe3d449(0x23a)]=class ApitestStaticController{async[a11_0xe3d449(0x225)](){const _0xe995f7=a11_0xe3d449;if(this[_0xe995f7(0x1f0)]){const _0x12427c={'module':![]};return this[_0xe995f7(0x20f)]['isDevelopmentEnvironment']()&&(_0x12427c[_0xe995f7(0x224)]=!![]),await this[_0xe995f7(0x1ec)][_0xe995f7(0x201)](_0x12427c);}return'';}async[a11_0xe3d449(0x214)](_0x3e7bcb){const _0x1f26dc=a11_0xe3d449;if(this[_0x1f26dc(0x1f0)]){const _0x482a77={'module':_0x3e7bcb};return this[_0x1f26dc(0x20f)][_0x1f26dc(0x207)]()&&(_0x482a77[_0x1f26dc(0x224)]=!![]),await this['ApitestService']['apidoc'](_0x482a77);}return'';}async[a11_0xe3d449(0x1fa)](){const _0x9390ba=a11_0xe3d449;if((0x0,path_1[_0x9390ba(0x206)])(this['ctx'][_0x9390ba(0x1ff)][_0x9390ba(0x218)])){var _0x15810b=(0x0,path_1['join'])(__dirname,'../../public/'+this[_0x9390ba(0x204)][_0x9390ba(0x1ff)][_0x9390ba(0x218)][_0x9390ba(0x1fc)](_0x9390ba(0x230),'/'));if(_0x15810b['substring'](_0x15810b[_0x9390ba(0x1f6)]-0xb)!=_0x9390ba(0x228)){this[_0x9390ba(0x204)][_0x9390ba(0x21f)]('cache-control',_0x9390ba(0x20a));if((0x0,path_1['extname'])(this[_0x9390ba(0x204)][_0x9390ba(0x1ff)]['url'])==_0x9390ba(0x22b))this[_0x9390ba(0x204)][_0x9390ba(0x21f)](_0x9390ba(0x21b),'application/javascript;\x20charset=utf-8');else(0x0,path_1[_0x9390ba(0x206)])(this['ctx'][_0x9390ba(0x1ff)]['url'])==_0x9390ba(0x237)&&this['ctx'][_0x9390ba(0x21f)](_0x9390ba(0x21b),_0x9390ba(0x223));return(0x0,fs_1[_0x9390ba(0x226)])(_0x15810b)&&(0x0,fs_1[_0x9390ba(0x208)])(_0x15810b,{'encoding':_0x9390ba(0x20d)});}}return'';}};__decorate([(0x0,core_3[a11_0xe3d449(0x210)])(),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0xe3d449(0x204),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0xe3d449(0x239)],a11_0xe3d449(0x20f),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a11_0xe3d449(0x213),ApitestService)],ApitestStaticController['prototype'],a11_0xe3d449(0x1ec),void 0x0),__decorate([(0x0,core_3[a11_0xe3d449(0x22a)])(a11_0xe3d449(0x1f0)),__metadata('design:type',Boolean)],ApitestStaticController[a11_0xe3d449(0x239)],a11_0xe3d449(0x1f0),void 0x0),__decorate([(0x0,core_3[a11_0xe3d449(0x22a)])(a11_0xe3d449(0x20c)),__metadata('design:type',Object)],ApitestStaticController[a11_0xe3d449(0x239)],a11_0xe3d449(0x21c),void 0x0),__decorate([(0x0,core_2[a11_0xe3d449(0x1f7)])(a11_0xe3d449(0x20e)),__metadata('design:type',Function),__metadata(a11_0xe3d449(0x222),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0xe3d449(0x239)],'apitesthtml',null),__decorate([(0x0,core_2['Get'])(a11_0xe3d449(0x1eb)),__param(0x0,(0x0,core_2[a11_0xe3d449(0x212)])(a11_0xe3d449(0x209))),__metadata(a11_0xe3d449(0x213),Function),__metadata('design:paramtypes',[String]),__metadata(a11_0xe3d449(0x238),Promise)],ApitestStaticController[a11_0xe3d449(0x239)],a11_0xe3d449(0x214),null),__decorate([(0x0,core_2[a11_0xe3d449(0x1f7)])(a11_0xe3d449(0x200)),__metadata(a11_0xe3d449(0x213),Function),__metadata('design:paramtypes',[]),__metadata(a11_0xe3d449(0x238),Promise)],ApitestStaticController[a11_0xe3d449(0x239)],a11_0xe3d449(0x1fa),null),exports[a11_0xe3d449(0x23a)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0xe3d449(0x1ed)])('/'),(0x0,core_3[a11_0xe3d449(0x229)])(core_3[a11_0xe3d449(0x227)]['Request'])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2b1273=a12_0x2065;(function(_0x574ea2,_0x45136a){const _0x59d4ec=a12_0x2065,_0x472237=_0x574ea2();while(!![]){try{const _0x9ff99e=parseInt(_0x59d4ec(0x186))/0x1+-parseInt(_0x59d4ec(0x170))/0x2*(parseInt(_0x59d4ec(0x182))/0x3)+parseInt(_0x59d4ec(0x14f))/0x4*(-parseInt(_0x59d4ec(0x15f))/0x5)+parseInt(_0x59d4ec(0x16d))/0x6+parseInt(_0x59d4ec(0x16f))/0x7+-parseInt(_0x59d4ec(0x181))/0x8+-parseInt(_0x59d4ec(0x15a))/0x9*(-parseInt(_0x59d4ec(0x16e))/0xa);if(_0x9ff99e===_0x45136a)break;else _0x472237['push'](_0x472237['shift']());}catch(_0x103ac2){_0x472237['push'](_0x472237['shift']());}}}(a12_0x4113,0x547eb));function a12_0x2065(_0x34a884,_0x21f914){const _0x1c7574=a12_0x4113();return a12_0x2065=function(_0x11c5c3,_0x4d60d0){_0x11c5c3=_0x11c5c3-0x145;let _0x41133a=_0x1c7574[_0x11c5c3];return _0x41133a;},a12_0x2065(_0x34a884,_0x21f914);}const a12_0x4d60d0=(function(){let _0x3e3f09=!![];return function(_0x40fd4f,_0x431b0e){const _0x3c563a=_0x3e3f09?function(){const _0x3a4cdb=a12_0x2065;if(_0x431b0e){const _0x467f7a=_0x431b0e[_0x3a4cdb(0x153)](_0x40fd4f,arguments);return _0x431b0e=null,_0x467f7a;}}:function(){};return _0x3e3f09=![],_0x3c563a;};}()),a12_0x11c5c3=a12_0x4d60d0(this,function(){const _0x5b1935=a12_0x2065;return a12_0x11c5c3[_0x5b1935(0x17d)]()[_0x5b1935(0x18a)](_0x5b1935(0x16b))[_0x5b1935(0x17d)]()[_0x5b1935(0x174)](a12_0x11c5c3)['search']('(((.+)+)+)+$');});a12_0x11c5c3();'use strict';var __decorate=this&&this[a12_0x2b1273(0x160)]||function(_0x4dadb8,_0x34b062,_0x44ccd2,_0x57492e){const _0x523ae8=a12_0x2b1273;var _0x56b9e5=arguments[_0x523ae8(0x168)],_0x7c87d2=_0x56b9e5<0x3?_0x34b062:_0x57492e===null?_0x57492e=Object[_0x523ae8(0x14e)](_0x34b062,_0x44ccd2):_0x57492e,_0x1628a0;if(typeof Reflect===_0x523ae8(0x14a)&&typeof Reflect['decorate']==='function')_0x7c87d2=Reflect[_0x523ae8(0x15d)](_0x4dadb8,_0x34b062,_0x44ccd2,_0x57492e);else{for(var _0x511612=_0x4dadb8[_0x523ae8(0x168)]-0x1;_0x511612>=0x0;_0x511612--)if(_0x1628a0=_0x4dadb8[_0x511612])_0x7c87d2=(_0x56b9e5<0x3?_0x1628a0(_0x7c87d2):_0x56b9e5>0x3?_0x1628a0(_0x34b062,_0x44ccd2,_0x7c87d2):_0x1628a0(_0x34b062,_0x44ccd2))||_0x7c87d2;}return _0x56b9e5>0x3&&_0x7c87d2&&Object[_0x523ae8(0x147)](_0x34b062,_0x44ccd2,_0x7c87d2),_0x7c87d2;},__metadata=this&&this[a12_0x2b1273(0x146)]||function(_0xb19233,_0x29b7ed){const _0x336fda=a12_0x2b1273;if(typeof Reflect===_0x336fda(0x14a)&&typeof Reflect[_0x336fda(0x14b)]===_0x336fda(0x188))return Reflect[_0x336fda(0x14b)](_0xb19233,_0x29b7ed);};Object[a12_0x2b1273(0x147)](exports,'__esModule',{'value':!![]}),exports[a12_0x2b1273(0x187)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x2b1273(0x166)),koasend=require(a12_0x2b1273(0x184)),core_1=require('@midwayjs/core');function a12_0x4113(){const _0x303886=['/public/xlsx/','set','(((.+)+)+)+$','addWorksheet','3678858nxtIgI','10zhTQTz','1454838YOPePM','18854TtAgWt','.xlsx','handler','Scope','constructor','columns','YYYY/MM/DD','existsSync','writeFile','value','getCell','values','addRow','toString','Api\x20Excel\x20Error:\x20','App','endsWith','3424768ajOuAh','3DjDESK','xlsx','koa-send','parse','498957uitBRm','ExcelService','function','worksheets','search','findRows','substring','format','__metadata','defineProperty','Workbook','log','object','metadata','get','push','getOwnPropertyDescriptor','4bvCZtn','replace','app','filter','apply','isNumber','model','header','cellCount','startsWith','key','624483CjRSbm','prototype','readFile','decorate','Provide','3028535GFKkPG','__decorate','col','frozen','random','getAppDir','\x20is\x20read\x20fail','exceljs','mkdirSync','length'];a12_0x4113=function(){return _0x303886;};return a12_0x4113();}let ExcelService=exports[a12_0x2b1273(0x187)]=class ExcelService{async[a12_0x2b1273(0x185)](_0x4263ab,_0xfd266f,_0x4d7fb3=[0x0]){const _0x46a21d=a12_0x2b1273;var _0x369599,_0x643fe2;const _0x5a3c3d=new exceljs[(_0x46a21d(0x148))](),_0x1ea6a2=[];let _0x8e5200=_0x4263ab['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x8e5200===null||_0x8e5200===void 0x0?void 0x0:_0x8e5200[_0x46a21d(0x158)]('/'))&&(_0x8e5200=this[_0x46a21d(0x151)][_0x46a21d(0x164)]()+'/'+_0x8e5200);try{await _0x5a3c3d[_0x46a21d(0x183)][_0x46a21d(0x15c)](_0x8e5200);}catch(_0x3f055a){return console[_0x46a21d(0x149)](_0x46a21d(0x17e)+_0x8e5200+_0x46a21d(0x165)),_0x1ea6a2;}for(const _0x119813 of _0x4d7fb3){const _0x1ef24e=lodash[_0x46a21d(0x154)](_0x119813)?((_0x369599=_0x5a3c3d[_0x46a21d(0x189)])===null||_0x369599===void 0x0?void 0x0:_0x369599[_0x119813])||undefined:_0x5a3c3d['getWorksheet'](_0x119813);if(_0x1ef24e){var _0x264021=0x1;const _0x1dcb0d=_0x1ef24e['getRow'](0x1),_0x250edb=await new Promise(_0x5cc82a=>{const _0xe92ecd={};_0x1dcb0d['eachCell']((_0x46bed2,_0x40e187)=>{const _0x3b7488=a12_0x2065;for(const _0x1e8acd of _0xfd266f){if(_0x46bed2[_0x3b7488(0x179)]==_0x1e8acd[_0x3b7488(0x156)])_0x264021=0x2,_0xe92ecd[_0x1e8acd[_0x3b7488(0x159)]]={'header':_0x46bed2[_0x3b7488(0x161)],'handler':_0x1e8acd[_0x3b7488(0x172)]};else{if(!_0xe92ecd[_0x1e8acd['key']])try{const _0x4cc66c=_0x1dcb0d&&_0x1dcb0d[_0x3b7488(0x17a)](_0x1e8acd[_0x3b7488(0x156)]);_0x4cc66c&&(_0xe92ecd[_0x1e8acd[_0x3b7488(0x159)]]={'header':_0x4cc66c[_0x3b7488(0x161)],'handler':_0x1e8acd[_0x3b7488(0x172)]});}catch{}}}_0x1dcb0d[_0x3b7488(0x157)]==_0x40e187&&_0x5cc82a(_0xe92ecd);});});_0x4e30eb:for(const _0x1fc035 of _0x1ef24e[_0x46a21d(0x18b)](_0x264021,_0x1ef24e['rowCount'])){if(typeof(_0x1fc035===null||_0x1fc035===void 0x0?void 0x0:_0x1fc035[_0x46a21d(0x17a)])!=_0x46a21d(0x188))continue _0x4e30eb;const _0x20db92={};_0x1c7648:for(const _0x1e6e82 in _0x250edb){if(_0x250edb[_0x1e6e82][_0x46a21d(0x156)]){const _0x402160=_0x1fc035[_0x46a21d(0x17a)](_0x250edb[_0x1e6e82][_0x46a21d(0x156)]);if(!_0x402160)continue _0x1c7648;try{_0x402160['toString']();}catch(_0x33c153){_0x402160['toString']=()=>{const _0x454bb2=_0x46a21d;var _0x252ac7;return''+(((_0x252ac7=_0x402160===null||_0x402160===void 0x0?void 0x0:_0x402160[_0x454bb2(0x155)])===null||_0x252ac7===void 0x0?void 0x0:_0x252ac7[_0x454bb2(0x179)])||'');};}typeof((_0x643fe2=_0x250edb[_0x1e6e82])===null||_0x643fe2===void 0x0?void 0x0:_0x643fe2['handler'])==_0x46a21d(0x188)?_0x20db92[_0x1e6e82]=await _0x250edb[_0x1e6e82][_0x46a21d(0x172)](lodash[_0x46a21d(0x16a)]({},_0x1e6e82,(_0x402160===null||_0x402160===void 0x0?void 0x0:_0x402160[_0x46a21d(0x17d)]())||''),_0x402160[_0x46a21d(0x155)]):_0x20db92[_0x1e6e82]=(_0x402160===null||_0x402160===void 0x0?void 0x0:_0x402160[_0x46a21d(0x17d)]())||'';}}Object['keys'](_0x20db92)['length']>0x0&&Object[_0x46a21d(0x17b)](_0x20db92)[_0x46a21d(0x152)](_0x4ad627=>_0x4ad627!='')[_0x46a21d(0x168)]>0x0&&_0x1ea6a2[_0x46a21d(0x14d)](_0x20db92);}}}return _0x1ea6a2;}async['export'](_0x59d3ad,_0x202fcb,_0x13053d,_0x5b9c04){const _0x40fd00=a12_0x2b1273;var _0x508cd6,_0x1b0cc0;const _0x205aea=new exceljs[(_0x40fd00(0x148))](),_0x2a895b={},_0x40f232=[],_0x5d620d=_0x205aea[_0x40fd00(0x16c)]('Sheet\x201',{'views':[{'state':_0x40fd00(0x162),'xSplit':0x1}]});for(const _0x4b2c8b in _0x202fcb){_0x2a895b[_0x202fcb[_0x4b2c8b][_0x40fd00(0x159)]]=_0x202fcb[_0x4b2c8b]['header'],_0x40f232[_0x40fd00(0x14d)]({'header':_0x202fcb[_0x4b2c8b]['header'],'key':(_0x508cd6=_0x202fcb[_0x4b2c8b])===null||_0x508cd6===void 0x0?void 0x0:_0x508cd6['key'][_0x40fd00(0x150)](/\./g,'_')});}_0x5d620d[_0x40fd00(0x175)]=_0x40f232;for(const _0x4b2f8e of _0x13053d){const _0x48c655={};for(const _0x3506e5 in _0x202fcb){typeof((_0x1b0cc0=_0x202fcb[_0x3506e5])===null||_0x1b0cc0===void 0x0?void 0x0:_0x1b0cc0[_0x40fd00(0x172)])==_0x40fd00(0x188)?_0x48c655[_0x202fcb[_0x3506e5][_0x40fd00(0x159)]['replace'](/\./g,'_')]=await _0x202fcb[_0x3506e5][_0x40fd00(0x172)](_0x4b2f8e):_0x48c655[_0x202fcb[_0x3506e5]['key']['replace'](/\./g,'_')]=lodash[_0x40fd00(0x14c)](_0x4b2f8e,_0x202fcb[_0x3506e5][_0x40fd00(0x159)],'');}_0x5d620d[_0x40fd00(0x17c)](_0x48c655);}let _0x58935a='';const _0x179186=_0x59d3ad+'-'+lodash[_0x40fd00(0x163)](0x186a0,0xf423f)+_0x40fd00(0x171);if(_0x5b9c04&&_0x5b9c04[_0x40fd00(0x158)]('/'))_0x58935a=''+_0x5b9c04;else _0x5b9c04&&!_0x5b9c04[_0x40fd00(0x158)]('/')&&!_0x5b9c04[_0x40fd00(0x158)]('\x5c')?_0x58935a=this[_0x40fd00(0x151)][_0x40fd00(0x164)]()+'/'+_0x5b9c04:_0x58935a=this[_0x40fd00(0x151)][_0x40fd00(0x164)]()+_0x40fd00(0x169)+dayjs()[_0x40fd00(0x145)](_0x40fd00(0x176));return(_0x58935a[_0x40fd00(0x180)]('/')||_0x58935a[_0x40fd00(0x180)]('\x5c'))&&(_0x58935a=_0x58935a[_0x40fd00(0x18c)](0x0,_0x58935a[_0x40fd00(0x168)]-0x1)),_0x58935a=_0x58935a['replace'](/(\\|\/)/g,'/')[_0x40fd00(0x150)](/\/{2,}/g,'/'),!fs[_0x40fd00(0x177)](_0x58935a)&&fs[_0x40fd00(0x167)](_0x58935a,{'recursive':!![]}),await _0x205aea[_0x40fd00(0x183)][_0x40fd00(0x178)]((_0x58935a+'/'+_0x179186)[_0x40fd00(0x150)](/(\\|\/)/g,'/')[_0x40fd00(0x150)](/\/{2,}/g,'/')),{'filename':_0x179186,'filepath':(_0x58935a['substring']((''+this['app'][_0x40fd00(0x164)]())['length'])+'/'+_0x179186)[_0x40fd00(0x150)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async['download'](_0xc93c9c,_0x32b18c){return await koasend(_0xc93c9c,''+_0x32b18c);}};__decorate([(0x0,core_1[a12_0x2b1273(0x17f)])(),__metadata('design:type',Object)],ExcelService[a12_0x2b1273(0x15b)],a12_0x2b1273(0x151),void 0x0),exports[a12_0x2b1273(0x187)]=ExcelService=__decorate([(0x0,core_1[a12_0x2b1273(0x15e)])(),(0x0,core_1[a12_0x2b1273(0x173)])(core_1['ScopeEnum']['Singleton'])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x12555e=a13_0x59fe;(function(_0x1480ba,_0x41f79a){var _0xfcf12e=a13_0x59fe,_0xabdfdf=_0x1480ba();while(!![]){try{var _0x36cacf=-parseInt(_0xfcf12e(0x1da))/0x1+-parseInt(_0xfcf12e(0x1ca))/0x2+-parseInt(_0xfcf12e(0x1cd))/0x3+parseInt(_0xfcf12e(0x1d1))/0x4+-parseInt(_0xfcf12e(0x1d2))/0x5*(parseInt(_0xfcf12e(0x1c7))/0x6)+-parseInt(_0xfcf12e(0x1c8))/0x7*(parseInt(_0xfcf12e(0x1d0))/0x8)+-parseInt(_0xfcf12e(0x1d6))/0x9*(-parseInt(_0xfcf12e(0x1cb))/0xa);if(_0x36cacf===_0x41f79a)break;else _0xabdfdf['push'](_0xabdfdf['shift']());}catch(_0x2105e1){_0xabdfdf['push'](_0xabdfdf['shift']());}}}(a13_0x1264,0x729db));var a13_0x1e781d=(function(){var _0xd74fa2=!![];return function(_0x3084db,_0x355c04){var _0x547f2f=_0xd74fa2?function(){var _0x552b6c=a13_0x59fe;if(_0x355c04){var _0x201733=_0x355c04[_0x552b6c(0x1dc)](_0x3084db,arguments);return _0x355c04=null,_0x201733;}}:function(){};return _0xd74fa2=![],_0x547f2f;};}()),a13_0x50514c=a13_0x1e781d(this,function(){var _0x11af98=a13_0x59fe;return a13_0x50514c['toString']()[_0x11af98(0x1d7)](_0x11af98(0x1d9))[_0x11af98(0x1cf)]()[_0x11af98(0x1c9)](a13_0x50514c)[_0x11af98(0x1d7)]('(((.+)+)+)+$');});function a13_0x59fe(_0x31f4c2,_0x58256f){var _0xdcc1eb=a13_0x1264();return a13_0x59fe=function(_0x50514c,_0x1e781d){_0x50514c=_0x50514c-0x1c6;var _0x12648a=_0xdcc1eb[_0x50514c];return _0x12648a;},a13_0x59fe(_0x31f4c2,_0x58256f);}a13_0x50514c();'use strict';Object[a13_0x12555e(0x1d3)](exports,'__esModule',{'value':!![]}),exports[a13_0x12555e(0x1c6)]=exports[a13_0x12555e(0x1cc)]=exports[a13_0x12555e(0x1d4)]=exports[a13_0x12555e(0x1d8)]=void 0x0,exports['ACTION_KEY']=a13_0x12555e(0x1d5),exports['ACTION_ROUTE_KEY']=a13_0x12555e(0x1db),exports['APPSCONFIG_KEY']=a13_0x12555e(0x1ce);function a13_0x1264(){var _0x4395ce=['anncic-api:action','9GaejCu','search','ACTION_KEY','(((.+)+)+)+$','689097hEFAmU','anncic-api:action:route','apply','AppsConfigTmp','6iYcBwy','147ITYWhb','constructor','1699752KXInHb','33356940gDYAjc','APPSCONFIG_KEY','2464305AAPbah','anncic-api:apps:config','toString','110504ZuqubB','423844tLayiV','1608535mIyDbg','defineProperty','ACTION_ROUTE_KEY'];a13_0x1264=function(){return _0x4395ce;};return a13_0x1264();}class AppsConfigTmp{}exports[a13_0x12555e(0x1c6)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a14_0xb928(_0xbc1059,_0x5c9368){var _0x12575a=a14_0x4b0e();return a14_0xb928=function(_0x58dce6,_0x117fe0){_0x58dce6=_0x58dce6-0x11d;var _0x4b0e7e=_0x12575a[_0x58dce6];return _0x4b0e7e;},a14_0xb928(_0xbc1059,_0x5c9368);}function a14_0x4b0e(){var _0x6b544e=['__metadata','是否倒序','10790808EGAAWP','1087904eSINJO','trim','排序方式','10yRWZeb','Rule','_page','__esModule','metadata','RuleType','number','string','@anncic-api/validator','_size','__decorate','47857518iYqMUP','PageDTO','object','decorate','constructor','integer','apply','1211775bsvhKL','min','getOwnPropertyDescriptor','function','(((.+)+)+)+$','7JRGDnb','design:type','prototype','defineProperty','2546168CxhujU','6mdMqLg','2520072vtxeVM','length','76564WMgbgD','search','第一页为1,第二页为2'];a14_0x4b0e=function(){return _0x6b544e;};return a14_0x4b0e();}var a14_0x3d8650=a14_0xb928;(function(_0x23470d,_0xd560dd){var _0x4476bc=a14_0xb928,_0x3c15db=_0x23470d();while(!![]){try{var _0x10481d=-parseInt(_0x4476bc(0x135))/0x1+-parseInt(_0x4476bc(0x12b))/0x2+parseInt(_0x4476bc(0x12c))/0x3*(parseInt(_0x4476bc(0x12f))/0x4)+-parseInt(_0x4476bc(0x122))/0x5+-parseInt(_0x4476bc(0x12d))/0x6+-parseInt(_0x4476bc(0x127))/0x7*(parseInt(_0x4476bc(0x134))/0x8)+parseInt(_0x4476bc(0x143))/0x9*(parseInt(_0x4476bc(0x138))/0xa);if(_0x10481d===_0xd560dd)break;else _0x3c15db['push'](_0x3c15db['shift']());}catch(_0x27d48c){_0x3c15db['push'](_0x3c15db['shift']());}}}(a14_0x4b0e,0xf021a));var a14_0x117fe0=(function(){var _0x165b40=!![];return function(_0x543cfa,_0x133dcd){var _0x5129d9=_0x165b40?function(){var _0x151c03=a14_0xb928;if(_0x133dcd){var _0x216485=_0x133dcd[_0x151c03(0x121)](_0x543cfa,arguments);return _0x133dcd=null,_0x216485;}}:function(){};return _0x165b40=![],_0x5129d9;};}()),a14_0x58dce6=a14_0x117fe0(this,function(){var _0x1e4f5a=a14_0xb928;return a14_0x58dce6['toString']()[_0x1e4f5a(0x130)](_0x1e4f5a(0x126))['toString']()[_0x1e4f5a(0x11f)](a14_0x58dce6)[_0x1e4f5a(0x130)](_0x1e4f5a(0x126));});a14_0x58dce6();'use strict';var __decorate=this&&this[a14_0x3d8650(0x142)]||function(_0x426cc7,_0x58e22b,_0x20b0fa,_0x5d63ad){var _0x47ba30=a14_0x3d8650,_0x10147e=arguments[_0x47ba30(0x12e)],_0x2207e9=_0x10147e<0x3?_0x58e22b:_0x5d63ad===null?_0x5d63ad=Object[_0x47ba30(0x124)](_0x58e22b,_0x20b0fa):_0x5d63ad,_0x1eb7d7;if(typeof Reflect===_0x47ba30(0x11d)&&typeof Reflect[_0x47ba30(0x11e)]===_0x47ba30(0x125))_0x2207e9=Reflect[_0x47ba30(0x11e)](_0x426cc7,_0x58e22b,_0x20b0fa,_0x5d63ad);else{for(var _0x5b56e6=_0x426cc7[_0x47ba30(0x12e)]-0x1;_0x5b56e6>=0x0;_0x5b56e6--)if(_0x1eb7d7=_0x426cc7[_0x5b56e6])_0x2207e9=(_0x10147e<0x3?_0x1eb7d7(_0x2207e9):_0x10147e>0x3?_0x1eb7d7(_0x58e22b,_0x20b0fa,_0x2207e9):_0x1eb7d7(_0x58e22b,_0x20b0fa))||_0x2207e9;}return _0x10147e>0x3&&_0x2207e9&&Object[_0x47ba30(0x12a)](_0x58e22b,_0x20b0fa,_0x2207e9),_0x2207e9;},__metadata=this&&this[a14_0x3d8650(0x132)]||function(_0x280845,_0x903a9d){var _0x5e9733=a14_0x3d8650;if(typeof Reflect===_0x5e9733(0x11d)&&typeof Reflect[_0x5e9733(0x13c)]==='function')return Reflect[_0x5e9733(0x13c)](_0x280845,_0x903a9d);};Object[a14_0x3d8650(0x12a)](exports,a14_0x3d8650(0x13b),{'value':!![]}),exports[a14_0x3d8650(0x144)]=void 0x0;const validator_1=require(a14_0x3d8650(0x140));class PageDTO{}exports[a14_0x3d8650(0x144)]=PageDTO,__decorate([(0x0,validator_1['Rule'])('分页',validator_1[a14_0x3d8650(0x13d)][a14_0x3d8650(0x13e)]()[a14_0x3d8650(0x120)]()[a14_0x3d8650(0x123)](0x1),a14_0x3d8650(0x131)),__metadata(a14_0x3d8650(0x128),Number)],PageDTO[a14_0x3d8650(0x129)],a14_0x3d8650(0x13a),void 0x0),__decorate([(0x0,validator_1[a14_0x3d8650(0x139)])('分页数量',validator_1[a14_0x3d8650(0x13d)][a14_0x3d8650(0x13e)]()[a14_0x3d8650(0x120)]()[a14_0x3d8650(0x123)](0x1)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0x3d8650(0x141),void 0x0),__decorate([(0x0,validator_1[a14_0x3d8650(0x139)])(a14_0x3d8650(0x137),validator_1[a14_0x3d8650(0x13d)][a14_0x3d8650(0x13f)]()[a14_0x3d8650(0x136)]()),__metadata(a14_0x3d8650(0x128),String)],PageDTO[a14_0x3d8650(0x129)],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x3d8650(0x139)])(a14_0x3d8650(0x133),validator_1[a14_0x3d8650(0x13d)][a14_0x3d8650(0x13e)]()[a14_0x3d8650(0x120)]()['valid'](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO[a14_0x3d8650(0x129)],'_isreverse',void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x297fea=a15_0x4c2e;(function(_0x4d01dc,_0x29cce9){var _0x421b9b=a15_0x4c2e,_0x2bb0a3=_0x4d01dc();while(!![]){try{var _0x478da3=parseInt(_0x421b9b(0x1b5))/0x1*(-parseInt(_0x421b9b(0x1b0))/0x2)+-parseInt(_0x421b9b(0x1b4))/0x3+-parseInt(_0x421b9b(0x1b2))/0x4*(parseInt(_0x421b9b(0x1ae))/0x5)+parseInt(_0x421b9b(0x1b3))/0x6*(-parseInt(_0x421b9b(0x1bd))/0x7)+parseInt(_0x421b9b(0x1ba))/0x8+-parseInt(_0x421b9b(0x1b7))/0x9*(-parseInt(_0x421b9b(0x1bf))/0xa)+parseInt(_0x421b9b(0x1af))/0xb;if(_0x478da3===_0x29cce9)break;else _0x2bb0a3['push'](_0x2bb0a3['shift']());}catch(_0x3080f1){_0x2bb0a3['push'](_0x2bb0a3['shift']());}}}(a15_0x3f66,0x64ea1));function a15_0x4c2e(_0x31971c,_0x59127a){var _0x4da52a=a15_0x3f66();return a15_0x4c2e=function(_0x1a82ac,_0x22f512){_0x1a82ac=_0x1a82ac-0x1ac;var _0x3f66be=_0x4da52a[_0x1a82ac];return _0x3f66be;},a15_0x4c2e(_0x31971c,_0x59127a);}var a15_0x22f512=(function(){var _0x276de1=!![];return function(_0x1952db,_0x343e8a){var _0x24a130=_0x276de1?function(){var _0x4b8aa3=a15_0x4c2e;if(_0x343e8a){var _0x1f63ac=_0x343e8a[_0x4b8aa3(0x1be)](_0x1952db,arguments);return _0x343e8a=null,_0x1f63ac;}}:function(){};return _0x276de1=![],_0x24a130;};}()),a15_0x1a82ac=a15_0x22f512(this,function(){var _0x105b9d=a15_0x4c2e;return a15_0x1a82ac[_0x105b9d(0x1b8)]()[_0x105b9d(0x1ad)](_0x105b9d(0x1b6))[_0x105b9d(0x1b8)]()[_0x105b9d(0x1bb)](a15_0x1a82ac)[_0x105b9d(0x1ad)](_0x105b9d(0x1b6));});a15_0x1a82ac();function a15_0x3f66(){var _0xfa09fe=['1653785GJdYhZ','apply','20aeftFh','anncic-api:intercept','search','30zpBiWu','7226109CRYTYS','31742MVdRvm','defineProperty','32768QweFRP','6SBwxLX','1845291nhfDxL','11lZEozE','(((.+)+)+)+$','1064628UrYHGP','toString','InterceptTargetTmp','4759416lzLDxj','constructor','INTERCEPT_KEY'];a15_0x3f66=function(){return _0xfa09fe;};return a15_0x3f66();}'use strict';Object[a15_0x297fea(0x1b1)](exports,'__esModule',{'value':!![]}),exports['InterceptTargetTmp']=exports['INTERCEPT_KEY']=void 0x0,exports[a15_0x297fea(0x1bc)]=a15_0x297fea(0x1ac);class InterceptTargetTmp{}exports[a15_0x297fea(0x1b9)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.13",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.2.
|
|
21
|
-
"@anncic-api/core": "^3.2.
|
|
22
|
-
"@anncic-api/event": "^3.2.
|
|
23
|
-
"@anncic-api/typeorm": "^3.2.
|
|
24
|
-
"@anncic-api/validator": "^3.2.
|
|
20
|
+
"@anncic-api/cache": "^3.2.13",
|
|
21
|
+
"@anncic-api/core": "^3.2.13",
|
|
22
|
+
"@anncic-api/event": "^3.2.13",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.13",
|
|
24
|
+
"@anncic-api/validator": "^3.2.13",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.2.
|
|
29
|
+
"anncic-apihelper": "^3.2.13",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "4194914ab6949f241a246d76a0d658dc10f0a3e6"
|
|
39
39
|
}
|