anncic-api 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x17db0f=a0_0x1896;function a0_0x1896(_0x1fa1f6,_0x4c40d8){var _0xc700f6=a0_0xa261();return a0_0x1896=function(_0x1d665f,_0x3a4c9c){_0x1d665f=_0x1d665f-0x1ae;var _0xa26199=_0xc700f6[_0x1d665f];return _0xa26199;},a0_0x1896(_0x1fa1f6,_0x4c40d8);}(function(_0x507e98,_0x2bd536){var _0x45128b=a0_0x1896,_0x5338fb=_0x507e98();while(!![]){try{var _0x47363f=parseInt(_0x45128b(0x1b6))/0x1+-parseInt(_0x45128b(0x1c4))/0x2*(-parseInt(_0x45128b(0x1b9))/0x3)+parseInt(_0x45128b(0x1b5))/0x4*(-parseInt(_0x45128b(0x1b2))/0x5)+parseInt(_0x45128b(0x1b0))/0x6+parseInt(_0x45128b(0x1bb))/0x7*(-parseInt(_0x45128b(0x1c3))/0x8)+-parseInt(_0x45128b(0x1ae))/0x9+parseInt(_0x45128b(0x1be))/0xa;if(_0x47363f===_0x2bd536)break;else _0x5338fb['push'](_0x5338fb['shift']());}catch(_0x2c86a6){_0x5338fb['push'](_0x5338fb['shift']());}}}(a0_0xa261,0xb2ad5));var a0_0x3a4c9c=(function(){var _0x38e1d4=!![];return function(_0x998c5a,_0x74b88f){var _0xafca7d=_0x38e1d4?function(){var _0x4eb1f9=a0_0x1896;if(_0x74b88f){var _0x28af94=_0x74b88f[_0x4eb1f9(0x1b7)](_0x998c5a,arguments);return _0x74b88f=null,_0x28af94;}}:function(){};return _0x38e1d4=![],_0xafca7d;};}()),a0_0x1d665f=a0_0x3a4c9c(this,function(){var _0x2c9352=a0_0x1896;return a0_0x1d665f[_0x2c9352(0x1b3)]()[_0x2c9352(0x1c6)](_0x2c9352(0x1b4))['toString']()[_0x2c9352(0x1ba)](a0_0x1d665f)[_0x2c9352(0x1c6)](_0x2c9352(0x1b4));});a0_0x1d665f();'use strict';function a0_0xa261(){var _0x2971dc=['toString','(((.+)+)+)+$','81188BIKjlx','158484vbkhmI','apply','appDir','3213624CgLFac','constructor','434AUagNX','xml','20mb','3767630FIiLsd','dhauo1234420123gg3234901','json','text','name','110280vUyjdG','2tPUwSm','__esModule','search','defineProperty','3334752DXECfc','form','5391738wjMtQY','/runtime/.upload','135gbXrZs'];a0_0xa261=function(){return _0x2971dc;};return a0_0xa261();}Object[a0_0x17db0f(0x1c7)](exports,a0_0x17db0f(0x1c5),{'value':!![]}),exports['default']=_0x5c9600=>{var _0x3e4686=a0_0x17db0f;return{'apitest':!![],'keys':_0x5c9600[_0x3e4686(0x1c2)],'anncicapi':{'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x3e4686(0x1bf),'checkcode':_0x3e4686(0x1bf)}}},'bodyParser':{'enableTypes':[_0x3e4686(0x1c0),_0x3e4686(0x1af),_0x3e4686(0x1c1),_0x3e4686(0x1bc)],'formLimit':_0x3e4686(0x1bd),'jsonLimit':_0x3e4686(0x1bd),'textLimit':_0x3e4686(0x1bd),'xmlLimit':_0x3e4686(0x1bd)},'upload':{'tmpdir':_0x5c9600[_0x3e4686(0x1b8)]+_0x3e4686(0x1b1),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x4ef4(){var _0x16a02f=['search','defineProperty','default','66MNjBnz','693eHSVUN','toString','1671YyPOAL','apply','4598890VKJvpG','27dbIaOQ','368970wGdnJJ','207543CRkbKx','(((.+)+)+)+$','5740999OhAldw','76ljMton','16282fEWafh','23464RTEbBh'];a1_0x4ef4=function(){return _0x16a02f;};return a1_0x4ef4();}var a1_0x31c51c=a1_0x476f;function a1_0x476f(_0x1a9a08,_0x4fff9c){var _0x5846f5=a1_0x4ef4();return a1_0x476f=function(_0x29b415,_0x57e569){_0x29b415=_0x29b415-0xbb;var _0x4ef435=_0x5846f5[_0x29b415];return _0x4ef435;},a1_0x476f(_0x1a9a08,_0x4fff9c);}(function(_0x21fdba,_0x1975b8){var _0x2737f4=a1_0x476f,_0x27fa0d=_0x21fdba();while(!![]){try{var _0x4cde33=-parseInt(_0x2737f4(0xc5))/0x1*(parseInt(_0x2737f4(0xcb))/0x2)+parseInt(_0x2737f4(0xc2))/0x3*(-parseInt(_0x2737f4(0xca))/0x4)+-parseInt(_0x2737f4(0xc6))/0x5+-parseInt(_0x2737f4(0xbf))/0x6*(-parseInt(_0x2737f4(0xc7))/0x7)+parseInt(_0x2737f4(0xbb))/0x8*(parseInt(_0x2737f4(0xc0))/0x9)+-parseInt(_0x2737f4(0xc4))/0xa+parseInt(_0x2737f4(0xc9))/0xb;if(_0x4cde33===_0x1975b8)break;else _0x27fa0d['push'](_0x27fa0d['shift']());}catch(_0x54d61e){_0x27fa0d['push'](_0x27fa0d['shift']());}}}(a1_0x4ef4,0x4ba38));var a1_0x57e569=(function(){var _0x3850cb=!![];return function(_0x3b7ec8,_0x4c1012){var _0x3bf00a=_0x3850cb?function(){var _0x1099fd=a1_0x476f;if(_0x4c1012){var _0x1f3d0b=_0x4c1012[_0x1099fd(0xc3)](_0x3b7ec8,arguments);return _0x4c1012=null,_0x1f3d0b;}}:function(){};return _0x3850cb=![],_0x3bf00a;};}()),a1_0x29b415=a1_0x57e569(this,function(){var _0x5cb1a0=a1_0x476f;return a1_0x29b415[_0x5cb1a0(0xc1)]()[_0x5cb1a0(0xbc)](_0x5cb1a0(0xc8))[_0x5cb1a0(0xc1)]()['constructor'](a1_0x29b415)['search'](_0x5cb1a0(0xc8));});a1_0x29b415();'use strict';Object[a1_0x31c51c(0xbd)](exports,'__esModule',{'value':!![]}),exports[a1_0x31c51c(0xbe)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5a176b=a2_0x5c8f;(function(_0x4d1b53,_0x3d6a3f){const _0xd9fb34=a2_0x5c8f,_0x2e25a8=_0x4d1b53();while(!![]){try{const _0xf4d0e9=-parseInt(_0xd9fb34(0xe6))/0x1+parseInt(_0xd9fb34(0x108))/0x2*(parseInt(_0xd9fb34(0x15a))/0x3)+parseInt(_0xd9fb34(0xfd))/0x4*(-parseInt(_0xd9fb34(0xe1))/0x5)+parseInt(_0xd9fb34(0x106))/0x6+parseInt(_0xd9fb34(0x10a))/0x7+parseInt(_0xd9fb34(0x140))/0x8*(parseInt(_0xd9fb34(0xec))/0x9)+-parseInt(_0xd9fb34(0xf7))/0xa*(parseInt(_0xd9fb34(0x134))/0xb);if(_0xf4d0e9===_0x3d6a3f)break;else _0x2e25a8['push'](_0x2e25a8['shift']());}catch(_0x801de1){_0x2e25a8['push'](_0x2e25a8['shift']());}}}(a2_0x387d,0x1fc89));const a2_0x51a28e=(function(){let _0x343208=!![];return function(_0x2fadf8,_0x345d08){const _0xf8c909=_0x343208?function(){if(_0x345d08){const _0x1e8463=_0x345d08['apply'](_0x2fadf8,arguments);return _0x345d08=null,_0x1e8463;}}:function(){};return _0x343208=![],_0xf8c909;};}()),a2_0x595801=a2_0x51a28e(this,function(){const _0x1b66bb=a2_0x5c8f;return a2_0x595801['toString']()['search']('(((.+)+)+)+$')[_0x1b66bb(0x129)]()['constructor'](a2_0x595801)[_0x1b66bb(0xdd)](_0x1b66bb(0x112));});a2_0x595801();'use strict';var __decorate=this&&this[a2_0x5a176b(0x102)]||function(_0x198b64,_0xb09989,_0x14e8d7,_0x1f755f){const _0x59b532=a2_0x5a176b;var _0x48e286=arguments[_0x59b532(0xe9)],_0x1a3ee2=_0x48e286<0x3?_0xb09989:_0x1f755f===null?_0x1f755f=Object[_0x59b532(0x150)](_0xb09989,_0x14e8d7):_0x1f755f,_0x37749e;if(typeof Reflect===_0x59b532(0x115)&&typeof Reflect[_0x59b532(0x120)]===_0x59b532(0x118))_0x1a3ee2=Reflect[_0x59b532(0x120)](_0x198b64,_0xb09989,_0x14e8d7,_0x1f755f);else{for(var _0xfae2bf=_0x198b64['length']-0x1;_0xfae2bf>=0x0;_0xfae2bf--)if(_0x37749e=_0x198b64[_0xfae2bf])_0x1a3ee2=(_0x48e286<0x3?_0x37749e(_0x1a3ee2):_0x48e286>0x3?_0x37749e(_0xb09989,_0x14e8d7,_0x1a3ee2):_0x37749e(_0xb09989,_0x14e8d7))||_0x1a3ee2;}return _0x48e286>0x3&&_0x1a3ee2&&Object[_0x59b532(0x126)](_0xb09989,_0x14e8d7,_0x1a3ee2),_0x1a3ee2;},__metadata=this&&this[a2_0x5a176b(0xdc)]||function(_0x507221,_0x339bde){const _0x39dd6e=a2_0x5a176b;if(typeof Reflect===_0x39dd6e(0x115)&&typeof Reflect['metadata']===_0x39dd6e(0x118))return Reflect['metadata'](_0x507221,_0x339bde);};Object['defineProperty'](exports,a2_0x5a176b(0x13d),{'value':!![]}),exports[a2_0x5a176b(0x133)]=void 0x0;const core_1=require(a2_0x5a176b(0x14c)),core_2=require(a2_0x5a176b(0x14c)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x5a176b(0x10f)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x5a176b(0x138)),koa=require(a2_0x5a176b(0x11a)),i18n=require(a2_0x5a176b(0xf0)),upload=require(a2_0x5a176b(0x12e)),staticFile=require(a2_0x5a176b(0x149)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x5a176b(0x13e)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x5a176b(0xfb)),anncicCache=require(a2_0x5a176b(0x125)),anncicEvent=require(a2_0x5a176b(0xeb)),anncicTypeorm=require(a2_0x5a176b(0x14f)),anncicValidator=require(a2_0x5a176b(0x13a)),anncicHelper=require(a2_0x5a176b(0xee));function a2_0x387d(){const _0x4e824a=['40fPPuuR','anncic-api','ApiError','文件不存在','@anncic-api/core','isDirectory','8OvptWh','handlerActionRoute','application','defineProperties','MidwayApplicationManager','__decorate','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','anncicapi','devices','1537956uylgjd','REQUEST_OBJ_CTX_KEY','243482PzTPmI','midwayLogger','513835fYsBzv','statSync','DEFAULT','MidwayEnvironmentService','assign','./types/action','/apps','request','(((.+)+)+)+$','isNull','getAsync','object','intercept','onReady','function','mkdirSync','@midwayjs/koa','getAppDir','checkConfigKeys','getConfiguration','upload','clients','decorate','hanlderApplications','forEach','input','bodyXml','@anncic-api/cache','defineProperty','get','prototype','toString','keys','loggerConfig','/apps/','isString','@midwayjs/upload','staticFile','Configuration','key','handler','CustomConfiguration','1329691LYAgLs','HEADERS_SIGNATURE','readdirSync','isArray','koa-send','dirs','@anncic-api/validator','existsSync','getClassMetadata','__esModule','./config/config.default','ACTION_ROUTE_KEY','1552hlsUtG','isFunction','requestContext','default','method','environment','app','log','headers','@midwayjs/static-file','body','/runtime','@midwayjs/core','query','tmpdir','@anncic-api/typeorm','getOwnPropertyDescriptor','ApiService','dir','.log','target','device','Inject','checksign','string','_matchedRoute','6RByVFK','__metadata','search','getApplications','config','design:type','244245SDQNsJ','filterConfig','context','/runtime/apps-','INTERCEPT_KEY','37764VilJyo','proceed','isClass','length','getBaseDir','@anncic-api/event','8163aFUBCf','args','anncic-apihelper','koa','@midwayjs/i18n','Types','apimit','match','toLowerCase','decorator','Anncic-api\x20static-file\x20:\x20mkdir\x20'];a2_0x387d=function(){return _0x4e824a;};return a2_0x387d();}let CustomConfiguration=class CustomConfiguration{async[a2_0x5a176b(0x117)](){const _0x3d92c9=a2_0x5a176b;await this[_0x3d92c9(0xe2)](),await this[_0x3d92c9(0x12b)](),await this['checkConfigKeys'](),await this[_0x3d92c9(0xfe)](),await this[_0x3d92c9(0x121)]();}async[a2_0x5a176b(0x11c)](){}async[a2_0x5a176b(0xfe)](){const _0x4edf46=a2_0x5a176b,_0x5809e5=(0x0,core_1[_0x4edf46(0x13c)])(intercept_1[_0x4edf46(0xe5)],intercept_1['InterceptTargetTmp'])||{};this[_0x4edf46(0xf5)]['registerMethodHandler'](action_1[_0x4edf46(0x13f)],_0x43bec5=>{const _0x46f31e=_0x43bec5['metadata'];return{'before':async _0x4aadba=>{const _0x5dd869=a2_0x5c8f;var _0x8eb416,_0x34b3eb;const _0x1c24c9=(_0x8eb416=_0x4aadba===null||_0x4aadba===void 0x0?void 0x0:_0x4aadba[_0x5dd869(0x154)])===null||_0x8eb416===void 0x0?void 0x0:_0x8eb416[core_2[_0x5dd869(0x107)]];if(_0x1c24c9&&(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e[_0x5dd869(0xf2)])){if(!this[_0x5dd869(0x151)][_0x5dd869(0x157)]((_0x34b3eb=_0x1c24c9===null||_0x1c24c9===void 0x0?void 0x0:_0x1c24c9['request'])===null||_0x34b3eb===void 0x0?void 0x0:_0x34b3eb[_0x5dd869(0x148)]))throw new AnnError(ApiError_1[_0x5dd869(0xf9)][_0x5dd869(0x135)]);}},'around':async _0x3e1432=>{const _0x269afd=a2_0x5c8f;var _0x51b220,_0x7eea7d,_0x18877b;const _0x18326d=(_0x51b220=_0x3e1432===null||_0x3e1432===void 0x0?void 0x0:_0x3e1432['target'])===null||_0x51b220===void 0x0?void 0x0:_0x51b220[core_2[_0x269afd(0x107)]];if(_0x18326d&&(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e['apimit'])&&((_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e['intercept'])||typeof(_0x46f31e===null||_0x46f31e===void 0x0?void 0x0:_0x46f31e[_0x269afd(0x116)])=='undefined')){if(((_0x7eea7d=_0x18326d[_0x269afd(0x148)])===null||_0x7eea7d===void 0x0?void 0x0:_0x7eea7d[_0x269afd(0x155)])&&((_0x18877b=_0x5809e5===null||_0x5809e5===void 0x0?void 0x0:_0x5809e5[_0x18326d['headers']['device']])===null||_0x18877b===void 0x0?void 0x0:_0x18877b[_0x269afd(0xe9)])>0x0)for(const _0x3583cf of _0x5809e5[_0x18326d[_0x269afd(0x148)][_0x269afd(0x155)]]||[]){if(core_1[_0x269afd(0xf1)][_0x269afd(0xe8)](_0x3583cf)){const _0x219612=await _0x18326d[_0x269afd(0x142)][_0x269afd(0x114)](_0x3583cf);typeof(_0x219612===null||_0x219612===void 0x0?void 0x0:_0x219612[_0x269afd(0xf3)])==_0x269afd(0x118)?await _0x219612[_0x269afd(0xf3)](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute'])?_0x18326d[_0x269afd(0x144)][_0x269afd(0xf4)]()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)]):undefined,_0x46f31e)&&await _0x219612[_0x269afd(0x132)](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d[_0x269afd(0x144)]['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)]):undefined,_0x46f31e):await _0x219612['handler'](_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['method'])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d['method']['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute']):undefined,_0x46f31e);}else core_1[_0x269afd(0xf1)][_0x269afd(0x141)](_0x3583cf)&&await _0x3583cf(_0x18326d,typeof(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x144)])==_0x269afd(0x158)&&(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d[_0x269afd(0x159)])?_0x18326d[_0x269afd(0x144)]['toLowerCase']()+'@'+(_0x18326d===null||_0x18326d===void 0x0?void 0x0:_0x18326d['_matchedRoute']):undefined,_0x46f31e);}}return await _0x3e1432[_0x269afd(0xe7)](..._0x3e1432[_0x269afd(0xed)]);},'afterThrow':(_0x10fe65,_0x57c5d3)=>{throw _0x57c5d3;}};});}async['hanlderApplications'](){const _0x14faf5=a2_0x5a176b;this['application'][_0x14faf5(0xde)]([_0x14faf5(0xef)])[_0x14faf5(0x122)](_0x25b962=>{const _0x49ce19=_0x14faf5;(_0x25b962===null||_0x25b962===void 0x0?void 0x0:_0x25b962[_0x49ce19(0xe3)])&&Object[_0x49ce19(0x100)](_0x25b962[_0x49ce19(0xe3)],{'ok':{'value':function(_0x4b0969,_0x3b13fe,_0x15f4dd=0x0){return{'code':_0x15f4dd,'data':_0x4b0969,'extra':_0x3b13fe};}},'input':{'value':function(_0x5dd929,_0x2964bc){const _0x34f7bf=_0x49ce19;var _0xb94b4b;const _0x4d3aac=lodash['defaultsDeep']({},this[_0x34f7bf(0x111)][_0x34f7bf(0x14a)]||this[_0x34f7bf(0x111)][((_0xb94b4b=config===null||config===void 0x0?void 0x0:config[_0x34f7bf(0x124)])===null||_0xb94b4b===void 0x0?void 0x0:_0xb94b4b[_0x34f7bf(0x131)])||'body']||{},this['request'][_0x34f7bf(0x14d)]||{});return _0x5dd929?lodash[_0x34f7bf(0x127)](_0x4d3aac,_0x5dd929,_0x2964bc):_0x4d3aac;}},'when':{'value':async function(_0x590879,_0x24f6ec){const _0x5c1a57=_0x49ce19,_0x598074=this['input'](_0x590879,null);if(!lodash[_0x5c1a57(0x113)](_0x598074))return await _0x24f6ec(_0x598074);}},'only':{'value':function(_0x4d3241){const _0x3e7efd=_0x49ce19,_0x2a694e={};for(let _0x24de72=0x0;_0x24de72<_0x4d3241[_0x3e7efd(0xe9)];_0x24de72++){lodash[_0x3e7efd(0x137)](_0x4d3241[_0x24de72])&&_0x4d3241[_0x24de72]['length']>0x0&&lodash[_0x3e7efd(0x12d)](_0x4d3241[_0x24de72][0x0])&&(_0x2a694e[_0x4d3241[_0x24de72][0x0]]=this[_0x3e7efd(0x123)](_0x4d3241[_0x24de72][0x0],_0x4d3241[_0x24de72][_0x3e7efd(0xe9)]>0x1?_0x4d3241[_0x24de72][0x1]:null));}return _0x2a694e;}},'koasend':{'value':function(_0x372b3a,_0x43405e){const _0x262f26=_0x49ce19;if(!fs[_0x262f26(0x13b)](this[_0x262f26(0x146)][_0x262f26(0x11b)]()+'/'+_0x372b3a))return _0x262f26(0xfa);return this['attachment'](_0x43405e||_0x372b3a),koasend(this,_0x372b3a);}}});});}async['loggerConfig'](){const _0x4a4cf0=a2_0x5a176b;var _0x2f5cc7,_0x547c14;if(fs[_0x4a4cf0(0x13b)](this['app']['getBaseDir']()+_0x4a4cf0(0x110))&&fs[_0x4a4cf0(0x10b)](this['app'][_0x4a4cf0(0xea)]()+_0x4a4cf0(0x110))[_0x4a4cf0(0xfc)]()){const _0x408ac5=this[_0x4a4cf0(0xdf)][_0x4a4cf0(0x11d)](),_0x44eccb=((_0x2f5cc7=_0x408ac5===null||_0x408ac5===void 0x0?void 0x0:_0x408ac5['midwayLogger'])===null||_0x2f5cc7===void 0x0?void 0x0:_0x2f5cc7[_0x4a4cf0(0x11f)])||{};for(const _0xc49011 of fs[_0x4a4cf0(0x136)](this[_0x4a4cf0(0x146)]['getBaseDir']()+_0x4a4cf0(0x110))){if(!fs[_0x4a4cf0(0x10b)](this[_0x4a4cf0(0x146)][_0x4a4cf0(0xea)]()+_0x4a4cf0(0x12c)+_0xc49011)['isDirectory']())continue;if(_0x44eccb===null||_0x44eccb===void 0x0?void 0x0:_0x44eccb[_0xc49011])continue;_0x44eccb[_0xc49011]=Object[_0x4a4cf0(0x10e)]({},((_0x547c14=_0x408ac5===null||_0x408ac5===void 0x0?void 0x0:_0x408ac5[_0x4a4cf0(0x109)])===null||_0x547c14===void 0x0?void 0x0:_0x547c14[_0x4a4cf0(0x143)])||{'maxSize':'1m','dir':this[_0x4a4cf0(0x146)]['getAppDir']()+_0x4a4cf0(0x14b)},{'enableJSON':!![],'enableConsole':this[_0x4a4cf0(0x145)]['isDevelopmentEnvironment'](),'fileLogName':_0xc49011+_0x4a4cf0(0x153),'dir':this[_0x4a4cf0(0x146)][_0x4a4cf0(0x11b)]()+_0x4a4cf0(0xe4)+_0xc49011+'-log'});}Object[_0x4a4cf0(0x12a)](_0x44eccb)['length']>0x0&&(!_0x408ac5[_0x4a4cf0(0x109)]&&(_0x408ac5[_0x4a4cf0(0x109)]={'default':{'maxSize':'1m','dir':this[_0x4a4cf0(0x146)][_0x4a4cf0(0x11b)]()+'/runtime'}}),_0x408ac5[_0x4a4cf0(0x109)][_0x4a4cf0(0x11f)]=_0x44eccb),this[_0x4a4cf0(0xdf)]['addObject'](_0x408ac5);}}async[a2_0x5a176b(0xe2)](){const _0x59260e=a2_0x5a176b;var _0x48297e,_0x50cbc5,_0x38e64e,_0x53c4d9,_0xd24ca7,_0x234de8;const _0x4374c9=this[_0x59260e(0xdf)][_0x59260e(0x11d)]();((_0x50cbc5=(_0x48297e=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9[_0x59260e(0x104)])===null||_0x48297e===void 0x0?void 0x0:_0x48297e[_0x59260e(0x105)])===null||_0x50cbc5===void 0x0?void 0x0:_0x50cbc5[_0x59260e(0x10c)])&&Object[_0x59260e(0x12a)](_0x4374c9[_0x59260e(0x104)][_0x59260e(0x105)])[_0x59260e(0xe9)]>0x1&&delete _0x4374c9[_0x59260e(0x104)][_0x59260e(0x105)][_0x59260e(0x10c)];if((_0x38e64e=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9['staticFile'])===null||_0x38e64e===void 0x0?void 0x0:_0x38e64e[_0x59260e(0x139)])for(const _0x242c8f in _0x4374c9[_0x59260e(0x12f)]['dirs']){((_0x53c4d9=_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f])===null||_0x53c4d9===void 0x0?void 0x0:_0x53c4d9[_0x59260e(0x152)])&&typeof((_0xd24ca7=_0x4374c9['staticFile']['dirs'][_0x242c8f])===null||_0xd24ca7===void 0x0?void 0x0:_0xd24ca7[_0x59260e(0x152)])=='string'&&!fs['existsSync'](_0x4374c9['staticFile']['dirs'][_0x242c8f][_0x59260e(0x152)])&&(fs[_0x59260e(0x119)](_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f][_0x59260e(0x152)],{'recursive':!![]}),console[_0x59260e(0x147)](_0x59260e(0xf6)+_0x4374c9[_0x59260e(0x12f)][_0x59260e(0x139)][_0x242c8f][_0x59260e(0x152)]));}((_0x234de8=_0x4374c9===null||_0x4374c9===void 0x0?void 0x0:_0x4374c9[_0x59260e(0x11e)])===null||_0x234de8===void 0x0?void 0x0:_0x234de8[_0x59260e(0x14e)])&&!fs[_0x59260e(0x13b)](_0x4374c9['upload'][_0x59260e(0x14e)])&&(fs[_0x59260e(0x119)](_0x4374c9[_0x59260e(0x11e)][_0x59260e(0x14e)],{'recursive':!![]}),console[_0x59260e(0x147)](_0x59260e(0x103)+_0x4374c9[_0x59260e(0x11e)]['tmpdir'])),this[_0x59260e(0xdf)]['addObject'](_0x4374c9);}};function a2_0x5c8f(_0x2c25ec,_0x4cb6a1){const _0x533466=a2_0x387d();return a2_0x5c8f=function(_0x595801,_0x51a28e){_0x595801=_0x595801-0xdc;let _0x387d9f=_0x533466[_0x595801];return _0x387d9f;},a2_0x5c8f(_0x2c25ec,_0x4cb6a1);}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x5a176b(0xe0),Object)],CustomConfiguration['prototype'],'app',void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xdf),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata('design:type',core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xf5),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2[a2_0x5a176b(0x101)])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0xff),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),core_2[a2_0x5a176b(0x10d)])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0x145),void 0x0),__decorate([(0x0,core_1[a2_0x5a176b(0x156)])(),__metadata(a2_0x5a176b(0xe0),ApiService_1['ApiService'])],CustomConfiguration[a2_0x5a176b(0x128)],a2_0x5a176b(0x151),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x5a176b(0x130)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x5a176b(0xf8),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x5a176b(0x133)]=CustomConfiguration;
|
|
1
|
+
const a2_0x52fb54=a2_0x5578;(function(_0x39eabf,_0x27b099){const _0x4cdd34=a2_0x5578,_0x446fa7=_0x39eabf();while(!![]){try{const _0x81ea0c=parseInt(_0x4cdd34(0x1a4))/0x1*(parseInt(_0x4cdd34(0x1fe))/0x2)+parseInt(_0x4cdd34(0x1b9))/0x3+parseInt(_0x4cdd34(0x1bd))/0x4+-parseInt(_0x4cdd34(0x1f9))/0x5+-parseInt(_0x4cdd34(0x1de))/0x6*(parseInt(_0x4cdd34(0x1c3))/0x7)+parseInt(_0x4cdd34(0x197))/0x8*(parseInt(_0x4cdd34(0x1a1))/0x9)+parseInt(_0x4cdd34(0x1d3))/0xa*(-parseInt(_0x4cdd34(0x18c))/0xb);if(_0x81ea0c===_0x27b099)break;else _0x446fa7['push'](_0x446fa7['shift']());}catch(_0x5092e7){_0x446fa7['push'](_0x446fa7['shift']());}}}(a2_0x3eb1,0xcbe26));const a2_0x32ba58=(function(){let _0x5ac778=!![];return function(_0x355bad,_0x6b50f1){const _0x37b566=_0x5ac778?function(){if(_0x6b50f1){const _0x1a2b80=_0x6b50f1['apply'](_0x355bad,arguments);return _0x6b50f1=null,_0x1a2b80;}}:function(){};return _0x5ac778=![],_0x37b566;};}()),a2_0x7ce973=a2_0x32ba58(this,function(){const _0x4fce8c=a2_0x5578;return a2_0x7ce973[_0x4fce8c(0x1b1)]()[_0x4fce8c(0x19c)](_0x4fce8c(0x1ec))[_0x4fce8c(0x1b1)]()['constructor'](a2_0x7ce973)['search'](_0x4fce8c(0x1ec));});a2_0x7ce973();function a2_0x5578(_0x2eab3f,_0x165b56){const _0x433d14=a2_0x3eb1();return a2_0x5578=function(_0x7ce973,_0x32ba58){_0x7ce973=_0x7ce973-0x18b;let _0x3eb163=_0x433d14[_0x7ce973];return _0x3eb163;},a2_0x5578(_0x2eab3f,_0x165b56);}'use strict';var __decorate=this&&this['__decorate']||function(_0x2fcaaf,_0x3ef1eb,_0x5b1881,_0x560eed){const _0x47b82f=a2_0x5578;var _0x1c0824=arguments[_0x47b82f(0x1cb)],_0x15abd7=_0x1c0824<0x3?_0x3ef1eb:_0x560eed===null?_0x560eed=Object[_0x47b82f(0x199)](_0x3ef1eb,_0x5b1881):_0x560eed,_0x294d1b;if(typeof Reflect===_0x47b82f(0x1f7)&&typeof Reflect[_0x47b82f(0x1f1)]==='function')_0x15abd7=Reflect[_0x47b82f(0x1f1)](_0x2fcaaf,_0x3ef1eb,_0x5b1881,_0x560eed);else{for(var _0x3e2611=_0x2fcaaf[_0x47b82f(0x1cb)]-0x1;_0x3e2611>=0x0;_0x3e2611--)if(_0x294d1b=_0x2fcaaf[_0x3e2611])_0x15abd7=(_0x1c0824<0x3?_0x294d1b(_0x15abd7):_0x1c0824>0x3?_0x294d1b(_0x3ef1eb,_0x5b1881,_0x15abd7):_0x294d1b(_0x3ef1eb,_0x5b1881))||_0x15abd7;}return _0x1c0824>0x3&&_0x15abd7&&Object[_0x47b82f(0x1e3)](_0x3ef1eb,_0x5b1881,_0x15abd7),_0x15abd7;},__metadata=this&&this[a2_0x52fb54(0x1b3)]||function(_0x491473,_0x22f1a2){const _0x5e3642=a2_0x52fb54;if(typeof Reflect===_0x5e3642(0x1f7)&&typeof Reflect[_0x5e3642(0x1a3)]==='function')return Reflect[_0x5e3642(0x1a3)](_0x491473,_0x22f1a2);};function a2_0x3eb1(){const _0x2e14df=['koa-send','mkdirSync','proceed','isDevelopmentEnvironment','statSync','450VtffeK','isClass','handler','context','assign','defineProperty','defaultsDeep','getClassMetadata','string','handlerActionRoute','DEFAULT','-log','./types/action','./types/intercept','(((.+)+)+)+$','prototype','config','anncicapi','getBaseDir','decorate','/apps/','Types','CustomConfiguration','@anncic-api/cache','midwayLogger','object','addObject','5644490DFqEJW','function','./exception/ApiError','log','defineProperties','609340Vcsyah','dirs','checkConfigKeys','environment','ApiService','MidwayApplicationManager','app','App','Anncic-api\x20static-file\x20:\x20mkdir\x20','553718OnBsob','requestContext','target','tmpdir','staticFile','getConfiguration','match','@midwayjs/i18n','./service/ApiService','toLowerCase','get','264uSZPCO','device','getOwnPropertyDescriptor','ACTION_ROUTE_KEY','anncic-apihelper','search','Configuration','application','registerMethodHandler','InterceptTargetTmp','224703AdRYDo','/runtime','metadata','2GKdpTO','MidwayConfigService','args','Inject','body','@midwayjs/upload','dir','getAppDir','existsSync','readdirSync','input','design:type','filterConfig','toString','anncic-api','__metadata','./config/config.default','method','hanlderApplications','@midwayjs/cross-domain','devices','2747964jAQYgc','/apps','apimit','HEADERS_SIGNATURE','4896292JYEcVT','isFunction','isDirectory','intercept','MidwayEnvironmentService','koa','112616qGTvks','isArray','headers','.log','@midwayjs/core','undefined','__esModule','request','length','REQUEST_OBJ_CTX_KEY','bodyXml','getApplications','文件不存在','attachment','_matchedRoute','keys','80ghxBnL','loggerConfig','clients','isString','upload','checksign'];a2_0x3eb1=function(){return _0x2e14df;};return a2_0x3eb1();}Object[a2_0x52fb54(0x1e3)](exports,a2_0x52fb54(0x1c9),{'value':!![]}),exports[a2_0x52fb54(0x1f4)]=void 0x0;const core_1=require(a2_0x52fb54(0x1c7)),core_2=require(a2_0x52fb54(0x1c7)),ApiError_1=require(a2_0x52fb54(0x1fb)),ApiService_1=require(a2_0x52fb54(0x194)),action_1=require(a2_0x52fb54(0x1ea)),intercept_1=require(a2_0x52fb54(0x1eb)),fs=require('fs'),koasend=require(a2_0x52fb54(0x1d9)),koa=require('@midwayjs/koa'),i18n=require(a2_0x52fb54(0x193)),upload=require(a2_0x52fb54(0x1a9)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x52fb54(0x1b7)),ConfigDefault=require(a2_0x52fb54(0x1b4)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x52fb54(0x1f5)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x52fb54(0x19b));let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x35acad=a2_0x52fb54;await this[_0x35acad(0x1b0)](),await this[_0x35acad(0x1d4)](),await this[_0x35acad(0x200)](),await this['handlerActionRoute'](),await this['hanlderApplications']();}async[a2_0x52fb54(0x200)](){}async[a2_0x52fb54(0x1e7)](){const _0x20cba7=a2_0x52fb54,_0x474b3b=(0x0,core_1[_0x20cba7(0x1e5)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x20cba7(0x1a0)])||{};this['decorator'][_0x20cba7(0x19f)](action_1[_0x20cba7(0x19a)],_0x22125c=>{const _0x3d0c2a=_0x20cba7,_0x51a761=_0x22125c[_0x3d0c2a(0x1a3)];return{'before':async _0x18b1e9=>{const _0x13503b=_0x3d0c2a;var _0x2c1307,_0x5bb0c0;const _0x50aeef=(_0x2c1307=_0x18b1e9===null||_0x18b1e9===void 0x0?void 0x0:_0x18b1e9['target'])===null||_0x2c1307===void 0x0?void 0x0:_0x2c1307[core_2[_0x13503b(0x1cc)]];if(_0x50aeef&&(_0x51a761===null||_0x51a761===void 0x0?void 0x0:_0x51a761[_0x13503b(0x1bb)])){if(!this['ApiService'][_0x13503b(0x1d8)]((_0x5bb0c0=_0x50aeef===null||_0x50aeef===void 0x0?void 0x0:_0x50aeef[_0x13503b(0x1ca)])===null||_0x5bb0c0===void 0x0?void 0x0:_0x5bb0c0['headers']))throw new AnnError(ApiError_1['ApiError'][_0x13503b(0x1bc)]);}},'around':async _0x77d5ca=>{const _0x53d72d=_0x3d0c2a;var _0x1323b0,_0xf31ba9,_0x6182d2;const _0x124e17=(_0x1323b0=_0x77d5ca===null||_0x77d5ca===void 0x0?void 0x0:_0x77d5ca[_0x53d72d(0x18e)])===null||_0x1323b0===void 0x0?void 0x0:_0x1323b0[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x124e17&&(_0x51a761===null||_0x51a761===void 0x0?void 0x0:_0x51a761[_0x53d72d(0x1bb)])&&((_0x51a761===null||_0x51a761===void 0x0?void 0x0:_0x51a761[_0x53d72d(0x1c0)])||typeof(_0x51a761===null||_0x51a761===void 0x0?void 0x0:_0x51a761[_0x53d72d(0x1c0)])==_0x53d72d(0x1c8))){if(((_0xf31ba9=_0x124e17[_0x53d72d(0x1c5)])===null||_0xf31ba9===void 0x0?void 0x0:_0xf31ba9['device'])&&((_0x6182d2=_0x474b3b===null||_0x474b3b===void 0x0?void 0x0:_0x474b3b[_0x124e17[_0x53d72d(0x1c5)]['device']])===null||_0x6182d2===void 0x0?void 0x0:_0x6182d2[_0x53d72d(0x1cb)])>0x0)for(const _0x5e6649 of _0x474b3b[_0x124e17[_0x53d72d(0x1c5)][_0x53d72d(0x198)]]||[]){if(core_1['Types'][_0x53d72d(0x1df)](_0x5e6649)){const _0x1b6c8d=await _0x124e17[_0x53d72d(0x18d)]['getAsync'](_0x5e6649);typeof(_0x1b6c8d===null||_0x1b6c8d===void 0x0?void 0x0:_0x1b6c8d[_0x53d72d(0x192)])==_0x53d72d(0x1fa)?await _0x1b6c8d[_0x53d72d(0x192)](_0x124e17,typeof(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1b5)])==_0x53d72d(0x1e6)&&(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17['_matchedRoute'])?_0x124e17[_0x53d72d(0x1b5)][_0x53d72d(0x195)]()+'@'+(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)]):undefined,_0x51a761)&&await _0x1b6c8d[_0x53d72d(0x1e0)](_0x124e17,typeof(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1b5)])==_0x53d72d(0x1e6)&&(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)])?_0x124e17[_0x53d72d(0x1b5)][_0x53d72d(0x195)]()+'@'+(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)]):undefined,_0x51a761):await _0x1b6c8d[_0x53d72d(0x1e0)](_0x124e17,typeof(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1b5)])==_0x53d72d(0x1e6)&&(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)])?_0x124e17[_0x53d72d(0x1b5)]['toLowerCase']()+'@'+(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)]):undefined,_0x51a761);}else core_1[_0x53d72d(0x1f3)][_0x53d72d(0x1be)](_0x5e6649)&&await _0x5e6649(_0x124e17,typeof(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1b5)])=='string'&&(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)])?_0x124e17[_0x53d72d(0x1b5)][_0x53d72d(0x195)]()+'@'+(_0x124e17===null||_0x124e17===void 0x0?void 0x0:_0x124e17[_0x53d72d(0x1d1)]):undefined,_0x51a761);}}return await _0x77d5ca[_0x53d72d(0x1db)](..._0x77d5ca[_0x53d72d(0x1a6)]);},'afterThrow':(_0x5e404b,_0x43c83b)=>{throw _0x43c83b;}};});}async[a2_0x52fb54(0x1b6)](){const _0x11abe3=a2_0x52fb54;this['application'][_0x11abe3(0x1ce)]([_0x11abe3(0x1c2)])['forEach'](_0x13ac08=>{const _0x336c36=_0x11abe3;(_0x13ac08===null||_0x13ac08===void 0x0?void 0x0:_0x13ac08['context'])&&Object[_0x336c36(0x1fd)](_0x13ac08[_0x336c36(0x1e1)],{'ok':{'value':function(_0x3e5aa0,_0x3e289e,_0x2d38ec=0x0){return{'code':_0x2d38ec,'data':_0x3e5aa0,'extra':_0x3e289e};}},'input':{'value':function(_0x2e67c4,_0x84fa3){const _0x5e54f3=_0x336c36;var _0x33d8e0;const _0x5b0d7f=lodash[_0x5e54f3(0x1e4)]({},this[_0x5e54f3(0x1ca)][_0x5e54f3(0x1a8)]||this[_0x5e54f3(0x1ca)][((_0x33d8e0=config===null||config===void 0x0?void 0x0:config[_0x5e54f3(0x1cd)])===null||_0x33d8e0===void 0x0?void 0x0:_0x33d8e0['key'])||_0x5e54f3(0x1a8)]||{},this[_0x5e54f3(0x1ca)]['query']||{});return _0x2e67c4?lodash[_0x5e54f3(0x196)](_0x5b0d7f,_0x2e67c4,_0x84fa3):_0x5b0d7f;}},'when':{'value':async function(_0x4d293f,_0x346496){const _0x50b632=_0x336c36,_0x50fb47=this[_0x50b632(0x1ae)](_0x4d293f,null);if(!lodash['isNull'](_0x50fb47))return await _0x346496(_0x50fb47);}},'only':{'value':function(_0x1db252){const _0x5e3ab1=_0x336c36,_0x2c5d2c={};for(let _0x220714=0x0;_0x220714<_0x1db252[_0x5e3ab1(0x1cb)];_0x220714++){lodash[_0x5e3ab1(0x1c4)](_0x1db252[_0x220714])&&_0x1db252[_0x220714]['length']>0x0&&lodash[_0x5e3ab1(0x1d6)](_0x1db252[_0x220714][0x0])&&(_0x2c5d2c[_0x1db252[_0x220714][0x0]]=this['input'](_0x1db252[_0x220714][0x0],_0x1db252[_0x220714]['length']>0x1?_0x1db252[_0x220714][0x1]:null));}return _0x2c5d2c;}},'koasend':{'value':function(_0x4b7f70,_0x1ecca5){const _0x23f94e=_0x336c36;if(!fs[_0x23f94e(0x1ac)](this[_0x23f94e(0x204)][_0x23f94e(0x1ab)]()+'/'+_0x4b7f70))return _0x23f94e(0x1cf);return this[_0x23f94e(0x1d0)](_0x1ecca5||_0x4b7f70),koasend(this,_0x4b7f70);}}});});}async[a2_0x52fb54(0x1d4)](){const _0x5280b7=a2_0x52fb54;var _0x495c3a,_0x251eac;if(fs[_0x5280b7(0x1ac)](this[_0x5280b7(0x204)]['getBaseDir']()+_0x5280b7(0x1ba))&&fs[_0x5280b7(0x1dd)](this['app'][_0x5280b7(0x1f0)]()+_0x5280b7(0x1ba))[_0x5280b7(0x1bf)]()){const _0x1c13ec=this[_0x5280b7(0x1ee)][_0x5280b7(0x191)](),_0x566c83=((_0x495c3a=_0x1c13ec===null||_0x1c13ec===void 0x0?void 0x0:_0x1c13ec[_0x5280b7(0x1f6)])===null||_0x495c3a===void 0x0?void 0x0:_0x495c3a[_0x5280b7(0x1d5)])||{};for(const _0x6c8b05 of fs[_0x5280b7(0x1ad)](this[_0x5280b7(0x204)][_0x5280b7(0x1f0)]()+_0x5280b7(0x1ba))){if(!fs['statSync'](this[_0x5280b7(0x204)][_0x5280b7(0x1f0)]()+_0x5280b7(0x1f2)+_0x6c8b05)['isDirectory']())continue;if(_0x566c83===null||_0x566c83===void 0x0?void 0x0:_0x566c83[_0x6c8b05])continue;_0x566c83[_0x6c8b05]=Object[_0x5280b7(0x1e2)]({},((_0x251eac=_0x1c13ec===null||_0x1c13ec===void 0x0?void 0x0:_0x1c13ec[_0x5280b7(0x1f6)])===null||_0x251eac===void 0x0?void 0x0:_0x251eac['default'])||{'maxSize':'1m','dir':this[_0x5280b7(0x204)][_0x5280b7(0x1ab)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x5280b7(0x201)][_0x5280b7(0x1dc)](),'fileLogName':_0x6c8b05+_0x5280b7(0x1c6),'dir':this[_0x5280b7(0x204)][_0x5280b7(0x1ab)]()+'/runtime/apps-'+_0x6c8b05+_0x5280b7(0x1e9)});}Object['keys'](_0x566c83)[_0x5280b7(0x1cb)]>0x0&&(!_0x1c13ec[_0x5280b7(0x1f6)]&&(_0x1c13ec[_0x5280b7(0x1f6)]={'default':{'maxSize':'1m','dir':this[_0x5280b7(0x204)]['getAppDir']()+_0x5280b7(0x1a2)}}),_0x1c13ec[_0x5280b7(0x1f6)]['clients']=_0x566c83),this[_0x5280b7(0x1ee)][_0x5280b7(0x1f8)](_0x1c13ec);}}async[a2_0x52fb54(0x1b0)](){const _0x1e7242=a2_0x52fb54;var _0x5dbf9e,_0x25c36f,_0x4f41fb,_0x8a8058,_0x2ca7f1,_0x32e121;const _0x147307=this[_0x1e7242(0x1ee)][_0x1e7242(0x191)]();((_0x25c36f=(_0x5dbf9e=_0x147307===null||_0x147307===void 0x0?void 0x0:_0x147307[_0x1e7242(0x1ef)])===null||_0x5dbf9e===void 0x0?void 0x0:_0x5dbf9e[_0x1e7242(0x1b8)])===null||_0x25c36f===void 0x0?void 0x0:_0x25c36f[_0x1e7242(0x1e8)])&&Object[_0x1e7242(0x1d2)](_0x147307[_0x1e7242(0x1ef)]['devices'])['length']>0x1&&delete _0x147307[_0x1e7242(0x1ef)]['devices'][_0x1e7242(0x1e8)];if((_0x4f41fb=_0x147307===null||_0x147307===void 0x0?void 0x0:_0x147307[_0x1e7242(0x190)])===null||_0x4f41fb===void 0x0?void 0x0:_0x4f41fb[_0x1e7242(0x1ff)])for(const _0x19a50f in _0x147307[_0x1e7242(0x190)][_0x1e7242(0x1ff)]){((_0x8a8058=_0x147307[_0x1e7242(0x190)]['dirs'][_0x19a50f])===null||_0x8a8058===void 0x0?void 0x0:_0x8a8058[_0x1e7242(0x1aa)])&&typeof((_0x2ca7f1=_0x147307[_0x1e7242(0x190)]['dirs'][_0x19a50f])===null||_0x2ca7f1===void 0x0?void 0x0:_0x2ca7f1[_0x1e7242(0x1aa)])==_0x1e7242(0x1e6)&&!fs[_0x1e7242(0x1ac)](_0x147307['staticFile']['dirs'][_0x19a50f][_0x1e7242(0x1aa)])&&(fs[_0x1e7242(0x1da)](_0x147307[_0x1e7242(0x190)]['dirs'][_0x19a50f]['dir'],{'recursive':!![]}),console['log'](_0x1e7242(0x18b)+_0x147307[_0x1e7242(0x190)]['dirs'][_0x19a50f][_0x1e7242(0x1aa)]));}((_0x32e121=_0x147307===null||_0x147307===void 0x0?void 0x0:_0x147307[_0x1e7242(0x1d7)])===null||_0x32e121===void 0x0?void 0x0:_0x32e121['tmpdir'])&&!fs[_0x1e7242(0x1ac)](_0x147307[_0x1e7242(0x1d7)][_0x1e7242(0x18f)])&&(fs['mkdirSync'](_0x147307[_0x1e7242(0x1d7)]['tmpdir'],{'recursive':!![]}),console[_0x1e7242(0x1fc)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x147307[_0x1e7242(0x1d7)][_0x1e7242(0x18f)])),this[_0x1e7242(0x1ee)][_0x1e7242(0x1f8)](_0x147307);}};__decorate([(0x0,core_1[a2_0x52fb54(0x205)])(),__metadata(a2_0x52fb54(0x1af),Object)],CustomConfiguration['prototype'],a2_0x52fb54(0x204),void 0x0),__decorate([(0x0,core_1[a2_0x52fb54(0x1a7)])(),__metadata('design:type',core_2[a2_0x52fb54(0x1a5)])],CustomConfiguration[a2_0x52fb54(0x1ed)],a2_0x52fb54(0x1ee),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x52fb54(0x1af),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x52fb54(0x1ed)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x52fb54(0x1af),core_2[a2_0x52fb54(0x203)])],CustomConfiguration[a2_0x52fb54(0x1ed)],a2_0x52fb54(0x19e),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x52fb54(0x1af),core_2[a2_0x52fb54(0x1c1)])],CustomConfiguration['prototype'],a2_0x52fb54(0x201),void 0x0),__decorate([(0x0,core_1[a2_0x52fb54(0x1a7)])(),__metadata(a2_0x52fb54(0x1af),ApiService_1[a2_0x52fb54(0x202)])],CustomConfiguration[a2_0x52fb54(0x1ed)],a2_0x52fb54(0x202),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x52fb54(0x19d)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x52fb54(0x1b2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x46fcc3=a3_0x2c9f;(function(_0x1a8034,_0x2be4ed){const _0x5e543a=a3_0x2c9f,_0x5a2718=_0x1a8034();while(!![]){try{const _0x52069d=parseInt(_0x5e543a(0x1b3))/0x1+parseInt(_0x5e543a(0x192))/0x2+parseInt(_0x5e543a(0x1b0))/0x3+-parseInt(_0x5e543a(0x1ac))/0x4*(-parseInt(_0x5e543a(0x1b7))/0x5)+parseInt(_0x5e543a(0x188))/0x6*(parseInt(_0x5e543a(0x1a7))/0x7)+-parseInt(_0x5e543a(0x1b5))/0x8*(parseInt(_0x5e543a(0x1ab))/0x9)+-parseInt(_0x5e543a(0x1ad))/0xa;if(_0x52069d===_0x2be4ed)break;else _0x5a2718['push'](_0x5a2718['shift']());}catch(_0x9ab96e){_0x5a2718['push'](_0x5a2718['shift']());}}}(a3_0x4b83,0xd47a6));const a3_0x33fa8b=(function(){let _0x11a94c=!![];return function(_0x2b0a75,_0x5b7f58){const _0x56122b=_0x11a94c?function(){if(_0x5b7f58){const _0x57f0c0=_0x5b7f58['apply'](_0x2b0a75,arguments);return _0x5b7f58=null,_0x57f0c0;}}:function(){};return _0x11a94c=![],_0x56122b;};}()),a3_0x138362=a3_0x33fa8b(this,function(){const _0x1c7d55=a3_0x2c9f;return a3_0x138362[_0x1c7d55(0x1a3)]()[_0x1c7d55(0x19d)](_0x1c7d55(0x1b6))['toString']()['constructor'](a3_0x138362)[_0x1c7d55(0x19d)](_0x1c7d55(0x1b6));});a3_0x138362();'use strict';Object[a3_0x46fcc3(0x180)](exports,a3_0x46fcc3(0x196),{'value':!![]}),exports[a3_0x46fcc3(0x1af)]=exports[a3_0x46fcc3(0x183)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require('../types/action');function a3_0x2c9f(_0x15679e,_0x24d2f0){const _0xc14ebf=a3_0x4b83();return a3_0x2c9f=function(_0x138362,_0x33fa8b){_0x138362=_0x138362-0x17e;let _0x4b83e4=_0xc14ebf[_0x138362];return _0x4b83e4;},a3_0x2c9f(_0x15679e,_0x24d2f0);}function Action(_0x544e1a,_0x4a9a6c,_0x46bdf0={'middleware':[],'sensitive':!![]}){return _0x319faa=>{const _0x2f7487=a3_0x2c9f;var _0x3aa894;_0x46bdf0[_0x2f7487(0x19e)]=_0x4a9a6c;const _0x377b29=parseRoute(_0x544e1a);if(_0x377b29['module']){_0x46bdf0['prefix']=_0x46bdf0[_0x2f7487(0x1a5)]?'/'+_0x377b29[_0x2f7487(0x18f)]+'/'+_0x46bdf0[_0x2f7487(0x1a5)]:'/'+_0x377b29[_0x2f7487(0x1a2)];_0x377b29['prefix']&&(_0x46bdf0['prefix']='/'+_0x377b29[_0x2f7487(0x1a5)]+'/'+_0x46bdf0[_0x2f7487(0x1a5)]);if(fs[_0x2f7487(0x185)](_0x377b29[_0x2f7487(0x184)]+_0x2f7487(0x187)+_0x377b29[_0x2f7487(0x18f)]+'/config.'+(lodash['endsWith'](_0x377b29['filepath'],'ts')?'ts':'js'))){const _0x565030=include(_0x377b29['rootpath']+_0x2f7487(0x187)+_0x377b29[_0x2f7487(0x18f)]+_0x2f7487(0x19c)+(lodash['endsWith'](_0x377b29[_0x2f7487(0x17e)],'ts')?'ts':'js'));if(_0x565030[_0x2f7487(0x199)]&&lodash[_0x2f7487(0x18b)](_0x565030[_0x2f7487(0x199)])&&_0x565030[_0x2f7487(0x199)][_0x2f7487(0x19a)]>0x0)for(let _0x6b0702 in _0x565030[_0x2f7487(0x199)]){if(((_0x3aa894=_0x565030===null||_0x565030===void 0x0?void 0x0:_0x565030[_0x2f7487(0x1b9)])===null||_0x3aa894===void 0x0?void 0x0:_0x3aa894[_0x2f7487(0x19a)])>0x0&&_0x565030['middlewareIgnore'][_0x2f7487(0x18e)](_0x565030[_0x2f7487(0x199)][_0x6b0702])!=-0x1)continue;_0x46bdf0[_0x2f7487(0x199)][_0x2f7487(0x1aa)](_0x565030[_0x2f7487(0x199)][_0x6b0702]);}const _0x31383c=(0x0,core_1[_0x2f7487(0x198)])(action_1[_0x2f7487(0x18d)],action_1['AppsConfigTmp'])||{};_0x31383c[''+_0x377b29[_0x2f7487(0x18f)]]=_0x565030,(0x0,core_1[_0x2f7487(0x1b8)])(action_1[_0x2f7487(0x18d)],_0x31383c,action_1[_0x2f7487(0x19f)]);}_0x46bdf0[_0x2f7487(0x1a5)]=_0x46bdf0[_0x2f7487(0x1a5)][_0x2f7487(0x194)]()[_0x2f7487(0x1b2)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x2f7487(0x186)],_0x319faa),(0x0,core_1[_0x2f7487(0x1ae)])(_0x46bdf0[_0x2f7487(0x1a5)],_0x46bdf0)(_0x319faa),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x46bdf0[_0x2f7487(0x1a5)],'pprefix':_0x377b29[_0x2f7487(0x1a5)],'module':_0x377b29[_0x2f7487(0x18f)],'filepath':_0x377b29['filepath'],'routerOptions':_0x46bdf0},_0x319faa);}else _0x46bdf0[_0x2f7487(0x1a5)]=_0x46bdf0[_0x2f7487(0x1a5)]?'/'+_0x46bdf0[_0x2f7487(0x1a5)]:'/'+_0x377b29[_0x2f7487(0x1a2)],_0x377b29[_0x2f7487(0x1a5)]&&(_0x46bdf0[_0x2f7487(0x1a5)]='/'+_0x377b29[_0x2f7487(0x1a5)]+'/'+_0x46bdf0[_0x2f7487(0x1a5)]),_0x46bdf0[_0x2f7487(0x1a5)]=_0x46bdf0[_0x2f7487(0x1a5)][_0x2f7487(0x194)]()[_0x2f7487(0x1b2)](/\/{2,}/g,'/'),(0x0,core_1[_0x2f7487(0x19b)])(action_1[_0x2f7487(0x186)],_0x319faa),(0x0,core_1[_0x2f7487(0x1ae)])(_0x46bdf0['prefix'],_0x46bdf0)(_0x319faa),(0x0,core_1[_0x2f7487(0x1b8)])(action_1[_0x2f7487(0x186)],{'prefix':_0x46bdf0[_0x2f7487(0x1a5)],'module':_0x377b29[_0x2f7487(0x18f)],'pprefix':_0x377b29['prefix'],'filepath':_0x377b29[_0x2f7487(0x17e)],'routerOptions':_0x46bdf0},_0x319faa);};}function a3_0x4b83(){const _0x56567a=['\x20文件请放在apps/','756654oXsqoD','/controller/','toLowerCase','\x20文件请放在app/controller/文件下','__esModule','endsWith','getClassMetadata','middleware','length','saveModule','/config.','search','tagName','AppsConfigTmp','-action','app/controller/','route','toString','startsWith','prefix','cwd','14455BinSzp','join','splice','push','1233lkQFst','132tcBHMh','28728120IrJwWk','Controller','parseRoute','3984909itCjWo','apps/','replace','1498825uNbqJo','-controller','45224FNZsuL','(((.+)+)+)+$','104005yvCPge','saveClassMetadata','middlewareIgnore','filepath','split','defineProperty','/controller/文件下','basic/controller/','Action','rootpath','existsSync','ACTION_KEY','/apps/','1818ssdCtw','trim','match','isArray','substring','APPSCONFIG_KEY','indexOf','module','filter'];a3_0x4b83=function(){return _0x56567a;};return a3_0x4b83();}exports[a3_0x46fcc3(0x183)]=Action;function parseRoute(_0x56b0d4){const _0x232974=a3_0x46fcc3;_0x56b0d4=_0x56b0d4[_0x232974(0x1b2)](/(\\|\/)/g,'/');const _0x43247a=process[_0x232974(0x1a6)]()['replace'](/(\\|\/)/g,'/'),_0xf2a4d1=_0x56b0d4[_0x232974(0x18c)](0x0,_0x43247a['length']+_0x56b0d4[_0x232974(0x18c)](_0x43247a[_0x232974(0x19a)]+0x1)[_0x232974(0x18e)]('/')+0x1),_0x525374=_0x56b0d4[_0x232974(0x18c)](_0xf2a4d1['length']+0x1)['replace'](/(\\|\/)/g,'/'),_0x4eecc1={'route':'','prefix':![],'module':![],'rootpath':_0xf2a4d1,'filepath':_0x525374};if(_0x525374['startsWith'](_0x232974(0x1a1))||_0x525374[_0x232974(0x1a4)]('basic/controller/')){const _0x2bb709=_0x525374[_0x232974(0x18c)]((_0x525374[_0x232974(0x1a4)]('app/controller/')?'app/controller/':_0x232974(0x182))[_0x232974(0x19a)])[_0x232974(0x17f)]('/')[_0x232974(0x190)](_0x356263=>_0x356263&&_0x356263[_0x232974(0x189)]());return _0x2bb709['length']>0x1&&(_0x4eecc1[_0x232974(0x1a5)]=_0x2bb709[0x0][_0x232974(0x194)](),_0x2bb709[_0x232974(0x1a9)](0x0,0x1)),_0x4eecc1[_0x232974(0x1a2)]=('/'+_0x2bb709[_0x232974(0x1a8)]('/'))['replace'](/(\.ts|\.js)$/,'')[_0x232974(0x1b2)](/\/{2,}/g,'/')[_0x232974(0x18a)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x232974(0x194)]()['replace'](/\/\-/g,'/'),_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x197)]('-action')&&(_0x4eecc1[_0x232974(0x1a2)]=_0x4eecc1[_0x232974(0x1a2)]['substring'](0x0,_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x19a)]-0x7)),_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x197)](_0x232974(0x1b4))&&(_0x4eecc1[_0x232974(0x1a2)]=_0x4eecc1[_0x232974(0x1a2)]['substring'](0x0,_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x19a)]-0xb)),_0x4eecc1;}else{if(_0x525374['startsWith'](_0x232974(0x1b1))){const _0x3f6d54=_0x525374['substring'](0x0,_0x525374[_0x232974(0x18e)](_0x232974(0x187))+0x5),_0x4f417c=_0x525374[_0x232974(0x18c)](_0x3f6d54[_0x232974(0x19a)]+0x1)['replace'](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x525374[_0x232974(0x1a4)](_0x232974(0x1b1)+_0x4f417c+_0x232974(0x193))){const _0x11cfa4=_0x525374['substring']((_0x3f6d54+'/'+_0x4f417c+'/controller/')[_0x232974(0x19a)])[_0x232974(0x17f)]('/')[_0x232974(0x190)](_0x5142a2=>_0x5142a2&&_0x5142a2[_0x232974(0x189)]());return _0x11cfa4['length']>0x1&&(_0x4eecc1[_0x232974(0x1a5)]=_0x11cfa4[0x0]['toLowerCase'](),_0x11cfa4[_0x232974(0x1a9)](0x0,0x1)),_0x4eecc1[_0x232974(0x18f)]=_0x4f417c,_0x4eecc1[_0x232974(0x1a2)]=('/'+_0x4f417c+'/'+_0x11cfa4[_0x232974(0x1a8)]('/'))[_0x232974(0x1b2)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x232974(0x18a)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x232974(0x194)]()[_0x232974(0x1b2)](/\/\-/g,'/'),_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x197)](_0x232974(0x1a0))&&(_0x4eecc1[_0x232974(0x1a2)]=_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x18c)](0x0,_0x4eecc1[_0x232974(0x1a2)]['length']-0x7)),_0x4eecc1[_0x232974(0x1a2)][_0x232974(0x197)]('-controller')&&(_0x4eecc1['route']=_0x4eecc1['route'][_0x232974(0x18c)](0x0,_0x4eecc1[_0x232974(0x1a2)]['length']-0xb)),_0x4eecc1;}throw new Error(_0x525374+_0x232974(0x191)+_0x4f417c+_0x232974(0x181));}}throw new Error(_0x525374+_0x232974(0x195));}exports[a3_0x46fcc3(0x1af)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x5310a4=a4_0x3389;(function(_0x4a3d8f,_0x1b7eb0){const _0x3ac262=a4_0x3389,_0x42dbd1=_0x4a3d8f();while(!![]){try{const _0x27d0d0=parseInt(_0x3ac262(0x1dc))/0x1*(-parseInt(_0x3ac262(0x1d1))/0x2)+-parseInt(_0x3ac262(0x1ea))/0x3*(-parseInt(_0x3ac262(0x1da))/0x4)+-parseInt(_0x3ac262(0x1de))/0x5+-parseInt(_0x3ac262(0x1f2))/0x6*(parseInt(_0x3ac262(0x1db))/0x7)+-parseInt(_0x3ac262(0x1d5))/0x8*(-parseInt(_0x3ac262(0x1e0))/0x9)+parseInt(_0x3ac262(0x1e9))/0xa*(-parseInt(_0x3ac262(0x1f1))/0xb)+parseInt(_0x3ac262(0x1e7))/0xc*(parseInt(_0x3ac262(0x1cd))/0xd);if(_0x27d0d0===_0x1b7eb0)break;else _0x42dbd1['push'](_0x42dbd1['shift']());}catch(_0x4b6951){_0x42dbd1['push'](_0x42dbd1['shift']());}}}(a4_0xc213,0x74ccc));const a4_0x1978e0=(function(){let _0x188fe0=!![];return function(_0xdf351,_0x4d0573){const _0x2106dc=_0x188fe0?function(){const _0x16a354=a4_0x3389;if(_0x4d0573){const _0x26ac66=_0x4d0573[_0x16a354(0x1d7)](_0xdf351,arguments);return _0x4d0573=null,_0x26ac66;}}:function(){};return _0x188fe0=![],_0x2106dc;};}()),a4_0x253607=a4_0x1978e0(this,function(){const _0x31a738=a4_0x3389;return a4_0x253607[_0x31a738(0x1d9)]()[_0x31a738(0x1f3)]('(((.+)+)+)+$')['toString']()['constructor'](a4_0x253607)[_0x31a738(0x1f3)](_0x31a738(0x1e4));});function a4_0x3389(_0xafbf83,_0x502c58){const _0x9a3390=a4_0xc213();return a4_0x3389=function(_0x253607,_0x1978e0){_0x253607=_0x253607-0x1cd;let _0xc213c5=_0x9a3390[_0x253607];return _0xc213c5;},a4_0x3389(_0xafbf83,_0x502c58);}a4_0x253607();'use strict';Object[a4_0x5310a4(0x1f4)](exports,a4_0x5310a4(0x1d0),{'value':!![]}),exports[a4_0x5310a4(0x1d4)]=void 0x0;const validator_1=require(a4_0x5310a4(0x1e6)),core_1=require(a4_0x5310a4(0x1d3)),action_1=require(a4_0x5310a4(0x1e2));function a4_0xc213(){const _0x53021f=['apimit','apply','routerName','toString','120796RVrXJh','7hPCHVb','392LyAsyw','intercept','4560420ukiJPx','ACTION_ROUTE_KEY','3816OtmIPz','validate','../types/action','delete','(((.+)+)+)+$','assign','@anncic-api/validator','28101372SsnPWM','Validator','4093860pxBMvh','6xctkdV','length','validationOptions','middleware','middlewareIgnore','toLowerCase','get','11FynKmc','3085062Spvfmu','search','defineProperty','createCustomMethodDecorator','undefined','13pSNKXR','RequestMapping','del','__esModule','3158MAFQFr','filter','@midwayjs/core','Api','10016CUBDyi'];a4_0xc213=function(){return _0x53021f;};return a4_0xc213();}function Api(_0x58fc43,_0x3d0747=a4_0x5310a4(0x1f0),_0x3211ff='/',_0x71b2d8={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0xf8f3f0,_0x26bd07,_0x1e17d7)=>{const _0x14d3f8=a4_0x3389;var _0x339b51,_0x2f608d,_0x1559c3;!_0x71b2d8['middleware']&&(_0x71b2d8[_0x14d3f8(0x1ed)]=[]);!((_0x339b51=_0x71b2d8===null||_0x71b2d8===void 0x0?void 0x0:_0x71b2d8['validate'])===null||_0x339b51===void 0x0?void 0x0:_0x339b51[_0x14d3f8(0x1ec)])&&(_0x71b2d8[_0x14d3f8(0x1e1)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});typeof _0x71b2d8[_0x14d3f8(0x1d6)]==_0x14d3f8(0x1f6)&&(_0x71b2d8[_0x14d3f8(0x1d6)]=!![]);if(((_0x2f608d=_0x71b2d8===null||_0x71b2d8===void 0x0?void 0x0:_0x71b2d8[_0x14d3f8(0x1ed)])===null||_0x2f608d===void 0x0?void 0x0:_0x2f608d[_0x14d3f8(0x1eb)])>0x0&&((_0x1559c3=_0x71b2d8===null||_0x71b2d8===void 0x0?void 0x0:_0x71b2d8[_0x14d3f8(0x1ee)])===null||_0x1559c3===void 0x0?void 0x0:_0x1559c3[_0x14d3f8(0x1eb)])>0x0)for(let _0x53a52f in _0x71b2d8[_0x14d3f8(0x1ed)]){_0x71b2d8[_0x14d3f8(0x1ee)]['indexOf'](_0x71b2d8[_0x14d3f8(0x1ed)][_0x53a52f])!==-0x1&&(_0x71b2d8['middleware'][_0x53a52f]=null);}_0x71b2d8[_0x14d3f8(0x1d8)]=_0x58fc43,(0x0,validator_1[_0x14d3f8(0x1e8)])(_0x71b2d8[_0x14d3f8(0x1e1)])(_0xf8f3f0,_0x26bd07,_0x1e17d7),(0x0,core_1[_0x14d3f8(0x1ce)])(Object[_0x14d3f8(0x1e5)](_0x71b2d8,{'path':_0x3211ff,'requestMethod':(_0x3d0747==_0x14d3f8(0x1cf)?'delete':_0x3d0747)['toLowerCase']()}))(_0xf8f3f0,_0x26bd07,_0x1e17d7),(0x0,core_1['attachClassMetadata'])(action_1[_0x14d3f8(0x1df)],{'path':_0x3211ff,'method':_0x26bd07,'apimit':_0x71b2d8['apimit'],'intercept':_0x71b2d8[_0x14d3f8(0x1dd)],'routerName':_0x71b2d8[_0x14d3f8(0x1d8)],'description':_0x71b2d8['description'],'middleware':(_0x71b2d8[_0x14d3f8(0x1ed)]||[])['filter'](_0x2b3a38=>!!_0x2b3a38),'requestMethod':(_0x3d0747==_0x14d3f8(0x1cf)?_0x14d3f8(0x1e3):_0x3d0747)['toLowerCase']()},_0xf8f3f0),(0x0,core_1[_0x14d3f8(0x1f5)])(action_1[_0x14d3f8(0x1df)],{'path':_0x3211ff,'method':_0x26bd07,'apimit':_0x71b2d8[_0x14d3f8(0x1d6)],'intercept':_0x71b2d8[_0x14d3f8(0x1dd)],'routerName':_0x71b2d8[_0x14d3f8(0x1d8)],'description':_0x71b2d8['description'],'middleware':(_0x71b2d8[_0x14d3f8(0x1ed)]||[])[_0x14d3f8(0x1d2)](_0x458df5=>!!_0x458df5),'requestMethod':(_0x3d0747=='del'?_0x14d3f8(0x1e3):_0x3d0747)[_0x14d3f8(0x1ef)]()})(_0xf8f3f0,_0x26bd07,_0x1e17d7);};}exports[a4_0x5310a4(0x1d4)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a5_0x39d3(){const _0x56e5f4=['504zWSKzn','2690364UpxkCj','app','getConfig','19973241FpmuXj','toString','constructor','2281096wMzWaX','@midwayjs/core','apidoc','apply','filepath','RequestMapping','value','../service/ApitestService','Apitest','3273025MdObNi','/apitest','search','624879RgvIhf','(((.+)+)+)+$','86255xNMeqr','getAsync','8oXCWlc','getApplicationContext','45143yTLkzu'];a5_0x39d3=function(){return _0x56e5f4;};return a5_0x39d3();}const a5_0x3cf847=a5_0x190a;(function(_0x40d219,_0x3305ce){const _0x31a276=a5_0x190a,_0x22ac72=_0x40d219();while(!![]){try{const _0x7fe463=-parseInt(_0x31a276(0x1f0))/0x1*(parseInt(_0x31a276(0x1f2))/0x2)+-parseInt(_0x31a276(0x1ee))/0x3+-parseInt(_0x31a276(0x1e2))/0x4+-parseInt(_0x31a276(0x1eb))/0x5+-parseInt(_0x31a276(0x1f6))/0x6+parseInt(_0x31a276(0x1f4))/0x7*(parseInt(_0x31a276(0x1f5))/0x8)+parseInt(_0x31a276(0x1f9))/0x9;if(_0x7fe463===_0x3305ce)break;else _0x22ac72['push'](_0x22ac72['shift']());}catch(_0x268f6c){_0x22ac72['push'](_0x22ac72['shift']());}}}(a5_0x39d3,0x61666));const a5_0x13d610=(function(){let _0x51cd03=!![];return function(_0x14931d,_0x130fb0){const _0x4304fb=_0x51cd03?function(){const _0x30f758=a5_0x190a;if(_0x130fb0){const _0x529c2f=_0x130fb0[_0x30f758(0x1e5)](_0x14931d,arguments);return _0x130fb0=null,_0x529c2f;}}:function(){};return _0x51cd03=![],_0x4304fb;};}()),a5_0x1834d3=a5_0x13d610(this,function(){const _0xa8eb35=a5_0x190a;return a5_0x1834d3[_0xa8eb35(0x1fa)]()[_0xa8eb35(0x1ed)](_0xa8eb35(0x1ef))[_0xa8eb35(0x1fa)]()[_0xa8eb35(0x1e1)](a5_0x1834d3)[_0xa8eb35(0x1ed)](_0xa8eb35(0x1ef));});a5_0x1834d3();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a5_0x3cf847(0x1ea)]=void 0x0;const core_1=require(a5_0x3cf847(0x1e3)),ApitestService_1=require(a5_0x3cf847(0x1e9));function a5_0x190a(_0x4cda47,_0x54444e){const _0x2e7d79=a5_0x39d3();return a5_0x190a=function(_0x1834d3,_0x13d610){_0x1834d3=_0x1834d3-0x1e1;let _0x39d3a3=_0x2e7d79[_0x1834d3];return _0x39d3a3;},a5_0x190a(_0x4cda47,_0x54444e);}function Apitest(_0x227ade=a5_0x3cf847(0x1ec),_0x532529){return(_0x2b0b2d,_0xc197a4,_0x566fde)=>{const _0x49e6a6=a5_0x190a;return(0x0,core_1[_0x49e6a6(0x1e7)])({'path':_0x227ade,'requestMethod':'get'})(_0x2b0b2d,_0xc197a4,_0x566fde),_0x566fde[_0x49e6a6(0x1e8)]=async function(..._0x3dd651){const _0x1fb8e0=_0x49e6a6;var _0x32df01;const _0x3af5ca=(_0x32df01=this[core_1['REQUEST_OBJ_CTX_KEY']])===null||_0x32df01===void 0x0?void 0x0:_0x32df01[_0x1fb8e0(0x1f7)];if(_0x3af5ca&&_0x3af5ca[_0x1fb8e0(0x1f8)]('apitest')){const _0x397b2c=await _0x3af5ca['getApplicationContext']()['getAsync'](ApitestService_1['ApitestService']),_0x4055cb=await _0x3af5ca[_0x1fb8e0(0x1f3)]()[_0x1fb8e0(0x1f1)](core_1['MidwayEnvironmentService']);return _0x4055cb['isDevelopmentEnvironment']()&&(_0x532529[_0x1fb8e0(0x1e6)]=!![]),await _0x397b2c[_0x1fb8e0(0x1e4)](_0x532529);}return'';},_0x566fde;};}exports[a5_0x3cf847(0x1ea)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x371046=a6_0x44f3;(function(_0x44d566,_0x2f97f9){const _0x5bedba=a6_0x44f3,_0x9a44ac=_0x44d566();while(!![]){try{const _0x3e69e9=-parseInt(_0x5bedba(0xfb))/0x1+parseInt(_0x5bedba(0x100))/0x2*(parseInt(_0x5bedba(0x103))/0x3)+-parseInt(_0x5bedba(0xf9))/0x4+-parseInt(_0x5bedba(0xf8))/0x5+-parseInt(_0x5bedba(0x10c))/0x6+parseInt(_0x5bedba(0xf5))/0x7*(-parseInt(_0x5bedba(0xf7))/0x8)+parseInt(_0x5bedba(0xfc))/0x9*(parseInt(_0x5bedba(0xf3))/0xa);if(_0x3e69e9===_0x2f97f9)break;else _0x9a44ac['push'](_0x9a44ac['shift']());}catch(_0x3c138c){_0x9a44ac['push'](_0x9a44ac['shift']());}}}(a6_0x1eab,0xa49eb));const a6_0x5b9cb3=(function(){let _0x38d35c=!![];return function(_0x5dba3b,_0x2a92bf){const _0x3235d2=_0x38d35c?function(){if(_0x2a92bf){const _0x5c1e55=_0x2a92bf['apply'](_0x5dba3b,arguments);return _0x2a92bf=null,_0x5c1e55;}}:function(){};return _0x38d35c=![],_0x3235d2;};}()),a6_0x1879f1=a6_0x5b9cb3(this,function(){const _0x3644c9=a6_0x44f3;return a6_0x1879f1[_0x3644c9(0xf4)]()[_0x3644c9(0xf1)](_0x3644c9(0xfd))[_0x3644c9(0xf4)]()['constructor'](a6_0x1879f1)[_0x3644c9(0xf1)]('(((.+)+)+)+$');});a6_0x1879f1();function a6_0x44f3(_0xae29c4,_0x4b3928){const _0xe17fa7=a6_0x1eab();return a6_0x44f3=function(_0x1879f1,_0x5b9cb3){_0x1879f1=_0x1879f1-0xf0;let _0x1eabbf=_0xe17fa7[_0x1879f1];return _0x1eabbf;},a6_0x44f3(_0xae29c4,_0x4b3928);}function a6_0x1eab(){const _0x498c26=['Scope','search','saveClassMetadata','484130XiawXS','toString','7MihIhU','ScopeEnum','4380472pMcWzR','835150MixZvM','644724oxlecx','getClassMetadata','73111vZshsY','288rhIaYt','(((.+)+)+)+$','INTERCEPT_KEY','InterceptTargetTmp','28AEPGKZ','@midwayjs/core','__esModule','172338PJIwHb','Singleton','IIntercept','push','defineProperty','match','Intercept','isArray','includes','4381776rtvwJu'];a6_0x1eab=function(){return _0x498c26;};return a6_0x1eab();}'use strict';Object[a6_0x371046(0x107)](exports,a6_0x371046(0x102),{'value':!![]}),exports[a6_0x371046(0x105)]=exports[a6_0x371046(0x109)]=void 0x0;const core_1=require(a6_0x371046(0x101)),intercept_1=require('../types/intercept');function Intercept(_0x9b24ac){return _0x5c27e7=>{const _0x141faa=a6_0x44f3,_0x41ccaa=(0x0,core_1[_0x141faa(0xfa)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x141faa(0xff)])||{};for(let _0x44195e of Array[_0x141faa(0x10a)](_0x9b24ac)?_0x9b24ac:[_0x9b24ac]){_0x44195e=_0x44195e['toUpperCase']();!(_0x41ccaa===null||_0x41ccaa===void 0x0?void 0x0:_0x41ccaa[_0x44195e])&&(_0x41ccaa[_0x44195e]=[]);if(_0x41ccaa[_0x44195e][_0x141faa(0x10b)](_0x5c27e7))continue;_0x41ccaa[_0x44195e][_0x141faa(0x106)](_0x5c27e7);}(0x0,core_1['Provide'])()(_0x5c27e7),(0x0,core_1[_0x141faa(0xf0)])(core_1[_0x141faa(0xf6)][_0x141faa(0x104)])(_0x5c27e7),(0x0,core_1[_0x141faa(0xf2)])(intercept_1[_0x141faa(0xfe)],_0x41ccaa,intercept_1[_0x141faa(0xff)]);};}exports[a6_0x371046(0x109)]=Intercept;class IIntercept{async[a6_0x371046(0x108)](_0xc7ee60,_0x227105,_0x1db711){return!![];}}exports[a6_0x371046(0x105)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a7_0x43cf16=a7_0x16b2;function a7_0x16b2(_0xe52fac,_0x2dadd7){var _0x91d930=a7_0x3142();return a7_0x16b2=function(_0x3bc632,_0x12481b){_0x3bc632=_0x3bc632-0xd3;var _0x3142ba=_0x91d930[_0x3bc632];return _0x3142ba;},a7_0x16b2(_0xe52fac,_0x2dadd7);}(function(_0x2d0eac,_0x77c9ce){var _0xb1a55=a7_0x16b2,_0x4077a6=_0x2d0eac();while(!![]){try{var _0x30ee93=-parseInt(_0xb1a55(0xe4))/0x1+parseInt(_0xb1a55(0xd7))/0x2*(parseInt(_0xb1a55(0xed))/0x3)+-parseInt(_0xb1a55(0xeb))/0x4*(parseInt(_0xb1a55(0xee))/0x5)+parseInt(_0xb1a55(0xd8))/0x6+-parseInt(_0xb1a55(0xd6))/0x7*(parseInt(_0xb1a55(0xda))/0x8)+parseInt(_0xb1a55(0xe2))/0x9*(-parseInt(_0xb1a55(0xe3))/0xa)+parseInt(_0xb1a55(0xf1))/0xb*(parseInt(_0xb1a55(0xd5))/0xc);if(_0x30ee93===_0x77c9ce)break;else _0x4077a6['push'](_0x4077a6['shift']());}catch(_0x2ea56d){_0x4077a6['push'](_0x4077a6['shift']());}}}(a7_0x3142,0x48f08));var a7_0x12481b=(function(){var _0x50aed1=!![];return function(_0x4776c7,_0x1ad0fd){var _0x52416a=_0x50aed1?function(){var _0x1ee2f5=a7_0x16b2;if(_0x1ad0fd){var _0x5bacae=_0x1ad0fd[_0x1ee2f5(0xf4)](_0x4776c7,arguments);return _0x1ad0fd=null,_0x5bacae;}}:function(){};return _0x50aed1=![],_0x52416a;};}()),a7_0x3bc632=a7_0x12481b(this,function(){var _0x270764=a7_0x16b2;return a7_0x3bc632['toString']()[_0x270764(0xdc)](_0x270764(0xdd))[_0x270764(0xe1)]()[_0x270764(0xe9)](a7_0x3bc632)[_0x270764(0xdc)]('(((.+)+)+)+$');});a7_0x3bc632();'use strict';function a7_0x3142(){var _0x5bb48a=['constructor','__esModule','4nqlVAe','__decorate','75729fNqXhJ','192360dGVKKk','function','TIMEOUT_LOGINTIME','11zVqhDv','HEADERS_CHECKCODE','请使用正确的设备','apply','decorate','HEADERS_LACK','design:type','4934388FiVnkH','8617YwBvXt','6tAcHkH','3068808kAsdng','ApiError','1016lQubGQ','length','search','(((.+)+)+)+$','HEADERS_SIGNATURE','getOwnPropertyDescriptor','object','toString','261eXjpNi','80110xCHzGy','272508sFAuPZ','请求超时,请重试','HEADERS_DEVICE','TIMEOUT','metadata'];a7_0x3142=function(){return _0x5bb48a;};return a7_0x3142();}var __decorate=this&&this[a7_0x43cf16(0xec)]||function(_0x25376f,_0x1eca34,_0x4cacda,_0x481c27){var _0x57d04b=a7_0x43cf16,_0x252a26=arguments[_0x57d04b(0xdb)],_0x4ce248=_0x252a26<0x3?_0x1eca34:_0x481c27===null?_0x481c27=Object[_0x57d04b(0xdf)](_0x1eca34,_0x4cacda):_0x481c27,_0x54a684;if(typeof Reflect===_0x57d04b(0xe0)&&typeof Reflect[_0x57d04b(0xf5)]===_0x57d04b(0xef))_0x4ce248=Reflect['decorate'](_0x25376f,_0x1eca34,_0x4cacda,_0x481c27);else{for(var _0x4de7f7=_0x25376f[_0x57d04b(0xdb)]-0x1;_0x4de7f7>=0x0;_0x4de7f7--)if(_0x54a684=_0x25376f[_0x4de7f7])_0x4ce248=(_0x252a26<0x3?_0x54a684(_0x4ce248):_0x252a26>0x3?_0x54a684(_0x1eca34,_0x4cacda,_0x4ce248):_0x54a684(_0x1eca34,_0x4cacda))||_0x4ce248;}return _0x252a26>0x3&&_0x4ce248&&Object['defineProperty'](_0x1eca34,_0x4cacda,_0x4ce248),_0x4ce248;},__metadata=this&&this['__metadata']||function(_0x222490,_0x92748e){var _0x5e60a3=a7_0x43cf16;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x5e60a3(0xef))return Reflect[_0x5e60a3(0xe8)](_0x222490,_0x92748e);};Object['defineProperty'](exports,a7_0x43cf16(0xea),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError extends AnnError{}ApiError[a7_0x43cf16(0xe7)]=0x19003,ApiError[a7_0x43cf16(0xd3)]=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError[a7_0x43cf16(0xde)]=0x18e74,ApiError['HEADERS_CHECKCODE']=0x18e75,ApiError['TIMEOUT_LOGINTIME']=0x18e76,__decorate([AnnErrorMsg(a7_0x43cf16(0xe5)),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xe7),void 0x0),__decorate([AnnErrorMsg('请求头信息不完整'),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xd3),void 0x0),__decorate([AnnErrorMsg(a7_0x43cf16(0xf3)),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xe6),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xde),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xf2),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0x43cf16(0xd4),Object)],ApiError,a7_0x43cf16(0xf0),void 0x0),exports[a7_0x43cf16(0xd9)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x3840(_0x4365e4,_0x2c84d7){const _0xedc281=a8_0x16ab();return a8_0x3840=function(_0x2e19b2,_0x5a46df){_0x2e19b2=_0x2e19b2-0x1e6;let _0x16abc5=_0xedc281[_0x2e19b2];return _0x16abc5;},a8_0x3840(_0x4365e4,_0x2c84d7);}const a8_0x44ae7f=a8_0x3840;(function(_0x653303,_0x464578){const _0x406536=a8_0x3840,_0x53cdb4=_0x653303();while(!![]){try{const _0x1eefab=-parseInt(_0x406536(0x1f8))/0x1+parseInt(_0x406536(0x1f1))/0x2+-parseInt(_0x406536(0x1f4))/0x3+-parseInt(_0x406536(0x1eb))/0x4*(-parseInt(_0x406536(0x1f5))/0x5)+parseInt(_0x406536(0x1f2))/0x6+-parseInt(_0x406536(0x1e9))/0x7*(parseInt(_0x406536(0x1f0))/0x8)+parseInt(_0x406536(0x1ee))/0x9;if(_0x1eefab===_0x464578)break;else _0x53cdb4['push'](_0x53cdb4['shift']());}catch(_0xdca8f7){_0x53cdb4['push'](_0x53cdb4['shift']());}}}(a8_0x16ab,0xcfdb7));const a8_0x5a46df=(function(){let _0x490b71=!![];return function(_0x5483f9,_0x31ba3f){const _0x5dbeaf=_0x490b71?function(){const _0x4d6ea3=a8_0x3840;if(_0x31ba3f){const _0x3e5b4d=_0x31ba3f[_0x4d6ea3(0x1f7)](_0x5483f9,arguments);return _0x31ba3f=null,_0x3e5b4d;}}:function(){};return _0x490b71=![],_0x5dbeaf;};}()),a8_0x2e19b2=a8_0x5a46df(this,function(){const _0x4f50f0=a8_0x3840;return a8_0x2e19b2[_0x4f50f0(0x1ed)]()[_0x4f50f0(0x1e6)]('(((.+)+)+)+$')[_0x4f50f0(0x1ed)]()[_0x4f50f0(0x1ef)](a8_0x2e19b2)['search'](_0x4f50f0(0x1ec));});a8_0x2e19b2();'use strict';Object[a8_0x44ae7f(0x1f6)](exports,a8_0x44ae7f(0x1ea),{'value':!![]}),exports[a8_0x44ae7f(0x1e7)]=void 0x0;function a8_0x16ab(){const _0xf5d3f5=['1675267OcmcMu','APPSCONFIG_KEY','search','getAppsConfig','get','133WIpuES','__esModule','1206828fVhdVA','(((.+)+)+)+$','toString','26471943EsqQSk','constructor','558176SXglov','1549330gzaXPx','1008402UVJSiz','getClassMetadata','1000344cYobco','5EWZvIE','defineProperty','apply'];a8_0x16ab=function(){return _0xf5d3f5;};return a8_0x16ab();}const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x300621){const _0x419847=a8_0x44ae7f,_0x45aa16=(0x0,core_1[_0x419847(0x1f3)])(action_1[_0x419847(0x1f9)],action_1['AppsConfigTmp'])||{};return _0x300621?lodash[_0x419847(0x1e8)](_0x45aa16,_0x300621):_0x45aa16;}exports[a8_0x44ae7f(0x1e7)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x38e87c=a9_0x456a;(function(_0x49f874,_0x56a03a){const _0x131fd8=a9_0x456a,_0x4cf69b=_0x49f874();while(!![]){try{const _0x15306d=-parseInt(_0x131fd8(0x205))/0x1+parseInt(_0x131fd8(0x210))/0x2*(parseInt(_0x131fd8(0x22c))/0x3)+-parseInt(_0x131fd8(0x1ea))/0x4+-parseInt(_0x131fd8(0x1fb))/0x5+-parseInt(_0x131fd8(0x1fd))/0x6*(parseInt(_0x131fd8(0x219))/0x7)+-parseInt(_0x131fd8(0x200))/0x8*(-parseInt(_0x131fd8(0x1f3))/0x9)+-parseInt(_0x131fd8(0x241))/0xa*(-parseInt(_0x131fd8(0x1f5))/0xb);if(_0x15306d===_0x56a03a)break;else _0x4cf69b['push'](_0x4cf69b['shift']());}catch(_0x3a240f){_0x4cf69b['push'](_0x4cf69b['shift']());}}}(a9_0x589f,0xdf032));function a9_0x456a(_0x299355,_0x451b5a){const _0x1c2d4f=a9_0x589f();return a9_0x456a=function(_0x3c05f2,_0x4903a1){_0x3c05f2=_0x3c05f2-0x1e4;let _0x589f23=_0x1c2d4f[_0x3c05f2];return _0x589f23;},a9_0x456a(_0x299355,_0x451b5a);}const a9_0x4903a1=(function(){let _0x6b4893=!![];return function(_0x1ea329,_0x3b9dee){const _0xeb3cb7=_0x6b4893?function(){if(_0x3b9dee){const _0x254677=_0x3b9dee['apply'](_0x1ea329,arguments);return _0x3b9dee=null,_0x254677;}}:function(){};return _0x6b4893=![],_0xeb3cb7;};}()),a9_0x3c05f2=a9_0x4903a1(this,function(){const _0x1adf3f=a9_0x456a;return a9_0x3c05f2['toString']()[_0x1adf3f(0x21f)](_0x1adf3f(0x225))[_0x1adf3f(0x248)]()[_0x1adf3f(0x22b)](a9_0x3c05f2)[_0x1adf3f(0x21f)](_0x1adf3f(0x225));});a9_0x3c05f2();'use strict';Object[a9_0x38e87c(0x247)](exports,a9_0x38e87c(0x208),{'value':!![]}),exports[a9_0x38e87c(0x1e4)]=void 0x0;const lodash_1=require(a9_0x38e87c(0x22e)),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x38e87c(0x244)),core_2=require(a9_0x38e87c(0x244)),core_3=require(a9_0x38e87c(0x244)),action_1=require(a9_0x38e87c(0x223));function getRoutes(_0x41f9df={'prefix':'/','module':![]}){const _0x4f7ed4=a9_0x38e87c;var _0xb31013,_0x222c0a;const _0x1499de=(0x0,core_3[_0x4f7ed4(0x1e6)])(action_1['ACTION_KEY']),_0x3f2b32={},_0x2ada46=Array['isArray'](_0x41f9df[_0x4f7ed4(0x1fe)]||[])?_0x41f9df[_0x4f7ed4(0x1fe)]||[]:[_0x41f9df['filter']];_0x2bea9b:for(const _0x28b7a0 of _0x1499de){let _0x453830=(0x0,core_3[_0x4f7ed4(0x20b)])(action_1['ACTION_KEY'],_0x28b7a0),_0xe262d0=(0x0,core_3[_0x4f7ed4(0x20b)])(action_1[_0x4f7ed4(0x204)],_0x28b7a0);if(_0x453830&&_0xe262d0){let _0x30d7f1=_0x453830['prefix'],_0x5142eb={};if(_0x41f9df[_0x4f7ed4(0x249)]&&(0x0,lodash_1[_0x4f7ed4(0x231)])(_0x453830,_0x4f7ed4(0x249),![])!=_0x41f9df['module'])continue _0x2bea9b;else{if(_0x41f9df['module']===![]&&!!(0x0,lodash_1[_0x4f7ed4(0x231)])(_0x453830,'module',null))continue _0x2bea9b;}if(_0x41f9df['prefix']&&!_0x30d7f1[_0x4f7ed4(0x20e)](_0x41f9df[_0x4f7ed4(0x215)]))continue _0x2bea9b;_0x30d7f1!=='/'?(_0x5142eb[_0x4f7ed4(0x23d)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x230)])||(/^\//[_0x4f7ed4(0x227)](_0x30d7f1)?_0x30d7f1[_0x4f7ed4(0x238)]('/')[0x1]:_0x30d7f1),_0x5142eb[_0x4f7ed4(0x1f0)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x1f0)])||_0x5142eb['summary'],_0x5142eb[_0x4f7ed4(0x1fa)]=[]):(_0x5142eb['summary']=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x230)])||_0x4f7ed4(0x23f),_0x5142eb[_0x4f7ed4(0x1f0)]=(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x207)][_0x4f7ed4(0x1f0)])||'',_0x5142eb[_0x4f7ed4(0x1fa)]=[]);_0x41f9df[_0x4f7ed4(0x1e5)]&&(_0x5142eb['filepath']=_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x1e5)]);(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x218)])&&(_0x5142eb[_0x4f7ed4(0x215)]=_0x453830[_0x4f7ed4(0x218)]);(_0x453830===null||_0x453830===void 0x0?void 0x0:_0x453830[_0x4f7ed4(0x249)])&&(_0x5142eb[_0x4f7ed4(0x249)]=_0x453830[_0x4f7ed4(0x249)]);let _0x3c0715=(0x0,core_3[_0x4f7ed4(0x20b)])(core_2[_0x4f7ed4(0x21e)],_0x28b7a0)||{};if(typeof _0xe262d0[Symbol[_0x4f7ed4(0x206)]]===_0x4f7ed4(0x201))for(let _0x1c2ec6 of _0xe262d0){if((_0x41f9df===null||_0x41f9df===void 0x0?void 0x0:_0x41f9df[_0x4f7ed4(0x234)])&&!(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x234)]))continue;let _0x47eca9={};_0x47eca9[_0x4f7ed4(0x222)]=_0x1c2ec6[_0x4f7ed4(0x242)],_0x47eca9[_0x4f7ed4(0x21d)]=(_0x30d7f1+_0x1c2ec6[_0x4f7ed4(0x203)])[_0x4f7ed4(0x239)](/\/{2,}/g,'/'),_0x47eca9[_0x4f7ed4(0x23d)]=(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x216)])||_0x5142eb['summary']||_0x4f7ed4(0x23f),_0x47eca9[_0x4f7ed4(0x1f0)]=(_0x1c2ec6===null||_0x1c2ec6===void 0x0?void 0x0:_0x1c2ec6[_0x4f7ed4(0x1f0)])||'',_0x47eca9[_0x4f7ed4(0x221)]=[];_0x47eca9[_0x4f7ed4(0x21d)]['endsWith']('/')&&(_0x47eca9['route']=_0x47eca9[_0x4f7ed4(0x21d)][_0x4f7ed4(0x233)](0x0,_0x47eca9['route'][_0x4f7ed4(0x1f2)]-0x1));if(!(0x0,lodash_1[_0x4f7ed4(0x20e)])(_0x47eca9[_0x4f7ed4(0x21d)],_0x4f7ed4(0x20c))&&!(0x0,lodash_1[_0x4f7ed4(0x20e)])(_0x47eca9[_0x4f7ed4(0x21d)],_0x4f7ed4(0x23a))&&_0x2ada46[_0x4f7ed4(0x211)](_0x47eca9['route'])===-0x1){if(!(_0x41f9df===null||_0x41f9df===void 0x0?void 0x0:_0x41f9df['noreq'])){let _0x3a0ea4=(0x0,core_3[_0x4f7ed4(0x212)])(new _0x28b7a0(),_0x1c2ec6[_0x4f7ed4(0x222)]);for(const _0x260905 in _0x3a0ea4){let _0x33753f=(_0xb31013=_0x3c0715[_0x1c2ec6[_0x4f7ed4(0x222)]])===null||_0xb31013===void 0x0?void 0x0:_0xb31013[_0x4f7ed4(0x20d)](_0xe3fd53=>_0xe3fd53[_0x4f7ed4(0x1ee)]==_0x260905&&_0xe3fd53['key']===core_2['WEB_ROUTER_PARAM_KEY']&&(_0xe3fd53===null||_0xe3fd53===void 0x0?void 0x0:_0xe3fd53[_0x4f7ed4(0x1f9)]));if(_0x33753f===null||_0x33753f===void 0x0?void 0x0:_0x33753f[_0x4f7ed4(0x1f9)]){let _0x42a955=convertTypeToString(_0x33753f['metadata'][_0x4f7ed4(0x214)]||0x0);if(['query',_0x4f7ed4(0x1f4)][_0x4f7ed4(0x211)](_0x42a955)!=-0x1&&_0x33753f[_0x4f7ed4(0x1f9)]['propertyData']['indexOf'](':')==-0x1&&!_0x47eca9['request'][_0x4f7ed4(0x20d)](_0x3ffbd4=>_0x3ffbd4[_0x4f7ed4(0x1e8)]==_0x33753f[_0x4f7ed4(0x1f9)][_0x4f7ed4(0x22f)]))_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)]({'key':_0x33753f[_0x4f7ed4(0x1f9)]['propertyData'],'title':_0x33753f[_0x4f7ed4(0x1f9)][_0x4f7ed4(0x22f)],'type':convertSchemaType(_0x3a0ea4[_0x33753f[_0x4f7ed4(0x1ee)]][_0x4f7ed4(0x217)]),'required':![],'default':'','desc':''});else{if(_0x42a955==_0x4f7ed4(0x21c)){let _0x4c130c=((_0x222c0a=_0x33753f===null||_0x33753f===void 0x0?void 0x0:_0x33753f[_0x4f7ed4(0x1f9)])===null||_0x222c0a===void 0x0?void 0x0:_0x222c0a[_0x4f7ed4(0x22f)])||'file';_0x4c130c[_0x4f7ed4(0x211)](':')==-0x1&&!_0x47eca9[_0x4f7ed4(0x221)]['find'](_0x58e0d7=>_0x58e0d7['key']==_0x4c130c&&_0x58e0d7[_0x4f7ed4(0x214)]==_0x4f7ed4(0x21c))&&_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)]({'key':_0x4c130c,'title':_0x4f7ed4(0x245)+_0x4c130c,'type':_0x4f7ed4(0x21c),'required':!![],'default':'','desc':''});}}}else{const _0x425533=(0x0,core_3[_0x4f7ed4(0x202)])(validator_1[_0x4f7ed4(0x20f)],_0x3a0ea4[_0x260905]);_0x425533&&_0x47eca9[_0x4f7ed4(0x221)][_0x4f7ed4(0x21a)](...getJoiRequest(_0x425533));}}}_0x5142eb['routes'][_0x4f7ed4(0x21a)](_0x47eca9);}}if(_0x5142eb['routes'][_0x4f7ed4(0x1f2)]>0x0){let _0x3bf413=_0x3f2b32[_0x30d7f1];_0x3bf413?(_0x3bf413['summary']!=_0x5142eb['summary']&&(_0x3bf413[_0x4f7ed4(0x23d)]=_0x3bf413[_0x4f7ed4(0x23d)]+','+_0x5142eb[_0x4f7ed4(0x23d)]),_0x3bf413[_0x4f7ed4(0x1f0)]!=_0x5142eb['description']&&(_0x3bf413[_0x4f7ed4(0x1f0)]=_0x3bf413[_0x4f7ed4(0x1f0)]+','+_0x5142eb[_0x4f7ed4(0x1f0)]),_0x3bf413['routes']=_0x3bf413[_0x4f7ed4(0x1fa)][_0x4f7ed4(0x1eb)](_0x5142eb[_0x4f7ed4(0x1fa)]),_0x3f2b32[_0x30d7f1]=_0x3bf413):_0x3f2b32[_0x30d7f1]=_0x5142eb;}}}return _0x3f2b32;}exports[a9_0x38e87c(0x1e4)]=getRoutes;function getJoiRequest(_0x313f9d){const _0xf9a011=a9_0x38e87c,_0x45274e=[];for(let _0x59c95e in _0x313f9d){const _0x41fd9a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x445c7c=typeof _0x313f9d[_0x59c95e][_0xf9a011(0x237)]=='function'?_0x313f9d[_0x59c95e][_0xf9a011(0x237)]():_0x313f9d[_0x59c95e];_0x41fd9a[_0xf9a011(0x1e8)]=_0x59c95e,_0x41fd9a[_0xf9a011(0x214)]=_0x445c7c[_0xf9a011(0x214)],_0x41fd9a[_0xf9a011(0x1ff)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x1f8),_0x59c95e),_0x41fd9a[_0xf9a011(0x23f)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,'flags.default',''),_0x41fd9a[_0xf9a011(0x1ed)]=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x1e9),'')==_0xf9a011(0x1ed),_0x41fd9a['description']=(0x0,lodash_1[_0xf9a011(0x231)])(_0x445c7c,_0xf9a011(0x236),'');if(_0x445c7c[_0xf9a011(0x214)]=='object')_0x41fd9a[_0xf9a011(0x226)]=getJoiRequest(_0x445c7c[_0xf9a011(0x213)]);else{if(_0x445c7c[_0xf9a011(0x214)]==_0xf9a011(0x235)&&_0x445c7c[_0xf9a011(0x1ec)]&&Array[_0xf9a011(0x24a)](_0x445c7c[_0xf9a011(0x1ec)])&&_0x445c7c[_0xf9a011(0x1ec)][0x0]){}}_0x445c7c[_0xf9a011(0x1f1)]&&Array['isArray'](_0x445c7c[_0xf9a011(0x1f1)])&&_0x445c7c[_0xf9a011(0x1f1)]['length']>0x0&&(_0x41fd9a[_0xf9a011(0x1f0)]='只允许:['+_0x445c7c[_0xf9a011(0x1f1)][_0xf9a011(0x232)](',')+'];'+_0x41fd9a[_0xf9a011(0x1f0)]);if(_0x41fd9a[_0xf9a011(0x1e8)]&&_0x41fd9a['type']){const _0xcd9d50={};for(const _0x536c6f of _0x445c7c['rules']||[]){if(_0x536c6f[_0xf9a011(0x217)]===_0xf9a011(0x1f6)&&_0x536c6f[_0xf9a011(0x22a)])_0xcd9d50['min']=_0x536c6f[_0xf9a011(0x22a)][_0xf9a011(0x23e)];else _0x536c6f[_0xf9a011(0x217)]==='max'&&(_0xcd9d50[_0xf9a011(0x1f7)]=_0x536c6f[_0xf9a011(0x22a)]['limit']);}_0x41fd9a[_0xf9a011(0x220)]=_0xcd9d50;}_0x41fd9a['key']&&_0x41fd9a[_0xf9a011(0x1ff)]&&_0x45274e['push'](_0x41fd9a);}return _0x45274e;}function convertSchemaType(_0x227bf7){const _0x366c1f=a9_0x38e87c;switch(_0x227bf7){case'Object':return'object';case _0x366c1f(0x22d):return _0x366c1f(0x224);case _0x366c1f(0x209):return'number';case _0x366c1f(0x228):return _0x366c1f(0x23c);case _0x366c1f(0x21b):return'file';default:return _0x366c1f(0x23c);}}function a9_0x589f(){const _0x22597f=['File','file','route','INJECT_CUSTOM_PARAM','search','rules','request','method','../types/action','boolean','(((.+)+)+)+$','children','test','String','header','args','constructor','105yUQntF','Boolean','lodash','propertyData','tagName','get','join','substring','intercept','array','flags.description','describe','split','replace','/static/apitest','FILESSTREAM','string','summary','limit','default','RouteParamTypes','10itcfEJ','requestMethod','FILESTREAM','@midwayjs/core','文件上传-','QUERY','defineProperty','toString','module','isArray','getRoutes','filepath','listModule','HEADERS','key','flags.presence','4568964qZbUGQ','concat','items','required','parameterIndex','FIELDS','description','allow','length','791955KnTqkW','body','29978069zIUlNo','min','max','flags.label','metadata','routes','8536450NmXMRj','PARAM','878862uIXNuz','filter','title','136tiOfeG','function','getClassExtendedMetadata','path','ACTION_ROUTE_KEY','1180941emUcDX','iterator','routerOptions','__esModule','Number','query','getClassMetadata','static/apitest','find','startsWith','RULES_KEY','99890wFfyym','indexOf','getMethodParamTypes','keys','type','prefix','routerName','name','pprefix','49YxchZZ','push'];a9_0x589f=function(){return _0x22597f;};return a9_0x589f();}function convertTypeToString(_0x461f2d){const _0x383175=a9_0x38e87c;switch(_0x461f2d){case core_1[_0x383175(0x240)][_0x383175(0x1e7)]:return _0x383175(0x229);case core_1['RouteParamTypes'][_0x383175(0x246)]:return _0x383175(0x20a);case core_1[_0x383175(0x240)][_0x383175(0x1fc)]:return _0x383175(0x203);case core_1['RouteParamTypes']['BODY']:return'body';case core_1[_0x383175(0x240)][_0x383175(0x1ef)]:case core_1[_0x383175(0x240)][_0x383175(0x23b)]:case core_1['RouteParamTypes'][_0x383175(0x243)]:return'file';default:return _0x383175(0x229);}}
|
|
1
|
+
const a9_0x37a474=a9_0xeaeb;(function(_0xd88136,_0x3d42b7){const _0xeb302f=a9_0xeaeb,_0x448030=_0xd88136();while(!![]){try{const _0x3a12f8=parseInt(_0xeb302f(0x1e1))/0x1+-parseInt(_0xeb302f(0x1f5))/0x2*(parseInt(_0xeb302f(0x22e))/0x3)+parseInt(_0xeb302f(0x1e3))/0x4+-parseInt(_0xeb302f(0x1e4))/0x5*(parseInt(_0xeb302f(0x1f8))/0x6)+parseInt(_0xeb302f(0x203))/0x7+-parseInt(_0xeb302f(0x207))/0x8*(-parseInt(_0xeb302f(0x214))/0x9)+-parseInt(_0xeb302f(0x216))/0xa;if(_0x3a12f8===_0x3d42b7)break;else _0x448030['push'](_0x448030['shift']());}catch(_0x26d69f){_0x448030['push'](_0x448030['shift']());}}}(a9_0x142f,0xb937b));const a9_0x4bf481=(function(){let _0x48d9d6=!![];return function(_0x519c39,_0x1a865b){const _0x26fbf8=_0x48d9d6?function(){if(_0x1a865b){const _0x197c1b=_0x1a865b['apply'](_0x519c39,arguments);return _0x1a865b=null,_0x197c1b;}}:function(){};return _0x48d9d6=![],_0x26fbf8;};}()),a9_0x137fe5=a9_0x4bf481(this,function(){const _0x569e48=a9_0xeaeb;return a9_0x137fe5[_0x569e48(0x1e2)]()[_0x569e48(0x211)]('(((.+)+)+)+$')[_0x569e48(0x1e2)]()['constructor'](a9_0x137fe5)['search'](_0x569e48(0x239));});a9_0x137fe5();'use strict';Object[a9_0x37a474(0x1ef)](exports,'__esModule',{'value':!![]}),exports[a9_0x37a474(0x201)]=void 0x0;const lodash_1=require(a9_0x37a474(0x233)),validator_1=require(a9_0x37a474(0x20e)),core_1=require('@midwayjs/core'),core_2=require(a9_0x37a474(0x215)),core_3=require(a9_0x37a474(0x215)),action_1=require('../types/action');function a9_0xeaeb(_0x5d85b2,_0x26577b){const _0x3bb4fe=a9_0x142f();return a9_0xeaeb=function(_0x137fe5,_0x4bf481){_0x137fe5=_0x137fe5-0x1da;let _0x142f45=_0x3bb4fe[_0x137fe5];return _0x142f45;},a9_0xeaeb(_0x5d85b2,_0x26577b);}function a9_0x142f(){const _0x19ff4e=['routes','parameterIndex','/static/apitest','find','propertyData','只允许:[','length','concat','defineProperty','String','getClassMetadata','object','File','max','44802iJRjrL','type','push','30zIVlCG','file','Boolean','query','Object','describe','listModule','flags.description','QUERY','getRoutes','title','1217629aMpsPM','route','FILESTREAM','filepath','58808tWQJeq','get','name','function','header','args','flags.presence','@anncic-api/validator','substring','isArray','search','default','join','1791RlWIAf','@midwayjs/core','21001030kAMFWj','intercept','INJECT_CUSTOM_PARAM','indexOf','static/apitest','key','description','items','pprefix','prefix','string','limit','children','method','ACTION_KEY','HEADERS','iterator','requestMethod','flags.label','metadata','getMethodParamTypes','FILESSTREAM','body','module','111HcWZWC','ACTION_ROUTE_KEY','tagName','filter','rules','lodash','noreq','BODY','文件上传-','routerOptions','startsWith','(((.+)+)+)+$','number','allow','request','min','required','replace','path','summary','1274331IyeMkU','toString','3165236LWhbuj','14845rpnOYO','RouteParamTypes','getClassExtendedMetadata'];a9_0x142f=function(){return _0x19ff4e;};return a9_0x142f();}function getRoutes(_0x3347bb={'prefix':'/','module':![]}){const _0x46198b=a9_0x37a474;var _0x5bc4fa,_0x1adaf7;const _0x4cea12=(0x0,core_3[_0x46198b(0x1fe)])(action_1[_0x46198b(0x224)]),_0x4a5e7e={},_0x3ba6a2=Array[_0x46198b(0x210)](_0x3347bb[_0x46198b(0x231)]||[])?_0x3347bb[_0x46198b(0x231)]||[]:[_0x3347bb[_0x46198b(0x231)]];_0x23a9ea:for(const _0x399473 of _0x4cea12){let _0x17b457=(0x0,core_3[_0x46198b(0x1f1)])(action_1[_0x46198b(0x224)],_0x399473),_0x26871c=(0x0,core_3['getClassMetadata'])(action_1[_0x46198b(0x22f)],_0x399473);if(_0x17b457&&_0x26871c){let _0x44e374=_0x17b457[_0x46198b(0x21f)],_0x1110e6={};if(_0x3347bb['module']&&(0x0,lodash_1[_0x46198b(0x208)])(_0x17b457,'module',![])!=_0x3347bb[_0x46198b(0x22d)])continue _0x23a9ea;else{if(_0x3347bb['module']===![]&&!!(0x0,lodash_1[_0x46198b(0x208)])(_0x17b457,_0x46198b(0x22d),null))continue _0x23a9ea;}if(_0x3347bb['prefix']&&!_0x44e374[_0x46198b(0x238)](_0x3347bb[_0x46198b(0x21f)]))continue _0x23a9ea;_0x44e374!=='/'?(_0x1110e6[_0x46198b(0x1e0)]=(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457[_0x46198b(0x237)][_0x46198b(0x230)])||(/^\//['test'](_0x44e374)?_0x44e374['split']('/')[0x1]:_0x44e374),_0x1110e6[_0x46198b(0x21c)]=(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457[_0x46198b(0x237)]['description'])||_0x1110e6[_0x46198b(0x1e0)],_0x1110e6[_0x46198b(0x1e7)]=[]):(_0x1110e6[_0x46198b(0x1e0)]=(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457['routerOptions'][_0x46198b(0x230)])||'default',_0x1110e6[_0x46198b(0x21c)]=(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457[_0x46198b(0x237)]['description'])||'',_0x1110e6[_0x46198b(0x1e7)]=[]);_0x3347bb[_0x46198b(0x206)]&&(_0x1110e6[_0x46198b(0x206)]=_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457['filepath']);(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457[_0x46198b(0x21e)])&&(_0x1110e6['prefix']=_0x17b457[_0x46198b(0x21e)]);(_0x17b457===null||_0x17b457===void 0x0?void 0x0:_0x17b457[_0x46198b(0x22d)])&&(_0x1110e6['module']=_0x17b457['module']);let _0x4ba172=(0x0,core_3['getClassMetadata'])(core_2[_0x46198b(0x218)],_0x399473)||{};if(typeof _0x26871c[Symbol[_0x46198b(0x226)]]===_0x46198b(0x20a))for(let _0x47f6f9 of _0x26871c){if((_0x3347bb===null||_0x3347bb===void 0x0?void 0x0:_0x3347bb[_0x46198b(0x217)])&&!(_0x47f6f9===null||_0x47f6f9===void 0x0?void 0x0:_0x47f6f9[_0x46198b(0x217)]))continue;let _0x3466a5={};_0x3466a5[_0x46198b(0x223)]=_0x47f6f9[_0x46198b(0x227)],_0x3466a5[_0x46198b(0x204)]=(_0x44e374+_0x47f6f9[_0x46198b(0x1df)])[_0x46198b(0x1de)](/\/{2,}/g,'/'),_0x3466a5[_0x46198b(0x1e0)]=(_0x47f6f9===null||_0x47f6f9===void 0x0?void 0x0:_0x47f6f9['routerName'])||_0x1110e6[_0x46198b(0x1e0)]||_0x46198b(0x212),_0x3466a5['description']=(_0x47f6f9===null||_0x47f6f9===void 0x0?void 0x0:_0x47f6f9[_0x46198b(0x21c)])||'',_0x3466a5[_0x46198b(0x1db)]=[];_0x3466a5[_0x46198b(0x204)]['endsWith']('/')&&(_0x3466a5[_0x46198b(0x204)]=_0x3466a5['route'][_0x46198b(0x20f)](0x0,_0x3466a5[_0x46198b(0x204)][_0x46198b(0x1ed)]-0x1));if(!(0x0,lodash_1[_0x46198b(0x238)])(_0x3466a5[_0x46198b(0x204)],_0x46198b(0x21a))&&!(0x0,lodash_1['startsWith'])(_0x3466a5[_0x46198b(0x204)],_0x46198b(0x1e9))&&_0x3ba6a2[_0x46198b(0x219)](_0x3466a5[_0x46198b(0x204)])===-0x1){if(!(_0x3347bb===null||_0x3347bb===void 0x0?void 0x0:_0x3347bb[_0x46198b(0x234)])){let _0x57a38a=(0x0,core_3[_0x46198b(0x22a)])(new _0x399473(),_0x47f6f9[_0x46198b(0x223)]);for(const _0x52d814 in _0x57a38a){let _0x29e262=(_0x5bc4fa=_0x4ba172[_0x47f6f9[_0x46198b(0x223)]])===null||_0x5bc4fa===void 0x0?void 0x0:_0x5bc4fa['find'](_0x2f3ea4=>_0x2f3ea4['parameterIndex']==_0x52d814&&_0x2f3ea4[_0x46198b(0x21b)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x2f3ea4===null||_0x2f3ea4===void 0x0?void 0x0:_0x2f3ea4['metadata']));if(_0x29e262===null||_0x29e262===void 0x0?void 0x0:_0x29e262[_0x46198b(0x229)]){let _0x3a0a91=convertTypeToString(_0x29e262['metadata']['type']||0x0);if(['query',_0x46198b(0x22c)][_0x46198b(0x219)](_0x3a0a91)!=-0x1&&_0x29e262[_0x46198b(0x229)][_0x46198b(0x1eb)][_0x46198b(0x219)](':')==-0x1&&!_0x3466a5[_0x46198b(0x1db)]['find'](_0x25c503=>_0x25c503[_0x46198b(0x21b)]==_0x29e262[_0x46198b(0x229)][_0x46198b(0x1eb)]))_0x3466a5[_0x46198b(0x1db)][_0x46198b(0x1f7)]({'key':_0x29e262[_0x46198b(0x229)][_0x46198b(0x1eb)],'title':_0x29e262['metadata'][_0x46198b(0x1eb)],'type':convertSchemaType(_0x57a38a[_0x29e262[_0x46198b(0x1e8)]]['name']),'required':![],'default':'','desc':''});else{if(_0x3a0a91=='file'){let _0x4a4c07=((_0x1adaf7=_0x29e262===null||_0x29e262===void 0x0?void 0x0:_0x29e262['metadata'])===null||_0x1adaf7===void 0x0?void 0x0:_0x1adaf7['propertyData'])||'file';_0x4a4c07['indexOf'](':')==-0x1&&!_0x3466a5['request'][_0x46198b(0x1ea)](_0x45a95f=>_0x45a95f[_0x46198b(0x21b)]==_0x4a4c07&&_0x45a95f[_0x46198b(0x1f6)]==_0x46198b(0x1f9))&&_0x3466a5[_0x46198b(0x1db)]['push']({'key':_0x4a4c07,'title':_0x46198b(0x236)+_0x4a4c07,'type':_0x46198b(0x1f9),'required':!![],'default':'','desc':''});}}}else{const _0x55caa5=(0x0,core_3[_0x46198b(0x1e6)])(validator_1['RULES_KEY'],_0x57a38a[_0x52d814]);_0x55caa5&&_0x3466a5[_0x46198b(0x1db)][_0x46198b(0x1f7)](...getJoiRequest(_0x55caa5));}}}_0x1110e6[_0x46198b(0x1e7)]['push'](_0x3466a5);}}if(_0x1110e6['routes'][_0x46198b(0x1ed)]>0x0){let _0x15e0fe=_0x4a5e7e[_0x44e374];_0x15e0fe?(_0x15e0fe[_0x46198b(0x1e0)]!=_0x1110e6[_0x46198b(0x1e0)]&&(_0x15e0fe['summary']=_0x15e0fe['summary']+','+_0x1110e6['summary']),_0x15e0fe['description']!=_0x1110e6['description']&&(_0x15e0fe['description']=_0x15e0fe[_0x46198b(0x21c)]+','+_0x1110e6[_0x46198b(0x21c)]),_0x15e0fe[_0x46198b(0x1e7)]=_0x15e0fe[_0x46198b(0x1e7)][_0x46198b(0x1ee)](_0x1110e6['routes']),_0x4a5e7e[_0x44e374]=_0x15e0fe):_0x4a5e7e[_0x44e374]=_0x1110e6;}}}return _0x4a5e7e;}exports[a9_0x37a474(0x201)]=getRoutes;function getJoiRequest(_0x57e83c){const _0x7b5071=a9_0x37a474,_0x4c9ca7=[];for(let _0x1fee69 in _0x57e83c){const _0x3129af={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x262978=typeof _0x57e83c[_0x1fee69][_0x7b5071(0x1fd)]==_0x7b5071(0x20a)?_0x57e83c[_0x1fee69][_0x7b5071(0x1fd)]():_0x57e83c[_0x1fee69];_0x3129af[_0x7b5071(0x21b)]=_0x1fee69,_0x3129af[_0x7b5071(0x1f6)]=_0x262978['type'],_0x3129af[_0x7b5071(0x202)]=(0x0,lodash_1['get'])(_0x262978,_0x7b5071(0x228),_0x1fee69),_0x3129af[_0x7b5071(0x212)]=(0x0,lodash_1[_0x7b5071(0x208)])(_0x262978,'flags.default',''),_0x3129af[_0x7b5071(0x1dd)]=(0x0,lodash_1[_0x7b5071(0x208)])(_0x262978,_0x7b5071(0x20d),'')==_0x7b5071(0x1dd),_0x3129af[_0x7b5071(0x21c)]=(0x0,lodash_1[_0x7b5071(0x208)])(_0x262978,_0x7b5071(0x1ff),'');if(_0x262978[_0x7b5071(0x1f6)]==_0x7b5071(0x1f2))_0x3129af[_0x7b5071(0x222)]=getJoiRequest(_0x262978['keys']);else{if(_0x262978[_0x7b5071(0x1f6)]=='array'&&_0x262978['items']&&Array['isArray'](_0x262978[_0x7b5071(0x21d)])&&_0x262978[_0x7b5071(0x21d)][0x0]){}}_0x262978['allow']&&Array[_0x7b5071(0x210)](_0x262978['allow'])&&_0x262978[_0x7b5071(0x1da)][_0x7b5071(0x1ed)]>0x0&&(_0x3129af['description']=_0x7b5071(0x1ec)+_0x262978[_0x7b5071(0x1da)][_0x7b5071(0x213)](',')+'];'+_0x3129af[_0x7b5071(0x21c)]);if(_0x3129af[_0x7b5071(0x21b)]&&_0x3129af[_0x7b5071(0x1f6)]){const _0x378d3f={};for(const _0x4e28cc of _0x262978[_0x7b5071(0x232)]||[]){if(_0x4e28cc[_0x7b5071(0x209)]===_0x7b5071(0x1dc)&&_0x4e28cc[_0x7b5071(0x20c)])_0x378d3f[_0x7b5071(0x1dc)]=_0x4e28cc[_0x7b5071(0x20c)][_0x7b5071(0x221)];else _0x4e28cc[_0x7b5071(0x209)]==='max'&&(_0x378d3f[_0x7b5071(0x1f4)]=_0x4e28cc[_0x7b5071(0x20c)][_0x7b5071(0x221)]);}_0x3129af[_0x7b5071(0x232)]=_0x378d3f;}_0x3129af[_0x7b5071(0x21b)]&&_0x3129af[_0x7b5071(0x202)]&&_0x4c9ca7[_0x7b5071(0x1f7)](_0x3129af);}return _0x4c9ca7;}function convertSchemaType(_0x40bb5d){const _0x3a4572=a9_0x37a474;switch(_0x40bb5d){case _0x3a4572(0x1fc):return _0x3a4572(0x1f2);case _0x3a4572(0x1fa):return'boolean';case'Number':return _0x3a4572(0x23a);case _0x3a4572(0x1f0):return _0x3a4572(0x220);case _0x3a4572(0x1f3):return _0x3a4572(0x1f9);default:return _0x3a4572(0x220);}}function convertTypeToString(_0x4a4e44){const _0x1be3bc=a9_0x37a474;switch(_0x4a4e44){case core_1['RouteParamTypes'][_0x1be3bc(0x225)]:return _0x1be3bc(0x20b);case core_1[_0x1be3bc(0x1e5)][_0x1be3bc(0x200)]:return _0x1be3bc(0x1fb);case core_1[_0x1be3bc(0x1e5)]['PARAM']:return'path';case core_1[_0x1be3bc(0x1e5)][_0x1be3bc(0x235)]:return _0x1be3bc(0x22c);case core_1[_0x1be3bc(0x1e5)]['FIELDS']:case core_1[_0x1be3bc(0x1e5)][_0x1be3bc(0x22b)]:case core_1[_0x1be3bc(0x1e5)][_0x1be3bc(0x205)]:return'file';default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x39b032=a10_0x1f3d;(function(_0x4e1eed,_0x57df10){var _0x4eef35=a10_0x1f3d,_0x1e2900=_0x4e1eed();while(!![]){try{var _0x2dd708=-parseInt(_0x4eef35(0x190))/0x1*(parseInt(_0x4eef35(0x191))/0x2)+-parseInt(_0x4eef35(0x189))/0x3+-parseInt(_0x4eef35(0x17d))/0x4+parseInt(_0x4eef35(0x15c))/0x5*(parseInt(_0x4eef35(0x18d))/0x6)+parseInt(_0x4eef35(0x168))/0x7+parseInt(_0x4eef35(0x194))/0x8+-parseInt(_0x4eef35(0x15f))/0x9*(parseInt(_0x4eef35(0x177))/0xa);if(_0x2dd708===_0x57df10)break;else _0x1e2900['push'](_0x1e2900['shift']());}catch(_0x417692){_0x1e2900['push'](_0x1e2900['shift']());}}}(a10_0x3d77,0x8fc48));var a10_0x2bcdab=(function(){var _0x15207d=!![];return function(_0x40d33c,_0x575d9f){var _0x9185b9=_0x15207d?function(){var _0x10776c=a10_0x1f3d;if(_0x575d9f){var _0x159722=_0x575d9f[_0x10776c(0x18e)](_0x40d33c,arguments);return _0x575d9f=null,_0x159722;}}:function(){};return _0x15207d=![],_0x9185b9;};}()),a10_0x9d4a09=a10_0x2bcdab(this,function(){var _0x1d371a=a10_0x1f3d;return a10_0x9d4a09[_0x1d371a(0x187)]()[_0x1d371a(0x186)](_0x1d371a(0x188))[_0x1d371a(0x187)]()['constructor'](a10_0x9d4a09)['search'](_0x1d371a(0x188));});a10_0x9d4a09();'use strict';var __createBinding=this&&this[a10_0x39b032(0x16d)]||(Object[a10_0x39b032(0x183)]?function(_0x327d36,_0x1ad3cb,_0xfc776,_0xc8284d){var _0x3657ec=a10_0x39b032;if(_0xc8284d===undefined)_0xc8284d=_0xfc776;var _0x544bd9=Object['getOwnPropertyDescriptor'](_0x1ad3cb,_0xfc776);(!_0x544bd9||('get'in _0x544bd9?!_0x1ad3cb[_0x3657ec(0x169)]:_0x544bd9['writable']||_0x544bd9[_0x3657ec(0x174)]))&&(_0x544bd9={'enumerable':!![],'get':function(){return _0x1ad3cb[_0xfc776];}}),Object[_0x3657ec(0x173)](_0x327d36,_0xc8284d,_0x544bd9);}:function(_0x6d63dd,_0x178c5c,_0x5096cf,_0x6c96be){if(_0x6c96be===undefined)_0x6c96be=_0x5096cf;_0x6d63dd[_0x6c96be]=_0x178c5c[_0x5096cf];}),__exportStar=this&&this[a10_0x39b032(0x157)]||function(_0x35fb4c,_0x2f8452){var _0x10bf60=a10_0x39b032;for(var _0x5d83dd in _0x35fb4c)if(_0x5d83dd!==_0x10bf60(0x162)&&!Object[_0x10bf60(0x181)][_0x10bf60(0x15a)][_0x10bf60(0x171)](_0x2f8452,_0x5d83dd))__createBinding(_0x2f8452,_0x35fb4c,_0x5d83dd);};Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x169),{'value':!![]}),exports[a10_0x39b032(0x18c)]=exports[a10_0x39b032(0x176)]=exports[a10_0x39b032(0x165)]=exports['Scope']=exports['Inject']=exports[a10_0x39b032(0x155)]=exports['Logger']=exports['Config']=exports[a10_0x39b032(0x163)]=exports[a10_0x39b032(0x16f)]=exports[a10_0x39b032(0x18f)]=exports[a10_0x39b032(0x158)]=exports['Param']=exports[a10_0x39b032(0x16e)]=exports[a10_0x39b032(0x16c)]=exports[a10_0x39b032(0x16b)]=exports[a10_0x39b032(0x17f)]=exports[a10_0x39b032(0x18a)]=exports[a10_0x39b032(0x166)]=exports[a10_0x39b032(0x17c)]=exports['ExcelService']=exports[a10_0x39b032(0x184)]=exports[a10_0x39b032(0x170)]=exports[a10_0x39b032(0x164)]=exports[a10_0x39b032(0x185)]=exports[a10_0x39b032(0x196)]=exports[a10_0x39b032(0x172)]=exports[a10_0x39b032(0x175)]=exports[a10_0x39b032(0x193)]=exports[a10_0x39b032(0x15b)]=exports[a10_0x39b032(0x195)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x18c),{'enumerable':!![],'get':function(){var _0x34f977=a10_0x39b032;return getAppsConfig_1[_0x34f977(0x18c)];}}),__exportStar(require(a10_0x39b032(0x16a)),exports),__exportStar(require(a10_0x39b032(0x18b)),exports);var ActionApi_1=require(a10_0x39b032(0x160));Object[a10_0x39b032(0x173)](exports,'Api',{'enumerable':!![],'get':function(){var _0x5f0416=a10_0x39b032;return ActionApi_1[_0x5f0416(0x195)];}});var Action_1=require(a10_0x39b032(0x192));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x15b),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a10_0x39b032(0x180));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x193),{'enumerable':!![],'get':function(){var _0x459116=a10_0x39b032;return ActionApitest_1[_0x459116(0x193)];}});var Intercept_1=require(a10_0x39b032(0x182));function a10_0x1f3d(_0x298ab8,_0x4e8060){var _0x599cc8=a10_0x3d77();return a10_0x1f3d=function(_0x9d4a09,_0x2bcdab){_0x9d4a09=_0x9d4a09-0x155;var _0x3d77b1=_0x599cc8[_0x9d4a09];return _0x3d77b1;},a10_0x1f3d(_0x298ab8,_0x4e8060);}function a10_0x3d77(){var _0x573ae9=['Param','__exportStar','Query','./helper/getRoutes','hasOwnProperty','Action','10ELvfXM','Logger','Config','441BzBYSK','./decorator/ActionApi','./service/ExcelService','default','App','CacheService','Singleton','ValidatorService','./service/ApiService','5318348BpYPTo','__esModule','./types/common','Files','Fields','__createBinding','Body','Init','EventService','call','IIntercept','defineProperty','configurable','Intercept','ScopeEnum','84610YSNmAL','@anncic-api/validator','Scope','ExcelService','@anncic-api/event','ValidatorError','193548vGFpXE','@midwayjs/core','File','./decorator/ActionApitest','prototype','./decorator/Intercept','create','ApiService','ApiError','search','toString','(((.+)+)+)+$','3471261jbOEjc','Configuration','./service/ApitestService','getAppsConfig','2166828rSUrps','apply','Headers','1lFVVXh','692066aiLBzu','./decorator/Action','Apitest','8583424LUjzEf','Api','getRoutes','Provide'];a10_0x3d77=function(){return _0x573ae9;};return a10_0x3d77();}Object[a10_0x39b032(0x173)](exports,'Intercept',{'enumerable':!![],'get':function(){var _0x5554da=a10_0x39b032;return Intercept_1[_0x5554da(0x175)];}}),Object['defineProperty'](exports,a10_0x39b032(0x172),{'enumerable':!![],'get':function(){var _0x51aebe=a10_0x39b032;return Intercept_1[_0x51aebe(0x172)];}});var getRoutes_1=require(a10_0x39b032(0x159));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x196),{'enumerable':!![],'get':function(){var _0x1474cb=a10_0x39b032;return getRoutes_1[_0x1474cb(0x196)];}});var ApiError_1=require('./exception/ApiError');Object[a10_0x39b032(0x173)](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x569138=a10_0x39b032;return ApiError_1[_0x569138(0x185)];}});var cache_1=require('@anncic-api/cache');Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x164),{'enumerable':!![],'get':function(){return cache_1['CacheService'];}});var event_1=require(a10_0x39b032(0x17b));Object['defineProperty'](exports,a10_0x39b032(0x170),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a10_0x39b032(0x167));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x184),{'enumerable':!![],'get':function(){var _0x17733d=a10_0x39b032;return ApiService_1[_0x17733d(0x184)];}});var ExcelService_1=require(a10_0x39b032(0x161));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x17a),{'enumerable':!![],'get':function(){var _0x13a2b6=a10_0x39b032;return ExcelService_1[_0x13a2b6(0x17a)];}});var validator_1=require(a10_0x39b032(0x178));Object['defineProperty'](exports,a10_0x39b032(0x17c),{'enumerable':!![],'get':function(){var _0x491bcf=a10_0x39b032;return validator_1[_0x491bcf(0x17c)];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x166),{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require('./configuration');Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x18a),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var core_1=require('@midwayjs/core');Object['defineProperty'](exports,a10_0x39b032(0x17f),{'enumerable':!![],'get':function(){return core_1['File'];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x16b),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x16c),{'enumerable':!![],'get':function(){var _0x239370=a10_0x39b032;return core_1[_0x239370(0x16c)];}}),Object[a10_0x39b032(0x173)](exports,'Body',{'enumerable':!![],'get':function(){var _0x5ce5df=a10_0x39b032;return core_1[_0x5ce5df(0x16e)];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x156),{'enumerable':!![],'get':function(){var _0x7c7a52=a10_0x39b032;return core_1[_0x7c7a52(0x156)];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x158),{'enumerable':!![],'get':function(){var _0x1fa005=a10_0x39b032;return core_1[_0x1fa005(0x158)];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x18f),{'enumerable':!![],'get':function(){return core_1['Headers'];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x16f),{'enumerable':!![],'get':function(){var _0x5e6762=a10_0x39b032;return core_1[_0x5e6762(0x16f)];}});var core_2=require(a10_0x39b032(0x17e));Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x163),{'enumerable':!![],'get':function(){var _0x1f9bd5=a10_0x39b032;return core_2[_0x1f9bd5(0x163)];}}),Object['defineProperty'](exports,a10_0x39b032(0x15e),{'enumerable':!![],'get':function(){var _0x61a5c8=a10_0x39b032;return core_2[_0x61a5c8(0x15e)];}}),Object['defineProperty'](exports,a10_0x39b032(0x15d),{'enumerable':!![],'get':function(){var _0x4dc693=a10_0x39b032;return core_2[_0x4dc693(0x15d)];}}),Object['defineProperty'](exports,a10_0x39b032(0x155),{'enumerable':!![],'get':function(){var _0x44df92=a10_0x39b032;return core_2[_0x44df92(0x155)];}}),Object[a10_0x39b032(0x173)](exports,'Inject',{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a10_0x39b032(0x173)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x2d756f=a10_0x39b032;return core_2[_0x2d756f(0x179)];}}),Object['defineProperty'](exports,a10_0x39b032(0x165),{'enumerable':!![],'get':function(){var _0x1f65e2=a10_0x39b032;return core_2[_0x1f65e2(0x165)];}}),Object[a10_0x39b032(0x173)](exports,a10_0x39b032(0x176),{'enumerable':!![],'get':function(){var _0x5187f6=a10_0x39b032;return core_2[_0x5187f6(0x176)];}}),global['getAppsConfig']=getAppsConfig_1[a10_0x39b032(0x18c)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x3cd2a6=a11_0x89e7;(function(_0x527de1,_0x3ffde5){var _0x268493=a11_0x89e7,_0x2157ab=_0x527de1();while(!![]){try{var _0xd7f715=-parseInt(_0x268493(0x109))/0x1+parseInt(_0x268493(0x107))/0x2+parseInt(_0x268493(0x10b))/0x3+parseInt(_0x268493(0x10d))/0x4+parseInt(_0x268493(0xf1))/0x5*(-parseInt(_0x268493(0xe7))/0x6)+-parseInt(_0x268493(0xf0))/0x7*(-parseInt(_0x268493(0x108))/0x8)+-parseInt(_0x268493(0xe6))/0x9*(parseInt(_0x268493(0xf3))/0xa);if(_0xd7f715===_0x3ffde5)break;else _0x2157ab['push'](_0x2157ab['shift']());}catch(_0x31cc19){_0x2157ab['push'](_0x2157ab['shift']());}}}(a11_0x5758,0x9c4f0));var a11_0x235bf8=(function(){var _0x387a61=!![];return function(_0x5d72db,_0x1278da){var _0x57970b=_0x387a61?function(){var _0x3dbeef=a11_0x89e7;if(_0x1278da){var _0x1d0c15=_0x1278da[_0x3dbeef(0xeb)](_0x5d72db,arguments);return _0x1278da=null,_0x1d0c15;}}:function(){};return _0x387a61=![],_0x57970b;};}()),a11_0x20fb15=a11_0x235bf8(this,function(){var _0x48e446=a11_0x89e7;return a11_0x20fb15['toString']()['search']('(((.+)+)+)+$')[_0x48e446(0x105)]()[_0x48e446(0xed)](a11_0x20fb15)[_0x48e446(0x103)](_0x48e446(0xe4));});a11_0x20fb15();'use strict';var __decorate=this&&this[a11_0x3cd2a6(0x10c)]||function(_0x128992,_0x3b49a0,_0x6f445b,_0x1eeffe){var _0x2e26fd=a11_0x3cd2a6,_0x343289=arguments['length'],_0x2873bb=_0x343289<0x3?_0x3b49a0:_0x1eeffe===null?_0x1eeffe=Object[_0x2e26fd(0xf6)](_0x3b49a0,_0x6f445b):_0x1eeffe,_0x3a54ea;if(typeof Reflect==='object'&&typeof Reflect[_0x2e26fd(0xdd)]===_0x2e26fd(0x106))_0x2873bb=Reflect[_0x2e26fd(0xdd)](_0x128992,_0x3b49a0,_0x6f445b,_0x1eeffe);else{for(var _0x2e7b0a=_0x128992[_0x2e26fd(0xee)]-0x1;_0x2e7b0a>=0x0;_0x2e7b0a--)if(_0x3a54ea=_0x128992[_0x2e7b0a])_0x2873bb=(_0x343289<0x3?_0x3a54ea(_0x2873bb):_0x343289>0x3?_0x3a54ea(_0x3b49a0,_0x6f445b,_0x2873bb):_0x3a54ea(_0x3b49a0,_0x6f445b))||_0x2873bb;}return _0x343289>0x3&&_0x2873bb&&Object['defineProperty'](_0x3b49a0,_0x6f445b,_0x2873bb),_0x2873bb;},__metadata=this&&this[a11_0x3cd2a6(0xe2)]||function(_0x36b3fa,_0x2d1a85){var _0x464369=a11_0x3cd2a6;if(typeof Reflect==='object'&&typeof Reflect[_0x464369(0xf8)]===_0x464369(0x106))return Reflect[_0x464369(0xf8)](_0x36b3fa,_0x2d1a85);};Object['defineProperty'](exports,a11_0x3cd2a6(0x10a),{'value':!![]}),exports[a11_0x3cd2a6(0xea)]=void 0x0;const crypto_js_1=require(a11_0x3cd2a6(0xd0)),core_1=require(a11_0x3cd2a6(0xe0)),ApiError_1=require(a11_0x3cd2a6(0xd4));let ApiService=class ApiService{[a11_0x3cd2a6(0xd3)](_0x197530){var _0x330f1b=a11_0x3cd2a6,_0x55baba;return _0x197530?(0x0,crypto_js_1[_0x330f1b(0xcd)])(''+_0x197530+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x330f1b(0xcd)])(''+_0x197530)[_0x330f1b(0x105)]()+(''+((_0x55baba=this[_0x330f1b(0xd1)])===null||_0x55baba===void 0x0?void 0x0:_0x55baba[_0x330f1b(0xd3)])))['toString']())[_0x330f1b(0x105)]():'';}[a11_0x3cd2a6(0x100)](_0x5d5ed5,_0x29d054,_0xe796bb=Date[a11_0x3cd2a6(0xfa)]()){var _0x573638=a11_0x3cd2a6;return{'Token':_0x5d5ed5,'Logintime':_0xe796bb,'Checkcode':this[_0x573638(0xe5)](_0x5d5ed5,_0x29d054,_0xe796bb)};}[a11_0x3cd2a6(0xda)](_0x2e5bdf={}){var _0x5b87df=a11_0x3cd2a6,_0x3d7b3c,_0x4da63f;const _0x4dc0a8=[],_0x2c1c22=Object['fromEntries'](Object['entries'](_0x2e5bdf)[_0x5b87df(0xfd)](_0x5c3222=>[_0x5c3222[0x0][_0x5b87df(0xe9)](),_0x5c3222[0x1]]));for(let _0x2d1665 of[_0x5b87df(0xce),_0x5b87df(0xfb),_0x5b87df(0xef),_0x5b87df(0xfc),_0x5b87df(0xe5)]){if(typeof _0x2c1c22[_0x2d1665]==_0x5b87df(0xf4))throw new AnnError(ApiError_1[_0x5b87df(0xdc)][_0x5b87df(0xf5)],{'message':_0x5b87df(0xde)+_0x2d1665});_0x4dc0a8['push'](_0x2d1665+'='+_0x2c1c22[_0x2d1665]);}_0x2c1c22['requesttime']&&((_0x3d7b3c=_0x2c1c22['requesttime'])===null||_0x3d7b3c===void 0x0?void 0x0:_0x3d7b3c[_0x5b87df(0xee)])==0xa&&(_0x2c1c22[_0x5b87df(0xfb)]=_0x2c1c22[_0x5b87df(0xfb)]*0x3e8);if(this['config']['timeout']&&Date[_0x5b87df(0xfa)]()-Math[_0x5b87df(0xdf)](_0x2c1c22[_0x5b87df(0xfb)])>this[_0x5b87df(0xd1)][_0x5b87df(0xd8)])throw new AnnError(ApiError_1[_0x5b87df(0xdc)][_0x5b87df(0xdb)],{'message':_0x5b87df(0xd5),'requesttime':_0x2c1c22['requesttime'],'timestamp':Date[_0x5b87df(0xfa)]()});if((((_0x4da63f=this[_0x5b87df(0xd1)][_0x5b87df(0xf7)][_0x2c1c22[_0x5b87df(0xce)]])===null||_0x4da63f===void 0x0?void 0x0:_0x4da63f[_0x5b87df(0xfe)])||0x0)>0x0&&Date[_0x5b87df(0xfa)]()-Math[_0x5b87df(0xdf)](_0x2c1c22['logintime'])>this[_0x5b87df(0xd1)][_0x5b87df(0xf7)][_0x2c1c22[_0x5b87df(0xce)]]['logintimeout'])throw new AnnError(ApiError_1[_0x5b87df(0xdc)][_0x5b87df(0xcc)]);if(!this[_0x5b87df(0xd1)][_0x5b87df(0xf7)][_0x2c1c22['device']]||!this[_0x5b87df(0xd1)][_0x5b87df(0xf7)][_0x2c1c22[_0x5b87df(0xce)]]['secret']||!this['config']['devices'][_0x2c1c22[_0x5b87df(0xce)]][_0x5b87df(0xe5)])throw new AnnError(ApiError_1[_0x5b87df(0xdc)][_0x5b87df(0xec)]);if(_0x2c1c22[_0x5b87df(0xef)]&&_0x2c1c22[_0x5b87df(0xe5)]!=this[_0x5b87df(0xe5)](_0x2c1c22['token'],_0x2c1c22[_0x5b87df(0xce)],_0x2c1c22[_0x5b87df(0xfc)]))throw new AnnError(ApiError_1[_0x5b87df(0xdc)][_0x5b87df(0xd6)]);return _0x4dc0a8[_0x5b87df(0xf2)](_0x5b87df(0x102)+this['config'][_0x5b87df(0xf7)][_0x2c1c22['device']]['secret']),(0x0,crypto_js_1[_0x5b87df(0xcd)])(_0x4dc0a8['sort']()['join'](''))[_0x5b87df(0x105)]();}[a11_0x3cd2a6(0xe5)](_0x25c76b,_0xf2cc6f,_0x40d1ea=Date['now']()){var _0x4f603d=a11_0x3cd2a6,_0x463fe2,_0x164244,_0x1d1a44;if(!((_0x463fe2=this['config'])===null||_0x463fe2===void 0x0?void 0x0:_0x463fe2[_0x4f603d(0xf7)][_0xf2cc6f])||!((_0x1d1a44=(_0x164244=this['config'])===null||_0x164244===void 0x0?void 0x0:_0x164244[_0x4f603d(0xf7)][_0xf2cc6f])===null||_0x1d1a44===void 0x0?void 0x0:_0x1d1a44[_0x4f603d(0xe5)]))throw new AnnError(ApiError_1[_0x4f603d(0xdc)][_0x4f603d(0xec)]);return(0x0,crypto_js_1[_0x4f603d(0xcd)])(''+_0x25c76b+(0x0,crypto_js_1[_0x4f603d(0xcd)])(''+_0x40d1ea+(''+this[_0x4f603d(0xd1)][_0x4f603d(0xf7)][_0xf2cc6f][_0x4f603d(0xe5)]))[_0x4f603d(0x105)]())[_0x4f603d(0x105)]();}[a11_0x3cd2a6(0x104)](_0x44e136={}){var _0xeae9c5=a11_0x3cd2a6;const _0x587a88=Object[_0xeae9c5(0xe3)](Object[_0xeae9c5(0x10e)](_0x44e136)[_0xeae9c5(0xfd)](_0x480944=>[_0x480944[0x0][_0xeae9c5(0xe9)](),_0x480944[0x1]]));if(!(_0x587a88===null||_0x587a88===void 0x0?void 0x0:_0x587a88[_0xeae9c5(0xe8)]))throw new AnnError(ApiError_1[_0xeae9c5(0xdc)]['HEADERS_LACK'],{'message':_0xeae9c5(0xcf)});if((_0x587a88===null||_0x587a88===void 0x0?void 0x0:_0x587a88[_0xeae9c5(0xe8)])!=this[_0xeae9c5(0xda)](_0x587a88))throw new AnnError(ApiError_1[_0xeae9c5(0xdc)][_0xeae9c5(0xf9)]);return!![];}};function a11_0x5758(){var _0x1a6c33=['logintime','map','logintimeout','Provide','getcheck','Scope','secret=','search','checksign','toString','function','939256ePPTLe','1552LQnJqE','941817mjpiFa','__esModule','1449561RqtpVm','__decorate','4617444Gzttyw','entries','TIMEOUT_LOGINTIME','MD5','device','缺少头信息:signature','crypto-js','config','Singleton','password','../exception/ApiError','请求超时,请重试或改善网络环境','HEADERS_CHECKCODE','Config','timeout','anncicapi','getsign','TIMEOUT','ApiError','decorate','缺少头信息:','abs','@midwayjs/core','ScopeEnum','__metadata','fromEntries','(((.+)+)+)+$','checkcode','36JUBTss','5461578DvCYoJ','signature','toLowerCase','ApiService','apply','HEADERS_DEVICE','constructor','length','token','36442fVcErK','5RSQRpQ','push','1562050jGbXYY','undefined','HEADERS_LACK','getOwnPropertyDescriptor','devices','metadata','HEADERS_SIGNATURE','now','requesttime'];a11_0x5758=function(){return _0x1a6c33;};return a11_0x5758();}function a11_0x89e7(_0x36f8aa,_0x1a536c){var _0x1e5edc=a11_0x5758();return a11_0x89e7=function(_0x20fb15,_0x235bf8){_0x20fb15=_0x20fb15-0xcc;var _0x5758bd=_0x1e5edc[_0x20fb15];return _0x5758bd;},a11_0x89e7(_0x36f8aa,_0x1a536c);}__decorate([(0x0,core_1[a11_0x3cd2a6(0xd7)])(a11_0x3cd2a6(0xd9)),__metadata('design:type',Object)],ApiService['prototype'],a11_0x3cd2a6(0xd1),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x3cd2a6(0xff)])(),(0x0,core_1[a11_0x3cd2a6(0x101)])(core_1[a11_0x3cd2a6(0xe1)][a11_0x3cd2a6(0xd2)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12_0x3e92(_0xc998b6,_0x396692){const _0x190686=a12_0x1a74();return a12_0x3e92=function(_0x3f6ee9,_0x5f4b37){_0x3f6ee9=_0x3f6ee9-0xfc;let _0x1a74b3=_0x190686[_0x3f6ee9];return _0x1a74b3;},a12_0x3e92(_0xc998b6,_0x396692);}const a12_0x8c6a13=a12_0x3e92;(function(_0x2a9cbe,_0x15838d){const _0x15c9d4=a12_0x3e92,_0x1c8d64=_0x2a9cbe();while(!![]){try{const _0x268b74=parseInt(_0x15c9d4(0x11b))/0x1*(parseInt(_0x15c9d4(0x146))/0x2)+-parseInt(_0x15c9d4(0x109))/0x3*(parseInt(_0x15c9d4(0x11d))/0x4)+-parseInt(_0x15c9d4(0x106))/0x5*(-parseInt(_0x15c9d4(0x14c))/0x6)+parseInt(_0x15c9d4(0x126))/0x7+parseInt(_0x15c9d4(0x108))/0x8+-parseInt(_0x15c9d4(0x147))/0x9*(-parseInt(_0x15c9d4(0x12e))/0xa)+-parseInt(_0x15c9d4(0x12c))/0xb;if(_0x268b74===_0x15838d)break;else _0x1c8d64['push'](_0x1c8d64['shift']());}catch(_0x15c25b){_0x1c8d64['push'](_0x1c8d64['shift']());}}}(a12_0x1a74,0x6b4e6));const a12_0x5f4b37=(function(){let _0x2954fa=!![];return function(_0x43ba54,_0x15a38c){const _0x3fcd17=_0x2954fa?function(){const _0x4c4099=a12_0x3e92;if(_0x15a38c){const _0x2c1f2c=_0x15a38c[_0x4c4099(0x112)](_0x43ba54,arguments);return _0x15a38c=null,_0x2c1f2c;}}:function(){};return _0x2954fa=![],_0x3fcd17;};}()),a12_0x3f6ee9=a12_0x5f4b37(this,function(){const _0xc8914a=a12_0x3e92;return a12_0x3f6ee9[_0xc8914a(0x102)]()['search']('(((.+)+)+)+$')[_0xc8914a(0x102)]()['constructor'](a12_0x3f6ee9)[_0xc8914a(0xfe)](_0xc8914a(0x14a));});a12_0x3f6ee9();'use strict';var __decorate=this&&this[a12_0x8c6a13(0xfc)]||function(_0x56ee8d,_0x157c4a,_0xc48406,_0x4c5213){const _0x5d8c33=a12_0x8c6a13;var _0x56ee94=arguments[_0x5d8c33(0x124)],_0x5c1df0=_0x56ee94<0x3?_0x157c4a:_0x4c5213===null?_0x4c5213=Object[_0x5d8c33(0x14e)](_0x157c4a,_0xc48406):_0x4c5213,_0x131e6a;if(typeof Reflect===_0x5d8c33(0x137)&&typeof Reflect[_0x5d8c33(0x10f)]===_0x5d8c33(0x129))_0x5c1df0=Reflect['decorate'](_0x56ee8d,_0x157c4a,_0xc48406,_0x4c5213);else{for(var _0x2b856a=_0x56ee8d[_0x5d8c33(0x124)]-0x1;_0x2b856a>=0x0;_0x2b856a--)if(_0x131e6a=_0x56ee8d[_0x2b856a])_0x5c1df0=(_0x56ee94<0x3?_0x131e6a(_0x5c1df0):_0x56ee94>0x3?_0x131e6a(_0x157c4a,_0xc48406,_0x5c1df0):_0x131e6a(_0x157c4a,_0xc48406))||_0x5c1df0;}return _0x56ee94>0x3&&_0x5c1df0&&Object[_0x5d8c33(0x12a)](_0x157c4a,_0xc48406,_0x5c1df0),_0x5c1df0;},__metadata=this&&this[a12_0x8c6a13(0x14d)]||function(_0x2a078e,_0x4fbd4a){const _0x43ce1a=a12_0x8c6a13;if(typeof Reflect===_0x43ce1a(0x137)&&typeof Reflect[_0x43ce1a(0x110)]==='function')return Reflect['metadata'](_0x2a078e,_0x4fbd4a);},__param=this&&this[a12_0x8c6a13(0x113)]||function(_0x3019ff,_0x1f65a5){return function(_0x1a43d8,_0x6c220e){_0x1f65a5(_0x1a43d8,_0x6c220e,_0x3019ff);};};Object[a12_0x8c6a13(0x12a)](exports,a12_0x8c6a13(0x100),{'value':!![]}),exports[a12_0x8c6a13(0x121)]=exports[a12_0x8c6a13(0x11a)]=void 0x0;function a12_0x1a74(){const _0x31dbd4=['8112sDnfka','__metadata','getOwnPropertyDescriptor','design:type','apiteststatic','__decorate','existsSync','search','application/javascript;\x20charset=utf-8','__esModule','__apiList__','toString','anncicapi','set','config','3175rRApFu','Request','400104DfYYzE','3kADKNS','stringify','.css','apitestmodule','content-type','replace','decorate','metadata','/apiteststatic/*','apply','__param','public,\x20max-age=604800','routes','method','join','filepath','prefix','ApitestService','146991qXnvMS','Scope','3321408BzXOrj','apidoc','getRoutes','design:paramtypes','ApitestStaticController','/apiteststatic/','ctx','length','Get','4906804NZrweJ','utf-8','Environment','function','defineProperty','module','10097120cjfuVn','/apitest-:module','137320iAsCPY','apitest','extname','MidwayEnvironmentService','design:returntype','Inject','push','Param','request','object','Controller','path','summary','isDevelopmentEnvironment','route','url','apitesthtml','@midwayjs/core','../../public/index.html','cache-control','Config','ScopeEnum','prototype','/index.html','6DgMiHO','90MBSmNj','text/css;\x20charset=utf-8','description','(((.+)+)+)+$','readFileSync'];a12_0x1a74=function(){return _0x31dbd4;};return a12_0x1a74();}const path_1=require(a12_0x8c6a13(0x139)),fs_1=require('fs'),core_1=require(a12_0x8c6a13(0x13f)),core_2=require('@midwayjs/core'),core_3=require('@midwayjs/core'),getRoutes_1=require('../helper/getRoutes');let ApitestService=class ApitestService{async[a12_0x8c6a13(0x11e)](_0x38f642){const _0x241dd7=a12_0x8c6a13,_0x131bf8=(0x0,getRoutes_1[_0x241dd7(0x11f)])(_0x38f642),_0x21d47a=[];for(let _0xd68765 in _0x131bf8){for(let _0x45c2cc in _0x131bf8[_0xd68765][_0x241dd7(0x115)]){let _0x3742b7=_0x131bf8[_0xd68765][_0x241dd7(0x115)][_0x45c2cc],_0xab4f=[];for(let _0x4f7ccf in _0x3742b7[_0x241dd7(0x136)]){_0xab4f[_0x241dd7(0x134)](_0x3742b7[_0x241dd7(0x136)][_0x4f7ccf]);}_0x21d47a['push']({'title':_0x131bf8[_0xd68765]['summary']+':'+_0x3742b7[_0x241dd7(0x13a)],'prefix':_0x131bf8[_0xd68765][_0x241dd7(0x119)],'router':_0x3742b7[_0x241dd7(0x13c)],'method':_0x3742b7[_0x241dd7(0x116)],'describe':_0x3742b7[_0x241dd7(0x149)]||'','filepath':_0x131bf8[_0xd68765][_0x241dd7(0x118)]||'','request':_0xab4f});}}const _0x267ce0=(0x0,path_1[_0x241dd7(0x117)])(__dirname,_0x241dd7(0x140));return(0x0,fs_1[_0x241dd7(0x14b)])(_0x267ce0,{'encoding':_0x241dd7(0x127)})[_0x241dd7(0x10e)](/__res__/g,_0x241dd7(0x122))[_0x241dd7(0x10e)](_0x241dd7(0x101),JSON[_0x241dd7(0x10a)](_0x21d47a))[_0x241dd7(0x10e)]('__devices__',JSON['stringify'](this[_0x241dd7(0x105)]['devices']));}};__decorate([(0x0,core_3['Config'])(a12_0x8c6a13(0x103)),__metadata(a12_0x8c6a13(0x14f),Object)],ApitestService[a12_0x8c6a13(0x144)],'config',void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x8c6a13(0x12f)),(0x0,core_3['Scope'])(core_3[a12_0x8c6a13(0x143)]['Singleton'])],ApitestService),exports[a12_0x8c6a13(0x11a)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x4d2610=a12_0x8c6a13;if(this[_0x4d2610(0x12f)]){const _0x339fb8={'module':![]};return this[_0x4d2610(0x128)][_0x4d2610(0x13b)]()&&(_0x339fb8[_0x4d2610(0x118)]=!![]),await this[_0x4d2610(0x11a)][_0x4d2610(0x11e)](_0x339fb8);}return'';}async[a12_0x8c6a13(0x10c)](_0x150815){const _0x4098bf=a12_0x8c6a13;if(this[_0x4098bf(0x12f)]){const _0x2c2e41={'module':_0x150815};return this['Environment'][_0x4098bf(0x13b)]()&&(_0x2c2e41[_0x4098bf(0x118)]=!![]),await this['ApitestService'][_0x4098bf(0x11e)](_0x2c2e41);}return'';}async['apiteststatic'](){const _0x954e4e=a12_0x8c6a13;if((0x0,path_1['extname'])(this[_0x954e4e(0x123)][_0x954e4e(0x136)][_0x954e4e(0x13d)])){var _0x34b4ab=(0x0,path_1[_0x954e4e(0x117)])(__dirname,'../../public/'+this[_0x954e4e(0x123)][_0x954e4e(0x136)][_0x954e4e(0x13d)][_0x954e4e(0x10e)]('/apiteststatic/','/'));if(_0x34b4ab['substring'](_0x34b4ab[_0x954e4e(0x124)]-0xb)!=_0x954e4e(0x145)){this[_0x954e4e(0x123)][_0x954e4e(0x104)](_0x954e4e(0x141),_0x954e4e(0x114));if((0x0,path_1['extname'])(this[_0x954e4e(0x123)][_0x954e4e(0x136)]['url'])=='.js')this[_0x954e4e(0x123)]['set'](_0x954e4e(0x10d),_0x954e4e(0xff));else(0x0,path_1[_0x954e4e(0x130)])(this['ctx'][_0x954e4e(0x136)][_0x954e4e(0x13d)])==_0x954e4e(0x10b)&&this[_0x954e4e(0x123)][_0x954e4e(0x104)](_0x954e4e(0x10d),_0x954e4e(0x148));return(0x0,fs_1[_0x954e4e(0xfd)])(_0x34b4ab)&&(0x0,fs_1['readFileSync'])(_0x34b4ab,{'encoding':_0x954e4e(0x127)});}}return'';}};__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',Object)],ApitestStaticController[a12_0x8c6a13(0x144)],a12_0x8c6a13(0x123),void 0x0),__decorate([(0x0,core_3[a12_0x8c6a13(0x133)])(),__metadata(a12_0x8c6a13(0x14f),core_1[a12_0x8c6a13(0x131)])],ApitestStaticController[a12_0x8c6a13(0x144)],a12_0x8c6a13(0x128),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x8c6a13(0x14f),ApitestService)],ApitestStaticController[a12_0x8c6a13(0x144)],'ApitestService',void 0x0),__decorate([(0x0,core_3[a12_0x8c6a13(0x142)])(a12_0x8c6a13(0x12f)),__metadata(a12_0x8c6a13(0x14f),Boolean)],ApitestStaticController['prototype'],'apitest',void 0x0),__decorate([(0x0,core_3[a12_0x8c6a13(0x142)])('anncicapi'),__metadata('design:type',Object)],ApitestStaticController[a12_0x8c6a13(0x144)],a12_0x8c6a13(0x105),void 0x0),__decorate([(0x0,core_2[a12_0x8c6a13(0x125)])('/apitest'),__metadata('design:type',Function),__metadata(a12_0x8c6a13(0x120),[]),__metadata('design:returntype',Promise)],ApitestStaticController['prototype'],a12_0x8c6a13(0x13e),null),__decorate([(0x0,core_2[a12_0x8c6a13(0x125)])(a12_0x8c6a13(0x12d)),__param(0x0,(0x0,core_2[a12_0x8c6a13(0x135)])(a12_0x8c6a13(0x12b))),__metadata('design:type',Function),__metadata('design:paramtypes',[String]),__metadata(a12_0x8c6a13(0x132),Promise)],ApitestStaticController[a12_0x8c6a13(0x144)],a12_0x8c6a13(0x10c),null),__decorate([(0x0,core_2[a12_0x8c6a13(0x125)])(a12_0x8c6a13(0x111)),__metadata(a12_0x8c6a13(0x14f),Function),__metadata(a12_0x8c6a13(0x120),[]),__metadata(a12_0x8c6a13(0x132),Promise)],ApitestStaticController[a12_0x8c6a13(0x144)],a12_0x8c6a13(0x150),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x8c6a13(0x138)])('/'),(0x0,core_3[a12_0x8c6a13(0x11c)])(core_3[a12_0x8c6a13(0x143)][a12_0x8c6a13(0x107)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x9b6700=a13_0x3ae7;(function(_0x18a0fb,_0x576412){const _0x433655=a13_0x3ae7,_0x5e67af=_0x18a0fb();while(!![]){try{const _0x3fd225=-parseInt(_0x433655(0x105))/0x1+parseInt(_0x433655(0xfe))/0x2+-parseInt(_0x433655(0xf7))/0x3+parseInt(_0x433655(0xe2))/0x4*(parseInt(_0x433655(0x112))/0x5)+parseInt(_0x433655(0xee))/0x6*(-parseInt(_0x433655(0xdf))/0x7)+parseInt(_0x433655(0x122))/0x8*(parseInt(_0x433655(0xe6))/0x9)+parseInt(_0x433655(0xe3))/0xa*(-parseInt(_0x433655(0xe7))/0xb);if(_0x3fd225===_0x576412)break;else _0x5e67af['push'](_0x5e67af['shift']());}catch(_0x7e07b3){_0x5e67af['push'](_0x5e67af['shift']());}}}(a13_0x425e,0x83f63));const a13_0x2964c0=(function(){let _0x29648b=!![];return function(_0x38a7bf,_0x41700d){const _0x2abb79=_0x29648b?function(){const _0x3adcc7=a13_0x3ae7;if(_0x41700d){const _0x485308=_0x41700d[_0x3adcc7(0x108)](_0x38a7bf,arguments);return _0x41700d=null,_0x485308;}}:function(){};return _0x29648b=![],_0x2abb79;};}()),a13_0x10716c=a13_0x2964c0(this,function(){const _0x21e38d=a13_0x3ae7;return a13_0x10716c[_0x21e38d(0x11d)]()[_0x21e38d(0x120)](_0x21e38d(0x11e))[_0x21e38d(0x11d)]()[_0x21e38d(0x11b)](a13_0x10716c)['search']('(((.+)+)+)+$');});a13_0x10716c();'use strict';var __decorate=this&&this[a13_0x9b6700(0xed)]||function(_0x4f329f,_0x4a0377,_0x4d79e5,_0x49f405){const _0x1e172b=a13_0x9b6700;var _0x3ae74c=arguments[_0x1e172b(0x110)],_0x545450=_0x3ae74c<0x3?_0x4a0377:_0x49f405===null?_0x49f405=Object[_0x1e172b(0x10b)](_0x4a0377,_0x4d79e5):_0x49f405,_0x4b44b9;if(typeof Reflect==='object'&&typeof Reflect[_0x1e172b(0xe4)]==='function')_0x545450=Reflect['decorate'](_0x4f329f,_0x4a0377,_0x4d79e5,_0x49f405);else{for(var _0x46b2e9=_0x4f329f[_0x1e172b(0x110)]-0x1;_0x46b2e9>=0x0;_0x46b2e9--)if(_0x4b44b9=_0x4f329f[_0x46b2e9])_0x545450=(_0x3ae74c<0x3?_0x4b44b9(_0x545450):_0x3ae74c>0x3?_0x4b44b9(_0x4a0377,_0x4d79e5,_0x545450):_0x4b44b9(_0x4a0377,_0x4d79e5))||_0x545450;}return _0x3ae74c>0x3&&_0x545450&&Object[_0x1e172b(0x100)](_0x4a0377,_0x4d79e5,_0x545450),_0x545450;},__metadata=this&&this[a13_0x9b6700(0xfd)]||function(_0x41780c,_0x5ad520){const _0x14aa36=a13_0x9b6700;if(typeof Reflect==='object'&&typeof Reflect[_0x14aa36(0xf2)]===_0x14aa36(0x116))return Reflect[_0x14aa36(0xf2)](_0x41780c,_0x5ad520);};Object[a13_0x9b6700(0x100)](exports,a13_0x9b6700(0x10e),{'value':!![]}),exports[a13_0x9b6700(0xe5)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x9b6700(0x117)),koasend=require('koa-send'),core_1=require(a13_0x9b6700(0xef));let ExcelService=class ExcelService{async[a13_0x9b6700(0x10d)](_0x1dcbe5,_0x6e1c72,_0xec0a4=[0x0]){const _0x4262c3=a13_0x9b6700;var _0x7c786c,_0x50606c;const _0xc2bb17=new exceljs[(_0x4262c3(0xf0))](),_0x1354f6=[];let _0xba3b38=_0x1dcbe5[_0x4262c3(0xf9)](/(\\|\/)/g,'/')[_0x4262c3(0xf9)](/\/{2,}/g,'/');!(_0xba3b38===null||_0xba3b38===void 0x0?void 0x0:_0xba3b38['startsWith']('/'))&&(_0xba3b38=this[_0x4262c3(0x11c)][_0x4262c3(0xde)]()+'/'+_0xba3b38);try{await _0xc2bb17[_0x4262c3(0xf6)][_0x4262c3(0xfa)](_0xba3b38);}catch(_0x60f65f){return console['log']('Api\x20Excel\x20Error:\x20'+_0xba3b38+_0x4262c3(0xec)),_0x1354f6;}for(const _0x577a60 of _0xec0a4){const _0x17f280=lodash[_0x4262c3(0xdd)](_0x577a60)?((_0x7c786c=_0xc2bb17[_0x4262c3(0xf8)])===null||_0x7c786c===void 0x0?void 0x0:_0x7c786c[_0x577a60])||undefined:_0xc2bb17[_0x4262c3(0xf1)](_0x577a60);if(_0x17f280){var _0x304031=0x1;const _0x44abe7=_0x17f280[_0x4262c3(0x114)](0x1),_0x2f852a=await new Promise(_0x349750=>{const _0x1328a8=_0x4262c3,_0x53aa94={};_0x44abe7[_0x1328a8(0x102)]((_0x27314f,_0x13f299)=>{const _0x1dae50=_0x1328a8;for(const _0x89525f of _0x6e1c72){if(_0x27314f[_0x1dae50(0x123)]==_0x89525f[_0x1dae50(0x10c)])_0x304031=0x2,_0x53aa94[_0x89525f[_0x1dae50(0x106)]]={'header':_0x27314f['col'],'handler':_0x89525f[_0x1dae50(0xeb)]};else{if(!_0x53aa94[_0x89525f[_0x1dae50(0x106)]])try{const _0x39e47a=_0x44abe7&&_0x44abe7['getCell'](_0x89525f['header']);_0x39e47a&&(_0x53aa94[_0x89525f['key']]={'header':_0x39e47a['col'],'handler':_0x89525f['handler']});}catch{}}}_0x44abe7[_0x1dae50(0x103)]==_0x13f299&&_0x349750(_0x53aa94);});});for(const _0x1b02dd of _0x17f280[_0x4262c3(0xfc)](_0x304031,_0x17f280[_0x4262c3(0xdc)])){const _0x2b3846={};for(const _0x472d15 in _0x2f852a){if(_0x2f852a[_0x472d15][_0x4262c3(0x10c)]){const _0x58fe40=_0x1b02dd&&_0x1b02dd[_0x4262c3(0x111)](_0x2f852a[_0x472d15][_0x4262c3(0x10c)]);try{_0x58fe40[_0x4262c3(0x11d)]();}catch(_0xdcec70){_0x58fe40[_0x4262c3(0x11d)]=()=>{const _0x5946c0=_0x4262c3;var _0x3e3813;return''+(((_0x3e3813=_0x58fe40===null||_0x58fe40===void 0x0?void 0x0:_0x58fe40['model'])===null||_0x3e3813===void 0x0?void 0x0:_0x3e3813[_0x5946c0(0x123)])||'');};}typeof((_0x50606c=_0x2f852a[_0x472d15])===null||_0x50606c===void 0x0?void 0x0:_0x50606c[_0x4262c3(0xeb)])=='function'?_0x2b3846[_0x472d15]=await _0x2f852a[_0x472d15][_0x4262c3(0xeb)](lodash['set']({},_0x472d15,(_0x58fe40===null||_0x58fe40===void 0x0?void 0x0:_0x58fe40[_0x4262c3(0x11d)]())||''),_0x58fe40[_0x4262c3(0xff)]):_0x2b3846[_0x472d15]=(_0x58fe40===null||_0x58fe40===void 0x0?void 0x0:_0x58fe40[_0x4262c3(0x11d)]())||'';}}Object[_0x4262c3(0xe1)](_0x2b3846)[_0x4262c3(0x110)]>0x0&&Object[_0x4262c3(0x121)](_0x2b3846)[_0x4262c3(0x11f)](_0x12469f=>_0x12469f!=='')[_0x4262c3(0x110)]>0x0&&_0x1354f6['push'](_0x2b3846);}}}return _0x1354f6;}async[a13_0x9b6700(0xe9)](_0x287005,_0x5d16a6,_0x352802,_0x99b554){const _0x599f7d=a13_0x9b6700;var _0x5dc0e5,_0x3dab10;const _0x4f5181=new exceljs[(_0x599f7d(0xf0))](),_0x3301bc={},_0x5d6a72=[],_0xad85f9=_0x4f5181[_0x599f7d(0x113)](_0x599f7d(0xf4),{'views':[{'state':_0x599f7d(0xf3),'xSplit':0x1}]});for(const _0x54926b in _0x5d16a6){_0x3301bc[_0x5d16a6[_0x54926b]['key']]=_0x5d16a6[_0x54926b][_0x599f7d(0x10c)],_0x5d6a72[_0x599f7d(0xe0)]({'header':_0x5d16a6[_0x54926b]['header'],'key':(_0x5dc0e5=_0x5d16a6[_0x54926b])===null||_0x5dc0e5===void 0x0?void 0x0:_0x5dc0e5[_0x599f7d(0x106)]['replace'](/\./g,'_')});}_0xad85f9[_0x599f7d(0xea)]=_0x5d6a72;for(const _0x4677dd of _0x352802){const _0x53c191={};for(const _0xf760b7 in _0x5d16a6){typeof((_0x3dab10=_0x5d16a6[_0xf760b7])===null||_0x3dab10===void 0x0?void 0x0:_0x3dab10[_0x599f7d(0xeb)])==_0x599f7d(0x116)?_0x53c191[_0x5d16a6[_0xf760b7]['key'][_0x599f7d(0xf9)](/\./g,'_')]=await _0x5d16a6[_0xf760b7][_0x599f7d(0xeb)](_0x4677dd):_0x53c191[_0x5d16a6[_0xf760b7][_0x599f7d(0x106)][_0x599f7d(0xf9)](/\./g,'_')]=lodash['get'](_0x4677dd,_0x5d16a6[_0xf760b7][_0x599f7d(0x106)],'');}_0xad85f9[_0x599f7d(0x119)](_0x53c191);}let _0x4dd3d5='';const _0x41167f=_0x287005+'-'+lodash[_0x599f7d(0x10f)](0x186a0,0xf423f)+_0x599f7d(0x10a);if(_0x99b554&&_0x99b554[_0x599f7d(0x118)]('/'))_0x4dd3d5=''+_0x99b554;else _0x99b554&&!_0x99b554['startsWith']('/')&&!_0x99b554['startsWith']('\x5c')?_0x4dd3d5=this[_0x599f7d(0x11c)]['getAppDir']()+'/'+_0x99b554:_0x4dd3d5=this[_0x599f7d(0x11c)][_0x599f7d(0xde)]()+_0x599f7d(0x101)+dayjs()[_0x599f7d(0xfb)]('YYYY/MM/DD');return(_0x4dd3d5[_0x599f7d(0x107)]('/')||_0x4dd3d5['endsWith']('\x5c'))&&(_0x4dd3d5=_0x4dd3d5[_0x599f7d(0x11a)](0x0,_0x4dd3d5[_0x599f7d(0x110)]-0x1)),_0x4dd3d5=_0x4dd3d5[_0x599f7d(0xf9)](/(\\|\/)/g,'/')[_0x599f7d(0xf9)](/\/{2,}/g,'/'),!fs['existsSync'](_0x4dd3d5)&&fs['mkdirSync'](_0x4dd3d5,{'recursive':!![]}),await _0x4f5181[_0x599f7d(0xf6)][_0x599f7d(0xf5)]((_0x4dd3d5+'/'+_0x41167f)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x41167f,'filepath':(_0x4dd3d5[_0x599f7d(0x11a)]((''+this['app'][_0x599f7d(0xde)]())['length'])+'/'+_0x41167f)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')};}async[a13_0x9b6700(0xe8)](_0xe07417,_0x4a8a74){return await koasend(_0xe07417,''+_0x4a8a74);}};function a13_0x3ae7(_0x53fdf1,_0x5f04f8){const _0x5d3bd0=a13_0x425e();return a13_0x3ae7=function(_0x10716c,_0x2964c0){_0x10716c=_0x10716c-0xdb;let _0x425e1c=_0x5d3bd0[_0x10716c];return _0x425e1c;},a13_0x3ae7(_0x53fdf1,_0x5f04f8);}__decorate([(0x0,core_1[a13_0x9b6700(0xdb)])(),__metadata(a13_0x9b6700(0x109),Object)],ExcelService['prototype'],a13_0x9b6700(0x11c),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a13_0x9b6700(0x104)][a13_0x9b6700(0x115)])],ExcelService),exports['ExcelService']=ExcelService;function a13_0x425e(){const _0x419e58=['30383GlUYKy','key','endsWith','apply','design:type','.xlsx','getOwnPropertyDescriptor','header','parse','__esModule','random','length','getCell','2315QesViU','addWorksheet','getRow','Singleton','function','exceljs','startsWith','addRow','substring','constructor','app','toString','(((.+)+)+)+$','filter','search','values','825576zleCoa','value','App','rowCount','isNumber','getAppDir','1511153otHSJt','push','keys','4196KSEceQ','156610xFkaYQ','decorate','ExcelService','63qhnaHo','473zZEYrT','download','export','columns','handler','\x20is\x20read\x20fail','__decorate','6kflKaY','@midwayjs/core','Workbook','getWorksheet','metadata','frozen','Sheet\x201','writeFile','xlsx','1649139rfDjTw','worksheets','replace','readFile','format','findRows','__metadata','1603694pQbktv','model','defineProperty','/public/xlsx/','eachCell','cellCount','ScopeEnum'];a13_0x425e=function(){return _0x419e58;};return a13_0x425e();}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x2bb145=a14_0x2551;(function(_0x19a440,_0x2624a8){var _0x1ce06f=a14_0x2551,_0x3f3e34=_0x19a440();while(!![]){try{var _0xa2a04=-parseInt(_0x1ce06f(0xd0))/0x1*(parseInt(_0x1ce06f(0xdc))/0x2)+-parseInt(_0x1ce06f(0xd4))/0x3+parseInt(_0x1ce06f(0xd7))/0x4+-parseInt(_0x1ce06f(0xd9))/0x5+-parseInt(_0x1ce06f(0xcd))/0x6+parseInt(_0x1ce06f(0xdd))/0x7*(-parseInt(_0x1ce06f(0xd2))/0x8)+parseInt(_0x1ce06f(0xd6))/0x9;if(_0xa2a04===_0x2624a8)break;else _0x3f3e34['push'](_0x3f3e34['shift']());}catch(_0x18037c){_0x3f3e34['push'](_0x3f3e34['shift']());}}}(a14_0x5908,0x63bd4));var a14_0x1583ef=(function(){var _0x4790d2=!![];return function(_0xb64cda,_0x526f9f){var _0x3ae01b=_0x4790d2?function(){var _0x585fc3=a14_0x2551;if(_0x526f9f){var _0x3c8c6b=_0x526f9f[_0x585fc3(0xd3)](_0xb64cda,arguments);return _0x526f9f=null,_0x3c8c6b;}}:function(){};return _0x4790d2=![],_0x3ae01b;};}()),a14_0x110338=a14_0x1583ef(this,function(){var _0x4abbbb=a14_0x2551;return a14_0x110338[_0x4abbbb(0xcc)]()[_0x4abbbb(0xca)]('(((.+)+)+)+$')[_0x4abbbb(0xcc)]()['constructor'](a14_0x110338)['search'](_0x4abbbb(0xd8));});a14_0x110338();function a14_0x2551(_0x4487ed,_0x38cc50){var _0x51dd1c=a14_0x5908();return a14_0x2551=function(_0x110338,_0x1583ef){_0x110338=_0x110338-0xca;var _0x5908c2=_0x51dd1c[_0x110338];return _0x5908c2;},a14_0x2551(_0x4487ed,_0x38cc50);}'use strict';Object[a14_0x2bb145(0xce)](exports,a14_0x2bb145(0xd1),{'value':!![]}),exports[a14_0x2bb145(0xda)]=exports[a14_0x2bb145(0xdb)]=exports[a14_0x2bb145(0xcf)]=exports[a14_0x2bb145(0xd5)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a14_0x2bb145(0xcf)]='anncic-api:action:route',exports[a14_0x2bb145(0xdb)]=a14_0x2bb145(0xcb);function a14_0x5908(){var _0x4ddad7=['apply','1479981fKGZvp','ACTION_KEY','20274327mTnofM','2260648ZzSUJd','(((.+)+)+)+$','3128550THNeHN','AppsConfigTmp','APPSCONFIG_KEY','214198GYrunZ','1858654HHHAMA','search','anncic-api:apps:config','toString','3578268NPSHEH','defineProperty','ACTION_ROUTE_KEY','4UXAlhk','__esModule','8lKVwPa'];a14_0x5908=function(){return _0x4ddad7;};return a14_0x5908();}class AppsConfigTmp{}exports[a14_0x2bb145(0xda)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x57fc13=a15_0x4b52;(function(_0x34ba78,_0x419813){var _0x231784=a15_0x4b52,_0x2f2e76=_0x34ba78();while(!![]){try{var _0x4bcf40=parseInt(_0x231784(0x148))/0x1+parseInt(_0x231784(0x165))/0x2*(parseInt(_0x231784(0x13e))/0x3)+-parseInt(_0x231784(0x155))/0x4*(parseInt(_0x231784(0x13f))/0x5)+parseInt(_0x231784(0x147))/0x6*(parseInt(_0x231784(0x151))/0x7)+-parseInt(_0x231784(0x150))/0x8*(parseInt(_0x231784(0x157))/0x9)+parseInt(_0x231784(0x160))/0xa*(-parseInt(_0x231784(0x141))/0xb)+parseInt(_0x231784(0x142))/0xc;if(_0x4bcf40===_0x419813)break;else _0x2f2e76['push'](_0x2f2e76['shift']());}catch(_0x541b88){_0x2f2e76['push'](_0x2f2e76['shift']());}}}(a15_0x2a14,0x4592b));var a15_0x4a16d4=(function(){var _0x439432=!![];return function(_0x739c82,_0x1329ab){var _0x3e3c56=_0x439432?function(){var _0x8ee1e7=a15_0x4b52;if(_0x1329ab){var _0x562e92=_0x1329ab[_0x8ee1e7(0x149)](_0x739c82,arguments);return _0x1329ab=null,_0x562e92;}}:function(){};return _0x439432=![],_0x3e3c56;};}()),a15_0x54bc19=a15_0x4a16d4(this,function(){var _0x4f65f0=a15_0x4b52;return a15_0x54bc19[_0x4f65f0(0x156)]()[_0x4f65f0(0x159)]('(((.+)+)+)+$')[_0x4f65f0(0x156)]()[_0x4f65f0(0x158)](a15_0x54bc19)[_0x4f65f0(0x159)](_0x4f65f0(0x162));});a15_0x54bc19();'use strict';var __decorate=this&&this['__decorate']||function(_0x13bedd,_0x59941f,_0xdf4cd9,_0x1629b5){var _0x3dafd4=a15_0x4b52,_0x5f4477=arguments[_0x3dafd4(0x15e)],_0x26544e=_0x5f4477<0x3?_0x59941f:_0x1629b5===null?_0x1629b5=Object[_0x3dafd4(0x14f)](_0x59941f,_0xdf4cd9):_0x1629b5,_0x55e257;if(typeof Reflect===_0x3dafd4(0x15a)&&typeof Reflect[_0x3dafd4(0x14c)]==='function')_0x26544e=Reflect[_0x3dafd4(0x14c)](_0x13bedd,_0x59941f,_0xdf4cd9,_0x1629b5);else{for(var _0x522f77=_0x13bedd[_0x3dafd4(0x15e)]-0x1;_0x522f77>=0x0;_0x522f77--)if(_0x55e257=_0x13bedd[_0x522f77])_0x26544e=(_0x5f4477<0x3?_0x55e257(_0x26544e):_0x5f4477>0x3?_0x55e257(_0x59941f,_0xdf4cd9,_0x26544e):_0x55e257(_0x59941f,_0xdf4cd9))||_0x26544e;}return _0x5f4477>0x3&&_0x26544e&&Object[_0x3dafd4(0x153)](_0x59941f,_0xdf4cd9,_0x26544e),_0x26544e;},__metadata=this&&this[a15_0x57fc13(0x14d)]||function(_0x219be0,_0x37b4cf){var _0x24d038=a15_0x57fc13;if(typeof Reflect==='object'&&typeof Reflect[_0x24d038(0x154)]==='function')return Reflect['metadata'](_0x219be0,_0x37b4cf);};Object[a15_0x57fc13(0x153)](exports,'__esModule',{'value':!![]}),exports[a15_0x57fc13(0x161)]=void 0x0;const validator_1=require(a15_0x57fc13(0x163));function a15_0x4b52(_0x1f7bc7,_0x3e6175){var _0x283297=a15_0x2a14();return a15_0x4b52=function(_0x54bc19,_0x4a16d4){_0x54bc19=_0x54bc19-0x13d;var _0x2a144d=_0x283297[_0x54bc19];return _0x2a144d;},a15_0x4b52(_0x1f7bc7,_0x3e6175);}class PageDTO{}function a15_0x2a14(){var _0x35790a=['排序方式','getOwnPropertyDescriptor','258528ZIlCPB','7RFoPAm','Rule','defineProperty','metadata','911044PacCnO','toString','45oczwcZ','constructor','search','object','_page','design:type','valid','length','number','310EqmHKc','PageDTO','(((.+)+)+)+$','@anncic-api/validator','_isreverse','2LRmfwW','RuleType','1:是;0:否','798969ZGSQkS','5pKHqTl','分页数量','180741IBXBts','7248144VGbCcj','min','_size','_order','trim','464598gUPAHP','235905fIWImI','apply','prototype','integer','decorate','__metadata'];a15_0x2a14=function(){return _0x35790a;};return a15_0x2a14();}__decorate([(0x0,validator_1[a15_0x57fc13(0x152)])('分页',validator_1[a15_0x57fc13(0x166)]['number']()[a15_0x57fc13(0x14b)]()[a15_0x57fc13(0x143)](0x1),'第一页为1,第二页为2'),__metadata(a15_0x57fc13(0x15c),Number)],PageDTO[a15_0x57fc13(0x14a)],a15_0x57fc13(0x15b),void 0x0),__decorate([(0x0,validator_1[a15_0x57fc13(0x152)])(a15_0x57fc13(0x140),validator_1[a15_0x57fc13(0x166)]['number']()['integer']()[a15_0x57fc13(0x143)](0x1)),__metadata(a15_0x57fc13(0x15c),Number)],PageDTO[a15_0x57fc13(0x14a)],a15_0x57fc13(0x144),void 0x0),__decorate([(0x0,validator_1[a15_0x57fc13(0x152)])(a15_0x57fc13(0x14e),validator_1[a15_0x57fc13(0x166)]['string']()[a15_0x57fc13(0x146)]()),__metadata('design:type',String)],PageDTO[a15_0x57fc13(0x14a)],a15_0x57fc13(0x145),void 0x0),__decorate([(0x0,validator_1[a15_0x57fc13(0x152)])('是否倒序',validator_1[a15_0x57fc13(0x166)][a15_0x57fc13(0x15f)]()['integer']()[a15_0x57fc13(0x15d)](0x0,0x1),a15_0x57fc13(0x13d)),__metadata(a15_0x57fc13(0x15c),Number)],PageDTO['prototype'],a15_0x57fc13(0x164),void 0x0),exports['PageDTO']=PageDTO;
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a16_0x545cc6=a16_0x2849;function a16_0x2849(_0x5b1122,_0x2d28fb){var _0x161f15=a16_0xcf45();return a16_0x2849=function(_0x41bd39,_0x3fc15a){_0x41bd39=_0x41bd39-0x1a2;var _0xcf4520=_0x161f15[_0x41bd39];return _0xcf4520;},a16_0x2849(_0x5b1122,_0x2d28fb);}(function(_0x2e7c44,_0x7bb980){var _0x662c4c=a16_0x2849,_0x448cee=_0x2e7c44();while(!![]){try{var _0x558c70=-parseInt(_0x662c4c(0x1a8))/0x1*(parseInt(_0x662c4c(0x1a5))/0x2)+parseInt(_0x662c4c(0x1b4))/0x3*(parseInt(_0x662c4c(0x1a2))/0x4)+parseInt(_0x662c4c(0x1ae))/0x5*(-parseInt(_0x662c4c(0x1af))/0x6)+parseInt(_0x662c4c(0x1b5))/0x7*(-parseInt(_0x662c4c(0x1b1))/0x8)+parseInt(_0x662c4c(0x1a6))/0x9+-parseInt(_0x662c4c(0x1b6))/0xa+parseInt(_0x662c4c(0x1b2))/0xb;if(_0x558c70===_0x7bb980)break;else _0x448cee['push'](_0x448cee['shift']());}catch(_0xf6129f){_0x448cee['push'](_0x448cee['shift']());}}}(a16_0xcf45,0x38068));function a16_0xcf45(){var _0x1cb613=['defineProperty','5KPpViD','941514mGZiJe','toString','8aSQKkD','5615511YMuesa','anncic-api:intercept','81ScgcHc','2042558RRFWgk','855520qVVrJc','38208FZWejC','InterceptTargetTmp','__esModule','54724KXRcON','2666898KGZLdJ','(((.+)+)+)+$','11QzTAiS','INTERCEPT_KEY','search','apply','constructor'];a16_0xcf45=function(){return _0x1cb613;};return a16_0xcf45();}var a16_0x3fc15a=(function(){var _0x3e9883=!![];return function(_0x19db6b,_0x4120e0){var _0x43cc6b=_0x3e9883?function(){var _0x3fda3c=a16_0x2849;if(_0x4120e0){var _0xa89288=_0x4120e0[_0x3fda3c(0x1ab)](_0x19db6b,arguments);return _0x4120e0=null,_0xa89288;}}:function(){};return _0x3e9883=![],_0x43cc6b;};}()),a16_0x41bd39=a16_0x3fc15a(this,function(){var _0x62387e=a16_0x2849;return a16_0x41bd39[_0x62387e(0x1b0)]()[_0x62387e(0x1aa)](_0x62387e(0x1a7))['toString']()[_0x62387e(0x1ac)](a16_0x41bd39)[_0x62387e(0x1aa)](_0x62387e(0x1a7));});a16_0x41bd39();'use strict';Object[a16_0x545cc6(0x1ad)](exports,a16_0x545cc6(0x1a4),{'value':!![]}),exports[a16_0x545cc6(0x1a3)]=exports[a16_0x545cc6(0x1a9)]=void 0x0,exports[a16_0x545cc6(0x1a9)]=a16_0x545cc6(0x1b3);class InterceptTargetTmp{}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^2.1.
|
|
21
|
-
"@anncic-api/core": "^2.1.
|
|
22
|
-
"@anncic-api/event": "^2.1.
|
|
23
|
-
"@anncic-api/typeorm": "^2.1.
|
|
24
|
-
"@anncic-api/validator": "^2.1.
|
|
20
|
+
"@anncic-api/cache": "^2.1.9",
|
|
21
|
+
"@anncic-api/core": "^2.1.9",
|
|
22
|
+
"@anncic-api/event": "^2.1.9",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.9",
|
|
24
|
+
"@anncic-api/validator": "^2.1.9",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.1.
|
|
30
|
+
"anncic-apihelper": "^2.1.9",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "26eb385e3ffb314b16ee11acd4254df4150c4f2c"
|
|
41
41
|
}
|