anncic-api 1.4.41 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.d.ts +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 +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x438452=a0_0x4478;function a0_0x3bbc(){var _0x21fe7a=['search','toString','json','dhauo1234420123gg3234901','656rCmKFw','text','161kGCjwy','apply','2026uNbOAe','159723AVdmvV','104yKOMCQ','1510360lNDfzI','__esModule','form','1674348jsQuZh','(((.+)+)+)+$','41742OHMjnI','18355SbDWtd','321LEFpWH','1401037UyVoxR','defineProperty','xml','zhiulanuiy7892387985hnoi','constructor','20mb','default'];a0_0x3bbc=function(){return _0x21fe7a;};return a0_0x3bbc();}(function(_0x5028f7,_0x182685){var _0x2aef3e=a0_0x4478,_0x35aae2=_0x5028f7();while(!![]){try{var _0x19a6eb=-parseInt(_0x2aef3e(0x183))/0x1*(-parseInt(_0x2aef3e(0x193))/0x2)+parseInt(_0x2aef3e(0x17f))/0x3+-parseInt(_0x2aef3e(0x18f))/0x4*(parseInt(_0x2aef3e(0x182))/0x5)+parseInt(_0x2aef3e(0x181))/0x6*(-parseInt(_0x2aef3e(0x191))/0x7)+parseInt(_0x2aef3e(0x195))/0x8*(parseInt(_0x2aef3e(0x194))/0x9)+-parseInt(_0x2aef3e(0x196))/0xa+parseInt(_0x2aef3e(0x184))/0xb;if(_0x19a6eb===_0x182685)break;else _0x35aae2['push'](_0x35aae2['shift']());}catch(_0x54e667){_0x35aae2['push'](_0x35aae2['shift']());}}}(a0_0x3bbc,0x50254));var a0_0x2dfeb2=(function(){var _0xd891f6=!![];return function(_0x565be8,_0x31f25a){var _0x553a49=_0xd891f6?function(){var _0x12d2bc=a0_0x4478;if(_0x31f25a){var _0x153fbe=_0x31f25a[_0x12d2bc(0x192)](_0x565be8,arguments);return _0x31f25a=null,_0x153fbe;}}:function(){};return _0xd891f6=![],_0x553a49;};}()),a0_0x1d74de=a0_0x2dfeb2(this,function(){var _0x4b6d39=a0_0x4478;return a0_0x1d74de[_0x4b6d39(0x18c)]()[_0x4b6d39(0x18b)]('(((.+)+)+)+$')[_0x4b6d39(0x18c)]()[_0x4b6d39(0x188)](a0_0x1d74de)[_0x4b6d39(0x18b)](_0x4b6d39(0x180));});function a0_0x4478(_0x262186,_0x23f3ac){var _0x20b46c=a0_0x3bbc();return a0_0x4478=function(_0x1d74de,_0x2dfeb2){_0x1d74de=_0x1d74de-0x17e;var _0x3bbc5d=_0x20b46c[_0x1d74de];return _0x3bbc5d;},a0_0x4478(_0x262186,_0x23f3ac);}a0_0x1d74de();'use strict';Object[a0_0x438452(0x185)](exports,a0_0x438452(0x197),{'value':!![]}),exports[a0_0x438452(0x18a)]=_0x724e25=>{var _0x2fd09e=a0_0x438452;return{'apitest':!![],'keys':_0x724e25['name'],'anncicapi':{'password':_0x2fd09e(0x187),'devices':{'DEFAULT':{'secret':_0x2fd09e(0x18e),'checkcode':_0x2fd09e(0x18e)}}},'bodyParser':{'enableTypes':[_0x2fd09e(0x18d),_0x2fd09e(0x17e),_0x2fd09e(0x190),_0x2fd09e(0x186)],'formLimit':'20mb','jsonLimit':_0x2fd09e(0x189),'textLimit':_0x2fd09e(0x189),'xmlLimit':_0x2fd09e(0x189)},'upload':{'tmpdir':_0x724e25['appDir']+'/runtime/.upload','cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a1_0x24c524=a1_0x463e;function a1_0x4d2e(){var _0x2d81c5=['110379jfgDTy','apply','10ZtiiTA','503472pXVaLK','defineProperty','1731960OUHvAx','constructor','802615hXhsfM','19714255yNScXm','10MxPCuI','27WcEprP','toString','84yCTGHH','search','5308429zwrQPg','155777LOFxar','(((.+)+)+)+$'];a1_0x4d2e=function(){return _0x2d81c5;};return a1_0x4d2e();}(function(_0x2cee1c,_0x6e28fa){var _0x4310e6=a1_0x463e,_0xc96c83=_0x2cee1c();while(!![]){try{var _0x43792e=parseInt(_0x4310e6(0xda))/0x1*(-parseInt(_0x4310e6(0xd4))/0x2)+parseInt(_0x4310e6(0xdc))/0x3*(parseInt(_0x4310e6(0xd7))/0x4)+-parseInt(_0x4310e6(0xd2))/0x5+-parseInt(_0x4310e6(0xe1))/0x6+-parseInt(_0x4310e6(0xd9))/0x7+-parseInt(_0x4310e6(0xdf))/0x8*(parseInt(_0x4310e6(0xd5))/0x9)+-parseInt(_0x4310e6(0xde))/0xa*(-parseInt(_0x4310e6(0xd3))/0xb);if(_0x43792e===_0x6e28fa)break;else _0xc96c83['push'](_0xc96c83['shift']());}catch(_0x502ab2){_0xc96c83['push'](_0xc96c83['shift']());}}}(a1_0x4d2e,0x5f209));function a1_0x463e(_0x2dc3d4,_0x2158fb){var _0x4b0308=a1_0x4d2e();return a1_0x463e=function(_0x3239a3,_0x51d0a2){_0x3239a3=_0x3239a3-0xd1;var _0x4d2e85=_0x4b0308[_0x3239a3];return _0x4d2e85;},a1_0x463e(_0x2dc3d4,_0x2158fb);}var a1_0x51d0a2=(function(){var _0x34e7ca=!![];return function(_0x955d51,_0x41c869){var _0x19ec93=_0x34e7ca?function(){var _0x12bacf=a1_0x463e;if(_0x41c869){var _0x371c01=_0x41c869[_0x12bacf(0xdd)](_0x955d51,arguments);return _0x41c869=null,_0x371c01;}}:function(){};return _0x34e7ca=![],_0x19ec93;};}()),a1_0x3239a3=a1_0x51d0a2(this,function(){var _0x1cc364=a1_0x463e;return a1_0x3239a3['toString']()[_0x1cc364(0xd8)](_0x1cc364(0xdb))[_0x1cc364(0xd6)]()[_0x1cc364(0xd1)](a1_0x3239a3)['search'](_0x1cc364(0xdb));});a1_0x3239a3();'use strict';Object[a1_0x24c524(0xe0)](exports,'__esModule',{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x678002=a2_0x5e64;(function(_0x5bc657,_0x1ab298){const _0x166824=a2_0x5e64,_0x5a1faf=_0x5bc657();while(!![]){try{const _0x258a93=parseInt(_0x166824(0x133))/0x1+parseInt(_0x166824(0x15d))/0x2+parseInt(_0x166824(0x128))/0x3*(-parseInt(_0x166824(0xf3))/0x4)+-parseInt(_0x166824(0x153))/0x5*(-parseInt(_0x166824(0x152))/0x6)+-parseInt(_0x166824(0x11e))/0x7*(parseInt(_0x166824(0xf9))/0x8)+-parseInt(_0x166824(0xe9))/0x9*(-parseInt(_0x166824(0x11c))/0xa)+parseInt(_0x166824(0xfc))/0xb*(-parseInt(_0x166824(0x156))/0xc);if(_0x258a93===_0x1ab298)break;else _0x5a1faf['push'](_0x5a1faf['shift']());}catch(_0x5ad68d){_0x5a1faf['push'](_0x5a1faf['shift']());}}}(a2_0x564e,0xef34c));const a2_0x1412a9=(function(){let _0x58be93=!![];return function(_0x57570b,_0x21ea32){const _0x3aeab3=_0x58be93?function(){const _0x13f1ee=a2_0x5e64;if(_0x21ea32){const _0x4cb8be=_0x21ea32[_0x13f1ee(0x15f)](_0x57570b,arguments);return _0x21ea32=null,_0x4cb8be;}}:function(){};return _0x58be93=![],_0x3aeab3;};}()),a2_0x4bf456=a2_0x1412a9(this,function(){const _0x572658=a2_0x5e64;return a2_0x4bf456[_0x572658(0xf5)]()[_0x572658(0x12b)](_0x572658(0xee))[_0x572658(0xf5)]()[_0x572658(0x11a)](a2_0x4bf456)[_0x572658(0x12b)](_0x572658(0xee));});a2_0x4bf456();'use strict';function a2_0x5e64(_0x416883,_0x12c7d7){const _0x165dc1=a2_0x564e();return a2_0x5e64=function(_0x4bf456,_0x1412a9){_0x4bf456=_0x4bf456-0xe7;let _0x564eb3=_0x165dc1[_0x4bf456];return _0x564eb3;},a2_0x5e64(_0x416883,_0x12c7d7);}var __decorate=this&&this[a2_0x678002(0x129)]||function(_0x3b5107,_0x1c4637,_0x5d5832,_0x525065){const _0x384140=a2_0x678002;var _0x3307c0=arguments[_0x384140(0x132)],_0x209c39=_0x3307c0<0x3?_0x1c4637:_0x525065===null?_0x525065=Object[_0x384140(0xf4)](_0x1c4637,_0x5d5832):_0x525065,_0x1dce2b;if(typeof Reflect==='object'&&typeof Reflect[_0x384140(0x141)]===_0x384140(0x146))_0x209c39=Reflect[_0x384140(0x141)](_0x3b5107,_0x1c4637,_0x5d5832,_0x525065);else{for(var _0x1892d1=_0x3b5107['length']-0x1;_0x1892d1>=0x0;_0x1892d1--)if(_0x1dce2b=_0x3b5107[_0x1892d1])_0x209c39=(_0x3307c0<0x3?_0x1dce2b(_0x209c39):_0x3307c0>0x3?_0x1dce2b(_0x1c4637,_0x5d5832,_0x209c39):_0x1dce2b(_0x1c4637,_0x5d5832))||_0x209c39;}return _0x3307c0>0x3&&_0x209c39&&Object['defineProperty'](_0x1c4637,_0x5d5832,_0x209c39),_0x209c39;},__metadata=this&&this[a2_0x678002(0x147)]||function(_0x5ae329,_0x57114f){const _0x2ab5a1=a2_0x678002;if(typeof Reflect===_0x2ab5a1(0x12c)&&typeof Reflect[_0x2ab5a1(0xea)]===_0x2ab5a1(0x146))return Reflect['metadata'](_0x5ae329,_0x57114f);};function a2_0x564e(){const _0xcb3bc=['@anncic-api/validator','log','handlerActionRoute','Inject','environment','staticFile','./config/config.default','DEFAULT','defineProperty','default','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','ApiService','addObject','Configuration','getApplications','dir','tmpdir','constructor','anncic-api','150lwAEwy','apimit','385zYKRet','Types','application','_matchedRoute','.log','context','target','attachment','prototype','isString','303GeJuND','__decorate','dirs','search','object','InterceptTargetTmp','devices','@anncic-api/core','decorator','-log','length','996779eOTgON','headers','./exception/ApiError','isDirectory','handler','defaultsDeep','existsSync','onReady','Anncic-api\x20static-file\x20:\x20mkdir\x20','loggerConfig','upload','/runtime/apps-','proceed','__esModule','decorate','getAppDir','MidwayDecoratorService','defineProperties','anncicapi','function','__metadata','readdirSync','@midwayjs/cross-domain','assign','/apps/','App','hanlderApplications','input','/runtime','device','@midwayjs/i18n','5993382JzOSXk','5wAnxWP','method','MidwayConfigService','48ukOJdf','midwayLogger','checkConfigKeys','@anncic-api/typeorm','@midwayjs/core','keys','MidwayEnvironmentService','1620484wjJSwl','toLowerCase','apply','filterConfig','getBaseDir','@midwayjs/upload','app','match','isFunction','mkdirSync','753804XoYaaL','metadata','key','REQUEST_OBJ_CTX_KEY','undefined','(((.+)+)+)+$','intercept','./types/action','string','CustomConfiguration','66988Ovezwk','getOwnPropertyDescriptor','toString','getClassMetadata','request','get','155464CSZNhS','config','@midwayjs/koa','886072iKWqvy','ACTION_ROUTE_KEY','statSync','./service/ApiService','koa-send','getAsync','@anncic-api/cache','body','clients','/apps','MidwayApplicationManager','getConfiguration','design:type'];a2_0x564e=function(){return _0xcb3bc;};return a2_0x564e();}Object[a2_0x678002(0x111)](exports,a2_0x678002(0x140),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),core_2=require(a2_0x678002(0x15a)),ApiError_1=require(a2_0x678002(0x135)),ApiService_1=require(a2_0x678002(0xff)),action_1=require(a2_0x678002(0xf0)),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x678002(0x100)),koa=require(a2_0x678002(0xfb)),i18n=require(a2_0x678002(0x151)),upload=require(a2_0x678002(0x162)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x678002(0x149)),ConfigDefault=require(a2_0x678002(0x10f)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x678002(0x12f)),anncicCache=require(a2_0x678002(0x102)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x678002(0x159)),anncicValidator=require(a2_0x678002(0x109)),anncicHelper=require('anncic-apihelper');let CustomConfiguration=class CustomConfiguration{async[a2_0x678002(0x13a)](){const _0x15a24a=a2_0x678002;await this['filterConfig'](),await this[_0x15a24a(0x13c)](),await this[_0x15a24a(0x158)](),await this[_0x15a24a(0x10b)](),await this[_0x15a24a(0x14d)]();}async[a2_0x678002(0x158)](){}async[a2_0x678002(0x10b)](){const _0x34d758=a2_0x678002,_0x56ea5c=(0x0,core_1[_0x34d758(0xf6)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x34d758(0x12d)])||{};this[_0x34d758(0x130)]['registerMethodHandler'](action_1[_0x34d758(0xfd)],_0x254789=>{const _0x1c5e5d=_0x34d758,_0x57c8ff=_0x254789[_0x1c5e5d(0xea)];return{'before':async _0x4dddae=>{const _0x80d998=_0x1c5e5d;var _0x2c39b6,_0x4a6663;const _0x3092d2=(_0x2c39b6=_0x4dddae===null||_0x4dddae===void 0x0?void 0x0:_0x4dddae[_0x80d998(0x124)])===null||_0x2c39b6===void 0x0?void 0x0:_0x2c39b6[core_2[_0x80d998(0xec)]];if(_0x3092d2&&(_0x57c8ff===null||_0x57c8ff===void 0x0?void 0x0:_0x57c8ff[_0x80d998(0x11d)])){if(!this['ApiService']['checksign']((_0x4a6663=_0x3092d2===null||_0x3092d2===void 0x0?void 0x0:_0x3092d2[_0x80d998(0xf7)])===null||_0x4a6663===void 0x0?void 0x0:_0x4a6663[_0x80d998(0x134)]))throw new AnnError(ApiError_1['ApiError']['HEADERS_SIGNATURE']);}},'around':async _0x49c8af=>{const _0x39b9cc=_0x1c5e5d;var _0x151a9d,_0x40ce50,_0x7572a5;const _0x40ca76=(_0x151a9d=_0x49c8af===null||_0x49c8af===void 0x0?void 0x0:_0x49c8af[_0x39b9cc(0x124)])===null||_0x151a9d===void 0x0?void 0x0:_0x151a9d[core_2[_0x39b9cc(0xec)]];if(_0x40ca76&&(_0x57c8ff===null||_0x57c8ff===void 0x0?void 0x0:_0x57c8ff[_0x39b9cc(0x11d)])&&((_0x57c8ff===null||_0x57c8ff===void 0x0?void 0x0:_0x57c8ff['intercept'])||typeof(_0x57c8ff===null||_0x57c8ff===void 0x0?void 0x0:_0x57c8ff[_0x39b9cc(0xef)])==_0x39b9cc(0xed))){if(((_0x40ce50=_0x40ca76[_0x39b9cc(0x134)])===null||_0x40ce50===void 0x0?void 0x0:_0x40ce50[_0x39b9cc(0x150)])&&((_0x7572a5=_0x56ea5c===null||_0x56ea5c===void 0x0?void 0x0:_0x56ea5c[_0x40ca76['headers'][_0x39b9cc(0x150)]])===null||_0x7572a5===void 0x0?void 0x0:_0x7572a5[_0x39b9cc(0x132)])>0x0)for(const _0x25ae00 of _0x56ea5c[_0x40ca76[_0x39b9cc(0x134)]['device']]||[]){if(core_1[_0x39b9cc(0x11f)]['isClass'](_0x25ae00)){const _0xabc78d=await _0x40ca76['requestContext'][_0x39b9cc(0x101)](_0x25ae00);typeof(_0xabc78d===null||_0xabc78d===void 0x0?void 0x0:_0xabc78d[_0x39b9cc(0x164)])==_0x39b9cc(0x146)?await _0xabc78d[_0x39b9cc(0x164)](_0x40ca76,typeof(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['method'])=='string'&&(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)])?_0x40ca76[_0x39b9cc(0x154)][_0x39b9cc(0x15e)]()+'@'+(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)]):undefined,_0x57c8ff)&&await _0xabc78d[_0x39b9cc(0x137)](_0x40ca76,typeof(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['method'])==_0x39b9cc(0xf1)&&(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['_matchedRoute'])?_0x40ca76[_0x39b9cc(0x154)][_0x39b9cc(0x15e)]()+'@'+(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['_matchedRoute']):undefined,_0x57c8ff):await _0xabc78d[_0x39b9cc(0x137)](_0x40ca76,typeof(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['method'])=='string'&&(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)])?_0x40ca76['method'][_0x39b9cc(0x15e)]()+'@'+(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)]):undefined,_0x57c8ff);}else core_1[_0x39b9cc(0x11f)][_0x39b9cc(0xe7)](_0x25ae00)&&await _0x25ae00(_0x40ca76,typeof(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76['method'])==_0x39b9cc(0xf1)&&(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)])?_0x40ca76[_0x39b9cc(0x154)][_0x39b9cc(0x15e)]()+'@'+(_0x40ca76===null||_0x40ca76===void 0x0?void 0x0:_0x40ca76[_0x39b9cc(0x121)]):undefined,_0x57c8ff);}}return await _0x49c8af[_0x39b9cc(0x13f)](..._0x49c8af['args']);},'afterThrow':(_0x184865,_0x200ef6)=>{throw _0x200ef6;}};});}async[a2_0x678002(0x14d)](){const _0x56ddb2=a2_0x678002;this[_0x56ddb2(0x120)][_0x56ddb2(0x117)](['koa'])['forEach'](_0x226e54=>{const _0x2a7d0c=_0x56ddb2;(_0x226e54===null||_0x226e54===void 0x0?void 0x0:_0x226e54[_0x2a7d0c(0x123)])&&Object[_0x2a7d0c(0x144)](_0x226e54[_0x2a7d0c(0x123)],{'ok':{'value':function(_0x42a1f4,_0x2816c9,_0x28eef0=0x0){return{'code':_0x28eef0,'data':_0x42a1f4,'extra':_0x2816c9};}},'input':{'value':function(_0x297626,_0x26da68){const _0x5492c2=_0x2a7d0c;var _0xbabc3f;const _0x2e7419=lodash[_0x5492c2(0x138)]({},this[_0x5492c2(0xf7)][_0x5492c2(0x103)]||this[_0x5492c2(0xf7)][((_0xbabc3f=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0xbabc3f===void 0x0?void 0x0:_0xbabc3f[_0x5492c2(0xeb)])||_0x5492c2(0x103)]||{},this[_0x5492c2(0xf7)]['query']||{});return _0x297626?lodash[_0x5492c2(0xf8)](_0x2e7419,_0x297626,_0x26da68):_0x2e7419;}},'when':{'value':async function(_0x115b8b,_0x2fc96e){const _0x4291ed=this['input'](_0x115b8b,null);if(!lodash['isNull'](_0x4291ed))return await _0x2fc96e(_0x4291ed);}},'only':{'value':function(_0x3943cb){const _0x42fb12=_0x2a7d0c,_0x1167ff={};for(let _0x415b12=0x0;_0x415b12<_0x3943cb['length'];_0x415b12++){lodash['isArray'](_0x3943cb[_0x415b12])&&_0x3943cb[_0x415b12][_0x42fb12(0x132)]>0x0&&lodash[_0x42fb12(0x127)](_0x3943cb[_0x415b12][0x0])&&(_0x1167ff[_0x3943cb[_0x415b12][0x0]]=this[_0x42fb12(0x14e)](_0x3943cb[_0x415b12][0x0],_0x3943cb[_0x415b12][_0x42fb12(0x132)]>0x1?_0x3943cb[_0x415b12][0x1]:null));}return _0x1167ff;}},'koasend':{'value':function(_0x3a82ff,_0x16ee30){const _0x53d9bb=_0x2a7d0c;if(!fs[_0x53d9bb(0x139)](this[_0x53d9bb(0x163)]['getAppDir']()+'/'+_0x3a82ff))return'文件不存在';return this[_0x53d9bb(0x125)](_0x16ee30||_0x3a82ff),koasend(this,_0x3a82ff);}}});});}async['loggerConfig'](){const _0x59e118=a2_0x678002;var _0x1226b6,_0x5acf25;if(fs[_0x59e118(0x139)](this[_0x59e118(0x163)]['getBaseDir']()+_0x59e118(0x105))&&fs[_0x59e118(0xfe)](this[_0x59e118(0x163)][_0x59e118(0x161)]()+_0x59e118(0x105))[_0x59e118(0x136)]()){const _0x468c69=this['config'][_0x59e118(0x107)](),_0x23fd18=((_0x1226b6=_0x468c69===null||_0x468c69===void 0x0?void 0x0:_0x468c69['midwayLogger'])===null||_0x1226b6===void 0x0?void 0x0:_0x1226b6[_0x59e118(0x104)])||{};for(const _0x358aad of fs[_0x59e118(0x148)](this['app']['getBaseDir']()+_0x59e118(0x105))){if(!fs[_0x59e118(0xfe)](this[_0x59e118(0x163)]['getBaseDir']()+_0x59e118(0x14b)+_0x358aad)[_0x59e118(0x136)]())continue;if(_0x23fd18===null||_0x23fd18===void 0x0?void 0x0:_0x23fd18[_0x358aad])continue;_0x23fd18[_0x358aad]=Object[_0x59e118(0x14a)]({},((_0x5acf25=_0x468c69===null||_0x468c69===void 0x0?void 0x0:_0x468c69['midwayLogger'])===null||_0x5acf25===void 0x0?void 0x0:_0x5acf25[_0x59e118(0x112)])||{'maxSize':'1m','dir':this[_0x59e118(0x163)][_0x59e118(0x142)]()+_0x59e118(0x14f)},{'enableJSON':!![],'enableConsole':this[_0x59e118(0x10d)]['isDevelopmentEnvironment'](),'fileLogName':_0x358aad+_0x59e118(0x122),'dir':this[_0x59e118(0x163)][_0x59e118(0x142)]()+_0x59e118(0x13e)+_0x358aad+_0x59e118(0x131)});}Object[_0x59e118(0x15b)](_0x23fd18)[_0x59e118(0x132)]>0x0&&(!_0x468c69[_0x59e118(0x157)]&&(_0x468c69['midwayLogger']={'default':{'maxSize':'1m','dir':this['app'][_0x59e118(0x142)]()+_0x59e118(0x14f)}}),_0x468c69[_0x59e118(0x157)][_0x59e118(0x104)]=_0x23fd18),this[_0x59e118(0xfa)][_0x59e118(0x115)](_0x468c69);}}async[a2_0x678002(0x160)](){const _0x4ebe55=a2_0x678002;var _0x3b4e58,_0x4554b6,_0x10f05b,_0x27f1f2,_0x248645,_0x211346;const _0x322226=this['config']['getConfiguration']();((_0x4554b6=(_0x3b4e58=_0x322226===null||_0x322226===void 0x0?void 0x0:_0x322226[_0x4ebe55(0x145)])===null||_0x3b4e58===void 0x0?void 0x0:_0x3b4e58[_0x4ebe55(0x12e)])===null||_0x4554b6===void 0x0?void 0x0:_0x4554b6[_0x4ebe55(0x110)])&&Object[_0x4ebe55(0x15b)](_0x322226[_0x4ebe55(0x145)]['devices'])['length']>0x1&&delete _0x322226[_0x4ebe55(0x145)][_0x4ebe55(0x12e)][_0x4ebe55(0x110)];if((_0x10f05b=_0x322226===null||_0x322226===void 0x0?void 0x0:_0x322226[_0x4ebe55(0x10e)])===null||_0x10f05b===void 0x0?void 0x0:_0x10f05b[_0x4ebe55(0x12a)])for(const _0x1c0953 in _0x322226['staticFile'][_0x4ebe55(0x12a)]){((_0x27f1f2=_0x322226[_0x4ebe55(0x10e)][_0x4ebe55(0x12a)][_0x1c0953])===null||_0x27f1f2===void 0x0?void 0x0:_0x27f1f2[_0x4ebe55(0x118)])&&typeof((_0x248645=_0x322226[_0x4ebe55(0x10e)]['dirs'][_0x1c0953])===null||_0x248645===void 0x0?void 0x0:_0x248645[_0x4ebe55(0x118)])==_0x4ebe55(0xf1)&&!fs['existsSync'](_0x322226[_0x4ebe55(0x10e)]['dirs'][_0x1c0953][_0x4ebe55(0x118)])&&(fs['mkdirSync'](_0x322226[_0x4ebe55(0x10e)][_0x4ebe55(0x12a)][_0x1c0953][_0x4ebe55(0x118)],{'recursive':!![]}),console[_0x4ebe55(0x10a)](_0x4ebe55(0x13b)+_0x322226['staticFile'][_0x4ebe55(0x12a)][_0x1c0953][_0x4ebe55(0x118)]));}((_0x211346=_0x322226===null||_0x322226===void 0x0?void 0x0:_0x322226[_0x4ebe55(0x13d)])===null||_0x211346===void 0x0?void 0x0:_0x211346[_0x4ebe55(0x119)])&&!fs[_0x4ebe55(0x139)](_0x322226[_0x4ebe55(0x13d)][_0x4ebe55(0x119)])&&(fs[_0x4ebe55(0xe8)](_0x322226[_0x4ebe55(0x13d)][_0x4ebe55(0x119)],{'recursive':!![]}),console['log'](_0x4ebe55(0x113)+_0x322226[_0x4ebe55(0x13d)][_0x4ebe55(0x119)])),this[_0x4ebe55(0xfa)][_0x4ebe55(0x115)](_0x322226);}};__decorate([(0x0,core_1[a2_0x678002(0x14c)])(),__metadata(a2_0x678002(0x108),Object)],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0x163),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x678002(0x108),core_2[a2_0x678002(0x155)])],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0xfa),void 0x0),__decorate([(0x0,core_1[a2_0x678002(0x10c)])(),__metadata(a2_0x678002(0x108),core_2[a2_0x678002(0x143)])],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0x130),void 0x0),__decorate([(0x0,core_1[a2_0x678002(0x10c)])(),__metadata(a2_0x678002(0x108),core_2[a2_0x678002(0x106)])],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0x120),void 0x0),__decorate([(0x0,core_1[a2_0x678002(0x10c)])(),__metadata(a2_0x678002(0x108),core_2[a2_0x678002(0x15c)])],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0x10d),void 0x0),__decorate([(0x0,core_1[a2_0x678002(0x10c)])(),__metadata(a2_0x678002(0x108),ApiService_1['ApiService'])],CustomConfiguration[a2_0x678002(0x126)],a2_0x678002(0x114),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x678002(0x116)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x678002(0x11b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x678002(0xf2)]=CustomConfiguration;
|
|
1
|
+
const a2_0x197331=a2_0x4bd2;(function(_0x3faa66,_0x1e4ff0){const _0x4293e6=a2_0x4bd2,_0x6afa26=_0x3faa66();while(!![]){try{const _0x7eb939=parseInt(_0x4293e6(0x15e))/0x1+-parseInt(_0x4293e6(0x16c))/0x2+-parseInt(_0x4293e6(0x115))/0x3*(-parseInt(_0x4293e6(0x14e))/0x4)+parseInt(_0x4293e6(0x14a))/0x5*(-parseInt(_0x4293e6(0xfb))/0x6)+-parseInt(_0x4293e6(0x136))/0x7*(-parseInt(_0x4293e6(0x142))/0x8)+parseInt(_0x4293e6(0x15b))/0x9*(parseInt(_0x4293e6(0x11b))/0xa)+-parseInt(_0x4293e6(0x130))/0xb*(parseInt(_0x4293e6(0x16b))/0xc);if(_0x7eb939===_0x1e4ff0)break;else _0x6afa26['push'](_0x6afa26['shift']());}catch(_0x2b1154){_0x6afa26['push'](_0x6afa26['shift']());}}}(a2_0x50ad,0x374c1));const a2_0x546e91=(function(){let _0x1e4de2=!![];return function(_0x598bea,_0x1e153e){const _0x2f3cbf=_0x1e4de2?function(){if(_0x1e153e){const _0x404e2b=_0x1e153e['apply'](_0x598bea,arguments);return _0x1e153e=null,_0x404e2b;}}:function(){};return _0x1e4de2=![],_0x2f3cbf;};}()),a2_0x15f14b=a2_0x546e91(this,function(){const _0x1b9c44=a2_0x4bd2;return a2_0x15f14b[_0x1b9c44(0x119)]()[_0x1b9c44(0x12e)](_0x1b9c44(0x146))[_0x1b9c44(0x119)]()['constructor'](a2_0x15f14b)['search'](_0x1b9c44(0x146));});a2_0x15f14b();'use strict';var __decorate=this&&this['__decorate']||function(_0x69cc08,_0x3c8e68,_0x5af3e0,_0x32bb81){const _0x429622=a2_0x4bd2;var _0x33f896=arguments[_0x429622(0x169)],_0x42ad59=_0x33f896<0x3?_0x3c8e68:_0x32bb81===null?_0x32bb81=Object[_0x429622(0x105)](_0x3c8e68,_0x5af3e0):_0x32bb81,_0x466c52;if(typeof Reflect===_0x429622(0x118)&&typeof Reflect[_0x429622(0x102)]===_0x429622(0x10d))_0x42ad59=Reflect[_0x429622(0x102)](_0x69cc08,_0x3c8e68,_0x5af3e0,_0x32bb81);else{for(var _0x2cd457=_0x69cc08[_0x429622(0x169)]-0x1;_0x2cd457>=0x0;_0x2cd457--)if(_0x466c52=_0x69cc08[_0x2cd457])_0x42ad59=(_0x33f896<0x3?_0x466c52(_0x42ad59):_0x33f896>0x3?_0x466c52(_0x3c8e68,_0x5af3e0,_0x42ad59):_0x466c52(_0x3c8e68,_0x5af3e0))||_0x42ad59;}return _0x33f896>0x3&&_0x42ad59&&Object[_0x429622(0x133)](_0x3c8e68,_0x5af3e0,_0x42ad59),_0x42ad59;},__metadata=this&&this[a2_0x197331(0x150)]||function(_0x26a58f,_0x337522){const _0x51621c=a2_0x197331;if(typeof Reflect===_0x51621c(0x118)&&typeof Reflect[_0x51621c(0x121)]===_0x51621c(0x10d))return Reflect[_0x51621c(0x121)](_0x26a58f,_0x337522);};function a2_0x4bd2(_0x572281,_0x1df1ff){const _0x5c7f64=a2_0x50ad();return a2_0x4bd2=function(_0x15f14b,_0x546e91){_0x15f14b=_0x15f14b-0xf9;let _0x50ad9d=_0x5c7f64[_0x15f14b];return _0x50ad9d;},a2_0x4bd2(_0x572281,_0x1df1ff);}Object[a2_0x197331(0x133)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x197331(0x156)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x197331(0x157)),ApiService_1=require(a2_0x197331(0x129)),action_1=require('./types/action'),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x197331(0xfc)),koa=require(a2_0x197331(0x13f)),i18n=require(a2_0x197331(0x11d)),upload=require(a2_0x197331(0x158)),staticFile=require(a2_0x197331(0xff)),crossDomain=require('@midwayjs/cross-domain'),ConfigDefault=require(a2_0x197331(0x131)),ConfigProduction=require(a2_0x197331(0x13a)),anncic=require(a2_0x197331(0x103)),anncicCache=require('@anncic-api/cache'),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require(a2_0x197331(0x167)),anncicHelper=require(a2_0x197331(0x14f));function a2_0x50ad(){const _0xbcac3e=['REQUEST_OBJ_CTX_KEY','assign','801468ncymBa','isNull','getAppDir','86670QYwUJi','context','registerMethodHandler','args','toLowerCase','ACTION_ROUTE_KEY','anncicapi','getClassMetadata','Types','@anncic-api/validator','/apps','length','App','24cZHCNW','641120oXeMmU','getApplications','HEADERS_SIGNATURE','config','isDevelopmentEnvironment','44196IAesqE','koa-send','devices','/runtime/apps-','@midwayjs/static-file','keys','key','decorate','@anncic-api/core','tmpdir','getOwnPropertyDescriptor','intercept','getAsync','ApiService','Inject','getBaseDir','MidwayDecoratorService','filterConfig','function','bodyXml','isClass','dirs','文件不存在','defaultsDeep','application','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','8016NdimNY','match','attachment','object','toString','.log','40FgnpmF','get','@midwayjs/i18n','addObject','apimit','statSync','metadata','default','proceed','upload','MidwayConfigService','requestContext','log','decorator','./service/ApiService','handlerActionRoute','string','design:type','DEFAULT','search','MidwayEnvironmentService','2412058KwxrnM','./config/config.default','input','defineProperty','INTERCEPT_KEY','prototype','8701UqDdUw','loggerConfig','dir','checkConfigKeys','./config/config.production','forEach','MidwayApplicationManager','/runtime','undefined','@midwayjs/koa','app','midwayLogger','1448PBTLUt','_matchedRoute','clients','ApiError','(((.+)+)+)+$','staticFile','method','handler','60KJvVyo','request','-log','headers','608ysutUO','anncic-apihelper','__metadata','device','existsSync','body','koa','checksign','@midwayjs/core','./exception/ApiError','@midwayjs/upload'];a2_0x50ad=function(){return _0xbcac3e;};return a2_0x50ad();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x40401a=a2_0x197331;await this['filterConfig'](),await this[_0x40401a(0x137)](),await this[_0x40401a(0x139)](),await this[_0x40401a(0x12a)](),await this['hanlderApplications']();}async[a2_0x197331(0x139)](){}async[a2_0x197331(0x12a)](){const _0x5e1386=a2_0x197331,_0x3417cc=(0x0,core_1[_0x5e1386(0x165)])(intercept_1[_0x5e1386(0x134)],intercept_1['InterceptTargetTmp'])||{};this[_0x5e1386(0x128)][_0x5e1386(0x160)](action_1[_0x5e1386(0x163)],_0x288c31=>{const _0x2b3f8c=_0x5e1386,_0x22396d=_0x288c31[_0x2b3f8c(0x121)];return{'before':async _0x13cdbc=>{const _0x1a3044=_0x2b3f8c;var _0x301f7d,_0x198406;const _0x5aaacc=(_0x301f7d=_0x13cdbc===null||_0x13cdbc===void 0x0?void 0x0:_0x13cdbc['target'])===null||_0x301f7d===void 0x0?void 0x0:_0x301f7d[core_2[_0x1a3044(0x159)]];if(_0x5aaacc&&(_0x22396d===null||_0x22396d===void 0x0?void 0x0:_0x22396d[_0x1a3044(0x11f)])){if(!this['ApiService'][_0x1a3044(0x155)]((_0x198406=_0x5aaacc===null||_0x5aaacc===void 0x0?void 0x0:_0x5aaacc['request'])===null||_0x198406===void 0x0?void 0x0:_0x198406[_0x1a3044(0x14d)]))throw new AnnError(ApiError_1[_0x1a3044(0x145)][_0x1a3044(0x16e)]);}},'around':async _0x358cbb=>{const _0x525438=_0x2b3f8c;var _0x228054,_0x178517,_0xb9df26;const _0x1ea002=(_0x228054=_0x358cbb===null||_0x358cbb===void 0x0?void 0x0:_0x358cbb['target'])===null||_0x228054===void 0x0?void 0x0:_0x228054[core_2[_0x525438(0x159)]];if(_0x1ea002&&(_0x22396d===null||_0x22396d===void 0x0?void 0x0:_0x22396d[_0x525438(0x11f)])&&((_0x22396d===null||_0x22396d===void 0x0?void 0x0:_0x22396d[_0x525438(0x106)])||typeof(_0x22396d===null||_0x22396d===void 0x0?void 0x0:_0x22396d[_0x525438(0x106)])==_0x525438(0x13e))){if(((_0x178517=_0x1ea002[_0x525438(0x14d)])===null||_0x178517===void 0x0?void 0x0:_0x178517[_0x525438(0x151)])&&((_0xb9df26=_0x3417cc===null||_0x3417cc===void 0x0?void 0x0:_0x3417cc[_0x1ea002[_0x525438(0x14d)][_0x525438(0x151)]])===null||_0xb9df26===void 0x0?void 0x0:_0xb9df26[_0x525438(0x169)])>0x0)for(const _0x54b9c8 of _0x3417cc[_0x1ea002['headers'][_0x525438(0x151)]]||[]){if(core_1[_0x525438(0x166)][_0x525438(0x10f)](_0x54b9c8)){const _0xd301dc=await _0x1ea002[_0x525438(0x126)][_0x525438(0x107)](_0x54b9c8);typeof(_0xd301dc===null||_0xd301dc===void 0x0?void 0x0:_0xd301dc[_0x525438(0x116)])==_0x525438(0x10d)?await _0xd301dc['match'](_0x1ea002,typeof(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x148)])==_0x525438(0x12b)&&(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)])?_0x1ea002[_0x525438(0x148)][_0x525438(0x162)]()+'@'+(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)]):undefined,_0x22396d)&&await _0xd301dc['handler'](_0x1ea002,typeof(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x148)])=='string'&&(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)])?_0x1ea002[_0x525438(0x148)][_0x525438(0x162)]()+'@'+(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)]):undefined,_0x22396d):await _0xd301dc[_0x525438(0x149)](_0x1ea002,typeof(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x148)])==_0x525438(0x12b)&&(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002['_matchedRoute'])?_0x1ea002['method'][_0x525438(0x162)]()+'@'+(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)]):undefined,_0x22396d);}else core_1[_0x525438(0x166)]['isFunction'](_0x54b9c8)&&await _0x54b9c8(_0x1ea002,typeof(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x148)])=='string'&&(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002['_matchedRoute'])?_0x1ea002['method'][_0x525438(0x162)]()+'@'+(_0x1ea002===null||_0x1ea002===void 0x0?void 0x0:_0x1ea002[_0x525438(0x143)]):undefined,_0x22396d);}}return await _0x358cbb[_0x525438(0x123)](..._0x358cbb[_0x525438(0x161)]);},'afterThrow':(_0x4d94e5,_0x348704)=>{throw _0x348704;}};});}async['hanlderApplications'](){const _0x24f4dc=a2_0x197331;this['application'][_0x24f4dc(0x16d)]([_0x24f4dc(0x154)])[_0x24f4dc(0x13b)](_0x4762e3=>{const _0x53a21d=_0x24f4dc;(_0x4762e3===null||_0x4762e3===void 0x0?void 0x0:_0x4762e3[_0x53a21d(0x15f)])&&Object['defineProperties'](_0x4762e3['context'],{'ok':{'value':function(_0x62f84b,_0x10a8c6,_0x14c48c=0x0){return{'code':_0x14c48c,'data':_0x62f84b,'extra':_0x10a8c6};}},'input':{'value':function(_0x3f1195,_0x55bbb0){const _0x320c8c=_0x53a21d;var _0x5ab5ce;const _0x165e78=lodash[_0x320c8c(0x112)]({},this[_0x320c8c(0x14b)][_0x320c8c(0x153)]||this[_0x320c8c(0x14b)][((_0x5ab5ce=config===null||config===void 0x0?void 0x0:config[_0x320c8c(0x10e)])===null||_0x5ab5ce===void 0x0?void 0x0:_0x5ab5ce[_0x320c8c(0x101)])||_0x320c8c(0x153)]||{},this[_0x320c8c(0x14b)]['query']||{});return _0x3f1195?lodash[_0x320c8c(0x11c)](_0x165e78,_0x3f1195,_0x55bbb0):_0x165e78;}},'when':{'value':async function(_0x5460d2,_0x4a5e98){const _0x297e37=_0x53a21d,_0x809531=this[_0x297e37(0x132)](_0x5460d2,null);if(!lodash[_0x297e37(0x15c)](_0x809531))return await _0x4a5e98(_0x809531);}},'only':{'value':function(_0x36eb1b){const _0x4fc4b4=_0x53a21d,_0xf9dc03={};for(let _0x4c6638=0x0;_0x4c6638<_0x36eb1b[_0x4fc4b4(0x169)];_0x4c6638++){lodash['isArray'](_0x36eb1b[_0x4c6638])&&_0x36eb1b[_0x4c6638][_0x4fc4b4(0x169)]>0x0&&lodash['isString'](_0x36eb1b[_0x4c6638][0x0])&&(_0xf9dc03[_0x36eb1b[_0x4c6638][0x0]]=this[_0x4fc4b4(0x132)](_0x36eb1b[_0x4c6638][0x0],_0x36eb1b[_0x4c6638][_0x4fc4b4(0x169)]>0x1?_0x36eb1b[_0x4c6638][0x1]:null));}return _0xf9dc03;}},'koasend':{'value':function(_0x3093e2,_0x4ecf98){const _0x201d65=_0x53a21d;if(!fs[_0x201d65(0x152)](this[_0x201d65(0x140)][_0x201d65(0x15d)]()+'/'+_0x3093e2))return _0x201d65(0x111);return this[_0x201d65(0x117)](_0x4ecf98||_0x3093e2),koasend(this,_0x3093e2);}}});});}async[a2_0x197331(0x137)](){const _0x4e0a8c=a2_0x197331;var _0x2a7f92,_0x5de186;if(fs[_0x4e0a8c(0x152)](this[_0x4e0a8c(0x140)]['getBaseDir']()+_0x4e0a8c(0x168))&&fs[_0x4e0a8c(0x120)](this[_0x4e0a8c(0x140)][_0x4e0a8c(0x10a)]()+'/apps')['isDirectory']()){const _0x50b816=this['config']['getConfiguration'](),_0x330936=((_0x2a7f92=_0x50b816===null||_0x50b816===void 0x0?void 0x0:_0x50b816[_0x4e0a8c(0x141)])===null||_0x2a7f92===void 0x0?void 0x0:_0x2a7f92['clients'])||{};for(const _0x25441c of fs['readdirSync'](this[_0x4e0a8c(0x140)]['getBaseDir']()+_0x4e0a8c(0x168))){if(!fs[_0x4e0a8c(0x120)](this[_0x4e0a8c(0x140)][_0x4e0a8c(0x10a)]()+'/apps/'+_0x25441c)['isDirectory']())continue;if(_0x330936===null||_0x330936===void 0x0?void 0x0:_0x330936[_0x25441c])continue;_0x330936[_0x25441c]=Object[_0x4e0a8c(0x15a)]({},((_0x5de186=_0x50b816===null||_0x50b816===void 0x0?void 0x0:_0x50b816[_0x4e0a8c(0x141)])===null||_0x5de186===void 0x0?void 0x0:_0x5de186[_0x4e0a8c(0x122)])||{'maxSize':'1m','dir':this[_0x4e0a8c(0x140)][_0x4e0a8c(0x15d)]()+_0x4e0a8c(0x13d)},{'enableJSON':!![],'enableConsole':this['environment'][_0x4e0a8c(0xfa)](),'fileLogName':_0x25441c+_0x4e0a8c(0x11a),'dir':this[_0x4e0a8c(0x140)]['getAppDir']()+_0x4e0a8c(0xfe)+_0x25441c+_0x4e0a8c(0x14c)});}Object[_0x4e0a8c(0x100)](_0x330936)['length']>0x0&&(!_0x50b816['midwayLogger']&&(_0x50b816[_0x4e0a8c(0x141)]={'default':{'maxSize':'1m','dir':this[_0x4e0a8c(0x140)]['getAppDir']()+'/runtime'}}),_0x50b816[_0x4e0a8c(0x141)][_0x4e0a8c(0x144)]=_0x330936),this[_0x4e0a8c(0xf9)][_0x4e0a8c(0x11e)](_0x50b816);}}async[a2_0x197331(0x10c)](){const _0x2cf246=a2_0x197331;var _0x39a31b,_0x3774a8,_0x34b9ea,_0x1aa594,_0x57d140,_0x2f9141;const _0xa40d25=this[_0x2cf246(0xf9)]['getConfiguration']();((_0x3774a8=(_0x39a31b=_0xa40d25===null||_0xa40d25===void 0x0?void 0x0:_0xa40d25[_0x2cf246(0x164)])===null||_0x39a31b===void 0x0?void 0x0:_0x39a31b[_0x2cf246(0xfd)])===null||_0x3774a8===void 0x0?void 0x0:_0x3774a8[_0x2cf246(0x12d)])&&Object['keys'](_0xa40d25['anncicapi'][_0x2cf246(0xfd)])[_0x2cf246(0x169)]>0x1&&delete _0xa40d25[_0x2cf246(0x164)][_0x2cf246(0xfd)][_0x2cf246(0x12d)];if((_0x34b9ea=_0xa40d25===null||_0xa40d25===void 0x0?void 0x0:_0xa40d25[_0x2cf246(0x147)])===null||_0x34b9ea===void 0x0?void 0x0:_0x34b9ea['dirs'])for(const _0x1ebfcc in _0xa40d25['staticFile'][_0x2cf246(0x110)]){((_0x1aa594=_0xa40d25[_0x2cf246(0x147)][_0x2cf246(0x110)][_0x1ebfcc])===null||_0x1aa594===void 0x0?void 0x0:_0x1aa594[_0x2cf246(0x138)])&&typeof((_0x57d140=_0xa40d25[_0x2cf246(0x147)][_0x2cf246(0x110)][_0x1ebfcc])===null||_0x57d140===void 0x0?void 0x0:_0x57d140['dir'])==_0x2cf246(0x12b)&&!fs[_0x2cf246(0x152)](_0xa40d25[_0x2cf246(0x147)]['dirs'][_0x1ebfcc][_0x2cf246(0x138)])&&(fs['mkdirSync'](_0xa40d25[_0x2cf246(0x147)][_0x2cf246(0x110)][_0x1ebfcc][_0x2cf246(0x138)],{'recursive':!![]}),console[_0x2cf246(0x127)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0xa40d25[_0x2cf246(0x147)][_0x2cf246(0x110)][_0x1ebfcc]['dir']));}((_0x2f9141=_0xa40d25===null||_0xa40d25===void 0x0?void 0x0:_0xa40d25[_0x2cf246(0x124)])===null||_0x2f9141===void 0x0?void 0x0:_0x2f9141[_0x2cf246(0x104)])&&!fs[_0x2cf246(0x152)](_0xa40d25[_0x2cf246(0x124)][_0x2cf246(0x104)])&&(fs['mkdirSync'](_0xa40d25[_0x2cf246(0x124)][_0x2cf246(0x104)],{'recursive':!![]}),console[_0x2cf246(0x127)](_0x2cf246(0x114)+_0xa40d25['upload'][_0x2cf246(0x104)])),this['config'][_0x2cf246(0x11e)](_0xa40d25);}};__decorate([(0x0,core_1[a2_0x197331(0x16a)])(),__metadata(a2_0x197331(0x12c),Object)],CustomConfiguration[a2_0x197331(0x135)],a2_0x197331(0x140),void 0x0),__decorate([(0x0,core_1[a2_0x197331(0x109)])(),__metadata('design:type',core_2[a2_0x197331(0x125)])],CustomConfiguration['prototype'],a2_0x197331(0xf9),void 0x0),__decorate([(0x0,core_1[a2_0x197331(0x109)])(),__metadata(a2_0x197331(0x12c),core_2[a2_0x197331(0x10b)])],CustomConfiguration[a2_0x197331(0x135)],a2_0x197331(0x128),void 0x0),__decorate([(0x0,core_1[a2_0x197331(0x109)])(),__metadata('design:type',core_2[a2_0x197331(0x13c)])],CustomConfiguration[a2_0x197331(0x135)],a2_0x197331(0x113),void 0x0),__decorate([(0x0,core_1[a2_0x197331(0x109)])(),__metadata(a2_0x197331(0x12c),core_2[a2_0x197331(0x12f)])],CustomConfiguration[a2_0x197331(0x135)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x197331(0x109)])(),__metadata(a2_0x197331(0x12c),ApiService_1[a2_0x197331(0x108)])],CustomConfiguration[a2_0x197331(0x135)],'ApiService',void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0xec2da0=a3_0x363d;(function(_0x5be6f4,_0x174a92){const _0x123e3e=a3_0x363d,_0x33df4d=_0x5be6f4();while(!![]){try{const _0x440fd1=parseInt(_0x123e3e(0x177))/0x1*(parseInt(_0x123e3e(0x17f))/0x2)+-parseInt(_0x123e3e(0x192))/0x3*(-parseInt(_0x123e3e(0x187))/0x4)+parseInt(_0x123e3e(0x169))/0x5*(-parseInt(_0x123e3e(0x18d))/0x6)+-parseInt(_0x123e3e(0x161))/0x7+-parseInt(_0x123e3e(0x180))/0x8*(parseInt(_0x123e3e(0x18c))/0x9)+-parseInt(_0x123e3e(0x18e))/0xa*(parseInt(_0x123e3e(0x181))/0xb)+parseInt(_0x123e3e(0x17c))/0xc*(parseInt(_0x123e3e(0x162))/0xd);if(_0x440fd1===_0x174a92)break;else _0x33df4d['push'](_0x33df4d['shift']());}catch(_0x35ca74){_0x33df4d['push'](_0x33df4d['shift']());}}}(a3_0x2596,0xc3f2e));function a3_0x363d(_0x458f24,_0x554975){const _0x484f1e=a3_0x2596();return a3_0x363d=function(_0x49eda3,_0x1d25a2){_0x49eda3=_0x49eda3-0x161;let _0x25963d=_0x484f1e[_0x49eda3];return _0x25963d;},a3_0x363d(_0x458f24,_0x554975);}const a3_0x1d25a2=(function(){let _0x46029e=!![];return function(_0x57c5be,_0x398487){const _0x98a005=_0x46029e?function(){if(_0x398487){const _0x3425d4=_0x398487['apply'](_0x57c5be,arguments);return _0x398487=null,_0x3425d4;}}:function(){};return _0x46029e=![],_0x98a005;};}()),a3_0x49eda3=a3_0x1d25a2(this,function(){const _0x366995=a3_0x363d;return a3_0x49eda3[_0x366995(0x186)]()[_0x366995(0x18f)]('(((.+)+)+)+$')[_0x366995(0x186)]()[_0x366995(0x195)](a3_0x49eda3)[_0x366995(0x18f)](_0x366995(0x18a));});a3_0x49eda3();'use strict';Object['defineProperty'](exports,a3_0xec2da0(0x182),{'value':!![]}),exports[a3_0xec2da0(0x17e)]=exports['Action']=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require('../types/action');function Action(_0x82bc7a,_0x1a1b06,_0x191d1f={'middleware':[],'sensitive':!![]}){return _0x54fb3a=>{const _0x16f015=a3_0x363d;var _0x5322de;_0x191d1f[_0x16f015(0x16e)]=_0x1a1b06;const _0x5680f0=parseRoute(_0x82bc7a);if(_0x5680f0[_0x16f015(0x17b)]){_0x191d1f['prefix']=_0x191d1f[_0x16f015(0x193)]?'/'+_0x5680f0[_0x16f015(0x17b)]+'/'+_0x191d1f['prefix']:'/'+_0x5680f0[_0x16f015(0x183)];_0x5680f0[_0x16f015(0x193)]&&(_0x191d1f[_0x16f015(0x193)]='/'+_0x5680f0['prefix']+'/'+_0x191d1f[_0x16f015(0x193)]);if(fs['existsSync'](_0x5680f0['rootpath']+_0x16f015(0x164)+_0x5680f0[_0x16f015(0x17b)]+'/config.'+(lodash[_0x16f015(0x163)](_0x5680f0[_0x16f015(0x168)],'ts')?'ts':'js'))){const _0x238b36=include(_0x5680f0[_0x16f015(0x175)]+_0x16f015(0x164)+_0x5680f0[_0x16f015(0x17b)]+'/config.'+(lodash[_0x16f015(0x163)](_0x5680f0[_0x16f015(0x168)],'ts')?'ts':'js'));if(_0x238b36[_0x16f015(0x178)]&&lodash['isArray'](_0x238b36[_0x16f015(0x178)])&&_0x238b36[_0x16f015(0x178)][_0x16f015(0x190)]>0x0)for(let _0x94f842 in _0x238b36[_0x16f015(0x178)]){if(((_0x5322de=_0x238b36===null||_0x238b36===void 0x0?void 0x0:_0x238b36[_0x16f015(0x184)])===null||_0x5322de===void 0x0?void 0x0:_0x5322de[_0x16f015(0x190)])>0x0&&_0x238b36[_0x16f015(0x184)][_0x16f015(0x17a)](_0x238b36['middleware'][_0x94f842])!=-0x1)continue;_0x191d1f[_0x16f015(0x178)][_0x16f015(0x197)](_0x238b36[_0x16f015(0x178)][_0x94f842]);}const _0x594336=(0x0,core_1[_0x16f015(0x194)])(action_1[_0x16f015(0x176)],action_1[_0x16f015(0x167)])||{};_0x594336[''+_0x5680f0[_0x16f015(0x17b)]]=_0x238b36,(0x0,core_1[_0x16f015(0x198)])(action_1[_0x16f015(0x176)],_0x594336,action_1[_0x16f015(0x167)]);}_0x191d1f[_0x16f015(0x193)]=_0x191d1f[_0x16f015(0x193)][_0x16f015(0x17d)]()[_0x16f015(0x196)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x16f015(0x189)],_0x54fb3a),(0x0,core_1[_0x16f015(0x171)])(_0x191d1f[_0x16f015(0x193)],_0x191d1f)(_0x54fb3a),(0x0,core_1[_0x16f015(0x198)])(action_1['ACTION_KEY'],{'prefix':_0x191d1f[_0x16f015(0x193)],'pprefix':_0x5680f0['prefix'],'module':_0x5680f0[_0x16f015(0x17b)],'filepath':_0x5680f0[_0x16f015(0x168)],'routerOptions':_0x191d1f},_0x54fb3a);}else _0x191d1f[_0x16f015(0x193)]=_0x191d1f[_0x16f015(0x193)]?'/'+_0x191d1f['prefix']:'/'+_0x5680f0['route'],_0x5680f0[_0x16f015(0x193)]&&(_0x191d1f[_0x16f015(0x193)]='/'+_0x5680f0[_0x16f015(0x193)]+'/'+_0x191d1f[_0x16f015(0x193)]),_0x191d1f[_0x16f015(0x193)]=_0x191d1f['prefix'][_0x16f015(0x17d)]()['replace'](/\/{2,}/g,'/'),(0x0,core_1[_0x16f015(0x191)])(action_1[_0x16f015(0x189)],_0x54fb3a),(0x0,core_1['Controller'])(_0x191d1f[_0x16f015(0x193)],_0x191d1f)(_0x54fb3a),(0x0,core_1[_0x16f015(0x198)])(action_1[_0x16f015(0x189)],{'prefix':_0x191d1f['prefix'],'module':_0x5680f0[_0x16f015(0x17b)],'pprefix':_0x5680f0[_0x16f015(0x193)],'filepath':_0x5680f0['filepath'],'routerOptions':_0x191d1f},_0x54fb3a);};}exports[a3_0xec2da0(0x188)]=Action;function parseRoute(_0x5cecb8){const _0xd4f538=a3_0xec2da0;_0x5cecb8=_0x5cecb8[_0xd4f538(0x196)](/(\\|\/)/g,'/');const _0xccf2d0=process[_0xd4f538(0x16f)]()[_0xd4f538(0x196)](/(\\|\/)/g,'/'),_0x41b080=_0x5cecb8['substring'](0x0,_0xccf2d0[_0xd4f538(0x190)]+_0x5cecb8[_0xd4f538(0x170)](_0xccf2d0[_0xd4f538(0x190)]+0x1)[_0xd4f538(0x17a)]('/')+0x1),_0x22c4fd=_0x5cecb8['substring'](_0x41b080[_0xd4f538(0x190)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x4c9170={'route':'','prefix':![],'module':![],'rootpath':_0x41b080,'filepath':_0x22c4fd};if(_0x22c4fd[_0xd4f538(0x174)](_0xd4f538(0x173))||_0x22c4fd[_0xd4f538(0x174)](_0xd4f538(0x16a))){const _0xe4b045=_0x22c4fd[_0xd4f538(0x170)]((_0x22c4fd['startsWith'](_0xd4f538(0x173))?_0xd4f538(0x173):'basic/controller/')['length'])[_0xd4f538(0x18b)]('/')[_0xd4f538(0x16b)](_0x4b122c=>_0x4b122c&&_0x4b122c[_0xd4f538(0x16c)]());return _0xe4b045[_0xd4f538(0x190)]>0x1&&(_0x4c9170['prefix']=_0xe4b045[0x0][_0xd4f538(0x17d)](),_0xe4b045['splice'](0x0,0x1)),_0x4c9170[_0xd4f538(0x183)]=('/'+_0xe4b045['join']('/'))['replace'](/(\.ts|\.js)$/,'')[_0xd4f538(0x196)](/\/{2,}/g,'/')[_0xd4f538(0x185)](/[\/|A-Z]*[^A-Z]+/g)[_0xd4f538(0x199)]('-')[_0xd4f538(0x17d)]()[_0xd4f538(0x196)](/\/\-/g,'/'),_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x163)](_0xd4f538(0x19a))&&(_0x4c9170[_0xd4f538(0x183)]=_0x4c9170[_0xd4f538(0x183)]['substring'](0x0,_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x190)]-0x7)),_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x163)]('-controller')&&(_0x4c9170[_0xd4f538(0x183)]=_0x4c9170[_0xd4f538(0x183)]['substring'](0x0,_0x4c9170['route'][_0xd4f538(0x190)]-0xb)),_0x4c9170;}else{if(_0x22c4fd[_0xd4f538(0x174)](_0xd4f538(0x16d))){const _0x24b460=_0x22c4fd['substring'](0x0,_0x22c4fd[_0xd4f538(0x17a)](_0xd4f538(0x164))+0x5),_0x4bb02a=_0x22c4fd[_0xd4f538(0x170)](_0x24b460[_0xd4f538(0x190)]+0x1)[_0xd4f538(0x196)](/(\\|\/)/g,'/')[_0xd4f538(0x18b)]('/')[0x0];if(_0x22c4fd['startsWith']('apps/'+_0x4bb02a+_0xd4f538(0x172))){const _0x48d6c0=_0x22c4fd['substring']((_0x24b460+'/'+_0x4bb02a+_0xd4f538(0x172))[_0xd4f538(0x190)])[_0xd4f538(0x18b)]('/')[_0xd4f538(0x16b)](_0x47e3c4=>_0x47e3c4&&_0x47e3c4['trim']());return _0x48d6c0[_0xd4f538(0x190)]>0x1&&(_0x4c9170['prefix']=_0x48d6c0[0x0][_0xd4f538(0x17d)](),_0x48d6c0['splice'](0x0,0x1)),_0x4c9170[_0xd4f538(0x17b)]=_0x4bb02a,_0x4c9170[_0xd4f538(0x183)]=('/'+_0x4bb02a+'/'+_0x48d6c0[_0xd4f538(0x199)]('/'))[_0xd4f538(0x196)](/(\.ts|\.js)$/,'')[_0xd4f538(0x196)](/\/{2,}/,'/')[_0xd4f538(0x185)](/[\/|A-Z]*[^A-Z]+/g)[_0xd4f538(0x199)]('-')[_0xd4f538(0x17d)]()[_0xd4f538(0x196)](/\/\-/g,'/'),_0x4c9170[_0xd4f538(0x183)]['endsWith'](_0xd4f538(0x19a))&&(_0x4c9170[_0xd4f538(0x183)]=_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x170)](0x0,_0x4c9170[_0xd4f538(0x183)]['length']-0x7)),_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x163)](_0xd4f538(0x179))&&(_0x4c9170[_0xd4f538(0x183)]=_0x4c9170['route'][_0xd4f538(0x170)](0x0,_0x4c9170[_0xd4f538(0x183)][_0xd4f538(0x190)]-0xb)),_0x4c9170;}throw new Error(_0x22c4fd+_0xd4f538(0x165)+_0x4bb02a+_0xd4f538(0x166));}}throw new Error(_0x22c4fd+'\x20文件请放在app/controller/文件下');}exports['parseRoute']=parseRoute;function a3_0x2596(){const _0x520b6c=['tagName','cwd','substring','Controller','/controller/','app/controller/','startsWith','rootpath','APPSCONFIG_KEY','1jEVKVV','middleware','-controller','indexOf','module','100668ajKUEE','toLowerCase','parseRoute','1012084dJgBCQ','120088OGRipL','22MMmnHZ','__esModule','route','middlewareIgnore','match','toString','3695744mFsCNU','Action','ACTION_KEY','(((.+)+)+)+$','split','72nUWpXd','141828RJbfqi','1923390nyMAVm','search','length','saveModule','3nIDGOd','prefix','getClassMetadata','constructor','replace','push','saveClassMetadata','join','-action','5125050TavHRO','2886umpqbN','endsWith','/apps/','\x20文件请放在apps/','/controller/文件下','AppsConfigTmp','filepath','265BothQz','basic/controller/','filter','trim','apps/'];a3_0x2596=function(){return _0x520b6c;};return a3_0x2596();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x7ab7c3=a4_0x1b23;(function(_0x20a238,_0x3dcbdb){const _0x502474=a4_0x1b23,_0x5f2130=_0x20a238();while(!![]){try{const _0x4397da=-parseInt(_0x502474(0xa8))/0x1*(-parseInt(_0x502474(0x97))/0x2)+-parseInt(_0x502474(0xa2))/0x3*(parseInt(_0x502474(0xae))/0x4)+parseInt(_0x502474(0x9f))/0x5*(-parseInt(_0x502474(0xa7))/0x6)+-parseInt(_0x502474(0xad))/0x7+-parseInt(_0x502474(0x8d))/0x8*(-parseInt(_0x502474(0xac))/0x9)+-parseInt(_0x502474(0x96))/0xa+-parseInt(_0x502474(0x8c))/0xb*(-parseInt(_0x502474(0x9c))/0xc);if(_0x4397da===_0x3dcbdb)break;else _0x5f2130['push'](_0x5f2130['shift']());}catch(_0x1fb643){_0x5f2130['push'](_0x5f2130['shift']());}}}(a4_0x13af,0xad775));const a4_0x8b7521=(function(){let _0x2a711e=!![];return function(_0x4f2eec,_0x17211b){const _0x4f0c43=_0x2a711e?function(){const _0x1dc73d=a4_0x1b23;if(_0x17211b){const _0x5c07f0=_0x17211b[_0x1dc73d(0x91)](_0x4f2eec,arguments);return _0x17211b=null,_0x5c07f0;}}:function(){};return _0x2a711e=![],_0x4f0c43;};}()),a4_0x4af7b7=a4_0x8b7521(this,function(){const _0x16347a=a4_0x1b23;return a4_0x4af7b7['toString']()[_0x16347a(0x89)](_0x16347a(0xa6))[_0x16347a(0xb0)]()[_0x16347a(0xa9)](a4_0x4af7b7)['search'](_0x16347a(0xa6));});a4_0x4af7b7();'use strict';Object[a4_0x7ab7c3(0x8f)](exports,a4_0x7ab7c3(0x9a),{'value':!![]}),exports[a4_0x7ab7c3(0x99)]=void 0x0;const validator_1=require(a4_0x7ab7c3(0xaf)),core_1=require(a4_0x7ab7c3(0x9e)),action_1=require(a4_0x7ab7c3(0x8b));function a4_0x1b23(_0xd940b3,_0xb06388){const _0x35d1ee=a4_0x13af();return a4_0x1b23=function(_0x4af7b7,_0x8b7521){_0x4af7b7=_0x4af7b7-0x87;let _0x13af2a=_0x35d1ee[_0x4af7b7];return _0x13af2a;},a4_0x1b23(_0xd940b3,_0xb06388);}function a4_0x13af(){const _0x12787a=['description','6281020QzqRFC','2IifqjP','delete','Api','__esModule','apimit','302844JywFbk','string','@midwayjs/core','21955xdJZcY','createCustomMethodDecorator','Validator','142017hVFcZw','middlewareIgnore','ACTION_ROUTE_KEY','intercept','(((.+)+)+)+$','762TDzTJp','991751wHiDmh','constructor','RequestMapping','filter','869301LQvwbv','3990462natJCK','116qZoSkB','@anncic-api/validator','toString','routerName','length','search','middleware','../types/action','1199WNpeIA','8AfeWkt','assign','defineProperty','get','apply','toLowerCase','del','validationOptions'];a4_0x13af=function(){return _0x12787a;};return a4_0x13af();}function Api(_0x362c0f,_0x385b27=a4_0x7ab7c3(0x90),_0x3e6bfb='/',_0xcc0bb2={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x346efa,_0x1b154f,_0xb34c79)=>{const _0x28fc78=a4_0x1b23;var _0x4f74d8,_0x5bfe47,_0x2482ce;!_0xcc0bb2[_0x28fc78(0x8a)]&&(_0xcc0bb2[_0x28fc78(0x8a)]=[]);!((_0x4f74d8=_0xcc0bb2===null||_0xcc0bb2===void 0x0?void 0x0:_0xcc0bb2['validate'])===null||_0x4f74d8===void 0x0?void 0x0:_0x4f74d8[_0x28fc78(0x94)])&&(_0xcc0bb2['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x28fc78(0x9d)}});if(((_0x5bfe47=_0xcc0bb2===null||_0xcc0bb2===void 0x0?void 0x0:_0xcc0bb2[_0x28fc78(0x8a)])===null||_0x5bfe47===void 0x0?void 0x0:_0x5bfe47[_0x28fc78(0x88)])>0x0&&((_0x2482ce=_0xcc0bb2===null||_0xcc0bb2===void 0x0?void 0x0:_0xcc0bb2['middlewareIgnore'])===null||_0x2482ce===void 0x0?void 0x0:_0x2482ce[_0x28fc78(0x88)])>0x0)for(let _0x250bd2 in _0xcc0bb2[_0x28fc78(0x8a)]){_0xcc0bb2[_0x28fc78(0xa3)]['indexOf'](_0xcc0bb2[_0x28fc78(0x8a)][_0x250bd2])!==-0x1&&(_0xcc0bb2[_0x28fc78(0x8a)][_0x250bd2]=null);}_0xcc0bb2[_0x28fc78(0x87)]=_0x362c0f,(0x0,validator_1[_0x28fc78(0xa1)])(_0xcc0bb2['validate'])(_0x346efa,_0x1b154f,_0xb34c79),(0x0,core_1[_0x28fc78(0xaa)])(Object[_0x28fc78(0x8e)](_0xcc0bb2,{'path':_0x3e6bfb,'requestMethod':(_0x385b27=='del'?'delete':_0x385b27)[_0x28fc78(0x92)]()}))(_0x346efa,_0x1b154f,_0xb34c79),(0x0,core_1['attachClassMetadata'])(action_1[_0x28fc78(0xa4)],{'path':_0x3e6bfb,'method':_0x1b154f,'apimit':_0xcc0bb2[_0x28fc78(0x9b)],'intercept':_0xcc0bb2[_0x28fc78(0xa5)],'routerName':_0xcc0bb2[_0x28fc78(0x87)],'description':_0xcc0bb2[_0x28fc78(0x95)],'middleware':(_0xcc0bb2[_0x28fc78(0x8a)]||[])[_0x28fc78(0xab)](_0x221a14=>!!_0x221a14),'requestMethod':(_0x385b27==_0x28fc78(0x93)?_0x28fc78(0x98):_0x385b27)[_0x28fc78(0x92)]()},_0x346efa),(0x0,core_1[_0x28fc78(0xa0)])(action_1[_0x28fc78(0xa4)],{'path':_0x3e6bfb,'method':_0x1b154f,'apimit':_0xcc0bb2[_0x28fc78(0x9b)],'intercept':_0xcc0bb2['intercept'],'routerName':_0xcc0bb2[_0x28fc78(0x87)],'description':_0xcc0bb2[_0x28fc78(0x95)],'middleware':(_0xcc0bb2['middleware']||[])[_0x28fc78(0xab)](_0x563a71=>!!_0x563a71),'requestMethod':(_0x385b27==_0x28fc78(0x93)?_0x28fc78(0x98):_0x385b27)[_0x28fc78(0x92)]()})(_0x346efa,_0x1b154f,_0xb34c79);};}exports[a4_0x7ab7c3(0x99)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x27d78c=a5_0x5294;(function(_0x387264,_0x3d7656){const _0x4b1a9b=a5_0x5294,_0xc343eb=_0x387264();while(!![]){try{const _0x249400=-parseInt(_0x4b1a9b(0x18f))/0x1+parseInt(_0x4b1a9b(0x17e))/0x2+parseInt(_0x4b1a9b(0x184))/0x3*(-parseInt(_0x4b1a9b(0x182))/0x4)+-parseInt(_0x4b1a9b(0x177))/0x5+-parseInt(_0x4b1a9b(0x179))/0x6+-parseInt(_0x4b1a9b(0x191))/0x7+parseInt(_0x4b1a9b(0x17f))/0x8*(parseInt(_0x4b1a9b(0x190))/0x9);if(_0x249400===_0x3d7656)break;else _0xc343eb['push'](_0xc343eb['shift']());}catch(_0x43e41e){_0xc343eb['push'](_0xc343eb['shift']());}}}(a5_0x4b09,0x26782));const a5_0xa8c74f=(function(){let _0x2668c9=!![];return function(_0x1e807a,_0x4f75b2){const _0x19e57b=_0x2668c9?function(){const _0x25b7d6=a5_0x5294;if(_0x4f75b2){const _0x3ebebb=_0x4f75b2[_0x25b7d6(0x17b)](_0x1e807a,arguments);return _0x4f75b2=null,_0x3ebebb;}}:function(){};return _0x2668c9=![],_0x19e57b;};}()),a5_0x2de3dd=a5_0xa8c74f(this,function(){const _0x41c697=a5_0x5294;return a5_0x2de3dd[_0x41c697(0x17c)]()[_0x41c697(0x18c)](_0x41c697(0x185))[_0x41c697(0x17c)]()[_0x41c697(0x18b)](a5_0x2de3dd)[_0x41c697(0x18c)](_0x41c697(0x185));});a5_0x2de3dd();'use strict';Object[a5_0x27d78c(0x183)](exports,a5_0x27d78c(0x18d),{'value':!![]}),exports[a5_0x27d78c(0x18a)]=void 0x0;const core_1=require(a5_0x27d78c(0x18e)),ApitestService_1=require('../service/ApitestService');function a5_0x4b09(){const _0x912ec5=['app','/apitest','2220TMStOD','defineProperty','534wxCtAy','(((.+)+)+)+$','getApplicationContext','MidwayEnvironmentService','value','get','Apitest','constructor','search','__esModule','@midwayjs/core','209404zzJSmQ','747GuZaFN','824915RBipcE','apitest','1087575HvPYOn','REQUEST_OBJ_CTX_KEY','584778gwkOUD','RequestMapping','apply','toString','apidoc','483284vvnMXC','63320qsCcfD'];a5_0x4b09=function(){return _0x912ec5;};return a5_0x4b09();}function a5_0x5294(_0x126604,_0x4ab244){const _0x59c22d=a5_0x4b09();return a5_0x5294=function(_0x2de3dd,_0xa8c74f){_0x2de3dd=_0x2de3dd-0x176;let _0x4b0926=_0x59c22d[_0x2de3dd];return _0x4b0926;},a5_0x5294(_0x126604,_0x4ab244);}function Apitest(_0x347bde=a5_0x27d78c(0x181),_0x213cdf){return(_0x1dde83,_0x4d30b3,_0x5a08b8)=>{const _0x5cf193=a5_0x5294;return(0x0,core_1[_0x5cf193(0x17a)])({'path':_0x347bde,'requestMethod':_0x5cf193(0x189)})(_0x1dde83,_0x4d30b3,_0x5a08b8),_0x5a08b8[_0x5cf193(0x188)]=async function(..._0x4b39fb){const _0x4c2558=_0x5cf193;var _0x284bb4;const _0x53ac2c=(_0x284bb4=this[core_1[_0x4c2558(0x178)]])===null||_0x284bb4===void 0x0?void 0x0:_0x284bb4[_0x4c2558(0x180)];if(_0x53ac2c&&_0x53ac2c['getConfig'](_0x4c2558(0x176))){const _0x6b01ad=await _0x53ac2c[_0x4c2558(0x186)]()['getAsync'](ApitestService_1['ApitestService']),_0x1d48be=await _0x53ac2c[_0x4c2558(0x186)]()['getAsync'](core_1[_0x4c2558(0x187)]);return _0x1d48be['isDevelopmentEnvironment']()&&(_0x213cdf['filepath']=!![]),await _0x6b01ad[_0x4c2558(0x17d)](_0x213cdf);}return'';},_0x5a08b8;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x442aec=a6_0x506d;(function(_0x50c0b4,_0x57a65f){const _0x3ebfae=a6_0x506d,_0x345d40=_0x50c0b4();while(!![]){try{const _0x585be0=parseInt(_0x3ebfae(0x1ac))/0x1*(-parseInt(_0x3ebfae(0x1a2))/0x2)+-parseInt(_0x3ebfae(0x1a1))/0x3+-parseInt(_0x3ebfae(0x19f))/0x4*(parseInt(_0x3ebfae(0x1a9))/0x5)+-parseInt(_0x3ebfae(0x1b1))/0x6*(parseInt(_0x3ebfae(0x1a4))/0x7)+parseInt(_0x3ebfae(0x1b2))/0x8*(parseInt(_0x3ebfae(0x197))/0x9)+parseInt(_0x3ebfae(0x1aa))/0xa*(parseInt(_0x3ebfae(0x19a))/0xb)+parseInt(_0x3ebfae(0x1a8))/0xc;if(_0x585be0===_0x57a65f)break;else _0x345d40['push'](_0x345d40['shift']());}catch(_0x135649){_0x345d40['push'](_0x345d40['shift']());}}}(a6_0x4237,0x74018));const a6_0x5c5ce5=(function(){let _0x1d23ad=!![];return function(_0x507073,_0x1e7961){const _0x97958b=_0x1d23ad?function(){const _0x58502c=a6_0x506d;if(_0x1e7961){const _0x25d2bd=_0x1e7961[_0x58502c(0x1a3)](_0x507073,arguments);return _0x1e7961=null,_0x25d2bd;}}:function(){};return _0x1d23ad=![],_0x97958b;};}()),a6_0x26ee0b=a6_0x5c5ce5(this,function(){const _0x522cbb=a6_0x506d;return a6_0x26ee0b[_0x522cbb(0x1ae)]()[_0x522cbb(0x19e)](_0x522cbb(0x1a7))[_0x522cbb(0x1ae)]()[_0x522cbb(0x196)](a6_0x26ee0b)[_0x522cbb(0x19e)](_0x522cbb(0x1a7));});a6_0x26ee0b();'use strict';Object[a6_0x442aec(0x19b)](exports,'__esModule',{'value':!![]}),exports['IIntercept']=exports[a6_0x442aec(0x1ad)]=void 0x0;const core_1=require(a6_0x442aec(0x1af)),intercept_1=require(a6_0x442aec(0x1b0));function Intercept(_0x5b929d){return _0x51c801=>{const _0x53f2c1=a6_0x506d,_0x30ddbe=(0x0,core_1['getClassMetadata'])(intercept_1[_0x53f2c1(0x1ab)],intercept_1[_0x53f2c1(0x198)])||{};for(let _0x3c6fb4 of Array['isArray'](_0x5b929d)?_0x5b929d:[_0x5b929d]){_0x3c6fb4=_0x3c6fb4['toUpperCase']();!(_0x30ddbe===null||_0x30ddbe===void 0x0?void 0x0:_0x30ddbe[_0x3c6fb4])&&(_0x30ddbe[_0x3c6fb4]=[]);if(_0x30ddbe[_0x3c6fb4][_0x53f2c1(0x1a0)](_0x51c801))continue;_0x30ddbe[_0x3c6fb4]['push'](_0x51c801);}(0x0,core_1['Provide'])()(_0x51c801),(0x0,core_1[_0x53f2c1(0x199)])(core_1[_0x53f2c1(0x1a5)][_0x53f2c1(0x19c)])(_0x51c801),(0x0,core_1['saveClassMetadata'])(intercept_1['INTERCEPT_KEY'],_0x30ddbe,intercept_1[_0x53f2c1(0x198)]);};}exports[a6_0x442aec(0x1ad)]=Intercept;class IIntercept{async[a6_0x442aec(0x19d)](_0x252a7a,_0x4fb53a,_0x301fda){return!![];}}exports[a6_0x442aec(0x1a6)]=IIntercept;function a6_0x506d(_0xf71328,_0x4942e4){const _0x53428e=a6_0x4237();return a6_0x506d=function(_0x26ee0b,_0x5c5ce5){_0x26ee0b=_0x26ee0b-0x196;let _0x42371e=_0x53428e[_0x26ee0b];return _0x42371e;},a6_0x506d(_0xf71328,_0x4942e4);}function a6_0x4237(){const _0x32c764=['1229YiAJgx','Intercept','toString','@midwayjs/core','../types/intercept','302898htIplI','881632qsYnaz','constructor','9gkYrgf','InterceptTargetTmp','Scope','11OocxYB','defineProperty','Singleton','match','search','28436vkDwAq','includes','698232XDmIMZ','1156pvLjwx','apply','105BCqKis','ScopeEnum','IIntercept','(((.+)+)+)+$','18470172nVUOgw','145bqfQMG','7322870JcekQr','INTERCEPT_KEY'];a6_0x4237=function(){return _0x32c764;};return a6_0x4237();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7_0xd4d329=a7_0x435b;(function(_0x16b8ed,_0x46651c){var _0xf97e04=a7_0x435b,_0x5406b6=_0x16b8ed();while(!![]){try{var _0x1b9642=-parseInt(_0xf97e04(0x1e5))/0x1*(-parseInt(_0xf97e04(0x1fa))/0x2)+parseInt(_0xf97e04(0x1fd))/0x3*(parseInt(_0xf97e04(0x1f6))/0x4)+parseInt(_0xf97e04(0x1f9))/0x5+parseInt(_0xf97e04(0x1f3))/0x6+parseInt(_0xf97e04(0x1e7))/0x7*(-parseInt(_0xf97e04(0x1f2))/0x8)+-parseInt(_0xf97e04(0x1ee))/0x9+-parseInt(_0xf97e04(0x1ed))/0xa;if(_0x1b9642===_0x46651c)break;else _0x5406b6['push'](_0x5406b6['shift']());}catch(_0x1fc472){_0x5406b6['push'](_0x5406b6['shift']());}}}(a7_0x1b41,0x23beb));var a7_0x2988d7=(function(){var _0x32cd9b=!![];return function(_0x4fe040,_0x3882d5){var _0x49c176=_0x32cd9b?function(){var _0x34d925=a7_0x435b;if(_0x3882d5){var _0x52e480=_0x3882d5[_0x34d925(0x1fb)](_0x4fe040,arguments);return _0x3882d5=null,_0x52e480;}}:function(){};return _0x32cd9b=![],_0x49c176;};}()),a7_0x207a06=a7_0x2988d7(this,function(){var _0x32b6f9=a7_0x435b;return a7_0x207a06['toString']()[_0x32b6f9(0x1ef)](_0x32b6f9(0x1f7))['toString']()[_0x32b6f9(0x1ea)](a7_0x207a06)[_0x32b6f9(0x1ef)](_0x32b6f9(0x1f7));});function a7_0x435b(_0x5522d5,_0x28acf5){var _0x2c3493=a7_0x1b41();return a7_0x435b=function(_0x207a06,_0x2988d7){_0x207a06=_0x207a06-0x1e4;var _0x1b414d=_0x2c3493[_0x207a06];return _0x1b414d;},a7_0x435b(_0x5522d5,_0x28acf5);}a7_0x207a06();'use strict';var __decorate=this&&this[a7_0xd4d329(0x201)]||function(_0x1fd511,_0x24237b,_0x270034,_0x309e92){var _0x5b48ae=a7_0xd4d329,_0x5ca27b=arguments[_0x5b48ae(0x1f1)],_0x50caeb=_0x5ca27b<0x3?_0x24237b:_0x309e92===null?_0x309e92=Object[_0x5b48ae(0x1f8)](_0x24237b,_0x270034):_0x309e92,_0x261acf;if(typeof Reflect===_0x5b48ae(0x1e4)&&typeof Reflect[_0x5b48ae(0x1eb)]===_0x5b48ae(0x204))_0x50caeb=Reflect[_0x5b48ae(0x1eb)](_0x1fd511,_0x24237b,_0x270034,_0x309e92);else{for(var _0x5d75d4=_0x1fd511['length']-0x1;_0x5d75d4>=0x0;_0x5d75d4--)if(_0x261acf=_0x1fd511[_0x5d75d4])_0x50caeb=(_0x5ca27b<0x3?_0x261acf(_0x50caeb):_0x5ca27b>0x3?_0x261acf(_0x24237b,_0x270034,_0x50caeb):_0x261acf(_0x24237b,_0x270034))||_0x50caeb;}return _0x5ca27b>0x3&&_0x50caeb&&Object[_0x5b48ae(0x1e9)](_0x24237b,_0x270034,_0x50caeb),_0x50caeb;},__metadata=this&&this['__metadata']||function(_0x116f6b,_0xfdeaae){var _0x7b7c32=a7_0xd4d329;if(typeof Reflect===_0x7b7c32(0x1e4)&&typeof Reflect[_0x7b7c32(0x1ff)]==='function')return Reflect[_0x7b7c32(0x1ff)](_0x116f6b,_0xfdeaae);};Object[a7_0xd4d329(0x1e9)](exports,a7_0xd4d329(0x1f4),{'value':!![]}),exports[a7_0xd4d329(0x203)]=void 0x0;class ApiError{}function a7_0x1b41(){var _0x4fe893=['getOwnPropertyDescriptor','253230SaBMTo','236ZIdEav','apply','请求超时,请重试','3DjBYlq','HEADERS_LACK','metadata','TIMEOUT','__decorate','HEADERS_CHECKCODE','ApiError','function','object','1987egXEVa','HEADERS_DEVICE','27167Mektsp','design:type','defineProperty','constructor','decorate','请求头信息不完整','3279330sqZMqJ','1003563JDUIDo','search','HEADERS_SIGNATURE','length','256xVmPHa','1104504EOgOzK','__esModule','TIMEOUT_LOGINTIME','963388vyCAPh','(((.+)+)+)+$'];a7_0x1b41=function(){return _0x4fe893;};return a7_0x1b41();}ApiError['TIMEOUT']=0x3d7e31,ApiError[a7_0xd4d329(0x1fe)]=0x3d7e32,ApiError[a7_0xd4d329(0x1e6)]=0x3d7e33,ApiError['HEADERS_SIGNATURE']=0x3d7e34,ApiError[a7_0xd4d329(0x202)]=0x3d7e35,ApiError[a7_0xd4d329(0x1f5)]=0x3d7e36,__decorate([AnnErrorMsg(a7_0xd4d329(0x1fc)),__metadata('design:type',Object)],ApiError,a7_0xd4d329(0x200),void 0x0),__decorate([AnnErrorMsg(a7_0xd4d329(0x1ec)),__metadata(a7_0xd4d329(0x1e8),Object)],ApiError,a7_0xd4d329(0x1fe),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a7_0xd4d329(0x1e8),Object)],ApiError,a7_0xd4d329(0x1e6),void 0x0),__decorate([AnnErrorMsg('signature验证失败'),__metadata(a7_0xd4d329(0x1e8),Object)],ApiError,a7_0xd4d329(0x1f0),void 0x0),__decorate([AnnErrorMsg('验证失败,请重新登录'),__metadata(a7_0xd4d329(0x1e8),Object)],ApiError,'HEADERS_CHECKCODE',void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a7_0xd4d329(0x1e8),Object)],ApiError,a7_0xd4d329(0x1f5),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0xbccf41=a8_0x1664;(function(_0x4e0077,_0x8fcfc9){const _0x12a88c=a8_0x1664,_0x572432=_0x4e0077();while(!![]){try{const _0x38e2a6=-parseInt(_0x12a88c(0x101))/0x1*(parseInt(_0x12a88c(0x10d))/0x2)+-parseInt(_0x12a88c(0x10a))/0x3+-parseInt(_0x12a88c(0x10f))/0x4*(-parseInt(_0x12a88c(0x105))/0x5)+-parseInt(_0x12a88c(0x107))/0x6*(parseInt(_0x12a88c(0x102))/0x7)+parseInt(_0x12a88c(0x103))/0x8+parseInt(_0x12a88c(0x106))/0x9+parseInt(_0x12a88c(0x10e))/0xa;if(_0x38e2a6===_0x8fcfc9)break;else _0x572432['push'](_0x572432['shift']());}catch(_0x1396b0){_0x572432['push'](_0x572432['shift']());}}}(a8_0x13aa,0x803c5));const a8_0x1b60cf=(function(){let _0x35061b=!![];return function(_0x3854fc,_0x24f3d2){const _0x90fee5=_0x35061b?function(){const _0x142141=a8_0x1664;if(_0x24f3d2){const _0x5f2eb9=_0x24f3d2[_0x142141(0xfe)](_0x3854fc,arguments);return _0x24f3d2=null,_0x5f2eb9;}}:function(){};return _0x35061b=![],_0x90fee5;};}()),a8_0x4d9308=a8_0x1b60cf(this,function(){const _0xf94251=a8_0x1664;return a8_0x4d9308[_0xf94251(0x109)]()[_0xf94251(0x10c)](_0xf94251(0x110))[_0xf94251(0x109)]()[_0xf94251(0x104)](a8_0x4d9308)[_0xf94251(0x10c)](_0xf94251(0x110));});function a8_0x13aa(){const _0x4b6652=['__esModule','apply','get','getAppsConfig','258913onhMaj','7xXCggX','243416YmYrnH','constructor','210NxLlza','7807545UbgsMI','5649978weKyLd','APPSCONFIG_KEY','toString','730632arTCae','getClassMetadata','search','2YxQVZX','6394710ekoiUw','41140xOsyOT','(((.+)+)+)+$'];a8_0x13aa=function(){return _0x4b6652;};return a8_0x13aa();}a8_0x4d9308();'use strict';Object['defineProperty'](exports,a8_0xbccf41(0xfd),{'value':!![]}),exports[a8_0xbccf41(0x100)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function a8_0x1664(_0x2ed95a,_0x1c9e47){const _0x58069c=a8_0x13aa();return a8_0x1664=function(_0x4d9308,_0x1b60cf){_0x4d9308=_0x4d9308-0xfd;let _0x13aa0a=_0x58069c[_0x4d9308];return _0x13aa0a;},a8_0x1664(_0x2ed95a,_0x1c9e47);}function getAppsConfig(_0x4950bf){const _0x54de0b=a8_0xbccf41,_0x31a2c7=(0x0,core_1[_0x54de0b(0x10b)])(action_1[_0x54de0b(0x108)],action_1['AppsConfigTmp'])||{};return _0x4950bf?lodash[_0x54de0b(0xff)](_0x31a2c7,_0x4950bf):_0x31a2c7;}exports[a8_0xbccf41(0x100)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x4be24d=a9_0x3192;(function(_0x5ed750,_0x20bb4a){const _0x4d5c52=a9_0x3192,_0x2d6813=_0x5ed750();while(!![]){try{const _0x1ea0e2=parseInt(_0x4d5c52(0xdf))/0x1+parseInt(_0x4d5c52(0xe4))/0x2*(parseInt(_0x4d5c52(0x103))/0x3)+parseInt(_0x4d5c52(0xd4))/0x4*(parseInt(_0x4d5c52(0x120))/0x5)+-parseInt(_0x4d5c52(0x115))/0x6+-parseInt(_0x4d5c52(0x114))/0x7*(parseInt(_0x4d5c52(0xde))/0x8)+-parseInt(_0x4d5c52(0x108))/0x9+parseInt(_0x4d5c52(0xcc))/0xa;if(_0x1ea0e2===_0x20bb4a)break;else _0x2d6813['push'](_0x2d6813['shift']());}catch(_0xe43390){_0x2d6813['push'](_0x2d6813['shift']());}}}(a9_0x5c43,0x54684));const a9_0x23500c=(function(){let _0x335753=!![];return function(_0x1dd90f,_0x15d01b){const _0x32596d=_0x335753?function(){if(_0x15d01b){const _0x5c2016=_0x15d01b['apply'](_0x1dd90f,arguments);return _0x15d01b=null,_0x5c2016;}}:function(){};return _0x335753=![],_0x32596d;};}()),a9_0x4ffaf3=a9_0x23500c(this,function(){const _0x4100a0=a9_0x3192;return a9_0x4ffaf3['toString']()[_0x4100a0(0xe6)]('(((.+)+)+)+$')['toString']()[_0x4100a0(0x124)](a9_0x4ffaf3)['search'](_0x4100a0(0x11f));});a9_0x4ffaf3();function a9_0x3192(_0x4cc1f5,_0x130321){const _0x26ab09=a9_0x5c43();return a9_0x3192=function(_0x4ffaf3,_0x23500c){_0x4ffaf3=_0x4ffaf3-0xc3;let _0x5c4376=_0x26ab09[_0x4ffaf3];return _0x5c4376;},a9_0x3192(_0x4cc1f5,_0x130321);}function a9_0x5c43(){const _0x39b73e=['replace','pprefix','method','136Srjvfo','iterator','flags.description','items','PARAM','File','Object','limit','文件上传-','concat','4904BjVZFV','594282JRviDY','type','route','metadata','WEB_ROUTER_PARAM_KEY','9958hAKRGl','-array','search','function','rules','push','routerName','get','intercept','RouteParamTypes','QUERY','prefix','routes','endsWith','propertyData','getRoutes','startsWith','args','getClassMetadata','children','module','Number','split','log','object','ACTION_ROUTE_KEY','RULES_KEY','number','indexOf','test','array','327fTSTQo','request','INJECT_CUSTOM_PARAM','key','boolean','3766419fXNJLB','flags.presence','summary','length','header','file','filter','name','defineProperty','FILESSTREAM','tagName','@midwayjs/core','7483SlIDmD','3648450pLGYBK','flags.default','routerOptions','/static/apitest','substring','filepath','description','min','default','query','(((.+)+)+)+$','72755dXngXq','Boolean','join','getMethodParamTypes','constructor','flags.label','parameterIndex','allow','noreq','isArray','ACTION_KEY','static/apitest','../types/action','path','3958680jvwERM','listModule','getClassExtendedMetadata','find','max'];a9_0x5c43=function(){return _0x39b73e;};return a9_0x5c43();}'use strict';Object[a9_0x4be24d(0x110)](exports,'__esModule',{'value':!![]}),exports[a9_0x4be24d(0xf3)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x4be24d(0x113)),core_2=require(a9_0x4be24d(0x113)),core_3=require(a9_0x4be24d(0x113)),action_1=require(a9_0x4be24d(0xca));function getRoutes(_0x4f44d6={'prefix':'/','module':![]}){const _0x161911=a9_0x4be24d;var _0x3f7967,_0x59ccb4;const _0x56afbf=(0x0,core_3[_0x161911(0xcd)])(action_1['ACTION_KEY']),_0x3fde6e={},_0x2f3a88=Array[_0x161911(0xc7)](_0x4f44d6['filter']||[])?_0x4f44d6[_0x161911(0x10e)]||[]:[_0x4f44d6['filter']];_0x596e96:for(const _0x571ddb of _0x56afbf){let _0x2c525b=(0x0,core_3[_0x161911(0xf6)])(action_1[_0x161911(0xc8)],_0x571ddb),_0x5e6c34=(0x0,core_3[_0x161911(0xf6)])(action_1[_0x161911(0xfd)],_0x571ddb);if(_0x2c525b&&_0x5e6c34){let _0x4a3434=_0x2c525b[_0x161911(0xef)],_0x482e2a={};if(_0x4f44d6['module']&&(0x0,lodash_1['get'])(_0x2c525b,_0x161911(0xf8),![])!=_0x4f44d6[_0x161911(0xf8)])continue _0x596e96;else{if(_0x4f44d6['module']===![]&&!!(0x0,lodash_1[_0x161911(0xeb)])(_0x2c525b,_0x161911(0xf8),null))continue _0x596e96;}if(_0x4f44d6[_0x161911(0xef)]&&!_0x4a3434[_0x161911(0xf4)](_0x4f44d6[_0x161911(0xef)]))continue _0x596e96;_0x4a3434!=='/'?(_0x482e2a[_0x161911(0x10a)]=(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0x117)]['tagName'])||(/^\//[_0x161911(0x101)](_0x4a3434)?_0x4a3434[_0x161911(0xfa)]('/')[0x1]:_0x4a3434),_0x482e2a['description']=(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0x117)][_0x161911(0x11b)])||_0x482e2a['summary'],_0x482e2a[_0x161911(0xf0)]=[]):(_0x482e2a[_0x161911(0x10a)]=(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0x117)][_0x161911(0x112)])||_0x161911(0x11d),_0x482e2a[_0x161911(0x11b)]=(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0x117)][_0x161911(0x11b)])||'',_0x482e2a[_0x161911(0xf0)]=[]);_0x4f44d6[_0x161911(0x11a)]&&(_0x482e2a['filepath']=_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0x11a)]);(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0xd2)])&&(_0x482e2a[_0x161911(0xef)]=_0x2c525b[_0x161911(0xd2)]);(_0x2c525b===null||_0x2c525b===void 0x0?void 0x0:_0x2c525b[_0x161911(0xf8)])&&(_0x482e2a[_0x161911(0xf8)]=_0x2c525b['module']);let _0x17a535=(0x0,core_3[_0x161911(0xf6)])(core_2[_0x161911(0x105)],_0x571ddb)||{};if(typeof _0x5e6c34[Symbol[_0x161911(0xd5)]]==='function')for(let _0x1a86a4 of _0x5e6c34){if((_0x4f44d6===null||_0x4f44d6===void 0x0?void 0x0:_0x4f44d6[_0x161911(0xec)])&&!(_0x1a86a4===null||_0x1a86a4===void 0x0?void 0x0:_0x1a86a4[_0x161911(0xec)]))continue;let _0x58c7ce={};_0x58c7ce['method']=_0x1a86a4['requestMethod'],_0x58c7ce[_0x161911(0xe1)]=(_0x4a3434+_0x1a86a4[_0x161911(0xcb)])[_0x161911(0xd1)](/\/{1,}/,'/'),_0x58c7ce[_0x161911(0x10a)]=(_0x1a86a4===null||_0x1a86a4===void 0x0?void 0x0:_0x1a86a4[_0x161911(0xea)])||_0x482e2a[_0x161911(0x10a)]||'default',_0x58c7ce['description']=(_0x1a86a4===null||_0x1a86a4===void 0x0?void 0x0:_0x1a86a4[_0x161911(0x11b)])||'',_0x58c7ce[_0x161911(0x104)]=[];_0x58c7ce['route'][_0x161911(0xf1)]('/')&&(_0x58c7ce['route']=_0x58c7ce[_0x161911(0xe1)][_0x161911(0x119)](0x0,_0x58c7ce[_0x161911(0xe1)][_0x161911(0x10b)]-0x1));if(!(0x0,lodash_1[_0x161911(0xf4)])(_0x58c7ce[_0x161911(0xe1)],_0x161911(0xc9))&&!(0x0,lodash_1['startsWith'])(_0x58c7ce['route'],_0x161911(0x118))&&_0x2f3a88[_0x161911(0x100)](_0x58c7ce[_0x161911(0xe1)])===-0x1){if(!(_0x4f44d6===null||_0x4f44d6===void 0x0?void 0x0:_0x4f44d6[_0x161911(0xc6)])){let _0x2f06fd=(0x0,core_3[_0x161911(0x123)])(new _0x571ddb(),_0x1a86a4[_0x161911(0xd3)]);for(const _0x5f3d5a in _0x2f06fd){let _0x413dab=(_0x3f7967=_0x17a535[_0x1a86a4[_0x161911(0xd3)]])===null||_0x3f7967===void 0x0?void 0x0:_0x3f7967[_0x161911(0xcf)](_0x2990d8=>_0x2990d8[_0x161911(0xc4)]==_0x5f3d5a&&_0x2990d8[_0x161911(0x106)]===core_2[_0x161911(0xe3)]&&(_0x2990d8===null||_0x2990d8===void 0x0?void 0x0:_0x2990d8[_0x161911(0xe2)]));if(_0x413dab===null||_0x413dab===void 0x0?void 0x0:_0x413dab[_0x161911(0xe2)]){let _0x2f4026=convertTypeToString(_0x413dab['metadata']['type']||0x0);if([_0x161911(0x11e),'body'][_0x161911(0x100)](_0x2f4026)!=-0x1&&_0x413dab[_0x161911(0xe2)][_0x161911(0xf2)][_0x161911(0x100)](':')==-0x1&&!_0x58c7ce[_0x161911(0x104)][_0x161911(0xcf)](_0x2701f7=>_0x2701f7[_0x161911(0x106)]==_0x413dab[_0x161911(0xe2)][_0x161911(0xf2)]))_0x58c7ce[_0x161911(0x104)][_0x161911(0xe9)]({'key':_0x413dab[_0x161911(0xe2)][_0x161911(0xf2)],'title':_0x413dab[_0x161911(0xe2)]['propertyData'],'type':convertSchemaType(_0x2f06fd[_0x413dab[_0x161911(0xc4)]][_0x161911(0x10f)]),'required':![],'default':'','desc':''});else{if(_0x2f4026==_0x161911(0x10d)){let _0x400b5c=((_0x59ccb4=_0x413dab===null||_0x413dab===void 0x0?void 0x0:_0x413dab[_0x161911(0xe2)])===null||_0x59ccb4===void 0x0?void 0x0:_0x59ccb4[_0x161911(0xf2)])||_0x161911(0x10d);_0x400b5c[_0x161911(0x100)](':')==-0x1&&!_0x58c7ce[_0x161911(0x104)][_0x161911(0xcf)](_0x444646=>_0x444646[_0x161911(0x106)]==_0x400b5c&&_0x444646['type']==_0x161911(0x10d))&&_0x58c7ce[_0x161911(0x104)][_0x161911(0xe9)]({'key':_0x400b5c,'title':_0x161911(0xdc)+_0x400b5c,'type':_0x161911(0x10d),'required':!![],'default':'','desc':''});}}}else{const _0x1126f1=(0x0,core_3[_0x161911(0xce)])(validator_1[_0x161911(0xfe)],_0x2f06fd[_0x5f3d5a]);_0x1126f1&&_0x58c7ce[_0x161911(0x104)]['push'](...getJoiRequest(_0x1126f1));}}}_0x482e2a[_0x161911(0xf0)][_0x161911(0xe9)](_0x58c7ce);}}if(_0x482e2a['routes']['length']>0x0){let _0x546b64=_0x3fde6e[_0x4a3434];_0x546b64?(_0x546b64[_0x161911(0x10a)]!=_0x482e2a[_0x161911(0x10a)]&&(_0x546b64['summary']=_0x546b64[_0x161911(0x10a)]+','+_0x482e2a[_0x161911(0x10a)]),_0x546b64[_0x161911(0x11b)]!=_0x482e2a[_0x161911(0x11b)]&&(_0x546b64[_0x161911(0x11b)]=_0x546b64[_0x161911(0x11b)]+','+_0x482e2a[_0x161911(0x11b)]),_0x546b64[_0x161911(0xf0)]=_0x546b64['routes'][_0x161911(0xdd)](_0x482e2a[_0x161911(0xf0)]),_0x3fde6e[_0x4a3434]=_0x546b64):_0x3fde6e[_0x4a3434]=_0x482e2a;}}}return _0x3fde6e;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x411934){const _0x22fe88=a9_0x4be24d,_0x5b8d32=[];for(let _0x2c1d76 in _0x411934){const _0x5713c8={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4332f5=typeof _0x411934[_0x2c1d76]['describe']==_0x22fe88(0xe7)?_0x411934[_0x2c1d76]['describe']():_0x411934[_0x2c1d76];_0x5713c8[_0x22fe88(0x106)]=_0x2c1d76,_0x5713c8['type']=_0x4332f5[_0x22fe88(0xe0)],_0x5713c8['title']=(0x0,lodash_1[_0x22fe88(0xeb)])(_0x4332f5,_0x22fe88(0xc3),_0x2c1d76),_0x5713c8[_0x22fe88(0x11d)]=(0x0,lodash_1['get'])(_0x4332f5,_0x22fe88(0x116),''),_0x5713c8['required']=(0x0,lodash_1[_0x22fe88(0xeb)])(_0x4332f5,_0x22fe88(0x109),'')=='required',_0x5713c8[_0x22fe88(0x11b)]=(0x0,lodash_1[_0x22fe88(0xeb)])(_0x4332f5,_0x22fe88(0xd6),'');if(_0x4332f5[_0x22fe88(0xe0)]==_0x22fe88(0xfc))_0x5713c8[_0x22fe88(0xf7)]=getJoiRequest(_0x4332f5['keys']);else _0x4332f5[_0x22fe88(0xe0)]==_0x22fe88(0x102)&&_0x4332f5['items']&&Array['isArray'](_0x4332f5[_0x22fe88(0xd7)])&&_0x4332f5['items'][0x0]&&console[_0x22fe88(0xfb)](_0x2c1d76+_0x22fe88(0xe5),_0x4332f5);_0x4332f5[_0x22fe88(0xc5)]&&Array[_0x22fe88(0xc7)](_0x4332f5[_0x22fe88(0xc5)])&&_0x4332f5['allow']['length']>0x0&&(_0x5713c8[_0x22fe88(0x11b)]='只允许:['+_0x4332f5[_0x22fe88(0xc5)][_0x22fe88(0x122)](',')+'];'+_0x5713c8[_0x22fe88(0x11b)]);if(_0x5713c8['key']&&_0x5713c8[_0x22fe88(0xe0)]){const _0x2c5ab6={};for(const _0x223847 of _0x4332f5[_0x22fe88(0xe8)]||[]){if(_0x223847[_0x22fe88(0x10f)]===_0x22fe88(0x11c)&&_0x223847[_0x22fe88(0xf5)])_0x2c5ab6['min']=_0x223847[_0x22fe88(0xf5)][_0x22fe88(0xdb)];else _0x223847[_0x22fe88(0x10f)]===_0x22fe88(0xd0)&&(_0x2c5ab6[_0x22fe88(0xd0)]=_0x223847[_0x22fe88(0xf5)]['limit']);}_0x5713c8[_0x22fe88(0xe8)]=_0x2c5ab6;}_0x5713c8[_0x22fe88(0x106)]&&_0x5713c8['title']&&_0x5b8d32[_0x22fe88(0xe9)](_0x5713c8);}return _0x5b8d32;}function convertSchemaType(_0x4ac066){const _0x2c93db=a9_0x4be24d;switch(_0x4ac066){case _0x2c93db(0xda):return'object';case _0x2c93db(0x121):return _0x2c93db(0x107);case _0x2c93db(0xf9):return _0x2c93db(0xff);case'String':return'string';case _0x2c93db(0xd9):return'file';default:return'string';}}function convertTypeToString(_0x38758c){const _0x2c57ec=a9_0x4be24d;switch(_0x38758c){case core_1[_0x2c57ec(0xed)]['HEADERS']:return _0x2c57ec(0x10c);case core_1[_0x2c57ec(0xed)][_0x2c57ec(0xee)]:return'query';case core_1[_0x2c57ec(0xed)][_0x2c57ec(0xd8)]:return _0x2c57ec(0xcb);case core_1[_0x2c57ec(0xed)]['BODY']:return'body';case core_1[_0x2c57ec(0xed)]['FIELDS']:case core_1[_0x2c57ec(0xed)][_0x2c57ec(0x111)]:case core_1[_0x2c57ec(0xed)]['FILESTREAM']:return _0x2c57ec(0x10d);default:return'header';}}
|
|
1
|
+
function a9_0x27e2(){const _0x18fd45=['get','@midwayjs/core','flags.default','function','describe','flags.label','min','allow','propertyData','getClassExtendedMetadata','join','tagName','description','constructor','RouteParamTypes','default','query','INJECT_CUSTOM_PARAM','substring','requestMethod','FILESSTREAM','152iqqcRT','flags.description','limit','indexOf','getRoutes','string','654208VCcFqt','request','concat','prefix','body','name','1440xQauwD','12ZhKPIV','object','1295890ijgeZO','key','items','route','filter','routerOptions','QUERY','startsWith','BODY','path','routes','header','search','__esModule','listModule','pprefix','test','String','只允许:[','method','Number','HEADERS','RULES_KEY','module','args','required','apply','split','toString','log','2514853KiQjpf','文件上传-','push','FILESTREAM','88GBiHIY','file','length','max','find','218709UAMYmf','number','type','metadata','rules','PARAM','FIELDS','(((.+)+)+)+$','-array','1871058jgupVY','7uFJGWh','6329440yCPlza','filepath','routerName','title','array','getMethodParamTypes','keys','static/apitest','summary','intercept','8fJoziF','WEB_ROUTER_PARAM_KEY','ACTION_KEY'];a9_0x27e2=function(){return _0x18fd45;};return a9_0x27e2();}function a9_0x5a30(_0x2abf94,_0x42250a){const _0x111609=a9_0x27e2();return a9_0x5a30=function(_0x1c6ab0,_0x488a78){_0x1c6ab0=_0x1c6ab0-0xb3;let _0x27e2a9=_0x111609[_0x1c6ab0];return _0x27e2a9;},a9_0x5a30(_0x2abf94,_0x42250a);}const a9_0x1ec78f=a9_0x5a30;(function(_0x5f2ece,_0x158a89){const _0x321c9b=a9_0x5a30,_0x5c8cb1=_0x5f2ece();while(!![]){try{const _0x7618c1=parseInt(_0x321c9b(0xfd))/0x1+parseInt(_0x321c9b(0xf7))/0x2*(parseInt(_0x321c9b(0x103))/0x3)+parseInt(_0x321c9b(0xdf))/0x4*(-parseInt(_0x321c9b(0x106))/0x5)+-parseInt(_0x321c9b(0xd3))/0x6*(-parseInt(_0x321c9b(0xd4))/0x7)+-parseInt(_0x321c9b(0xc5))/0x8*(-parseInt(_0x321c9b(0xca))/0x9)+-parseInt(_0x321c9b(0xd5))/0xa+-parseInt(_0x321c9b(0xc1))/0xb*(-parseInt(_0x321c9b(0x104))/0xc);if(_0x7618c1===_0x158a89)break;else _0x5c8cb1['push'](_0x5c8cb1['shift']());}catch(_0x22de88){_0x5c8cb1['push'](_0x5c8cb1['shift']());}}}(a9_0x27e2,0x54c1d));const a9_0x488a78=(function(){let _0x420eba=!![];return function(_0x289017,_0x39834f){const _0x414414=_0x420eba?function(){const _0x1c4e8f=a9_0x5a30;if(_0x39834f){const _0x2158b1=_0x39834f[_0x1c4e8f(0xbd)](_0x289017,arguments);return _0x39834f=null,_0x2158b1;}}:function(){};return _0x420eba=![],_0x414414;};}()),a9_0x1c6ab0=a9_0x488a78(this,function(){const _0x471e8b=a9_0x5a30;return a9_0x1c6ab0['toString']()[_0x471e8b(0x112)](_0x471e8b(0xd1))[_0x471e8b(0xbf)]()[_0x471e8b(0xef)](a9_0x1c6ab0)['search'](_0x471e8b(0xd1));});a9_0x1c6ab0();'use strict';Object['defineProperty'](exports,a9_0x1ec78f(0x113),{'value':!![]}),exports[a9_0x1ec78f(0xfb)]=void 0x0;const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a9_0x1ec78f(0xe3)),core_2=require('@midwayjs/core'),core_3=require(a9_0x1ec78f(0xe3)),action_1=require('../types/action');function getRoutes(_0xf3ad78={'prefix':'/','module':![]}){const _0x5ae836=a9_0x1ec78f;var _0x1785ff,_0x3eba56;const _0x2d8d8f=(0x0,core_3[_0x5ae836(0x114)])(action_1[_0x5ae836(0xe1)]),_0xdcba3c={},_0x58e462=Array['isArray'](_0xf3ad78[_0x5ae836(0x10a)]||[])?_0xf3ad78[_0x5ae836(0x10a)]||[]:[_0xf3ad78[_0x5ae836(0x10a)]];_0x464d22:for(const _0x1462d4 of _0x2d8d8f){let _0x22b8ea=(0x0,core_3['getClassMetadata'])(action_1[_0x5ae836(0xe1)],_0x1462d4),_0x57f39e=(0x0,core_3['getClassMetadata'])(action_1['ACTION_ROUTE_KEY'],_0x1462d4);if(_0x22b8ea&&_0x57f39e){let _0x360925=_0x22b8ea[_0x5ae836(0x100)],_0x4ad34a={};if(_0xf3ad78[_0x5ae836(0xba)]&&(0x0,lodash_1['get'])(_0x22b8ea,_0x5ae836(0xba),![])!=_0xf3ad78['module'])continue _0x464d22;else{if(_0xf3ad78[_0x5ae836(0xba)]===![]&&!!(0x0,lodash_1[_0x5ae836(0xe2)])(_0x22b8ea,_0x5ae836(0xba),null))continue _0x464d22;}if(_0xf3ad78['prefix']&&!_0x360925[_0x5ae836(0x10d)](_0xf3ad78[_0x5ae836(0x100)]))continue _0x464d22;_0x360925!=='/'?(_0x4ad34a[_0x5ae836(0xdd)]=(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea[_0x5ae836(0x10b)][_0x5ae836(0xed)])||(/^\//[_0x5ae836(0xb3)](_0x360925)?_0x360925[_0x5ae836(0xbe)]('/')[0x1]:_0x360925),_0x4ad34a[_0x5ae836(0xee)]=(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea['routerOptions'][_0x5ae836(0xee)])||_0x4ad34a[_0x5ae836(0xdd)],_0x4ad34a[_0x5ae836(0x110)]=[]):(_0x4ad34a[_0x5ae836(0xdd)]=(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea[_0x5ae836(0x10b)][_0x5ae836(0xed)])||_0x5ae836(0xf1),_0x4ad34a[_0x5ae836(0xee)]=(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea[_0x5ae836(0x10b)][_0x5ae836(0xee)])||'',_0x4ad34a[_0x5ae836(0x110)]=[]);_0xf3ad78[_0x5ae836(0xd6)]&&(_0x4ad34a[_0x5ae836(0xd6)]=_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea[_0x5ae836(0xd6)]);(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea[_0x5ae836(0x115)])&&(_0x4ad34a[_0x5ae836(0x100)]=_0x22b8ea['pprefix']);(_0x22b8ea===null||_0x22b8ea===void 0x0?void 0x0:_0x22b8ea['module'])&&(_0x4ad34a[_0x5ae836(0xba)]=_0x22b8ea[_0x5ae836(0xba)]);let _0x46d492=(0x0,core_3['getClassMetadata'])(core_2[_0x5ae836(0xf3)],_0x1462d4)||{};if(typeof _0x57f39e[Symbol['iterator']]===_0x5ae836(0xe5))for(let _0x8b8fca of _0x57f39e){if((_0xf3ad78===null||_0xf3ad78===void 0x0?void 0x0:_0xf3ad78[_0x5ae836(0xde)])&&!(_0x8b8fca===null||_0x8b8fca===void 0x0?void 0x0:_0x8b8fca[_0x5ae836(0xde)]))continue;let _0xb98789={};_0xb98789['method']=_0x8b8fca[_0x5ae836(0xf5)],_0xb98789[_0x5ae836(0x109)]=(_0x360925+_0x8b8fca['path'])['replace'](/\/{1,}/,'/'),_0xb98789[_0x5ae836(0xdd)]=(_0x8b8fca===null||_0x8b8fca===void 0x0?void 0x0:_0x8b8fca[_0x5ae836(0xd7)])||_0x4ad34a[_0x5ae836(0xdd)]||_0x5ae836(0xf1),_0xb98789[_0x5ae836(0xee)]=(_0x8b8fca===null||_0x8b8fca===void 0x0?void 0x0:_0x8b8fca[_0x5ae836(0xee)])||'',_0xb98789[_0x5ae836(0xfe)]=[];_0xb98789[_0x5ae836(0x109)]['endsWith']('/')&&(_0xb98789[_0x5ae836(0x109)]=_0xb98789['route'][_0x5ae836(0xf4)](0x0,_0xb98789[_0x5ae836(0x109)][_0x5ae836(0xc7)]-0x1));if(!(0x0,lodash_1[_0x5ae836(0x10d)])(_0xb98789[_0x5ae836(0x109)],_0x5ae836(0xdc))&&!(0x0,lodash_1[_0x5ae836(0x10d)])(_0xb98789[_0x5ae836(0x109)],'/static/apitest')&&_0x58e462['indexOf'](_0xb98789[_0x5ae836(0x109)])===-0x1){if(!(_0xf3ad78===null||_0xf3ad78===void 0x0?void 0x0:_0xf3ad78['noreq'])){let _0x451fb1=(0x0,core_3[_0x5ae836(0xda)])(new _0x1462d4(),_0x8b8fca[_0x5ae836(0xb6)]);for(const _0x128701 in _0x451fb1){let _0xb10051=(_0x1785ff=_0x46d492[_0x8b8fca['method']])===null||_0x1785ff===void 0x0?void 0x0:_0x1785ff[_0x5ae836(0xc9)](_0x19165f=>_0x19165f['parameterIndex']==_0x128701&&_0x19165f['key']===core_2[_0x5ae836(0xe0)]&&(_0x19165f===null||_0x19165f===void 0x0?void 0x0:_0x19165f[_0x5ae836(0xcd)]));if(_0xb10051===null||_0xb10051===void 0x0?void 0x0:_0xb10051['metadata']){let _0x10a4f8=convertTypeToString(_0xb10051[_0x5ae836(0xcd)][_0x5ae836(0xcc)]||0x0);if([_0x5ae836(0xf2),_0x5ae836(0x101)]['indexOf'](_0x10a4f8)!=-0x1&&_0xb10051[_0x5ae836(0xcd)]['propertyData'][_0x5ae836(0xfa)](':')==-0x1&&!_0xb98789['request']['find'](_0x19efe0=>_0x19efe0[_0x5ae836(0x107)]==_0xb10051['metadata']['propertyData']))_0xb98789['request'][_0x5ae836(0xc3)]({'key':_0xb10051['metadata'][_0x5ae836(0xea)],'title':_0xb10051[_0x5ae836(0xcd)][_0x5ae836(0xea)],'type':convertSchemaType(_0x451fb1[_0xb10051['parameterIndex']][_0x5ae836(0x102)]),'required':![],'default':'','desc':''});else{if(_0x10a4f8=='file'){let _0x255cdc=((_0x3eba56=_0xb10051===null||_0xb10051===void 0x0?void 0x0:_0xb10051[_0x5ae836(0xcd)])===null||_0x3eba56===void 0x0?void 0x0:_0x3eba56[_0x5ae836(0xea)])||_0x5ae836(0xc6);_0x255cdc[_0x5ae836(0xfa)](':')==-0x1&&!_0xb98789['request'][_0x5ae836(0xc9)](_0x1246d3=>_0x1246d3[_0x5ae836(0x107)]==_0x255cdc&&_0x1246d3[_0x5ae836(0xcc)]==_0x5ae836(0xc6))&&_0xb98789[_0x5ae836(0xfe)][_0x5ae836(0xc3)]({'key':_0x255cdc,'title':_0x5ae836(0xc2)+_0x255cdc,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x46dabd=(0x0,core_3[_0x5ae836(0xeb)])(validator_1[_0x5ae836(0xb9)],_0x451fb1[_0x128701]);_0x46dabd&&_0xb98789[_0x5ae836(0xfe)][_0x5ae836(0xc3)](...getJoiRequest(_0x46dabd));}}}_0x4ad34a['routes'][_0x5ae836(0xc3)](_0xb98789);}}if(_0x4ad34a[_0x5ae836(0x110)]['length']>0x0){let _0xa0f232=_0xdcba3c[_0x360925];_0xa0f232?(_0xa0f232[_0x5ae836(0xdd)]!=_0x4ad34a[_0x5ae836(0xdd)]&&(_0xa0f232[_0x5ae836(0xdd)]=_0xa0f232['summary']+','+_0x4ad34a[_0x5ae836(0xdd)]),_0xa0f232[_0x5ae836(0xee)]!=_0x4ad34a[_0x5ae836(0xee)]&&(_0xa0f232[_0x5ae836(0xee)]=_0xa0f232[_0x5ae836(0xee)]+','+_0x4ad34a['description']),_0xa0f232[_0x5ae836(0x110)]=_0xa0f232[_0x5ae836(0x110)][_0x5ae836(0xff)](_0x4ad34a[_0x5ae836(0x110)]),_0xdcba3c[_0x360925]=_0xa0f232):_0xdcba3c[_0x360925]=_0x4ad34a;}}}return _0xdcba3c;}exports[a9_0x1ec78f(0xfb)]=getRoutes;function getJoiRequest(_0x2a805f){const _0x3c1ca4=a9_0x1ec78f,_0x2920d2=[];for(let _0x4ee547 in _0x2a805f){const _0x2f4212={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x4f7f70=typeof _0x2a805f[_0x4ee547][_0x3c1ca4(0xe6)]=='function'?_0x2a805f[_0x4ee547]['describe']():_0x2a805f[_0x4ee547];_0x2f4212[_0x3c1ca4(0x107)]=_0x4ee547,_0x2f4212[_0x3c1ca4(0xcc)]=_0x4f7f70[_0x3c1ca4(0xcc)],_0x2f4212[_0x3c1ca4(0xd8)]=(0x0,lodash_1[_0x3c1ca4(0xe2)])(_0x4f7f70,_0x3c1ca4(0xe7),_0x4ee547),_0x2f4212[_0x3c1ca4(0xf1)]=(0x0,lodash_1[_0x3c1ca4(0xe2)])(_0x4f7f70,_0x3c1ca4(0xe4),''),_0x2f4212['required']=(0x0,lodash_1['get'])(_0x4f7f70,'flags.presence','')==_0x3c1ca4(0xbc),_0x2f4212[_0x3c1ca4(0xee)]=(0x0,lodash_1[_0x3c1ca4(0xe2)])(_0x4f7f70,_0x3c1ca4(0xf8),'');if(_0x4f7f70[_0x3c1ca4(0xcc)]==_0x3c1ca4(0x105))_0x2f4212['children']=getJoiRequest(_0x4f7f70[_0x3c1ca4(0xdb)]);else _0x4f7f70['type']==_0x3c1ca4(0xd9)&&_0x4f7f70[_0x3c1ca4(0x108)]&&Array['isArray'](_0x4f7f70['items'])&&_0x4f7f70[_0x3c1ca4(0x108)][0x0]&&console[_0x3c1ca4(0xc0)](_0x4ee547+_0x3c1ca4(0xd2),_0x4f7f70);_0x4f7f70[_0x3c1ca4(0xe9)]&&Array['isArray'](_0x4f7f70[_0x3c1ca4(0xe9)])&&_0x4f7f70[_0x3c1ca4(0xe9)][_0x3c1ca4(0xc7)]>0x0&&(_0x2f4212[_0x3c1ca4(0xee)]=_0x3c1ca4(0xb5)+_0x4f7f70['allow'][_0x3c1ca4(0xec)](',')+'];'+_0x2f4212[_0x3c1ca4(0xee)]);if(_0x2f4212['key']&&_0x2f4212[_0x3c1ca4(0xcc)]){const _0x29b2df={};for(const _0x1230ff of _0x4f7f70[_0x3c1ca4(0xce)]||[]){if(_0x1230ff['name']===_0x3c1ca4(0xe8)&&_0x1230ff[_0x3c1ca4(0xbb)])_0x29b2df[_0x3c1ca4(0xe8)]=_0x1230ff[_0x3c1ca4(0xbb)]['limit'];else _0x1230ff['name']==='max'&&(_0x29b2df[_0x3c1ca4(0xc8)]=_0x1230ff[_0x3c1ca4(0xbb)][_0x3c1ca4(0xf9)]);}_0x2f4212[_0x3c1ca4(0xce)]=_0x29b2df;}_0x2f4212[_0x3c1ca4(0x107)]&&_0x2f4212['title']&&_0x2920d2['push'](_0x2f4212);}return _0x2920d2;}function convertSchemaType(_0x3ef527){const _0x4f5329=a9_0x1ec78f;switch(_0x3ef527){case'Object':return _0x4f5329(0x105);case'Boolean':return'boolean';case _0x4f5329(0xb7):return _0x4f5329(0xcb);case _0x4f5329(0xb4):return'string';case'File':return'file';default:return _0x4f5329(0xfc);}}function convertTypeToString(_0x6d35ce){const _0x3b7352=a9_0x1ec78f;switch(_0x6d35ce){case core_1[_0x3b7352(0xf0)][_0x3b7352(0xb8)]:return _0x3b7352(0x111);case core_1[_0x3b7352(0xf0)][_0x3b7352(0x10c)]:return _0x3b7352(0xf2);case core_1['RouteParamTypes'][_0x3b7352(0xcf)]:return _0x3b7352(0x10f);case core_1['RouteParamTypes'][_0x3b7352(0x10e)]:return _0x3b7352(0x101);case core_1[_0x3b7352(0xf0)][_0x3b7352(0xd0)]:case core_1[_0x3b7352(0xf0)][_0x3b7352(0xf6)]:case core_1[_0x3b7352(0xf0)][_0x3b7352(0xc4)]:return'file';default:return'header';}}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export { ExcelService } from './service/ExcelService';
|
|
|
15
15
|
export { ValidatorError, ValidatorService } from '@anncic-api/validator';
|
|
16
16
|
export { CustomConfiguration as Configuration } from './configuration';
|
|
17
17
|
export { File, Files, Fields, Body, Param, Query, Headers, Init } from "@midwayjs/core";
|
|
18
|
-
export { App, Config, Logger, Provide, Inject, Scope, ScopeEnum } from "@midwayjs/core";
|
|
18
|
+
export { App, Config, Logger, Provide, Inject, Scope, Singleton, ScopeEnum } from "@midwayjs/core";
|
|
19
19
|
export { getAppsConfig };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a10_0x4603(){var _0x53ec72=['writable','./service/ExcelService','Init','./decorator/ActionApi','ValidatorError','./configuration','getAppsConfig','Logger','Param','./decorator/Action','Apitest','getRoutes','Files','IIntercept','constructor','Inject','1398cTjIXw','Api','defineProperty','ApiService','Singleton','7082uIgthY','apply','search','Configuration','@anncic-api/validator','Intercept','EventService','Provide','File','__createBinding','ExcelService','CacheService','1860446BTwhtK','Body','toString','./types/common','11665093KTPaCo','Action','5CEYupo','__exportStar','./service/ApiService','./decorator/ActionApitest','./service/ApitestService','Scope','Headers','App','Fields','1568331hCTVQo','10685nCXXCm','@anncic-api/event','ScopeEnum','ApiError','3093651VJljIZ','CustomConfiguration','./helper/getRoutes','2265160FOHDry','__esModule','ValidatorService','@anncic-api/cache','4ovVJUD','./exception/ApiError','10pZlCOu','@midwayjs/core','Config','Query','(((.+)+)+)+$'];a10_0x4603=function(){return _0x53ec72;};return a10_0x4603();}var a10_0x3daf22=a10_0x4da2;(function(_0x37953c,_0x3c74c2){var _0x31d774=a10_0x4da2,_0x5aa7b2=_0x37953c();while(!![]){try{var _0x228da2=-parseInt(_0x31d774(0x153))/0x1*(-parseInt(_0x31d774(0x141))/0x2)+-parseInt(_0x31d774(0x119))/0x3*(parseInt(_0x31d774(0x125))/0x4)+-parseInt(_0x31d774(0x11a))/0x5*(parseInt(_0x31d774(0x13c))/0x6)+parseInt(_0x31d774(0x14d))/0x7+-parseInt(_0x31d774(0x121))/0x8+parseInt(_0x31d774(0x11e))/0x9+-parseInt(_0x31d774(0x127))/0xa*(-parseInt(_0x31d774(0x151))/0xb);if(_0x228da2===_0x3c74c2)break;else _0x5aa7b2['push'](_0x5aa7b2['shift']());}catch(_0x143693){_0x5aa7b2['push'](_0x5aa7b2['shift']());}}}(a10_0x4603,0x5db62));var a10_0x3e1644=(function(){var _0x4c291c=!![];return function(_0x2f7b86,_0x52c86e){var _0x5a6369=_0x4c291c?function(){var _0x22275d=a10_0x4da2;if(_0x52c86e){var _0x531cfe=_0x52c86e[_0x22275d(0x142)](_0x2f7b86,arguments);return _0x52c86e=null,_0x531cfe;}}:function(){};return _0x4c291c=![],_0x5a6369;};}()),a10_0x461e0a=a10_0x3e1644(this,function(){var _0x3a8715=a10_0x4da2;return a10_0x461e0a['toString']()[_0x3a8715(0x143)](_0x3a8715(0x12b))[_0x3a8715(0x14f)]()[_0x3a8715(0x13a)](a10_0x461e0a)[_0x3a8715(0x143)](_0x3a8715(0x12b));});a10_0x461e0a();'use strict';function a10_0x4da2(_0x4fab20,_0x144edd){var _0x1c5804=a10_0x4603();return a10_0x4da2=function(_0x461e0a,_0x3e1644){_0x461e0a=_0x461e0a-0x111;var _0x4603ec=_0x1c5804[_0x461e0a];return _0x4603ec;},a10_0x4da2(_0x4fab20,_0x144edd);}var __createBinding=this&&this[a10_0x3daf22(0x14a)]||(Object['create']?function(_0x5d16ff,_0x4cb82f,_0x4a4965,_0x492d06){var _0x1d6e81=a10_0x3daf22;if(_0x492d06===undefined)_0x492d06=_0x4a4965;var _0x260573=Object['getOwnPropertyDescriptor'](_0x4cb82f,_0x4a4965);(!_0x260573||('get'in _0x260573?!_0x4cb82f[_0x1d6e81(0x122)]:_0x260573[_0x1d6e81(0x12c)]||_0x260573['configurable']))&&(_0x260573={'enumerable':!![],'get':function(){return _0x4cb82f[_0x4a4965];}}),Object[_0x1d6e81(0x13e)](_0x5d16ff,_0x492d06,_0x260573);}:function(_0x105d82,_0x30a307,_0x52fb24,_0x22f35c){if(_0x22f35c===undefined)_0x22f35c=_0x52fb24;_0x105d82[_0x22f35c]=_0x30a307[_0x52fb24];}),__exportStar=this&&this[a10_0x3daf22(0x111)]||function(_0x1fb9a6,_0x53b820){for(var _0x40ea18 in _0x1fb9a6)if(_0x40ea18!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x53b820,_0x40ea18))__createBinding(_0x53b820,_0x1fb9a6,_0x40ea18);};Object[a10_0x3daf22(0x13e)](exports,'__esModule',{'value':!![]}),exports[a10_0x3daf22(0x132)]=exports['ScopeEnum']=exports['Singleton']=exports['Scope']=exports[a10_0x3daf22(0x13b)]=exports[a10_0x3daf22(0x148)]=exports[a10_0x3daf22(0x133)]=exports[a10_0x3daf22(0x129)]=exports[a10_0x3daf22(0x117)]=exports[a10_0x3daf22(0x12e)]=exports['Headers']=exports[a10_0x3daf22(0x12a)]=exports[a10_0x3daf22(0x134)]=exports['Body']=exports[a10_0x3daf22(0x118)]=exports[a10_0x3daf22(0x138)]=exports[a10_0x3daf22(0x149)]=exports[a10_0x3daf22(0x144)]=exports[a10_0x3daf22(0x123)]=exports['ValidatorError']=exports[a10_0x3daf22(0x14b)]=exports[a10_0x3daf22(0x13f)]=exports[a10_0x3daf22(0x147)]=exports[a10_0x3daf22(0x14c)]=exports[a10_0x3daf22(0x11d)]=exports[a10_0x3daf22(0x137)]=exports[a10_0x3daf22(0x139)]=exports[a10_0x3daf22(0x146)]=exports['Apitest']=exports['Action']=exports[a10_0x3daf22(0x13d)]=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,'getAppsConfig',{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a10_0x3daf22(0x150)),exports),__exportStar(require(a10_0x3daf22(0x114)),exports);var ActionApi_1=require(a10_0x3daf22(0x12f));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x13d),{'enumerable':!![],'get':function(){var _0x1206bb=a10_0x3daf22;return ActionApi_1[_0x1206bb(0x13d)];}});var Action_1=require(a10_0x3daf22(0x135));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x152),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require(a10_0x3daf22(0x113));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x136),{'enumerable':!![],'get':function(){var _0x4b83d2=a10_0x3daf22;return ActionApitest_1[_0x4b83d2(0x136)];}});var Intercept_1=require('./decorator/Intercept');Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x146),{'enumerable':!![],'get':function(){return Intercept_1['Intercept'];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x139),{'enumerable':!![],'get':function(){var _0x3dfd00=a10_0x3daf22;return Intercept_1[_0x3dfd00(0x139)];}});var getRoutes_1=require(a10_0x3daf22(0x120));Object[a10_0x3daf22(0x13e)](exports,'getRoutes',{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a10_0x3daf22(0x126));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x11d),{'enumerable':!![],'get':function(){var _0x11dfc9=a10_0x3daf22;return ApiError_1[_0x11dfc9(0x11d)];}});var cache_1=require(a10_0x3daf22(0x124));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x14c),{'enumerable':!![],'get':function(){var _0x7982a0=a10_0x3daf22;return cache_1[_0x7982a0(0x14c)];}});var event_1=require(a10_0x3daf22(0x11b));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x147),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require(a10_0x3daf22(0x112));Object['defineProperty'](exports,'ApiService',{'enumerable':!![],'get':function(){var _0x201082=a10_0x3daf22;return ApiService_1[_0x201082(0x13f)];}});var ExcelService_1=require(a10_0x3daf22(0x12d));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x14b),{'enumerable':!![],'get':function(){var _0x45a356=a10_0x3daf22;return ExcelService_1[_0x45a356(0x14b)];}});var validator_1=require(a10_0x3daf22(0x145));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x130),{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a10_0x3daf22(0x13e)](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a10_0x3daf22(0x131));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x144),{'enumerable':!![],'get':function(){var _0x13a1d2=a10_0x3daf22;return configuration_1[_0x13a1d2(0x11f)];}});var core_1=require(a10_0x3daf22(0x128));Object['defineProperty'](exports,a10_0x3daf22(0x149),{'enumerable':!![],'get':function(){var _0x4291d6=a10_0x3daf22;return core_1[_0x4291d6(0x149)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x138),{'enumerable':!![],'get':function(){var _0x1b881e=a10_0x3daf22;return core_1[_0x1b881e(0x138)];}}),Object['defineProperty'](exports,a10_0x3daf22(0x118),{'enumerable':!![],'get':function(){var _0x2163f2=a10_0x3daf22;return core_1[_0x2163f2(0x118)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x14e),{'enumerable':!![],'get':function(){var _0x220bb8=a10_0x3daf22;return core_1[_0x220bb8(0x14e)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x134),{'enumerable':!![],'get':function(){var _0x1539c7=a10_0x3daf22;return core_1[_0x1539c7(0x134)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x12a),{'enumerable':!![],'get':function(){var _0x399bb6=a10_0x3daf22;return core_1[_0x399bb6(0x12a)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x116),{'enumerable':!![],'get':function(){var _0x181eb7=a10_0x3daf22;return core_1[_0x181eb7(0x116)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x12e),{'enumerable':!![],'get':function(){var _0x5822fb=a10_0x3daf22;return core_1[_0x5822fb(0x12e)];}});var core_2=require(a10_0x3daf22(0x128));Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x117),{'enumerable':!![],'get':function(){var _0x24a9d4=a10_0x3daf22;return core_2[_0x24a9d4(0x117)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x129),{'enumerable':!![],'get':function(){var _0x5261e9=a10_0x3daf22;return core_2[_0x5261e9(0x129)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x133),{'enumerable':!![],'get':function(){var _0x177761=a10_0x3daf22;return core_2[_0x177761(0x133)];}}),Object[a10_0x3daf22(0x13e)](exports,'Provide',{'enumerable':!![],'get':function(){var _0x5b3537=a10_0x3daf22;return core_2[_0x5b3537(0x148)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x13b),{'enumerable':!![],'get':function(){var _0x50aaea=a10_0x3daf22;return core_2[_0x50aaea(0x13b)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x115),{'enumerable':!![],'get':function(){var _0x966e06=a10_0x3daf22;return core_2[_0x966e06(0x115)];}}),Object[a10_0x3daf22(0x13e)](exports,a10_0x3daf22(0x140),{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object['defineProperty'](exports,a10_0x3daf22(0x11c),{'enumerable':!![],'get':function(){var _0x3a72c5=a10_0x3daf22;return core_2[_0x3a72c5(0x11c)];}}),global[a10_0x3daf22(0x132)]=getAppsConfig_1[a10_0x3daf22(0x132)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a11_0x33a4e8=a11_0x23c5;function a11_0x23c5(_0x44fde3,_0x169a05){var _0x42083f=a11_0x2af5();return a11_0x23c5=function(_0x41e148,_0x31d02d){_0x41e148=_0x41e148-0xb7;var _0x2af529=_0x42083f[_0x41e148];return _0x2af529;},a11_0x23c5(_0x44fde3,_0x169a05);}(function(_0x118e59,_0x492815){var _0xf07668=a11_0x23c5,_0x9e8adb=_0x118e59();while(!![]){try{var _0xcf481a=parseInt(_0xf07668(0xce))/0x1*(-parseInt(_0xf07668(0xf3))/0x2)+-parseInt(_0xf07668(0xca))/0x3*(-parseInt(_0xf07668(0xd5))/0x4)+-parseInt(_0xf07668(0xbc))/0x5*(-parseInt(_0xf07668(0xf1))/0x6)+parseInt(_0xf07668(0xed))/0x7+-parseInt(_0xf07668(0xd6))/0x8+parseInt(_0xf07668(0xdd))/0x9+parseInt(_0xf07668(0xf2))/0xa;if(_0xcf481a===_0x492815)break;else _0x9e8adb['push'](_0x9e8adb['shift']());}catch(_0x5e2573){_0x9e8adb['push'](_0x9e8adb['shift']());}}}(a11_0x2af5,0xe9ede));var a11_0x31d02d=(function(){var _0x40e730=!![];return function(_0x46fb4a,_0xe28940){var _0x5b975e=_0x40e730?function(){var _0x210802=a11_0x23c5;if(_0xe28940){var _0x536e28=_0xe28940[_0x210802(0xc9)](_0x46fb4a,arguments);return _0xe28940=null,_0x536e28;}}:function(){};return _0x40e730=![],_0x5b975e;};}()),a11_0x41e148=a11_0x31d02d(this,function(){var _0x30f436=a11_0x23c5;return a11_0x41e148[_0x30f436(0xbd)]()['search'](_0x30f436(0xc3))[_0x30f436(0xbd)]()[_0x30f436(0xec)](a11_0x41e148)[_0x30f436(0xc7)](_0x30f436(0xc3));});a11_0x41e148();'use strict';var __decorate=this&&this['__decorate']||function(_0x2af546,_0x2199cf,_0x4473ed,_0x2abdb4){var _0x3347a4=a11_0x23c5,_0x3ce0c8=arguments[_0x3347a4(0xc6)],_0x55eb19=_0x3ce0c8<0x3?_0x2199cf:_0x2abdb4===null?_0x2abdb4=Object['getOwnPropertyDescriptor'](_0x2199cf,_0x4473ed):_0x2abdb4,_0x5dddec;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3347a4(0xc0))_0x55eb19=Reflect['decorate'](_0x2af546,_0x2199cf,_0x4473ed,_0x2abdb4);else{for(var _0x528158=_0x2af546[_0x3347a4(0xc6)]-0x1;_0x528158>=0x0;_0x528158--)if(_0x5dddec=_0x2af546[_0x528158])_0x55eb19=(_0x3ce0c8<0x3?_0x5dddec(_0x55eb19):_0x3ce0c8>0x3?_0x5dddec(_0x2199cf,_0x4473ed,_0x55eb19):_0x5dddec(_0x2199cf,_0x4473ed))||_0x55eb19;}return _0x3ce0c8>0x3&&_0x55eb19&&Object[_0x3347a4(0xd8)](_0x2199cf,_0x4473ed,_0x55eb19),_0x55eb19;},__metadata=this&&this[a11_0x33a4e8(0xe9)]||function(_0x5f3486,_0x1f6e30){var _0x1dac66=a11_0x33a4e8;if(typeof Reflect===_0x1dac66(0xb7)&&typeof Reflect[_0x1dac66(0xcb)]===_0x1dac66(0xc0))return Reflect[_0x1dac66(0xcb)](_0x5f3486,_0x1f6e30);};function a11_0x2af5(){var _0x3a2e0a=['__metadata','design:type','缺少头信息:','constructor','8119412dFjpkm','缺少头信息:signature','MD5','getcheck','6WSVzVO','3527430Pqjswq','3988ghMCob','object','ApiService','map','@midwayjs/core','password','8131270LVUkKY','toString','logintime','undefined','function','join','push','(((.+)+)+)+$','abs','HEADERS_LACK','length','search','now','apply','41079KRrMDd','metadata','TIMEOUT_LOGINTIME','config','573VkKVbk','HEADERS_SIGNATURE','logintimeout','secret=','Provide','devices','token','8sHxkhv','10844440IIyXRm','getsign','defineProperty','crypto-js','sort','timeout','device','2609928qzvfqC','toLowerCase','prototype','checkcode','entries','ApiError','secret','checksign','HEADERS_DEVICE','signature','fromEntries','requesttime'];a11_0x2af5=function(){return _0x3a2e0a;};return a11_0x2af5();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11_0x33a4e8(0xb8)]=void 0x0;const crypto_js_1=require(a11_0x33a4e8(0xd9)),core_1=require(a11_0x33a4e8(0xba)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{['password'](_0x33f741){var _0x41dfa8=a11_0x33a4e8,_0x176d58;return _0x33f741?(0x0,crypto_js_1['MD5'])(''+_0x33f741+(0x0,crypto_js_1[_0x41dfa8(0xef)])((0x0,crypto_js_1[_0x41dfa8(0xef)])(''+_0x33f741)['toString']()+(''+((_0x176d58=this['config'])===null||_0x176d58===void 0x0?void 0x0:_0x176d58[_0x41dfa8(0xbb)])))[_0x41dfa8(0xbd)]())[_0x41dfa8(0xbd)]():'';}[a11_0x33a4e8(0xf0)](_0x3176a4,_0x1dbc4a,_0x53537a=Date[a11_0x33a4e8(0xc8)]()){var _0x45bb65=a11_0x33a4e8;return{'Token':_0x3176a4,'Logintime':_0x53537a,'Checkcode':this[_0x45bb65(0xe0)](_0x3176a4,_0x1dbc4a,_0x53537a)};}['getsign'](_0x269cce={}){var _0x57b1c6=a11_0x33a4e8,_0x55c9bf,_0x3f5a12;const _0x4ece27=[],_0x12b7ee=Object[_0x57b1c6(0xe7)](Object[_0x57b1c6(0xe1)](_0x269cce)[_0x57b1c6(0xb9)](_0x3a67bb=>[_0x3a67bb[0x0][_0x57b1c6(0xde)](),_0x3a67bb[0x1]]));for(let _0x1a9710 of[_0x57b1c6(0xdc),_0x57b1c6(0xe8),_0x57b1c6(0xd4),_0x57b1c6(0xbe),'checkcode']){if(typeof _0x12b7ee[_0x1a9710]==_0x57b1c6(0xbf))throw new AnnError(ApiError_1['ApiError'][_0x57b1c6(0xc5)],{'message':_0x57b1c6(0xeb)+_0x1a9710});_0x4ece27[_0x57b1c6(0xc2)](_0x1a9710+'='+_0x12b7ee[_0x1a9710]);}_0x12b7ee['requesttime']&&((_0x55c9bf=_0x12b7ee[_0x57b1c6(0xe8)])===null||_0x55c9bf===void 0x0?void 0x0:_0x55c9bf[_0x57b1c6(0xc6)])==0xa&&(_0x12b7ee[_0x57b1c6(0xe8)]=_0x12b7ee['requesttime']*0x3e8);if(this[_0x57b1c6(0xcd)][_0x57b1c6(0xdb)]&&Date[_0x57b1c6(0xc8)]()-Math[_0x57b1c6(0xc4)](_0x12b7ee['requesttime'])>this[_0x57b1c6(0xcd)][_0x57b1c6(0xdb)])throw new AnnError(ApiError_1[_0x57b1c6(0xe2)]['TIMEOUT'],{'message':'请求超时,请重试或改善网络环境','requesttime':_0x12b7ee[_0x57b1c6(0xe8)],'timestamp':Date[_0x57b1c6(0xc8)]()});if((((_0x3f5a12=this[_0x57b1c6(0xcd)][_0x57b1c6(0xd3)][_0x12b7ee[_0x57b1c6(0xdc)]])===null||_0x3f5a12===void 0x0?void 0x0:_0x3f5a12[_0x57b1c6(0xd0)])||0x0)>0x0&&Date['now']()-Math[_0x57b1c6(0xc4)](_0x12b7ee[_0x57b1c6(0xbe)])>this['config'][_0x57b1c6(0xd3)][_0x12b7ee[_0x57b1c6(0xdc)]][_0x57b1c6(0xd0)])throw new AnnError(ApiError_1[_0x57b1c6(0xe2)][_0x57b1c6(0xcc)]);if(!this['config'][_0x57b1c6(0xd3)][_0x12b7ee[_0x57b1c6(0xdc)]]||!this[_0x57b1c6(0xcd)]['devices'][_0x12b7ee[_0x57b1c6(0xdc)]][_0x57b1c6(0xe3)]||!this[_0x57b1c6(0xcd)][_0x57b1c6(0xd3)][_0x12b7ee[_0x57b1c6(0xdc)]][_0x57b1c6(0xe0)])throw new AnnError(ApiError_1[_0x57b1c6(0xe2)][_0x57b1c6(0xe5)]);if(_0x12b7ee['token']&&_0x12b7ee[_0x57b1c6(0xe0)]!=this[_0x57b1c6(0xe0)](_0x12b7ee[_0x57b1c6(0xd4)],_0x12b7ee[_0x57b1c6(0xdc)],_0x12b7ee[_0x57b1c6(0xbe)]))throw new AnnError(ApiError_1[_0x57b1c6(0xe2)]['HEADERS_CHECKCODE']);return _0x4ece27['push'](_0x57b1c6(0xd1)+this[_0x57b1c6(0xcd)][_0x57b1c6(0xd3)][_0x12b7ee[_0x57b1c6(0xdc)]][_0x57b1c6(0xe3)]),(0x0,crypto_js_1[_0x57b1c6(0xef)])(_0x4ece27[_0x57b1c6(0xda)]()[_0x57b1c6(0xc1)](''))[_0x57b1c6(0xbd)]();}[a11_0x33a4e8(0xe0)](_0x282b30,_0x34566,_0x39aa92=Date['now']()){var _0x7abcc6=a11_0x33a4e8,_0x4bdf8b,_0x13a9f6,_0x39fdd8;if(!((_0x4bdf8b=this[_0x7abcc6(0xcd)])===null||_0x4bdf8b===void 0x0?void 0x0:_0x4bdf8b['devices'][_0x34566])||!((_0x39fdd8=(_0x13a9f6=this[_0x7abcc6(0xcd)])===null||_0x13a9f6===void 0x0?void 0x0:_0x13a9f6['devices'][_0x34566])===null||_0x39fdd8===void 0x0?void 0x0:_0x39fdd8[_0x7abcc6(0xe0)]))throw new AnnError(ApiError_1['ApiError'][_0x7abcc6(0xe5)]);return(0x0,crypto_js_1[_0x7abcc6(0xef)])(''+_0x282b30+(0x0,crypto_js_1[_0x7abcc6(0xef)])(''+_0x39aa92+(''+this[_0x7abcc6(0xcd)]['devices'][_0x34566][_0x7abcc6(0xe0)]))[_0x7abcc6(0xbd)]())[_0x7abcc6(0xbd)]();}[a11_0x33a4e8(0xe4)](_0x46781d={}){var _0x5bdc3a=a11_0x33a4e8;const _0x5d17cb=Object[_0x5bdc3a(0xe7)](Object[_0x5bdc3a(0xe1)](_0x46781d)['map'](_0x22b99d=>[_0x22b99d[0x0][_0x5bdc3a(0xde)](),_0x22b99d[0x1]]));if(!(_0x5d17cb===null||_0x5d17cb===void 0x0?void 0x0:_0x5d17cb[_0x5bdc3a(0xe6)]))throw new AnnError(ApiError_1[_0x5bdc3a(0xe2)][_0x5bdc3a(0xc5)],{'message':_0x5bdc3a(0xee)});if((_0x5d17cb===null||_0x5d17cb===void 0x0?void 0x0:_0x5d17cb[_0x5bdc3a(0xe6)])!=this[_0x5bdc3a(0xd7)](_0x5d17cb))throw new AnnError(ApiError_1[_0x5bdc3a(0xe2)][_0x5bdc3a(0xcf)]);return!![];}};__decorate([(0x0,core_1['Config'])('anncicapi'),__metadata(a11_0x33a4e8(0xea),Object)],ApiService[a11_0x33a4e8(0xdf)],a11_0x33a4e8(0xcd),void 0x0),ApiService=__decorate([(0x0,core_1[a11_0x33a4e8(0xd2)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum']['Singleton'])],ApiService),exports[a11_0x33a4e8(0xb8)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2a1763=a12_0x123e;function a12_0x123e(_0x3962cc,_0x12b0a8){const _0x2aeb93=a12_0x3151();return a12_0x123e=function(_0x268fb1,_0x4b3da9){_0x268fb1=_0x268fb1-0x8a;let _0x315199=_0x2aeb93[_0x268fb1];return _0x315199;},a12_0x123e(_0x3962cc,_0x12b0a8);}(function(_0x2489b3,_0x53db76){const _0x487dcd=a12_0x123e,_0x50592c=_0x2489b3();while(!![]){try{const _0x3d7f2e=-parseInt(_0x487dcd(0xa1))/0x1+-parseInt(_0x487dcd(0xcc))/0x2*(-parseInt(_0x487dcd(0xa0))/0x3)+parseInt(_0x487dcd(0xa6))/0x4+parseInt(_0x487dcd(0xa3))/0x5+-parseInt(_0x487dcd(0xa7))/0x6*(-parseInt(_0x487dcd(0xd6))/0x7)+-parseInt(_0x487dcd(0xbd))/0x8+-parseInt(_0x487dcd(0x8d))/0x9*(parseInt(_0x487dcd(0xad))/0xa);if(_0x3d7f2e===_0x53db76)break;else _0x50592c['push'](_0x50592c['shift']());}catch(_0x647ce1){_0x50592c['push'](_0x50592c['shift']());}}}(a12_0x3151,0xb9816));const a12_0x4b3da9=(function(){let _0x41d03f=!![];return function(_0x179cd6,_0x86de3c){const _0xd2075=_0x41d03f?function(){const _0x56d9d5=a12_0x123e;if(_0x86de3c){const _0x215838=_0x86de3c[_0x56d9d5(0xce)](_0x179cd6,arguments);return _0x86de3c=null,_0x215838;}}:function(){};return _0x41d03f=![],_0xd2075;};}()),a12_0x268fb1=a12_0x4b3da9(this,function(){const _0x3b608b=a12_0x123e;return a12_0x268fb1[_0x3b608b(0xa5)]()[_0x3b608b(0x96)](_0x3b608b(0xcd))['toString']()[_0x3b608b(0xa8)](a12_0x268fb1)[_0x3b608b(0x96)](_0x3b608b(0xcd));});a12_0x268fb1();'use strict';var __decorate=this&&this[a12_0x2a1763(0xcf)]||function(_0x3590a9,_0x43d635,_0x37c530,_0x195428){const _0xd2fd79=a12_0x2a1763;var _0x321714=arguments[_0xd2fd79(0xc3)],_0x352cfe=_0x321714<0x3?_0x43d635:_0x195428===null?_0x195428=Object[_0xd2fd79(0xbb)](_0x43d635,_0x37c530):_0x195428,_0x27db12;if(typeof Reflect==='object'&&typeof Reflect[_0xd2fd79(0xde)]==='function')_0x352cfe=Reflect[_0xd2fd79(0xde)](_0x3590a9,_0x43d635,_0x37c530,_0x195428);else{for(var _0x4d3657=_0x3590a9[_0xd2fd79(0xc3)]-0x1;_0x4d3657>=0x0;_0x4d3657--)if(_0x27db12=_0x3590a9[_0x4d3657])_0x352cfe=(_0x321714<0x3?_0x27db12(_0x352cfe):_0x321714>0x3?_0x27db12(_0x43d635,_0x37c530,_0x352cfe):_0x27db12(_0x43d635,_0x37c530))||_0x352cfe;}return _0x321714>0x3&&_0x352cfe&&Object[_0xd2fd79(0xc4)](_0x43d635,_0x37c530,_0x352cfe),_0x352cfe;},__metadata=this&&this[a12_0x2a1763(0x9f)]||function(_0x4bee6b,_0x471fce){const _0xae8e16=a12_0x2a1763;if(typeof Reflect==='object'&&typeof Reflect[_0xae8e16(0xd1)]===_0xae8e16(0xc6))return Reflect[_0xae8e16(0xd1)](_0x4bee6b,_0x471fce);},__param=this&&this[a12_0x2a1763(0x9b)]||function(_0x2b34fb,_0x3919a8){return function(_0x5b9489,_0x1815b1){_0x3919a8(_0x5b9489,_0x1815b1,_0x2b34fb);};};function a12_0x3151(){const _0x506ac1=['cache-control','substring','getRoutes','apidoc','utf-8','/apitest','ctx','route','getOwnPropertyDescriptor','Scope','11191984dGcbWB','description','ApitestService','Config','.js','@midwayjs/core','length','defineProperty','../helper/getRoutes','function','Get','application/javascript;\x20charset=utf-8','isDevelopmentEnvironment','Controller','request','2bvqkXS','(((.+)+)+)+$','apply','__decorate','public,\x20max-age=604800','metadata','anncicapi','push','set','__esModule','56MaWZNO','design:paramtypes','stringify','apitest','/apiteststatic/','routes','Request','config','decorate','MidwayEnvironmentService','apitesthtml','apitestmodule','146619CzemSq','method','design:type','/index.html','/apiteststatic/*','/apitest-:module','ScopeEnum','join','ApitestStaticController','search','readFileSync','devices','Environment','content-type','__param','text/css;\x20charset=utf-8','filepath','module','__metadata','3225366EuYYuw','535431eOcvXt','Inject','2188700VdjbJh','Singleton','toString','5826168NOjpjk','319026QxIxQe','constructor','apiteststatic','extname','design:returntype','Provide','430ISmwPV','__apiList__','url','prototype','summary','replace'];a12_0x3151=function(){return _0x506ac1;};return a12_0x3151();}Object['defineProperty'](exports,a12_0x2a1763(0xd5),{'value':!![]}),exports[a12_0x2a1763(0x95)]=exports[a12_0x2a1763(0xbf)]=void 0x0;const path_1=require('path'),fs_1=require('fs'),core_1=require(a12_0x2a1763(0xc2)),core_2=require(a12_0x2a1763(0xc2)),core_3=require(a12_0x2a1763(0xc2)),getRoutes_1=require(a12_0x2a1763(0xc5));let ApitestService=class ApitestService{async[a12_0x2a1763(0xb6)](_0x538d07){const _0x657f47=a12_0x2a1763,_0x4a9664=(0x0,getRoutes_1[_0x657f47(0xb5)])(_0x538d07),_0x2d0ff3=[];for(let _0x4dcb40 in _0x4a9664){for(let _0x55ad4b in _0x4a9664[_0x4dcb40][_0x657f47(0xdb)]){let _0x2aa96d=_0x4a9664[_0x4dcb40][_0x657f47(0xdb)][_0x55ad4b],_0xef1db0=[];for(let _0xdf80fa in _0x2aa96d[_0x657f47(0xcb)]){_0xef1db0[_0x657f47(0xd3)](_0x2aa96d[_0x657f47(0xcb)][_0xdf80fa]);}_0x2d0ff3[_0x657f47(0xd3)]({'title':_0x4a9664[_0x4dcb40][_0x657f47(0xb1)]+':'+_0x2aa96d[_0x657f47(0xb1)],'prefix':_0x4a9664[_0x4dcb40]['prefix'],'router':_0x2aa96d[_0x657f47(0xba)],'method':_0x2aa96d[_0x657f47(0x8e)],'describe':_0x2aa96d[_0x657f47(0xbe)]||'','filepath':_0x4a9664[_0x4dcb40]['filepath']||'','request':_0xef1db0});}}const _0x2eee7a=(0x0,path_1['join'])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x657f47(0x97)])(_0x2eee7a,{'encoding':_0x657f47(0xb7)})['replace'](/__res__/g,_0x657f47(0xda))[_0x657f47(0xb2)](_0x657f47(0xae),JSON['stringify'](_0x2d0ff3))[_0x657f47(0xb2)]('__devices__',JSON[_0x657f47(0xd8)](this[_0x657f47(0xdd)][_0x657f47(0x98)]));}};__decorate([(0x0,core_3[a12_0x2a1763(0xc0)])(a12_0x2a1763(0xd2)),__metadata('design:type',Object)],ApitestService[a12_0x2a1763(0xb0)],a12_0x2a1763(0xdd),void 0x0),ApitestService=__decorate([(0x0,core_2[a12_0x2a1763(0xac)])(a12_0x2a1763(0xd9)),(0x0,core_3['Scope'])(core_3['ScopeEnum'][a12_0x2a1763(0xa4)])],ApitestService),exports[a12_0x2a1763(0xbf)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async['apitesthtml'](){const _0x4fac5c=a12_0x2a1763;if(this[_0x4fac5c(0xd9)]){const _0x59536d={'module':![]};return this[_0x4fac5c(0x99)][_0x4fac5c(0xc9)]()&&(_0x59536d['filepath']=!![]),await this['ApitestService'][_0x4fac5c(0xb6)](_0x59536d);}return'';}async[a12_0x2a1763(0x8c)](_0x1a2b82){const _0x3ff35f=a12_0x2a1763;if(this[_0x3ff35f(0xd9)]){const _0x4c49b7={'module':_0x1a2b82};return this[_0x3ff35f(0x99)][_0x3ff35f(0xc9)]()&&(_0x4c49b7[_0x3ff35f(0x9d)]=!![]),await this[_0x3ff35f(0xbf)]['apidoc'](_0x4c49b7);}return'';}async[a12_0x2a1763(0xa9)](){const _0x2c7851=a12_0x2a1763;if((0x0,path_1[_0x2c7851(0xaa)])(this[_0x2c7851(0xb9)][_0x2c7851(0xcb)][_0x2c7851(0xaf)])){var _0x35620c=(0x0,path_1[_0x2c7851(0x94)])(__dirname,'../../public/'+this['ctx'][_0x2c7851(0xcb)]['url']['replace']('/apiteststatic/','/'));if(_0x35620c[_0x2c7851(0xb4)](_0x35620c[_0x2c7851(0xc3)]-0xb)!=_0x2c7851(0x90)){this[_0x2c7851(0xb9)][_0x2c7851(0xd4)](_0x2c7851(0xb3),_0x2c7851(0xd0));if((0x0,path_1[_0x2c7851(0xaa)])(this[_0x2c7851(0xb9)]['request'][_0x2c7851(0xaf)])==_0x2c7851(0xc1))this[_0x2c7851(0xb9)][_0x2c7851(0xd4)](_0x2c7851(0x9a),_0x2c7851(0xc8));else(0x0,path_1['extname'])(this[_0x2c7851(0xb9)][_0x2c7851(0xcb)][_0x2c7851(0xaf)])=='.css'&&this[_0x2c7851(0xb9)][_0x2c7851(0xd4)]('content-type',_0x2c7851(0x9c));return(0x0,fs_1['existsSync'])(_0x35620c)&&(0x0,fs_1[_0x2c7851(0x97)])(_0x35620c,{'encoding':_0x2c7851(0xb7)});}}return'';}};__decorate([(0x0,core_3[a12_0x2a1763(0xa2)])(),__metadata(a12_0x2a1763(0x8f),Object)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0xb9),void 0x0),__decorate([(0x0,core_3[a12_0x2a1763(0xa2)])(),__metadata(a12_0x2a1763(0x8f),core_1[a12_0x2a1763(0x8a)])],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0x99),void 0x0),__decorate([(0x0,core_3[a12_0x2a1763(0xa2)])(),__metadata(a12_0x2a1763(0x8f),ApitestService)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0xbf),void 0x0),__decorate([(0x0,core_3[a12_0x2a1763(0xc0)])(a12_0x2a1763(0xd9)),__metadata(a12_0x2a1763(0x8f),Boolean)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0xd9),void 0x0),__decorate([(0x0,core_3[a12_0x2a1763(0xc0)])(a12_0x2a1763(0xd2)),__metadata(a12_0x2a1763(0x8f),Object)],ApitestStaticController['prototype'],'config',void 0x0),__decorate([(0x0,core_2['Get'])(a12_0x2a1763(0xb8)),__metadata(a12_0x2a1763(0x8f),Function),__metadata(a12_0x2a1763(0xd7),[]),__metadata(a12_0x2a1763(0xab),Promise)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0x8b),null),__decorate([(0x0,core_2[a12_0x2a1763(0xc7)])(a12_0x2a1763(0x92)),__param(0x0,(0x0,core_2['Param'])(a12_0x2a1763(0x9e))),__metadata(a12_0x2a1763(0x8f),Function),__metadata(a12_0x2a1763(0xd7),[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0x8c),null),__decorate([(0x0,core_2[a12_0x2a1763(0xc7)])(a12_0x2a1763(0x91)),__metadata(a12_0x2a1763(0x8f),Function),__metadata('design:paramtypes',[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x2a1763(0xb0)],a12_0x2a1763(0xa9),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x2a1763(0xca)])('/'),(0x0,core_3[a12_0x2a1763(0xbc)])(core_3[a12_0x2a1763(0x93)][a12_0x2a1763(0xdc)])],ApitestStaticController),exports[a12_0x2a1763(0x95)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x3276b1=a13_0x3d31;(function(_0x3d4fa5,_0x1cfb2f){const _0x2dfc68=a13_0x3d31,_0x1345eb=_0x3d4fa5();while(!![]){try{const _0x4f64a5=parseInt(_0x2dfc68(0x147))/0x1+parseInt(_0x2dfc68(0x142))/0x2*(-parseInt(_0x2dfc68(0x11a))/0x3)+parseInt(_0x2dfc68(0x12d))/0x4+-parseInt(_0x2dfc68(0x111))/0x5*(parseInt(_0x2dfc68(0x11f))/0x6)+parseInt(_0x2dfc68(0x10d))/0x7+parseInt(_0x2dfc68(0x136))/0x8*(-parseInt(_0x2dfc68(0x110))/0x9)+parseInt(_0x2dfc68(0x13b))/0xa*(parseInt(_0x2dfc68(0x137))/0xb);if(_0x4f64a5===_0x1cfb2f)break;else _0x1345eb['push'](_0x1345eb['shift']());}catch(_0xd718a7){_0x1345eb['push'](_0x1345eb['shift']());}}}(a13_0x27a0,0x61d13));const a13_0x2647e3=(function(){let _0x564620=!![];return function(_0x281b34,_0xef0fa4){const _0x3ffbaa=_0x564620?function(){if(_0xef0fa4){const _0x185b7e=_0xef0fa4['apply'](_0x281b34,arguments);return _0xef0fa4=null,_0x185b7e;}}:function(){};return _0x564620=![],_0x3ffbaa;};}()),a13_0x67ea78=a13_0x2647e3(this,function(){const _0x532b12=a13_0x3d31;return a13_0x67ea78['toString']()['search']('(((.+)+)+)+$')[_0x532b12(0x10e)]()[_0x532b12(0x120)](a13_0x67ea78)['search'](_0x532b12(0x132));});a13_0x67ea78();function a13_0x27a0(){const _0xfc24ca=['rowCount','handler','__decorate','random','worksheets','ScopeEnum','@midwayjs/core','header','design:type','getAppDir','Workbook','mkdirSync','3018732GBLCRk','koa-send','App','download','Sheet\x201','(((.+)+)+)+$','getRow','/public/xlsx/','columns','11128MzFNQc','68343lYXAxr','log','existsSync','decorate','90QCCRuV','__metadata','endsWith','Provide','length','values','frozen','222ncnJEK','function','cellCount','export','findRows','30812sJqyNf','.xlsx','keys','startsWith','addWorksheet','push','__esModule','getCell','value','Api\x20Excel\x20Error:\x20','Singleton','ExcelService','model','replace','writeFile','substring','1798720iMUXzO','toString','app','1206uvfoaG','245rOxUhm','metadata','addRow','key','defineProperty','getOwnPropertyDescriptor','format','\x20is\x20read\x20fail','YYYY/MM/DD','10551nnvQdZ','filter','eachCell','parse','xlsx','14808INbrsw','constructor'];a13_0x27a0=function(){return _0xfc24ca;};return a13_0x27a0();}'use strict';var __decorate=this&&this[a13_0x3276b1(0x123)]||function(_0x728f78,_0x30ed7c,_0x32be54,_0x272211){const _0x493b69=a13_0x3276b1;var _0x3976ff=arguments[_0x493b69(0x13f)],_0x9225a5=_0x3976ff<0x3?_0x30ed7c:_0x272211===null?_0x272211=Object[_0x493b69(0x116)](_0x30ed7c,_0x32be54):_0x272211,_0x420805;if(typeof Reflect==='object'&&typeof Reflect[_0x493b69(0x13a)]===_0x493b69(0x143))_0x9225a5=Reflect['decorate'](_0x728f78,_0x30ed7c,_0x32be54,_0x272211);else{for(var _0x1a46ab=_0x728f78[_0x493b69(0x13f)]-0x1;_0x1a46ab>=0x0;_0x1a46ab--)if(_0x420805=_0x728f78[_0x1a46ab])_0x9225a5=(_0x3976ff<0x3?_0x420805(_0x9225a5):_0x3976ff>0x3?_0x420805(_0x30ed7c,_0x32be54,_0x9225a5):_0x420805(_0x30ed7c,_0x32be54))||_0x9225a5;}return _0x3976ff>0x3&&_0x9225a5&&Object[_0x493b69(0x115)](_0x30ed7c,_0x32be54,_0x9225a5),_0x9225a5;},__metadata=this&&this[a13_0x3276b1(0x13c)]||function(_0x9d1f72,_0x4cf591){const _0x2fdf3c=a13_0x3276b1;if(typeof Reflect==='object'&&typeof Reflect[_0x2fdf3c(0x112)]===_0x2fdf3c(0x143))return Reflect[_0x2fdf3c(0x112)](_0x9d1f72,_0x4cf591);};Object[a13_0x3276b1(0x115)](exports,a13_0x3276b1(0x14d),{'value':!![]}),exports[a13_0x3276b1(0x108)]=void 0x0;function a13_0x3d31(_0x5085bc,_0x482620){const _0x1d7c87=a13_0x27a0();return a13_0x3d31=function(_0x67ea78,_0x2647e3){_0x67ea78=_0x67ea78-0x105;let _0x27a0cf=_0x1d7c87[_0x67ea78];return _0x27a0cf;},a13_0x3d31(_0x5085bc,_0x482620);}const fs=require('fs'),exceljs=require('exceljs'),koasend=require(a13_0x3276b1(0x12e)),core_1=require(a13_0x3276b1(0x127));let ExcelService=class ExcelService{async[a13_0x3276b1(0x11d)](_0x3c477d,_0x2dbcd4,_0xed10fa=[0x0]){const _0x1231ae=a13_0x3276b1;var _0x762436,_0x22aa3e;const _0x3e810e=new exceljs[(_0x1231ae(0x12b))](),_0x33e52b=[];let _0x68251c=_0x3c477d[_0x1231ae(0x10a)](/(\\|\/)/g,'/')[_0x1231ae(0x10a)](/\/{2,}/g,'/');!(_0x68251c===null||_0x68251c===void 0x0?void 0x0:_0x68251c['startsWith']('/'))&&(_0x68251c=this[_0x1231ae(0x10f)][_0x1231ae(0x12a)]()+'/'+_0x68251c);try{await _0x3e810e[_0x1231ae(0x11e)]['readFile'](_0x68251c);}catch(_0x3da367){return console[_0x1231ae(0x138)](_0x1231ae(0x106)+_0x68251c+_0x1231ae(0x118)),_0x33e52b;}for(const _0x118aa5 of _0xed10fa){const _0x17361d=lodash['isNumber'](_0x118aa5)?((_0x762436=_0x3e810e[_0x1231ae(0x125)])===null||_0x762436===void 0x0?void 0x0:_0x762436[_0x118aa5])||undefined:_0x3e810e['getWorksheet'](_0x118aa5);if(_0x17361d){var _0x4cd19d=0x1;const _0x7abc36=_0x17361d[_0x1231ae(0x133)](0x1),_0x399880=await new Promise(_0x4340a1=>{const _0x1493c5=_0x1231ae,_0x40f1a2={};_0x7abc36[_0x1493c5(0x11c)]((_0x83f2a2,_0x2ee8d6)=>{const _0x187a4c=_0x1493c5;for(const _0x4d4ad1 of _0x2dbcd4){if(_0x83f2a2[_0x187a4c(0x105)]==_0x4d4ad1[_0x187a4c(0x128)])_0x4cd19d=0x2,_0x40f1a2[_0x4d4ad1[_0x187a4c(0x114)]]={'header':_0x83f2a2['col'],'handler':_0x4d4ad1['handler']};else{if(!_0x40f1a2[_0x4d4ad1[_0x187a4c(0x114)]])try{const _0x4c3330=_0x7abc36&&_0x7abc36[_0x187a4c(0x14e)](_0x4d4ad1[_0x187a4c(0x128)]);_0x4c3330&&(_0x40f1a2[_0x4d4ad1['key']]={'header':_0x4c3330['col'],'handler':_0x4d4ad1['handler']});}catch{}}}_0x7abc36[_0x187a4c(0x144)]==_0x2ee8d6&&_0x4340a1(_0x40f1a2);});});for(const _0x1f22d5 of _0x17361d[_0x1231ae(0x146)](_0x4cd19d,_0x17361d[_0x1231ae(0x121)])){const _0x5e2b1c={};for(const _0x2658d9 in _0x399880){if(_0x399880[_0x2658d9][_0x1231ae(0x128)]){const _0x50e1c4=_0x1f22d5&&_0x1f22d5[_0x1231ae(0x14e)](_0x399880[_0x2658d9][_0x1231ae(0x128)]);typeof((_0x22aa3e=_0x399880[_0x2658d9])===null||_0x22aa3e===void 0x0?void 0x0:_0x22aa3e[_0x1231ae(0x122)])==_0x1231ae(0x143)?_0x5e2b1c[_0x2658d9]=await _0x399880[_0x2658d9]['handler'](lodash['set']({},_0x2658d9,(_0x50e1c4===null||_0x50e1c4===void 0x0?void 0x0:_0x50e1c4[_0x1231ae(0x10e)]())||''),_0x50e1c4[_0x1231ae(0x109)]):_0x5e2b1c[_0x2658d9]=(_0x50e1c4===null||_0x50e1c4===void 0x0?void 0x0:_0x50e1c4['toString']())||'';}}Object[_0x1231ae(0x149)](_0x5e2b1c)['length']>0x0&&Object[_0x1231ae(0x140)](_0x5e2b1c)[_0x1231ae(0x11b)](_0x1d9d3e=>_0x1d9d3e!=='')['length']>0x0&&_0x33e52b[_0x1231ae(0x14c)](_0x5e2b1c);}}}return _0x33e52b;}async[a13_0x3276b1(0x145)](_0x405869,_0x2f665d,_0x494906,_0x3a1026){const _0x28f395=a13_0x3276b1;var _0x579b8a,_0xe88931;const _0x15c173=new exceljs['Workbook'](),_0x36df41={},_0x1e8c65=[],_0x624e43=_0x15c173[_0x28f395(0x14b)](_0x28f395(0x131),{'views':[{'state':_0x28f395(0x141),'xSplit':0x1}]});for(const _0x4e7e8e in _0x2f665d){_0x36df41[_0x2f665d[_0x4e7e8e][_0x28f395(0x114)]]=_0x2f665d[_0x4e7e8e][_0x28f395(0x128)],_0x1e8c65[_0x28f395(0x14c)]({'header':_0x2f665d[_0x4e7e8e]['header'],'key':(_0x579b8a=_0x2f665d[_0x4e7e8e])===null||_0x579b8a===void 0x0?void 0x0:_0x579b8a[_0x28f395(0x114)][_0x28f395(0x10a)](/\./g,'_')});}_0x624e43[_0x28f395(0x135)]=_0x1e8c65;for(const _0x1ee797 of _0x494906){const _0x2085d7={};for(const _0x56fe4b in _0x2f665d){typeof((_0xe88931=_0x2f665d[_0x56fe4b])===null||_0xe88931===void 0x0?void 0x0:_0xe88931[_0x28f395(0x122)])==_0x28f395(0x143)?_0x2085d7[_0x2f665d[_0x56fe4b][_0x28f395(0x114)][_0x28f395(0x10a)](/\./g,'_')]=await _0x2f665d[_0x56fe4b][_0x28f395(0x122)](_0x1ee797):_0x2085d7[_0x2f665d[_0x56fe4b][_0x28f395(0x114)]['replace'](/\./g,'_')]=lodash['get'](_0x1ee797,_0x2f665d[_0x56fe4b]['key'],'');}_0x624e43[_0x28f395(0x113)](_0x2085d7);}let _0x460cb8='';const _0x4e8f97=_0x405869+'-'+lodash[_0x28f395(0x124)](0x186a0,0xf423f)+_0x28f395(0x148);if(_0x3a1026&&_0x3a1026[_0x28f395(0x14a)]('/'))_0x460cb8=''+_0x3a1026;else _0x3a1026&&!_0x3a1026[_0x28f395(0x14a)]('/')&&!_0x3a1026['startsWith']('\x5c')?_0x460cb8=this[_0x28f395(0x10f)][_0x28f395(0x12a)]()+'/'+_0x3a1026:_0x460cb8=this[_0x28f395(0x10f)]['getAppDir']()+_0x28f395(0x134)+dayjs()[_0x28f395(0x117)](_0x28f395(0x119));return(_0x460cb8['endsWith']('/')||_0x460cb8[_0x28f395(0x13d)]('\x5c'))&&(_0x460cb8=_0x460cb8['substring'](0x0,_0x460cb8[_0x28f395(0x13f)]-0x1)),_0x460cb8=_0x460cb8[_0x28f395(0x10a)](/(\\|\/)/g,'/')[_0x28f395(0x10a)](/\/{2,}/g,'/'),!fs[_0x28f395(0x139)](_0x460cb8)&&fs[_0x28f395(0x12c)](_0x460cb8,{'recursive':!![]}),await _0x15c173['xlsx'][_0x28f395(0x10b)]((_0x460cb8+'/'+_0x4e8f97)[_0x28f395(0x10a)](/(\\|\/)/g,'/')[_0x28f395(0x10a)](/\/{2,}/g,'/')),{'filename':_0x4e8f97,'filepath':(_0x460cb8[_0x28f395(0x10c)]((''+this[_0x28f395(0x10f)]['getAppDir']())[_0x28f395(0x13f)])+'/'+_0x4e8f97)[_0x28f395(0x10a)](/(\\|\/)/g,'/')[_0x28f395(0x10a)](/\/{2,}/g,'/')};}async[a13_0x3276b1(0x130)](_0x2f2ff3,_0x175f9d){return await koasend(_0x2f2ff3,''+_0x175f9d);}};__decorate([(0x0,core_1[a13_0x3276b1(0x12f)])(),__metadata(a13_0x3276b1(0x129),Object)],ExcelService['prototype'],a13_0x3276b1(0x10f),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x3276b1(0x13e)])(),(0x0,core_1['Scope'])(core_1[a13_0x3276b1(0x126)][a13_0x3276b1(0x107)])],ExcelService),exports[a13_0x3276b1(0x108)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x5e725d=a14_0x345e;function a14_0x1997(){var _0x293729=['AppsConfigTmp','341335NFxWzM','6710000vIktRi','ACTION_ROUTE_KEY','toString','(((.+)+)+)+$','12nGhWoi','98jPiRQP','8aloydT','1519455kJfzjk','793848qDcQxB','anncic-api:apps:config','search','9110LyGxTC','APPSCONFIG_KEY','31854qzSZzQ','defineProperty','constructor','anncic-api:action','ACTION_KEY','65267xSrlMD','2448nvujmB'];a14_0x1997=function(){return _0x293729;};return a14_0x1997();}function a14_0x345e(_0x2caf5,_0x58a144){var _0x5e2600=a14_0x1997();return a14_0x345e=function(_0x5a6501,_0x2109b0){_0x5a6501=_0x5a6501-0x126;var _0x19978d=_0x5e2600[_0x5a6501];return _0x19978d;},a14_0x345e(_0x2caf5,_0x58a144);}(function(_0x129c3a,_0x4eeb26){var _0x30c59c=a14_0x345e,_0x2e311b=_0x129c3a();while(!![]){try{var _0x86df55=parseInt(_0x30c59c(0x130))/0x1+parseInt(_0x30c59c(0x139))/0x2*(parseInt(_0x30c59c(0x12b))/0x3)+-parseInt(_0x30c59c(0x126))/0x4+parseInt(_0x30c59c(0x133))/0x5*(-parseInt(_0x30c59c(0x138))/0x6)+parseInt(_0x30c59c(0x13b))/0x7*(-parseInt(_0x30c59c(0x13a))/0x8)+parseInt(_0x30c59c(0x131))/0x9*(-parseInt(_0x30c59c(0x129))/0xa)+parseInt(_0x30c59c(0x134))/0xb;if(_0x86df55===_0x4eeb26)break;else _0x2e311b['push'](_0x2e311b['shift']());}catch(_0x277244){_0x2e311b['push'](_0x2e311b['shift']());}}}(a14_0x1997,0x609b0));var a14_0x2109b0=(function(){var _0x303d77=!![];return function(_0x53c89e,_0x536dcf){var _0x204b1e=_0x303d77?function(){if(_0x536dcf){var _0x255ba0=_0x536dcf['apply'](_0x53c89e,arguments);return _0x536dcf=null,_0x255ba0;}}:function(){};return _0x303d77=![],_0x204b1e;};}()),a14_0x5a6501=a14_0x2109b0(this,function(){var _0x4aa118=a14_0x345e;return a14_0x5a6501[_0x4aa118(0x136)]()[_0x4aa118(0x128)](_0x4aa118(0x137))[_0x4aa118(0x136)]()[_0x4aa118(0x12d)](a14_0x5a6501)['search'](_0x4aa118(0x137));});a14_0x5a6501();'use strict';Object[a14_0x5e725d(0x12c)](exports,'__esModule',{'value':!![]}),exports[a14_0x5e725d(0x132)]=exports[a14_0x5e725d(0x12a)]=exports[a14_0x5e725d(0x135)]=exports[a14_0x5e725d(0x12f)]=void 0x0,exports[a14_0x5e725d(0x12f)]=a14_0x5e725d(0x12e),exports[a14_0x5e725d(0x135)]='anncic-api:action:route',exports[a14_0x5e725d(0x12a)]=a14_0x5e725d(0x127);class AppsConfigTmp{}exports[a14_0x5e725d(0x132)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x390742=a15_0x17d8;(function(_0x168540,_0xf063ca){var _0x121716=a15_0x17d8,_0x37c398=_0x168540();while(!![]){try{var _0x3a1065=-parseInt(_0x121716(0x144))/0x1*(parseInt(_0x121716(0x139))/0x2)+parseInt(_0x121716(0x121))/0x3*(-parseInt(_0x121716(0x11d))/0x4)+parseInt(_0x121716(0x137))/0x5*(-parseInt(_0x121716(0x142))/0x6)+parseInt(_0x121716(0x12c))/0x7+-parseInt(_0x121716(0x11f))/0x8*(-parseInt(_0x121716(0x140))/0x9)+parseInt(_0x121716(0x136))/0xa+parseInt(_0x121716(0x12d))/0xb;if(_0x3a1065===_0xf063ca)break;else _0x37c398['push'](_0x37c398['shift']());}catch(_0x22da44){_0x37c398['push'](_0x37c398['shift']());}}}(a15_0x4732,0x59f4a));var a15_0x14375e=(function(){var _0x281f35=!![];return function(_0x37ce98,_0x489a8b){var _0x190761=_0x281f35?function(){if(_0x489a8b){var _0x35a3bd=_0x489a8b['apply'](_0x37ce98,arguments);return _0x489a8b=null,_0x35a3bd;}}:function(){};return _0x281f35=![],_0x190761;};}()),a15_0xbabb1f=a15_0x14375e(this,function(){var _0x373f74=a15_0x17d8;return a15_0xbabb1f[_0x373f74(0x143)]()[_0x373f74(0x133)](_0x373f74(0x12f))[_0x373f74(0x143)]()['constructor'](a15_0xbabb1f)[_0x373f74(0x133)]('(((.+)+)+)+$');});function a15_0x17d8(_0x4ac200,_0x323330){var _0x5239ee=a15_0x4732();return a15_0x17d8=function(_0xbabb1f,_0x14375e){_0xbabb1f=_0xbabb1f-0x11a;var _0x473259=_0x5239ee[_0xbabb1f];return _0x473259;},a15_0x17d8(_0x4ac200,_0x323330);}a15_0xbabb1f();'use strict';var __decorate=this&&this[a15_0x390742(0x12a)]||function(_0xf9d7e4,_0x3c14e5,_0x2bf869,_0x218082){var _0x36cf8b=a15_0x390742,_0x316f12=arguments[_0x36cf8b(0x123)],_0xad1778=_0x316f12<0x3?_0x3c14e5:_0x218082===null?_0x218082=Object[_0x36cf8b(0x13c)](_0x3c14e5,_0x2bf869):_0x218082,_0x476386;if(typeof Reflect===_0x36cf8b(0x135)&&typeof Reflect['decorate']===_0x36cf8b(0x11e))_0xad1778=Reflect[_0x36cf8b(0x124)](_0xf9d7e4,_0x3c14e5,_0x2bf869,_0x218082);else{for(var _0x222aff=_0xf9d7e4['length']-0x1;_0x222aff>=0x0;_0x222aff--)if(_0x476386=_0xf9d7e4[_0x222aff])_0xad1778=(_0x316f12<0x3?_0x476386(_0xad1778):_0x316f12>0x3?_0x476386(_0x3c14e5,_0x2bf869,_0xad1778):_0x476386(_0x3c14e5,_0x2bf869))||_0xad1778;}return _0x316f12>0x3&&_0xad1778&&Object['defineProperty'](_0x3c14e5,_0x2bf869,_0xad1778),_0xad1778;},__metadata=this&&this[a15_0x390742(0x13d)]||function(_0x5f0181,_0x129789){var _0x1aab4d=a15_0x390742;if(typeof Reflect===_0x1aab4d(0x135)&&typeof Reflect[_0x1aab4d(0x127)]===_0x1aab4d(0x11e))return Reflect[_0x1aab4d(0x127)](_0x5f0181,_0x129789);};Object[a15_0x390742(0x129)](exports,a15_0x390742(0x11a),{'value':!![]}),exports[a15_0x390742(0x134)]=void 0x0;const validator_1=require(a15_0x390742(0x141));class PageDTO{}__decorate([(0x0,validator_1[a15_0x390742(0x11c)])('分页',validator_1['RuleType'][a15_0x390742(0x122)]()[a15_0x390742(0x125)]()[a15_0x390742(0x126)](0x1),a15_0x390742(0x128)),__metadata('design:type',Number)],PageDTO[a15_0x390742(0x12b)],a15_0x390742(0x13a),void 0x0),__decorate([(0x0,validator_1['Rule'])('分页数量',validator_1[a15_0x390742(0x11b)][a15_0x390742(0x122)]()[a15_0x390742(0x125)]()[a15_0x390742(0x126)](0x1)),__metadata(a15_0x390742(0x13f),Number)],PageDTO[a15_0x390742(0x12b)],a15_0x390742(0x13e),void 0x0),__decorate([(0x0,validator_1[a15_0x390742(0x11c)])(a15_0x390742(0x131),validator_1[a15_0x390742(0x11b)][a15_0x390742(0x120)]()[a15_0x390742(0x132)]()),__metadata(a15_0x390742(0x13f),String)],PageDTO[a15_0x390742(0x12b)],a15_0x390742(0x12e),void 0x0),__decorate([(0x0,validator_1[a15_0x390742(0x11c)])('是否倒序',validator_1[a15_0x390742(0x11b)][a15_0x390742(0x122)]()[a15_0x390742(0x125)]()[a15_0x390742(0x13b)](0x0,0x1),a15_0x390742(0x130)),__metadata(a15_0x390742(0x13f),Number)],PageDTO[a15_0x390742(0x12b)],a15_0x390742(0x138),void 0x0),exports[a15_0x390742(0x134)]=PageDTO;function a15_0x4732(){var _0x15fd8a=['PageDTO','object','855980KaQtBC','110XsErWe','_isreverse','52xUDIlk','_page','valid','getOwnPropertyDescriptor','__metadata','_size','design:type','366822vbPJbq','@anncic-api/validator','160950dtaxfn','toString','21699hKnRfW','__esModule','RuleType','Rule','10924NKBlTt','function','8iqkKEI','string','249QmIQcG','number','length','decorate','integer','min','metadata','第一页为1,第二页为2','defineProperty','__decorate','prototype','5063471sbTWmj','9897206qdpuGm','_order','(((.+)+)+)+$','1:是;0:否','排序方式','trim','search'];a15_0x4732=function(){return _0x15fd8a;};return a15_0x4732();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x273d19=a16_0x3b73;(function(_0x4625f4,_0x3eedeb){var _0x296642=a16_0x3b73,_0x2b2a29=_0x4625f4();while(!![]){try{var _0x49e73d=-parseInt(_0x296642(0x1eb))/0x1*(-parseInt(_0x296642(0x1d7))/0x2)+parseInt(_0x296642(0x1dd))/0x3*(parseInt(_0x296642(0x1de))/0x4)+-parseInt(_0x296642(0x1e9))/0x5+-parseInt(_0x296642(0x1d9))/0x6*(parseInt(_0x296642(0x1e2))/0x7)+-parseInt(_0x296642(0x1da))/0x8*(parseInt(_0x296642(0x1db))/0x9)+-parseInt(_0x296642(0x1e7))/0xa+-parseInt(_0x296642(0x1e1))/0xb*(-parseInt(_0x296642(0x1e8))/0xc);if(_0x49e73d===_0x3eedeb)break;else _0x2b2a29['push'](_0x2b2a29['shift']());}catch(_0x51b1ce){_0x2b2a29['push'](_0x2b2a29['shift']());}}}(a16_0x28bb,0x7df4c));var a16_0x4106f2=(function(){var _0xa7f7a5=!![];return function(_0x1f2927,_0x1a8591){var _0x4a8531=_0xa7f7a5?function(){var _0xb412f6=a16_0x3b73;if(_0x1a8591){var _0x599328=_0x1a8591[_0xb412f6(0x1e0)](_0x1f2927,arguments);return _0x1a8591=null,_0x599328;}}:function(){};return _0xa7f7a5=![],_0x4a8531;};}()),a16_0x5b5f9c=a16_0x4106f2(this,function(){var _0x40b320=a16_0x3b73;return a16_0x5b5f9c[_0x40b320(0x1e6)]()['search'](_0x40b320(0x1e4))[_0x40b320(0x1e6)]()['constructor'](a16_0x5b5f9c)[_0x40b320(0x1dc)](_0x40b320(0x1e4));});a16_0x5b5f9c();'use strict';function a16_0x3b73(_0x261109,_0x3dc480){var _0x4fe2ce=a16_0x28bb();return a16_0x3b73=function(_0x5b5f9c,_0x4106f2){_0x5b5f9c=_0x5b5f9c-0x1d7;var _0x28bbe5=_0x4fe2ce[_0x5b5f9c];return _0x28bbe5;},a16_0x3b73(_0x261109,_0x3dc480);}Object[a16_0x273d19(0x1df)](exports,a16_0x273d19(0x1ea),{'value':!![]}),exports[a16_0x273d19(0x1e5)]=exports[a16_0x273d19(0x1d8)]=void 0x0,exports['INTERCEPT_KEY']=a16_0x273d19(0x1e3);class InterceptTargetTmp{}function a16_0x28bb(){var _0x53b337=['3kaSflC','552872ARbJof','defineProperty','apply','88NORIFy','8890dBvqxP','anncic-api:intercept','(((.+)+)+)+$','InterceptTargetTmp','toString','5491800JPOjgq','3110880zZmBmG','747225WPlLYU','__esModule','1bRVtHG','214630HloguC','INTERCEPT_KEY','2886xJSGok','5864PyxyHL','6066TdrrHE','search'];a16_0x28bb=function(){return _0x53b337;};return a16_0x28bb();}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.
|
|
21
|
-
"@anncic-api/core": "^1.
|
|
22
|
-
"@anncic-api/event": "^1.
|
|
23
|
-
"@anncic-api/typeorm": "^1.
|
|
24
|
-
"@anncic-api/validator": "^1.
|
|
25
|
-
"@midwayjs/cross-domain": "^3.
|
|
26
|
-
"@midwayjs/i18n": "^3.
|
|
27
|
-
"@midwayjs/koa": "^3.
|
|
28
|
-
"@midwayjs/static-file": "^3.
|
|
29
|
-
"@midwayjs/upload": "^3.
|
|
30
|
-
"anncic-apihelper": "^1.
|
|
20
|
+
"@anncic-api/cache": "^1.5.1",
|
|
21
|
+
"@anncic-api/core": "^1.5.1",
|
|
22
|
+
"@anncic-api/event": "^1.5.1",
|
|
23
|
+
"@anncic-api/typeorm": "^1.5.1",
|
|
24
|
+
"@anncic-api/validator": "^1.5.1",
|
|
25
|
+
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
|
+
"@midwayjs/i18n": "^3.10.6",
|
|
27
|
+
"@midwayjs/koa": "^3.10.6",
|
|
28
|
+
"@midwayjs/static-file": "^3.10.6",
|
|
29
|
+
"@midwayjs/upload": "^3.10.6",
|
|
30
|
+
"anncic-apihelper": "^1.5.1",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"javascript-obfuscator": "^4.0.0",
|
|
38
38
|
"typescript": "^4.8.4"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c981ed37ece29f6075e5c63bd0e46850f57dbc69"
|
|
41
41
|
}
|