anncic-api 3.2.29 → 3.3.0
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/index.d.ts +11 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x7c6998=a0_0x3e35;(function(_0x697338,_0x127042){var _0x3314ef=a0_0x3e35,_0x1f1020=_0x697338();while(!![]){try{var _0x4ccc44=-parseInt(_0x3314ef(0x11a))/0x1*(-parseInt(_0x3314ef(0x11f))/0x2)+-parseInt(_0x3314ef(0x114))/0x3+parseInt(_0x3314ef(0x128))/0x4*(-parseInt(_0x3314ef(0x11c))/0x5)+parseInt(_0x3314ef(0x110))/0x6+parseInt(_0x3314ef(0x119))/0x7+-parseInt(_0x3314ef(0x117))/0x8*(-parseInt(_0x3314ef(0x129))/0x9)+-parseInt(_0x3314ef(0x112))/0xa;if(_0x4ccc44===_0x127042)break;else _0x1f1020['push'](_0x1f1020['shift']());}catch(_0x8a8dd5){_0x1f1020['push'](_0x1f1020['shift']());}}}(a0_0x1b9a,0x1b907));var a0_0x7e8f4a=(function(){var _0x36efba=!![];return function(_0x3ce178,_0x231cca){var _0x2021c0=_0x36efba?function(){var _0x2c1de8=a0_0x3e35;if(_0x231cca){var _0x1b1aa2=_0x231cca[_0x2c1de8(0x113)](_0x3ce178,arguments);return _0x231cca=null,_0x1b1aa2;}}:function(){};return _0x36efba=![],_0x2021c0;};}()),a0_0x21512c=a0_0x7e8f4a(this,function(){var _0x71748d=a0_0x3e35;return a0_0x21512c[_0x71748d(0x120)]()[_0x71748d(0x115)](_0x71748d(0x126))[_0x71748d(0x120)]()[_0x71748d(0x121)](a0_0x21512c)[_0x71748d(0x115)](_0x71748d(0x126));});function a0_0x3e35(_0x2f8057,_0x1b194e){var _0x510e5e=a0_0x1b9a();return a0_0x3e35=function(_0x21512c,_0x7e8f4a){_0x21512c=_0x21512c-0x110;var _0x1b9a4f=_0x510e5e[_0x21512c];return _0x1b9a4f;},a0_0x3e35(_0x2f8057,_0x1b194e);}function a0_0x1b9a(){var _0x472a60=['_token','39488pNBjAL','form','199164Mspqyl','1HQEmVe','zhiulanuiy7892387985hnoi','5LavcEK','dhauo1234420123gg3234901','defineProperty','369986wzrsju','toString','constructor','__esModule','name','/runtime/.upload','text','(((.+)+)+)+$','appDir','333448pzxJDu','117SYPDQW','20mb','default','448290tVFjMv','json','1483730PwLjbJ','apply','23070XvLRzT','search'];a0_0x1b9a=function(){return _0x472a60;};return a0_0x1b9a();}a0_0x21512c();'use strict';Object[a0_0x7c6998(0x11e)](exports,a0_0x7c6998(0x122),{'value':!![]}),exports[a0_0x7c6998(0x12b)]=_0x208e53=>{var _0x245918=a0_0x7c6998;return{'apitest':!![],'keys':_0x208e53[_0x245918(0x123)],'anncicapi':{'requestKey':_0x245918(0x116),'password':_0x245918(0x11b),'devices':{'DEFAULT':{'secret':_0x245918(0x11d),'checkcode':_0x245918(0x11d)}}},'bodyParser':{'enableTypes':[_0x245918(0x111),_0x245918(0x118),_0x245918(0x125),'xml'],'formLimit':_0x245918(0x12a),'jsonLimit':_0x245918(0x12a),'textLimit':_0x245918(0x12a),'xmlLimit':_0x245918(0x12a),'enable':!![]},'upload':{'tmpdir':_0x208e53[_0x245918(0x127)]+_0x245918(0x124),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x26aa79=a1_0x1b3e;(function(_0x450897,_0x5ef1b0){var _0x219c64=a1_0x1b3e,_0x3218ef=_0x450897();while(!![]){try{var _0x235a48=parseInt(_0x219c64(0xce))/0x1*(parseInt(_0x219c64(0xcb))/0x2)+-parseInt(_0x219c64(0xc9))/0x3+-parseInt(_0x219c64(0xc4))/0x4*(-parseInt(_0x219c64(0xca))/0x5)+-parseInt(_0x219c64(0xcc))/0x6+parseInt(_0x219c64(0xcf))/0x7+parseInt(_0x219c64(0xcd))/0x8+parseInt(_0x219c64(0xc8))/0x9*(parseInt(_0x219c64(0xc6))/0xa);if(_0x235a48===_0x5ef1b0)break;else _0x3218ef['push'](_0x3218ef['shift']());}catch(_0x21a670){_0x3218ef['push'](_0x3218ef['shift']());}}}(a1_0x1b6f,0xee8e2));var a1_0x1e0c2b=(function(){var _0x4dae73=!![];return function(_0x1dce79,_0x3e572e){var _0x2a53ac=_0x4dae73?function(){var _0x16076e=a1_0x1b3e;if(_0x3e572e){var _0x2878fd=_0x3e572e[_0x16076e(0xd2)](_0x1dce79,arguments);return _0x3e572e=null,_0x2878fd;}}:function(){};return _0x4dae73=![],_0x2a53ac;};}()),a1_0x9e7779=a1_0x1e0c2b(this,function(){var _0x424367=a1_0x1b3e;return a1_0x9e7779[_0x424367(0xc3)]()[_0x424367(0xd0)](_0x424367(0xd1))[_0x424367(0xc3)]()[_0x424367(0xc5)](a1_0x9e7779)[_0x424367(0xd0)](_0x424367(0xd1));});function a1_0x1b6f(){var _0x5deefb=['135530PnfBqp','default','477kEvOYM','3185616omngKj','5RdpzUv','191534VJOeQu','3997248weEagh','1578504zZFuie','6NPUsLP','31353cXhMrl','search','(((.+)+)+)+$','apply','toString','4841996jogQky','constructor'];a1_0x1b6f=function(){return _0x5deefb;};return a1_0x1b6f();}a1_0x9e7779();'use strict';function a1_0x1b3e(_0x52df94,_0x3fda57){var _0x1e7914=a1_0x1b6f();return a1_0x1b3e=function(_0x9e7779,_0x1e0c2b){_0x9e7779=_0x9e7779-0xc3;var _0x1b6f76=_0x1e7914[_0x9e7779];return _0x1b6f76;},a1_0x1b3e(_0x52df94,_0x3fda57);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0x26aa79(0xc7)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2_0xdb28(){const _0x119510=['109768xtpBVl','tmpdir','85GLdjNQ','constructor','getApplications','toLowerCase','http','startsWith','bodyXml','addObject','length','dir','anncic-api','62022KQZgCa','koa-send','koa','requestKey','handler','文件不存在','getConfiguration','INTERCEPT_KEY','ApiService','CustomConfiguration','ApiError','keys','9HoFSTi','@midwayjs/upload','isString','@midwayjs/cross-domain','filterConfig','readdirSync','1922LbwulH','application','anncicapi','existsSync','/apps/','getAppDir','Inject','./types/action','environment','isDevelopmentEnvironment','input','App','key','isDirectory','prototype','27822IDCbBQ','config','req','@midwayjs/static-file','toString','device','319692YFHlMx','connection','-log','22RLqcxE','string','app','1420912mIANgS','@anncic-api/cache','3447980xdxAFz','14iIFXyR','_matchedRoute','body','decorator','devices','DEFAULT','Anncic-api\x20static-file\x20:\x20mkdir\x20','MidwayEnvironmentService','request','__metadata','REQUEST_OBJ_CTX_KEY','clients','function','443','args','checksign','parse','log','assign','InterceptTargetTmp','/apps','get','split','onReady','metadata','host','./exception/ApiError','./config/config.default','decorate','undefined','dirs','target','Types','encrypted','@anncic-api/typeorm','isFunction','context','MidwayApplicationManager','match','intercept','@midwayjs/core','hanlderApplications','apimit','defaultsDeep','query','/runtime','loggerConfig','apply','midwayLogger','staticFile','_UNKNOW_','getAsync','statSync','(((.+)+)+)+$','defineProperties','getBaseDir','defineProperty','method','mkdirSync','object','468UySHqU','upload','@anncic-api/core','forEach','@midwayjs/koa','ACTION_ROUTE_KEY','@anncic-api/event','design:type','Configuration','__decorate'];a2_0xdb28=function(){return _0x119510;};return a2_0xdb28();}const a2_0x2526e7=a2_0x148b;(function(_0x351134,_0x25bb4e){const _0x2076cf=a2_0x148b,_0x4f2516=_0x351134();while(!![]){try{const _0x4509ca=-parseInt(_0x2076cf(0xbc))/0x1+-parseInt(_0x2076cf(0xce))/0x2*(-parseInt(_0x2076cf(0xa5))/0x3)+-parseInt(_0x2076cf(0xaf))/0x4+parseInt(_0x2076cf(0xb1))/0x5*(parseInt(_0x2076cf(0xdd))/0x6)+-parseInt(_0x2076cf(0x69))/0x7*(-parseInt(_0x2076cf(0x66))/0x8)+parseInt(_0x2076cf(0xc8))/0x9*(-parseInt(_0x2076cf(0x68))/0xa)+-parseInt(_0x2076cf(0xe6))/0xb*(-parseInt(_0x2076cf(0xe3))/0xc);if(_0x4509ca===_0x25bb4e)break;else _0x4f2516['push'](_0x4f2516['shift']());}catch(_0x24bce2){_0x4f2516['push'](_0x4f2516['shift']());}}}(a2_0xdb28,0x318f1));const a2_0x147c05=(function(){let _0x2cc421=!![];return function(_0x19beca,_0x51dc55){const _0x5e55e2=_0x2cc421?function(){const _0x38d54e=a2_0x148b;if(_0x51dc55){const _0x1546a3=_0x51dc55[_0x38d54e(0x98)](_0x19beca,arguments);return _0x51dc55=null,_0x1546a3;}}:function(){};return _0x2cc421=![],_0x5e55e2;};}()),a2_0x3676db=a2_0x147c05(this,function(){const _0x4f78d7=a2_0x148b;return a2_0x3676db[_0x4f78d7(0xe1)]()['search'](_0x4f78d7(0x9e))[_0x4f78d7(0xe1)]()[_0x4f78d7(0xb2)](a2_0x3676db)['search']('(((.+)+)+)+$');});a2_0x3676db();function a2_0x148b(_0x44d3f5,_0x1ba9c4){const _0x430b1a=a2_0xdb28();return a2_0x148b=function(_0x3676db,_0x147c05){_0x3676db=_0x3676db-0x64;let _0xdb2831=_0x430b1a[_0x3676db];return _0xdb2831;},a2_0x148b(_0x44d3f5,_0x1ba9c4);}'use strict';var __decorate=this&&this[a2_0x2526e7(0xae)]||function(_0x4f0aac,_0x52ce47,_0x1b754b,_0x1cdc01){const _0x353600=a2_0x2526e7;var _0x907238=arguments[_0x353600(0xb9)],_0x5dce32=_0x907238<0x3?_0x52ce47:_0x1cdc01===null?_0x1cdc01=Object['getOwnPropertyDescriptor'](_0x52ce47,_0x1b754b):_0x1cdc01,_0x499eaa;if(typeof Reflect==='object'&&typeof Reflect[_0x353600(0x85)]===_0x353600(0x75))_0x5dce32=Reflect[_0x353600(0x85)](_0x4f0aac,_0x52ce47,_0x1b754b,_0x1cdc01);else{for(var _0x44af03=_0x4f0aac[_0x353600(0xb9)]-0x1;_0x44af03>=0x0;_0x44af03--)if(_0x499eaa=_0x4f0aac[_0x44af03])_0x5dce32=(_0x907238<0x3?_0x499eaa(_0x5dce32):_0x907238>0x3?_0x499eaa(_0x52ce47,_0x1b754b,_0x5dce32):_0x499eaa(_0x52ce47,_0x1b754b))||_0x5dce32;}return _0x907238>0x3&&_0x5dce32&&Object['defineProperty'](_0x52ce47,_0x1b754b,_0x5dce32),_0x5dce32;},__metadata=this&&this[a2_0x2526e7(0x72)]||function(_0x5734a5,_0x24d83a){const _0x35f049=a2_0x2526e7;if(typeof Reflect===_0x35f049(0xa4)&&typeof Reflect[_0x35f049(0x81)]===_0x35f049(0x75))return Reflect[_0x35f049(0x81)](_0x5734a5,_0x24d83a);};Object[a2_0x2526e7(0xa1)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x2526e7(0x91)),core_2=require(a2_0x2526e7(0x91)),ApiError_1=require(a2_0x2526e7(0x83)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x2526e7(0xd5)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x2526e7(0xbd)),koa=require(a2_0x2526e7(0xa9)),upload=require(a2_0x2526e7(0xc9)),staticFile=require(a2_0x2526e7(0xe0)),crossDomain=require(a2_0x2526e7(0xcb)),ConfigDefault=require(a2_0x2526e7(0x84)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x2526e7(0xa7)),anncicCache=require(a2_0x2526e7(0x67)),anncicEvent=require(a2_0x2526e7(0xab)),anncicTypeorm=require(a2_0x2526e7(0x8b)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x2526e7(0xc5)]=class CustomConfiguration{async[a2_0x2526e7(0x80)](){const _0x280ce6=a2_0x2526e7;await this[_0x280ce6(0xcc)](),await this[_0x280ce6(0x97)](),await this['handlerActionRoute'](),await this[_0x280ce6(0x92)]();}async['handlerActionRoute'](){const _0x28c893=a2_0x2526e7,_0x5affeb=this[_0x28c893(0xde)][_0x28c893(0xc2)](),_0x12f716=(0x0,core_1['getClassMetadata'])(intercept_1[_0x28c893(0xc3)],intercept_1[_0x28c893(0x7c)])||{};this[_0x28c893(0x6c)]['registerMethodHandler'](action_1[_0x28c893(0xaa)],_0x2d6621=>{const _0x181c22=_0x28c893,_0x2fe292=_0x2d6621[_0x181c22(0x81)];return{'before':async _0x3a4436=>{const _0x5f312e=_0x181c22;var _0x5ec3d8,_0x5f4bb2,_0x5ed190,_0x33ada1;const _0x54a3c7=(_0x5ec3d8=_0x3a4436===null||_0x3a4436===void 0x0?void 0x0:_0x3a4436[_0x5f312e(0x88)])===null||_0x5ec3d8===void 0x0?void 0x0:_0x5ec3d8[core_2[_0x5f312e(0x73)]],_0x5c8a20=lodash[_0x5f312e(0x94)]({},_0x54a3c7[_0x5f312e(0x71)]['body']||_0x54a3c7[_0x5f312e(0x71)][((_0x5f4bb2=_0x5affeb===null||_0x5affeb===void 0x0?void 0x0:_0x5affeb[_0x5f312e(0xb7)])===null||_0x5f4bb2===void 0x0?void 0x0:_0x5f4bb2[_0x5f312e(0xda)])||_0x5f312e(0x6b)]||{},_0x54a3c7['request'][_0x5f312e(0x95)]||{});if(_0x54a3c7&&(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x5f312e(0x93)]))try{const _0x39282f=((_0x5ed190=_0x5affeb===null||_0x5affeb===void 0x0?void 0x0:_0x5affeb[_0x5f312e(0xd0)])===null||_0x5ed190===void 0x0?void 0x0:_0x5ed190['requestKey'])&&typeof(_0x5c8a20===null||_0x5c8a20===void 0x0?void 0x0:_0x5c8a20[_0x5affeb[_0x5f312e(0xd0)][_0x5f312e(0xbf)]])==_0x5f312e(0x64)?JSON[_0x5f312e(0x79)](base64_decode(_0x5c8a20[_0x5affeb[_0x5f312e(0xd0)][_0x5f312e(0xbf)]])||'{}')||{}:((_0x33ada1=_0x54a3c7===null||_0x54a3c7===void 0x0?void 0x0:_0x54a3c7[_0x5f312e(0x71)])===null||_0x33ada1===void 0x0?void 0x0:_0x33ada1['headers'])||{};if(!this[_0x5f312e(0xc4)][_0x5f312e(0x78)](_0x39282f))throw new AnnError(ApiError_1[_0x5f312e(0xc6)]['HEADERS_SIGNATURE']);}catch(_0xd881fb){if(_0xd881fb instanceof AnnError)throw _0xd881fb;else throw new AnnError(ApiError_1[_0x5f312e(0xc6)][_0x5f312e(0x9b)]);}},'around':async _0x2bd9b5=>{const _0x58841f=_0x181c22;var _0x202337,_0x36c58d,_0xbb8e12;const _0x48addf=(_0x202337=_0x2bd9b5===null||_0x2bd9b5===void 0x0?void 0x0:_0x2bd9b5[_0x58841f(0x88)])===null||_0x202337===void 0x0?void 0x0:_0x202337[core_2[_0x58841f(0x73)]];if(_0x48addf&&(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x93)])&&((_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x90)])||typeof(_0x2fe292===null||_0x2fe292===void 0x0?void 0x0:_0x2fe292[_0x58841f(0x90)])==_0x58841f(0x86))){if(((_0x36c58d=_0x48addf['headers'])===null||_0x36c58d===void 0x0?void 0x0:_0x36c58d[_0x58841f(0xe2)])&&((_0xbb8e12=_0x12f716===null||_0x12f716===void 0x0?void 0x0:_0x12f716[_0x48addf['headers'][_0x58841f(0xe2)]])===null||_0xbb8e12===void 0x0?void 0x0:_0xbb8e12[_0x58841f(0xb9)])>0x0)for(const _0x4ab3aa of _0x12f716[_0x48addf['headers']['device']]||[]){if(core_1[_0x58841f(0x89)]['isClass'](_0x4ab3aa)){const _0x330860=await _0x48addf['requestContext'][_0x58841f(0x9c)](_0x4ab3aa);typeof(_0x330860===null||_0x330860===void 0x0?void 0x0:_0x330860[_0x58841f(0x8f)])==_0x58841f(0x75)?await _0x330860[_0x58841f(0x8f)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute'])?_0x48addf['method'][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute']):undefined,_0x2fe292)&&await _0x330860[_0x58841f(0xc0)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)]):undefined,_0x2fe292):await _0x330860[_0x58841f(0xc0)](_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['method'])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0x6a)]):undefined,_0x2fe292);}else core_1[_0x58841f(0x89)][_0x58841f(0x8c)](_0x4ab3aa)&&await _0x4ab3aa(_0x48addf,typeof(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf[_0x58841f(0xa2)])==_0x58841f(0x64)&&(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute'])?_0x48addf[_0x58841f(0xa2)][_0x58841f(0xb4)]()+'@'+(_0x48addf===null||_0x48addf===void 0x0?void 0x0:_0x48addf['_matchedRoute']):undefined,_0x2fe292);}}return await _0x2bd9b5['proceed'](..._0x2bd9b5[_0x58841f(0x77)]);},'afterThrow':(_0x53d2ea,_0x240a38)=>{throw _0x240a38;}};});}async['hanlderApplications'](){const _0x149631=a2_0x2526e7,_0x319bfa=this[_0x149631(0xde)][_0x149631(0xc2)]();this[_0x149631(0xcf)][_0x149631(0xb3)]([_0x149631(0xbe)])[_0x149631(0xa8)](_0x118464=>{const _0x5f18d9=_0x149631;(_0x118464===null||_0x118464===void 0x0?void 0x0:_0x118464[_0x5f18d9(0x8d)])&&Object[_0x5f18d9(0x9f)](_0x118464[_0x5f18d9(0x8d)],{'hosturl':{'configurable':![],'get':function(){const _0x19d2f9=_0x5f18d9;var _0xc04a04,_0x56a249,_0x13d836,_0x27895e;if((this===null||this===void 0x0?void 0x0:this[_0x19d2f9(0x82)])&&!this[_0x19d2f9(0x82)][_0x19d2f9(0xb6)](_0x19d2f9(0xb5))){let _0x440e32=this[_0x19d2f9(0x82)][_0x19d2f9(0x7f)](':');return['80','443']['includes'](_0x440e32===null||_0x440e32===void 0x0?void 0x0:_0x440e32[0x1])?''+(!!((_0x56a249=(_0xc04a04=this===null||this===void 0x0?void 0x0:this['req'])===null||_0xc04a04===void 0x0?void 0x0:_0xc04a04[_0x19d2f9(0xe4)])===null||_0x56a249===void 0x0?void 0x0:_0x56a249[_0x19d2f9(0x8a)])||(_0x440e32===null||_0x440e32===void 0x0?void 0x0:_0x440e32[0x1])==_0x19d2f9(0x76)?'https://':'http://')+_0x440e32[0x0]:''+(!!((_0x27895e=(_0x13d836=this===null||this===void 0x0?void 0x0:this[_0x19d2f9(0xdf)])===null||_0x13d836===void 0x0?void 0x0:_0x13d836['connection'])===null||_0x27895e===void 0x0?void 0x0:_0x27895e['encrypted'])?'https://':'http://')+this['host'];}return'';}},'ok':{'value':function(_0x147423,_0x30a396,_0x54ea4c=0x0){return{'code':_0x54ea4c,'data':_0x147423,'extra':_0x30a396};}},'input':{'value':function(_0x529032,_0x1e792d){const _0x28453a=_0x5f18d9;var _0x445703;const _0x4bdc3a=lodash['defaultsDeep']({},this[_0x28453a(0x71)][_0x28453a(0x6b)]||this[_0x28453a(0x71)][((_0x445703=_0x319bfa===null||_0x319bfa===void 0x0?void 0x0:_0x319bfa[_0x28453a(0xb7)])===null||_0x445703===void 0x0?void 0x0:_0x445703[_0x28453a(0xda)])||_0x28453a(0x6b)]||{},this[_0x28453a(0x71)][_0x28453a(0x95)]||{});return _0x529032?lodash[_0x28453a(0x7e)](_0x4bdc3a,_0x529032,_0x1e792d):_0x4bdc3a;}},'when':{'value':async function(_0x98c7e9,_0x2e942d){const _0x23ac2d=_0x5f18d9,_0x46fff4=this[_0x23ac2d(0xd8)](_0x98c7e9,null);if(!lodash['isNull'](_0x46fff4))return await _0x2e942d(_0x46fff4);}},'only':{'value':function(_0x10f336){const _0x2abd82=_0x5f18d9,_0x577bb5={};for(let _0x3f3ff0=0x0;_0x3f3ff0<_0x10f336['length'];_0x3f3ff0++){lodash['isArray'](_0x10f336[_0x3f3ff0])&&_0x10f336[_0x3f3ff0][_0x2abd82(0xb9)]>0x0&&lodash[_0x2abd82(0xca)](_0x10f336[_0x3f3ff0][0x0])&&(_0x577bb5[_0x10f336[_0x3f3ff0][0x0]]=this[_0x2abd82(0xd8)](_0x10f336[_0x3f3ff0][0x0],_0x10f336[_0x3f3ff0][_0x2abd82(0xb9)]>0x1?_0x10f336[_0x3f3ff0][0x1]:null));}return _0x577bb5;}},'koasend':{'value':function(_0x1c8309,_0x3ed4a0){const _0xa6957d=_0x5f18d9;if(_0x1c8309&&!fs[_0xa6957d(0xd1)](_0x1c8309)&&!fs[_0xa6957d(0xd1)](this[_0xa6957d(0x65)][_0xa6957d(0xd3)]()+'/'+_0x1c8309))return _0xa6957d(0xc1);return _0x1c8309=fs[_0xa6957d(0xd1)](_0x1c8309)?_0x1c8309:this[_0xa6957d(0x65)][_0xa6957d(0xd3)]()+'/'+_0x1c8309,this['attachment'](_0x3ed4a0||_0x1c8309),koasend(this,_0x1c8309);}}});});}async['loggerConfig'](){const _0x31af02=a2_0x2526e7;var _0x2f5db8,_0x35cacf;if(fs[_0x31af02(0xd1)](this['app'][_0x31af02(0xa0)]()+_0x31af02(0x7d))&&fs['statSync'](this[_0x31af02(0x65)][_0x31af02(0xa0)]()+_0x31af02(0x7d))['isDirectory']()){const _0x120baa=this['config'][_0x31af02(0xc2)](),_0x53836c=((_0x2f5db8=_0x120baa===null||_0x120baa===void 0x0?void 0x0:_0x120baa[_0x31af02(0x99)])===null||_0x2f5db8===void 0x0?void 0x0:_0x2f5db8[_0x31af02(0x74)])||{};for(const _0x925091 of fs[_0x31af02(0xcd)](this[_0x31af02(0x65)]['getBaseDir']()+_0x31af02(0x7d))){if(!fs[_0x31af02(0x9d)](this[_0x31af02(0x65)][_0x31af02(0xa0)]()+_0x31af02(0xd2)+_0x925091)[_0x31af02(0xdb)]())continue;if(_0x53836c===null||_0x53836c===void 0x0?void 0x0:_0x53836c[_0x925091])continue;_0x53836c[_0x925091]=Object[_0x31af02(0x7b)]({},((_0x35cacf=_0x120baa===null||_0x120baa===void 0x0?void 0x0:_0x120baa['midwayLogger'])===null||_0x35cacf===void 0x0?void 0x0:_0x35cacf['default'])||{'maxSize':'1m','dir':this[_0x31af02(0x65)][_0x31af02(0xd3)]()+_0x31af02(0x96)},{'enableJSON':!![],'enableConsole':this[_0x31af02(0xd6)][_0x31af02(0xd7)](),'fileLogName':_0x925091+'.log','dir':this['app']['getAppDir']()+'/runtime/apps-'+_0x925091+_0x31af02(0xe5)});}Object[_0x31af02(0xc7)](_0x53836c)[_0x31af02(0xb9)]>0x0&&(!_0x120baa[_0x31af02(0x99)]&&(_0x120baa[_0x31af02(0x99)]={'default':{'maxSize':'1m','dir':this[_0x31af02(0x65)]['getAppDir']()+'/runtime'}}),_0x120baa[_0x31af02(0x99)][_0x31af02(0x74)]=_0x53836c),this[_0x31af02(0xde)][_0x31af02(0xb8)](_0x120baa);}}async['filterConfig'](){const _0x2e5218=a2_0x2526e7;var _0x413e96,_0x4fabbb,_0x4f08fd,_0x2621d9,_0x35aa15,_0x4db368;const _0x305df1=this[_0x2e5218(0xde)][_0x2e5218(0xc2)]();((_0x4fabbb=(_0x413e96=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0xd0)])===null||_0x413e96===void 0x0?void 0x0:_0x413e96[_0x2e5218(0x6d)])===null||_0x4fabbb===void 0x0?void 0x0:_0x4fabbb['DEFAULT'])&&Object['keys'](_0x305df1[_0x2e5218(0xd0)]['devices'])[_0x2e5218(0xb9)]>0x1&&delete _0x305df1[_0x2e5218(0xd0)]['devices'][_0x2e5218(0x6e)];if((_0x4f08fd=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0x9a)])===null||_0x4f08fd===void 0x0?void 0x0:_0x4f08fd[_0x2e5218(0x87)])for(const _0x3050a1 in _0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)]){((_0x2621d9=_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1])===null||_0x2621d9===void 0x0?void 0x0:_0x2621d9['dir'])&&typeof((_0x35aa15=_0x305df1['staticFile'][_0x2e5218(0x87)][_0x3050a1])===null||_0x35aa15===void 0x0?void 0x0:_0x35aa15[_0x2e5218(0xba)])==_0x2e5218(0x64)&&!fs[_0x2e5218(0xd1)](_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1][_0x2e5218(0xba)])&&(fs[_0x2e5218(0xa3)](_0x305df1[_0x2e5218(0x9a)][_0x2e5218(0x87)][_0x3050a1][_0x2e5218(0xba)],{'recursive':!![]}),console['log'](_0x2e5218(0x6f)+_0x305df1[_0x2e5218(0x9a)]['dirs'][_0x3050a1][_0x2e5218(0xba)]));}((_0x4db368=_0x305df1===null||_0x305df1===void 0x0?void 0x0:_0x305df1[_0x2e5218(0xa6)])===null||_0x4db368===void 0x0?void 0x0:_0x4db368[_0x2e5218(0xb0)])&&!fs['existsSync'](_0x305df1[_0x2e5218(0xa6)]['tmpdir'])&&(fs[_0x2e5218(0xa3)](_0x305df1[_0x2e5218(0xa6)][_0x2e5218(0xb0)],{'recursive':!![]}),console[_0x2e5218(0x7a)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x305df1[_0x2e5218(0xa6)][_0x2e5218(0xb0)])),this[_0x2e5218(0xde)][_0x2e5218(0xb8)](_0x305df1);}};__decorate([(0x0,core_1[a2_0x2526e7(0xd9)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0x65),void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2['MidwayConfigService'])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x2526e7(0xdc)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2[a2_0x2526e7(0x8e)])],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0xcf),void 0x0),__decorate([(0x0,core_1[a2_0x2526e7(0xd4)])(),__metadata(a2_0x2526e7(0xac),core_2[a2_0x2526e7(0x70)])],CustomConfiguration['prototype'],a2_0x2526e7(0xd6),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2526e7(0xac),ApiService_1[a2_0x2526e7(0xc4)])],CustomConfiguration[a2_0x2526e7(0xdc)],a2_0x2526e7(0xc4),void 0x0),exports[a2_0x2526e7(0xc5)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x2526e7(0xad)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2526e7(0xbb),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
function a2_0x5dba(_0x52da72,_0x51028b){const _0x15c37e=a2_0x10fa();return a2_0x5dba=function(_0x39f286,_0x618692){_0x39f286=_0x39f286-0x1be;let _0x10fa35=_0x15c37e[_0x39f286];return _0x10fa35;},a2_0x5dba(_0x52da72,_0x51028b);}const a2_0x46cc63=a2_0x5dba;(function(_0x47b244,_0x5d1c47){const _0x3b325d=a2_0x5dba,_0xdc7800=_0x47b244();while(!![]){try{const _0x2ec67f=parseInt(_0x3b325d(0x241))/0x1*(-parseInt(_0x3b325d(0x244))/0x2)+-parseInt(_0x3b325d(0x21d))/0x3+parseInt(_0x3b325d(0x1fa))/0x4*(-parseInt(_0x3b325d(0x1ca))/0x5)+-parseInt(_0x3b325d(0x213))/0x6+-parseInt(_0x3b325d(0x1cf))/0x7*(-parseInt(_0x3b325d(0x20d))/0x8)+parseInt(_0x3b325d(0x1f2))/0x9*(parseInt(_0x3b325d(0x20c))/0xa)+-parseInt(_0x3b325d(0x1dd))/0xb*(-parseInt(_0x3b325d(0x1c9))/0xc);if(_0x2ec67f===_0x5d1c47)break;else _0xdc7800['push'](_0xdc7800['shift']());}catch(_0x3f21b9){_0xdc7800['push'](_0xdc7800['shift']());}}}(a2_0x10fa,0x6d5cf));const a2_0x618692=(function(){let _0x13918f=!![];return function(_0x1f34eb,_0x5a191a){const _0x4082b2=_0x13918f?function(){const _0x197b55=a2_0x5dba;if(_0x5a191a){const _0x14068b=_0x5a191a[_0x197b55(0x214)](_0x1f34eb,arguments);return _0x5a191a=null,_0x14068b;}}:function(){};return _0x13918f=![],_0x4082b2;};}()),a2_0x39f286=a2_0x618692(this,function(){const _0x392679=a2_0x5dba;return a2_0x39f286[_0x392679(0x1c4)]()[_0x392679(0x235)]('(((.+)+)+)+$')[_0x392679(0x1c4)]()[_0x392679(0x1f1)](a2_0x39f286)[_0x392679(0x235)](_0x392679(0x220));});a2_0x39f286();'use strict';var __decorate=this&&this[a2_0x46cc63(0x223)]||function(_0x3eb14f,_0x2e4740,_0x490e64,_0x235897){const _0x3a42c6=a2_0x46cc63;var _0x1d846a=arguments[_0x3a42c6(0x1d9)],_0x1919e9=_0x1d846a<0x3?_0x2e4740:_0x235897===null?_0x235897=Object[_0x3a42c6(0x1e4)](_0x2e4740,_0x490e64):_0x235897,_0x558474;if(typeof Reflect==='object'&&typeof Reflect[_0x3a42c6(0x1d4)]===_0x3a42c6(0x20f))_0x1919e9=Reflect[_0x3a42c6(0x1d4)](_0x3eb14f,_0x2e4740,_0x490e64,_0x235897);else{for(var _0x1000e2=_0x3eb14f[_0x3a42c6(0x1d9)]-0x1;_0x1000e2>=0x0;_0x1000e2--)if(_0x558474=_0x3eb14f[_0x1000e2])_0x1919e9=(_0x1d846a<0x3?_0x558474(_0x1919e9):_0x1d846a>0x3?_0x558474(_0x2e4740,_0x490e64,_0x1919e9):_0x558474(_0x2e4740,_0x490e64))||_0x1919e9;}return _0x1d846a>0x3&&_0x1919e9&&Object['defineProperty'](_0x2e4740,_0x490e64,_0x1919e9),_0x1919e9;},__metadata=this&&this['__metadata']||function(_0x12272e,_0x4b98bc){const _0xd2214c=a2_0x46cc63;if(typeof Reflect===_0xd2214c(0x22e)&&typeof Reflect['metadata']==='function')return Reflect[_0xd2214c(0x1c6)](_0x12272e,_0x4b98bc);};Object[a2_0x46cc63(0x215)](exports,a2_0x46cc63(0x242),{'value':!![]}),exports[a2_0x46cc63(0x23b)]=void 0x0;const core_1=require(a2_0x46cc63(0x20e)),core_2=require(a2_0x46cc63(0x20e)),ApiError_1=require('./exception/ApiError'),ApiService_1=require(a2_0x46cc63(0x21e)),intercept_1=require(a2_0x46cc63(0x1d6)),action_1=require(a2_0x46cc63(0x24e)),fs=require('fs'),koasend=require(a2_0x46cc63(0x1e7)),koa=require('@midwayjs/koa'),upload=require(a2_0x46cc63(0x225)),staticFile=require(a2_0x46cc63(0x1d0)),crossDomain=require(a2_0x46cc63(0x232)),ConfigDefault=require(a2_0x46cc63(0x1ee)),ConfigProduction=require(a2_0x46cc63(0x1ce)),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x46cc63(0x1ea)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x46cc63(0x200)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x46cc63(0x23b)]=class CustomConfiguration{async[a2_0x46cc63(0x1e1)](){const _0x89cd57=a2_0x46cc63;await this[_0x89cd57(0x233)](),await this[_0x89cd57(0x211)](),await this[_0x89cd57(0x21c)](),await this[_0x89cd57(0x1f6)]();}async['handlerActionRoute'](){const _0xbedeb0=a2_0x46cc63,_0x510446=this[_0xbedeb0(0x24f)]['getConfiguration'](),_0x1459b2=(0x0,core_1[_0xbedeb0(0x249)])(intercept_1[_0xbedeb0(0x1ef)],intercept_1[_0xbedeb0(0x1eb)])||{};this['decorator'][_0xbedeb0(0x1d2)](action_1['ACTION_ROUTE_KEY'],_0x38b672=>{const _0x36a0d4=_0xbedeb0;var _0xa306af;const _0xe36a5=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{},_0x29c2e5=_0x38b672[_0x36a0d4(0x1c6)],_0x58afa6=(0x0,core_1[_0x36a0d4(0x249)])(action_1[_0x36a0d4(0x1f3)],_0x38b672[_0x36a0d4(0x20b)])||{},_0xa86d3b=((_0xa306af=_0x58afa6===null||_0x58afa6===void 0x0?void 0x0:_0x58afa6[_0x36a0d4(0x1be)])===null||_0xa306af===void 0x0?void 0x0:_0xa306af[_0x36a0d4(0x204)](0x0,_0x58afa6[_0x36a0d4(0x1be)][_0x36a0d4(0x1da)]('.')))||'',_0x221761=(_0x58afa6===null||_0x58afa6===void 0x0?void 0x0:_0x58afa6[_0x36a0d4(0x1d7)])?(_0xe36a5===null||_0xe36a5===void 0x0?void 0x0:_0xe36a5[_0x58afa6[_0x36a0d4(0x1d7)]])||{}:{};return{'before':async _0x5d5e07=>{const _0x3d224e=_0x36a0d4;var _0x312280,_0x47d9a9,_0x16a97f,_0x336ccd;const _0x8213cc=(_0x312280=_0x5d5e07===null||_0x5d5e07===void 0x0?void 0x0:_0x5d5e07[_0x3d224e(0x20b)])===null||_0x312280===void 0x0?void 0x0:_0x312280[core_2[_0x3d224e(0x22f)]],_0x22457d=lodash[_0x3d224e(0x243)]({},_0x8213cc[_0x3d224e(0x1c8)][_0x3d224e(0x24a)]||_0x8213cc[_0x3d224e(0x1c8)][((_0x47d9a9=_0x510446===null||_0x510446===void 0x0?void 0x0:_0x510446[_0x3d224e(0x1fd)])===null||_0x47d9a9===void 0x0?void 0x0:_0x47d9a9[_0x3d224e(0x21a)])||_0x3d224e(0x24a)]||{},_0x8213cc['request'][_0x3d224e(0x1e9)]||{});_0x8213cc[_0x3d224e(0x247)]={'module':(_0x221761===null||_0x221761===void 0x0?void 0x0:_0x221761[_0x3d224e(0x23e)])||'','routePath':''+_0x8213cc[_0x3d224e(0x23d)],'routeName':_0x58afa6[_0x3d224e(0x1f8)][_0x3d224e(0x1dc)]+'@'+_0x29c2e5['routerName'],'routeMethod':((_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5[_0x3d224e(0x1e0)])||_0x8213cc[_0x3d224e(0x1cb)]||'')[_0x3d224e(0x239)](),'routeDescription':(_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5[_0x3d224e(0x1e8)])||'','filemethod':_0xa86d3b+'@'+(_0x29c2e5[_0x3d224e(0x1cb)]||'')};if(_0x8213cc&&(_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5[_0x3d224e(0x1ec)]))try{const _0x5e5b2a=((_0x16a97f=_0x510446===null||_0x510446===void 0x0?void 0x0:_0x510446[_0x3d224e(0x1d3)])===null||_0x16a97f===void 0x0?void 0x0:_0x16a97f[_0x3d224e(0x1c5)])&&typeof(_0x22457d===null||_0x22457d===void 0x0?void 0x0:_0x22457d[_0x510446[_0x3d224e(0x1d3)][_0x3d224e(0x1c5)]])==_0x3d224e(0x251)?JSON[_0x3d224e(0x236)](base64_decode(_0x22457d[_0x510446['anncicapi'][_0x3d224e(0x1c5)]])||'{}')||{}:((_0x336ccd=_0x8213cc===null||_0x8213cc===void 0x0?void 0x0:_0x8213cc[_0x3d224e(0x1c8)])===null||_0x336ccd===void 0x0?void 0x0:_0x336ccd[_0x3d224e(0x1c0)])||{};if(!this[_0x3d224e(0x224)][_0x3d224e(0x246)](_0x5e5b2a))throw new AnnError(ApiError_1[_0x3d224e(0x217)]['HEADERS_SIGNATURE']);}catch(_0x2dc5b5){if(_0x2dc5b5 instanceof AnnError)throw _0x2dc5b5;else throw new AnnError(ApiError_1[_0x3d224e(0x217)][_0x3d224e(0x208)]);}},'around':async _0x14edfe=>{const _0x1eb328=_0x36a0d4;var _0x1d1f0e,_0x5eb0fa,_0x1f9848;const _0x128255=(_0x1d1f0e=_0x14edfe===null||_0x14edfe===void 0x0?void 0x0:_0x14edfe[_0x1eb328(0x20b)])===null||_0x1d1f0e===void 0x0?void 0x0:_0x1d1f0e[core_2[_0x1eb328(0x22f)]];if(_0x128255&&(_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5['apimit'])&&((_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5[_0x1eb328(0x231)])||typeof(_0x29c2e5===null||_0x29c2e5===void 0x0?void 0x0:_0x29c2e5[_0x1eb328(0x231)])=='undefined')){if(((_0x5eb0fa=_0x128255[_0x1eb328(0x1c0)])===null||_0x5eb0fa===void 0x0?void 0x0:_0x5eb0fa[_0x1eb328(0x229)])&&((_0x1f9848=_0x1459b2===null||_0x1459b2===void 0x0?void 0x0:_0x1459b2[_0x128255[_0x1eb328(0x1c0)][_0x1eb328(0x229)]])===null||_0x1f9848===void 0x0?void 0x0:_0x1f9848[_0x1eb328(0x1d9)])>0x0)for(const _0x12755d of _0x1459b2[_0x128255[_0x1eb328(0x1c0)]['device']]||[]){if(core_1[_0x1eb328(0x1de)][_0x1eb328(0x1c1)](_0x12755d)){const _0x38e587=await _0x128255['requestContext'][_0x1eb328(0x202)](_0x12755d);typeof(_0x38e587===null||_0x38e587===void 0x0?void 0x0:_0x38e587[_0x1eb328(0x207)])=='function'?await _0x38e587[_0x1eb328(0x207)](_0x128255,typeof(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1cb)])==_0x1eb328(0x251)&&(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)])?_0x128255[_0x1eb328(0x1cb)][_0x1eb328(0x239)]()+'@'+(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)]):undefined,_0x29c2e5)&&await _0x38e587[_0x1eb328(0x212)](_0x128255,typeof(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1cb)])==_0x1eb328(0x251)&&(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)])?_0x128255[_0x1eb328(0x1cb)]['toLowerCase']()+'@'+(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255['_matchedRoute']):undefined,_0x29c2e5):await _0x38e587[_0x1eb328(0x212)](_0x128255,typeof(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1cb)])=='string'&&(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)])?_0x128255[_0x1eb328(0x1cb)]['toLowerCase']()+'@'+(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)]):undefined,_0x29c2e5);}else core_1[_0x1eb328(0x1de)][_0x1eb328(0x22d)](_0x12755d)&&await _0x12755d(_0x128255,typeof(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1cb)])==_0x1eb328(0x251)&&(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)])?_0x128255[_0x1eb328(0x1cb)][_0x1eb328(0x239)]()+'@'+(_0x128255===null||_0x128255===void 0x0?void 0x0:_0x128255[_0x1eb328(0x1d1)]):undefined,_0x29c2e5);}}return await _0x14edfe[_0x1eb328(0x201)](..._0x14edfe[_0x1eb328(0x1f4)]);},'afterThrow':(_0x39c801,_0x39eeb0)=>{throw _0x39eeb0;}};});}async['hanlderApplications'](){const _0x3af1c1=a2_0x46cc63,_0x4f92a6=this[_0x3af1c1(0x24f)][_0x3af1c1(0x203)]();this[_0x3af1c1(0x1fc)][_0x3af1c1(0x230)]([_0x3af1c1(0x22c)])[_0x3af1c1(0x1f9)](_0x92465e=>{const _0x4896bb=_0x3af1c1;(_0x92465e===null||_0x92465e===void 0x0?void 0x0:_0x92465e[_0x4896bb(0x219)])&&Object['defineProperties'](_0x92465e['context'],{'hosturl':{'configurable':![],'get':function(){const _0xe814e2=_0x4896bb;var _0x99cdb5,_0x214cd9,_0x19e103,_0x51d59e;if((this===null||this===void 0x0?void 0x0:this[_0xe814e2(0x1ff)])&&!this[_0xe814e2(0x1ff)][_0xe814e2(0x216)](_0xe814e2(0x23c))){let _0x1b6c02=this[_0xe814e2(0x1ff)][_0xe814e2(0x24d)](':');return['80',_0xe814e2(0x1f0)][_0xe814e2(0x1e5)](_0x1b6c02===null||_0x1b6c02===void 0x0?void 0x0:_0x1b6c02[0x1])?''+(!!((_0x214cd9=(_0x99cdb5=this===null||this===void 0x0?void 0x0:this[_0xe814e2(0x1d8)])===null||_0x99cdb5===void 0x0?void 0x0:_0x99cdb5['connection'])===null||_0x214cd9===void 0x0?void 0x0:_0x214cd9[_0xe814e2(0x1fe)])||(_0x1b6c02===null||_0x1b6c02===void 0x0?void 0x0:_0x1b6c02[0x1])=='443'?'https://':'http://')+_0x1b6c02[0x0]:''+(!!((_0x51d59e=(_0x19e103=this===null||this===void 0x0?void 0x0:this[_0xe814e2(0x1d8)])===null||_0x19e103===void 0x0?void 0x0:_0x19e103['connection'])===null||_0x51d59e===void 0x0?void 0x0:_0x51d59e[_0xe814e2(0x1fe)])?'https://':_0xe814e2(0x1c3))+this['host'];}return'';}},'ok':{'value':function(_0x56ef32,_0x5845c8,_0x758ab6=0x0){return{'code':_0x758ab6,'data':_0x56ef32,'extra':_0x5845c8};}},'input':{'value':function(_0x46af0d,_0x2eae1){const _0x539036=_0x4896bb;var _0x56058a;const _0x578f89=lodash[_0x539036(0x243)]({},this[_0x539036(0x1c8)][_0x539036(0x24a)]||this[_0x539036(0x1c8)][((_0x56058a=_0x4f92a6===null||_0x4f92a6===void 0x0?void 0x0:_0x4f92a6[_0x539036(0x1fd)])===null||_0x56058a===void 0x0?void 0x0:_0x56058a[_0x539036(0x21a)])||_0x539036(0x24a)]||{},this[_0x539036(0x1c8)]['query']||{});return _0x46af0d?lodash['get'](_0x578f89,_0x46af0d,_0x2eae1):_0x578f89;}},'when':{'value':async function(_0x4c3276,_0x224886){const _0x2f18eb=_0x4896bb,_0x2e8384=this['input'](_0x4c3276,null);if(!lodash[_0x2f18eb(0x209)](_0x2e8384))return await _0x224886(_0x2e8384);}},'only':{'value':function(_0x520f8b){const _0x220ac9=_0x4896bb,_0x253925={};for(let _0x21c1d3=0x0;_0x21c1d3<_0x520f8b[_0x220ac9(0x1d9)];_0x21c1d3++){lodash['isArray'](_0x520f8b[_0x21c1d3])&&_0x520f8b[_0x21c1d3]['length']>0x0&&lodash[_0x220ac9(0x1bf)](_0x520f8b[_0x21c1d3][0x0])&&(_0x253925[_0x520f8b[_0x21c1d3][0x0]]=this[_0x220ac9(0x1e3)](_0x520f8b[_0x21c1d3][0x0],_0x520f8b[_0x21c1d3][_0x220ac9(0x1d9)]>0x1?_0x520f8b[_0x21c1d3][0x1]:null));}return _0x253925;}},'koasend':{'value':async function(_0x13658f,_0x5c2255){const _0xf98597=_0x4896bb;if(_0x13658f&&!fs[_0xf98597(0x1c7)](_0x13658f)&&!fs[_0xf98597(0x1c7)](this[_0xf98597(0x218)][_0xf98597(0x1ed)]()+'/'+_0x13658f))return _0xf98597(0x1f5);return _0x13658f=fs[_0xf98597(0x1c7)](_0x13658f)?_0x13658f:this['app'][_0xf98597(0x1ed)]()+'/'+_0x13658f,this[_0xf98597(0x1db)](_0x5c2255||_0x13658f),await koasend(this,_0x13658f);}}});});}async[a2_0x46cc63(0x211)](){const _0x3532b9=a2_0x46cc63;var _0x52059a,_0x4ce551;if(fs['existsSync'](this[_0x3532b9(0x218)][_0x3532b9(0x24b)]()+'/apps')&&fs['statSync'](this[_0x3532b9(0x218)][_0x3532b9(0x24b)]()+_0x3532b9(0x20a))[_0x3532b9(0x234)]()){const _0x42faf0=this['config'][_0x3532b9(0x203)](),_0xf7490f=((_0x52059a=_0x42faf0===null||_0x42faf0===void 0x0?void 0x0:_0x42faf0[_0x3532b9(0x21b)])===null||_0x52059a===void 0x0?void 0x0:_0x52059a['clients'])||{};for(const _0x4cf476 of fs[_0x3532b9(0x22a)](this['app'][_0x3532b9(0x24b)]()+_0x3532b9(0x20a))){if(!fs[_0x3532b9(0x1cc)](this['app'][_0x3532b9(0x24b)]()+'/apps/'+_0x4cf476)['isDirectory']())continue;if(_0xf7490f===null||_0xf7490f===void 0x0?void 0x0:_0xf7490f[_0x4cf476])continue;_0xf7490f[_0x4cf476]=Object[_0x3532b9(0x252)]({},((_0x4ce551=_0x42faf0===null||_0x42faf0===void 0x0?void 0x0:_0x42faf0[_0x3532b9(0x21b)])===null||_0x4ce551===void 0x0?void 0x0:_0x4ce551[_0x3532b9(0x226)])||{'maxSize':'1m','dir':this['app']['getAppDir']()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x3532b9(0x1cd)][_0x3532b9(0x237)](),'fileLogName':_0x4cf476+_0x3532b9(0x1e2),'dir':this[_0x3532b9(0x218)][_0x3532b9(0x1ed)]()+_0x3532b9(0x1c2)+_0x4cf476});}Object[_0x3532b9(0x205)](_0xf7490f)[_0x3532b9(0x1d9)]>0x0&&(!_0x42faf0[_0x3532b9(0x21b)]&&(_0x42faf0[_0x3532b9(0x21b)]={'default':{'maxSize':'1m','dir':this[_0x3532b9(0x218)]['getAppDir']()+_0x3532b9(0x238)}}),_0x42faf0['midwayLogger'][_0x3532b9(0x227)]=_0xf7490f),this[_0x3532b9(0x24f)]['addObject'](_0x42faf0);}}async[a2_0x46cc63(0x233)](){const _0x533a60=a2_0x46cc63;var _0x1fe890,_0x59c69c,_0xb83173,_0x49f07c,_0x2559ca,_0x1950c4;const _0xcc90b2=this['config'][_0x533a60(0x203)]();((_0x59c69c=(_0x1fe890=_0xcc90b2===null||_0xcc90b2===void 0x0?void 0x0:_0xcc90b2[_0x533a60(0x1d3)])===null||_0x1fe890===void 0x0?void 0x0:_0x1fe890['devices'])===null||_0x59c69c===void 0x0?void 0x0:_0x59c69c['DEFAULT'])&&Object[_0x533a60(0x205)](_0xcc90b2[_0x533a60(0x1d3)][_0x533a60(0x240)])[_0x533a60(0x1d9)]>0x1&&delete _0xcc90b2['anncicapi']['devices'][_0x533a60(0x1df)];if((_0xb83173=_0xcc90b2===null||_0xcc90b2===void 0x0?void 0x0:_0xcc90b2[_0x533a60(0x248)])===null||_0xb83173===void 0x0?void 0x0:_0xb83173[_0x533a60(0x23f)])for(const _0x36e47f in _0xcc90b2[_0x533a60(0x248)]['dirs']){((_0x49f07c=_0xcc90b2[_0x533a60(0x248)][_0x533a60(0x23f)][_0x36e47f])===null||_0x49f07c===void 0x0?void 0x0:_0x49f07c[_0x533a60(0x250)])&&typeof((_0x2559ca=_0xcc90b2[_0x533a60(0x248)][_0x533a60(0x23f)][_0x36e47f])===null||_0x2559ca===void 0x0?void 0x0:_0x2559ca[_0x533a60(0x250)])=='string'&&!fs['existsSync'](_0xcc90b2[_0x533a60(0x248)][_0x533a60(0x23f)][_0x36e47f][_0x533a60(0x250)])&&(fs[_0x533a60(0x1f7)](_0xcc90b2[_0x533a60(0x248)][_0x533a60(0x23f)][_0x36e47f][_0x533a60(0x250)],{'recursive':!![]}),console[_0x533a60(0x21f)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0xcc90b2[_0x533a60(0x248)]['dirs'][_0x36e47f][_0x533a60(0x250)]));}((_0x1950c4=_0xcc90b2===null||_0xcc90b2===void 0x0?void 0x0:_0xcc90b2['upload'])===null||_0x1950c4===void 0x0?void 0x0:_0x1950c4[_0x533a60(0x210)])&&!fs[_0x533a60(0x1c7)](_0xcc90b2['upload']['tmpdir'])&&(fs[_0x533a60(0x1f7)](_0xcc90b2[_0x533a60(0x24c)][_0x533a60(0x210)],{'recursive':!![]}),console[_0x533a60(0x21f)](_0x533a60(0x245)+_0xcc90b2[_0x533a60(0x24c)][_0x533a60(0x210)])),this[_0x533a60(0x24f)]['addObject'](_0xcc90b2);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x46cc63(0x221),Object)],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x218),void 0x0),__decorate([(0x0,core_1[a2_0x46cc63(0x22b)])(),__metadata('design:type',core_2[a2_0x46cc63(0x228)])],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x24f),void 0x0),__decorate([(0x0,core_1[a2_0x46cc63(0x22b)])(),__metadata(a2_0x46cc63(0x221),core_2[a2_0x46cc63(0x23a)])],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x222),void 0x0),__decorate([(0x0,core_1[a2_0x46cc63(0x22b)])(),__metadata(a2_0x46cc63(0x221),core_2[a2_0x46cc63(0x1e6)])],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x1fc),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x46cc63(0x221),core_2[a2_0x46cc63(0x1fb)])],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x1cd),void 0x0),__decorate([(0x0,core_1[a2_0x46cc63(0x22b)])(),__metadata(a2_0x46cc63(0x221),ApiService_1[a2_0x46cc63(0x224)])],CustomConfiguration[a2_0x46cc63(0x206)],a2_0x46cc63(0x224),void 0x0),exports[a2_0x46cc63(0x23b)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x46cc63(0x1d5)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a2_0x10fa(){const _0x241cb6=['dir','string','assign','filepath','isString','headers','isClass','/runtime/apps-','http://','toString','requestKey','metadata','existsSync','request','1268076MCGpMo','4373255IZPmGM','method','statSync','environment','./config/config.production','34356nDDvkz','@midwayjs/static-file','_matchedRoute','registerMethodHandler','anncicapi','decorate','Configuration','./types/intercept','module','req','length','lastIndexOf','attachment','tagName','143xUoLvN','Types','DEFAULT','requestMethod','onReady','.log','input','getOwnPropertyDescriptor','includes','MidwayApplicationManager','koa-send','description','query','@anncic-api/cache','InterceptTargetTmp','apimit','getAppDir','./config/config.default','INTERCEPT_KEY','443','constructor','18SzJxrV','ACTION_KEY','args','文件不存在','hanlderApplications','mkdirSync','routerOptions','forEach','4yyfsLX','MidwayEnvironmentService','application','bodyXml','encrypted','host','@anncic-api/validator','proceed','getAsync','getConfiguration','substring','keys','prototype','match','_UNKNOW_','isNull','/apps','target','154070fxWFfp','888JkbYMq','@midwayjs/core','function','tmpdir','loggerConfig','handler','464466tgiPwk','apply','defineProperty','startsWith','ApiError','app','context','key','midwayLogger','handlerActionRoute','884859poygyH','./service/ApiService','log','(((.+)+)+)+$','design:type','decorator','__decorate','ApiService','@midwayjs/upload','default','clients','MidwayConfigService','device','readdirSync','Inject','koa','isFunction','object','REQUEST_OBJ_CTX_KEY','getApplications','intercept','@midwayjs/cross-domain','filterConfig','isDirectory','search','parse','isDevelopmentEnvironment','/runtime','toLowerCase','MidwayDecoratorService','CustomConfiguration','http','path','name','dirs','devices','3kYuwuA','__esModule','defaultsDeep','169590tsmJfM','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','checksign','_matchedRouteMeta','staticFile','getClassMetadata','body','getBaseDir','upload','split','./types/action','config'];a2_0x10fa=function(){return _0x241cb6;};return a2_0x10fa();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x41f6f4=a3_0x16a0;(function(_0x4ba048,_0x439eef){const _0x32eb77=a3_0x16a0,_0x34a5cf=_0x4ba048();while(!![]){try{const _0x2afe0c=-parseInt(_0x32eb77(0x202))/0x1*(parseInt(_0x32eb77(0x1f2))/0x2)+-parseInt(_0x32eb77(0x1d6))/0x3*(-parseInt(_0x32eb77(0x211))/0x4)+-parseInt(_0x32eb77(0x1df))/0x5+-parseInt(_0x32eb77(0x206))/0x6+-parseInt(_0x32eb77(0x204))/0x7*(-parseInt(_0x32eb77(0x1eb))/0x8)+-parseInt(_0x32eb77(0x215))/0x9+parseInt(_0x32eb77(0x207))/0xa;if(_0x2afe0c===_0x439eef)break;else _0x34a5cf['push'](_0x34a5cf['shift']());}catch(_0x2cc537){_0x34a5cf['push'](_0x34a5cf['shift']());}}}(a3_0xb5a9,0x825b4));const a3_0x1e81bb=(function(){let _0x4766fd=!![];return function(_0x5c9130,_0x1ab9e3){const _0x40ff42=_0x4766fd?function(){if(_0x1ab9e3){const _0x47ee46=_0x1ab9e3['apply'](_0x5c9130,arguments);return _0x1ab9e3=null,_0x47ee46;}}:function(){};return _0x4766fd=![],_0x40ff42;};}()),a3_0x28c6d6=a3_0x1e81bb(this,function(){const _0x127f07=a3_0x16a0;return a3_0x28c6d6[_0x127f07(0x1d7)]()[_0x127f07(0x1f0)](_0x127f07(0x212))[_0x127f07(0x1d7)]()[_0x127f07(0x1e5)](a3_0x28c6d6)[_0x127f07(0x1f0)](_0x127f07(0x212));});a3_0x28c6d6();'use strict';function a3_0xb5a9(){const _0x79d17d=['349601ZkLYYb','AppsConfigTmp','473136kqtAqU','11387690UvGCix','createCustomMethodDecorator','app/controller/','indexOf','prefix','startsWith','\x20文件请放在apps/','parseRoute','filter','cwd','22036mMMRhR','(((.+)+)+)+$','module','isArray','5751648vTaDcu','string','/controller/文件下','saveClassMetadata','/config.','description','endsWith','get','undefined','__esModule','@anncic-api/validator','existsSync','ActionApi','filepath','tagName','339espLKi','toString','/controller/','basic/controller/','split','/apps/','join','apimit','-controller','4712740gaCJUE','push','trim','length','assign','Validator','constructor','post','toLowerCase','APPSCONFIG_KEY','RequestMapping','../types/action','128nOoShE','Controller','middlewareIgnore','\x20文件请放在app/controller/文件下','substring','search','Action','9036eQXbom','attachClassMetadata','saveModule','replace','-action','intercept','splice','getClassMetadata','match','ACTION_KEY','rootpath','middleware','apps/','ACTION_ROUTE_KEY','routerName','route','81XWQSfH','validate'];a3_0xb5a9=function(){return _0x79d17d;};return a3_0xb5a9();}Object['defineProperty'](exports,a3_0x41f6f4(0x1d0),{'value':!![]}),exports[a3_0x41f6f4(0x20e)]=exports[a3_0x41f6f4(0x1d3)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x41f6f4(0x1d1)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a3_0x41f6f4(0x1ea));function Action(_0x50980f,_0x5dcb6c,_0x21fef4={'middleware':[],'sensitive':!![]}){return _0x398b78=>{const _0x22501c=a3_0x16a0;var _0x2d0b43;_0x21fef4[_0x22501c(0x1d5)]=_0x5dcb6c;const _0x3eda14=parseRoute(_0x50980f);if(_0x3eda14[_0x22501c(0x213)]){_0x21fef4[_0x22501c(0x20b)]=_0x21fef4['prefix']?'/'+_0x3eda14[_0x22501c(0x213)]+'/'+_0x21fef4[_0x22501c(0x20b)]:'/'+_0x3eda14[_0x22501c(0x201)];_0x3eda14[_0x22501c(0x20b)]&&(_0x21fef4['prefix']='/'+_0x3eda14[_0x22501c(0x20b)]+'/'+_0x21fef4[_0x22501c(0x20b)]);if(fs[_0x22501c(0x1d2)](_0x3eda14[_0x22501c(0x1fc)]+_0x22501c(0x1db)+_0x3eda14[_0x22501c(0x213)]+'/config.'+(lodash[_0x22501c(0x1cd)](_0x3eda14[_0x22501c(0x1d4)],'ts')?'ts':'js'))){const _0x35120f=include(_0x3eda14[_0x22501c(0x1fc)]+_0x22501c(0x1db)+_0x3eda14[_0x22501c(0x213)]+_0x22501c(0x1cb)+(lodash[_0x22501c(0x1cd)](_0x3eda14[_0x22501c(0x1d4)],'ts')?'ts':'js'));if(lodash[_0x22501c(0x214)](_0x35120f[_0x22501c(0x1fd)])&&_0x35120f[_0x22501c(0x1fd)][_0x22501c(0x1e2)]>0x0)for(let _0x2f345d in _0x35120f[_0x22501c(0x1fd)]){if(((_0x2d0b43=_0x35120f===null||_0x35120f===void 0x0?void 0x0:_0x35120f[_0x22501c(0x1ed)])===null||_0x2d0b43===void 0x0?void 0x0:_0x2d0b43[_0x22501c(0x1e2)])>0x0&&_0x35120f[_0x22501c(0x1ed)][_0x22501c(0x20a)](_0x35120f[_0x22501c(0x1fd)][_0x2f345d])!=-0x1)continue;_0x21fef4[_0x22501c(0x1fd)][_0x22501c(0x1e0)](_0x35120f[_0x22501c(0x1fd)][_0x2f345d]);}const _0x2bdf0b=(0x0,core_1[_0x22501c(0x1f9)])(action_1[_0x22501c(0x1e8)],action_1[_0x22501c(0x205)])||{};_0x2bdf0b[''+_0x3eda14[_0x22501c(0x213)]]=_0x35120f,(0x0,core_1[_0x22501c(0x1ca)])(action_1['APPSCONFIG_KEY'],_0x2bdf0b,action_1[_0x22501c(0x205)]);}_0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)][_0x22501c(0x1e7)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x22501c(0x1f4)])(action_1[_0x22501c(0x1fb)],_0x398b78),(0x0,core_1[_0x22501c(0x1ec)])(_0x21fef4['prefix'],_0x21fef4)(_0x398b78),(0x0,core_1['saveClassMetadata'])(action_1[_0x22501c(0x1fb)],{'prefix':_0x21fef4[_0x22501c(0x20b)],'pprefix':_0x3eda14[_0x22501c(0x20b)],'module':_0x3eda14[_0x22501c(0x213)],'filepath':_0x3eda14[_0x22501c(0x1d4)],'routerOptions':_0x21fef4},_0x398b78);}else _0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)]?'/'+_0x21fef4['prefix']:'/'+_0x3eda14[_0x22501c(0x201)],_0x3eda14[_0x22501c(0x20b)]&&(_0x21fef4[_0x22501c(0x20b)]='/'+_0x3eda14[_0x22501c(0x20b)]+'/'+_0x21fef4[_0x22501c(0x20b)]),_0x21fef4[_0x22501c(0x20b)]=_0x21fef4[_0x22501c(0x20b)]['toLowerCase']()[_0x22501c(0x1f5)](/\/{2,}/g,'/'),(0x0,core_1[_0x22501c(0x1f4)])(action_1['ACTION_KEY'],_0x398b78),(0x0,core_1[_0x22501c(0x1ec)])(_0x21fef4[_0x22501c(0x20b)],_0x21fef4)(_0x398b78),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x21fef4[_0x22501c(0x20b)],'module':_0x3eda14[_0x22501c(0x213)],'pprefix':_0x3eda14['prefix'],'filepath':_0x3eda14[_0x22501c(0x1d4)],'routerOptions':_0x21fef4},_0x398b78);};}exports[a3_0x41f6f4(0x1f1)]=Action,Action['get']=function(_0x28b9a7,_0x20f698='/',_0x1f7e72={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5f48d6,_0x12e031,_0x34c0b6)=>{ActionApi(_0x28b9a7,'get',_0x20f698,_0x1f7e72)(_0x5f48d6,_0x12e031,_0x34c0b6);};},Action[a3_0x41f6f4(0x1e6)]=function(_0xa752bf,_0x2aa630='/',_0xf38c28={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x490534,_0x41774,_0x215aa4)=>{ActionApi(_0xa752bf,'post',_0x2aa630,_0xf38c28)(_0x490534,_0x41774,_0x215aa4);};};function ActionApi(_0x4569ba,_0x10d30b=a3_0x41f6f4(0x1ce),_0x47d45b='/',_0x17294c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x4f7213,_0x2db94d,_0x55fc43)=>{const _0x38ea73=a3_0x16a0;var _0xa4868b,_0x35d6c4,_0x3cdbd5;!_0x17294c[_0x38ea73(0x1fd)]&&(_0x17294c[_0x38ea73(0x1fd)]=[]);!((_0xa4868b=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c[_0x38ea73(0x203)])===null||_0xa4868b===void 0x0?void 0x0:_0xa4868b['validationOptions'])&&(_0x17294c[_0x38ea73(0x203)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x38ea73(0x216)}});if(!_0x47d45b)_0x47d45b='/';else typeof _0x47d45b==_0x38ea73(0x216)&&(!_0x47d45b[_0x38ea73(0x20c)]('/')&&!_0x47d45b[_0x38ea73(0x20c)]('-')&&(_0x47d45b='/'+_0x47d45b));typeof _0x17294c['apimit']==_0x38ea73(0x1cf)&&(_0x17294c[_0x38ea73(0x1dd)]=!![]);if(((_0x35d6c4=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c['middleware'])===null||_0x35d6c4===void 0x0?void 0x0:_0x35d6c4[_0x38ea73(0x1e2)])>0x0&&((_0x3cdbd5=_0x17294c===null||_0x17294c===void 0x0?void 0x0:_0x17294c[_0x38ea73(0x1ed)])===null||_0x3cdbd5===void 0x0?void 0x0:_0x3cdbd5[_0x38ea73(0x1e2)])>0x0)for(let _0x47e035 in _0x17294c[_0x38ea73(0x1fd)]){_0x17294c[_0x38ea73(0x1ed)]['indexOf'](_0x17294c['middleware'][_0x47e035])!==-0x1&&(_0x17294c['middleware'][_0x47e035]=null);}_0x17294c[_0x38ea73(0x200)]=_0x4569ba,(0x0,validator_1[_0x38ea73(0x1e4)])(_0x17294c['validate'])(_0x4f7213,_0x2db94d,_0x55fc43),(0x0,core_2[_0x38ea73(0x1e9)])(Object[_0x38ea73(0x1e3)](_0x17294c,{'path':_0x47d45b,'requestMethod':(_0x10d30b||'get')[_0x38ea73(0x1e7)]()}))(_0x4f7213,_0x2db94d,_0x55fc43),(0x0,core_2[_0x38ea73(0x1f3)])(action_1[_0x38ea73(0x1ff)],{'path':_0x47d45b,'method':_0x2db94d,'apimit':_0x17294c[_0x38ea73(0x1dd)],'intercept':_0x17294c[_0x38ea73(0x1f7)],'routerName':_0x17294c[_0x38ea73(0x200)],'description':_0x17294c['description'],'middleware':(_0x17294c[_0x38ea73(0x1fd)]||[])['filter'](_0xb78cbb=>!!_0xb78cbb),'requestMethod':(_0x10d30b||_0x38ea73(0x1ce))[_0x38ea73(0x1e7)]()},_0x4f7213),(0x0,core_2[_0x38ea73(0x208)])(action_1[_0x38ea73(0x1ff)],{'path':_0x47d45b,'method':_0x2db94d,'apimit':_0x17294c['apimit'],'intercept':_0x17294c[_0x38ea73(0x1f7)],'routerName':_0x17294c['routerName'],'description':_0x17294c[_0x38ea73(0x1cc)],'middleware':(_0x17294c[_0x38ea73(0x1fd)]||[])[_0x38ea73(0x20f)](_0x646b0d=>!!_0x646b0d),'requestMethod':(_0x10d30b||'get')['toLowerCase']()})(_0x4f7213,_0x2db94d,_0x55fc43);};}exports[a3_0x41f6f4(0x1d3)]=ActionApi;function a3_0x16a0(_0x13b0f8,_0x377d1d){const _0x3c30de=a3_0xb5a9();return a3_0x16a0=function(_0x28c6d6,_0x1e81bb){_0x28c6d6=_0x28c6d6-0x1c9;let _0xb5a97d=_0x3c30de[_0x28c6d6];return _0xb5a97d;},a3_0x16a0(_0x13b0f8,_0x377d1d);}function parseRoute(_0xea133e){const _0x5568fa=a3_0x41f6f4;_0xea133e=_0xea133e['replace'](/(\\|\/)/g,'/');const _0x58fd79=process[_0x5568fa(0x210)]()['replace'](/(\\|\/)/g,'/'),_0x50ba30=_0xea133e['substring'](0x0,_0x58fd79[_0x5568fa(0x1e2)]+_0xea133e[_0x5568fa(0x1ef)](_0x58fd79['length']+0x1)[_0x5568fa(0x20a)]('/')+0x1),_0xfae93e=_0xea133e[_0x5568fa(0x1ef)](_0x50ba30[_0x5568fa(0x1e2)]+0x1)[_0x5568fa(0x1f5)](/(\\|\/)/g,'/'),_0x351e74={'route':'','prefix':![],'module':![],'rootpath':_0x50ba30,'filepath':_0xfae93e};if(_0xfae93e[_0x5568fa(0x20c)]('app/controller/')||_0xfae93e[_0x5568fa(0x20c)](_0x5568fa(0x1d9))){const _0x3ae0de=_0xfae93e[_0x5568fa(0x1ef)]((_0xfae93e['startsWith']('app/controller/')?_0x5568fa(0x209):_0x5568fa(0x1d9))[_0x5568fa(0x1e2)])[_0x5568fa(0x1da)]('/')['filter'](_0x536b09=>_0x536b09&&_0x536b09[_0x5568fa(0x1e1)]());return _0x3ae0de[_0x5568fa(0x1e2)]>0x1&&(_0x351e74[_0x5568fa(0x20b)]=_0x3ae0de[0x0][_0x5568fa(0x1e7)](),_0x3ae0de[_0x5568fa(0x1f8)](0x0,0x1)),_0x351e74['route']=('/'+_0x3ae0de[_0x5568fa(0x1dc)]('/'))[_0x5568fa(0x1f5)](/(\.ts|\.js)$/,'')[_0x5568fa(0x1f5)](/\/{2,}/g,'/')[_0x5568fa(0x1fa)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x5568fa(0x1f5)](/\/\-/g,'/'),_0x351e74['route'][_0x5568fa(0x1cd)](_0x5568fa(0x1f6))&&(_0x351e74['route']=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74['route'][_0x5568fa(0x1e2)]-0x7)),_0x351e74['route'][_0x5568fa(0x1cd)](_0x5568fa(0x1de))&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74['route'][_0x5568fa(0x1e2)]-0xb)),_0x351e74;}else{if(_0xfae93e[_0x5568fa(0x20c)](_0x5568fa(0x1fe))){const _0x589918=_0xfae93e[_0x5568fa(0x1ef)](0x0,_0xfae93e['indexOf'](_0x5568fa(0x1db))+0x5),_0x4056bb=_0xfae93e[_0x5568fa(0x1ef)](_0x589918[_0x5568fa(0x1e2)]+0x1)[_0x5568fa(0x1f5)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0xfae93e['startsWith'](_0x5568fa(0x1fe)+_0x4056bb+_0x5568fa(0x1d8))){const _0x42afca=_0xfae93e[_0x5568fa(0x1ef)]((_0x589918+'/'+_0x4056bb+_0x5568fa(0x1d8))[_0x5568fa(0x1e2)])[_0x5568fa(0x1da)]('/')['filter'](_0x1076dc=>_0x1076dc&&_0x1076dc[_0x5568fa(0x1e1)]());return _0x42afca[_0x5568fa(0x1e2)]>0x1&&(_0x351e74[_0x5568fa(0x20b)]=_0x42afca[0x0][_0x5568fa(0x1e7)](),_0x42afca['splice'](0x0,0x1)),_0x351e74[_0x5568fa(0x213)]=_0x4056bb,_0x351e74[_0x5568fa(0x201)]=('/'+_0x4056bb+'/'+_0x42afca['join']('/'))[_0x5568fa(0x1f5)](/(\.ts|\.js)$/,'')[_0x5568fa(0x1f5)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0x5568fa(0x1dc)]('-')['toLowerCase']()[_0x5568fa(0x1f5)](/\/\-/g,'/'),_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1cd)](_0x5568fa(0x1f6))&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1ef)](0x0,_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1e2)]-0x7)),_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1cd)]('-controller')&&(_0x351e74[_0x5568fa(0x201)]=_0x351e74['route'][_0x5568fa(0x1ef)](0x0,_0x351e74[_0x5568fa(0x201)][_0x5568fa(0x1e2)]-0xb)),_0x351e74;}throw new Error(_0xfae93e+_0x5568fa(0x20d)+_0x4056bb+_0x5568fa(0x1c9));}}throw new Error(_0xfae93e+_0x5568fa(0x1ee));}exports['parseRoute']=parseRoute;
|
|
1
|
+
const a3_0xc2a506=a3_0x1b76;(function(_0x1e2ea1,_0xea6e23){const _0x340def=a3_0x1b76,_0x3a7d24=_0x1e2ea1();while(!![]){try{const _0x27defe=parseInt(_0x340def(0x20d))/0x1*(-parseInt(_0x340def(0x1e5))/0x2)+parseInt(_0x340def(0x1ee))/0x3+-parseInt(_0x340def(0x1f3))/0x4*(-parseInt(_0x340def(0x1f7))/0x5)+-parseInt(_0x340def(0x206))/0x6+-parseInt(_0x340def(0x1d8))/0x7+-parseInt(_0x340def(0x209))/0x8+parseInt(_0x340def(0x1eb))/0x9*(parseInt(_0x340def(0x1ed))/0xa);if(_0x27defe===_0xea6e23)break;else _0x3a7d24['push'](_0x3a7d24['shift']());}catch(_0x365bc9){_0x3a7d24['push'](_0x3a7d24['shift']());}}}(a3_0x180f,0xee684));const a3_0xd7efb3=(function(){let _0x34dbe3=!![];return function(_0xaff851,_0x2b28eb){const _0x3007fa=_0x34dbe3?function(){const _0x46aff3=a3_0x1b76;if(_0x2b28eb){const _0x59f115=_0x2b28eb[_0x46aff3(0x1e6)](_0xaff851,arguments);return _0x2b28eb=null,_0x59f115;}}:function(){};return _0x34dbe3=![],_0x3007fa;};}()),a3_0xb0c121=a3_0xd7efb3(this,function(){const _0x2f487c=a3_0x1b76;return a3_0xb0c121[_0x2f487c(0x1f0)]()[_0x2f487c(0x1f1)]('(((.+)+)+)+$')[_0x2f487c(0x1f0)]()['constructor'](a3_0xb0c121)[_0x2f487c(0x1f1)](_0x2f487c(0x1f8));});a3_0xb0c121();'use strict';Object['defineProperty'](exports,a3_0xc2a506(0x1f9),{'value':!![]}),exports['parseRoute']=exports[a3_0xc2a506(0x1de)]=exports[a3_0xc2a506(0x1d0)]=void 0x0;function a3_0x1b76(_0x1dd39c,_0x19acb1){const _0x3842cf=a3_0x180f();return a3_0x1b76=function(_0xb0c121,_0xd7efb3){_0xb0c121=_0xb0c121-0x1cc;let _0x180fd6=_0x3842cf[_0xb0c121];return _0x180fd6;},a3_0x1b76(_0x1dd39c,_0x19acb1);}const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require(a3_0xc2a506(0x1e2)),action_1=require('../types/action');function Action(_0x284e89,_0x997b95,_0x12e8d0={'middleware':[],'sensitive':!![]}){return _0xc5a256=>{const _0x5a1689=a3_0x1b76;var _0x431cfa;_0x12e8d0['tagName']=_0x997b95;const _0x5f1e2c=parseRoute(_0x284e89);if(_0x5f1e2c['module']){_0x12e8d0[_0x5a1689(0x1e9)]=_0x12e8d0[_0x5a1689(0x1e9)]?'/'+_0x5f1e2c['module']+'/'+_0x12e8d0[_0x5a1689(0x1e9)]:'/'+_0x5f1e2c[_0x5a1689(0x1dd)];_0x5f1e2c[_0x5a1689(0x1e9)]&&(_0x12e8d0[_0x5a1689(0x1e9)]='/'+_0x5f1e2c['prefix']+'/'+_0x12e8d0[_0x5a1689(0x1e9)]);if(fs[_0x5a1689(0x20e)](_0x5f1e2c['rootpath']+_0x5a1689(0x1ff)+_0x5f1e2c[_0x5a1689(0x1d1)]+_0x5a1689(0x1f4)+(lodash[_0x5a1689(0x1e4)](_0x5f1e2c['filepath'],'ts')?'ts':'js'))){const _0x5b2732=include(_0x5f1e2c['rootpath']+'/apps/'+_0x5f1e2c[_0x5a1689(0x1d1)]+_0x5a1689(0x1f4)+(lodash[_0x5a1689(0x1e4)](_0x5f1e2c[_0x5a1689(0x1e0)],'ts')?'ts':'js'));if(lodash[_0x5a1689(0x1ef)](_0x5b2732[_0x5a1689(0x1f6)])&&_0x5b2732['middleware'][_0x5a1689(0x201)]>0x0)for(let _0x53a31b in _0x5b2732[_0x5a1689(0x1f6)]){if(((_0x431cfa=_0x5b2732===null||_0x5b2732===void 0x0?void 0x0:_0x5b2732[_0x5a1689(0x1e3)])===null||_0x431cfa===void 0x0?void 0x0:_0x431cfa['length'])>0x0&&_0x5b2732['middlewareIgnore'][_0x5a1689(0x1ea)](_0x5b2732[_0x5a1689(0x1f6)][_0x53a31b])!=-0x1)continue;_0x12e8d0[_0x5a1689(0x1f6)]['push'](_0x5b2732['middleware'][_0x53a31b]);}const _0xa6cf47=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};_0xa6cf47[''+_0x5f1e2c[_0x5a1689(0x1d1)]]=_0x5b2732,(0x0,core_1[_0x5a1689(0x1fa)])(action_1['APPSCONFIG_KEY'],_0xa6cf47,action_1['AppsConfigTmp']);}_0x12e8d0[_0x5a1689(0x1e9)]=_0x12e8d0[_0x5a1689(0x1e9)][_0x5a1689(0x1e1)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x5a1689(0x205)],_0xc5a256),(0x0,core_1[_0x5a1689(0x1cd)])(_0x12e8d0[_0x5a1689(0x1e9)],_0x12e8d0)(_0xc5a256),(0x0,core_1['saveClassMetadata'])(action_1[_0x5a1689(0x205)],{'prefix':_0x12e8d0[_0x5a1689(0x1e9)],'pprefix':_0x5f1e2c[_0x5a1689(0x1e9)],'module':_0x5f1e2c['module'],'filepath':_0x5f1e2c['filepath'],'routerOptions':_0x12e8d0},_0xc5a256);}else _0x12e8d0['prefix']=_0x12e8d0[_0x5a1689(0x1e9)]?'/'+_0x12e8d0[_0x5a1689(0x1e9)]:'/'+_0x5f1e2c[_0x5a1689(0x1dd)],_0x5f1e2c[_0x5a1689(0x1e9)]&&(_0x12e8d0[_0x5a1689(0x1e9)]='/'+_0x5f1e2c['prefix']+'/'+_0x12e8d0['prefix']),_0x12e8d0[_0x5a1689(0x1e9)]=_0x12e8d0[_0x5a1689(0x1e9)][_0x5a1689(0x1e1)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x5a1689(0x1d3)])(action_1[_0x5a1689(0x205)],_0xc5a256),(0x0,core_1[_0x5a1689(0x1cd)])(_0x12e8d0[_0x5a1689(0x1e9)],_0x12e8d0)(_0xc5a256),(0x0,core_1[_0x5a1689(0x1fa)])(action_1[_0x5a1689(0x205)],{'prefix':_0x12e8d0['prefix'],'module':_0x5f1e2c['module'],'pprefix':_0x5f1e2c[_0x5a1689(0x1e9)],'filepath':_0x5f1e2c[_0x5a1689(0x1e0)],'routerOptions':_0x12e8d0},_0xc5a256);};}exports['Action']=Action,Action[a3_0xc2a506(0x202)]=function(_0x55d455,_0x107656='/',_0x4c6864={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x25f90c,_0x1e9283,_0x19ea95)=>{const _0x32efb8=a3_0x1b76;ActionApi(_0x55d455,_0x32efb8(0x202),_0x107656,_0x4c6864)(_0x25f90c,_0x1e9283,_0x19ea95);};},Action[a3_0xc2a506(0x204)]=function(_0x12d968,_0xff06eb='/',_0x25a2a6={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x51a151,_0x5a6fe9,_0x2a2136)=>{const _0x4f0d1b=a3_0x1b76;ActionApi(_0x12d968,_0x4f0d1b(0x204),_0xff06eb,_0x25a2a6)(_0x51a151,_0x5a6fe9,_0x2a2136);};};function ActionApi(_0x42d98e,_0x10b0e6=a3_0xc2a506(0x202),_0xeefe19='/',_0x474577={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x393b44,_0x25ca7c,_0x4102ea)=>{const _0x5b5273=a3_0x1b76;var _0x26a1a6,_0x54c58c,_0x444726;!_0x474577[_0x5b5273(0x1f6)]&&(_0x474577['middleware']=[]);!((_0x26a1a6=_0x474577===null||_0x474577===void 0x0?void 0x0:_0x474577['validate'])===null||_0x26a1a6===void 0x0?void 0x0:_0x26a1a6[_0x5b5273(0x1d4)])&&(_0x474577[_0x5b5273(0x1cf)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0xeefe19)_0xeefe19='/';else typeof _0xeefe19=='string'&&(!_0xeefe19[_0x5b5273(0x20c)]('/')&&!_0xeefe19[_0x5b5273(0x20c)]('-')&&(_0xeefe19='/'+_0xeefe19));typeof _0x474577['apimit']==_0x5b5273(0x20a)&&(_0x474577[_0x5b5273(0x1db)]=!![]);if(((_0x54c58c=_0x474577===null||_0x474577===void 0x0?void 0x0:_0x474577[_0x5b5273(0x1f6)])===null||_0x54c58c===void 0x0?void 0x0:_0x54c58c[_0x5b5273(0x201)])>0x0&&((_0x444726=_0x474577===null||_0x474577===void 0x0?void 0x0:_0x474577[_0x5b5273(0x1e3)])===null||_0x444726===void 0x0?void 0x0:_0x444726[_0x5b5273(0x201)])>0x0)for(let _0x113a37 in _0x474577['middleware']){_0x474577['middlewareIgnore']['indexOf'](_0x474577[_0x5b5273(0x1f6)][_0x113a37])!==-0x1&&(_0x474577[_0x5b5273(0x1f6)][_0x113a37]=null);}_0x474577[_0x5b5273(0x203)]=_0x42d98e,(0x0,validator_1[_0x5b5273(0x1ce)])(_0x474577[_0x5b5273(0x1cf)])(_0x393b44,_0x25ca7c,_0x4102ea),(0x0,core_2['RequestMapping'])(Object[_0x5b5273(0x1da)](_0x474577,{'path':_0xeefe19,'requestMethod':(_0x10b0e6||_0x5b5273(0x202))['toLowerCase']()}))(_0x393b44,_0x25ca7c,_0x4102ea),(0x0,core_2['attachClassMetadata'])(action_1[_0x5b5273(0x208)],{'path':_0xeefe19,'method':_0x25ca7c,'apimit':_0x474577[_0x5b5273(0x1db)],'intercept':_0x474577['intercept'],'routerName':_0x474577[_0x5b5273(0x203)],'description':_0x474577['description'],'middleware':(_0x474577[_0x5b5273(0x1f6)]||[])[_0x5b5273(0x1d6)](_0xbac54d=>!!_0xbac54d),'requestMethod':(_0x10b0e6||_0x5b5273(0x202))[_0x5b5273(0x1e1)]()},_0x393b44),(0x0,core_2[_0x5b5273(0x1d7)])(action_1['ACTION_ROUTE_KEY'],{'path':_0xeefe19,'method':_0x25ca7c,'apimit':_0x474577[_0x5b5273(0x1db)],'intercept':_0x474577[_0x5b5273(0x1e7)],'routerName':_0x474577[_0x5b5273(0x203)],'description':_0x474577[_0x5b5273(0x1fc)],'middleware':(_0x474577[_0x5b5273(0x1f6)]||[])[_0x5b5273(0x1d6)](_0x48edb5=>!!_0x48edb5),'requestMethod':(_0x10b0e6||_0x5b5273(0x202))[_0x5b5273(0x1e1)]()})(_0x393b44,_0x25ca7c,_0x4102ea);};}exports[a3_0xc2a506(0x1de)]=ActionApi;function a3_0x180f(){const _0x2cc1bd=['replace','middleware','1015JyjKWd','(((.+)+)+)+$','__esModule','saveClassMetadata','apps/','description','trim','-controller','/apps/','/controller/','length','get','routerName','post','ACTION_KEY','8340630KMavbh','parseRoute','ACTION_ROUTE_KEY','12097424OGEhGg','undefined','basic/controller/','startsWith','1ConoDr','existsSync','substring','Controller','Validator','validate','Action','module','join','saveModule','validationOptions','\x20文件请放在app/controller/文件下','filter','createCustomMethodDecorator','12367964fEdEgc','\x20文件请放在apps/','assign','apimit','split','route','ActionApi','app/controller/','filepath','toLowerCase','@midwayjs/core','middlewareIgnore','endsWith','2763548csCRYP','apply','intercept','match','prefix','indexOf','4795803MVWoPy','cwd','90bJIzoO','1512276PZxeYh','isArray','toString','search','/controller/文件下','34040kSNWGA','/config.'];a3_0x180f=function(){return _0x2cc1bd;};return a3_0x180f();}function parseRoute(_0x59b519){const _0x1ecc18=a3_0xc2a506;_0x59b519=_0x59b519['replace'](/(\\|\/)/g,'/');const _0x437278=process[_0x1ecc18(0x1ec)]()['replace'](/(\\|\/)/g,'/'),_0x531ea5=_0x59b519[_0x1ecc18(0x1cc)](0x0,_0x437278[_0x1ecc18(0x201)]+_0x59b519[_0x1ecc18(0x1cc)](_0x437278[_0x1ecc18(0x201)]+0x1)[_0x1ecc18(0x1ea)]('/')+0x1),_0xf7202c=_0x59b519[_0x1ecc18(0x1cc)](_0x531ea5['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x3175c9={'route':'','prefix':![],'module':![],'rootpath':_0x531ea5,'filepath':_0xf7202c};if(_0xf7202c[_0x1ecc18(0x20c)](_0x1ecc18(0x1df))||_0xf7202c['startsWith'](_0x1ecc18(0x20b))){const _0x557a70=_0xf7202c[_0x1ecc18(0x1cc)]((_0xf7202c['startsWith'](_0x1ecc18(0x1df))?_0x1ecc18(0x1df):_0x1ecc18(0x20b))[_0x1ecc18(0x201)])[_0x1ecc18(0x1dc)]('/')['filter'](_0xc8684=>_0xc8684&&_0xc8684[_0x1ecc18(0x1fd)]());return _0x557a70[_0x1ecc18(0x201)]>0x1&&(_0x3175c9[_0x1ecc18(0x1e9)]=_0x557a70[0x0]['toLowerCase'](),_0x557a70['splice'](0x0,0x1)),_0x3175c9[_0x1ecc18(0x1dd)]=('/'+_0x557a70[_0x1ecc18(0x1d2)]('/'))[_0x1ecc18(0x1f5)](/(\.ts|\.js)$/,'')[_0x1ecc18(0x1f5)](/\/{2,}/g,'/')[_0x1ecc18(0x1e8)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()['replace'](/\/\-/g,'/'),_0x3175c9['route']['endsWith']('-action')&&(_0x3175c9[_0x1ecc18(0x1dd)]=_0x3175c9['route'][_0x1ecc18(0x1cc)](0x0,_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x201)]-0x7)),_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x1e4)](_0x1ecc18(0x1fe))&&(_0x3175c9[_0x1ecc18(0x1dd)]=_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x1cc)](0x0,_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x201)]-0xb)),_0x3175c9;}else{if(_0xf7202c[_0x1ecc18(0x20c)](_0x1ecc18(0x1fb))){const _0x407457=_0xf7202c[_0x1ecc18(0x1cc)](0x0,_0xf7202c[_0x1ecc18(0x1ea)](_0x1ecc18(0x1ff))+0x5),_0x264343=_0xf7202c[_0x1ecc18(0x1cc)](_0x407457['length']+0x1)[_0x1ecc18(0x1f5)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0xf7202c[_0x1ecc18(0x20c)](_0x1ecc18(0x1fb)+_0x264343+_0x1ecc18(0x200))){const _0x29faa8=_0xf7202c[_0x1ecc18(0x1cc)]((_0x407457+'/'+_0x264343+_0x1ecc18(0x200))[_0x1ecc18(0x201)])[_0x1ecc18(0x1dc)]('/')['filter'](_0xdaee7e=>_0xdaee7e&&_0xdaee7e[_0x1ecc18(0x1fd)]());return _0x29faa8[_0x1ecc18(0x201)]>0x1&&(_0x3175c9[_0x1ecc18(0x1e9)]=_0x29faa8[0x0]['toLowerCase'](),_0x29faa8['splice'](0x0,0x1)),_0x3175c9[_0x1ecc18(0x1d1)]=_0x264343,_0x3175c9[_0x1ecc18(0x1dd)]=('/'+_0x264343+'/'+_0x29faa8[_0x1ecc18(0x1d2)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x1ecc18(0x1e8)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x1ecc18(0x1e1)]()[_0x1ecc18(0x1f5)](/\/\-/g,'/'),_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x1e4)]('-action')&&(_0x3175c9[_0x1ecc18(0x1dd)]=_0x3175c9['route']['substring'](0x0,_0x3175c9[_0x1ecc18(0x1dd)]['length']-0x7)),_0x3175c9['route'][_0x1ecc18(0x1e4)](_0x1ecc18(0x1fe))&&(_0x3175c9[_0x1ecc18(0x1dd)]=_0x3175c9['route']['substring'](0x0,_0x3175c9[_0x1ecc18(0x1dd)][_0x1ecc18(0x201)]-0xb)),_0x3175c9;}throw new Error(_0xf7202c+_0x1ecc18(0x1d9)+_0x264343+_0x1ecc18(0x1f2));}}throw new Error(_0xf7202c+_0x1ecc18(0x1d5));}exports[a3_0xc2a506(0x207)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x5768c9=a4_0x5662;(function(_0x27cb99,_0x4c1dd1){const _0x13d5d8=a4_0x5662,_0x547293=_0x27cb99();while(!![]){try{const _0x53e69a=parseInt(_0x13d5d8(0x1e6))/0x1*(parseInt(_0x13d5d8(0x1ed))/0x2)+-parseInt(_0x13d5d8(0x1e8))/0x3*(parseInt(_0x13d5d8(0x1d4))/0x4)+-parseInt(_0x13d5d8(0x1dc))/0x5*(-parseInt(_0x13d5d8(0x1e7))/0x6)+parseInt(_0x13d5d8(0x1dd))/0x7+parseInt(_0x13d5d8(0x1e3))/0x8*(parseInt(_0x13d5d8(0x1df))/0x9)+-parseInt(_0x13d5d8(0x1d8))/0xa+-parseInt(_0x13d5d8(0x1e0))/0xb*(parseInt(_0x13d5d8(0x1de))/0xc);if(_0x53e69a===_0x4c1dd1)break;else _0x547293['push'](_0x547293['shift']());}catch(_0x297ed9){_0x547293['push'](_0x547293['shift']());}}}(a4_0x58b8,0x79243));const a4_0x1e3cc7=(function(){let _0x278b09=!![];return function(_0xf4634d,_0x1f5067){const _0x200daa=_0x278b09?function(){if(_0x1f5067){const _0x1b0ca0=_0x1f5067['apply'](_0xf4634d,arguments);return _0x1f5067=null,_0x1b0ca0;}}:function(){};return _0x278b09=![],_0x200daa;};}()),a4_0x1da44d=a4_0x1e3cc7(this,function(){const _0x4d8a44=a4_0x5662;return a4_0x1da44d[_0x4d8a44(0x1db)]()['search'](_0x4d8a44(0x1e9))['toString']()[_0x4d8a44(0x1e2)](a4_0x1da44d)[_0x4d8a44(0x1ee)](_0x4d8a44(0x1e9));});a4_0x1da44d();'use strict';Object[a4_0x5768c9(0x1ec)](exports,a4_0x5768c9(0x1e5),{'value':!![]}),exports[a4_0x5768c9(0x1e1)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x5768c9(0x1d6));function Apitest(_0x424d44=a4_0x5768c9(0x1d2),_0x179203){return(_0x48bdc7,_0x261977,_0x115978)=>{const _0x86a2bd=a4_0x5662;return(0x0,core_1['RequestMapping'])({'path':_0x424d44,'requestMethod':'get'})(_0x48bdc7,_0x261977,_0x115978),_0x115978[_0x86a2bd(0x1d1)]=async function(..._0x598e71){const _0xb63df4=_0x86a2bd;var _0x5dfe6f;const _0x437d59=(_0x5dfe6f=this[core_1[_0xb63df4(0x1eb)]])===null||_0x5dfe6f===void 0x0?void 0x0:_0x5dfe6f[_0xb63df4(0x1d3)];if(_0x437d59&&_0x437d59[_0xb63df4(0x1ea)](_0xb63df4(0x1d9))){const _0x34c7e4=await _0x437d59[_0xb63df4(0x1d7)]()[_0xb63df4(0x1e4)](ApitestService_1['ApitestService']),_0x5a0eb7=await _0x437d59[_0xb63df4(0x1d7)]()[_0xb63df4(0x1e4)](core_1[_0xb63df4(0x1d5)]);return _0x5a0eb7[_0xb63df4(0x1da)]()&&(_0x179203['filepath']=!![]),await _0x34c7e4[_0xb63df4(0x1d0)](_0x179203);}return'';},_0x115978;};}exports[a4_0x5768c9(0x1e1)]=Apitest;function a4_0x5662(_0x479830,_0x3a088c){const _0x11983d=a4_0x58b8();return a4_0x5662=function(_0x1da44d,_0x1e3cc7){_0x1da44d=_0x1da44d-0x1d0;let _0x58b8f1=_0x11983d[_0x1da44d];return _0x58b8f1;},a4_0x5662(_0x479830,_0x3a088c);}function a4_0x58b8(){const _0x387657=['toString','738110jcBvSY','6004257WNjryj','204pVoxkf','9BsNHHo','1096491JJyAKB','Apitest','constructor','5062896TOYMoY','getAsync','__esModule','85aEWWLc','36DeWAoX','3eZfqlt','(((.+)+)+)+$','getConfig','REQUEST_OBJ_CTX_KEY','defineProperty','11334JPzyLa','search','apidoc','value','/apitest','app','2090644EpDkSj','MidwayEnvironmentService','../service/ApitestService','getApplicationContext','1446070usLLsD','apitest','isDevelopmentEnvironment'];a4_0x58b8=function(){return _0x387657;};return a4_0x58b8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x2006a7=a5_0x7085;function a5_0xeb53(){const _0x51fe50=['5pKAvuF','../types/intercept','INTERCEPT_KEY','ScopeEnum','defineProperty','(((.+)+)+)+$','490TFGoqn','apply','361941hIKzgX','toUpperCase','saveClassMetadata','2160648XSarRQ','277748XApplj','127402lYESll','search','7936WvyeNg','IIntercept','getClassMetadata','1462tuQAVo','135ybppzr','Intercept','includes','constructor','Provide','3206vcNJdL','InterceptTargetTmp','1994625PiblKa','__esModule','push'];a5_0xeb53=function(){return _0x51fe50;};return a5_0xeb53();}(function(_0xd9c0cf,_0x4948df){const _0x293ed0=a5_0x7085,_0x5e4865=_0xd9c0cf();while(!![]){try{const _0x9773d=-parseInt(_0x293ed0(0xf1))/0x1+parseInt(_0x293ed0(0xfb))/0x2*(-parseInt(_0x293ed0(0xfc))/0x3)+parseInt(_0x293ed0(0xf5))/0x4*(-parseInt(_0x293ed0(0xe9))/0x5)+parseInt(_0x293ed0(0xf4))/0x6+parseInt(_0x293ed0(0x101))/0x7*(-parseInt(_0x293ed0(0xf8))/0x8)+parseInt(_0x293ed0(0xe6))/0x9+-parseInt(_0x293ed0(0xef))/0xa*(-parseInt(_0x293ed0(0xf6))/0xb);if(_0x9773d===_0x4948df)break;else _0x5e4865['push'](_0x5e4865['shift']());}catch(_0x1831ad){_0x5e4865['push'](_0x5e4865['shift']());}}}(a5_0xeb53,0x384f2));const a5_0x5aad32=(function(){let _0x3ef7e2=!![];return function(_0x5b415e,_0x28aa33){const _0x75f8d4=_0x3ef7e2?function(){const _0x1dc722=a5_0x7085;if(_0x28aa33){const _0x63305b=_0x28aa33[_0x1dc722(0xf0)](_0x5b415e,arguments);return _0x28aa33=null,_0x63305b;}}:function(){};return _0x3ef7e2=![],_0x75f8d4;};}()),a5_0x3dce2a=a5_0x5aad32(this,function(){const _0x1d1c84=a5_0x7085;return a5_0x3dce2a['toString']()['search'](_0x1d1c84(0xee))['toString']()[_0x1d1c84(0xff)](a5_0x3dce2a)[_0x1d1c84(0xf7)](_0x1d1c84(0xee));});a5_0x3dce2a();'use strict';Object[a5_0x2006a7(0xed)](exports,a5_0x2006a7(0xe7),{'value':!![]}),exports[a5_0x2006a7(0xf9)]=exports['Intercept']=void 0x0;const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x2006a7(0xea));function Intercept(_0x4c449c){return _0x572933=>{const _0x5d6e57=a5_0x7085,_0x2d5842=(0x0,core_1[_0x5d6e57(0xfa)])(intercept_1[_0x5d6e57(0xeb)],intercept_1[_0x5d6e57(0xe5)])||{};for(let _0x372fc5 of Array['isArray'](_0x4c449c)?_0x4c449c:[_0x4c449c]){_0x372fc5=_0x372fc5[_0x5d6e57(0xf2)]();!(_0x2d5842===null||_0x2d5842===void 0x0?void 0x0:_0x2d5842[_0x372fc5])&&(_0x2d5842[_0x372fc5]=[]);if(_0x2d5842[_0x372fc5][_0x5d6e57(0xfe)](_0x572933))continue;_0x2d5842[_0x372fc5][_0x5d6e57(0xe8)](_0x572933);}(0x0,core_1[_0x5d6e57(0x100)])()(_0x572933),(0x0,core_1['Scope'])(core_1[_0x5d6e57(0xec)]['Singleton'])(_0x572933),(0x0,core_1[_0x5d6e57(0xf3)])(intercept_1[_0x5d6e57(0xeb)],_0x2d5842,intercept_1[_0x5d6e57(0xe5)]);};}function a5_0x7085(_0x233cd7,_0x5397ba){const _0x1b694d=a5_0xeb53();return a5_0x7085=function(_0x3dce2a,_0x5aad32){_0x3dce2a=_0x3dce2a-0xe5;let _0xeb532e=_0x1b694d[_0x3dce2a];return _0xeb532e;},a5_0x7085(_0x233cd7,_0x5397ba);}exports[a5_0x2006a7(0xfd)]=Intercept;class IIntercept{async['match'](_0x544af5,_0x189803,_0x4ca619){return!![];}}exports[a5_0x2006a7(0xf9)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x4f9f9a=a6_0x11b3;(function(_0x340b22,_0x2e8d01){var _0x378816=a6_0x11b3,_0x5a8a33=_0x340b22();while(!![]){try{var _0x25517d=parseInt(_0x378816(0x1cc))/0x1*(parseInt(_0x378816(0x1c9))/0x2)+-parseInt(_0x378816(0x1ed))/0x3*(-parseInt(_0x378816(0x1d0))/0x4)+parseInt(_0x378816(0x1e5))/0x5+-parseInt(_0x378816(0x1eb))/0x6*(-parseInt(_0x378816(0x1d7))/0x7)+-parseInt(_0x378816(0x1cd))/0x8*(parseInt(_0x378816(0x1cf))/0x9)+parseInt(_0x378816(0x1cb))/0xa*(parseInt(_0x378816(0x1e3))/0xb)+-parseInt(_0x378816(0x1d1))/0xc;if(_0x25517d===_0x2e8d01)break;else _0x5a8a33['push'](_0x5a8a33['shift']());}catch(_0xe981d5){_0x5a8a33['push'](_0x5a8a33['shift']());}}}(a6_0x1cc6,0x49779));var a6_0x1a4bb7=(function(){var _0x1aa3f5=!![];return function(_0x5b8baf,_0x188c70){var _0x151f7f=_0x1aa3f5?function(){var _0x11142e=a6_0x11b3;if(_0x188c70){var _0x20ef85=_0x188c70[_0x11142e(0x1d3)](_0x5b8baf,arguments);return _0x188c70=null,_0x20ef85;}}:function(){};return _0x1aa3f5=![],_0x151f7f;};}()),a6_0x49127e=a6_0x1a4bb7(this,function(){var _0x47efdd=a6_0x11b3;return a6_0x49127e[_0x47efdd(0x1d8)]()[_0x47efdd(0x1d4)](_0x47efdd(0x1db))[_0x47efdd(0x1d8)]()['constructor'](a6_0x49127e)[_0x47efdd(0x1d4)]('(((.+)+)+)+$');});function a6_0x11b3(_0x4282fa,_0x542502){var _0x3d6f1e=a6_0x1cc6();return a6_0x11b3=function(_0x49127e,_0x1a4bb7){_0x49127e=_0x49127e-0x1c9;var _0x1cc698=_0x3d6f1e[_0x49127e];return _0x1cc698;},a6_0x11b3(_0x4282fa,_0x542502);}a6_0x49127e();'use strict';var __decorate=this&&this[a6_0x4f9f9a(0x1ee)]||function(_0x53a452,_0xebbe86,_0x2792e2,_0x50bdd6){var _0x559be9=a6_0x4f9f9a,_0x581c80=arguments[_0x559be9(0x1ea)],_0x3d3575=_0x581c80<0x3?_0xebbe86:_0x50bdd6===null?_0x50bdd6=Object[_0x559be9(0x1e6)](_0xebbe86,_0x2792e2):_0x50bdd6,_0x5a0b70;if(typeof Reflect===_0x559be9(0x1ce)&&typeof Reflect[_0x559be9(0x1dd)]===_0x559be9(0x1df))_0x3d3575=Reflect[_0x559be9(0x1dd)](_0x53a452,_0xebbe86,_0x2792e2,_0x50bdd6);else{for(var _0x3200e8=_0x53a452[_0x559be9(0x1ea)]-0x1;_0x3200e8>=0x0;_0x3200e8--)if(_0x5a0b70=_0x53a452[_0x3200e8])_0x3d3575=(_0x581c80<0x3?_0x5a0b70(_0x3d3575):_0x581c80>0x3?_0x5a0b70(_0xebbe86,_0x2792e2,_0x3d3575):_0x5a0b70(_0xebbe86,_0x2792e2))||_0x3d3575;}return _0x581c80>0x3&&_0x3d3575&&Object['defineProperty'](_0xebbe86,_0x2792e2,_0x3d3575),_0x3d3575;},__metadata=this&&this[a6_0x4f9f9a(0x1d5)]||function(_0x176f3e,_0x587e5e){var _0x1d2cbd=a6_0x4f9f9a;if(typeof Reflect===_0x1d2cbd(0x1ce)&&typeof Reflect[_0x1d2cbd(0x1ef)]==='function')return Reflect[_0x1d2cbd(0x1ef)](_0x176f3e,_0x587e5e);};Object[a6_0x4f9f9a(0x1e2)](exports,a6_0x4f9f9a(0x1e0),{'value':!![]}),exports[a6_0x4f9f9a(0x1e1)]=void 0x0;function a6_0x1cc6(){var _0x4cb59e=['84KtOnAI','TIMEOUT_LOGINTIME','476823kidJOb','__decorate','metadata','2sBhMDv','请求超时,请重试','5003380vzKYKU','482981UgXVnb','69928jqZTZA','object','504lVJMsU','4HikSpp','15962628Qlhspx','验证失败,请重新登录','apply','search','__metadata','signature验证失败','212499emjFHt','toString','HEADERS_LACK','TIMEOUT','(((.+)+)+)+$','HEADERS_DEVICE','decorate','design:type','function','__esModule','ApiError','defineProperty','11RYEkYe','HEADERS_SIGNATURE','2766890aPhZTJ','getOwnPropertyDescriptor','HEADERS_CHECKCODE','请使用正确的设备','请求头信息不完整','length'];a6_0x1cc6=function(){return _0x4cb59e;};return a6_0x1cc6();}class ApiError extends AnnError{}exports[a6_0x4f9f9a(0x1e1)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a6_0x4f9f9a(0x1d9)]=0x18e72,ApiError[a6_0x4f9f9a(0x1dc)]=0x18e73,ApiError[a6_0x4f9f9a(0x1e4)]=0x18e74,ApiError[a6_0x4f9f9a(0x1e7)]=0x18e75,ApiError[a6_0x4f9f9a(0x1ec)]=0x18e76,__decorate([AnnErrorMsg(a6_0x4f9f9a(0x1ca)),__metadata(a6_0x4f9f9a(0x1de),Object)],ApiError,a6_0x4f9f9a(0x1da),void 0x0),__decorate([AnnErrorMsg(a6_0x4f9f9a(0x1e9)),__metadata('design:type',Object)],ApiError,a6_0x4f9f9a(0x1d9),void 0x0),__decorate([AnnErrorMsg(a6_0x4f9f9a(0x1e8)),__metadata(a6_0x4f9f9a(0x1de),Object)],ApiError,a6_0x4f9f9a(0x1dc),void 0x0),__decorate([AnnErrorMsg(a6_0x4f9f9a(0x1d6)),__metadata('design:type',Object)],ApiError,a6_0x4f9f9a(0x1e4),void 0x0),__decorate([AnnErrorMsg(a6_0x4f9f9a(0x1d2)),__metadata(a6_0x4f9f9a(0x1de),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata('design:type',Object)],ApiError,a6_0x4f9f9a(0x1ec),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7_0x4759d9=a7_0x5e12;(function(_0x2f58a7,_0x10b974){const _0x461097=a7_0x5e12,_0xa521d0=_0x2f58a7();while(!![]){try{const _0x1e99af=-parseInt(_0x461097(0x118))/0x1*(-parseInt(_0x461097(0x11a))/0x2)+-parseInt(_0x461097(0x11d))/0x3+parseInt(_0x461097(0x125))/0x4*(parseInt(_0x461097(0x11e))/0x5)+parseInt(_0x461097(0x126))/0x6+parseInt(_0x461097(0x124))/0x7*(parseInt(_0x461097(0x11f))/0x8)+-parseInt(_0x461097(0x129))/0x9+-parseInt(_0x461097(0x117))/0xa*(parseInt(_0x461097(0x120))/0xb);if(_0x1e99af===_0x10b974)break;else _0xa521d0['push'](_0xa521d0['shift']());}catch(_0x374831){_0xa521d0['push'](_0xa521d0['shift']());}}}(a7_0x2148,0xd0181));const a7_0x56eb2b=(function(){let _0x316642=!![];return function(_0x753056,_0x193864){const _0x1dd631=_0x316642?function(){if(_0x193864){const _0x5abec3=_0x193864['apply'](_0x753056,arguments);return _0x193864=null,_0x5abec3;}}:function(){};return _0x316642=![],_0x1dd631;};}()),a7_0x20cc04=a7_0x56eb2b(this,function(){const _0x45abe1=a7_0x5e12;return a7_0x20cc04[_0x45abe1(0x128)]()[_0x45abe1(0x116)](_0x45abe1(0x127))[_0x45abe1(0x128)]()[_0x45abe1(0x123)](a7_0x20cc04)['search'](_0x45abe1(0x127));});a7_0x20cc04();function a7_0x5e12(_0x17475a,_0x216f0c){const _0x32e259=a7_0x2148();return a7_0x5e12=function(_0x20cc04,_0x56eb2b){_0x20cc04=_0x20cc04-0x116;let _0x2148fd=_0x32e259[_0x20cc04];return _0x2148fd;},a7_0x5e12(_0x17475a,_0x216f0c);}function a7_0x2148(){const _0x3fd403=['83176chouDl','APPSCONFIG_KEY','14RRkHpE','defineProperty','get','677928GFzNCg','2915iGjBVg','184HbFygy','4147FwbseX','../types/action','getAppsConfig','constructor','237720LFUZKq','3396mgGGqA','1170606whAPJM','(((.+)+)+)+$','toString','5026194QRXwni','search','11050wSRedv'];a7_0x2148=function(){return _0x3fd403;};return a7_0x2148();}'use strict';Object[a7_0x4759d9(0x11b)](exports,'__esModule',{'value':!![]}),exports[a7_0x4759d9(0x122)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x4759d9(0x121));function getAppsConfig(_0x906757){const _0xe90e8d=a7_0x4759d9,_0x244280=(0x0,core_1['getClassMetadata'])(action_1[_0xe90e8d(0x119)],action_1['AppsConfigTmp'])||{};return _0x906757?lodash[_0xe90e8d(0x11c)](_0x244280,_0x906757):_0x244280;}exports[a7_0x4759d9(0x122)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0xc17250=a8_0x21af;(function(_0x1ca4a0,_0x3cb48e){const _0x5b673f=a8_0x21af,_0x4ca1da=_0x1ca4a0();while(!![]){try{const _0x3d0475=-parseInt(_0x5b673f(0x18c))/0x1*(parseInt(_0x5b673f(0x1a4))/0x2)+parseInt(_0x5b673f(0x18d))/0x3+-parseInt(_0x5b673f(0x16c))/0x4*(-parseInt(_0x5b673f(0x151))/0x5)+-parseInt(_0x5b673f(0x158))/0x6*(-parseInt(_0x5b673f(0x1a1))/0x7)+-parseInt(_0x5b673f(0x197))/0x8*(-parseInt(_0x5b673f(0x177))/0x9)+parseInt(_0x5b673f(0x144))/0xa*(parseInt(_0x5b673f(0x159))/0xb)+-parseInt(_0x5b673f(0x15f))/0xc;if(_0x3d0475===_0x3cb48e)break;else _0x4ca1da['push'](_0x4ca1da['shift']());}catch(_0x506eed){_0x4ca1da['push'](_0x4ca1da['shift']());}}}(a8_0x38ef,0x91ce6));const a8_0x48e07d=(function(){let _0x3a898d=!![];return function(_0x7947c9,_0x3ed749){const _0x252d0b=_0x3a898d?function(){if(_0x3ed749){const _0x42c611=_0x3ed749['apply'](_0x7947c9,arguments);return _0x3ed749=null,_0x42c611;}}:function(){};return _0x3a898d=![],_0x252d0b;};}()),a8_0x12591c=a8_0x48e07d(this,function(){const _0x59a545=a8_0x21af;return a8_0x12591c[_0x59a545(0x191)]()[_0x59a545(0x17e)](_0x59a545(0x15d))['toString']()['constructor'](a8_0x12591c)[_0x59a545(0x17e)](_0x59a545(0x15d));});a8_0x12591c();'use strict';Object[a8_0xc17250(0x175)](exports,'__esModule',{'value':!![]}),exports[a8_0xc17250(0x145)]=void 0x0;const lodash_1=require(a8_0xc17250(0x150)),validator_1=require(a8_0xc17250(0x14f)),core_1=require(a8_0xc17250(0x184)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),action_1=require(a8_0xc17250(0x17b));function getRoutes(_0x1a3e8b={'prefix':'/','module':![]}){const _0x442dcb=a8_0xc17250;var _0x5207dc,_0x2d671b;const _0x31d222=(0x0,core_3[_0x442dcb(0x190)])(action_1[_0x442dcb(0x17f)]),_0x5c09a2={},_0xc211a7=Array['isArray'](_0x1a3e8b[_0x442dcb(0x1a6)]||[])?_0x1a3e8b[_0x442dcb(0x1a6)]||[]:[_0x1a3e8b['filter']];_0x415fde:for(const _0x268d44 of _0x31d222){let _0xa30842=(0x0,core_3[_0x442dcb(0x183)])(action_1[_0x442dcb(0x17f)],_0x268d44),_0x25f079=(0x0,core_3[_0x442dcb(0x183)])(action_1[_0x442dcb(0x19b)],_0x268d44);if(_0xa30842&&_0x25f079){let _0x5b49e6=_0xa30842[_0x442dcb(0x172)],_0x27bca1={};if(_0x1a3e8b['module']&&(0x0,lodash_1[_0x442dcb(0x18e)])(_0xa30842,'module',![])!=_0x1a3e8b[_0x442dcb(0x156)])continue _0x415fde;else{if(_0x1a3e8b[_0x442dcb(0x156)]===![]&&!!(0x0,lodash_1[_0x442dcb(0x18e)])(_0xa30842,_0x442dcb(0x156),null))continue _0x415fde;}if(_0x1a3e8b[_0x442dcb(0x172)]&&!_0x5b49e6[_0x442dcb(0x163)](_0x1a3e8b[_0x442dcb(0x172)]))continue _0x415fde;_0x5b49e6!=='/'?(_0x27bca1[_0x442dcb(0x168)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x164)])||(/^\//[_0x442dcb(0x146)](_0x5b49e6)?_0x5b49e6[_0x442dcb(0x166)]('/')[0x1]:_0x5b49e6),_0x27bca1[_0x442dcb(0x170)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x170)])||_0x27bca1['summary'],_0x27bca1[_0x442dcb(0x14a)]=[]):(_0x27bca1[_0x442dcb(0x168)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)][_0x442dcb(0x164)])||'default',_0x27bca1[_0x442dcb(0x170)]=(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x157)]['description'])||'',_0x27bca1[_0x442dcb(0x14a)]=[]);_0x1a3e8b[_0x442dcb(0x194)]&&(_0x27bca1[_0x442dcb(0x194)]=_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842['filepath']);(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842[_0x442dcb(0x179)])&&(_0x27bca1['prefix']=_0xa30842[_0x442dcb(0x179)]);(_0xa30842===null||_0xa30842===void 0x0?void 0x0:_0xa30842['module'])&&(_0x27bca1[_0x442dcb(0x156)]=_0xa30842[_0x442dcb(0x156)]);let _0x4480ee=(0x0,core_3[_0x442dcb(0x183)])(core_2[_0x442dcb(0x19d)],_0x268d44)||{};if(typeof _0x25f079[Symbol[_0x442dcb(0x19a)]]===_0x442dcb(0x16d))for(let _0x536371 of _0x25f079){if((_0x1a3e8b===null||_0x1a3e8b===void 0x0?void 0x0:_0x1a3e8b[_0x442dcb(0x14b)])&&!(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x14b)]))continue;let _0x366009={};_0x366009[_0x442dcb(0x1a0)]=_0x536371['requestMethod'],_0x366009[_0x442dcb(0x169)]=(_0x5b49e6+_0x536371[_0x442dcb(0x15c)])[_0x442dcb(0x1a3)](/\/{2,}/g,'/'),_0x366009[_0x442dcb(0x168)]=(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x171)])||_0x27bca1[_0x442dcb(0x168)]||_0x442dcb(0x18b),_0x366009[_0x442dcb(0x170)]=(_0x536371===null||_0x536371===void 0x0?void 0x0:_0x536371[_0x442dcb(0x170)])||'',_0x366009['request']=[];_0x366009[_0x442dcb(0x169)]['endsWith']('/')&&(_0x366009[_0x442dcb(0x169)]=_0x366009[_0x442dcb(0x169)]['substring'](0x0,_0x366009['route'][_0x442dcb(0x180)]-0x1));if(!(0x0,lodash_1[_0x442dcb(0x163)])(_0x366009[_0x442dcb(0x169)],_0x442dcb(0x160))&&!(0x0,lodash_1['startsWith'])(_0x366009['route'],_0x442dcb(0x162))&&_0xc211a7['indexOf'](_0x366009[_0x442dcb(0x169)])===-0x1){if(!(_0x1a3e8b===null||_0x1a3e8b===void 0x0?void 0x0:_0x1a3e8b[_0x442dcb(0x19f)])){let _0xbad276=(0x0,core_3['getMethodParamTypes'])(new _0x268d44(),_0x536371[_0x442dcb(0x1a0)]);for(const _0x1cef13 in _0xbad276){let _0x3467bc=(_0x5207dc=_0x4480ee[_0x536371[_0x442dcb(0x1a0)]])===null||_0x5207dc===void 0x0?void 0x0:_0x5207dc[_0x442dcb(0x195)](_0x3f9c43=>_0x3f9c43[_0x442dcb(0x17d)]==_0x1cef13&&_0x3f9c43[_0x442dcb(0x185)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x3f9c43===null||_0x3f9c43===void 0x0?void 0x0:_0x3f9c43['metadata']));if(_0x3467bc===null||_0x3467bc===void 0x0?void 0x0:_0x3467bc['metadata']){let _0x8c3c65=convertTypeToString(_0x3467bc[_0x442dcb(0x19e)]['type']||0x0);if(['query','body'][_0x442dcb(0x15a)](_0x8c3c65)!=-0x1&&_0x3467bc[_0x442dcb(0x19e)][_0x442dcb(0x196)][_0x442dcb(0x15a)](':')==-0x1&&!_0x366009['request'][_0x442dcb(0x195)](_0x1272d1=>_0x1272d1[_0x442dcb(0x185)]==_0x3467bc[_0x442dcb(0x19e)][_0x442dcb(0x196)]))_0x366009['request'][_0x442dcb(0x167)]({'key':_0x3467bc[_0x442dcb(0x19e)]['propertyData'],'title':_0x3467bc['metadata'][_0x442dcb(0x196)],'type':convertSchemaType(_0xbad276[_0x3467bc[_0x442dcb(0x17d)]][_0x442dcb(0x189)]),'required':![],'default':'','desc':''});else{if(_0x8c3c65==_0x442dcb(0x165)){let _0x53bf07=((_0x2d671b=_0x3467bc===null||_0x3467bc===void 0x0?void 0x0:_0x3467bc[_0x442dcb(0x19e)])===null||_0x2d671b===void 0x0?void 0x0:_0x2d671b['propertyData'])||_0x442dcb(0x165);_0x53bf07[_0x442dcb(0x15a)](':')==-0x1&&!_0x366009[_0x442dcb(0x14e)][_0x442dcb(0x195)](_0x2f23d7=>_0x2f23d7[_0x442dcb(0x185)]==_0x53bf07&&_0x2f23d7[_0x442dcb(0x1a5)]==_0x442dcb(0x165))&&_0x366009['request'][_0x442dcb(0x167)]({'key':_0x53bf07,'title':_0x442dcb(0x19c)+_0x53bf07,'type':_0x442dcb(0x165),'required':!![],'default':'','desc':''});}}}else{const _0x1a2cdb=(0x0,core_3[_0x442dcb(0x16f)])(validator_1[_0x442dcb(0x16b)],_0xbad276[_0x1cef13]);_0x1a2cdb&&_0x366009[_0x442dcb(0x14e)][_0x442dcb(0x167)](...getJoiRequest(_0x1a2cdb));}}}_0x27bca1[_0x442dcb(0x14a)][_0x442dcb(0x167)](_0x366009);}}if(_0x27bca1[_0x442dcb(0x14a)][_0x442dcb(0x180)]>0x0){let _0xfe175b=_0x5c09a2[_0x5b49e6];_0xfe175b?(_0xfe175b[_0x442dcb(0x168)]!=_0x27bca1[_0x442dcb(0x168)]&&(_0xfe175b['summary']=_0xfe175b[_0x442dcb(0x168)]+','+_0x27bca1['summary']),_0xfe175b[_0x442dcb(0x170)]!=_0x27bca1[_0x442dcb(0x170)]&&(_0xfe175b[_0x442dcb(0x170)]=_0xfe175b['description']+','+_0x27bca1[_0x442dcb(0x170)]),_0xfe175b[_0x442dcb(0x14a)]=_0xfe175b['routes'][_0x442dcb(0x192)](_0x27bca1[_0x442dcb(0x14a)]),_0x5c09a2[_0x5b49e6]=_0xfe175b):_0x5c09a2[_0x5b49e6]=_0x27bca1;}}}return _0x5c09a2;}function a8_0x21af(_0x3e5fcc,_0x587b02){const _0x4d81c8=a8_0x38ef();return a8_0x21af=function(_0x12591c,_0x48e07d){_0x12591c=_0x12591c-0x144;let _0x38ef80=_0x4d81c8[_0x12591c];return _0x38ef80;},a8_0x21af(_0x3e5fcc,_0x587b02);}exports[a8_0xc17250(0x145)]=getRoutes;function getJoiRequest(_0x5e9888){const _0x5ad5fd=a8_0xc17250,_0x3fad35=[];for(let _0x19113e in _0x5e9888){const _0x5377b3={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x137873=typeof _0x5e9888[_0x19113e][_0x5ad5fd(0x16e)]==_0x5ad5fd(0x16d)?_0x5e9888[_0x19113e][_0x5ad5fd(0x16e)]():_0x5e9888[_0x19113e];_0x5377b3[_0x5ad5fd(0x185)]=_0x19113e,_0x5377b3[_0x5ad5fd(0x1a5)]=_0x137873[_0x5ad5fd(0x1a5)],_0x5377b3['title']=(0x0,lodash_1[_0x5ad5fd(0x18e)])(_0x137873,_0x5ad5fd(0x18a),_0x19113e),_0x5377b3[_0x5ad5fd(0x18b)]=(0x0,lodash_1['get'])(_0x137873,'flags.default',''),_0x5377b3[_0x5ad5fd(0x187)]=(0x0,lodash_1['get'])(_0x137873,_0x5ad5fd(0x199),'')=='required',_0x5377b3[_0x5ad5fd(0x170)]=(0x0,lodash_1[_0x5ad5fd(0x18e)])(_0x137873,_0x5ad5fd(0x1a7),'');if(_0x137873[_0x5ad5fd(0x1a5)]==_0x5ad5fd(0x174))_0x5377b3[_0x5ad5fd(0x198)]=getJoiRequest(_0x137873[_0x5ad5fd(0x176)]);else{if(_0x137873[_0x5ad5fd(0x1a5)]==_0x5ad5fd(0x1a2)&&_0x137873[_0x5ad5fd(0x193)]&&Array[_0x5ad5fd(0x16a)](_0x137873[_0x5ad5fd(0x193)])&&_0x137873[_0x5ad5fd(0x193)][0x0]){}}_0x137873['allow']&&Array[_0x5ad5fd(0x16a)](_0x137873[_0x5ad5fd(0x154)])&&_0x137873['allow'][_0x5ad5fd(0x180)]>0x0&&(_0x5377b3[_0x5ad5fd(0x170)]='只允许:['+_0x137873['allow']['join'](',')+'];'+_0x5377b3[_0x5ad5fd(0x170)]);if(_0x5377b3[_0x5ad5fd(0x185)]&&_0x5377b3[_0x5ad5fd(0x1a5)]){const _0x10b677={};for(const _0x2eaad8 of _0x137873[_0x5ad5fd(0x155)]||[]){if(_0x2eaad8[_0x5ad5fd(0x189)]===_0x5ad5fd(0x1a8)&&_0x2eaad8[_0x5ad5fd(0x152)])_0x10b677[_0x5ad5fd(0x1a8)]=_0x2eaad8[_0x5ad5fd(0x152)][_0x5ad5fd(0x17c)];else _0x2eaad8['name']===_0x5ad5fd(0x149)&&(_0x10b677[_0x5ad5fd(0x149)]=_0x2eaad8[_0x5ad5fd(0x152)][_0x5ad5fd(0x17c)]);}_0x5377b3[_0x5ad5fd(0x155)]=_0x10b677;}_0x5377b3[_0x5ad5fd(0x185)]&&_0x5377b3[_0x5ad5fd(0x15b)]&&_0x3fad35['push'](_0x5377b3);}return _0x3fad35;}function convertSchemaType(_0x593f00){const _0x580c81=a8_0xc17250;switch(_0x593f00){case'Object':return _0x580c81(0x174);case _0x580c81(0x15e):return _0x580c81(0x14c);case _0x580c81(0x186):return _0x580c81(0x17a);case'String':return _0x580c81(0x147);case _0x580c81(0x188):return _0x580c81(0x165);default:return _0x580c81(0x147);}}function convertTypeToString(_0x50ffda){const _0x54e4e5=a8_0xc17250;switch(_0x50ffda){case core_1[_0x54e4e5(0x181)][_0x54e4e5(0x14d)]:return _0x54e4e5(0x182);case core_1['RouteParamTypes'][_0x54e4e5(0x173)]:return _0x54e4e5(0x178);case core_1[_0x54e4e5(0x181)]['PARAM']:return _0x54e4e5(0x15c);case core_1['RouteParamTypes'][_0x54e4e5(0x148)]:return _0x54e4e5(0x18f);case core_1[_0x54e4e5(0x181)]['FIELDS']:case core_1['RouteParamTypes'][_0x54e4e5(0x161)]:case core_1['RouteParamTypes'][_0x54e4e5(0x153)]:return _0x54e4e5(0x165);default:return _0x54e4e5(0x182);}}function a8_0x38ef(){const _0x4280be=['split','push','summary','route','isArray','RULES_KEY','68ouGnRW','function','describe','getClassExtendedMetadata','description','routerName','prefix','QUERY','object','defineProperty','keys','8392383jJMCKp','query','pprefix','number','../types/action','limit','parameterIndex','search','ACTION_KEY','length','RouteParamTypes','header','getClassMetadata','@midwayjs/core','key','Number','required','File','name','flags.label','default','4846ihqlvz','449484BTmXsp','get','body','listModule','toString','concat','items','filepath','find','propertyData','8KBkKpK','children','flags.presence','iterator','ACTION_ROUTE_KEY','文件上传-','INJECT_CUSTOM_PARAM','metadata','noreq','method','28NoQgKI','array','replace','448SpFQjz','type','filter','flags.description','min','9210HAVzWz','getRoutes','test','string','BODY','max','routes','intercept','boolean','HEADERS','request','@anncic-api/validator','lodash','158115nTBUff','args','FILESTREAM','allow','rules','module','routerOptions','1248006nlIfZf','12716iSTvax','indexOf','title','path','(((.+)+)+)+$','Boolean','22006320hIFzQI','static/apitest','FILESSTREAM','/static/apitest','startsWith','tagName','file'];a8_0x38ef=function(){return _0x4280be;};return a8_0x38ef();}
|
|
1
|
+
const a8_0xcb45=a8_0x4f40;function a8_0x20f8(){const _0x1c142b=['min','startsWith','文件上传-','(((.+)+)+)+$','@anncic-api/validator','Boolean','push','ACTION_KEY','static/apitest','10ptJsDy','array','flags.presence','/static/apitest','file','HEADERS','test','ACTION_ROUTE_KEY','children','1244382OQfcnv','10254452WoOGaQ','isArray','prefix','concat','getRoutes','getClassMetadata','method','FIELDS','path','WEB_ROUTER_PARAM_KEY','type','request','RULES_KEY','allow','273cERQHK','8670087kMdGCe','listModule','required','get','iterator','intercept','lodash','title','rules','function','search','max','11444HNRXWF','module','boolean','tagName','key','233JtwMBE','length','3404eMKIdS','description','limit','只允许:[','name','default','metadata','noreq','15SWwxXo','parameterIndex','getMethodParamTypes','@midwayjs/core','defineProperty','substring','filter','apply','String','summary','401863QlofxH','query','INJECT_CUSTOM_PARAM','endsWith','filepath','describe','propertyData','FILESTREAM','routerName','args','__esModule','routerOptions','find','body','routes','831PwvDOy','route','indexOf','items','requestMethod','12zlCoZm','298504xoCCDw','RouteParamTypes','header','FILESSTREAM','split','getClassExtendedMetadata','flags.default','PARAM','object','string','pprefix','../types/action'];a8_0x20f8=function(){return _0x1c142b;};return a8_0x20f8();}function a8_0x4f40(_0x4ce033,_0x5b6b94){const _0x1ddf01=a8_0x20f8();return a8_0x4f40=function(_0x495b4b,_0x131580){_0x495b4b=_0x495b4b-0xc6;let _0x20f8c6=_0x1ddf01[_0x495b4b];return _0x20f8c6;},a8_0x4f40(_0x4ce033,_0x5b6b94);}(function(_0x3681e9,_0x2f99b1){const _0x5d1ac2=a8_0x4f40,_0x281d34=_0x3681e9();while(!![]){try{const _0x502857=parseInt(_0x5d1ac2(0x112))/0x1*(parseInt(_0x5d1ac2(0x10d))/0x2)+-parseInt(_0x5d1ac2(0xcd))/0x3*(parseInt(_0x5d1ac2(0x114))/0x4)+parseInt(_0x5d1ac2(0x11c))/0x5*(-parseInt(_0x5d1ac2(0xf1))/0x6)+parseInt(_0x5d1ac2(0x100))/0x7*(-parseInt(_0x5d1ac2(0xd3))/0x8)+-parseInt(_0x5d1ac2(0x101))/0x9*(-parseInt(_0x5d1ac2(0xe8))/0xa)+parseInt(_0x5d1ac2(0x126))/0xb*(-parseInt(_0x5d1ac2(0xd2))/0xc)+parseInt(_0x5d1ac2(0xf2))/0xd;if(_0x502857===_0x2f99b1)break;else _0x281d34['push'](_0x281d34['shift']());}catch(_0x45a0ef){_0x281d34['push'](_0x281d34['shift']());}}}(a8_0x20f8,0xb39e3));const a8_0x131580=(function(){let _0x1354a6=!![];return function(_0x1d889c,_0x2ae9e6){const _0x255ed9=_0x1354a6?function(){const _0x4ac3fa=a8_0x4f40;if(_0x2ae9e6){const _0x2bc76a=_0x2ae9e6[_0x4ac3fa(0x123)](_0x1d889c,arguments);return _0x2ae9e6=null,_0x2bc76a;}}:function(){};return _0x1354a6=![],_0x255ed9;};}()),a8_0x495b4b=a8_0x131580(this,function(){const _0x81a3fc=a8_0x4f40;return a8_0x495b4b['toString']()[_0x81a3fc(0x10b)]('(((.+)+)+)+$')['toString']()['constructor'](a8_0x495b4b)[_0x81a3fc(0x10b)](_0x81a3fc(0xe2));});a8_0x495b4b();'use strict';Object[a8_0xcb45(0x120)](exports,a8_0xcb45(0xc8),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0xcb45(0x107)),validator_1=require(a8_0xcb45(0xe3)),core_1=require(a8_0xcb45(0x11f)),core_2=require(a8_0xcb45(0x11f)),core_3=require(a8_0xcb45(0x11f)),action_1=require(a8_0xcb45(0xde));function getRoutes(_0x5e5f39={'prefix':'/','module':![]}){const _0x22164d=a8_0xcb45;var _0x24264c,_0x3ebb6a;const _0x441782=(0x0,core_3[_0x22164d(0x102)])(action_1[_0x22164d(0xe6)]),_0x235607={},_0xde6d1a=Array[_0x22164d(0xf3)](_0x5e5f39[_0x22164d(0x122)]||[])?_0x5e5f39[_0x22164d(0x122)]||[]:[_0x5e5f39[_0x22164d(0x122)]];_0x11cfec:for(const _0xddf1d5 of _0x441782){let _0x2c6673=(0x0,core_3[_0x22164d(0xf7)])(action_1[_0x22164d(0xe6)],_0xddf1d5),_0x555699=(0x0,core_3[_0x22164d(0xf7)])(action_1[_0x22164d(0xef)],_0xddf1d5);if(_0x2c6673&&_0x555699){let _0x1b58df=_0x2c6673[_0x22164d(0xf4)],_0x3c3816={};if(_0x5e5f39[_0x22164d(0x10e)]&&(0x0,lodash_1[_0x22164d(0x104)])(_0x2c6673,_0x22164d(0x10e),![])!=_0x5e5f39[_0x22164d(0x10e)])continue _0x11cfec;else{if(_0x5e5f39[_0x22164d(0x10e)]===![]&&!!(0x0,lodash_1[_0x22164d(0x104)])(_0x2c6673,_0x22164d(0x10e),null))continue _0x11cfec;}if(_0x5e5f39[_0x22164d(0xf4)]&&!_0x1b58df[_0x22164d(0xe0)](_0x5e5f39['prefix']))continue _0x11cfec;_0x1b58df!=='/'?(_0x3c3816['summary']=(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673[_0x22164d(0xc9)]['tagName'])||(/^\//[_0x22164d(0xee)](_0x1b58df)?_0x1b58df[_0x22164d(0xd7)]('/')[0x1]:_0x1b58df),_0x3c3816[_0x22164d(0x115)]=(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673[_0x22164d(0xc9)][_0x22164d(0x115)])||_0x3c3816[_0x22164d(0x125)],_0x3c3816[_0x22164d(0xcc)]=[]):(_0x3c3816[_0x22164d(0x125)]=(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673['routerOptions'][_0x22164d(0x110)])||_0x22164d(0x119),_0x3c3816[_0x22164d(0x115)]=(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673[_0x22164d(0xc9)][_0x22164d(0x115)])||'',_0x3c3816[_0x22164d(0xcc)]=[]);_0x5e5f39[_0x22164d(0x12a)]&&(_0x3c3816['filepath']=_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673['filepath']);(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673[_0x22164d(0xdd)])&&(_0x3c3816[_0x22164d(0xf4)]=_0x2c6673[_0x22164d(0xdd)]);(_0x2c6673===null||_0x2c6673===void 0x0?void 0x0:_0x2c6673['module'])&&(_0x3c3816['module']=_0x2c6673[_0x22164d(0x10e)]);let _0x564c51=(0x0,core_3[_0x22164d(0xf7)])(core_2[_0x22164d(0x128)],_0xddf1d5)||{};if(typeof _0x555699[Symbol[_0x22164d(0x105)]]===_0x22164d(0x10a))for(let _0x482e5a of _0x555699){if((_0x5e5f39===null||_0x5e5f39===void 0x0?void 0x0:_0x5e5f39[_0x22164d(0x106)])&&!(_0x482e5a===null||_0x482e5a===void 0x0?void 0x0:_0x482e5a[_0x22164d(0x106)]))continue;let _0x27c6b2={};_0x27c6b2[_0x22164d(0xf8)]=_0x482e5a[_0x22164d(0xd1)],_0x27c6b2['route']=(_0x1b58df+_0x482e5a[_0x22164d(0xfa)])['replace'](/\/{2,}/g,'/'),_0x27c6b2[_0x22164d(0x125)]=(_0x482e5a===null||_0x482e5a===void 0x0?void 0x0:_0x482e5a[_0x22164d(0xc6)])||_0x3c3816['summary']||_0x22164d(0x119),_0x27c6b2[_0x22164d(0x115)]=(_0x482e5a===null||_0x482e5a===void 0x0?void 0x0:_0x482e5a[_0x22164d(0x115)])||'',_0x27c6b2[_0x22164d(0xfd)]=[];_0x27c6b2[_0x22164d(0xce)][_0x22164d(0x129)]('/')&&(_0x27c6b2[_0x22164d(0xce)]=_0x27c6b2['route'][_0x22164d(0x121)](0x0,_0x27c6b2['route'][_0x22164d(0x113)]-0x1));if(!(0x0,lodash_1[_0x22164d(0xe0)])(_0x27c6b2['route'],_0x22164d(0xe7))&&!(0x0,lodash_1[_0x22164d(0xe0)])(_0x27c6b2[_0x22164d(0xce)],_0x22164d(0xeb))&&_0xde6d1a[_0x22164d(0xcf)](_0x27c6b2[_0x22164d(0xce)])===-0x1){if(!(_0x5e5f39===null||_0x5e5f39===void 0x0?void 0x0:_0x5e5f39[_0x22164d(0x11b)])){let _0x52a028=(0x0,core_3[_0x22164d(0x11e)])(new _0xddf1d5(),_0x482e5a['method']);for(const _0x2fa636 in _0x52a028){let _0x3fb2a5=(_0x24264c=_0x564c51[_0x482e5a[_0x22164d(0xf8)]])===null||_0x24264c===void 0x0?void 0x0:_0x24264c[_0x22164d(0xca)](_0x58c13a=>_0x58c13a[_0x22164d(0x11d)]==_0x2fa636&&_0x58c13a[_0x22164d(0x111)]===core_2[_0x22164d(0xfb)]&&(_0x58c13a===null||_0x58c13a===void 0x0?void 0x0:_0x58c13a[_0x22164d(0x11a)]));if(_0x3fb2a5===null||_0x3fb2a5===void 0x0?void 0x0:_0x3fb2a5[_0x22164d(0x11a)]){let _0xc4fb9c=convertTypeToString(_0x3fb2a5[_0x22164d(0x11a)][_0x22164d(0xfc)]||0x0);if(['query',_0x22164d(0xcb)]['indexOf'](_0xc4fb9c)!=-0x1&&_0x3fb2a5[_0x22164d(0x11a)][_0x22164d(0x12c)][_0x22164d(0xcf)](':')==-0x1&&!_0x27c6b2[_0x22164d(0xfd)]['find'](_0x2a9612=>_0x2a9612[_0x22164d(0x111)]==_0x3fb2a5[_0x22164d(0x11a)]['propertyData']))_0x27c6b2['request']['push']({'key':_0x3fb2a5[_0x22164d(0x11a)][_0x22164d(0x12c)],'title':_0x3fb2a5[_0x22164d(0x11a)][_0x22164d(0x12c)],'type':convertSchemaType(_0x52a028[_0x3fb2a5['parameterIndex']][_0x22164d(0x118)]),'required':![],'default':'','desc':''});else{if(_0xc4fb9c==_0x22164d(0xec)){let _0x4f0f46=((_0x3ebb6a=_0x3fb2a5===null||_0x3fb2a5===void 0x0?void 0x0:_0x3fb2a5[_0x22164d(0x11a)])===null||_0x3ebb6a===void 0x0?void 0x0:_0x3ebb6a[_0x22164d(0x12c)])||'file';_0x4f0f46[_0x22164d(0xcf)](':')==-0x1&&!_0x27c6b2[_0x22164d(0xfd)][_0x22164d(0xca)](_0xce6185=>_0xce6185[_0x22164d(0x111)]==_0x4f0f46&&_0xce6185[_0x22164d(0xfc)]==_0x22164d(0xec))&&_0x27c6b2[_0x22164d(0xfd)][_0x22164d(0xe5)]({'key':_0x4f0f46,'title':_0x22164d(0xe1)+_0x4f0f46,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x427d9c=(0x0,core_3[_0x22164d(0xd8)])(validator_1[_0x22164d(0xfe)],_0x52a028[_0x2fa636]);_0x427d9c&&_0x27c6b2[_0x22164d(0xfd)][_0x22164d(0xe5)](...getJoiRequest(_0x427d9c));}}}_0x3c3816['routes']['push'](_0x27c6b2);}}if(_0x3c3816[_0x22164d(0xcc)][_0x22164d(0x113)]>0x0){let _0x2f51ee=_0x235607[_0x1b58df];_0x2f51ee?(_0x2f51ee[_0x22164d(0x125)]!=_0x3c3816[_0x22164d(0x125)]&&(_0x2f51ee[_0x22164d(0x125)]=_0x2f51ee['summary']+','+_0x3c3816[_0x22164d(0x125)]),_0x2f51ee[_0x22164d(0x115)]!=_0x3c3816[_0x22164d(0x115)]&&(_0x2f51ee[_0x22164d(0x115)]=_0x2f51ee['description']+','+_0x3c3816[_0x22164d(0x115)]),_0x2f51ee[_0x22164d(0xcc)]=_0x2f51ee[_0x22164d(0xcc)][_0x22164d(0xf5)](_0x3c3816['routes']),_0x235607[_0x1b58df]=_0x2f51ee):_0x235607[_0x1b58df]=_0x3c3816;}}}return _0x235607;}exports[a8_0xcb45(0xf6)]=getRoutes;function getJoiRequest(_0x1aa04c){const _0xb81153=a8_0xcb45,_0x15a4b9=[];for(let _0x12eaa9 in _0x1aa04c){const _0x2725cd={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1c029d=typeof _0x1aa04c[_0x12eaa9]['describe']==_0xb81153(0x10a)?_0x1aa04c[_0x12eaa9][_0xb81153(0x12b)]():_0x1aa04c[_0x12eaa9];_0x2725cd[_0xb81153(0x111)]=_0x12eaa9,_0x2725cd[_0xb81153(0xfc)]=_0x1c029d[_0xb81153(0xfc)],_0x2725cd[_0xb81153(0x108)]=(0x0,lodash_1['get'])(_0x1c029d,'flags.label',_0x12eaa9),_0x2725cd[_0xb81153(0x119)]=(0x0,lodash_1[_0xb81153(0x104)])(_0x1c029d,_0xb81153(0xd9),''),_0x2725cd[_0xb81153(0x103)]=(0x0,lodash_1[_0xb81153(0x104)])(_0x1c029d,_0xb81153(0xea),'')=='required',_0x2725cd[_0xb81153(0x115)]=(0x0,lodash_1[_0xb81153(0x104)])(_0x1c029d,'flags.description','');if(_0x1c029d[_0xb81153(0xfc)]=='object')_0x2725cd[_0xb81153(0xf0)]=getJoiRequest(_0x1c029d['keys']);else{if(_0x1c029d[_0xb81153(0xfc)]==_0xb81153(0xe9)&&_0x1c029d[_0xb81153(0xd0)]&&Array[_0xb81153(0xf3)](_0x1c029d[_0xb81153(0xd0)])&&_0x1c029d[_0xb81153(0xd0)][0x0]){}}_0x1c029d[_0xb81153(0xff)]&&Array['isArray'](_0x1c029d['allow'])&&_0x1c029d[_0xb81153(0xff)][_0xb81153(0x113)]>0x0&&(_0x2725cd[_0xb81153(0x115)]=_0xb81153(0x117)+_0x1c029d['allow']['join'](',')+'];'+_0x2725cd[_0xb81153(0x115)]);if(_0x2725cd[_0xb81153(0x111)]&&_0x2725cd['type']){const _0x50802b={};for(const _0x3f745d of _0x1c029d['rules']||[]){if(_0x3f745d['name']===_0xb81153(0xdf)&&_0x3f745d['args'])_0x50802b[_0xb81153(0xdf)]=_0x3f745d[_0xb81153(0xc7)][_0xb81153(0x116)];else _0x3f745d[_0xb81153(0x118)]===_0xb81153(0x10c)&&(_0x50802b[_0xb81153(0x10c)]=_0x3f745d[_0xb81153(0xc7)][_0xb81153(0x116)]);}_0x2725cd[_0xb81153(0x109)]=_0x50802b;}_0x2725cd[_0xb81153(0x111)]&&_0x2725cd[_0xb81153(0x108)]&&_0x15a4b9[_0xb81153(0xe5)](_0x2725cd);}return _0x15a4b9;}function convertSchemaType(_0x220af9){const _0x46ffba=a8_0xcb45;switch(_0x220af9){case'Object':return _0x46ffba(0xdb);case _0x46ffba(0xe4):return _0x46ffba(0x10f);case'Number':return'number';case _0x46ffba(0x124):return _0x46ffba(0xdc);case'File':return _0x46ffba(0xec);default:return _0x46ffba(0xdc);}}function convertTypeToString(_0x151aac){const _0x363407=a8_0xcb45;switch(_0x151aac){case core_1[_0x363407(0xd4)][_0x363407(0xed)]:return _0x363407(0xd5);case core_1[_0x363407(0xd4)]['QUERY']:return _0x363407(0x127);case core_1[_0x363407(0xd4)][_0x363407(0xda)]:return'path';case core_1[_0x363407(0xd4)]['BODY']:return _0x363407(0xcb);case core_1['RouteParamTypes'][_0x363407(0xf9)]:case core_1[_0x363407(0xd4)][_0x363407(0xd6)]:case core_1[_0x363407(0xd4)][_0x363407(0x12d)]:return _0x363407(0xec);default:return _0x363407(0xd5);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x1876a8=a9_0x2255;(function(_0x24054b,_0x55c862){var _0x3d086e=a9_0x2255,_0x123167=_0x24054b();while(!![]){try{var _0x226b00=parseInt(_0x3d086e(0x103))/0x1+parseInt(_0x3d086e(0xf6))/0x2*(parseInt(_0x3d086e(0x11b))/0x3)+parseInt(_0x3d086e(0xe4))/0x4*(parseInt(_0x3d086e(0xe2))/0x5)+parseInt(_0x3d086e(0xfc))/0x6*(-parseInt(_0x3d086e(0xf7))/0x7)+parseInt(_0x3d086e(0xe6))/0x8*(parseInt(_0x3d086e(0x118))/0x9)+parseInt(_0x3d086e(0xe9))/0xa*(parseInt(_0x3d086e(0x123))/0xb)+-parseInt(_0x3d086e(0xea))/0xc;if(_0x226b00===_0x55c862)break;else _0x123167['push'](_0x123167['shift']());}catch(_0x2819b8){_0x123167['push'](_0x123167['shift']());}}}(a9_0x3d4d,0xdb9f1));var a9_0xabbf02=(function(){var _0x3ca2a8=!![];return function(_0x417da0,_0xa6d337){var _0x1dc1bf=_0x3ca2a8?function(){var _0x2e6b9e=a9_0x2255;if(_0xa6d337){var _0x32168d=_0xa6d337[_0x2e6b9e(0x107)](_0x417da0,arguments);return _0xa6d337=null,_0x32168d;}}:function(){};return _0x3ca2a8=![],_0x1dc1bf;};}()),a9_0x417db3=a9_0xabbf02(this,function(){var _0x15649d=a9_0x2255;return a9_0x417db3['toString']()[_0x15649d(0x111)](_0x15649d(0xf9))[_0x15649d(0x122)]()['constructor'](a9_0x417db3)[_0x15649d(0x111)](_0x15649d(0xf9));});a9_0x417db3();'use strict';var __createBinding=this&&this['__createBinding']||(Object[a9_0x1876a8(0xee)]?function(_0x38cd63,_0xe5b79e,_0x3be6ea,_0x32e951){var _0x5ce862=a9_0x1876a8;if(_0x32e951===undefined)_0x32e951=_0x3be6ea;var _0x1a5a11=Object[_0x5ce862(0xfa)](_0xe5b79e,_0x3be6ea);(!_0x1a5a11||('get'in _0x1a5a11?!_0xe5b79e['__esModule']:_0x1a5a11[_0x5ce862(0xeb)]||_0x1a5a11['configurable']))&&(_0x1a5a11={'enumerable':!![],'get':function(){return _0xe5b79e[_0x3be6ea];}}),Object[_0x5ce862(0x11a)](_0x38cd63,_0x32e951,_0x1a5a11);}:function(_0x430413,_0x52f55f,_0x302789,_0x3f87ab){if(_0x3f87ab===undefined)_0x3f87ab=_0x302789;_0x430413[_0x3f87ab]=_0x52f55f[_0x302789];}),__exportStar=this&&this[a9_0x1876a8(0x101)]||function(_0xf47b80,_0x393797){var _0x372221=a9_0x1876a8;for(var _0x58f984 in _0xf47b80)if(_0x58f984!=='default'&&!Object[_0x372221(0xe5)][_0x372221(0xfd)][_0x372221(0xf5)](_0x393797,_0x58f984))__createBinding(_0x393797,_0xf47b80,_0x58f984);};Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xe3),{'value':!![]}),exports[a9_0x1876a8(0xed)]=exports['ScopeEnum']=exports['Singleton']=exports[a9_0x1876a8(0x102)]=exports['Inject']=exports[a9_0x1876a8(0xf1)]=exports[a9_0x1876a8(0xe1)]=exports[a9_0x1876a8(0x10b)]=exports[a9_0x1876a8(0x116)]=exports[a9_0x1876a8(0x119)]=exports[a9_0x1876a8(0x11f)]=exports[a9_0x1876a8(0xe8)]=exports[a9_0x1876a8(0x120)]=exports[a9_0x1876a8(0xfb)]=exports[a9_0x1876a8(0xf4)]=exports[a9_0x1876a8(0xfe)]=exports[a9_0x1876a8(0x106)]=exports[a9_0x1876a8(0xf0)]=exports[a9_0x1876a8(0x10d)]=exports['ValidatorError']=exports['ExcelService']=exports['ApiService']=exports[a9_0x1876a8(0xe0)]=exports['CacheService']=exports[a9_0x1876a8(0x114)]=exports['getRoutes']=exports[a9_0x1876a8(0x10c)]=exports[a9_0x1876a8(0x10a)]=exports[a9_0x1876a8(0x117)]=exports[a9_0x1876a8(0xef)]=void 0x0;const getAppsConfig_1=require(a9_0x1876a8(0x11c));Object[a9_0x1876a8(0x11a)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x4a075d=a9_0x1876a8;return getAppsConfig_1[_0x4a075d(0xed)];}}),__exportStar(require(a9_0x1876a8(0x125)),exports),__exportStar(require(a9_0x1876a8(0x105)),exports);var Action_1=require(a9_0x1876a8(0x113));Object['defineProperty'](exports,a9_0x1876a8(0xef),{'enumerable':!![],'get':function(){var _0x38f28d=a9_0x1876a8;return Action_1[_0x38f28d(0xef)];}});var ActionApitest_1=require(a9_0x1876a8(0x104));Object['defineProperty'](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x1bca1b=a9_0x1876a8;return ActionApitest_1[_0x1bca1b(0x117)];}});function a9_0x2255(_0x55c719,_0x36d445){var _0x585cce=a9_0x3d4d();return a9_0x2255=function(_0x417db3,_0xabbf02){_0x417db3=_0x417db3-0xe0;var _0x3d4d76=_0x585cce[_0x417db3];return _0x3d4d76;},a9_0x2255(_0x55c719,_0x36d445);}var Intercept_1=require(a9_0x1876a8(0x11d));Object[a9_0x1876a8(0x11a)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x409b03=a9_0x1876a8;return Intercept_1[_0x409b03(0x10a)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x10c),{'enumerable':!![],'get':function(){var _0x3b845c=a9_0x1876a8;return Intercept_1[_0x3b845c(0x10c)];}});var getRoutes_1=require(a9_0x1876a8(0x115));Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x112),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x1876a8(0xec));Object['defineProperty'](exports,a9_0x1876a8(0x114),{'enumerable':!![],'get':function(){var _0x2525bf=a9_0x1876a8;return ApiError_1[_0x2525bf(0x114)];}});var cache_1=require(a9_0x1876a8(0x121));Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x10f),{'enumerable':!![],'get':function(){var _0x449327=a9_0x1876a8;return cache_1[_0x449327(0x10f)];}});var event_1=require(a9_0x1876a8(0x124));Object[a9_0x1876a8(0x11a)](exports,'EventService',{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a9_0x1876a8(0x10e));Object['defineProperty'](exports,a9_0x1876a8(0x109),{'enumerable':!![],'get':function(){var _0x3d45dc=a9_0x1876a8;return ApiService_1[_0x3d45dc(0x109)];}});var ExcelService_1=require(a9_0x1876a8(0x11e));function a9_0x3d4d(){var _0x5e8db5=['Action','Configuration','Provide','Inject','ValidatorError','Fields','call','664814SYAUOs','21uNbudx','ScopeEnum','(((.+)+)+)+$','getOwnPropertyDescriptor','Body','327942pxVieM','hasOwnProperty','Files','@midwayjs/core','ExcelService','__exportStar','Scope','23078FxUiOi','./decorator/ActionApitest','./service/ApitestService','File','apply','./configuration','ApiService','Intercept','Config','IIntercept','ValidatorService','./service/ApiService','CacheService','@anncic-api/validator','search','getRoutes','./decorator/Action','ApiError','./helper/getRoutes','App','Apitest','3568599QlBvqG','Init','defineProperty','3zFAHhD','./helper/getAppsConfig','./decorator/Intercept','./service/ExcelService','Headers','Param','@anncic-api/cache','toString','11XTGKGj','@anncic-api/event','./types/common','EventService','Logger','242370bKXLMw','__esModule','4NEDOdn','prototype','8loRgQT','Singleton','Query','15917990tESMKi','15944748oFKXdv','writable','./exception/ApiError','getAppsConfig','create'];a9_0x3d4d=function(){return _0x5e8db5;};return a9_0x3d4d();}Object['defineProperty'](exports,a9_0x1876a8(0x100),{'enumerable':!![],'get':function(){return ExcelService_1['ExcelService'];}});var validator_1=require(a9_0x1876a8(0x110));Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xf3),{'enumerable':!![],'get':function(){var _0x4e5ecb=a9_0x1876a8;return validator_1[_0x4e5ecb(0xf3)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x10d),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x1876a8(0x108));Object['defineProperty'](exports,a9_0x1876a8(0xf0),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x1876a8(0xff));Object[a9_0x1876a8(0x11a)](exports,'File',{'enumerable':!![],'get':function(){var _0x3ff3d5=a9_0x1876a8;return core_1[_0x3ff3d5(0x106)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xfe),{'enumerable':!![],'get':function(){var _0x170b19=a9_0x1876a8;return core_1[_0x170b19(0xfe)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xf4),{'enumerable':!![],'get':function(){var _0xe378d5=a9_0x1876a8;return core_1[_0xe378d5(0xf4)];}}),Object[a9_0x1876a8(0x11a)](exports,'Body',{'enumerable':!![],'get':function(){var _0x1892c3=a9_0x1876a8;return core_1[_0x1892c3(0xfb)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x120),{'enumerable':!![],'get':function(){return core_1['Param'];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xe8),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x11f),{'enumerable':!![],'get':function(){var _0x9140e2=a9_0x1876a8;return core_1[_0x9140e2(0x11f)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x119),{'enumerable':!![],'get':function(){return core_1['Init'];}});var core_2=require(a9_0x1876a8(0xff));Object['defineProperty'](exports,a9_0x1876a8(0x116),{'enumerable':!![],'get':function(){var _0x246030=a9_0x1876a8;return core_2[_0x246030(0x116)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0x10b),{'enumerable':!![],'get':function(){var _0x2444c1=a9_0x1876a8;return core_2[_0x2444c1(0x10b)];}}),Object['defineProperty'](exports,a9_0x1876a8(0xe1),{'enumerable':!![],'get':function(){var _0x31ff9e=a9_0x1876a8;return core_2[_0x31ff9e(0xe1)];}}),Object[a9_0x1876a8(0x11a)](exports,a9_0x1876a8(0xf1),{'enumerable':!![],'get':function(){var _0x1d6343=a9_0x1876a8;return core_2[_0x1d6343(0xf1)];}}),Object['defineProperty'](exports,'Inject',{'enumerable':!![],'get':function(){var _0x44c150=a9_0x1876a8;return core_2[_0x44c150(0xf2)];}}),Object['defineProperty'](exports,a9_0x1876a8(0x102),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,a9_0x1876a8(0xe7),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object['defineProperty'](exports,a9_0x1876a8(0xf8),{'enumerable':!![],'get':function(){var _0x59188e=a9_0x1876a8;return core_2[_0x59188e(0xf8)];}}),global['getAppsConfig']=getAppsConfig_1[a9_0x1876a8(0xed)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x260cd5=a10_0x246f;function a10_0x246f(_0x364a12,_0x3d4e90){var _0x585068=a10_0x9197();return a10_0x246f=function(_0x1d3f57,_0x54c658){_0x1d3f57=_0x1d3f57-0x147;var _0x9197ca=_0x585068[_0x1d3f57];return _0x9197ca;},a10_0x246f(_0x364a12,_0x3d4e90);}function a10_0x9197(){var _0x4bfc99=['defineProperty','length','../exception/ApiError','secret','requesttime','Config','Scope','signature','devices','21NPWVHb','HEADERS_DEVICE','619952tkFjrm','验证失败','anncicapi','Singleton','device','619125pMpYFh','config','10pRiNOQ','decorate','799932XftPRl','1485425pczGoz','TIMEOUT_LOGINTIME','ApiError','design:type','HEADERS_CHECKCODE','HEADERS_SIGNATURE','toLowerCase','metadata','checkcode','function','padEnd','651753uJmOzv','ScopeEnum','TIMEOUT','ApiService','token','checksign','entries','object','toString','HEADERS_LACK','180199dAgxSj','__decorate','请求超时,请重试或改善网络环境','MD5','2ioBvEm','search','fromEntries','430452TXnXWA','logintimeout','now','timeout','push','(((.+)+)+)+$','getsign','8MfYYMR','__esModule','prototype','map','__metadata','abs','Provide','logintime','password','sort'];a10_0x9197=function(){return _0x4bfc99;};return a10_0x9197();}(function(_0x437e41,_0x2e548a){var _0x18d79e=a10_0x246f,_0x3ab609=_0x437e41();while(!![]){try{var _0x4b708b=-parseInt(_0x18d79e(0x14d))/0x1*(-parseInt(_0x18d79e(0x151))/0x2)+parseInt(_0x18d79e(0x175))/0x3+-parseInt(_0x18d79e(0x170))/0x4+parseInt(_0x18d79e(0x17a))/0x5+parseInt(_0x18d79e(0x179))/0x6*(-parseInt(_0x18d79e(0x16e))/0x7)+-parseInt(_0x18d79e(0x15b))/0x8*(-parseInt(_0x18d79e(0x185))/0x9)+-parseInt(_0x18d79e(0x177))/0xa*(-parseInt(_0x18d79e(0x154))/0xb);if(_0x4b708b===_0x2e548a)break;else _0x3ab609['push'](_0x3ab609['shift']());}catch(_0x406e67){_0x3ab609['push'](_0x3ab609['shift']());}}}(a10_0x9197,0x3aa7e));var a10_0x54c658=(function(){var _0x304cc2=!![];return function(_0x242b36,_0x56cb0e){var _0x26fe13=_0x304cc2?function(){if(_0x56cb0e){var _0x50887c=_0x56cb0e['apply'](_0x242b36,arguments);return _0x56cb0e=null,_0x50887c;}}:function(){};return _0x304cc2=![],_0x26fe13;};}()),a10_0x1d3f57=a10_0x54c658(this,function(){var _0x345e73=a10_0x246f;return a10_0x1d3f57[_0x345e73(0x14b)]()[_0x345e73(0x152)](_0x345e73(0x159))[_0x345e73(0x14b)]()['constructor'](a10_0x1d3f57)['search'](_0x345e73(0x159));});a10_0x1d3f57();'use strict';var __decorate=this&&this[a10_0x260cd5(0x14e)]||function(_0x1fb410,_0x22935a,_0x59199f,_0x98de3d){var _0x270efd=a10_0x260cd5,_0x394da1=arguments[_0x270efd(0x166)],_0x211f1b=_0x394da1<0x3?_0x22935a:_0x98de3d===null?_0x98de3d=Object['getOwnPropertyDescriptor'](_0x22935a,_0x59199f):_0x98de3d,_0x11c75d;if(typeof Reflect===_0x270efd(0x14a)&&typeof Reflect['decorate']===_0x270efd(0x183))_0x211f1b=Reflect[_0x270efd(0x178)](_0x1fb410,_0x22935a,_0x59199f,_0x98de3d);else{for(var _0x289642=_0x1fb410[_0x270efd(0x166)]-0x1;_0x289642>=0x0;_0x289642--)if(_0x11c75d=_0x1fb410[_0x289642])_0x211f1b=(_0x394da1<0x3?_0x11c75d(_0x211f1b):_0x394da1>0x3?_0x11c75d(_0x22935a,_0x59199f,_0x211f1b):_0x11c75d(_0x22935a,_0x59199f))||_0x211f1b;}return _0x394da1>0x3&&_0x211f1b&&Object[_0x270efd(0x165)](_0x22935a,_0x59199f,_0x211f1b),_0x211f1b;},__metadata=this&&this[a10_0x260cd5(0x15f)]||function(_0x565ab9,_0x2aa2db){var _0x50888e=a10_0x260cd5;if(typeof Reflect===_0x50888e(0x14a)&&typeof Reflect[_0x50888e(0x181)]===_0x50888e(0x183))return Reflect[_0x50888e(0x181)](_0x565ab9,_0x2aa2db);};Object[a10_0x260cd5(0x165)](exports,a10_0x260cd5(0x15c),{'value':!![]}),exports[a10_0x260cd5(0x188)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require('@midwayjs/core'),ApiError_1=require(a10_0x260cd5(0x167));let ApiService=exports['ApiService']=class ApiService{[a10_0x260cd5(0x163)](_0x3f6da5){var _0x34439d=a10_0x260cd5,_0x51b15f;return _0x3f6da5?(0x0,crypto_js_1['MD5'])(''+_0x3f6da5+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x34439d(0x150)])(''+_0x3f6da5)[_0x34439d(0x14b)]()+(''+((_0x51b15f=this[_0x34439d(0x176)])===null||_0x51b15f===void 0x0?void 0x0:_0x51b15f['password'])))['toString']())[_0x34439d(0x14b)]():'';}['getcheck'](_0x24aba4,_0x2a2ce9,_0x538674=Date[a10_0x260cd5(0x156)]()){var _0x37fa9b=a10_0x260cd5;return{'Token':_0x24aba4,'Logintime':_0x538674,'Checkcode':this[_0x37fa9b(0x182)](_0x24aba4,_0x2a2ce9,_0x538674)};}[a10_0x260cd5(0x15a)](_0xffbf09={}){var _0x3d0df7=a10_0x260cd5,_0x12467b,_0x3727ec;const _0x24aab8=[],_0xe360f6=Object[_0x3d0df7(0x153)](Object['entries'](_0xffbf09)[_0x3d0df7(0x15e)](_0x4b68f1=>[_0x4b68f1[0x0][_0x3d0df7(0x180)](),_0x4b68f1[0x1]]));for(let _0x26a8c4 of['device',_0x3d0df7(0x169),_0x3d0df7(0x147),_0x3d0df7(0x162),'checkcode']){if(typeof _0xe360f6[_0x26a8c4]=='undefined')throw new AnnError(ApiError_1[_0x3d0df7(0x17c)][_0x3d0df7(0x14c)],{'message':_0x3d0df7(0x171)});_0x24aab8[_0x3d0df7(0x158)](_0x26a8c4+'='+_0xe360f6[_0x26a8c4]);}_0xe360f6[_0x3d0df7(0x169)]&&((_0x12467b=_0xe360f6[_0x3d0df7(0x169)])===null||_0x12467b===void 0x0?void 0x0:_0x12467b[_0x3d0df7(0x166)])==0xa&&(_0xe360f6[_0x3d0df7(0x169)]=_0xe360f6[_0x3d0df7(0x169)]*0x3e8);if(this['config'][_0x3d0df7(0x157)]&&parseInt((''+Date[_0x3d0df7(0x156)]())['substring'](0x0,0xd)[_0x3d0df7(0x184)](0xd,'0'))-parseInt((''+Math[_0x3d0df7(0x160)](_0xe360f6[_0x3d0df7(0x169)]))['substring'](0x0,0xd)['padEnd'](0xd,'0'))>parseInt(this[_0x3d0df7(0x176)][_0x3d0df7(0x157)]))throw new AnnError(ApiError_1['ApiError'][_0x3d0df7(0x187)],{'message':_0x3d0df7(0x14f),'requesttime':_0xe360f6[_0x3d0df7(0x169)],'timestamp':Date[_0x3d0df7(0x156)]()});if((((_0x3727ec=this[_0x3d0df7(0x176)][_0x3d0df7(0x16d)][_0xe360f6[_0x3d0df7(0x174)]])===null||_0x3727ec===void 0x0?void 0x0:_0x3727ec['logintimeout'])||0x0)>0x0&&Date[_0x3d0df7(0x156)]()-Math[_0x3d0df7(0x160)](_0xe360f6['logintime'])>this[_0x3d0df7(0x176)]['devices'][_0xe360f6[_0x3d0df7(0x174)]][_0x3d0df7(0x155)])throw new AnnError(ApiError_1[_0x3d0df7(0x17c)][_0x3d0df7(0x17b)]);if(!this[_0x3d0df7(0x176)][_0x3d0df7(0x16d)][_0xe360f6['device']]||!this[_0x3d0df7(0x176)]['devices'][_0xe360f6[_0x3d0df7(0x174)]][_0x3d0df7(0x168)]||!this['config'][_0x3d0df7(0x16d)][_0xe360f6[_0x3d0df7(0x174)]]['checkcode'])throw new AnnError(ApiError_1[_0x3d0df7(0x17c)]['HEADERS_DEVICE']);if(_0xe360f6['token']&&_0xe360f6[_0x3d0df7(0x182)]!=this['checkcode'](_0xe360f6[_0x3d0df7(0x147)],_0xe360f6['device'],_0xe360f6[_0x3d0df7(0x162)]))throw new AnnError(ApiError_1[_0x3d0df7(0x17c)][_0x3d0df7(0x17e)]);return _0x24aab8[_0x3d0df7(0x158)]('secret='+this[_0x3d0df7(0x176)][_0x3d0df7(0x16d)][_0xe360f6[_0x3d0df7(0x174)]][_0x3d0df7(0x168)]),(0x0,crypto_js_1[_0x3d0df7(0x150)])(_0x24aab8[_0x3d0df7(0x164)]()['join'](''))[_0x3d0df7(0x14b)]();}[a10_0x260cd5(0x182)](_0x26f64b,_0x44131a,_0x27405e=Date[a10_0x260cd5(0x156)]()){var _0x3d04a1=a10_0x260cd5,_0x464b1e,_0x5d7580,_0x540fae;if(!((_0x464b1e=this['config'])===null||_0x464b1e===void 0x0?void 0x0:_0x464b1e[_0x3d04a1(0x16d)][_0x44131a])||!((_0x540fae=(_0x5d7580=this['config'])===null||_0x5d7580===void 0x0?void 0x0:_0x5d7580[_0x3d04a1(0x16d)][_0x44131a])===null||_0x540fae===void 0x0?void 0x0:_0x540fae['checkcode']))throw new AnnError(ApiError_1[_0x3d04a1(0x17c)][_0x3d04a1(0x16f)]);return(0x0,crypto_js_1[_0x3d04a1(0x150)])(''+_0x26f64b+(0x0,crypto_js_1[_0x3d04a1(0x150)])(''+_0x27405e+(''+this['config'][_0x3d04a1(0x16d)][_0x44131a][_0x3d04a1(0x182)]))[_0x3d04a1(0x14b)]())[_0x3d04a1(0x14b)]();}[a10_0x260cd5(0x148)](_0x178f91={}){var _0x2a97d5=a10_0x260cd5;const _0x509727=Object['fromEntries'](Object[_0x2a97d5(0x149)](_0x178f91)[_0x2a97d5(0x15e)](_0x3ad714=>[_0x3ad714[0x0][_0x2a97d5(0x180)](),_0x3ad714[0x1]]));if(!(_0x509727===null||_0x509727===void 0x0?void 0x0:_0x509727[_0x2a97d5(0x16c)]))throw new AnnError(ApiError_1[_0x2a97d5(0x17c)][_0x2a97d5(0x14c)],{'message':'验证失败'});if((_0x509727===null||_0x509727===void 0x0?void 0x0:_0x509727[_0x2a97d5(0x16c)])!=this['getsign'](_0x509727))throw new AnnError(ApiError_1[_0x2a97d5(0x17c)][_0x2a97d5(0x17f)],{'message':_0x2a97d5(0x171)});return!![];}};__decorate([(0x0,core_1[a10_0x260cd5(0x16a)])(a10_0x260cd5(0x172)),__metadata(a10_0x260cd5(0x17d),Object)],ApiService[a10_0x260cd5(0x15d)],a10_0x260cd5(0x176),void 0x0),exports[a10_0x260cd5(0x188)]=ApiService=__decorate([(0x0,core_1[a10_0x260cd5(0x161)])(),(0x0,core_1[a10_0x260cd5(0x16b)])(core_1[a10_0x260cd5(0x186)][a10_0x260cd5(0x173)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11_0x2dcb5b=a11_0xd3f0;(function(_0x481e0d,_0x3a6d23){const _0x2b6d1e=a11_0xd3f0,_0x4ea605=_0x481e0d();while(!![]){try{const _0x40e3d1=-parseInt(_0x2b6d1e(0xe4))/0x1*(parseInt(_0x2b6d1e(0xfd))/0x2)+parseInt(_0x2b6d1e(0x100))/0x3+-parseInt(_0x2b6d1e(0x101))/0x4*(parseInt(_0x2b6d1e(0xd9))/0x5)+-parseInt(_0x2b6d1e(0xcf))/0x6+-parseInt(_0x2b6d1e(0xe3))/0x7+-parseInt(_0x2b6d1e(0xb7))/0x8+parseInt(_0x2b6d1e(0xfc))/0x9;if(_0x40e3d1===_0x3a6d23)break;else _0x4ea605['push'](_0x4ea605['shift']());}catch(_0x54ca5e){_0x4ea605['push'](_0x4ea605['shift']());}}}(a11_0x1294,0x5b7c7));const a11_0x1ab539=(function(){let _0x41008d=!![];return function(_0x4dfcbd,_0x459fb3){const _0x375b91=_0x41008d?function(){const _0x4d35a0=a11_0xd3f0;if(_0x459fb3){const _0x3ffc36=_0x459fb3[_0x4d35a0(0xe0)](_0x4dfcbd,arguments);return _0x459fb3=null,_0x3ffc36;}}:function(){};return _0x41008d=![],_0x375b91;};}()),a11_0x512fec=a11_0x1ab539(this,function(){const _0x1419c1=a11_0xd3f0;return a11_0x512fec[_0x1419c1(0xb8)]()[_0x1419c1(0xca)](_0x1419c1(0xd0))[_0x1419c1(0xb8)]()[_0x1419c1(0xf7)](a11_0x512fec)[_0x1419c1(0xca)]('(((.+)+)+)+$');});a11_0x512fec();'use strict';var __decorate=this&&this[a11_0x2dcb5b(0x103)]||function(_0x2889c1,_0x1d6915,_0x75b8c5,_0x286521){const _0x6547c7=a11_0x2dcb5b;var _0x3e4b54=arguments[_0x6547c7(0xe8)],_0xbd4088=_0x3e4b54<0x3?_0x1d6915:_0x286521===null?_0x286521=Object['getOwnPropertyDescriptor'](_0x1d6915,_0x75b8c5):_0x286521,_0x48b771;if(typeof Reflect===_0x6547c7(0xde)&&typeof Reflect[_0x6547c7(0xc5)]===_0x6547c7(0xcd))_0xbd4088=Reflect[_0x6547c7(0xc5)](_0x2889c1,_0x1d6915,_0x75b8c5,_0x286521);else{for(var _0x5dd83b=_0x2889c1[_0x6547c7(0xe8)]-0x1;_0x5dd83b>=0x0;_0x5dd83b--)if(_0x48b771=_0x2889c1[_0x5dd83b])_0xbd4088=(_0x3e4b54<0x3?_0x48b771(_0xbd4088):_0x3e4b54>0x3?_0x48b771(_0x1d6915,_0x75b8c5,_0xbd4088):_0x48b771(_0x1d6915,_0x75b8c5))||_0xbd4088;}return _0x3e4b54>0x3&&_0xbd4088&&Object[_0x6547c7(0xf3)](_0x1d6915,_0x75b8c5,_0xbd4088),_0xbd4088;},__metadata=this&&this['__metadata']||function(_0x3595dc,_0x373153){const _0xfb3ac6=a11_0x2dcb5b;if(typeof Reflect===_0xfb3ac6(0xde)&&typeof Reflect[_0xfb3ac6(0xd1)]===_0xfb3ac6(0xcd))return Reflect[_0xfb3ac6(0xd1)](_0x3595dc,_0x373153);},__param=this&&this[a11_0x2dcb5b(0xe9)]||function(_0x1da3c5,_0x30204c){return function(_0x116687,_0x3a7dd3){_0x30204c(_0x116687,_0x3a7dd3,_0x1da3c5);};};Object[a11_0x2dcb5b(0xf3)](exports,'__esModule',{'value':!![]}),exports[a11_0x2dcb5b(0x107)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x2dcb5b(0xc1)),fs_1=require('fs'),core_1=require(a11_0x2dcb5b(0xd7)),core_2=require(a11_0x2dcb5b(0xd7)),core_3=require(a11_0x2dcb5b(0xd7)),getRoutes_1=require(a11_0x2dcb5b(0xf1));function a11_0xd3f0(_0x3bfe6a,_0x381578){const _0x174414=a11_0x1294();return a11_0xd3f0=function(_0x512fec,_0x1ab539){_0x512fec=_0x512fec-0xb5;let _0x129493=_0x174414[_0x512fec];return _0x129493;},a11_0xd3f0(_0x3bfe6a,_0x381578);}function a11_0x1294(){const _0x292451=['5210wmHozm','Singleton','filepath','routes','Scope','object','readFileSync','apply','method','design:returntype','4656435RtbtIT','215689KCBqtL','ctx','summary','push','length','__param','application/javascript;\x20charset=utf-8','../../public/index.html','ApitestService','utf-8','/apitest','Inject','apiteststatic','../helper/getRoutes','set','defineProperty','Controller','apidoc','Get','constructor','request','getRoutes','stringify','design:type','15019479ETLUMD','2uxVzqn','public,\x20max-age=604800','content-type','1333782xbJQsq','2212fHzKWL','existsSync','__decorate','route','url','MidwayEnvironmentService','ApitestStaticController','design:paramtypes','__apiList__','Config','1751816nVRiBI','toString','/apiteststatic/','Param','prefix','apitest','replace','/apiteststatic/*','anncicapi','text/css;\x20charset=utf-8','path','.js','devices','extname','decorate','/apitest-:module','apitesthtml','Request','ScopeEnum','search','../../public/','prototype','function','isDevelopmentEnvironment','375606hpoQHP','(((.+)+)+)+$','metadata','apitestmodule','substring','Provide','Environment','.css','@midwayjs/core','config'];a11_0x1294=function(){return _0x292451;};return a11_0x1294();}let ApitestService=exports['ApitestService']=class ApitestService{async[a11_0x2dcb5b(0xf5)](_0xd195ae){const _0x12b567=a11_0x2dcb5b,_0x258223=(0x0,getRoutes_1[_0x12b567(0xf9)])(_0xd195ae),_0x583017=[];for(let _0x1f8f2e in _0x258223){for(let _0x1d9f13 in _0x258223[_0x1f8f2e]['routes']){let _0x489ee3=_0x258223[_0x1f8f2e][_0x12b567(0xdc)][_0x1d9f13],_0x283fa3=[];for(let _0x519c13 in _0x489ee3['request']){_0x283fa3[_0x12b567(0xe7)](_0x489ee3['request'][_0x519c13]);}_0x583017[_0x12b567(0xe7)]({'title':_0x258223[_0x1f8f2e][_0x12b567(0xe6)]+':'+_0x489ee3[_0x12b567(0xe6)],'prefix':_0x258223[_0x1f8f2e][_0x12b567(0xbb)],'router':_0x489ee3[_0x12b567(0x104)],'method':_0x489ee3[_0x12b567(0xe1)],'describe':_0x489ee3['description']||'','filepath':_0x258223[_0x1f8f2e][_0x12b567(0xdb)]||'','request':_0x283fa3});}}const _0x465d95=(0x0,path_1['join'])(__dirname,_0x12b567(0xeb));return(0x0,fs_1[_0x12b567(0xdf)])(_0x465d95,{'encoding':_0x12b567(0xed)})[_0x12b567(0xbd)](/__res__/g,_0x12b567(0xb9))[_0x12b567(0xbd)](_0x12b567(0xb5),JSON[_0x12b567(0xfa)](_0x583017))[_0x12b567(0xbd)]('__devices__',JSON[_0x12b567(0xfa)](this['config'][_0x12b567(0xc3)]));}};__decorate([(0x0,core_3[a11_0x2dcb5b(0xb6)])('anncicapi'),__metadata('design:type',Object)],ApitestService[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xd8),void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2[a11_0x2dcb5b(0xd4)])('apitest'),(0x0,core_3[a11_0x2dcb5b(0xdd)])(core_3['ScopeEnum'][a11_0x2dcb5b(0xda)])],ApitestService);let ApitestStaticController=exports[a11_0x2dcb5b(0x107)]=class ApitestStaticController{async[a11_0x2dcb5b(0xc7)](){const _0x2f26d3=a11_0x2dcb5b;if(this['apitest']){const _0x29c24e={'module':![]};return this[_0x2f26d3(0xd5)][_0x2f26d3(0xce)]()&&(_0x29c24e[_0x2f26d3(0xdb)]=!![]),await this[_0x2f26d3(0xec)][_0x2f26d3(0xf5)](_0x29c24e);}return'';}async[a11_0x2dcb5b(0xd2)](_0x539b2c){const _0xc111b1=a11_0x2dcb5b;if(this['apitest']){const _0x507ab7={'module':_0x539b2c};return this[_0xc111b1(0xd5)][_0xc111b1(0xce)]()&&(_0x507ab7[_0xc111b1(0xdb)]=!![]),await this[_0xc111b1(0xec)][_0xc111b1(0xf5)](_0x507ab7);}return'';}async[a11_0x2dcb5b(0xf0)](){const _0x34fa09=a11_0x2dcb5b;if((0x0,path_1['extname'])(this[_0x34fa09(0xe5)][_0x34fa09(0xf8)][_0x34fa09(0x105)])){var _0x4997e1=(0x0,path_1['join'])(__dirname,_0x34fa09(0xcb)+this[_0x34fa09(0xe5)][_0x34fa09(0xf8)][_0x34fa09(0x105)][_0x34fa09(0xbd)](_0x34fa09(0xb9),'/'));if(_0x4997e1[_0x34fa09(0xd3)](_0x4997e1[_0x34fa09(0xe8)]-0xb)!='/index.html'){this['ctx'][_0x34fa09(0xf2)]('cache-control',_0x34fa09(0xfe));if((0x0,path_1[_0x34fa09(0xc4)])(this[_0x34fa09(0xe5)][_0x34fa09(0xf8)][_0x34fa09(0x105)])==_0x34fa09(0xc2))this[_0x34fa09(0xe5)][_0x34fa09(0xf2)](_0x34fa09(0xff),_0x34fa09(0xea));else(0x0,path_1[_0x34fa09(0xc4)])(this['ctx'][_0x34fa09(0xf8)][_0x34fa09(0x105)])==_0x34fa09(0xd6)&&this[_0x34fa09(0xe5)]['set']('content-type',_0x34fa09(0xc0));return(0x0,fs_1[_0x34fa09(0x102)])(_0x4997e1)&&(0x0,fs_1['readFileSync'])(_0x4997e1,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x2dcb5b(0xef)])(),__metadata(a11_0x2dcb5b(0xfb),Object)],ApitestStaticController[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xe5),void 0x0),__decorate([(0x0,core_3[a11_0x2dcb5b(0xef)])(),__metadata(a11_0x2dcb5b(0xfb),core_1[a11_0x2dcb5b(0x106)])],ApitestStaticController['prototype'],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x2dcb5b(0xef)])(),__metadata(a11_0x2dcb5b(0xfb),ApitestService)],ApitestStaticController[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xec),void 0x0),__decorate([(0x0,core_3[a11_0x2dcb5b(0xb6)])(a11_0x2dcb5b(0xbc)),__metadata('design:type',Boolean)],ApitestStaticController['prototype'],a11_0x2dcb5b(0xbc),void 0x0),__decorate([(0x0,core_3[a11_0x2dcb5b(0xb6)])(a11_0x2dcb5b(0xbf)),__metadata('design:type',Object)],ApitestStaticController[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xd8),void 0x0),__decorate([(0x0,core_2[a11_0x2dcb5b(0xf6)])(a11_0x2dcb5b(0xee)),__metadata(a11_0x2dcb5b(0xfb),Function),__metadata(a11_0x2dcb5b(0x108),[]),__metadata(a11_0x2dcb5b(0xe2),Promise)],ApitestStaticController[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xc7),null),__decorate([(0x0,core_2[a11_0x2dcb5b(0xf6)])(a11_0x2dcb5b(0xc6)),__param(0x0,(0x0,core_2[a11_0x2dcb5b(0xba)])('module')),__metadata('design:type',Function),__metadata(a11_0x2dcb5b(0x108),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x2dcb5b(0xcc)],a11_0x2dcb5b(0xd2),null),__decorate([(0x0,core_2['Get'])(a11_0x2dcb5b(0xbe)),__metadata(a11_0x2dcb5b(0xfb),Function),__metadata(a11_0x2dcb5b(0x108),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x2dcb5b(0xcc)],'apiteststatic',null),exports[a11_0x2dcb5b(0x107)]=ApitestStaticController=__decorate([(0x0,core_2[a11_0x2dcb5b(0xf4)])('/'),(0x0,core_3[a11_0x2dcb5b(0xdd)])(core_3[a11_0x2dcb5b(0xc9)][a11_0x2dcb5b(0xc8)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2318e0=a12_0x5850;function a12_0x23b8(){const _0x14b909=['parse','set','\x20is\x20read\x20fail','__esModule','cellCount','columns','App','ExcelService','key','col','export','model','5jqxvsT','frozen','log','value','length','handler','apply','Sheet\x201','2314338yMFgAn','21IlQuLf','Scope','/public/xlsx/','defineProperty','filter','metadata','getCell','existsSync','mkdirSync','isNumber','1295324eXjMIT','Api\x20Excel\x20Error:\x20','decorate','420410sIXSNl','Workbook','koa-send','worksheets','replace','download','(((.+)+)+)+$','values','app','startsWith','findRows','endsWith','object','6525891OVvERF','exceljs','__decorate','82116RJFchS','substring','463887WvzrtJ','eachCell','.xlsx','183544QtLLlf','format','addWorksheet','header','__metadata','addRow','getAppDir','search','function','xlsx','push','ScopeEnum','toString','constructor'];a12_0x23b8=function(){return _0x14b909;};return a12_0x23b8();}(function(_0x25b97a,_0x3a35a5){const _0x1c4d68=a12_0x5850,_0x297e21=_0x25b97a();while(!![]){try{const _0x294766=-parseInt(_0x1c4d68(0x208))/0x1+-parseInt(_0x1c4d68(0x218))/0x2+parseInt(_0x1c4d68(0x21a))/0x3+-parseInt(_0x1c4d68(0x205))/0x4+parseInt(_0x1c4d68(0x1f2))/0x5*(parseInt(_0x1c4d68(0x1fa))/0x6)+parseInt(_0x1c4d68(0x1fb))/0x7*(parseInt(_0x1c4d68(0x21d))/0x8)+parseInt(_0x1c4d68(0x215))/0x9;if(_0x294766===_0x3a35a5)break;else _0x297e21['push'](_0x297e21['shift']());}catch(_0x5a4b9a){_0x297e21['push'](_0x297e21['shift']());}}}(a12_0x23b8,0x86075));const a12_0x29c830=(function(){let _0x23b78f=!![];return function(_0x306f92,_0xb98685){const _0x55200e=_0x23b78f?function(){const _0x19383c=a12_0x5850;if(_0xb98685){const _0x45c461=_0xb98685[_0x19383c(0x1f8)](_0x306f92,arguments);return _0xb98685=null,_0x45c461;}}:function(){};return _0x23b78f=![],_0x55200e;};}()),a12_0x7974cd=a12_0x29c830(this,function(){const _0x30fcd9=a12_0x5850;return a12_0x7974cd[_0x30fcd9(0x229)]()[_0x30fcd9(0x224)](_0x30fcd9(0x20e))['toString']()[_0x30fcd9(0x1e5)](a12_0x7974cd)['search'](_0x30fcd9(0x20e));});a12_0x7974cd();'use strict';var __decorate=this&&this[a12_0x2318e0(0x217)]||function(_0x297d4e,_0x51710a,_0xcf4196,_0x3972dd){const _0x16bd09=a12_0x2318e0;var _0x56e4e9=arguments[_0x16bd09(0x1f6)],_0x2ce8fe=_0x56e4e9<0x3?_0x51710a:_0x3972dd===null?_0x3972dd=Object['getOwnPropertyDescriptor'](_0x51710a,_0xcf4196):_0x3972dd,_0x30269f;if(typeof Reflect===_0x16bd09(0x214)&&typeof Reflect[_0x16bd09(0x207)]===_0x16bd09(0x225))_0x2ce8fe=Reflect[_0x16bd09(0x207)](_0x297d4e,_0x51710a,_0xcf4196,_0x3972dd);else{for(var _0x558e52=_0x297d4e[_0x16bd09(0x1f6)]-0x1;_0x558e52>=0x0;_0x558e52--)if(_0x30269f=_0x297d4e[_0x558e52])_0x2ce8fe=(_0x56e4e9<0x3?_0x30269f(_0x2ce8fe):_0x56e4e9>0x3?_0x30269f(_0x51710a,_0xcf4196,_0x2ce8fe):_0x30269f(_0x51710a,_0xcf4196))||_0x2ce8fe;}return _0x56e4e9>0x3&&_0x2ce8fe&&Object[_0x16bd09(0x1fe)](_0x51710a,_0xcf4196,_0x2ce8fe),_0x2ce8fe;},__metadata=this&&this[a12_0x2318e0(0x221)]||function(_0x59b135,_0x554025){const _0x1cddbe=a12_0x2318e0;if(typeof Reflect===_0x1cddbe(0x214)&&typeof Reflect['metadata']===_0x1cddbe(0x225))return Reflect[_0x1cddbe(0x200)](_0x59b135,_0x554025);};Object[a12_0x2318e0(0x1fe)](exports,a12_0x2318e0(0x1e9),{'value':!![]}),exports[a12_0x2318e0(0x1ed)]=void 0x0;function a12_0x5850(_0x47be5e,_0xbb7fee){const _0x15e0bc=a12_0x23b8();return a12_0x5850=function(_0x7974cd,_0x29c830){_0x7974cd=_0x7974cd-0x1e5;let _0x23b882=_0x15e0bc[_0x7974cd];return _0x23b882;},a12_0x5850(_0x47be5e,_0xbb7fee);}const fs=require('fs'),exceljs=require(a12_0x2318e0(0x216)),koasend=require(a12_0x2318e0(0x20a)),core_1=require('@midwayjs/core');let ExcelService=exports['ExcelService']=class ExcelService{async[a12_0x2318e0(0x1e6)](_0x103d08,_0x1460e8,_0x4ea0de=[0x0]){const _0x4e6008=a12_0x2318e0;var _0x255662,_0x41b616;const _0x3dc3d0=new exceljs[(_0x4e6008(0x209))](),_0x28b0dd=[];let _0x4a22c4=_0x103d08[_0x4e6008(0x20c)](/(\\|\/)/g,'/')[_0x4e6008(0x20c)](/\/{2,}/g,'/');!(_0x4a22c4===null||_0x4a22c4===void 0x0?void 0x0:_0x4a22c4[_0x4e6008(0x211)]('/'))&&(_0x4a22c4=this['app']['getAppDir']()+'/'+_0x4a22c4);try{await _0x3dc3d0[_0x4e6008(0x226)]['readFile'](_0x4a22c4);}catch(_0x3826b0){return console[_0x4e6008(0x1f4)](_0x4e6008(0x206)+_0x4a22c4+_0x4e6008(0x1e8)),_0x28b0dd;}for(const _0xf4fce9 of _0x4ea0de){const _0x47c195=lodash[_0x4e6008(0x204)](_0xf4fce9)?((_0x255662=_0x3dc3d0[_0x4e6008(0x20b)])===null||_0x255662===void 0x0?void 0x0:_0x255662[_0xf4fce9])||undefined:_0x3dc3d0['getWorksheet'](_0xf4fce9);if(_0x47c195){var _0x5eaeca=0x1;const _0xb74dfe=_0x47c195['getRow'](0x1),_0x3404cb=await new Promise(_0xd8a9e6=>{const _0x66e9a0=_0x4e6008,_0x563ecc={};_0xb74dfe[_0x66e9a0(0x21b)]((_0x31da02,_0x51f93e)=>{const _0x1d3f02=_0x66e9a0;for(const _0x2736d5 of _0x1460e8){if(_0x31da02[_0x1d3f02(0x1f5)]==_0x2736d5['header'])_0x5eaeca=0x2,_0x563ecc[_0x2736d5['key']]={'header':_0x31da02[_0x1d3f02(0x1ef)],'handler':_0x2736d5['handler']};else{if(!_0x563ecc[_0x2736d5['key']])try{const _0x4a0d8a=_0xb74dfe&&_0xb74dfe[_0x1d3f02(0x201)](_0x2736d5[_0x1d3f02(0x220)]);_0x4a0d8a&&(_0x563ecc[_0x2736d5[_0x1d3f02(0x1ee)]]={'header':_0x4a0d8a['col'],'handler':_0x2736d5[_0x1d3f02(0x1f7)]});}catch{}}}_0xb74dfe[_0x1d3f02(0x1ea)]==_0x51f93e&&_0xd8a9e6(_0x563ecc);});});_0x46de32:for(const _0x132bca of _0x47c195[_0x4e6008(0x212)](_0x5eaeca,_0x47c195['rowCount'])){if(typeof(_0x132bca===null||_0x132bca===void 0x0?void 0x0:_0x132bca[_0x4e6008(0x201)])!=_0x4e6008(0x225))continue _0x46de32;const _0x41cbe2={};_0x5074aa:for(const _0xc888 in _0x3404cb){if(_0x3404cb[_0xc888]['header']){const _0x477c82=_0x132bca['getCell'](_0x3404cb[_0xc888][_0x4e6008(0x220)]);if(!_0x477c82)continue _0x5074aa;try{_0x477c82[_0x4e6008(0x229)]();}catch(_0x4ee4b0){_0x477c82[_0x4e6008(0x229)]=()=>{const _0x5cb91e=_0x4e6008;var _0x23f882;return''+(((_0x23f882=_0x477c82===null||_0x477c82===void 0x0?void 0x0:_0x477c82[_0x5cb91e(0x1f1)])===null||_0x23f882===void 0x0?void 0x0:_0x23f882[_0x5cb91e(0x1f5)])||'');};}typeof((_0x41b616=_0x3404cb[_0xc888])===null||_0x41b616===void 0x0?void 0x0:_0x41b616[_0x4e6008(0x1f7)])==_0x4e6008(0x225)?_0x41cbe2[_0xc888]=await _0x3404cb[_0xc888][_0x4e6008(0x1f7)](lodash[_0x4e6008(0x1e7)]({},_0xc888,(_0x477c82===null||_0x477c82===void 0x0?void 0x0:_0x477c82[_0x4e6008(0x229)]())||''),_0x477c82[_0x4e6008(0x1f1)]):_0x41cbe2[_0xc888]=(_0x477c82===null||_0x477c82===void 0x0?void 0x0:_0x477c82['toString']())||'';}}Object['keys'](_0x41cbe2)[_0x4e6008(0x1f6)]>0x0&&Object[_0x4e6008(0x20f)](_0x41cbe2)[_0x4e6008(0x1ff)](_0x56e9f8=>_0x56e9f8!='')[_0x4e6008(0x1f6)]>0x0&&_0x28b0dd[_0x4e6008(0x227)](_0x41cbe2);}}}return _0x28b0dd;}async[a12_0x2318e0(0x1f0)](_0x43cbbe,_0x59ac9d,_0x5b9b3f,_0x562cd0,_0x1e0183){const _0x305395=a12_0x2318e0;var _0x52e249,_0x95851c;const _0x1b55bc=new exceljs[(_0x305395(0x209))](),_0x3f78cf={},_0x116e44=[],_0x23a693=_0x1b55bc[_0x305395(0x21f)](_0x305395(0x1f9),{'views':[{'state':_0x305395(0x1f3),'ySplit':0x1}]});for(const _0x44c238 in _0x59ac9d){_0x3f78cf[_0x59ac9d[_0x44c238]['key']]=_0x59ac9d[_0x44c238][_0x305395(0x220)],_0x116e44['push']({'header':_0x59ac9d[_0x44c238][_0x305395(0x220)],'key':(_0x52e249=_0x59ac9d[_0x44c238])===null||_0x52e249===void 0x0?void 0x0:_0x52e249[_0x305395(0x1ee)]['replace'](/\./g,'_')});}_0x23a693[_0x305395(0x1eb)]=_0x116e44;for(const _0x384c01 in _0x5b9b3f){const _0x23d7ae=_0x5b9b3f[_0x384c01],_0x3f8f34=_0x23a693[_0x305395(0x222)]({});for(let _0xbde095 in _0x59ac9d){const _0x96dfd9=_0x59ac9d[_0xbde095][_0x305395(0x1ee)][_0x305395(0x20c)](/\./g,'_'),_0x21eb82=_0x23a693['getColumn'](_0x96dfd9),_0x19004d=_0x3f8f34===null||_0x3f8f34===void 0x0?void 0x0:_0x3f8f34[_0x305395(0x201)](_0x96dfd9);typeof((_0x95851c=_0x59ac9d[_0xbde095])===null||_0x95851c===void 0x0?void 0x0:_0x95851c[_0x305395(0x1f7)])=='function'?_0x19004d[_0x305395(0x1f5)]=await _0x59ac9d[_0xbde095][_0x305395(0x1f7)](_0x23d7ae,{'row':_0x3f8f34,'col':_0x21eb82,'cell':_0x19004d,'sheet':_0x23a693})||'':_0x19004d[_0x305395(0x1f5)]=lodash['get'](_0x23d7ae,_0x59ac9d[_0xbde095][_0x305395(0x1ee)],'');}}typeof _0x1e0183=='function'&&await _0x1e0183({'workbook':_0x1b55bc,'worksheet':_0x23a693});let _0x215ed8='';const _0x24951f=_0x43cbbe+'-'+lodash['random'](0x186a0,0xf423f)+_0x305395(0x21c);if(_0x562cd0&&_0x562cd0[_0x305395(0x211)]('/'))_0x215ed8=''+_0x562cd0;else _0x562cd0&&!_0x562cd0[_0x305395(0x211)]('/')&&!_0x562cd0[_0x305395(0x211)]('\x5c')?_0x215ed8=this[_0x305395(0x210)][_0x305395(0x223)]()+'/'+_0x562cd0:_0x215ed8=this[_0x305395(0x210)][_0x305395(0x223)]()+_0x305395(0x1fd)+dayjs()[_0x305395(0x21e)]('YYYY/MM/DD');return(_0x215ed8[_0x305395(0x213)]('/')||_0x215ed8[_0x305395(0x213)]('\x5c'))&&(_0x215ed8=_0x215ed8[_0x305395(0x219)](0x0,_0x215ed8[_0x305395(0x1f6)]-0x1)),_0x215ed8=_0x215ed8[_0x305395(0x20c)](/(\\|\/)/g,'/')[_0x305395(0x20c)](/\/{2,}/g,'/'),!fs[_0x305395(0x202)](_0x215ed8)&&fs[_0x305395(0x203)](_0x215ed8,{'recursive':!![]}),await _0x1b55bc[_0x305395(0x226)]['writeFile']((_0x215ed8+'/'+_0x24951f)[_0x305395(0x20c)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x24951f,'filepath':(_0x215ed8[_0x305395(0x219)]((''+this[_0x305395(0x210)]['getAppDir']())[_0x305395(0x1f6)])+'/'+_0x24951f)['replace'](/(\\|\/)/g,'/')[_0x305395(0x20c)](/\/{2,}/g,'/')};}async[a12_0x2318e0(0x20d)](_0xc1c26f,_0x3cc727){return await koasend(_0xc1c26f,''+_0x3cc727);}};__decorate([(0x0,core_1[a12_0x2318e0(0x1ec)])(),__metadata('design:type',Object)],ExcelService['prototype'],'app',void 0x0),exports[a12_0x2318e0(0x1ed)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a12_0x2318e0(0x1fc)])(core_1[a12_0x2318e0(0x228)]['Singleton'])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x4a83ec=a13_0x18ea;(function(_0x4b9adc,_0xf37f8a){var _0x3236bf=a13_0x18ea,_0x31be33=_0x4b9adc();while(!![]){try{var _0x1aa018=-parseInt(_0x3236bf(0x143))/0x1*(-parseInt(_0x3236bf(0x14a))/0x2)+parseInt(_0x3236bf(0x144))/0x3+parseInt(_0x3236bf(0x152))/0x4+-parseInt(_0x3236bf(0x150))/0x5*(parseInt(_0x3236bf(0x141))/0x6)+-parseInt(_0x3236bf(0x13f))/0x7*(-parseInt(_0x3236bf(0x149))/0x8)+parseInt(_0x3236bf(0x14d))/0x9*(-parseInt(_0x3236bf(0x13e))/0xa)+parseInt(_0x3236bf(0x13c))/0xb*(-parseInt(_0x3236bf(0x146))/0xc);if(_0x1aa018===_0xf37f8a)break;else _0x31be33['push'](_0x31be33['shift']());}catch(_0x2c4ca1){_0x31be33['push'](_0x31be33['shift']());}}}(a13_0x1b32,0xeb57e));function a13_0x18ea(_0x1b995b,_0x58a1c2){var _0x449a01=a13_0x1b32();return a13_0x18ea=function(_0x1f155a,_0x2fe2d1){_0x1f155a=_0x1f155a-0x13c;var _0x1b3232=_0x449a01[_0x1f155a];return _0x1b3232;},a13_0x18ea(_0x1b995b,_0x58a1c2);}var a13_0x2fe2d1=(function(){var _0x1fa569=!![];return function(_0x46e3b8,_0x5a554b){var _0x5dfdc3=_0x1fa569?function(){var _0x5b714b=a13_0x18ea;if(_0x5a554b){var _0x16109e=_0x5a554b[_0x5b714b(0x142)](_0x46e3b8,arguments);return _0x5a554b=null,_0x16109e;}}:function(){};return _0x1fa569=![],_0x5dfdc3;};}()),a13_0x1f155a=a13_0x2fe2d1(this,function(){var _0x294a3c=a13_0x18ea;return a13_0x1f155a[_0x294a3c(0x151)]()[_0x294a3c(0x147)](_0x294a3c(0x14c))[_0x294a3c(0x151)]()[_0x294a3c(0x14b)](a13_0x1f155a)[_0x294a3c(0x147)](_0x294a3c(0x14c));});function a13_0x1b32(){var _0x44e4e5=['45DtNnZz','AppsConfigTmp','ACTION_ROUTE_KEY','25lLjfAF','toString','113932jnNCAp','11brqgjn','defineProperty','979690DYAGPR','8079155uzOjHs','__esModule','999714bIxttV','apply','1262075knqEkq','5716290NIjzjz','APPSCONFIG_KEY','24758964taVVUq','search','ACTION_KEY','8RlwxVQ','2HmlOZA','constructor','(((.+)+)+)+$'];a13_0x1b32=function(){return _0x44e4e5;};return a13_0x1b32();}a13_0x1f155a();'use strict';Object[a13_0x4a83ec(0x13d)](exports,a13_0x4a83ec(0x140),{'value':!![]}),exports[a13_0x4a83ec(0x14e)]=exports[a13_0x4a83ec(0x145)]=exports[a13_0x4a83ec(0x14f)]=exports[a13_0x4a83ec(0x148)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a13_0x4a83ec(0x14f)]='anncic-api:action:route',exports[a13_0x4a83ec(0x145)]='anncic-api:apps:config';class AppsConfigTmp{}exports[a13_0x4a83ec(0x14e)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a14_0x2032(){var _0x2747a5=['length','search','integer','1894145bzgdHt','defineProperty','894qZlmDT','_isreverse','117ePlQKq','4564rfGJia','3728ZmfENt','Rule','@anncic-api/validator','13YWsIlO','constructor','number','min','prototype','getOwnPropertyDescriptor','4ZzcDer','decorate','PageDTO','__decorate','12724248wMFhfC','toString','valid','function','metadata','1206dSzORE','40584lbnHAk','229030wwdDxg','trim','string','260puipMd','(((.+)+)+)+$','_page','__metadata','__esModule','151245qpPCVO','是否倒序','_size','RuleType','design:type'];a14_0x2032=function(){return _0x2747a5;};return a14_0x2032();}var a14_0x59d0e3=a14_0xd082;(function(_0x508bfe,_0x4cbf76){var _0x55c5e8=a14_0xd082,_0x2bd2cb=_0x508bfe();while(!![]){try{var _0x5d57a0=-parseInt(_0x55c5e8(0xc0))/0x1*(parseInt(_0x55c5e8(0xd6))/0x2)+parseInt(_0x55c5e8(0xb6))/0x3*(-parseInt(_0x55c5e8(0xcd))/0x4)+-parseInt(_0x55c5e8(0xb1))/0x5*(parseInt(_0x55c5e8(0xd7))/0x6)+-parseInt(_0x55c5e8(0xc3))/0x7*(-parseInt(_0x55c5e8(0xc4))/0x8)+parseInt(_0x55c5e8(0xc2))/0x9*(-parseInt(_0x55c5e8(0xd8))/0xa)+parseInt(_0x55c5e8(0xbe))/0xb+-parseInt(_0x55c5e8(0xd1))/0xc*(-parseInt(_0x55c5e8(0xc7))/0xd);if(_0x5d57a0===_0x4cbf76)break;else _0x2bd2cb['push'](_0x2bd2cb['shift']());}catch(_0x2b9bb7){_0x2bd2cb['push'](_0x2bd2cb['shift']());}}}(a14_0x2032,0x489c9));function a14_0xd082(_0x392543,_0x514e63){var _0x4e8f34=a14_0x2032();return a14_0xd082=function(_0x39fb1d,_0x417745){_0x39fb1d=_0x39fb1d-0xaf;var _0x20328f=_0x4e8f34[_0x39fb1d];return _0x20328f;},a14_0xd082(_0x392543,_0x514e63);}var a14_0x417745=(function(){var _0x348d85=!![];return function(_0x4c7384,_0x57bb7c){var _0x19cec5=_0x348d85?function(){if(_0x57bb7c){var _0x340bcf=_0x57bb7c['apply'](_0x4c7384,arguments);return _0x57bb7c=null,_0x340bcf;}}:function(){};return _0x348d85=![],_0x19cec5;};}()),a14_0x39fb1d=a14_0x417745(this,function(){var _0x3d212c=a14_0xd082;return a14_0x39fb1d['toString']()['search']('(((.+)+)+)+$')[_0x3d212c(0xd2)]()[_0x3d212c(0xc8)](a14_0x39fb1d)[_0x3d212c(0xbc)](_0x3d212c(0xb2));});a14_0x39fb1d();'use strict';var __decorate=this&&this[a14_0x59d0e3(0xd0)]||function(_0xad2013,_0x52af88,_0xa639be,_0x2aa647){var _0x48c776=a14_0x59d0e3,_0x40cc5f=arguments[_0x48c776(0xbb)],_0x4c8f62=_0x40cc5f<0x3?_0x52af88:_0x2aa647===null?_0x2aa647=Object[_0x48c776(0xcc)](_0x52af88,_0xa639be):_0x2aa647,_0x31d408;if(typeof Reflect==='object'&&typeof Reflect[_0x48c776(0xce)]===_0x48c776(0xd4))_0x4c8f62=Reflect[_0x48c776(0xce)](_0xad2013,_0x52af88,_0xa639be,_0x2aa647);else{for(var _0x81a010=_0xad2013[_0x48c776(0xbb)]-0x1;_0x81a010>=0x0;_0x81a010--)if(_0x31d408=_0xad2013[_0x81a010])_0x4c8f62=(_0x40cc5f<0x3?_0x31d408(_0x4c8f62):_0x40cc5f>0x3?_0x31d408(_0x52af88,_0xa639be,_0x4c8f62):_0x31d408(_0x52af88,_0xa639be))||_0x4c8f62;}return _0x40cc5f>0x3&&_0x4c8f62&&Object[_0x48c776(0xbf)](_0x52af88,_0xa639be,_0x4c8f62),_0x4c8f62;},__metadata=this&&this[a14_0x59d0e3(0xb4)]||function(_0x3d3092,_0x498efd){var _0x25cfee=a14_0x59d0e3;if(typeof Reflect==='object'&&typeof Reflect[_0x25cfee(0xd5)]===_0x25cfee(0xd4))return Reflect[_0x25cfee(0xd5)](_0x3d3092,_0x498efd);};Object[a14_0x59d0e3(0xbf)](exports,a14_0x59d0e3(0xb5),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a14_0x59d0e3(0xc6));class PageDTO{}exports[a14_0x59d0e3(0xcf)]=PageDTO,__decorate([(0x0,validator_1[a14_0x59d0e3(0xc5)])('分页',validator_1[a14_0x59d0e3(0xb9)]['number']()[a14_0x59d0e3(0xbd)]()[a14_0x59d0e3(0xca)](0x1),'第一页为1,第二页为2'),__metadata(a14_0x59d0e3(0xba),Number)],PageDTO[a14_0x59d0e3(0xcb)],a14_0x59d0e3(0xb3),void 0x0),__decorate([(0x0,validator_1[a14_0x59d0e3(0xc5)])('分页数量',validator_1['RuleType'][a14_0x59d0e3(0xc9)]()['integer']()['min'](0x1)),__metadata(a14_0x59d0e3(0xba),Number)],PageDTO[a14_0x59d0e3(0xcb)],a14_0x59d0e3(0xb8),void 0x0),__decorate([(0x0,validator_1[a14_0x59d0e3(0xc5)])('排序方式',validator_1[a14_0x59d0e3(0xb9)][a14_0x59d0e3(0xb0)]()[a14_0x59d0e3(0xaf)]()),__metadata('design:type',String)],PageDTO[a14_0x59d0e3(0xcb)],'_order',void 0x0),__decorate([(0x0,validator_1[a14_0x59d0e3(0xc5)])(a14_0x59d0e3(0xb7),validator_1['RuleType'][a14_0x59d0e3(0xc9)]()[a14_0x59d0e3(0xbd)]()[a14_0x59d0e3(0xd3)](0x0,0x1),'1:是;0:否'),__metadata(a14_0x59d0e3(0xba),Number)],PageDTO[a14_0x59d0e3(0xcb)],a14_0x59d0e3(0xc1),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x44cdfa=a15_0x2c5c;(function(_0x2cec4e,_0x1515f0){var _0x2c02de=a15_0x2c5c,_0xf81e08=_0x2cec4e();while(!![]){try{var _0x3eb3cf=-parseInt(_0x2c02de(0x119))/0x1*(parseInt(_0x2c02de(0x113))/0x2)+-parseInt(_0x2c02de(0x117))/0x3*(-parseInt(_0x2c02de(0x120))/0x4)+-parseInt(_0x2c02de(0x122))/0x5*(-parseInt(_0x2c02de(0x110))/0x6)+-parseInt(_0x2c02de(0x11e))/0x7*(-parseInt(_0x2c02de(0x11d))/0x8)+parseInt(_0x2c02de(0x11f))/0x9+parseInt(_0x2c02de(0x125))/0xa+parseInt(_0x2c02de(0x121))/0xb*(-parseInt(_0x2c02de(0x118))/0xc);if(_0x3eb3cf===_0x1515f0)break;else _0xf81e08['push'](_0xf81e08['shift']());}catch(_0x5a46f2){_0xf81e08['push'](_0xf81e08['shift']());}}}(a15_0x40cb,0x1e6c6));function a15_0x40cb(){var _0x1945eb=['InterceptTargetTmp','2407240ejUTUB','414vjxlTs','(((.+)+)+)+$','anncic-api:intercept','118FxgZIj','__esModule','INTERCEPT_KEY','defineProperty','8703RYWCMg','36hETzLx','2201XPfPbr','constructor','apply','search','760GgYZSE','15372kBIRZz','1786509aNVqHH','108nPbYbd','2497418XZROUT','15175qDQMop','toString'];a15_0x40cb=function(){return _0x1945eb;};return a15_0x40cb();}var a15_0x3070cb=(function(){var _0xf535b2=!![];return function(_0x17ca94,_0x216d2c){var _0x390cd=_0xf535b2?function(){var _0x1f0748=a15_0x2c5c;if(_0x216d2c){var _0x5194a5=_0x216d2c[_0x1f0748(0x11b)](_0x17ca94,arguments);return _0x216d2c=null,_0x5194a5;}}:function(){};return _0xf535b2=![],_0x390cd;};}()),a15_0x431376=a15_0x3070cb(this,function(){var _0x3e6b45=a15_0x2c5c;return a15_0x431376[_0x3e6b45(0x123)]()[_0x3e6b45(0x11c)](_0x3e6b45(0x111))[_0x3e6b45(0x123)]()[_0x3e6b45(0x11a)](a15_0x431376)[_0x3e6b45(0x11c)]('(((.+)+)+)+$');});a15_0x431376();'use strict';Object[a15_0x44cdfa(0x116)](exports,a15_0x44cdfa(0x114),{'value':!![]}),exports['InterceptTargetTmp']=exports[a15_0x44cdfa(0x115)]=void 0x0,exports[a15_0x44cdfa(0x115)]=a15_0x44cdfa(0x112);class InterceptTargetTmp{}function a15_0x2c5c(_0x382e3f,_0x3de230){var _0x84dce=a15_0x40cb();return a15_0x2c5c=function(_0x431376,_0x3070cb){_0x431376=_0x431376-0x110;var _0x40cbee=_0x84dce[_0x431376];return _0x40cbee;},a15_0x2c5c(_0x382e3f,_0x3de230);}exports[a15_0x44cdfa(0x124)]=InterceptTargetTmp;
|
package/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
/// <reference types="@anncic-api/core" />
|
|
2
2
|
export * from './dist/index';
|
|
3
|
+
import { IMidwayApplication } from '@midwayjs/core';
|
|
3
4
|
|
|
4
5
|
declare module '@midwayjs/koa/dist/interface' {
|
|
5
6
|
interface Context {
|
|
6
|
-
app:
|
|
7
|
+
app: IMidwayApplication<Context>;
|
|
7
8
|
readonly hosturl: string;
|
|
9
|
+
readonly _matchedRoute?: string;
|
|
10
|
+
readonly _matchedRouteMeta?: {
|
|
11
|
+
module: string;
|
|
12
|
+
routePath: string;
|
|
13
|
+
routeName: string;
|
|
14
|
+
routeMethod: 'get' | 'post';
|
|
15
|
+
routeDescription: string;
|
|
16
|
+
filemethod: string;
|
|
17
|
+
}
|
|
8
18
|
|
|
9
19
|
koasend(filepath: string, filename?: string): Promise<void>;
|
|
10
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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.
|
|
21
|
-
"@anncic-api/core": "^3.
|
|
22
|
-
"@anncic-api/event": "^3.
|
|
23
|
-
"@anncic-api/typeorm": "^3.
|
|
24
|
-
"@anncic-api/validator": "^3.
|
|
20
|
+
"@anncic-api/cache": "^3.3.0",
|
|
21
|
+
"@anncic-api/core": "^3.3.0",
|
|
22
|
+
"@anncic-api/event": "^3.3.0",
|
|
23
|
+
"@anncic-api/typeorm": "^3.3.0",
|
|
24
|
+
"@anncic-api/validator": "^3.3.0",
|
|
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.
|
|
29
|
+
"anncic-apihelper": "^3.3.0",
|
|
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": "a8ecf85526777862e2e50fcfadaa36e6edde0d3c"
|
|
39
39
|
}
|