anncic-api 3.3.5 → 3.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x471feb=a0_0x2520;(function(_0x36d24c,_0x2cedf3){var _0x4ba21b=a0_0x2520,_0x5274ab=_0x36d24c();while(!![]){try{var _0x476fd7=parseInt(_0x4ba21b(0x1be))/0x1*(-parseInt(_0x4ba21b(0x1c2))/0x2)+-parseInt(_0x4ba21b(0x1c9))/0x3*(-parseInt(_0x4ba21b(0x1d2))/0x4)+parseInt(_0x4ba21b(0x1d3))/0x5+parseInt(_0x4ba21b(0x1ce))/0x6*(parseInt(_0x4ba21b(0x1c0))/0x7)+-parseInt(_0x4ba21b(0x1bd))/0x8*(-parseInt(_0x4ba21b(0x1c4))/0x9)+parseInt(_0x4ba21b(0x1d0))/0xa*(-parseInt(_0x4ba21b(0x1cf))/0xb)+parseInt(_0x4ba21b(0x1c3))/0xc*(-parseInt(_0x4ba21b(0x1bb))/0xd);if(_0x476fd7===_0x2cedf3)break;else _0x5274ab['push'](_0x5274ab['shift']());}catch(_0x3952b8){_0x5274ab['push'](_0x5274ab['shift']());}}}(a0_0x3f5b,0xeb88c));var a0_0x28e251=(function(){var _0x40e612=!![];return function(_0x233256,_0x39d7a3){var _0x5b6cc7=_0x40e612?function(){var _0x28bd08=a0_0x2520;if(_0x39d7a3){var _0x5a115d=_0x39d7a3[_0x28bd08(0x1bf)](_0x233256,arguments);return _0x39d7a3=null,_0x5a115d;}}:function(){};return _0x40e612=![],_0x5b6cc7;};}()),a0_0xc976a1=a0_0x28e251(this,function(){var _0x47fa2f=a0_0x2520;return a0_0xc976a1['toString']()[_0x47fa2f(0x1c7)](_0x47fa2f(0x1ca))[_0x47fa2f(0x1c1)]()['constructor'](a0_0xc976a1)[_0x47fa2f(0x1c7)](_0x47fa2f(0x1ca));});a0_0xc976a1();function a0_0x2520(_0x7302c5,_0x282221){var _0x253c61=a0_0x3f5b();return a0_0x2520=function(_0xc976a1,_0x28e251){_0xc976a1=_0xc976a1-0x1bb;var _0x3f5b27=_0x253c61[_0xc976a1];return _0x3f5b27;},a0_0x2520(_0x7302c5,_0x282221);}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x471feb(0x1cb)]=_0x44dd5a=>{var _0xee80f1=a0_0x471feb;return{'apitest':!![],'keys':_0x44dd5a[_0xee80f1(0x1bc)],'anncicapi':{'requestKey':'_token','password':_0xee80f1(0x1d1),'devices':{'DEFAULT':{'secret':'dhauo1234420123gg3234901','checkcode':_0xee80f1(0x1cd)}}},'bodyParser':{'enableTypes':[_0xee80f1(0x1c6),'form','text','xml'],'formLimit':_0xee80f1(0x1c8),'jsonLimit':'20mb','textLimit':_0xee80f1(0x1c8),'xmlLimit':'20mb','enable':!![]},'upload':{'tmpdir':_0x44dd5a[_0xee80f1(0x1c5)]+_0xee80f1(0x1cc),'cleanTimeout':0x5265c00}};};function a0_0x3f5b(){var _0x2b77dd=['(((.+)+)+)+$','default','/runtime/.upload','dhauo1234420123gg3234901','6ZHpJoP','206657vQiRjj','290XPviJS','zhiulanuiy7892387985hnoi','2981248eiZWNj','6723980SUATEN','13FhyunV','name','872mihCgd','41086Gfdltt','apply','12818617ANjApH','toString','66OReHuN','32543604ybHMlg','136737vELGWb','appDir','json','search','20mb','3vookNc'];a0_0x3f5b=function(){return _0x2b77dd;};return a0_0x3f5b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a1_0x516872=a1_0x520c;(function(_0x418539,_0x16e3aa){var _0xe3cefd=a1_0x520c,_0x16d682=_0x418539();while(!![]){try{var _0x4a8b2f=-parseInt(_0xe3cefd(0x1ba))/0x1*(parseInt(_0xe3cefd(0x1c5))/0x2)+-parseInt(_0xe3cefd(0x1c4))/0x3*(parseInt(_0xe3cefd(0x1c1))/0x4)+parseInt(_0xe3cefd(0x1c7))/0x5+-parseInt(_0xe3cefd(0x1bc))/0x6+-parseInt(_0xe3cefd(0x1c0))/0x7+parseInt(_0xe3cefd(0x1c6))/0x8*(-parseInt(_0xe3cefd(0x1b8))/0x9)+parseInt(_0xe3cefd(0x1be))/0xa;if(_0x4a8b2f===_0x16e3aa)break;else _0x16d682['push'](_0x16d682['shift']());}catch(_0x2ff72b){_0x16d682['push'](_0x16d682['shift']());}}}(a1_0x4e45,0x22bb8));function a1_0x4e45(){var _0x16f853=['172697NrZmcY','20FwCXKB','constructor','search','38451dvRuCH','4xqPPHn','8gnOjqW','138800VoNbTk','1108494soVdzN','__esModule','47648MAVKiZ','(((.+)+)+)+$','924138IkHzcw','default','5757450rNLZsQ','toString'];a1_0x4e45=function(){return _0x16f853;};return a1_0x4e45();}var a1_0x470268=(function(){var _0x2c048b=!![];return function(_0x58ad9e,_0x2e7800){var _0x33d4df=_0x2c048b?function(){if(_0x2e7800){var _0x1a88d7=_0x2e7800['apply'](_0x58ad9e,arguments);return _0x2e7800=null,_0x1a88d7;}}:function(){};return _0x2c048b=![],_0x33d4df;};}()),a1_0x1e16e9=a1_0x470268(this,function(){var _0x4843e9=a1_0x520c;return a1_0x1e16e9[_0x4843e9(0x1bf)]()[_0x4843e9(0x1c3)](_0x4843e9(0x1bb))['toString']()[_0x4843e9(0x1c2)](a1_0x1e16e9)[_0x4843e9(0x1c3)](_0x4843e9(0x1bb));});a1_0x1e16e9();function a1_0x520c(_0x3b1c56,_0x547ed4){var _0x42195f=a1_0x4e45();return a1_0x520c=function(_0x1e16e9,_0x470268){_0x1e16e9=_0x1e16e9-0x1b8;var _0x4e4527=_0x42195f[_0x1e16e9];return _0x4e4527;},a1_0x520c(_0x3b1c56,_0x547ed4);}'use strict';Object['defineProperty'](exports,a1_0x516872(0x1b9),{'value':!![]}),exports[a1_0x516872(0x1bd)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x4e48ce=a2_0x421d;(function(_0x17210a,_0x4feabc){const _0x377d3f=a2_0x421d,_0x55805e=_0x17210a();while(!![]){try{const _0x1f8918=-parseInt(_0x377d3f(0x1f1))/0x1*(-parseInt(_0x377d3f(0x214))/0x2)+parseInt(_0x377d3f(0x1ea))/0x3+parseInt(_0x377d3f(0x197))/0x4*(-parseInt(_0x377d3f(0x1d3))/0x5)+parseInt(_0x377d3f(0x217))/0x6+-parseInt(_0x377d3f(0x1a6))/0x7*(-parseInt(_0x377d3f(0x196))/0x8)+-parseInt(_0x377d3f(0x18b))/0x9*(parseInt(_0x377d3f(0x1b8))/0xa)+parseInt(_0x377d3f(0x1bd))/0xb*(-parseInt(_0x377d3f(0x207))/0xc);if(_0x1f8918===_0x4feabc)break;else _0x55805e['push'](_0x55805e['shift']());}catch(_0x1ab042){_0x55805e['push'](_0x55805e['shift']());}}}(a2_0x839d,0xe3fbc));const a2_0x56a055=(function(){let _0x236c14=!![];return function(_0x4f12c7,_0x2ffadf){const _0x1a10d8=_0x236c14?function(){const _0xe976e6=a2_0x421d;if(_0x2ffadf){const _0x203563=_0x2ffadf[_0xe976e6(0x1c6)](_0x4f12c7,arguments);return _0x2ffadf=null,_0x203563;}}:function(){};return _0x236c14=![],_0x1a10d8;};}()),a2_0x42862b=a2_0x56a055(this,function(){const _0x360e8b=a2_0x421d;return a2_0x42862b[_0x360e8b(0x1c2)]()[_0x360e8b(0x188)](_0x360e8b(0x205))['toString']()['constructor'](a2_0x42862b)['search'](_0x360e8b(0x205));});a2_0x42862b();'use strict';var __decorate=this&&this[a2_0x4e48ce(0x199)]||function(_0x569075,_0x4b5d1c,_0x7750e1,_0x5ce867){const _0xee30b3=a2_0x4e48ce;var _0x2bae15=arguments['length'],_0x147d76=_0x2bae15<0x3?_0x4b5d1c:_0x5ce867===null?_0x5ce867=Object[_0xee30b3(0x1a7)](_0x4b5d1c,_0x7750e1):_0x5ce867,_0x23c093;if(typeof Reflect==='object'&&typeof Reflect[_0xee30b3(0x1b4)]===_0xee30b3(0x1bf))_0x147d76=Reflect[_0xee30b3(0x1b4)](_0x569075,_0x4b5d1c,_0x7750e1,_0x5ce867);else{for(var _0x10cc3b=_0x569075[_0xee30b3(0x21b)]-0x1;_0x10cc3b>=0x0;_0x10cc3b--)if(_0x23c093=_0x569075[_0x10cc3b])_0x147d76=(_0x2bae15<0x3?_0x23c093(_0x147d76):_0x2bae15>0x3?_0x23c093(_0x4b5d1c,_0x7750e1,_0x147d76):_0x23c093(_0x4b5d1c,_0x7750e1))||_0x147d76;}return _0x2bae15>0x3&&_0x147d76&&Object['defineProperty'](_0x4b5d1c,_0x7750e1,_0x147d76),_0x147d76;},__metadata=this&&this[a2_0x4e48ce(0x202)]||function(_0x15e9c3,_0x32f3a1){const _0x3b5401=a2_0x4e48ce;if(typeof Reflect===_0x3b5401(0x213)&&typeof Reflect[_0x3b5401(0x1fd)]===_0x3b5401(0x1bf))return Reflect['metadata'](_0x15e9c3,_0x32f3a1);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4e48ce(0x1e0)]=void 0x0;const core_1=require(a2_0x4e48ce(0x1d1)),core_2=require(a2_0x4e48ce(0x1d1)),ApiError_1=require(a2_0x4e48ce(0x1ae)),ApiService_1=require(a2_0x4e48ce(0x211)),intercept_1=require(a2_0x4e48ce(0x212)),action_1=require(a2_0x4e48ce(0x1be)),fs=require('fs'),koasend=require(a2_0x4e48ce(0x1c5)),koa=require(a2_0x4e48ce(0x1fe)),upload=require(a2_0x4e48ce(0x193)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x4e48ce(0x1d7)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x4e48ce(0x1ce)),anncic=require(a2_0x4e48ce(0x1b2)),anncicCache=require(a2_0x4e48ce(0x19b)),anncicEvent=require(a2_0x4e48ce(0x1f6)),anncicTypeorm=require(a2_0x4e48ce(0x19f)),anncicValidator=require(a2_0x4e48ce(0x1d4)),anncicHelper=require(a2_0x4e48ce(0x1b0));function a2_0x421d(_0x5cb041,_0x36917c){const _0x56095d=a2_0x839d();return a2_0x421d=function(_0x42862b,_0x56a055){_0x42862b=_0x42862b-0x186;let _0x839dc6=_0x56095d[_0x42862b];return _0x839dc6;},a2_0x421d(_0x5cb041,_0x36917c);}let CustomConfiguration=exports['CustomConfiguration']=class CustomConfiguration{async['onReady'](){const _0x34487d=a2_0x4e48ce;await this['filterConfig'](),await this['loggerConfig'](),await this[_0x34487d(0x190)](),await this[_0x34487d(0x20e)]();}async[a2_0x4e48ce(0x190)](){const _0xcc29cd=a2_0x4e48ce,_0x24b680=this['config']['getConfiguration'](),_0x3382c4=(0x0,core_1[_0xcc29cd(0x1b9)])(intercept_1[_0xcc29cd(0x1c3)],intercept_1['InterceptTargetTmp'])||{};this[_0xcc29cd(0x1e7)][_0xcc29cd(0x187)](action_1[_0xcc29cd(0x1a8)],_0x4911b5=>{const _0xd55f4a=_0xcc29cd;var _0x406402;const _0x1b3923=(0x0,core_1[_0xd55f4a(0x1b9)])(action_1[_0xd55f4a(0x1ff)],action_1[_0xd55f4a(0x1f9)])||{},_0x6cfa75=_0x4911b5[_0xd55f4a(0x1fd)],_0x3f9773=(0x0,core_1[_0xd55f4a(0x1b9)])(action_1[_0xd55f4a(0x1cb)],_0x4911b5[_0xd55f4a(0x18d)])||{},_0x24f92c=((_0x406402=_0x3f9773===null||_0x3f9773===void 0x0?void 0x0:_0x3f9773[_0xd55f4a(0x1f3)])===null||_0x406402===void 0x0?void 0x0:_0x406402[_0xd55f4a(0x1e1)](0x0,_0x3f9773[_0xd55f4a(0x1f3)]['lastIndexOf']('.')))||'',_0x590c53=(_0x3f9773===null||_0x3f9773===void 0x0?void 0x0:_0x3f9773[_0xd55f4a(0x20b)])?(_0x1b3923===null||_0x1b3923===void 0x0?void 0x0:_0x1b3923[_0x3f9773['module']])||{}:{};return{'before':async _0x137ade=>{const _0x44b86b=_0xd55f4a;var _0x2d1518,_0x25b2d0,_0x2dae48,_0x1a4ebd;const _0x2daec1=(_0x2d1518=_0x137ade===null||_0x137ade===void 0x0?void 0x0:_0x137ade['target'])===null||_0x2d1518===void 0x0?void 0x0:_0x2d1518[core_2[_0x44b86b(0x1f7)]],_0x3389f0=lodash[_0x44b86b(0x1b6)]({},_0x2daec1['request'][_0x44b86b(0x1f4)]||_0x2daec1[_0x44b86b(0x1fb)][((_0x25b2d0=_0x24b680===null||_0x24b680===void 0x0?void 0x0:_0x24b680[_0x44b86b(0x203)])===null||_0x25b2d0===void 0x0?void 0x0:_0x25b2d0[_0x44b86b(0x1ec)])||_0x44b86b(0x1f4)]||{},_0x2daec1[_0x44b86b(0x1fb)][_0x44b86b(0x1b5)]||{});_0x2daec1[_0x44b86b(0x1d8)]={'module':(_0x590c53===null||_0x590c53===void 0x0?void 0x0:_0x590c53[_0x44b86b(0x20a)])||'','routePath':''+_0x2daec1['path'],'routeName':_0x3f9773['routerOptions'][_0x44b86b(0x1a9)]+'@'+_0x6cfa75[_0x44b86b(0x1f0)],'routeMethod':((_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['requestMethod'])||_0x2daec1['method']||'')[_0x44b86b(0x1bc)](),'routeDescription':(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['description'])||'','filemethod':_0x24f92c+'@'+(_0x6cfa75['method']||'')};if(_0x2daec1&&(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['apimit']))try{const _0x3a3de5=((_0x2dae48=_0x24b680===null||_0x24b680===void 0x0?void 0x0:_0x24b680[_0x44b86b(0x1e6)])===null||_0x2dae48===void 0x0?void 0x0:_0x2dae48[_0x44b86b(0x218)])&&typeof(_0x3389f0===null||_0x3389f0===void 0x0?void 0x0:_0x3389f0[_0x24b680[_0x44b86b(0x1e6)][_0x44b86b(0x218)]])==_0x44b86b(0x1ba)?JSON[_0x44b86b(0x1e5)](base64_decode(_0x3389f0[_0x24b680['anncicapi']['requestKey']])||'{}')||{}:((_0x1a4ebd=_0x2daec1===null||_0x2daec1===void 0x0?void 0x0:_0x2daec1[_0x44b86b(0x1fb)])===null||_0x1a4ebd===void 0x0?void 0x0:_0x1a4ebd[_0x44b86b(0x1d2)])||{};if(!this[_0x44b86b(0x206)][_0x44b86b(0x1a2)](_0x3a3de5))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}catch(_0x19961b){if(_0x19961b instanceof AnnError)throw _0x19961b;else throw new AnnError(ApiError_1[_0x44b86b(0x215)][_0x44b86b(0x1ac)]);}},'around':async _0x3b7b82=>{const _0x450b8d=_0xd55f4a;var _0xda0d00,_0x482acc,_0x2b47cc;const _0x400216=(_0xda0d00=_0x3b7b82===null||_0x3b7b82===void 0x0?void 0x0:_0x3b7b82[_0x450b8d(0x18d)])===null||_0xda0d00===void 0x0?void 0x0:_0xda0d00[core_2[_0x450b8d(0x1f7)]];if(_0x400216&&(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75[_0x450b8d(0x1a1)])&&((_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75['intercept'])||typeof(_0x6cfa75===null||_0x6cfa75===void 0x0?void 0x0:_0x6cfa75[_0x450b8d(0x1b1)])==_0x450b8d(0x195))){if(((_0x482acc=_0x400216[_0x450b8d(0x1d2)])===null||_0x482acc===void 0x0?void 0x0:_0x482acc[_0x450b8d(0x20c)])&&((_0x2b47cc=_0x3382c4===null||_0x3382c4===void 0x0?void 0x0:_0x3382c4[_0x400216[_0x450b8d(0x1d2)][_0x450b8d(0x20c)]])===null||_0x2b47cc===void 0x0?void 0x0:_0x2b47cc[_0x450b8d(0x21b)])>0x0)for(const _0x1df649 of _0x3382c4[_0x400216[_0x450b8d(0x1d2)]['device']]||[]){if(core_1[_0x450b8d(0x189)][_0x450b8d(0x209)](_0x1df649)){const _0x5b3fc0=await _0x400216[_0x450b8d(0x19d)][_0x450b8d(0x1e3)](_0x1df649);typeof(_0x5b3fc0===null||_0x5b3fc0===void 0x0?void 0x0:_0x5b3fc0[_0x450b8d(0x1ee)])==_0x450b8d(0x1bf)?await _0x5b3fc0['match'](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])=='string'&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216['_matchedRoute'])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75)&&await _0x5b3fc0[_0x450b8d(0x1c0)](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75):await _0x5b3fc0[_0x450b8d(0x1c0)](_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75);}else core_1[_0x450b8d(0x189)][_0x450b8d(0x1d5)](_0x1df649)&&await _0x1df649(_0x400216,typeof(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1f2)])==_0x450b8d(0x1ba)&&(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216['_matchedRoute'])?_0x400216[_0x450b8d(0x1f2)][_0x450b8d(0x1bc)]()+'@'+(_0x400216===null||_0x400216===void 0x0?void 0x0:_0x400216[_0x450b8d(0x1ca)]):undefined,_0x6cfa75);}}return await _0x3b7b82[_0x450b8d(0x1d6)](..._0x3b7b82[_0x450b8d(0x1b7)]);},'afterThrow':(_0x2ae29b,_0x214203)=>{throw _0x214203;}};});}async[a2_0x4e48ce(0x20e)](){const _0x3ea576=a2_0x4e48ce,_0x55af44=this['config']['getConfiguration']();this[_0x3ea576(0x1eb)][_0x3ea576(0x201)]([_0x3ea576(0x204)])[_0x3ea576(0x18e)](_0x5c1951=>{const _0x2fae28=_0x3ea576;(_0x5c1951===null||_0x5c1951===void 0x0?void 0x0:_0x5c1951[_0x2fae28(0x18a)])&&Object[_0x2fae28(0x19c)](_0x5c1951[_0x2fae28(0x18a)],{'hosturl':{'configurable':![],'get':function(){const _0x144edc=_0x2fae28;var _0x129e1f,_0x32f4d9,_0x502534,_0x230e33;if((this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1c7)])&&!this['host'][_0x144edc(0x1fc)](_0x144edc(0x18f))){let _0x178539=this[_0x144edc(0x1c7)][_0x144edc(0x1f8)](':');return['80',_0x144edc(0x1c4)][_0x144edc(0x1cf)](_0x178539===null||_0x178539===void 0x0?void 0x0:_0x178539[0x1])?''+(!!((_0x32f4d9=(_0x129e1f=this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1ad)])===null||_0x129e1f===void 0x0?void 0x0:_0x129e1f[_0x144edc(0x19a)])===null||_0x32f4d9===void 0x0?void 0x0:_0x32f4d9['encrypted'])||(_0x178539===null||_0x178539===void 0x0?void 0x0:_0x178539[0x1])=='443'?_0x144edc(0x1ab):'http://')+_0x178539[0x0]:''+(!!((_0x230e33=(_0x502534=this===null||this===void 0x0?void 0x0:this[_0x144edc(0x1ad)])===null||_0x502534===void 0x0?void 0x0:_0x502534['connection'])===null||_0x230e33===void 0x0?void 0x0:_0x230e33[_0x144edc(0x216)])?_0x144edc(0x1ab):'http://')+this[_0x144edc(0x1c7)];}return'';}},'ok':{'value':function(_0xb3fb8b,_0x2d7c0d,_0x2d1eeb=0x0){return{'code':_0x2d1eeb,'data':_0xb3fb8b,'extra':_0x2d7c0d};}},'input':{'value':function(_0xdc4b87,_0x287709){const _0x344f4b=_0x2fae28;var _0x3f6748;const _0x24f019=lodash['defaultsDeep']({},this['request']['body']||this['request'][((_0x3f6748=_0x55af44===null||_0x55af44===void 0x0?void 0x0:_0x55af44[_0x344f4b(0x203)])===null||_0x3f6748===void 0x0?void 0x0:_0x3f6748['key'])||_0x344f4b(0x1f4)]||{},this[_0x344f4b(0x1fb)][_0x344f4b(0x1b5)]||{});return _0xdc4b87?lodash[_0x344f4b(0x1b3)](_0x24f019,_0xdc4b87,_0x287709):_0x24f019;}},'when':{'value':async function(_0x761347,_0x22c247){const _0x255e0c=_0x2fae28,_0x7d159b=this[_0x255e0c(0x1da)](_0x761347,null);if(!lodash[_0x255e0c(0x200)](_0x7d159b))return await _0x22c247(_0x7d159b);}},'only':{'value':function(_0x522ffa){const _0x2eaa0e=_0x2fae28,_0x3aa7ff={};for(let _0x5da082=0x0;_0x5da082<_0x522ffa[_0x2eaa0e(0x21b)];_0x5da082++){lodash[_0x2eaa0e(0x1de)](_0x522ffa[_0x5da082])&&_0x522ffa[_0x5da082]['length']>0x0&&lodash[_0x2eaa0e(0x1cd)](_0x522ffa[_0x5da082][0x0])&&(_0x3aa7ff[_0x522ffa[_0x5da082][0x0]]=this['input'](_0x522ffa[_0x5da082][0x0],_0x522ffa[_0x5da082][_0x2eaa0e(0x21b)]>0x1?_0x522ffa[_0x5da082][0x1]:null));}return _0x3aa7ff;}},'koasend':{'value':async function(_0x518b1c,_0x2f2eb4){const _0x33f9d6=_0x2fae28;if(_0x518b1c&&!fs[_0x33f9d6(0x1e9)](_0x518b1c)&&!fs[_0x33f9d6(0x1e9)](this[_0x33f9d6(0x1d0)][_0x33f9d6(0x192)]()+'/'+_0x518b1c))return _0x33f9d6(0x1f5);return _0x518b1c=fs['existsSync'](_0x518b1c)?_0x518b1c:this[_0x33f9d6(0x1d0)]['getAppDir']()+'/'+_0x518b1c,this[_0x33f9d6(0x1fa)](_0x2f2eb4||_0x518b1c),await koasend(this,_0x518b1c);}}});});}async['loggerConfig'](){const _0x5f3b0c=a2_0x4e48ce;var _0x301b86,_0x49d6eb;if(fs['existsSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+_0x5f3b0c(0x1c1))&&fs['statSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+'/apps')[_0x5f3b0c(0x1dd)]()){const _0x450545=this[_0x5f3b0c(0x208)][_0x5f3b0c(0x1af)](),_0x25dfeb=((_0x301b86=_0x450545===null||_0x450545===void 0x0?void 0x0:_0x450545[_0x5f3b0c(0x1db)])===null||_0x301b86===void 0x0?void 0x0:_0x301b86['clients'])||{};for(const _0x26ed4f of fs[_0x5f3b0c(0x186)](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+_0x5f3b0c(0x1c1))){if(!fs['statSync'](this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x21a)]()+'/apps/'+_0x26ed4f)['isDirectory']())continue;if(_0x25dfeb===null||_0x25dfeb===void 0x0?void 0x0:_0x25dfeb[_0x26ed4f])continue;_0x25dfeb[_0x26ed4f]=Object[_0x5f3b0c(0x1c9)]({},((_0x49d6eb=_0x450545===null||_0x450545===void 0x0?void 0x0:_0x450545[_0x5f3b0c(0x1db)])===null||_0x49d6eb===void 0x0?void 0x0:_0x49d6eb[_0x5f3b0c(0x1e8)])||{'maxSize':'1m','dir':this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x191)},{'enableJSON':!![],'enableConsole':this['environment'][_0x5f3b0c(0x1a5)](),'fileLogName':_0x26ed4f+'.log','dir':this['app'][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x1df)+_0x26ed4f});}Object[_0x5f3b0c(0x1cc)](_0x25dfeb)[_0x5f3b0c(0x21b)]>0x0&&(!_0x450545['midwayLogger']&&(_0x450545[_0x5f3b0c(0x1db)]={'default':{'maxSize':'1m','dir':this[_0x5f3b0c(0x1d0)][_0x5f3b0c(0x192)]()+_0x5f3b0c(0x191)}}),_0x450545[_0x5f3b0c(0x1db)][_0x5f3b0c(0x20d)]=_0x25dfeb),this[_0x5f3b0c(0x208)][_0x5f3b0c(0x1d9)](_0x450545);}}async[a2_0x4e48ce(0x21c)](){const _0x353631=a2_0x4e48ce;var _0x19a850,_0x9f4b2,_0x4b9a7c,_0x1c6c9f,_0x5d48a1,_0x394f9b;const _0x2304eb=this['config']['getConfiguration']();((_0x9f4b2=(_0x19a850=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb['anncicapi'])===null||_0x19a850===void 0x0?void 0x0:_0x19a850[_0x353631(0x1ef)])===null||_0x9f4b2===void 0x0?void 0x0:_0x9f4b2[_0x353631(0x20f)])&&Object[_0x353631(0x1cc)](_0x2304eb['anncicapi'][_0x353631(0x1ef)])['length']>0x1&&delete _0x2304eb['anncicapi']['devices']['DEFAULT'];if((_0x4b9a7c=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb[_0x353631(0x1aa)])===null||_0x4b9a7c===void 0x0?void 0x0:_0x4b9a7c[_0x353631(0x1bb)])for(const _0x5d80a6 in _0x2304eb[_0x353631(0x1aa)]['dirs']){((_0x1c6c9f=_0x2304eb[_0x353631(0x1aa)]['dirs'][_0x5d80a6])===null||_0x1c6c9f===void 0x0?void 0x0:_0x1c6c9f[_0x353631(0x1a3)])&&typeof((_0x5d48a1=_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6])===null||_0x5d48a1===void 0x0?void 0x0:_0x5d48a1[_0x353631(0x1a3)])==_0x353631(0x1ba)&&!fs[_0x353631(0x1e9)](_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6][_0x353631(0x1a3)])&&(fs[_0x353631(0x1a0)](_0x2304eb[_0x353631(0x1aa)]['dirs'][_0x5d80a6][_0x353631(0x1a3)],{'recursive':!![]}),console[_0x353631(0x194)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x2304eb[_0x353631(0x1aa)][_0x353631(0x1bb)][_0x5d80a6][_0x353631(0x1a3)]));}((_0x394f9b=_0x2304eb===null||_0x2304eb===void 0x0?void 0x0:_0x2304eb[_0x353631(0x1a4)])===null||_0x394f9b===void 0x0?void 0x0:_0x394f9b[_0x353631(0x1ed)])&&!fs[_0x353631(0x1e9)](_0x2304eb[_0x353631(0x1a4)][_0x353631(0x1ed)])&&(fs[_0x353631(0x1a0)](_0x2304eb[_0x353631(0x1a4)][_0x353631(0x1ed)],{'recursive':!![]}),console[_0x353631(0x194)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x2304eb[_0x353631(0x1a4)]['tmpdir'])),this[_0x353631(0x208)][_0x353631(0x1d9)](_0x2304eb);}};function a2_0x839d(){const _0x43465d=['requestKey','MidwayConfigService','getBaseDir','length','filterConfig','readdirSync','registerMethodHandler','search','Types','context','9175977BwCuCX','Inject','target','forEach','http','handlerActionRoute','/runtime','getAppDir','@midwayjs/upload','log','undefined','2344eYEKkO','1076BpqJZD','MidwayApplicationManager','__decorate','connection','@anncic-api/cache','defineProperties','requestContext','MidwayDecoratorService','@anncic-api/typeorm','mkdirSync','apimit','checksign','dir','upload','isDevelopmentEnvironment','20209fYKEpi','getOwnPropertyDescriptor','ACTION_ROUTE_KEY','tagName','staticFile','https://','_UNKNOW_','req','./exception/ApiError','getConfiguration','anncic-apihelper','intercept','@anncic-api/core','get','decorate','query','defaultsDeep','args','10fhxUDd','getClassMetadata','string','dirs','toLowerCase','143prmPCG','./types/action','function','handler','/apps','toString','INTERCEPT_KEY','443','koa-send','apply','host','environment','assign','_matchedRoute','ACTION_KEY','keys','isString','./config/config.production','includes','app','@midwayjs/core','headers','15005DKRpmG','@anncic-api/validator','isFunction','proceed','@midwayjs/cross-domain','_matchedRouteMeta','addObject','input','midwayLogger','Configuration','isDirectory','isArray','/runtime/apps-','CustomConfiguration','substring','design:type','getAsync','MidwayEnvironmentService','parse','anncicapi','decorator','default','existsSync','3703866rhiPpw','application','key','tmpdir','match','devices','routerName','403201MbhiCU','method','filepath','body','文件不存在','@anncic-api/event','REQUEST_OBJ_CTX_KEY','split','AppsConfigTmp','attachment','request','startsWith','metadata','@midwayjs/koa','APPSCONFIG_KEY','isNull','getApplications','__metadata','bodyXml','koa','(((.+)+)+)+$','ApiService','1472988KLqGcs','config','isClass','name','module','device','clients','hanlderApplications','DEFAULT','prototype','./service/ApiService','./types/intercept','object','6tFNnlu','ApiError','encrypted','6397578hOmBto'];a2_0x839d=function(){return _0x43465d;};return a2_0x839d();}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x4e48ce(0x1e2),Object)],CustomConfiguration['prototype'],a2_0x4e48ce(0x1d0),void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata(a2_0x4e48ce(0x1e2),core_2[a2_0x4e48ce(0x219)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x208),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4e48ce(0x19e)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x1e7),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4e48ce(0x1e2),core_2[a2_0x4e48ce(0x198)])],CustomConfiguration[a2_0x4e48ce(0x210)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata('design:type',core_2[a2_0x4e48ce(0x1e4)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x1c8),void 0x0),__decorate([(0x0,core_1[a2_0x4e48ce(0x18c)])(),__metadata(a2_0x4e48ce(0x1e2),ApiService_1[a2_0x4e48ce(0x206)])],CustomConfiguration[a2_0x4e48ce(0x210)],a2_0x4e48ce(0x206),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x4e48ce(0x1dc)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x5c1811=a2_0x5561;function a2_0x5561(_0x27aeea,_0x5efffd){const _0x6cff67=a2_0x5d71();return a2_0x5561=function(_0x57035a,_0x28c0eb){_0x57035a=_0x57035a-0x1f0;let _0x5d7153=_0x6cff67[_0x57035a];return _0x5d7153;},a2_0x5561(_0x27aeea,_0x5efffd);}(function(_0x567373,_0x2b50a0){const _0x590a8a=a2_0x5561,_0x3c5a18=_0x567373();while(!![]){try{const _0x37d1a0=parseInt(_0x590a8a(0x281))/0x1*(parseInt(_0x590a8a(0x27d))/0x2)+parseInt(_0x590a8a(0x206))/0x3+parseInt(_0x590a8a(0x223))/0x4+parseInt(_0x590a8a(0x260))/0x5*(-parseInt(_0x590a8a(0x234))/0x6)+parseInt(_0x590a8a(0x235))/0x7+parseInt(_0x590a8a(0x242))/0x8+-parseInt(_0x590a8a(0x266))/0x9*(parseInt(_0x590a8a(0x275))/0xa);if(_0x37d1a0===_0x2b50a0)break;else _0x3c5a18['push'](_0x3c5a18['shift']());}catch(_0x26872b){_0x3c5a18['push'](_0x3c5a18['shift']());}}}(a2_0x5d71,0xc0e7d));const a2_0x28c0eb=(function(){let _0x580e43=!![];return function(_0x1a2693,_0x5962d3){const _0x273873=_0x580e43?function(){const _0x3599d5=a2_0x5561;if(_0x5962d3){const _0x2d390b=_0x5962d3[_0x3599d5(0x215)](_0x1a2693,arguments);return _0x5962d3=null,_0x2d390b;}}:function(){};return _0x580e43=![],_0x273873;};}()),a2_0x57035a=a2_0x28c0eb(this,function(){const _0xa185e0=a2_0x5561;return a2_0x57035a[_0xa185e0(0x21f)]()[_0xa185e0(0x204)]('(((.+)+)+)+$')[_0xa185e0(0x21f)]()['constructor'](a2_0x57035a)[_0xa185e0(0x204)](_0xa185e0(0x1f7));});a2_0x57035a();'use strict';var __decorate=this&&this[a2_0x5c1811(0x20d)]||function(_0x42b5eb,_0x4eb87a,_0x31fc80,_0x34193d){const _0x5a8d92=a2_0x5c1811;var _0x1efec4=arguments[_0x5a8d92(0x21c)],_0x300269=_0x1efec4<0x3?_0x4eb87a:_0x34193d===null?_0x34193d=Object[_0x5a8d92(0x25d)](_0x4eb87a,_0x31fc80):_0x34193d,_0x28837c;if(typeof Reflect==='object'&&typeof Reflect[_0x5a8d92(0x23b)]===_0x5a8d92(0x212))_0x300269=Reflect[_0x5a8d92(0x23b)](_0x42b5eb,_0x4eb87a,_0x31fc80,_0x34193d);else{for(var _0x53b221=_0x42b5eb[_0x5a8d92(0x21c)]-0x1;_0x53b221>=0x0;_0x53b221--)if(_0x28837c=_0x42b5eb[_0x53b221])_0x300269=(_0x1efec4<0x3?_0x28837c(_0x300269):_0x1efec4>0x3?_0x28837c(_0x4eb87a,_0x31fc80,_0x300269):_0x28837c(_0x4eb87a,_0x31fc80))||_0x300269;}return _0x1efec4>0x3&&_0x300269&&Object[_0x5a8d92(0x27c)](_0x4eb87a,_0x31fc80,_0x300269),_0x300269;},__metadata=this&&this[a2_0x5c1811(0x1f4)]||function(_0xe1c43d,_0x1573b4){const _0x5f00aa=a2_0x5c1811;if(typeof Reflect===_0x5f00aa(0x23e)&&typeof Reflect[_0x5f00aa(0x249)]===_0x5f00aa(0x212))return Reflect[_0x5f00aa(0x249)](_0xe1c43d,_0x1573b4);};Object[a2_0x5c1811(0x27c)](exports,a2_0x5c1811(0x26b),{'value':!![]}),exports[a2_0x5c1811(0x23c)]=void 0x0;const core_1=require(a2_0x5c1811(0x21a)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x5c1811(0x232)),ApiService_1=require(a2_0x5c1811(0x258)),intercept_1=require(a2_0x5c1811(0x1fd)),action_1=require(a2_0x5c1811(0x24c)),fs=require('fs'),koasend=require(a2_0x5c1811(0x220)),koa=require(a2_0x5c1811(0x283)),upload=require(a2_0x5c1811(0x1f6)),staticFile=require(a2_0x5c1811(0x280)),crossDomain=require(a2_0x5c1811(0x1ff)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x5c1811(0x218)),anncic=require(a2_0x5c1811(0x20f)),anncicCache=require(a2_0x5c1811(0x243)),anncicEvent=require(a2_0x5c1811(0x22b)),anncicTypeorm=require(a2_0x5c1811(0x237)),anncicValidator=require(a2_0x5c1811(0x23f)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x5c1811(0x23c)]=class CustomConfiguration{async['onReady'](){const _0x77fc84=a2_0x5c1811;await this[_0x77fc84(0x268)](),await this[_0x77fc84(0x27e)](),await this[_0x77fc84(0x238)](),await this[_0x77fc84(0x227)]();}async[a2_0x5c1811(0x238)](){const _0x117e8b=a2_0x5c1811,_0x210454=this[_0x117e8b(0x244)][_0x117e8b(0x1fe)](),_0x247823=(0x0,core_1[_0x117e8b(0x264)])(intercept_1[_0x117e8b(0x25b)],intercept_1[_0x117e8b(0x225)])||{};this[_0x117e8b(0x211)][_0x117e8b(0x213)](action_1['ACTION_ROUTE_KEY'],_0x5b8fb4=>{const _0x311af9=_0x117e8b;var _0x112b25;const _0x3bb052=(0x0,core_1[_0x311af9(0x264)])(action_1['APPSCONFIG_KEY'],action_1[_0x311af9(0x274)])||{},_0x18bba0=_0x5b8fb4[_0x311af9(0x249)],_0x34d4ce=(0x0,core_1[_0x311af9(0x264)])(action_1[_0x311af9(0x216)],_0x5b8fb4[_0x311af9(0x205)])||{},_0x6778b9=((_0x112b25=_0x34d4ce===null||_0x34d4ce===void 0x0?void 0x0:_0x34d4ce[_0x311af9(0x254)])===null||_0x112b25===void 0x0?void 0x0:_0x112b25[_0x311af9(0x278)](0x0,_0x34d4ce[_0x311af9(0x254)][_0x311af9(0x26e)]('.')))||'',_0x2ddeda=(_0x34d4ce===null||_0x34d4ce===void 0x0?void 0x0:_0x34d4ce[_0x311af9(0x279)])?(_0x3bb052===null||_0x3bb052===void 0x0?void 0x0:_0x3bb052[_0x34d4ce[_0x311af9(0x279)]])||{}:{};return{'before':async _0x114c18=>{const _0x2370fd=_0x311af9;var _0x556066,_0x214403,_0x10572e,_0x3764a1;const _0x30c90b=(_0x556066=_0x114c18===null||_0x114c18===void 0x0?void 0x0:_0x114c18[_0x2370fd(0x205)])===null||_0x556066===void 0x0?void 0x0:_0x556066[core_2[_0x2370fd(0x210)]],_0x11fabd=lodash[_0x2370fd(0x229)]({},_0x30c90b[_0x2370fd(0x221)][_0x2370fd(0x23a)]||_0x30c90b[_0x2370fd(0x221)][((_0x214403=_0x210454===null||_0x210454===void 0x0?void 0x0:_0x210454[_0x2370fd(0x1f0)])===null||_0x214403===void 0x0?void 0x0:_0x214403[_0x2370fd(0x248)])||'body']||{},_0x30c90b[_0x2370fd(0x221)][_0x2370fd(0x26d)]||{});_0x30c90b[_0x2370fd(0x25c)]={'module':(_0x2ddeda===null||_0x2ddeda===void 0x0?void 0x0:_0x2ddeda[_0x2370fd(0x226)])||'','routePath':''+_0x30c90b[_0x2370fd(0x26c)],'routeName':_0x34d4ce['routerOptions'][_0x2370fd(0x239)]+'@'+_0x18bba0[_0x2370fd(0x277)],'routeMethod':((_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x2370fd(0x27f)])||_0x30c90b[_0x2370fd(0x24e)]||'')[_0x2370fd(0x26a)](),'routeDescription':(_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x2370fd(0x26f)])||'','filemethod':_0x6778b9+'@'+(_0x18bba0[_0x2370fd(0x24e)]||'')};if(_0x30c90b&&(_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x2370fd(0x1fc)]))try{const _0x3ca561=((_0x10572e=_0x210454===null||_0x210454===void 0x0?void 0x0:_0x210454[_0x2370fd(0x20a)])===null||_0x10572e===void 0x0?void 0x0:_0x10572e[_0x2370fd(0x271)])&&typeof(_0x11fabd===null||_0x11fabd===void 0x0?void 0x0:_0x11fabd[_0x210454['anncicapi'][_0x2370fd(0x271)]])==_0x2370fd(0x253)?JSON['parse'](base64_decode(_0x11fabd[_0x210454['anncicapi'][_0x2370fd(0x271)]])||'{}')||{}:((_0x3764a1=_0x30c90b===null||_0x30c90b===void 0x0?void 0x0:_0x30c90b[_0x2370fd(0x221)])===null||_0x3764a1===void 0x0?void 0x0:_0x3764a1[_0x2370fd(0x246)])||{};if(!this[_0x2370fd(0x20e)][_0x2370fd(0x24b)](_0x3ca561))throw new AnnError(ApiError_1['ApiError'][_0x2370fd(0x240)]);}catch(_0x147b61){if(_0x147b61 instanceof AnnError)throw _0x147b61;else throw new AnnError(ApiError_1[_0x2370fd(0x250)][_0x2370fd(0x261)]);}},'around':async _0x475634=>{const _0x3a0b25=_0x311af9;var _0x1d3697,_0x475766,_0x5331ce;const _0x13dcba=(_0x1d3697=_0x475634===null||_0x475634===void 0x0?void 0x0:_0x475634['target'])===null||_0x1d3697===void 0x0?void 0x0:_0x1d3697[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x13dcba&&(_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x3a0b25(0x1fc)])&&((_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x3a0b25(0x233)])||typeof(_0x18bba0===null||_0x18bba0===void 0x0?void 0x0:_0x18bba0[_0x3a0b25(0x233)])=='undefined')){if(((_0x475766=_0x13dcba[_0x3a0b25(0x246)])===null||_0x475766===void 0x0?void 0x0:_0x475766[_0x3a0b25(0x262)])&&((_0x5331ce=_0x247823===null||_0x247823===void 0x0?void 0x0:_0x247823[_0x13dcba[_0x3a0b25(0x246)][_0x3a0b25(0x262)]])===null||_0x5331ce===void 0x0?void 0x0:_0x5331ce['length'])>0x0)for(const _0x22f325 of _0x247823[_0x13dcba[_0x3a0b25(0x246)][_0x3a0b25(0x262)]]||[]){if(core_1[_0x3a0b25(0x1f9)]['isClass'](_0x22f325)){const _0x4bd47f=await _0x13dcba[_0x3a0b25(0x202)][_0x3a0b25(0x25a)](_0x22f325);typeof(_0x4bd47f===null||_0x4bd47f===void 0x0?void 0x0:_0x4bd47f[_0x3a0b25(0x20c)])==_0x3a0b25(0x212)?await _0x4bd47f['match'](_0x13dcba,typeof(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba['method'])==_0x3a0b25(0x253)&&(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x245)])?_0x13dcba['method'][_0x3a0b25(0x26a)]()+'@'+(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x245)]):undefined,_0x18bba0)&&await _0x4bd47f['handler'](_0x13dcba,typeof(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x24e)])==_0x3a0b25(0x253)&&(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba['_matchedRoute'])?_0x13dcba[_0x3a0b25(0x24e)]['toLowerCase']()+'@'+(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x245)]):undefined,_0x18bba0):await _0x4bd47f[_0x3a0b25(0x22d)](_0x13dcba,typeof(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x24e)])=='string'&&(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba['_matchedRoute'])?_0x13dcba['method'][_0x3a0b25(0x26a)]()+'@'+(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba['_matchedRoute']):undefined,_0x18bba0);}else core_1[_0x3a0b25(0x1f9)][_0x3a0b25(0x22f)](_0x22f325)&&await _0x22f325(_0x13dcba,typeof(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba['method'])==_0x3a0b25(0x253)&&(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x245)])?_0x13dcba['method'][_0x3a0b25(0x26a)]()+'@'+(_0x13dcba===null||_0x13dcba===void 0x0?void 0x0:_0x13dcba[_0x3a0b25(0x245)]):undefined,_0x18bba0);}}return await _0x475634[_0x3a0b25(0x1fa)](..._0x475634['args']);},'afterThrow':(_0x24fa7d,_0x3bae5b)=>{throw _0x3bae5b;}};});}async['hanlderApplications'](){const _0x4501d3=a2_0x5c1811,_0x1182d7=this[_0x4501d3(0x244)]['getConfiguration']();this[_0x4501d3(0x256)][_0x4501d3(0x22e)](['koa'])['forEach'](_0x1a4bc3=>{const _0x955b46=_0x4501d3;(_0x1a4bc3===null||_0x1a4bc3===void 0x0?void 0x0:_0x1a4bc3[_0x955b46(0x27b)])&&Object[_0x955b46(0x25e)](_0x1a4bc3['context'],{'hosturl':{'configurable':![],'get':function(){const _0x1d4627=_0x955b46;var _0x236500,_0x541f7f,_0x5b7c7f,_0x477fdf;if((this===null||this===void 0x0?void 0x0:this['host'])&&!this['host']['startsWith']('http')){let _0x4b4456=this[_0x1d4627(0x230)][_0x1d4627(0x1f8)](':');return['80','443'][_0x1d4627(0x22a)](_0x4b4456===null||_0x4b4456===void 0x0?void 0x0:_0x4b4456[0x1])?''+(!!((_0x541f7f=(_0x236500=this===null||this===void 0x0?void 0x0:this[_0x1d4627(0x203)])===null||_0x236500===void 0x0?void 0x0:_0x236500['connection'])===null||_0x541f7f===void 0x0?void 0x0:_0x541f7f[_0x1d4627(0x1f1)])||(_0x4b4456===null||_0x4b4456===void 0x0?void 0x0:_0x4b4456[0x1])==_0x1d4627(0x20b)?'https://':_0x1d4627(0x276))+_0x4b4456[0x0]:''+(!!((_0x477fdf=(_0x5b7c7f=this===null||this===void 0x0?void 0x0:this['req'])===null||_0x5b7c7f===void 0x0?void 0x0:_0x5b7c7f[_0x1d4627(0x247)])===null||_0x477fdf===void 0x0?void 0x0:_0x477fdf[_0x1d4627(0x1f1)])?_0x1d4627(0x217):_0x1d4627(0x276))+this[_0x1d4627(0x230)];}return'';}},'ok':{'value':function(_0x347910,_0xa9d1a,_0x27c0e5=0x0){return{'code':_0x27c0e5,'data':_0x347910,'extra':_0xa9d1a};}},'input':{'value':function(_0x4e405a,_0xa83b41){const _0x32c050=_0x955b46;var _0x1d7b25;const _0x2e1ed1=lodash[_0x32c050(0x229)]({},this[_0x32c050(0x221)][_0x32c050(0x23a)]||this['request'][((_0x1d7b25=_0x1182d7===null||_0x1182d7===void 0x0?void 0x0:_0x1182d7['bodyXml'])===null||_0x1d7b25===void 0x0?void 0x0:_0x1d7b25[_0x32c050(0x248)])||_0x32c050(0x23a)]||{},this[_0x32c050(0x221)]['query']||{});return _0x4e405a?lodash[_0x32c050(0x273)](_0x2e1ed1,_0x4e405a,_0xa83b41):_0x2e1ed1;}},'when':{'value':async function(_0x2a1782,_0x52bbda){const _0x59f2f2=_0x955b46,_0x1e0e70=this['input'](_0x2a1782,null);if(!lodash[_0x59f2f2(0x228)](_0x1e0e70))return await _0x52bbda(_0x1e0e70);}},'only':{'value':function(_0x48ac08){const _0x44d9a6=_0x955b46,_0x26ea68={};for(let _0x529656=0x0;_0x529656<_0x48ac08[_0x44d9a6(0x21c)];_0x529656++){lodash[_0x44d9a6(0x219)](_0x48ac08[_0x529656])&&_0x48ac08[_0x529656][_0x44d9a6(0x21c)]>0x0&&lodash[_0x44d9a6(0x214)](_0x48ac08[_0x529656][0x0])&&(_0x26ea68[_0x48ac08[_0x529656][0x0]]=this[_0x44d9a6(0x282)](_0x48ac08[_0x529656][0x0],_0x48ac08[_0x529656]['length']>0x1?_0x48ac08[_0x529656][0x1]:null));}return _0x26ea68;}},'koasend':{'value':async function(_0x31db59,_0x27ac3b){const _0x1cb29a=_0x955b46;if(_0x31db59&&!fs['existsSync'](_0x31db59)&&!fs['existsSync'](this[_0x1cb29a(0x23d)][_0x1cb29a(0x224)]()+'/'+_0x31db59))return _0x1cb29a(0x272);return _0x31db59=fs[_0x1cb29a(0x25f)](_0x31db59)?_0x31db59:this[_0x1cb29a(0x23d)][_0x1cb29a(0x224)]()+'/'+_0x31db59,this['attachment'](_0x27ac3b||_0x31db59),await koasend(this,_0x31db59);}}});});}async[a2_0x5c1811(0x27e)](){const _0x8efba8=a2_0x5c1811;var _0x567e2b,_0x269832;if(fs[_0x8efba8(0x25f)](this['app']['getBaseDir']()+_0x8efba8(0x22c))&&fs[_0x8efba8(0x284)](this[_0x8efba8(0x23d)]['getBaseDir']()+_0x8efba8(0x22c))[_0x8efba8(0x21e)]()){const _0x514085=this[_0x8efba8(0x244)]['getConfiguration'](),_0x169c0a=((_0x567e2b=_0x514085===null||_0x514085===void 0x0?void 0x0:_0x514085[_0x8efba8(0x257)])===null||_0x567e2b===void 0x0?void 0x0:_0x567e2b['clients'])||{};for(const _0x23de32 of fs[_0x8efba8(0x207)](this[_0x8efba8(0x23d)][_0x8efba8(0x222)]()+'/apps')){if(!fs[_0x8efba8(0x284)](this['app'][_0x8efba8(0x222)]()+_0x8efba8(0x267)+_0x23de32)[_0x8efba8(0x21e)]())continue;if(_0x169c0a===null||_0x169c0a===void 0x0?void 0x0:_0x169c0a[_0x23de32])continue;_0x169c0a[_0x23de32]=Object[_0x8efba8(0x255)]({},((_0x269832=_0x514085===null||_0x514085===void 0x0?void 0x0:_0x514085['midwayLogger'])===null||_0x269832===void 0x0?void 0x0:_0x269832[_0x8efba8(0x251)])||{'maxSize':'1m','dir':this[_0x8efba8(0x23d)][_0x8efba8(0x224)]()+_0x8efba8(0x208)},{'enableJSON':!![],'enableConsole':this[_0x8efba8(0x231)][_0x8efba8(0x1f3)](),'fileLogName':_0x23de32+'.log','dir':this['app'][_0x8efba8(0x224)]()+'/runtime/apps-'+_0x23de32});}Object[_0x8efba8(0x1f5)](_0x169c0a)[_0x8efba8(0x21c)]>0x0&&(!_0x514085[_0x8efba8(0x257)]&&(_0x514085[_0x8efba8(0x257)]={'default':{'maxSize':'1m','dir':this[_0x8efba8(0x23d)]['getAppDir']()+_0x8efba8(0x208)}}),_0x514085[_0x8efba8(0x257)]['clients']=_0x169c0a),this['config'][_0x8efba8(0x252)](_0x514085);}}async['filterConfig'](){const _0x1882dc=a2_0x5c1811;var _0xf6e032,_0x4d4711,_0x428514,_0x46ea8f,_0x57dee0,_0x3246b5;const _0x398a1f=this['config'][_0x1882dc(0x1fe)]();((_0x4d4711=(_0xf6e032=_0x398a1f===null||_0x398a1f===void 0x0?void 0x0:_0x398a1f['anncicapi'])===null||_0xf6e032===void 0x0?void 0x0:_0xf6e032[_0x1882dc(0x269)])===null||_0x4d4711===void 0x0?void 0x0:_0x4d4711[_0x1882dc(0x263)])&&Object[_0x1882dc(0x1f5)](_0x398a1f[_0x1882dc(0x20a)]['devices'])['length']>0x1&&delete _0x398a1f[_0x1882dc(0x20a)][_0x1882dc(0x269)][_0x1882dc(0x263)];if((_0x428514=_0x398a1f===null||_0x398a1f===void 0x0?void 0x0:_0x398a1f[_0x1882dc(0x241)])===null||_0x428514===void 0x0?void 0x0:_0x428514[_0x1882dc(0x209)])for(const _0x26c621 in _0x398a1f[_0x1882dc(0x241)]['dirs']){((_0x46ea8f=_0x398a1f[_0x1882dc(0x241)]['dirs'][_0x26c621])===null||_0x46ea8f===void 0x0?void 0x0:_0x46ea8f[_0x1882dc(0x24d)])&&typeof((_0x57dee0=_0x398a1f[_0x1882dc(0x241)][_0x1882dc(0x209)][_0x26c621])===null||_0x57dee0===void 0x0?void 0x0:_0x57dee0[_0x1882dc(0x24d)])==_0x1882dc(0x253)&&!fs['existsSync'](_0x398a1f[_0x1882dc(0x241)][_0x1882dc(0x209)][_0x26c621][_0x1882dc(0x24d)])&&(fs[_0x1882dc(0x24a)](_0x398a1f[_0x1882dc(0x241)][_0x1882dc(0x209)][_0x26c621][_0x1882dc(0x24d)],{'recursive':!![]}),console['log'](_0x1882dc(0x201)+_0x398a1f[_0x1882dc(0x241)][_0x1882dc(0x209)][_0x26c621][_0x1882dc(0x24d)]));}((_0x3246b5=_0x398a1f===null||_0x398a1f===void 0x0?void 0x0:_0x398a1f[_0x1882dc(0x1f2)])===null||_0x3246b5===void 0x0?void 0x0:_0x3246b5[_0x1882dc(0x21d)])&&!fs[_0x1882dc(0x25f)](_0x398a1f[_0x1882dc(0x1f2)][_0x1882dc(0x21d)])&&(fs['mkdirSync'](_0x398a1f[_0x1882dc(0x1f2)]['tmpdir'],{'recursive':!![]}),console['log'](_0x1882dc(0x270)+_0x398a1f['upload']['tmpdir'])),this[_0x1882dc(0x244)][_0x1882dc(0x252)](_0x398a1f);}};__decorate([(0x0,core_1[a2_0x5c1811(0x27a)])(),__metadata(a2_0x5c1811(0x21b),Object)],CustomConfiguration[a2_0x5c1811(0x265)],a2_0x5c1811(0x23d),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x5c1811(0x236)])],CustomConfiguration['prototype'],a2_0x5c1811(0x244),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x5c1811(0x265)],a2_0x5c1811(0x211),void 0x0),__decorate([(0x0,core_1[a2_0x5c1811(0x200)])(),__metadata(a2_0x5c1811(0x21b),core_2[a2_0x5c1811(0x24f)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x5c1811(0x200)])(),__metadata(a2_0x5c1811(0x21b),core_2[a2_0x5c1811(0x1fb)])],CustomConfiguration[a2_0x5c1811(0x265)],a2_0x5c1811(0x231),void 0x0),__decorate([(0x0,core_1[a2_0x5c1811(0x200)])(),__metadata('design:type',ApiService_1[a2_0x5c1811(0x20e)])],CustomConfiguration[a2_0x5c1811(0x265)],a2_0x5c1811(0x20e),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x5c1811(0x259)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);function a2_0x5d71(){const _0x3e8cd3=['defineProperties','existsSync','3405rjXojH','_UNKNOW_','device','DEFAULT','getClassMetadata','prototype','42750LzmwZx','/apps/','filterConfig','devices','toLowerCase','__esModule','path','query','lastIndexOf','description','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','requestKey','文件不存在','get','AppsConfigTmp','5030OBOYFz','http://','routerName','substring','module','App','context','defineProperty','28716zRkhpr','loggerConfig','requestMethod','@midwayjs/static-file','13TSNexq','input','@midwayjs/koa','statSync','bodyXml','encrypted','upload','isDevelopmentEnvironment','__metadata','keys','@midwayjs/upload','(((.+)+)+)+$','split','Types','proceed','MidwayEnvironmentService','apimit','./types/intercept','getConfiguration','@midwayjs/cross-domain','Inject','Anncic-api\x20static-file\x20:\x20mkdir\x20','requestContext','req','search','target','194778CWQWjk','readdirSync','/runtime','dirs','anncicapi','443','match','__decorate','ApiService','@anncic-api/core','REQUEST_OBJ_CTX_KEY','decorator','function','registerMethodHandler','isString','apply','ACTION_KEY','https://','./config/config.production','isArray','@midwayjs/core','design:type','length','tmpdir','isDirectory','toString','koa-send','request','getBaseDir','5476288ANaBEO','getAppDir','InterceptTargetTmp','name','hanlderApplications','isNull','defaultsDeep','includes','@anncic-api/event','/apps','handler','getApplications','isFunction','host','environment','./exception/ApiError','intercept','4794ONBqEn','5072032xwEexE','MidwayConfigService','@anncic-api/typeorm','handlerActionRoute','tagName','body','decorate','CustomConfiguration','app','object','@anncic-api/validator','HEADERS_SIGNATURE','staticFile','11026256LbfzyU','@anncic-api/cache','config','_matchedRoute','headers','connection','key','metadata','mkdirSync','checksign','./types/action','dir','method','MidwayApplicationManager','ApiError','default','addObject','string','filepath','assign','application','midwayLogger','./service/ApiService','Configuration','getAsync','INTERCEPT_KEY','_matchedRouteMeta','getOwnPropertyDescriptor'];a2_0x5d71=function(){return _0x3e8cd3;};return a2_0x5d71();}
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x3504be=a3_0x43a8;(function(_0xa07d3b,_0xe24b4b){const _0x25662f=a3_0x43a8,_0x20b841=_0xa07d3b();while(!![]){try{const _0x30c5c2=-parseInt(_0x25662f(0x103))/0x1+-parseInt(_0x25662f(0x105))/0x2*(-parseInt(_0x25662f(0xd4))/0x3)+-parseInt(_0x25662f(0xd7))/0x4+parseInt(_0x25662f(0xcb))/0x5+-parseInt(_0x25662f(0xd9))/0x6+-parseInt(_0x25662f(0xfb))/0x7*(-parseInt(_0x25662f(0xde))/0x8)+parseInt(_0x25662f(0xe8))/0x9*(parseInt(_0x25662f(0x101))/0xa);if(_0x30c5c2===_0xe24b4b)break;else _0x20b841['push'](_0x20b841['shift']());}catch(_0x59a4bd){_0x20b841['push'](_0x20b841['shift']());}}}(a3_0x4a84,0x7c7b7));const a3_0x5a9602=(function(){let _0x1babb5=!![];return function(_0x5d99ec,_0xd93a9b){const _0x32157a=_0x1babb5?function(){if(_0xd93a9b){const _0x13a437=_0xd93a9b['apply'](_0x5d99ec,arguments);return _0xd93a9b=null,_0x13a437;}}:function(){};return _0x1babb5=![],_0x32157a;};}()),a3_0x4bbcaf=a3_0x5a9602(this,function(){const _0x131187=a3_0x43a8;return a3_0x4bbcaf[_0x131187(0xe1)]()[_0x131187(0xc3)](_0x131187(0xcc))[_0x131187(0xe1)]()[_0x131187(0xed)](a3_0x4bbcaf)[_0x131187(0xc3)](_0x131187(0xcc));});a3_0x4bbcaf();'use strict';Object[a3_0x3504be(0xd6)](exports,a3_0x3504be(0xf2),{'value':!![]}),exports['parseRoute']=exports[a3_0x3504be(0xe9)]=exports[a3_0x3504be(0xee)]=void 0x0;const fs=require('fs'),validator_1=require('@anncic-api/validator'),core_1=require(a3_0x3504be(0xdb)),core_2=require(a3_0x3504be(0xdb)),action_1=require(a3_0x3504be(0xc6));function Action(_0x578d61,_0x4ba16d,_0x4fba1e={'middleware':[],'sensitive':!![]}){return _0x508af6=>{const _0x5e6256=a3_0x43a8;var _0x4a7aae;_0x4fba1e[_0x5e6256(0xdc)]=_0x4ba16d;const _0x275556=parseRoute(_0x578d61);if(_0x275556[_0x5e6256(0xf9)]){_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e['prefix']?'/'+_0x275556[_0x5e6256(0xf9)]+'/'+_0x4fba1e[_0x5e6256(0xf8)]:'/'+_0x275556[_0x5e6256(0xec)];_0x275556[_0x5e6256(0xf8)]&&(_0x4fba1e[_0x5e6256(0xf8)]='/'+_0x275556['prefix']+'/'+_0x4fba1e[_0x5e6256(0xf8)]);if(fs['existsSync'](_0x275556[_0x5e6256(0xd1)]+_0x5e6256(0xef)+_0x275556[_0x5e6256(0xf9)]+_0x5e6256(0xfe)+(lodash[_0x5e6256(0xc8)](_0x275556[_0x5e6256(0x106)],'ts')?'ts':'js'))){const _0x4dde47=include(_0x275556[_0x5e6256(0xd1)]+_0x5e6256(0xef)+_0x275556[_0x5e6256(0xf9)]+_0x5e6256(0xfe)+(lodash[_0x5e6256(0xc8)](_0x275556[_0x5e6256(0x106)],'ts')?'ts':'js'));if(lodash[_0x5e6256(0xf3)](_0x4dde47[_0x5e6256(0x102)])&&_0x4dde47[_0x5e6256(0x102)]['length']>0x0)for(let _0x34c627 in _0x4dde47['middleware']){if(((_0x4a7aae=_0x4dde47===null||_0x4dde47===void 0x0?void 0x0:_0x4dde47[_0x5e6256(0x109)])===null||_0x4a7aae===void 0x0?void 0x0:_0x4a7aae['length'])>0x0&&_0x4dde47[_0x5e6256(0x109)][_0x5e6256(0xf5)](_0x4dde47['middleware'][_0x34c627])!=-0x1)continue;_0x4fba1e['middleware']['push'](_0x4dde47[_0x5e6256(0x102)][_0x34c627]);}const _0x518c92=(0x0,core_1[_0x5e6256(0xc9)])(action_1['APPSCONFIG_KEY'],action_1[_0x5e6256(0xc5)])||{};_0x518c92[''+_0x275556[_0x5e6256(0xf9)]]=_0x4dde47,(0x0,core_1[_0x5e6256(0xe4)])(action_1[_0x5e6256(0xd2)],_0x518c92,action_1['AppsConfigTmp']);}_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)][_0x5e6256(0xc4)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x508af6),(0x0,core_1[_0x5e6256(0xd8)])(_0x4fba1e[_0x5e6256(0xf8)],_0x4fba1e)(_0x508af6),(0x0,core_1['saveClassMetadata'])(action_1[_0x5e6256(0xc0)],{'prefix':_0x4fba1e['prefix'],'pprefix':_0x275556[_0x5e6256(0xf8)],'module':_0x275556['module'],'filepath':_0x275556['filepath'],'routerOptions':_0x4fba1e},_0x508af6);}else _0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)]?'/'+_0x4fba1e[_0x5e6256(0xf8)]:'/'+_0x275556['route'],_0x275556[_0x5e6256(0xf8)]&&(_0x4fba1e[_0x5e6256(0xf8)]='/'+_0x275556['prefix']+'/'+_0x4fba1e['prefix']),_0x4fba1e[_0x5e6256(0xf8)]=_0x4fba1e[_0x5e6256(0xf8)][_0x5e6256(0xc4)]()[_0x5e6256(0x107)](/\/{2,}/g,'/'),(0x0,core_1[_0x5e6256(0xc2)])(action_1[_0x5e6256(0xc0)],_0x508af6),(0x0,core_1[_0x5e6256(0xd8)])(_0x4fba1e[_0x5e6256(0xf8)],_0x4fba1e)(_0x508af6),(0x0,core_1[_0x5e6256(0xe4)])(action_1[_0x5e6256(0xc0)],{'prefix':_0x4fba1e[_0x5e6256(0xf8)],'module':_0x275556['module'],'pprefix':_0x275556[_0x5e6256(0xf8)],'filepath':_0x275556[_0x5e6256(0x106)],'routerOptions':_0x4fba1e},_0x508af6);};}exports[a3_0x3504be(0xee)]=Action,Action[a3_0x3504be(0xfa)]=function(_0x2da35b,_0x451d1d='/',_0x3beb54={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x26c8b9,_0x252cbd,_0x596c01)=>{ActionApi(_0x2da35b,'get',_0x451d1d,_0x3beb54)(_0x26c8b9,_0x252cbd,_0x596c01);};},Action['post']=function(_0x51bf2d,_0x1fb2c5='/',_0x38605a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x501da1,_0x2455c6,_0x44641c)=>{const _0x22f486=a3_0x43a8;ActionApi(_0x51bf2d,_0x22f486(0xc7),_0x1fb2c5,_0x38605a)(_0x501da1,_0x2455c6,_0x44641c);};};function ActionApi(_0x180392,_0x5b0635=a3_0x3504be(0xfa),_0x3bbecf='/',_0x238031={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xb25587,_0x356bb3,_0x510d81)=>{const _0x5e1270=a3_0x43a8;var _0x3d08c7,_0x20227f,_0x217923;!_0x238031['middleware']&&(_0x238031[_0x5e1270(0x102)]=[]);!((_0x3d08c7=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0xf1)])===null||_0x3d08c7===void 0x0?void 0x0:_0x3d08c7[_0x5e1270(0xff)])&&(_0x238031[_0x5e1270(0xf1)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x5e1270(0xd0)}});if(!_0x3bbecf)_0x3bbecf='/';else typeof _0x3bbecf=='string'&&(!_0x3bbecf[_0x5e1270(0xeb)]('/')&&!_0x3bbecf[_0x5e1270(0xeb)]('-')&&(_0x3bbecf='/'+_0x3bbecf));typeof _0x238031[_0x5e1270(0xc1)]==_0x5e1270(0xca)&&(_0x238031[_0x5e1270(0xc1)]=!![]);if(((_0x20227f=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0x102)])===null||_0x20227f===void 0x0?void 0x0:_0x20227f['length'])>0x0&&((_0x217923=_0x238031===null||_0x238031===void 0x0?void 0x0:_0x238031[_0x5e1270(0x109)])===null||_0x217923===void 0x0?void 0x0:_0x217923[_0x5e1270(0xea)])>0x0)for(let _0x1472e9 in _0x238031[_0x5e1270(0x102)]){_0x238031[_0x5e1270(0x109)][_0x5e1270(0xf5)](_0x238031['middleware'][_0x1472e9])!==-0x1&&(_0x238031[_0x5e1270(0x102)][_0x1472e9]=null);}_0x238031['routerName']=_0x180392,(0x0,validator_1['Validator'])(_0x238031['validate'])(_0xb25587,_0x356bb3,_0x510d81),(0x0,core_2[_0x5e1270(0xcd)])(Object[_0x5e1270(0xe6)](_0x238031,{'path':_0x3bbecf,'requestMethod':(_0x5b0635||_0x5e1270(0xfa))[_0x5e1270(0xc4)]()}))(_0xb25587,_0x356bb3,_0x510d81),(0x0,core_2[_0x5e1270(0xda)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x3bbecf,'method':_0x356bb3,'apimit':_0x238031[_0x5e1270(0xc1)],'intercept':_0x238031[_0x5e1270(0xdf)],'routerName':_0x238031[_0x5e1270(0xe2)],'description':_0x238031[_0x5e1270(0x108)],'middleware':(_0x238031['middleware']||[])[_0x5e1270(0xfd)](_0xe0b565=>!!_0xe0b565),'requestMethod':(_0x5b0635||_0x5e1270(0xfa))['toLowerCase']()},_0xb25587),(0x0,core_2[_0x5e1270(0xe0)])(action_1[_0x5e1270(0xf0)],{'path':_0x3bbecf,'method':_0x356bb3,'apimit':_0x238031['apimit'],'intercept':_0x238031['intercept'],'routerName':_0x238031[_0x5e1270(0xe2)],'description':_0x238031['description'],'middleware':(_0x238031[_0x5e1270(0x102)]||[])['filter'](_0x37409f=>!!_0x37409f),'requestMethod':(_0x5b0635||_0x5e1270(0xfa))[_0x5e1270(0xc4)]()})(_0xb25587,_0x356bb3,_0x510d81);};}function a3_0x4a84(){const _0x140517=['22408SsTDBy','intercept','createCustomMethodDecorator','toString','routerName','trim','saveClassMetadata','split','assign','substring','63PsypmM','ActionApi','length','startsWith','route','constructor','Action','/apps/','ACTION_ROUTE_KEY','validate','__esModule','isArray','/controller/','indexOf','\x20文件请放在apps/','basic/controller/','prefix','module','get','567ZTcoba','cwd','filter','/config.','validationOptions','splice','510220KEDRxq','middleware','58100NxSEou','join','2VxtkOp','filepath','replace','description','middlewareIgnore','ACTION_KEY','apimit','saveModule','search','toLowerCase','AppsConfigTmp','../types/action','post','endsWith','getClassMetadata','undefined','3235280MDZrlw','(((.+)+)+)+$','RequestMapping','apps/','-controller','string','rootpath','APPSCONFIG_KEY','match','182319KTJJEe','app/controller/','defineProperty','700644mbhdqQ','Controller','3292344CKnxFT','attachClassMetadata','@midwayjs/core','tagName','-action'];a3_0x4a84=function(){return _0x140517;};return a3_0x4a84();}function a3_0x43a8(_0x353a78,_0x51f2d1){const _0x181945=a3_0x4a84();return a3_0x43a8=function(_0x4bbcaf,_0x5a9602){_0x4bbcaf=_0x4bbcaf-0xc0;let _0x4a84a7=_0x181945[_0x4bbcaf];return _0x4a84a7;},a3_0x43a8(_0x353a78,_0x51f2d1);}exports[a3_0x3504be(0xe9)]=ActionApi;function parseRoute(_0x461b56){const _0x3c6760=a3_0x3504be;_0x461b56=_0x461b56[_0x3c6760(0x107)](/(\\|\/)/g,'/');const _0x145d75=process[_0x3c6760(0xfc)]()[_0x3c6760(0x107)](/(\\|\/)/g,'/'),_0x230475=_0x461b56[_0x3c6760(0xe7)](0x0,_0x145d75[_0x3c6760(0xea)]+_0x461b56['substring'](_0x145d75[_0x3c6760(0xea)]+0x1)[_0x3c6760(0xf5)]('/')+0x1),_0x5f3fbf=_0x461b56[_0x3c6760(0xe7)](_0x230475[_0x3c6760(0xea)]+0x1)[_0x3c6760(0x107)](/(\\|\/)/g,'/'),_0x14cf40={'route':'','prefix':![],'module':![],'rootpath':_0x230475,'filepath':_0x5f3fbf};if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xd5))||_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xf7))){const _0x5d0fc5=_0x5f3fbf['substring']((_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xd5))?_0x3c6760(0xd5):_0x3c6760(0xf7))[_0x3c6760(0xea)])['split']('/')['filter'](_0x56f6eb=>_0x56f6eb&&_0x56f6eb[_0x3c6760(0xe3)]());return _0x5d0fc5[_0x3c6760(0xea)]>0x1&&(_0x14cf40['prefix']=_0x5d0fc5[0x0][_0x3c6760(0xc4)](),_0x5d0fc5[_0x3c6760(0x100)](0x0,0x1)),_0x14cf40[_0x3c6760(0xec)]=('/'+_0x5d0fc5[_0x3c6760(0x104)]('/'))[_0x3c6760(0x107)](/(\.ts|\.js)$/,'')[_0x3c6760(0x107)](/\/{2,}/g,'/')[_0x3c6760(0xd3)](/[\/|A-Z]*[^A-Z]+/g)[_0x3c6760(0x104)]('-')[_0x3c6760(0xc4)]()[_0x3c6760(0x107)](/\/\-/g,'/'),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xdd))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xea)]-0x7)),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xcf))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xea)]-0xb)),_0x14cf40;}else{if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xce))){const _0x955fed=_0x5f3fbf[_0x3c6760(0xe7)](0x0,_0x5f3fbf[_0x3c6760(0xf5)](_0x3c6760(0xef))+0x5),_0xf0185a=_0x5f3fbf[_0x3c6760(0xe7)](_0x955fed[_0x3c6760(0xea)]+0x1)[_0x3c6760(0x107)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x5f3fbf[_0x3c6760(0xeb)](_0x3c6760(0xce)+_0xf0185a+'/controller/')){const _0x374cdf=_0x5f3fbf[_0x3c6760(0xe7)]((_0x955fed+'/'+_0xf0185a+_0x3c6760(0xf4))[_0x3c6760(0xea)])[_0x3c6760(0xe5)]('/')[_0x3c6760(0xfd)](_0x1e8ab7=>_0x1e8ab7&&_0x1e8ab7[_0x3c6760(0xe3)]());return _0x374cdf[_0x3c6760(0xea)]>0x1&&(_0x14cf40[_0x3c6760(0xf8)]=_0x374cdf[0x0][_0x3c6760(0xc4)](),_0x374cdf['splice'](0x0,0x1)),_0x14cf40['module']=_0xf0185a,_0x14cf40[_0x3c6760(0xec)]=('/'+_0xf0185a+'/'+_0x374cdf[_0x3c6760(0x104)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x3c6760(0xd3)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')['toLowerCase']()[_0x3c6760(0x107)](/\/\-/g,'/'),_0x14cf40[_0x3c6760(0xec)]['endsWith'](_0x3c6760(0xdd))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xe7)](0x0,_0x14cf40['route'][_0x3c6760(0xea)]-0x7)),_0x14cf40[_0x3c6760(0xec)][_0x3c6760(0xc8)](_0x3c6760(0xcf))&&(_0x14cf40[_0x3c6760(0xec)]=_0x14cf40[_0x3c6760(0xec)]['substring'](0x0,_0x14cf40[_0x3c6760(0xec)]['length']-0xb)),_0x14cf40;}throw new Error(_0x5f3fbf+_0x3c6760(0xf6)+_0xf0185a+'/controller/文件下');}}throw new Error(_0x5f3fbf+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;
|
|
1
|
+
const a3_0xd9054b=a3_0x597a;function a3_0x19aa(){const _0x2e1ba1=['/controller/文件下','join','search','attachClassMetadata','5wNxnRc','endsWith','replace','substring','RequestMapping','-controller','tagName','ACTION_KEY','525872hcLdEG','/apps/','validationOptions','createCustomMethodDecorator','toLowerCase','APPSCONFIG_KEY','push','apps/','__esModule','length','ActionApi','84ITaBFM','AppsConfigTmp','87172rLPfJv','middleware','apimit','(((.+)+)+)+$','../types/action','constructor','Action','/controller/','parseRoute','existsSync','@anncic-api/validator','route','Controller','\x20文件请放在app/controller/文件下','post','2494093zxIHSc','/config.','4417916yugIIu','app/controller/','isArray','module','match','routerName','validate','-action','filepath','8ypKdnq','startsWith','description','prefix','filter','get','ACTION_ROUTE_KEY','indexOf','saveClassMetadata','intercept','splice','split','middlewareIgnore','Validator','saveModule','18621920VMfFuu','3749940ehOccp','assign','11FzJYDJ','4843518zRZjwy','rootpath','trim','toString','basic/controller/','string'];a3_0x19aa=function(){return _0x2e1ba1;};return a3_0x19aa();}(function(_0x4f08b7,_0x30fc16){const _0x534e09=a3_0x597a,_0x3318bd=_0x4f08b7();while(!![]){try{const _0x2f4b04=-parseInt(_0x534e09(0xd1))/0x1+-parseInt(_0x534e09(0x92))/0x2*(-parseInt(_0x534e09(0x90))/0x3)+parseInt(_0x534e09(0xa3))/0x4+-parseInt(_0x534e09(0xc9))/0x5*(-parseInt(_0x534e09(0xbf))/0x6)+-parseInt(_0x534e09(0xa1))/0x7*(parseInt(_0x534e09(0xac))/0x8)+parseInt(_0x534e09(0xbc))/0x9+-parseInt(_0x534e09(0xbb))/0xa*(parseInt(_0x534e09(0xbe))/0xb);if(_0x2f4b04===_0x30fc16)break;else _0x3318bd['push'](_0x3318bd['shift']());}catch(_0x1a0e21){_0x3318bd['push'](_0x3318bd['shift']());}}}(a3_0x19aa,0xc4655));const a3_0x1ef243=(function(){let _0x490723=!![];return function(_0x2e702e,_0x4cf2ad){const _0x3be76c=_0x490723?function(){if(_0x4cf2ad){const _0x3fd8e9=_0x4cf2ad['apply'](_0x2e702e,arguments);return _0x4cf2ad=null,_0x3fd8e9;}}:function(){};return _0x490723=![],_0x3be76c;};}()),a3_0x51d3c1=a3_0x1ef243(this,function(){const _0x44b861=a3_0x597a;return a3_0x51d3c1[_0x44b861(0xc2)]()['search']('(((.+)+)+)+$')[_0x44b861(0xc2)]()[_0x44b861(0x97)](a3_0x51d3c1)[_0x44b861(0xc7)](_0x44b861(0x95));});a3_0x51d3c1();'use strict';Object['defineProperty'](exports,a3_0xd9054b(0xd9),{'value':!![]}),exports[a3_0xd9054b(0x9a)]=exports[a3_0xd9054b(0x8f)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0xd9054b(0x9c)),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),action_1=require(a3_0xd9054b(0x96));function Action(_0x452b36,_0x46e8b1,_0x4d11ec={'middleware':[],'sensitive':!![]}){return _0x753e34=>{const _0x5455ae=a3_0x597a;var _0x5df4c3;_0x4d11ec[_0x5455ae(0xcf)]=_0x46e8b1;const _0x43f99b=parseRoute(_0x452b36);if(_0x43f99b[_0x5455ae(0xa6)]){_0x4d11ec['prefix']=_0x4d11ec[_0x5455ae(0xaf)]?'/'+_0x43f99b[_0x5455ae(0xa6)]+'/'+_0x4d11ec[_0x5455ae(0xaf)]:'/'+_0x43f99b['route'];_0x43f99b[_0x5455ae(0xaf)]&&(_0x4d11ec[_0x5455ae(0xaf)]='/'+_0x43f99b['prefix']+'/'+_0x4d11ec['prefix']);if(fs[_0x5455ae(0x9b)](_0x43f99b['rootpath']+_0x5455ae(0xd2)+_0x43f99b[_0x5455ae(0xa6)]+'/config.'+(lodash[_0x5455ae(0xca)](_0x43f99b['filepath'],'ts')?'ts':'js'))){const _0x2e210f=include(_0x43f99b[_0x5455ae(0xc0)]+_0x5455ae(0xd2)+_0x43f99b[_0x5455ae(0xa6)]+_0x5455ae(0xa2)+(lodash[_0x5455ae(0xca)](_0x43f99b[_0x5455ae(0xab)],'ts')?'ts':'js'));if(lodash[_0x5455ae(0xa5)](_0x2e210f[_0x5455ae(0x93)])&&_0x2e210f[_0x5455ae(0x93)][_0x5455ae(0x8e)]>0x0)for(let _0x1b40a9 in _0x2e210f[_0x5455ae(0x93)]){if(((_0x5df4c3=_0x2e210f===null||_0x2e210f===void 0x0?void 0x0:_0x2e210f[_0x5455ae(0xb8)])===null||_0x5df4c3===void 0x0?void 0x0:_0x5df4c3['length'])>0x0&&_0x2e210f[_0x5455ae(0xb8)][_0x5455ae(0xb3)](_0x2e210f['middleware'][_0x1b40a9])!=-0x1)continue;_0x4d11ec[_0x5455ae(0x93)][_0x5455ae(0xd7)](_0x2e210f[_0x5455ae(0x93)][_0x1b40a9]);}const _0x396f79=(0x0,core_1['getClassMetadata'])(action_1[_0x5455ae(0xd6)],action_1[_0x5455ae(0x91)])||{};_0x396f79[''+_0x43f99b[_0x5455ae(0xa6)]]=_0x2e210f,(0x0,core_1['saveClassMetadata'])(action_1[_0x5455ae(0xd6)],_0x396f79,action_1[_0x5455ae(0x91)]);}_0x4d11ec[_0x5455ae(0xaf)]=_0x4d11ec[_0x5455ae(0xaf)]['toLowerCase']()[_0x5455ae(0xcb)](/\/{2,}/g,'/'),(0x0,core_1[_0x5455ae(0xba)])(action_1['ACTION_KEY'],_0x753e34),(0x0,core_1[_0x5455ae(0x9e)])(_0x4d11ec['prefix'],_0x4d11ec)(_0x753e34),(0x0,core_1[_0x5455ae(0xb4)])(action_1['ACTION_KEY'],{'prefix':_0x4d11ec[_0x5455ae(0xaf)],'pprefix':_0x43f99b[_0x5455ae(0xaf)],'module':_0x43f99b[_0x5455ae(0xa6)],'filepath':_0x43f99b[_0x5455ae(0xab)],'routerOptions':_0x4d11ec},_0x753e34);}else _0x4d11ec['prefix']=_0x4d11ec['prefix']?'/'+_0x4d11ec[_0x5455ae(0xaf)]:'/'+_0x43f99b[_0x5455ae(0x9d)],_0x43f99b[_0x5455ae(0xaf)]&&(_0x4d11ec[_0x5455ae(0xaf)]='/'+_0x43f99b[_0x5455ae(0xaf)]+'/'+_0x4d11ec['prefix']),_0x4d11ec[_0x5455ae(0xaf)]=_0x4d11ec[_0x5455ae(0xaf)][_0x5455ae(0xd5)]()[_0x5455ae(0xcb)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x5455ae(0xd0)],_0x753e34),(0x0,core_1[_0x5455ae(0x9e)])(_0x4d11ec[_0x5455ae(0xaf)],_0x4d11ec)(_0x753e34),(0x0,core_1[_0x5455ae(0xb4)])(action_1[_0x5455ae(0xd0)],{'prefix':_0x4d11ec[_0x5455ae(0xaf)],'module':_0x43f99b[_0x5455ae(0xa6)],'pprefix':_0x43f99b['prefix'],'filepath':_0x43f99b[_0x5455ae(0xab)],'routerOptions':_0x4d11ec},_0x753e34);};}exports[a3_0xd9054b(0x98)]=Action,Action[a3_0xd9054b(0xb1)]=function(_0x110f5e,_0x25b1eb='/',_0x20bf2f={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5049f9,_0x4f1adf,_0x51ae71)=>{ActionApi(_0x110f5e,'get',_0x25b1eb,_0x20bf2f)(_0x5049f9,_0x4f1adf,_0x51ae71);};},Action[a3_0xd9054b(0xa0)]=function(_0x445278,_0x17d2ab='/',_0x429c25={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x12cfee,_0x1af5f8,_0x2192f1)=>{const _0x516f68=a3_0x597a;ActionApi(_0x445278,_0x516f68(0xa0),_0x17d2ab,_0x429c25)(_0x12cfee,_0x1af5f8,_0x2192f1);};};function ActionApi(_0x4057e0,_0x389a29=a3_0xd9054b(0xb1),_0x4b6f1b='/',_0x1c556a={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x1875db,_0xb43c5c,_0x5def2b)=>{const _0x58a026=a3_0x597a;var _0x2a9985,_0x289c4f,_0x1c9356;!_0x1c556a[_0x58a026(0x93)]&&(_0x1c556a[_0x58a026(0x93)]=[]);!((_0x2a9985=_0x1c556a===null||_0x1c556a===void 0x0?void 0x0:_0x1c556a[_0x58a026(0xa9)])===null||_0x2a9985===void 0x0?void 0x0:_0x2a9985[_0x58a026(0xd3)])&&(_0x1c556a['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x58a026(0xc4)}});if(!_0x4b6f1b)_0x4b6f1b='/';else typeof _0x4b6f1b=='string'&&(!_0x4b6f1b[_0x58a026(0xad)]('/')&&!_0x4b6f1b[_0x58a026(0xad)]('-')&&(_0x4b6f1b='/'+_0x4b6f1b));typeof _0x1c556a[_0x58a026(0x94)]=='undefined'&&(_0x1c556a[_0x58a026(0x94)]=!![]);if(((_0x289c4f=_0x1c556a===null||_0x1c556a===void 0x0?void 0x0:_0x1c556a['middleware'])===null||_0x289c4f===void 0x0?void 0x0:_0x289c4f[_0x58a026(0x8e)])>0x0&&((_0x1c9356=_0x1c556a===null||_0x1c556a===void 0x0?void 0x0:_0x1c556a[_0x58a026(0xb8)])===null||_0x1c9356===void 0x0?void 0x0:_0x1c9356[_0x58a026(0x8e)])>0x0)for(let _0x495202 in _0x1c556a[_0x58a026(0x93)]){_0x1c556a['middlewareIgnore'][_0x58a026(0xb3)](_0x1c556a[_0x58a026(0x93)][_0x495202])!==-0x1&&(_0x1c556a[_0x58a026(0x93)][_0x495202]=null);}_0x1c556a[_0x58a026(0xa8)]=_0x4057e0,(0x0,validator_1[_0x58a026(0xb9)])(_0x1c556a['validate'])(_0x1875db,_0xb43c5c,_0x5def2b),(0x0,core_2[_0x58a026(0xcd)])(Object[_0x58a026(0xbd)](_0x1c556a,{'path':_0x4b6f1b,'requestMethod':(_0x389a29||_0x58a026(0xb1))[_0x58a026(0xd5)]()}))(_0x1875db,_0xb43c5c,_0x5def2b),(0x0,core_2[_0x58a026(0xc8)])(action_1[_0x58a026(0xb2)],{'path':_0x4b6f1b,'method':_0xb43c5c,'apimit':_0x1c556a[_0x58a026(0x94)],'intercept':_0x1c556a[_0x58a026(0xb5)],'routerName':_0x1c556a[_0x58a026(0xa8)],'description':_0x1c556a[_0x58a026(0xae)],'middleware':(_0x1c556a[_0x58a026(0x93)]||[])['filter'](_0x4be910=>!!_0x4be910),'requestMethod':(_0x389a29||_0x58a026(0xb1))[_0x58a026(0xd5)]()},_0x1875db),(0x0,core_2[_0x58a026(0xd4)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x4b6f1b,'method':_0xb43c5c,'apimit':_0x1c556a[_0x58a026(0x94)],'intercept':_0x1c556a[_0x58a026(0xb5)],'routerName':_0x1c556a[_0x58a026(0xa8)],'description':_0x1c556a['description'],'middleware':(_0x1c556a[_0x58a026(0x93)]||[])[_0x58a026(0xb0)](_0x1e9d07=>!!_0x1e9d07),'requestMethod':(_0x389a29||_0x58a026(0xb1))[_0x58a026(0xd5)]()})(_0x1875db,_0xb43c5c,_0x5def2b);};}exports[a3_0xd9054b(0x8f)]=ActionApi;function parseRoute(_0x4e9f61){const _0x2cec85=a3_0xd9054b;_0x4e9f61=_0x4e9f61[_0x2cec85(0xcb)](/(\\|\/)/g,'/');const _0x36c38e=process['cwd']()[_0x2cec85(0xcb)](/(\\|\/)/g,'/'),_0x2fd19c=_0x4e9f61[_0x2cec85(0xcc)](0x0,_0x36c38e['length']+_0x4e9f61['substring'](_0x36c38e['length']+0x1)[_0x2cec85(0xb3)]('/')+0x1),_0x39307e=_0x4e9f61['substring'](_0x2fd19c[_0x2cec85(0x8e)]+0x1)[_0x2cec85(0xcb)](/(\\|\/)/g,'/'),_0x4f275c={'route':'','prefix':![],'module':![],'rootpath':_0x2fd19c,'filepath':_0x39307e};if(_0x39307e[_0x2cec85(0xad)](_0x2cec85(0xa4))||_0x39307e[_0x2cec85(0xad)]('basic/controller/')){const _0x4f0d08=_0x39307e['substring']((_0x39307e['startsWith']('app/controller/')?_0x2cec85(0xa4):_0x2cec85(0xc3))[_0x2cec85(0x8e)])['split']('/')[_0x2cec85(0xb0)](_0x401808=>_0x401808&&_0x401808[_0x2cec85(0xc1)]());return _0x4f0d08[_0x2cec85(0x8e)]>0x1&&(_0x4f275c[_0x2cec85(0xaf)]=_0x4f0d08[0x0]['toLowerCase'](),_0x4f0d08[_0x2cec85(0xb6)](0x0,0x1)),_0x4f275c[_0x2cec85(0x9d)]=('/'+_0x4f0d08[_0x2cec85(0xc6)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x2cec85(0xcb)](/\/{2,}/g,'/')[_0x2cec85(0xa7)](/[\/|A-Z]*[^A-Z]+/g)[_0x2cec85(0xc6)]('-')[_0x2cec85(0xd5)]()[_0x2cec85(0xcb)](/\/\-/g,'/'),_0x4f275c['route'][_0x2cec85(0xca)](_0x2cec85(0xaa))&&(_0x4f275c['route']=_0x4f275c[_0x2cec85(0x9d)]['substring'](0x0,_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0x8e)]-0x7)),_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0xca)](_0x2cec85(0xce))&&(_0x4f275c[_0x2cec85(0x9d)]=_0x4f275c['route'][_0x2cec85(0xcc)](0x0,_0x4f275c['route']['length']-0xb)),_0x4f275c;}else{if(_0x39307e[_0x2cec85(0xad)](_0x2cec85(0xd8))){const _0x297f65=_0x39307e[_0x2cec85(0xcc)](0x0,_0x39307e[_0x2cec85(0xb3)](_0x2cec85(0xd2))+0x5),_0x7432d0=_0x39307e[_0x2cec85(0xcc)](_0x297f65[_0x2cec85(0x8e)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x2cec85(0xb7)]('/')[0x0];if(_0x39307e['startsWith'](_0x2cec85(0xd8)+_0x7432d0+_0x2cec85(0x99))){const _0x2f3f56=_0x39307e['substring']((_0x297f65+'/'+_0x7432d0+_0x2cec85(0x99))[_0x2cec85(0x8e)])['split']('/')[_0x2cec85(0xb0)](_0x573c4f=>_0x573c4f&&_0x573c4f[_0x2cec85(0xc1)]());return _0x2f3f56[_0x2cec85(0x8e)]>0x1&&(_0x4f275c[_0x2cec85(0xaf)]=_0x2f3f56[0x0][_0x2cec85(0xd5)](),_0x2f3f56[_0x2cec85(0xb6)](0x0,0x1)),_0x4f275c[_0x2cec85(0xa6)]=_0x7432d0,_0x4f275c['route']=('/'+_0x7432d0+'/'+_0x2f3f56[_0x2cec85(0xc6)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x2cec85(0xcb)](/\/{2,}/g,'/')[_0x2cec85(0xa7)](/[\/|A-Z]*[^A-Z]+/g)[_0x2cec85(0xc6)]('-')[_0x2cec85(0xd5)]()[_0x2cec85(0xcb)](/\/\-/g,'/'),_0x4f275c['route'][_0x2cec85(0xca)]('-action')&&(_0x4f275c[_0x2cec85(0x9d)]=_0x4f275c['route'][_0x2cec85(0xcc)](0x0,_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0x8e)]-0x7)),_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0xca)](_0x2cec85(0xce))&&(_0x4f275c['route']=_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0xcc)](0x0,_0x4f275c[_0x2cec85(0x9d)][_0x2cec85(0x8e)]-0xb)),_0x4f275c;}throw new Error(_0x39307e+'\x20文件请放在apps/'+_0x7432d0+_0x2cec85(0xc5));}}throw new Error(_0x39307e+_0x2cec85(0x9f));}function a3_0x597a(_0x58c258,_0x3f580c){const _0x216a20=a3_0x19aa();return a3_0x597a=function(_0x51d3c1,_0x1ef243){_0x51d3c1=_0x51d3c1-0x8e;let _0x19aa50=_0x216a20[_0x51d3c1];return _0x19aa50;},a3_0x597a(_0x58c258,_0x3f580c);}exports[a3_0xd9054b(0x9a)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4_0x21ed(_0x3d66ba,_0x2f8b77){const _0x1ee6db=a4_0x1e3b();return a4_0x21ed=function(_0x246e64,_0x1d956e){_0x246e64=_0x246e64-0x187;let _0x1e3b5d=_0x1ee6db[_0x246e64];return _0x1e3b5d;},a4_0x21ed(_0x3d66ba,_0x2f8b77);}const a4_0x19a96e=a4_0x21ed;(function(_0x45f14c,_0x577ead){const _0x5a69d3=a4_0x21ed,_0x417c6e=_0x45f14c();while(!![]){try{const _0x5b2b17=parseInt(_0x5a69d3(0x18d))/0x1+-parseInt(_0x5a69d3(0x18f))/0x2+-parseInt(_0x5a69d3(0x195))/0x3+parseInt(_0x5a69d3(0x19a))/0x4*(-parseInt(_0x5a69d3(0x19b))/0x5)+-parseInt(_0x5a69d3(0x18c))/0x6+-parseInt(_0x5a69d3(0x197))/0x7+parseInt(_0x5a69d3(0x1a0))/0x8;if(_0x5b2b17===_0x577ead)break;else _0x417c6e['push'](_0x417c6e['shift']());}catch(_0x2926d4){_0x417c6e['push'](_0x417c6e['shift']());}}}(a4_0x1e3b,0x1dc3b));const a4_0x1d956e=(function(){let _0x2dbcc1=!![];return function(_0x2c2fba,_0x9c1271){const _0x37d44f=_0x2dbcc1?function(){const _0x48b3f7=a4_0x21ed;if(_0x9c1271){const _0x50825c=_0x9c1271[_0x48b3f7(0x193)](_0x2c2fba,arguments);return _0x9c1271=null,_0x50825c;}}:function(){};return _0x2dbcc1=![],_0x37d44f;};}()),a4_0x246e64=a4_0x1d956e(this,function(){const _0x46307f=a4_0x21ed;return a4_0x246e64[_0x46307f(0x190)]()[_0x46307f(0x19d)](_0x46307f(0x187))['toString']()[_0x46307f(0x18e)](a4_0x246e64)[_0x46307f(0x19d)](_0x46307f(0x187));});a4_0x246e64();'use strict';Object[a4_0x19a96e(0x189)](exports,a4_0x19a96e(0x19e),{'value':!![]}),exports[a4_0x19a96e(0x194)]=void 0x0;const core_1=require('@midwayjs/core'),ApitestService_1=require(a4_0x19a96e(0x199));function Apitest(_0x112cba=a4_0x19a96e(0x19f),_0x4d98e9){return(_0x3fe591,_0x493df9,_0x4fca7a)=>{const _0x15ff59=a4_0x21ed;return(0x0,core_1['RequestMapping'])({'path':_0x112cba,'requestMethod':_0x15ff59(0x18a)})(_0x3fe591,_0x493df9,_0x4fca7a),_0x4fca7a[_0x15ff59(0x198)]=async function(..._0x298261){const _0x2f026c=_0x15ff59;var _0x1b3b26;const _0x1dfb2d=(_0x1b3b26=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x1b3b26===void 0x0?void 0x0:_0x1b3b26['app'];if(_0x1dfb2d&&_0x1dfb2d['getConfig'](_0x2f026c(0x192))){const _0xf9becf=await _0x1dfb2d[_0x2f026c(0x188)]()[_0x2f026c(0x196)](ApitestService_1[_0x2f026c(0x191)]),_0x1b9288=await _0x1dfb2d[_0x2f026c(0x188)]()[_0x2f026c(0x196)](core_1[_0x2f026c(0x19c)]);return _0x1b9288[_0x2f026c(0x1a1)]()&&(_0x4d98e9[_0x2f026c(0x18b)]=!![]),await _0xf9becf['apidoc'](_0x4d98e9);}return'';},_0x4fca7a;};}exports[a4_0x19a96e(0x194)]=Apitest;function a4_0x1e3b(){const _0x3a940f=['constructor','397232XeXLxy','toString','ApitestService','apitest','apply','Apitest','487347mGtOUv','getAsync','139629dsXqSj','value','../service/ApitestService','328eLKuwI','7235zpDwPM','MidwayEnvironmentService','search','__esModule','/apitest','5514440thlksG','isDevelopmentEnvironment','(((.+)+)+)+$','getApplicationContext','defineProperty','get','filepath','648594PbyerO','40375nuklni'];a4_0x1e3b=function(){return _0x3a940f;};return a4_0x1e3b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x3c4c25=a5_0x3d4f;(function(_0x55c4ff,_0x341773){const _0x402387=a5_0x3d4f,_0x263e83=_0x55c4ff();while(!![]){try{const _0x1ff349=parseInt(_0x402387(0x156))/0x1+parseInt(_0x402387(0x15b))/0x2+parseInt(_0x402387(0x15e))/0x3+-parseInt(_0x402387(0x153))/0x4+-parseInt(_0x402387(0x158))/0x5+-parseInt(_0x402387(0x15c))/0x6+-parseInt(_0x402387(0x154))/0x7*(-parseInt(_0x402387(0x15f))/0x8);if(_0x1ff349===_0x341773)break;else _0x263e83['push'](_0x263e83['shift']());}catch(_0xcb170){_0x263e83['push'](_0x263e83['shift']());}}}(a5_0x1dfe,0x913f3));const a5_0x5d2fbd=(function(){let _0x1bc92f=!![];return function(_0x3ea372,_0x2121c5){const _0x4c0f8f=_0x1bc92f?function(){const _0x4eadf0=a5_0x3d4f;if(_0x2121c5){const _0x7c2028=_0x2121c5[_0x4eadf0(0x157)](_0x3ea372,arguments);return _0x2121c5=null,_0x7c2028;}}:function(){};return _0x1bc92f=![],_0x4c0f8f;};}()),a5_0x22b5be=a5_0x5d2fbd(this,function(){const _0x2d1bc3=a5_0x3d4f;return a5_0x22b5be[_0x2d1bc3(0x16d)]()[_0x2d1bc3(0x164)](_0x2d1bc3(0x16a))[_0x2d1bc3(0x16d)]()[_0x2d1bc3(0x15a)](a5_0x22b5be)[_0x2d1bc3(0x164)]('(((.+)+)+)+$');});a5_0x22b5be();function a5_0x1dfe(){const _0x14b65a=['toString','isArray','IIntercept','push','match','1126984thWIvL','42lXXZhX','Provide','128161coiSsT','apply','784935dWbshj','INTERCEPT_KEY','constructor','297860jjSXLb','4997640MlzuGG','includes','3148359irwvYd','720080hHTVaE','Scope','getClassMetadata','defineProperty','Intercept','search','saveClassMetadata','__esModule','ScopeEnum','toUpperCase','InterceptTargetTmp','(((.+)+)+)+$','Singleton','../types/intercept'];a5_0x1dfe=function(){return _0x14b65a;};return a5_0x1dfe();}'use strict';Object[a5_0x3c4c25(0x162)](exports,a5_0x3c4c25(0x166),{'value':!![]}),exports[a5_0x3c4c25(0x16f)]=exports[a5_0x3c4c25(0x163)]=void 0x0;function a5_0x3d4f(_0xbaa8f5,_0x1b5c70){const _0xe3b610=a5_0x1dfe();return a5_0x3d4f=function(_0x22b5be,_0x5d2fbd){_0x22b5be=_0x22b5be-0x153;let _0x1dfe17=_0xe3b610[_0x22b5be];return _0x1dfe17;},a5_0x3d4f(_0xbaa8f5,_0x1b5c70);}const core_1=require('@midwayjs/core'),intercept_1=require(a5_0x3c4c25(0x16c));function Intercept(_0x38f4c0){return _0x579d98=>{const _0x41e85e=a5_0x3d4f,_0x3e9bc5=(0x0,core_1[_0x41e85e(0x161)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x41e85e(0x169)])||{};for(let _0x2cb21e of Array[_0x41e85e(0x16e)](_0x38f4c0)?_0x38f4c0:[_0x38f4c0]){_0x2cb21e=_0x2cb21e[_0x41e85e(0x168)]();!(_0x3e9bc5===null||_0x3e9bc5===void 0x0?void 0x0:_0x3e9bc5[_0x2cb21e])&&(_0x3e9bc5[_0x2cb21e]=[]);if(_0x3e9bc5[_0x2cb21e][_0x41e85e(0x15d)](_0x579d98))continue;_0x3e9bc5[_0x2cb21e][_0x41e85e(0x170)](_0x579d98);}(0x0,core_1[_0x41e85e(0x155)])()(_0x579d98),(0x0,core_1[_0x41e85e(0x160)])(core_1[_0x41e85e(0x167)][_0x41e85e(0x16b)])(_0x579d98),(0x0,core_1[_0x41e85e(0x165)])(intercept_1[_0x41e85e(0x159)],_0x3e9bc5,intercept_1[_0x41e85e(0x169)]);};}exports[a5_0x3c4c25(0x163)]=Intercept;class IIntercept{async[a5_0x3c4c25(0x171)](_0x343399,_0x45ee08,_0x448863){return!![];}}exports[a5_0x3c4c25(0x16f)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0xb9d91f=a6_0x4e29;(function(_0x4b5dae,_0x3a8a4b){var _0x92ec41=a6_0x4e29,_0x51bc48=_0x4b5dae();while(!![]){try{var _0x14ac23=-parseInt(_0x92ec41(0x152))/0x1*(parseInt(_0x92ec41(0x165))/0x2)+parseInt(_0x92ec41(0x145))/0x3*(-parseInt(_0x92ec41(0x15b))/0x4)+-parseInt(_0x92ec41(0x161))/0x5*(parseInt(_0x92ec41(0x15c))/0x6)+-parseInt(_0x92ec41(0x160))/0x7*(-parseInt(_0x92ec41(0x14c))/0x8)+-parseInt(_0x92ec41(0x14d))/0x9*(parseInt(_0x92ec41(0x15e))/0xa)+-parseInt(_0x92ec41(0x142))/0xb*(-parseInt(_0x92ec41(0x148))/0xc)+parseInt(_0x92ec41(0x151))/0xd*(parseInt(_0x92ec41(0x159))/0xe);if(_0x14ac23===_0x3a8a4b)break;else _0x51bc48['push'](_0x51bc48['shift']());}catch(_0x467541){_0x51bc48['push'](_0x51bc48['shift']());}}}(a6_0x32ba,0xb1272));var a6_0x1530b5=(function(){var _0x295bed=!![];return function(_0x13eec7,_0x390c32){var _0x22558d=_0x295bed?function(){var _0x486eba=a6_0x4e29;if(_0x390c32){var _0x3f23e0=_0x390c32[_0x486eba(0x164)](_0x13eec7,arguments);return _0x390c32=null,_0x3f23e0;}}:function(){};return _0x295bed=![],_0x22558d;};}()),a6_0x2a07af=a6_0x1530b5(this,function(){var _0x4b06e6=a6_0x4e29;return a6_0x2a07af[_0x4b06e6(0x154)]()[_0x4b06e6(0x15a)]('(((.+)+)+)+$')[_0x4b06e6(0x154)]()[_0x4b06e6(0x143)](a6_0x2a07af)[_0x4b06e6(0x15a)](_0x4b06e6(0x150));});a6_0x2a07af();'use strict';function a6_0x4e29(_0x1ce26d,_0x5764cd){var _0x45d16d=a6_0x32ba();return a6_0x4e29=function(_0x2a07af,_0x1530b5){_0x2a07af=_0x2a07af-0x140;var _0x32ba1d=_0x45d16d[_0x2a07af];return _0x32ba1d;},a6_0x4e29(_0x1ce26d,_0x5764cd);}var __decorate=this&&this['__decorate']||function(_0x14841f,_0x202c04,_0x5a1471,_0x10aa58){var _0x1c9182=a6_0x4e29,_0x58ad83=arguments[_0x1c9182(0x144)],_0x43dd21=_0x58ad83<0x3?_0x202c04:_0x10aa58===null?_0x10aa58=Object[_0x1c9182(0x141)](_0x202c04,_0x5a1471):_0x10aa58,_0x4fdcc2;if(typeof Reflect===_0x1c9182(0x157)&&typeof Reflect[_0x1c9182(0x140)]==='function')_0x43dd21=Reflect[_0x1c9182(0x140)](_0x14841f,_0x202c04,_0x5a1471,_0x10aa58);else{for(var _0x48637e=_0x14841f[_0x1c9182(0x144)]-0x1;_0x48637e>=0x0;_0x48637e--)if(_0x4fdcc2=_0x14841f[_0x48637e])_0x43dd21=(_0x58ad83<0x3?_0x4fdcc2(_0x43dd21):_0x58ad83>0x3?_0x4fdcc2(_0x202c04,_0x5a1471,_0x43dd21):_0x4fdcc2(_0x202c04,_0x5a1471))||_0x43dd21;}return _0x58ad83>0x3&&_0x43dd21&&Object['defineProperty'](_0x202c04,_0x5a1471,_0x43dd21),_0x43dd21;},__metadata=this&&this['__metadata']||function(_0x4f9734,_0x4b6747){var _0x4fbd8a=a6_0x4e29;if(typeof Reflect===_0x4fbd8a(0x157)&&typeof Reflect[_0x4fbd8a(0x147)]==='function')return Reflect[_0x4fbd8a(0x147)](_0x4f9734,_0x4b6747);};Object[a6_0xb9d91f(0x158)](exports,a6_0xb9d91f(0x146),{'value':!![]}),exports[a6_0xb9d91f(0x163)]=void 0x0;class ApiError extends AnnError{}function a6_0x32ba(){var _0xf39dff=['getOwnPropertyDescriptor','29117JtGExY','constructor','length','45fzGnpS','__esModule','metadata','3732KdoIyj','TIMEOUT_LOGINTIME','HEADERS_SIGNATURE','design:type','232COwRMT','7568028vwcKNe','HEADERS_DEVICE','登录超时,请重新登录','(((.+)+)+)+$','15054qGdsBO','51197luisvn','HEADERS_CHECKCODE','toString','请求头信息不完整','HEADERS_LACK','object','defineProperty','8372AsXlBW','search','156628DemmyR','1002XjUPoY','请使用正确的设备','10OOPEAC','TIMEOUT','329539YLzIoc','17170RIvYws','验证失败,请重新登录','ApiError','apply','6YqbGmf','decorate'];a6_0x32ba=function(){return _0xf39dff;};return a6_0x32ba();}exports[a6_0xb9d91f(0x163)]=ApiError,ApiError['TIMEOUT']=0x19003,ApiError[a6_0xb9d91f(0x156)]=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a6_0xb9d91f(0x153)]=0x18e75,ApiError[a6_0xb9d91f(0x149)]=0x18e76,__decorate([AnnErrorMsg('请求超时,请重试'),__metadata('design:type',Object)],ApiError,a6_0xb9d91f(0x15f),void 0x0),__decorate([AnnErrorMsg(a6_0xb9d91f(0x155)),__metadata(a6_0xb9d91f(0x14b),Object)],ApiError,a6_0xb9d91f(0x156),void 0x0),__decorate([AnnErrorMsg(a6_0xb9d91f(0x15d)),__metadata('design:type',Object)],ApiError,a6_0xb9d91f(0x14e),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a6_0xb9d91f(0x14b),Object)],ApiError,a6_0xb9d91f(0x14a),void 0x0),__decorate([AnnErrorMsg(a6_0xb9d91f(0x162)),__metadata(a6_0xb9d91f(0x14b),Object)],ApiError,a6_0xb9d91f(0x153),void 0x0),__decorate([AnnErrorMsg(a6_0xb9d91f(0x14f)),__metadata(a6_0xb9d91f(0x14b),Object)],ApiError,a6_0xb9d91f(0x149),void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a7_0x3877(_0x5ca594,_0x397bc9){const _0x87ed7=a7_0x414b();return a7_0x3877=function(_0x4074e7,_0x1b1ef9){_0x4074e7=_0x4074e7-0x7b;let _0x414b47=_0x87ed7[_0x4074e7];return _0x414b47;},a7_0x3877(_0x5ca594,_0x397bc9);}const a7_0x57555b=a7_0x3877;function a7_0x414b(){const _0x26c7b9=['2919791TMAgcL','search','51264YSFkgv','__esModule','3997510pPQfYm','22csngrT','getClassMetadata','../types/action','959942XVVOiI','6qPChsC','24TXCVIo','11089917YZrbHn','42656497RyuVIx','apply','defineProperty','get','12pEnmMq','getAppsConfig','constructor','toString','APPSCONFIG_KEY','(((.+)+)+)+$','2444315LxYQHz','2aUjsNf','264gqHTZE'];a7_0x414b=function(){return _0x26c7b9;};return a7_0x414b();}(function(_0x4d81a0,_0x95aad9){const _0x1d032a=a7_0x3877,_0x3b2e3c=_0x4d81a0();while(!![]){try{const _0x5e4d73=parseInt(_0x1d032a(0x8f))/0x1*(-parseInt(_0x1d032a(0x80))/0x2)+parseInt(_0x1d032a(0x93))/0x3*(parseInt(_0x1d032a(0x90))/0x4)+parseInt(_0x1d032a(0x8e))/0x5*(parseInt(_0x1d032a(0x81))/0x6)+parseInt(_0x1d032a(0x91))/0x7*(parseInt(_0x1d032a(0x82))/0x8)+parseInt(_0x1d032a(0x83))/0x9+parseInt(_0x1d032a(0x7c))/0xa*(parseInt(_0x1d032a(0x7d))/0xb)+parseInt(_0x1d032a(0x88))/0xc*(-parseInt(_0x1d032a(0x84))/0xd);if(_0x5e4d73===_0x95aad9)break;else _0x3b2e3c['push'](_0x3b2e3c['shift']());}catch(_0x38fc9c){_0x3b2e3c['push'](_0x3b2e3c['shift']());}}}(a7_0x414b,0xa0c52));const a7_0x1b1ef9=(function(){let _0x42bbf6=!![];return function(_0x326e42,_0x58a22c){const _0x591005=_0x42bbf6?function(){const _0x6789a3=a7_0x3877;if(_0x58a22c){const _0x193a9a=_0x58a22c[_0x6789a3(0x85)](_0x326e42,arguments);return _0x58a22c=null,_0x193a9a;}}:function(){};return _0x42bbf6=![],_0x591005;};}()),a7_0x4074e7=a7_0x1b1ef9(this,function(){const _0x572147=a7_0x3877;return a7_0x4074e7['toString']()[_0x572147(0x92)](_0x572147(0x8d))[_0x572147(0x8b)]()[_0x572147(0x8a)](a7_0x4074e7)[_0x572147(0x92)](_0x572147(0x8d));});a7_0x4074e7();'use strict';Object[a7_0x57555b(0x86)](exports,a7_0x57555b(0x7b),{'value':!![]}),exports[a7_0x57555b(0x89)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x57555b(0x7f));function getAppsConfig(_0x3a34f4){const _0x2fd374=a7_0x57555b,_0x3685db=(0x0,core_1[_0x2fd374(0x7e)])(action_1[_0x2fd374(0x8c)],action_1['AppsConfigTmp'])||{};return _0x3a34f4?lodash[_0x2fd374(0x87)](_0x3685db,_0x3a34f4):_0x3685db;}exports[a7_0x57555b(0x89)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x56dadf=a8_0x5df8;(function(_0x361a69,_0x4bff4a){const _0x5752fe=a8_0x5df8,_0x2f2fa3=_0x361a69();while(!![]){try{const _0x245fc8=-parseInt(_0x5752fe(0x11e))/0x1*(parseInt(_0x5752fe(0xd6))/0x2)+-parseInt(_0x5752fe(0x123))/0x3*(-parseInt(_0x5752fe(0xd7))/0x4)+-parseInt(_0x5752fe(0xe4))/0x5*(-parseInt(_0x5752fe(0xdd))/0x6)+parseInt(_0x5752fe(0xf2))/0x7*(-parseInt(_0x5752fe(0x135))/0x8)+parseInt(_0x5752fe(0x122))/0x9*(parseInt(_0x5752fe(0x11c))/0xa)+-parseInt(_0x5752fe(0xd8))/0xb*(parseInt(_0x5752fe(0x124))/0xc)+parseInt(_0x5752fe(0x125))/0xd*(-parseInt(_0x5752fe(0xe2))/0xe);if(_0x245fc8===_0x4bff4a)break;else _0x2f2fa3['push'](_0x2f2fa3['shift']());}catch(_0x10c8cb){_0x2f2fa3['push'](_0x2f2fa3['shift']());}}}(a8_0x5401,0x470da));const a8_0x5c241e=(function(){let _0x36e360=!![];return function(_0x3be15d,_0x5e377f){const _0x5115e2=_0x36e360?function(){const _0x232af6=a8_0x5df8;if(_0x5e377f){const _0x48b9ee=_0x5e377f[_0x232af6(0xd4)](_0x3be15d,arguments);return _0x5e377f=null,_0x48b9ee;}}:function(){};return _0x36e360=![],_0x5115e2;};}()),a8_0x44e6d7=a8_0x5c241e(this,function(){const _0x5d9021=a8_0x5df8;return a8_0x44e6d7[_0x5d9021(0x130)]()['search']('(((.+)+)+)+$')[_0x5d9021(0x130)]()[_0x5d9021(0x111)](a8_0x44e6d7)[_0x5d9021(0x12d)](_0x5d9021(0xff));});a8_0x44e6d7();function a8_0x5401(){const _0x20dd40=['endsWith','routerOptions','99CmlXPM','1100181yPJGCd','2669544xuLMbe','78eTjIam','ACTION_KEY','QUERY','/static/apitest','indexOf','flags.description','intercept','String','search','default','allow','toString','flags.label','name','INJECT_CUSTOM_PARAM','required','264664qGIMuA','只允许:[','prefix','getMethodParamTypes','module','WEB_ROUTER_PARAM_KEY','Number','method','apply','find','218XTViJN','4zCGHJE','11ePmmMP','@midwayjs/core','summary','length','concat','108iaVwgR','static/apitest','Boolean','HEADERS','propertyData','339234oEuhCI','description','91040ywqvPa','replace','keys','filepath','get','listModule','BODY','key','items','object','join','routes','file','array','35ViSzpl','__esModule','FILESTREAM','children','tagName','defineProperty','FIELDS','limit','noreq','rules','query','../types/action','requestMethod','(((.+)+)+)+$','header','pprefix','filter','request','routerName','describe','File','title','getRoutes','push','args','isArray','substring','startsWith','path','max','parameterIndex','constructor','type','getClassMetadata','iterator','FILESSTREAM','RouteParamTypes','metadata','RULES_KEY','route','min','function','291730bfxIDy','string','1753QQbAgS','split'];a8_0x5401=function(){return _0x20dd40;};return a8_0x5401();}'use strict';function a8_0x5df8(_0x369e16,_0x4e2e34){const _0x52fc86=a8_0x5401();return a8_0x5df8=function(_0x44e6d7,_0x5c241e){_0x44e6d7=_0x44e6d7-0xd2;let _0x54010e=_0x52fc86[_0x44e6d7];return _0x54010e;},a8_0x5df8(_0x369e16,_0x4e2e34);}Object[a8_0x56dadf(0xf7)](exports,a8_0x56dadf(0xf3),{'value':!![]}),exports[a8_0x56dadf(0x108)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x56dadf(0xd9)),core_2=require(a8_0x56dadf(0xd9)),core_3=require(a8_0x56dadf(0xd9)),action_1=require(a8_0x56dadf(0xfd));function getRoutes(_0x2f6aad={'prefix':'/','module':![]}){const _0x3b82e6=a8_0x56dadf;var _0x3b3633,_0x2e5cde;const _0x5aac55=(0x0,core_3[_0x3b82e6(0xe9)])(action_1[_0x3b82e6(0x126)]),_0x5f97ab={},_0x5a39c2=Array[_0x3b82e6(0x10b)](_0x2f6aad[_0x3b82e6(0x102)]||[])?_0x2f6aad[_0x3b82e6(0x102)]||[]:[_0x2f6aad[_0x3b82e6(0x102)]];_0x23c1b8:for(const _0x540714 of _0x5aac55){let _0x16a576=(0x0,core_3[_0x3b82e6(0x113)])(action_1[_0x3b82e6(0x126)],_0x540714),_0x5b8d48=(0x0,core_3[_0x3b82e6(0x113)])(action_1['ACTION_ROUTE_KEY'],_0x540714);if(_0x16a576&&_0x5b8d48){let _0x413a1a=_0x16a576[_0x3b82e6(0x137)],_0x1f645f={};if(_0x2f6aad[_0x3b82e6(0x139)]&&(0x0,lodash_1[_0x3b82e6(0xe8)])(_0x16a576,'module',![])!=_0x2f6aad[_0x3b82e6(0x139)])continue _0x23c1b8;else{if(_0x2f6aad[_0x3b82e6(0x139)]===![]&&!!(0x0,lodash_1[_0x3b82e6(0xe8)])(_0x16a576,_0x3b82e6(0x139),null))continue _0x23c1b8;}if(_0x2f6aad[_0x3b82e6(0x137)]&&!_0x413a1a[_0x3b82e6(0x10d)](_0x2f6aad[_0x3b82e6(0x137)]))continue _0x23c1b8;_0x413a1a!=='/'?(_0x1f645f['summary']=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)][_0x3b82e6(0xf6)])||(/^\//['test'](_0x413a1a)?_0x413a1a[_0x3b82e6(0x11f)]('/')[0x1]:_0x413a1a),_0x1f645f[_0x3b82e6(0xe3)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)]['description'])||_0x1f645f[_0x3b82e6(0xda)],_0x1f645f[_0x3b82e6(0xef)]=[]):(_0x1f645f[_0x3b82e6(0xda)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576['routerOptions'][_0x3b82e6(0xf6)])||_0x3b82e6(0x12e),_0x1f645f[_0x3b82e6(0xe3)]=(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x121)][_0x3b82e6(0xe3)])||'',_0x1f645f[_0x3b82e6(0xef)]=[]);_0x2f6aad['filepath']&&(_0x1f645f['filepath']=_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0xe7)]);(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x101)])&&(_0x1f645f[_0x3b82e6(0x137)]=_0x16a576['pprefix']);(_0x16a576===null||_0x16a576===void 0x0?void 0x0:_0x16a576[_0x3b82e6(0x139)])&&(_0x1f645f['module']=_0x16a576[_0x3b82e6(0x139)]);let _0x36b767=(0x0,core_3['getClassMetadata'])(core_2[_0x3b82e6(0x133)],_0x540714)||{};if(typeof _0x5b8d48[Symbol[_0x3b82e6(0x114)]]===_0x3b82e6(0x11b))for(let _0x330736 of _0x5b8d48){if((_0x2f6aad===null||_0x2f6aad===void 0x0?void 0x0:_0x2f6aad[_0x3b82e6(0x12b)])&&!(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736[_0x3b82e6(0x12b)]))continue;let _0x1b6dcd={};_0x1b6dcd['method']=_0x330736[_0x3b82e6(0xfe)],_0x1b6dcd[_0x3b82e6(0x119)]=(_0x413a1a+_0x330736[_0x3b82e6(0x10e)])[_0x3b82e6(0xe5)](/\/{2,}/g,'/'),_0x1b6dcd[_0x3b82e6(0xda)]=(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736[_0x3b82e6(0x104)])||_0x1f645f[_0x3b82e6(0xda)]||_0x3b82e6(0x12e),_0x1b6dcd['description']=(_0x330736===null||_0x330736===void 0x0?void 0x0:_0x330736['description'])||'',_0x1b6dcd[_0x3b82e6(0x103)]=[];_0x1b6dcd['route'][_0x3b82e6(0x120)]('/')&&(_0x1b6dcd[_0x3b82e6(0x119)]=_0x1b6dcd[_0x3b82e6(0x119)][_0x3b82e6(0x10c)](0x0,_0x1b6dcd[_0x3b82e6(0x119)][_0x3b82e6(0xdb)]-0x1));if(!(0x0,lodash_1[_0x3b82e6(0x10d)])(_0x1b6dcd['route'],_0x3b82e6(0xde))&&!(0x0,lodash_1[_0x3b82e6(0x10d)])(_0x1b6dcd['route'],_0x3b82e6(0x128))&&_0x5a39c2['indexOf'](_0x1b6dcd[_0x3b82e6(0x119)])===-0x1){if(!(_0x2f6aad===null||_0x2f6aad===void 0x0?void 0x0:_0x2f6aad[_0x3b82e6(0xfa)])){let _0x1763fd=(0x0,core_3[_0x3b82e6(0x138)])(new _0x540714(),_0x330736[_0x3b82e6(0xd3)]);for(const _0x2f5d81 in _0x1763fd){let _0xa1f6e6=(_0x3b3633=_0x36b767[_0x330736[_0x3b82e6(0xd3)]])===null||_0x3b3633===void 0x0?void 0x0:_0x3b3633[_0x3b82e6(0xd5)](_0x55fe52=>_0x55fe52[_0x3b82e6(0x110)]==_0x2f5d81&&_0x55fe52[_0x3b82e6(0xeb)]===core_2[_0x3b82e6(0x13a)]&&(_0x55fe52===null||_0x55fe52===void 0x0?void 0x0:_0x55fe52[_0x3b82e6(0x117)]));if(_0xa1f6e6===null||_0xa1f6e6===void 0x0?void 0x0:_0xa1f6e6[_0x3b82e6(0x117)]){let _0x24d815=convertTypeToString(_0xa1f6e6[_0x3b82e6(0x117)]['type']||0x0);if([_0x3b82e6(0xfc),'body'][_0x3b82e6(0x129)](_0x24d815)!=-0x1&&_0xa1f6e6[_0x3b82e6(0x117)]['propertyData']['indexOf'](':')==-0x1&&!_0x1b6dcd['request'][_0x3b82e6(0xd5)](_0x446d11=>_0x446d11[_0x3b82e6(0xeb)]==_0xa1f6e6[_0x3b82e6(0x117)][_0x3b82e6(0xe1)]))_0x1b6dcd[_0x3b82e6(0x103)][_0x3b82e6(0x109)]({'key':_0xa1f6e6[_0x3b82e6(0x117)]['propertyData'],'title':_0xa1f6e6['metadata'][_0x3b82e6(0xe1)],'type':convertSchemaType(_0x1763fd[_0xa1f6e6[_0x3b82e6(0x110)]][_0x3b82e6(0x132)]),'required':![],'default':'','desc':''});else{if(_0x24d815==_0x3b82e6(0xf0)){let _0x2abf41=((_0x2e5cde=_0xa1f6e6===null||_0xa1f6e6===void 0x0?void 0x0:_0xa1f6e6[_0x3b82e6(0x117)])===null||_0x2e5cde===void 0x0?void 0x0:_0x2e5cde[_0x3b82e6(0xe1)])||'file';_0x2abf41[_0x3b82e6(0x129)](':')==-0x1&&!_0x1b6dcd[_0x3b82e6(0x103)]['find'](_0x3fadd9=>_0x3fadd9['key']==_0x2abf41&&_0x3fadd9[_0x3b82e6(0x112)]==_0x3b82e6(0xf0))&&_0x1b6dcd['request']['push']({'key':_0x2abf41,'title':'文件上传-'+_0x2abf41,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x4ec613=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x3b82e6(0x118)],_0x1763fd[_0x2f5d81]);_0x4ec613&&_0x1b6dcd[_0x3b82e6(0x103)][_0x3b82e6(0x109)](...getJoiRequest(_0x4ec613));}}}_0x1f645f['routes']['push'](_0x1b6dcd);}}if(_0x1f645f[_0x3b82e6(0xef)][_0x3b82e6(0xdb)]>0x0){let _0x1cf04b=_0x5f97ab[_0x413a1a];_0x1cf04b?(_0x1cf04b['summary']!=_0x1f645f[_0x3b82e6(0xda)]&&(_0x1cf04b[_0x3b82e6(0xda)]=_0x1cf04b[_0x3b82e6(0xda)]+','+_0x1f645f['summary']),_0x1cf04b[_0x3b82e6(0xe3)]!=_0x1f645f[_0x3b82e6(0xe3)]&&(_0x1cf04b[_0x3b82e6(0xe3)]=_0x1cf04b['description']+','+_0x1f645f['description']),_0x1cf04b[_0x3b82e6(0xef)]=_0x1cf04b[_0x3b82e6(0xef)][_0x3b82e6(0xdc)](_0x1f645f[_0x3b82e6(0xef)]),_0x5f97ab[_0x413a1a]=_0x1cf04b):_0x5f97ab[_0x413a1a]=_0x1f645f;}}}return _0x5f97ab;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x83e93){const _0x548143=a8_0x56dadf,_0x1f86ec=[];for(let _0x44874b in _0x83e93){const _0x427e40={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x360faf=typeof _0x83e93[_0x44874b][_0x548143(0x105)]==_0x548143(0x11b)?_0x83e93[_0x44874b]['describe']():_0x83e93[_0x44874b];_0x427e40['key']=_0x44874b,_0x427e40[_0x548143(0x112)]=_0x360faf[_0x548143(0x112)],_0x427e40[_0x548143(0x107)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,_0x548143(0x131),_0x44874b),_0x427e40[_0x548143(0x12e)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,'flags.default',''),_0x427e40['required']=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,'flags.presence','')==_0x548143(0x134),_0x427e40[_0x548143(0xe3)]=(0x0,lodash_1[_0x548143(0xe8)])(_0x360faf,_0x548143(0x12a),'');if(_0x360faf[_0x548143(0x112)]==_0x548143(0xed))_0x427e40[_0x548143(0xf5)]=getJoiRequest(_0x360faf[_0x548143(0xe6)]);else{if(_0x360faf['type']==_0x548143(0xf1)&&_0x360faf[_0x548143(0xec)]&&Array[_0x548143(0x10b)](_0x360faf[_0x548143(0xec)])&&_0x360faf['items'][0x0]){}}_0x360faf[_0x548143(0x12f)]&&Array[_0x548143(0x10b)](_0x360faf['allow'])&&_0x360faf[_0x548143(0x12f)][_0x548143(0xdb)]>0x0&&(_0x427e40[_0x548143(0xe3)]=_0x548143(0x136)+_0x360faf[_0x548143(0x12f)][_0x548143(0xee)](',')+'];'+_0x427e40[_0x548143(0xe3)]);if(_0x427e40['key']&&_0x427e40[_0x548143(0x112)]){const _0x25e8fe={};for(const _0x3d16bb of _0x360faf['rules']||[]){if(_0x3d16bb['name']===_0x548143(0x11a)&&_0x3d16bb[_0x548143(0x10a)])_0x25e8fe[_0x548143(0x11a)]=_0x3d16bb['args'][_0x548143(0xf9)];else _0x3d16bb[_0x548143(0x132)]===_0x548143(0x10f)&&(_0x25e8fe[_0x548143(0x10f)]=_0x3d16bb[_0x548143(0x10a)][_0x548143(0xf9)]);}_0x427e40[_0x548143(0xfb)]=_0x25e8fe;}_0x427e40[_0x548143(0xeb)]&&_0x427e40[_0x548143(0x107)]&&_0x1f86ec[_0x548143(0x109)](_0x427e40);}return _0x1f86ec;}function convertSchemaType(_0x4394a1){const _0x55b23b=a8_0x56dadf;switch(_0x4394a1){case'Object':return _0x55b23b(0xed);case _0x55b23b(0xdf):return'boolean';case _0x55b23b(0xd2):return'number';case _0x55b23b(0x12c):return _0x55b23b(0x11d);case _0x55b23b(0x106):return'file';default:return _0x55b23b(0x11d);}}function convertTypeToString(_0x5f9e52){const _0x4e9517=a8_0x56dadf;switch(_0x5f9e52){case core_1['RouteParamTypes'][_0x4e9517(0xe0)]:return _0x4e9517(0x100);case core_1[_0x4e9517(0x116)][_0x4e9517(0x127)]:return _0x4e9517(0xfc);case core_1['RouteParamTypes']['PARAM']:return _0x4e9517(0x10e);case core_1[_0x4e9517(0x116)][_0x4e9517(0xea)]:return'body';case core_1['RouteParamTypes'][_0x4e9517(0xf8)]:case core_1[_0x4e9517(0x116)][_0x4e9517(0x115)]:case core_1[_0x4e9517(0x116)][_0x4e9517(0xf4)]:return _0x4e9517(0xf0);default:return'header';}}
|
|
1
|
+
const a8_0x2ee735=a8_0x3e3e;(function(_0x37c55c,_0x32a024){const _0xacc171=a8_0x3e3e,_0x3262e0=_0x37c55c();while(!![]){try{const _0x21f027=-parseInt(_0xacc171(0x237))/0x1+-parseInt(_0xacc171(0x1ee))/0x2*(-parseInt(_0xacc171(0x205))/0x3)+parseInt(_0xacc171(0x1fa))/0x4+-parseInt(_0xacc171(0x23c))/0x5+-parseInt(_0xacc171(0x238))/0x6+parseInt(_0xacc171(0x1dc))/0x7+-parseInt(_0xacc171(0x1fb))/0x8;if(_0x21f027===_0x32a024)break;else _0x3262e0['push'](_0x3262e0['shift']());}catch(_0x4101c1){_0x3262e0['push'](_0x3262e0['shift']());}}}(a8_0x14e7,0xd25b9));const a8_0x598f72=(function(){let _0x47050f=!![];return function(_0x3c8385,_0x141cd3){const _0x5392e0=_0x47050f?function(){const _0x59107b=a8_0x3e3e;if(_0x141cd3){const _0x95d8b7=_0x141cd3[_0x59107b(0x1de)](_0x3c8385,arguments);return _0x141cd3=null,_0x95d8b7;}}:function(){};return _0x47050f=![],_0x5392e0;};}()),a8_0x21dedb=a8_0x598f72(this,function(){const _0x213bd9=a8_0x3e3e;return a8_0x21dedb['toString']()[_0x213bd9(0x222)](_0x213bd9(0x1db))['toString']()[_0x213bd9(0x211)](a8_0x21dedb)[_0x213bd9(0x222)](_0x213bd9(0x1db));});function a8_0x3e3e(_0x16667b,_0x2cd93a){const _0xa1bfe0=a8_0x14e7();return a8_0x3e3e=function(_0x21dedb,_0x598f72){_0x21dedb=_0x21dedb-0x1d9;let _0x14e7e8=_0xa1bfe0[_0x21dedb];return _0x14e7e8;},a8_0x3e3e(_0x16667b,_0x2cd93a);}a8_0x21dedb();'use strict';Object[a8_0x2ee735(0x213)](exports,a8_0x2ee735(0x1f1),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x2ee735(0x20d)),validator_1=require(a8_0x2ee735(0x22d)),core_1=require(a8_0x2ee735(0x1f0)),core_2=require(a8_0x2ee735(0x1f0)),core_3=require(a8_0x2ee735(0x1f0)),action_1=require(a8_0x2ee735(0x215));function getRoutes(_0x15ad02={'prefix':'/','module':![]}){const _0xf2afed=a8_0x2ee735;var _0x23442d,_0x455d41;const _0x4796eb=(0x0,core_3[_0xf2afed(0x210)])(action_1[_0xf2afed(0x23e)]),_0x29c233={},_0x8cb6ba=Array['isArray'](_0x15ad02[_0xf2afed(0x1f6)]||[])?_0x15ad02['filter']||[]:[_0x15ad02['filter']];_0x2cfa6e:for(const _0x2be122 of _0x4796eb){let _0x5c6d8d=(0x0,core_3[_0xf2afed(0x1e4)])(action_1['ACTION_KEY'],_0x2be122),_0x30f1d0=(0x0,core_3[_0xf2afed(0x1e4)])(action_1[_0xf2afed(0x214)],_0x2be122);if(_0x5c6d8d&&_0x30f1d0){let _0x2bd7c5=_0x5c6d8d[_0xf2afed(0x221)],_0x4f2e09={};if(_0x15ad02[_0xf2afed(0x20b)]&&(0x0,lodash_1[_0xf2afed(0x1f5)])(_0x5c6d8d,_0xf2afed(0x20b),![])!=_0x15ad02[_0xf2afed(0x20b)])continue _0x2cfa6e;else{if(_0x15ad02['module']===![]&&!!(0x0,lodash_1[_0xf2afed(0x1f5)])(_0x5c6d8d,'module',null))continue _0x2cfa6e;}if(_0x15ad02[_0xf2afed(0x221)]&&!_0x2bd7c5['startsWith'](_0x15ad02[_0xf2afed(0x221)]))continue _0x2cfa6e;_0x2bd7c5!=='/'?(_0x4f2e09[_0xf2afed(0x234)]=(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d[_0xf2afed(0x1f7)][_0xf2afed(0x203)])||(/^\//[_0xf2afed(0x1e0)](_0x2bd7c5)?_0x2bd7c5[_0xf2afed(0x235)]('/')[0x1]:_0x2bd7c5),_0x4f2e09[_0xf2afed(0x1ff)]=(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d['routerOptions'][_0xf2afed(0x1ff)])||_0x4f2e09[_0xf2afed(0x234)],_0x4f2e09['routes']=[]):(_0x4f2e09[_0xf2afed(0x234)]=(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d[_0xf2afed(0x1f7)]['tagName'])||_0xf2afed(0x20f),_0x4f2e09['description']=(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d['routerOptions'][_0xf2afed(0x1ff)])||'',_0x4f2e09[_0xf2afed(0x22f)]=[]);_0x15ad02['filepath']&&(_0x4f2e09['filepath']=_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d[_0xf2afed(0x218)]);(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d[_0xf2afed(0x23a)])&&(_0x4f2e09[_0xf2afed(0x221)]=_0x5c6d8d[_0xf2afed(0x23a)]);(_0x5c6d8d===null||_0x5c6d8d===void 0x0?void 0x0:_0x5c6d8d['module'])&&(_0x4f2e09[_0xf2afed(0x20b)]=_0x5c6d8d[_0xf2afed(0x20b)]);let _0x37af8c=(0x0,core_3['getClassMetadata'])(core_2[_0xf2afed(0x225)],_0x2be122)||{};if(typeof _0x30f1d0[Symbol[_0xf2afed(0x1d9)]]==='function')for(let _0x18828f of _0x30f1d0){if((_0x15ad02===null||_0x15ad02===void 0x0?void 0x0:_0x15ad02['intercept'])&&!(_0x18828f===null||_0x18828f===void 0x0?void 0x0:_0x18828f[_0xf2afed(0x21f)]))continue;let _0x64cc3={};_0x64cc3['method']=_0x18828f[_0xf2afed(0x1e3)],_0x64cc3[_0xf2afed(0x206)]=(_0x2bd7c5+_0x18828f[_0xf2afed(0x228)])['replace'](/\/{2,}/g,'/'),_0x64cc3[_0xf2afed(0x234)]=(_0x18828f===null||_0x18828f===void 0x0?void 0x0:_0x18828f['routerName'])||_0x4f2e09['summary']||_0xf2afed(0x20f),_0x64cc3[_0xf2afed(0x1ff)]=(_0x18828f===null||_0x18828f===void 0x0?void 0x0:_0x18828f['description'])||'',_0x64cc3[_0xf2afed(0x209)]=[];_0x64cc3[_0xf2afed(0x206)][_0xf2afed(0x1e5)]('/')&&(_0x64cc3[_0xf2afed(0x206)]=_0x64cc3[_0xf2afed(0x206)][_0xf2afed(0x236)](0x0,_0x64cc3[_0xf2afed(0x206)][_0xf2afed(0x230)]-0x1));if(!(0x0,lodash_1['startsWith'])(_0x64cc3[_0xf2afed(0x206)],_0xf2afed(0x1ec))&&!(0x0,lodash_1[_0xf2afed(0x1e8)])(_0x64cc3['route'],_0xf2afed(0x223))&&_0x8cb6ba['indexOf'](_0x64cc3[_0xf2afed(0x206)])===-0x1){if(!(_0x15ad02===null||_0x15ad02===void 0x0?void 0x0:_0x15ad02[_0xf2afed(0x1e6)])){let _0x16432f=(0x0,core_3[_0xf2afed(0x1fd)])(new _0x2be122(),_0x18828f['method']);for(const _0x20f752 in _0x16432f){let _0x501a70=(_0x23442d=_0x37af8c[_0x18828f['method']])===null||_0x23442d===void 0x0?void 0x0:_0x23442d[_0xf2afed(0x219)](_0x2bb7dd=>_0x2bb7dd[_0xf2afed(0x1f3)]==_0x20f752&&_0x2bb7dd[_0xf2afed(0x21e)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2bb7dd===null||_0x2bb7dd===void 0x0?void 0x0:_0x2bb7dd['metadata']));if(_0x501a70===null||_0x501a70===void 0x0?void 0x0:_0x501a70[_0xf2afed(0x22c)]){let _0x50e217=convertTypeToString(_0x501a70[_0xf2afed(0x22c)][_0xf2afed(0x201)]||0x0);if([_0xf2afed(0x1e2),'body'][_0xf2afed(0x20e)](_0x50e217)!=-0x1&&_0x501a70[_0xf2afed(0x22c)][_0xf2afed(0x1f9)]['indexOf'](':')==-0x1&&!_0x64cc3[_0xf2afed(0x209)][_0xf2afed(0x219)](_0x3cdbf4=>_0x3cdbf4[_0xf2afed(0x21e)]==_0x501a70['metadata']['propertyData']))_0x64cc3[_0xf2afed(0x209)][_0xf2afed(0x1dd)]({'key':_0x501a70[_0xf2afed(0x22c)][_0xf2afed(0x1f9)],'title':_0x501a70['metadata'][_0xf2afed(0x1f9)],'type':convertSchemaType(_0x16432f[_0x501a70['parameterIndex']][_0xf2afed(0x21c)]),'required':![],'default':'','desc':''});else{if(_0x50e217==_0xf2afed(0x21d)){let _0x1dae2d=((_0x455d41=_0x501a70===null||_0x501a70===void 0x0?void 0x0:_0x501a70[_0xf2afed(0x22c)])===null||_0x455d41===void 0x0?void 0x0:_0x455d41[_0xf2afed(0x1f9)])||_0xf2afed(0x21d);_0x1dae2d['indexOf'](':')==-0x1&&!_0x64cc3[_0xf2afed(0x209)][_0xf2afed(0x219)](_0x57b74a=>_0x57b74a[_0xf2afed(0x21e)]==_0x1dae2d&&_0x57b74a[_0xf2afed(0x201)]==_0xf2afed(0x21d))&&_0x64cc3[_0xf2afed(0x209)][_0xf2afed(0x1dd)]({'key':_0x1dae2d,'title':_0xf2afed(0x220)+_0x1dae2d,'type':_0xf2afed(0x21d),'required':!![],'default':'','desc':''});}}}else{const _0xcff789=(0x0,core_3[_0xf2afed(0x226)])(validator_1['RULES_KEY'],_0x16432f[_0x20f752]);_0xcff789&&_0x64cc3[_0xf2afed(0x209)][_0xf2afed(0x1dd)](...getJoiRequest(_0xcff789));}}}_0x4f2e09[_0xf2afed(0x22f)][_0xf2afed(0x1dd)](_0x64cc3);}}if(_0x4f2e09[_0xf2afed(0x22f)][_0xf2afed(0x230)]>0x0){let _0x47ef91=_0x29c233[_0x2bd7c5];_0x47ef91?(_0x47ef91[_0xf2afed(0x234)]!=_0x4f2e09[_0xf2afed(0x234)]&&(_0x47ef91['summary']=_0x47ef91['summary']+','+_0x4f2e09['summary']),_0x47ef91['description']!=_0x4f2e09[_0xf2afed(0x1ff)]&&(_0x47ef91[_0xf2afed(0x1ff)]=_0x47ef91[_0xf2afed(0x1ff)]+','+_0x4f2e09['description']),_0x47ef91[_0xf2afed(0x22f)]=_0x47ef91[_0xf2afed(0x22f)][_0xf2afed(0x1ea)](_0x4f2e09[_0xf2afed(0x22f)]),_0x29c233[_0x2bd7c5]=_0x47ef91):_0x29c233[_0x2bd7c5]=_0x4f2e09;}}}return _0x29c233;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x3aba94){const _0x28ac30=a8_0x2ee735,_0x24426e=[];for(let _0x144c68 in _0x3aba94){const _0x2c1004={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x308f46=typeof _0x3aba94[_0x144c68]['describe']==_0x28ac30(0x1e1)?_0x3aba94[_0x144c68][_0x28ac30(0x1e7)]():_0x3aba94[_0x144c68];_0x2c1004[_0x28ac30(0x21e)]=_0x144c68,_0x2c1004[_0x28ac30(0x201)]=_0x308f46[_0x28ac30(0x201)],_0x2c1004[_0x28ac30(0x22e)]=(0x0,lodash_1[_0x28ac30(0x1f5)])(_0x308f46,_0x28ac30(0x231),_0x144c68),_0x2c1004[_0x28ac30(0x20f)]=(0x0,lodash_1[_0x28ac30(0x1f5)])(_0x308f46,_0x28ac30(0x1fe),''),_0x2c1004[_0x28ac30(0x232)]=(0x0,lodash_1[_0x28ac30(0x1f5)])(_0x308f46,_0x28ac30(0x208),'')=='required',_0x2c1004[_0x28ac30(0x1ff)]=(0x0,lodash_1[_0x28ac30(0x1f5)])(_0x308f46,_0x28ac30(0x1f8),'');if(_0x308f46[_0x28ac30(0x201)]==_0x28ac30(0x204))_0x2c1004[_0x28ac30(0x207)]=getJoiRequest(_0x308f46[_0x28ac30(0x224)]);else{if(_0x308f46[_0x28ac30(0x201)]=='array'&&_0x308f46[_0x28ac30(0x20c)]&&Array[_0x28ac30(0x1fc)](_0x308f46[_0x28ac30(0x20c)])&&_0x308f46['items'][0x0]){}}_0x308f46[_0x28ac30(0x227)]&&Array[_0x28ac30(0x1fc)](_0x308f46[_0x28ac30(0x227)])&&_0x308f46[_0x28ac30(0x227)][_0x28ac30(0x230)]>0x0&&(_0x2c1004[_0x28ac30(0x1ff)]=_0x28ac30(0x23b)+_0x308f46[_0x28ac30(0x227)][_0x28ac30(0x21b)](',')+'];'+_0x2c1004[_0x28ac30(0x1ff)]);if(_0x2c1004[_0x28ac30(0x21e)]&&_0x2c1004[_0x28ac30(0x201)]){const _0x488a13={};for(const _0x428b14 of _0x308f46[_0x28ac30(0x1ef)]||[]){if(_0x428b14[_0x28ac30(0x21c)]===_0x28ac30(0x23d)&&_0x428b14[_0x28ac30(0x22a)])_0x488a13[_0x28ac30(0x23d)]=_0x428b14[_0x28ac30(0x22a)][_0x28ac30(0x1da)];else _0x428b14[_0x28ac30(0x21c)]===_0x28ac30(0x22b)&&(_0x488a13[_0x28ac30(0x22b)]=_0x428b14[_0x28ac30(0x22a)][_0x28ac30(0x1da)]);}_0x2c1004[_0x28ac30(0x1ef)]=_0x488a13;}_0x2c1004[_0x28ac30(0x21e)]&&_0x2c1004[_0x28ac30(0x22e)]&&_0x24426e[_0x28ac30(0x1dd)](_0x2c1004);}return _0x24426e;}function convertSchemaType(_0x497230){const _0xa03b5b=a8_0x2ee735;switch(_0x497230){case _0xa03b5b(0x212):return _0xa03b5b(0x204);case _0xa03b5b(0x1f2):return'boolean';case _0xa03b5b(0x216):return _0xa03b5b(0x239);case _0xa03b5b(0x20a):return _0xa03b5b(0x1f4);case _0xa03b5b(0x233):return _0xa03b5b(0x21d);default:return _0xa03b5b(0x1f4);}}function a8_0x14e7(){const _0x484e45=['max','metadata','@anncic-api/validator','title','routes','length','flags.label','required','File','summary','split','substring','955873lewnhP','1733268rKJKpT','number','pprefix','只允许:[','1154850ntTfOk','min','ACTION_KEY','iterator','limit','(((.+)+)+)+$','3313177qFoBwF','push','apply','header','test','function','query','requestMethod','getClassMetadata','endsWith','noreq','describe','startsWith','body','concat','HEADERS','static/apitest','BODY','2478734csYGbu','rules','@midwayjs/core','__esModule','Boolean','parameterIndex','string','get','filter','routerOptions','flags.description','propertyData','3253944jYsPRP','1510544oqMMvb','isArray','getMethodParamTypes','flags.default','description','QUERY','type','FILESSTREAM','tagName','object','3BTrwLH','route','children','flags.presence','request','String','module','items','lodash','indexOf','default','listModule','constructor','Object','defineProperty','ACTION_ROUTE_KEY','../types/action','Number','PARAM','filepath','find','RouteParamTypes','join','name','file','key','intercept','文件上传-','prefix','search','/static/apitest','keys','INJECT_CUSTOM_PARAM','getClassExtendedMetadata','allow','path','FIELDS','args'];a8_0x14e7=function(){return _0x484e45;};return a8_0x14e7();}function convertTypeToString(_0x1b95c7){const _0x2b2388=a8_0x2ee735;switch(_0x1b95c7){case core_1[_0x2b2388(0x21a)][_0x2b2388(0x1eb)]:return'header';case core_1[_0x2b2388(0x21a)][_0x2b2388(0x200)]:return'query';case core_1[_0x2b2388(0x21a)][_0x2b2388(0x217)]:return'path';case core_1[_0x2b2388(0x21a)][_0x2b2388(0x1ed)]:return _0x2b2388(0x1e9);case core_1[_0x2b2388(0x21a)][_0x2b2388(0x229)]:case core_1['RouteParamTypes'][_0x2b2388(0x202)]:case core_1[_0x2b2388(0x21a)]['FILESTREAM']:return'file';default:return _0x2b2388(0x1df);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x335b8a=a9_0x4ce6;(function(_0xfe772,_0x1b76b4){var _0x5a53e1=a9_0x4ce6,_0x417748=_0xfe772();while(!![]){try{var _0x1b4387=parseInt(_0x5a53e1(0x166))/0x1+parseInt(_0x5a53e1(0x16d))/0x2*(-parseInt(_0x5a53e1(0x165))/0x3)+-parseInt(_0x5a53e1(0x16a))/0x4+-parseInt(_0x5a53e1(0x177))/0x5+-parseInt(_0x5a53e1(0x17a))/0x6+-parseInt(_0x5a53e1(0x19e))/0x7+parseInt(_0x5a53e1(0x196))/0x8;if(_0x1b4387===_0x1b76b4)break;else _0x417748['push'](_0x417748['shift']());}catch(_0x5ada2d){_0x417748['push'](_0x417748['shift']());}}}(a9_0x54fc,0x4ad84));var a9_0x425dd7=(function(){var _0x4e044a=!![];return function(_0x34ed7e,_0x20cbf0){var _0x4bee61=_0x4e044a?function(){var _0x2b2dc5=a9_0x4ce6;if(_0x20cbf0){var _0x51a371=_0x20cbf0[_0x2b2dc5(0x197)](_0x34ed7e,arguments);return _0x20cbf0=null,_0x51a371;}}:function(){};return _0x4e044a=![],_0x4bee61;};}()),a9_0x2eabf0=a9_0x425dd7(this,function(){var _0x140b8b=a9_0x4ce6;return a9_0x2eabf0['toString']()[_0x140b8b(0x17c)](_0x140b8b(0x174))['toString']()['constructor'](a9_0x2eabf0)[_0x140b8b(0x17c)](_0x140b8b(0x174));});a9_0x2eabf0();function a9_0x54fc(){var _0x26202e=['Scope','878703GvpjLe','503499tCOsXf','Apitest','Fields','Headers','42092ZbSyex','hasOwnProperty','ScopeEnum','2UUNxIq','ApiService','File','Config','writable','ExcelService','Body','(((.+)+)+)+$','@midwayjs/core','Init','337390zJIQoB','ApiError','getAppsConfig','2056146izMGzl','./configuration','search','Files','getRoutes','./helper/getAppsConfig','IIntercept','prototype','ValidatorError','Configuration','Query','./service/ExcelService','default','Singleton','get','Action','./exception/ApiError','Logger','__createBinding','./service/ApitestService','CacheService','Param','./types/common','defineProperty','__exportStar','Provide','ValidatorService','configurable','6485608vEYMNs','apply','__esModule','Intercept','App','call','Inject','./decorator/ActionApitest','2058301ATCflS','EventService','./helper/getRoutes'];a9_0x54fc=function(){return _0x26202e;};return a9_0x54fc();}'use strict';var __createBinding=this&&this[a9_0x335b8a(0x18c)]||(Object['create']?function(_0x49ec36,_0x308159,_0x5ed611,_0x4ae2cc){var _0x17da17=a9_0x335b8a;if(_0x4ae2cc===undefined)_0x4ae2cc=_0x5ed611;var _0x415682=Object['getOwnPropertyDescriptor'](_0x308159,_0x5ed611);(!_0x415682||(_0x17da17(0x188)in _0x415682?!_0x308159[_0x17da17(0x198)]:_0x415682[_0x17da17(0x171)]||_0x415682[_0x17da17(0x195)]))&&(_0x415682={'enumerable':!![],'get':function(){return _0x308159[_0x5ed611];}}),Object[_0x17da17(0x191)](_0x49ec36,_0x4ae2cc,_0x415682);}:function(_0x5c6041,_0x2bae2f,_0x4007e8,_0x5f1e39){if(_0x5f1e39===undefined)_0x5f1e39=_0x4007e8;_0x5c6041[_0x5f1e39]=_0x2bae2f[_0x4007e8];}),__exportStar=this&&this[a9_0x335b8a(0x192)]||function(_0x4f7bec,_0x5703d5){var _0x1e02af=a9_0x335b8a;for(var _0x120987 in _0x4f7bec)if(_0x120987!==_0x1e02af(0x186)&&!Object[_0x1e02af(0x181)][_0x1e02af(0x16b)][_0x1e02af(0x19b)](_0x5703d5,_0x120987))__createBinding(_0x5703d5,_0x4f7bec,_0x120987);};Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x198),{'value':!![]}),exports[a9_0x335b8a(0x179)]=exports[a9_0x335b8a(0x16c)]=exports[a9_0x335b8a(0x187)]=exports[a9_0x335b8a(0x164)]=exports[a9_0x335b8a(0x19c)]=exports[a9_0x335b8a(0x193)]=exports[a9_0x335b8a(0x18b)]=exports[a9_0x335b8a(0x170)]=exports[a9_0x335b8a(0x19a)]=exports[a9_0x335b8a(0x176)]=exports[a9_0x335b8a(0x169)]=exports[a9_0x335b8a(0x184)]=exports['Param']=exports[a9_0x335b8a(0x173)]=exports['Fields']=exports['Files']=exports[a9_0x335b8a(0x16f)]=exports['Configuration']=exports[a9_0x335b8a(0x194)]=exports['ValidatorError']=exports[a9_0x335b8a(0x172)]=exports[a9_0x335b8a(0x16e)]=exports[a9_0x335b8a(0x19f)]=exports[a9_0x335b8a(0x18e)]=exports[a9_0x335b8a(0x178)]=exports[a9_0x335b8a(0x17e)]=exports['IIntercept']=exports[a9_0x335b8a(0x199)]=exports['Apitest']=exports['Action']=void 0x0;const getAppsConfig_1=require(a9_0x335b8a(0x17f));Object[a9_0x335b8a(0x191)](exports,'getAppsConfig',{'enumerable':!![],'get':function(){var _0x5c994b=a9_0x335b8a;return getAppsConfig_1[_0x5c994b(0x179)];}}),__exportStar(require(a9_0x335b8a(0x190)),exports),__exportStar(require(a9_0x335b8a(0x18d)),exports);var Action_1=require('./decorator/Action');Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x189),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a9_0x335b8a(0x19d));Object['defineProperty'](exports,a9_0x335b8a(0x167),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require('./decorator/Intercept');Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x199),{'enumerable':!![],'get':function(){var _0x1749b2=a9_0x335b8a;return Intercept_1[_0x1749b2(0x199)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x180),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a9_0x335b8a(0x163));Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x17e),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x335b8a(0x18a));Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x178),{'enumerable':!![],'get':function(){var _0x1ebc01=a9_0x335b8a;return ApiError_1[_0x1ebc01(0x178)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x18e),{'enumerable':!![],'get':function(){var _0x1b2db6=a9_0x335b8a;return cache_1[_0x1b2db6(0x18e)];}});var event_1=require('@anncic-api/event');Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x19f),{'enumerable':!![],'get':function(){var _0x2b6e95=a9_0x335b8a;return event_1[_0x2b6e95(0x19f)];}});var ApiService_1=require('./service/ApiService');Object[a9_0x335b8a(0x191)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x1d6314=a9_0x335b8a;return ApiService_1[_0x1d6314(0x16e)];}});var ExcelService_1=require(a9_0x335b8a(0x185));Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x172),{'enumerable':!![],'get':function(){var _0x191e07=a9_0x335b8a;return ExcelService_1[_0x191e07(0x172)];}});var validator_1=require('@anncic-api/validator');function a9_0x4ce6(_0x536c70,_0x307e9b){var _0x534bbb=a9_0x54fc();return a9_0x4ce6=function(_0x2eabf0,_0x425dd7){_0x2eabf0=_0x2eabf0-0x163;var _0x54fcc0=_0x534bbb[_0x2eabf0];return _0x54fcc0;},a9_0x4ce6(_0x536c70,_0x307e9b);}Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x182),{'enumerable':!![],'get':function(){var _0x283c76=a9_0x335b8a;return validator_1[_0x283c76(0x182)];}}),Object['defineProperty'](exports,a9_0x335b8a(0x194),{'enumerable':!![],'get':function(){var _0x32236f=a9_0x335b8a;return validator_1[_0x32236f(0x194)];}});var configuration_1=require(a9_0x335b8a(0x17b));Object['defineProperty'](exports,a9_0x335b8a(0x183),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require(a9_0x335b8a(0x175));Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x16f),{'enumerable':!![],'get':function(){var _0x2f2801=a9_0x335b8a;return core_1[_0x2f2801(0x16f)];}}),Object['defineProperty'](exports,a9_0x335b8a(0x17d),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x168),{'enumerable':!![],'get':function(){return core_1['Fields'];}}),Object['defineProperty'](exports,a9_0x335b8a(0x173),{'enumerable':!![],'get':function(){var _0x2d46dd=a9_0x335b8a;return core_1[_0x2d46dd(0x173)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x18f),{'enumerable':!![],'get':function(){var _0x2768e5=a9_0x335b8a;return core_1[_0x2768e5(0x18f)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x184),{'enumerable':!![],'get':function(){return core_1['Query'];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x169),{'enumerable':!![],'get':function(){var _0x7d74fd=a9_0x335b8a;return core_1[_0x7d74fd(0x169)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x176),{'enumerable':!![],'get':function(){var _0x2f27f4=a9_0x335b8a;return core_1[_0x2f27f4(0x176)];}});var core_2=require('@midwayjs/core');Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x19a),{'enumerable':!![],'get':function(){var _0x288b7b=a9_0x335b8a;return core_2[_0x288b7b(0x19a)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x170),{'enumerable':!![],'get':function(){var _0x448151=a9_0x335b8a;return core_2[_0x448151(0x170)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x18b),{'enumerable':!![],'get':function(){return core_2['Logger'];}}),Object['defineProperty'](exports,a9_0x335b8a(0x193),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a9_0x335b8a(0x191)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x32420b=a9_0x335b8a;return core_2[_0x32420b(0x19c)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x164),{'enumerable':!![],'get':function(){var _0xc67e5f=a9_0x335b8a;return core_2[_0xc67e5f(0x164)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x187),{'enumerable':!![],'get':function(){var _0x4b6584=a9_0x335b8a;return core_2[_0x4b6584(0x187)];}}),Object[a9_0x335b8a(0x191)](exports,a9_0x335b8a(0x16c),{'enumerable':!![],'get':function(){return core_2['ScopeEnum'];}}),global[a9_0x335b8a(0x179)]=getAppsConfig_1['getAppsConfig'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a10_0x35832f=a10_0x54d3;(function(_0x405628,_0x1872a4){var _0x3173c4=a10_0x54d3,_0x71e77=_0x405628();while(!![]){try{var _0xda011b=-parseInt(_0x3173c4(0x208))/0x1*(-parseInt(_0x3173c4(0x211))/0x2)+parseInt(_0x3173c4(0x1da))/0x3*(parseInt(_0x3173c4(0x1e3))/0x4)+-parseInt(_0x3173c4(0x1e6))/0x5+-parseInt(_0x3173c4(0x1d9))/0x6+parseInt(_0x3173c4(0x1ec))/0x7*(-parseInt(_0x3173c4(0x1fb))/0x8)+parseInt(_0x3173c4(0x212))/0x9*(-parseInt(_0x3173c4(0x200))/0xa)+parseInt(_0x3173c4(0x20e))/0xb*(parseInt(_0x3173c4(0x1d6))/0xc);if(_0xda011b===_0x1872a4)break;else _0x71e77['push'](_0x71e77['shift']());}catch(_0x1756f7){_0x71e77['push'](_0x71e77['shift']());}}}(a10_0x1fa3,0xd0eb2));var a10_0x1ec367=(function(){var _0x49c5a=!![];return function(_0x1b5960,_0x327780){var _0x2aea5b=_0x49c5a?function(){if(_0x327780){var _0x411064=_0x327780['apply'](_0x1b5960,arguments);return _0x327780=null,_0x411064;}}:function(){};return _0x49c5a=![],_0x2aea5b;};}()),a10_0x5c995e=a10_0x1ec367(this,function(){var _0x1502b7=a10_0x54d3;return a10_0x5c995e[_0x1502b7(0x1df)]()[_0x1502b7(0x20b)](_0x1502b7(0x214))[_0x1502b7(0x1df)]()['constructor'](a10_0x5c995e)[_0x1502b7(0x20b)]('(((.+)+)+)+$');});a10_0x5c995e();function a10_0x1fa3(){var _0x474b08=['checksign','ApiError','HEADERS_LACK','Provide','join','password','logintime','HEADERS_SIGNATURE','prototype','验证失败','TIMEOUT','checkcode','now','163616BHtDJO','secret=','substring','design:type','decorate','500jpsbmR','anncicapi','signature','fromEntries','abs','config','logintimeout','metadata','195CpcUFt','Config','map','search','padEnd','toLowerCase','16856323oQeLUX','__esModule','devices','5516nsrqwf','194922VsaVdf','crypto-js','(((.+)+)+)+$','object','defineProperty','24GOZQUh','token','getOwnPropertyDescriptor','7203300WSjcsr','39UkrYyW','@midwayjs/core','secret','MD5','length','toString','function','requesttime','ApiService','32736jbgSes','timeout','device','1008360InMpTc','Scope','sort','Singleton','getsign','TIMEOUT_LOGINTIME','126KLdHom','请求超时,请重试或改善网络环境'];a10_0x1fa3=function(){return _0x474b08;};return a10_0x1fa3();}'use strict';var __decorate=this&&this['__decorate']||function(_0x2eb01f,_0x1abd67,_0x5b39f3,_0x26548d){var _0x352d25=a10_0x54d3,_0x5c8a65=arguments['length'],_0x533d8f=_0x5c8a65<0x3?_0x1abd67:_0x26548d===null?_0x26548d=Object[_0x352d25(0x1d8)](_0x1abd67,_0x5b39f3):_0x26548d,_0x5f1275;if(typeof Reflect===_0x352d25(0x1d4)&&typeof Reflect[_0x352d25(0x1ff)]==='function')_0x533d8f=Reflect[_0x352d25(0x1ff)](_0x2eb01f,_0x1abd67,_0x5b39f3,_0x26548d);else{for(var _0x4571f2=_0x2eb01f[_0x352d25(0x1de)]-0x1;_0x4571f2>=0x0;_0x4571f2--)if(_0x5f1275=_0x2eb01f[_0x4571f2])_0x533d8f=(_0x5c8a65<0x3?_0x5f1275(_0x533d8f):_0x5c8a65>0x3?_0x5f1275(_0x1abd67,_0x5b39f3,_0x533d8f):_0x5f1275(_0x1abd67,_0x5b39f3))||_0x533d8f;}return _0x5c8a65>0x3&&_0x533d8f&&Object[_0x352d25(0x1d5)](_0x1abd67,_0x5b39f3,_0x533d8f),_0x533d8f;},__metadata=this&&this['__metadata']||function(_0x1f3fec,_0x3f1816){var _0x3d6918=a10_0x54d3;if(typeof Reflect===_0x3d6918(0x1d4)&&typeof Reflect['metadata']===_0x3d6918(0x1e0))return Reflect[_0x3d6918(0x207)](_0x1f3fec,_0x3f1816);};Object[a10_0x35832f(0x1d5)](exports,a10_0x35832f(0x20f),{'value':!![]}),exports[a10_0x35832f(0x1e2)]=void 0x0;function a10_0x54d3(_0x25ba97,_0x2a4013){var _0x27b67a=a10_0x1fa3();return a10_0x54d3=function(_0x5c995e,_0x1ec367){_0x5c995e=_0x5c995e-0x1d4;var _0x1fa35a=_0x27b67a[_0x5c995e];return _0x1fa35a;},a10_0x54d3(_0x25ba97,_0x2a4013);}const crypto_js_1=require(a10_0x35832f(0x213)),core_1=require(a10_0x35832f(0x1db)),ApiError_1=require('../exception/ApiError');let ApiService=exports[a10_0x35832f(0x1e2)]=class ApiService{[a10_0x35832f(0x1f3)](_0x5bf40b){var _0x56888c=a10_0x35832f,_0x4ed9ed;return _0x5bf40b?(0x0,crypto_js_1['MD5'])(''+_0x5bf40b+(0x0,crypto_js_1[_0x56888c(0x1dd)])((0x0,crypto_js_1[_0x56888c(0x1dd)])(''+_0x5bf40b)[_0x56888c(0x1df)]()+(''+((_0x4ed9ed=this['config'])===null||_0x4ed9ed===void 0x0?void 0x0:_0x4ed9ed['password'])))[_0x56888c(0x1df)]())['toString']():'';}['getcheck'](_0x33b771,_0x315bd0,_0x1464f1=Date[a10_0x35832f(0x1fa)]()){var _0x68adce=a10_0x35832f;return{'Token':_0x33b771,'Logintime':_0x1464f1,'Checkcode':this[_0x68adce(0x1f9)](_0x33b771,_0x315bd0,_0x1464f1)};}[a10_0x35832f(0x1ea)](_0x276882={}){var _0x5497d7=a10_0x35832f,_0x264c93,_0x255a00;const _0x3358e8=[],_0x51728e=Object['fromEntries'](Object['entries'](_0x276882)[_0x5497d7(0x20a)](_0x8e1aee=>[_0x8e1aee[0x0][_0x5497d7(0x20d)](),_0x8e1aee[0x1]]));for(let _0x9442fc of[_0x5497d7(0x1e5),_0x5497d7(0x1e1),'token','logintime',_0x5497d7(0x1f9)]){if(typeof _0x51728e[_0x9442fc]=='undefined')throw new AnnError(ApiError_1[_0x5497d7(0x1ef)][_0x5497d7(0x1f0)],{'message':_0x5497d7(0x1f7)});_0x3358e8['push'](_0x9442fc+'='+_0x51728e[_0x9442fc]);}_0x51728e[_0x5497d7(0x1e1)]&&((_0x264c93=_0x51728e['requesttime'])===null||_0x264c93===void 0x0?void 0x0:_0x264c93[_0x5497d7(0x1de)])==0xa&&(_0x51728e[_0x5497d7(0x1e1)]=_0x51728e[_0x5497d7(0x1e1)]*0x3e8);if(this['config'][_0x5497d7(0x1e4)]&&parseInt((''+Date[_0x5497d7(0x1fa)]())[_0x5497d7(0x1fd)](0x0,0xd)[_0x5497d7(0x20c)](0xd,'0'))-parseInt((''+Math[_0x5497d7(0x204)](_0x51728e[_0x5497d7(0x1e1)]))[_0x5497d7(0x1fd)](0x0,0xd)[_0x5497d7(0x20c)](0xd,'0'))>parseInt(this[_0x5497d7(0x205)][_0x5497d7(0x1e4)]))throw new AnnError(ApiError_1['ApiError'][_0x5497d7(0x1f8)],{'message':_0x5497d7(0x1ed),'requesttime':_0x51728e[_0x5497d7(0x1e1)],'timestamp':Date[_0x5497d7(0x1fa)]()});if((((_0x255a00=this['config'][_0x5497d7(0x210)][_0x51728e[_0x5497d7(0x1e5)]])===null||_0x255a00===void 0x0?void 0x0:_0x255a00['logintimeout'])||0x0)>0x0&&Date[_0x5497d7(0x1fa)]()-Math[_0x5497d7(0x204)](_0x51728e['logintime'])>this['config'][_0x5497d7(0x210)][_0x51728e[_0x5497d7(0x1e5)]][_0x5497d7(0x206)])throw new AnnError(ApiError_1['ApiError'][_0x5497d7(0x1eb)]);if(!this['config']['devices'][_0x51728e[_0x5497d7(0x1e5)]]||!this[_0x5497d7(0x205)]['devices'][_0x51728e['device']][_0x5497d7(0x1dc)]||!this[_0x5497d7(0x205)][_0x5497d7(0x210)][_0x51728e[_0x5497d7(0x1e5)]][_0x5497d7(0x1f9)])throw new AnnError(ApiError_1[_0x5497d7(0x1ef)]['HEADERS_DEVICE']);if(_0x51728e[_0x5497d7(0x1d7)]&&_0x51728e['checkcode']!=this[_0x5497d7(0x1f9)](_0x51728e[_0x5497d7(0x1d7)],_0x51728e[_0x5497d7(0x1e5)],_0x51728e[_0x5497d7(0x1f4)]))throw new AnnError(ApiError_1[_0x5497d7(0x1ef)]['HEADERS_CHECKCODE']);return _0x3358e8['push'](_0x5497d7(0x1fc)+this['config']['devices'][_0x51728e[_0x5497d7(0x1e5)]][_0x5497d7(0x1dc)]),(0x0,crypto_js_1[_0x5497d7(0x1dd)])(_0x3358e8[_0x5497d7(0x1e8)]()[_0x5497d7(0x1f2)](''))[_0x5497d7(0x1df)]();}['checkcode'](_0x75d582,_0x4d527b,_0x29a34e=Date[a10_0x35832f(0x1fa)]()){var _0x23b3d8=a10_0x35832f,_0x55781c,_0x413d3f,_0xc60613;if(!((_0x55781c=this[_0x23b3d8(0x205)])===null||_0x55781c===void 0x0?void 0x0:_0x55781c[_0x23b3d8(0x210)][_0x4d527b])||!((_0xc60613=(_0x413d3f=this[_0x23b3d8(0x205)])===null||_0x413d3f===void 0x0?void 0x0:_0x413d3f[_0x23b3d8(0x210)][_0x4d527b])===null||_0xc60613===void 0x0?void 0x0:_0xc60613[_0x23b3d8(0x1f9)]))throw new AnnError(ApiError_1[_0x23b3d8(0x1ef)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x23b3d8(0x1dd)])(''+_0x75d582+(0x0,crypto_js_1[_0x23b3d8(0x1dd)])(''+_0x29a34e+(''+this[_0x23b3d8(0x205)][_0x23b3d8(0x210)][_0x4d527b][_0x23b3d8(0x1f9)]))[_0x23b3d8(0x1df)]())[_0x23b3d8(0x1df)]();}[a10_0x35832f(0x1ee)](_0x128b3d={}){var _0x53f3ec=a10_0x35832f;const _0x50918e=Object[_0x53f3ec(0x203)](Object['entries'](_0x128b3d)['map'](_0x1cee18=>[_0x1cee18[0x0][_0x53f3ec(0x20d)](),_0x1cee18[0x1]]));if(!(_0x50918e===null||_0x50918e===void 0x0?void 0x0:_0x50918e[_0x53f3ec(0x202)]))throw new AnnError(ApiError_1['ApiError'][_0x53f3ec(0x1f0)],{'message':_0x53f3ec(0x1f7)});if((_0x50918e===null||_0x50918e===void 0x0?void 0x0:_0x50918e[_0x53f3ec(0x202)])!=this[_0x53f3ec(0x1ea)](_0x50918e))throw new AnnError(ApiError_1[_0x53f3ec(0x1ef)][_0x53f3ec(0x1f5)],{'message':_0x53f3ec(0x1f7)});return!![];}};__decorate([(0x0,core_1[a10_0x35832f(0x209)])(a10_0x35832f(0x201)),__metadata(a10_0x35832f(0x1fe),Object)],ApiService[a10_0x35832f(0x1f6)],a10_0x35832f(0x205),void 0x0),exports['ApiService']=ApiService=__decorate([(0x0,core_1[a10_0x35832f(0x1f1)])(),(0x0,core_1[a10_0x35832f(0x1e7)])(core_1['ScopeEnum'][a10_0x35832f(0x1e9)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x18c869=a11_0x35d1;(function(_0x83c8ef,_0x52734a){const _0x34b585=a11_0x35d1,_0x55c099=_0x83c8ef();while(!![]){try{const _0x347770=-parseInt(_0x34b585(0x1a7))/0x1*(parseInt(_0x34b585(0x1e3))/0x2)+parseInt(_0x34b585(0x1b4))/0x3*(parseInt(_0x34b585(0x1c2))/0x4)+parseInt(_0x34b585(0x1a2))/0x5+-parseInt(_0x34b585(0x1cc))/0x6+parseInt(_0x34b585(0x1ad))/0x7+parseInt(_0x34b585(0x1e0))/0x8+-parseInt(_0x34b585(0x1c1))/0x9*(parseInt(_0x34b585(0x1ce))/0xa);if(_0x347770===_0x52734a)break;else _0x55c099['push'](_0x55c099['shift']());}catch(_0x1cc7ca){_0x55c099['push'](_0x55c099['shift']());}}}(a11_0x52b1,0xc4e81));const a11_0x401ac5=(function(){let _0x53cfb2=!![];return function(_0x470c4a,_0x283163){const _0x505219=_0x53cfb2?function(){if(_0x283163){const _0x1c4c12=_0x283163['apply'](_0x470c4a,arguments);return _0x283163=null,_0x1c4c12;}}:function(){};return _0x53cfb2=![],_0x505219;};}()),a11_0x287c3b=a11_0x401ac5(this,function(){const _0x4b7bc2=a11_0x35d1;return a11_0x287c3b[_0x4b7bc2(0x1c5)]()['search'](_0x4b7bc2(0x1b7))[_0x4b7bc2(0x1c5)]()[_0x4b7bc2(0x1b2)](a11_0x287c3b)['search'](_0x4b7bc2(0x1b7));});a11_0x287c3b();'use strict';var __decorate=this&&this[a11_0x18c869(0x1a0)]||function(_0x44df4e,_0x1b026b,_0x421cc0,_0x1f7779){const _0x4592df=a11_0x18c869;var _0x1630a7=arguments[_0x4592df(0x1b0)],_0x1d4d3f=_0x1630a7<0x3?_0x1b026b:_0x1f7779===null?_0x1f7779=Object['getOwnPropertyDescriptor'](_0x1b026b,_0x421cc0):_0x1f7779,_0x15ec2d;if(typeof Reflect===_0x4592df(0x1bb)&&typeof Reflect['decorate']===_0x4592df(0x1dd))_0x1d4d3f=Reflect[_0x4592df(0x19b)](_0x44df4e,_0x1b026b,_0x421cc0,_0x1f7779);else{for(var _0x3d97b7=_0x44df4e[_0x4592df(0x1b0)]-0x1;_0x3d97b7>=0x0;_0x3d97b7--)if(_0x15ec2d=_0x44df4e[_0x3d97b7])_0x1d4d3f=(_0x1630a7<0x3?_0x15ec2d(_0x1d4d3f):_0x1630a7>0x3?_0x15ec2d(_0x1b026b,_0x421cc0,_0x1d4d3f):_0x15ec2d(_0x1b026b,_0x421cc0))||_0x1d4d3f;}return _0x1630a7>0x3&&_0x1d4d3f&&Object[_0x4592df(0x1e2)](_0x1b026b,_0x421cc0,_0x1d4d3f),_0x1d4d3f;},__metadata=this&&this[a11_0x18c869(0x1c0)]||function(_0x1c9503,_0x3cff09){const _0x1f5617=a11_0x18c869;if(typeof Reflect==='object'&&typeof Reflect[_0x1f5617(0x1d9)]===_0x1f5617(0x1dd))return Reflect[_0x1f5617(0x1d9)](_0x1c9503,_0x3cff09);},__param=this&&this[a11_0x18c869(0x1c9)]||function(_0x1c25a,_0x22e8a2){return function(_0x44afc1,_0x23c190){_0x22e8a2(_0x44afc1,_0x23c190,_0x1c25a);};};function a11_0x35d1(_0x46511c,_0x9c91bc){const _0x3c747c=a11_0x52b1();return a11_0x35d1=function(_0x287c3b,_0x401ac5){_0x287c3b=_0x287c3b-0x191;let _0x52b1c2=_0x3c747c[_0x287c3b];return _0x52b1c2;},a11_0x35d1(_0x46511c,_0x9c91bc);}Object[a11_0x18c869(0x1e2)](exports,a11_0x18c869(0x198),{'value':!![]}),exports[a11_0x18c869(0x19d)]=exports[a11_0x18c869(0x1bc)]=void 0x0;const path_1=require(a11_0x18c869(0x1a8)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x18c869(0x1ca)),core_3=require(a11_0x18c869(0x1ca)),getRoutes_1=require('../helper/getRoutes');function a11_0x52b1(){const _0x1b478a=['anncicapi','../../public/index.html','__param','@midwayjs/core','route','7289436hQKZwb','__devices__','129490jDDdXw','filepath','Get','ScopeEnum','devices','cache-control','/apitest-:module','Config','existsSync','config','method','metadata','design:type','ctx','apidoc','function','getRoutes','replace','2985728JOcSBw','set','defineProperty','4138jXhfwW','apitestmodule','Param','design:returntype','Provide','apitesthtml','Environment','readFileSync','__esModule','join','module','decorate','../../public/','ApitestStaticController','push','Request','__decorate','public,\x20max-age=604800','5558550FKmMRC','Inject','isDevelopmentEnvironment','apitest','Scope','86bjlOya','path','/apitest','MidwayEnvironmentService','text/css;\x20charset=utf-8','content-type','11283167vLRaMp','/apiteststatic/','apiteststatic','length','extname','constructor','design:paramtypes','2474337IYiJFx','summary','Singleton','(((.+)+)+)+$','utf-8','routes','prototype','object','ApitestService','url','substring','request','__metadata','1197jzCHNE','4XxCTeM','.js','stringify','toString','application/javascript;\x20charset=utf-8'];a11_0x52b1=function(){return _0x1b478a;};return a11_0x52b1();}let ApitestService=exports['ApitestService']=class ApitestService{async[a11_0x18c869(0x1dc)](_0x52b224){const _0x4ba9e6=a11_0x18c869,_0x3be75f=(0x0,getRoutes_1[_0x4ba9e6(0x1de)])(_0x52b224),_0x56ef45=[];for(let _0x5baf01 in _0x3be75f){for(let _0x1030db in _0x3be75f[_0x5baf01][_0x4ba9e6(0x1b9)]){let _0x3c543c=_0x3be75f[_0x5baf01][_0x4ba9e6(0x1b9)][_0x1030db],_0x2163e2=[];for(let _0x537554 in _0x3c543c[_0x4ba9e6(0x1bf)]){_0x2163e2[_0x4ba9e6(0x19e)](_0x3c543c[_0x4ba9e6(0x1bf)][_0x537554]);}_0x56ef45[_0x4ba9e6(0x19e)]({'title':_0x3be75f[_0x5baf01]['summary']+':'+_0x3c543c[_0x4ba9e6(0x1b5)],'prefix':_0x3be75f[_0x5baf01]['prefix'],'router':_0x3c543c[_0x4ba9e6(0x1cb)],'method':_0x3c543c[_0x4ba9e6(0x1d8)],'describe':_0x3c543c['description']||'','filepath':_0x3be75f[_0x5baf01][_0x4ba9e6(0x1cf)]||'','request':_0x2163e2});}}const _0x2b835b=(0x0,path_1[_0x4ba9e6(0x199)])(__dirname,_0x4ba9e6(0x1c8));return(0x0,fs_1[_0x4ba9e6(0x197)])(_0x2b835b,{'encoding':_0x4ba9e6(0x1b8)})['replace'](/__res__/g,_0x4ba9e6(0x1ae))['replace']('__apiList__',JSON[_0x4ba9e6(0x1c4)](_0x56ef45))[_0x4ba9e6(0x1df)](_0x4ba9e6(0x1cd),JSON[_0x4ba9e6(0x1c4)](this[_0x4ba9e6(0x1d7)][_0x4ba9e6(0x1d2)]));}};__decorate([(0x0,core_3[a11_0x18c869(0x1d5)])(a11_0x18c869(0x1c7)),__metadata(a11_0x18c869(0x1da),Object)],ApitestService[a11_0x18c869(0x1ba)],a11_0x18c869(0x1d7),void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2[a11_0x18c869(0x194)])('apitest'),(0x0,core_3[a11_0x18c869(0x1a6)])(core_3[a11_0x18c869(0x1d1)][a11_0x18c869(0x1b6)])],ApitestService);let ApitestStaticController=exports['ApitestStaticController']=class ApitestStaticController{async[a11_0x18c869(0x195)](){const _0x595669=a11_0x18c869;if(this['apitest']){const _0x2de9af={'module':![]};return this['Environment'][_0x595669(0x1a4)]()&&(_0x2de9af[_0x595669(0x1cf)]=!![]),await this[_0x595669(0x1bc)]['apidoc'](_0x2de9af);}return'';}async[a11_0x18c869(0x191)](_0x516810){const _0x13c984=a11_0x18c869;if(this['apitest']){const _0x41ac2e={'module':_0x516810};return this[_0x13c984(0x196)]['isDevelopmentEnvironment']()&&(_0x41ac2e['filepath']=!![]),await this[_0x13c984(0x1bc)][_0x13c984(0x1dc)](_0x41ac2e);}return'';}async[a11_0x18c869(0x1af)](){const _0x4502af=a11_0x18c869;if((0x0,path_1[_0x4502af(0x1b1)])(this[_0x4502af(0x1db)][_0x4502af(0x1bf)][_0x4502af(0x1bd)])){var _0x2f5385=(0x0,path_1['join'])(__dirname,_0x4502af(0x19c)+this[_0x4502af(0x1db)][_0x4502af(0x1bf)][_0x4502af(0x1bd)][_0x4502af(0x1df)](_0x4502af(0x1ae),'/'));if(_0x2f5385[_0x4502af(0x1be)](_0x2f5385[_0x4502af(0x1b0)]-0xb)!='/index.html'){this[_0x4502af(0x1db)][_0x4502af(0x1e1)](_0x4502af(0x1d3),_0x4502af(0x1a1));if((0x0,path_1[_0x4502af(0x1b1)])(this[_0x4502af(0x1db)][_0x4502af(0x1bf)]['url'])==_0x4502af(0x1c3))this[_0x4502af(0x1db)][_0x4502af(0x1e1)](_0x4502af(0x1ac),_0x4502af(0x1c6));else(0x0,path_1[_0x4502af(0x1b1)])(this[_0x4502af(0x1db)][_0x4502af(0x1bf)]['url'])=='.css'&&this[_0x4502af(0x1db)][_0x4502af(0x1e1)](_0x4502af(0x1ac),_0x4502af(0x1ab));return(0x0,fs_1[_0x4502af(0x1d6)])(_0x2f5385)&&(0x0,fs_1[_0x4502af(0x197)])(_0x2f5385,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a11_0x18c869(0x1a3)])(),__metadata(a11_0x18c869(0x1da),Object)],ApitestStaticController[a11_0x18c869(0x1ba)],a11_0x18c869(0x1db),void 0x0),__decorate([(0x0,core_3[a11_0x18c869(0x1a3)])(),__metadata('design:type',core_1[a11_0x18c869(0x1aa)])],ApitestStaticController['prototype'],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x18c869(0x1a3)])(),__metadata(a11_0x18c869(0x1da),ApitestService)],ApitestStaticController[a11_0x18c869(0x1ba)],a11_0x18c869(0x1bc),void 0x0),__decorate([(0x0,core_3[a11_0x18c869(0x1d5)])(a11_0x18c869(0x1a5)),__metadata(a11_0x18c869(0x1da),Boolean)],ApitestStaticController['prototype'],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x18c869(0x1d5)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController['prototype'],a11_0x18c869(0x1d7),void 0x0),__decorate([(0x0,core_2[a11_0x18c869(0x1d0)])(a11_0x18c869(0x1a9)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a11_0x18c869(0x193),Promise)],ApitestStaticController[a11_0x18c869(0x1ba)],'apitesthtml',null),__decorate([(0x0,core_2[a11_0x18c869(0x1d0)])(a11_0x18c869(0x1d4)),__param(0x0,(0x0,core_2[a11_0x18c869(0x192)])(a11_0x18c869(0x19a))),__metadata(a11_0x18c869(0x1da),Function),__metadata(a11_0x18c869(0x1b3),[String]),__metadata(a11_0x18c869(0x193),Promise)],ApitestStaticController[a11_0x18c869(0x1ba)],a11_0x18c869(0x191),null),__decorate([(0x0,core_2[a11_0x18c869(0x1d0)])('/apiteststatic/*'),__metadata(a11_0x18c869(0x1da),Function),__metadata('design:paramtypes',[]),__metadata(a11_0x18c869(0x193),Promise)],ApitestStaticController[a11_0x18c869(0x1ba)],a11_0x18c869(0x1af),null),exports[a11_0x18c869(0x19d)]=ApitestStaticController=__decorate([(0x0,core_2['Controller'])('/'),(0x0,core_3[a11_0x18c869(0x1a6)])(core_3[a11_0x18c869(0x1d1)][a11_0x18c869(0x19f)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x5cb7de=a12_0x6b47;(function(_0x123f44,_0x41b549){const _0x7a44af=a12_0x6b47,_0x4784c2=_0x123f44();while(!![]){try{const _0x597f4c=parseInt(_0x7a44af(0xf2))/0x1+parseInt(_0x7a44af(0x103))/0x2*(parseInt(_0x7a44af(0x10f))/0x3)+-parseInt(_0x7a44af(0xf3))/0x4*(-parseInt(_0x7a44af(0x11d))/0x5)+-parseInt(_0x7a44af(0x111))/0x6*(parseInt(_0x7a44af(0x112))/0x7)+-parseInt(_0x7a44af(0xe2))/0x8+-parseInt(_0x7a44af(0x105))/0x9+-parseInt(_0x7a44af(0x10a))/0xa;if(_0x597f4c===_0x41b549)break;else _0x4784c2['push'](_0x4784c2['shift']());}catch(_0x304b13){_0x4784c2['push'](_0x4784c2['shift']());}}}(a12_0x370d,0xd8c5e));const a12_0x3aaf3d=(function(){let _0x2054c5=!![];return function(_0x4d98a8,_0x588bfe){const _0x3f337d=_0x2054c5?function(){if(_0x588bfe){const _0x2b64b2=_0x588bfe['apply'](_0x4d98a8,arguments);return _0x588bfe=null,_0x2b64b2;}}:function(){};return _0x2054c5=![],_0x3f337d;};}()),a12_0x52e3dc=a12_0x3aaf3d(this,function(){const _0x36cd91=a12_0x6b47;return a12_0x52e3dc[_0x36cd91(0x10e)]()[_0x36cd91(0xed)](_0x36cd91(0x101))[_0x36cd91(0x10e)]()[_0x36cd91(0xe5)](a12_0x52e3dc)['search'](_0x36cd91(0x101));});a12_0x52e3dc();'use strict';var __decorate=this&&this[a12_0x5cb7de(0x113)]||function(_0x56be21,_0x1f577a,_0x204459,_0x30cd9f){const _0x44d831=a12_0x5cb7de;var _0x4294a4=arguments[_0x44d831(0x11a)],_0x3db320=_0x4294a4<0x3?_0x1f577a:_0x30cd9f===null?_0x30cd9f=Object[_0x44d831(0xeb)](_0x1f577a,_0x204459):_0x30cd9f,_0x370ce;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x3db320=Reflect[_0x44d831(0xe1)](_0x56be21,_0x1f577a,_0x204459,_0x30cd9f);else{for(var _0xbf9f25=_0x56be21[_0x44d831(0x11a)]-0x1;_0xbf9f25>=0x0;_0xbf9f25--)if(_0x370ce=_0x56be21[_0xbf9f25])_0x3db320=(_0x4294a4<0x3?_0x370ce(_0x3db320):_0x4294a4>0x3?_0x370ce(_0x1f577a,_0x204459,_0x3db320):_0x370ce(_0x1f577a,_0x204459))||_0x3db320;}return _0x4294a4>0x3&&_0x3db320&&Object[_0x44d831(0xe8)](_0x1f577a,_0x204459,_0x3db320),_0x3db320;},__metadata=this&&this[a12_0x5cb7de(0x108)]||function(_0x380169,_0x534351){const _0xb290e1=a12_0x5cb7de;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0xb290e1(0x123))return Reflect[_0xb290e1(0x122)](_0x380169,_0x534351);};Object[a12_0x5cb7de(0xe8)](exports,a12_0x5cb7de(0x109),{'value':!![]}),exports['ExcelService']=void 0x0;const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a12_0x5cb7de(0x107)),core_1=require('@midwayjs/core');let ExcelService=exports[a12_0x5cb7de(0xe9)]=class ExcelService{async[a12_0x5cb7de(0xe7)](_0x174b5e,_0x19fb3e,_0x392337=[0x0]){const _0x483c59=a12_0x5cb7de;var _0x2cadd7,_0x1779cb;const _0x4d7545=new exceljs[(_0x483c59(0xf1))](),_0x5a1aa0=[];let _0x35b51e=_0x174b5e[_0x483c59(0xec)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x35b51e===null||_0x35b51e===void 0x0?void 0x0:_0x35b51e[_0x483c59(0xf8)]('/'))&&(_0x35b51e=this['app']['getAppDir']()+'/'+_0x35b51e);try{await _0x4d7545[_0x483c59(0xfc)][_0x483c59(0xfd)](_0x35b51e);}catch(_0x2e9730){return console[_0x483c59(0xdf)](_0x483c59(0x119)+_0x35b51e+_0x483c59(0xf0)),_0x5a1aa0;}for(const _0x41fea7 of _0x392337){const _0x1efc0e=lodash[_0x483c59(0xea)](_0x41fea7)?((_0x2cadd7=_0x4d7545[_0x483c59(0x117)])===null||_0x2cadd7===void 0x0?void 0x0:_0x2cadd7[_0x41fea7])||undefined:_0x4d7545[_0x483c59(0xfb)](_0x41fea7);if(_0x1efc0e){var _0x564a41=0x1;const _0x4e1d5e=_0x1efc0e[_0x483c59(0xff)](0x1),_0x358168=await new Promise(_0x1f9bb2=>{const _0x456d57={};_0x4e1d5e['eachCell']((_0x4f1f98,_0x1195ef)=>{const _0x5e4f90=a12_0x6b47;for(const _0x6bc1be of _0x19fb3e){if(_0x4f1f98['value']==_0x6bc1be[_0x5e4f90(0x100)])_0x564a41=0x2,_0x456d57[_0x6bc1be[_0x5e4f90(0xfe)]]={'header':_0x4f1f98[_0x5e4f90(0xf4)],'handler':_0x6bc1be[_0x5e4f90(0xef)]};else{if(!_0x456d57[_0x6bc1be['key']])try{const _0x28403c=_0x4e1d5e&&_0x4e1d5e[_0x5e4f90(0x120)](_0x6bc1be[_0x5e4f90(0x100)]);_0x28403c&&(_0x456d57[_0x6bc1be[_0x5e4f90(0xfe)]]={'header':_0x28403c[_0x5e4f90(0xf4)],'handler':_0x6bc1be[_0x5e4f90(0xef)]});}catch{}}}_0x4e1d5e[_0x5e4f90(0x118)]==_0x1195ef&&_0x1f9bb2(_0x456d57);});});_0x1f13ff:for(const _0x43ca27 of _0x1efc0e[_0x483c59(0xe0)](_0x564a41,_0x1efc0e[_0x483c59(0x11f)])){if(typeof(_0x43ca27===null||_0x43ca27===void 0x0?void 0x0:_0x43ca27[_0x483c59(0x120)])!=_0x483c59(0x123))continue _0x1f13ff;const _0x465136={};_0x14153e:for(const _0x5beca0 in _0x358168){if(_0x358168[_0x5beca0][_0x483c59(0x100)]){const _0x5cb26e=_0x43ca27['getCell'](_0x358168[_0x5beca0]['header']);if(!_0x5cb26e)continue _0x14153e;try{_0x5cb26e['toString']();}catch(_0x4fbfdf){_0x5cb26e[_0x483c59(0x10e)]=()=>{const _0x1514a3=_0x483c59;var _0x25d2ba;return''+(((_0x25d2ba=_0x5cb26e===null||_0x5cb26e===void 0x0?void 0x0:_0x5cb26e[_0x1514a3(0xf7)])===null||_0x25d2ba===void 0x0?void 0x0:_0x25d2ba[_0x1514a3(0x121)])||'');};}typeof((_0x1779cb=_0x358168[_0x5beca0])===null||_0x1779cb===void 0x0?void 0x0:_0x1779cb['handler'])==_0x483c59(0x123)?_0x465136[_0x5beca0]=await _0x358168[_0x5beca0]['handler'](lodash['set']({},_0x5beca0,(_0x5cb26e===null||_0x5cb26e===void 0x0?void 0x0:_0x5cb26e[_0x483c59(0x10e)]())||''),_0x5cb26e[_0x483c59(0xf7)]):_0x465136[_0x5beca0]=(_0x5cb26e===null||_0x5cb26e===void 0x0?void 0x0:_0x5cb26e[_0x483c59(0x10e)]())||'';}}Object[_0x483c59(0x10c)](_0x465136)[_0x483c59(0x11a)]>0x0&&Object['values'](_0x465136)['filter'](_0x3372ed=>_0x3372ed!='')['length']>0x0&&_0x5a1aa0['push'](_0x465136);}}}return _0x5a1aa0;}async['export'](_0x2b1ed7,_0x43d9a4,_0x2e9f56,_0x775e28,_0x3c0a53){const _0x38f5bc=a12_0x5cb7de;var _0x3e2411,_0x1f5700;const _0x2869ab=new exceljs[(_0x38f5bc(0xf1))](),_0x38e9f7={},_0x4737d6=[],_0x594623=_0x2869ab[_0x38f5bc(0xe6)](_0x38f5bc(0x10b),{'views':[{'state':_0x38f5bc(0x102),'ySplit':0x1}]});for(const _0x32e4a3 in _0x43d9a4){_0x38e9f7[_0x43d9a4[_0x32e4a3][_0x38f5bc(0xfe)]]=_0x43d9a4[_0x32e4a3][_0x38f5bc(0x100)],_0x4737d6['push']({'header':_0x43d9a4[_0x32e4a3][_0x38f5bc(0x100)],'key':(_0x3e2411=_0x43d9a4[_0x32e4a3])===null||_0x3e2411===void 0x0?void 0x0:_0x3e2411[_0x38f5bc(0xfe)]['replace'](/\./g,'_')});}_0x594623[_0x38f5bc(0x115)]=_0x4737d6;for(const _0x484939 in _0x2e9f56){const _0xdb899=_0x2e9f56[_0x484939],_0x3567c3=_0x594623[_0x38f5bc(0xfa)]({});for(let _0x58f997 in _0x43d9a4){const _0x331394=_0x43d9a4[_0x58f997][_0x38f5bc(0xfe)]['replace'](/\./g,'_'),_0xb3a7bc=_0x594623[_0x38f5bc(0x110)](_0x331394),_0x1e9f66=_0x3567c3===null||_0x3567c3===void 0x0?void 0x0:_0x3567c3['getCell'](_0x331394);typeof((_0x1f5700=_0x43d9a4[_0x58f997])===null||_0x1f5700===void 0x0?void 0x0:_0x1f5700[_0x38f5bc(0xef)])==_0x38f5bc(0x123)?_0x1e9f66['value']=await _0x43d9a4[_0x58f997][_0x38f5bc(0xef)](_0xdb899,{'row':_0x3567c3,'col':_0xb3a7bc,'cell':_0x1e9f66,'sheet':_0x594623})||'':_0x1e9f66[_0x38f5bc(0x121)]=lodash['get'](_0xdb899,_0x43d9a4[_0x58f997]['key'],'');}}typeof _0x3c0a53==_0x38f5bc(0x123)&&await _0x3c0a53({'workbook':_0x2869ab,'worksheet':_0x594623});let _0x3db5d3='';const _0x3fa228=_0x2b1ed7+'-'+lodash[_0x38f5bc(0xee)](0x186a0,0xf423f)+_0x38f5bc(0xf5);if(_0x775e28&&_0x775e28['startsWith']('/'))_0x3db5d3=''+_0x775e28;else _0x775e28&&!_0x775e28['startsWith']('/')&&!_0x775e28[_0x38f5bc(0xf8)]('\x5c')?_0x3db5d3=this[_0x38f5bc(0x116)][_0x38f5bc(0xde)]()+'/'+_0x775e28:_0x3db5d3=this[_0x38f5bc(0x116)]['getAppDir']()+_0x38f5bc(0x11c)+dayjs()['format'](_0x38f5bc(0x11b));return(_0x3db5d3[_0x38f5bc(0xf6)]('/')||_0x3db5d3[_0x38f5bc(0xf6)]('\x5c'))&&(_0x3db5d3=_0x3db5d3[_0x38f5bc(0xe4)](0x0,_0x3db5d3['length']-0x1)),_0x3db5d3=_0x3db5d3[_0x38f5bc(0xec)](/(\\|\/)/g,'/')[_0x38f5bc(0xec)](/\/{2,}/g,'/'),!fs[_0x38f5bc(0x104)](_0x3db5d3)&&fs[_0x38f5bc(0xf9)](_0x3db5d3,{'recursive':!![]}),await _0x2869ab[_0x38f5bc(0xfc)][_0x38f5bc(0x114)]((_0x3db5d3+'/'+_0x3fa228)[_0x38f5bc(0xec)](/(\\|\/)/g,'/')[_0x38f5bc(0xec)](/\/{2,}/g,'/')),{'filename':_0x3fa228,'filepath':(_0x3db5d3[_0x38f5bc(0xe4)]((''+this[_0x38f5bc(0x116)][_0x38f5bc(0xde)]())[_0x38f5bc(0x11a)])+'/'+_0x3fa228)[_0x38f5bc(0xec)](/(\\|\/)/g,'/')[_0x38f5bc(0xec)](/\/{2,}/g,'/')};}async[a12_0x5cb7de(0x11e)](_0x29b64f,_0x34a71f){return await koasend(_0x29b64f,''+_0x34a71f);}};function a12_0x6b47(_0x27f464,_0x4c4512){const _0x66091=a12_0x370d();return a12_0x6b47=function(_0x52e3dc,_0x3aaf3d){_0x52e3dc=_0x52e3dc-0xdd;let _0x370d3b=_0x66091[_0x52e3dc];return _0x370d3b;},a12_0x6b47(_0x27f464,_0x4c4512);}function a12_0x370d(){const _0x55f90e=['addRow','getWorksheet','xlsx','readFile','key','getRow','header','(((.+)+)+)+$','frozen','2042AABIno','existsSync','10672794GcctcG','ScopeEnum','koa-send','__metadata','__esModule','2164900PmYQYM','Sheet\x201','keys','App','toString','3876NhcYKm','getColumn','24iUOKeu','1683878vFKqVx','__decorate','writeFile','columns','app','worksheets','cellCount','Api\x20Excel\x20Error:\x20','length','YYYY/MM/DD','/public/xlsx/','2912045EptTCW','download','rowCount','getCell','value','metadata','function','design:type','getAppDir','log','findRows','decorate','2705232hoBukt','Scope','substring','constructor','addWorksheet','parse','defineProperty','ExcelService','isNumber','getOwnPropertyDescriptor','replace','search','random','handler','\x20is\x20read\x20fail','Workbook','524269MeOtgV','12ShwjIt','col','.xlsx','endsWith','model','startsWith','mkdirSync'];a12_0x370d=function(){return _0x55f90e;};return a12_0x370d();}__decorate([(0x0,core_1[a12_0x5cb7de(0x10d)])(),__metadata(a12_0x5cb7de(0xdd),Object)],ExcelService['prototype'],a12_0x5cb7de(0x116),void 0x0),exports[a12_0x5cb7de(0xe9)]=ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a12_0x5cb7de(0xe3)])(core_1[a12_0x5cb7de(0x106)]['Singleton'])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a13_0x9e4cea=a13_0x5470;(function(_0x55c9fa,_0x46b28a){var _0x4a71a9=a13_0x5470,_0x191bfd=_0x55c9fa();while(!![]){try{var _0x171961=-parseInt(_0x4a71a9(0x1b5))/0x1*(-parseInt(_0x4a71a9(0x1bf))/0x2)+parseInt(_0x4a71a9(0x1b8))/0x3*(-parseInt(_0x4a71a9(0x1b9))/0x4)+parseInt(_0x4a71a9(0x1bc))/0x5+parseInt(_0x4a71a9(0x1b7))/0x6+parseInt(_0x4a71a9(0x1bd))/0x7+-parseInt(_0x4a71a9(0x1c1))/0x8*(parseInt(_0x4a71a9(0x1b0))/0x9)+-parseInt(_0x4a71a9(0x1b3))/0xa*(parseInt(_0x4a71a9(0x1ae))/0xb);if(_0x171961===_0x46b28a)break;else _0x191bfd['push'](_0x191bfd['shift']());}catch(_0x26cfac){_0x191bfd['push'](_0x191bfd['shift']());}}}(a13_0x3a71,0x2b8a7));var a13_0x4ac4d8=(function(){var _0x785e86=!![];return function(_0x17365c,_0x47c893){var _0x169c6d=_0x785e86?function(){var _0xc8cc97=a13_0x5470;if(_0x47c893){var _0x3b6af4=_0x47c893[_0xc8cc97(0x1c2)](_0x17365c,arguments);return _0x47c893=null,_0x3b6af4;}}:function(){};return _0x785e86=![],_0x169c6d;};}()),a13_0xbafb47=a13_0x4ac4d8(this,function(){var _0x337ee1=a13_0x5470;return a13_0xbafb47[_0x337ee1(0x1c4)]()[_0x337ee1(0x1b4)]('(((.+)+)+)+$')['toString']()[_0x337ee1(0x1b2)](a13_0xbafb47)[_0x337ee1(0x1b4)](_0x337ee1(0x1ad));});a13_0xbafb47();'use strict';Object[a13_0x9e4cea(0x1bb)](exports,a13_0x9e4cea(0x1c3),{'value':!![]}),exports[a13_0x9e4cea(0x1af)]=exports[a13_0x9e4cea(0x1ba)]=exports['ACTION_ROUTE_KEY']=exports['ACTION_KEY']=void 0x0,exports[a13_0x9e4cea(0x1be)]='anncic-api:action',exports[a13_0x9e4cea(0x1b6)]=a13_0x9e4cea(0x1c0),exports[a13_0x9e4cea(0x1ba)]=a13_0x9e4cea(0x1b1);function a13_0x5470(_0x2fae3d,_0x5da06b){var _0x2e62d3=a13_0x3a71();return a13_0x5470=function(_0xbafb47,_0x4ac4d8){_0xbafb47=_0xbafb47-0x1ad;var _0x3a71f9=_0x2e62d3[_0xbafb47];return _0x3a71f9;},a13_0x5470(_0x2fae3d,_0x5da06b);}class AppsConfigTmp{}exports[a13_0x9e4cea(0x1af)]=AppsConfigTmp;function a13_0x3a71(){var _0x3bc6a3=['defineProperty','345340hCkWHn','183071JurCXb','ACTION_KEY','280QyiLUr','anncic-api:action:route','2651384dqFRDF','apply','__esModule','toString','(((.+)+)+)+$','11605ZCpRNG','AppsConfigTmp','9qSNwBZ','anncic-api:apps:config','constructor','410uDoXfz','search','2269jsJeRh','ACTION_ROUTE_KEY','1854252pWYQwg','6414bRxORm','316LUGmWb','APPSCONFIG_KEY'];a13_0x3a71=function(){return _0x3bc6a3;};return a13_0x3a71();}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0xe5a8e5=a14_0x516c;(function(_0x2002c4,_0x41e0e4){var _0x2b46af=a14_0x516c,_0x1ed020=_0x2002c4();while(!![]){try{var _0xe542fd=parseInt(_0x2b46af(0xd7))/0x1*(parseInt(_0x2b46af(0xd2))/0x2)+-parseInt(_0x2b46af(0xc4))/0x3+parseInt(_0x2b46af(0xe5))/0x4+-parseInt(_0x2b46af(0xcd))/0x5*(parseInt(_0x2b46af(0xcb))/0x6)+parseInt(_0x2b46af(0xd0))/0x7+-parseInt(_0x2b46af(0xe0))/0x8+parseInt(_0x2b46af(0xc5))/0x9*(parseInt(_0x2b46af(0xc9))/0xa);if(_0xe542fd===_0x41e0e4)break;else _0x1ed020['push'](_0x1ed020['shift']());}catch(_0x1a01b2){_0x1ed020['push'](_0x1ed020['shift']());}}}(a14_0x32de,0xaa305));var a14_0x158a45=(function(){var _0x1467db=!![];return function(_0x4998d5,_0x4248f9){var _0x19a0c1=_0x1467db?function(){if(_0x4248f9){var _0x58ccf5=_0x4248f9['apply'](_0x4998d5,arguments);return _0x4248f9=null,_0x58ccf5;}}:function(){};return _0x1467db=![],_0x19a0c1;};}()),a14_0x5de123=a14_0x158a45(this,function(){var _0x37a20f=a14_0x516c;return a14_0x5de123[_0x37a20f(0xe2)]()[_0x37a20f(0xe6)]('(((.+)+)+)+$')[_0x37a20f(0xe2)]()['constructor'](a14_0x5de123)[_0x37a20f(0xe6)]('(((.+)+)+)+$');});function a14_0x516c(_0x29ad12,_0x3e9197){var _0x4df0c9=a14_0x32de();return a14_0x516c=function(_0x5de123,_0x158a45){_0x5de123=_0x5de123-0xc0;var _0x32dee1=_0x4df0c9[_0x5de123];return _0x32dee1;},a14_0x516c(_0x29ad12,_0x3e9197);}a14_0x5de123();'use strict';var __decorate=this&&this[a14_0xe5a8e5(0xe3)]||function(_0x1a8184,_0x3c1a84,_0x4c5497,_0x4bf4a3){var _0x4a8504=a14_0xe5a8e5,_0x35e792=arguments['length'],_0x57b3c1=_0x35e792<0x3?_0x3c1a84:_0x4bf4a3===null?_0x4bf4a3=Object[_0x4a8504(0xca)](_0x3c1a84,_0x4c5497):_0x4bf4a3,_0x2b420a;if(typeof Reflect===_0x4a8504(0xcc)&&typeof Reflect[_0x4a8504(0xc1)]==='function')_0x57b3c1=Reflect[_0x4a8504(0xc1)](_0x1a8184,_0x3c1a84,_0x4c5497,_0x4bf4a3);else{for(var _0x1c2279=_0x1a8184[_0x4a8504(0xd3)]-0x1;_0x1c2279>=0x0;_0x1c2279--)if(_0x2b420a=_0x1a8184[_0x1c2279])_0x57b3c1=(_0x35e792<0x3?_0x2b420a(_0x57b3c1):_0x35e792>0x3?_0x2b420a(_0x3c1a84,_0x4c5497,_0x57b3c1):_0x2b420a(_0x3c1a84,_0x4c5497))||_0x57b3c1;}return _0x35e792>0x3&&_0x57b3c1&&Object['defineProperty'](_0x3c1a84,_0x4c5497,_0x57b3c1),_0x57b3c1;},__metadata=this&&this[a14_0xe5a8e5(0xdb)]||function(_0x22cf78,_0x509956){var _0x16a345=a14_0xe5a8e5;if(typeof Reflect===_0x16a345(0xcc)&&typeof Reflect[_0x16a345(0xc6)]===_0x16a345(0xce))return Reflect[_0x16a345(0xc6)](_0x22cf78,_0x509956);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a14_0xe5a8e5(0xcf)]=void 0x0;const validator_1=require(a14_0xe5a8e5(0xd1));class PageDTO{}exports['PageDTO']=PageDTO,__decorate([(0x0,validator_1[a14_0xe5a8e5(0xc8)])('分页',validator_1[a14_0xe5a8e5(0xe4)]['number']()['integer']()[a14_0xe5a8e5(0xda)](0x1),a14_0xe5a8e5(0xd9)),__metadata('design:type',Number)],PageDTO[a14_0xe5a8e5(0xd8)],a14_0xe5a8e5(0xe1),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0xe5a8e5(0xc2),validator_1[a14_0xe5a8e5(0xe4)][a14_0xe5a8e5(0xdf)]()[a14_0xe5a8e5(0xdd)]()[a14_0xe5a8e5(0xda)](0x1)),__metadata(a14_0xe5a8e5(0xd5),Number)],PageDTO[a14_0xe5a8e5(0xd8)],a14_0xe5a8e5(0xc7),void 0x0),__decorate([(0x0,validator_1[a14_0xe5a8e5(0xc8)])(a14_0xe5a8e5(0xd4),validator_1[a14_0xe5a8e5(0xe4)][a14_0xe5a8e5(0xc3)]()[a14_0xe5a8e5(0xdc)]()),__metadata('design:type',String)],PageDTO[a14_0xe5a8e5(0xd8)],a14_0xe5a8e5(0xd6),void 0x0),__decorate([(0x0,validator_1[a14_0xe5a8e5(0xc8)])(a14_0xe5a8e5(0xc0),validator_1['RuleType'][a14_0xe5a8e5(0xdf)]()['integer']()[a14_0xe5a8e5(0xde)](0x0,0x1),'1:是;0:否'),__metadata(a14_0xe5a8e5(0xd5),Number)],PageDTO[a14_0xe5a8e5(0xd8)],'_isreverse',void 0x0);function a14_0x32de(){var _0x442dd0=['string','3567183fDHHQP','1169478yOwFYV','metadata','_size','Rule','200KiwFRI','getOwnPropertyDescriptor','486AKGgnm','object','67885sOSXav','function','PageDTO','2790417aZtXRS','@anncic-api/validator','1438eoEsAL','length','排序方式','design:type','_order','830dKScPd','prototype','第一页为1,第二页为2','min','__metadata','trim','integer','valid','number','8087536kHtYUS','_page','toString','__decorate','RuleType','1610368uvskAI','search','是否倒序','decorate','分页数量'];a14_0x32de=function(){return _0x442dd0;};return a14_0x32de();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x36a458=a15_0x116b;function a15_0x116b(_0x5e23f0,_0x2ab928){var _0x2d1e04=a15_0x51a0();return a15_0x116b=function(_0x2db50e,_0x59a69b){_0x2db50e=_0x2db50e-0xdf;var _0x51a045=_0x2d1e04[_0x2db50e];return _0x51a045;},a15_0x116b(_0x5e23f0,_0x2ab928);}(function(_0x54b020,_0x461f5a){var _0x167bc1=a15_0x116b,_0x18dfd1=_0x54b020();while(!![]){try{var _0x52ce4b=parseInt(_0x167bc1(0xe6))/0x1+parseInt(_0x167bc1(0xe1))/0x2+-parseInt(_0x167bc1(0xdf))/0x3+-parseInt(_0x167bc1(0xe5))/0x4+parseInt(_0x167bc1(0xe3))/0x5+-parseInt(_0x167bc1(0xea))/0x6+parseInt(_0x167bc1(0xeb))/0x7;if(_0x52ce4b===_0x461f5a)break;else _0x18dfd1['push'](_0x18dfd1['shift']());}catch(_0x320ef9){_0x18dfd1['push'](_0x18dfd1['shift']());}}}(a15_0x51a0,0x2b77f));var a15_0x59a69b=(function(){var _0xd100c3=!![];return function(_0x197d98,_0x1117c9){var _0x139936=_0xd100c3?function(){var _0x370bd4=a15_0x116b;if(_0x1117c9){var _0x1b9288=_0x1117c9[_0x370bd4(0xec)](_0x197d98,arguments);return _0x1117c9=null,_0x1b9288;}}:function(){};return _0xd100c3=![],_0x139936;};}()),a15_0x2db50e=a15_0x59a69b(this,function(){var _0xe78645=a15_0x116b;return a15_0x2db50e[_0xe78645(0xe7)]()[_0xe78645(0xe0)](_0xe78645(0xe4))[_0xe78645(0xe7)]()[_0xe78645(0xe2)](a15_0x2db50e)[_0xe78645(0xe0)]('(((.+)+)+)+$');});a15_0x2db50e();'use strict';Object[a15_0x36a458(0xe8)](exports,'__esModule',{'value':!![]}),exports[a15_0x36a458(0xe9)]=exports[a15_0x36a458(0xed)]=void 0x0,exports[a15_0x36a458(0xed)]=a15_0x36a458(0xee);class InterceptTargetTmp{}exports[a15_0x36a458(0xe9)]=InterceptTargetTmp;function a15_0x51a0(){var _0x37713e=['apply','INTERCEPT_KEY','anncic-api:intercept','155184YWPpLp','search','380250xFCJOT','constructor','1005310rcnToD','(((.+)+)+)+$','1299408RuYqpV','7015rdMgSj','toString','defineProperty','InterceptTargetTmp','675852oCweyc','1883469bGLoiE'];a15_0x51a0=function(){return _0x37713e;};return a15_0x51a0();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
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.3.
|
|
21
|
-
"@anncic-api/core": "^3.3.
|
|
22
|
-
"@anncic-api/event": "^3.3.
|
|
23
|
-
"@anncic-api/typeorm": "^3.3.
|
|
24
|
-
"@anncic-api/validator": "^3.3.
|
|
20
|
+
"@anncic-api/cache": "^3.3.7",
|
|
21
|
+
"@anncic-api/core": "^3.3.7",
|
|
22
|
+
"@anncic-api/event": "^3.3.7",
|
|
23
|
+
"@anncic-api/typeorm": "^3.3.7",
|
|
24
|
+
"@anncic-api/validator": "^3.3.7",
|
|
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.3.
|
|
29
|
+
"anncic-apihelper": "^3.3.7",
|
|
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": "5854d12e01763da673c4eb765aca5d8ed128e74d"
|
|
39
39
|
}
|