anncic-api 3.2.15 → 3.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x5ee2e0=a0_0x46b1;function a0_0x2b6d(){var _0x1bf135=['940725Hrhcun','(((.+)+)+)+$','1784vZqiwo','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','5442440jrIuSK','name','48XDymlK','4367881FiXszD','693528LDDNFq','37160GFDVLv','appDir','toString','1230KtzBTO','form','json','80fxEfYA','xml','text','apply','2148588nSjeDs','346JKXcjo','default','search','__esModule','20mb','_token'];a0_0x2b6d=function(){return _0x1bf135;};return a0_0x2b6d();}(function(_0x317d2e,_0x35af80){var _0x3f2f17=a0_0x46b1,_0x14f2ed=_0x317d2e();while(!![]){try{var _0x21c42f=parseInt(_0x3f2f17(0x1e6))/0x1*(-parseInt(_0x3f2f17(0x1d3))/0x2)+-parseInt(_0x3f2f17(0x1d1))/0x3+-parseInt(_0x3f2f17(0x1d6))/0x4+-parseInt(_0x3f2f17(0x1db))/0x5*(-parseInt(_0x3f2f17(0x1de))/0x6)+-parseInt(_0x3f2f17(0x1d9))/0x7+-parseInt(_0x3f2f17(0x1d8))/0x8*(-parseInt(_0x3f2f17(0x1e5))/0x9)+parseInt(_0x3f2f17(0x1e1))/0xa*(parseInt(_0x3f2f17(0x1da))/0xb);if(_0x21c42f===_0x35af80)break;else _0x14f2ed['push'](_0x14f2ed['shift']());}catch(_0x43c39a){_0x14f2ed['push'](_0x14f2ed['shift']());}}}(a0_0x2b6d,0xd0620));var a0_0x270e58=(function(){var _0x5abe1b=!![];return function(_0x2bfac3,_0x48bd23){var _0x5db523=_0x5abe1b?function(){var _0x219659=a0_0x46b1;if(_0x48bd23){var _0x34f747=_0x48bd23[_0x219659(0x1e4)](_0x2bfac3,arguments);return _0x48bd23=null,_0x34f747;}}:function(){};return _0x5abe1b=![],_0x5db523;};}()),a0_0x3584a4=a0_0x270e58(this,function(){var _0x1cac82=a0_0x46b1;return a0_0x3584a4[_0x1cac82(0x1dd)]()[_0x1cac82(0x1cd)](_0x1cac82(0x1d2))['toString']()['constructor'](a0_0x3584a4)[_0x1cac82(0x1cd)](_0x1cac82(0x1d2));});function a0_0x46b1(_0x43e2e1,_0x4238bc){var _0x86f8bb=a0_0x2b6d();return a0_0x46b1=function(_0x3584a4,_0x270e58){_0x3584a4=_0x3584a4-0x1cc;var _0x2b6d2c=_0x86f8bb[_0x3584a4];return _0x2b6d2c;},a0_0x46b1(_0x43e2e1,_0x4238bc);}a0_0x3584a4();'use strict';Object['defineProperty'](exports,a0_0x5ee2e0(0x1ce),{'value':!![]}),exports[a0_0x5ee2e0(0x1cc)]=_0x26fad5=>{var _0x3c484b=a0_0x5ee2e0;return{'apitest':!![],'keys':_0x26fad5[_0x3c484b(0x1d7)],'anncicapi':{'requestKey':_0x3c484b(0x1d0),'password':_0x3c484b(0x1d4),'devices':{'DEFAULT':{'secret':_0x3c484b(0x1d5),'checkcode':_0x3c484b(0x1d5)}}},'bodyParser':{'enableTypes':[_0x3c484b(0x1e0),_0x3c484b(0x1df),_0x3c484b(0x1e3),_0x3c484b(0x1e2)],'formLimit':_0x3c484b(0x1cf),'jsonLimit':'20mb','textLimit':_0x3c484b(0x1cf),'xmlLimit':_0x3c484b(0x1cf),'enable':!![]},'upload':{'tmpdir':_0x26fad5[_0x3c484b(0x1dc)]+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0xb4c15=a1_0x1784;(function(_0x396452,_0x14f7a2){var _0x1b7441=a1_0x1784,_0x40474e=_0x396452();while(!![]){try{var _0x5f5aaa=-parseInt(_0x1b7441(0x191))/0x1+parseInt(_0x1b7441(0x18d))/0x2*(parseInt(_0x1b7441(0x18b))/0x3)+parseInt(_0x1b7441(0x193))/0x4*(-parseInt(_0x1b7441(0x18e))/0x5)+-parseInt(_0x1b7441(0x190))/0x6+-parseInt(_0x1b7441(0x187))/0x7+parseInt(_0x1b7441(0x194))/0x8*(parseInt(_0x1b7441(0x189))/0x9)+parseInt(_0x1b7441(0x195))/0xa*(parseInt(_0x1b7441(0x186))/0xb);if(_0x5f5aaa===_0x14f7a2)break;else _0x40474e['push'](_0x40474e['shift']());}catch(_0x511e4b){_0x40474e['push'](_0x40474e['shift']());}}}(a1_0x24c6,0xe89c5));var a1_0x114f2e=(function(){var _0x552b8b=!![];return function(_0x1a6741,_0x504a30){var _0x2a1897=_0x552b8b?function(){var _0x3b322c=a1_0x1784;if(_0x504a30){var _0x2ab5a0=_0x504a30[_0x3b322c(0x188)](_0x1a6741,arguments);return _0x504a30=null,_0x2ab5a0;}}:function(){};return _0x552b8b=![],_0x2a1897;};}()),a1_0x6a9dc4=a1_0x114f2e(this,function(){var _0xe1cb7a=a1_0x1784;return a1_0x6a9dc4['toString']()['search']('(((.+)+)+)+$')[_0xe1cb7a(0x18c)]()[_0xe1cb7a(0x196)](a1_0x6a9dc4)[_0xe1cb7a(0x18a)](_0xe1cb7a(0x192));});a1_0x6a9dc4();function a1_0x24c6(){var _0x90b803=['130750PfOBGA','5VlLklL','default','3034176XiIcwx','1155965QCaxFY','(((.+)+)+)+$','3582956VloPTe','152aMcIOp','11782090XkVuWv','constructor','22wvEuFW','5480104JHAQYS','apply','143172ECSQkv','search','75QVGvAB','toString'];a1_0x24c6=function(){return _0x90b803;};return a1_0x24c6();}function a1_0x1784(_0x46c529,_0x352b92){var _0x3fcc2d=a1_0x24c6();return a1_0x1784=function(_0x6a9dc4,_0x114f2e){_0x6a9dc4=_0x6a9dc4-0x186;var _0x24c613=_0x3fcc2d[_0x6a9dc4];return _0x24c613;},a1_0x1784(_0x46c529,_0x352b92);}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a1_0xb4c15(0x18f)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x29712f=a2_0xf4ab;(function(_0x5d43cc,_0x3751d8){const _0x2fc152=a2_0xf4ab,_0x4f6685=_0x5d43cc();while(!![]){try{const _0x17c685=parseInt(_0x2fc152(0x202))/0x1+parseInt(_0x2fc152(0x20f))/0x2+parseInt(_0x2fc152(0x22a))/0x3+parseInt(_0x2fc152(0x1bd))/0x4+-parseInt(_0x2fc152(0x235))/0x5*(parseInt(_0x2fc152(0x21e))/0x6)+parseInt(_0x2fc152(0x222))/0x7+-parseInt(_0x2fc152(0x21d))/0x8*(parseInt(_0x2fc152(0x1d2))/0x9);if(_0x17c685===_0x3751d8)break;else _0x4f6685['push'](_0x4f6685['shift']());}catch(_0x456bc2){_0x4f6685['push'](_0x4f6685['shift']());}}}(a2_0x21db,0xe4d5f));const a2_0x4606bd=(function(){let _0x58f4c1=!![];return function(_0x54a255,_0x328b75){const _0x4e2190=_0x58f4c1?function(){const _0x157e12=a2_0xf4ab;if(_0x328b75){const _0x21a1fe=_0x328b75[_0x157e12(0x22c)](_0x54a255,arguments);return _0x328b75=null,_0x21a1fe;}}:function(){};return _0x58f4c1=![],_0x4e2190;};}()),a2_0x40009d=a2_0x4606bd(this,function(){const _0x17ea82=a2_0xf4ab;return a2_0x40009d['toString']()[_0x17ea82(0x21a)](_0x17ea82(0x236))['toString']()[_0x17ea82(0x1bc)](a2_0x40009d)[_0x17ea82(0x21a)](_0x17ea82(0x236));});a2_0x40009d();function a2_0xf4ab(_0x58089d,_0xa80b3d){const _0x1e516f=a2_0x21db();return a2_0xf4ab=function(_0x40009d,_0x4606bd){_0x40009d=_0x40009d-0x1b1;let _0x21db25=_0x1e516f[_0x40009d];return _0x21db25;},a2_0xf4ab(_0x58089d,_0xa80b3d);}'use strict';var __decorate=this&&this[a2_0x29712f(0x1cd)]||function(_0xe92209,_0x57af6e,_0x24a2dc,_0x1285c3){const _0x3505a1=a2_0x29712f;var _0x322dc2=arguments['length'],_0x3d8144=_0x322dc2<0x3?_0x57af6e:_0x1285c3===null?_0x1285c3=Object[_0x3505a1(0x1e0)](_0x57af6e,_0x24a2dc):_0x1285c3,_0x49449f;if(typeof Reflect===_0x3505a1(0x1e1)&&typeof Reflect[_0x3505a1(0x1f4)]==='function')_0x3d8144=Reflect[_0x3505a1(0x1f4)](_0xe92209,_0x57af6e,_0x24a2dc,_0x1285c3);else{for(var _0x3aca5f=_0xe92209[_0x3505a1(0x211)]-0x1;_0x3aca5f>=0x0;_0x3aca5f--)if(_0x49449f=_0xe92209[_0x3aca5f])_0x3d8144=(_0x322dc2<0x3?_0x49449f(_0x3d8144):_0x322dc2>0x3?_0x49449f(_0x57af6e,_0x24a2dc,_0x3d8144):_0x49449f(_0x57af6e,_0x24a2dc))||_0x3d8144;}return _0x322dc2>0x3&&_0x3d8144&&Object[_0x3505a1(0x1fb)](_0x57af6e,_0x24a2dc,_0x3d8144),_0x3d8144;},__metadata=this&&this[a2_0x29712f(0x20a)]||function(_0x5e0340,_0x3e7d64){const _0x1a3e98=a2_0x29712f;if(typeof Reflect===_0x1a3e98(0x1e1)&&typeof Reflect['metadata']===_0x1a3e98(0x1e6))return Reflect[_0x1a3e98(0x1dc)](_0x5e0340,_0x3e7d64);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x29712f(0x20e)]=void 0x0;const core_1=require(a2_0x29712f(0x1b7)),core_2=require(a2_0x29712f(0x1b7)),ApiError_1=require('./exception/ApiError'),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x29712f(0x21b)),intercept_1=require(a2_0x29712f(0x1d5)),fs=require('fs'),koasend=require('koa-send'),koa=require('@midwayjs/koa'),upload=require('@midwayjs/upload'),staticFile=require(a2_0x29712f(0x1e7)),crossDomain=require(a2_0x29712f(0x204)),ConfigDefault=require(a2_0x29712f(0x218)),ConfigProduction=require(a2_0x29712f(0x217)),anncic=require(a2_0x29712f(0x227)),anncicCache=require(a2_0x29712f(0x1c0)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x29712f(0x1b4)),anncicValidator=require(a2_0x29712f(0x207)),anncicHelper=require('anncic-apihelper');function a2_0x21db(){const _0x25cb87=['getConfiguration','app','decorate','-log','dirs','_matchedRoute','request','/runtime','method','defineProperty','/apps/','hanlderApplications','target','prototype','onReady','upload','596603uLLXjG','config','@midwayjs/cross-domain','hosturl','getBaseDir','@anncic-api/validator','clients','mkdirSync','__metadata','get','INTERCEPT_KEY','parse','CustomConfiguration','1732196SSXgIX','MidwayEnvironmentService','length','isString','useMiddleware','getAppDir','connection','req','./config/config.production','./config/config.default','proceed','search','./types/action','MidwayApplicationManager','152qhjmGj','244758LQTMIK','anncicapi','Configuration','includes','175042LilHMl','existsSync','getApplications','dir','defineProperties','@anncic-api/core','statSync','readdirSync','4690227lbycCL','attachment','apply','requestContext','handlerActionRoute','App','isClass','/apps','isDevelopmentEnvironment','REQUEST_OBJ_CTX_KEY','isArray','5lUTUal','(((.+)+)+)+$','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','headers','koa','midwayLogger','@anncic-api/typeorm','http://','forEach','@midwayjs/core','/runtime/apps-','requestKey','_UNKNOW_','ApiError','constructor','3448204kQwmSi','intercept','environment','@anncic-api/cache','toLowerCase','query','isNull','tmpdir','context','decorator','apimit','Types','encrypted','isDirectory','default','args','__decorate','keys','addObject','HEADERS_SIGNATURE','Inject','1390293kCxgup','.log','application','./types/intercept','bodyXml','input','文件不存在','staticFile','loggerConfig','devices','metadata','host','MidwayDecoratorService','InterceptTargetTmp','getOwnPropertyDescriptor','object','body','ApiService','filterConfig','handler','function','@midwayjs/static-file','string','design:type','split','startsWith','DEFAULT','assign','device','checksign','443','defaultsDeep'];a2_0x21db=function(){return _0x25cb87;};return a2_0x21db();}let CustomConfiguration=exports[a2_0x29712f(0x20e)]=class CustomConfiguration{async[a2_0x29712f(0x200)](){const _0x1437a0=a2_0x29712f;await this[_0x1437a0(0x1e4)](),await this[_0x1437a0(0x1da)](),await this[_0x1437a0(0x22e)](),await this[_0x1437a0(0x1fd)]();}async[a2_0x29712f(0x22e)](){const _0x32bbc0=a2_0x29712f,_0x16dff5=this['config']['getConfiguration'](),_0x3e40a8=(0x0,core_1['getClassMetadata'])(intercept_1[_0x32bbc0(0x20c)],intercept_1[_0x32bbc0(0x1df)])||{};this[_0x32bbc0(0x1c6)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x71785c=>{const _0x2b11e8=_0x32bbc0,_0x33beca=_0x71785c[_0x2b11e8(0x1dc)];return{'before':async _0x56aa08=>{const _0x450e88=_0x2b11e8;var _0x22ef87,_0x374ad5,_0x4df73c,_0x4e4976;const _0x1da5c6=(_0x22ef87=_0x56aa08===null||_0x56aa08===void 0x0?void 0x0:_0x56aa08[_0x450e88(0x1fe)])===null||_0x22ef87===void 0x0?void 0x0:_0x22ef87[core_2[_0x450e88(0x233)]],_0x199274=lodash['defaultsDeep']({},_0x1da5c6['request'][_0x450e88(0x1e2)]||_0x1da5c6[_0x450e88(0x1f8)][((_0x374ad5=_0x16dff5===null||_0x16dff5===void 0x0?void 0x0:_0x16dff5[_0x450e88(0x1d6)])===null||_0x374ad5===void 0x0?void 0x0:_0x374ad5['key'])||_0x450e88(0x1e2)]||{},_0x1da5c6[_0x450e88(0x1f8)][_0x450e88(0x1c2)]||{});if(_0x1da5c6&&(_0x33beca===null||_0x33beca===void 0x0?void 0x0:_0x33beca[_0x450e88(0x1c7)]))try{const _0xa89668=((_0x4df73c=_0x16dff5===null||_0x16dff5===void 0x0?void 0x0:_0x16dff5[_0x450e88(0x21f)])===null||_0x4df73c===void 0x0?void 0x0:_0x4df73c[_0x450e88(0x1b9)])&&typeof(_0x199274===null||_0x199274===void 0x0?void 0x0:_0x199274[_0x16dff5[_0x450e88(0x21f)][_0x450e88(0x1b9)]])==_0x450e88(0x1e8)?JSON[_0x450e88(0x20d)](base64_decode(_0x199274[_0x16dff5[_0x450e88(0x21f)][_0x450e88(0x1b9)]])||'{}')||{}:((_0x4e4976=_0x1da5c6===null||_0x1da5c6===void 0x0?void 0x0:_0x1da5c6[_0x450e88(0x1f8)])===null||_0x4e4976===void 0x0?void 0x0:_0x4e4976[_0x450e88(0x1b1)])||{};if(!this[_0x450e88(0x1e3)][_0x450e88(0x1ef)](_0xa89668))throw new AnnError(ApiError_1['ApiError'][_0x450e88(0x1d0)]);}catch(_0x48c408){if(_0x48c408 instanceof AnnError)throw _0x48c408;else throw new AnnError(ApiError_1[_0x450e88(0x1bb)][_0x450e88(0x1ba)]);}},'around':async _0x5d3fa5=>{const _0xe38503=_0x2b11e8;var _0x243197,_0x5619fe,_0x40b189;const _0x4601e9=(_0x243197=_0x5d3fa5===null||_0x5d3fa5===void 0x0?void 0x0:_0x5d3fa5[_0xe38503(0x1fe)])===null||_0x243197===void 0x0?void 0x0:_0x243197[core_2[_0xe38503(0x233)]];if(_0x4601e9&&(_0x33beca===null||_0x33beca===void 0x0?void 0x0:_0x33beca[_0xe38503(0x1c7)])&&((_0x33beca===null||_0x33beca===void 0x0?void 0x0:_0x33beca[_0xe38503(0x1be)])||typeof(_0x33beca===null||_0x33beca===void 0x0?void 0x0:_0x33beca['intercept'])=='undefined')){if(((_0x5619fe=_0x4601e9[_0xe38503(0x1b1)])===null||_0x5619fe===void 0x0?void 0x0:_0x5619fe[_0xe38503(0x1ee)])&&((_0x40b189=_0x3e40a8===null||_0x3e40a8===void 0x0?void 0x0:_0x3e40a8[_0x4601e9[_0xe38503(0x1b1)]['device']])===null||_0x40b189===void 0x0?void 0x0:_0x40b189[_0xe38503(0x211)])>0x0)for(const _0x231558 of _0x3e40a8[_0x4601e9[_0xe38503(0x1b1)][_0xe38503(0x1ee)]]||[]){if(core_1[_0xe38503(0x1c8)][_0xe38503(0x230)](_0x231558)){const _0x37b88a=await _0x4601e9[_0xe38503(0x22d)]['getAsync'](_0x231558);typeof(_0x37b88a===null||_0x37b88a===void 0x0?void 0x0:_0x37b88a['match'])==_0xe38503(0x1e6)?await _0x37b88a['match'](_0x4601e9,typeof(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1fa)])==_0xe38503(0x1e8)&&(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)])?_0x4601e9[_0xe38503(0x1fa)][_0xe38503(0x1c1)]()+'@'+(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)]):undefined,_0x33beca)&&await _0x37b88a[_0xe38503(0x1e5)](_0x4601e9,typeof(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1fa)])=='string'&&(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)])?_0x4601e9[_0xe38503(0x1fa)][_0xe38503(0x1c1)]()+'@'+(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)]):undefined,_0x33beca):await _0x37b88a['handler'](_0x4601e9,typeof(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1fa)])==_0xe38503(0x1e8)&&(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)])?_0x4601e9[_0xe38503(0x1fa)][_0xe38503(0x1c1)]()+'@'+(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1f7)]):undefined,_0x33beca);}else core_1[_0xe38503(0x1c8)]['isFunction'](_0x231558)&&await _0x231558(_0x4601e9,typeof(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9[_0xe38503(0x1fa)])==_0xe38503(0x1e8)&&(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9['_matchedRoute'])?_0x4601e9[_0xe38503(0x1fa)]['toLowerCase']()+'@'+(_0x4601e9===null||_0x4601e9===void 0x0?void 0x0:_0x4601e9['_matchedRoute']):undefined,_0x33beca);}}return await _0x5d3fa5[_0xe38503(0x219)](..._0x5d3fa5[_0xe38503(0x1cc)]);},'afterThrow':(_0x59c6b5,_0x23bb83)=>{throw _0x23bb83;}};});}async[a2_0x29712f(0x1fd)](){const _0x448d84=a2_0x29712f,_0x12ace2=this[_0x448d84(0x203)][_0x448d84(0x1f2)]();this['application'][_0x448d84(0x224)]([_0x448d84(0x1b2)])[_0x448d84(0x1b6)](_0x1385dc=>{const _0x2ea456=_0x448d84;typeof _0x1385dc[_0x2ea456(0x213)]==_0x2ea456(0x1e6)&&_0x1385dc[_0x2ea456(0x213)](async(_0x95302,_0x344ab0)=>{const _0x22a108=_0x2ea456;var _0x1def99,_0x465d5f,_0x47de18,_0x39660e;if((_0x95302===null||_0x95302===void 0x0?void 0x0:_0x95302[_0x22a108(0x1dd)])&&!_0x95302[_0x22a108(0x1dd)][_0x22a108(0x1eb)]('http')){let _0x35b150=_0x95302[_0x22a108(0x1dd)][_0x22a108(0x1ea)](':');['80',_0x22a108(0x1f0)][_0x22a108(0x221)](_0x35b150===null||_0x35b150===void 0x0?void 0x0:_0x35b150[0x1])?_0x95302[_0x22a108(0x205)]=''+(!!((_0x465d5f=(_0x1def99=_0x95302===null||_0x95302===void 0x0?void 0x0:_0x95302[_0x22a108(0x216)])===null||_0x1def99===void 0x0?void 0x0:_0x1def99[_0x22a108(0x215)])===null||_0x465d5f===void 0x0?void 0x0:_0x465d5f[_0x22a108(0x1c9)])||(_0x35b150===null||_0x35b150===void 0x0?void 0x0:_0x35b150[0x1])=='443'?'https://':_0x22a108(0x1b5))+_0x35b150[0x0]:_0x95302[_0x22a108(0x205)]=''+(!!((_0x39660e=(_0x47de18=_0x95302===null||_0x95302===void 0x0?void 0x0:_0x95302[_0x22a108(0x216)])===null||_0x47de18===void 0x0?void 0x0:_0x47de18[_0x22a108(0x215)])===null||_0x39660e===void 0x0?void 0x0:_0x39660e[_0x22a108(0x1c9)])?'https://':_0x22a108(0x1b5))+_0x95302[_0x22a108(0x1dd)];}await _0x344ab0();}),(_0x1385dc===null||_0x1385dc===void 0x0?void 0x0:_0x1385dc['context'])&&Object[_0x2ea456(0x226)](_0x1385dc[_0x2ea456(0x1c5)],{'ok':{'value':function(_0x5cd3e4,_0xc1f4d4,_0xc4908a=0x0){return{'code':_0xc4908a,'data':_0x5cd3e4,'extra':_0xc1f4d4};}},'input':{'value':function(_0x126f02,_0x3c9114){const _0x18f142=_0x2ea456;var _0x166fa1;const _0x7624ed=lodash[_0x18f142(0x1f1)]({},this['request'][_0x18f142(0x1e2)]||this[_0x18f142(0x1f8)][((_0x166fa1=_0x12ace2===null||_0x12ace2===void 0x0?void 0x0:_0x12ace2[_0x18f142(0x1d6)])===null||_0x166fa1===void 0x0?void 0x0:_0x166fa1['key'])||_0x18f142(0x1e2)]||{},this['request']['query']||{});return _0x126f02?lodash[_0x18f142(0x20b)](_0x7624ed,_0x126f02,_0x3c9114):_0x7624ed;}},'when':{'value':async function(_0x2c1d2d,_0x1544c5){const _0x21c39d=_0x2ea456,_0x438ef3=this[_0x21c39d(0x1d7)](_0x2c1d2d,null);if(!lodash[_0x21c39d(0x1c3)](_0x438ef3))return await _0x1544c5(_0x438ef3);}},'only':{'value':function(_0x4dec21){const _0x3a6e6d=_0x2ea456,_0x1e9e88={};for(let _0x28ae32=0x0;_0x28ae32<_0x4dec21[_0x3a6e6d(0x211)];_0x28ae32++){lodash[_0x3a6e6d(0x234)](_0x4dec21[_0x28ae32])&&_0x4dec21[_0x28ae32][_0x3a6e6d(0x211)]>0x0&&lodash[_0x3a6e6d(0x212)](_0x4dec21[_0x28ae32][0x0])&&(_0x1e9e88[_0x4dec21[_0x28ae32][0x0]]=this[_0x3a6e6d(0x1d7)](_0x4dec21[_0x28ae32][0x0],_0x4dec21[_0x28ae32][_0x3a6e6d(0x211)]>0x1?_0x4dec21[_0x28ae32][0x1]:null));}return _0x1e9e88;}},'koasend':{'value':function(_0x20f413,_0x52c34a){const _0x2f194f=_0x2ea456;if(_0x20f413&&!fs[_0x2f194f(0x223)](_0x20f413)&&!fs[_0x2f194f(0x223)](this[_0x2f194f(0x1f3)][_0x2f194f(0x214)]()+'/'+_0x20f413))return _0x2f194f(0x1d8);return _0x20f413=fs[_0x2f194f(0x223)](_0x20f413)?_0x20f413:this[_0x2f194f(0x1f3)][_0x2f194f(0x214)]()+'/'+_0x20f413,this[_0x2f194f(0x22b)](_0x52c34a||_0x20f413),koasend(this,_0x20f413);}}});});}async[a2_0x29712f(0x1da)](){const _0x5a1713=a2_0x29712f;var _0x25cd0c,_0xf3be44;if(fs['existsSync'](this[_0x5a1713(0x1f3)][_0x5a1713(0x206)]()+_0x5a1713(0x231))&&fs[_0x5a1713(0x228)](this['app'][_0x5a1713(0x206)]()+_0x5a1713(0x231))[_0x5a1713(0x1ca)]()){const _0x32ad6d=this[_0x5a1713(0x203)][_0x5a1713(0x1f2)](),_0x318d61=((_0x25cd0c=_0x32ad6d===null||_0x32ad6d===void 0x0?void 0x0:_0x32ad6d['midwayLogger'])===null||_0x25cd0c===void 0x0?void 0x0:_0x25cd0c[_0x5a1713(0x208)])||{};for(const _0x46d472 of fs[_0x5a1713(0x229)](this[_0x5a1713(0x1f3)]['getBaseDir']()+'/apps')){if(!fs['statSync'](this['app'][_0x5a1713(0x206)]()+_0x5a1713(0x1fc)+_0x46d472)['isDirectory']())continue;if(_0x318d61===null||_0x318d61===void 0x0?void 0x0:_0x318d61[_0x46d472])continue;_0x318d61[_0x46d472]=Object[_0x5a1713(0x1ed)]({},((_0xf3be44=_0x32ad6d===null||_0x32ad6d===void 0x0?void 0x0:_0x32ad6d[_0x5a1713(0x1b3)])===null||_0xf3be44===void 0x0?void 0x0:_0xf3be44[_0x5a1713(0x1cb)])||{'maxSize':'1m','dir':this['app'][_0x5a1713(0x214)]()+_0x5a1713(0x1f9)},{'enableJSON':!![],'enableConsole':this[_0x5a1713(0x1bf)][_0x5a1713(0x232)](),'fileLogName':_0x46d472+_0x5a1713(0x1d3),'dir':this['app'][_0x5a1713(0x214)]()+_0x5a1713(0x1b8)+_0x46d472+_0x5a1713(0x1f5)});}Object['keys'](_0x318d61)[_0x5a1713(0x211)]>0x0&&(!_0x32ad6d[_0x5a1713(0x1b3)]&&(_0x32ad6d[_0x5a1713(0x1b3)]={'default':{'maxSize':'1m','dir':this['app'][_0x5a1713(0x214)]()+'/runtime'}}),_0x32ad6d[_0x5a1713(0x1b3)][_0x5a1713(0x208)]=_0x318d61),this['config'][_0x5a1713(0x1cf)](_0x32ad6d);}}async[a2_0x29712f(0x1e4)](){const _0x3b1569=a2_0x29712f;var _0x4a6286,_0xebbeba,_0xa1d3f0,_0x200d20,_0x31a353,_0x1b3b4b;const _0x44de51=this[_0x3b1569(0x203)][_0x3b1569(0x1f2)]();((_0xebbeba=(_0x4a6286=_0x44de51===null||_0x44de51===void 0x0?void 0x0:_0x44de51[_0x3b1569(0x21f)])===null||_0x4a6286===void 0x0?void 0x0:_0x4a6286[_0x3b1569(0x1db)])===null||_0xebbeba===void 0x0?void 0x0:_0xebbeba[_0x3b1569(0x1ec)])&&Object[_0x3b1569(0x1ce)](_0x44de51['anncicapi']['devices'])[_0x3b1569(0x211)]>0x1&&delete _0x44de51[_0x3b1569(0x21f)][_0x3b1569(0x1db)][_0x3b1569(0x1ec)];if((_0xa1d3f0=_0x44de51===null||_0x44de51===void 0x0?void 0x0:_0x44de51[_0x3b1569(0x1d9)])===null||_0xa1d3f0===void 0x0?void 0x0:_0xa1d3f0[_0x3b1569(0x1f6)])for(const _0x5733b8 in _0x44de51['staticFile'][_0x3b1569(0x1f6)]){((_0x200d20=_0x44de51[_0x3b1569(0x1d9)][_0x3b1569(0x1f6)][_0x5733b8])===null||_0x200d20===void 0x0?void 0x0:_0x200d20[_0x3b1569(0x225)])&&typeof((_0x31a353=_0x44de51[_0x3b1569(0x1d9)]['dirs'][_0x5733b8])===null||_0x31a353===void 0x0?void 0x0:_0x31a353[_0x3b1569(0x225)])==_0x3b1569(0x1e8)&&!fs['existsSync'](_0x44de51['staticFile'][_0x3b1569(0x1f6)][_0x5733b8][_0x3b1569(0x225)])&&(fs[_0x3b1569(0x209)](_0x44de51[_0x3b1569(0x1d9)][_0x3b1569(0x1f6)][_0x5733b8][_0x3b1569(0x225)],{'recursive':!![]}),console['log']('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0x44de51[_0x3b1569(0x1d9)]['dirs'][_0x5733b8]['dir']));}((_0x1b3b4b=_0x44de51===null||_0x44de51===void 0x0?void 0x0:_0x44de51[_0x3b1569(0x201)])===null||_0x1b3b4b===void 0x0?void 0x0:_0x1b3b4b[_0x3b1569(0x1c4)])&&!fs[_0x3b1569(0x223)](_0x44de51[_0x3b1569(0x201)][_0x3b1569(0x1c4)])&&(fs['mkdirSync'](_0x44de51[_0x3b1569(0x201)][_0x3b1569(0x1c4)],{'recursive':!![]}),console['log'](_0x3b1569(0x237)+_0x44de51['upload'][_0x3b1569(0x1c4)])),this[_0x3b1569(0x203)][_0x3b1569(0x1cf)](_0x44de51);}};__decorate([(0x0,core_1[a2_0x29712f(0x22f)])(),__metadata(a2_0x29712f(0x1e9),Object)],CustomConfiguration[a2_0x29712f(0x1ff)],a2_0x29712f(0x1f3),void 0x0),__decorate([(0x0,core_1[a2_0x29712f(0x1d1)])(),__metadata(a2_0x29712f(0x1e9),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x29712f(0x1ff)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x29712f(0x1d1)])(),__metadata(a2_0x29712f(0x1e9),core_2[a2_0x29712f(0x1de)])],CustomConfiguration[a2_0x29712f(0x1ff)],'decorator',void 0x0),__decorate([(0x0,core_1[a2_0x29712f(0x1d1)])(),__metadata(a2_0x29712f(0x1e9),core_2[a2_0x29712f(0x21c)])],CustomConfiguration[a2_0x29712f(0x1ff)],a2_0x29712f(0x1d4),void 0x0),__decorate([(0x0,core_1[a2_0x29712f(0x1d1)])(),__metadata('design:type',core_2[a2_0x29712f(0x210)])],CustomConfiguration['prototype'],a2_0x29712f(0x1bf),void 0x0),__decorate([(0x0,core_1[a2_0x29712f(0x1d1)])(),__metadata(a2_0x29712f(0x1e9),ApiService_1[a2_0x29712f(0x1e3)])],CustomConfiguration[a2_0x29712f(0x1ff)],a2_0x29712f(0x1e3),void 0x0),exports[a2_0x29712f(0x20e)]=CustomConfiguration=__decorate([(0x0,core_1[a2_0x29712f(0x220)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
|
1
|
+
const a2_0x121075=a2_0x1446;(function(_0x42671c,_0x44ace3){const _0x3d3dbf=a2_0x1446,_0x2d4b7c=_0x42671c();while(!![]){try{const _0x20971b=-parseInt(_0x3d3dbf(0x1c1))/0x1+parseInt(_0x3d3dbf(0x1b0))/0x2*(-parseInt(_0x3d3dbf(0x1f7))/0x3)+parseInt(_0x3d3dbf(0x203))/0x4*(parseInt(_0x3d3dbf(0x200))/0x5)+parseInt(_0x3d3dbf(0x191))/0x6+-parseInt(_0x3d3dbf(0x1cc))/0x7*(-parseInt(_0x3d3dbf(0x17e))/0x8)+parseInt(_0x3d3dbf(0x1e5))/0x9*(parseInt(_0x3d3dbf(0x1c6))/0xa)+-parseInt(_0x3d3dbf(0x202))/0xb*(parseInt(_0x3d3dbf(0x17d))/0xc);if(_0x20971b===_0x44ace3)break;else _0x2d4b7c['push'](_0x2d4b7c['shift']());}catch(_0x591f50){_0x2d4b7c['push'](_0x2d4b7c['shift']());}}}(a2_0x973e,0x1a879));const a2_0x11cd2f=(function(){let _0x21f1d5=!![];return function(_0x458ce6,_0xdb506f){const _0x5cfe86=_0x21f1d5?function(){const _0x39e4e8=a2_0x1446;if(_0xdb506f){const _0x1e5ea8=_0xdb506f[_0x39e4e8(0x1b3)](_0x458ce6,arguments);return _0xdb506f=null,_0x1e5ea8;}}:function(){};return _0x21f1d5=![],_0x5cfe86;};}()),a2_0x212b88=a2_0x11cd2f(this,function(){const _0x9f6247=a2_0x1446;return a2_0x212b88[_0x9f6247(0x1ea)]()['search'](_0x9f6247(0x197))[_0x9f6247(0x1ea)]()[_0x9f6247(0x1ad)](a2_0x212b88)[_0x9f6247(0x1e7)](_0x9f6247(0x197));});function a2_0x973e(){const _0x136a0a=['constructor','staticFile','prototype','241622RujOjM','defineProperty','design:type','apply','headers','anncicapi','devices','metadata','body','@anncic-api/typeorm','loggerConfig','ApiError','./types/intercept','handlerActionRoute','MidwayEnvironmentService','MidwayApplicationManager','proceed','34235etcsJu','length','Inject','./types/action','connection','334090vwLTsG','./exception/ApiError','match','onReady','encrypted','getAppDir','14119ukoXVT','Configuration','isClass','startsWith','./config/config.production','apimit','mkdirSync','handler','./config/config.default','__decorate','isFunction','@midwayjs/koa','context','split','InterceptTargetTmp','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','isDevelopmentEnvironment','clients','default','REQUEST_OBJ_CTX_KEY','@anncic-api/core','文件不存在','/runtime','anncic-api','DEFAULT','18lTFbUy','/runtime/apps-','search','http','hanlderApplications','toString','host','dirs','getApplications','config','dir','decorator','_matchedRoute','key','/apps','args','INTERCEPT_KEY','getConfiguration','3jxoTBO','parse','log','@midwayjs/static-file','@midwayjs/core','registerMethodHandler','defaultsDeep','request','device','5StApod','decorate','341ybTJBM','474856efLuSO','hosturl','ApiService','-log','defineProperties','isString','tmpdir','getAsync','@anncic-api/cache','_UNKNOW_','attachment','statSync','65292LJeiMY','568lYjcAC','Types','@midwayjs/cross-domain','__metadata','keys','getClassMetadata','@midwayjs/upload','ACTION_ROUTE_KEY','http://','object','HEADERS_SIGNATURE','CustomConfiguration','target','isNull','intercept','https://','App','requestContext','environment','621858JhCPpN','existsSync','req','useMiddleware','method','app','(((.+)+)+)+$','undefined','isArray','upload','koa','filterConfig','getBaseDir','@anncic-api/validator','443','string','function','toLowerCase','/apps/','addObject','midwayLogger','Anncic-api\x20static-file\x20:\x20mkdir\x20','query','isDirectory','requestKey','input','forEach','__esModule'];a2_0x973e=function(){return _0x136a0a;};return a2_0x973e();}a2_0x212b88();function a2_0x1446(_0x34325d,_0x4d882e){const _0x285874=a2_0x973e();return a2_0x1446=function(_0x212b88,_0x11cd2f){_0x212b88=_0x212b88-0x17c;let _0x973ec2=_0x285874[_0x212b88];return _0x973ec2;},a2_0x1446(_0x34325d,_0x4d882e);}'use strict';var __decorate=this&&this[a2_0x121075(0x1d5)]||function(_0x5350fd,_0x1292e2,_0x146896,_0x5c7346){const _0x14d44a=a2_0x121075;var _0x4fa01f=arguments['length'],_0xf9bff=_0x4fa01f<0x3?_0x1292e2:_0x5c7346===null?_0x5c7346=Object['getOwnPropertyDescriptor'](_0x1292e2,_0x146896):_0x5c7346,_0x5e402f;if(typeof Reflect===_0x14d44a(0x187)&&typeof Reflect[_0x14d44a(0x201)]===_0x14d44a(0x1a1))_0xf9bff=Reflect[_0x14d44a(0x201)](_0x5350fd,_0x1292e2,_0x146896,_0x5c7346);else{for(var _0x19dfcb=_0x5350fd[_0x14d44a(0x1c2)]-0x1;_0x19dfcb>=0x0;_0x19dfcb--)if(_0x5e402f=_0x5350fd[_0x19dfcb])_0xf9bff=(_0x4fa01f<0x3?_0x5e402f(_0xf9bff):_0x4fa01f>0x3?_0x5e402f(_0x1292e2,_0x146896,_0xf9bff):_0x5e402f(_0x1292e2,_0x146896))||_0xf9bff;}return _0x4fa01f>0x3&&_0xf9bff&&Object[_0x14d44a(0x1b1)](_0x1292e2,_0x146896,_0xf9bff),_0xf9bff;},__metadata=this&&this[a2_0x121075(0x181)]||function(_0x571aa6,_0x42822b){const _0x50ddf2=a2_0x121075;if(typeof Reflect===_0x50ddf2(0x187)&&typeof Reflect[_0x50ddf2(0x1b7)]===_0x50ddf2(0x1a1))return Reflect[_0x50ddf2(0x1b7)](_0x571aa6,_0x42822b);};Object[a2_0x121075(0x1b1)](exports,a2_0x121075(0x1ac),{'value':!![]}),exports[a2_0x121075(0x189)]=void 0x0;const core_1=require(a2_0x121075(0x1fb)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x121075(0x1c7)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x121075(0x1c4)),intercept_1=require(a2_0x121075(0x1bc)),fs=require('fs'),koasend=require('koa-send'),koa=require(a2_0x121075(0x1d7)),upload=require(a2_0x121075(0x184)),staticFile=require(a2_0x121075(0x1fa)),crossDomain=require(a2_0x121075(0x180)),ConfigDefault=require(a2_0x121075(0x1d4)),ConfigProduction=require(a2_0x121075(0x1d0)),anncic=require(a2_0x121075(0x1e0)),anncicCache=require(a2_0x121075(0x20b)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x121075(0x1b9)),anncicValidator=require(a2_0x121075(0x19e)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=exports[a2_0x121075(0x189)]=class CustomConfiguration{async[a2_0x121075(0x1c9)](){const _0x51fdab=a2_0x121075;await this['filterConfig'](),await this[_0x51fdab(0x1ba)](),await this['handlerActionRoute'](),await this[_0x51fdab(0x1e9)]();}async[a2_0x121075(0x1bd)](){const _0x133b97=a2_0x121075,_0x2f2350=this[_0x133b97(0x1ee)][_0x133b97(0x1f6)](),_0xf73d4b=(0x0,core_1[_0x133b97(0x183)])(intercept_1[_0x133b97(0x1f5)],intercept_1[_0x133b97(0x1da)])||{};this[_0x133b97(0x1f0)][_0x133b97(0x1fc)](action_1[_0x133b97(0x185)],_0x517aa4=>{const _0x2a2bd7=_0x133b97,_0x43b641=_0x517aa4[_0x2a2bd7(0x1b7)];return{'before':async _0x4e20d3=>{const _0x1b56cc=_0x2a2bd7;var _0x463667,_0x1c612a,_0x192f08,_0x31e309;const _0x548f43=(_0x463667=_0x4e20d3===null||_0x4e20d3===void 0x0?void 0x0:_0x4e20d3[_0x1b56cc(0x18a)])===null||_0x463667===void 0x0?void 0x0:_0x463667[core_2[_0x1b56cc(0x1df)]],_0x10e783=lodash[_0x1b56cc(0x1fd)]({},_0x548f43[_0x1b56cc(0x1fe)][_0x1b56cc(0x1b8)]||_0x548f43[_0x1b56cc(0x1fe)][((_0x1c612a=_0x2f2350===null||_0x2f2350===void 0x0?void 0x0:_0x2f2350['bodyXml'])===null||_0x1c612a===void 0x0?void 0x0:_0x1c612a['key'])||'body']||{},_0x548f43[_0x1b56cc(0x1fe)][_0x1b56cc(0x1a7)]||{});if(_0x548f43&&(_0x43b641===null||_0x43b641===void 0x0?void 0x0:_0x43b641[_0x1b56cc(0x1d1)]))try{const _0x2529ed=((_0x192f08=_0x2f2350===null||_0x2f2350===void 0x0?void 0x0:_0x2f2350[_0x1b56cc(0x1b5)])===null||_0x192f08===void 0x0?void 0x0:_0x192f08[_0x1b56cc(0x1a9)])&&typeof(_0x10e783===null||_0x10e783===void 0x0?void 0x0:_0x10e783[_0x2f2350[_0x1b56cc(0x1b5)]['requestKey']])=='string'?JSON[_0x1b56cc(0x1f8)](base64_decode(_0x10e783[_0x2f2350[_0x1b56cc(0x1b5)][_0x1b56cc(0x1a9)]])||'{}')||{}:((_0x31e309=_0x548f43===null||_0x548f43===void 0x0?void 0x0:_0x548f43[_0x1b56cc(0x1fe)])===null||_0x31e309===void 0x0?void 0x0:_0x31e309[_0x1b56cc(0x1b4)])||{};if(!this['ApiService']['checksign'](_0x2529ed))throw new AnnError(ApiError_1[_0x1b56cc(0x1bb)][_0x1b56cc(0x188)]);}catch(_0x581105){if(_0x581105 instanceof AnnError)throw _0x581105;else throw new AnnError(ApiError_1[_0x1b56cc(0x1bb)][_0x1b56cc(0x20c)]);}},'around':async _0x2f8f46=>{const _0x5d7acd=_0x2a2bd7;var _0x36f5e5,_0x1c958c,_0x2c5b34;const _0x19765b=(_0x36f5e5=_0x2f8f46===null||_0x2f8f46===void 0x0?void 0x0:_0x2f8f46[_0x5d7acd(0x18a)])===null||_0x36f5e5===void 0x0?void 0x0:_0x36f5e5[core_2[_0x5d7acd(0x1df)]];if(_0x19765b&&(_0x43b641===null||_0x43b641===void 0x0?void 0x0:_0x43b641[_0x5d7acd(0x1d1)])&&((_0x43b641===null||_0x43b641===void 0x0?void 0x0:_0x43b641[_0x5d7acd(0x18c)])||typeof(_0x43b641===null||_0x43b641===void 0x0?void 0x0:_0x43b641[_0x5d7acd(0x18c)])==_0x5d7acd(0x198))){if(((_0x1c958c=_0x19765b['headers'])===null||_0x1c958c===void 0x0?void 0x0:_0x1c958c['device'])&&((_0x2c5b34=_0xf73d4b===null||_0xf73d4b===void 0x0?void 0x0:_0xf73d4b[_0x19765b[_0x5d7acd(0x1b4)]['device']])===null||_0x2c5b34===void 0x0?void 0x0:_0x2c5b34['length'])>0x0)for(const _0x1536d8 of _0xf73d4b[_0x19765b[_0x5d7acd(0x1b4)][_0x5d7acd(0x1ff)]]||[]){if(core_1['Types'][_0x5d7acd(0x1ce)](_0x1536d8)){const _0x3dcaa5=await _0x19765b[_0x5d7acd(0x18f)][_0x5d7acd(0x20a)](_0x1536d8);typeof(_0x3dcaa5===null||_0x3dcaa5===void 0x0?void 0x0:_0x3dcaa5[_0x5d7acd(0x1c8)])==_0x5d7acd(0x1a1)?await _0x3dcaa5['match'](_0x19765b,typeof(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x195)])==_0x5d7acd(0x1a0)&&(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)])?_0x19765b[_0x5d7acd(0x195)][_0x5d7acd(0x1a2)]()+'@'+(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)]):undefined,_0x43b641)&&await _0x3dcaa5[_0x5d7acd(0x1d3)](_0x19765b,typeof(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x195)])==_0x5d7acd(0x1a0)&&(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b['_matchedRoute'])?_0x19765b[_0x5d7acd(0x195)][_0x5d7acd(0x1a2)]()+'@'+(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)]):undefined,_0x43b641):await _0x3dcaa5['handler'](_0x19765b,typeof(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x195)])=='string'&&(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)])?_0x19765b[_0x5d7acd(0x195)][_0x5d7acd(0x1a2)]()+'@'+(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)]):undefined,_0x43b641);}else core_1[_0x5d7acd(0x17f)][_0x5d7acd(0x1d6)](_0x1536d8)&&await _0x1536d8(_0x19765b,typeof(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x195)])=='string'&&(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b[_0x5d7acd(0x1f1)])?_0x19765b[_0x5d7acd(0x195)]['toLowerCase']()+'@'+(_0x19765b===null||_0x19765b===void 0x0?void 0x0:_0x19765b['_matchedRoute']):undefined,_0x43b641);}}return await _0x2f8f46[_0x5d7acd(0x1c0)](..._0x2f8f46[_0x5d7acd(0x1f4)]);},'afterThrow':(_0x57a6d5,_0x4c6784)=>{throw _0x4c6784;}};});}async[a2_0x121075(0x1e9)](){const _0x1362e9=a2_0x121075,_0x22b5a6=this[_0x1362e9(0x1ee)][_0x1362e9(0x1f6)]();this['application'][_0x1362e9(0x1ed)]([_0x1362e9(0x19b)])[_0x1362e9(0x1ab)](_0x15b15a=>{const _0x199f8c=_0x1362e9;typeof _0x15b15a[_0x199f8c(0x194)]==_0x199f8c(0x1a1)&&_0x15b15a['useMiddleware'](async(_0x4f3ff3,_0x31b235)=>{const _0x1e5bf9=_0x199f8c;var _0x5e2095,_0x5f2bae,_0x4fb4da,_0x452481;if((_0x4f3ff3===null||_0x4f3ff3===void 0x0?void 0x0:_0x4f3ff3[_0x1e5bf9(0x1eb)])&&!_0x4f3ff3['host'][_0x1e5bf9(0x1cf)](_0x1e5bf9(0x1e8))){let _0xc03b56=_0x4f3ff3[_0x1e5bf9(0x1eb)][_0x1e5bf9(0x1d9)](':');['80','443']['includes'](_0xc03b56===null||_0xc03b56===void 0x0?void 0x0:_0xc03b56[0x1])?_0x4f3ff3[_0x1e5bf9(0x204)]=''+(!!((_0x5f2bae=(_0x5e2095=_0x4f3ff3===null||_0x4f3ff3===void 0x0?void 0x0:_0x4f3ff3['req'])===null||_0x5e2095===void 0x0?void 0x0:_0x5e2095[_0x1e5bf9(0x1c5)])===null||_0x5f2bae===void 0x0?void 0x0:_0x5f2bae[_0x1e5bf9(0x1ca)])||(_0xc03b56===null||_0xc03b56===void 0x0?void 0x0:_0xc03b56[0x1])==_0x1e5bf9(0x19f)?_0x1e5bf9(0x18d):_0x1e5bf9(0x186))+_0xc03b56[0x0]:_0x4f3ff3[_0x1e5bf9(0x204)]=''+(!!((_0x452481=(_0x4fb4da=_0x4f3ff3===null||_0x4f3ff3===void 0x0?void 0x0:_0x4f3ff3[_0x1e5bf9(0x193)])===null||_0x4fb4da===void 0x0?void 0x0:_0x4fb4da[_0x1e5bf9(0x1c5)])===null||_0x452481===void 0x0?void 0x0:_0x452481['encrypted'])?_0x1e5bf9(0x18d):_0x1e5bf9(0x186))+_0x4f3ff3[_0x1e5bf9(0x1eb)];}await _0x31b235();}),(_0x15b15a===null||_0x15b15a===void 0x0?void 0x0:_0x15b15a[_0x199f8c(0x1d8)])&&Object[_0x199f8c(0x207)](_0x15b15a[_0x199f8c(0x1d8)],{'ok':{'value':function(_0x1d60fa,_0x160e4f,_0x50ea15=0x0){return{'code':_0x50ea15,'data':_0x1d60fa,'extra':_0x160e4f};}},'input':{'value':function(_0x8be009,_0x5cbccf){const _0x42c0eb=_0x199f8c;var _0x25225d;const _0x2f767b=lodash[_0x42c0eb(0x1fd)]({},this['request']['body']||this[_0x42c0eb(0x1fe)][((_0x25225d=_0x22b5a6===null||_0x22b5a6===void 0x0?void 0x0:_0x22b5a6['bodyXml'])===null||_0x25225d===void 0x0?void 0x0:_0x25225d[_0x42c0eb(0x1f2)])||_0x42c0eb(0x1b8)]||{},this['request'][_0x42c0eb(0x1a7)]||{});return _0x8be009?lodash['get'](_0x2f767b,_0x8be009,_0x5cbccf):_0x2f767b;}},'when':{'value':async function(_0x53ef7c,_0x3cc35f){const _0x5d7e2c=_0x199f8c,_0x4dcb8a=this[_0x5d7e2c(0x1aa)](_0x53ef7c,null);if(!lodash[_0x5d7e2c(0x18b)](_0x4dcb8a))return await _0x3cc35f(_0x4dcb8a);}},'only':{'value':function(_0x478984){const _0x1004c7=_0x199f8c,_0x10e45a={};for(let _0x5af744=0x0;_0x5af744<_0x478984[_0x1004c7(0x1c2)];_0x5af744++){lodash[_0x1004c7(0x199)](_0x478984[_0x5af744])&&_0x478984[_0x5af744][_0x1004c7(0x1c2)]>0x0&&lodash[_0x1004c7(0x208)](_0x478984[_0x5af744][0x0])&&(_0x10e45a[_0x478984[_0x5af744][0x0]]=this['input'](_0x478984[_0x5af744][0x0],_0x478984[_0x5af744][_0x1004c7(0x1c2)]>0x1?_0x478984[_0x5af744][0x1]:null));}return _0x10e45a;}},'koasend':{'value':function(_0x20fd75,_0x3996c9){const _0x25f32a=_0x199f8c;if(_0x20fd75&&!fs[_0x25f32a(0x192)](_0x20fd75)&&!fs[_0x25f32a(0x192)](this[_0x25f32a(0x196)]['getAppDir']()+'/'+_0x20fd75))return _0x25f32a(0x1e1);return _0x20fd75=fs[_0x25f32a(0x192)](_0x20fd75)?_0x20fd75:this['app'][_0x25f32a(0x1cb)]()+'/'+_0x20fd75,this[_0x25f32a(0x20d)](_0x3996c9||_0x20fd75),koasend(this,_0x20fd75);}}});});}async[a2_0x121075(0x1ba)](){const _0x46a1d9=a2_0x121075;var _0x1f739d,_0x31b09f;if(fs[_0x46a1d9(0x192)](this[_0x46a1d9(0x196)][_0x46a1d9(0x19d)]()+_0x46a1d9(0x1f3))&&fs[_0x46a1d9(0x17c)](this[_0x46a1d9(0x196)]['getBaseDir']()+_0x46a1d9(0x1f3))['isDirectory']()){const _0x500f7f=this['config'][_0x46a1d9(0x1f6)](),_0x28eace=((_0x1f739d=_0x500f7f===null||_0x500f7f===void 0x0?void 0x0:_0x500f7f[_0x46a1d9(0x1a5)])===null||_0x1f739d===void 0x0?void 0x0:_0x1f739d['clients'])||{};for(const _0x9a3052 of fs['readdirSync'](this[_0x46a1d9(0x196)][_0x46a1d9(0x19d)]()+'/apps')){if(!fs[_0x46a1d9(0x17c)](this['app']['getBaseDir']()+_0x46a1d9(0x1a3)+_0x9a3052)[_0x46a1d9(0x1a8)]())continue;if(_0x28eace===null||_0x28eace===void 0x0?void 0x0:_0x28eace[_0x9a3052])continue;_0x28eace[_0x9a3052]=Object['assign']({},((_0x31b09f=_0x500f7f===null||_0x500f7f===void 0x0?void 0x0:_0x500f7f[_0x46a1d9(0x1a5)])===null||_0x31b09f===void 0x0?void 0x0:_0x31b09f[_0x46a1d9(0x1de)])||{'maxSize':'1m','dir':this[_0x46a1d9(0x196)][_0x46a1d9(0x1cb)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x46a1d9(0x190)][_0x46a1d9(0x1dc)](),'fileLogName':_0x9a3052+'.log','dir':this['app'][_0x46a1d9(0x1cb)]()+_0x46a1d9(0x1e6)+_0x9a3052+_0x46a1d9(0x206)});}Object[_0x46a1d9(0x182)](_0x28eace)[_0x46a1d9(0x1c2)]>0x0&&(!_0x500f7f[_0x46a1d9(0x1a5)]&&(_0x500f7f['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x46a1d9(0x196)][_0x46a1d9(0x1cb)]()+_0x46a1d9(0x1e2)}}),_0x500f7f['midwayLogger'][_0x46a1d9(0x1dd)]=_0x28eace),this[_0x46a1d9(0x1ee)][_0x46a1d9(0x1a4)](_0x500f7f);}}async[a2_0x121075(0x19c)](){const _0x45945a=a2_0x121075;var _0x2b3ab2,_0x389848,_0x170c07,_0x19085d,_0xb32b77,_0x556c47;const _0x532078=this['config'][_0x45945a(0x1f6)]();((_0x389848=(_0x2b3ab2=_0x532078===null||_0x532078===void 0x0?void 0x0:_0x532078[_0x45945a(0x1b5)])===null||_0x2b3ab2===void 0x0?void 0x0:_0x2b3ab2['devices'])===null||_0x389848===void 0x0?void 0x0:_0x389848[_0x45945a(0x1e4)])&&Object[_0x45945a(0x182)](_0x532078[_0x45945a(0x1b5)][_0x45945a(0x1b6)])[_0x45945a(0x1c2)]>0x1&&delete _0x532078['anncicapi'][_0x45945a(0x1b6)][_0x45945a(0x1e4)];if((_0x170c07=_0x532078===null||_0x532078===void 0x0?void 0x0:_0x532078['staticFile'])===null||_0x170c07===void 0x0?void 0x0:_0x170c07[_0x45945a(0x1ec)])for(const _0x7ebd6e in _0x532078[_0x45945a(0x1ae)]['dirs']){((_0x19085d=_0x532078[_0x45945a(0x1ae)]['dirs'][_0x7ebd6e])===null||_0x19085d===void 0x0?void 0x0:_0x19085d[_0x45945a(0x1ef)])&&typeof((_0xb32b77=_0x532078[_0x45945a(0x1ae)]['dirs'][_0x7ebd6e])===null||_0xb32b77===void 0x0?void 0x0:_0xb32b77['dir'])==_0x45945a(0x1a0)&&!fs[_0x45945a(0x192)](_0x532078[_0x45945a(0x1ae)]['dirs'][_0x7ebd6e][_0x45945a(0x1ef)])&&(fs[_0x45945a(0x1d2)](_0x532078[_0x45945a(0x1ae)][_0x45945a(0x1ec)][_0x7ebd6e][_0x45945a(0x1ef)],{'recursive':!![]}),console[_0x45945a(0x1f9)](_0x45945a(0x1a6)+_0x532078[_0x45945a(0x1ae)][_0x45945a(0x1ec)][_0x7ebd6e][_0x45945a(0x1ef)]));}((_0x556c47=_0x532078===null||_0x532078===void 0x0?void 0x0:_0x532078[_0x45945a(0x19a)])===null||_0x556c47===void 0x0?void 0x0:_0x556c47[_0x45945a(0x209)])&&!fs['existsSync'](_0x532078[_0x45945a(0x19a)][_0x45945a(0x209)])&&(fs[_0x45945a(0x1d2)](_0x532078[_0x45945a(0x19a)][_0x45945a(0x209)],{'recursive':!![]}),console[_0x45945a(0x1f9)](_0x45945a(0x1db)+_0x532078['upload'][_0x45945a(0x209)])),this[_0x45945a(0x1ee)][_0x45945a(0x1a4)](_0x532078);}};__decorate([(0x0,core_1[a2_0x121075(0x18e)])(),__metadata(a2_0x121075(0x1b2),Object)],CustomConfiguration[a2_0x121075(0x1af)],a2_0x121075(0x196),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2['MidwayConfigService'])],CustomConfiguration[a2_0x121075(0x1af)],a2_0x121075(0x1ee),void 0x0),__decorate([(0x0,core_1[a2_0x121075(0x1c3)])(),__metadata(a2_0x121075(0x1b2),core_2['MidwayDecoratorService'])],CustomConfiguration[a2_0x121075(0x1af)],a2_0x121075(0x1f0),void 0x0),__decorate([(0x0,core_1[a2_0x121075(0x1c3)])(),__metadata(a2_0x121075(0x1b2),core_2[a2_0x121075(0x1bf)])],CustomConfiguration[a2_0x121075(0x1af)],'application',void 0x0),__decorate([(0x0,core_1[a2_0x121075(0x1c3)])(),__metadata(a2_0x121075(0x1b2),core_2[a2_0x121075(0x1be)])],CustomConfiguration['prototype'],a2_0x121075(0x190),void 0x0),__decorate([(0x0,core_1[a2_0x121075(0x1c3)])(),__metadata(a2_0x121075(0x1b2),ApiService_1[a2_0x121075(0x205)])],CustomConfiguration[a2_0x121075(0x1af)],a2_0x121075(0x205),void 0x0),exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a2_0x121075(0x1cd)])({'imports':[koa,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x121075(0x1e3),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration);
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x4663(_0x19b4c8,_0x25d499){const _0x63bb22=a3_0x244e();return a3_0x4663=function(_0x55bcc0,_0xf9cc84){_0x55bcc0=_0x55bcc0-0x108;let _0x244eda=_0x63bb22[_0x55bcc0];return _0x244eda;},a3_0x4663(_0x19b4c8,_0x25d499);}const a3_0x1f15b3=a3_0x4663;(function(_0x21daaf,_0x120dac){const _0x360f7f=a3_0x4663,_0x6242ff=_0x21daaf();while(!![]){try{const _0x5e3bcb=-parseInt(_0x360f7f(0x13c))/0x1+-parseInt(_0x360f7f(0x11e))/0x2+parseInt(_0x360f7f(0x145))/0x3*(-parseInt(_0x360f7f(0x109))/0x4)+-parseInt(_0x360f7f(0x124))/0x5+-parseInt(_0x360f7f(0x11a))/0x6+parseInt(_0x360f7f(0x150))/0x7*(-parseInt(_0x360f7f(0x112))/0x8)+-parseInt(_0x360f7f(0x10d))/0x9*(-parseInt(_0x360f7f(0x126))/0xa);if(_0x5e3bcb===_0x120dac)break;else _0x6242ff['push'](_0x6242ff['shift']());}catch(_0x1598e0){_0x6242ff['push'](_0x6242ff['shift']());}}}(a3_0x244e,0xe51e5));const a3_0xf9cc84=(function(){let _0x577a00=!![];return function(_0x2cfeee,_0x47b63e){const _0x1eb4a2=_0x577a00?function(){if(_0x47b63e){const _0x363c7c=_0x47b63e['apply'](_0x2cfeee,arguments);return _0x47b63e=null,_0x363c7c;}}:function(){};return _0x577a00=![],_0x1eb4a2;};}()),a3_0x55bcc0=a3_0xf9cc84(this,function(){const _0x1d3d9e=a3_0x4663;return a3_0x55bcc0[_0x1d3d9e(0x116)]()['search'](_0x1d3d9e(0x12f))[_0x1d3d9e(0x116)]()[_0x1d3d9e(0x113)](a3_0x55bcc0)[_0x1d3d9e(0x134)](_0x1d3d9e(0x12f));});function a3_0x244e(){const _0x5ad2c8=['2392140ZADAvk','app/controller/','4929010HNLQUB','/config.','/controller/','length','join','indexOf','splice','rootpath','routerName','(((.+)+)+)+$','createCustomMethodDecorator','/controller/文件下','split','getClassMetadata','search','-controller','Controller','endsWith','apimit','toLowerCase','get','existsSync','9471svgQOB','saveClassMetadata','description','middlewareIgnore','saveModule','string','route','parseRoute','startsWith','3xarKQX','assign','undefined','filter','prefix','/apps/','AppsConfigTmp','defineProperty','substring','__esModule','\x20文件请放在app/controller/文件下','70iTJjhc','trim','1020152ksqNWA','Validator','isArray','module','63qUlgfJ','intercept','\x20文件请放在apps/','middleware','ACTION_ROUTE_KEY','111208CDwtry','constructor','validate','@anncic-api/validator','toString','ActionApi','@midwayjs/core','post','5370186pbKJuq','validationOptions','match','-action','1469720gGpNMJ','apps/','ACTION_KEY','filepath','replace','../types/action'];a3_0x244e=function(){return _0x5ad2c8;};return a3_0x244e();}a3_0x55bcc0();'use strict';Object[a3_0x1f15b3(0x14c)](exports,a3_0x1f15b3(0x14e),{'value':!![]}),exports[a3_0x1f15b3(0x143)]=exports[a3_0x1f15b3(0x117)]=exports['Action']=void 0x0;const fs=require('fs'),validator_1=require(a3_0x1f15b3(0x115)),core_1=require(a3_0x1f15b3(0x118)),core_2=require(a3_0x1f15b3(0x118)),action_1=require(a3_0x1f15b3(0x123));function Action(_0x460bf2,_0x4be7d1,_0x4b48b2={'middleware':[],'sensitive':!![]}){return _0x53d21b=>{const _0x9d8fe0=a3_0x4663;var _0x3e9f52;_0x4b48b2['tagName']=_0x4be7d1;const _0x185eae=parseRoute(_0x460bf2);if(_0x185eae[_0x9d8fe0(0x10c)]){_0x4b48b2['prefix']=_0x4b48b2[_0x9d8fe0(0x149)]?'/'+_0x185eae[_0x9d8fe0(0x10c)]+'/'+_0x4b48b2['prefix']:'/'+_0x185eae['route'];_0x185eae[_0x9d8fe0(0x149)]&&(_0x4b48b2[_0x9d8fe0(0x149)]='/'+_0x185eae[_0x9d8fe0(0x149)]+'/'+_0x4b48b2[_0x9d8fe0(0x149)]);if(fs[_0x9d8fe0(0x13b)](_0x185eae['rootpath']+_0x9d8fe0(0x14a)+_0x185eae[_0x9d8fe0(0x10c)]+_0x9d8fe0(0x127)+(lodash[_0x9d8fe0(0x137)](_0x185eae[_0x9d8fe0(0x121)],'ts')?'ts':'js'))){const _0x521d36=include(_0x185eae[_0x9d8fe0(0x12d)]+_0x9d8fe0(0x14a)+_0x185eae['module']+'/config.'+(lodash[_0x9d8fe0(0x137)](_0x185eae[_0x9d8fe0(0x121)],'ts')?'ts':'js'));if(_0x521d36[_0x9d8fe0(0x110)]&&lodash[_0x9d8fe0(0x10b)](_0x521d36[_0x9d8fe0(0x110)])&&_0x521d36[_0x9d8fe0(0x110)][_0x9d8fe0(0x129)]>0x0)for(let _0x51724f in _0x521d36[_0x9d8fe0(0x110)]){if(((_0x3e9f52=_0x521d36===null||_0x521d36===void 0x0?void 0x0:_0x521d36[_0x9d8fe0(0x13f)])===null||_0x3e9f52===void 0x0?void 0x0:_0x3e9f52[_0x9d8fe0(0x129)])>0x0&&_0x521d36[_0x9d8fe0(0x13f)][_0x9d8fe0(0x12b)](_0x521d36[_0x9d8fe0(0x110)][_0x51724f])!=-0x1)continue;_0x4b48b2['middleware']['push'](_0x521d36[_0x9d8fe0(0x110)][_0x51724f]);}const _0x5a5225=(0x0,core_1[_0x9d8fe0(0x133)])(action_1['APPSCONFIG_KEY'],action_1[_0x9d8fe0(0x14b)])||{};_0x5a5225[''+_0x185eae['module']]=_0x521d36,(0x0,core_1[_0x9d8fe0(0x13d)])(action_1['APPSCONFIG_KEY'],_0x5a5225,action_1[_0x9d8fe0(0x14b)]);}_0x4b48b2[_0x9d8fe0(0x149)]=_0x4b48b2[_0x9d8fe0(0x149)]['toLowerCase']()[_0x9d8fe0(0x122)](/\/{2,}/g,'/'),(0x0,core_1[_0x9d8fe0(0x140)])(action_1[_0x9d8fe0(0x120)],_0x53d21b),(0x0,core_1[_0x9d8fe0(0x136)])(_0x4b48b2[_0x9d8fe0(0x149)],_0x4b48b2)(_0x53d21b),(0x0,core_1[_0x9d8fe0(0x13d)])(action_1['ACTION_KEY'],{'prefix':_0x4b48b2[_0x9d8fe0(0x149)],'pprefix':_0x185eae[_0x9d8fe0(0x149)],'module':_0x185eae['module'],'filepath':_0x185eae[_0x9d8fe0(0x121)],'routerOptions':_0x4b48b2},_0x53d21b);}else _0x4b48b2[_0x9d8fe0(0x149)]=_0x4b48b2['prefix']?'/'+_0x4b48b2[_0x9d8fe0(0x149)]:'/'+_0x185eae['route'],_0x185eae['prefix']&&(_0x4b48b2[_0x9d8fe0(0x149)]='/'+_0x185eae[_0x9d8fe0(0x149)]+'/'+_0x4b48b2[_0x9d8fe0(0x149)]),_0x4b48b2[_0x9d8fe0(0x149)]=_0x4b48b2[_0x9d8fe0(0x149)][_0x9d8fe0(0x139)]()[_0x9d8fe0(0x122)](/\/{2,}/g,'/'),(0x0,core_1[_0x9d8fe0(0x140)])(action_1['ACTION_KEY'],_0x53d21b),(0x0,core_1[_0x9d8fe0(0x136)])(_0x4b48b2[_0x9d8fe0(0x149)],_0x4b48b2)(_0x53d21b),(0x0,core_1[_0x9d8fe0(0x13d)])(action_1[_0x9d8fe0(0x120)],{'prefix':_0x4b48b2['prefix'],'module':_0x185eae[_0x9d8fe0(0x10c)],'pprefix':_0x185eae[_0x9d8fe0(0x149)],'filepath':_0x185eae['filepath'],'routerOptions':_0x4b48b2},_0x53d21b);};}exports['Action']=Action,Action[a3_0x1f15b3(0x13a)]=function(_0x94bfa5,_0x22b66d='/',_0x5c253c={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x7dbc8b,_0x3ee7d3,_0x39f265)=>{const _0x28dfd0=a3_0x4663;ActionApi(_0x94bfa5,_0x28dfd0(0x13a),_0x22b66d,_0x5c253c)(_0x7dbc8b,_0x3ee7d3,_0x39f265);};},Action[a3_0x1f15b3(0x119)]=function(_0x1570ef,_0x2fe01='/',_0x3273f5={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x230ebc,_0x10faff,_0x1038c4)=>{const _0x47bb35=a3_0x4663;ActionApi(_0x1570ef,_0x47bb35(0x119),_0x2fe01,_0x3273f5)(_0x230ebc,_0x10faff,_0x1038c4);};};function ActionApi(_0x29ed31,_0x5856b2=a3_0x1f15b3(0x13a),_0x21f712='/',_0x1d2bc2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x551eba,_0x57c801,_0x4ac7f0)=>{const _0x3a091e=a3_0x4663;var _0x4b17c6,_0x5a1d30,_0x39c6e3;!_0x1d2bc2[_0x3a091e(0x110)]&&(_0x1d2bc2[_0x3a091e(0x110)]=[]);!((_0x4b17c6=_0x1d2bc2===null||_0x1d2bc2===void 0x0?void 0x0:_0x1d2bc2[_0x3a091e(0x114)])===null||_0x4b17c6===void 0x0?void 0x0:_0x4b17c6[_0x3a091e(0x11b)])&&(_0x1d2bc2['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x3a091e(0x141)}});if(!_0x21f712)_0x21f712='/';else typeof _0x21f712==_0x3a091e(0x141)&&(!_0x21f712[_0x3a091e(0x144)]('/')&&!_0x21f712[_0x3a091e(0x144)]('-')&&(_0x21f712='/'+_0x21f712));typeof _0x1d2bc2['apimit']==_0x3a091e(0x147)&&(_0x1d2bc2[_0x3a091e(0x138)]=!![]);if(((_0x5a1d30=_0x1d2bc2===null||_0x1d2bc2===void 0x0?void 0x0:_0x1d2bc2[_0x3a091e(0x110)])===null||_0x5a1d30===void 0x0?void 0x0:_0x5a1d30[_0x3a091e(0x129)])>0x0&&((_0x39c6e3=_0x1d2bc2===null||_0x1d2bc2===void 0x0?void 0x0:_0x1d2bc2[_0x3a091e(0x13f)])===null||_0x39c6e3===void 0x0?void 0x0:_0x39c6e3[_0x3a091e(0x129)])>0x0)for(let _0xc07ff in _0x1d2bc2[_0x3a091e(0x110)]){_0x1d2bc2[_0x3a091e(0x13f)][_0x3a091e(0x12b)](_0x1d2bc2[_0x3a091e(0x110)][_0xc07ff])!==-0x1&&(_0x1d2bc2[_0x3a091e(0x110)][_0xc07ff]=null);}_0x1d2bc2[_0x3a091e(0x12e)]=_0x29ed31,(0x0,validator_1[_0x3a091e(0x10a)])(_0x1d2bc2['validate'])(_0x551eba,_0x57c801,_0x4ac7f0),(0x0,core_2['RequestMapping'])(Object[_0x3a091e(0x146)](_0x1d2bc2,{'path':_0x21f712,'requestMethod':(_0x5856b2||_0x3a091e(0x13a))[_0x3a091e(0x139)]()}))(_0x551eba,_0x57c801,_0x4ac7f0),(0x0,core_2['attachClassMetadata'])(action_1[_0x3a091e(0x111)],{'path':_0x21f712,'method':_0x57c801,'apimit':_0x1d2bc2[_0x3a091e(0x138)],'intercept':_0x1d2bc2[_0x3a091e(0x10e)],'routerName':_0x1d2bc2[_0x3a091e(0x12e)],'description':_0x1d2bc2[_0x3a091e(0x13e)],'middleware':(_0x1d2bc2['middleware']||[])[_0x3a091e(0x148)](_0x105d1d=>!!_0x105d1d),'requestMethod':(_0x5856b2||_0x3a091e(0x13a))[_0x3a091e(0x139)]()},_0x551eba),(0x0,core_2[_0x3a091e(0x130)])(action_1[_0x3a091e(0x111)],{'path':_0x21f712,'method':_0x57c801,'apimit':_0x1d2bc2[_0x3a091e(0x138)],'intercept':_0x1d2bc2[_0x3a091e(0x10e)],'routerName':_0x1d2bc2[_0x3a091e(0x12e)],'description':_0x1d2bc2['description'],'middleware':(_0x1d2bc2[_0x3a091e(0x110)]||[])[_0x3a091e(0x148)](_0x47f2aa=>!!_0x47f2aa),'requestMethod':(_0x5856b2||'get')[_0x3a091e(0x139)]()})(_0x551eba,_0x57c801,_0x4ac7f0);};}exports['ActionApi']=ActionApi;function parseRoute(_0x4ce802){const _0x30f825=a3_0x1f15b3;_0x4ce802=_0x4ce802[_0x30f825(0x122)](/(\\|\/)/g,'/');const _0x3412e6=process['cwd']()[_0x30f825(0x122)](/(\\|\/)/g,'/'),_0x454b91=_0x4ce802[_0x30f825(0x14d)](0x0,_0x3412e6[_0x30f825(0x129)]+_0x4ce802[_0x30f825(0x14d)](_0x3412e6[_0x30f825(0x129)]+0x1)[_0x30f825(0x12b)]('/')+0x1),_0x430891=_0x4ce802[_0x30f825(0x14d)](_0x454b91[_0x30f825(0x129)]+0x1)['replace'](/(\\|\/)/g,'/'),_0xc911c2={'route':'','prefix':![],'module':![],'rootpath':_0x454b91,'filepath':_0x430891};if(_0x430891[_0x30f825(0x144)]('app/controller/')||_0x430891[_0x30f825(0x144)]('basic/controller/')){const _0x29b3d2=_0x430891['substring']((_0x430891['startsWith'](_0x30f825(0x125))?_0x30f825(0x125):'basic/controller/')[_0x30f825(0x129)])['split']('/')[_0x30f825(0x148)](_0x37631b=>_0x37631b&&_0x37631b[_0x30f825(0x108)]());return _0x29b3d2[_0x30f825(0x129)]>0x1&&(_0xc911c2['prefix']=_0x29b3d2[0x0][_0x30f825(0x139)](),_0x29b3d2['splice'](0x0,0x1)),_0xc911c2[_0x30f825(0x142)]=('/'+_0x29b3d2[_0x30f825(0x12a)]('/'))[_0x30f825(0x122)](/(\.ts|\.js)$/,'')[_0x30f825(0x122)](/\/{2,}/g,'/')[_0x30f825(0x11c)](/[\/|A-Z]*[^A-Z]+/g)[_0x30f825(0x12a)]('-')[_0x30f825(0x139)]()['replace'](/\/\-/g,'/'),_0xc911c2[_0x30f825(0x142)][_0x30f825(0x137)](_0x30f825(0x11d))&&(_0xc911c2[_0x30f825(0x142)]=_0xc911c2[_0x30f825(0x142)][_0x30f825(0x14d)](0x0,_0xc911c2[_0x30f825(0x142)]['length']-0x7)),_0xc911c2[_0x30f825(0x142)][_0x30f825(0x137)](_0x30f825(0x135))&&(_0xc911c2[_0x30f825(0x142)]=_0xc911c2[_0x30f825(0x142)][_0x30f825(0x14d)](0x0,_0xc911c2[_0x30f825(0x142)]['length']-0xb)),_0xc911c2;}else{if(_0x430891[_0x30f825(0x144)](_0x30f825(0x11f))){const _0x99b35b=_0x430891[_0x30f825(0x14d)](0x0,_0x430891['indexOf']('/apps/')+0x5),_0x4b1590=_0x430891['substring'](_0x99b35b[_0x30f825(0x129)]+0x1)[_0x30f825(0x122)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x430891[_0x30f825(0x144)](_0x30f825(0x11f)+_0x4b1590+_0x30f825(0x128))){const _0x3233fe=_0x430891[_0x30f825(0x14d)]((_0x99b35b+'/'+_0x4b1590+'/controller/')[_0x30f825(0x129)])[_0x30f825(0x132)]('/')[_0x30f825(0x148)](_0x14650d=>_0x14650d&&_0x14650d['trim']());return _0x3233fe[_0x30f825(0x129)]>0x1&&(_0xc911c2[_0x30f825(0x149)]=_0x3233fe[0x0]['toLowerCase'](),_0x3233fe[_0x30f825(0x12c)](0x0,0x1)),_0xc911c2[_0x30f825(0x10c)]=_0x4b1590,_0xc911c2[_0x30f825(0x142)]=('/'+_0x4b1590+'/'+_0x3233fe[_0x30f825(0x12a)]('/'))[_0x30f825(0x122)](/(\.ts|\.js)$/,'')[_0x30f825(0x122)](/\/{2,}/g,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x30f825(0x139)]()[_0x30f825(0x122)](/\/\-/g,'/'),_0xc911c2[_0x30f825(0x142)][_0x30f825(0x137)]('-action')&&(_0xc911c2['route']=_0xc911c2[_0x30f825(0x142)][_0x30f825(0x14d)](0x0,_0xc911c2[_0x30f825(0x142)][_0x30f825(0x129)]-0x7)),_0xc911c2[_0x30f825(0x142)][_0x30f825(0x137)]('-controller')&&(_0xc911c2[_0x30f825(0x142)]=_0xc911c2['route'][_0x30f825(0x14d)](0x0,_0xc911c2[_0x30f825(0x142)][_0x30f825(0x129)]-0xb)),_0xc911c2;}throw new Error(_0x430891+_0x30f825(0x10f)+_0x4b1590+_0x30f825(0x131));}}throw new Error(_0x430891+_0x30f825(0x14f));}exports[a3_0x1f15b3(0x143)]=parseRoute;
|
|
1
|
+
function a3_0x1bcb(_0x142c42,_0x54bfa4){const _0x2fcc68=a3_0x42ed();return a3_0x1bcb=function(_0x4a499d,_0x538a3b){_0x4a499d=_0x4a499d-0x12b;let _0x42ede6=_0x2fcc68[_0x4a499d];return _0x42ede6;},a3_0x1bcb(_0x142c42,_0x54bfa4);}const a3_0x41aa65=a3_0x1bcb;(function(_0x234941,_0xfd8dc3){const _0x3cbe82=a3_0x1bcb,_0x1a12f8=_0x234941();while(!![]){try{const _0x32de67=-parseInt(_0x3cbe82(0x12d))/0x1*(-parseInt(_0x3cbe82(0x12e))/0x2)+-parseInt(_0x3cbe82(0x138))/0x3*(parseInt(_0x3cbe82(0x167))/0x4)+parseInt(_0x3cbe82(0x142))/0x5+parseInt(_0x3cbe82(0x14f))/0x6+parseInt(_0x3cbe82(0x17a))/0x7*(-parseInt(_0x3cbe82(0x141))/0x8)+parseInt(_0x3cbe82(0x177))/0x9*(parseInt(_0x3cbe82(0x16a))/0xa)+parseInt(_0x3cbe82(0x16b))/0xb*(parseInt(_0x3cbe82(0x16c))/0xc);if(_0x32de67===_0xfd8dc3)break;else _0x1a12f8['push'](_0x1a12f8['shift']());}catch(_0x360775){_0x1a12f8['push'](_0x1a12f8['shift']());}}}(a3_0x42ed,0xe4b2c));const a3_0x538a3b=(function(){let _0x27edf4=!![];return function(_0x367f2f,_0x130058){const _0x47e2e4=_0x27edf4?function(){const _0x30036a=a3_0x1bcb;if(_0x130058){const _0x5bb1f3=_0x130058[_0x30036a(0x159)](_0x367f2f,arguments);return _0x130058=null,_0x5bb1f3;}}:function(){};return _0x27edf4=![],_0x47e2e4;};}()),a3_0x4a499d=a3_0x538a3b(this,function(){const _0x32d97c=a3_0x1bcb;return a3_0x4a499d[_0x32d97c(0x151)]()[_0x32d97c(0x164)](_0x32d97c(0x179))[_0x32d97c(0x151)]()[_0x32d97c(0x166)](a3_0x4a499d)[_0x32d97c(0x164)](_0x32d97c(0x179));});a3_0x4a499d();'use strict';Object['defineProperty'](exports,a3_0x41aa65(0x156),{'value':!![]}),exports['parseRoute']=exports[a3_0x41aa65(0x171)]=exports[a3_0x41aa65(0x174)]=void 0x0;function a3_0x42ed(){const _0x2a757c=['trim','rootpath','\x20文件请放在app/controller/文件下','routerName','match','5336AVTEIF','2530170vRutCg','filter','substring','module','parseRoute','splice','existsSync','cwd','replace','ACTION_ROUTE_KEY','middlewareIgnore','/config.','apimit','2985042XdfZWu','filepath','toString','AppsConfigTmp','length','apps/','Controller','__esModule','@midwayjs/core','@anncic-api/validator','apply','/apps/','startsWith','ACTION_KEY','prefix','assign','app/controller/','push','validationOptions','toLowerCase','validate','search','post','constructor','68TIRNyU','intercept','undefined','430OQsnjH','11231jcBJCF','14868eFnOJo','isArray','/controller/','join','attachClassMetadata','ActionApi','split','../types/action','Action','indexOf','saveModule','96417FnQOqK','saveClassMetadata','(((.+)+)+)+$','18172QFifwg','-action','route','getClassMetadata','1222476madeTO','2GSiPDS','string','description','middleware','get','/controller/文件下','createCustomMethodDecorator','Validator','tagName','-controller','226485hVDJEQ','APPSCONFIG_KEY','endsWith','basic/controller/'];a3_0x42ed=function(){return _0x2a757c;};return a3_0x42ed();}const fs=require('fs'),validator_1=require(a3_0x41aa65(0x158)),core_1=require(a3_0x41aa65(0x157)),core_2=require(a3_0x41aa65(0x157)),action_1=require(a3_0x41aa65(0x173));function Action(_0x462eb6,_0x1a8874,_0x1dfeb4={'middleware':[],'sensitive':!![]}){return _0x477c17=>{const _0x3ca48c=a3_0x1bcb;var _0x119104;_0x1dfeb4[_0x3ca48c(0x136)]=_0x1a8874;const _0x4ba6a9=parseRoute(_0x462eb6);if(_0x4ba6a9['module']){_0x1dfeb4[_0x3ca48c(0x15d)]=_0x1dfeb4[_0x3ca48c(0x15d)]?'/'+_0x4ba6a9['module']+'/'+_0x1dfeb4['prefix']:'/'+_0x4ba6a9[_0x3ca48c(0x12b)];_0x4ba6a9[_0x3ca48c(0x15d)]&&(_0x1dfeb4['prefix']='/'+_0x4ba6a9[_0x3ca48c(0x15d)]+'/'+_0x1dfeb4['prefix']);if(fs[_0x3ca48c(0x148)](_0x4ba6a9[_0x3ca48c(0x13d)]+_0x3ca48c(0x15a)+_0x4ba6a9['module']+'/config.'+(lodash[_0x3ca48c(0x13a)](_0x4ba6a9['filepath'],'ts')?'ts':'js'))){const _0x8c6855=include(_0x4ba6a9[_0x3ca48c(0x13d)]+_0x3ca48c(0x15a)+_0x4ba6a9[_0x3ca48c(0x145)]+_0x3ca48c(0x14d)+(lodash[_0x3ca48c(0x13a)](_0x4ba6a9['filepath'],'ts')?'ts':'js'));if(_0x8c6855[_0x3ca48c(0x131)]&&lodash[_0x3ca48c(0x16d)](_0x8c6855['middleware'])&&_0x8c6855[_0x3ca48c(0x131)][_0x3ca48c(0x153)]>0x0)for(let _0x530502 in _0x8c6855['middleware']){if(((_0x119104=_0x8c6855===null||_0x8c6855===void 0x0?void 0x0:_0x8c6855[_0x3ca48c(0x14c)])===null||_0x119104===void 0x0?void 0x0:_0x119104[_0x3ca48c(0x153)])>0x0&&_0x8c6855[_0x3ca48c(0x14c)]['indexOf'](_0x8c6855[_0x3ca48c(0x131)][_0x530502])!=-0x1)continue;_0x1dfeb4['middleware'][_0x3ca48c(0x160)](_0x8c6855['middleware'][_0x530502]);}const _0x44fcba=(0x0,core_1[_0x3ca48c(0x12c)])(action_1[_0x3ca48c(0x139)],action_1[_0x3ca48c(0x152)])||{};_0x44fcba[''+_0x4ba6a9['module']]=_0x8c6855,(0x0,core_1[_0x3ca48c(0x178)])(action_1[_0x3ca48c(0x139)],_0x44fcba,action_1[_0x3ca48c(0x152)]);}_0x1dfeb4[_0x3ca48c(0x15d)]=_0x1dfeb4[_0x3ca48c(0x15d)]['toLowerCase']()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x3ca48c(0x176)])(action_1[_0x3ca48c(0x15c)],_0x477c17),(0x0,core_1[_0x3ca48c(0x155)])(_0x1dfeb4[_0x3ca48c(0x15d)],_0x1dfeb4)(_0x477c17),(0x0,core_1[_0x3ca48c(0x178)])(action_1[_0x3ca48c(0x15c)],{'prefix':_0x1dfeb4['prefix'],'pprefix':_0x4ba6a9['prefix'],'module':_0x4ba6a9[_0x3ca48c(0x145)],'filepath':_0x4ba6a9[_0x3ca48c(0x150)],'routerOptions':_0x1dfeb4},_0x477c17);}else _0x1dfeb4['prefix']=_0x1dfeb4[_0x3ca48c(0x15d)]?'/'+_0x1dfeb4[_0x3ca48c(0x15d)]:'/'+_0x4ba6a9[_0x3ca48c(0x12b)],_0x4ba6a9[_0x3ca48c(0x15d)]&&(_0x1dfeb4[_0x3ca48c(0x15d)]='/'+_0x4ba6a9[_0x3ca48c(0x15d)]+'/'+_0x1dfeb4[_0x3ca48c(0x15d)]),_0x1dfeb4['prefix']=_0x1dfeb4[_0x3ca48c(0x15d)][_0x3ca48c(0x162)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x3ca48c(0x176)])(action_1[_0x3ca48c(0x15c)],_0x477c17),(0x0,core_1['Controller'])(_0x1dfeb4[_0x3ca48c(0x15d)],_0x1dfeb4)(_0x477c17),(0x0,core_1[_0x3ca48c(0x178)])(action_1[_0x3ca48c(0x15c)],{'prefix':_0x1dfeb4[_0x3ca48c(0x15d)],'module':_0x4ba6a9[_0x3ca48c(0x145)],'pprefix':_0x4ba6a9[_0x3ca48c(0x15d)],'filepath':_0x4ba6a9[_0x3ca48c(0x150)],'routerOptions':_0x1dfeb4},_0x477c17);};}exports[a3_0x41aa65(0x174)]=Action,Action['get']=function(_0x21f529,_0x19c49e='/',_0x464c53={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2b0859,_0x2e5f6d,_0x55ce37)=>{ActionApi(_0x21f529,'get',_0x19c49e,_0x464c53)(_0x2b0859,_0x2e5f6d,_0x55ce37);};},Action[a3_0x41aa65(0x165)]=function(_0x5e2a7b,_0x39b7a3='/',_0x3b7eb0={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5b1c91,_0x2c9c00,_0x99e255)=>{ActionApi(_0x5e2a7b,'post',_0x39b7a3,_0x3b7eb0)(_0x5b1c91,_0x2c9c00,_0x99e255);};};function ActionApi(_0x52119a,_0x26a18e='get',_0x110111='/',_0x11bdc2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x767f1e,_0x225357,_0x20e991)=>{const _0x1a9ad7=a3_0x1bcb;var _0x349d09,_0x4e596d,_0x4ca5a2;!_0x11bdc2[_0x1a9ad7(0x131)]&&(_0x11bdc2[_0x1a9ad7(0x131)]=[]);!((_0x349d09=_0x11bdc2===null||_0x11bdc2===void 0x0?void 0x0:_0x11bdc2['validate'])===null||_0x349d09===void 0x0?void 0x0:_0x349d09[_0x1a9ad7(0x161)])&&(_0x11bdc2[_0x1a9ad7(0x163)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});if(!_0x110111)_0x110111='/';else typeof _0x110111==_0x1a9ad7(0x12f)&&(!_0x110111[_0x1a9ad7(0x15b)]('/')&&!_0x110111[_0x1a9ad7(0x15b)]('-')&&(_0x110111='/'+_0x110111));typeof _0x11bdc2[_0x1a9ad7(0x14e)]==_0x1a9ad7(0x169)&&(_0x11bdc2[_0x1a9ad7(0x14e)]=!![]);if(((_0x4e596d=_0x11bdc2===null||_0x11bdc2===void 0x0?void 0x0:_0x11bdc2[_0x1a9ad7(0x131)])===null||_0x4e596d===void 0x0?void 0x0:_0x4e596d[_0x1a9ad7(0x153)])>0x0&&((_0x4ca5a2=_0x11bdc2===null||_0x11bdc2===void 0x0?void 0x0:_0x11bdc2[_0x1a9ad7(0x14c)])===null||_0x4ca5a2===void 0x0?void 0x0:_0x4ca5a2['length'])>0x0)for(let _0x49116e in _0x11bdc2[_0x1a9ad7(0x131)]){_0x11bdc2[_0x1a9ad7(0x14c)][_0x1a9ad7(0x175)](_0x11bdc2['middleware'][_0x49116e])!==-0x1&&(_0x11bdc2[_0x1a9ad7(0x131)][_0x49116e]=null);}_0x11bdc2['routerName']=_0x52119a,(0x0,validator_1[_0x1a9ad7(0x135)])(_0x11bdc2[_0x1a9ad7(0x163)])(_0x767f1e,_0x225357,_0x20e991),(0x0,core_2['RequestMapping'])(Object[_0x1a9ad7(0x15e)](_0x11bdc2,{'path':_0x110111,'requestMethod':(_0x26a18e||_0x1a9ad7(0x132))[_0x1a9ad7(0x162)]()}))(_0x767f1e,_0x225357,_0x20e991),(0x0,core_2[_0x1a9ad7(0x170)])(action_1[_0x1a9ad7(0x14b)],{'path':_0x110111,'method':_0x225357,'apimit':_0x11bdc2[_0x1a9ad7(0x14e)],'intercept':_0x11bdc2[_0x1a9ad7(0x168)],'routerName':_0x11bdc2[_0x1a9ad7(0x13f)],'description':_0x11bdc2['description'],'middleware':(_0x11bdc2['middleware']||[])[_0x1a9ad7(0x143)](_0xf02b8e=>!!_0xf02b8e),'requestMethod':(_0x26a18e||_0x1a9ad7(0x132))[_0x1a9ad7(0x162)]()},_0x767f1e),(0x0,core_2[_0x1a9ad7(0x134)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x110111,'method':_0x225357,'apimit':_0x11bdc2[_0x1a9ad7(0x14e)],'intercept':_0x11bdc2[_0x1a9ad7(0x168)],'routerName':_0x11bdc2[_0x1a9ad7(0x13f)],'description':_0x11bdc2[_0x1a9ad7(0x130)],'middleware':(_0x11bdc2['middleware']||[])[_0x1a9ad7(0x143)](_0x49876d=>!!_0x49876d),'requestMethod':(_0x26a18e||'get')[_0x1a9ad7(0x162)]()})(_0x767f1e,_0x225357,_0x20e991);};}exports[a3_0x41aa65(0x171)]=ActionApi;function parseRoute(_0x151e70){const _0x32d35a=a3_0x41aa65;_0x151e70=_0x151e70[_0x32d35a(0x14a)](/(\\|\/)/g,'/');const _0x58fcd1=process[_0x32d35a(0x149)]()[_0x32d35a(0x14a)](/(\\|\/)/g,'/'),_0x3584c7=_0x151e70['substring'](0x0,_0x58fcd1[_0x32d35a(0x153)]+_0x151e70['substring'](_0x58fcd1[_0x32d35a(0x153)]+0x1)[_0x32d35a(0x175)]('/')+0x1),_0x3b519c=_0x151e70['substring'](_0x3584c7['length']+0x1)[_0x32d35a(0x14a)](/(\\|\/)/g,'/'),_0x92a925={'route':'','prefix':![],'module':![],'rootpath':_0x3584c7,'filepath':_0x3b519c};if(_0x3b519c[_0x32d35a(0x15b)](_0x32d35a(0x15f))||_0x3b519c[_0x32d35a(0x15b)](_0x32d35a(0x13b))){const _0x21556b=_0x3b519c[_0x32d35a(0x144)]((_0x3b519c['startsWith'](_0x32d35a(0x15f))?'app/controller/':_0x32d35a(0x13b))[_0x32d35a(0x153)])['split']('/')[_0x32d35a(0x143)](_0x23abf5=>_0x23abf5&&_0x23abf5[_0x32d35a(0x13c)]());return _0x21556b[_0x32d35a(0x153)]>0x1&&(_0x92a925['prefix']=_0x21556b[0x0]['toLowerCase'](),_0x21556b[_0x32d35a(0x147)](0x0,0x1)),_0x92a925[_0x32d35a(0x12b)]=('/'+_0x21556b[_0x32d35a(0x16f)]('/'))[_0x32d35a(0x14a)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x32d35a(0x140)](/[\/|A-Z]*[^A-Z]+/g)[_0x32d35a(0x16f)]('-')[_0x32d35a(0x162)]()[_0x32d35a(0x14a)](/\/\-/g,'/'),_0x92a925['route'][_0x32d35a(0x13a)](_0x32d35a(0x17b))&&(_0x92a925[_0x32d35a(0x12b)]=_0x92a925[_0x32d35a(0x12b)]['substring'](0x0,_0x92a925[_0x32d35a(0x12b)]['length']-0x7)),_0x92a925[_0x32d35a(0x12b)][_0x32d35a(0x13a)]('-controller')&&(_0x92a925[_0x32d35a(0x12b)]=_0x92a925[_0x32d35a(0x12b)][_0x32d35a(0x144)](0x0,_0x92a925[_0x32d35a(0x12b)][_0x32d35a(0x153)]-0xb)),_0x92a925;}else{if(_0x3b519c['startsWith'](_0x32d35a(0x154))){const _0x5aab3a=_0x3b519c[_0x32d35a(0x144)](0x0,_0x3b519c['indexOf'](_0x32d35a(0x15a))+0x5),_0x514243=_0x3b519c[_0x32d35a(0x144)](_0x5aab3a[_0x32d35a(0x153)]+0x1)[_0x32d35a(0x14a)](/(\\|\/)/g,'/')['split']('/')[0x0];if(_0x3b519c[_0x32d35a(0x15b)](_0x32d35a(0x154)+_0x514243+_0x32d35a(0x16e))){const _0x1d96a7=_0x3b519c['substring']((_0x5aab3a+'/'+_0x514243+'/controller/')['length'])[_0x32d35a(0x172)]('/')[_0x32d35a(0x143)](_0x2faeff=>_0x2faeff&&_0x2faeff[_0x32d35a(0x13c)]());return _0x1d96a7[_0x32d35a(0x153)]>0x1&&(_0x92a925[_0x32d35a(0x15d)]=_0x1d96a7[0x0][_0x32d35a(0x162)](),_0x1d96a7['splice'](0x0,0x1)),_0x92a925[_0x32d35a(0x145)]=_0x514243,_0x92a925[_0x32d35a(0x12b)]=('/'+_0x514243+'/'+_0x1d96a7[_0x32d35a(0x16f)]('/'))[_0x32d35a(0x14a)](/(\.ts|\.js)$/,'')[_0x32d35a(0x14a)](/\/{2,}/g,'/')[_0x32d35a(0x140)](/[\/|A-Z]*[^A-Z]+/g)[_0x32d35a(0x16f)]('-')[_0x32d35a(0x162)]()[_0x32d35a(0x14a)](/\/\-/g,'/'),_0x92a925[_0x32d35a(0x12b)]['endsWith'](_0x32d35a(0x17b))&&(_0x92a925[_0x32d35a(0x12b)]=_0x92a925['route'][_0x32d35a(0x144)](0x0,_0x92a925[_0x32d35a(0x12b)]['length']-0x7)),_0x92a925[_0x32d35a(0x12b)][_0x32d35a(0x13a)](_0x32d35a(0x137))&&(_0x92a925[_0x32d35a(0x12b)]=_0x92a925[_0x32d35a(0x12b)][_0x32d35a(0x144)](0x0,_0x92a925['route'][_0x32d35a(0x153)]-0xb)),_0x92a925;}throw new Error(_0x3b519c+'\x20文件请放在apps/'+_0x514243+_0x32d35a(0x133));}}throw new Error(_0x3b519c+_0x32d35a(0x13e));}exports[a3_0x41aa65(0x146)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x1a428f=a4_0x40f9;(function(_0x5065a4,_0x37c527){const _0x25b95e=a4_0x40f9,_0x219c2e=_0x5065a4();while(!![]){try{const _0xf55370=parseInt(_0x25b95e(0x82))/0x1*(-parseInt(_0x25b95e(0x7d))/0x2)+parseInt(_0x25b95e(0x7f))/0x3*(parseInt(_0x25b95e(0x79))/0x4)+-parseInt(_0x25b95e(0x84))/0x5+-parseInt(_0x25b95e(0x81))/0x6*(parseInt(_0x25b95e(0x76))/0x7)+-parseInt(_0x25b95e(0x8e))/0x8*(-parseInt(_0x25b95e(0x7e))/0x9)+-parseInt(_0x25b95e(0x72))/0xa+parseInt(_0x25b95e(0x8d))/0xb;if(_0xf55370===_0x37c527)break;else _0x219c2e['push'](_0x219c2e['shift']());}catch(_0x53126f){_0x219c2e['push'](_0x219c2e['shift']());}}}(a4_0x390d,0x3ac1a));const a4_0x41ac40=(function(){let _0xd8fc99=!![];return function(_0x100e82,_0x715e16){const _0x47c280=_0xd8fc99?function(){const _0x1fa8ad=a4_0x40f9;if(_0x715e16){const _0x3c7c2b=_0x715e16[_0x1fa8ad(0x87)](_0x100e82,arguments);return _0x715e16=null,_0x3c7c2b;}}:function(){};return _0xd8fc99=![],_0x47c280;};}()),a4_0x75faa=a4_0x41ac40(this,function(){const _0x45af03=a4_0x40f9;return a4_0x75faa[_0x45af03(0x8c)]()[_0x45af03(0x7c)](_0x45af03(0x73))[_0x45af03(0x8c)]()[_0x45af03(0x88)](a4_0x75faa)[_0x45af03(0x7c)](_0x45af03(0x73));});a4_0x75faa();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a4_0x1a428f(0x78)),ApitestService_1=require(a4_0x1a428f(0x89));function Apitest(_0x49ac6b='/apitest',_0x1c3113){return(_0xa435b,_0x106160,_0x50902a)=>{const _0x30fb2e=a4_0x40f9;return(0x0,core_1['RequestMapping'])({'path':_0x49ac6b,'requestMethod':_0x30fb2e(0x74)})(_0xa435b,_0x106160,_0x50902a),_0x50902a[_0x30fb2e(0x70)]=async function(..._0x5e6dc7){const _0x39cfef=_0x30fb2e;var _0x351150;const _0x52f1e0=(_0x351150=this[core_1[_0x39cfef(0x75)]])===null||_0x351150===void 0x0?void 0x0:_0x351150[_0x39cfef(0x71)];if(_0x52f1e0&&_0x52f1e0[_0x39cfef(0x80)](_0x39cfef(0x86))){const _0x52f483=await _0x52f1e0[_0x39cfef(0x85)]()[_0x39cfef(0x83)](ApitestService_1[_0x39cfef(0x7b)]),_0x18477d=await _0x52f1e0['getApplicationContext']()[_0x39cfef(0x83)](core_1[_0x39cfef(0x8a)]);return _0x18477d[_0x39cfef(0x77)]()&&(_0x1c3113['filepath']=!![]),await _0x52f483[_0x39cfef(0x7a)](_0x1c3113);}return'';},_0x50902a;};}function a4_0x40f9(_0x5d54a5,_0x2b86cc){const _0x1caecb=a4_0x390d();return a4_0x40f9=function(_0x75faa,_0x41ac40){_0x75faa=_0x75faa-0x70;let _0x390dc0=_0x1caecb[_0x75faa];return _0x390dc0;},a4_0x40f9(_0x5d54a5,_0x2b86cc);}exports[a4_0x1a428f(0x8b)]=Apitest;function a4_0x390d(){const _0x14f0a7=['getAsync','2305455vEjdbO','getApplicationContext','apitest','apply','constructor','../service/ApitestService','MidwayEnvironmentService','Apitest','toString','6487701YjewwH','40OSaCcq','value','app','3076090GTDdsd','(((.+)+)+)+$','get','REQUEST_OBJ_CTX_KEY','21ylmItz','isDevelopmentEnvironment','@midwayjs/core','4HxGlAt','apidoc','ApitestService','search','6fJMPvq','573993sMEyfG','712407SAUiZi','getConfig','121626ZoWUmu','25322QxLjbQ'];a4_0x390d=function(){return _0x14f0a7;};return a4_0x390d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x15e4d0=a5_0x113b;(function(_0x3bde2a,_0x16c409){const _0x33024a=a5_0x113b,_0x46c965=_0x3bde2a();while(!![]){try{const _0x53e63b=-parseInt(_0x33024a(0xdb))/0x1*(parseInt(_0x33024a(0xd6))/0x2)+-parseInt(_0x33024a(0xe4))/0x3+-parseInt(_0x33024a(0xd3))/0x4+parseInt(_0x33024a(0xd0))/0x5*(parseInt(_0x33024a(0xe5))/0x6)+-parseInt(_0x33024a(0xe1))/0x7+parseInt(_0x33024a(0xe2))/0x8+parseInt(_0x33024a(0xdc))/0x9;if(_0x53e63b===_0x16c409)break;else _0x46c965['push'](_0x46c965['shift']());}catch(_0x2a1ea2){_0x46c965['push'](_0x46c965['shift']());}}}(a5_0x2fe1,0xd5dbe));const a5_0x4a6eae=(function(){let _0x43def1=!![];return function(_0x1e285a,_0x20e0cd){const _0x3317a0=_0x43def1?function(){const _0x59ff54=a5_0x113b;if(_0x20e0cd){const _0x3788ae=_0x20e0cd[_0x59ff54(0xe0)](_0x1e285a,arguments);return _0x20e0cd=null,_0x3788ae;}}:function(){};return _0x43def1=![],_0x3317a0;};}()),a5_0x55bd5a=a5_0x4a6eae(this,function(){const _0x55aa6b=a5_0x113b;return a5_0x55bd5a['toString']()[_0x55aa6b(0xde)](_0x55aa6b(0xd2))['toString']()['constructor'](a5_0x55bd5a)[_0x55aa6b(0xde)](_0x55aa6b(0xd2));});function a5_0x2fe1(){const _0x2cfb3d=['92622fKJqtt','saveClassMetadata','ScopeEnum','535QiTuLa','Intercept','(((.+)+)+)+$','5522724QPfwjW','Singleton','Scope','22262qJSUPS','IIntercept','INTERCEPT_KEY','includes','defineProperty','134YpDQiM','28863414NsfaDB','isArray','search','InterceptTargetTmp','apply','1224447FHSZoZ','5466064VPhPZI','push','4856823BMScjo'];a5_0x2fe1=function(){return _0x2cfb3d;};return a5_0x2fe1();}a5_0x55bd5a();'use strict';Object[a5_0x15e4d0(0xda)](exports,'__esModule',{'value':!![]}),exports[a5_0x15e4d0(0xd7)]=exports[a5_0x15e4d0(0xd1)]=void 0x0;function a5_0x113b(_0x2c35a5,_0x33f4e3){const _0x500f61=a5_0x2fe1();return a5_0x113b=function(_0x55bd5a,_0x4a6eae){_0x55bd5a=_0x55bd5a-0xce;let _0x2fe12b=_0x500f61[_0x55bd5a];return _0x2fe12b;},a5_0x113b(_0x2c35a5,_0x33f4e3);}const core_1=require('@midwayjs/core'),intercept_1=require('../types/intercept');function Intercept(_0x436c19){return _0x1a1388=>{const _0x5da0d2=a5_0x113b,_0x1036a0=(0x0,core_1['getClassMetadata'])(intercept_1[_0x5da0d2(0xd8)],intercept_1[_0x5da0d2(0xdf)])||{};for(let _0x39b33a of Array[_0x5da0d2(0xdd)](_0x436c19)?_0x436c19:[_0x436c19]){_0x39b33a=_0x39b33a['toUpperCase']();!(_0x1036a0===null||_0x1036a0===void 0x0?void 0x0:_0x1036a0[_0x39b33a])&&(_0x1036a0[_0x39b33a]=[]);if(_0x1036a0[_0x39b33a][_0x5da0d2(0xd9)](_0x1a1388))continue;_0x1036a0[_0x39b33a][_0x5da0d2(0xe3)](_0x1a1388);}(0x0,core_1['Provide'])()(_0x1a1388),(0x0,core_1[_0x5da0d2(0xd5)])(core_1[_0x5da0d2(0xcf)][_0x5da0d2(0xd4)])(_0x1a1388),(0x0,core_1[_0x5da0d2(0xce)])(intercept_1[_0x5da0d2(0xd8)],_0x1036a0,intercept_1['InterceptTargetTmp']);};}exports[a5_0x15e4d0(0xd1)]=Intercept;class IIntercept{async['match'](_0x5984e7,_0xdd866e,_0x3ebabb){return!![];}}exports[a5_0x15e4d0(0xd7)]=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a6_0x11d82e=a6_0x44dd;(function(_0x4db996,_0x3f4235){var _0x2753a8=a6_0x44dd,_0x4b1e69=_0x4db996();while(!![]){try{var _0x1667b0=parseInt(_0x2753a8(0x161))/0x1*(-parseInt(_0x2753a8(0x17f))/0x2)+-parseInt(_0x2753a8(0x16f))/0x3+parseInt(_0x2753a8(0x175))/0x4+parseInt(_0x2753a8(0x16e))/0x5*(parseInt(_0x2753a8(0x15d))/0x6)+-parseInt(_0x2753a8(0x16c))/0x7*(-parseInt(_0x2753a8(0x17e))/0x8)+-parseInt(_0x2753a8(0x165))/0x9+parseInt(_0x2753a8(0x17a))/0xa;if(_0x1667b0===_0x3f4235)break;else _0x4b1e69['push'](_0x4b1e69['shift']());}catch(_0x328448){_0x4b1e69['push'](_0x4b1e69['shift']());}}}(a6_0x4675,0x2168d));var a6_0x4beb5b=(function(){var _0x12d98b=!![];return function(_0x1256fd,_0x22c60a){var _0x11510=_0x12d98b?function(){var _0x848d24=a6_0x44dd;if(_0x22c60a){var _0x5e74e9=_0x22c60a[_0x848d24(0x15b)](_0x1256fd,arguments);return _0x22c60a=null,_0x5e74e9;}}:function(){};return _0x12d98b=![],_0x11510;};}()),a6_0x409e81=a6_0x4beb5b(this,function(){var _0x3a273a=a6_0x44dd;return a6_0x409e81[_0x3a273a(0x168)]()[_0x3a273a(0x173)]('(((.+)+)+)+$')[_0x3a273a(0x168)]()[_0x3a273a(0x176)](a6_0x409e81)[_0x3a273a(0x173)](_0x3a273a(0x16b));});a6_0x409e81();function a6_0x4675(){var _0x32ff30=['HEADERS_SIGNATURE','TIMEOUT','__metadata','2336463hmDEBC','getOwnPropertyDescriptor','object','toString','HEADERS_CHECKCODE','signature验证失败','(((.+)+)+)+$','2555kCxYaF','function','78035zYFmfT','279372zylarq','__esModule','metadata','defineProperty','search','ApiError','196996sYlhWr','constructor','HEADERS_DEVICE','登录超时,请重新登录','__decorate','4705360zHpyqa','design:type','HEADERS_LACK','请求超时,请重试','504GtMCnQ','324906qpRTVx','apply','TIMEOUT_LOGINTIME','42InLQFJ','length','decorate','请求头信息不完整','1lsYOUF'];a6_0x4675=function(){return _0x32ff30;};return a6_0x4675();}'use strict';var __decorate=this&&this[a6_0x11d82e(0x179)]||function(_0x24f2ba,_0x390d54,_0x49d252,_0x69519e){var _0x3fcd33=a6_0x11d82e,_0x459e92=arguments[_0x3fcd33(0x15e)],_0x96106=_0x459e92<0x3?_0x390d54:_0x69519e===null?_0x69519e=Object[_0x3fcd33(0x166)](_0x390d54,_0x49d252):_0x69519e,_0x3f4c20;if(typeof Reflect===_0x3fcd33(0x167)&&typeof Reflect[_0x3fcd33(0x15f)]===_0x3fcd33(0x16d))_0x96106=Reflect[_0x3fcd33(0x15f)](_0x24f2ba,_0x390d54,_0x49d252,_0x69519e);else{for(var _0x2e326b=_0x24f2ba[_0x3fcd33(0x15e)]-0x1;_0x2e326b>=0x0;_0x2e326b--)if(_0x3f4c20=_0x24f2ba[_0x2e326b])_0x96106=(_0x459e92<0x3?_0x3f4c20(_0x96106):_0x459e92>0x3?_0x3f4c20(_0x390d54,_0x49d252,_0x96106):_0x3f4c20(_0x390d54,_0x49d252))||_0x96106;}return _0x459e92>0x3&&_0x96106&&Object['defineProperty'](_0x390d54,_0x49d252,_0x96106),_0x96106;},__metadata=this&&this[a6_0x11d82e(0x164)]||function(_0x5dea57,_0x1517fa){var _0xfe456=a6_0x11d82e;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0xfe456(0x16d))return Reflect[_0xfe456(0x171)](_0x5dea57,_0x1517fa);};function a6_0x44dd(_0x5527de,_0x109240){var _0x4cfd32=a6_0x4675();return a6_0x44dd=function(_0x409e81,_0x4beb5b){_0x409e81=_0x409e81-0x15b;var _0x4675bd=_0x4cfd32[_0x409e81];return _0x4675bd;},a6_0x44dd(_0x5527de,_0x109240);}Object[a6_0x11d82e(0x172)](exports,a6_0x11d82e(0x170),{'value':!![]}),exports[a6_0x11d82e(0x174)]=void 0x0;class ApiError extends AnnError{}exports[a6_0x11d82e(0x174)]=ApiError,ApiError[a6_0x11d82e(0x163)]=0x19003,ApiError[a6_0x11d82e(0x17c)]=0x18e72,ApiError[a6_0x11d82e(0x177)]=0x18e73,ApiError[a6_0x11d82e(0x162)]=0x18e74,ApiError[a6_0x11d82e(0x169)]=0x18e75,ApiError[a6_0x11d82e(0x15c)]=0x18e76,__decorate([AnnErrorMsg(a6_0x11d82e(0x17d)),__metadata(a6_0x11d82e(0x17b),Object)],ApiError,a6_0x11d82e(0x163),void 0x0),__decorate([AnnErrorMsg(a6_0x11d82e(0x160)),__metadata('design:type',Object)],ApiError,a6_0x11d82e(0x17c),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x11d82e(0x17b),Object)],ApiError,a6_0x11d82e(0x177),void 0x0),__decorate([AnnErrorMsg(a6_0x11d82e(0x16a)),__metadata(a6_0x11d82e(0x17b),Object)],ApiError,a6_0x11d82e(0x162),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a6_0x11d82e(0x17b),Object)],ApiError,a6_0x11d82e(0x169),void 0x0),__decorate([AnnErrorMsg(a6_0x11d82e(0x178)),__metadata(a6_0x11d82e(0x17b),Object)],ApiError,'TIMEOUT_LOGINTIME',void 0x0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7_0x461b4b=a7_0xfc5a;(function(_0x4e4662,_0x15c656){const _0x3ded27=a7_0xfc5a,_0x3f2507=_0x4e4662();while(!![]){try{const _0x30c51d=-parseInt(_0x3ded27(0x94))/0x1+parseInt(_0x3ded27(0x8b))/0x2*(-parseInt(_0x3ded27(0x86))/0x3)+parseInt(_0x3ded27(0x95))/0x4*(parseInt(_0x3ded27(0x81))/0x5)+-parseInt(_0x3ded27(0x8c))/0x6*(-parseInt(_0x3ded27(0x8d))/0x7)+-parseInt(_0x3ded27(0x83))/0x8+parseInt(_0x3ded27(0x90))/0x9*(parseInt(_0x3ded27(0x96))/0xa)+parseInt(_0x3ded27(0x82))/0xb*(parseInt(_0x3ded27(0x88))/0xc);if(_0x30c51d===_0x15c656)break;else _0x3f2507['push'](_0x3f2507['shift']());}catch(_0xd66d90){_0x3f2507['push'](_0x3f2507['shift']());}}}(a7_0x3553,0x73720));const a7_0x3ea56d=(function(){let _0x110e49=!![];return function(_0x1a970c,_0x3397a6){const _0x371e4a=_0x110e49?function(){const _0x5ae300=a7_0xfc5a;if(_0x3397a6){const _0x334a32=_0x3397a6[_0x5ae300(0x92)](_0x1a970c,arguments);return _0x3397a6=null,_0x334a32;}}:function(){};return _0x110e49=![],_0x371e4a;};}()),a7_0x17dc0c=a7_0x3ea56d(this,function(){const _0x39a41a=a7_0xfc5a;return a7_0x17dc0c[_0x39a41a(0x8a)]()[_0x39a41a(0x89)](_0x39a41a(0x91))['toString']()[_0x39a41a(0x85)](a7_0x17dc0c)['search'](_0x39a41a(0x91));});a7_0x17dc0c();function a7_0xfc5a(_0x46a93a,_0x31eea7){const _0x1fc65c=a7_0x3553();return a7_0xfc5a=function(_0x17dc0c,_0x3ea56d){_0x17dc0c=_0x17dc0c-0x81;let _0x35536b=_0x1fc65c[_0x17dc0c];return _0x35536b;},a7_0xfc5a(_0x46a93a,_0x31eea7);}function a7_0x3553(){const _0x208aa7=['toString','978198VGahuJ','3588syebXy','2982RwmPGc','../types/action','AppsConfigTmp','9bkMshk','(((.+)+)+)+$','apply','APPSCONFIG_KEY','704645GEpGkJ','4uEunuW','1307860HHuBua','4587755cAqGBe','4521WhGtDj','7327360rjOWMX','getClassMetadata','constructor','3MQewVS','defineProperty','37356LDyJGN','search'];a7_0x3553=function(){return _0x208aa7;};return a7_0x3553();}'use strict';Object[a7_0x461b4b(0x87)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x461b4b(0x8e));function getAppsConfig(_0x5e8cf0){const _0x59d6e3=a7_0x461b4b,_0x1982b9=(0x0,core_1[_0x59d6e3(0x84)])(action_1[_0x59d6e3(0x93)],action_1[_0x59d6e3(0x8f)])||{};return _0x5e8cf0?lodash['get'](_0x1982b9,_0x5e8cf0):_0x1982b9;}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x3c6587=a8_0x3038;function a8_0x3038(_0x9b4967,_0x31e0f8){const _0x31abc9=a8_0x4de7();return a8_0x3038=function(_0x3bf7c6,_0x287208){_0x3bf7c6=_0x3bf7c6-0xe3;let _0x4de7c9=_0x31abc9[_0x3bf7c6];return _0x4de7c9;},a8_0x3038(_0x9b4967,_0x31e0f8);}(function(_0x5bbb62,_0x5066ec){const _0x74bbdb=a8_0x3038,_0x212686=_0x5bbb62();while(!![]){try{const _0x9cba2d=-parseInt(_0x74bbdb(0xef))/0x1*(parseInt(_0x74bbdb(0x131))/0x2)+-parseInt(_0x74bbdb(0x106))/0x3*(parseInt(_0x74bbdb(0xff))/0x4)+-parseInt(_0x74bbdb(0x119))/0x5+parseInt(_0x74bbdb(0x122))/0x6+parseInt(_0x74bbdb(0xe3))/0x7+-parseInt(_0x74bbdb(0xeb))/0x8+parseInt(_0x74bbdb(0x13c))/0x9;if(_0x9cba2d===_0x5066ec)break;else _0x212686['push'](_0x212686['shift']());}catch(_0x1be830){_0x212686['push'](_0x212686['shift']());}}}(a8_0x4de7,0xb6338));const a8_0x287208=(function(){let _0x699c9=!![];return function(_0x49fb93,_0x253259){const _0x55b304=_0x699c9?function(){const _0x45fba8=a8_0x3038;if(_0x253259){const _0xbee08e=_0x253259[_0x45fba8(0xe9)](_0x49fb93,arguments);return _0x253259=null,_0xbee08e;}}:function(){};return _0x699c9=![],_0x55b304;};}()),a8_0x3bf7c6=a8_0x287208(this,function(){const _0x2a8c04=a8_0x3038;return a8_0x3bf7c6['toString']()[_0x2a8c04(0x125)](_0x2a8c04(0x11b))[_0x2a8c04(0x123)]()['constructor'](a8_0x3bf7c6)[_0x2a8c04(0x125)](_0x2a8c04(0x11b));});a8_0x3bf7c6();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a8_0x3c6587(0x137)]=void 0x0;function a8_0x4de7(){const _0x4f361=['min','static/apitest','parameterIndex','getRoutes','max','key','limit','description','22643253UGIMGv','FIELDS','name','required','function','type','number','PARAM','find','test','default','2981734Hcxkem','startsWith','children','String','getClassMetadata','只允许:[','apply','ACTION_ROUTE_KEY','1793200JVRCxB','routerOptions','join','FILESSTREAM','437NPvASO','length','propertyData','getMethodParamTypes','split','summary','INJECT_CUSTOM_PARAM','boolean','replace','body','FILESTREAM','get','filter','array','intercept','allow','1205508yiCSPh','query','flags.label','Object','@anncic-api/validator','RouteParamTypes','metadata','6goSsrp','WEB_ROUTER_PARAM_KEY','filepath','File','flags.default','args','flags.description','header','items','BODY','indexOf','iterator','substring','concat','@midwayjs/core','pprefix','getClassExtendedMetadata','method','HEADERS','3646335msqkwr','rules','(((.+)+)+)+$','lodash','file','describe','push','module','path','1840158oRVfwf','toString','routes','search','/static/apitest','requestMethod','route','listModule','tagName','object','ACTION_KEY','isArray','request','QUERY','RULES_KEY','4330ugBaqk','title','prefix'];a8_0x4de7=function(){return _0x4f361;};return a8_0x4de7();}const lodash_1=require(a8_0x3c6587(0x11c)),validator_1=require(a8_0x3c6587(0x103)),core_1=require('@midwayjs/core'),core_2=require(a8_0x3c6587(0x114)),core_3=require(a8_0x3c6587(0x114)),action_1=require('../types/action');function getRoutes(_0x16d749={'prefix':'/','module':![]}){const _0x1ccb80=a8_0x3c6587;var _0x38c96a,_0x477ae8;const _0x576ef3=(0x0,core_3[_0x1ccb80(0x129)])(action_1[_0x1ccb80(0x12c)]),_0x2ba53f={},_0x42df0c=Array['isArray'](_0x16d749[_0x1ccb80(0xfb)]||[])?_0x16d749['filter']||[]:[_0x16d749['filter']];_0x2deafb:for(const _0xa4e049 of _0x576ef3){let _0x266f44=(0x0,core_3[_0x1ccb80(0xe7)])(action_1['ACTION_KEY'],_0xa4e049),_0x6c1154=(0x0,core_3['getClassMetadata'])(action_1[_0x1ccb80(0xea)],_0xa4e049);if(_0x266f44&&_0x6c1154){let _0x23d43c=_0x266f44[_0x1ccb80(0x133)],_0x47e068={};if(_0x16d749[_0x1ccb80(0x120)]&&(0x0,lodash_1[_0x1ccb80(0xfa)])(_0x266f44,'module',![])!=_0x16d749[_0x1ccb80(0x120)])continue _0x2deafb;else{if(_0x16d749['module']===![]&&!!(0x0,lodash_1['get'])(_0x266f44,_0x1ccb80(0x120),null))continue _0x2deafb;}if(_0x16d749[_0x1ccb80(0x133)]&&!_0x23d43c[_0x1ccb80(0xe4)](_0x16d749[_0x1ccb80(0x133)]))continue _0x2deafb;_0x23d43c!=='/'?(_0x47e068['summary']=(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44[_0x1ccb80(0xec)][_0x1ccb80(0x12a)])||(/^\//[_0x1ccb80(0x145)](_0x23d43c)?_0x23d43c[_0x1ccb80(0xf3)]('/')[0x1]:_0x23d43c),_0x47e068[_0x1ccb80(0x13b)]=(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44['routerOptions'][_0x1ccb80(0x13b)])||_0x47e068['summary'],_0x47e068['routes']=[]):(_0x47e068[_0x1ccb80(0xf4)]=(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44['routerOptions'][_0x1ccb80(0x12a)])||_0x1ccb80(0x146),_0x47e068[_0x1ccb80(0x13b)]=(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44['routerOptions'][_0x1ccb80(0x13b)])||'',_0x47e068[_0x1ccb80(0x124)]=[]);_0x16d749[_0x1ccb80(0x108)]&&(_0x47e068[_0x1ccb80(0x108)]=_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44['filepath']);(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44[_0x1ccb80(0x115)])&&(_0x47e068['prefix']=_0x266f44['pprefix']);(_0x266f44===null||_0x266f44===void 0x0?void 0x0:_0x266f44[_0x1ccb80(0x120)])&&(_0x47e068[_0x1ccb80(0x120)]=_0x266f44[_0x1ccb80(0x120)]);let _0x3b6a8f=(0x0,core_3[_0x1ccb80(0xe7)])(core_2[_0x1ccb80(0xf5)],_0xa4e049)||{};if(typeof _0x6c1154[Symbol[_0x1ccb80(0x111)]]===_0x1ccb80(0x140))for(let _0x12feb0 of _0x6c1154){if((_0x16d749===null||_0x16d749===void 0x0?void 0x0:_0x16d749[_0x1ccb80(0xfd)])&&!(_0x12feb0===null||_0x12feb0===void 0x0?void 0x0:_0x12feb0['intercept']))continue;let _0x453744={};_0x453744[_0x1ccb80(0x117)]=_0x12feb0[_0x1ccb80(0x127)],_0x453744[_0x1ccb80(0x128)]=(_0x23d43c+_0x12feb0[_0x1ccb80(0x121)])[_0x1ccb80(0xf7)](/\/{2,}/g,'/'),_0x453744['summary']=(_0x12feb0===null||_0x12feb0===void 0x0?void 0x0:_0x12feb0['routerName'])||_0x47e068[_0x1ccb80(0xf4)]||'default',_0x453744[_0x1ccb80(0x13b)]=(_0x12feb0===null||_0x12feb0===void 0x0?void 0x0:_0x12feb0['description'])||'',_0x453744[_0x1ccb80(0x12e)]=[];_0x453744[_0x1ccb80(0x128)]['endsWith']('/')&&(_0x453744[_0x1ccb80(0x128)]=_0x453744[_0x1ccb80(0x128)][_0x1ccb80(0x112)](0x0,_0x453744[_0x1ccb80(0x128)][_0x1ccb80(0xf0)]-0x1));if(!(0x0,lodash_1[_0x1ccb80(0xe4)])(_0x453744['route'],_0x1ccb80(0x135))&&!(0x0,lodash_1[_0x1ccb80(0xe4)])(_0x453744['route'],_0x1ccb80(0x126))&&_0x42df0c[_0x1ccb80(0x110)](_0x453744[_0x1ccb80(0x128)])===-0x1){if(!(_0x16d749===null||_0x16d749===void 0x0?void 0x0:_0x16d749['noreq'])){let _0x38dea7=(0x0,core_3[_0x1ccb80(0xf2)])(new _0xa4e049(),_0x12feb0[_0x1ccb80(0x117)]);for(const _0x4d13da in _0x38dea7){let _0x24eb5e=(_0x38c96a=_0x3b6a8f[_0x12feb0['method']])===null||_0x38c96a===void 0x0?void 0x0:_0x38c96a[_0x1ccb80(0x144)](_0xc3abc6=>_0xc3abc6[_0x1ccb80(0x136)]==_0x4d13da&&_0xc3abc6[_0x1ccb80(0x139)]===core_2[_0x1ccb80(0x107)]&&(_0xc3abc6===null||_0xc3abc6===void 0x0?void 0x0:_0xc3abc6[_0x1ccb80(0x105)]));if(_0x24eb5e===null||_0x24eb5e===void 0x0?void 0x0:_0x24eb5e[_0x1ccb80(0x105)]){let _0x9c07d0=convertTypeToString(_0x24eb5e['metadata']['type']||0x0);if([_0x1ccb80(0x100),'body'][_0x1ccb80(0x110)](_0x9c07d0)!=-0x1&&_0x24eb5e[_0x1ccb80(0x105)][_0x1ccb80(0xf1)][_0x1ccb80(0x110)](':')==-0x1&&!_0x453744[_0x1ccb80(0x12e)][_0x1ccb80(0x144)](_0x3bf584=>_0x3bf584['key']==_0x24eb5e[_0x1ccb80(0x105)][_0x1ccb80(0xf1)]))_0x453744[_0x1ccb80(0x12e)][_0x1ccb80(0x11f)]({'key':_0x24eb5e['metadata']['propertyData'],'title':_0x24eb5e[_0x1ccb80(0x105)][_0x1ccb80(0xf1)],'type':convertSchemaType(_0x38dea7[_0x24eb5e[_0x1ccb80(0x136)]][_0x1ccb80(0x13e)]),'required':![],'default':'','desc':''});else{if(_0x9c07d0==_0x1ccb80(0x11d)){let _0x1281c2=((_0x477ae8=_0x24eb5e===null||_0x24eb5e===void 0x0?void 0x0:_0x24eb5e['metadata'])===null||_0x477ae8===void 0x0?void 0x0:_0x477ae8[_0x1ccb80(0xf1)])||_0x1ccb80(0x11d);_0x1281c2['indexOf'](':')==-0x1&&!_0x453744['request'][_0x1ccb80(0x144)](_0x400a8b=>_0x400a8b[_0x1ccb80(0x139)]==_0x1281c2&&_0x400a8b[_0x1ccb80(0x141)]==_0x1ccb80(0x11d))&&_0x453744[_0x1ccb80(0x12e)][_0x1ccb80(0x11f)]({'key':_0x1281c2,'title':'文件上传-'+_0x1281c2,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5a2a5b=(0x0,core_3[_0x1ccb80(0x116)])(validator_1[_0x1ccb80(0x130)],_0x38dea7[_0x4d13da]);_0x5a2a5b&&_0x453744[_0x1ccb80(0x12e)][_0x1ccb80(0x11f)](...getJoiRequest(_0x5a2a5b));}}}_0x47e068[_0x1ccb80(0x124)]['push'](_0x453744);}}if(_0x47e068[_0x1ccb80(0x124)][_0x1ccb80(0xf0)]>0x0){let _0x11e374=_0x2ba53f[_0x23d43c];_0x11e374?(_0x11e374[_0x1ccb80(0xf4)]!=_0x47e068[_0x1ccb80(0xf4)]&&(_0x11e374[_0x1ccb80(0xf4)]=_0x11e374['summary']+','+_0x47e068['summary']),_0x11e374[_0x1ccb80(0x13b)]!=_0x47e068[_0x1ccb80(0x13b)]&&(_0x11e374[_0x1ccb80(0x13b)]=_0x11e374[_0x1ccb80(0x13b)]+','+_0x47e068[_0x1ccb80(0x13b)]),_0x11e374['routes']=_0x11e374[_0x1ccb80(0x124)][_0x1ccb80(0x113)](_0x47e068[_0x1ccb80(0x124)]),_0x2ba53f[_0x23d43c]=_0x11e374):_0x2ba53f[_0x23d43c]=_0x47e068;}}}return _0x2ba53f;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x305374){const _0x5aebad=a8_0x3c6587,_0x5e1ef7=[];for(let _0x5dfbc4 in _0x305374){const _0x162ad2={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x38604e=typeof _0x305374[_0x5dfbc4][_0x5aebad(0x11e)]==_0x5aebad(0x140)?_0x305374[_0x5dfbc4][_0x5aebad(0x11e)]():_0x305374[_0x5dfbc4];_0x162ad2['key']=_0x5dfbc4,_0x162ad2['type']=_0x38604e[_0x5aebad(0x141)],_0x162ad2[_0x5aebad(0x132)]=(0x0,lodash_1['get'])(_0x38604e,_0x5aebad(0x101),_0x5dfbc4),_0x162ad2[_0x5aebad(0x146)]=(0x0,lodash_1[_0x5aebad(0xfa)])(_0x38604e,_0x5aebad(0x10a),''),_0x162ad2[_0x5aebad(0x13f)]=(0x0,lodash_1[_0x5aebad(0xfa)])(_0x38604e,'flags.presence','')==_0x5aebad(0x13f),_0x162ad2['description']=(0x0,lodash_1[_0x5aebad(0xfa)])(_0x38604e,_0x5aebad(0x10c),'');if(_0x38604e[_0x5aebad(0x141)]==_0x5aebad(0x12b))_0x162ad2[_0x5aebad(0xe5)]=getJoiRequest(_0x38604e['keys']);else{if(_0x38604e['type']==_0x5aebad(0xfc)&&_0x38604e[_0x5aebad(0x10e)]&&Array[_0x5aebad(0x12d)](_0x38604e[_0x5aebad(0x10e)])&&_0x38604e[_0x5aebad(0x10e)][0x0]){}}_0x38604e['allow']&&Array['isArray'](_0x38604e[_0x5aebad(0xfe)])&&_0x38604e[_0x5aebad(0xfe)][_0x5aebad(0xf0)]>0x0&&(_0x162ad2[_0x5aebad(0x13b)]=_0x5aebad(0xe8)+_0x38604e[_0x5aebad(0xfe)][_0x5aebad(0xed)](',')+'];'+_0x162ad2[_0x5aebad(0x13b)]);if(_0x162ad2[_0x5aebad(0x139)]&&_0x162ad2[_0x5aebad(0x141)]){const _0x1e56ab={};for(const _0x2cb5e8 of _0x38604e[_0x5aebad(0x11a)]||[]){if(_0x2cb5e8[_0x5aebad(0x13e)]===_0x5aebad(0x134)&&_0x2cb5e8[_0x5aebad(0x10b)])_0x1e56ab['min']=_0x2cb5e8[_0x5aebad(0x10b)][_0x5aebad(0x13a)];else _0x2cb5e8['name']==='max'&&(_0x1e56ab[_0x5aebad(0x138)]=_0x2cb5e8[_0x5aebad(0x10b)][_0x5aebad(0x13a)]);}_0x162ad2[_0x5aebad(0x11a)]=_0x1e56ab;}_0x162ad2['key']&&_0x162ad2[_0x5aebad(0x132)]&&_0x5e1ef7[_0x5aebad(0x11f)](_0x162ad2);}return _0x5e1ef7;}function convertSchemaType(_0x110a1a){const _0xf8d8ec=a8_0x3c6587;switch(_0x110a1a){case _0xf8d8ec(0x102):return'object';case'Boolean':return _0xf8d8ec(0xf6);case'Number':return _0xf8d8ec(0x142);case _0xf8d8ec(0xe6):return'string';case _0xf8d8ec(0x109):return _0xf8d8ec(0x11d);default:return'string';}}function convertTypeToString(_0x328ebc){const _0x5d4afb=a8_0x3c6587;switch(_0x328ebc){case core_1[_0x5d4afb(0x104)][_0x5d4afb(0x118)]:return _0x5d4afb(0x10d);case core_1['RouteParamTypes'][_0x5d4afb(0x12f)]:return _0x5d4afb(0x100);case core_1[_0x5d4afb(0x104)][_0x5d4afb(0x143)]:return _0x5d4afb(0x121);case core_1[_0x5d4afb(0x104)][_0x5d4afb(0x10f)]:return _0x5d4afb(0xf8);case core_1[_0x5d4afb(0x104)][_0x5d4afb(0x13d)]:case core_1[_0x5d4afb(0x104)][_0x5d4afb(0xee)]:case core_1[_0x5d4afb(0x104)][_0x5d4afb(0xf9)]:return _0x5d4afb(0x11d);default:return _0x5d4afb(0x10d);}}
|
|
1
|
+
const a8_0x80f46b=a8_0x3006;(function(_0x15a8c2,_0x2b1e71){const _0x1a634f=a8_0x3006,_0x591022=_0x15a8c2();while(!![]){try{const _0x5ad0de=-parseInt(_0x1a634f(0x144))/0x1*(-parseInt(_0x1a634f(0x176))/0x2)+parseInt(_0x1a634f(0x156))/0x3*(parseInt(_0x1a634f(0x16d))/0x4)+-parseInt(_0x1a634f(0x150))/0x5+-parseInt(_0x1a634f(0x12f))/0x6+parseInt(_0x1a634f(0x160))/0x7*(-parseInt(_0x1a634f(0x12d))/0x8)+-parseInt(_0x1a634f(0x185))/0x9+-parseInt(_0x1a634f(0x153))/0xa*(-parseInt(_0x1a634f(0x171))/0xb);if(_0x5ad0de===_0x2b1e71)break;else _0x591022['push'](_0x591022['shift']());}catch(_0x3d955a){_0x591022['push'](_0x591022['shift']());}}}(a8_0x302c,0x34daa));const a8_0x3be66f=(function(){let _0x40dc80=!![];return function(_0x1dfd7a,_0x2c823d){const _0x33b69f=_0x40dc80?function(){const _0x4deff0=a8_0x3006;if(_0x2c823d){const _0x9199ed=_0x2c823d[_0x4deff0(0x15e)](_0x1dfd7a,arguments);return _0x2c823d=null,_0x9199ed;}}:function(){};return _0x40dc80=![],_0x33b69f;};}()),a8_0x40e374=a8_0x3be66f(this,function(){const _0x145444=a8_0x3006;return a8_0x40e374[_0x145444(0x173)]()[_0x145444(0x184)](_0x145444(0x13c))[_0x145444(0x173)]()[_0x145444(0x151)](a8_0x40e374)[_0x145444(0x184)](_0x145444(0x13c));});function a8_0x3006(_0x2fd499,_0x2fe2d0){const _0x3d606f=a8_0x302c();return a8_0x3006=function(_0x40e374,_0x3be66f){_0x40e374=_0x40e374-0x129;let _0x302c04=_0x3d606f[_0x40e374];return _0x302c04;},a8_0x3006(_0x2fd499,_0x2fe2d0);}a8_0x40e374();'use strict';Object[a8_0x80f46b(0x142)](exports,a8_0x80f46b(0x17a),{'value':!![]}),exports['getRoutes']=void 0x0;const lodash_1=require(a8_0x80f46b(0x152)),validator_1=require(a8_0x80f46b(0x17b)),core_1=require(a8_0x80f46b(0x179)),core_2=require(a8_0x80f46b(0x179)),core_3=require(a8_0x80f46b(0x179)),action_1=require(a8_0x80f46b(0x149));function getRoutes(_0x2b4db3={'prefix':'/','module':![]}){const _0x24b24c=a8_0x80f46b;var _0x4c6957,_0x1ab379;const _0x5c7a27=(0x0,core_3[_0x24b24c(0x182)])(action_1['ACTION_KEY']),_0x2e463f={},_0x2bf6ef=Array['isArray'](_0x2b4db3[_0x24b24c(0x146)]||[])?_0x2b4db3[_0x24b24c(0x146)]||[]:[_0x2b4db3[_0x24b24c(0x146)]];_0x4a4f00:for(const _0x59c373 of _0x5c7a27){let _0x597310=(0x0,core_3['getClassMetadata'])(action_1[_0x24b24c(0x137)],_0x59c373),_0x2099a6=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x59c373);if(_0x597310&&_0x2099a6){let _0x526537=_0x597310['prefix'],_0x275430={};if(_0x2b4db3[_0x24b24c(0x158)]&&(0x0,lodash_1[_0x24b24c(0x175)])(_0x597310,_0x24b24c(0x158),![])!=_0x2b4db3[_0x24b24c(0x158)])continue _0x4a4f00;else{if(_0x2b4db3[_0x24b24c(0x158)]===![]&&!!(0x0,lodash_1[_0x24b24c(0x175)])(_0x597310,'module',null))continue _0x4a4f00;}if(_0x2b4db3['prefix']&&!_0x526537['startsWith'](_0x2b4db3[_0x24b24c(0x170)]))continue _0x4a4f00;_0x526537!=='/'?(_0x275430[_0x24b24c(0x15d)]=(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310[_0x24b24c(0x164)][_0x24b24c(0x12a)])||(/^\//[_0x24b24c(0x15b)](_0x526537)?_0x526537[_0x24b24c(0x18c)]('/')[0x1]:_0x526537),_0x275430[_0x24b24c(0x147)]=(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310[_0x24b24c(0x164)]['description'])||_0x275430[_0x24b24c(0x15d)],_0x275430[_0x24b24c(0x18b)]=[]):(_0x275430[_0x24b24c(0x15d)]=(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310['routerOptions'][_0x24b24c(0x12a)])||_0x24b24c(0x17d),_0x275430[_0x24b24c(0x147)]=(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310['routerOptions']['description'])||'',_0x275430[_0x24b24c(0x18b)]=[]);_0x2b4db3[_0x24b24c(0x17e)]&&(_0x275430[_0x24b24c(0x17e)]=_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310['filepath']);(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310[_0x24b24c(0x177)])&&(_0x275430[_0x24b24c(0x170)]=_0x597310['pprefix']);(_0x597310===null||_0x597310===void 0x0?void 0x0:_0x597310[_0x24b24c(0x158)])&&(_0x275430['module']=_0x597310['module']);let _0x4fd846=(0x0,core_3[_0x24b24c(0x15c)])(core_2[_0x24b24c(0x166)],_0x59c373)||{};if(typeof _0x2099a6[Symbol['iterator']]===_0x24b24c(0x168))for(let _0x425b3b of _0x2099a6){if((_0x2b4db3===null||_0x2b4db3===void 0x0?void 0x0:_0x2b4db3['intercept'])&&!(_0x425b3b===null||_0x425b3b===void 0x0?void 0x0:_0x425b3b[_0x24b24c(0x16f)]))continue;let _0x53fbb6={};_0x53fbb6['method']=_0x425b3b['requestMethod'],_0x53fbb6['route']=(_0x526537+_0x425b3b[_0x24b24c(0x181)])['replace'](/\/{2,}/g,'/'),_0x53fbb6[_0x24b24c(0x15d)]=(_0x425b3b===null||_0x425b3b===void 0x0?void 0x0:_0x425b3b[_0x24b24c(0x183)])||_0x275430[_0x24b24c(0x15d)]||'default',_0x53fbb6[_0x24b24c(0x147)]=(_0x425b3b===null||_0x425b3b===void 0x0?void 0x0:_0x425b3b[_0x24b24c(0x147)])||'',_0x53fbb6['request']=[];_0x53fbb6[_0x24b24c(0x161)]['endsWith']('/')&&(_0x53fbb6[_0x24b24c(0x161)]=_0x53fbb6[_0x24b24c(0x161)][_0x24b24c(0x130)](0x0,_0x53fbb6[_0x24b24c(0x161)]['length']-0x1));if(!(0x0,lodash_1[_0x24b24c(0x163)])(_0x53fbb6[_0x24b24c(0x161)],'static/apitest')&&!(0x0,lodash_1[_0x24b24c(0x163)])(_0x53fbb6['route'],_0x24b24c(0x188))&&_0x2bf6ef[_0x24b24c(0x140)](_0x53fbb6[_0x24b24c(0x161)])===-0x1){if(!(_0x2b4db3===null||_0x2b4db3===void 0x0?void 0x0:_0x2b4db3[_0x24b24c(0x180)])){let _0x4445e7=(0x0,core_3[_0x24b24c(0x139)])(new _0x59c373(),_0x425b3b[_0x24b24c(0x187)]);for(const _0x3a7d10 in _0x4445e7){let _0xf7be25=(_0x4c6957=_0x4fd846[_0x425b3b[_0x24b24c(0x187)]])===null||_0x4c6957===void 0x0?void 0x0:_0x4c6957[_0x24b24c(0x16e)](_0x28a656=>_0x28a656[_0x24b24c(0x13e)]==_0x3a7d10&&_0x28a656[_0x24b24c(0x141)]===core_2[_0x24b24c(0x169)]&&(_0x28a656===null||_0x28a656===void 0x0?void 0x0:_0x28a656[_0x24b24c(0x159)]));if(_0xf7be25===null||_0xf7be25===void 0x0?void 0x0:_0xf7be25['metadata']){let _0x3cf85e=convertTypeToString(_0xf7be25[_0x24b24c(0x159)][_0x24b24c(0x178)]||0x0);if([_0x24b24c(0x165),_0x24b24c(0x13b)]['indexOf'](_0x3cf85e)!=-0x1&&_0xf7be25['metadata']['propertyData'][_0x24b24c(0x140)](':')==-0x1&&!_0x53fbb6[_0x24b24c(0x138)][_0x24b24c(0x16e)](_0x2bb10b=>_0x2bb10b[_0x24b24c(0x141)]==_0xf7be25[_0x24b24c(0x159)][_0x24b24c(0x145)]))_0x53fbb6['request'][_0x24b24c(0x157)]({'key':_0xf7be25['metadata'][_0x24b24c(0x145)],'title':_0xf7be25[_0x24b24c(0x159)][_0x24b24c(0x145)],'type':convertSchemaType(_0x4445e7[_0xf7be25[_0x24b24c(0x13e)]][_0x24b24c(0x17f)]),'required':![],'default':'','desc':''});else{if(_0x3cf85e==_0x24b24c(0x14b)){let _0x5a3a86=((_0x1ab379=_0xf7be25===null||_0xf7be25===void 0x0?void 0x0:_0xf7be25[_0x24b24c(0x159)])===null||_0x1ab379===void 0x0?void 0x0:_0x1ab379['propertyData'])||'file';_0x5a3a86[_0x24b24c(0x140)](':')==-0x1&&!_0x53fbb6[_0x24b24c(0x138)][_0x24b24c(0x16e)](_0x52fa30=>_0x52fa30['key']==_0x5a3a86&&_0x52fa30['type']==_0x24b24c(0x14b))&&_0x53fbb6[_0x24b24c(0x138)]['push']({'key':_0x5a3a86,'title':_0x24b24c(0x15a)+_0x5a3a86,'type':_0x24b24c(0x14b),'required':!![],'default':'','desc':''});}}}else{const _0x44329c=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x24b24c(0x16b)],_0x4445e7[_0x3a7d10]);_0x44329c&&_0x53fbb6['request']['push'](...getJoiRequest(_0x44329c));}}}_0x275430[_0x24b24c(0x18b)]['push'](_0x53fbb6);}}if(_0x275430['routes'][_0x24b24c(0x155)]>0x0){let _0x1fecee=_0x2e463f[_0x526537];_0x1fecee?(_0x1fecee[_0x24b24c(0x15d)]!=_0x275430[_0x24b24c(0x15d)]&&(_0x1fecee[_0x24b24c(0x15d)]=_0x1fecee[_0x24b24c(0x15d)]+','+_0x275430[_0x24b24c(0x15d)]),_0x1fecee[_0x24b24c(0x147)]!=_0x275430['description']&&(_0x1fecee['description']=_0x1fecee['description']+','+_0x275430[_0x24b24c(0x147)]),_0x1fecee[_0x24b24c(0x18b)]=_0x1fecee[_0x24b24c(0x18b)]['concat'](_0x275430[_0x24b24c(0x18b)]),_0x2e463f[_0x526537]=_0x1fecee):_0x2e463f[_0x526537]=_0x275430;}}}return _0x2e463f;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x24746e){const _0x5f2719=a8_0x80f46b,_0x42826e=[];for(let _0x583ea5 in _0x24746e){const _0x4a4375={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x142411=typeof _0x24746e[_0x583ea5][_0x5f2719(0x17c)]==_0x5f2719(0x168)?_0x24746e[_0x583ea5]['describe']():_0x24746e[_0x583ea5];_0x4a4375['key']=_0x583ea5,_0x4a4375[_0x5f2719(0x178)]=_0x142411[_0x5f2719(0x178)],_0x4a4375[_0x5f2719(0x135)]=(0x0,lodash_1['get'])(_0x142411,_0x5f2719(0x154),_0x583ea5),_0x4a4375[_0x5f2719(0x17d)]=(0x0,lodash_1[_0x5f2719(0x175)])(_0x142411,_0x5f2719(0x136),''),_0x4a4375['required']=(0x0,lodash_1[_0x5f2719(0x175)])(_0x142411,_0x5f2719(0x14f),'')==_0x5f2719(0x16c),_0x4a4375[_0x5f2719(0x147)]=(0x0,lodash_1[_0x5f2719(0x175)])(_0x142411,_0x5f2719(0x12e),'');if(_0x142411[_0x5f2719(0x178)]==_0x5f2719(0x133))_0x4a4375[_0x5f2719(0x134)]=getJoiRequest(_0x142411['keys']);else{if(_0x142411[_0x5f2719(0x178)]=='array'&&_0x142411[_0x5f2719(0x16a)]&&Array[_0x5f2719(0x148)](_0x142411[_0x5f2719(0x16a)])&&_0x142411[_0x5f2719(0x16a)][0x0]){}}_0x142411[_0x5f2719(0x186)]&&Array[_0x5f2719(0x148)](_0x142411[_0x5f2719(0x186)])&&_0x142411[_0x5f2719(0x186)][_0x5f2719(0x155)]>0x0&&(_0x4a4375['description']=_0x5f2719(0x131)+_0x142411[_0x5f2719(0x186)][_0x5f2719(0x15f)](',')+'];'+_0x4a4375[_0x5f2719(0x147)]);if(_0x4a4375[_0x5f2719(0x141)]&&_0x4a4375[_0x5f2719(0x178)]){const _0x4d2f83={};for(const _0x2021f2 of _0x142411[_0x5f2719(0x13f)]||[]){if(_0x2021f2[_0x5f2719(0x17f)]==='min'&&_0x2021f2[_0x5f2719(0x13a)])_0x4d2f83[_0x5f2719(0x162)]=_0x2021f2[_0x5f2719(0x13a)][_0x5f2719(0x14c)];else _0x2021f2[_0x5f2719(0x17f)]===_0x5f2719(0x14a)&&(_0x4d2f83[_0x5f2719(0x14a)]=_0x2021f2['args'][_0x5f2719(0x14c)]);}_0x4a4375['rules']=_0x4d2f83;}_0x4a4375[_0x5f2719(0x141)]&&_0x4a4375['title']&&_0x42826e[_0x5f2719(0x157)](_0x4a4375);}return _0x42826e;}function convertSchemaType(_0x21ee3b){const _0x48e850=a8_0x80f46b;switch(_0x21ee3b){case _0x48e850(0x14e):return _0x48e850(0x133);case _0x48e850(0x132):return'boolean';case _0x48e850(0x172):return _0x48e850(0x167);case _0x48e850(0x12b):return'string';case _0x48e850(0x143):return _0x48e850(0x14b);default:return _0x48e850(0x189);}}function a8_0x302c(){const _0x3df9de=['ACTION_KEY','request','getMethodParamTypes','args','body','(((.+)+)+)+$','FILESTREAM','parameterIndex','rules','indexOf','key','defineProperty','File','1DYhgvW','propertyData','filter','description','isArray','../types/action','max','file','limit','header','Object','flags.presence','1897215xiuDBI','constructor','lodash','6530CWPsZP','flags.label','length','224742PreJzR','push','module','metadata','文件上传-','test','getClassMetadata','summary','apply','join','2811109xHRVto','route','min','startsWith','routerOptions','query','INJECT_CUSTOM_PARAM','number','function','WEB_ROUTER_PARAM_KEY','items','RULES_KEY','required','12Czctid','find','intercept','prefix','16973BPPDkw','Number','toString','FIELDS','get','151812JtDyuG','pprefix','type','@midwayjs/core','__esModule','@anncic-api/validator','describe','default','filepath','name','noreq','path','listModule','routerName','search','2607183AtDIHr','allow','method','/static/apitest','string','HEADERS','routes','split','BODY','tagName','String','RouteParamTypes','8lcOcBQ','flags.description','126120FGqBKm','substring','只允许:[','Boolean','object','children','title','flags.default'];a8_0x302c=function(){return _0x3df9de;};return a8_0x302c();}function convertTypeToString(_0x17bed5){const _0xa0f3bc=a8_0x80f46b;switch(_0x17bed5){case core_1[_0xa0f3bc(0x12c)][_0xa0f3bc(0x18a)]:return'header';case core_1[_0xa0f3bc(0x12c)]['QUERY']:return _0xa0f3bc(0x165);case core_1['RouteParamTypes']['PARAM']:return'path';case core_1[_0xa0f3bc(0x12c)][_0xa0f3bc(0x129)]:return _0xa0f3bc(0x13b);case core_1[_0xa0f3bc(0x12c)][_0xa0f3bc(0x174)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0xa0f3bc(0x12c)][_0xa0f3bc(0x13d)]:return _0xa0f3bc(0x14b);default:return _0xa0f3bc(0x14d);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a9_0x1b247f=a9_0x3253;(function(_0x574ab5,_0x1d8083){var _0x1aee71=a9_0x3253,_0x1e46f7=_0x574ab5();while(!![]){try{var _0x4100f6=-parseInt(_0x1aee71(0x18a))/0x1+parseInt(_0x1aee71(0x16f))/0x2*(parseInt(_0x1aee71(0x179))/0x3)+-parseInt(_0x1aee71(0x16a))/0x4+-parseInt(_0x1aee71(0x165))/0x5+-parseInt(_0x1aee71(0x191))/0x6*(parseInt(_0x1aee71(0x187))/0x7)+-parseInt(_0x1aee71(0x161))/0x8+parseInt(_0x1aee71(0x162))/0x9;if(_0x4100f6===_0x1d8083)break;else _0x1e46f7['push'](_0x1e46f7['shift']());}catch(_0x2b255d){_0x1e46f7['push'](_0x1e46f7['shift']());}}}(a9_0x5958,0x29a09));var a9_0x14588d=(function(){var _0x5af604=!![];return function(_0x4d00bc,_0x3daf19){var _0x238f00=_0x5af604?function(){var _0x39163c=a9_0x3253;if(_0x3daf19){var _0x1629f7=_0x3daf19[_0x39163c(0x160)](_0x4d00bc,arguments);return _0x3daf19=null,_0x1629f7;}}:function(){};return _0x5af604=![],_0x238f00;};}()),a9_0x150c4b=a9_0x14588d(this,function(){var _0x2240d9=a9_0x3253;return a9_0x150c4b[_0x2240d9(0x175)]()[_0x2240d9(0x16e)](_0x2240d9(0x174))[_0x2240d9(0x175)]()[_0x2240d9(0x17b)](a9_0x150c4b)[_0x2240d9(0x16e)]('(((.+)+)+)+$');});a9_0x150c4b();'use strict';function a9_0x5958(){var _0x3dbdc7=['IIntercept','call','CacheService','getAppsConfig','Files','apply','2608168bvqMfq','7629417LcEFrO','Headers','./helper/getRoutes','175330WhXXvN','Logger','./decorator/Action','Param','getOwnPropertyDescriptor','136368VyebHa','App','__exportStar','hasOwnProperty','search','82bVUiQW','Scope','Provide','./service/ExcelService','Query','(((.+)+)+)+$','toString','Fields','create','Apitest','1578nHiqlC','__createBinding','constructor','defineProperty','Inject','./exception/ApiError','ApiService','ExcelService','CustomConfiguration','configurable','Intercept','Action','Init','ValidatorError','7CcHHcQ','@anncic-api/validator','@anncic-api/cache','48687cUCUdA','Singleton','./configuration','__esModule','EventService','./decorator/Intercept','Configuration','1529448tcxAiL','prototype','ApiError','./types/common','ScopeEnum','./service/ApitestService','./decorator/ActionApitest','getRoutes','File','./helper/getAppsConfig','Body','@midwayjs/core','Config','@anncic-api/event','ValidatorService'];a9_0x5958=function(){return _0x3dbdc7;};return a9_0x5958();}var __createBinding=this&&this[a9_0x1b247f(0x17a)]||(Object[a9_0x1b247f(0x177)]?function(_0x111c90,_0x1338ef,_0x1fd38a,_0x506a49){var _0x5f1f70=a9_0x1b247f;if(_0x506a49===undefined)_0x506a49=_0x1fd38a;var _0x5cc3bd=Object[_0x5f1f70(0x169)](_0x1338ef,_0x1fd38a);(!_0x5cc3bd||('get'in _0x5cc3bd?!_0x1338ef[_0x5f1f70(0x18d)]:_0x5cc3bd['writable']||_0x5cc3bd[_0x5f1f70(0x182)]))&&(_0x5cc3bd={'enumerable':!![],'get':function(){return _0x1338ef[_0x1fd38a];}}),Object['defineProperty'](_0x111c90,_0x506a49,_0x5cc3bd);}:function(_0x49f3e2,_0x2dc795,_0x1f1ff3,_0x5b5837){if(_0x5b5837===undefined)_0x5b5837=_0x1f1ff3;_0x49f3e2[_0x5b5837]=_0x2dc795[_0x1f1ff3];}),__exportStar=this&&this[a9_0x1b247f(0x16c)]||function(_0x432ee9,_0x2c22c3){var _0x19d69a=a9_0x1b247f;for(var _0x56205a in _0x432ee9)if(_0x56205a!=='default'&&!Object[_0x19d69a(0x192)][_0x19d69a(0x16d)][_0x19d69a(0x15c)](_0x2c22c3,_0x56205a))__createBinding(_0x2c22c3,_0x432ee9,_0x56205a);};Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x18d),{'value':!![]}),exports[a9_0x1b247f(0x15e)]=exports[a9_0x1b247f(0x195)]=exports[a9_0x1b247f(0x18b)]=exports[a9_0x1b247f(0x170)]=exports[a9_0x1b247f(0x17d)]=exports[a9_0x1b247f(0x171)]=exports[a9_0x1b247f(0x166)]=exports[a9_0x1b247f(0x158)]=exports[a9_0x1b247f(0x16b)]=exports['Init']=exports['Headers']=exports[a9_0x1b247f(0x173)]=exports['Param']=exports[a9_0x1b247f(0x156)]=exports[a9_0x1b247f(0x176)]=exports[a9_0x1b247f(0x15f)]=exports[a9_0x1b247f(0x154)]=exports[a9_0x1b247f(0x190)]=exports[a9_0x1b247f(0x15a)]=exports['ValidatorError']=exports[a9_0x1b247f(0x180)]=exports[a9_0x1b247f(0x17f)]=exports[a9_0x1b247f(0x18e)]=exports['CacheService']=exports[a9_0x1b247f(0x193)]=exports['getRoutes']=exports['IIntercept']=exports[a9_0x1b247f(0x183)]=exports[a9_0x1b247f(0x178)]=exports['Action']=void 0x0;const getAppsConfig_1=require(a9_0x1b247f(0x155));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x15e),{'enumerable':!![],'get':function(){var _0x58d4fe=a9_0x1b247f;return getAppsConfig_1[_0x58d4fe(0x15e)];}}),__exportStar(require(a9_0x1b247f(0x194)),exports),__exportStar(require(a9_0x1b247f(0x196)),exports);var Action_1=require(a9_0x1b247f(0x167));Object[a9_0x1b247f(0x17c)](exports,'Action',{'enumerable':!![],'get':function(){var _0x5cbac1=a9_0x1b247f;return Action_1[_0x5cbac1(0x184)];}});var ActionApitest_1=require(a9_0x1b247f(0x197));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x178),{'enumerable':!![],'get':function(){var _0x2aa1b6=a9_0x1b247f;return ActionApitest_1[_0x2aa1b6(0x178)];}});var Intercept_1=require(a9_0x1b247f(0x18f));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x183),{'enumerable':!![],'get':function(){var _0x55e978=a9_0x1b247f;return Intercept_1[_0x55e978(0x183)];}}),Object['defineProperty'](exports,a9_0x1b247f(0x15b),{'enumerable':!![],'get':function(){var _0x12d5b4=a9_0x1b247f;return Intercept_1[_0x12d5b4(0x15b)];}});var getRoutes_1=require(a9_0x1b247f(0x164));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x198),{'enumerable':!![],'get':function(){var _0x22604f=a9_0x1b247f;return getRoutes_1[_0x22604f(0x198)];}});var ApiError_1=require(a9_0x1b247f(0x17e));Object['defineProperty'](exports,a9_0x1b247f(0x193),{'enumerable':!![],'get':function(){var _0x59b80f=a9_0x1b247f;return ApiError_1[_0x59b80f(0x193)];}});var cache_1=require(a9_0x1b247f(0x189));Object['defineProperty'](exports,a9_0x1b247f(0x15d),{'enumerable':!![],'get':function(){var _0x1bf681=a9_0x1b247f;return cache_1[_0x1bf681(0x15d)];}});var event_1=require(a9_0x1b247f(0x159));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x18e),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x17f),{'enumerable':!![],'get':function(){var _0x44234b=a9_0x1b247f;return ApiService_1[_0x44234b(0x17f)];}});var ExcelService_1=require(a9_0x1b247f(0x172));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x180),{'enumerable':!![],'get':function(){var _0x6aec14=a9_0x1b247f;return ExcelService_1[_0x6aec14(0x180)];}});var validator_1=require(a9_0x1b247f(0x188));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x186),{'enumerable':!![],'get':function(){var _0x3f2977=a9_0x1b247f;return validator_1[_0x3f2977(0x186)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x15a),{'enumerable':!![],'get':function(){var _0x3e7afe=a9_0x1b247f;return validator_1[_0x3e7afe(0x15a)];}});var configuration_1=require(a9_0x1b247f(0x18c));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x190),{'enumerable':!![],'get':function(){var _0x29d067=a9_0x1b247f;return configuration_1[_0x29d067(0x181)];}});var core_1=require(a9_0x1b247f(0x157));function a9_0x3253(_0x1790ac,_0x531415){var _0x59e265=a9_0x5958();return a9_0x3253=function(_0x150c4b,_0x14588d){_0x150c4b=_0x150c4b-0x154;var _0x595802=_0x59e265[_0x150c4b];return _0x595802;},a9_0x3253(_0x1790ac,_0x531415);}Object['defineProperty'](exports,'File',{'enumerable':!![],'get':function(){var _0x26f6f8=a9_0x1b247f;return core_1[_0x26f6f8(0x154)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x15f),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x176),{'enumerable':!![],'get':function(){var _0x26a0db=a9_0x1b247f;return core_1[_0x26a0db(0x176)];}}),Object[a9_0x1b247f(0x17c)](exports,'Body',{'enumerable':!![],'get':function(){var _0x23c09e=a9_0x1b247f;return core_1[_0x23c09e(0x156)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x168),{'enumerable':!![],'get':function(){var _0x10b864=a9_0x1b247f;return core_1[_0x10b864(0x168)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x173),{'enumerable':!![],'get':function(){var _0x41ba6d=a9_0x1b247f;return core_1[_0x41ba6d(0x173)];}}),Object['defineProperty'](exports,a9_0x1b247f(0x163),{'enumerable':!![],'get':function(){var _0x5726ed=a9_0x1b247f;return core_1[_0x5726ed(0x163)];}}),Object['defineProperty'](exports,a9_0x1b247f(0x185),{'enumerable':!![],'get':function(){var _0x4b33e6=a9_0x1b247f;return core_1[_0x4b33e6(0x185)];}});var core_2=require(a9_0x1b247f(0x157));Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x16b),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object[a9_0x1b247f(0x17c)](exports,'Config',{'enumerable':!![],'get':function(){return core_2['Config'];}}),Object[a9_0x1b247f(0x17c)](exports,'Logger',{'enumerable':!![],'get':function(){var _0x5df3b3=a9_0x1b247f;return core_2[_0x5df3b3(0x166)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x171),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x17d),{'enumerable':!![],'get':function(){var _0x36ba06=a9_0x1b247f;return core_2[_0x36ba06(0x17d)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x170),{'enumerable':!![],'get':function(){var _0x8dc158=a9_0x1b247f;return core_2[_0x8dc158(0x170)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x18b),{'enumerable':!![],'get':function(){var _0x170809=a9_0x1b247f;return core_2[_0x170809(0x18b)];}}),Object[a9_0x1b247f(0x17c)](exports,a9_0x1b247f(0x195),{'enumerable':!![],'get':function(){var _0x6039f8=a9_0x1b247f;return core_2[_0x6039f8(0x195)];}}),global[a9_0x1b247f(0x15e)]=getAppsConfig_1[a9_0x1b247f(0x15e)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10_0x2097(_0x33eeca,_0x19d013){var _0x3289d0=a10_0x5b1c();return a10_0x2097=function(_0x6ed4d6,_0x299b1f){_0x6ed4d6=_0x6ed4d6-0x100;var _0x5b1cf4=_0x3289d0[_0x6ed4d6];return _0x5b1cf4;},a10_0x2097(_0x33eeca,_0x19d013);}function a10_0x5b1c(){var _0x183fbd=['defineProperty','__metadata','config','getcheck','42gzUiZv','ApiError','16eczYgN','ScopeEnum','anncicapi','entries','secret','length','push','HEADERS_SIGNATURE','abs','2503068EPdRqW','1932sOLfiW','HEADERS_DEVICE','secret=','1151619IqSLwX','getsign','toLowerCase','12949618oTzzrh','TIMEOUT','device','Singleton','验证失败','prototype','requesttime','metadata','checksign','join','10gkBnsW','devices','ApiService','signature','timeout','logintime','2427416txkOeX','1879mqdkWW','7gIUiff','token','fromEntries','constructor','sort','../exception/ApiError','map','MD5','object','search','getOwnPropertyDescriptor','undefined','apply','function','toString','now','password','HEADERS_LACK','@midwayjs/core','checkcode','decorate','Scope','__decorate','8544555uRodLY','24380eQxUqQ'];a10_0x5b1c=function(){return _0x183fbd;};return a10_0x5b1c();}var a10_0x113733=a10_0x2097;(function(_0x181ee9,_0x367bc9){var _0x44d95f=a10_0x2097,_0x35731d=_0x181ee9();while(!![]){try{var _0x420aee=parseInt(_0x44d95f(0x139))/0x1*(parseInt(_0x44d95f(0x116))/0x2)+parseInt(_0x44d95f(0x125))/0x3*(-parseInt(_0x44d95f(0x118))/0x4)+-parseInt(_0x44d95f(0x111))/0x5*(-parseInt(_0x44d95f(0x122))/0x6)+-parseInt(_0x44d95f(0x13a))/0x7*(-parseInt(_0x44d95f(0x138))/0x8)+-parseInt(_0x44d95f(0x110))/0x9+parseInt(_0x44d95f(0x132))/0xa*(parseInt(_0x44d95f(0x128))/0xb)+parseInt(_0x44d95f(0x121))/0xc;if(_0x420aee===_0x367bc9)break;else _0x35731d['push'](_0x35731d['shift']());}catch(_0x4deb23){_0x35731d['push'](_0x35731d['shift']());}}}(a10_0x5b1c,0xc6b4a));var a10_0x299b1f=(function(){var _0x484b15=!![];return function(_0x16f19b,_0x177231){var _0x254f27=_0x484b15?function(){var _0x2e95df=a10_0x2097;if(_0x177231){var _0x33d579=_0x177231[_0x2e95df(0x105)](_0x16f19b,arguments);return _0x177231=null,_0x33d579;}}:function(){};return _0x484b15=![],_0x254f27;};}()),a10_0x6ed4d6=a10_0x299b1f(this,function(){var _0x2abbe2=a10_0x2097;return a10_0x6ed4d6[_0x2abbe2(0x107)]()[_0x2abbe2(0x102)]('(((.+)+)+)+$')[_0x2abbe2(0x107)]()[_0x2abbe2(0x13d)](a10_0x6ed4d6)[_0x2abbe2(0x102)]('(((.+)+)+)+$');});a10_0x6ed4d6();'use strict';var __decorate=this&&this[a10_0x113733(0x10f)]||function(_0x565bf6,_0x5a9182,_0x1fbcdf,_0x3c8594){var _0x55a266=a10_0x113733,_0x214673=arguments['length'],_0x452d1d=_0x214673<0x3?_0x5a9182:_0x3c8594===null?_0x3c8594=Object[_0x55a266(0x103)](_0x5a9182,_0x1fbcdf):_0x3c8594,_0x75f615;if(typeof Reflect===_0x55a266(0x101)&&typeof Reflect['decorate']==='function')_0x452d1d=Reflect[_0x55a266(0x10d)](_0x565bf6,_0x5a9182,_0x1fbcdf,_0x3c8594);else{for(var _0x2799c5=_0x565bf6[_0x55a266(0x11d)]-0x1;_0x2799c5>=0x0;_0x2799c5--)if(_0x75f615=_0x565bf6[_0x2799c5])_0x452d1d=(_0x214673<0x3?_0x75f615(_0x452d1d):_0x214673>0x3?_0x75f615(_0x5a9182,_0x1fbcdf,_0x452d1d):_0x75f615(_0x5a9182,_0x1fbcdf))||_0x452d1d;}return _0x214673>0x3&&_0x452d1d&&Object[_0x55a266(0x112)](_0x5a9182,_0x1fbcdf,_0x452d1d),_0x452d1d;},__metadata=this&&this[a10_0x113733(0x113)]||function(_0x139117,_0x551524){var _0x3188b8=a10_0x113733;if(typeof Reflect==='object'&&typeof Reflect[_0x3188b8(0x12f)]===_0x3188b8(0x106))return Reflect[_0x3188b8(0x12f)](_0x139117,_0x551524);};Object[a10_0x113733(0x112)](exports,'__esModule',{'value':!![]}),exports[a10_0x113733(0x134)]=void 0x0;const crypto_js_1=require('crypto-js'),core_1=require(a10_0x113733(0x10b)),ApiError_1=require(a10_0x113733(0x13f));let ApiService=exports['ApiService']=class ApiService{[a10_0x113733(0x109)](_0x4b3e86){var _0x2c8411=a10_0x113733,_0x4890ee;return _0x4b3e86?(0x0,crypto_js_1[_0x2c8411(0x100)])(''+_0x4b3e86+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x2c8411(0x100)])(''+_0x4b3e86)['toString']()+(''+((_0x4890ee=this['config'])===null||_0x4890ee===void 0x0?void 0x0:_0x4890ee['password'])))[_0x2c8411(0x107)]())['toString']():'';}[a10_0x113733(0x115)](_0x359ec5,_0x55ef4a,_0xa4c91=Date['now']()){return{'Token':_0x359ec5,'Logintime':_0xa4c91,'Checkcode':this['checkcode'](_0x359ec5,_0x55ef4a,_0xa4c91)};}[a10_0x113733(0x126)](_0x1725e1={}){var _0x32374a=a10_0x113733,_0x117b84,_0x18b260;const _0x1d5a34=[],_0x4264ff=Object[_0x32374a(0x13c)](Object[_0x32374a(0x11b)](_0x1725e1)['map'](_0x30d342=>[_0x30d342[0x0][_0x32374a(0x127)](),_0x30d342[0x1]]));for(let _0x3a62b4 of[_0x32374a(0x12a),_0x32374a(0x12e),_0x32374a(0x13b),'logintime',_0x32374a(0x10c)]){if(typeof _0x4264ff[_0x3a62b4]==_0x32374a(0x104))throw new AnnError(ApiError_1['ApiError'][_0x32374a(0x10a)],{'message':_0x32374a(0x12c)});_0x1d5a34[_0x32374a(0x11e)](_0x3a62b4+'='+_0x4264ff[_0x3a62b4]);}_0x4264ff['requesttime']&&((_0x117b84=_0x4264ff[_0x32374a(0x12e)])===null||_0x117b84===void 0x0?void 0x0:_0x117b84[_0x32374a(0x11d)])==0xa&&(_0x4264ff['requesttime']=_0x4264ff[_0x32374a(0x12e)]*0x3e8);if(this[_0x32374a(0x114)][_0x32374a(0x136)]&&Date[_0x32374a(0x108)]()-Math[_0x32374a(0x120)](_0x4264ff[_0x32374a(0x12e)])>this[_0x32374a(0x114)][_0x32374a(0x136)])throw new AnnError(ApiError_1[_0x32374a(0x117)][_0x32374a(0x129)],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x4264ff[_0x32374a(0x12e)],'timestamp':Date[_0x32374a(0x108)]()});if((((_0x18b260=this[_0x32374a(0x114)][_0x32374a(0x133)][_0x4264ff[_0x32374a(0x12a)]])===null||_0x18b260===void 0x0?void 0x0:_0x18b260['logintimeout'])||0x0)>0x0&&Date[_0x32374a(0x108)]()-Math[_0x32374a(0x120)](_0x4264ff[_0x32374a(0x137)])>this['config'][_0x32374a(0x133)][_0x4264ff[_0x32374a(0x12a)]]['logintimeout'])throw new AnnError(ApiError_1[_0x32374a(0x117)]['TIMEOUT_LOGINTIME']);if(!this[_0x32374a(0x114)][_0x32374a(0x133)][_0x4264ff['device']]||!this[_0x32374a(0x114)][_0x32374a(0x133)][_0x4264ff[_0x32374a(0x12a)]][_0x32374a(0x11c)]||!this[_0x32374a(0x114)][_0x32374a(0x133)][_0x4264ff[_0x32374a(0x12a)]]['checkcode'])throw new AnnError(ApiError_1['ApiError'][_0x32374a(0x123)]);if(_0x4264ff[_0x32374a(0x13b)]&&_0x4264ff[_0x32374a(0x10c)]!=this[_0x32374a(0x10c)](_0x4264ff[_0x32374a(0x13b)],_0x4264ff[_0x32374a(0x12a)],_0x4264ff['logintime']))throw new AnnError(ApiError_1[_0x32374a(0x117)]['HEADERS_CHECKCODE']);return _0x1d5a34[_0x32374a(0x11e)](_0x32374a(0x124)+this['config'][_0x32374a(0x133)][_0x4264ff[_0x32374a(0x12a)]][_0x32374a(0x11c)]),(0x0,crypto_js_1[_0x32374a(0x100)])(_0x1d5a34[_0x32374a(0x13e)]()[_0x32374a(0x131)](''))['toString']();}['checkcode'](_0x7de188,_0x3ad248,_0x2fc20e=Date[a10_0x113733(0x108)]()){var _0x1a16a4=a10_0x113733,_0x5b472d,_0x21197a,_0x4b412b;if(!((_0x5b472d=this['config'])===null||_0x5b472d===void 0x0?void 0x0:_0x5b472d['devices'][_0x3ad248])||!((_0x4b412b=(_0x21197a=this[_0x1a16a4(0x114)])===null||_0x21197a===void 0x0?void 0x0:_0x21197a[_0x1a16a4(0x133)][_0x3ad248])===null||_0x4b412b===void 0x0?void 0x0:_0x4b412b[_0x1a16a4(0x10c)]))throw new AnnError(ApiError_1['ApiError'][_0x1a16a4(0x123)]);return(0x0,crypto_js_1[_0x1a16a4(0x100)])(''+_0x7de188+(0x0,crypto_js_1[_0x1a16a4(0x100)])(''+_0x2fc20e+(''+this[_0x1a16a4(0x114)][_0x1a16a4(0x133)][_0x3ad248][_0x1a16a4(0x10c)]))[_0x1a16a4(0x107)]())['toString']();}[a10_0x113733(0x130)](_0x1d2f9f={}){var _0x5cc561=a10_0x113733;const _0x18f3b5=Object['fromEntries'](Object[_0x5cc561(0x11b)](_0x1d2f9f)[_0x5cc561(0x140)](_0x5c1380=>[_0x5c1380[0x0][_0x5cc561(0x127)](),_0x5c1380[0x1]]));if(!(_0x18f3b5===null||_0x18f3b5===void 0x0?void 0x0:_0x18f3b5['signature']))throw new AnnError(ApiError_1['ApiError'][_0x5cc561(0x10a)],{'message':_0x5cc561(0x12c)});if((_0x18f3b5===null||_0x18f3b5===void 0x0?void 0x0:_0x18f3b5[_0x5cc561(0x135)])!=this[_0x5cc561(0x126)](_0x18f3b5))throw new AnnError(ApiError_1[_0x5cc561(0x117)][_0x5cc561(0x11f)],{'message':_0x5cc561(0x12c)});return!![];}};__decorate([(0x0,core_1['Config'])(a10_0x113733(0x11a)),__metadata('design:type',Object)],ApiService[a10_0x113733(0x12d)],'config',void 0x0),exports[a10_0x113733(0x134)]=ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a10_0x113733(0x10e)])(core_1[a10_0x113733(0x119)][a10_0x113733(0x12b)])],ApiService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11_0x58215f=a11_0x3fb7;(function(_0x5909cf,_0xa9a85c){const _0x217398=a11_0x3fb7,_0x5d5d3f=_0x5909cf();while(!![]){try{const _0x396c8f=-parseInt(_0x217398(0x1f8))/0x1+-parseInt(_0x217398(0x208))/0x2+parseInt(_0x217398(0x1d3))/0x3+parseInt(_0x217398(0x1c5))/0x4+-parseInt(_0x217398(0x1eb))/0x5+-parseInt(_0x217398(0x213))/0x6*(-parseInt(_0x217398(0x1cc))/0x7)+parseInt(_0x217398(0x201))/0x8*(parseInt(_0x217398(0x1f4))/0x9);if(_0x396c8f===_0xa9a85c)break;else _0x5d5d3f['push'](_0x5d5d3f['shift']());}catch(_0x23c769){_0x5d5d3f['push'](_0x5d5d3f['shift']());}}}(a11_0x4099,0x2fae9));function a11_0x3fb7(_0x6c8dfa,_0x3ccf5b){const _0x8b5d8=a11_0x4099();return a11_0x3fb7=function(_0x27815d,_0x36b517){_0x27815d=_0x27815d-0x1c1;let _0x4099f0=_0x8b5d8[_0x27815d];return _0x4099f0;},a11_0x3fb7(_0x6c8dfa,_0x3ccf5b);}const a11_0x36b517=(function(){let _0x105218=!![];return function(_0xd7af1d,_0x2f52ff){const _0x458dbb=_0x105218?function(){const _0x2cb642=a11_0x3fb7;if(_0x2f52ff){const _0x69ed76=_0x2f52ff[_0x2cb642(0x1e5)](_0xd7af1d,arguments);return _0x2f52ff=null,_0x69ed76;}}:function(){};return _0x105218=![],_0x458dbb;};}()),a11_0x27815d=a11_0x36b517(this,function(){const _0x190228=a11_0x3fb7;return a11_0x27815d['toString']()[_0x190228(0x1e8)](_0x190228(0x1ed))[_0x190228(0x1c2)]()[_0x190228(0x1d4)](a11_0x27815d)[_0x190228(0x1e8)](_0x190228(0x1ed));});a11_0x27815d();'use strict';var __decorate=this&&this[a11_0x58215f(0x1ef)]||function(_0x4c3907,_0x20318f,_0x5325cf,_0x992dfe){const _0x2ff12d=a11_0x58215f;var _0x3341ac=arguments[_0x2ff12d(0x1d0)],_0x29bda1=_0x3341ac<0x3?_0x20318f:_0x992dfe===null?_0x992dfe=Object[_0x2ff12d(0x1f6)](_0x20318f,_0x5325cf):_0x992dfe,_0x43d455;if(typeof Reflect==='object'&&typeof Reflect[_0x2ff12d(0x1fa)]===_0x2ff12d(0x1e7))_0x29bda1=Reflect[_0x2ff12d(0x1fa)](_0x4c3907,_0x20318f,_0x5325cf,_0x992dfe);else{for(var _0x43dc51=_0x4c3907[_0x2ff12d(0x1d0)]-0x1;_0x43dc51>=0x0;_0x43dc51--)if(_0x43d455=_0x4c3907[_0x43dc51])_0x29bda1=(_0x3341ac<0x3?_0x43d455(_0x29bda1):_0x3341ac>0x3?_0x43d455(_0x20318f,_0x5325cf,_0x29bda1):_0x43d455(_0x20318f,_0x5325cf))||_0x29bda1;}return _0x3341ac>0x3&&_0x29bda1&&Object[_0x2ff12d(0x209)](_0x20318f,_0x5325cf,_0x29bda1),_0x29bda1;},__metadata=this&&this[a11_0x58215f(0x1dc)]||function(_0x31dbef,_0xf15b07){const _0x4569f9=a11_0x58215f;if(typeof Reflect==='object'&&typeof Reflect[_0x4569f9(0x1f0)]==='function')return Reflect[_0x4569f9(0x1f0)](_0x31dbef,_0xf15b07);},__param=this&&this['__param']||function(_0x3dab9c,_0x852871){return function(_0x12f850,_0x51dfa6){_0x852871(_0x12f850,_0x51dfa6,_0x3dab9c);};};Object[a11_0x58215f(0x209)](exports,a11_0x58215f(0x1c6),{'value':!![]}),exports[a11_0x58215f(0x20c)]=exports[a11_0x58215f(0x1e0)]=void 0x0;const path_1=require(a11_0x58215f(0x20a)),fs_1=require('fs'),core_1=require(a11_0x58215f(0x1f1)),core_2=require(a11_0x58215f(0x1f1)),core_3=require(a11_0x58215f(0x1f1)),getRoutes_1=require(a11_0x58215f(0x1fd));let ApitestService=exports[a11_0x58215f(0x1e0)]=class ApitestService{async[a11_0x58215f(0x1ea)](_0x4fe33a){const _0x453485=a11_0x58215f,_0x78935c=(0x0,getRoutes_1[_0x453485(0x203)])(_0x4fe33a),_0x300b40=[];for(let _0x3a581d in _0x78935c){for(let _0x149299 in _0x78935c[_0x3a581d][_0x453485(0x1ff)]){let _0x4041b5=_0x78935c[_0x3a581d][_0x453485(0x1ff)][_0x149299],_0x231519=[];for(let _0x3de78b in _0x4041b5[_0x453485(0x1e1)]){_0x231519[_0x453485(0x1f2)](_0x4041b5['request'][_0x3de78b]);}_0x300b40['push']({'title':_0x78935c[_0x3a581d][_0x453485(0x1ca)]+':'+_0x4041b5[_0x453485(0x1ca)],'prefix':_0x78935c[_0x3a581d][_0x453485(0x1c4)],'router':_0x4041b5[_0x453485(0x1cd)],'method':_0x4041b5['method'],'describe':_0x4041b5[_0x453485(0x1d7)]||'','filepath':_0x78935c[_0x3a581d]['filepath']||'','request':_0x231519});}}const _0x459efb=(0x0,path_1[_0x453485(0x1e3)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x453485(0x1d5)])(_0x459efb,{'encoding':_0x453485(0x1f7)})[_0x453485(0x1fc)](/__res__/g,_0x453485(0x1de))[_0x453485(0x1fc)](_0x453485(0x1c9),JSON[_0x453485(0x1f5)](_0x300b40))[_0x453485(0x1fc)](_0x453485(0x1ee),JSON[_0x453485(0x1f5)](this['config'][_0x453485(0x210)]));}};function a11_0x4099(){const _0x23acf8=['Inject','substring','isDevelopmentEnvironment','__metadata','anncicapi','/apiteststatic/','/index.html','ApitestService','request','config','join','application/javascript;\x20charset=utf-8','apply','Controller','function','search','Get','apidoc','707265LNixKE','.css','(((.+)+)+)+$','__devices__','__decorate','metadata','@midwayjs/core','push','Param','3924zepaIP','stringify','getOwnPropertyDescriptor','utf-8','88452hJBrEv','Request','decorate','filepath','replace','../helper/getRoutes','Singleton','routes','apiteststatic','1608wpHqAm','ctx','getRoutes','design:returntype','Environment','url','cache-control','707464ZCuyca','defineProperty','path','Scope','ApitestStaticController','apitestmodule','Config','apitest','devices','apitesthtml','extname','426XJNgzo','module','toString','/apitest','prefix','1309172XwfHKs','__esModule','design:type','public,\x20max-age=604800','__apiList__','summary','ScopeEnum','25522jneviB','route','design:paramtypes','prototype','length','set','.js','315441UtpYTX','constructor','readFileSync','../../public/','description','content-type'];a11_0x4099=function(){return _0x23acf8;};return a11_0x4099();}__decorate([(0x0,core_3[a11_0x58215f(0x20e)])(a11_0x58215f(0x1dd)),__metadata(a11_0x58215f(0x1c7),Object)],ApitestService['prototype'],a11_0x58215f(0x1e2),void 0x0),exports['ApitestService']=ApitestService=__decorate([(0x0,core_2['Provide'])(a11_0x58215f(0x20f)),(0x0,core_3[a11_0x58215f(0x20b)])(core_3[a11_0x58215f(0x1cb)][a11_0x58215f(0x1fe)])],ApitestService);let ApitestStaticController=exports[a11_0x58215f(0x20c)]=class ApitestStaticController{async[a11_0x58215f(0x211)](){const _0x5c27cf=a11_0x58215f;if(this[_0x5c27cf(0x20f)]){const _0x1bd1d4={'module':![]};return this[_0x5c27cf(0x205)][_0x5c27cf(0x1db)]()&&(_0x1bd1d4[_0x5c27cf(0x1fb)]=!![]),await this['ApitestService'][_0x5c27cf(0x1ea)](_0x1bd1d4);}return'';}async[a11_0x58215f(0x20d)](_0x4cbd29){const _0x30119f=a11_0x58215f;if(this[_0x30119f(0x20f)]){const _0x16b3fc={'module':_0x4cbd29};return this['Environment']['isDevelopmentEnvironment']()&&(_0x16b3fc[_0x30119f(0x1fb)]=!![]),await this[_0x30119f(0x1e0)][_0x30119f(0x1ea)](_0x16b3fc);}return'';}async[a11_0x58215f(0x200)](){const _0x397ce8=a11_0x58215f;if((0x0,path_1[_0x397ce8(0x212)])(this['ctx'][_0x397ce8(0x1e1)]['url'])){var _0x5bb899=(0x0,path_1['join'])(__dirname,_0x397ce8(0x1d6)+this[_0x397ce8(0x202)]['request'][_0x397ce8(0x206)][_0x397ce8(0x1fc)]('/apiteststatic/','/'));if(_0x5bb899[_0x397ce8(0x1da)](_0x5bb899[_0x397ce8(0x1d0)]-0xb)!=_0x397ce8(0x1df)){this[_0x397ce8(0x202)]['set'](_0x397ce8(0x207),_0x397ce8(0x1c8));if((0x0,path_1['extname'])(this[_0x397ce8(0x202)][_0x397ce8(0x1e1)][_0x397ce8(0x206)])==_0x397ce8(0x1d2))this[_0x397ce8(0x202)][_0x397ce8(0x1d1)]('content-type',_0x397ce8(0x1e4));else(0x0,path_1['extname'])(this[_0x397ce8(0x202)][_0x397ce8(0x1e1)]['url'])==_0x397ce8(0x1ec)&&this['ctx']['set'](_0x397ce8(0x1d8),'text/css;\x20charset=utf-8');return(0x0,fs_1['existsSync'])(_0x5bb899)&&(0x0,fs_1['readFileSync'])(_0x5bb899,{'encoding':_0x397ce8(0x1f7)});}}return'';}};__decorate([(0x0,core_3[a11_0x58215f(0x1d9)])(),__metadata(a11_0x58215f(0x1c7),Object)],ApitestStaticController['prototype'],a11_0x58215f(0x202),void 0x0),__decorate([(0x0,core_3[a11_0x58215f(0x1d9)])(),__metadata('design:type',core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x58215f(0x1cf)],a11_0x58215f(0x205),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController[a11_0x58215f(0x1cf)],a11_0x58215f(0x1e0),void 0x0),__decorate([(0x0,core_3[a11_0x58215f(0x20e)])('apitest'),__metadata(a11_0x58215f(0x1c7),Boolean)],ApitestStaticController[a11_0x58215f(0x1cf)],a11_0x58215f(0x20f),void 0x0),__decorate([(0x0,core_3[a11_0x58215f(0x20e)])(a11_0x58215f(0x1dd)),__metadata(a11_0x58215f(0x1c7),Object)],ApitestStaticController[a11_0x58215f(0x1cf)],'config',void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x58215f(0x1c3)),__metadata(a11_0x58215f(0x1c7),Function),__metadata(a11_0x58215f(0x1ce),[]),__metadata(a11_0x58215f(0x204),Promise)],ApitestStaticController['prototype'],a11_0x58215f(0x211),null),__decorate([(0x0,core_2[a11_0x58215f(0x1e9)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x58215f(0x1f3)])(a11_0x58215f(0x1c1))),__metadata(a11_0x58215f(0x1c7),Function),__metadata(a11_0x58215f(0x1ce),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x58215f(0x1cf)],'apitestmodule',null),__decorate([(0x0,core_2[a11_0x58215f(0x1e9)])('/apiteststatic/*'),__metadata(a11_0x58215f(0x1c7),Function),__metadata(a11_0x58215f(0x1ce),[]),__metadata(a11_0x58215f(0x204),Promise)],ApitestStaticController[a11_0x58215f(0x1cf)],'apiteststatic',null),exports['ApitestStaticController']=ApitestStaticController=__decorate([(0x0,core_2[a11_0x58215f(0x1e6)])('/'),(0x0,core_3[a11_0x58215f(0x20b)])(core_3[a11_0x58215f(0x1cb)][a11_0x58215f(0x1f9)])],ApitestStaticController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x30e746=a12_0x406e;(function(_0x3402dc,_0xc1aecb){const _0x43edf5=a12_0x406e,_0x5ac38d=_0x3402dc();while(!![]){try{const _0xbff99=parseInt(_0x43edf5(0xbc))/0x1+parseInt(_0x43edf5(0xb9))/0x2*(parseInt(_0x43edf5(0xeb))/0x3)+-parseInt(_0x43edf5(0xac))/0x4*(-parseInt(_0x43edf5(0xd5))/0x5)+-parseInt(_0x43edf5(0xd1))/0x6+parseInt(_0x43edf5(0xc0))/0x7*(parseInt(_0x43edf5(0xcd))/0x8)+-parseInt(_0x43edf5(0xdf))/0x9*(-parseInt(_0x43edf5(0xcf))/0xa)+-parseInt(_0x43edf5(0xb0))/0xb;if(_0xbff99===_0xc1aecb)break;else _0x5ac38d['push'](_0x5ac38d['shift']());}catch(_0xbf236c){_0x5ac38d['push'](_0x5ac38d['shift']());}}}(a12_0x2411,0xcfa8d));const a12_0x1aa273=(function(){let _0x396905=!![];return function(_0x354df2,_0x572605){const _0x42ce0d=_0x396905?function(){const _0x3024e8=a12_0x406e;if(_0x572605){const _0x12378f=_0x572605[_0x3024e8(0xc3)](_0x354df2,arguments);return _0x572605=null,_0x12378f;}}:function(){};return _0x396905=![],_0x42ce0d;};}()),a12_0x1ae206=a12_0x1aa273(this,function(){const _0x437933=a12_0x406e;return a12_0x1ae206[_0x437933(0xbd)]()['search'](_0x437933(0xe7))[_0x437933(0xbd)]()['constructor'](a12_0x1ae206)[_0x437933(0xe8)](_0x437933(0xe7));});a12_0x1ae206();function a12_0x406e(_0x3be9cc,_0x503ccb){const _0x49c3a9=a12_0x2411();return a12_0x406e=function(_0x1ae206,_0x1aa273){_0x1ae206=_0x1ae206-0xac;let _0x241131=_0x49c3a9[_0x1ae206];return _0x241131;},a12_0x406e(_0x3be9cc,_0x503ccb);}function a12_0x2411(){const _0x36ef05=['isNumber','\x20is\x20read\x20fail','design:type','46035Pnlgbx','xlsx','object','parse','substring','addRow','decorate','exceljs','(((.+)+)+)+$','search','getAppDir','__esModule','6TRwMAf','mkdirSync','getCell','21740GmMNSp','addWorksheet','header','ExcelService','62623660cHfCDq','values','cellCount','columns','eachCell','startsWith','col','getOwnPropertyDescriptor','Singleton','1087618dXwnUn','Api\x20Excel\x20Error:\x20','replace','1685554sYlYpa','toString','set','get','8239CfguVh','getRow','app','apply','export','keys','handler','YYYY/MM/DD','value','Provide','push','model','/public/xlsx/','11056FnUTvm','Scope','2660RhForW','filter','3094248cutToM','Sheet\x201','defineProperty','.xlsx','1195Vnxrsy','function','length','metadata','key','Workbook','getWorksheet'];a12_0x2411=function(){return _0x36ef05;};return a12_0x2411();}'use strict';var __decorate=this&&this['__decorate']||function(_0x1aed58,_0x27853d,_0x4bef1c,_0x582104){const _0x2cb9bf=a12_0x406e;var _0x29ec1f=arguments[_0x2cb9bf(0xd7)],_0x40ed7a=_0x29ec1f<0x3?_0x27853d:_0x582104===null?_0x582104=Object[_0x2cb9bf(0xb7)](_0x27853d,_0x4bef1c):_0x582104,_0x6f1723;if(typeof Reflect===_0x2cb9bf(0xe1)&&typeof Reflect[_0x2cb9bf(0xe5)]==='function')_0x40ed7a=Reflect[_0x2cb9bf(0xe5)](_0x1aed58,_0x27853d,_0x4bef1c,_0x582104);else{for(var _0x512194=_0x1aed58[_0x2cb9bf(0xd7)]-0x1;_0x512194>=0x0;_0x512194--)if(_0x6f1723=_0x1aed58[_0x512194])_0x40ed7a=(_0x29ec1f<0x3?_0x6f1723(_0x40ed7a):_0x29ec1f>0x3?_0x6f1723(_0x27853d,_0x4bef1c,_0x40ed7a):_0x6f1723(_0x27853d,_0x4bef1c))||_0x40ed7a;}return _0x29ec1f>0x3&&_0x40ed7a&&Object[_0x2cb9bf(0xd3)](_0x27853d,_0x4bef1c,_0x40ed7a),_0x40ed7a;},__metadata=this&&this['__metadata']||function(_0x409067,_0x4528bb){const _0x3f6b77=a12_0x406e;if(typeof Reflect===_0x3f6b77(0xe1)&&typeof Reflect['metadata']===_0x3f6b77(0xd6))return Reflect[_0x3f6b77(0xd8)](_0x409067,_0x4528bb);};Object[a12_0x30e746(0xd3)](exports,a12_0x30e746(0xea),{'value':!![]}),exports[a12_0x30e746(0xaf)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x30e746(0xe6)),koasend=require('koa-send'),core_1=require('@midwayjs/core');let ExcelService=exports[a12_0x30e746(0xaf)]=class ExcelService{async[a12_0x30e746(0xe2)](_0x359101,_0xd00f47,_0x541c83=[0x0]){const _0xdde41=a12_0x30e746;var _0x5e9f55,_0x272de5;const _0x360748=new exceljs['Workbook'](),_0x4d312a=[];let _0x48cb56=_0x359101['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x48cb56===null||_0x48cb56===void 0x0?void 0x0:_0x48cb56['startsWith']('/'))&&(_0x48cb56=this['app'][_0xdde41(0xe9)]()+'/'+_0x48cb56);try{await _0x360748[_0xdde41(0xe0)]['readFile'](_0x48cb56);}catch(_0xd98750){return console['log'](_0xdde41(0xba)+_0x48cb56+_0xdde41(0xdd)),_0x4d312a;}for(const _0x37164b of _0x541c83){const _0x3e2571=lodash[_0xdde41(0xdc)](_0x37164b)?((_0x5e9f55=_0x360748['worksheets'])===null||_0x5e9f55===void 0x0?void 0x0:_0x5e9f55[_0x37164b])||undefined:_0x360748[_0xdde41(0xdb)](_0x37164b);if(_0x3e2571){var _0x4487fb=0x1;const _0x8a4589=_0x3e2571[_0xdde41(0xc1)](0x1),_0x275ad1=await new Promise(_0x2c87db=>{const _0x3be0cf=_0xdde41,_0x5269d9={};_0x8a4589[_0x3be0cf(0xb4)]((_0x35672c,_0x5857bd)=>{const _0x17a024=_0x3be0cf;for(const _0x3df841 of _0xd00f47){if(_0x35672c[_0x17a024(0xc8)]==_0x3df841[_0x17a024(0xae)])_0x4487fb=0x2,_0x5269d9[_0x3df841['key']]={'header':_0x35672c[_0x17a024(0xb6)],'handler':_0x3df841['handler']};else{if(!_0x5269d9[_0x3df841['key']])try{const _0x359f4d=_0x8a4589&&_0x8a4589[_0x17a024(0xed)](_0x3df841[_0x17a024(0xae)]);_0x359f4d&&(_0x5269d9[_0x3df841[_0x17a024(0xd9)]]={'header':_0x359f4d[_0x17a024(0xb6)],'handler':_0x3df841[_0x17a024(0xc6)]});}catch{}}}_0x8a4589[_0x17a024(0xb2)]==_0x5857bd&&_0x2c87db(_0x5269d9);});});_0x342b20:for(const _0x2f967b of _0x3e2571['findRows'](_0x4487fb,_0x3e2571['rowCount'])){if(typeof(_0x2f967b===null||_0x2f967b===void 0x0?void 0x0:_0x2f967b[_0xdde41(0xed)])!='function')continue _0x342b20;const _0x17e4cd={};_0x77759e:for(const _0x21a651 in _0x275ad1){if(_0x275ad1[_0x21a651][_0xdde41(0xae)]){const _0x2c22da=_0x2f967b[_0xdde41(0xed)](_0x275ad1[_0x21a651][_0xdde41(0xae)]);if(!_0x2c22da)continue _0x77759e;try{_0x2c22da[_0xdde41(0xbd)]();}catch(_0x38e8da){_0x2c22da['toString']=()=>{const _0x461ddb=_0xdde41;var _0x3e7568;return''+(((_0x3e7568=_0x2c22da===null||_0x2c22da===void 0x0?void 0x0:_0x2c22da[_0x461ddb(0xcb)])===null||_0x3e7568===void 0x0?void 0x0:_0x3e7568[_0x461ddb(0xc8)])||'');};}typeof((_0x272de5=_0x275ad1[_0x21a651])===null||_0x272de5===void 0x0?void 0x0:_0x272de5[_0xdde41(0xc6)])==_0xdde41(0xd6)?_0x17e4cd[_0x21a651]=await _0x275ad1[_0x21a651][_0xdde41(0xc6)](lodash[_0xdde41(0xbe)]({},_0x21a651,(_0x2c22da===null||_0x2c22da===void 0x0?void 0x0:_0x2c22da[_0xdde41(0xbd)]())||''),_0x2c22da['model']):_0x17e4cd[_0x21a651]=(_0x2c22da===null||_0x2c22da===void 0x0?void 0x0:_0x2c22da[_0xdde41(0xbd)]())||'';}}Object[_0xdde41(0xc5)](_0x17e4cd)['length']>0x0&&Object[_0xdde41(0xb1)](_0x17e4cd)[_0xdde41(0xd0)](_0x460b9a=>_0x460b9a!='')[_0xdde41(0xd7)]>0x0&&_0x4d312a['push'](_0x17e4cd);}}}return _0x4d312a;}async[a12_0x30e746(0xc4)](_0x5c729c,_0x1334c9,_0x4b8c37,_0x2362be){const _0x9d20cd=a12_0x30e746;var _0x5a26b8,_0x2939ef;const _0x5c7b89=new exceljs[(_0x9d20cd(0xda))](),_0x564586={},_0x569a33=[],_0x25d678=_0x5c7b89[_0x9d20cd(0xad)](_0x9d20cd(0xd2),{'views':[{'state':'frozen','xSplit':0x1}]});for(const _0x2a7846 in _0x1334c9){_0x564586[_0x1334c9[_0x2a7846][_0x9d20cd(0xd9)]]=_0x1334c9[_0x2a7846][_0x9d20cd(0xae)],_0x569a33[_0x9d20cd(0xca)]({'header':_0x1334c9[_0x2a7846][_0x9d20cd(0xae)],'key':(_0x5a26b8=_0x1334c9[_0x2a7846])===null||_0x5a26b8===void 0x0?void 0x0:_0x5a26b8['key']['replace'](/\./g,'_')});}_0x25d678[_0x9d20cd(0xb3)]=_0x569a33;for(const _0x1b11a8 of _0x4b8c37){const _0x281887={};for(const _0x18afc7 in _0x1334c9){typeof((_0x2939ef=_0x1334c9[_0x18afc7])===null||_0x2939ef===void 0x0?void 0x0:_0x2939ef[_0x9d20cd(0xc6)])==_0x9d20cd(0xd6)?_0x281887[_0x1334c9[_0x18afc7]['key']['replace'](/\./g,'_')]=await _0x1334c9[_0x18afc7]['handler'](_0x1b11a8):_0x281887[_0x1334c9[_0x18afc7][_0x9d20cd(0xd9)][_0x9d20cd(0xbb)](/\./g,'_')]=lodash[_0x9d20cd(0xbf)](_0x1b11a8,_0x1334c9[_0x18afc7][_0x9d20cd(0xd9)],'');}_0x25d678[_0x9d20cd(0xe4)](_0x281887);}let _0xa24665='';const _0x179aa8=_0x5c729c+'-'+lodash['random'](0x186a0,0xf423f)+_0x9d20cd(0xd4);if(_0x2362be&&_0x2362be[_0x9d20cd(0xb5)]('/'))_0xa24665=''+_0x2362be;else _0x2362be&&!_0x2362be[_0x9d20cd(0xb5)]('/')&&!_0x2362be[_0x9d20cd(0xb5)]('\x5c')?_0xa24665=this[_0x9d20cd(0xc2)][_0x9d20cd(0xe9)]()+'/'+_0x2362be:_0xa24665=this[_0x9d20cd(0xc2)][_0x9d20cd(0xe9)]()+_0x9d20cd(0xcc)+dayjs()['format'](_0x9d20cd(0xc7));return(_0xa24665['endsWith']('/')||_0xa24665['endsWith']('\x5c'))&&(_0xa24665=_0xa24665[_0x9d20cd(0xe3)](0x0,_0xa24665[_0x9d20cd(0xd7)]-0x1)),_0xa24665=_0xa24665[_0x9d20cd(0xbb)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),!fs['existsSync'](_0xa24665)&&fs[_0x9d20cd(0xec)](_0xa24665,{'recursive':!![]}),await _0x5c7b89['xlsx']['writeFile']((_0xa24665+'/'+_0x179aa8)[_0x9d20cd(0xbb)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x179aa8,'filepath':(_0xa24665['substring']((''+this[_0x9d20cd(0xc2)][_0x9d20cd(0xe9)]())[_0x9d20cd(0xd7)])+'/'+_0x179aa8)[_0x9d20cd(0xbb)](/(\\|\/)/g,'/')[_0x9d20cd(0xbb)](/\/{2,}/g,'/')};}async['download'](_0xf0a2e3,_0x31efea){return await koasend(_0xf0a2e3,''+_0x31efea);}};__decorate([(0x0,core_1['App'])(),__metadata(a12_0x30e746(0xde),Object)],ExcelService['prototype'],a12_0x30e746(0xc2),void 0x0),exports['ExcelService']=ExcelService=__decorate([(0x0,core_1[a12_0x30e746(0xc9)])(),(0x0,core_1[a12_0x30e746(0xce)])(core_1['ScopeEnum'][a12_0x30e746(0xb8)])],ExcelService);
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a13_0x2e7e(_0x355d0a,_0x3e79c4){var _0x568a23=a13_0x1866();return a13_0x2e7e=function(_0xc9dacc,_0x2ab292){_0xc9dacc=_0xc9dacc-0x182;var _0x18666a=_0x568a23[_0xc9dacc];return _0x18666a;},a13_0x2e7e(_0x355d0a,_0x3e79c4);}var a13_0x16c59b=a13_0x2e7e;(function(_0x5dc663,_0x2d6bc3){var _0x1df3a2=a13_0x2e7e,_0x563421=_0x5dc663();while(!![]){try{var _0x51fa78=-parseInt(_0x1df3a2(0x188))/0x1*(-parseInt(_0x1df3a2(0x193))/0x2)+parseInt(_0x1df3a2(0x187))/0x3*(parseInt(_0x1df3a2(0x195))/0x4)+-parseInt(_0x1df3a2(0x194))/0x5+-parseInt(_0x1df3a2(0x196))/0x6*(parseInt(_0x1df3a2(0x192))/0x7)+parseInt(_0x1df3a2(0x190))/0x8+-parseInt(_0x1df3a2(0x184))/0x9+parseInt(_0x1df3a2(0x182))/0xa;if(_0x51fa78===_0x2d6bc3)break;else _0x563421['push'](_0x563421['shift']());}catch(_0x4a3f90){_0x563421['push'](_0x563421['shift']());}}}(a13_0x1866,0xdc6ea));var a13_0x2ab292=(function(){var _0x189a5d=!![];return function(_0x5045d1,_0x448ac2){var _0x325751=_0x189a5d?function(){var _0x4d77b8=a13_0x2e7e;if(_0x448ac2){var _0x5e0660=_0x448ac2[_0x4d77b8(0x185)](_0x5045d1,arguments);return _0x448ac2=null,_0x5e0660;}}:function(){};return _0x189a5d=![],_0x325751;};}()),a13_0xc9dacc=a13_0x2ab292(this,function(){var _0x5e1f6d=a13_0x2e7e;return a13_0xc9dacc['toString']()[_0x5e1f6d(0x18d)]('(((.+)+)+)+$')[_0x5e1f6d(0x197)]()[_0x5e1f6d(0x186)](a13_0xc9dacc)[_0x5e1f6d(0x18d)](_0x5e1f6d(0x191));});a13_0xc9dacc();function a13_0x1866(){var _0x26b15c=['AppsConfigTmp','anncic-api:action','search','defineProperty','ACTION_ROUTE_KEY','4338936iyGljv','(((.+)+)+)+$','2569UUQWJr','784YTdZyN','5870085vqkgZh','103664NpIOPe','15804bzcRml','toString','anncic-api:action:route','23248800IzAkQh','APPSCONFIG_KEY','8098974aoXEvq','apply','constructor','66erndcM','1291NqTElq','anncic-api:apps:config','ACTION_KEY'];a13_0x1866=function(){return _0x26b15c;};return a13_0x1866();}'use strict';Object[a13_0x16c59b(0x18e)](exports,'__esModule',{'value':!![]}),exports[a13_0x16c59b(0x18b)]=exports[a13_0x16c59b(0x183)]=exports[a13_0x16c59b(0x18f)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x16c59b(0x18a)]=a13_0x16c59b(0x18c),exports[a13_0x16c59b(0x18f)]=a13_0x16c59b(0x198),exports[a13_0x16c59b(0x183)]=a13_0x16c59b(0x189);class AppsConfigTmp{}exports[a13_0x16c59b(0x18b)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x2c71c7=a14_0xf34e;(function(_0x27ccb2,_0x531951){var _0x1c941a=a14_0xf34e,_0x56eba5=_0x27ccb2();while(!![]){try{var _0x5387ed=-parseInt(_0x1c941a(0x8f))/0x1*(-parseInt(_0x1c941a(0x78))/0x2)+parseInt(_0x1c941a(0x79))/0x3+-parseInt(_0x1c941a(0x7f))/0x4+parseInt(_0x1c941a(0x7b))/0x5+parseInt(_0x1c941a(0x76))/0x6+parseInt(_0x1c941a(0x8e))/0x7*(-parseInt(_0x1c941a(0x73))/0x8)+parseInt(_0x1c941a(0x74))/0x9*(parseInt(_0x1c941a(0x77))/0xa);if(_0x5387ed===_0x531951)break;else _0x56eba5['push'](_0x56eba5['shift']());}catch(_0x4d32ed){_0x56eba5['push'](_0x56eba5['shift']());}}}(a14_0x27cf,0x97bcc));var a14_0xe07cc6=(function(){var _0xa853e0=!![];return function(_0x460150,_0x303f01){var _0x2819cc=_0xa853e0?function(){var _0x457b97=a14_0xf34e;if(_0x303f01){var _0x5b1a10=_0x303f01[_0x457b97(0x93)](_0x460150,arguments);return _0x303f01=null,_0x5b1a10;}}:function(){};return _0xa853e0=![],_0x2819cc;};}()),a14_0x3dbdd2=a14_0xe07cc6(this,function(){var _0x15b7bf=a14_0xf34e;return a14_0x3dbdd2[_0x15b7bf(0x7d)]()['search'](_0x15b7bf(0x6d))[_0x15b7bf(0x7d)]()[_0x15b7bf(0x81)](a14_0x3dbdd2)[_0x15b7bf(0x86)](_0x15b7bf(0x6d));});a14_0x3dbdd2();function a14_0x27cf(){var _0x23c6fe=['trim','metadata','function','7VuTckY','9CXHolm','prototype','min','decorate','apply','1:是;0:否','(((.+)+)+)+$','length','__metadata','__esModule','分页数量','_order','8989176bkbVDa','280989qgnjKD','defineProperty','2190654qSFuEd','90ayEOnB','153334DhGhoc','416484NbMpuU','__decorate','2315215qBpKBZ','integer','toString','是否倒序','771236SIQpfE','第一页为1,第二页为2','constructor','Rule','PageDTO','_isreverse','object','search','design:type','valid','number','getOwnPropertyDescriptor'];a14_0x27cf=function(){return _0x23c6fe;};return a14_0x27cf();}function a14_0xf34e(_0x3677bd,_0x300657){var _0x2251ac=a14_0x27cf();return a14_0xf34e=function(_0x3dbdd2,_0xe07cc6){_0x3dbdd2=_0x3dbdd2-0x6d;var _0x27cf6b=_0x2251ac[_0x3dbdd2];return _0x27cf6b;},a14_0xf34e(_0x3677bd,_0x300657);}'use strict';var __decorate=this&&this[a14_0x2c71c7(0x7a)]||function(_0x3a191c,_0x2c0529,_0x49458a,_0x112c6e){var _0xe1616a=a14_0x2c71c7,_0x3070c3=arguments[_0xe1616a(0x6e)],_0x6234db=_0x3070c3<0x3?_0x2c0529:_0x112c6e===null?_0x112c6e=Object[_0xe1616a(0x8a)](_0x2c0529,_0x49458a):_0x112c6e,_0x316e23;if(typeof Reflect===_0xe1616a(0x85)&&typeof Reflect['decorate']===_0xe1616a(0x8d))_0x6234db=Reflect[_0xe1616a(0x92)](_0x3a191c,_0x2c0529,_0x49458a,_0x112c6e);else{for(var _0x3f5911=_0x3a191c[_0xe1616a(0x6e)]-0x1;_0x3f5911>=0x0;_0x3f5911--)if(_0x316e23=_0x3a191c[_0x3f5911])_0x6234db=(_0x3070c3<0x3?_0x316e23(_0x6234db):_0x3070c3>0x3?_0x316e23(_0x2c0529,_0x49458a,_0x6234db):_0x316e23(_0x2c0529,_0x49458a))||_0x6234db;}return _0x3070c3>0x3&&_0x6234db&&Object[_0xe1616a(0x75)](_0x2c0529,_0x49458a,_0x6234db),_0x6234db;},__metadata=this&&this[a14_0x2c71c7(0x6f)]||function(_0x21a6a0,_0x43e617){var _0x2d56f3=a14_0x2c71c7;if(typeof Reflect===_0x2d56f3(0x85)&&typeof Reflect[_0x2d56f3(0x8c)]===_0x2d56f3(0x8d))return Reflect[_0x2d56f3(0x8c)](_0x21a6a0,_0x43e617);};Object['defineProperty'](exports,a14_0x2c71c7(0x70),{'value':!![]}),exports[a14_0x2c71c7(0x83)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}exports[a14_0x2c71c7(0x83)]=PageDTO,__decorate([(0x0,validator_1[a14_0x2c71c7(0x82)])('分页',validator_1['RuleType'][a14_0x2c71c7(0x89)]()[a14_0x2c71c7(0x7c)]()['min'](0x1),a14_0x2c71c7(0x80)),__metadata(a14_0x2c71c7(0x87),Number)],PageDTO[a14_0x2c71c7(0x90)],'_page',void 0x0),__decorate([(0x0,validator_1[a14_0x2c71c7(0x82)])(a14_0x2c71c7(0x71),validator_1['RuleType'][a14_0x2c71c7(0x89)]()[a14_0x2c71c7(0x7c)]()[a14_0x2c71c7(0x91)](0x1)),__metadata(a14_0x2c71c7(0x87),Number)],PageDTO[a14_0x2c71c7(0x90)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0x2c71c7(0x82)])('排序方式',validator_1['RuleType']['string']()[a14_0x2c71c7(0x8b)]()),__metadata(a14_0x2c71c7(0x87),String)],PageDTO[a14_0x2c71c7(0x90)],a14_0x2c71c7(0x72),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x2c71c7(0x7e),validator_1['RuleType'][a14_0x2c71c7(0x89)]()[a14_0x2c71c7(0x7c)]()[a14_0x2c71c7(0x88)](0x0,0x1),a14_0x2c71c7(0x94)),__metadata(a14_0x2c71c7(0x87),Number)],PageDTO[a14_0x2c71c7(0x90)],a14_0x2c71c7(0x84),void 0x0);
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x2228(_0x27280a,_0x22b359){var _0x45ec11=a15_0xae20();return a15_0x2228=function(_0x329996,_0xd670f7){_0x329996=_0x329996-0x14c;var _0xae204c=_0x45ec11[_0x329996];return _0xae204c;},a15_0x2228(_0x27280a,_0x22b359);}var a15_0x1b56cb=a15_0x2228;(function(_0x3852a3,_0x3851fb){var _0x4379cb=a15_0x2228,_0x166d56=_0x3852a3();while(!![]){try{var _0x4bac7f=-parseInt(_0x4379cb(0x150))/0x1*(-parseInt(_0x4379cb(0x15a))/0x2)+parseInt(_0x4379cb(0x14f))/0x3*(parseInt(_0x4379cb(0x154))/0x4)+parseInt(_0x4379cb(0x153))/0x5+-parseInt(_0x4379cb(0x152))/0x6*(parseInt(_0x4379cb(0x151))/0x7)+-parseInt(_0x4379cb(0x14c))/0x8*(-parseInt(_0x4379cb(0x14e))/0x9)+parseInt(_0x4379cb(0x15d))/0xa+-parseInt(_0x4379cb(0x159))/0xb;if(_0x4bac7f===_0x3851fb)break;else _0x166d56['push'](_0x166d56['shift']());}catch(_0x36590c){_0x166d56['push'](_0x166d56['shift']());}}}(a15_0xae20,0xdcf47));var a15_0xd670f7=(function(){var _0x5a30d0=!![];return function(_0xc449d2,_0x239182){var _0x276216=_0x5a30d0?function(){if(_0x239182){var _0x385e0b=_0x239182['apply'](_0xc449d2,arguments);return _0x239182=null,_0x385e0b;}}:function(){};return _0x5a30d0=![],_0x276216;};}()),a15_0x329996=a15_0xd670f7(this,function(){var _0x306e5e=a15_0x2228;return a15_0x329996[_0x306e5e(0x15c)]()[_0x306e5e(0x14d)](_0x306e5e(0x158))[_0x306e5e(0x15c)]()[_0x306e5e(0x157)](a15_0x329996)['search']('(((.+)+)+)+$');});a15_0x329996();'use strict';Object[a15_0x1b56cb(0x15b)](exports,'__esModule',{'value':!![]}),exports[a15_0x1b56cb(0x155)]=exports[a15_0x1b56cb(0x156)]=void 0x0,exports['INTERCEPT_KEY']='anncic-api:intercept';class InterceptTargetTmp{}function a15_0xae20(){var _0xf20cd2=['search','4339953FwKhaT','6291mBBEQZ','30713FsawHB','584465IhBlXo','114gGcJgh','360490NgZJtT','2680btwqeO','InterceptTargetTmp','INTERCEPT_KEY','constructor','(((.+)+)+)+$','15632045QvPspO','64XsDAnD','defineProperty','toString','4881930xEWqgY','16UPPzqO'];a15_0xae20=function(){return _0xf20cd2;};return a15_0xae20();}exports[a15_0x1b56cb(0x155)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.16",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.2.
|
|
21
|
-
"@anncic-api/core": "^3.2.
|
|
22
|
-
"@anncic-api/event": "^3.2.
|
|
23
|
-
"@anncic-api/typeorm": "^3.2.
|
|
24
|
-
"@anncic-api/validator": "^3.2.
|
|
20
|
+
"@anncic-api/cache": "^3.2.16",
|
|
21
|
+
"@anncic-api/core": "^3.2.16",
|
|
22
|
+
"@anncic-api/event": "^3.2.16",
|
|
23
|
+
"@anncic-api/typeorm": "^3.2.16",
|
|
24
|
+
"@anncic-api/validator": "^3.2.16",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.11.11",
|
|
26
26
|
"@midwayjs/koa": "^3.11.11",
|
|
27
27
|
"@midwayjs/static-file": "^3.11.11",
|
|
28
28
|
"@midwayjs/upload": "^3.11.11",
|
|
29
|
-
"anncic-apihelper": "^3.2.
|
|
29
|
+
"anncic-apihelper": "^3.2.16",
|
|
30
30
|
"exceljs": "^4.3.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "ec23c2ca3c3e9e9c80856c951df887c6a7bc4474"
|
|
39
39
|
}
|