anncic-api 2.1.0 → 2.1.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.js +1 -1
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.js +1 -1
- package/dist/types/action.js +1 -1
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x1a5bdf=a0_0x4494;(function(_0x322a96,_0x3b34c0){var _0x1f9c69=a0_0x4494,_0x34cf75=_0x322a96();while(!![]){try{var _0x4d96dc=parseInt(_0x1f9c69(0xfe))/0x1+-parseInt(_0x1f9c69(0xf2))/0x2+-parseInt(_0x1f9c69(0xf4))/0x3+parseInt(_0x1f9c69(0xf6))/0x4*(parseInt(_0x1f9c69(0xf5))/0x5)+parseInt(_0x1f9c69(0xf3))/0x6+-parseInt(_0x1f9c69(0x100))/0x7+parseInt(_0x1f9c69(0x106))/0x8;if(_0x4d96dc===_0x3b34c0)break;else _0x34cf75['push'](_0x34cf75['shift']());}catch(_0x539d42){_0x34cf75['push'](_0x34cf75['shift']());}}}(a0_0x35f8,0x7ec5a));var a0_0x2253f0=(function(){var _0x143562=!![];return function(_0x187901,_0x201481){var _0x4be54e=_0x143562?function(){var _0x3bfafc=a0_0x4494;if(_0x201481){var _0x23b9d2=_0x201481[_0x3bfafc(0xff)](_0x187901,arguments);return _0x201481=null,_0x23b9d2;}}:function(){};return _0x143562=![],_0x4be54e;};}()),a0_0xfa783a=a0_0x2253f0(this,function(){var _0x1bf7c8=a0_0x4494;return a0_0xfa783a[_0x1bf7c8(0xfa)]()[_0x1bf7c8(0xfd)]('(((.+)+)+)+$')[_0x1bf7c8(0xfa)]()['constructor'](a0_0xfa783a)['search'](_0x1bf7c8(0xf8));});function a0_0x4494(_0x488e10,_0xf364a){var _0x505a0c=a0_0x35f8();return a0_0x4494=function(_0xfa783a,_0x2253f0){_0xfa783a=_0xfa783a-0xf0;var _0x35f869=_0x505a0c[_0xfa783a];return _0x35f869;},a0_0x4494(_0x488e10,_0xf364a);}a0_0xfa783a();'use strict';Object[a0_0x1a5bdf(0xfc)](exports,'__esModule',{'value':!![]}),exports['default']=_0x3260f4=>{var _0x5e9d3d=a0_0x1a5bdf;return{'apitest':!![],'keys':_0x3260f4[_0x5e9d3d(0x103)],'anncicapi':{'password':_0x5e9d3d(0x101),'devices':{'DEFAULT':{'secret':_0x5e9d3d(0x102),'checkcode':_0x5e9d3d(0x102)}}},'bodyParser':{'enableTypes':[_0x5e9d3d(0x105),_0x5e9d3d(0xf0),_0x5e9d3d(0x104),_0x5e9d3d(0xf7)],'formLimit':'20mb','jsonLimit':_0x5e9d3d(0xf1),'textLimit':_0x5e9d3d(0xf1),'xmlLimit':_0x5e9d3d(0xf1)},'upload':{'tmpdir':_0x3260f4[_0x5e9d3d(0xf9)]+_0x5e9d3d(0xfb),'cleanTimeout':0x5265c00}};};function a0_0x35f8(){var _0x483f9f=['text','json','8864928nyEGND','form','20mb','1025462RjndwZ','375276gjdPDU','1808937RKntbL','52610iyoxxW','116mLUHrG','xml','(((.+)+)+)+$','appDir','toString','/runtime/.upload','defineProperty','search','999295peLkqc','apply','5880889LSzJVc','zhiulanuiy7892387985hnoi','dhauo1234420123gg3234901','name'];a0_0x35f8=function(){return _0x483f9f;};return a0_0x35f8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x2f2252=a1_0x28eb;function a1_0xe7fb(){var _0x72f371=['21njpllE','688220wHpwSp','toString','(((.+)+)+)+$','43118fRNLOt','3546yaLuxA','constructor','search','181092FergZN','29199afNuai','54crQXbx','517GRazYb','1790845hVBxdP','1179680dmOqNu','default','apply','defineProperty','715mfclXb','44aCZelC'];a1_0xe7fb=function(){return _0x72f371;};return a1_0xe7fb();}(function(_0x2930ff,_0x1411b9){var _0x12c6c1=a1_0x28eb,_0xdd058=_0x2930ff();while(!![]){try{var _0x147766=parseInt(_0x12c6c1(0x1cf))/0x1*(parseInt(_0x12c6c1(0x1d3))/0x2)+parseInt(_0x12c6c1(0x1d8))/0x3*(-parseInt(_0x12c6c1(0x1ce))/0x4)+-parseInt(_0x12c6c1(0x1cd))/0x5*(-parseInt(_0x12c6c1(0x1d4))/0x6)+parseInt(_0x12c6c1(0x1db))/0x7+-parseInt(_0x12c6c1(0x1dc))/0x8+parseInt(_0x12c6c1(0x1d9))/0x9*(parseInt(_0x12c6c1(0x1d0))/0xa)+-parseInt(_0x12c6c1(0x1da))/0xb*(parseInt(_0x12c6c1(0x1d7))/0xc);if(_0x147766===_0x1411b9)break;else _0xdd058['push'](_0xdd058['shift']());}catch(_0x5cd9e1){_0xdd058['push'](_0xdd058['shift']());}}}(a1_0xe7fb,0x3b22b));var a1_0x51dbce=(function(){var _0x16ecd4=!![];return function(_0x35e3b5,_0x5a7285){var _0x288ddf=_0x16ecd4?function(){var _0x22ad30=a1_0x28eb;if(_0x5a7285){var _0x56c938=_0x5a7285[_0x22ad30(0x1cb)](_0x35e3b5,arguments);return _0x5a7285=null,_0x56c938;}}:function(){};return _0x16ecd4=![],_0x288ddf;};}()),a1_0x5be6f8=a1_0x51dbce(this,function(){var _0x32feb9=a1_0x28eb;return a1_0x5be6f8['toString']()[_0x32feb9(0x1d6)](_0x32feb9(0x1d2))[_0x32feb9(0x1d1)]()[_0x32feb9(0x1d5)](a1_0x5be6f8)[_0x32feb9(0x1d6)](_0x32feb9(0x1d2));});a1_0x5be6f8();'use strict';function a1_0x28eb(_0x884fa3,_0x1f524f){var _0x30a11f=a1_0xe7fb();return a1_0x28eb=function(_0x5be6f8,_0x51dbce){_0x5be6f8=_0x5be6f8-0x1cb;var _0xe7fb15=_0x30a11f[_0x5be6f8];return _0xe7fb15;},a1_0x28eb(_0x884fa3,_0x1f524f);}Object[a1_0x2f2252(0x1cc)](exports,'__esModule',{'value':!![]}),exports[a1_0x2f2252(0x1dd)]={'apitest':![],'anncicapi':{}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x2d257c=a2_0x5920;(function(_0x341191,_0x4278b0){const _0x131248=a2_0x5920,_0x4ad6ac=_0x341191();while(!![]){try{const _0x1c31a7=parseInt(_0x131248(0xc1))/0x1*(-parseInt(_0x131248(0xc0))/0x2)+-parseInt(_0x131248(0x72))/0x3*(parseInt(_0x131248(0x7f))/0x4)+-parseInt(_0x131248(0xd3))/0x5*(parseInt(_0x131248(0x6a))/0x6)+parseInt(_0x131248(0xd7))/0x7*(-parseInt(_0x131248(0x7d))/0x8)+parseInt(_0x131248(0x6c))/0x9*(parseInt(_0x131248(0xe7))/0xa)+parseInt(_0x131248(0xdf))/0xb*(-parseInt(_0x131248(0xcd))/0xc)+-parseInt(_0x131248(0x94))/0xd*(-parseInt(_0x131248(0x89))/0xe);if(_0x1c31a7===_0x4278b0)break;else _0x4ad6ac['push'](_0x4ad6ac['shift']());}catch(_0x1d5a4a){_0x4ad6ac['push'](_0x4ad6ac['shift']());}}}(a2_0x1ce2,0x82c84));const a2_0x58851d=(function(){let _0x4b13e4=!![];return function(_0x2bacb5,_0xf9104e){const _0x42cda2=_0x4b13e4?function(){const _0x41ad1d=a2_0x5920;if(_0xf9104e){const _0x109209=_0xf9104e[_0x41ad1d(0xe6)](_0x2bacb5,arguments);return _0xf9104e=null,_0x109209;}}:function(){};return _0x4b13e4=![],_0x42cda2;};}()),a2_0xbccb5a=a2_0x58851d(this,function(){const _0x3a48e4=a2_0x5920;return a2_0xbccb5a[_0x3a48e4(0x83)]()[_0x3a48e4(0xc8)](_0x3a48e4(0x67))['toString']()[_0x3a48e4(0x9d)](a2_0xbccb5a)[_0x3a48e4(0xc8)]('(((.+)+)+)+$');});a2_0xbccb5a();'use strict';var __decorate=this&&this[a2_0x2d257c(0xc7)]||function(_0x30b0c8,_0x9d40b3,_0x232223,_0x22ca3c){const _0x34cced=a2_0x2d257c;var _0x225e4d=arguments[_0x34cced(0x98)],_0x49a301=_0x225e4d<0x3?_0x9d40b3:_0x22ca3c===null?_0x22ca3c=Object['getOwnPropertyDescriptor'](_0x9d40b3,_0x232223):_0x22ca3c,_0x16fbe5;if(typeof Reflect==='object'&&typeof Reflect[_0x34cced(0x9b)]===_0x34cced(0x73))_0x49a301=Reflect['decorate'](_0x30b0c8,_0x9d40b3,_0x232223,_0x22ca3c);else{for(var _0x1d5268=_0x30b0c8[_0x34cced(0x98)]-0x1;_0x1d5268>=0x0;_0x1d5268--)if(_0x16fbe5=_0x30b0c8[_0x1d5268])_0x49a301=(_0x225e4d<0x3?_0x16fbe5(_0x49a301):_0x225e4d>0x3?_0x16fbe5(_0x9d40b3,_0x232223,_0x49a301):_0x16fbe5(_0x9d40b3,_0x232223))||_0x49a301;}return _0x225e4d>0x3&&_0x49a301&&Object['defineProperty'](_0x9d40b3,_0x232223,_0x49a301),_0x49a301;},__metadata=this&&this[a2_0x2d257c(0xa0)]||function(_0x2f455d,_0x7528c6){const _0x5d1ef5=a2_0x2d257c;if(typeof Reflect===_0x5d1ef5(0xca)&&typeof Reflect[_0x5d1ef5(0xbb)]==='function')return Reflect['metadata'](_0x2f455d,_0x7528c6);};Object[a2_0x2d257c(0xbf)](exports,a2_0x2d257c(0xcf),{'value':!![]}),exports[a2_0x2d257c(0x90)]=void 0x0;function a2_0x5920(_0x317654,_0xe2a47d){const _0x7fb8f5=a2_0x1ce2();return a2_0x5920=function(_0xbccb5a,_0x58851d){_0xbccb5a=_0xbccb5a-0x64;let _0x1ce2fd=_0x7fb8f5[_0xbccb5a];return _0x1ce2fd;},a2_0x5920(_0x317654,_0xe2a47d);}const core_1=require('@midwayjs/core'),core_2=require(a2_0x2d257c(0x6b)),ApiError_1=require(a2_0x2d257c(0xdd)),ApiService_1=require(a2_0x2d257c(0xd4)),action_1=require('./types/action'),intercept_1=require('./types/intercept'),fs=require('fs'),koasend=require(a2_0x2d257c(0xbe)),koa=require('@midwayjs/koa'),i18n=require('@midwayjs/i18n'),upload=require(a2_0x2d257c(0x68)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2d257c(0x80)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x2d257c(0xb3)),anncic=require(a2_0x2d257c(0x93)),anncicCache=require(a2_0x2d257c(0xe8)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x2d257c(0x85)),anncicValidator=require(a2_0x2d257c(0xe4)),anncicHelper=require(a2_0x2d257c(0xc4));function a2_0x1ce2(){const _0x326aac=['文件不存在','8vxTfMZ','midwayLogger','90532gKhotJ','@midwayjs/cross-domain','koa','InterceptTargetTmp','toString','match','@anncic-api/typeorm','log','hanlderApplications','Inject','1204294qpfuMB','dir','addObject','existsSync','defaultsDeep','Configuration','intercept','CustomConfiguration','mkdirSync','checkConfigKeys','@anncic-api/core','533YLPcvY','get','assign','request','length','ACTION_ROUTE_KEY','dirs','decorate','toLowerCase','constructor','default','string','__metadata','requestContext','application','Anncic-api\x20static-file\x20:\x20mkdir\x20','app','body','ApiError','isClass','decorator','bodyXml','filterConfig','environment','MidwayEnvironmentService','-log','_matchedRoute','staticFile','getConfiguration','ApiService','App','./config/config.production','method','args','MidwayDecoratorService','getApplications','target','defineProperties','MidwayApplicationManager','metadata','key','clients','koa-send','defineProperty','14AvTvXK','146658KPTcuo','getAppDir','handlerActionRoute','anncic-apihelper','getBaseDir','registerMethodHandler','__decorate','search','isFunction','object','.log','config','502236ZalRoY','REQUEST_OBJ_CTX_KEY','__esModule','/apps','attachment','checksign','7485nHfSYd','./service/ApiService','anncicapi','getClassMetadata','7136661nUITYb','keys','/runtime','statSync','isString','isDirectory','./exception/ApiError','upload','99pDkctU','design:type','device','handler','DEFAULT','@anncic-api/validator','prototype','apply','10fUOBKO','@anncic-api/cache','input','isNull','devices','(((.+)+)+)+$','@midwayjs/upload','loggerConfig','1956RuHnkn','@midwayjs/core','8035830rEHsks','undefined','query','readdirSync','proceed','/runtime/apps-','129wLBpHa','function','headers','Types','isDevelopmentEnvironment','forEach','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','tmpdir','context','apimit'];a2_0x1ce2=function(){return _0x326aac;};return a2_0x1ce2();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x154247=a2_0x2d257c;await this['filterConfig'](),await this[_0x154247(0x69)](),await this[_0x154247(0x92)](),await this[_0x154247(0xc3)](),await this[_0x154247(0x87)]();}async[a2_0x2d257c(0x92)](){}async['handlerActionRoute'](){const _0x249a9b=a2_0x2d257c,_0x22c51a=(0x0,core_1[_0x249a9b(0xd6)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x249a9b(0x82)])||{};this[_0x249a9b(0xa8)][_0x249a9b(0xc6)](action_1[_0x249a9b(0x99)],_0x53cf27=>{const _0x37152c=_0x249a9b,_0x4ed998=_0x53cf27[_0x37152c(0xbb)];return{'before':async _0x535803=>{const _0x153444=_0x37152c;var _0x1480ba,_0x5c73aa;const _0x1a9031=(_0x1480ba=_0x535803===null||_0x535803===void 0x0?void 0x0:_0x535803[_0x153444(0xb8)])===null||_0x1480ba===void 0x0?void 0x0:_0x1480ba[core_2[_0x153444(0xce)]];if(_0x1a9031&&(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998['apimit'])){if(!this[_0x153444(0xb1)][_0x153444(0xd2)]((_0x5c73aa=_0x1a9031===null||_0x1a9031===void 0x0?void 0x0:_0x1a9031[_0x153444(0x97)])===null||_0x5c73aa===void 0x0?void 0x0:_0x5c73aa[_0x153444(0x74)]))throw new AnnError(ApiError_1[_0x153444(0xa6)]['HEADERS_SIGNATURE']);}},'around':async _0x3e46b3=>{const _0x502968=_0x37152c;var _0x25ac84,_0x2aed27,_0x1ea136;const _0x3ccefc=(_0x25ac84=_0x3e46b3===null||_0x3e46b3===void 0x0?void 0x0:_0x3e46b3['target'])===null||_0x25ac84===void 0x0?void 0x0:_0x25ac84[core_2[_0x502968(0xce)]];if(_0x3ccefc&&(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x7b)])&&((_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x8f)])||typeof(_0x4ed998===null||_0x4ed998===void 0x0?void 0x0:_0x4ed998[_0x502968(0x8f)])==_0x502968(0x6d))){if(((_0x2aed27=_0x3ccefc[_0x502968(0x74)])===null||_0x2aed27===void 0x0?void 0x0:_0x2aed27['device'])&&((_0x1ea136=_0x22c51a===null||_0x22c51a===void 0x0?void 0x0:_0x22c51a[_0x3ccefc[_0x502968(0x74)][_0x502968(0xe1)]])===null||_0x1ea136===void 0x0?void 0x0:_0x1ea136[_0x502968(0x98)])>0x0)for(const _0x51c17d of _0x22c51a[_0x3ccefc['headers'][_0x502968(0xe1)]]||[]){if(core_1[_0x502968(0x75)][_0x502968(0xa7)](_0x51c17d)){const _0x1844ff=await _0x3ccefc[_0x502968(0xa1)]['getAsync'](_0x51c17d);typeof(_0x1844ff===null||_0x1844ff===void 0x0?void 0x0:_0x1844ff[_0x502968(0x84)])=='function'?await _0x1844ff[_0x502968(0x84)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)]):undefined,_0x4ed998)&&await _0x1844ff[_0x502968(0xe2)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])=='string'&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['_matchedRoute']):undefined,_0x4ed998):await _0x1844ff[_0x502968(0xe2)](_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['method'])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc['method'][_0x502968(0x9c)]()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)]):undefined,_0x4ed998);}else core_1[_0x502968(0x75)][_0x502968(0xc9)](_0x51c17d)&&await _0x51c17d(_0x3ccefc,typeof(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xb4)])==_0x502968(0x9f)&&(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc[_0x502968(0xae)])?_0x3ccefc[_0x502968(0xb4)]['toLowerCase']()+'@'+(_0x3ccefc===null||_0x3ccefc===void 0x0?void 0x0:_0x3ccefc['_matchedRoute']):undefined,_0x4ed998);}}return await _0x3e46b3[_0x502968(0x70)](..._0x3e46b3[_0x502968(0xb5)]);},'afterThrow':(_0x1edb6a,_0x14c3cd)=>{throw _0x14c3cd;}};});}async['hanlderApplications'](){const _0x44c105=a2_0x2d257c;this[_0x44c105(0xa2)][_0x44c105(0xb7)]([_0x44c105(0x81)])[_0x44c105(0x77)](_0x437196=>{const _0x1685d3=_0x44c105;(_0x437196===null||_0x437196===void 0x0?void 0x0:_0x437196['context'])&&Object[_0x1685d3(0xb9)](_0x437196[_0x1685d3(0x7a)],{'ok':{'value':function(_0x107a2e,_0x6340a4,_0x3ef723=0x0){return{'code':_0x3ef723,'data':_0x107a2e,'extra':_0x6340a4};}},'input':{'value':function(_0x1a7809,_0x5eb16f){const _0x2af072=_0x1685d3;var _0x24066b;const _0x3b5caa=lodash[_0x2af072(0x8d)]({},this[_0x2af072(0x97)][_0x2af072(0xa5)]||this[_0x2af072(0x97)][((_0x24066b=config===null||config===void 0x0?void 0x0:config[_0x2af072(0xa9)])===null||_0x24066b===void 0x0?void 0x0:_0x24066b[_0x2af072(0xbc)])||_0x2af072(0xa5)]||{},this[_0x2af072(0x97)][_0x2af072(0x6e)]||{});return _0x1a7809?lodash[_0x2af072(0x95)](_0x3b5caa,_0x1a7809,_0x5eb16f):_0x3b5caa;}},'when':{'value':async function(_0x31b302,_0xf760be){const _0xed91b8=_0x1685d3,_0xbba50d=this[_0xed91b8(0x64)](_0x31b302,null);if(!lodash[_0xed91b8(0x65)](_0xbba50d))return await _0xf760be(_0xbba50d);}},'only':{'value':function(_0x50d5c5){const _0xddc71a=_0x1685d3,_0x1fddb2={};for(let _0x3016f1=0x0;_0x3016f1<_0x50d5c5[_0xddc71a(0x98)];_0x3016f1++){lodash['isArray'](_0x50d5c5[_0x3016f1])&&_0x50d5c5[_0x3016f1]['length']>0x0&&lodash[_0xddc71a(0xdb)](_0x50d5c5[_0x3016f1][0x0])&&(_0x1fddb2[_0x50d5c5[_0x3016f1][0x0]]=this[_0xddc71a(0x64)](_0x50d5c5[_0x3016f1][0x0],_0x50d5c5[_0x3016f1][_0xddc71a(0x98)]>0x1?_0x50d5c5[_0x3016f1][0x1]:null));}return _0x1fddb2;}},'koasend':{'value':function(_0x5919c2,_0x32bf36){const _0x5c54ed=_0x1685d3;if(!fs[_0x5c54ed(0x8c)](this[_0x5c54ed(0xa4)]['getAppDir']()+'/'+_0x5919c2))return _0x5c54ed(0x7c);return this[_0x5c54ed(0xd1)](_0x32bf36||_0x5919c2),koasend(this,_0x5919c2);}}});});}async['loggerConfig'](){const _0x4214aa=a2_0x2d257c;var _0x36a1bd,_0x58a788;if(fs[_0x4214aa(0x8c)](this['app'][_0x4214aa(0xc5)]()+'/apps')&&fs[_0x4214aa(0xda)](this[_0x4214aa(0xa4)][_0x4214aa(0xc5)]()+_0x4214aa(0xd0))['isDirectory']()){const _0x1d807f=this[_0x4214aa(0xcc)][_0x4214aa(0xb0)](),_0x1bef06=((_0x36a1bd=_0x1d807f===null||_0x1d807f===void 0x0?void 0x0:_0x1d807f[_0x4214aa(0x7e)])===null||_0x36a1bd===void 0x0?void 0x0:_0x36a1bd[_0x4214aa(0xbd)])||{};for(const _0x5855c9 of fs[_0x4214aa(0x6f)](this['app']['getBaseDir']()+_0x4214aa(0xd0))){if(!fs[_0x4214aa(0xda)](this[_0x4214aa(0xa4)][_0x4214aa(0xc5)]()+'/apps/'+_0x5855c9)[_0x4214aa(0xdc)]())continue;if(_0x1bef06===null||_0x1bef06===void 0x0?void 0x0:_0x1bef06[_0x5855c9])continue;_0x1bef06[_0x5855c9]=Object[_0x4214aa(0x96)]({},((_0x58a788=_0x1d807f===null||_0x1d807f===void 0x0?void 0x0:_0x1d807f[_0x4214aa(0x7e)])===null||_0x58a788===void 0x0?void 0x0:_0x58a788[_0x4214aa(0x9e)])||{'maxSize':'1m','dir':this[_0x4214aa(0xa4)][_0x4214aa(0xc2)]()+_0x4214aa(0xd9)},{'enableJSON':!![],'enableConsole':this[_0x4214aa(0xab)][_0x4214aa(0x76)](),'fileLogName':_0x5855c9+_0x4214aa(0xcb),'dir':this[_0x4214aa(0xa4)]['getAppDir']()+_0x4214aa(0x71)+_0x5855c9+_0x4214aa(0xad)});}Object[_0x4214aa(0xd8)](_0x1bef06)['length']>0x0&&(!_0x1d807f[_0x4214aa(0x7e)]&&(_0x1d807f[_0x4214aa(0x7e)]={'default':{'maxSize':'1m','dir':this[_0x4214aa(0xa4)][_0x4214aa(0xc2)]()+'/runtime'}}),_0x1d807f[_0x4214aa(0x7e)]['clients']=_0x1bef06),this[_0x4214aa(0xcc)]['addObject'](_0x1d807f);}}async[a2_0x2d257c(0xaa)](){const _0x358deb=a2_0x2d257c;var _0x13f732,_0x24d062,_0x4915e4,_0x1ff6d5,_0x391a2e,_0x4c8f1d;const _0x511617=this[_0x358deb(0xcc)][_0x358deb(0xb0)]();((_0x24d062=(_0x13f732=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xd5)])===null||_0x13f732===void 0x0?void 0x0:_0x13f732[_0x358deb(0x66)])===null||_0x24d062===void 0x0?void 0x0:_0x24d062[_0x358deb(0xe3)])&&Object[_0x358deb(0xd8)](_0x511617[_0x358deb(0xd5)][_0x358deb(0x66)])[_0x358deb(0x98)]>0x1&&delete _0x511617['anncicapi'][_0x358deb(0x66)]['DEFAULT'];if((_0x4915e4=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xaf)])===null||_0x4915e4===void 0x0?void 0x0:_0x4915e4[_0x358deb(0x9a)])for(const _0x3d8325 in _0x511617['staticFile'][_0x358deb(0x9a)]){((_0x1ff6d5=_0x511617['staticFile'][_0x358deb(0x9a)][_0x3d8325])===null||_0x1ff6d5===void 0x0?void 0x0:_0x1ff6d5['dir'])&&typeof((_0x391a2e=_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325])===null||_0x391a2e===void 0x0?void 0x0:_0x391a2e[_0x358deb(0x8a)])==_0x358deb(0x9f)&&!fs[_0x358deb(0x8c)](_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)])&&(fs['mkdirSync'](_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)],{'recursive':!![]}),console[_0x358deb(0x86)](_0x358deb(0xa3)+_0x511617[_0x358deb(0xaf)][_0x358deb(0x9a)][_0x3d8325][_0x358deb(0x8a)]));}((_0x4c8f1d=_0x511617===null||_0x511617===void 0x0?void 0x0:_0x511617[_0x358deb(0xde)])===null||_0x4c8f1d===void 0x0?void 0x0:_0x4c8f1d[_0x358deb(0x79)])&&!fs[_0x358deb(0x8c)](_0x511617['upload'][_0x358deb(0x79)])&&(fs[_0x358deb(0x91)](_0x511617['upload'][_0x358deb(0x79)],{'recursive':!![]}),console[_0x358deb(0x86)](_0x358deb(0x78)+_0x511617['upload'][_0x358deb(0x79)])),this[_0x358deb(0xcc)][_0x358deb(0x8b)](_0x511617);}};__decorate([(0x0,core_1[a2_0x2d257c(0xb2)])(),__metadata(a2_0x2d257c(0xe0),Object)],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xa4),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xcc),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xb6)])],CustomConfiguration['prototype'],a2_0x2d257c(0xa8),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xba)])],CustomConfiguration['prototype'],a2_0x2d257c(0xa2),void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),core_2[a2_0x2d257c(0xac)])],CustomConfiguration[a2_0x2d257c(0xe5)],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x2d257c(0x88)])(),__metadata(a2_0x2d257c(0xe0),ApiService_1[a2_0x2d257c(0xb1)])],CustomConfiguration[a2_0x2d257c(0xe5)],a2_0x2d257c(0xb1),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2d257c(0x8e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2d257c(0x90)]=CustomConfiguration;
|
|
1
|
+
const a2_0x378731=a2_0x4fa1;function a2_0x4fa1(_0x1a9f7f,_0x70a88){const _0x16a7bb=a2_0x540e();return a2_0x4fa1=function(_0x561a50,_0x1a7f84){_0x561a50=_0x561a50-0x121;let _0x540e30=_0x16a7bb[_0x561a50];return _0x540e30;},a2_0x4fa1(_0x1a9f7f,_0x70a88);}(function(_0x2e61b6,_0x399da5){const _0x421ec0=a2_0x4fa1,_0x271a3a=_0x2e61b6();while(!![]){try{const _0x254dba=-parseInt(_0x421ec0(0x136))/0x1+-parseInt(_0x421ec0(0x15b))/0x2*(-parseInt(_0x421ec0(0x186))/0x3)+parseInt(_0x421ec0(0x132))/0x4+parseInt(_0x421ec0(0x176))/0x5+parseInt(_0x421ec0(0x188))/0x6*(-parseInt(_0x421ec0(0x14d))/0x7)+parseInt(_0x421ec0(0x168))/0x8+-parseInt(_0x421ec0(0x18e))/0x9*(parseInt(_0x421ec0(0x157))/0xa);if(_0x254dba===_0x399da5)break;else _0x271a3a['push'](_0x271a3a['shift']());}catch(_0x3b0828){_0x271a3a['push'](_0x271a3a['shift']());}}}(a2_0x540e,0x7ae0b));const a2_0x1a7f84=(function(){let _0x2d78d9=!![];return function(_0x2a69c4,_0x2aa058){const _0x3ce7b6=_0x2d78d9?function(){const _0x3e46d9=a2_0x4fa1;if(_0x2aa058){const _0x8a4974=_0x2aa058[_0x3e46d9(0x139)](_0x2a69c4,arguments);return _0x2aa058=null,_0x8a4974;}}:function(){};return _0x2d78d9=![],_0x3ce7b6;};}()),a2_0x561a50=a2_0x1a7f84(this,function(){const _0x3d82ff=a2_0x4fa1;return a2_0x561a50[_0x3d82ff(0x140)]()[_0x3d82ff(0x154)]('(((.+)+)+)+$')[_0x3d82ff(0x140)]()['constructor'](a2_0x561a50)[_0x3d82ff(0x154)]('(((.+)+)+)+$');});a2_0x561a50();'use strict';function a2_0x540e(){const _0x50e3d2=['/runtime/apps-','InterceptTargetTmp','handler','context','45CZMIJd','addObject','headers','string','getOwnPropertyDescriptor','MidwayApplicationManager','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','request','design:type','dirs','@midwayjs/cross-domain','onReady','__esModule','./types/action','REQUEST_OBJ_CTX_KEY','/apps','CustomConfiguration','anncicapi','MidwayConfigService','handlerActionRoute','registerMethodHandler','config','proceed','metadata','MidwayDecoratorService','function','device','filterConfig','isDirectory','getConfiguration','tmpdir','-log','environment','dir','749396yNHZZK','log','App','Inject','953837PGPcTS','getAppDir','getBaseDir','apply','Types','hanlderApplications','keys','ACTION_ROUTE_KEY','INTERCEPT_KEY','anncic-apihelper','toString','./types/intercept','devices','app','prototype','isNull','anncic-api','@midwayjs/upload','@midwayjs/i18n','readdirSync','getAsync','checkConfigKeys','@anncic-api/event','9037JGkLdk','Configuration','@midwayjs/static-file','HEADERS_SIGNATURE','apimit','intercept','/runtime','search','defineProperty','existsSync','1822610KERRwS','key','isArray','decorator','14144hYoeEL','forEach','method','mkdirSync','application','_matchedRoute','input','./exception/ApiError','ApiService','getClassMetadata','undefined','@anncic-api/cache','loggerConfig','3374536NCKGKT','.log','ApiError','文件不存在','./config/config.default','decorate','match','upload','isDevelopmentEnvironment','__decorate','query','MidwayEnvironmentService','@midwayjs/koa','DEFAULT','4503000BDVJfQ','midwayLogger','get','@midwayjs/core','body','bodyXml','getApplications','object','koa-send','staticFile','requestContext','length','isFunction','toLowerCase','@anncic-api/core','attachment','390RsHIlI','default','282tUIDDl','statSync'];a2_0x540e=function(){return _0x50e3d2;};return a2_0x540e();}var __decorate=this&&this[a2_0x378731(0x171)]||function(_0x54f9c3,_0x415a4a,_0x31428a,_0x1f3a67){const _0x267a2c=a2_0x378731;var _0x1937c6=arguments[_0x267a2c(0x181)],_0x5bf722=_0x1937c6<0x3?_0x415a4a:_0x1f3a67===null?_0x1f3a67=Object[_0x267a2c(0x192)](_0x415a4a,_0x31428a):_0x1f3a67,_0x3bcb95;if(typeof Reflect==='object'&&typeof Reflect[_0x267a2c(0x16d)]===_0x267a2c(0x129))_0x5bf722=Reflect[_0x267a2c(0x16d)](_0x54f9c3,_0x415a4a,_0x31428a,_0x1f3a67);else{for(var _0x19815b=_0x54f9c3[_0x267a2c(0x181)]-0x1;_0x19815b>=0x0;_0x19815b--)if(_0x3bcb95=_0x54f9c3[_0x19815b])_0x5bf722=(_0x1937c6<0x3?_0x3bcb95(_0x5bf722):_0x1937c6>0x3?_0x3bcb95(_0x415a4a,_0x31428a,_0x5bf722):_0x3bcb95(_0x415a4a,_0x31428a))||_0x5bf722;}return _0x1937c6>0x3&&_0x5bf722&&Object['defineProperty'](_0x415a4a,_0x31428a,_0x5bf722),_0x5bf722;},__metadata=this&&this['__metadata']||function(_0x5b8ffc,_0x4ba58d){const _0x409155=a2_0x378731;if(typeof Reflect===_0x409155(0x17d)&&typeof Reflect[_0x409155(0x127)]==='function')return Reflect['metadata'](_0x5b8ffc,_0x4ba58d);};Object[a2_0x378731(0x155)](exports,a2_0x378731(0x19a),{'value':!![]}),exports[a2_0x378731(0x19e)]=void 0x0;const core_1=require(a2_0x378731(0x179)),core_2=require(a2_0x378731(0x179)),ApiError_1=require(a2_0x378731(0x162)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x378731(0x19b)),intercept_1=require(a2_0x378731(0x141)),fs=require('fs'),koasend=require(a2_0x378731(0x17e)),koa=require(a2_0x378731(0x174)),i18n=require(a2_0x378731(0x148)),upload=require(a2_0x378731(0x147)),staticFile=require(a2_0x378731(0x14f)),crossDomain=require(a2_0x378731(0x198)),ConfigDefault=require(a2_0x378731(0x16c)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x378731(0x184)),anncicCache=require(a2_0x378731(0x166)),anncicEvent=require(a2_0x378731(0x14c)),anncicTypeorm=require('@anncic-api/typeorm'),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x378731(0x13f));let CustomConfiguration=class CustomConfiguration{async[a2_0x378731(0x199)](){const _0x7cb9ce=a2_0x378731;await this[_0x7cb9ce(0x12b)](),await this[_0x7cb9ce(0x167)](),await this['checkConfigKeys'](),await this['handlerActionRoute'](),await this[_0x7cb9ce(0x13b)]();}async[a2_0x378731(0x14b)](){}async[a2_0x378731(0x123)](){const _0x169b0a=a2_0x378731,_0x593fa0=(0x0,core_1[_0x169b0a(0x164)])(intercept_1[_0x169b0a(0x13e)],intercept_1[_0x169b0a(0x18b)])||{};this[_0x169b0a(0x15a)][_0x169b0a(0x124)](action_1[_0x169b0a(0x13d)],_0x41d7a3=>{const _0x1d515d=_0x41d7a3['metadata'];return{'before':async _0x1aa5fb=>{const _0x1e3e70=a2_0x4fa1;var _0x42fe8a,_0x43ff15;const _0x4331d0=(_0x42fe8a=_0x1aa5fb===null||_0x1aa5fb===void 0x0?void 0x0:_0x1aa5fb['target'])===null||_0x42fe8a===void 0x0?void 0x0:_0x42fe8a[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x4331d0&&(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x1e3e70(0x151)])){if(!this[_0x1e3e70(0x163)]['checksign']((_0x43ff15=_0x4331d0===null||_0x4331d0===void 0x0?void 0x0:_0x4331d0[_0x1e3e70(0x195)])===null||_0x43ff15===void 0x0?void 0x0:_0x43ff15[_0x1e3e70(0x190)]))throw new AnnError(ApiError_1[_0x1e3e70(0x16a)][_0x1e3e70(0x150)]);}},'around':async _0x24b9ac=>{const _0x3900c6=a2_0x4fa1;var _0xd6b8f6,_0xbbb439,_0x375132;const _0x5f0a84=(_0xd6b8f6=_0x24b9ac===null||_0x24b9ac===void 0x0?void 0x0:_0x24b9ac['target'])===null||_0xd6b8f6===void 0x0?void 0x0:_0xd6b8f6[core_2[_0x3900c6(0x19c)]];if(_0x5f0a84&&(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x3900c6(0x151)])&&((_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d['intercept'])||typeof(_0x1d515d===null||_0x1d515d===void 0x0?void 0x0:_0x1d515d[_0x3900c6(0x152)])==_0x3900c6(0x165))){if(((_0xbbb439=_0x5f0a84['headers'])===null||_0xbbb439===void 0x0?void 0x0:_0xbbb439[_0x3900c6(0x12a)])&&((_0x375132=_0x593fa0===null||_0x593fa0===void 0x0?void 0x0:_0x593fa0[_0x5f0a84[_0x3900c6(0x190)][_0x3900c6(0x12a)]])===null||_0x375132===void 0x0?void 0x0:_0x375132[_0x3900c6(0x181)])>0x0)for(const _0x39c716 of _0x593fa0[_0x5f0a84[_0x3900c6(0x190)][_0x3900c6(0x12a)]]||[]){if(core_1['Types']['isClass'](_0x39c716)){const _0xc17b18=await _0x5f0a84[_0x3900c6(0x180)][_0x3900c6(0x14a)](_0x39c716);typeof(_0xc17b18===null||_0xc17b18===void 0x0?void 0x0:_0xc17b18[_0x3900c6(0x16e)])==_0x3900c6(0x129)?await _0xc17b18[_0x3900c6(0x16e)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])=='string'&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84[_0x3900c6(0x15d)][_0x3900c6(0x183)]()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d)&&await _0xc17b18[_0x3900c6(0x18c)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['method'])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84['method'][_0x3900c6(0x183)]()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute']):undefined,_0x1d515d):await _0xc17b18[_0x3900c6(0x18c)](_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84['_matchedRoute'])?_0x5f0a84[_0x3900c6(0x15d)]['toLowerCase']()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d);}else core_1[_0x3900c6(0x13a)][_0x3900c6(0x182)](_0x39c716)&&await _0x39c716(_0x5f0a84,typeof(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x15d)])==_0x3900c6(0x191)&&(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)])?_0x5f0a84[_0x3900c6(0x15d)]['toLowerCase']()+'@'+(_0x5f0a84===null||_0x5f0a84===void 0x0?void 0x0:_0x5f0a84[_0x3900c6(0x160)]):undefined,_0x1d515d);}}return await _0x24b9ac[_0x3900c6(0x126)](..._0x24b9ac['args']);},'afterThrow':(_0x2698a0,_0x12d471)=>{throw _0x12d471;}};});}async[a2_0x378731(0x13b)](){const _0x5c1639=a2_0x378731;this[_0x5c1639(0x15f)][_0x5c1639(0x17c)](['koa'])[_0x5c1639(0x15c)](_0x361079=>{const _0x4825b7=_0x5c1639;(_0x361079===null||_0x361079===void 0x0?void 0x0:_0x361079[_0x4825b7(0x18d)])&&Object['defineProperties'](_0x361079['context'],{'ok':{'value':function(_0x15e581,_0x596b8f,_0x38ade8=0x0){return{'code':_0x38ade8,'data':_0x15e581,'extra':_0x596b8f};}},'input':{'value':function(_0x1a35c8,_0x12c99b){const _0x37f288=_0x4825b7;var _0x6812cd;const _0x3c150a=lodash['defaultsDeep']({},this[_0x37f288(0x195)][_0x37f288(0x17a)]||this[_0x37f288(0x195)][((_0x6812cd=config===null||config===void 0x0?void 0x0:config[_0x37f288(0x17b)])===null||_0x6812cd===void 0x0?void 0x0:_0x6812cd[_0x37f288(0x158)])||_0x37f288(0x17a)]||{},this[_0x37f288(0x195)][_0x37f288(0x172)]||{});return _0x1a35c8?lodash[_0x37f288(0x178)](_0x3c150a,_0x1a35c8,_0x12c99b):_0x3c150a;}},'when':{'value':async function(_0x5d3535,_0x4cfa7c){const _0x174f2c=_0x4825b7,_0x26339c=this[_0x174f2c(0x161)](_0x5d3535,null);if(!lodash[_0x174f2c(0x145)](_0x26339c))return await _0x4cfa7c(_0x26339c);}},'only':{'value':function(_0x32ce11){const _0x201b73=_0x4825b7,_0x29532c={};for(let _0x4503c3=0x0;_0x4503c3<_0x32ce11[_0x201b73(0x181)];_0x4503c3++){lodash[_0x201b73(0x159)](_0x32ce11[_0x4503c3])&&_0x32ce11[_0x4503c3][_0x201b73(0x181)]>0x0&&lodash['isString'](_0x32ce11[_0x4503c3][0x0])&&(_0x29532c[_0x32ce11[_0x4503c3][0x0]]=this[_0x201b73(0x161)](_0x32ce11[_0x4503c3][0x0],_0x32ce11[_0x4503c3]['length']>0x1?_0x32ce11[_0x4503c3][0x1]:null));}return _0x29532c;}},'koasend':{'value':function(_0x5c890f,_0x244d9b){const _0xb635af=_0x4825b7;if(!fs['existsSync'](this[_0xb635af(0x143)][_0xb635af(0x137)]()+'/'+_0x5c890f))return _0xb635af(0x16b);return this[_0xb635af(0x185)](_0x244d9b||_0x5c890f),koasend(this,_0x5c890f);}}});});}async[a2_0x378731(0x167)](){const _0x4afd57=a2_0x378731;var _0x434db6,_0x3f8354;if(fs[_0x4afd57(0x156)](this[_0x4afd57(0x143)][_0x4afd57(0x138)]()+'/apps')&&fs[_0x4afd57(0x189)](this['app'][_0x4afd57(0x138)]()+_0x4afd57(0x19d))[_0x4afd57(0x12c)]()){const _0x22ce02=this[_0x4afd57(0x125)][_0x4afd57(0x12d)](),_0x5bfbf9=((_0x434db6=_0x22ce02===null||_0x22ce02===void 0x0?void 0x0:_0x22ce02[_0x4afd57(0x177)])===null||_0x434db6===void 0x0?void 0x0:_0x434db6['clients'])||{};for(const _0x7e644a of fs[_0x4afd57(0x149)](this['app'][_0x4afd57(0x138)]()+_0x4afd57(0x19d))){if(!fs[_0x4afd57(0x189)](this['app'][_0x4afd57(0x138)]()+'/apps/'+_0x7e644a)['isDirectory']())continue;if(_0x5bfbf9===null||_0x5bfbf9===void 0x0?void 0x0:_0x5bfbf9[_0x7e644a])continue;_0x5bfbf9[_0x7e644a]=Object['assign']({},((_0x3f8354=_0x22ce02===null||_0x22ce02===void 0x0?void 0x0:_0x22ce02[_0x4afd57(0x177)])===null||_0x3f8354===void 0x0?void 0x0:_0x3f8354[_0x4afd57(0x187)])||{'maxSize':'1m','dir':this['app'][_0x4afd57(0x137)]()+_0x4afd57(0x153)},{'enableJSON':!![],'enableConsole':this['environment'][_0x4afd57(0x170)](),'fileLogName':_0x7e644a+_0x4afd57(0x169),'dir':this[_0x4afd57(0x143)]['getAppDir']()+_0x4afd57(0x18a)+_0x7e644a+_0x4afd57(0x12f)});}Object[_0x4afd57(0x13c)](_0x5bfbf9)[_0x4afd57(0x181)]>0x0&&(!_0x22ce02['midwayLogger']&&(_0x22ce02[_0x4afd57(0x177)]={'default':{'maxSize':'1m','dir':this[_0x4afd57(0x143)][_0x4afd57(0x137)]()+_0x4afd57(0x153)}}),_0x22ce02[_0x4afd57(0x177)]['clients']=_0x5bfbf9),this['config'][_0x4afd57(0x18f)](_0x22ce02);}}async[a2_0x378731(0x12b)](){const _0x34b884=a2_0x378731;var _0x1c4cc7,_0x9607d1,_0x96a918,_0xdf8b98,_0x1be644,_0x2ff0b2;const _0xc38433=this['config']['getConfiguration']();((_0x9607d1=(_0x1c4cc7=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433['anncicapi'])===null||_0x1c4cc7===void 0x0?void 0x0:_0x1c4cc7['devices'])===null||_0x9607d1===void 0x0?void 0x0:_0x9607d1[_0x34b884(0x175)])&&Object[_0x34b884(0x13c)](_0xc38433[_0x34b884(0x121)][_0x34b884(0x142)])['length']>0x1&&delete _0xc38433[_0x34b884(0x121)][_0x34b884(0x142)][_0x34b884(0x175)];if((_0x96a918=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433['staticFile'])===null||_0x96a918===void 0x0?void 0x0:_0x96a918[_0x34b884(0x197)])for(const _0xfe4f4 in _0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)]){((_0xdf8b98=_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4])===null||_0xdf8b98===void 0x0?void 0x0:_0xdf8b98[_0x34b884(0x131)])&&typeof((_0x1be644=_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4])===null||_0x1be644===void 0x0?void 0x0:_0x1be644[_0x34b884(0x131)])==_0x34b884(0x191)&&!fs[_0x34b884(0x156)](_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4][_0x34b884(0x131)])&&(fs['mkdirSync'](_0xc38433['staticFile']['dirs'][_0xfe4f4][_0x34b884(0x131)],{'recursive':!![]}),console[_0x34b884(0x133)]('Anncic-api\x20static-file\x20:\x20mkdir\x20'+_0xc38433[_0x34b884(0x17f)][_0x34b884(0x197)][_0xfe4f4][_0x34b884(0x131)]));}((_0x2ff0b2=_0xc38433===null||_0xc38433===void 0x0?void 0x0:_0xc38433[_0x34b884(0x16f)])===null||_0x2ff0b2===void 0x0?void 0x0:_0x2ff0b2['tmpdir'])&&!fs[_0x34b884(0x156)](_0xc38433['upload'][_0x34b884(0x12e)])&&(fs[_0x34b884(0x15e)](_0xc38433[_0x34b884(0x16f)]['tmpdir'],{'recursive':!![]}),console[_0x34b884(0x133)](_0x34b884(0x194)+_0xc38433[_0x34b884(0x16f)][_0x34b884(0x12e)])),this[_0x34b884(0x125)]['addObject'](_0xc38433);}};__decorate([(0x0,core_1[a2_0x378731(0x134)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x378731(0x144)],'app',void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x122)])],CustomConfiguration[a2_0x378731(0x144)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x128)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x15a),void 0x0),__decorate([(0x0,core_1[a2_0x378731(0x135)])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x193)])],CustomConfiguration['prototype'],a2_0x378731(0x15f),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x378731(0x196),core_2[a2_0x378731(0x173)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x130),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x378731(0x196),ApiService_1[a2_0x378731(0x163)])],CustomConfiguration[a2_0x378731(0x144)],a2_0x378731(0x163),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x378731(0x14e)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x378731(0x146),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x378731(0x19e)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x312bd1=a3_0x2a40;(function(_0x232b94,_0x4f3506){const _0x27b9a8=a3_0x2a40,_0x8bc21e=_0x232b94();while(!![]){try{const _0x6a6cfd=-parseInt(_0x27b9a8(0x190))/0x1*(-parseInt(_0x27b9a8(0x1a4))/0x2)+parseInt(_0x27b9a8(0x1a6))/0x3+-parseInt(_0x27b9a8(0x195))/0x4*(parseInt(_0x27b9a8(0x183))/0x5)+parseInt(_0x27b9a8(0x182))/0x6+parseInt(_0x27b9a8(0x18a))/0x7+-parseInt(_0x27b9a8(0x189))/0x8*(-parseInt(_0x27b9a8(0x19d))/0x9)+-parseInt(_0x27b9a8(0x17f))/0xa;if(_0x6a6cfd===_0x4f3506)break;else _0x8bc21e['push'](_0x8bc21e['shift']());}catch(_0x317d3e){_0x8bc21e['push'](_0x8bc21e['shift']());}}}(a3_0x46f8,0xee71e));const a3_0x435e64=(function(){let _0xa7c1f3=!![];return function(_0x2a28b4,_0x5b0b23){const _0x191630=_0xa7c1f3?function(){const _0xe0eac=a3_0x2a40;if(_0x5b0b23){const _0x47d52e=_0x5b0b23[_0xe0eac(0x17c)](_0x2a28b4,arguments);return _0x5b0b23=null,_0x47d52e;}}:function(){};return _0xa7c1f3=![],_0x191630;};}()),a3_0x4ac6b2=a3_0x435e64(this,function(){const _0x474f2a=a3_0x2a40;return a3_0x4ac6b2[_0x474f2a(0x18b)]()[_0x474f2a(0x199)](_0x474f2a(0x1a2))[_0x474f2a(0x18b)]()['constructor'](a3_0x4ac6b2)[_0x474f2a(0x199)]('(((.+)+)+)+$');});a3_0x4ac6b2();'use strict';Object['defineProperty'](exports,a3_0x312bd1(0x19a),{'value':!![]}),exports[a3_0x312bd1(0x18f)]=exports[a3_0x312bd1(0x1a7)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require(a3_0x312bd1(0x1a1));function Action(_0x3e7022,_0x398052,_0x535ef7={'middleware':[],'sensitive':!![]}){return _0x3b66ef=>{const _0x14f39b=a3_0x2a40;var _0x344271;_0x535ef7[_0x14f39b(0x1a5)]=_0x398052;const _0x16fa6e=parseRoute(_0x3e7022);if(_0x16fa6e[_0x14f39b(0x1ab)]){_0x535ef7['prefix']=_0x535ef7[_0x14f39b(0x17a)]?'/'+_0x16fa6e[_0x14f39b(0x1ab)]+'/'+_0x535ef7[_0x14f39b(0x17a)]:'/'+_0x16fa6e['route'];_0x16fa6e['prefix']&&(_0x535ef7[_0x14f39b(0x17a)]='/'+_0x16fa6e['prefix']+'/'+_0x535ef7[_0x14f39b(0x17a)]);if(fs['existsSync'](_0x16fa6e[_0x14f39b(0x17e)]+'/apps/'+_0x16fa6e['module']+_0x14f39b(0x184)+(lodash['endsWith'](_0x16fa6e[_0x14f39b(0x192)],'ts')?'ts':'js'))){const _0x468b7f=include(_0x16fa6e['rootpath']+_0x14f39b(0x185)+_0x16fa6e[_0x14f39b(0x1ab)]+'/config.'+(lodash[_0x14f39b(0x19b)](_0x16fa6e['filepath'],'ts')?'ts':'js'));if(_0x468b7f[_0x14f39b(0x1a9)]&&lodash['isArray'](_0x468b7f[_0x14f39b(0x1a9)])&&_0x468b7f[_0x14f39b(0x1a9)][_0x14f39b(0x1af)]>0x0)for(let _0x1eefce in _0x468b7f[_0x14f39b(0x1a9)]){if(((_0x344271=_0x468b7f===null||_0x468b7f===void 0x0?void 0x0:_0x468b7f['middlewareIgnore'])===null||_0x344271===void 0x0?void 0x0:_0x344271[_0x14f39b(0x1af)])>0x0&&_0x468b7f[_0x14f39b(0x19c)]['indexOf'](_0x468b7f[_0x14f39b(0x1a9)][_0x1eefce])!=-0x1)continue;_0x535ef7[_0x14f39b(0x1a9)]['push'](_0x468b7f[_0x14f39b(0x1a9)][_0x1eefce]);}const _0x169dbe=(0x0,core_1[_0x14f39b(0x191)])(action_1['APPSCONFIG_KEY'],action_1[_0x14f39b(0x18d)])||{};_0x169dbe[''+_0x16fa6e[_0x14f39b(0x1ab)]]=_0x468b7f,(0x0,core_1['saveClassMetadata'])(action_1['APPSCONFIG_KEY'],_0x169dbe,action_1['AppsConfigTmp']);}_0x535ef7[_0x14f39b(0x17a)]=_0x535ef7[_0x14f39b(0x17a)][_0x14f39b(0x1a0)]()[_0x14f39b(0x181)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1['ACTION_KEY'],_0x3b66ef),(0x0,core_1['Controller'])(_0x535ef7['prefix'],_0x535ef7)(_0x3b66ef),(0x0,core_1['saveClassMetadata'])(action_1[_0x14f39b(0x186)],{'prefix':_0x535ef7[_0x14f39b(0x17a)],'pprefix':_0x16fa6e[_0x14f39b(0x17a)],'module':_0x16fa6e[_0x14f39b(0x1ab)],'filepath':_0x16fa6e[_0x14f39b(0x192)],'routerOptions':_0x535ef7},_0x3b66ef);}else _0x535ef7[_0x14f39b(0x17a)]=_0x535ef7['prefix']?'/'+_0x535ef7[_0x14f39b(0x17a)]:'/'+_0x16fa6e[_0x14f39b(0x18e)],_0x16fa6e[_0x14f39b(0x17a)]&&(_0x535ef7[_0x14f39b(0x17a)]='/'+_0x16fa6e[_0x14f39b(0x17a)]+'/'+_0x535ef7['prefix']),_0x535ef7[_0x14f39b(0x17a)]=_0x535ef7[_0x14f39b(0x17a)]['toLowerCase']()[_0x14f39b(0x181)](/\/{2,}/g,'/'),(0x0,core_1[_0x14f39b(0x198)])(action_1['ACTION_KEY'],_0x3b66ef),(0x0,core_1[_0x14f39b(0x1aa)])(_0x535ef7[_0x14f39b(0x17a)],_0x535ef7)(_0x3b66ef),(0x0,core_1['saveClassMetadata'])(action_1[_0x14f39b(0x186)],{'prefix':_0x535ef7['prefix'],'module':_0x16fa6e['module'],'pprefix':_0x16fa6e['prefix'],'filepath':_0x16fa6e[_0x14f39b(0x192)],'routerOptions':_0x535ef7},_0x3b66ef);};}exports['Action']=Action;function parseRoute(_0x40236d){const _0x586cbe=a3_0x312bd1;_0x40236d=_0x40236d[_0x586cbe(0x181)](/(\\|\/)/g,'/');const _0x5b8c28=process[_0x586cbe(0x17d)]()[_0x586cbe(0x181)](/(\\|\/)/g,'/'),_0x31fa9b=_0x40236d['substring'](0x0,_0x5b8c28['length']+_0x40236d[_0x586cbe(0x1ac)](_0x5b8c28[_0x586cbe(0x1af)]+0x1)[_0x586cbe(0x197)]('/')+0x1),_0x30ffa8=_0x40236d['substring'](_0x31fa9b[_0x586cbe(0x1af)]+0x1)['replace'](/(\\|\/)/g,'/'),_0x49768c={'route':'','prefix':![],'module':![],'rootpath':_0x31fa9b,'filepath':_0x30ffa8};if(_0x30ffa8['startsWith'](_0x586cbe(0x19e))||_0x30ffa8[_0x586cbe(0x194)](_0x586cbe(0x193))){const _0x4fc947=_0x30ffa8[_0x586cbe(0x1ac)]((_0x30ffa8[_0x586cbe(0x194)](_0x586cbe(0x19e))?_0x586cbe(0x19e):_0x586cbe(0x193))[_0x586cbe(0x1af)])[_0x586cbe(0x1ae)]('/')[_0x586cbe(0x19f)](_0x5927fa=>_0x5927fa&&_0x5927fa[_0x586cbe(0x18c)]());return _0x4fc947['length']>0x1&&(_0x49768c['prefix']=_0x4fc947[0x0][_0x586cbe(0x1a0)](),_0x4fc947[_0x586cbe(0x196)](0x0,0x1)),_0x49768c[_0x586cbe(0x18e)]=('/'+_0x4fc947[_0x586cbe(0x1a8)]('/'))['replace'](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/g,'/')[_0x586cbe(0x1a3)](/[\/|A-Z]*[^A-Z]+/g)['join']('-')[_0x586cbe(0x1a0)]()[_0x586cbe(0x181)](/\/\-/g,'/'),_0x49768c[_0x586cbe(0x18e)][_0x586cbe(0x19b)]('-action')&&(_0x49768c[_0x586cbe(0x18e)]=_0x49768c[_0x586cbe(0x18e)][_0x586cbe(0x1ac)](0x0,_0x49768c[_0x586cbe(0x18e)][_0x586cbe(0x1af)]-0x7)),_0x49768c[_0x586cbe(0x18e)]['endsWith'](_0x586cbe(0x187))&&(_0x49768c[_0x586cbe(0x18e)]=_0x49768c[_0x586cbe(0x18e)]['substring'](0x0,_0x49768c['route'][_0x586cbe(0x1af)]-0xb)),_0x49768c;}else{if(_0x30ffa8[_0x586cbe(0x194)](_0x586cbe(0x17b))){const _0x23cc07=_0x30ffa8[_0x586cbe(0x1ac)](0x0,_0x30ffa8[_0x586cbe(0x197)]('/apps/')+0x5),_0x34ffba=_0x30ffa8['substring'](_0x23cc07['length']+0x1)[_0x586cbe(0x181)](/(\\|\/)/g,'/')[_0x586cbe(0x1ae)]('/')[0x0];if(_0x30ffa8[_0x586cbe(0x194)](_0x586cbe(0x17b)+_0x34ffba+_0x586cbe(0x188))){const _0x401119=_0x30ffa8[_0x586cbe(0x1ac)]((_0x23cc07+'/'+_0x34ffba+_0x586cbe(0x188))[_0x586cbe(0x1af)])[_0x586cbe(0x1ae)]('/')[_0x586cbe(0x19f)](_0x4653af=>_0x4653af&&_0x4653af[_0x586cbe(0x18c)]());return _0x401119[_0x586cbe(0x1af)]>0x1&&(_0x49768c['prefix']=_0x401119[0x0]['toLowerCase'](),_0x401119['splice'](0x0,0x1)),_0x49768c[_0x586cbe(0x1ab)]=_0x34ffba,_0x49768c['route']=('/'+_0x34ffba+'/'+_0x401119[_0x586cbe(0x1a8)]('/'))[_0x586cbe(0x181)](/(\.ts|\.js)$/,'')[_0x586cbe(0x181)](/\/{2,}/g,'/')[_0x586cbe(0x1a3)](/[\/|A-Z]*[^A-Z]+/g)[_0x586cbe(0x1a8)]('-')[_0x586cbe(0x1a0)]()[_0x586cbe(0x181)](/\/\-/g,'/'),_0x49768c[_0x586cbe(0x18e)]['endsWith']('-action')&&(_0x49768c[_0x586cbe(0x18e)]=_0x49768c['route'][_0x586cbe(0x1ac)](0x0,_0x49768c[_0x586cbe(0x18e)][_0x586cbe(0x1af)]-0x7)),_0x49768c[_0x586cbe(0x18e)][_0x586cbe(0x19b)](_0x586cbe(0x187))&&(_0x49768c[_0x586cbe(0x18e)]=_0x49768c['route'][_0x586cbe(0x1ac)](0x0,_0x49768c['route'][_0x586cbe(0x1af)]-0xb)),_0x49768c;}throw new Error(_0x30ffa8+_0x586cbe(0x180)+_0x34ffba+'/controller/文件下');}}throw new Error(_0x30ffa8+_0x586cbe(0x1ad));}exports[a3_0x312bd1(0x18f)]=parseRoute;function a3_0x2a40(_0x585380,_0x3fe1c5){const _0x31bfed=a3_0x46f8();return a3_0x2a40=function(_0x4ac6b2,_0x435e64){_0x4ac6b2=_0x4ac6b2-0x17a;let _0x46f8c6=_0x31bfed[_0x4ac6b2];return _0x46f8c6;},a3_0x2a40(_0x585380,_0x3fe1c5);}function a3_0x46f8(){const _0x14ab00=['Controller','module','substring','\x20文件请放在app/controller/文件下','split','length','prefix','apps/','apply','cwd','rootpath','19075710ExInGS','\x20文件请放在apps/','replace','661014hmvuMQ','266645WDZYJq','/config.','/apps/','ACTION_KEY','-controller','/controller/','74792lVtlJf','309596SBPQPp','toString','trim','AppsConfigTmp','route','parseRoute','1VGhtdy','getClassMetadata','filepath','basic/controller/','startsWith','8HFDfzF','splice','indexOf','saveModule','search','__esModule','endsWith','middlewareIgnore','1431BcbQID','app/controller/','filter','toLowerCase','../types/action','(((.+)+)+)+$','match','2567582sFnRoX','tagName','198660oNOBIJ','Action','join','middleware'];a3_0x46f8=function(){return _0x14ab00;};return a3_0x46f8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x87e4(_0x478817,_0x4a5179){const _0x185e5d=a4_0x3b3f();return a4_0x87e4=function(_0x3e27c8,_0x53fe14){_0x3e27c8=_0x3e27c8-0x1e0;let _0x3b3f41=_0x185e5d[_0x3e27c8];return _0x3b3f41;},a4_0x87e4(_0x478817,_0x4a5179);}const a4_0x12a415=a4_0x87e4;function a4_0x3b3f(){const _0x11d7c2=['middleware','2427549bxSADo','apimit','length','assign','toLowerCase','createCustomMethodDecorator','validationOptions','toString','264KniZMZ','491034FYdfNm','3216ahvDJU','delete','52euSZGv','filter','977891eHRIvl','2QNyRSi','intercept','1308960UYHSsd','get','5374152OagsiY','attachClassMetadata','Validator','ACTION_ROUTE_KEY','__esModule','372145KwdWWX','constructor','4977UfVvlk','del','description','defineProperty','../types/action','indexOf','middlewareIgnore','validate','Api','(((.+)+)+)+$','routerName','apply'];a4_0x3b3f=function(){return _0x11d7c2;};return a4_0x3b3f();}(function(_0x25f1ce,_0x39acba){const _0x372956=a4_0x87e4,_0x540ecb=_0x25f1ce();while(!![]){try{const _0x511d4f=parseInt(_0x372956(0x1ef))/0x1+parseInt(_0x372956(0x1f0))/0x2*(parseInt(_0x372956(0x1e1))/0x3)+parseInt(_0x372956(0x1ed))/0x4*(parseInt(_0x372956(0x1f9))/0x5)+parseInt(_0x372956(0x1ea))/0x6+parseInt(_0x372956(0x1fb))/0x7*(parseInt(_0x372956(0x1eb))/0x8)+parseInt(_0x372956(0x1f4))/0x9+parseInt(_0x372956(0x1f2))/0xa*(-parseInt(_0x372956(0x1e9))/0xb);if(_0x511d4f===_0x39acba)break;else _0x540ecb['push'](_0x540ecb['shift']());}catch(_0x1ba6d4){_0x540ecb['push'](_0x540ecb['shift']());}}}(a4_0x3b3f,0x8d190));const a4_0x53fe14=(function(){let _0x337616=!![];return function(_0x148c41,_0x35e54a){const _0x35586b=_0x337616?function(){const _0x44e23e=a4_0x87e4;if(_0x35e54a){const _0x36bc0c=_0x35e54a[_0x44e23e(0x206)](_0x148c41,arguments);return _0x35e54a=null,_0x36bc0c;}}:function(){};return _0x337616=![],_0x35586b;};}()),a4_0x3e27c8=a4_0x53fe14(this,function(){const _0x5a19bd=a4_0x87e4;return a4_0x3e27c8[_0x5a19bd(0x1e8)]()['search'](_0x5a19bd(0x204))[_0x5a19bd(0x1e8)]()[_0x5a19bd(0x1fa)](a4_0x3e27c8)['search'](_0x5a19bd(0x204));});a4_0x3e27c8();'use strict';Object[a4_0x12a415(0x1fe)](exports,a4_0x12a415(0x1f8),{'value':!![]}),exports['Api']=void 0x0;const validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),action_1=require(a4_0x12a415(0x1ff));function Api(_0x197a72,_0x4873a3=a4_0x12a415(0x1f3),_0x41d455='/',_0x4f8547={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x5c0f5d,_0x15ef8b,_0x2da351)=>{const _0x5cc000=a4_0x87e4;var _0x11315e,_0x44cdad,_0x3f3f04;!_0x4f8547[_0x5cc000(0x1e0)]&&(_0x4f8547[_0x5cc000(0x1e0)]=[]);!((_0x11315e=_0x4f8547===null||_0x4f8547===void 0x0?void 0x0:_0x4f8547[_0x5cc000(0x202)])===null||_0x11315e===void 0x0?void 0x0:_0x11315e[_0x5cc000(0x1e7)])&&(_0x4f8547['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':'string'}});typeof _0x4f8547['apimit']=='undefined'&&(_0x4f8547[_0x5cc000(0x1e2)]=!![]);if(((_0x44cdad=_0x4f8547===null||_0x4f8547===void 0x0?void 0x0:_0x4f8547[_0x5cc000(0x1e0)])===null||_0x44cdad===void 0x0?void 0x0:_0x44cdad[_0x5cc000(0x1e3)])>0x0&&((_0x3f3f04=_0x4f8547===null||_0x4f8547===void 0x0?void 0x0:_0x4f8547[_0x5cc000(0x201)])===null||_0x3f3f04===void 0x0?void 0x0:_0x3f3f04[_0x5cc000(0x1e3)])>0x0)for(let _0x336dcb in _0x4f8547['middleware']){_0x4f8547[_0x5cc000(0x201)][_0x5cc000(0x200)](_0x4f8547[_0x5cc000(0x1e0)][_0x336dcb])!==-0x1&&(_0x4f8547[_0x5cc000(0x1e0)][_0x336dcb]=null);}_0x4f8547['routerName']=_0x197a72,(0x0,validator_1[_0x5cc000(0x1f6)])(_0x4f8547[_0x5cc000(0x202)])(_0x5c0f5d,_0x15ef8b,_0x2da351),(0x0,core_1['RequestMapping'])(Object[_0x5cc000(0x1e4)](_0x4f8547,{'path':_0x41d455,'requestMethod':(_0x4873a3=='del'?_0x5cc000(0x1ec):_0x4873a3)['toLowerCase']()}))(_0x5c0f5d,_0x15ef8b,_0x2da351),(0x0,core_1[_0x5cc000(0x1f5)])(action_1[_0x5cc000(0x1f7)],{'path':_0x41d455,'method':_0x15ef8b,'apimit':_0x4f8547[_0x5cc000(0x1e2)],'intercept':_0x4f8547['intercept'],'routerName':_0x4f8547[_0x5cc000(0x205)],'description':_0x4f8547[_0x5cc000(0x1fd)],'middleware':(_0x4f8547['middleware']||[])['filter'](_0x3c907c=>!!_0x3c907c),'requestMethod':(_0x4873a3=='del'?_0x5cc000(0x1ec):_0x4873a3)['toLowerCase']()},_0x5c0f5d),(0x0,core_1[_0x5cc000(0x1e6)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x41d455,'method':_0x15ef8b,'apimit':_0x4f8547['apimit'],'intercept':_0x4f8547[_0x5cc000(0x1f1)],'routerName':_0x4f8547[_0x5cc000(0x205)],'description':_0x4f8547['description'],'middleware':(_0x4f8547[_0x5cc000(0x1e0)]||[])[_0x5cc000(0x1ee)](_0x56a471=>!!_0x56a471),'requestMethod':(_0x4873a3==_0x5cc000(0x1fc)?_0x5cc000(0x1ec):_0x4873a3)[_0x5cc000(0x1e5)]()})(_0x5c0f5d,_0x15ef8b,_0x2da351);};}exports[a4_0x12a415(0x203)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0x25d4(_0x1c44a6,_0x193476){const _0x50e7cc=a5_0x5979();return a5_0x25d4=function(_0x5acd5b,_0xc91265){_0x5acd5b=_0x5acd5b-0x13b;let _0x59798e=_0x50e7cc[_0x5acd5b];return _0x59798e;},a5_0x25d4(_0x1c44a6,_0x193476);}const a5_0x699afe=a5_0x25d4;(function(_0x4f8568,_0x14443f){const _0x22a108=a5_0x25d4,_0x63ea17=_0x4f8568();while(!![]){try{const _0x2e4699=-parseInt(_0x22a108(0x158))/0x1+-parseInt(_0x22a108(0x13b))/0x2+parseInt(_0x22a108(0x147))/0x3+parseInt(_0x22a108(0x14b))/0x4*(-parseInt(_0x22a108(0x140))/0x5)+parseInt(_0x22a108(0x14d))/0x6+-parseInt(_0x22a108(0x144))/0x7+parseInt(_0x22a108(0x14c))/0x8*(parseInt(_0x22a108(0x154))/0x9);if(_0x2e4699===_0x14443f)break;else _0x63ea17['push'](_0x63ea17['shift']());}catch(_0x4d54a2){_0x63ea17['push'](_0x63ea17['shift']());}}}(a5_0x5979,0xa3ead));const a5_0xc91265=(function(){let _0x5108f3=!![];return function(_0x5aab7b,_0x586c58){const _0x4efff8=_0x5108f3?function(){const _0x6980f0=a5_0x25d4;if(_0x586c58){const _0xb1a0e0=_0x586c58[_0x6980f0(0x152)](_0x5aab7b,arguments);return _0x586c58=null,_0xb1a0e0;}}:function(){};return _0x5108f3=![],_0x4efff8;};}()),a5_0x5acd5b=a5_0xc91265(this,function(){const _0x26d60c=a5_0x25d4;return a5_0x5acd5b['toString']()[_0x26d60c(0x151)](_0x26d60c(0x153))[_0x26d60c(0x149)]()[_0x26d60c(0x156)](a5_0x5acd5b)[_0x26d60c(0x151)](_0x26d60c(0x153));});a5_0x5acd5b();'use strict';Object['defineProperty'](exports,a5_0x699afe(0x13c),{'value':!![]}),exports['Apitest']=void 0x0;const core_1=require(a5_0x699afe(0x145)),ApitestService_1=require(a5_0x699afe(0x141));function Apitest(_0x36c1a9=a5_0x699afe(0x142),_0x457e0a){return(_0x61332b,_0x45544e,_0x17ea87)=>{const _0x1b6189=a5_0x25d4;return(0x0,core_1[_0x1b6189(0x13d)])({'path':_0x36c1a9,'requestMethod':_0x1b6189(0x146)})(_0x61332b,_0x45544e,_0x17ea87),_0x17ea87[_0x1b6189(0x150)]=async function(..._0x2d2b06){const _0x202b80=_0x1b6189;var _0x55d2a5;const _0x254763=(_0x55d2a5=this[core_1[_0x202b80(0x13f)]])===null||_0x55d2a5===void 0x0?void 0x0:_0x55d2a5[_0x202b80(0x14e)];if(_0x254763&&_0x254763[_0x202b80(0x155)](_0x202b80(0x143))){const _0x25efa4=await _0x254763[_0x202b80(0x159)]()[_0x202b80(0x13e)](ApitestService_1[_0x202b80(0x157)]),_0x4bb791=await _0x254763[_0x202b80(0x159)]()['getAsync'](core_1[_0x202b80(0x148)]);return _0x4bb791['isDevelopmentEnvironment']()&&(_0x457e0a[_0x202b80(0x14a)]=!![]),await _0x25efa4['apidoc'](_0x457e0a);}return'';},_0x17ea87;};}exports[a5_0x699afe(0x14f)]=Apitest;function a5_0x5979(){const _0x584f18=['5157ydDlcc','getConfig','constructor','ApitestService','1338215nAFAYM','getApplicationContext','2033294VoBKea','__esModule','RequestMapping','getAsync','REQUEST_OBJ_CTX_KEY','10oqJVuF','../service/ApitestService','/apitest','apitest','3945998VWcSjJ','@midwayjs/core','get','3395490yAbXno','MidwayEnvironmentService','toString','filepath','681528SGGWPK','20392aKPYEB','8030028JXvZzM','app','Apitest','value','search','apply','(((.+)+)+)+$'];a5_0x5979=function(){return _0x584f18;};return a5_0x5979();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x2dc3f7=a6_0x4a60;function a6_0x5a08(){const _0x24afaf=['2WjXWFs','INTERCEPT_KEY','127716IPmFpl','Provide','isArray','search','848UCUNrc','6dkNyBq','includes','27841weEZbm','__esModule','550RVRSUe','(((.+)+)+)+$','../types/intercept','4OdyweK','282715vnCtYU','InterceptTargetTmp','apply','getClassMetadata','90159CGSWql','toString','push','Intercept','@midwayjs/core','143wrRfNO','51951DdPqxJ','18567ORDZAU','411089ZguGOT','toUpperCase','saveClassMetadata'];a6_0x5a08=function(){return _0x24afaf;};return a6_0x5a08();}function a6_0x4a60(_0x1ced31,_0x52886b){const _0xc8a0e8=a6_0x5a08();return a6_0x4a60=function(_0x414a10,_0x43192e){_0x414a10=_0x414a10-0x1c9;let _0x5a08c1=_0xc8a0e8[_0x414a10];return _0x5a08c1;},a6_0x4a60(_0x1ced31,_0x52886b);}(function(_0x3c6c8c,_0x4ca828){const _0xefac53=a6_0x4a60,_0x2be285=_0x3c6c8c();while(!![]){try{const _0x23c17e=-parseInt(_0xefac53(0x1d1))/0x1+-parseInt(_0xefac53(0x1dc))/0x2*(-parseInt(_0xefac53(0x1d7))/0x3)+parseInt(_0xefac53(0x1cc))/0x4*(parseInt(_0xefac53(0x1cd))/0x5)+-parseInt(_0xefac53(0x1e3))/0x6*(parseInt(_0xefac53(0x1d9))/0x7)+parseInt(_0xefac53(0x1e2))/0x8*(parseInt(_0xefac53(0x1d8))/0x9)+-parseInt(_0xefac53(0x1c9))/0xa*(parseInt(_0xefac53(0x1e5))/0xb)+parseInt(_0xefac53(0x1de))/0xc*(parseInt(_0xefac53(0x1d6))/0xd);if(_0x23c17e===_0x4ca828)break;else _0x2be285['push'](_0x2be285['shift']());}catch(_0xf3a9da){_0x2be285['push'](_0x2be285['shift']());}}}(a6_0x5a08,0x1dab0));const a6_0x43192e=(function(){let _0x37d06c=!![];return function(_0x37855b,_0x54c2b5){const _0x171b25=_0x37d06c?function(){const _0x4e38c4=a6_0x4a60;if(_0x54c2b5){const _0x3a1739=_0x54c2b5[_0x4e38c4(0x1cf)](_0x37855b,arguments);return _0x54c2b5=null,_0x3a1739;}}:function(){};return _0x37d06c=![],_0x171b25;};}()),a6_0x414a10=a6_0x43192e(this,function(){const _0x418a44=a6_0x4a60;return a6_0x414a10[_0x418a44(0x1d2)]()[_0x418a44(0x1e1)](_0x418a44(0x1ca))[_0x418a44(0x1d2)]()['constructor'](a6_0x414a10)[_0x418a44(0x1e1)](_0x418a44(0x1ca));});a6_0x414a10();'use strict';Object['defineProperty'](exports,a6_0x2dc3f7(0x1e6),{'value':!![]}),exports['IIntercept']=exports[a6_0x2dc3f7(0x1d4)]=void 0x0;const core_1=require(a6_0x2dc3f7(0x1d5)),intercept_1=require(a6_0x2dc3f7(0x1cb));function Intercept(_0x156c32){return _0x5c54f1=>{const _0x4bbe52=a6_0x4a60,_0x158048=(0x0,core_1[_0x4bbe52(0x1d0)])(intercept_1['INTERCEPT_KEY'],intercept_1[_0x4bbe52(0x1ce)])||{};for(let _0x289ecb of Array[_0x4bbe52(0x1e0)](_0x156c32)?_0x156c32:[_0x156c32]){_0x289ecb=_0x289ecb[_0x4bbe52(0x1da)]();!(_0x158048===null||_0x158048===void 0x0?void 0x0:_0x158048[_0x289ecb])&&(_0x158048[_0x289ecb]=[]);if(_0x158048[_0x289ecb][_0x4bbe52(0x1e4)](_0x5c54f1))continue;_0x158048[_0x289ecb][_0x4bbe52(0x1d3)](_0x5c54f1);}(0x0,core_1[_0x4bbe52(0x1df)])()(_0x5c54f1),(0x0,core_1['Scope'])(core_1['ScopeEnum']['Singleton'])(_0x5c54f1),(0x0,core_1[_0x4bbe52(0x1db)])(intercept_1[_0x4bbe52(0x1dd)],_0x158048,intercept_1[_0x4bbe52(0x1ce)]);};}exports[a6_0x2dc3f7(0x1d4)]=Intercept;class IIntercept{async['match'](_0x826b8f,_0x45cfe8,_0x21b063){return!![];}}exports['IIntercept']=IIntercept;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a7_0x4199(_0x1f808c,_0x20d74f){var _0x15810e=a7_0x2af8();return a7_0x4199=function(_0x2bf58d,_0x50449a){_0x2bf58d=_0x2bf58d-0x178;var _0x2af87c=_0x15810e[_0x2bf58d];return _0x2af87c;},a7_0x4199(_0x1f808c,_0x20d74f);}var a7_0xc1b48f=a7_0x4199;(function(_0x41db4f,_0x319029){var _0x52cb37=a7_0x4199,_0xc45442=_0x41db4f();while(!![]){try{var _0x50983a=-parseInt(_0x52cb37(0x193))/0x1+parseInt(_0x52cb37(0x17e))/0x2+-parseInt(_0x52cb37(0x192))/0x3+parseInt(_0x52cb37(0x191))/0x4*(parseInt(_0x52cb37(0x18b))/0x5)+parseInt(_0x52cb37(0x198))/0x6*(-parseInt(_0x52cb37(0x178))/0x7)+-parseInt(_0x52cb37(0x18e))/0x8+parseInt(_0x52cb37(0x184))/0x9;if(_0x50983a===_0x319029)break;else _0xc45442['push'](_0xc45442['shift']());}catch(_0x7e3f77){_0xc45442['push'](_0xc45442['shift']());}}}(a7_0x2af8,0x344a4));var a7_0x50449a=(function(){var _0x666b70=!![];return function(_0x2de948,_0xf98e84){var _0x3f0cf7=_0x666b70?function(){var _0x42714b=a7_0x4199;if(_0xf98e84){var _0x25e021=_0xf98e84[_0x42714b(0x179)](_0x2de948,arguments);return _0xf98e84=null,_0x25e021;}}:function(){};return _0x666b70=![],_0x3f0cf7;};}()),a7_0x2bf58d=a7_0x50449a(this,function(){var _0x490f47=a7_0x4199;return a7_0x2bf58d['toString']()[_0x490f47(0x189)](_0x490f47(0x188))[_0x490f47(0x183)]()['constructor'](a7_0x2bf58d)[_0x490f47(0x189)]('(((.+)+)+)+$');});a7_0x2bf58d();'use strict';var __decorate=this&&this['__decorate']||function(_0x35f307,_0x59a05a,_0xbdefd5,_0x23a154){var _0x1bcbd9=a7_0x4199,_0x290be8=arguments[_0x1bcbd9(0x197)],_0x5b4e9d=_0x290be8<0x3?_0x59a05a:_0x23a154===null?_0x23a154=Object['getOwnPropertyDescriptor'](_0x59a05a,_0xbdefd5):_0x23a154,_0x4814ae;if(typeof Reflect==='object'&&typeof Reflect[_0x1bcbd9(0x187)]===_0x1bcbd9(0x18f))_0x5b4e9d=Reflect['decorate'](_0x35f307,_0x59a05a,_0xbdefd5,_0x23a154);else{for(var _0x195ecd=_0x35f307[_0x1bcbd9(0x197)]-0x1;_0x195ecd>=0x0;_0x195ecd--)if(_0x4814ae=_0x35f307[_0x195ecd])_0x5b4e9d=(_0x290be8<0x3?_0x4814ae(_0x5b4e9d):_0x290be8>0x3?_0x4814ae(_0x59a05a,_0xbdefd5,_0x5b4e9d):_0x4814ae(_0x59a05a,_0xbdefd5))||_0x5b4e9d;}return _0x290be8>0x3&&_0x5b4e9d&&Object[_0x1bcbd9(0x182)](_0x59a05a,_0xbdefd5,_0x5b4e9d),_0x5b4e9d;},__metadata=this&&this[a7_0xc1b48f(0x194)]||function(_0x22522e,_0x212ed9){var _0x22dd4f=a7_0xc1b48f;if(typeof Reflect===_0x22dd4f(0x17d)&&typeof Reflect['metadata']===_0x22dd4f(0x18f))return Reflect[_0x22dd4f(0x186)](_0x22522e,_0x212ed9);};Object[a7_0xc1b48f(0x182)](exports,'__esModule',{'value':!![]}),exports[a7_0xc1b48f(0x195)]=void 0x0;function a7_0x2af8(){var _0x26755b=['length','90WkYuAi','TIMEOUT_LOGINTIME','119056NQadwk','apply','HEADERS_CHECKCODE','signature验证失败','TIMEOUT','object','278802dniAca','登录超时,请重新登录','请求超时,请重试','design:type','defineProperty','toString','8153388LiKbvQ','HEADERS_LACK','metadata','decorate','(((.+)+)+)+$','search','请求头信息不完整','2067005aKaBLn','验证失败,请重新登录','HEADERS_DEVICE','2961208CWpwLW','function','HEADERS_SIGNATURE','4ziRAWJ','1195134ueLKQu','220905WOexXD','__metadata','ApiError','请使用正确的设备'];a7_0x2af8=function(){return _0x26755b;};return a7_0x2af8();}class ApiError extends AnnError{}ApiError[a7_0xc1b48f(0x17c)]=0x19003,ApiError[a7_0xc1b48f(0x185)]=0x18e72,ApiError['HEADERS_DEVICE']=0x18e73,ApiError['HEADERS_SIGNATURE']=0x18e74,ApiError[a7_0xc1b48f(0x17a)]=0x18e75,ApiError[a7_0xc1b48f(0x199)]=0x18e76,__decorate([AnnErrorMsg(a7_0xc1b48f(0x180)),__metadata(a7_0xc1b48f(0x181),Object)],ApiError,a7_0xc1b48f(0x17c),void 0x0),__decorate([AnnErrorMsg(a7_0xc1b48f(0x18a)),__metadata('design:type',Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a7_0xc1b48f(0x196)),__metadata(a7_0xc1b48f(0x181),Object)],ApiError,a7_0xc1b48f(0x18d),void 0x0),__decorate([AnnErrorMsg(a7_0xc1b48f(0x17b)),__metadata(a7_0xc1b48f(0x181),Object)],ApiError,a7_0xc1b48f(0x190),void 0x0),__decorate([AnnErrorMsg(a7_0xc1b48f(0x18c)),__metadata(a7_0xc1b48f(0x181),Object)],ApiError,a7_0xc1b48f(0x17a),void 0x0),__decorate([AnnErrorMsg(a7_0xc1b48f(0x17f)),__metadata(a7_0xc1b48f(0x181),Object)],ApiError,a7_0xc1b48f(0x199),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a8_0x2123(){const _0x34ae0e=['1355554KwqOjr','328089tLlSDv','12uEhhRs','defineProperty','1037944CnufcF','toString','getClassMetadata','719727rJMovq','search','get','7026245wCTEin','10741570NwPXtP','APPSCONFIG_KEY','52632ApOLPS','63nkXxTw','63nwEjER','AppsConfigTmp','getAppsConfig'];a8_0x2123=function(){return _0x34ae0e;};return a8_0x2123();}const a8_0xee5149=a8_0x5c51;(function(_0x280d72,_0x9f08a2){const _0x5bf701=a8_0x5c51,_0x28788c=_0x280d72();while(!![]){try{const _0x2281c9=-parseInt(_0x5bf701(0x14e))/0x1+parseInt(_0x5bf701(0x147))/0x2+-parseInt(_0x5bf701(0x148))/0x3*(parseInt(_0x5bf701(0x149))/0x4)+parseInt(_0x5bf701(0x13f))/0x5+-parseInt(_0x5bf701(0x142))/0x6*(parseInt(_0x5bf701(0x144))/0x7)+parseInt(_0x5bf701(0x14b))/0x8*(parseInt(_0x5bf701(0x143))/0x9)+-parseInt(_0x5bf701(0x140))/0xa;if(_0x2281c9===_0x9f08a2)break;else _0x28788c['push'](_0x28788c['shift']());}catch(_0x224643){_0x28788c['push'](_0x28788c['shift']());}}}(a8_0x2123,0xc0f22));const a8_0xe0538b=(function(){let _0x1f4487=!![];return function(_0x3b71c9,_0x254d5d){const _0x252597=_0x1f4487?function(){if(_0x254d5d){const _0x29c3cf=_0x254d5d['apply'](_0x3b71c9,arguments);return _0x254d5d=null,_0x29c3cf;}}:function(){};return _0x1f4487=![],_0x252597;};}()),a8_0x25fdbe=a8_0xe0538b(this,function(){const _0x2104f2=a8_0x5c51;return a8_0x25fdbe['toString']()[_0x2104f2(0x14f)]('(((.+)+)+)+$')[_0x2104f2(0x14c)]()['constructor'](a8_0x25fdbe)[_0x2104f2(0x14f)]('(((.+)+)+)+$');});a8_0x25fdbe();'use strict';function a8_0x5c51(_0x2799f3,_0x1b830b){const _0x17d013=a8_0x2123();return a8_0x5c51=function(_0x25fdbe,_0xe0538b){_0x25fdbe=_0x25fdbe-0x13f;let _0x212386=_0x17d013[_0x25fdbe];return _0x212386;},a8_0x5c51(_0x2799f3,_0x1b830b);}Object[a8_0xee5149(0x14a)](exports,'__esModule',{'value':!![]}),exports[a8_0xee5149(0x146)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require('../types/action');function getAppsConfig(_0x396a90){const _0x1b2573=a8_0xee5149,_0x2a347d=(0x0,core_1[_0x1b2573(0x14d)])(action_1[_0x1b2573(0x141)],action_1[_0x1b2573(0x145)])||{};return _0x396a90?lodash[_0x1b2573(0x150)](_0x2a347d,_0x396a90):_0x2a347d;}exports[a8_0xee5149(0x146)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x17ae07=a9_0x4fdb;(function(_0x10ab36,_0x374282){const _0x40ca47=a9_0x4fdb,_0x5d4c48=_0x10ab36();while(!![]){try{const _0x3f3bf8=-parseInt(_0x40ca47(0xc5))/0x1*(-parseInt(_0x40ca47(0xd7))/0x2)+-parseInt(_0x40ca47(0xa5))/0x3*(-parseInt(_0x40ca47(0xae))/0x4)+-parseInt(_0x40ca47(0xce))/0x5+-parseInt(_0x40ca47(0xc7))/0x6*(-parseInt(_0x40ca47(0xd3))/0x7)+parseInt(_0x40ca47(0xcf))/0x8+-parseInt(_0x40ca47(0xa7))/0x9*(parseInt(_0x40ca47(0x87))/0xa)+parseInt(_0x40ca47(0x9e))/0xb*(-parseInt(_0x40ca47(0x8f))/0xc);if(_0x3f3bf8===_0x374282)break;else _0x5d4c48['push'](_0x5d4c48['shift']());}catch(_0x3245f5){_0x5d4c48['push'](_0x5d4c48['shift']());}}}(a9_0x124c,0x33221));const a9_0x251ba5=(function(){let _0xe195ab=!![];return function(_0xe6a548,_0x14dd9e){const _0x21eda0=_0xe195ab?function(){if(_0x14dd9e){const _0xc49f45=_0x14dd9e['apply'](_0xe6a548,arguments);return _0x14dd9e=null,_0xc49f45;}}:function(){};return _0xe195ab=![],_0x21eda0;};}()),a9_0xdec1b8=a9_0x251ba5(this,function(){const _0x5d62e4=a9_0x4fdb;return a9_0xdec1b8[_0x5d62e4(0xc4)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a9_0xdec1b8)[_0x5d62e4(0xc2)](_0x5d62e4(0x88));});a9_0xdec1b8();'use strict';function a9_0x4fdb(_0x380131,_0x40e891){const _0x50351e=a9_0x124c();return a9_0x4fdb=function(_0xdec1b8,_0x251ba5){_0xdec1b8=_0xdec1b8-0x79;let _0x124c50=_0x50351e[_0xdec1b8];return _0x124c50;},a9_0x4fdb(_0x380131,_0x40e891);}Object[a9_0x17ae07(0x7f)](exports,a9_0x17ae07(0xbf),{'value':!![]}),exports[a9_0x17ae07(0xb3)]=void 0x0;const lodash_1=require('lodash'),validator_1=require(a9_0x17ae07(0x8e)),core_1=require(a9_0x17ae07(0x79)),core_2=require(a9_0x17ae07(0x79)),core_3=require('@midwayjs/core'),action_1=require(a9_0x17ae07(0xa8));function getRoutes(_0x2d9586={'prefix':'/','module':![]}){const _0x2eafce=a9_0x17ae07;var _0x328c7c,_0x4645c9;const _0x16ed39=(0x0,core_3[_0x2eafce(0x9f)])(action_1[_0x2eafce(0xc3)]),_0x4c88fb={},_0x354456=Array[_0x2eafce(0x8b)](_0x2d9586[_0x2eafce(0x97)]||[])?_0x2d9586[_0x2eafce(0x97)]||[]:[_0x2d9586[_0x2eafce(0x97)]];_0x4f4bcd:for(const _0x2b6e99 of _0x16ed39){let _0x46ca3d=(0x0,core_3[_0x2eafce(0xad)])(action_1[_0x2eafce(0xc3)],_0x2b6e99),_0x262cfa=(0x0,core_3[_0x2eafce(0xad)])(action_1['ACTION_ROUTE_KEY'],_0x2b6e99);if(_0x46ca3d&&_0x262cfa){let _0x444e5d=_0x46ca3d[_0x2eafce(0x93)],_0x1c8bd2={};if(_0x2d9586[_0x2eafce(0xbc)]&&(0x0,lodash_1[_0x2eafce(0x7e)])(_0x46ca3d,_0x2eafce(0xbc),![])!=_0x2d9586[_0x2eafce(0xbc)])continue _0x4f4bcd;else{if(_0x2d9586[_0x2eafce(0xbc)]===![]&&!!(0x0,lodash_1[_0x2eafce(0x7e)])(_0x46ca3d,_0x2eafce(0xbc),null))continue _0x4f4bcd;}if(_0x2d9586[_0x2eafce(0x93)]&&!_0x444e5d[_0x2eafce(0x7a)](_0x2d9586['prefix']))continue _0x4f4bcd;_0x444e5d!=='/'?(_0x1c8bd2[_0x2eafce(0xb9)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xb8)])||(/^\//[_0x2eafce(0x9c)](_0x444e5d)?_0x444e5d[_0x2eafce(0xac)]('/')[0x1]:_0x444e5d),_0x1c8bd2[_0x2eafce(0xaa)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xaa)])||_0x1c8bd2[_0x2eafce(0xb9)],_0x1c8bd2['routes']=[]):(_0x1c8bd2[_0x2eafce(0xb9)]=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)]['tagName'])||_0x2eafce(0x9a),_0x1c8bd2['description']=(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x91)][_0x2eafce(0xaa)])||'',_0x1c8bd2['routes']=[]);_0x2d9586[_0x2eafce(0x8c)]&&(_0x1c8bd2[_0x2eafce(0x8c)]=_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0x8c)]);(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0xab)])&&(_0x1c8bd2[_0x2eafce(0x93)]=_0x46ca3d[_0x2eafce(0xab)]);(_0x46ca3d===null||_0x46ca3d===void 0x0?void 0x0:_0x46ca3d[_0x2eafce(0xbc)])&&(_0x1c8bd2[_0x2eafce(0xbc)]=_0x46ca3d['module']);let _0x3d0c8a=(0x0,core_3[_0x2eafce(0xad)])(core_2[_0x2eafce(0xa0)],_0x2b6e99)||{};if(typeof _0x262cfa[Symbol[_0x2eafce(0xd1)]]===_0x2eafce(0xcb))for(let _0x1dac34 of _0x262cfa){if((_0x2d9586===null||_0x2d9586===void 0x0?void 0x0:_0x2d9586[_0x2eafce(0x99)])&&!(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34['intercept']))continue;let _0x20c621={};_0x20c621[_0x2eafce(0xbd)]=_0x1dac34[_0x2eafce(0xcd)],_0x20c621[_0x2eafce(0x98)]=(_0x444e5d+_0x1dac34[_0x2eafce(0x9b)])[_0x2eafce(0xb7)](/\/{2,}/g,'/'),_0x20c621[_0x2eafce(0xb9)]=(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34[_0x2eafce(0xd2)])||_0x1c8bd2[_0x2eafce(0xb9)]||_0x2eafce(0x9a),_0x20c621[_0x2eafce(0xaa)]=(_0x1dac34===null||_0x1dac34===void 0x0?void 0x0:_0x1dac34['description'])||'',_0x20c621[_0x2eafce(0xaf)]=[];_0x20c621[_0x2eafce(0x98)][_0x2eafce(0x90)]('/')&&(_0x20c621[_0x2eafce(0x98)]=_0x20c621[_0x2eafce(0x98)]['substring'](0x0,_0x20c621[_0x2eafce(0x98)][_0x2eafce(0xa1)]-0x1));if(!(0x0,lodash_1[_0x2eafce(0x7a)])(_0x20c621['route'],'static/apitest')&&!(0x0,lodash_1[_0x2eafce(0x7a)])(_0x20c621[_0x2eafce(0x98)],'/static/apitest')&&_0x354456[_0x2eafce(0xc9)](_0x20c621[_0x2eafce(0x98)])===-0x1){if(!(_0x2d9586===null||_0x2d9586===void 0x0?void 0x0:_0x2d9586[_0x2eafce(0xca)])){let _0x5dc4bb=(0x0,core_3['getMethodParamTypes'])(new _0x2b6e99(),_0x1dac34[_0x2eafce(0xbd)]);for(const _0x24196e in _0x5dc4bb){let _0x3a09a9=(_0x328c7c=_0x3d0c8a[_0x1dac34[_0x2eafce(0xbd)]])===null||_0x328c7c===void 0x0?void 0x0:_0x328c7c[_0x2eafce(0x8a)](_0x41d73b=>_0x41d73b[_0x2eafce(0xba)]==_0x24196e&&_0x41d73b[_0x2eafce(0x7c)]===core_2[_0x2eafce(0xa4)]&&(_0x41d73b===null||_0x41d73b===void 0x0?void 0x0:_0x41d73b[_0x2eafce(0x94)]));if(_0x3a09a9===null||_0x3a09a9===void 0x0?void 0x0:_0x3a09a9[_0x2eafce(0x94)]){let _0x849cfa=convertTypeToString(_0x3a09a9['metadata'][_0x2eafce(0xc8)]||0x0);if(['query','body'][_0x2eafce(0xc9)](_0x849cfa)!=-0x1&&_0x3a09a9[_0x2eafce(0x94)]['propertyData'][_0x2eafce(0xc9)](':')==-0x1&&!_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0x8a)](_0x11e82d=>_0x11e82d[_0x2eafce(0x7c)]==_0x3a09a9['metadata']['propertyData']))_0x20c621['request']['push']({'key':_0x3a09a9[_0x2eafce(0x94)][_0x2eafce(0xc1)],'title':_0x3a09a9[_0x2eafce(0x94)][_0x2eafce(0xc1)],'type':convertSchemaType(_0x5dc4bb[_0x3a09a9[_0x2eafce(0xba)]][_0x2eafce(0xd0)]),'required':![],'default':'','desc':''});else{if(_0x849cfa==_0x2eafce(0x96)){let _0x1a8985=((_0x4645c9=_0x3a09a9===null||_0x3a09a9===void 0x0?void 0x0:_0x3a09a9[_0x2eafce(0x94)])===null||_0x4645c9===void 0x0?void 0x0:_0x4645c9[_0x2eafce(0xc1)])||'file';_0x1a8985[_0x2eafce(0xc9)](':')==-0x1&&!_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0x8a)](_0x409e19=>_0x409e19[_0x2eafce(0x7c)]==_0x1a8985&&_0x409e19[_0x2eafce(0xc8)]=='file')&&_0x20c621['request']['push']({'key':_0x1a8985,'title':'文件上传-'+_0x1a8985,'type':_0x2eafce(0x96),'required':!![],'default':'','desc':''});}}}else{const _0x1204fc=(0x0,core_3[_0x2eafce(0x86)])(validator_1[_0x2eafce(0xa6)],_0x5dc4bb[_0x24196e]);_0x1204fc&&_0x20c621[_0x2eafce(0xaf)][_0x2eafce(0xa2)](...getJoiRequest(_0x1204fc));}}}_0x1c8bd2[_0x2eafce(0xd9)][_0x2eafce(0xa2)](_0x20c621);}}if(_0x1c8bd2['routes'][_0x2eafce(0xa1)]>0x0){let _0x10952d=_0x4c88fb[_0x444e5d];_0x10952d?(_0x10952d[_0x2eafce(0xb9)]!=_0x1c8bd2['summary']&&(_0x10952d[_0x2eafce(0xb9)]=_0x10952d[_0x2eafce(0xb9)]+','+_0x1c8bd2[_0x2eafce(0xb9)]),_0x10952d['description']!=_0x1c8bd2[_0x2eafce(0xaa)]&&(_0x10952d[_0x2eafce(0xaa)]=_0x10952d[_0x2eafce(0xaa)]+','+_0x1c8bd2['description']),_0x10952d['routes']=_0x10952d[_0x2eafce(0xd9)]['concat'](_0x1c8bd2[_0x2eafce(0xd9)]),_0x4c88fb[_0x444e5d]=_0x10952d):_0x4c88fb[_0x444e5d]=_0x1c8bd2;}}}return _0x4c88fb;}exports[a9_0x17ae07(0xb3)]=getRoutes;function getJoiRequest(_0xacbc27){const _0x8ba577=a9_0x17ae07,_0x694a47=[];for(let _0x3070ae in _0xacbc27){const _0xcaa72f={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x20d9c2=typeof _0xacbc27[_0x3070ae][_0x8ba577(0xbb)]=='function'?_0xacbc27[_0x3070ae][_0x8ba577(0xbb)]():_0xacbc27[_0x3070ae];_0xcaa72f[_0x8ba577(0x7c)]=_0x3070ae,_0xcaa72f['type']=_0x20d9c2[_0x8ba577(0xc8)],_0xcaa72f[_0x8ba577(0xc0)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb4),_0x3070ae),_0xcaa72f[_0x8ba577(0x9a)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xd4),''),_0xcaa72f['required']=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb0),'')==_0x8ba577(0x89),_0xcaa72f[_0x8ba577(0xaa)]=(0x0,lodash_1[_0x8ba577(0x7e)])(_0x20d9c2,_0x8ba577(0xb1),'');if(_0x20d9c2[_0x8ba577(0xc8)]==_0x8ba577(0xbe))_0xcaa72f[_0x8ba577(0x81)]=getJoiRequest(_0x20d9c2['keys']);else{if(_0x20d9c2[_0x8ba577(0xc8)]=='array'&&_0x20d9c2['items']&&Array[_0x8ba577(0x8b)](_0x20d9c2['items'])&&_0x20d9c2[_0x8ba577(0x8d)][0x0]){}}_0x20d9c2[_0x8ba577(0xcc)]&&Array[_0x8ba577(0x8b)](_0x20d9c2[_0x8ba577(0xcc)])&&_0x20d9c2['allow'][_0x8ba577(0xa1)]>0x0&&(_0xcaa72f[_0x8ba577(0xaa)]=_0x8ba577(0xa9)+_0x20d9c2['allow'][_0x8ba577(0xb6)](',')+'];'+_0xcaa72f['description']);if(_0xcaa72f[_0x8ba577(0x7c)]&&_0xcaa72f[_0x8ba577(0xc8)]){const _0x18f4f1={};for(const _0x2c2b84 of _0x20d9c2[_0x8ba577(0x95)]||[]){if(_0x2c2b84[_0x8ba577(0xd0)]===_0x8ba577(0xa3)&&_0x2c2b84[_0x8ba577(0xd8)])_0x18f4f1[_0x8ba577(0xa3)]=_0x2c2b84['args'][_0x8ba577(0x85)];else _0x2c2b84[_0x8ba577(0xd0)]===_0x8ba577(0x7b)&&(_0x18f4f1[_0x8ba577(0x7b)]=_0x2c2b84[_0x8ba577(0xd8)][_0x8ba577(0x85)]);}_0xcaa72f[_0x8ba577(0x95)]=_0x18f4f1;}_0xcaa72f[_0x8ba577(0x7c)]&&_0xcaa72f[_0x8ba577(0xc0)]&&_0x694a47[_0x8ba577(0xa2)](_0xcaa72f);}return _0x694a47;}function convertSchemaType(_0x5a2254){const _0x4d1bac=a9_0x17ae07;switch(_0x5a2254){case'Object':return _0x4d1bac(0xbe);case _0x4d1bac(0xd6):return _0x4d1bac(0x9d);case _0x4d1bac(0x7d):return'number';case _0x4d1bac(0xc6):return'string';case _0x4d1bac(0xb5):return _0x4d1bac(0x96);default:return'string';}}function a9_0x124c(){const _0xd095a5=['query','children','FILESTREAM','RouteParamTypes','PARAM','limit','getClassExtendedMetadata','10RsksGv','(((.+)+)+)+$','required','find','isArray','filepath','items','@anncic-api/validator','745644uOXGlx','endsWith','routerOptions','header','prefix','metadata','rules','file','filter','route','intercept','default','path','test','boolean','33aeknGV','listModule','INJECT_CUSTOM_PARAM','length','push','min','WEB_ROUTER_PARAM_KEY','18687KUXPty','RULES_KEY','2857383qqcpNK','../types/action','只允许:[','description','pprefix','split','getClassMetadata','4gGmMMx','request','flags.presence','flags.description','QUERY','getRoutes','flags.label','File','join','replace','tagName','summary','parameterIndex','describe','module','method','object','__esModule','title','propertyData','search','ACTION_KEY','toString','36226nvPiPc','String','50214CpdoTs','type','indexOf','noreq','function','allow','requestMethod','922880oDeEda','3319128zpyimz','name','iterator','routerName','217EIIVVT','flags.default','body','Boolean','12gFJskA','args','routes','@midwayjs/core','startsWith','max','key','Number','get','defineProperty'];a9_0x124c=function(){return _0xd095a5;};return a9_0x124c();}function convertTypeToString(_0x4a1661){const _0x56edb2=a9_0x17ae07;switch(_0x4a1661){case core_1['RouteParamTypes']['HEADERS']:return _0x56edb2(0x92);case core_1[_0x56edb2(0x83)][_0x56edb2(0xb2)]:return _0x56edb2(0x80);case core_1[_0x56edb2(0x83)][_0x56edb2(0x84)]:return _0x56edb2(0x9b);case core_1['RouteParamTypes']['BODY']:return _0x56edb2(0xd5);case core_1[_0x56edb2(0x83)]['FIELDS']:case core_1[_0x56edb2(0x83)]['FILESSTREAM']:case core_1['RouteParamTypes'][_0x56edb2(0x82)]:return _0x56edb2(0x96);default:return'header';}}
|
|
1
|
+
const a9_0x48c4af=a9_0x2f8b;(function(_0x4b822c,_0xe22b1b){const _0x5beef7=a9_0x2f8b,_0x311ac1=_0x4b822c();while(!![]){try{const _0x1b3c57=parseInt(_0x5beef7(0xf4))/0x1+parseInt(_0x5beef7(0x103))/0x2+parseInt(_0x5beef7(0xfe))/0x3+-parseInt(_0x5beef7(0xd2))/0x4+parseInt(_0x5beef7(0xfc))/0x5*(-parseInt(_0x5beef7(0xb0))/0x6)+-parseInt(_0x5beef7(0xda))/0x7+parseInt(_0x5beef7(0xca))/0x8;if(_0x1b3c57===_0xe22b1b)break;else _0x311ac1['push'](_0x311ac1['shift']());}catch(_0x58a464){_0x311ac1['push'](_0x311ac1['shift']());}}}(a9_0x1c4e,0x74cc7));const a9_0x3eb41a=(function(){let _0x18194a=!![];return function(_0x37fbe2,_0x55a4be){const _0x674f9f=_0x18194a?function(){const _0x30ba95=a9_0x2f8b;if(_0x55a4be){const _0x484c1b=_0x55a4be[_0x30ba95(0xd7)](_0x37fbe2,arguments);return _0x55a4be=null,_0x484c1b;}}:function(){};return _0x18194a=![],_0x674f9f;};}()),a9_0x2400d4=a9_0x3eb41a(this,function(){const _0x394ab9=a9_0x2f8b;return a9_0x2400d4[_0x394ab9(0xd0)]()[_0x394ab9(0xd4)](_0x394ab9(0xee))[_0x394ab9(0xd0)]()[_0x394ab9(0xd5)](a9_0x2400d4)[_0x394ab9(0xd4)]('(((.+)+)+)+$');});a9_0x2400d4();function a9_0x2f8b(_0x55c0f2,_0x524e82){const _0x511977=a9_0x1c4e();return a9_0x2f8b=function(_0x2400d4,_0x3eb41a){_0x2400d4=_0x2400d4-0xa9;let _0x1c4e3d=_0x511977[_0x2400d4];return _0x1c4e3d;},a9_0x2f8b(_0x55c0f2,_0x524e82);}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a9_0x48c4af(0xc2)]=void 0x0;function a9_0x1c4e(){const _0x51f011=['min','getRoutes','header','allow','只允许:[','method','Boolean','module','request','2468896LqOtBQ','File','flags.default','isArray','summary','push','toString','length','1749076lXcFUH','title','search','constructor','find','apply','number','body','833882dCDZMm','args','query','replace','object','children','getClassMetadata','limit','listModule','iterator','name','propertyData','BODY','getMethodParamTypes','RouteParamTypes','default','type','filepath','function','rules','(((.+)+)+)+$','filter','endsWith','string','RULES_KEY','FIELDS','801204gdjQyi','tagName','join','keys','split','path','ACTION_ROUTE_KEY','test','4095RVLBTo','intercept','1541487nCRtBG','describe','array','get','prefix','352206HjkNYF','@anncic-api/validator','@midwayjs/core','pprefix','flags.label','Object','metadata','route','max','required','indexOf','5604UKbNIB','/static/apitest','description','parameterIndex','../types/action','concat','FILESTREAM','FILESSTREAM','noreq','WEB_ROUTER_PARAM_KEY','QUERY','INJECT_CUSTOM_PARAM','file','key','startsWith','routerOptions','routes'];a9_0x1c4e=function(){return _0x51f011;};return a9_0x1c4e();}const lodash_1=require('lodash'),validator_1=require(a9_0x48c4af(0x104)),core_1=require(a9_0x48c4af(0x105)),core_2=require(a9_0x48c4af(0x105)),core_3=require(a9_0x48c4af(0x105)),action_1=require(a9_0x48c4af(0xb4));function getRoutes(_0x188eb9={'prefix':'/','module':![]}){const _0x33826c=a9_0x48c4af;var _0x54c427,_0xedaf7a;const _0x4925e0=(0x0,core_3[_0x33826c(0xe2)])(action_1['ACTION_KEY']),_0x546546={},_0x41fda9=Array[_0x33826c(0xcd)](_0x188eb9[_0x33826c(0xef)]||[])?_0x188eb9[_0x33826c(0xef)]||[]:[_0x188eb9[_0x33826c(0xef)]];_0x2a7595:for(const _0x213089 of _0x4925e0){let _0x2d4cff=(0x0,core_3[_0x33826c(0xe0)])(action_1['ACTION_KEY'],_0x213089),_0x257df9=(0x0,core_3['getClassMetadata'])(action_1[_0x33826c(0xfa)],_0x213089);if(_0x2d4cff&&_0x257df9){let _0x5f1338=_0x2d4cff['prefix'],_0x545130={};if(_0x188eb9[_0x33826c(0xc8)]&&(0x0,lodash_1[_0x33826c(0x101)])(_0x2d4cff,'module',![])!=_0x188eb9[_0x33826c(0xc8)])continue _0x2a7595;else{if(_0x188eb9[_0x33826c(0xc8)]===![]&&!!(0x0,lodash_1[_0x33826c(0x101)])(_0x2d4cff,'module',null))continue _0x2a7595;}if(_0x188eb9[_0x33826c(0x102)]&&!_0x5f1338[_0x33826c(0xbe)](_0x188eb9[_0x33826c(0x102)]))continue _0x2a7595;_0x5f1338!=='/'?(_0x545130[_0x33826c(0xce)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)]['tagName'])||(/^\//[_0x33826c(0xfb)](_0x5f1338)?_0x5f1338[_0x33826c(0xf8)]('/')[0x1]:_0x5f1338),_0x545130[_0x33826c(0xb2)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)][_0x33826c(0xb2)])||_0x545130[_0x33826c(0xce)],_0x545130[_0x33826c(0xc0)]=[]):(_0x545130['summary']=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)][_0x33826c(0xf5)])||_0x33826c(0xe9),_0x545130[_0x33826c(0xb2)]=(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xbf)]['description'])||'',_0x545130[_0x33826c(0xc0)]=[]);_0x188eb9[_0x33826c(0xeb)]&&(_0x545130[_0x33826c(0xeb)]=_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff['filepath']);(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff['pprefix'])&&(_0x545130['prefix']=_0x2d4cff[_0x33826c(0x106)]);(_0x2d4cff===null||_0x2d4cff===void 0x0?void 0x0:_0x2d4cff[_0x33826c(0xc8)])&&(_0x545130[_0x33826c(0xc8)]=_0x2d4cff[_0x33826c(0xc8)]);let _0x3e44de=(0x0,core_3[_0x33826c(0xe0)])(core_2[_0x33826c(0xbb)],_0x213089)||{};if(typeof _0x257df9[Symbol[_0x33826c(0xe3)]]==='function')for(let _0x43593b of _0x257df9){if((_0x188eb9===null||_0x188eb9===void 0x0?void 0x0:_0x188eb9[_0x33826c(0xfd)])&&!(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b[_0x33826c(0xfd)]))continue;let _0x47b0d8={};_0x47b0d8['method']=_0x43593b['requestMethod'],_0x47b0d8[_0x33826c(0xac)]=(_0x5f1338+_0x43593b[_0x33826c(0xf9)])[_0x33826c(0xdd)](/\/{2,}/g,'/'),_0x47b0d8[_0x33826c(0xce)]=(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b['routerName'])||_0x545130['summary']||'default',_0x47b0d8[_0x33826c(0xb2)]=(_0x43593b===null||_0x43593b===void 0x0?void 0x0:_0x43593b['description'])||'',_0x47b0d8[_0x33826c(0xc9)]=[];_0x47b0d8['route'][_0x33826c(0xf0)]('/')&&(_0x47b0d8[_0x33826c(0xac)]=_0x47b0d8[_0x33826c(0xac)]['substring'](0x0,_0x47b0d8['route']['length']-0x1));if(!(0x0,lodash_1[_0x33826c(0xbe)])(_0x47b0d8[_0x33826c(0xac)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x47b0d8[_0x33826c(0xac)],_0x33826c(0xb1))&&_0x41fda9[_0x33826c(0xaf)](_0x47b0d8[_0x33826c(0xac)])===-0x1){if(!(_0x188eb9===null||_0x188eb9===void 0x0?void 0x0:_0x188eb9[_0x33826c(0xb8)])){let _0x503b1b=(0x0,core_3[_0x33826c(0xe7)])(new _0x213089(),_0x43593b[_0x33826c(0xc6)]);for(const _0xe05dd2 in _0x503b1b){let _0x3edc56=(_0x54c427=_0x3e44de[_0x43593b[_0x33826c(0xc6)]])===null||_0x54c427===void 0x0?void 0x0:_0x54c427['find'](_0x13b0cc=>_0x13b0cc[_0x33826c(0xb3)]==_0xe05dd2&&_0x13b0cc['key']===core_2[_0x33826c(0xb9)]&&(_0x13b0cc===null||_0x13b0cc===void 0x0?void 0x0:_0x13b0cc[_0x33826c(0xab)]));if(_0x3edc56===null||_0x3edc56===void 0x0?void 0x0:_0x3edc56[_0x33826c(0xab)]){let _0x27ffea=convertTypeToString(_0x3edc56[_0x33826c(0xab)]['type']||0x0);if(['query',_0x33826c(0xd9)][_0x33826c(0xaf)](_0x27ffea)!=-0x1&&_0x3edc56['metadata'][_0x33826c(0xe5)][_0x33826c(0xaf)](':')==-0x1&&!_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xd6)](_0x28104f=>_0x28104f[_0x33826c(0xbd)]==_0x3edc56[_0x33826c(0xab)][_0x33826c(0xe5)]))_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)]({'key':_0x3edc56['metadata'][_0x33826c(0xe5)],'title':_0x3edc56['metadata'][_0x33826c(0xe5)],'type':convertSchemaType(_0x503b1b[_0x3edc56[_0x33826c(0xb3)]]['name']),'required':![],'default':'','desc':''});else{if(_0x27ffea==_0x33826c(0xbc)){let _0x3a783c=((_0xedaf7a=_0x3edc56===null||_0x3edc56===void 0x0?void 0x0:_0x3edc56[_0x33826c(0xab)])===null||_0xedaf7a===void 0x0?void 0x0:_0xedaf7a['propertyData'])||_0x33826c(0xbc);_0x3a783c[_0x33826c(0xaf)](':')==-0x1&&!_0x47b0d8['request'][_0x33826c(0xd6)](_0x12d771=>_0x12d771[_0x33826c(0xbd)]==_0x3a783c&&_0x12d771[_0x33826c(0xea)]==_0x33826c(0xbc))&&_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)]({'key':_0x3a783c,'title':'文件上传-'+_0x3a783c,'type':_0x33826c(0xbc),'required':!![],'default':'','desc':''});}}}else{const _0x2783db=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x33826c(0xf2)],_0x503b1b[_0xe05dd2]);_0x2783db&&_0x47b0d8[_0x33826c(0xc9)][_0x33826c(0xcf)](...getJoiRequest(_0x2783db));}}}_0x545130[_0x33826c(0xc0)][_0x33826c(0xcf)](_0x47b0d8);}}if(_0x545130[_0x33826c(0xc0)]['length']>0x0){let _0x53f440=_0x546546[_0x5f1338];_0x53f440?(_0x53f440[_0x33826c(0xce)]!=_0x545130[_0x33826c(0xce)]&&(_0x53f440['summary']=_0x53f440[_0x33826c(0xce)]+','+_0x545130[_0x33826c(0xce)]),_0x53f440[_0x33826c(0xb2)]!=_0x545130[_0x33826c(0xb2)]&&(_0x53f440[_0x33826c(0xb2)]=_0x53f440['description']+','+_0x545130['description']),_0x53f440[_0x33826c(0xc0)]=_0x53f440['routes'][_0x33826c(0xb5)](_0x545130[_0x33826c(0xc0)]),_0x546546[_0x5f1338]=_0x53f440):_0x546546[_0x5f1338]=_0x545130;}}}return _0x546546;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x4a4664){const _0x17aee0=a9_0x48c4af,_0xbc7da=[];for(let _0x3f3a6a in _0x4a4664){const _0x17e885={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x348ed0=typeof _0x4a4664[_0x3f3a6a][_0x17aee0(0xff)]==_0x17aee0(0xec)?_0x4a4664[_0x3f3a6a][_0x17aee0(0xff)]():_0x4a4664[_0x3f3a6a];_0x17e885[_0x17aee0(0xbd)]=_0x3f3a6a,_0x17e885[_0x17aee0(0xea)]=_0x348ed0[_0x17aee0(0xea)],_0x17e885['title']=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,_0x17aee0(0xa9),_0x3f3a6a),_0x17e885[_0x17aee0(0xe9)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,_0x17aee0(0xcc),''),_0x17e885[_0x17aee0(0xae)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,'flags.presence','')==_0x17aee0(0xae),_0x17e885[_0x17aee0(0xb2)]=(0x0,lodash_1[_0x17aee0(0x101)])(_0x348ed0,'flags.description','');if(_0x348ed0['type']==_0x17aee0(0xde))_0x17e885[_0x17aee0(0xdf)]=getJoiRequest(_0x348ed0[_0x17aee0(0xf7)]);else{if(_0x348ed0[_0x17aee0(0xea)]==_0x17aee0(0x100)&&_0x348ed0['items']&&Array[_0x17aee0(0xcd)](_0x348ed0['items'])&&_0x348ed0['items'][0x0]){}}_0x348ed0[_0x17aee0(0xc4)]&&Array[_0x17aee0(0xcd)](_0x348ed0['allow'])&&_0x348ed0[_0x17aee0(0xc4)][_0x17aee0(0xd1)]>0x0&&(_0x17e885[_0x17aee0(0xb2)]=_0x17aee0(0xc5)+_0x348ed0[_0x17aee0(0xc4)][_0x17aee0(0xf6)](',')+'];'+_0x17e885['description']);if(_0x17e885[_0x17aee0(0xbd)]&&_0x17e885[_0x17aee0(0xea)]){const _0x565b3e={};for(const _0x4597e0 of _0x348ed0[_0x17aee0(0xed)]||[]){if(_0x4597e0[_0x17aee0(0xe4)]===_0x17aee0(0xc1)&&_0x4597e0['args'])_0x565b3e[_0x17aee0(0xc1)]=_0x4597e0[_0x17aee0(0xdb)][_0x17aee0(0xe1)];else _0x4597e0['name']===_0x17aee0(0xad)&&(_0x565b3e['max']=_0x4597e0[_0x17aee0(0xdb)][_0x17aee0(0xe1)]);}_0x17e885[_0x17aee0(0xed)]=_0x565b3e;}_0x17e885[_0x17aee0(0xbd)]&&_0x17e885[_0x17aee0(0xd3)]&&_0xbc7da[_0x17aee0(0xcf)](_0x17e885);}return _0xbc7da;}function convertSchemaType(_0xe3f017){const _0x6b6c5b=a9_0x48c4af;switch(_0xe3f017){case _0x6b6c5b(0xaa):return _0x6b6c5b(0xde);case _0x6b6c5b(0xc7):return'boolean';case'Number':return _0x6b6c5b(0xd8);case'String':return'string';case _0x6b6c5b(0xcb):return _0x6b6c5b(0xbc);default:return _0x6b6c5b(0xf1);}}function convertTypeToString(_0x2c2eb4){const _0x4bf493=a9_0x48c4af;switch(_0x2c2eb4){case core_1['RouteParamTypes']['HEADERS']:return _0x4bf493(0xc3);case core_1[_0x4bf493(0xe8)][_0x4bf493(0xba)]:return _0x4bf493(0xdc);case core_1['RouteParamTypes']['PARAM']:return _0x4bf493(0xf9);case core_1['RouteParamTypes'][_0x4bf493(0xe6)]:return'body';case core_1[_0x4bf493(0xe8)][_0x4bf493(0xf3)]:case core_1['RouteParamTypes'][_0x4bf493(0xb7)]:case core_1[_0x4bf493(0xe8)][_0x4bf493(0xb6)]:return _0x4bf493(0xbc);default:return _0x4bf493(0xc3);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a10_0x576ed2=a10_0x31ce;function a10_0x1104(){var _0x724b08=['./service/ApitestService','./exception/ApiError','386345EoeHJO','./service/ExcelService','Singleton','Api','App','@anncic-api/cache','File','Headers','./types/common','212280QPmuaE','Inject','Provide','getOwnPropertyDescriptor','Files','CacheService','toString','@anncic-api/event','1450XihDVt','ExcelService','(((.+)+)+)+$','17545jmrGex','Fields','./helper/getAppsConfig','hasOwnProperty','getAppsConfig','__exportStar','ApiService','1421748yxdwOw','Body','53557UiMOCp','454549TUAWDt','./helper/getRoutes','EventService','IIntercept','Query','constructor','./decorator/Intercept','__createBinding','getRoutes','Init','Config','ValidatorError','ValidatorService','Configuration','Apitest','CustomConfiguration','apply','16ILYNuy','Logger','search','Param','default','@midwayjs/core','60fBwQir','call','defineProperty','Action','prototype','Scope','ApiError','./configuration','Intercept','ScopeEnum','169263JMIDmX','304nAxvHk','configurable'];a10_0x1104=function(){return _0x724b08;};return a10_0x1104();}(function(_0x4cb66a,_0x2532e4){var _0x34fac9=a10_0x31ce,_0x12b618=_0x4cb66a();while(!![]){try{var _0x4128d7=parseInt(_0x34fac9(0xaa))/0x1+parseInt(_0x34fac9(0x77))/0x2*(parseInt(_0x34fac9(0x95))/0x3)+parseInt(_0x34fac9(0xa7))/0x4+-parseInt(_0x34fac9(0x8c))/0x5+-parseInt(_0x34fac9(0x7d))/0x6*(-parseInt(_0x34fac9(0xa9))/0x7)+-parseInt(_0x34fac9(0x88))/0x8*(parseInt(_0x34fac9(0x87))/0x9)+parseInt(_0x34fac9(0x9d))/0xa*(-parseInt(_0x34fac9(0xa0))/0xb);if(_0x4128d7===_0x2532e4)break;else _0x12b618['push'](_0x12b618['shift']());}catch(_0x1b0562){_0x12b618['push'](_0x12b618['shift']());}}}(a10_0x1104,0x68d36));var a10_0x68d995=(function(){var _0x3c6a34=!![];return function(_0x5bebbe,_0x2e42b2){var _0x1e3224=_0x3c6a34?function(){var _0x46b3a0=a10_0x31ce;if(_0x2e42b2){var _0x1a4fb1=_0x2e42b2[_0x46b3a0(0x76)](_0x5bebbe,arguments);return _0x2e42b2=null,_0x1a4fb1;}}:function(){};return _0x3c6a34=![],_0x1e3224;};}()),a10_0x39eb39=a10_0x68d995(this,function(){var _0x36ac2d=a10_0x31ce;return a10_0x39eb39['toString']()[_0x36ac2d(0x79)](_0x36ac2d(0x9f))[_0x36ac2d(0x9b)]()[_0x36ac2d(0xaf)](a10_0x39eb39)[_0x36ac2d(0x79)](_0x36ac2d(0x9f));});a10_0x39eb39();'use strict';var __createBinding=this&&this[a10_0x576ed2(0x6d)]||(Object['create']?function(_0x1b1fba,_0x334086,_0x14f8a4,_0x44a928){var _0x2b5fe9=a10_0x576ed2;if(_0x44a928===undefined)_0x44a928=_0x14f8a4;var _0x3fcfa6=Object[_0x2b5fe9(0x98)](_0x334086,_0x14f8a4);(!_0x3fcfa6||('get'in _0x3fcfa6?!_0x334086['__esModule']:_0x3fcfa6['writable']||_0x3fcfa6[_0x2b5fe9(0x89)]))&&(_0x3fcfa6={'enumerable':!![],'get':function(){return _0x334086[_0x14f8a4];}}),Object[_0x2b5fe9(0x7f)](_0x1b1fba,_0x44a928,_0x3fcfa6);}:function(_0xc8c3e5,_0xb0d0f7,_0x443176,_0x555bf5){if(_0x555bf5===undefined)_0x555bf5=_0x443176;_0xc8c3e5[_0x555bf5]=_0xb0d0f7[_0x443176];}),__exportStar=this&&this[a10_0x576ed2(0xa5)]||function(_0x1aa58e,_0x43db37){var _0x2d68b0=a10_0x576ed2;for(var _0xdbf14a in _0x1aa58e)if(_0xdbf14a!==_0x2d68b0(0x7b)&&!Object[_0x2d68b0(0x81)][_0x2d68b0(0xa3)][_0x2d68b0(0x7e)](_0x43db37,_0xdbf14a))__createBinding(_0x43db37,_0x1aa58e,_0xdbf14a);};Object[a10_0x576ed2(0x7f)](exports,'__esModule',{'value':!![]}),exports['getAppsConfig']=exports[a10_0x576ed2(0x86)]=exports[a10_0x576ed2(0x8e)]=exports['Scope']=exports['Inject']=exports['Provide']=exports[a10_0x576ed2(0x78)]=exports[a10_0x576ed2(0x70)]=exports[a10_0x576ed2(0x90)]=exports[a10_0x576ed2(0x6f)]=exports[a10_0x576ed2(0x93)]=exports['Query']=exports[a10_0x576ed2(0x7a)]=exports[a10_0x576ed2(0xa8)]=exports[a10_0x576ed2(0xa1)]=exports[a10_0x576ed2(0x99)]=exports['File']=exports[a10_0x576ed2(0x73)]=exports[a10_0x576ed2(0x72)]=exports[a10_0x576ed2(0x71)]=exports[a10_0x576ed2(0x9e)]=exports[a10_0x576ed2(0xa6)]=exports[a10_0x576ed2(0xac)]=exports[a10_0x576ed2(0x9a)]=exports[a10_0x576ed2(0x83)]=exports[a10_0x576ed2(0x6e)]=exports[a10_0x576ed2(0xad)]=exports[a10_0x576ed2(0x85)]=exports[a10_0x576ed2(0x74)]=exports['Action']=exports[a10_0x576ed2(0x8f)]=void 0x0;const getAppsConfig_1=require(a10_0x576ed2(0xa2));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0xa4),{'enumerable':!![],'get':function(){var _0x490572=a10_0x576ed2;return getAppsConfig_1[_0x490572(0xa4)];}}),__exportStar(require(a10_0x576ed2(0x94)),exports),__exportStar(require(a10_0x576ed2(0x8a)),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,a10_0x576ed2(0x8f),{'enumerable':!![],'get':function(){var _0x45c66d=a10_0x576ed2;return ActionApi_1[_0x45c66d(0x8f)];}});var Action_1=require('./decorator/Action');Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x80),{'enumerable':!![],'get':function(){return Action_1['Action'];}});var ActionApitest_1=require('./decorator/ActionApitest');Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x74),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var Intercept_1=require(a10_0x576ed2(0x6c));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x85),{'enumerable':!![],'get':function(){var _0x450719=a10_0x576ed2;return Intercept_1[_0x450719(0x85)];}}),Object['defineProperty'](exports,a10_0x576ed2(0xad),{'enumerable':!![],'get':function(){return Intercept_1['IIntercept'];}});var getRoutes_1=require(a10_0x576ed2(0xab));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x6e),{'enumerable':!![],'get':function(){var _0x123e2a=a10_0x576ed2;return getRoutes_1[_0x123e2a(0x6e)];}});var ApiError_1=require(a10_0x576ed2(0x8b));Object['defineProperty'](exports,a10_0x576ed2(0x83),{'enumerable':!![],'get':function(){var _0x2747c5=a10_0x576ed2;return ApiError_1[_0x2747c5(0x83)];}});var cache_1=require(a10_0x576ed2(0x91));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x9a),{'enumerable':!![],'get':function(){var _0xc97b8=a10_0x576ed2;return cache_1[_0xc97b8(0x9a)];}});var event_1=require(a10_0x576ed2(0x9c));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0xac),{'enumerable':!![],'get':function(){return event_1['EventService'];}});var ApiService_1=require('./service/ApiService');function a10_0x31ce(_0x346227,_0x535f77){var _0x18d6a4=a10_0x1104();return a10_0x31ce=function(_0x39eb39,_0x68d995){_0x39eb39=_0x39eb39-0x6c;var _0x1104f1=_0x18d6a4[_0x39eb39];return _0x1104f1;},a10_0x31ce(_0x346227,_0x535f77);}Object[a10_0x576ed2(0x7f)](exports,'ApiService',{'enumerable':!![],'get':function(){var _0xc7bd49=a10_0x576ed2;return ApiService_1[_0xc7bd49(0xa6)];}});var ExcelService_1=require(a10_0x576ed2(0x8d));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x9e),{'enumerable':!![],'get':function(){var _0x2d7f68=a10_0x576ed2;return ExcelService_1[_0x2d7f68(0x9e)];}});var validator_1=require('@anncic-api/validator');Object[a10_0x576ed2(0x7f)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x26a3f9=a10_0x576ed2;return validator_1[_0x26a3f9(0x71)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x72),{'enumerable':!![],'get':function(){var _0x26e31d=a10_0x576ed2;return validator_1[_0x26e31d(0x72)];}});var configuration_1=require(a10_0x576ed2(0x84));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x73),{'enumerable':!![],'get':function(){var _0x197fe6=a10_0x576ed2;return configuration_1[_0x197fe6(0x75)];}});var core_1=require(a10_0x576ed2(0x7c));Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x92),{'enumerable':!![],'get':function(){var _0x3022b2=a10_0x576ed2;return core_1[_0x3022b2(0x92)];}}),Object[a10_0x576ed2(0x7f)](exports,'Files',{'enumerable':!![],'get':function(){var _0x70a571=a10_0x576ed2;return core_1[_0x70a571(0x99)];}}),Object['defineProperty'](exports,a10_0x576ed2(0xa1),{'enumerable':!![],'get':function(){var _0x5c36fd=a10_0x576ed2;return core_1[_0x5c36fd(0xa1)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0xa8),{'enumerable':!![],'get':function(){var _0xc607df=a10_0x576ed2;return core_1[_0xc607df(0xa8)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x7a),{'enumerable':!![],'get':function(){var _0xcd163b=a10_0x576ed2;return core_1[_0xcd163b(0x7a)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0xae),{'enumerable':!![],'get':function(){var _0x1b1318=a10_0x576ed2;return core_1[_0x1b1318(0xae)];}}),Object[a10_0x576ed2(0x7f)](exports,'Headers',{'enumerable':!![],'get':function(){var _0xb34d31=a10_0x576ed2;return core_1[_0xb34d31(0x93)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x6f),{'enumerable':!![],'get':function(){var _0x30bcd8=a10_0x576ed2;return core_1[_0x30bcd8(0x6f)];}});var core_2=require(a10_0x576ed2(0x7c));Object['defineProperty'](exports,a10_0x576ed2(0x90),{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,a10_0x576ed2(0x70),{'enumerable':!![],'get':function(){var _0x4e0bc0=a10_0x576ed2;return core_2[_0x4e0bc0(0x70)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x78),{'enumerable':!![],'get':function(){var _0x95e922=a10_0x576ed2;return core_2[_0x95e922(0x78)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x97),{'enumerable':!![],'get':function(){return core_2['Provide'];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x96),{'enumerable':!![],'get':function(){var _0x44c2e7=a10_0x576ed2;return core_2[_0x44c2e7(0x96)];}}),Object[a10_0x576ed2(0x7f)](exports,a10_0x576ed2(0x82),{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,'Singleton',{'enumerable':!![],'get':function(){return core_2['Singleton'];}}),Object[a10_0x576ed2(0x7f)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x4ba7ad=a10_0x576ed2;return core_2[_0x4ba7ad(0x86)];}}),global['getAppsConfig']=getAppsConfig_1[a10_0x576ed2(0xa4)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x150e07=a11_0x53ab;(function(_0x1f8563,_0x1391f1){var _0x3ce080=a11_0x53ab,_0x1c165d=_0x1f8563();while(!![]){try{var _0x50bd6c=parseInt(_0x3ce080(0x213))/0x1+-parseInt(_0x3ce080(0x20b))/0x2+-parseInt(_0x3ce080(0x1f4))/0x3+-parseInt(_0x3ce080(0x220))/0x4+-parseInt(_0x3ce080(0x227))/0x5*(parseInt(_0x3ce080(0x224))/0x6)+-parseInt(_0x3ce080(0x1f9))/0x7*(-parseInt(_0x3ce080(0x225))/0x8)+parseInt(_0x3ce080(0x21e))/0x9*(parseInt(_0x3ce080(0x228))/0xa);if(_0x50bd6c===_0x1391f1)break;else _0x1c165d['push'](_0x1c165d['shift']());}catch(_0x24a679){_0x1c165d['push'](_0x1c165d['shift']());}}}(a11_0x27ab,0xb7073));var a11_0x537264=(function(){var _0x29f468=!![];return function(_0x513464,_0x171527){var _0x5845df=_0x29f468?function(){var _0x244ed8=a11_0x53ab;if(_0x171527){var _0x48e80c=_0x171527[_0x244ed8(0x1f6)](_0x513464,arguments);return _0x171527=null,_0x48e80c;}}:function(){};return _0x29f468=![],_0x5845df;};}()),a11_0x525333=a11_0x537264(this,function(){var _0x4fe50f=a11_0x53ab;return a11_0x525333[_0x4fe50f(0x218)]()[_0x4fe50f(0x205)]('(((.+)+)+)+$')[_0x4fe50f(0x218)]()[_0x4fe50f(0x1fb)](a11_0x525333)['search'](_0x4fe50f(0x22b));});a11_0x525333();'use strict';var __decorate=this&&this['__decorate']||function(_0x5ad805,_0x34f9fc,_0x39ab7e,_0x4d0aac){var _0x5de9c7=a11_0x53ab,_0x170014=arguments[_0x5de9c7(0x21f)],_0x13eb32=_0x170014<0x3?_0x34f9fc:_0x4d0aac===null?_0x4d0aac=Object[_0x5de9c7(0x1fd)](_0x34f9fc,_0x39ab7e):_0x4d0aac,_0x23bfd4;if(typeof Reflect===_0x5de9c7(0x1f1)&&typeof Reflect[_0x5de9c7(0x229)]===_0x5de9c7(0x1f7))_0x13eb32=Reflect[_0x5de9c7(0x229)](_0x5ad805,_0x34f9fc,_0x39ab7e,_0x4d0aac);else{for(var _0x2bf2dc=_0x5ad805[_0x5de9c7(0x21f)]-0x1;_0x2bf2dc>=0x0;_0x2bf2dc--)if(_0x23bfd4=_0x5ad805[_0x2bf2dc])_0x13eb32=(_0x170014<0x3?_0x23bfd4(_0x13eb32):_0x170014>0x3?_0x23bfd4(_0x34f9fc,_0x39ab7e,_0x13eb32):_0x23bfd4(_0x34f9fc,_0x39ab7e))||_0x13eb32;}return _0x170014>0x3&&_0x13eb32&&Object[_0x5de9c7(0x1f2)](_0x34f9fc,_0x39ab7e,_0x13eb32),_0x13eb32;},__metadata=this&&this['__metadata']||function(_0x1d3669,_0x345130){var _0x2d8386=a11_0x53ab;if(typeof Reflect==='object'&&typeof Reflect[_0x2d8386(0x217)]===_0x2d8386(0x1f7))return Reflect[_0x2d8386(0x217)](_0x1d3669,_0x345130);};Object['defineProperty'](exports,a11_0x150e07(0x1f0),{'value':!![]}),exports[a11_0x150e07(0x1f8)]=void 0x0;function a11_0x27ab(){var _0x35cfd6=['anncicapi','2336685CHvDsk','logintimeout','apply','function','ApiService','35dwvhMf','requesttime','constructor','secret=','getOwnPropertyDescriptor','timeout','design:type','请求超时,请重试或改善网络环境','token','Config','config','HEADERS_CHECKCODE','search','@midwayjs/core','HEADERS_LACK','device','checksign','toLowerCase','2731312eQuOrR','map','checkcode','ApiError','缺少头信息:','TIMEOUT','entries','prototype','525247gcoCfa','signature','devices','MD5','metadata','toString','Scope','push','缺少头信息:signature','password','Singleton','54ZCIOaA','length','1125588JSbYer','sort','abs','HEADERS_DEVICE','6SzZqLQ','482168GfdMfI','undefined','2253695xVGeju','4666280fjkQZU','decorate','secret','(((.+)+)+)+$','getsign','logintime','now','../exception/ApiError','ScopeEnum','__esModule','object','defineProperty'];a11_0x27ab=function(){return _0x35cfd6;};return a11_0x27ab();}const crypto_js_1=require('crypto-js'),core_1=require(a11_0x150e07(0x206)),ApiError_1=require(a11_0x150e07(0x1ee));let ApiService=class ApiService{[a11_0x150e07(0x21c)](_0x58b9d9){var _0x12df8e=a11_0x150e07,_0x3c5945;return _0x58b9d9?(0x0,crypto_js_1[_0x12df8e(0x216)])(''+_0x58b9d9+(0x0,crypto_js_1[_0x12df8e(0x216)])((0x0,crypto_js_1[_0x12df8e(0x216)])(''+_0x58b9d9)[_0x12df8e(0x218)]()+(''+((_0x3c5945=this[_0x12df8e(0x203)])===null||_0x3c5945===void 0x0?void 0x0:_0x3c5945[_0x12df8e(0x21c)])))['toString']())[_0x12df8e(0x218)]():'';}['getcheck'](_0x227b78,_0x122763,_0xb9e349=Date[a11_0x150e07(0x22e)]()){return{'Token':_0x227b78,'Logintime':_0xb9e349,'Checkcode':this['checkcode'](_0x227b78,_0x122763,_0xb9e349)};}[a11_0x150e07(0x22c)](_0x59fe99={}){var _0x281fb7=a11_0x150e07,_0x52fea7,_0x22d16d;const _0x4ed498=[],_0x1a3ab7=Object['fromEntries'](Object[_0x281fb7(0x211)](_0x59fe99)['map'](_0x51bd87=>[_0x51bd87[0x0]['toLowerCase'](),_0x51bd87[0x1]]));for(let _0x3335bc of[_0x281fb7(0x208),_0x281fb7(0x1fa),_0x281fb7(0x201),_0x281fb7(0x22d),_0x281fb7(0x20d)]){if(typeof _0x1a3ab7[_0x3335bc]==_0x281fb7(0x226))throw new AnnError(ApiError_1[_0x281fb7(0x20e)][_0x281fb7(0x207)],{'message':_0x281fb7(0x20f)+_0x3335bc});_0x4ed498[_0x281fb7(0x21a)](_0x3335bc+'='+_0x1a3ab7[_0x3335bc]);}_0x1a3ab7['requesttime']&&((_0x52fea7=_0x1a3ab7['requesttime'])===null||_0x52fea7===void 0x0?void 0x0:_0x52fea7[_0x281fb7(0x21f)])==0xa&&(_0x1a3ab7[_0x281fb7(0x1fa)]=_0x1a3ab7[_0x281fb7(0x1fa)]*0x3e8);if(this[_0x281fb7(0x203)][_0x281fb7(0x1fe)]&&Date['now']()-Math[_0x281fb7(0x222)](_0x1a3ab7[_0x281fb7(0x1fa)])>this['config'][_0x281fb7(0x1fe)])throw new AnnError(ApiError_1['ApiError'][_0x281fb7(0x210)],{'message':_0x281fb7(0x200),'requesttime':_0x1a3ab7[_0x281fb7(0x1fa)],'timestamp':Date[_0x281fb7(0x22e)]()});if((((_0x22d16d=this[_0x281fb7(0x203)][_0x281fb7(0x215)][_0x1a3ab7[_0x281fb7(0x208)]])===null||_0x22d16d===void 0x0?void 0x0:_0x22d16d[_0x281fb7(0x1f5)])||0x0)>0x0&&Date[_0x281fb7(0x22e)]()-Math['abs'](_0x1a3ab7[_0x281fb7(0x22d)])>this[_0x281fb7(0x203)]['devices'][_0x1a3ab7[_0x281fb7(0x208)]]['logintimeout'])throw new AnnError(ApiError_1[_0x281fb7(0x20e)]['TIMEOUT_LOGINTIME']);if(!this[_0x281fb7(0x203)][_0x281fb7(0x215)][_0x1a3ab7[_0x281fb7(0x208)]]||!this[_0x281fb7(0x203)]['devices'][_0x1a3ab7[_0x281fb7(0x208)]][_0x281fb7(0x22a)]||!this[_0x281fb7(0x203)][_0x281fb7(0x215)][_0x1a3ab7[_0x281fb7(0x208)]][_0x281fb7(0x20d)])throw new AnnError(ApiError_1[_0x281fb7(0x20e)]['HEADERS_DEVICE']);if(_0x1a3ab7[_0x281fb7(0x201)]&&_0x1a3ab7[_0x281fb7(0x20d)]!=this[_0x281fb7(0x20d)](_0x1a3ab7[_0x281fb7(0x201)],_0x1a3ab7[_0x281fb7(0x208)],_0x1a3ab7[_0x281fb7(0x22d)]))throw new AnnError(ApiError_1['ApiError'][_0x281fb7(0x204)]);return _0x4ed498[_0x281fb7(0x21a)](_0x281fb7(0x1fc)+this[_0x281fb7(0x203)][_0x281fb7(0x215)][_0x1a3ab7['device']]['secret']),(0x0,crypto_js_1[_0x281fb7(0x216)])(_0x4ed498[_0x281fb7(0x221)]()['join'](''))[_0x281fb7(0x218)]();}[a11_0x150e07(0x20d)](_0x36fec4,_0x1e8469,_0x207f3d=Date[a11_0x150e07(0x22e)]()){var _0x4f72cc=a11_0x150e07,_0x58e210,_0x267b36,_0x1a080f;if(!((_0x58e210=this[_0x4f72cc(0x203)])===null||_0x58e210===void 0x0?void 0x0:_0x58e210[_0x4f72cc(0x215)][_0x1e8469])||!((_0x1a080f=(_0x267b36=this[_0x4f72cc(0x203)])===null||_0x267b36===void 0x0?void 0x0:_0x267b36[_0x4f72cc(0x215)][_0x1e8469])===null||_0x1a080f===void 0x0?void 0x0:_0x1a080f['checkcode']))throw new AnnError(ApiError_1[_0x4f72cc(0x20e)][_0x4f72cc(0x223)]);return(0x0,crypto_js_1[_0x4f72cc(0x216)])(''+_0x36fec4+(0x0,crypto_js_1[_0x4f72cc(0x216)])(''+_0x207f3d+(''+this[_0x4f72cc(0x203)][_0x4f72cc(0x215)][_0x1e8469][_0x4f72cc(0x20d)]))[_0x4f72cc(0x218)]())[_0x4f72cc(0x218)]();}[a11_0x150e07(0x209)](_0xb352dc={}){var _0x53221a=a11_0x150e07;const _0x2f18df=Object['fromEntries'](Object['entries'](_0xb352dc)[_0x53221a(0x20c)](_0x47f74e=>[_0x47f74e[0x0][_0x53221a(0x20a)](),_0x47f74e[0x1]]));if(!(_0x2f18df===null||_0x2f18df===void 0x0?void 0x0:_0x2f18df[_0x53221a(0x214)]))throw new AnnError(ApiError_1['ApiError'][_0x53221a(0x207)],{'message':_0x53221a(0x21b)});if((_0x2f18df===null||_0x2f18df===void 0x0?void 0x0:_0x2f18df['signature'])!=this['getsign'](_0x2f18df))throw new AnnError(ApiError_1[_0x53221a(0x20e)]['HEADERS_SIGNATURE']);return!![];}};function a11_0x53ab(_0x5760fe,_0x7d7184){var _0x2bea3e=a11_0x27ab();return a11_0x53ab=function(_0x525333,_0x537264){_0x525333=_0x525333-0x1ee;var _0x27abb4=_0x2bea3e[_0x525333];return _0x27abb4;},a11_0x53ab(_0x5760fe,_0x7d7184);}__decorate([(0x0,core_1[a11_0x150e07(0x202)])(a11_0x150e07(0x1f3)),__metadata(a11_0x150e07(0x1ff),Object)],ApiService[a11_0x150e07(0x212)],'config',void 0x0),ApiService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a11_0x150e07(0x219)])(core_1[a11_0x150e07(0x1ef)][a11_0x150e07(0x21d)])],ApiService),exports['ApiService']=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x241984=a12_0x2c64;(function(_0x15434e,_0xb7700d){const _0x11c636=a12_0x2c64,_0x420555=_0x15434e();while(!![]){try{const _0x390e70=parseInt(_0x11c636(0x1e1))/0x1+-parseInt(_0x11c636(0x1d1))/0x2+parseInt(_0x11c636(0x208))/0x3*(parseInt(_0x11c636(0x1ed))/0x4)+parseInt(_0x11c636(0x1bb))/0x5+parseInt(_0x11c636(0x1d8))/0x6+parseInt(_0x11c636(0x1c8))/0x7+-parseInt(_0x11c636(0x1cd))/0x8;if(_0x390e70===_0xb7700d)break;else _0x420555['push'](_0x420555['shift']());}catch(_0x4de0ae){_0x420555['push'](_0x420555['shift']());}}}(a12_0xc40b,0xc11cb));const a12_0x3519b1=(function(){let _0x501819=!![];return function(_0x3ae182,_0x5745a6){const _0x31786b=_0x501819?function(){const _0x3b0445=a12_0x2c64;if(_0x5745a6){const _0x4a3a58=_0x5745a6[_0x3b0445(0x200)](_0x3ae182,arguments);return _0x5745a6=null,_0x4a3a58;}}:function(){};return _0x501819=![],_0x31786b;};}()),a12_0x171869=a12_0x3519b1(this,function(){const _0x37b9d0=a12_0x2c64;return a12_0x171869[_0x37b9d0(0x1c1)]()[_0x37b9d0(0x1fe)](_0x37b9d0(0x1e7))[_0x37b9d0(0x1c1)]()[_0x37b9d0(0x202)](a12_0x171869)[_0x37b9d0(0x1fe)](_0x37b9d0(0x1e7));});a12_0x171869();'use strict';var __decorate=this&&this[a12_0x241984(0x1be)]||function(_0x1ac04b,_0x4cc9db,_0xdd4093,_0x437b79){const _0x1564e3=a12_0x241984;var _0x29bb92=arguments[_0x1564e3(0x205)],_0x42feb7=_0x29bb92<0x3?_0x4cc9db:_0x437b79===null?_0x437b79=Object[_0x1564e3(0x1b7)](_0x4cc9db,_0xdd4093):_0x437b79,_0xe1ce73;if(typeof Reflect===_0x1564e3(0x1e2)&&typeof Reflect[_0x1564e3(0x1c4)]==='function')_0x42feb7=Reflect[_0x1564e3(0x1c4)](_0x1ac04b,_0x4cc9db,_0xdd4093,_0x437b79);else{for(var _0x357175=_0x1ac04b[_0x1564e3(0x205)]-0x1;_0x357175>=0x0;_0x357175--)if(_0xe1ce73=_0x1ac04b[_0x357175])_0x42feb7=(_0x29bb92<0x3?_0xe1ce73(_0x42feb7):_0x29bb92>0x3?_0xe1ce73(_0x4cc9db,_0xdd4093,_0x42feb7):_0xe1ce73(_0x4cc9db,_0xdd4093))||_0x42feb7;}return _0x29bb92>0x3&&_0x42feb7&&Object[_0x1564e3(0x1e6)](_0x4cc9db,_0xdd4093,_0x42feb7),_0x42feb7;},__metadata=this&&this[a12_0x241984(0x1d0)]||function(_0x1ea4e1,_0x1537d5){const _0x15f288=a12_0x241984;if(typeof Reflect===_0x15f288(0x1e2)&&typeof Reflect[_0x15f288(0x1fd)]===_0x15f288(0x1e8))return Reflect['metadata'](_0x1ea4e1,_0x1537d5);},__param=this&&this[a12_0x241984(0x1dc)]||function(_0x501eb5,_0x508403){return function(_0x1e272d,_0x3014b9){_0x508403(_0x1e272d,_0x3014b9,_0x501eb5);};};function a12_0x2c64(_0x1f57c8,_0x7bc8d0){const _0xa5e1f=a12_0xc40b();return a12_0x2c64=function(_0x171869,_0x3519b1){_0x171869=_0x171869-0x1b5;let _0xc40b2b=_0xa5e1f[_0x171869];return _0xc40b2b;},a12_0x2c64(_0x1f57c8,_0x7bc8d0);}Object[a12_0x241984(0x1e6)](exports,a12_0x241984(0x1d7),{'value':!![]}),exports['ApitestStaticController']=exports[a12_0x241984(0x1bc)]=void 0x0;const path_1=require(a12_0x241984(0x1eb)),fs_1=require('fs'),core_1=require(a12_0x241984(0x1f6)),core_2=require(a12_0x241984(0x1f6)),core_3=require(a12_0x241984(0x1f6)),getRoutes_1=require(a12_0x241984(0x1bf));let ApitestService=class ApitestService{async['apidoc'](_0x325130){const _0x16470f=a12_0x241984,_0x429b74=(0x0,getRoutes_1[_0x16470f(0x1f7)])(_0x325130),_0x21516e=[];for(let _0x257ae6 in _0x429b74){for(let _0x180498 in _0x429b74[_0x257ae6][_0x16470f(0x1b5)]){let _0x30904b=_0x429b74[_0x257ae6]['routes'][_0x180498],_0x1a63cb=[];for(let _0x6beca3 in _0x30904b[_0x16470f(0x1b9)]){_0x1a63cb['push'](_0x30904b[_0x16470f(0x1b9)][_0x6beca3]);}_0x21516e[_0x16470f(0x1c0)]({'title':_0x429b74[_0x257ae6]['summary']+':'+_0x30904b[_0x16470f(0x1c9)],'prefix':_0x429b74[_0x257ae6][_0x16470f(0x1c3)],'router':_0x30904b[_0x16470f(0x204)],'method':_0x30904b[_0x16470f(0x1d2)],'describe':_0x30904b['description']||'','filepath':_0x429b74[_0x257ae6][_0x16470f(0x203)]||'','request':_0x1a63cb});}}const _0x192b95=(0x0,path_1[_0x16470f(0x207)])(__dirname,'../../public/index.html');return(0x0,fs_1[_0x16470f(0x1f3)])(_0x192b95,{'encoding':_0x16470f(0x1b6)})[_0x16470f(0x1d4)](/__res__/g,_0x16470f(0x1d6))['replace'](_0x16470f(0x1ef),JSON[_0x16470f(0x1e9)](_0x21516e))[_0x16470f(0x1d4)](_0x16470f(0x1c5),JSON[_0x16470f(0x1e9)](this[_0x16470f(0x206)][_0x16470f(0x1b8)]));}};__decorate([(0x0,core_3[a12_0x241984(0x1ca)])(a12_0x241984(0x1d9)),__metadata(a12_0x241984(0x1ff),Object)],ApitestService[a12_0x241984(0x1ba)],a12_0x241984(0x206),void 0x0),ApitestService=__decorate([(0x0,core_2['Provide'])(a12_0x241984(0x1c6)),(0x0,core_3[a12_0x241984(0x1ee)])(core_3['ScopeEnum']['Singleton'])],ApitestService),exports[a12_0x241984(0x1bc)]=ApitestService;function a12_0xc40b(){const _0x49fe40=['apitest','Environment','1594558OmsYmu','summary','Config','/apitest','ScopeEnum','26624856PqQXyG','apitesthtml','application/javascript;\x20charset=utf-8','__metadata','191796whCmBT','method','apiteststatic','replace','design:paramtypes','/apiteststatic/','__esModule','5688300QIJZBS','anncicapi','design:returntype','/index.html','__param','.css','Controller','.js','content-type','972465CfBaNA','object','/apiteststatic/*','cache-control','set','defineProperty','(((.+)+)+)+$','function','stringify','ApitestStaticController','path','apidoc','4244KLYJam','Scope','__apiList__','MidwayEnvironmentService','substring','public,\x20max-age=604800','readFileSync','existsSync','extname','@midwayjs/core','getRoutes','text/css;\x20charset=utf-8','Inject','Request','Get','ctx','metadata','search','design:type','apply','url','constructor','filepath','route','length','config','join','4317eLbUyB','routes','utf-8','getOwnPropertyDescriptor','devices','request','prototype','2699520sinWGI','ApitestService','isDevelopmentEnvironment','__decorate','../helper/getRoutes','push','toString','apitestmodule','prefix','decorate','__devices__'];a12_0xc40b=function(){return _0x49fe40;};return a12_0xc40b();}let ApitestStaticController=class ApitestStaticController{async[a12_0x241984(0x1ce)](){const _0x397322=a12_0x241984;if(this[_0x397322(0x1c6)]){const _0x5d267b={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x5d267b[_0x397322(0x203)]=!![]),await this[_0x397322(0x1bc)][_0x397322(0x1ec)](_0x5d267b);}return'';}async[a12_0x241984(0x1c2)](_0x223d73){const _0x56b4d1=a12_0x241984;if(this['apitest']){const _0x3e88df={'module':_0x223d73};return this['Environment'][_0x56b4d1(0x1bd)]()&&(_0x3e88df[_0x56b4d1(0x203)]=!![]),await this[_0x56b4d1(0x1bc)][_0x56b4d1(0x1ec)](_0x3e88df);}return'';}async[a12_0x241984(0x1d3)](){const _0x2e23f4=a12_0x241984;if((0x0,path_1[_0x2e23f4(0x1f5)])(this[_0x2e23f4(0x1fc)][_0x2e23f4(0x1b9)]['url'])){var _0x489c82=(0x0,path_1[_0x2e23f4(0x207)])(__dirname,'../../public/'+this['ctx']['request'][_0x2e23f4(0x201)][_0x2e23f4(0x1d4)]('/apiteststatic/','/'));if(_0x489c82[_0x2e23f4(0x1f1)](_0x489c82[_0x2e23f4(0x205)]-0xb)!=_0x2e23f4(0x1db)){this['ctx'][_0x2e23f4(0x1e5)](_0x2e23f4(0x1e4),_0x2e23f4(0x1f2));if((0x0,path_1[_0x2e23f4(0x1f5)])(this['ctx'][_0x2e23f4(0x1b9)][_0x2e23f4(0x201)])==_0x2e23f4(0x1df))this[_0x2e23f4(0x1fc)][_0x2e23f4(0x1e5)](_0x2e23f4(0x1e0),_0x2e23f4(0x1cf));else(0x0,path_1[_0x2e23f4(0x1f5)])(this[_0x2e23f4(0x1fc)][_0x2e23f4(0x1b9)][_0x2e23f4(0x201)])==_0x2e23f4(0x1dd)&&this[_0x2e23f4(0x1fc)][_0x2e23f4(0x1e5)](_0x2e23f4(0x1e0),_0x2e23f4(0x1f8));return(0x0,fs_1[_0x2e23f4(0x1f4)])(_0x489c82)&&(0x0,fs_1[_0x2e23f4(0x1f3)])(_0x489c82,{'encoding':'utf-8'});}}return'';}};__decorate([(0x0,core_3[a12_0x241984(0x1f9)])(),__metadata(a12_0x241984(0x1ff),Object)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1fc),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata(a12_0x241984(0x1ff),core_1[a12_0x241984(0x1f0)])],ApitestStaticController['prototype'],a12_0x241984(0x1c7),void 0x0),__decorate([(0x0,core_3['Inject'])(),__metadata('design:type',ApitestService)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1bc),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x241984(0x1c6)),__metadata(a12_0x241984(0x1ff),Boolean)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1c6),void 0x0),__decorate([(0x0,core_3['Config'])(a12_0x241984(0x1d9)),__metadata(a12_0x241984(0x1ff),Object)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x206),void 0x0),__decorate([(0x0,core_2['Get'])(a12_0x241984(0x1cb)),__metadata(a12_0x241984(0x1ff),Function),__metadata(a12_0x241984(0x1d5),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1ce),null),__decorate([(0x0,core_2[a12_0x241984(0x1fb)])('/apitest-:module'),__param(0x0,(0x0,core_2['Param'])('module')),__metadata(a12_0x241984(0x1ff),Function),__metadata(a12_0x241984(0x1d5),[String]),__metadata(a12_0x241984(0x1da),Promise)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1c2),null),__decorate([(0x0,core_2[a12_0x241984(0x1fb)])(a12_0x241984(0x1e3)),__metadata(a12_0x241984(0x1ff),Function),__metadata(a12_0x241984(0x1d5),[]),__metadata(a12_0x241984(0x1da),Promise)],ApitestStaticController[a12_0x241984(0x1ba)],a12_0x241984(0x1d3),null),ApitestStaticController=__decorate([(0x0,core_2[a12_0x241984(0x1de)])('/'),(0x0,core_3[a12_0x241984(0x1ee)])(core_3[a12_0x241984(0x1cc)][a12_0x241984(0x1fa)])],ApitestStaticController),exports[a12_0x241984(0x1ea)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a13_0x1f47(_0x4f0cba,_0x880a70){const _0x29c494=a13_0x1104();return a13_0x1f47=function(_0x43d841,_0x193730){_0x43d841=_0x43d841-0x117;let _0x11045f=_0x29c494[_0x43d841];return _0x11045f;},a13_0x1f47(_0x4f0cba,_0x880a70);}const a13_0x36243d=a13_0x1f47;function a13_0x1104(){const _0x3f0301=['constructor','App','prototype','col','getRow','random','4nvSxBf','key','existsSync','substring','12370ThbNbq','set','value','12502KAgqpt','push','\x20is\x20read\x20fail','findRows','metadata','__metadata','replace','Sheet\x201','exceljs','Provide','23063erDTID','addRow','addWorksheet','handler','2952JNVkCp','xlsx','startsWith','getCell','Api\x20Excel\x20Error:\x20','download','model','app','getOwnPropertyDescriptor','frozen','__decorate','function','3105rzanQh','search','rowCount','filter','12331DBmnib','header','ScopeEnum','koa-send','__esModule','.xlsx','cellCount','design:type','(((.+)+)+)+$','format','isNumber','12tRupOU','defineProperty','ExcelService','log','columns','75061FCqfsD','1132315opdxlY','getAppDir','Scope','export','readFile','toString','23270idACPN','Workbook','decorate','length','4BrCxpH','910608AlmoZt','endsWith','@midwayjs/core','getWorksheet','/public/xlsx/','328awKaJV','Singleton'];a13_0x1104=function(){return _0x3f0301;};return a13_0x1104();}(function(_0x367385,_0x5cf2ab){const _0x59138a=a13_0x1f47,_0x2b8199=_0x367385();while(!![]){try{const _0x1485ae=parseInt(_0x59138a(0x151))/0x1*(parseInt(_0x59138a(0x140))/0x2)+-parseInt(_0x59138a(0x133))/0x3*(-parseInt(_0x59138a(0x132))/0x4)+-parseInt(_0x59138a(0x128))/0x5*(-parseInt(_0x59138a(0x122))/0x6)+parseInt(_0x59138a(0x127))/0x7*(parseInt(_0x59138a(0x138))/0x8)+-parseInt(_0x59138a(0x161))/0x9*(-parseInt(_0x59138a(0x144))/0xa)+-parseInt(_0x59138a(0x117))/0xb*(-parseInt(_0x59138a(0x155))/0xc)+-parseInt(_0x59138a(0x12e))/0xd*(parseInt(_0x59138a(0x147))/0xe);if(_0x1485ae===_0x5cf2ab)break;else _0x2b8199['push'](_0x2b8199['shift']());}catch(_0x5cc031){_0x2b8199['push'](_0x2b8199['shift']());}}}(a13_0x1104,0x548b4));const a13_0x193730=(function(){let _0x157717=!![];return function(_0x5703b7,_0x1ad12a){const _0x4a7f52=_0x157717?function(){if(_0x1ad12a){const _0x471e92=_0x1ad12a['apply'](_0x5703b7,arguments);return _0x1ad12a=null,_0x471e92;}}:function(){};return _0x157717=![],_0x4a7f52;};}()),a13_0x43d841=a13_0x193730(this,function(){const _0x3e4a26=a13_0x1f47;return a13_0x43d841[_0x3e4a26(0x12d)]()[_0x3e4a26(0x162)](_0x3e4a26(0x11f))[_0x3e4a26(0x12d)]()[_0x3e4a26(0x13a)](a13_0x43d841)[_0x3e4a26(0x162)]('(((.+)+)+)+$');});a13_0x43d841();'use strict';var __decorate=this&&this[a13_0x36243d(0x15f)]||function(_0x1bce47,_0x3ac4bf,_0x52667b,_0x3cc9ce){const _0x19e6bc=a13_0x36243d;var _0x465042=arguments[_0x19e6bc(0x131)],_0xecfd5f=_0x465042<0x3?_0x3ac4bf:_0x3cc9ce===null?_0x3cc9ce=Object[_0x19e6bc(0x15d)](_0x3ac4bf,_0x52667b):_0x3cc9ce,_0x5dc32b;if(typeof Reflect==='object'&&typeof Reflect[_0x19e6bc(0x130)]==='function')_0xecfd5f=Reflect[_0x19e6bc(0x130)](_0x1bce47,_0x3ac4bf,_0x52667b,_0x3cc9ce);else{for(var _0x192c0f=_0x1bce47[_0x19e6bc(0x131)]-0x1;_0x192c0f>=0x0;_0x192c0f--)if(_0x5dc32b=_0x1bce47[_0x192c0f])_0xecfd5f=(_0x465042<0x3?_0x5dc32b(_0xecfd5f):_0x465042>0x3?_0x5dc32b(_0x3ac4bf,_0x52667b,_0xecfd5f):_0x5dc32b(_0x3ac4bf,_0x52667b))||_0xecfd5f;}return _0x465042>0x3&&_0xecfd5f&&Object[_0x19e6bc(0x123)](_0x3ac4bf,_0x52667b,_0xecfd5f),_0xecfd5f;},__metadata=this&&this[a13_0x36243d(0x14c)]||function(_0x220acb,_0x818d9b){const _0x5bf8f1=a13_0x36243d;if(typeof Reflect==='object'&&typeof Reflect[_0x5bf8f1(0x14b)]==='function')return Reflect[_0x5bf8f1(0x14b)](_0x220acb,_0x818d9b);};Object[a13_0x36243d(0x123)](exports,a13_0x36243d(0x11b),{'value':!![]}),exports[a13_0x36243d(0x124)]=void 0x0;const fs=require('fs'),exceljs=require(a13_0x36243d(0x14f)),koasend=require(a13_0x36243d(0x11a)),core_1=require(a13_0x36243d(0x135));let ExcelService=class ExcelService{async['parse'](_0x4c54d4,_0x362d07,_0x5cd3d4=[0x0]){const _0x4bdfda=a13_0x36243d;var _0xaba78a,_0x28eb95;const _0x4aceea=new exceljs['Workbook'](),_0x4ca910=[];let _0x181afb=_0x4c54d4['replace'](/(\\|\/)/g,'/')[_0x4bdfda(0x14d)](/\/{2,}/g,'/');!(_0x181afb===null||_0x181afb===void 0x0?void 0x0:_0x181afb[_0x4bdfda(0x157)]('/'))&&(_0x181afb=this[_0x4bdfda(0x15c)][_0x4bdfda(0x129)]()+'/'+_0x181afb);try{await _0x4aceea['xlsx'][_0x4bdfda(0x12c)](_0x181afb);}catch(_0x493b9e){return console[_0x4bdfda(0x125)](_0x4bdfda(0x159)+_0x181afb+_0x4bdfda(0x149)),_0x4ca910;}for(const _0x3cc3a6 of _0x5cd3d4){const _0x38e7e6=lodash[_0x4bdfda(0x121)](_0x3cc3a6)?((_0xaba78a=_0x4aceea['worksheets'])===null||_0xaba78a===void 0x0?void 0x0:_0xaba78a[_0x3cc3a6])||undefined:_0x4aceea[_0x4bdfda(0x136)](_0x3cc3a6);if(_0x38e7e6){var _0x340293=0x1;const _0x45769e=_0x38e7e6[_0x4bdfda(0x13e)](0x1),_0x1a938d=await new Promise(_0x5e0433=>{const _0x16da9e={};_0x45769e['eachCell']((_0x473da6,_0x7a8b00)=>{const _0x2f1d20=a13_0x1f47;for(const _0x241ca8 of _0x362d07){if(_0x473da6['value']==_0x241ca8[_0x2f1d20(0x118)])_0x340293=0x2,_0x16da9e[_0x241ca8['key']]={'header':_0x473da6[_0x2f1d20(0x13d)],'handler':_0x241ca8[_0x2f1d20(0x154)]};else{if(!_0x16da9e[_0x241ca8[_0x2f1d20(0x141)]])try{const _0xd4b489=_0x45769e&&_0x45769e[_0x2f1d20(0x158)](_0x241ca8['header']);_0xd4b489&&(_0x16da9e[_0x241ca8['key']]={'header':_0xd4b489[_0x2f1d20(0x13d)],'handler':_0x241ca8['handler']});}catch{}}}_0x45769e[_0x2f1d20(0x11d)]==_0x7a8b00&&_0x5e0433(_0x16da9e);});});for(const _0x4048db of _0x38e7e6[_0x4bdfda(0x14a)](_0x340293,_0x38e7e6[_0x4bdfda(0x163)])){const _0x42b9a9={};for(const _0xb5dbc1 in _0x1a938d){if(_0x1a938d[_0xb5dbc1][_0x4bdfda(0x118)]){const _0x4ac3d2=_0x4048db&&_0x4048db[_0x4bdfda(0x158)](_0x1a938d[_0xb5dbc1]['header']);try{_0x4ac3d2['toString']();}catch(_0x242bff){_0x4ac3d2[_0x4bdfda(0x12d)]=()=>{const _0x1f9227=_0x4bdfda;var _0x378301;return''+(((_0x378301=_0x4ac3d2===null||_0x4ac3d2===void 0x0?void 0x0:_0x4ac3d2['model'])===null||_0x378301===void 0x0?void 0x0:_0x378301[_0x1f9227(0x146)])||'');};}typeof((_0x28eb95=_0x1a938d[_0xb5dbc1])===null||_0x28eb95===void 0x0?void 0x0:_0x28eb95[_0x4bdfda(0x154)])=='function'?_0x42b9a9[_0xb5dbc1]=await _0x1a938d[_0xb5dbc1][_0x4bdfda(0x154)](lodash[_0x4bdfda(0x145)]({},_0xb5dbc1,(_0x4ac3d2===null||_0x4ac3d2===void 0x0?void 0x0:_0x4ac3d2[_0x4bdfda(0x12d)]())||''),_0x4ac3d2[_0x4bdfda(0x15b)]):_0x42b9a9[_0xb5dbc1]=(_0x4ac3d2===null||_0x4ac3d2===void 0x0?void 0x0:_0x4ac3d2[_0x4bdfda(0x12d)]())||'';}}Object['keys'](_0x42b9a9)[_0x4bdfda(0x131)]>0x0&&Object['values'](_0x42b9a9)[_0x4bdfda(0x164)](_0x55f2e7=>_0x55f2e7!=='')[_0x4bdfda(0x131)]>0x0&&_0x4ca910[_0x4bdfda(0x148)](_0x42b9a9);}}}return _0x4ca910;}async[a13_0x36243d(0x12b)](_0x9aaf71,_0x475398,_0x32cac0,_0x58e896){const _0x4c9316=a13_0x36243d;var _0x387640,_0x4e4a6c;const _0x506072=new exceljs[(_0x4c9316(0x12f))](),_0x421a85={},_0x25ce52=[],_0x3fd455=_0x506072[_0x4c9316(0x153)](_0x4c9316(0x14e),{'views':[{'state':_0x4c9316(0x15e),'xSplit':0x1}]});for(const _0x36d105 in _0x475398){_0x421a85[_0x475398[_0x36d105]['key']]=_0x475398[_0x36d105]['header'],_0x25ce52[_0x4c9316(0x148)]({'header':_0x475398[_0x36d105]['header'],'key':(_0x387640=_0x475398[_0x36d105])===null||_0x387640===void 0x0?void 0x0:_0x387640[_0x4c9316(0x141)][_0x4c9316(0x14d)](/\./g,'_')});}_0x3fd455[_0x4c9316(0x126)]=_0x25ce52;for(const _0x1b77a6 of _0x32cac0){const _0x11321f={};for(const _0x3993ed in _0x475398){typeof((_0x4e4a6c=_0x475398[_0x3993ed])===null||_0x4e4a6c===void 0x0?void 0x0:_0x4e4a6c['handler'])==_0x4c9316(0x160)?_0x11321f[_0x475398[_0x3993ed][_0x4c9316(0x141)]['replace'](/\./g,'_')]=await _0x475398[_0x3993ed][_0x4c9316(0x154)](_0x1b77a6):_0x11321f[_0x475398[_0x3993ed][_0x4c9316(0x141)][_0x4c9316(0x14d)](/\./g,'_')]=lodash['get'](_0x1b77a6,_0x475398[_0x3993ed][_0x4c9316(0x141)],'');}_0x3fd455[_0x4c9316(0x152)](_0x11321f);}let _0x5f197c='';const _0xb48cb=_0x9aaf71+'-'+lodash[_0x4c9316(0x13f)](0x186a0,0xf423f)+_0x4c9316(0x11c);if(_0x58e896&&_0x58e896[_0x4c9316(0x157)]('/'))_0x5f197c=''+_0x58e896;else _0x58e896&&!_0x58e896[_0x4c9316(0x157)]('/')&&!_0x58e896[_0x4c9316(0x157)]('\x5c')?_0x5f197c=this['app'][_0x4c9316(0x129)]()+'/'+_0x58e896:_0x5f197c=this[_0x4c9316(0x15c)][_0x4c9316(0x129)]()+_0x4c9316(0x137)+dayjs()[_0x4c9316(0x120)]('YYYY/MM/DD');return(_0x5f197c['endsWith']('/')||_0x5f197c[_0x4c9316(0x134)]('\x5c'))&&(_0x5f197c=_0x5f197c[_0x4c9316(0x143)](0x0,_0x5f197c['length']-0x1)),_0x5f197c=_0x5f197c[_0x4c9316(0x14d)](/(\\|\/)/g,'/')[_0x4c9316(0x14d)](/\/{2,}/g,'/'),!fs[_0x4c9316(0x142)](_0x5f197c)&&fs['mkdirSync'](_0x5f197c,{'recursive':!![]}),await _0x506072[_0x4c9316(0x156)]['writeFile']((_0x5f197c+'/'+_0xb48cb)[_0x4c9316(0x14d)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0xb48cb,'filepath':(_0x5f197c[_0x4c9316(0x143)]((''+this[_0x4c9316(0x15c)][_0x4c9316(0x129)]())[_0x4c9316(0x131)])+'/'+_0xb48cb)[_0x4c9316(0x14d)](/(\\|\/)/g,'/')[_0x4c9316(0x14d)](/\/{2,}/g,'/')};}async[a13_0x36243d(0x15a)](_0xa1c562,_0x177b26){return await koasend(_0xa1c562,''+_0x177b26);}};__decorate([(0x0,core_1[a13_0x36243d(0x13b)])(),__metadata(a13_0x36243d(0x11e),Object)],ExcelService[a13_0x36243d(0x13c)],a13_0x36243d(0x15c),void 0x0),ExcelService=__decorate([(0x0,core_1[a13_0x36243d(0x150)])(),(0x0,core_1[a13_0x36243d(0x12a)])(core_1[a13_0x36243d(0x119)][a13_0x36243d(0x139)])],ExcelService),exports[a13_0x36243d(0x124)]=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x874e7b=a14_0x4b33;(function(_0x2bb66a,_0x2960eb){var _0x598373=a14_0x4b33,_0x31fd36=_0x2bb66a();while(!![]){try{var _0x599d44=parseInt(_0x598373(0x84))/0x1+parseInt(_0x598373(0x89))/0x2+-parseInt(_0x598373(0x8c))/0x3*(-parseInt(_0x598373(0x8b))/0x4)+parseInt(_0x598373(0x87))/0x5+-parseInt(_0x598373(0x81))/0x6*(parseInt(_0x598373(0x88))/0x7)+parseInt(_0x598373(0x94))/0x8+-parseInt(_0x598373(0x8d))/0x9;if(_0x599d44===_0x2960eb)break;else _0x31fd36['push'](_0x31fd36['shift']());}catch(_0x4be4ca){_0x31fd36['push'](_0x31fd36['shift']());}}}(a14_0x4391,0xb71e2));function a14_0x4b33(_0x283c5a,_0x20bde0){var _0xed3247=a14_0x4391();return a14_0x4b33=function(_0x3dbad3,_0x2ffab1){_0x3dbad3=_0x3dbad3-0x80;var _0x439137=_0xed3247[_0x3dbad3];return _0x439137;},a14_0x4b33(_0x283c5a,_0x20bde0);}var a14_0x2ffab1=(function(){var _0x47a4b7=!![];return function(_0x1beca9,_0x40434f){var _0xac2307=_0x47a4b7?function(){var _0x43ce5f=a14_0x4b33;if(_0x40434f){var _0x3c3390=_0x40434f[_0x43ce5f(0x83)](_0x1beca9,arguments);return _0x40434f=null,_0x3c3390;}}:function(){};return _0x47a4b7=![],_0xac2307;};}()),a14_0x3dbad3=a14_0x2ffab1(this,function(){var _0xc208f4=a14_0x4b33;return a14_0x3dbad3[_0xc208f4(0x85)]()[_0xc208f4(0x8e)](_0xc208f4(0x92))[_0xc208f4(0x85)]()['constructor'](a14_0x3dbad3)[_0xc208f4(0x8e)](_0xc208f4(0x92));});a14_0x3dbad3();'use strict';Object[a14_0x874e7b(0x91)](exports,a14_0x874e7b(0x8a),{'value':!![]}),exports[a14_0x874e7b(0x86)]=exports[a14_0x874e7b(0x93)]=exports[a14_0x874e7b(0x82)]=exports[a14_0x874e7b(0x90)]=void 0x0,exports['ACTION_KEY']=a14_0x874e7b(0x80),exports['ACTION_ROUTE_KEY']=a14_0x874e7b(0x8f),exports[a14_0x874e7b(0x93)]='anncic-api:apps:config';class AppsConfigTmp{}function a14_0x4391(){var _0x78bed3=['search','anncic-api:action:route','ACTION_KEY','defineProperty','(((.+)+)+)+$','APPSCONFIG_KEY','5264232rykFdG','anncic-api:action','114IwYgZI','ACTION_ROUTE_KEY','apply','941302buMzHn','toString','AppsConfigTmp','5151290cjLOqt','54201tPbtPl','2310726fLXHbE','__esModule','5149448FIilXA','3eWgJdu','37576323aFBNba'];a14_0x4391=function(){return _0x78bed3;};return a14_0x4391();}exports[a14_0x874e7b(0x86)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x156630=a15_0x5512;(function(_0x1f4ce0,_0x4c7ced){var _0x1241b5=a15_0x5512,_0x2133d2=_0x1f4ce0();while(!![]){try{var _0x47f19e=-parseInt(_0x1241b5(0xaf))/0x1+-parseInt(_0x1241b5(0x94))/0x2*(-parseInt(_0x1241b5(0x9a))/0x3)+parseInt(_0x1241b5(0x9c))/0x4*(parseInt(_0x1241b5(0xa1))/0x5)+parseInt(_0x1241b5(0x8f))/0x6*(parseInt(_0x1241b5(0x8e))/0x7)+-parseInt(_0x1241b5(0xa5))/0x8+parseInt(_0x1241b5(0xab))/0x9+-parseInt(_0x1241b5(0xa2))/0xa;if(_0x47f19e===_0x4c7ced)break;else _0x2133d2['push'](_0x2133d2['shift']());}catch(_0x38a04a){_0x2133d2['push'](_0x2133d2['shift']());}}}(a15_0xfe9f,0xbae57));var a15_0x28770d=(function(){var _0x20aa32=!![];return function(_0x5d5f12,_0x4ba3a2){var _0x57ec48=_0x20aa32?function(){var _0x2cf292=a15_0x5512;if(_0x4ba3a2){var _0x44eadc=_0x4ba3a2[_0x2cf292(0xa3)](_0x5d5f12,arguments);return _0x4ba3a2=null,_0x44eadc;}}:function(){};return _0x20aa32=![],_0x57ec48;};}()),a15_0xe76dfa=a15_0x28770d(this,function(){var _0x4d92ea=a15_0x5512;return a15_0xe76dfa[_0x4d92ea(0x8d)]()[_0x4d92ea(0xaa)]('(((.+)+)+)+$')[_0x4d92ea(0x8d)]()['constructor'](a15_0xe76dfa)[_0x4d92ea(0xaa)](_0x4d92ea(0x92));});a15_0xe76dfa();'use strict';var __decorate=this&&this['__decorate']||function(_0x252275,_0x1c27da,_0x38d2cf,_0xa0f235){var _0x10628c=a15_0x5512,_0x41846a=arguments[_0x10628c(0x9b)],_0x2f1798=_0x41846a<0x3?_0x1c27da:_0xa0f235===null?_0xa0f235=Object[_0x10628c(0x96)](_0x1c27da,_0x38d2cf):_0xa0f235,_0x5eb739;if(typeof Reflect===_0x10628c(0x9d)&&typeof Reflect['decorate']===_0x10628c(0xb0))_0x2f1798=Reflect[_0x10628c(0x9e)](_0x252275,_0x1c27da,_0x38d2cf,_0xa0f235);else{for(var _0x386cfc=_0x252275[_0x10628c(0x9b)]-0x1;_0x386cfc>=0x0;_0x386cfc--)if(_0x5eb739=_0x252275[_0x386cfc])_0x2f1798=(_0x41846a<0x3?_0x5eb739(_0x2f1798):_0x41846a>0x3?_0x5eb739(_0x1c27da,_0x38d2cf,_0x2f1798):_0x5eb739(_0x1c27da,_0x38d2cf))||_0x2f1798;}return _0x41846a>0x3&&_0x2f1798&&Object['defineProperty'](_0x1c27da,_0x38d2cf,_0x2f1798),_0x2f1798;},__metadata=this&&this[a15_0x156630(0xa7)]||function(_0x1a3ff6,_0x4f70d9){var _0x2ee875=a15_0x156630;if(typeof Reflect===_0x2ee875(0x9d)&&typeof Reflect[_0x2ee875(0x91)]===_0x2ee875(0xb0))return Reflect['metadata'](_0x1a3ff6,_0x4f70d9);};Object[a15_0x156630(0x95)](exports,'__esModule',{'value':!![]}),exports[a15_0x156630(0x98)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}function a15_0x5512(_0x4c0016,_0xce701){var _0xe6bfe7=a15_0xfe9f();return a15_0x5512=function(_0xe76dfa,_0x28770d){_0xe76dfa=_0xe76dfa-0x8d;var _0xfe9f61=_0xe6bfe7[_0xe76dfa];return _0xfe9f61;},a15_0x5512(_0x4c0016,_0xce701);}__decorate([(0x0,validator_1[a15_0x156630(0xb1)])('分页',validator_1[a15_0x156630(0xac)][a15_0x156630(0x93)]()['integer']()[a15_0x156630(0x90)](0x1),a15_0x156630(0xa4)),__metadata('design:type',Number)],PageDTO[a15_0x156630(0xb2)],a15_0x156630(0xad),void 0x0),__decorate([(0x0,validator_1[a15_0x156630(0xb1)])('分页数量',validator_1[a15_0x156630(0xac)][a15_0x156630(0x93)]()['integer']()[a15_0x156630(0x90)](0x1)),__metadata(a15_0x156630(0xa0),Number)],PageDTO['prototype'],a15_0x156630(0x99),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x156630(0xae),validator_1[a15_0x156630(0xac)]['string']()['trim']()),__metadata('design:type',String)],PageDTO[a15_0x156630(0xb2)],a15_0x156630(0xa6),void 0x0),__decorate([(0x0,validator_1[a15_0x156630(0xb1)])('是否倒序',validator_1[a15_0x156630(0xac)][a15_0x156630(0x93)]()[a15_0x156630(0xa9)]()[a15_0x156630(0x9f)](0x0,0x1),a15_0x156630(0xa8)),__metadata(a15_0x156630(0xa0),Number)],PageDTO[a15_0x156630(0xb2)],a15_0x156630(0x97),void 0x0),exports[a15_0x156630(0x98)]=PageDTO;function a15_0xfe9f(){var _0x2a0bbd=['function','Rule','prototype','toString','35007wPYlLN','1230uSrKnK','min','metadata','(((.+)+)+)+$','number','607214wpvdnT','defineProperty','getOwnPropertyDescriptor','_isreverse','PageDTO','_size','9sJOGMw','length','4tctqRv','object','decorate','valid','design:type','7079990nMXysi','6381590lupKuA','apply','第一页为1,第二页为2','6004256sXdnay','_order','__metadata','1:是;0:否','integer','search','2746188CDwtrh','RuleType','_page','排序方式','1502938JaUjJU'];a15_0xfe9f=function(){return _0x2a0bbd;};return a15_0xfe9f();}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a16_0x584c98=a16_0x3109;(function(_0x54aaa2,_0x1784c2){var _0xb53438=a16_0x3109,_0x54483d=_0x54aaa2();while(!![]){try{var _0x41ba57=-parseInt(_0xb53438(0xdb))/0x1+parseInt(_0xb53438(0xe7))/0x2+-parseInt(_0xb53438(0xeb))/0x3*(parseInt(_0xb53438(0xec))/0x4)+parseInt(_0xb53438(0xe8))/0x5*(parseInt(_0xb53438(0xe4))/0x6)+-parseInt(_0xb53438(0xe1))/0x7+-parseInt(_0xb53438(0xed))/0x8+parseInt(_0xb53438(0xde))/0x9*(parseInt(_0xb53438(0xe5))/0xa);if(_0x41ba57===_0x1784c2)break;else _0x54483d['push'](_0x54483d['shift']());}catch(_0x264f3e){_0x54483d['push'](_0x54483d['shift']());}}}(a16_0x32b2,0xa98a7));var a16_0x56c2f3=(function(){var _0x3e6355=!![];return function(_0x2c4c6c,_0xace9c0){var _0x17ceff=_0x3e6355?function(){var _0x2a5270=a16_0x3109;if(_0xace9c0){var _0x421858=_0xace9c0[_0x2a5270(0xdc)](_0x2c4c6c,arguments);return _0xace9c0=null,_0x421858;}}:function(){};return _0x3e6355=![],_0x17ceff;};}()),a16_0x51651f=a16_0x56c2f3(this,function(){var _0x34b2d7=a16_0x3109;return a16_0x51651f[_0x34b2d7(0xe2)]()[_0x34b2d7(0xe3)]('(((.+)+)+)+$')[_0x34b2d7(0xe2)]()[_0x34b2d7(0xea)](a16_0x51651f)['search']('(((.+)+)+)+$');});function a16_0x3109(_0x232c3c,_0x2f747a){var _0x56742a=a16_0x32b2();return a16_0x3109=function(_0x51651f,_0x56c2f3){_0x51651f=_0x51651f-0xdb;var _0x32b2ca=_0x56742a[_0x51651f];return _0x32b2ca;},a16_0x3109(_0x232c3c,_0x2f747a);}a16_0x51651f();'use strict';Object[a16_0x584c98(0xdf)](exports,a16_0x584c98(0xe9),{'value':!![]}),exports[a16_0x584c98(0xe0)]=exports[a16_0x584c98(0xe6)]=void 0x0,exports[a16_0x584c98(0xe6)]=a16_0x584c98(0xdd);class InterceptTargetTmp{}function a16_0x32b2(){var _0x5b2d83=['831425npTOEb','__esModule','constructor','2970843ebHYIr','4vpMGOS','1108464TjdEru','559290vUrHhQ','apply','anncic-api:intercept','91071fkNpgM','defineProperty','InterceptTargetTmp','6467433sCBAYZ','toString','search','6RvxHAo','2920ZKPLyx','INTERCEPT_KEY','370908zwKDXH'];a16_0x32b2=function(){return _0x5b2d83;};return a16_0x32b2();}exports['InterceptTargetTmp']=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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": "^2.1.
|
|
21
|
-
"@anncic-api/core": "^2.1.
|
|
22
|
-
"@anncic-api/event": "^2.1.
|
|
23
|
-
"@anncic-api/typeorm": "^2.1.
|
|
24
|
-
"@anncic-api/validator": "^2.1.
|
|
20
|
+
"@anncic-api/cache": "^2.1.1",
|
|
21
|
+
"@anncic-api/core": "^2.1.1",
|
|
22
|
+
"@anncic-api/event": "^2.1.1",
|
|
23
|
+
"@anncic-api/typeorm": "^2.1.1",
|
|
24
|
+
"@anncic-api/validator": "^2.1.1",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.10.6",
|
|
26
26
|
"@midwayjs/i18n": "^3.10.6",
|
|
27
27
|
"@midwayjs/koa": "^3.10.6",
|
|
28
28
|
"@midwayjs/static-file": "^3.10.6",
|
|
29
29
|
"@midwayjs/upload": "^3.10.6",
|
|
30
|
-
"anncic-apihelper": "^2.1.
|
|
30
|
+
"anncic-apihelper": "^2.1.1",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"image-size": "^1.0.2",
|
|
33
33
|
"koa-send": "^5.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"javascript-obfuscator": "^4.0.0",
|
|
39
39
|
"typescript": "^4.8.4"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "58731787313fc8197a080507bf413fbc38698d44"
|
|
42
42
|
}
|