anncic-api 1.4.15 → 1.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApi.js +1 -1
- package/dist/decorator/ActionApitest.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/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a0_0x4a897a=a0_0x27ff;(function(_0x133bf8,_0x25aeb1){var _0x3997e0=a0_0x27ff,_0x35dfdb=_0x133bf8();while(!![]){try{var _0x15c286=parseInt(_0x3997e0(0xe3))/0x1+-parseInt(_0x3997e0(0xe5))/0x2+parseInt(_0x3997e0(0xe9))/0x3*(parseInt(_0x3997e0(0xdf))/0x4)+-parseInt(_0x3997e0(0xde))/0x5+-parseInt(_0x3997e0(0xed))/0x6*(parseInt(_0x3997e0(0xe4))/0x7)+parseInt(_0x3997e0(0xe7))/0x8*(parseInt(_0x3997e0(0xeb))/0x9)+-parseInt(_0x3997e0(0xee))/0xa*(-parseInt(_0x3997e0(0xea))/0xb);if(_0x15c286===_0x25aeb1)break;else _0x35dfdb['push'](_0x35dfdb['shift']());}catch(_0x565a6c){_0x35dfdb['push'](_0x35dfdb['shift']());}}}(a0_0x4cba,0x2e470));function a0_0x4cba(){var _0x1e23c3=['4232TbrOki','/runtime/.upload','120FoEtbB','319RdahqM','5094EaARKq','appDir','6hCNwLE','24700dePZDm','20mb','dhauo1234420123gg3234901','xml','text','1845495CSyfPK','36132ONyUrI','json','__esModule','name','45984BaUqeC','677432LBjSnt','245842DUInak','defineProperty'];a0_0x4cba=function(){return _0x1e23c3;};return a0_0x4cba();}function a0_0x27ff(_0x4f58c3,_0x62c1e1){var _0x4cba45=a0_0x4cba();return a0_0x27ff=function(_0x27ff6b,_0x147455){_0x27ff6b=_0x27ff6b-0xdc;var _0x594912=_0x4cba45[_0x27ff6b];return _0x594912;},a0_0x27ff(_0x4f58c3,_0x62c1e1);}Object[a0_0x4a897a(0xe6)](exports,a0_0x4a897a(0xe1),{'value':!![]}),exports['default']=_0x111914=>{var _0x18c5e1=a0_0x4a897a;return{'apitest':!![],'keys':_0x111914[_0x18c5e1(0xe2)],'anncicapi':{'timeout':0x1388,'password':'zhiulanuiy7892387985hnoi','devices':{'DEFAULT':{'secret':_0x18c5e1(0xf0),'checkcode':'dhauo1234420123gg3234901'}}},'bodyParser':{'enableTypes':[_0x18c5e1(0xe0),'form',_0x18c5e1(0xdd),_0x18c5e1(0xdc)],'formLimit':'20mb','jsonLimit':_0x18c5e1(0xef),'textLimit':_0x18c5e1(0xef),'xmlLimit':_0x18c5e1(0xef)},'upload':{'tmpdir':_0x111914[_0x18c5e1(0xec)]+_0x18c5e1(0xe8),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x2c043a=a1_0x4794;(function(_0x39f001,_0xff2a8){var _0x567039=a1_0x4794,_0x4e3aa5=_0x39f001();while(!![]){try{var _0x2d99f2=-parseInt(_0x567039(0xc4))/0x1+parseInt(_0x567039(0xc1))/0x2+-parseInt(_0x567039(0xc9))/0x3*(parseInt(_0x567039(0xbe))/0x4)+-parseInt(_0x567039(0xc3))/0x5*(-parseInt(_0x567039(0xbf))/0x6)+parseInt(_0x567039(0xc2))/0x7*(parseInt(_0x567039(0xc5))/0x8)+-parseInt(_0x567039(0xc0))/0x9*(parseInt(_0x567039(0xc6))/0xa)+-parseInt(_0x567039(0xc7))/0xb*(-parseInt(_0x567039(0xc8))/0xc);if(_0x2d99f2===_0xff2a8)break;else _0x4e3aa5['push'](_0x4e3aa5['shift']());}catch(_0x16aafe){_0x4e3aa5['push'](_0x4e3aa5['shift']());}}}(a1_0x5c37,0x6dbfa));function a1_0x4794(_0x2278e9,_0x4f60b9){var _0x5c3769=a1_0x5c37();return a1_0x4794=function(_0x4794ae,_0x11baee){_0x4794ae=_0x4794ae-0xbe;var _0x2a0cf5=_0x5c3769[_0x4794ae];return _0x2a0cf5;},a1_0x4794(_0x2278e9,_0x4f60b9);}Object['defineProperty'](exports,a1_0x2c043a(0xca),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};function a1_0x5c37(){var _0x484aab=['377761oEdfor','52384NynEFx','2878030BDpCsq','2101cnPGXm','16980WILLbf','27603oborIv','__esModule','236ObcjrL','204gPFPPi','18aXLYka','911810hmKOLx','728ITAuTP','79205YFWmOV'];a1_0x5c37=function(){return _0x484aab;};return a1_0x5c37();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x2855c3=a2_0x3471;(function(_0x483198,_0x28ee36){const _0x76bdbe=a2_0x3471,_0x4e378f=_0x483198();while(!![]){try{const _0x51410d=-parseInt(_0x76bdbe(0x202))/0x1+-parseInt(_0x76bdbe(0x21f))/0x2+parseInt(_0x76bdbe(0x219))/0x3+parseInt(_0x76bdbe(0x252))/0x4*(-parseInt(_0x76bdbe(0x240))/0x5)+-parseInt(_0x76bdbe(0x226))/0x6*(parseInt(_0x76bdbe(0x225))/0x7)+-parseInt(_0x76bdbe(0x241))/0x8*(parseInt(_0x76bdbe(0x221))/0x9)+parseInt(_0x76bdbe(0x214))/0xa;if(_0x51410d===_0x28ee36)break;else _0x4e378f['push'](_0x4e378f['shift']());}catch(_0x389424){_0x4e378f['push'](_0x4e378f['shift']());}}}(a2_0x1a8a,0x58d13));function a2_0x1a8a(){const _0x5dce01=['onReady','function','-log','string','readdirSync','handlerActionRoute','/apps','bodyXml','keys','existsSync','Configuration','@midwayjs/koa','addObject','.log','design:type','checkConfigKeys','__esModule','/apps/','./config/config.default','482595pfHurT','defineProperty','hanlderApplications','getOwnPropertyDescriptor','environment','Types','filterConfig','getAppDir','__decorate','prototype','clients','body','mkdirSync','context','loggerConfig','headers','toLowerCase','forEach','19178570kvkzMY','staticFile','metadata','ApiError','anncicapi','2129631ZJeaWU','./types/action','device','DEFAULT','object','isArray','1335106CKHuRN','MidwayConfigService','95958WbzSDw','REQUEST_OBJ_CTX_KEY','get','request','43001xqyQQq','48TKouuo','@midwayjs/core','statSync','decorator','isFunction','midwayLogger','_matchedRoute','upload','isDirectory','length','ApiService','decorate','anncic-apihelper','getBaseDir','input','MidwayApplicationManager','Anncic-api\x20static-file\x20:\x20mkdir\x20','defaultsDeep','config','@anncic-api/cache','@midwayjs/upload','MidwayDecoratorService','application','defineProperties','dirs','apimit','5PglUdx','344pSPCqi','getConfiguration','@anncic-api/typeorm','handler','target','MidwayEnvironmentService','CustomConfiguration','tmpdir','checksign','@midwayjs/cross-domain','proceed','/runtime','intercept','app','./service/ApiService','koa','args','2424724IaREzD','query','isClass','isDevelopmentEnvironment','./exception/ApiError','__metadata','log','Inject','devices','dir','method'];a2_0x1a8a=function(){return _0x5dce01;};return a2_0x1a8a();}function a2_0x3471(_0x13a693,_0xca9583){const _0x1a8ab7=a2_0x1a8a();return a2_0x3471=function(_0x3471af,_0x418fe3){_0x3471af=_0x3471af-0x1e7;let _0x5ae5c0=_0x1a8ab7[_0x3471af];return _0x5ae5c0;},a2_0x3471(_0x13a693,_0xca9583);}var __decorate=this&&this[a2_0x2855c3(0x20a)]||function(_0xba3b05,_0x2b27d3,_0x42b057,_0x4ce5c2){const _0x3bda12=a2_0x2855c3;var _0x51d3e7=arguments[_0x3bda12(0x22f)],_0x1eb919=_0x51d3e7<0x3?_0x2b27d3:_0x4ce5c2===null?_0x4ce5c2=Object[_0x3bda12(0x205)](_0x2b27d3,_0x42b057):_0x4ce5c2,_0x41d42c;if(typeof Reflect===_0x3bda12(0x21d)&&typeof Reflect[_0x3bda12(0x231)]===_0x3bda12(0x1f0))_0x1eb919=Reflect[_0x3bda12(0x231)](_0xba3b05,_0x2b27d3,_0x42b057,_0x4ce5c2);else{for(var _0x5a7898=_0xba3b05[_0x3bda12(0x22f)]-0x1;_0x5a7898>=0x0;_0x5a7898--)if(_0x41d42c=_0xba3b05[_0x5a7898])_0x1eb919=(_0x51d3e7<0x3?_0x41d42c(_0x1eb919):_0x51d3e7>0x3?_0x41d42c(_0x2b27d3,_0x42b057,_0x1eb919):_0x41d42c(_0x2b27d3,_0x42b057))||_0x1eb919;}return _0x51d3e7>0x3&&_0x1eb919&&Object['defineProperty'](_0x2b27d3,_0x42b057,_0x1eb919),_0x1eb919;},__metadata=this&&this[a2_0x2855c3(0x1e9)]||function(_0x20e57c,_0x571117){const _0x195a73=a2_0x2855c3;if(typeof Reflect===_0x195a73(0x21d)&&typeof Reflect[_0x195a73(0x216)]===_0x195a73(0x1f0))return Reflect['metadata'](_0x20e57c,_0x571117);};Object[a2_0x2855c3(0x203)](exports,a2_0x2855c3(0x1ff),{'value':!![]}),exports[a2_0x2855c3(0x247)]=void 0x0;const core_1=require(a2_0x2855c3(0x227)),core_2=require(a2_0x2855c3(0x227)),ApiError_1=require(a2_0x2855c3(0x1e8)),ApiService_1=require(a2_0x2855c3(0x24f)),action_1=require(a2_0x2855c3(0x21a)),fs=require('fs'),koa=require(a2_0x2855c3(0x1fa)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x2855c3(0x23a)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2855c3(0x24a)),ConfigDefault=require(a2_0x2855c3(0x201)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2855c3(0x239)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x2855c3(0x243)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x2855c3(0x232));let CustomConfiguration=class CustomConfiguration{async[a2_0x2855c3(0x1ef)](){const _0x1c3c97=a2_0x2855c3;await this[_0x1c3c97(0x208)](),await this['loggerConfig'](),await this[_0x1c3c97(0x1fe)](),await this['handlerActionRoute'](),await this[_0x1c3c97(0x204)]();}async[a2_0x2855c3(0x1fe)](){}async[a2_0x2855c3(0x1f4)](){const _0x7aa049=a2_0x2855c3,_0x33cddc=this['config'][_0x7aa049(0x242)]();this[_0x7aa049(0x229)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x3a3f32=>{const _0x43e8ef=_0x3a3f32['metadata'];return{'before':async _0x42c9f0=>{const _0x4953c1=a2_0x3471;var _0x572c12,_0xef609a;const _0x11975a=(_0x572c12=_0x42c9f0===null||_0x42c9f0===void 0x0?void 0x0:_0x42c9f0['target'])===null||_0x572c12===void 0x0?void 0x0:_0x572c12[core_2[_0x4953c1(0x222)]];if(_0x11975a&&(_0x43e8ef===null||_0x43e8ef===void 0x0?void 0x0:_0x43e8ef[_0x4953c1(0x23f)])){if(!this[_0x4953c1(0x230)][_0x4953c1(0x249)]((_0xef609a=_0x11975a===null||_0x11975a===void 0x0?void 0x0:_0x11975a['request'])===null||_0xef609a===void 0x0?void 0x0:_0xef609a[_0x4953c1(0x211)]))throw new AnnError(ApiError_1[_0x4953c1(0x217)]['HEADERS_SIGNATURE']);}},'around':async _0xbf176=>{const _0x51d2f9=a2_0x3471;var _0x2a0077,_0x36fa8b,_0x407c30,_0xe46dbb,_0x160f2e;const _0x3d4c87=(_0x2a0077=_0xbf176===null||_0xbf176===void 0x0?void 0x0:_0xbf176[_0x51d2f9(0x245)])===null||_0x2a0077===void 0x0?void 0x0:_0x2a0077[core_2[_0x51d2f9(0x222)]];if(_0x3d4c87&&(_0x43e8ef===null||_0x43e8ef===void 0x0?void 0x0:_0x43e8ef[_0x51d2f9(0x23f)])){if(((_0x36fa8b=_0x3d4c87[_0x51d2f9(0x211)])===null||_0x36fa8b===void 0x0?void 0x0:_0x36fa8b[_0x51d2f9(0x21b)])&&((_0x160f2e=(_0xe46dbb=(_0x407c30=_0x33cddc===null||_0x33cddc===void 0x0?void 0x0:_0x33cddc[_0x51d2f9(0x218)])===null||_0x407c30===void 0x0?void 0x0:_0x407c30[_0x51d2f9(0x1ec)])===null||_0xe46dbb===void 0x0?void 0x0:_0xe46dbb[_0x3d4c87[_0x51d2f9(0x211)][_0x51d2f9(0x21b)]])===null||_0x160f2e===void 0x0?void 0x0:_0x160f2e[_0x51d2f9(0x24d)])){const _0x5c0688=Array[_0x51d2f9(0x21e)](_0x33cddc[_0x51d2f9(0x218)][_0x51d2f9(0x1ec)][_0x3d4c87[_0x51d2f9(0x211)][_0x51d2f9(0x21b)]][_0x51d2f9(0x24d)])?_0x33cddc[_0x51d2f9(0x218)]['devices'][_0x3d4c87[_0x51d2f9(0x211)][_0x51d2f9(0x21b)]][_0x51d2f9(0x24d)]:[_0x33cddc[_0x51d2f9(0x218)][_0x51d2f9(0x1ec)][_0x3d4c87[_0x51d2f9(0x211)]['device']]['intercept']];for(const _0xe04542 of _0x5c0688){if(core_1['Types'][_0x51d2f9(0x254)](_0xe04542)||typeof _0xe04542==_0x51d2f9(0x1f2)){const _0x484620=await _0x3d4c87['requestContext']['getAsync'](_0xe04542);typeof(_0x484620===null||_0x484620===void 0x0?void 0x0:_0x484620[_0x51d2f9(0x244)])=='function'&&await _0x484620['handler'](typeof(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87[_0x51d2f9(0x1ee)])==_0x51d2f9(0x1f2)&&(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87[_0x51d2f9(0x22c)])?_0x3d4c87[_0x51d2f9(0x1ee)]['toLowerCase']()+'@'+(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87[_0x51d2f9(0x22c)]):undefined,_0x3d4c87,_0x43e8ef);}else core_1[_0x51d2f9(0x207)][_0x51d2f9(0x22a)](_0xe04542)&&await _0xe04542(typeof(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87[_0x51d2f9(0x1ee)])==_0x51d2f9(0x1f2)&&(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87['_matchedRoute'])?_0x3d4c87[_0x51d2f9(0x1ee)][_0x51d2f9(0x212)]()+'@'+(_0x3d4c87===null||_0x3d4c87===void 0x0?void 0x0:_0x3d4c87[_0x51d2f9(0x22c)]):undefined,_0x3d4c87,_0x43e8ef);}}}return await _0xbf176[_0x51d2f9(0x24b)](..._0xbf176[_0x51d2f9(0x251)]);},'afterThrow':(_0x24ab7e,_0x39fc2f)=>{throw _0x39fc2f;}};});}async[a2_0x2855c3(0x204)](){const _0x45378f=a2_0x2855c3;this[_0x45378f(0x23c)]['getApplications']([_0x45378f(0x250)])[_0x45378f(0x213)](_0x416818=>{const _0x383131=_0x45378f;(_0x416818===null||_0x416818===void 0x0?void 0x0:_0x416818[_0x383131(0x20f)])&&Object[_0x383131(0x23d)](_0x416818[_0x383131(0x20f)],{'ok':{'value':function(_0x36792f,_0x100154,_0x5e3a69=0x0){return{'code':_0x5e3a69,'data':_0x36792f,'extra':_0x100154};}},'input':{'value':function(_0x10d044,_0x3809b5){const _0x4aafc9=_0x383131;var _0x3da4ae;const _0x453413=lodash[_0x4aafc9(0x237)]({},this[_0x4aafc9(0x224)][_0x4aafc9(0x20d)]||this[_0x4aafc9(0x224)][((_0x3da4ae=config===null||config===void 0x0?void 0x0:config[_0x4aafc9(0x1f6)])===null||_0x3da4ae===void 0x0?void 0x0:_0x3da4ae['key'])||_0x4aafc9(0x20d)]||{},this[_0x4aafc9(0x224)][_0x4aafc9(0x253)]||{});return _0x10d044?lodash[_0x4aafc9(0x223)](_0x453413,_0x10d044,_0x3809b5):_0x453413;}},'when':{'value':async function(_0x37c74f,_0x2ed405){const _0x4a4540=_0x383131,_0x376b82=this[_0x4a4540(0x234)](_0x37c74f,null);if(!lodash['isNull'](_0x376b82))return await _0x2ed405(_0x376b82);}},'only':{'value':function(_0x53fa93){const _0x31b3bd=_0x383131,_0xee9759={};for(let _0xd8014=0x0;_0xd8014<_0x53fa93[_0x31b3bd(0x22f)];_0xd8014++){lodash[_0x31b3bd(0x21e)](_0x53fa93[_0xd8014])&&_0x53fa93[_0xd8014][_0x31b3bd(0x22f)]>0x0&&lodash['isString'](_0x53fa93[_0xd8014][0x0])&&(_0xee9759[_0x53fa93[_0xd8014][0x0]]=this[_0x31b3bd(0x234)](_0x53fa93[_0xd8014][0x0],_0x53fa93[_0xd8014][_0x31b3bd(0x22f)]>0x1?_0x53fa93[_0xd8014][0x1]:null));}return _0xee9759;}}});});}async[a2_0x2855c3(0x210)](){const _0x28982e=a2_0x2855c3;var _0x4f559c,_0x33d1bc;if(fs[_0x28982e(0x1f8)](this['app'][_0x28982e(0x233)]()+_0x28982e(0x1f5))&&fs[_0x28982e(0x228)](this[_0x28982e(0x24e)][_0x28982e(0x233)]()+'/apps')['isDirectory']()){const _0x33c9be=this[_0x28982e(0x238)][_0x28982e(0x242)](),_0x335f56=((_0x4f559c=_0x33c9be===null||_0x33c9be===void 0x0?void 0x0:_0x33c9be['midwayLogger'])===null||_0x4f559c===void 0x0?void 0x0:_0x4f559c[_0x28982e(0x20c)])||{};for(const _0x3627e0 of fs[_0x28982e(0x1f3)](this['app']['getBaseDir']()+'/apps')){if(!fs[_0x28982e(0x228)](this[_0x28982e(0x24e)][_0x28982e(0x233)]()+_0x28982e(0x200)+_0x3627e0)[_0x28982e(0x22e)]())continue;if(_0x335f56===null||_0x335f56===void 0x0?void 0x0:_0x335f56[_0x3627e0])continue;_0x335f56[_0x3627e0]=Object['assign']({},((_0x33d1bc=_0x33c9be===null||_0x33c9be===void 0x0?void 0x0:_0x33c9be[_0x28982e(0x22b)])===null||_0x33d1bc===void 0x0?void 0x0:_0x33d1bc['default'])||{'maxSize':'1m','dir':this['app'][_0x28982e(0x209)]()+_0x28982e(0x24c)},{'enableJSON':!![],'enableConsole':this[_0x28982e(0x206)][_0x28982e(0x1e7)](),'fileLogName':_0x3627e0+_0x28982e(0x1fc),'dir':this[_0x28982e(0x24e)]['getAppDir']()+'/runtime/apps-'+_0x3627e0+_0x28982e(0x1f1)});}Object[_0x28982e(0x1f7)](_0x335f56)[_0x28982e(0x22f)]>0x0&&(!_0x33c9be[_0x28982e(0x22b)]&&(_0x33c9be[_0x28982e(0x22b)]={'default':{'maxSize':'1m','dir':this['app'][_0x28982e(0x209)]()+_0x28982e(0x24c)}}),_0x33c9be[_0x28982e(0x22b)][_0x28982e(0x20c)]=_0x335f56),this[_0x28982e(0x238)][_0x28982e(0x1fb)](_0x33c9be);}}async[a2_0x2855c3(0x208)](){const _0x38da00=a2_0x2855c3;var _0x2d9501,_0x269ddc,_0x4b1aa1,_0xf7eeb5,_0x4a9e02,_0x39e3a3;const _0x427135=this[_0x38da00(0x238)][_0x38da00(0x242)]();((_0x269ddc=(_0x2d9501=_0x427135===null||_0x427135===void 0x0?void 0x0:_0x427135[_0x38da00(0x218)])===null||_0x2d9501===void 0x0?void 0x0:_0x2d9501['devices'])===null||_0x269ddc===void 0x0?void 0x0:_0x269ddc[_0x38da00(0x21c)])&&Object['keys'](_0x427135[_0x38da00(0x218)]['devices'])[_0x38da00(0x22f)]>0x1&&delete _0x427135[_0x38da00(0x218)][_0x38da00(0x1ec)]['DEFAULT'];if((_0x4b1aa1=_0x427135===null||_0x427135===void 0x0?void 0x0:_0x427135[_0x38da00(0x215)])===null||_0x4b1aa1===void 0x0?void 0x0:_0x4b1aa1[_0x38da00(0x23e)])for(const _0x29a86f in _0x427135[_0x38da00(0x215)]['dirs']){((_0xf7eeb5=_0x427135[_0x38da00(0x215)][_0x38da00(0x23e)][_0x29a86f])===null||_0xf7eeb5===void 0x0?void 0x0:_0xf7eeb5[_0x38da00(0x1ed)])&&typeof((_0x4a9e02=_0x427135[_0x38da00(0x215)][_0x38da00(0x23e)][_0x29a86f])===null||_0x4a9e02===void 0x0?void 0x0:_0x4a9e02[_0x38da00(0x1ed)])==_0x38da00(0x1f2)&&!fs[_0x38da00(0x1f8)](_0x427135[_0x38da00(0x215)][_0x38da00(0x23e)][_0x29a86f][_0x38da00(0x1ed)])&&(fs[_0x38da00(0x20e)](_0x427135[_0x38da00(0x215)]['dirs'][_0x29a86f][_0x38da00(0x1ed)],{'recursive':!![]}),console[_0x38da00(0x1ea)](_0x38da00(0x236)+_0x427135['staticFile'][_0x38da00(0x23e)][_0x29a86f][_0x38da00(0x1ed)]));}((_0x39e3a3=_0x427135===null||_0x427135===void 0x0?void 0x0:_0x427135[_0x38da00(0x22d)])===null||_0x39e3a3===void 0x0?void 0x0:_0x39e3a3[_0x38da00(0x248)])&&!fs[_0x38da00(0x1f8)](_0x427135[_0x38da00(0x22d)]['tmpdir'])&&(fs['mkdirSync'](_0x427135[_0x38da00(0x22d)][_0x38da00(0x248)],{'recursive':!![]}),console[_0x38da00(0x1ea)]('Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20'+_0x427135[_0x38da00(0x22d)][_0x38da00(0x248)])),this[_0x38da00(0x238)][_0x38da00(0x1fb)](_0x427135);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x2855c3(0x1fd),Object)],CustomConfiguration[a2_0x2855c3(0x20b)],a2_0x2855c3(0x24e),void 0x0),__decorate([(0x0,core_1[a2_0x2855c3(0x1eb)])(),__metadata(a2_0x2855c3(0x1fd),core_2[a2_0x2855c3(0x220)])],CustomConfiguration[a2_0x2855c3(0x20b)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2855c3(0x1eb)])(),__metadata(a2_0x2855c3(0x1fd),core_2[a2_0x2855c3(0x23b)])],CustomConfiguration[a2_0x2855c3(0x20b)],a2_0x2855c3(0x229),void 0x0),__decorate([(0x0,core_1[a2_0x2855c3(0x1eb)])(),__metadata('design:type',core_2[a2_0x2855c3(0x235)])],CustomConfiguration[a2_0x2855c3(0x20b)],a2_0x2855c3(0x23c),void 0x0),__decorate([(0x0,core_1[a2_0x2855c3(0x1eb)])(),__metadata(a2_0x2855c3(0x1fd),core_2[a2_0x2855c3(0x246)])],CustomConfiguration[a2_0x2855c3(0x20b)],a2_0x2855c3(0x206),void 0x0),__decorate([(0x0,core_1[a2_0x2855c3(0x1eb)])(),__metadata(a2_0x2855c3(0x1fd),ApiService_1[a2_0x2855c3(0x230)])],CustomConfiguration[a2_0x2855c3(0x20b)],a2_0x2855c3(0x230),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2855c3(0x1f9)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':'anncic-api','conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2855c3(0x247)]=CustomConfiguration;
|
|
1
|
+
'use strict';const a2_0x2037d0=a2_0x3349;(function(_0x28f84b,_0x3727fc){const _0x58e73a=a2_0x3349,_0x2733af=_0x28f84b();while(!![]){try{const _0x196f5d=parseInt(_0x58e73a(0x167))/0x1+parseInt(_0x58e73a(0x173))/0x2+-parseInt(_0x58e73a(0x1c0))/0x3*(-parseInt(_0x58e73a(0x154))/0x4)+-parseInt(_0x58e73a(0x186))/0x5*(-parseInt(_0x58e73a(0x1a0))/0x6)+parseInt(_0x58e73a(0x1b5))/0x7*(-parseInt(_0x58e73a(0x1a3))/0x8)+-parseInt(_0x58e73a(0x1aa))/0x9+parseInt(_0x58e73a(0x16f))/0xa*(-parseInt(_0x58e73a(0x15e))/0xb);if(_0x196f5d===_0x3727fc)break;else _0x2733af['push'](_0x2733af['shift']());}catch(_0x4bb35c){_0x2733af['push'](_0x2733af['shift']());}}}(a2_0x3d9a,0xab556));function a2_0x3d9a(){const _0x240387=['@midwayjs/cross-domain','dir','assign','@midwayjs/koa','keys','mkdirSync','get','design:type','7yBhSuf','handler','getAppDir','handlerActionRoute','device','ACTION_ROUTE_KEY','length','default','Inject','__metadata','defineProperties','532821lBOvvw','REQUEST_OBJ_CTX_KEY','@anncic-api/cache','toLowerCase','MidwayConfigService','devices','Types','string','isString','12uEvWfZ','ApiService','getApplications','context','getBaseDir','environment','MidwayEnvironmentService','anncic-api','app','anncic-apihelper','572qlpwak','onReady','./exception/ApiError','key','getOwnPropertyDescriptor','object','isArray','MidwayDecoratorService','_matchedRoute','136803LRPNrQ','filterConfig','@midwayjs/upload','CustomConfiguration','Configuration','headers','DEFAULT','method','55280aRlnSm','@midwayjs/i18n','./service/ApiService','.log','1757124bbxFeV','intercept','@anncic-api/typeorm','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','statSync','config','staticFile','decorator','target','isClass','request','/runtime/apps-','decorate','loggerConfig','__esModule','dirs','registerMethodHandler','requestContext','/apps','94895zqmSTd','upload','application','MidwayApplicationManager','query','proceed','defineProperty','args','prototype','function','Anncic-api\x20static-file\x20:\x20mkdir\x20','isNull','isDirectory','getConfiguration','@anncic-api/event','bodyXml','./config/config.default','metadata','anncicapi','tmpdir','addObject','isDevelopmentEnvironment','./types/action','/runtime','apimit','hanlderApplications','54cXcOsg','koa','existsSync','3036376NWbrMy','isFunction','HEADERS_SIGNATURE','checkConfigKeys','/apps/','midwayLogger','body','3151908dFnckO','input','forEach'];a2_0x3d9a=function(){return _0x240387;};return a2_0x3d9a();}var __decorate=this&&this['__decorate']||function(_0x18e304,_0x36949a,_0x51dab5,_0x4a7d20){const _0x1d0625=a2_0x3349;var _0x455ff3=arguments['length'],_0x5077c0=_0x455ff3<0x3?_0x36949a:_0x4a7d20===null?_0x4a7d20=Object[_0x1d0625(0x162)](_0x36949a,_0x51dab5):_0x4a7d20,_0x4b85fe;if(typeof Reflect===_0x1d0625(0x163)&&typeof Reflect['decorate']===_0x1d0625(0x18f))_0x5077c0=Reflect[_0x1d0625(0x17f)](_0x18e304,_0x36949a,_0x51dab5,_0x4a7d20);else{for(var _0xf4ab02=_0x18e304['length']-0x1;_0xf4ab02>=0x0;_0xf4ab02--)if(_0x4b85fe=_0x18e304[_0xf4ab02])_0x5077c0=(_0x455ff3<0x3?_0x4b85fe(_0x5077c0):_0x455ff3>0x3?_0x4b85fe(_0x36949a,_0x51dab5,_0x5077c0):_0x4b85fe(_0x36949a,_0x51dab5))||_0x5077c0;}return _0x455ff3>0x3&&_0x5077c0&&Object['defineProperty'](_0x36949a,_0x51dab5,_0x5077c0),_0x5077c0;},__metadata=this&&this[a2_0x2037d0(0x1be)]||function(_0x319485,_0x211d22){const _0x163bab=a2_0x2037d0;if(typeof Reflect===_0x163bab(0x163)&&typeof Reflect[_0x163bab(0x197)]==='function')return Reflect[_0x163bab(0x197)](_0x319485,_0x211d22);};Object[a2_0x2037d0(0x18c)](exports,a2_0x2037d0(0x181),{'value':!![]}),exports[a2_0x2037d0(0x16a)]=void 0x0;const core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x2037d0(0x160)),ApiService_1=require(a2_0x2037d0(0x171)),action_1=require(a2_0x2037d0(0x19c)),fs=require('fs'),koa=require(a2_0x2037d0(0x1b0)),i18n=require(a2_0x2037d0(0x170)),upload=require(a2_0x2037d0(0x169)),staticFile=require('@midwayjs/static-file'),crossDomain=require(a2_0x2037d0(0x1ad)),ConfigDefault=require(a2_0x2037d0(0x196)),ConfigProduction=require('./config/config.production'),anncic=require('@anncic-api/core'),anncicCache=require(a2_0x2037d0(0x1c2)),anncicEvent=require(a2_0x2037d0(0x194)),anncicTypeorm=require(a2_0x2037d0(0x175)),anncicValidator=require('@anncic-api/validator'),anncicHelper=require(a2_0x2037d0(0x15d));let CustomConfiguration=class CustomConfiguration{async[a2_0x2037d0(0x15f)](){const _0x2f91f7=a2_0x2037d0;await this[_0x2f91f7(0x168)](),await this[_0x2f91f7(0x180)](),await this['checkConfigKeys'](),await this[_0x2f91f7(0x1b8)](),await this[_0x2f91f7(0x19f)]();}async[a2_0x2037d0(0x1a6)](){}async[a2_0x2037d0(0x1b8)](){const _0x3b4969=a2_0x2037d0,_0x52b11c=this[_0x3b4969(0x178)]['getConfiguration']();this['decorator'][_0x3b4969(0x183)](action_1[_0x3b4969(0x1ba)],_0x3d1e14=>{const _0x1439bf=_0x3b4969,_0x3eb0fb=_0x3d1e14[_0x1439bf(0x197)];return{'before':async _0x1f9804=>{const _0x2816e1=_0x1439bf;var _0x508ae3,_0x456fad;const _0xf2a82c=(_0x508ae3=_0x1f9804===null||_0x1f9804===void 0x0?void 0x0:_0x1f9804[_0x2816e1(0x17b)])===null||_0x508ae3===void 0x0?void 0x0:_0x508ae3[core_2[_0x2816e1(0x1c1)]];if(_0xf2a82c&&(_0x3eb0fb===null||_0x3eb0fb===void 0x0?void 0x0:_0x3eb0fb[_0x2816e1(0x19e)])){if(!this[_0x2816e1(0x155)]['checksign']((_0x456fad=_0xf2a82c===null||_0xf2a82c===void 0x0?void 0x0:_0xf2a82c['request'])===null||_0x456fad===void 0x0?void 0x0:_0x456fad[_0x2816e1(0x16c)]))throw new AnnError(ApiError_1['ApiError'][_0x2816e1(0x1a5)]);}},'around':async _0x3e8149=>{const _0x29cad7=_0x1439bf;var _0x373fc5,_0x230899,_0x2c6364,_0x1482b9,_0x5ca411;const _0xeaa9be=(_0x373fc5=_0x3e8149===null||_0x3e8149===void 0x0?void 0x0:_0x3e8149[_0x29cad7(0x17b)])===null||_0x373fc5===void 0x0?void 0x0:_0x373fc5[core_2['REQUEST_OBJ_CTX_KEY']];if(_0xeaa9be&&(_0x3eb0fb===null||_0x3eb0fb===void 0x0?void 0x0:_0x3eb0fb['apimit'])){if(((_0x230899=_0xeaa9be[_0x29cad7(0x16c)])===null||_0x230899===void 0x0?void 0x0:_0x230899[_0x29cad7(0x1b9)])&&((_0x5ca411=(_0x1482b9=(_0x2c6364=_0x52b11c===null||_0x52b11c===void 0x0?void 0x0:_0x52b11c[_0x29cad7(0x198)])===null||_0x2c6364===void 0x0?void 0x0:_0x2c6364[_0x29cad7(0x1c5)])===null||_0x1482b9===void 0x0?void 0x0:_0x1482b9[_0xeaa9be['headers'][_0x29cad7(0x1b9)]])===null||_0x5ca411===void 0x0?void 0x0:_0x5ca411['intercept'])){const _0x5b71f7=Array[_0x29cad7(0x164)](_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)][_0x29cad7(0x1b9)]][_0x29cad7(0x174)])?_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)]['device']][_0x29cad7(0x174)]:[_0x52b11c[_0x29cad7(0x198)][_0x29cad7(0x1c5)][_0xeaa9be[_0x29cad7(0x16c)][_0x29cad7(0x1b9)]][_0x29cad7(0x174)]];for(const _0x104c99 of _0x5b71f7){if(core_1['Types'][_0x29cad7(0x17c)](_0x104c99)||typeof _0x104c99==_0x29cad7(0x1c7)){const _0x195016=await _0xeaa9be[_0x29cad7(0x184)]['getAsync'](_0x104c99);typeof(_0x195016===null||_0x195016===void 0x0?void 0x0:_0x195016[_0x29cad7(0x1b6)])==_0x29cad7(0x18f)&&await _0x195016['handler'](typeof(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be['method'])==_0x29cad7(0x1c7)&&(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be['_matchedRoute'])?_0xeaa9be[_0x29cad7(0x16e)][_0x29cad7(0x1c3)]()+'@'+(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)]):undefined,_0xeaa9be,_0x3eb0fb);}else core_1[_0x29cad7(0x1c6)][_0x29cad7(0x1a4)](_0x104c99)&&await _0x104c99(typeof(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x16e)])==_0x29cad7(0x1c7)&&(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)])?_0xeaa9be['method'][_0x29cad7(0x1c3)]()+'@'+(_0xeaa9be===null||_0xeaa9be===void 0x0?void 0x0:_0xeaa9be[_0x29cad7(0x166)]):undefined,_0xeaa9be,_0x3eb0fb);}}}return await _0x3e8149[_0x29cad7(0x18b)](..._0x3e8149[_0x29cad7(0x18d)]);},'afterThrow':(_0xd6fbc,_0x4fe705)=>{throw _0x4fe705;}};});}async[a2_0x2037d0(0x19f)](){const _0x31eaff=a2_0x2037d0;this[_0x31eaff(0x188)][_0x31eaff(0x156)]([_0x31eaff(0x1a1)])[_0x31eaff(0x1ac)](_0x43664d=>{const _0x49cbf9=_0x31eaff;(_0x43664d===null||_0x43664d===void 0x0?void 0x0:_0x43664d[_0x49cbf9(0x157)])&&Object[_0x49cbf9(0x1bf)](_0x43664d[_0x49cbf9(0x157)],{'ok':{'value':function(_0x985baf,_0x28f9e3,_0x42e79a=0x0){return{'code':_0x42e79a,'data':_0x985baf,'extra':_0x28f9e3};}},'input':{'value':function(_0x2af144,_0x4f76af){const _0x154459=_0x49cbf9;var _0x1945b9;const _0x3ba7a9=lodash['defaultsDeep']({},this['request'][_0x154459(0x1a9)]||this['request'][((_0x1945b9=config===null||config===void 0x0?void 0x0:config[_0x154459(0x195)])===null||_0x1945b9===void 0x0?void 0x0:_0x1945b9[_0x154459(0x161)])||_0x154459(0x1a9)]||{},this[_0x154459(0x17d)][_0x154459(0x18a)]||{});return _0x2af144?lodash[_0x154459(0x1b3)](_0x3ba7a9,_0x2af144,_0x4f76af):_0x3ba7a9;}},'when':{'value':async function(_0x315cd9,_0x51a059){const _0x1a3cac=_0x49cbf9,_0x2c42a8=this[_0x1a3cac(0x1ab)](_0x315cd9,null);if(!lodash[_0x1a3cac(0x191)](_0x2c42a8))return await _0x51a059(_0x2c42a8);}},'only':{'value':function(_0x2cfb23){const _0x1ff308=_0x49cbf9,_0x592968={};for(let _0xbd6cba=0x0;_0xbd6cba<_0x2cfb23[_0x1ff308(0x1bb)];_0xbd6cba++){lodash[_0x1ff308(0x164)](_0x2cfb23[_0xbd6cba])&&_0x2cfb23[_0xbd6cba]['length']>0x0&&lodash[_0x1ff308(0x1c8)](_0x2cfb23[_0xbd6cba][0x0])&&(_0x592968[_0x2cfb23[_0xbd6cba][0x0]]=this['input'](_0x2cfb23[_0xbd6cba][0x0],_0x2cfb23[_0xbd6cba]['length']>0x1?_0x2cfb23[_0xbd6cba][0x1]:null));}return _0x592968;}}});});}async[a2_0x2037d0(0x180)](){const _0x5179f8=a2_0x2037d0;var _0x550cd0,_0x1811df;if(fs[_0x5179f8(0x1a2)](this['app']['getBaseDir']()+_0x5179f8(0x185))&&fs['statSync'](this['app'][_0x5179f8(0x158)]()+_0x5179f8(0x185))[_0x5179f8(0x192)]()){const _0x137175=this['config']['getConfiguration'](),_0x2ff5b2=((_0x550cd0=_0x137175===null||_0x137175===void 0x0?void 0x0:_0x137175['midwayLogger'])===null||_0x550cd0===void 0x0?void 0x0:_0x550cd0['clients'])||{};for(const _0x2751f1 of fs['readdirSync'](this[_0x5179f8(0x15c)][_0x5179f8(0x158)]()+_0x5179f8(0x185))){if(!fs[_0x5179f8(0x177)](this[_0x5179f8(0x15c)]['getBaseDir']()+_0x5179f8(0x1a7)+_0x2751f1)[_0x5179f8(0x192)]())continue;if(_0x2ff5b2===null||_0x2ff5b2===void 0x0?void 0x0:_0x2ff5b2[_0x2751f1])continue;_0x2ff5b2[_0x2751f1]=Object[_0x5179f8(0x1af)]({},((_0x1811df=_0x137175===null||_0x137175===void 0x0?void 0x0:_0x137175[_0x5179f8(0x1a8)])===null||_0x1811df===void 0x0?void 0x0:_0x1811df[_0x5179f8(0x1bc)])||{'maxSize':'1m','dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+'/runtime'},{'enableJSON':!![],'enableConsole':this[_0x5179f8(0x159)][_0x5179f8(0x19b)](),'fileLogName':_0x2751f1+_0x5179f8(0x172),'dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+_0x5179f8(0x17e)+_0x2751f1+'-log'});}Object[_0x5179f8(0x1b1)](_0x2ff5b2)[_0x5179f8(0x1bb)]>0x0&&(!_0x137175[_0x5179f8(0x1a8)]&&(_0x137175[_0x5179f8(0x1a8)]={'default':{'maxSize':'1m','dir':this[_0x5179f8(0x15c)][_0x5179f8(0x1b7)]()+_0x5179f8(0x19d)}}),_0x137175[_0x5179f8(0x1a8)]['clients']=_0x2ff5b2),this['config'][_0x5179f8(0x19a)](_0x137175);}}async[a2_0x2037d0(0x168)](){const _0x11963a=a2_0x2037d0;var _0x2aa6b2,_0xfd0474,_0x331dcb,_0x5bdad7,_0x142e9f,_0x4aaa7c;const _0x4d01da=this[_0x11963a(0x178)][_0x11963a(0x193)]();((_0xfd0474=(_0x2aa6b2=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da[_0x11963a(0x198)])===null||_0x2aa6b2===void 0x0?void 0x0:_0x2aa6b2[_0x11963a(0x1c5)])===null||_0xfd0474===void 0x0?void 0x0:_0xfd0474['DEFAULT'])&&Object[_0x11963a(0x1b1)](_0x4d01da[_0x11963a(0x198)][_0x11963a(0x1c5)])['length']>0x1&&delete _0x4d01da[_0x11963a(0x198)]['devices'][_0x11963a(0x16d)];if((_0x331dcb=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da['staticFile'])===null||_0x331dcb===void 0x0?void 0x0:_0x331dcb['dirs'])for(const _0xcafaf1 in _0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)]){((_0x5bdad7=_0x4d01da[_0x11963a(0x179)]['dirs'][_0xcafaf1])===null||_0x5bdad7===void 0x0?void 0x0:_0x5bdad7[_0x11963a(0x1ae)])&&typeof((_0x142e9f=_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1])===null||_0x142e9f===void 0x0?void 0x0:_0x142e9f[_0x11963a(0x1ae)])==_0x11963a(0x1c7)&&!fs[_0x11963a(0x1a2)](_0x4d01da[_0x11963a(0x179)]['dirs'][_0xcafaf1][_0x11963a(0x1ae)])&&(fs[_0x11963a(0x1b2)](_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1][_0x11963a(0x1ae)],{'recursive':!![]}),console['log'](_0x11963a(0x190)+_0x4d01da[_0x11963a(0x179)][_0x11963a(0x182)][_0xcafaf1]['dir']));}((_0x4aaa7c=_0x4d01da===null||_0x4d01da===void 0x0?void 0x0:_0x4d01da['upload'])===null||_0x4aaa7c===void 0x0?void 0x0:_0x4aaa7c[_0x11963a(0x199)])&&!fs[_0x11963a(0x1a2)](_0x4d01da[_0x11963a(0x187)][_0x11963a(0x199)])&&(fs['mkdirSync'](_0x4d01da['upload'][_0x11963a(0x199)],{'recursive':!![]}),console['log'](_0x11963a(0x176)+_0x4d01da[_0x11963a(0x187)][_0x11963a(0x199)])),this[_0x11963a(0x178)][_0x11963a(0x19a)](_0x4d01da);}};function a2_0x3349(_0x3d89d5,_0x4d903c){const _0x3d9a21=a2_0x3d9a();return a2_0x3349=function(_0x3349d3,_0x3218ce){_0x3349d3=_0x3349d3-0x154;let _0x19d385=_0x3d9a21[_0x3349d3];return _0x19d385;},a2_0x3349(_0x3d89d5,_0x4d903c);}__decorate([(0x0,core_1['App'])(),__metadata(a2_0x2037d0(0x1b4),Object)],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x15c),void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata('design:type',core_2[a2_0x2037d0(0x1c4)])],CustomConfiguration['prototype'],'config',void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata(a2_0x2037d0(0x1b4),core_2[a2_0x2037d0(0x165)])],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x17a),void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata('design:type',core_2[a2_0x2037d0(0x189)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x2037d0(0x1bd)])(),__metadata(a2_0x2037d0(0x1b4),core_2[a2_0x2037d0(0x15a)])],CustomConfiguration['prototype'],a2_0x2037d0(0x159),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x2037d0(0x1b4),ApiService_1['ApiService'])],CustomConfiguration[a2_0x2037d0(0x18e)],a2_0x2037d0(0x155),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x2037d0(0x16b)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x2037d0(0x15b),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports[a2_0x2037d0(0x16a)]=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x9d7b1d=a3_0x41ce;(function(_0xaabfdc,_0x1b492f){const _0x3968e8=a3_0x41ce,_0x5361ba=_0xaabfdc();while(!![]){try{const _0x32ba8b=-parseInt(_0x3968e8(0x13e))/0x1+-parseInt(_0x3968e8(0x13a))/0x2+-parseInt(_0x3968e8(0x137))/0x3*(-parseInt(_0x3968e8(0x158))/0x4)+-parseInt(_0x3968e8(0x15f))/0x5+parseInt(_0x3968e8(0x15c))/0x6*(-parseInt(_0x3968e8(0x14c))/0x7)+-parseInt(_0x3968e8(0x14a))/0x8+parseInt(_0x3968e8(0x13b))/0x9*(parseInt(_0x3968e8(0x151))/0xa);if(_0x32ba8b===_0x1b492f)break;else _0x5361ba['push'](_0x5361ba['shift']());}catch(_0x34f9be){_0x5361ba['push'](_0x5361ba['shift']());}}}(a3_0x339c,0xc129d));function a3_0x41ce(_0x58cb1d,_0x4f3fe4){const _0x339c67=a3_0x339c();return a3_0x41ce=function(_0x41ce37,_0x51e372){_0x41ce37=_0x41ce37-0x128;let _0x437429=_0x339c67[_0x41ce37];return _0x437429;},a3_0x41ce(_0x58cb1d,_0x4f3fe4);}Object['defineProperty'](exports,a3_0x9d7b1d(0x13f),{'value':!![]}),exports[a3_0x9d7b1d(0x13c)]=exports[a3_0x9d7b1d(0x142)]=void 0x0;const fs=require('fs'),core_1=require(a3_0x9d7b1d(0x146)),action_1=require(a3_0x9d7b1d(0x154));function Action(_0x302010,_0x3e39f8,_0x5578f5={'middleware':[],'sensitive':!![]}){return _0x3c6c32=>{const _0x447585=a3_0x41ce;var _0x1bd438;_0x5578f5['tagName']=_0x3e39f8;const _0x4f0ef6=parseRoute(_0x302010);if(_0x4f0ef6['module']){_0x5578f5[_0x447585(0x14d)]=_0x5578f5[_0x447585(0x14d)]?'/'+_0x4f0ef6[_0x447585(0x153)]+'/'+_0x5578f5[_0x447585(0x14d)]:'/'+_0x4f0ef6[_0x447585(0x130)];_0x4f0ef6['prefix']&&(_0x5578f5[_0x447585(0x14d)]='/'+_0x4f0ef6['prefix']+'/'+_0x5578f5['prefix']);if(fs[_0x447585(0x14f)](_0x4f0ef6[_0x447585(0x12c)]+_0x447585(0x145)+_0x4f0ef6[_0x447585(0x153)]+_0x447585(0x131)+(lodash[_0x447585(0x12f)](_0x4f0ef6[_0x447585(0x14e)],'ts')?'ts':'js'))){const _0x3e8a39=include(_0x4f0ef6['rootpath']+_0x447585(0x145)+_0x4f0ef6[_0x447585(0x153)]+_0x447585(0x131)+(lodash[_0x447585(0x12f)](_0x4f0ef6['filepath'],'ts')?'ts':'js'));if(_0x3e8a39[_0x447585(0x150)]&&lodash[_0x447585(0x139)](_0x3e8a39[_0x447585(0x150)])&&_0x3e8a39['middleware'][_0x447585(0x15a)]>0x0)for(let _0x36ff89 in _0x3e8a39[_0x447585(0x150)]){if(((_0x1bd438=_0x3e8a39===null||_0x3e8a39===void 0x0?void 0x0:_0x3e8a39[_0x447585(0x159)])===null||_0x1bd438===void 0x0?void 0x0:_0x1bd438[_0x447585(0x15a)])>0x0&&_0x3e8a39[_0x447585(0x159)]['indexOf'](_0x3e8a39[_0x447585(0x150)][_0x36ff89])!=-0x1)continue;_0x5578f5[_0x447585(0x150)][_0x447585(0x15d)](_0x3e8a39[_0x447585(0x150)][_0x36ff89]);}const _0x127e27=(0x0,core_1[_0x447585(0x13d)])(action_1[_0x447585(0x12d)],action_1[_0x447585(0x15b)])||{};_0x127e27[''+_0x4f0ef6['module']]=_0x3e8a39,(0x0,core_1[_0x447585(0x141)])(action_1[_0x447585(0x12d)],_0x127e27,action_1[_0x447585(0x15b)]);}_0x5578f5[_0x447585(0x14d)]=_0x5578f5[_0x447585(0x14d)]['toLowerCase']()[_0x447585(0x140)](/\/{2,}/g,'/'),(0x0,core_1[_0x447585(0x155)])(action_1[_0x447585(0x144)],_0x3c6c32),(0x0,core_1[_0x447585(0x157)])(_0x5578f5[_0x447585(0x14d)],_0x5578f5)(_0x3c6c32),(0x0,core_1[_0x447585(0x141)])(action_1['ACTION_KEY'],{'prefix':_0x5578f5[_0x447585(0x14d)],'pprefix':_0x4f0ef6[_0x447585(0x14d)],'module':_0x4f0ef6[_0x447585(0x153)],'filepath':_0x4f0ef6['filepath'],'routerOptions':_0x5578f5},_0x3c6c32);}else _0x5578f5[_0x447585(0x14d)]=_0x5578f5[_0x447585(0x14d)]?'/'+_0x5578f5[_0x447585(0x14d)]:'/'+_0x4f0ef6[_0x447585(0x130)],_0x4f0ef6[_0x447585(0x14d)]&&(_0x5578f5[_0x447585(0x14d)]='/'+_0x4f0ef6[_0x447585(0x14d)]+'/'+_0x5578f5['prefix']),_0x5578f5[_0x447585(0x14d)]=_0x5578f5[_0x447585(0x14d)][_0x447585(0x15e)]()[_0x447585(0x140)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x447585(0x144)],_0x3c6c32),(0x0,core_1[_0x447585(0x157)])(_0x5578f5['prefix'],_0x5578f5)(_0x3c6c32),(0x0,core_1[_0x447585(0x141)])(action_1[_0x447585(0x144)],{'prefix':_0x5578f5[_0x447585(0x14d)],'module':_0x4f0ef6[_0x447585(0x153)],'pprefix':_0x4f0ef6[_0x447585(0x14d)],'filepath':_0x4f0ef6[_0x447585(0x14e)],'routerOptions':_0x5578f5},_0x3c6c32);};}exports[a3_0x9d7b1d(0x142)]=Action;function a3_0x339c(){const _0x636862=['@midwayjs/core','filter','substring','app/controller/','7968720XQMFYK','basic/controller/','14nULfKh','prefix','filepath','existsSync','middleware','198410irJzWT','-controller','module','../types/action','saveModule','apps/','Controller','72bSgnWN','middlewareIgnore','length','AppsConfigTmp','392790yxeDFZ','push','toLowerCase','1426550HuWzBE','trim','/controller/文件下','match','splice','rootpath','APPSCONFIG_KEY','join','endsWith','route','/config.','split','indexOf','\x20文件请放在apps/','cwd','startsWith','93417ZnylMP','/controller/','isArray','3158236AUZhoy','2061nPRqtY','parseRoute','getClassMetadata','1321446LxHjlc','__esModule','replace','saveClassMetadata','Action','-action','ACTION_KEY','/apps/'];a3_0x339c=function(){return _0x636862;};return a3_0x339c();}function parseRoute(_0x5dc893){const _0xc444ef=a3_0x9d7b1d;_0x5dc893=_0x5dc893[_0xc444ef(0x140)](/(\\|\/)/g,'/');const _0x58041b=process[_0xc444ef(0x135)]()[_0xc444ef(0x140)](/(\\|\/)/g,'/'),_0x375ae6=_0x5dc893[_0xc444ef(0x148)](0x0,_0x58041b['length']+_0x5dc893['substring'](_0x58041b['length']+0x1)[_0xc444ef(0x133)]('/')+0x1),_0x503c11=_0x5dc893['substring'](_0x375ae6[_0xc444ef(0x15a)]+0x1)[_0xc444ef(0x140)](/(\\|\/)/g,'/'),_0x57dcc0={'route':'','prefix':![],'module':![],'rootpath':_0x375ae6,'filepath':_0x503c11};if(_0x503c11[_0xc444ef(0x136)](_0xc444ef(0x149))||_0x503c11[_0xc444ef(0x136)]('basic/controller/')){const _0x5b373a=_0x503c11[_0xc444ef(0x148)]((_0x503c11['startsWith'](_0xc444ef(0x149))?_0xc444ef(0x149):_0xc444ef(0x14b))['length'])[_0xc444ef(0x132)]('/')[_0xc444ef(0x147)](_0x2d2988=>_0x2d2988&&_0x2d2988['trim']());return _0x5b373a['length']>0x1&&(_0x57dcc0[_0xc444ef(0x14d)]=_0x5b373a[0x0][_0xc444ef(0x15e)](),_0x5b373a['splice'](0x0,0x1)),_0x57dcc0[_0xc444ef(0x130)]=('/'+_0x5b373a[_0xc444ef(0x12e)]('/'))[_0xc444ef(0x140)](/(\.ts|\.js)$/,'')[_0xc444ef(0x140)](/\/{2,}/g,'/')[_0xc444ef(0x12a)](/[\/|A-Z]*[^A-Z]+/g)[_0xc444ef(0x12e)]('-')[_0xc444ef(0x15e)]()['replace'](/\/\-/g,'/'),_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x12f)](_0xc444ef(0x143))&&(_0x57dcc0['route']=_0x57dcc0[_0xc444ef(0x130)]['substring'](0x0,_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x15a)]-0x7)),_0x57dcc0[_0xc444ef(0x130)]['endsWith'](_0xc444ef(0x152))&&(_0x57dcc0[_0xc444ef(0x130)]=_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x148)](0x0,_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x15a)]-0xb)),_0x57dcc0;}else{if(_0x503c11[_0xc444ef(0x136)](_0xc444ef(0x156))){const _0xe1596b=_0x503c11[_0xc444ef(0x148)](0x0,_0x503c11[_0xc444ef(0x133)](_0xc444ef(0x145))+0x5),_0x4895c3=_0x503c11[_0xc444ef(0x148)](_0xe1596b[_0xc444ef(0x15a)]+0x1)[_0xc444ef(0x140)](/(\\|\/)/g,'/')[_0xc444ef(0x132)]('/')[0x0];if(_0x503c11[_0xc444ef(0x136)]('apps/'+_0x4895c3+_0xc444ef(0x138))){const _0x23e8b1=_0x503c11[_0xc444ef(0x148)]((_0xe1596b+'/'+_0x4895c3+'/controller/')[_0xc444ef(0x15a)])[_0xc444ef(0x132)]('/')['filter'](_0x3cf55b=>_0x3cf55b&&_0x3cf55b[_0xc444ef(0x128)]());return _0x23e8b1[_0xc444ef(0x15a)]>0x1&&(_0x57dcc0[_0xc444ef(0x14d)]=_0x23e8b1[0x0]['toLowerCase'](),_0x23e8b1[_0xc444ef(0x12b)](0x0,0x1)),_0x57dcc0[_0xc444ef(0x153)]=_0x4895c3,_0x57dcc0[_0xc444ef(0x130)]=('/'+_0x4895c3+'/'+_0x23e8b1['join']('/'))[_0xc444ef(0x140)](/(\.ts|\.js)$/,'')[_0xc444ef(0x140)](/\/{2,}/,'/')['match'](/[\/|A-Z]*[^A-Z]+/g)[_0xc444ef(0x12e)]('-')[_0xc444ef(0x15e)]()[_0xc444ef(0x140)](/\/\-/g,'/'),_0x57dcc0[_0xc444ef(0x130)]['endsWith']('-action')&&(_0x57dcc0['route']=_0x57dcc0[_0xc444ef(0x130)]['substring'](0x0,_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x15a)]-0x7)),_0x57dcc0[_0xc444ef(0x130)][_0xc444ef(0x12f)](_0xc444ef(0x152))&&(_0x57dcc0['route']=_0x57dcc0['route']['substring'](0x0,_0x57dcc0[_0xc444ef(0x130)]['length']-0xb)),_0x57dcc0;}throw new Error(_0x503c11+_0xc444ef(0x134)+_0x4895c3+_0xc444ef(0x129));}}throw new Error(_0x503c11+'\x20文件请放在app/controller/文件下');}exports[a3_0x9d7b1d(0x13c)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x3c6f94=a4_0x3d44;(function(_0x469898,_0x49515d){const _0x2f70b9=a4_0x3d44,_0x2f6c91=_0x469898();while(!![]){try{const _0x2cb2d0=parseInt(_0x2f70b9(0x8d))/0x1+-parseInt(_0x2f70b9(0x89))/0x2+-parseInt(_0x2f70b9(0x7e))/0x3*(parseInt(_0x2f70b9(0x94))/0x4)+-parseInt(_0x2f70b9(0x85))/0x5*(parseInt(_0x2f70b9(0x86))/0x6)+-parseInt(_0x2f70b9(0x95))/0x7*(parseInt(_0x2f70b9(0x84))/0x8)+parseInt(_0x2f70b9(0x81))/0x9*(parseInt(_0x2f70b9(0x7d))/0xa)+parseInt(_0x2f70b9(0x97))/0xb;if(_0x2cb2d0===_0x49515d)break;else _0x2f6c91['push'](_0x2f6c91['shift']());}catch(_0x4b1ee4){_0x2f6c91['push'](_0x2f6c91['shift']());}}}(a4_0x4fcb,0x6881a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x3c6f94(0x7a)]=void 0x0;function a4_0x3d44(_0x249fb1,_0x2b959e){const _0x4fcb11=a4_0x4fcb();return a4_0x3d44=function(_0x3d4430,_0x322ec3){_0x3d4430=_0x3d4430-0x79;let _0x72f217=_0x4fcb11[_0x3d4430];return _0x72f217;},a4_0x3d44(_0x249fb1,_0x2b959e);}function a4_0x4fcb(){const _0x553f5b=['routerName','toLowerCase','94712XbifES','3320870Nidupk','6hgfOON','del','description','120960EDrrPo','validationOptions','middleware','middlewareIgnore','706173tJvjGt','length','attachClassMetadata','@anncic-api/validator','createCustomMethodDecorator','indexOf','filter','92tmVSOM','329OkNJWG','delete','11806685PHbDki','string','validate','get','Api','../types/action','RequestMapping','10130QjDmca','87399wlvrIA','apimit','ACTION_ROUTE_KEY','5328bOHoAB'];a4_0x4fcb=function(){return _0x553f5b;};return a4_0x4fcb();}const validator_1=require(a4_0x3c6f94(0x90)),core_1=require('@midwayjs/core'),action_1=require(a4_0x3c6f94(0x7b));function Api(_0x2aa3dc,_0x3f1183=a4_0x3c6f94(0x79),_0x27b93b='/',_0x5f1568={'apimit':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x35f57f,_0x45ac99,_0x21e0a5)=>{const _0x17d31d=a4_0x3d44;var _0x42ace8,_0x32472d,_0x3eb24c;!_0x5f1568[_0x17d31d(0x8b)]&&(_0x5f1568[_0x17d31d(0x8b)]=[]);!((_0x42ace8=_0x5f1568===null||_0x5f1568===void 0x0?void 0x0:_0x5f1568['validate'])===null||_0x42ace8===void 0x0?void 0x0:_0x42ace8[_0x17d31d(0x8a)])&&(_0x5f1568['validate']={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x17d31d(0x98)}});if(((_0x32472d=_0x5f1568===null||_0x5f1568===void 0x0?void 0x0:_0x5f1568[_0x17d31d(0x8b)])===null||_0x32472d===void 0x0?void 0x0:_0x32472d[_0x17d31d(0x8e)])>0x0&&((_0x3eb24c=_0x5f1568===null||_0x5f1568===void 0x0?void 0x0:_0x5f1568[_0x17d31d(0x8c)])===null||_0x3eb24c===void 0x0?void 0x0:_0x3eb24c['length'])>0x0)for(let _0x197b31 in _0x5f1568[_0x17d31d(0x8b)]){_0x5f1568[_0x17d31d(0x8c)][_0x17d31d(0x92)](_0x5f1568['middleware'][_0x197b31])!==-0x1&&(_0x5f1568[_0x17d31d(0x8b)][_0x197b31]=null);}_0x5f1568[_0x17d31d(0x82)]=_0x2aa3dc,(0x0,validator_1['Validator'])(_0x5f1568[_0x17d31d(0x99)])(_0x35f57f,_0x45ac99,_0x21e0a5),(0x0,core_1[_0x17d31d(0x7c)])(Object['assign'](_0x5f1568,{'path':_0x27b93b,'requestMethod':(_0x3f1183==_0x17d31d(0x87)?_0x17d31d(0x96):_0x3f1183)[_0x17d31d(0x83)]()}))(_0x35f57f,_0x45ac99,_0x21e0a5),(0x0,core_1[_0x17d31d(0x8f)])(action_1[_0x17d31d(0x80)],{'path':_0x27b93b,'method':_0x45ac99,'apimit':_0x5f1568['apimit'],'routerName':_0x5f1568[_0x17d31d(0x82)],'description':_0x5f1568[_0x17d31d(0x88)],'middleware':(_0x5f1568['middleware']||[])['filter'](_0x5a0841=>!!_0x5a0841),'requestMethod':(_0x3f1183==_0x17d31d(0x87)?'delete':_0x3f1183)['toLowerCase']()},_0x35f57f),(0x0,core_1[_0x17d31d(0x91)])(action_1[_0x17d31d(0x80)],{'path':_0x27b93b,'method':_0x45ac99,'apimit':_0x5f1568[_0x17d31d(0x7f)],'routerName':_0x5f1568[_0x17d31d(0x82)],'description':_0x5f1568['description'],'middleware':(_0x5f1568[_0x17d31d(0x8b)]||[])[_0x17d31d(0x93)](_0xe0944e=>!!_0xe0944e),'requestMethod':(_0x3f1183==_0x17d31d(0x87)?'delete':_0x3f1183)[_0x17d31d(0x83)]()})(_0x35f57f,_0x45ac99,_0x21e0a5);};}exports[a4_0x3c6f94(0x7a)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x10fe23=a5_0x4fbc;(function(_0x47a9a1,_0xc9902c){const _0x417f98=a5_0x4fbc,_0xb364e0=_0x47a9a1();while(!![]){try{const _0x5c594b=-parseInt(_0x417f98(0x17d))/0x1+-parseInt(_0x417f98(0x192))/0x2*(-parseInt(_0x417f98(0x195))/0x3)+parseInt(_0x417f98(0x17e))/0x4*(-parseInt(_0x417f98(0x184))/0x5)+parseInt(_0x417f98(0x193))/0x6*(-parseInt(_0x417f98(0x181))/0x7)+parseInt(_0x417f98(0x17f))/0x8*(-parseInt(_0x417f98(0x17c))/0x9)+parseInt(_0x417f98(0x18b))/0xa+parseInt(_0x417f98(0x18a))/0xb;if(_0x5c594b===_0xc9902c)break;else _0xb364e0['push'](_0xb364e0['shift']());}catch(_0x55aa9){_0xb364e0['push'](_0xb364e0['shift']());}}}(a5_0xd1b7,0x817ca));function a5_0x4fbc(_0x50f47b,_0x5bc26c){const _0xd1b7a7=a5_0xd1b7();return a5_0x4fbc=function(_0x4fbc4e,_0x2d7809){_0x4fbc4e=_0x4fbc4e-0x17c;let _0x5bdd83=_0xd1b7a7[_0x4fbc4e];return _0x5bdd83;},a5_0x4fbc(_0x50f47b,_0x5bc26c);}function a5_0xd1b7(){const _0x1bc991=['getAsync','REQUEST_OBJ_CTX_KEY','RequestMapping','apitest','__esModule','26870756HlJKLk','1435400UBhJCx','defineProperty','Apitest','../service/ApitestService','getApplicationContext','@midwayjs/core','apidoc','14cPIrKb','90786twcElj','ApitestService','184155ZBnwyc','/apitest','filepath','7029ATJzHY','535190yTVOtn','1854572NkwZKP','5056BJbRAP','MidwayEnvironmentService','245opKQSE','value','isDevelopmentEnvironment','10OWkiIH'];a5_0xd1b7=function(){return _0x1bc991;};return a5_0xd1b7();}Object[a5_0x10fe23(0x18c)](exports,a5_0x10fe23(0x189),{'value':!![]}),exports[a5_0x10fe23(0x18d)]=void 0x0;const core_1=require(a5_0x10fe23(0x190)),ApitestService_1=require(a5_0x10fe23(0x18e));function Apitest(_0xaaadc1=a5_0x10fe23(0x196),_0x869717){return(_0x5615ce,_0xf1ded4,_0x2cdcae)=>{const _0x6c972a=a5_0x4fbc;return(0x0,core_1[_0x6c972a(0x187)])({'path':_0xaaadc1,'requestMethod':'get'})(_0x5615ce,_0xf1ded4,_0x2cdcae),_0x2cdcae[_0x6c972a(0x182)]=async function(..._0x18049b){const _0x3eaef1=_0x6c972a;var _0x3bb3a8;const _0x15d3dc=(_0x3bb3a8=this[core_1[_0x3eaef1(0x186)]])===null||_0x3bb3a8===void 0x0?void 0x0:_0x3bb3a8['app'];if(_0x15d3dc&&_0x15d3dc['getConfig'](_0x3eaef1(0x188))){const _0x149484=await _0x15d3dc[_0x3eaef1(0x18f)]()[_0x3eaef1(0x185)](ApitestService_1[_0x3eaef1(0x194)]),_0x277f7b=await _0x15d3dc[_0x3eaef1(0x18f)]()[_0x3eaef1(0x185)](core_1[_0x3eaef1(0x180)]);return _0x277f7b[_0x3eaef1(0x183)]()&&(_0x869717[_0x3eaef1(0x197)]=!![]),await _0x149484[_0x3eaef1(0x191)](_0x869717);}return'';},_0x2cdcae;};}exports[a5_0x10fe23(0x18d)]=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x1f07(){var _0x3ea308=['请求超时,请重试','13377612LaaIug','74221KITpRX','268187uPxktD','function','__esModule','metadata','signature验证失败','1648030QNiMZU','370863zSWpEk','HEADERS_SIGNATURE','__metadata','登录超时,请重新登录','271977qsqVij','4xvYAMm','decorate','HEADERS_LACK','length','TIMEOUT','design:type','HEADERS_DEVICE','2260025Dqvret','78kaskNV','HEADERS_CHECKCODE','object','defineProperty','TIMEOUT_LOGINTIME','请求头信息不完整','8RdOWjG','11ynAOYA','验证失败,请重新登录','2thtPkE'];a6_0x1f07=function(){return _0x3ea308;};return a6_0x1f07();}var a6_0x5bd32c=a6_0x53cf;(function(_0x2e18b2,_0x177c0a){var _0x5a2802=a6_0x53cf,_0x1f590f=_0x2e18b2();while(!![]){try{var _0x29fd8f=-parseInt(_0x5a2802(0x1de))/0x1+parseInt(_0x5a2802(0x1da))/0x2*(-parseInt(_0x5a2802(0x1e8))/0x3)+-parseInt(_0x5a2802(0x1e9))/0x4*(parseInt(_0x5a2802(0x1f0))/0x5)+-parseInt(_0x5a2802(0x1f1))/0x6*(-parseInt(_0x5a2802(0x1dd))/0x7)+parseInt(_0x5a2802(0x1f7))/0x8*(-parseInt(_0x5a2802(0x1e4))/0x9)+parseInt(_0x5a2802(0x1e3))/0xa*(-parseInt(_0x5a2802(0x1f8))/0xb)+parseInt(_0x5a2802(0x1dc))/0xc;if(_0x29fd8f===_0x177c0a)break;else _0x1f590f['push'](_0x1f590f['shift']());}catch(_0x23354f){_0x1f590f['push'](_0x1f590f['shift']());}}}(a6_0x1f07,0x39903));var __decorate=this&&this['__decorate']||function(_0x485b2e,_0x581367,_0x224b88,_0x3c5ff9){var _0x4f2ff5=a6_0x53cf,_0x2a99db=arguments[_0x4f2ff5(0x1ec)],_0x603438=_0x2a99db<0x3?_0x581367:_0x3c5ff9===null?_0x3c5ff9=Object['getOwnPropertyDescriptor'](_0x581367,_0x224b88):_0x3c5ff9,_0x576790;if(typeof Reflect===_0x4f2ff5(0x1f3)&&typeof Reflect[_0x4f2ff5(0x1ea)]===_0x4f2ff5(0x1df))_0x603438=Reflect[_0x4f2ff5(0x1ea)](_0x485b2e,_0x581367,_0x224b88,_0x3c5ff9);else{for(var _0xcf8c0f=_0x485b2e[_0x4f2ff5(0x1ec)]-0x1;_0xcf8c0f>=0x0;_0xcf8c0f--)if(_0x576790=_0x485b2e[_0xcf8c0f])_0x603438=(_0x2a99db<0x3?_0x576790(_0x603438):_0x2a99db>0x3?_0x576790(_0x581367,_0x224b88,_0x603438):_0x576790(_0x581367,_0x224b88))||_0x603438;}return _0x2a99db>0x3&&_0x603438&&Object[_0x4f2ff5(0x1f4)](_0x581367,_0x224b88,_0x603438),_0x603438;},__metadata=this&&this[a6_0x5bd32c(0x1e6)]||function(_0x59e41f,_0x2a5901){var _0x495b53=a6_0x5bd32c;if(typeof Reflect===_0x495b53(0x1f3)&&typeof Reflect[_0x495b53(0x1e1)]==='function')return Reflect['metadata'](_0x59e41f,_0x2a5901);};Object[a6_0x5bd32c(0x1f4)](exports,a6_0x5bd32c(0x1e0),{'value':!![]}),exports['ApiError']=void 0x0;class ApiError{}function a6_0x53cf(_0x11ab4b,_0x34a9d1){var _0x1f0727=a6_0x1f07();return a6_0x53cf=function(_0x53cf91,_0x1458b3){_0x53cf91=_0x53cf91-0x1d9;var _0xeaf977=_0x1f0727[_0x53cf91];return _0xeaf977;},a6_0x53cf(_0x11ab4b,_0x34a9d1);}ApiError[a6_0x5bd32c(0x1ed)]=0x3d7e31,ApiError[a6_0x5bd32c(0x1eb)]=0x3d7e32,ApiError['HEADERS_DEVICE']=0x3d7e33,ApiError['HEADERS_SIGNATURE']=0x3d7e34,ApiError['HEADERS_CHECKCODE']=0x3d7e35,ApiError[a6_0x5bd32c(0x1f5)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x5bd32c(0x1db)),__metadata('design:type',Object)],ApiError,a6_0x5bd32c(0x1ed),void 0x0),__decorate([AnnErrorMsg(a6_0x5bd32c(0x1f6)),__metadata(a6_0x5bd32c(0x1ee),Object)],ApiError,a6_0x5bd32c(0x1eb),void 0x0),__decorate([AnnErrorMsg('请使用正确的设备'),__metadata(a6_0x5bd32c(0x1ee),Object)],ApiError,a6_0x5bd32c(0x1ef),void 0x0),__decorate([AnnErrorMsg(a6_0x5bd32c(0x1e2)),__metadata(a6_0x5bd32c(0x1ee),Object)],ApiError,a6_0x5bd32c(0x1e5),void 0x0),__decorate([AnnErrorMsg(a6_0x5bd32c(0x1d9)),__metadata('design:type',Object)],ApiError,a6_0x5bd32c(0x1f2),void 0x0),__decorate([AnnErrorMsg(a6_0x5bd32c(0x1e7)),__metadata(a6_0x5bd32c(0x1ee),Object)],ApiError,a6_0x5bd32c(0x1f5),void 0x0),exports['ApiError']=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x78cbab=a7_0x3788;(function(_0xe6d0cc,_0x919a7d){const _0x39bedb=a7_0x3788,_0x41290e=_0xe6d0cc();while(!![]){try{const _0x16215e=parseInt(_0x39bedb(0x1e6))/0x1+-parseInt(_0x39bedb(0x1ea))/0x2+-parseInt(_0x39bedb(0x1de))/0x3*(parseInt(_0x39bedb(0x1e1))/0x4)+parseInt(_0x39bedb(0x1df))/0x5+parseInt(_0x39bedb(0x1e3))/0x6+parseInt(_0x39bedb(0x1e8))/0x7+-parseInt(_0x39bedb(0x1eb))/0x8*(-parseInt(_0x39bedb(0x1e5))/0x9);if(_0x16215e===_0x919a7d)break;else _0x41290e['push'](_0x41290e['shift']());}catch(_0x4eb371){_0x41290e['push'](_0x41290e['shift']());}}}(a7_0x2358,0xc1005));function a7_0x2358(){const _0x53ce24=['1838528FJMLfj','8216lLrbOD','3dnTTrm','414015KCLZbE','defineProperty','3092592VgNHvM','get','4649190jffhua','__esModule','7974qFmxAs','39474gIpzyd','getAppsConfig','4731167FAlcXR','../types/action'];a7_0x2358=function(){return _0x53ce24;};return a7_0x2358();}Object[a7_0x78cbab(0x1e0)](exports,a7_0x78cbab(0x1e4),{'value':!![]}),exports[a7_0x78cbab(0x1e7)]=void 0x0;const core_1=require('@midwayjs/core'),action_1=require(a7_0x78cbab(0x1e9));function getAppsConfig(_0x3ee41b){const _0x20ecae=a7_0x78cbab,_0x1edd96=(0x0,core_1['getClassMetadata'])(action_1['APPSCONFIG_KEY'],action_1['AppsConfigTmp'])||{};return _0x3ee41b?lodash[_0x20ecae(0x1e2)](_0x1edd96,_0x3ee41b):_0x1edd96;}function a7_0x3788(_0x54bd18,_0x11624e){const _0x235845=a7_0x2358();return a7_0x3788=function(_0x378852,_0x381c82){_0x378852=_0x378852-0x1de;let _0x1cb4cd=_0x235845[_0x378852];return _0x1cb4cd;},a7_0x3788(_0x54bd18,_0x11624e);}exports['getAppsConfig']=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x168077=a8_0x59d3;(function(_0x102b8b,_0x4310ed){const _0xba0e74=a8_0x59d3,_0x480771=_0x102b8b();while(!![]){try{const _0x44e580=parseInt(_0xba0e74(0xf4))/0x1+parseInt(_0xba0e74(0x13f))/0x2+parseInt(_0xba0e74(0x139))/0x3+-parseInt(_0xba0e74(0xf5))/0x4+parseInt(_0xba0e74(0x126))/0x5*(-parseInt(_0xba0e74(0xfb))/0x6)+-parseInt(_0xba0e74(0x14e))/0x7+parseInt(_0xba0e74(0x13b))/0x8*(-parseInt(_0xba0e74(0x132))/0x9);if(_0x44e580===_0x4310ed)break;else _0x480771['push'](_0x480771['shift']());}catch(_0x48bd23){_0x480771['push'](_0x480771['shift']());}}}(a8_0x37d4,0x91ec3));Object[a8_0x168077(0x14b)](exports,a8_0x168077(0x11f),{'value':!![]}),exports[a8_0x168077(0x149)]=void 0x0;function a8_0x59d3(_0x4a7c84,_0x5b9291){const _0x37d496=a8_0x37d4();return a8_0x59d3=function(_0x59d3a2,_0x106e2b){_0x59d3a2=_0x59d3a2-0xf2;let _0x57132d=_0x37d496[_0x59d3a2];return _0x57132d;},a8_0x59d3(_0x4a7c84,_0x5b9291);}const lodash_1=require('lodash'),validator_1=require(a8_0x168077(0x117)),core_1=require('@midwayjs/core'),core_2=require(a8_0x168077(0x125)),core_3=require(a8_0x168077(0x125)),action_1=require(a8_0x168077(0x116));function getRoutes(_0x23f2a2={'prefix':'/','module':![]}){const _0x534378=a8_0x168077;var _0x191236,_0x2fb2d0;const _0x22f9d7=(0x0,core_3['listModule'])(action_1['ACTION_KEY']),_0x58bb53={},_0x3823e9=Array[_0x534378(0x142)](_0x23f2a2[_0x534378(0x12a)]||[])?_0x23f2a2[_0x534378(0x12a)]||[]:[_0x23f2a2[_0x534378(0x12a)]];_0x54a9d1:for(const _0x17a976 of _0x22f9d7){let _0x3e4704=(0x0,core_3['getClassMetadata'])(action_1[_0x534378(0x111)],_0x17a976),_0x529005=(0x0,core_3[_0x534378(0x10e)])(action_1[_0x534378(0x10d)],_0x17a976);if(_0x3e4704&&_0x529005){let _0x5b41a8=_0x3e4704['prefix'],_0x2c9a2e={};if(_0x23f2a2[_0x534378(0x10f)]&&(0x0,lodash_1[_0x534378(0x134)])(_0x3e4704,_0x534378(0x10f),![])!=_0x23f2a2[_0x534378(0x10f)])continue _0x54a9d1;else{if(_0x23f2a2[_0x534378(0x10f)]===![]&&!!(0x0,lodash_1[_0x534378(0x134)])(_0x3e4704,_0x534378(0x10f),null))continue _0x54a9d1;}if(_0x23f2a2['prefix']&&!_0x5b41a8[_0x534378(0x11a)](_0x23f2a2[_0x534378(0x10a)]))continue _0x54a9d1;_0x5b41a8!=='/'?(_0x2c9a2e['summary']=(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0xfc)]['tagName'])||(/^\//[_0x534378(0x14c)](_0x5b41a8)?_0x5b41a8['split']('/')[0x1]:_0x5b41a8),_0x2c9a2e[_0x534378(0x123)]=(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0xfc)][_0x534378(0x123)])||_0x2c9a2e[_0x534378(0x145)],_0x2c9a2e['routes']=[]):(_0x2c9a2e[_0x534378(0x145)]=(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0xfc)][_0x534378(0xf6)])||'default',_0x2c9a2e[_0x534378(0x123)]=(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0xfc)][_0x534378(0x123)])||'',_0x2c9a2e[_0x534378(0xfe)]=[]);_0x23f2a2[_0x534378(0x136)]&&(_0x2c9a2e[_0x534378(0x136)]=_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0x136)]);(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0x103)])&&(_0x2c9a2e[_0x534378(0x10a)]=_0x3e4704[_0x534378(0x103)]);(_0x3e4704===null||_0x3e4704===void 0x0?void 0x0:_0x3e4704[_0x534378(0x10f)])&&(_0x2c9a2e[_0x534378(0x10f)]=_0x3e4704[_0x534378(0x10f)]);let _0x5a04ed=(0x0,core_3[_0x534378(0x10e)])(core_2[_0x534378(0x124)],_0x17a976)||{};if(typeof _0x529005[Symbol[_0x534378(0xfd)]]===_0x534378(0x112))for(let _0x164a0c of _0x529005){let _0x4970a1={};_0x4970a1[_0x534378(0x10b)]=_0x164a0c[_0x534378(0xf7)],_0x4970a1[_0x534378(0x12f)]=(_0x5b41a8+_0x164a0c[_0x534378(0x104)])[_0x534378(0x120)](/\/{1,}/,'/'),_0x4970a1[_0x534378(0x145)]=(_0x164a0c===null||_0x164a0c===void 0x0?void 0x0:_0x164a0c['routerName'])||_0x2c9a2e['summary']||_0x534378(0x12c),_0x4970a1[_0x534378(0x123)]=(_0x164a0c===null||_0x164a0c===void 0x0?void 0x0:_0x164a0c[_0x534378(0x123)])||'',_0x4970a1[_0x534378(0x13e)]=[];if(!(0x0,lodash_1['startsWith'])(_0x4970a1[_0x534378(0x12f)],_0x534378(0x108))&&!(0x0,lodash_1[_0x534378(0x11a)])(_0x4970a1[_0x534378(0x12f)],_0x534378(0x115))&&_0x3823e9[_0x534378(0x121)](_0x4970a1[_0x534378(0x12f)])===-0x1){if(!(_0x23f2a2===null||_0x23f2a2===void 0x0?void 0x0:_0x23f2a2['noreq'])){let _0x2f1cec=(0x0,core_3[_0x534378(0x110)])(new _0x17a976(),_0x164a0c[_0x534378(0x10b)]);for(const _0x160ac5 in _0x2f1cec){let _0x226856=(_0x191236=_0x5a04ed[_0x164a0c[_0x534378(0x10b)]])===null||_0x191236===void 0x0?void 0x0:_0x191236['find'](_0x2e3223=>_0x2e3223[_0x534378(0x128)]==_0x160ac5&&_0x2e3223[_0x534378(0xff)]===core_2[_0x534378(0x141)]&&(_0x2e3223===null||_0x2e3223===void 0x0?void 0x0:_0x2e3223['metadata']));if(_0x226856===null||_0x226856===void 0x0?void 0x0:_0x226856['metadata']){let _0x23b9a8=convertTypeToString(_0x226856[_0x534378(0x105)][_0x534378(0xf9)]||0x0);if([_0x534378(0x138),_0x534378(0x102)][_0x534378(0x121)](_0x23b9a8)!=-0x1&&_0x226856[_0x534378(0x105)][_0x534378(0x11d)][_0x534378(0x121)](':')==-0x1&&!_0x4970a1['request']['find'](_0x5269b7=>_0x5269b7[_0x534378(0xff)]==_0x226856['metadata'][_0x534378(0x11d)]))_0x4970a1[_0x534378(0x13e)][_0x534378(0x130)]({'key':_0x226856[_0x534378(0x105)]['propertyData'],'title':_0x226856['metadata'][_0x534378(0x11d)],'type':convertSchemaType(_0x2f1cec[_0x226856[_0x534378(0x128)]][_0x534378(0x119)]),'required':![],'default':'','desc':''});else{if(_0x23b9a8==_0x534378(0x13c)){let _0x4a7594=((_0x2fb2d0=_0x226856===null||_0x226856===void 0x0?void 0x0:_0x226856[_0x534378(0x105)])===null||_0x2fb2d0===void 0x0?void 0x0:_0x2fb2d0[_0x534378(0x11d)])||_0x534378(0x13c);_0x4a7594[_0x534378(0x121)](':')==-0x1&&!_0x4970a1[_0x534378(0x13e)][_0x534378(0x14a)](_0x155534=>_0x155534[_0x534378(0xff)]==_0x4a7594&&_0x155534[_0x534378(0xf9)]==_0x534378(0x13c))&&_0x4970a1[_0x534378(0x13e)][_0x534378(0x130)]({'key':_0x4a7594,'title':'文件上传-'+_0x4a7594,'type':_0x534378(0x13c),'required':!![],'default':'','desc':''});}}}else{const _0x32a13a=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x534378(0x118)],_0x2f1cec[_0x160ac5]);_0x32a13a&&_0x4970a1[_0x534378(0x13e)]['push'](...getJoiRequest(_0x32a13a));}}}_0x2c9a2e[_0x534378(0xfe)][_0x534378(0x130)](_0x4970a1);}}if(_0x2c9a2e[_0x534378(0xfe)][_0x534378(0x113)]>0x0){let _0x408eff=_0x58bb53[_0x5b41a8];_0x408eff?(_0x408eff[_0x534378(0x145)]!=_0x2c9a2e['summary']&&(_0x408eff[_0x534378(0x145)]=_0x408eff[_0x534378(0x145)]+','+_0x2c9a2e[_0x534378(0x145)]),_0x408eff[_0x534378(0x123)]!=_0x2c9a2e[_0x534378(0x123)]&&(_0x408eff[_0x534378(0x123)]=_0x408eff[_0x534378(0x123)]+','+_0x2c9a2e['description']),_0x408eff[_0x534378(0xfe)]=_0x408eff[_0x534378(0xfe)][_0x534378(0x122)](_0x2c9a2e[_0x534378(0xfe)]),_0x58bb53[_0x5b41a8]=_0x408eff):_0x58bb53[_0x5b41a8]=_0x2c9a2e;}}}return _0x58bb53;}exports['getRoutes']=getRoutes;function getJoiRequest(_0x2e24d2){const _0x41ad0a=a8_0x168077,_0x5d3644=[];for(let _0x2a6b21 in _0x2e24d2){const _0x1d5046={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x172e4f=typeof _0x2e24d2[_0x2a6b21][_0x41ad0a(0x147)]==_0x41ad0a(0x112)?_0x2e24d2[_0x2a6b21][_0x41ad0a(0x147)]():_0x2e24d2[_0x2a6b21];_0x1d5046[_0x41ad0a(0xff)]=_0x2a6b21,_0x1d5046[_0x41ad0a(0xf9)]=_0x172e4f[_0x41ad0a(0xf9)],_0x1d5046[_0x41ad0a(0xf3)]=(0x0,lodash_1[_0x41ad0a(0x134)])(_0x172e4f,_0x41ad0a(0x137),_0x2a6b21),_0x1d5046['default']=(0x0,lodash_1['get'])(_0x172e4f,_0x41ad0a(0x11b),''),_0x1d5046[_0x41ad0a(0x101)]=(0x0,lodash_1[_0x41ad0a(0x134)])(_0x172e4f,_0x41ad0a(0x14d),'')=='required',_0x1d5046[_0x41ad0a(0x123)]=(0x0,lodash_1[_0x41ad0a(0x134)])(_0x172e4f,_0x41ad0a(0x11e),'');if(_0x172e4f[_0x41ad0a(0xf9)]==_0x41ad0a(0x148))_0x1d5046[_0x41ad0a(0x114)]=getJoiRequest(_0x172e4f[_0x41ad0a(0x100)]);else _0x172e4f[_0x41ad0a(0xf9)]=='array'&&_0x172e4f[_0x41ad0a(0xfa)]&&Array['isArray'](_0x172e4f[_0x41ad0a(0xfa)])&&_0x172e4f['items'][0x0]&&console[_0x41ad0a(0x10c)](_0x2a6b21+_0x41ad0a(0x127),_0x172e4f);_0x172e4f[_0x41ad0a(0x109)]&&Array['isArray'](_0x172e4f['allow'])&&_0x172e4f[_0x41ad0a(0x109)]['length']>0x0&&(_0x1d5046[_0x41ad0a(0x123)]='只允许:['+_0x172e4f[_0x41ad0a(0x109)][_0x41ad0a(0x129)](',')+'];'+_0x1d5046[_0x41ad0a(0x123)]);if(_0x1d5046[_0x41ad0a(0xff)]&&_0x1d5046['type']){const _0x289285={};for(const _0x538ee2 of _0x172e4f['rules']||[]){if(_0x538ee2[_0x41ad0a(0x119)]===_0x41ad0a(0x133)&&_0x538ee2[_0x41ad0a(0xf2)])_0x289285[_0x41ad0a(0x133)]=_0x538ee2[_0x41ad0a(0xf2)][_0x41ad0a(0x12b)];else _0x538ee2[_0x41ad0a(0x119)]===_0x41ad0a(0x12e)&&(_0x289285[_0x41ad0a(0x12e)]=_0x538ee2['args'][_0x41ad0a(0x12b)]);}_0x1d5046[_0x41ad0a(0x135)]=_0x289285;}_0x1d5046[_0x41ad0a(0xff)]&&_0x1d5046[_0x41ad0a(0xf3)]&&_0x5d3644[_0x41ad0a(0x130)](_0x1d5046);}return _0x5d3644;}function a8_0x37d4(){const _0x138543=['flags.default','QUERY','propertyData','flags.description','__esModule','replace','indexOf','concat','description','INJECT_CUSTOM_PARAM','@midwayjs/core','111235GrpijI','-array','parameterIndex','join','filter','limit','default','RouteParamTypes','max','route','push','Boolean','1267551ngSCLH','min','get','rules','filepath','flags.label','query','876909vgliSv','File','24ykSWid','file','String','request','1251968fezsLx','Number','WEB_ROUTER_PARAM_KEY','isArray','FILESTREAM','FIELDS','summary','Object','describe','object','getRoutes','find','defineProperty','test','flags.presence','2017274iNZbWM','args','title','1122226mYoQiI','703760cPeepa','tagName','requestMethod','PARAM','type','items','150JsLQXf','routerOptions','iterator','routes','key','keys','required','body','pprefix','path','metadata','string','header','static/apitest','allow','prefix','method','log','ACTION_ROUTE_KEY','getClassMetadata','module','getMethodParamTypes','ACTION_KEY','function','length','children','/static/apitest','../types/action','@anncic-api/validator','RULES_KEY','name','startsWith'];a8_0x37d4=function(){return _0x138543;};return a8_0x37d4();}function convertSchemaType(_0x5578b9){const _0x6b3cd9=a8_0x168077;switch(_0x5578b9){case _0x6b3cd9(0x146):return'object';case _0x6b3cd9(0x131):return'boolean';case _0x6b3cd9(0x140):return'number';case _0x6b3cd9(0x13d):return _0x6b3cd9(0x106);case _0x6b3cd9(0x13a):return _0x6b3cd9(0x13c);default:return _0x6b3cd9(0x106);}}function convertTypeToString(_0x30afa9){const _0x5a3ff5=a8_0x168077;switch(_0x30afa9){case core_1[_0x5a3ff5(0x12d)]['HEADERS']:return _0x5a3ff5(0x107);case core_1[_0x5a3ff5(0x12d)][_0x5a3ff5(0x11c)]:return'query';case core_1['RouteParamTypes'][_0x5a3ff5(0xf8)]:return _0x5a3ff5(0x104);case core_1[_0x5a3ff5(0x12d)]['BODY']:return'body';case core_1['RouteParamTypes'][_0x5a3ff5(0x144)]:case core_1[_0x5a3ff5(0x12d)]['FILESSTREAM']:case core_1['RouteParamTypes'][_0x5a3ff5(0x143)]:return _0x5a3ff5(0x13c);default:return _0x5a3ff5(0x107);}}
|
|
1
|
+
'use strict';const a8_0xf93653=a8_0x172d;(function(_0x10dbd4,_0x527ec3){const _0x5da57e=a8_0x172d,_0x595b8c=_0x10dbd4();while(!![]){try{const _0x329308=parseInt(_0x5da57e(0x170))/0x1+parseInt(_0x5da57e(0x183))/0x2*(-parseInt(_0x5da57e(0x173))/0x3)+-parseInt(_0x5da57e(0x182))/0x4*(parseInt(_0x5da57e(0x17d))/0x5)+-parseInt(_0x5da57e(0x198))/0x6+-parseInt(_0x5da57e(0x16b))/0x7*(-parseInt(_0x5da57e(0x179))/0x8)+-parseInt(_0x5da57e(0x14a))/0x9+-parseInt(_0x5da57e(0x155))/0xa*(-parseInt(_0x5da57e(0x196))/0xb);if(_0x329308===_0x527ec3)break;else _0x595b8c['push'](_0x595b8c['shift']());}catch(_0x18328c){_0x595b8c['push'](_0x595b8c['shift']());}}}(a8_0x37dc,0x2f391));function a8_0x172d(_0x462d4f,_0x223a31){const _0x37dc71=a8_0x37dc();return a8_0x172d=function(_0x172d40,_0x4efdb8){_0x172d40=_0x172d40-0x139;let _0x999360=_0x37dc71[_0x172d40];return _0x999360;},a8_0x172d(_0x462d4f,_0x223a31);}Object[a8_0xf93653(0x18c)](exports,a8_0xf93653(0x197),{'value':!![]}),exports[a8_0xf93653(0x163)]=void 0x0;const lodash_1=require(a8_0xf93653(0x195)),validator_1=require('@anncic-api/validator'),core_1=require('@midwayjs/core'),core_2=require('@midwayjs/core'),core_3=require(a8_0xf93653(0x167)),action_1=require('../types/action');function getRoutes(_0x31df4d={'prefix':'/','module':![]}){const _0x489a29=a8_0xf93653;var _0x382f52,_0x45ab59;const _0x3da808=(0x0,core_3[_0x489a29(0x16d)])(action_1[_0x489a29(0x144)]),_0x33f0e7={},_0x2f4ba6=Array['isArray'](_0x31df4d[_0x489a29(0x162)]||[])?_0x31df4d['filter']||[]:[_0x31df4d[_0x489a29(0x162)]];_0x31121a:for(const _0x3f0bba of _0x3da808){let _0x4ea6ec=(0x0,core_3[_0x489a29(0x148)])(action_1[_0x489a29(0x144)],_0x3f0bba),_0xef727d=(0x0,core_3[_0x489a29(0x148)])(action_1[_0x489a29(0x199)],_0x3f0bba);if(_0x4ea6ec&&_0xef727d){let _0x3b1a27=_0x4ea6ec[_0x489a29(0x194)],_0x44c724={};if(_0x31df4d[_0x489a29(0x172)]&&(0x0,lodash_1['get'])(_0x4ea6ec,_0x489a29(0x172),![])!=_0x31df4d[_0x489a29(0x172)])continue _0x31121a;else{if(_0x31df4d[_0x489a29(0x172)]===![]&&!!(0x0,lodash_1['get'])(_0x4ea6ec,_0x489a29(0x172),null))continue _0x31121a;}if(_0x31df4d[_0x489a29(0x194)]&&!_0x3b1a27[_0x489a29(0x169)](_0x31df4d[_0x489a29(0x194)]))continue _0x31121a;_0x3b1a27!=='/'?(_0x44c724['summary']=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec['routerOptions']['tagName'])||(/^\//[_0x489a29(0x15a)](_0x3b1a27)?_0x3b1a27[_0x489a29(0x16a)]('/')[0x1]:_0x3b1a27),_0x44c724[_0x489a29(0x140)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)]['description'])||_0x44c724[_0x489a29(0x153)],_0x44c724[_0x489a29(0x16e)]=[]):(_0x44c724[_0x489a29(0x153)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)]['tagName'])||_0x489a29(0x13e),_0x44c724[_0x489a29(0x140)]=(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x141)][_0x489a29(0x140)])||'',_0x44c724[_0x489a29(0x16e)]=[]);_0x31df4d['filepath']&&(_0x44c724[_0x489a29(0x160)]=_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x160)]);(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x152)])&&(_0x44c724['prefix']=_0x4ea6ec[_0x489a29(0x152)]);(_0x4ea6ec===null||_0x4ea6ec===void 0x0?void 0x0:_0x4ea6ec[_0x489a29(0x172)])&&(_0x44c724[_0x489a29(0x172)]=_0x4ea6ec['module']);let _0x516a4c=(0x0,core_3['getClassMetadata'])(core_2[_0x489a29(0x13f)],_0x3f0bba)||{};if(typeof _0xef727d[Symbol[_0x489a29(0x177)]]===_0x489a29(0x161))for(let _0x516b36 of _0xef727d){let _0x517b5f={};_0x517b5f['method']=_0x516b36[_0x489a29(0x16f)],_0x517b5f['route']=(_0x3b1a27+_0x516b36['path'])[_0x489a29(0x174)](/\/{1,}/,'/'),_0x517b5f[_0x489a29(0x153)]=(_0x516b36===null||_0x516b36===void 0x0?void 0x0:_0x516b36[_0x489a29(0x18f)])||_0x44c724[_0x489a29(0x153)]||_0x489a29(0x13e),_0x517b5f[_0x489a29(0x140)]=(_0x516b36===null||_0x516b36===void 0x0?void 0x0:_0x516b36[_0x489a29(0x140)])||'',_0x517b5f[_0x489a29(0x188)]=[];if(!(0x0,lodash_1[_0x489a29(0x169)])(_0x517b5f['route'],_0x489a29(0x189))&&!(0x0,lodash_1['startsWith'])(_0x517b5f['route'],'/static/apitest')&&_0x2f4ba6[_0x489a29(0x187)](_0x517b5f[_0x489a29(0x13a)])===-0x1){if(!(_0x31df4d===null||_0x31df4d===void 0x0?void 0x0:_0x31df4d[_0x489a29(0x146)])){let _0x316bb5=(0x0,core_3[_0x489a29(0x13c)])(new _0x3f0bba(),_0x516b36['method']);for(const _0x59d4f5 in _0x316bb5){let _0x247208=(_0x382f52=_0x516a4c[_0x516b36[_0x489a29(0x142)]])===null||_0x382f52===void 0x0?void 0x0:_0x382f52[_0x489a29(0x180)](_0x28dab0=>_0x28dab0[_0x489a29(0x184)]==_0x59d4f5&&_0x28dab0[_0x489a29(0x159)]===core_2[_0x489a29(0x18e)]&&(_0x28dab0===null||_0x28dab0===void 0x0?void 0x0:_0x28dab0[_0x489a29(0x17b)]));if(_0x247208===null||_0x247208===void 0x0?void 0x0:_0x247208[_0x489a29(0x17b)]){let _0x22c834=convertTypeToString(_0x247208[_0x489a29(0x17b)][_0x489a29(0x149)]||0x0);if([_0x489a29(0x18a),'body'][_0x489a29(0x187)](_0x22c834)!=-0x1&&_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)][_0x489a29(0x187)](':')==-0x1&&!_0x517b5f['request'][_0x489a29(0x180)](_0x417998=>_0x417998[_0x489a29(0x159)]==_0x247208['metadata'][_0x489a29(0x193)]))_0x517b5f['request'][_0x489a29(0x18d)]({'key':_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)],'title':_0x247208[_0x489a29(0x17b)][_0x489a29(0x193)],'type':convertSchemaType(_0x316bb5[_0x247208['parameterIndex']][_0x489a29(0x171)]),'required':![],'default':'','desc':''});else{if(_0x22c834==_0x489a29(0x156)){let _0x245756=((_0x45ab59=_0x247208===null||_0x247208===void 0x0?void 0x0:_0x247208['metadata'])===null||_0x45ab59===void 0x0?void 0x0:_0x45ab59[_0x489a29(0x193)])||_0x489a29(0x156);_0x245756[_0x489a29(0x187)](':')==-0x1&&!_0x517b5f[_0x489a29(0x188)]['find'](_0x19f599=>_0x19f599[_0x489a29(0x159)]==_0x245756&&_0x19f599[_0x489a29(0x149)]==_0x489a29(0x156))&&_0x517b5f[_0x489a29(0x188)]['push']({'key':_0x245756,'title':_0x489a29(0x175)+_0x245756,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0xa0fbfc=(0x0,core_3['getClassExtendedMetadata'])(validator_1[_0x489a29(0x178)],_0x316bb5[_0x59d4f5]);_0xa0fbfc&&_0x517b5f[_0x489a29(0x188)]['push'](...getJoiRequest(_0xa0fbfc));}}}_0x44c724['routes'][_0x489a29(0x18d)](_0x517b5f);}}if(_0x44c724['routes'][_0x489a29(0x13b)]>0x0){let _0x1249eb=_0x33f0e7[_0x3b1a27];_0x1249eb?(_0x1249eb[_0x489a29(0x153)]!=_0x44c724['summary']&&(_0x1249eb[_0x489a29(0x153)]=_0x1249eb[_0x489a29(0x153)]+','+_0x44c724['summary']),_0x1249eb[_0x489a29(0x140)]!=_0x44c724[_0x489a29(0x140)]&&(_0x1249eb[_0x489a29(0x140)]=_0x1249eb[_0x489a29(0x140)]+','+_0x44c724['description']),_0x1249eb[_0x489a29(0x16e)]=_0x1249eb[_0x489a29(0x16e)][_0x489a29(0x191)](_0x44c724[_0x489a29(0x16e)]),_0x33f0e7[_0x3b1a27]=_0x1249eb):_0x33f0e7[_0x3b1a27]=_0x44c724;}}}return _0x33f0e7;}function a8_0x37dc(){const _0x104e00=['title','filepath','function','filter','getRoutes','FIELDS','get','string','@midwayjs/core','flags.default','startsWith','split','7xriXcw','PARAM','listModule','routes','requestMethod','71614IpEAiz','name','module','51Pdsjlq','replace','文件上传-','Object','iterator','RULES_KEY','2537272UtMLdC','items','metadata','boolean','44620baLuBY','flags.presence','只允许:[','find','args','148oiDFAH','8076UxXxmd','parameterIndex','body','describe','indexOf','request','static/apitest','query','File','defineProperty','push','WEB_ROUTER_PARAM_KEY','routerName','header','concat','keys','propertyData','prefix','lodash','231zigbZv','__esModule','2141514WONHRD','ACTION_ROUTE_KEY','-array','route','length','getMethodParamTypes','children','default','INJECT_CUSTOM_PARAM','description','routerOptions','method','required','ACTION_KEY','QUERY','noreq','path','getClassMetadata','type','1567197bMHooI','object','Boolean','min','limit','isArray','max','RouteParamTypes','pprefix','summary','FILESTREAM','349780cmRZQw','file','number','allow','key','test','array','FILESSTREAM','join','flags.description'];a8_0x37dc=function(){return _0x104e00;};return a8_0x37dc();}exports[a8_0xf93653(0x163)]=getRoutes;function getJoiRequest(_0x21042c){const _0x5aa16d=a8_0xf93653,_0x3d8c27=[];for(let _0x50de0b in _0x21042c){const _0x4d8a33={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1be90b=typeof _0x21042c[_0x50de0b]['describe']==_0x5aa16d(0x161)?_0x21042c[_0x50de0b][_0x5aa16d(0x186)]():_0x21042c[_0x50de0b];_0x4d8a33[_0x5aa16d(0x159)]=_0x50de0b,_0x4d8a33[_0x5aa16d(0x149)]=_0x1be90b[_0x5aa16d(0x149)],_0x4d8a33[_0x5aa16d(0x15f)]=(0x0,lodash_1['get'])(_0x1be90b,'flags.label',_0x50de0b),_0x4d8a33[_0x5aa16d(0x13e)]=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x168),''),_0x4d8a33[_0x5aa16d(0x143)]=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x17e),'')==_0x5aa16d(0x143),_0x4d8a33['description']=(0x0,lodash_1[_0x5aa16d(0x165)])(_0x1be90b,_0x5aa16d(0x15e),'');if(_0x1be90b[_0x5aa16d(0x149)]==_0x5aa16d(0x14b))_0x4d8a33[_0x5aa16d(0x13d)]=getJoiRequest(_0x1be90b[_0x5aa16d(0x192)]);else _0x1be90b['type']==_0x5aa16d(0x15b)&&_0x1be90b[_0x5aa16d(0x17a)]&&Array[_0x5aa16d(0x14f)](_0x1be90b[_0x5aa16d(0x17a)])&&_0x1be90b[_0x5aa16d(0x17a)][0x0]&&console['log'](_0x50de0b+_0x5aa16d(0x139),_0x1be90b);_0x1be90b[_0x5aa16d(0x158)]&&Array['isArray'](_0x1be90b[_0x5aa16d(0x158)])&&_0x1be90b[_0x5aa16d(0x158)][_0x5aa16d(0x13b)]>0x0&&(_0x4d8a33[_0x5aa16d(0x140)]=_0x5aa16d(0x17f)+_0x1be90b[_0x5aa16d(0x158)][_0x5aa16d(0x15d)](',')+'];'+_0x4d8a33[_0x5aa16d(0x140)]);if(_0x4d8a33[_0x5aa16d(0x159)]&&_0x4d8a33[_0x5aa16d(0x149)]){const _0x3a261a={};for(const _0xadb6fb of _0x1be90b['rules']||[]){if(_0xadb6fb['name']===_0x5aa16d(0x14d)&&_0xadb6fb['args'])_0x3a261a[_0x5aa16d(0x14d)]=_0xadb6fb['args'][_0x5aa16d(0x14e)];else _0xadb6fb[_0x5aa16d(0x171)]===_0x5aa16d(0x150)&&(_0x3a261a['max']=_0xadb6fb[_0x5aa16d(0x181)]['limit']);}_0x4d8a33['rules']=_0x3a261a;}_0x4d8a33['key']&&_0x4d8a33[_0x5aa16d(0x15f)]&&_0x3d8c27[_0x5aa16d(0x18d)](_0x4d8a33);}return _0x3d8c27;}function convertSchemaType(_0x5c5c82){const _0x57aceb=a8_0xf93653;switch(_0x5c5c82){case _0x57aceb(0x176):return _0x57aceb(0x14b);case _0x57aceb(0x14c):return _0x57aceb(0x17c);case'Number':return _0x57aceb(0x157);case'String':return _0x57aceb(0x166);case _0x57aceb(0x18b):return _0x57aceb(0x156);default:return _0x57aceb(0x166);}}function convertTypeToString(_0x4512d8){const _0x105e2b=a8_0xf93653;switch(_0x4512d8){case core_1[_0x105e2b(0x151)]['HEADERS']:return _0x105e2b(0x190);case core_1[_0x105e2b(0x151)][_0x105e2b(0x145)]:return _0x105e2b(0x18a);case core_1[_0x105e2b(0x151)][_0x105e2b(0x16c)]:return _0x105e2b(0x147);case core_1[_0x105e2b(0x151)]['BODY']:return _0x105e2b(0x185);case core_1[_0x105e2b(0x151)][_0x105e2b(0x164)]:case core_1[_0x105e2b(0x151)][_0x105e2b(0x15c)]:case core_1[_0x105e2b(0x151)][_0x105e2b(0x154)]:return'file';default:return'header';}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x3e533e=a9_0x5c08;(function(_0x3cce35,_0x18aa9c){var _0x234902=a9_0x5c08,_0x5e4c73=_0x3cce35();while(!![]){try{var _0x588bb6=-parseInt(_0x234902(0x1aa))/0x1+-parseInt(_0x234902(0x194))/0x2*(-parseInt(_0x234902(0x1c0))/0x3)+parseInt(_0x234902(0x1b7))/0x4+parseInt(_0x234902(0x190))/0x5+-parseInt(_0x234902(0x197))/0x6*(parseInt(_0x234902(0x18f))/0x7)+parseInt(_0x234902(0x1bb))/0x8+parseInt(_0x234902(0x1bc))/0x9;if(_0x588bb6===_0x18aa9c)break;else _0x5e4c73['push'](_0x5e4c73['shift']());}catch(_0x19b8fd){_0x5e4c73['push'](_0x5e4c73['shift']());}}}(a9_0xd363,0x9f9fb));var __createBinding=this&&this[a9_0x3e533e(0x185)]||(Object[a9_0x3e533e(0x1a6)]?function(_0x3bb1e2,_0x39694d,_0x3cb90e,_0x454567){var _0x411273=a9_0x3e533e;if(_0x454567===undefined)_0x454567=_0x3cb90e;var _0x2d8133=Object['getOwnPropertyDescriptor'](_0x39694d,_0x3cb90e);(!_0x2d8133||(_0x411273(0x1a2)in _0x2d8133?!_0x39694d[_0x411273(0x1ae)]:_0x2d8133[_0x411273(0x1ba)]||_0x2d8133['configurable']))&&(_0x2d8133={'enumerable':!![],'get':function(){return _0x39694d[_0x3cb90e];}}),Object[_0x411273(0x18c)](_0x3bb1e2,_0x454567,_0x2d8133);}:function(_0x13f8b1,_0x566048,_0x42d59a,_0x9426f7){if(_0x9426f7===undefined)_0x9426f7=_0x42d59a;_0x13f8b1[_0x9426f7]=_0x566048[_0x42d59a];}),__exportStar=this&&this[a9_0x3e533e(0x1a5)]||function(_0x4f4d34,_0x5a5422){var _0x54b71d=a9_0x3e533e;for(var _0x35ccbd in _0x4f4d34)if(_0x35ccbd!==_0x54b71d(0x19b)&&!Object[_0x54b71d(0x1b5)][_0x54b71d(0x1b2)][_0x54b71d(0x196)](_0x5a5422,_0x35ccbd))__createBinding(_0x5a5422,_0x4f4d34,_0x35ccbd);};Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1ae),{'value':!![]}),exports['getAppsConfig']=exports[a9_0x3e533e(0x195)]=exports[a9_0x3e533e(0x18b)]=exports['Inject']=exports['Provide']=exports[a9_0x3e533e(0x1bf)]=exports[a9_0x3e533e(0x1a0)]=exports['App']=exports[a9_0x3e533e(0x191)]=exports[a9_0x3e533e(0x19d)]=exports[a9_0x3e533e(0x1a7)]=exports[a9_0x3e533e(0x1b8)]=exports['Body']=exports['Fields']=exports[a9_0x3e533e(0x1be)]=exports[a9_0x3e533e(0x184)]=exports[a9_0x3e533e(0x198)]=exports['ValidatorService']=exports[a9_0x3e533e(0x1b4)]=exports[a9_0x3e533e(0x1a1)]=exports['ApiService']=exports[a9_0x3e533e(0x1a4)]=exports[a9_0x3e533e(0x188)]=exports[a9_0x3e533e(0x1b6)]=exports[a9_0x3e533e(0x1ad)]=exports[a9_0x3e533e(0x18a)]=exports[a9_0x3e533e(0x18d)]=exports[a9_0x3e533e(0x19e)]=void 0x0;const getAppsConfig_1=require(a9_0x3e533e(0x19c));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1ac),{'enumerable':!![],'get':function(){var _0x55853e=a9_0x3e533e;return getAppsConfig_1[_0x55853e(0x1ac)];}}),__exportStar(require(a9_0x3e533e(0x199)),exports),__exportStar(require(a9_0x3e533e(0x186)),exports);var ActionApi_1=require('./decorator/ActionApi');Object['defineProperty'](exports,a9_0x3e533e(0x19e),{'enumerable':!![],'get':function(){var _0x4309dc=a9_0x3e533e;return ActionApi_1[_0x4309dc(0x19e)];}});var Action_1=require('./decorator/Action');function a9_0x5c08(_0x4f1973,_0x5be670){var _0xd363cd=a9_0xd363();return a9_0x5c08=function(_0x5c080f,_0x3d2aa3){_0x5c080f=_0x5c080f-0x184;var _0x1a91d6=_0xd363cd[_0x5c080f];return _0x1a91d6;},a9_0x5c08(_0x4f1973,_0x5be670);}Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x18d),{'enumerable':!![],'get':function(){var _0x4ba556=a9_0x3e533e;return Action_1[_0x4ba556(0x18d)];}});var ActionApitest_1=require(a9_0x3e533e(0x1b3));Object[a9_0x3e533e(0x18c)](exports,'Apitest',{'enumerable':!![],'get':function(){var _0x20dd47=a9_0x3e533e;return ActionApitest_1[_0x20dd47(0x18a)];}});var getRoutes_1=require(a9_0x3e533e(0x1af));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1ad),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x3e533e(0x1b0));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1b6),{'enumerable':!![],'get':function(){var _0x1d82c6=a9_0x3e533e;return ApiError_1[_0x1d82c6(0x1b6)];}});var cache_1=require(a9_0x3e533e(0x187));Object[a9_0x3e533e(0x18c)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5f2d42=a9_0x3e533e;return cache_1[_0x5f2d42(0x188)];}});var event_1=require(a9_0x3e533e(0x18e));Object[a9_0x3e533e(0x18c)](exports,'EventService',{'enumerable':!![],'get':function(){var _0x231ff2=a9_0x3e533e;return event_1[_0x231ff2(0x1a4)];}});var ApiService_1=require(a9_0x3e533e(0x1b1));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x19f),{'enumerable':!![],'get':function(){var _0xdcdf44=a9_0x3e533e;return ApiService_1[_0xdcdf44(0x19f)];}});var ExcelService_1=require(a9_0x3e533e(0x189));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1a1),{'enumerable':!![],'get':function(){var _0x167fb3=a9_0x3e533e;return ExcelService_1[_0x167fb3(0x1a1)];}});var validator_1=require(a9_0x3e533e(0x1bd));Object[a9_0x3e533e(0x18c)](exports,'ValidatorError',{'enumerable':!![],'get':function(){var _0x1af731=a9_0x3e533e;return validator_1[_0x1af731(0x1b4)];}}),Object[a9_0x3e533e(0x18c)](exports,'ValidatorService',{'enumerable':!![],'get':function(){return validator_1['ValidatorService'];}});var configuration_1=require(a9_0x3e533e(0x192));Object['defineProperty'](exports,a9_0x3e533e(0x198),{'enumerable':!![],'get':function(){var _0x2dc304=a9_0x3e533e;return configuration_1[_0x2dc304(0x1b9)];}});var core_1=require(a9_0x3e533e(0x1a9));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x184),{'enumerable':!![],'get':function(){var _0x5389fe=a9_0x3e533e;return core_1[_0x5389fe(0x184)];}}),Object['defineProperty'](exports,a9_0x3e533e(0x1be),{'enumerable':!![],'get':function(){var _0x107a65=a9_0x3e533e;return core_1[_0x107a65(0x1be)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x19a),{'enumerable':!![],'get':function(){var _0x5c15de=a9_0x3e533e;return core_1[_0x5c15de(0x19a)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1a3),{'enumerable':!![],'get':function(){var _0x3340f8=a9_0x3e533e;return core_1[_0x3340f8(0x1a3)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1b8),{'enumerable':!![],'get':function(){var _0x3b3f03=a9_0x3e533e;return core_1[_0x3b3f03(0x1b8)];}}),Object['defineProperty'](exports,'Query',{'enumerable':!![],'get':function(){var _0x58bf8f=a9_0x3e533e;return core_1[_0x58bf8f(0x1a7)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x19d),{'enumerable':!![],'get':function(){var _0x21990b=a9_0x3e533e;return core_1[_0x21990b(0x19d)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x191),{'enumerable':!![],'get':function(){var _0x2649ca=a9_0x3e533e;return core_1[_0x2649ca(0x191)];}});var core_2=require(a9_0x3e533e(0x1a9));Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x193),{'enumerable':!![],'get':function(){var _0x1d1f91=a9_0x3e533e;return core_2[_0x1d1f91(0x193)];}}),Object[a9_0x3e533e(0x18c)](exports,'Config',{'enumerable':!![],'get':function(){var _0x2c7d56=a9_0x3e533e;return core_2[_0x2c7d56(0x1a0)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1bf),{'enumerable':!![],'get':function(){var _0x9adbed=a9_0x3e533e;return core_2[_0x9adbed(0x1bf)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1ab),{'enumerable':!![],'get':function(){var _0x58f6e9=a9_0x3e533e;return core_2[_0x58f6e9(0x1ab)];}}),Object[a9_0x3e533e(0x18c)](exports,a9_0x3e533e(0x1a8),{'enumerable':!![],'get':function(){return core_2['Inject'];}}),Object[a9_0x3e533e(0x18c)](exports,'Scope',{'enumerable':!![],'get':function(){return core_2['Scope'];}}),Object['defineProperty'](exports,a9_0x3e533e(0x195),{'enumerable':!![],'get':function(){var _0x113399=a9_0x3e533e;return core_2[_0x113399(0x195)];}}),global[a9_0x3e533e(0x1ac)]=getAppsConfig_1[a9_0x3e533e(0x1ac)];function a9_0xd363(){var _0x406d0b=['./types/common','Fields','default','./helper/getAppsConfig','Headers','Api','ApiService','Config','ExcelService','get','Body','EventService','__exportStar','create','Query','Inject','@midwayjs/core','777694KmzwBj','Provide','getAppsConfig','getRoutes','__esModule','./helper/getRoutes','./exception/ApiError','./service/ApiService','hasOwnProperty','./decorator/ActionApitest','ValidatorError','prototype','ApiError','3420540jbVDSD','Param','CustomConfiguration','writable','3974424mbAQRP','1264320CFmFUZ','@anncic-api/validator','Files','Logger','145335jRBwtI','File','__createBinding','./service/ApitestService','@anncic-api/cache','CacheService','./service/ExcelService','Apitest','Scope','defineProperty','Action','@anncic-api/event','203vlxCBu','2054985vZMiNK','Init','./configuration','App','2udyUmI','ScopeEnum','call','107658HzXHQj','Configuration'];a9_0xd363=function(){return _0x406d0b;};return a9_0xd363();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x27ec6b=a10_0x1d64;(function(_0x44e51a,_0x5b7d4f){var _0x1f6ebf=a10_0x1d64,_0x147358=_0x44e51a();while(!![]){try{var _0x1a59ff=parseInt(_0x1f6ebf(0x201))/0x1+-parseInt(_0x1f6ebf(0x1f4))/0x2+parseInt(_0x1f6ebf(0x20a))/0x3*(-parseInt(_0x1f6ebf(0x1df))/0x4)+parseInt(_0x1f6ebf(0x1d7))/0x5*(parseInt(_0x1f6ebf(0x1fc))/0x6)+-parseInt(_0x1f6ebf(0x213))/0x7+parseInt(_0x1f6ebf(0x1f1))/0x8+parseInt(_0x1f6ebf(0x1dd))/0x9*(parseInt(_0x1f6ebf(0x1f7))/0xa);if(_0x1a59ff===_0x5b7d4f)break;else _0x147358['push'](_0x147358['shift']());}catch(_0x70db59){_0x147358['push'](_0x147358['shift']());}}}(a10_0x4e6e,0xb006a));function a10_0x4e6e(){var _0x121f5e=['HEADERS_CHECKCODE','18gEaKLY','token','function','MD5','checksign','@midwayjs/core','anncicapi','fromEntries','metadata','8917881lKNgRA','defineProperty','checkcode','ApiService','secret=','abs','1685455OaMcGK','requesttime','prototype','entries','ScopeEnum','缺少头信息:','233361jbLWKf','toString','8504GIXqnm','getOwnPropertyDescriptor','sort','getcheck','HEADERS_SIGNATURE','__decorate','map','toLowerCase','length','undefined','logintime','signature','Provide','decorate','__metadata','logintimeout','config','join','10335712NnsPwh','secret','password','1416740LnyztS','ApiError','HEADERS_LACK','50Pbxwfl','device','object','devices','__esModule','12SONYBJ','TIMEOUT_LOGINTIME','design:type','TIMEOUT','缺少头信息:signature','620320lqZYes','crypto-js','getsign','HEADERS_DEVICE','timeout','push','now','Scope'];a10_0x4e6e=function(){return _0x121f5e;};return a10_0x4e6e();}var __decorate=this&&this[a10_0x27ec6b(0x1e4)]||function(_0x112f75,_0x4d3bd9,_0x2d84d2,_0x329df4){var _0x2431e9=a10_0x27ec6b,_0x12d7ac=arguments[_0x2431e9(0x1e7)],_0x50f42b=_0x12d7ac<0x3?_0x4d3bd9:_0x329df4===null?_0x329df4=Object[_0x2431e9(0x1e0)](_0x4d3bd9,_0x2d84d2):_0x329df4,_0x4e3edc;if(typeof Reflect===_0x2431e9(0x1f9)&&typeof Reflect[_0x2431e9(0x1ec)]===_0x2431e9(0x20c))_0x50f42b=Reflect[_0x2431e9(0x1ec)](_0x112f75,_0x4d3bd9,_0x2d84d2,_0x329df4);else{for(var _0x16033b=_0x112f75[_0x2431e9(0x1e7)]-0x1;_0x16033b>=0x0;_0x16033b--)if(_0x4e3edc=_0x112f75[_0x16033b])_0x50f42b=(_0x12d7ac<0x3?_0x4e3edc(_0x50f42b):_0x12d7ac>0x3?_0x4e3edc(_0x4d3bd9,_0x2d84d2,_0x50f42b):_0x4e3edc(_0x4d3bd9,_0x2d84d2))||_0x50f42b;}return _0x12d7ac>0x3&&_0x50f42b&&Object[_0x2431e9(0x214)](_0x4d3bd9,_0x2d84d2,_0x50f42b),_0x50f42b;},__metadata=this&&this[a10_0x27ec6b(0x1ed)]||function(_0x236199,_0x94220f){var _0x5ac7f9=a10_0x27ec6b;if(typeof Reflect===_0x5ac7f9(0x1f9)&&typeof Reflect['metadata']===_0x5ac7f9(0x20c))return Reflect[_0x5ac7f9(0x212)](_0x236199,_0x94220f);};function a10_0x1d64(_0x1bbe51,_0xe1c96b){var _0x4e6ea1=a10_0x4e6e();return a10_0x1d64=function(_0x1d64d4,_0x19e5c1){_0x1d64d4=_0x1d64d4-0x1d3;var _0x5f06f6=_0x4e6ea1[_0x1d64d4];return _0x5f06f6;},a10_0x1d64(_0x1bbe51,_0xe1c96b);}Object[a10_0x27ec6b(0x214)](exports,a10_0x27ec6b(0x1fb),{'value':!![]}),exports[a10_0x27ec6b(0x1d4)]=void 0x0;const crypto_js_1=require(a10_0x27ec6b(0x202)),core_1=require(a10_0x27ec6b(0x20f)),ApiError_1=require('../exception/ApiError');let ApiService=class ApiService{[a10_0x27ec6b(0x1f3)](_0x452278){var _0x51efb7=a10_0x27ec6b,_0x1cad30;return _0x452278?(0x0,crypto_js_1[_0x51efb7(0x20d)])(_0x452278+(0x0,crypto_js_1[_0x51efb7(0x20d)])((0x0,crypto_js_1[_0x51efb7(0x20d)])(_0x452278)[_0x51efb7(0x1de)]()+((_0x1cad30=this[_0x51efb7(0x1ef)])===null||_0x1cad30===void 0x0?void 0x0:_0x1cad30[_0x51efb7(0x1f3)]))[_0x51efb7(0x1de)]())[_0x51efb7(0x1de)]():'';}[a10_0x27ec6b(0x1e2)](_0x3c3934,_0x3aa513,_0x46771b=Date[a10_0x27ec6b(0x207)]()){return{'Token':_0x3c3934,'Logintime':_0x46771b,'Checkcode':this['checkcode'](_0x3c3934,_0x3aa513,_0x46771b)};}[a10_0x27ec6b(0x203)](_0x12ea67={}){var _0x2ab70b=a10_0x27ec6b,_0x23742d;const _0x2fbc8b=[],_0x230912=Object[_0x2ab70b(0x211)](Object[_0x2ab70b(0x1da)](_0x12ea67)[_0x2ab70b(0x1e5)](_0x94e93a=>[_0x94e93a[0x0][_0x2ab70b(0x1e6)](),_0x94e93a[0x1]]));for(let _0x44a7b0 of[_0x2ab70b(0x1f8),_0x2ab70b(0x1d8),_0x2ab70b(0x20b),'logintime',_0x2ab70b(0x1d3)]){if(typeof _0x230912[_0x44a7b0]==_0x2ab70b(0x1e8))throw new AnnError(ApiError_1['ApiError'][_0x2ab70b(0x1f6)],{'message':_0x2ab70b(0x1dc)+_0x44a7b0});_0x2fbc8b[_0x2ab70b(0x206)](_0x44a7b0+'='+_0x230912[_0x44a7b0]);}if(Date[_0x2ab70b(0x207)]()-Math[_0x2ab70b(0x1d6)](_0x230912[_0x2ab70b(0x1d8)])>this['config'][_0x2ab70b(0x205)])throw new AnnError(ApiError_1['ApiError'][_0x2ab70b(0x1ff)]);if((((_0x23742d=this['config'][_0x2ab70b(0x1fa)][_0x230912[_0x2ab70b(0x1f8)]])===null||_0x23742d===void 0x0?void 0x0:_0x23742d[_0x2ab70b(0x1ee)])||0x0)>0x0&&Date[_0x2ab70b(0x207)]()-Math[_0x2ab70b(0x1d6)](_0x230912[_0x2ab70b(0x1e9)])>this[_0x2ab70b(0x1ef)][_0x2ab70b(0x1fa)][_0x230912[_0x2ab70b(0x1f8)]]['logintimeout'])throw new AnnError(ApiError_1[_0x2ab70b(0x1f5)][_0x2ab70b(0x1fd)]);if(!this['config'][_0x2ab70b(0x1fa)][_0x230912[_0x2ab70b(0x1f8)]]||!this['config'][_0x2ab70b(0x1fa)][_0x230912[_0x2ab70b(0x1f8)]][_0x2ab70b(0x1f2)]||!this[_0x2ab70b(0x1ef)][_0x2ab70b(0x1fa)][_0x230912[_0x2ab70b(0x1f8)]]['checkcode'])throw new AnnError(ApiError_1['ApiError'][_0x2ab70b(0x204)]);if(_0x230912[_0x2ab70b(0x20b)]&&_0x230912[_0x2ab70b(0x1d3)]!=this[_0x2ab70b(0x1d3)](_0x230912[_0x2ab70b(0x20b)],_0x230912[_0x2ab70b(0x1f8)],_0x230912['logintime']))throw new AnnError(ApiError_1['ApiError'][_0x2ab70b(0x209)]);return _0x2fbc8b['push'](_0x2ab70b(0x1d5)+this[_0x2ab70b(0x1ef)]['devices'][_0x230912[_0x2ab70b(0x1f8)]][_0x2ab70b(0x1f2)]),(0x0,crypto_js_1[_0x2ab70b(0x20d)])(_0x2fbc8b[_0x2ab70b(0x1e1)]()[_0x2ab70b(0x1f0)](''))['toString']();}[a10_0x27ec6b(0x1d3)](_0xe0b65b,_0x238849,_0x27463e=Date[a10_0x27ec6b(0x207)]()){var _0x436487=a10_0x27ec6b,_0x1f6fd9,_0x46bd11,_0x3f9e12;if(!((_0x1f6fd9=this['config'])===null||_0x1f6fd9===void 0x0?void 0x0:_0x1f6fd9[_0x436487(0x1fa)][_0x238849])||!((_0x3f9e12=(_0x46bd11=this['config'])===null||_0x46bd11===void 0x0?void 0x0:_0x46bd11[_0x436487(0x1fa)][_0x238849])===null||_0x3f9e12===void 0x0?void 0x0:_0x3f9e12[_0x436487(0x1d3)]))throw new AnnError(ApiError_1[_0x436487(0x1f5)][_0x436487(0x204)]);return(0x0,crypto_js_1[_0x436487(0x20d)])(_0xe0b65b+(0x0,crypto_js_1[_0x436487(0x20d)])(_0x27463e+this['config'][_0x436487(0x1fa)][_0x238849][_0x436487(0x1d3)])[_0x436487(0x1de)]())[_0x436487(0x1de)]();}[a10_0x27ec6b(0x20e)](_0x130d4a={}){var _0x2322eb=a10_0x27ec6b;const _0x731667=Object[_0x2322eb(0x211)](Object[_0x2322eb(0x1da)](_0x130d4a)[_0x2322eb(0x1e5)](_0x112f19=>[_0x112f19[0x0][_0x2322eb(0x1e6)](),_0x112f19[0x1]]));if(!(_0x731667===null||_0x731667===void 0x0?void 0x0:_0x731667[_0x2322eb(0x1ea)]))throw new AnnError(ApiError_1[_0x2322eb(0x1f5)]['HEADERS_LACK'],{'message':_0x2322eb(0x200)});if((_0x731667===null||_0x731667===void 0x0?void 0x0:_0x731667[_0x2322eb(0x1ea)])!=this[_0x2322eb(0x203)](_0x731667))throw new AnnError(ApiError_1[_0x2322eb(0x1f5)][_0x2322eb(0x1e3)]);return!![];}};__decorate([(0x0,core_1['Config'])(a10_0x27ec6b(0x210)),__metadata(a10_0x27ec6b(0x1fe),Object)],ApiService[a10_0x27ec6b(0x1d9)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x27ec6b(0x1eb)])(),(0x0,core_1[a10_0x27ec6b(0x208)])(core_1[a10_0x27ec6b(0x1db)]['Singleton'])],ApiService),exports[a10_0x27ec6b(0x1d4)]=ApiService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x5dfd9a=a11_0x59ef;(function(_0x19b4a8,_0x4089fc){const _0x18880d=a11_0x59ef,_0x1e7c38=_0x19b4a8();while(!![]){try{const _0x5c9820=-parseInt(_0x18880d(0x10c))/0x1+-parseInt(_0x18880d(0xf6))/0x2+parseInt(_0x18880d(0xf7))/0x3+parseInt(_0x18880d(0x135))/0x4+parseInt(_0x18880d(0x121))/0x5*(parseInt(_0x18880d(0x120))/0x6)+parseInt(_0x18880d(0x11f))/0x7*(-parseInt(_0x18880d(0xea))/0x8)+parseInt(_0x18880d(0x118))/0x9;if(_0x5c9820===_0x4089fc)break;else _0x1e7c38['push'](_0x1e7c38['shift']());}catch(_0x3e6755){_0x1e7c38['push'](_0x1e7c38['shift']());}}}(a11_0x1155,0xe53d9));function a11_0x59ef(_0x170207,_0x430cd3){const _0x115567=a11_0x1155();return a11_0x59ef=function(_0x59ef5b,_0x3bdbf8){_0x59ef5b=_0x59ef5b-0xea;let _0x440cad=_0x115567[_0x59ef5b];return _0x440cad;},a11_0x59ef(_0x170207,_0x430cd3);}function a11_0x1155(){const _0xdfdde3=['24282783WyOLtc','__esModule','isDevelopmentEnvironment','design:paramtypes','set','length','decorate','9180059khIxos','6DnAqOH','741800zoTOPy','Inject','ApitestStaticController','defineProperty','apitest','request','content-type','__apiList__','Request','utf-8','getOwnPropertyDescriptor','getRoutes','Controller','apiteststatic','metadata','.js','Singleton','design:returntype','function','Scope','1477156xlLsZm','anncicapi','8Gbymgh','url','Environment','existsSync','public,\x20max-age=604800','apitestmodule','__decorate','/apitest-:module','../../public/','apitesthtml','/apiteststatic/*','replace','1338182iHjVeI','112917cpRbjY','extname','path','@midwayjs/core','config','push','../../public/index.html','apidoc','method','/apitest','../helper/getRoutes','design:type','module','text/css;\x20charset=utf-8','substring','routes','summary','stringify','prototype','ScopeEnum','description','333878qIZVTw','ctx','__metadata','join','/index.html','Provide','ApitestService','Config','__devices__','/apiteststatic/','object','Get'];a11_0x1155=function(){return _0xdfdde3;};return a11_0x1155();}var __decorate=this&&this[a11_0x5dfd9a(0xf0)]||function(_0x1f179d,_0x342c2a,_0x156382,_0x1ac2cb){const _0x557f8e=a11_0x5dfd9a;var _0xefea0c=arguments['length'],_0x2b1e2b=_0xefea0c<0x3?_0x342c2a:_0x1ac2cb===null?_0x1ac2cb=Object[_0x557f8e(0x12b)](_0x342c2a,_0x156382):_0x1ac2cb,_0x2960b8;if(typeof Reflect===_0x557f8e(0x116)&&typeof Reflect[_0x557f8e(0x11e)]==='function')_0x2b1e2b=Reflect[_0x557f8e(0x11e)](_0x1f179d,_0x342c2a,_0x156382,_0x1ac2cb);else{for(var _0x3f23ba=_0x1f179d[_0x557f8e(0x11d)]-0x1;_0x3f23ba>=0x0;_0x3f23ba--)if(_0x2960b8=_0x1f179d[_0x3f23ba])_0x2b1e2b=(_0xefea0c<0x3?_0x2960b8(_0x2b1e2b):_0xefea0c>0x3?_0x2960b8(_0x342c2a,_0x156382,_0x2b1e2b):_0x2960b8(_0x342c2a,_0x156382))||_0x2b1e2b;}return _0xefea0c>0x3&&_0x2b1e2b&&Object[_0x557f8e(0x124)](_0x342c2a,_0x156382,_0x2b1e2b),_0x2b1e2b;},__metadata=this&&this[a11_0x5dfd9a(0x10e)]||function(_0x52bc1b,_0x55ca76){const _0x21f683=a11_0x5dfd9a;if(typeof Reflect==='object'&&typeof Reflect[_0x21f683(0x12f)]===_0x21f683(0x133))return Reflect[_0x21f683(0x12f)](_0x52bc1b,_0x55ca76);},__param=this&&this['__param']||function(_0x54e6d8,_0x366636){return function(_0x5dd278,_0x3e0c6e){_0x366636(_0x5dd278,_0x3e0c6e,_0x54e6d8);};};Object[a11_0x5dfd9a(0x124)](exports,a11_0x5dfd9a(0x119),{'value':!![]}),exports[a11_0x5dfd9a(0x123)]=exports[a11_0x5dfd9a(0x112)]=void 0x0;const path_1=require(a11_0x5dfd9a(0xf9)),fs_1=require('fs'),core_1=require(a11_0x5dfd9a(0xfa)),core_2=require(a11_0x5dfd9a(0xfa)),core_3=require(a11_0x5dfd9a(0xfa)),getRoutes_1=require(a11_0x5dfd9a(0x101));let ApitestService=class ApitestService{async[a11_0x5dfd9a(0xfe)](_0x572d06){const _0x5992c8=a11_0x5dfd9a,_0x2cb6ad=(0x0,getRoutes_1[_0x5992c8(0x12c)])(_0x572d06),_0x199fd1=[];for(let _0x137b6b in _0x2cb6ad){for(let _0x4970ac in _0x2cb6ad[_0x137b6b][_0x5992c8(0x106)]){let _0x9c6d31=_0x2cb6ad[_0x137b6b][_0x5992c8(0x106)][_0x4970ac],_0x4b9148=[];for(let _0x5806e1 in _0x9c6d31[_0x5992c8(0x126)]){_0x4b9148[_0x5992c8(0xfc)](_0x9c6d31[_0x5992c8(0x126)][_0x5806e1]);}_0x199fd1[_0x5992c8(0xfc)]({'title':_0x2cb6ad[_0x137b6b][_0x5992c8(0x107)]+':'+_0x9c6d31[_0x5992c8(0x107)],'prefix':_0x2cb6ad[_0x137b6b]['prefix'],'router':_0x9c6d31['route'],'method':_0x9c6d31[_0x5992c8(0xff)],'describe':_0x9c6d31[_0x5992c8(0x10b)]||'','filepath':_0x2cb6ad[_0x137b6b]['filepath']||'','request':_0x4b9148});}}const _0x384b8b=(0x0,path_1[_0x5992c8(0x10f)])(__dirname,_0x5992c8(0xfd));return(0x0,fs_1['readFileSync'])(_0x384b8b,{'encoding':'utf-8'})[_0x5992c8(0xf5)](/__res__/g,'/apiteststatic/')['replace'](_0x5992c8(0x128),JSON[_0x5992c8(0x108)](_0x199fd1))[_0x5992c8(0xf5)](_0x5992c8(0x114),JSON[_0x5992c8(0x108)](this[_0x5992c8(0xfb)]['devices']));}};__decorate([(0x0,core_3[a11_0x5dfd9a(0x113)])(a11_0x5dfd9a(0x136)),__metadata(a11_0x5dfd9a(0x102),Object)],ApitestService[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0xfb),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x5dfd9a(0x111)])(a11_0x5dfd9a(0x125)),(0x0,core_3['Scope'])(core_3[a11_0x5dfd9a(0x10a)][a11_0x5dfd9a(0x131)])],ApitestService),exports[a11_0x5dfd9a(0x112)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x5dfd9a(0xf3)](){const _0x7277a5=a11_0x5dfd9a;if(this[_0x7277a5(0x125)]){const _0x57e979={'module':![]};return this[_0x7277a5(0xec)][_0x7277a5(0x11a)]()&&(_0x57e979['filepath']=!![]),await this[_0x7277a5(0x112)]['apidoc'](_0x57e979);}return'';}async[a11_0x5dfd9a(0xef)](_0x2f3f07){const _0x29bb02=a11_0x5dfd9a;if(this['apitest']){const _0x2c19dc={'module':_0x2f3f07};return this[_0x29bb02(0xec)]['isDevelopmentEnvironment']()&&(_0x2c19dc['filepath']=!![]),await this['ApitestService'][_0x29bb02(0xfe)](_0x2c19dc);}return'';}async[a11_0x5dfd9a(0x12e)](){const _0x2638d9=a11_0x5dfd9a;if((0x0,path_1[_0x2638d9(0xf8)])(this['ctx']['request']['url'])){var _0x5c8067=(0x0,path_1[_0x2638d9(0x10f)])(__dirname,_0x2638d9(0xf2)+this['ctx']['request'][_0x2638d9(0xeb)][_0x2638d9(0xf5)](_0x2638d9(0x115),'/'));if(_0x5c8067[_0x2638d9(0x105)](_0x5c8067['length']-0xb)!=_0x2638d9(0x110)){this[_0x2638d9(0x10d)][_0x2638d9(0x11c)]('cache-control',_0x2638d9(0xee));if((0x0,path_1[_0x2638d9(0xf8)])(this[_0x2638d9(0x10d)][_0x2638d9(0x126)][_0x2638d9(0xeb)])==_0x2638d9(0x130))this['ctx'][_0x2638d9(0x11c)]('content-type','application/javascript;\x20charset=utf-8');else(0x0,path_1['extname'])(this['ctx']['request'][_0x2638d9(0xeb)])=='.css'&&this[_0x2638d9(0x10d)][_0x2638d9(0x11c)](_0x2638d9(0x127),_0x2638d9(0x104));return(0x0,fs_1[_0x2638d9(0xed)])(_0x5c8067)&&(0x0,fs_1['readFileSync'])(_0x5c8067,{'encoding':_0x2638d9(0x12a)});}}return'';}};__decorate([(0x0,core_3[a11_0x5dfd9a(0x122)])(),__metadata(a11_0x5dfd9a(0x102),Object)],ApitestStaticController['prototype'],a11_0x5dfd9a(0x10d),void 0x0),__decorate([(0x0,core_3[a11_0x5dfd9a(0x122)])(),__metadata(a11_0x5dfd9a(0x102),core_1['MidwayEnvironmentService'])],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0xec),void 0x0),__decorate([(0x0,core_3[a11_0x5dfd9a(0x122)])(),__metadata(a11_0x5dfd9a(0x102),ApitestService)],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0x112),void 0x0),__decorate([(0x0,core_3[a11_0x5dfd9a(0x113)])('apitest'),__metadata(a11_0x5dfd9a(0x102),Boolean)],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0x125),void 0x0),__decorate([(0x0,core_3[a11_0x5dfd9a(0x113)])(a11_0x5dfd9a(0x136)),__metadata('design:type',Object)],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0xfb),void 0x0),__decorate([(0x0,core_2[a11_0x5dfd9a(0x117)])(a11_0x5dfd9a(0x100)),__metadata(a11_0x5dfd9a(0x102),Function),__metadata(a11_0x5dfd9a(0x11b),[]),__metadata(a11_0x5dfd9a(0x132),Promise)],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0xf3),null),__decorate([(0x0,core_2['Get'])(a11_0x5dfd9a(0xf1)),__param(0x0,(0x0,core_2['Param'])(a11_0x5dfd9a(0x103))),__metadata('design:type',Function),__metadata(a11_0x5dfd9a(0x11b),[String]),__metadata(a11_0x5dfd9a(0x132),Promise)],ApitestStaticController['prototype'],a11_0x5dfd9a(0xef),null),__decorate([(0x0,core_2[a11_0x5dfd9a(0x117)])(a11_0x5dfd9a(0xf4)),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(a11_0x5dfd9a(0x132),Promise)],ApitestStaticController[a11_0x5dfd9a(0x109)],a11_0x5dfd9a(0x12e),null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x5dfd9a(0x12d)])('/'),(0x0,core_3[a11_0x5dfd9a(0x134)])(core_3[a11_0x5dfd9a(0x10a)][a11_0x5dfd9a(0x129)])],ApitestStaticController),exports['ApitestStaticController']=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x571894=a12_0x3c61;(function(_0x1beaa2,_0x6e62bf){const _0x553d94=a12_0x3c61,_0x515425=_0x1beaa2();while(!![]){try{const _0x3589d3=parseInt(_0x553d94(0xbf))/0x1+-parseInt(_0x553d94(0xc6))/0x2*(-parseInt(_0x553d94(0xa6))/0x3)+parseInt(_0x553d94(0xc2))/0x4+-parseInt(_0x553d94(0xaf))/0x5+parseInt(_0x553d94(0xa5))/0x6*(-parseInt(_0x553d94(0xb4))/0x7)+-parseInt(_0x553d94(0xc5))/0x8*(parseInt(_0x553d94(0xd8))/0x9)+-parseInt(_0x553d94(0x9a))/0xa*(parseInt(_0x553d94(0xc8))/0xb);if(_0x3589d3===_0x6e62bf)break;else _0x515425['push'](_0x515425['shift']());}catch(_0x5c9f78){_0x515425['push'](_0x515425['shift']());}}}(a12_0x6ba8,0xb3662));var __decorate=this&&this[a12_0x571894(0xd6)]||function(_0x43ba46,_0x194ca0,_0x482831,_0x14a15b){const _0x13704c=a12_0x571894;var _0x2bc064=arguments[_0x13704c(0xb0)],_0x3ee6e4=_0x2bc064<0x3?_0x194ca0:_0x14a15b===null?_0x14a15b=Object[_0x13704c(0xca)](_0x194ca0,_0x482831):_0x14a15b,_0x369302;if(typeof Reflect===_0x13704c(0xbc)&&typeof Reflect[_0x13704c(0xa0)]===_0x13704c(0xba))_0x3ee6e4=Reflect[_0x13704c(0xa0)](_0x43ba46,_0x194ca0,_0x482831,_0x14a15b);else{for(var _0x257e54=_0x43ba46['length']-0x1;_0x257e54>=0x0;_0x257e54--)if(_0x369302=_0x43ba46[_0x257e54])_0x3ee6e4=(_0x2bc064<0x3?_0x369302(_0x3ee6e4):_0x2bc064>0x3?_0x369302(_0x194ca0,_0x482831,_0x3ee6e4):_0x369302(_0x194ca0,_0x482831))||_0x3ee6e4;}return _0x2bc064>0x3&&_0x3ee6e4&&Object[_0x13704c(0xce)](_0x194ca0,_0x482831,_0x3ee6e4),_0x3ee6e4;},__metadata=this&&this[a12_0x571894(0xa1)]||function(_0x422d56,_0x4ee605){const _0x33b5ed=a12_0x571894;if(typeof Reflect===_0x33b5ed(0xbc)&&typeof Reflect['metadata']==='function')return Reflect[_0x33b5ed(0xae)](_0x422d56,_0x4ee605);};Object[a12_0x571894(0xce)](exports,a12_0x571894(0xd7),{'value':!![]}),exports[a12_0x571894(0xd2)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x571894(0xc9)),koasend=require(a12_0x571894(0xb5)),core_1=require(a12_0x571894(0xb1));function a12_0x3c61(_0x427ce9,_0x20caea){const _0x6ba88b=a12_0x6ba8();return a12_0x3c61=function(_0x3c6138,_0x4c1952){_0x3c6138=_0x3c6138-0x96;let _0x1a51c0=_0x6ba88b[_0x3c6138];return _0x1a51c0;},a12_0x3c61(_0x427ce9,_0x20caea);}let ExcelService=class ExcelService{async[a12_0x571894(0x9f)](_0x530462,_0x11edef,_0x5e1f87=[0x0]){const _0x3345e6=a12_0x571894;var _0x1322ef,_0x2b40ee;const _0x5b68dc=new exceljs[(_0x3345e6(0xc7))](),_0x581ea1=[];let _0x147f7c=_0x530462['replace'](/(\\|\/)/g,'/')[_0x3345e6(0xbe)](/\/{2,}/g,'/');!(_0x147f7c===null||_0x147f7c===void 0x0?void 0x0:_0x147f7c[_0x3345e6(0xb3)]('/'))&&(_0x147f7c=this[_0x3345e6(0xd1)][_0x3345e6(0xcb)]()+'/'+_0x147f7c);try{await _0x5b68dc[_0x3345e6(0x9d)][_0x3345e6(0xb6)](_0x147f7c);}catch(_0x2a01a4){return console[_0x3345e6(0xc3)](_0x3345e6(0xac)+_0x147f7c+'\x20is\x20read\x20fail'),_0x581ea1;}for(const _0x7a25b2 of _0x5e1f87){const _0x2c4acb=lodash[_0x3345e6(0xa8)](_0x7a25b2)?((_0x1322ef=_0x5b68dc[_0x3345e6(0xa3)])===null||_0x1322ef===void 0x0?void 0x0:_0x1322ef[_0x7a25b2])||undefined:_0x5b68dc['getWorksheet'](_0x7a25b2);if(_0x2c4acb){var _0x3b920f=0x1;const _0x5a4b28=_0x2c4acb[_0x3345e6(0xbb)](0x1),_0x5c2ce7=await new Promise(_0x54ba09=>{const _0xe61c44=_0x3345e6,_0x1bb65c={};_0x5a4b28[_0xe61c44(0xc1)]((_0x2f2814,_0x2b8071)=>{const _0x171a05=_0xe61c44;for(const _0x4d0c8c of _0x11edef){if(_0x2f2814[_0x171a05(0xcd)]==_0x4d0c8c[_0x171a05(0xab)])_0x3b920f=0x2,_0x1bb65c[_0x4d0c8c[_0x171a05(0xbd)]]={'header':_0x2f2814['col'],'handler':_0x4d0c8c[_0x171a05(0xad)]};else{if(!_0x1bb65c[_0x4d0c8c['key']])try{const _0x2877f1=_0x5a4b28[_0x171a05(0xa9)](_0x4d0c8c['header']);_0x2877f1&&(_0x1bb65c[_0x4d0c8c[_0x171a05(0xbd)]]={'header':_0x2877f1[_0x171a05(0xb7)],'handler':_0x4d0c8c['handler']});}catch{}}}_0x5a4b28['cellCount']==_0x2b8071&&_0x54ba09(_0x1bb65c);});});for(const _0x1404e0 of _0x2c4acb[_0x3345e6(0xd9)](_0x3b920f,_0x2c4acb[_0x3345e6(0xd5)])){const _0x37a08e={};for(const _0xd134 in _0x5c2ce7){if(_0x5c2ce7[_0xd134]['header']){const _0x14df89=_0x1404e0[_0x3345e6(0xa9)](_0x5c2ce7[_0xd134][_0x3345e6(0xab)]);typeof((_0x2b40ee=_0x5c2ce7[_0xd134])===null||_0x2b40ee===void 0x0?void 0x0:_0x2b40ee[_0x3345e6(0xad)])=='function'?_0x37a08e[_0xd134]=await _0x5c2ce7[_0xd134][_0x3345e6(0xad)]((_0x14df89===null||_0x14df89===void 0x0?void 0x0:_0x14df89[_0x3345e6(0xb8)]())||'',_0x14df89['model']):_0x37a08e[_0xd134]=(_0x14df89===null||_0x14df89===void 0x0?void 0x0:_0x14df89[_0x3345e6(0xb8)]())||'';}}Object[_0x3345e6(0xaa)](_0x37a08e)[_0x3345e6(0xb0)]>0x0&&_0x581ea1[_0x3345e6(0xa2)](_0x37a08e);}}}return _0x581ea1;}async[a12_0x571894(0x9b)](_0x56840b,_0x56a6c7,_0x557b25,_0x4c17d3='public/xlsx'){const _0x2680d5=a12_0x571894;var _0x56d0c7,_0x59e210;const _0x57e45f=new exceljs[(_0x2680d5(0xc7))](),_0x1fc29c={},_0x345ae9=[],_0x328f07=_0x57e45f[_0x2680d5(0xb9)](_0x2680d5(0xd0),{'views':[{'state':_0x2680d5(0x9e),'xSplit':0x1}]});for(const _0xa339a2 in _0x56a6c7){_0x1fc29c[_0x56a6c7[_0xa339a2]['key']]=_0x56a6c7[_0xa339a2]['header'],_0x345ae9[_0x2680d5(0xa2)]({'header':_0x56a6c7[_0xa339a2][_0x2680d5(0xab)],'key':(_0x56d0c7=_0x56a6c7[_0xa339a2])===null||_0x56d0c7===void 0x0?void 0x0:_0x56d0c7['key'][_0x2680d5(0xbe)](/\./g,'_')});}_0x328f07['columns']=_0x345ae9;for(const _0x597789 of _0x557b25){const _0x8466d0={};for(const _0x4321ac in _0x56a6c7){typeof((_0x59e210=_0x56a6c7[_0x4321ac])===null||_0x59e210===void 0x0?void 0x0:_0x59e210[_0x2680d5(0xad)])==_0x2680d5(0xba)?_0x8466d0[_0x56a6c7[_0x4321ac][_0x2680d5(0xbd)][_0x2680d5(0xbe)](/\./g,'_')]=await _0x56a6c7[_0x4321ac][_0x2680d5(0xad)](_0x597789):_0x8466d0[_0x56a6c7[_0x4321ac]['key'][_0x2680d5(0xbe)](/\./g,'_')]=lodash[_0x2680d5(0x96)](_0x597789,_0x56a6c7[_0x4321ac][_0x2680d5(0xbd)],'');}_0x328f07[_0x2680d5(0xa4)](_0x8466d0);}let _0x1be8d4='';const _0x3edf68=_0x56840b+'-'+lodash['random'](0x2710,0x1869f)+_0x2680d5(0xd4);if(_0x4c17d3&&_0x4c17d3[_0x2680d5(0xb3)]('/'))_0x1be8d4=''+_0x4c17d3;else _0x4c17d3&&!_0x4c17d3['startsWith']('/')&&!_0x4c17d3[_0x2680d5(0xb3)]('\x5c')?_0x1be8d4=this[_0x2680d5(0xd1)][_0x2680d5(0xcb)]()+'/'+_0x4c17d3:_0x1be8d4=this[_0x2680d5(0xd1)][_0x2680d5(0xcb)]()+_0x2680d5(0x99);return(_0x1be8d4[_0x2680d5(0xc0)]('/')||_0x1be8d4['endsWith']('\x5c'))&&(_0x1be8d4=_0x1be8d4[_0x2680d5(0xd3)](0x0,_0x1be8d4['length']-0x1)),_0x1be8d4=_0x1be8d4[_0x2680d5(0xbe)](/(\\|\/)/g,'/')[_0x2680d5(0xbe)](/\/{2,}/g,'/'),!fs[_0x2680d5(0xc4)](_0x1be8d4)&&fs[_0x2680d5(0x9c)](_0x1be8d4,{'recursive':!![]}),await _0x57e45f['xlsx'][_0x2680d5(0x97)]((_0x1be8d4+'/'+_0x3edf68)[_0x2680d5(0xbe)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/')),{'filename':_0x3edf68,'filepath':(_0x1be8d4['substring']((''+this[_0x2680d5(0xd1)]['getAppDir']())['length'])+'/'+_0x3edf68)['replace'](/(\\|\/)/g,'/')[_0x2680d5(0xbe)](/\/{2,}/g,'/')};}async[a12_0x571894(0xb2)](_0x4046b0,_0x2769cd){return await koasend(_0x4046b0,''+_0x2769cd);}};function a12_0x6ba8(){const _0x4469f1=['get','writeFile','ScopeEnum','/public/xlsx','20FaZCuY','export','mkdirSync','xlsx','frozen','parse','decorate','__metadata','push','worksheets','addRow','232950lVzxTt','30UfTSam','Singleton','isNumber','getCell','keys','header','Api\x20Excel\x20Error:\x20','handler','metadata','9420zfziou','length','@midwayjs/core','download','startsWith','259khfpFJ','koa-send','readFile','col','toString','addWorksheet','function','getRow','object','key','replace','561091dRQZCD','endsWith','eachCell','4068548wLpUvw','log','existsSync','4019816xUhzHj','222746kyazGn','Workbook','89397dRTEQT','exceljs','getOwnPropertyDescriptor','getAppDir','prototype','value','defineProperty','App','Sheet\x201','app','ExcelService','substring','.xlsx','rowCount','__decorate','__esModule','9NUgeWW','findRows'];a12_0x6ba8=function(){return _0x4469f1;};return a12_0x6ba8();}__decorate([(0x0,core_1[a12_0x571894(0xcf)])(),__metadata('design:type',Object)],ExcelService[a12_0x571894(0xcc)],a12_0x571894(0xd1),void 0x0),ExcelService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a12_0x571894(0x98)][a12_0x571894(0xa7)])],ExcelService),exports['ExcelService']=ExcelService;
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a13_0x196c(){var _0x19a540=['1060dSZsJs','APPSCONFIG_KEY','54187oXfYgs','619544hbzSHF','843774ZYeTwM','1343294pgOnQU','anncic-api:action:route','13806287YShejQ','664iasgHO','3dJnRei','defineProperty','anncic-api:apps:config','21894jDgUHd','AppsConfigTmp','ACTION_ROUTE_KEY','126HvaXDz','12mylQQS','574940Tjdowe','ACTION_KEY'];a13_0x196c=function(){return _0x19a540;};return a13_0x196c();}var a13_0x54ed6c=a13_0x15a1;(function(_0x2c634d,_0x562049){var _0x3013ef=a13_0x15a1,_0x523c7c=_0x2c634d();while(!![]){try{var _0x187712=parseInt(_0x3013ef(0x1b6))/0x1+parseInt(_0x3013ef(0x1b5))/0x2*(-parseInt(_0x3013ef(0x1ba))/0x3)+parseInt(_0x3013ef(0x1b4))/0x4+-parseInt(_0x3013ef(0x1b1))/0x5*(-parseInt(_0x3013ef(0x1aa))/0x6)+-parseInt(_0x3013ef(0x1b3))/0x7*(parseInt(_0x3013ef(0x1b9))/0x8)+-parseInt(_0x3013ef(0x1ad))/0x9*(-parseInt(_0x3013ef(0x1af))/0xa)+-parseInt(_0x3013ef(0x1b8))/0xb*(parseInt(_0x3013ef(0x1ae))/0xc);if(_0x187712===_0x562049)break;else _0x523c7c['push'](_0x523c7c['shift']());}catch(_0xf9d916){_0x523c7c['push'](_0x523c7c['shift']());}}}(a13_0x196c,0xb8db9));function a13_0x15a1(_0x40ec3e,_0xe4a93e){var _0x196cab=a13_0x196c();return a13_0x15a1=function(_0x15a14b,_0x2d0554){_0x15a14b=_0x15a14b-0x1a8;var _0x1da3cd=_0x196cab[_0x15a14b];return _0x1da3cd;},a13_0x15a1(_0x40ec3e,_0xe4a93e);}Object[a13_0x54ed6c(0x1a8)](exports,'__esModule',{'value':!![]}),exports['AppsConfigTmp']=exports[a13_0x54ed6c(0x1b2)]=exports[a13_0x54ed6c(0x1ac)]=exports['ACTION_KEY']=void 0x0,exports[a13_0x54ed6c(0x1b0)]='anncic-api:action',exports[a13_0x54ed6c(0x1ac)]=a13_0x54ed6c(0x1b7),exports['APPSCONFIG_KEY']=a13_0x54ed6c(0x1a9);class AppsConfigTmp{}exports[a13_0x54ed6c(0x1ab)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0x5a7cee=a14_0x52e1;function a14_0x52e1(_0x5c8fa5,_0x1f594b){var _0x1b6651=a14_0x1b66();return a14_0x52e1=function(_0x52e1c8,_0x4ef41d){_0x52e1c8=_0x52e1c8-0xec;var _0x5e315c=_0x1b6651[_0x52e1c8];return _0x5e315c;},a14_0x52e1(_0x5c8fa5,_0x1f594b);}(function(_0x28c85c,_0xf184ed){var _0x393d64=a14_0x52e1,_0x48bff5=_0x28c85c();while(!![]){try{var _0x33a329=parseInt(_0x393d64(0xfe))/0x1+parseInt(_0x393d64(0xef))/0x2*(-parseInt(_0x393d64(0x100))/0x3)+-parseInt(_0x393d64(0xf6))/0x4*(parseInt(_0x393d64(0x104))/0x5)+parseInt(_0x393d64(0x103))/0x6+-parseInt(_0x393d64(0xf8))/0x7+-parseInt(_0x393d64(0xed))/0x8+parseInt(_0x393d64(0x106))/0x9*(parseInt(_0x393d64(0x10e))/0xa);if(_0x33a329===_0xf184ed)break;else _0x48bff5['push'](_0x48bff5['shift']());}catch(_0x262570){_0x48bff5['push'](_0x48bff5['shift']());}}}(a14_0x1b66,0xef662));var __decorate=this&&this[a14_0x5a7cee(0xff)]||function(_0x2be565,_0x4fa5fd,_0x418672,_0x21ef7d){var _0x558d57=a14_0x5a7cee,_0x20902f=arguments[_0x558d57(0x105)],_0x9d5a4b=_0x20902f<0x3?_0x4fa5fd:_0x21ef7d===null?_0x21ef7d=Object[_0x558d57(0x107)](_0x4fa5fd,_0x418672):_0x21ef7d,_0x3919fe;if(typeof Reflect===_0x558d57(0xf4)&&typeof Reflect[_0x558d57(0xf9)]==='function')_0x9d5a4b=Reflect[_0x558d57(0xf9)](_0x2be565,_0x4fa5fd,_0x418672,_0x21ef7d);else{for(var _0x4aaa24=_0x2be565[_0x558d57(0x105)]-0x1;_0x4aaa24>=0x0;_0x4aaa24--)if(_0x3919fe=_0x2be565[_0x4aaa24])_0x9d5a4b=(_0x20902f<0x3?_0x3919fe(_0x9d5a4b):_0x20902f>0x3?_0x3919fe(_0x4fa5fd,_0x418672,_0x9d5a4b):_0x3919fe(_0x4fa5fd,_0x418672))||_0x9d5a4b;}return _0x20902f>0x3&&_0x9d5a4b&&Object['defineProperty'](_0x4fa5fd,_0x418672,_0x9d5a4b),_0x9d5a4b;},__metadata=this&&this[a14_0x5a7cee(0x10f)]||function(_0x38bb0a,_0x399840){var _0x589ede=a14_0x5a7cee;if(typeof Reflect==='object'&&typeof Reflect[_0x589ede(0x10d)]==='function')return Reflect[_0x589ede(0x10d)](_0x38bb0a,_0x399840);};Object[a14_0x5a7cee(0x108)](exports,a14_0x5a7cee(0xf5),{'value':!![]}),exports[a14_0x5a7cee(0xf7)]=void 0x0;const validator_1=require(a14_0x5a7cee(0x102));class PageDTO{}function a14_0x1b66(){var _0x532bd1=['metadata','23530vwzSlp','__metadata','number','integer','第一页为1,第二页为2','2232192xNlIfk','_size','614190qfQIZE','min','_order','1:是;0:否','_page','object','__esModule','185688zCIpmZ','PageDTO','3844365aYYWxT','decorate','valid','Rule','prototype','design:type','1106687ITiuKe','__decorate','18okuoAm','分页数量','@anncic-api/validator','6980358pKVkQj','185DNosIA','length','11853YBxPyY','getOwnPropertyDescriptor','defineProperty','排序方式','RuleType','string','是否倒序'];a14_0x1b66=function(){return _0x532bd1;};return a14_0x1b66();}__decorate([(0x0,validator_1[a14_0x5a7cee(0xfb)])('分页',validator_1[a14_0x5a7cee(0x10a)]['number']()['integer']()[a14_0x5a7cee(0xf0)](0x1),a14_0x5a7cee(0xec)),__metadata(a14_0x5a7cee(0xfd),Number)],PageDTO['prototype'],a14_0x5a7cee(0xf3),void 0x0),__decorate([(0x0,validator_1[a14_0x5a7cee(0xfb)])(a14_0x5a7cee(0x101),validator_1['RuleType'][a14_0x5a7cee(0x110)]()[a14_0x5a7cee(0x111)]()[a14_0x5a7cee(0xf0)](0x1)),__metadata(a14_0x5a7cee(0xfd),Number)],PageDTO['prototype'],a14_0x5a7cee(0xee),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x5a7cee(0x109),validator_1[a14_0x5a7cee(0x10a)][a14_0x5a7cee(0x10b)]()['trim']()),__metadata('design:type',String)],PageDTO[a14_0x5a7cee(0xfc)],a14_0x5a7cee(0xf1),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0x5a7cee(0x10c),validator_1[a14_0x5a7cee(0x10a)][a14_0x5a7cee(0x110)]()['integer']()[a14_0x5a7cee(0xfa)](0x0,0x1),a14_0x5a7cee(0xf2)),__metadata(a14_0x5a7cee(0xfd),Number)],PageDTO[a14_0x5a7cee(0xfc)],'_isreverse',void 0x0),exports[a14_0x5a7cee(0xf7)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.16",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^1.4.
|
|
21
|
-
"@anncic-api/core": "^1.4.
|
|
22
|
-
"@anncic-api/event": "^1.4.
|
|
23
|
-
"@anncic-api/typeorm": "^1.4.
|
|
24
|
-
"@anncic-api/validator": "^1.4.
|
|
20
|
+
"@anncic-api/cache": "^1.4.16",
|
|
21
|
+
"@anncic-api/core": "^1.4.16",
|
|
22
|
+
"@anncic-api/event": "^1.4.16",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.16",
|
|
24
|
+
"@anncic-api/validator": "^1.4.16",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.8.0",
|
|
26
26
|
"@midwayjs/i18n": "^3.8.0",
|
|
27
27
|
"@midwayjs/koa": "^3.8.0",
|
|
28
28
|
"@midwayjs/static-file": "^3.8.0",
|
|
29
29
|
"@midwayjs/upload": "^3.8.0",
|
|
30
|
-
"anncic-apihelper": "^1.4.
|
|
30
|
+
"anncic-apihelper": "^1.4.16",
|
|
31
31
|
"exceljs": "^4.3.0",
|
|
32
32
|
"koa-send": "^5.0.1"
|
|
33
33
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cross-env": "^7.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f710648b37477e0e864baa0dd8f83ad1bf337bb8"
|
|
43
43
|
}
|