anncic-api 1.4.18 → 1.4.19
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.d.ts +1 -0
- 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.d.ts +1 -0
- 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';function a0_0x9a6e(){var _0x54de1a=['default','xml','dhauo1234420123gg3234901','63930LrMhcZ','1107215XLUqzI','20mb','__esModule','/runtime/.upload','appDir','2631355WnQelJ','542aLVifL','3066664keabFi','9iUxyZg','json','form','5718JiyegN','name','zhiulanuiy7892387985hnoi','8786057dsufgv','4YmWnRk','7689044LSThGn','6vpOLUO'];a0_0x9a6e=function(){return _0x54de1a;};return a0_0x9a6e();}var a0_0x2b01ae=a0_0x1b52;(function(_0x2d76c2,_0x578403){var _0x45315c=a0_0x1b52,_0x2135d1=_0x2d76c2();while(!![]){try{var _0x4c8f56=parseInt(_0x45315c(0x197))/0x1+-parseInt(_0x45315c(0x19d))/0x2*(-parseInt(_0x45315c(0x1a2))/0x3)+-parseInt(_0x45315c(0x190))/0x4*(parseInt(_0x45315c(0x19c))/0x5)+-parseInt(_0x45315c(0x192))/0x6*(parseInt(_0x45315c(0x18f))/0x7)+parseInt(_0x45315c(0x19e))/0x8+-parseInt(_0x45315c(0x19f))/0x9*(parseInt(_0x45315c(0x196))/0xa)+parseInt(_0x45315c(0x191))/0xb;if(_0x4c8f56===_0x578403)break;else _0x2135d1['push'](_0x2135d1['shift']());}catch(_0x467ffb){_0x2135d1['push'](_0x2135d1['shift']());}}}(a0_0x9a6e,0xe02f7));function a0_0x1b52(_0x1fbac3,_0x30f174){var _0x9a6eee=a0_0x9a6e();return a0_0x1b52=function(_0x1b5254,_0x23cd05){_0x1b5254=_0x1b5254-0x18e;var _0x7e4df8=_0x9a6eee[_0x1b5254];return _0x7e4df8;},a0_0x1b52(_0x1fbac3,_0x30f174);}Object['defineProperty'](exports,a0_0x2b01ae(0x199),{'value':!![]}),exports[a0_0x2b01ae(0x193)]=_0x4e49b4=>{var _0x16270a=a0_0x2b01ae;return{'apitest':!![],'keys':_0x4e49b4[_0x16270a(0x1a3)],'anncicapi':{'timeout':0x1388,'password':_0x16270a(0x18e),'devices':{'DEFAULT':{'secret':_0x16270a(0x195),'checkcode':_0x16270a(0x195)}}},'bodyParser':{'enableTypes':[_0x16270a(0x1a0),_0x16270a(0x1a1),'text',_0x16270a(0x194)],'formLimit':_0x16270a(0x198),'jsonLimit':'20mb','textLimit':'20mb','xmlLimit':_0x16270a(0x198)},'upload':{'tmpdir':_0x4e49b4[_0x16270a(0x19b)]+_0x16270a(0x19a),'cleanTimeout':0x5265c00}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a1_0x35fc(_0x467fd0,_0x10264a){var _0x2c455e=a1_0x2c45();return a1_0x35fc=function(_0x35fcc6,_0x57c00c){_0x35fcc6=_0x35fcc6-0x66;var _0x19d106=_0x2c455e[_0x35fcc6];return _0x19d106;},a1_0x35fc(_0x467fd0,_0x10264a);}var a1_0x42fd62=a1_0x35fc;(function(_0x347253,_0x48c349){var _0x2f28d8=a1_0x35fc,_0x501d2e=_0x347253();while(!![]){try{var _0x52929f=parseInt(_0x2f28d8(0x66))/0x1*(parseInt(_0x2f28d8(0x73))/0x2)+parseInt(_0x2f28d8(0x69))/0x3*(parseInt(_0x2f28d8(0x6b))/0x4)+parseInt(_0x2f28d8(0x6a))/0x5+parseInt(_0x2f28d8(0x72))/0x6+parseInt(_0x2f28d8(0x6e))/0x7*(parseInt(_0x2f28d8(0x6d))/0x8)+parseInt(_0x2f28d8(0x6c))/0x9*(-parseInt(_0x2f28d8(0x71))/0xa)+-parseInt(_0x2f28d8(0x6f))/0xb*(parseInt(_0x2f28d8(0x70))/0xc);if(_0x52929f===_0x48c349)break;else _0x501d2e['push'](_0x501d2e['shift']());}catch(_0x243d77){_0x501d2e['push'](_0x501d2e['shift']());}}}(a1_0x2c45,0xaad7c));function a1_0x2c45(){var _0x1945f9=['2348456JgOVQC','14NYbRUE','14916ZFTfhf','13860HNXWKE','1460920yYKfqU','3695664UhSDPQ','2hQjioC','917578sqTaMC','defineProperty','__esModule','3bNjGMA','2228725FTTPGQ','3473228GaEaxx','72MsEsrP'];a1_0x2c45=function(){return _0x1945f9;};return a1_0x2c45();}Object[a1_0x42fd62(0x67)](exports,a1_0x42fd62(0x68),{'value':!![]}),exports['default']={'apitest':![],'anncicapi':{'timeout':0x1388}};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a2_0x4194ef=a2_0x139d;function a2_0x139d(_0x6dcfa4,_0x523afb){const _0x1095bb=a2_0x1095();return a2_0x139d=function(_0x139dbb,_0x120e06){_0x139dbb=_0x139dbb-0x18b;let _0x34c1d7=_0x1095bb[_0x139dbb];return _0x34c1d7;},a2_0x139d(_0x6dcfa4,_0x523afb);}(function(_0x3ea198,_0x2c15fb){const _0x4e5ceb=a2_0x139d,_0x455d55=_0x3ea198();while(!![]){try{const _0x248bfc=parseInt(_0x4e5ceb(0x1d0))/0x1*(parseInt(_0x4e5ceb(0x1a2))/0x2)+parseInt(_0x4e5ceb(0x193))/0x3+-parseInt(_0x4e5ceb(0x1ef))/0x4*(-parseInt(_0x4e5ceb(0x1fa))/0x5)+parseInt(_0x4e5ceb(0x1ee))/0x6*(parseInt(_0x4e5ceb(0x1dd))/0x7)+-parseInt(_0x4e5ceb(0x1e6))/0x8*(-parseInt(_0x4e5ceb(0x1c5))/0x9)+-parseInt(_0x4e5ceb(0x1b0))/0xa*(-parseInt(_0x4e5ceb(0x1f7))/0xb)+-parseInt(_0x4e5ceb(0x1c4))/0xc;if(_0x248bfc===_0x2c15fb)break;else _0x455d55['push'](_0x455d55['shift']());}catch(_0x15d824){_0x455d55['push'](_0x455d55['shift']());}}}(a2_0x1095,0xb8440));var __decorate=this&&this['__decorate']||function(_0xeadc16,_0x4ed9f1,_0x56659e,_0x31964c){const _0x544476=a2_0x139d;var _0x5b030e=arguments[_0x544476(0x1b7)],_0x2dcde3=_0x5b030e<0x3?_0x4ed9f1:_0x31964c===null?_0x31964c=Object[_0x544476(0x1b6)](_0x4ed9f1,_0x56659e):_0x31964c,_0x2895b3;if(typeof Reflect===_0x544476(0x1c3)&&typeof Reflect['decorate']===_0x544476(0x1f2))_0x2dcde3=Reflect[_0x544476(0x1d3)](_0xeadc16,_0x4ed9f1,_0x56659e,_0x31964c);else{for(var _0x110aac=_0xeadc16[_0x544476(0x1b7)]-0x1;_0x110aac>=0x0;_0x110aac--)if(_0x2895b3=_0xeadc16[_0x110aac])_0x2dcde3=(_0x5b030e<0x3?_0x2895b3(_0x2dcde3):_0x5b030e>0x3?_0x2895b3(_0x4ed9f1,_0x56659e,_0x2dcde3):_0x2895b3(_0x4ed9f1,_0x56659e))||_0x2dcde3;}return _0x5b030e>0x3&&_0x2dcde3&&Object[_0x544476(0x190)](_0x4ed9f1,_0x56659e,_0x2dcde3),_0x2dcde3;},__metadata=this&&this[a2_0x4194ef(0x1ea)]||function(_0x5427ea,_0xafface){const _0x553d46=a2_0x4194ef;if(typeof Reflect===_0x553d46(0x1c3)&&typeof Reflect[_0x553d46(0x1be)]===_0x553d46(0x1f2))return Reflect['metadata'](_0x5427ea,_0xafface);};function a2_0x1095(){const _0x7bf11e=['decorate','./config/config.default','assign','getBaseDir','context','mkdirSync','getAppDir','/runtime','intercept','method','5268291cDodxN','MidwayApplicationManager','keys','args','environment','./exception/ApiError','handlerActionRoute','target','bodyXml','385648CMvhrM','/apps','App','headers','__metadata','anncic-api','isString','input','6JMrnut','44ULBngJ','device','.log','function','tmpdir','onReady','design:type','handler','396JHtJLX','isNull','devices','410815VYJHbN','anncicapi','loggerConfig','@anncic-api/typeorm','midwayLogger','key','Configuration','_matchedRoute','log','defineProperty','staticFile','/runtime/apps-','3882216gjxYVt','isArray','@anncic-api/core','CustomConfiguration','MidwayDecoratorService','request','app','toLowerCase','addObject','./types/action','getAsync','filterConfig','upload','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','checksign','3482MDFRNv','defaultsDeep','ApiError','@anncic-api/validator','hanlderApplications','/apps/','@midwayjs/cross-domain','defineProperties','string','dirs','body','@anncic-api/event','isFunction','decorator','107710FpljOD','-log','@midwayjs/upload','@anncic-api/cache','dir','config','getOwnPropertyDescriptor','length','DEFAULT','proceed','apimit','checkConfigKeys','@midwayjs/static-file','isDirectory','metadata','forEach','@midwayjs/koa','application','clients','object','51501372PzugOt','225jicomi','anncic-apihelper','prototype','REQUEST_OBJ_CTX_KEY','ApiService','@midwayjs/core','Anncic-api\x20static-file\x20:\x20mkdir\x20','isDevelopmentEnvironment','Types','existsSync','Inject','289lOTQuO','getConfiguration','statSync'];a2_0x1095=function(){return _0x7bf11e;};return a2_0x1095();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x4194ef(0x196)]=void 0x0;const core_1=require(a2_0x4194ef(0x1ca)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x4194ef(0x1e2)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x4194ef(0x19c)),fs=require('fs'),koa=require(a2_0x4194ef(0x1c0)),i18n=require('@midwayjs/i18n'),upload=require(a2_0x4194ef(0x1b2)),staticFile=require(a2_0x4194ef(0x1bc)),crossDomain=require(a2_0x4194ef(0x1a8)),ConfigDefault=require(a2_0x4194ef(0x1d4)),ConfigProduction=require('./config/config.production'),anncic=require(a2_0x4194ef(0x195)),anncicCache=require(a2_0x4194ef(0x1b3)),anncicEvent=require(a2_0x4194ef(0x1ad)),anncicTypeorm=require(a2_0x4194ef(0x1fd)),anncicValidator=require(a2_0x4194ef(0x1a5)),anncicHelper=require(a2_0x4194ef(0x1c6));let CustomConfiguration=class CustomConfiguration{async[a2_0x4194ef(0x1f4)](){const _0x1cfb91=a2_0x4194ef;await this[_0x1cfb91(0x19e)](),await this[_0x1cfb91(0x1fc)](),await this[_0x1cfb91(0x1bb)](),await this[_0x1cfb91(0x1e3)](),await this[_0x1cfb91(0x1a6)]();}async['checkConfigKeys'](){}async[a2_0x4194ef(0x1e3)](){const _0x23953b=a2_0x4194ef,_0x31cd14=this['config']['getConfiguration']();this[_0x23953b(0x1af)]['registerMethodHandler'](action_1['ACTION_ROUTE_KEY'],_0x240218=>{const _0x13d7bd=_0x23953b,_0x315bef=_0x240218[_0x13d7bd(0x1be)];return{'before':async _0x275aac=>{const _0x58bf43=_0x13d7bd;var _0x517e9a,_0x436f00;const _0x1f2fc3=(_0x517e9a=_0x275aac===null||_0x275aac===void 0x0?void 0x0:_0x275aac[_0x58bf43(0x1e4)])===null||_0x517e9a===void 0x0?void 0x0:_0x517e9a[core_2['REQUEST_OBJ_CTX_KEY']];if(_0x1f2fc3&&(_0x315bef===null||_0x315bef===void 0x0?void 0x0:_0x315bef['apimit'])){if(!this[_0x58bf43(0x1c9)][_0x58bf43(0x1a1)]((_0x436f00=_0x1f2fc3===null||_0x1f2fc3===void 0x0?void 0x0:_0x1f2fc3[_0x58bf43(0x198)])===null||_0x436f00===void 0x0?void 0x0:_0x436f00[_0x58bf43(0x1e9)]))throw new AnnError(ApiError_1[_0x58bf43(0x1a4)]['HEADERS_SIGNATURE']);}},'around':async _0x1e4af6=>{const _0xb217b4=_0x13d7bd;var _0x10b66c,_0x3e78aa,_0x12c973,_0x5cc52c,_0x2fa2cb;const _0x25be80=(_0x10b66c=_0x1e4af6===null||_0x1e4af6===void 0x0?void 0x0:_0x1e4af6[_0xb217b4(0x1e4)])===null||_0x10b66c===void 0x0?void 0x0:_0x10b66c[core_2[_0xb217b4(0x1c8)]];if(_0x25be80&&(_0x315bef===null||_0x315bef===void 0x0?void 0x0:_0x315bef[_0xb217b4(0x1ba)])){if(((_0x3e78aa=_0x25be80['headers'])===null||_0x3e78aa===void 0x0?void 0x0:_0x3e78aa[_0xb217b4(0x1f0)])&&((_0x2fa2cb=(_0x5cc52c=(_0x12c973=_0x31cd14===null||_0x31cd14===void 0x0?void 0x0:_0x31cd14[_0xb217b4(0x1fb)])===null||_0x12c973===void 0x0?void 0x0:_0x12c973['devices'])===null||_0x5cc52c===void 0x0?void 0x0:_0x5cc52c[_0x25be80[_0xb217b4(0x1e9)][_0xb217b4(0x1f0)]])===null||_0x2fa2cb===void 0x0?void 0x0:_0x2fa2cb['intercept'])){const _0x10c8a6=Array[_0xb217b4(0x194)](_0x31cd14[_0xb217b4(0x1fb)][_0xb217b4(0x1f9)][_0x25be80['headers']['device']]['intercept'])?_0x31cd14[_0xb217b4(0x1fb)]['devices'][_0x25be80[_0xb217b4(0x1e9)]['device']]['intercept']:[_0x31cd14[_0xb217b4(0x1fb)][_0xb217b4(0x1f9)][_0x25be80[_0xb217b4(0x1e9)][_0xb217b4(0x1f0)]][_0xb217b4(0x1db)]];for(const _0x1fdc05 of _0x10c8a6){if(core_1[_0xb217b4(0x1cd)]['isClass'](_0x1fdc05)||typeof _0x1fdc05==_0xb217b4(0x1aa)){const _0x929c0=await _0x25be80['requestContext'][_0xb217b4(0x19d)](_0x1fdc05);typeof(_0x929c0===null||_0x929c0===void 0x0?void 0x0:_0x929c0[_0xb217b4(0x1f6)])=='function'&&await _0x929c0[_0xb217b4(0x1f6)](typeof(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x1dc)])==_0xb217b4(0x1aa)&&(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)])?_0x25be80['method'][_0xb217b4(0x19a)]()+'@'+(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)]):undefined,_0x25be80,_0x315bef);}else core_1[_0xb217b4(0x1cd)][_0xb217b4(0x1ae)](_0x1fdc05)&&await _0x1fdc05(typeof(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x1dc)])=='string'&&(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)])?_0x25be80[_0xb217b4(0x1dc)][_0xb217b4(0x19a)]()+'@'+(_0x25be80===null||_0x25be80===void 0x0?void 0x0:_0x25be80[_0xb217b4(0x18e)]):undefined,_0x25be80,_0x315bef);}}}return await _0x1e4af6[_0xb217b4(0x1b9)](..._0x1e4af6[_0xb217b4(0x1e0)]);},'afterThrow':(_0x2a9f99,_0x58c514)=>{throw _0x58c514;}};});}async[a2_0x4194ef(0x1a6)](){const _0x346032=a2_0x4194ef;this[_0x346032(0x1c1)]['getApplications'](['koa'])[_0x346032(0x1bf)](_0x328ae8=>{const _0x19bdf=_0x346032;(_0x328ae8===null||_0x328ae8===void 0x0?void 0x0:_0x328ae8[_0x19bdf(0x1d7)])&&Object[_0x19bdf(0x1a9)](_0x328ae8[_0x19bdf(0x1d7)],{'ok':{'value':function(_0x14d091,_0x2f2c55,_0x47664b=0x0){return{'code':_0x47664b,'data':_0x14d091,'extra':_0x2f2c55};}},'input':{'value':function(_0x53a19a,_0x5d8243){const _0x5e1bd7=_0x19bdf;var _0x2295db;const _0xc7c8d4=lodash[_0x5e1bd7(0x1a3)]({},this[_0x5e1bd7(0x198)]['body']||this[_0x5e1bd7(0x198)][((_0x2295db=config===null||config===void 0x0?void 0x0:config[_0x5e1bd7(0x1e5)])===null||_0x2295db===void 0x0?void 0x0:_0x2295db[_0x5e1bd7(0x18c)])||_0x5e1bd7(0x1ac)]||{},this[_0x5e1bd7(0x198)]['query']||{});return _0x53a19a?lodash['get'](_0xc7c8d4,_0x53a19a,_0x5d8243):_0xc7c8d4;}},'when':{'value':async function(_0x2fb109,_0x418b83){const _0x3ba990=_0x19bdf,_0x18a30f=this[_0x3ba990(0x1ed)](_0x2fb109,null);if(!lodash[_0x3ba990(0x1f8)](_0x18a30f))return await _0x418b83(_0x18a30f);}},'only':{'value':function(_0x2a4496){const _0x871f64=_0x19bdf,_0x3b0f20={};for(let _0x85d39f=0x0;_0x85d39f<_0x2a4496['length'];_0x85d39f++){lodash[_0x871f64(0x194)](_0x2a4496[_0x85d39f])&&_0x2a4496[_0x85d39f]['length']>0x0&&lodash[_0x871f64(0x1ec)](_0x2a4496[_0x85d39f][0x0])&&(_0x3b0f20[_0x2a4496[_0x85d39f][0x0]]=this[_0x871f64(0x1ed)](_0x2a4496[_0x85d39f][0x0],_0x2a4496[_0x85d39f][_0x871f64(0x1b7)]>0x1?_0x2a4496[_0x85d39f][0x1]:null));}return _0x3b0f20;}}});});}async['loggerConfig'](){const _0x32aa20=a2_0x4194ef;var _0x54adf0,_0x1a91ab;if(fs[_0x32aa20(0x1ce)](this[_0x32aa20(0x199)][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))&&fs['statSync'](this['app'][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))[_0x32aa20(0x1bd)]()){const _0x5b007d=this[_0x32aa20(0x1b5)][_0x32aa20(0x1d1)](),_0x39351b=((_0x54adf0=_0x5b007d===null||_0x5b007d===void 0x0?void 0x0:_0x5b007d[_0x32aa20(0x18b)])===null||_0x54adf0===void 0x0?void 0x0:_0x54adf0[_0x32aa20(0x1c2)])||{};for(const _0x512016 of fs['readdirSync'](this[_0x32aa20(0x199)][_0x32aa20(0x1d6)]()+_0x32aa20(0x1e7))){if(!fs[_0x32aa20(0x1d2)](this[_0x32aa20(0x199)]['getBaseDir']()+_0x32aa20(0x1a7)+_0x512016)[_0x32aa20(0x1bd)]())continue;if(_0x39351b===null||_0x39351b===void 0x0?void 0x0:_0x39351b[_0x512016])continue;_0x39351b[_0x512016]=Object[_0x32aa20(0x1d5)]({},((_0x1a91ab=_0x5b007d===null||_0x5b007d===void 0x0?void 0x0:_0x5b007d[_0x32aa20(0x18b)])===null||_0x1a91ab===void 0x0?void 0x0:_0x1a91ab['default'])||{'maxSize':'1m','dir':this[_0x32aa20(0x199)]['getAppDir']()+_0x32aa20(0x1da)},{'enableJSON':!![],'enableConsole':this[_0x32aa20(0x1e1)][_0x32aa20(0x1cc)](),'fileLogName':_0x512016+_0x32aa20(0x1f1),'dir':this[_0x32aa20(0x199)]['getAppDir']()+_0x32aa20(0x192)+_0x512016+_0x32aa20(0x1b1)});}Object['keys'](_0x39351b)[_0x32aa20(0x1b7)]>0x0&&(!_0x5b007d[_0x32aa20(0x18b)]&&(_0x5b007d['midwayLogger']={'default':{'maxSize':'1m','dir':this[_0x32aa20(0x199)][_0x32aa20(0x1d9)]()+'/runtime'}}),_0x5b007d['midwayLogger']['clients']=_0x39351b),this[_0x32aa20(0x1b5)][_0x32aa20(0x19b)](_0x5b007d);}}async[a2_0x4194ef(0x19e)](){const _0x1a9af1=a2_0x4194ef;var _0x2b8cc1,_0x1735a9,_0x2e5fdd,_0x52faf7,_0x2c72da,_0x29ad3d;const _0x32314d=this['config'][_0x1a9af1(0x1d1)]();((_0x1735a9=(_0x2b8cc1=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x1fb)])===null||_0x2b8cc1===void 0x0?void 0x0:_0x2b8cc1['devices'])===null||_0x1735a9===void 0x0?void 0x0:_0x1735a9[_0x1a9af1(0x1b8)])&&Object[_0x1a9af1(0x1df)](_0x32314d[_0x1a9af1(0x1fb)][_0x1a9af1(0x1f9)])[_0x1a9af1(0x1b7)]>0x1&&delete _0x32314d[_0x1a9af1(0x1fb)][_0x1a9af1(0x1f9)]['DEFAULT'];if((_0x2e5fdd=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x191)])===null||_0x2e5fdd===void 0x0?void 0x0:_0x2e5fdd['dirs'])for(const _0x2c74 in _0x32314d['staticFile']['dirs']){((_0x52faf7=_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74])===null||_0x52faf7===void 0x0?void 0x0:_0x52faf7[_0x1a9af1(0x1b4)])&&typeof((_0x2c72da=_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74])===null||_0x2c72da===void 0x0?void 0x0:_0x2c72da[_0x1a9af1(0x1b4)])=='string'&&!fs[_0x1a9af1(0x1ce)](_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74]['dir'])&&(fs[_0x1a9af1(0x1d8)](_0x32314d[_0x1a9af1(0x191)][_0x1a9af1(0x1ab)][_0x2c74][_0x1a9af1(0x1b4)],{'recursive':!![]}),console[_0x1a9af1(0x18f)](_0x1a9af1(0x1cb)+_0x32314d['staticFile'][_0x1a9af1(0x1ab)][_0x2c74][_0x1a9af1(0x1b4)]));}((_0x29ad3d=_0x32314d===null||_0x32314d===void 0x0?void 0x0:_0x32314d[_0x1a9af1(0x19f)])===null||_0x29ad3d===void 0x0?void 0x0:_0x29ad3d[_0x1a9af1(0x1f3)])&&!fs[_0x1a9af1(0x1ce)](_0x32314d['upload'][_0x1a9af1(0x1f3)])&&(fs[_0x1a9af1(0x1d8)](_0x32314d['upload'][_0x1a9af1(0x1f3)],{'recursive':!![]}),console[_0x1a9af1(0x18f)](_0x1a9af1(0x1a0)+_0x32314d[_0x1a9af1(0x19f)]['tmpdir'])),this['config'][_0x1a9af1(0x19b)](_0x32314d);}};__decorate([(0x0,core_1[a2_0x4194ef(0x1e8)])(),__metadata('design:type',Object)],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x199),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x4194ef(0x1f5),core_2['MidwayConfigService'])],CustomConfiguration[a2_0x4194ef(0x1c7)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),core_2[a2_0x4194ef(0x197)])],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x1af),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a2_0x4194ef(0x1de)])],CustomConfiguration['prototype'],a2_0x4194ef(0x1c1),void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),core_2['MidwayEnvironmentService'])],CustomConfiguration['prototype'],'environment',void 0x0),__decorate([(0x0,core_1[a2_0x4194ef(0x1cf)])(),__metadata(a2_0x4194ef(0x1f5),ApiService_1['ApiService'])],CustomConfiguration[a2_0x4194ef(0x1c7)],a2_0x4194ef(0x1c9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a2_0x4194ef(0x18d)])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x4194ef(0x1eb),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
1
|
+
'use strict';function a2_0x5db7(_0x133170,_0x2da9d3){const _0x55d0e8=a2_0x55d0();return a2_0x5db7=function(_0x5db74c,_0x536730){_0x5db74c=_0x5db74c-0x8f;let _0x29a079=_0x55d0e8[_0x5db74c];return _0x29a079;},a2_0x5db7(_0x133170,_0x2da9d3);}function a2_0x55d0(){const _0x49aaff=['device','filterConfig','proceed','MidwayDecoratorService','MidwayEnvironmentService','@midwayjs/cross-domain','isClass','DEFAULT','mkdirSync','@anncic-api/cache','isArray','@midwayjs/koa','args','string','existsSync','intercept','.log','Types','config','__esModule','/apps','undefined','./types/action','isDevelopmentEnvironment','/apps/','HEADERS_SIGNATURE','MidwayApplicationManager','assign','_matchedRoute','forEach','getOwnPropertyDescriptor','application','addObject','73399dpyqeN','log','55164JpQbTp','@anncic-api/core','-log','@anncic-api/validator','@midwayjs/core','31536dcqQCb','koa','midwayLogger','clients','Anncic-api\x20upload-tmpdir\x20:\x20mkdir\x20','@anncic-api/typeorm','Inject','getAppDir','482312LKbhpM','headers','dir','input','handlerActionRoute','upload','@midwayjs/i18n','hanlderApplications','313659LHpOFg','environment','./config/config.production','/runtime','get','app','context','function','defaultsDeep','isString','getBaseDir','readdirSync','./exception/ApiError','getApplications','Anncic-api\x20static-file\x20:\x20mkdir\x20','checkConfigKeys','method','prototype','body','checksign','21atWKSt','106962hvySIF','onReady','defineProperty','loggerConfig','decorate','MidwayConfigService','key','isDirectory','object','design:type','dirs','tmpdir','keys','handler','defineProperties','63zBLmAu','devices','decorator','anncic-api','toLowerCase','ApiService','/runtime/apps-','length','1097420NVvRVX','statSync','requestContext','ApiError','REQUEST_OBJ_CTX_KEY','registerMethodHandler','anncic-apihelper','metadata','anncicapi','ACTION_ROUTE_KEY','getConfiguration','staticFile','@midwayjs/static-file','request','@midwayjs/upload','isFunction'];a2_0x55d0=function(){return _0x49aaff;};return a2_0x55d0();}const a2_0x1bb875=a2_0x5db7;(function(_0x290ed1,_0x83cc22){const _0x33c337=a2_0x5db7,_0xc27513=_0x290ed1();while(!![]){try{const _0x2c66b6=parseInt(_0x33c337(0x99))/0x1+-parseInt(_0x33c337(0xa0))/0x2+parseInt(_0x33c337(0xc4))/0x3*(parseInt(_0x33c337(0x9b))/0x4)+parseInt(_0x33c337(0xdc))/0x5+-parseInt(_0x33c337(0xc5))/0x6*(parseInt(_0x33c337(0xd4))/0x7)+-parseInt(_0x33c337(0xa8))/0x8+-parseInt(_0x33c337(0xb0))/0x9;if(_0x2c66b6===_0x83cc22)break;else _0xc27513['push'](_0xc27513['shift']());}catch(_0x592010){_0xc27513['push'](_0xc27513['shift']());}}}(a2_0x55d0,0x1cd35));var __decorate=this&&this['__decorate']||function(_0x30d84d,_0x2b05e7,_0x13e343,_0x6975d){const _0x2a37dd=a2_0x5db7;var _0x4b874c=arguments[_0x2a37dd(0xdb)],_0x7414fd=_0x4b874c<0x3?_0x2b05e7:_0x6975d===null?_0x6975d=Object[_0x2a37dd(0x96)](_0x2b05e7,_0x13e343):_0x6975d,_0x58f3d7;if(typeof Reflect===_0x2a37dd(0xcd)&&typeof Reflect['decorate']==='function')_0x7414fd=Reflect[_0x2a37dd(0xc9)](_0x30d84d,_0x2b05e7,_0x13e343,_0x6975d);else{for(var _0x5ef951=_0x30d84d[_0x2a37dd(0xdb)]-0x1;_0x5ef951>=0x0;_0x5ef951--)if(_0x58f3d7=_0x30d84d[_0x5ef951])_0x7414fd=(_0x4b874c<0x3?_0x58f3d7(_0x7414fd):_0x4b874c>0x3?_0x58f3d7(_0x2b05e7,_0x13e343,_0x7414fd):_0x58f3d7(_0x2b05e7,_0x13e343))||_0x7414fd;}return _0x4b874c>0x3&&_0x7414fd&&Object[_0x2a37dd(0xc7)](_0x2b05e7,_0x13e343,_0x7414fd),_0x7414fd;},__metadata=this&&this['__metadata']||function(_0x29f470,_0x2a6d14){const _0x353c8f=a2_0x5db7;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x353c8f(0xb7))return Reflect[_0x353c8f(0xe3)](_0x29f470,_0x2a6d14);};Object[a2_0x1bb875(0xc7)](exports,a2_0x1bb875(0xff),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a2_0x1bb875(0x9f)),core_2=require('@midwayjs/core'),ApiError_1=require(a2_0x1bb875(0xbc)),ApiService_1=require('./service/ApiService'),action_1=require(a2_0x1bb875(0x102)),fs=require('fs'),koa=require(a2_0x1bb875(0xf7)),i18n=require(a2_0x1bb875(0xae)),upload=require(a2_0x1bb875(0xea)),staticFile=require(a2_0x1bb875(0xe8)),crossDomain=require(a2_0x1bb875(0xf1)),ConfigDefault=require('./config/config.default'),ConfigProduction=require(a2_0x1bb875(0xb2)),anncic=require(a2_0x1bb875(0x9c)),anncicCache=require(a2_0x1bb875(0xf5)),anncicEvent=require('@anncic-api/event'),anncicTypeorm=require(a2_0x1bb875(0xa5)),anncicValidator=require(a2_0x1bb875(0x9e)),anncicHelper=require(a2_0x1bb875(0xe2));let CustomConfiguration=class CustomConfiguration{async[a2_0x1bb875(0xc6)](){const _0x29d5b4=a2_0x1bb875;await this[_0x29d5b4(0xed)](),await this[_0x29d5b4(0xc8)](),await this[_0x29d5b4(0xbf)](),await this[_0x29d5b4(0xac)](),await this[_0x29d5b4(0xaf)]();}async['checkConfigKeys'](){}async[a2_0x1bb875(0xac)](){const _0x1de220=a2_0x1bb875,_0x17d58f=this[_0x1de220(0xfe)][_0x1de220(0xe6)]();this[_0x1de220(0xd6)][_0x1de220(0xe1)](action_1[_0x1de220(0xe5)],_0x5e9dae=>{const _0x5765c7=_0x1de220,_0x2d85d4=_0x5e9dae[_0x5765c7(0xe3)];return{'before':async _0x5f271f=>{const _0x4cf585=_0x5765c7;var _0x363f88,_0x57bf66;const _0x2d9ee6=(_0x363f88=_0x5f271f===null||_0x5f271f===void 0x0?void 0x0:_0x5f271f['target'])===null||_0x363f88===void 0x0?void 0x0:_0x363f88[core_2[_0x4cf585(0xe0)]];if(_0x2d9ee6&&(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4['apimit'])){if(!this['ApiService'][_0x4cf585(0xc3)]((_0x57bf66=_0x2d9ee6===null||_0x2d9ee6===void 0x0?void 0x0:_0x2d9ee6['request'])===null||_0x57bf66===void 0x0?void 0x0:_0x57bf66['headers']))throw new AnnError(ApiError_1[_0x4cf585(0xdf)][_0x4cf585(0x91)]);}},'around':async _0x3004ed=>{const _0x36654c=_0x5765c7;var _0x393f00,_0x65d9e5,_0x4326f0,_0x3ed43d,_0x37f3a5;const _0x47049d=(_0x393f00=_0x3004ed===null||_0x3004ed===void 0x0?void 0x0:_0x3004ed['target'])===null||_0x393f00===void 0x0?void 0x0:_0x393f00[core_2[_0x36654c(0xe0)]];if(_0x47049d&&(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4['apimit'])&&((_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4[_0x36654c(0xfb)])||typeof(_0x2d85d4===null||_0x2d85d4===void 0x0?void 0x0:_0x2d85d4[_0x36654c(0xfb)])==_0x36654c(0x101))){if(((_0x65d9e5=_0x47049d[_0x36654c(0xa9)])===null||_0x65d9e5===void 0x0?void 0x0:_0x65d9e5[_0x36654c(0xec)])&&((_0x37f3a5=(_0x3ed43d=(_0x4326f0=_0x17d58f===null||_0x17d58f===void 0x0?void 0x0:_0x17d58f[_0x36654c(0xe4)])===null||_0x4326f0===void 0x0?void 0x0:_0x4326f0[_0x36654c(0xd5)])===null||_0x3ed43d===void 0x0?void 0x0:_0x3ed43d[_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]])===null||_0x37f3a5===void 0x0?void 0x0:_0x37f3a5[_0x36654c(0xfb)])){const _0x5875f2=Array[_0x36654c(0xf6)](_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept'])?_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept']:[_0x17d58f[_0x36654c(0xe4)]['devices'][_0x47049d[_0x36654c(0xa9)][_0x36654c(0xec)]]['intercept']];for(const _0x135626 of _0x5875f2){if(core_1['Types'][_0x36654c(0xf2)](_0x135626)||typeof _0x135626==_0x36654c(0xf9)){const _0x16ee45=await _0x47049d[_0x36654c(0xde)]['getAsync'](_0x135626);typeof(_0x16ee45===null||_0x16ee45===void 0x0?void 0x0:_0x16ee45['handler'])==_0x36654c(0xb7)&&await _0x16ee45[_0x36654c(0xd2)](typeof(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0xc0)])==_0x36654c(0xf9)&&(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute'])?_0x47049d[_0x36654c(0xc0)][_0x36654c(0xd8)]()+'@'+(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute']):undefined,_0x47049d,_0x2d85d4);}else core_1[_0x36654c(0xfd)][_0x36654c(0xeb)](_0x135626)&&await _0x135626(typeof(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0xc0)])=='string'&&(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d['_matchedRoute'])?_0x47049d[_0x36654c(0xc0)][_0x36654c(0xd8)]()+'@'+(_0x47049d===null||_0x47049d===void 0x0?void 0x0:_0x47049d[_0x36654c(0x94)]):undefined,_0x47049d,_0x2d85d4);}}}return await _0x3004ed[_0x36654c(0xee)](..._0x3004ed[_0x36654c(0xf8)]);},'afterThrow':(_0x4fe1be,_0xe34120)=>{throw _0xe34120;}};});}async[a2_0x1bb875(0xaf)](){const _0x527da5=a2_0x1bb875;this[_0x527da5(0x97)][_0x527da5(0xbd)]([_0x527da5(0xa1)])[_0x527da5(0x95)](_0xa39e98=>{const _0x3fa93b=_0x527da5;(_0xa39e98===null||_0xa39e98===void 0x0?void 0x0:_0xa39e98[_0x3fa93b(0xb6)])&&Object[_0x3fa93b(0xd3)](_0xa39e98[_0x3fa93b(0xb6)],{'ok':{'value':function(_0x1a7710,_0x59491b,_0x1ca1c1=0x0){return{'code':_0x1ca1c1,'data':_0x1a7710,'extra':_0x59491b};}},'input':{'value':function(_0xeb26ff,_0x39b940){const _0x4d7c61=_0x3fa93b;var _0x4aecf2;const _0x135d25=lodash[_0x4d7c61(0xb8)]({},this['request'][_0x4d7c61(0xc2)]||this[_0x4d7c61(0xe9)][((_0x4aecf2=config===null||config===void 0x0?void 0x0:config['bodyXml'])===null||_0x4aecf2===void 0x0?void 0x0:_0x4aecf2[_0x4d7c61(0xcb)])||_0x4d7c61(0xc2)]||{},this[_0x4d7c61(0xe9)]['query']||{});return _0xeb26ff?lodash[_0x4d7c61(0xb4)](_0x135d25,_0xeb26ff,_0x39b940):_0x135d25;}},'when':{'value':async function(_0xc9d1ca,_0x1eb0e8){const _0x3d3400=_0x3fa93b,_0x34d40a=this[_0x3d3400(0xab)](_0xc9d1ca,null);if(!lodash['isNull'](_0x34d40a))return await _0x1eb0e8(_0x34d40a);}},'only':{'value':function(_0x345553){const _0x6cb16b=_0x3fa93b,_0x9b7c0b={};for(let _0x2c11f5=0x0;_0x2c11f5<_0x345553[_0x6cb16b(0xdb)];_0x2c11f5++){lodash[_0x6cb16b(0xf6)](_0x345553[_0x2c11f5])&&_0x345553[_0x2c11f5][_0x6cb16b(0xdb)]>0x0&&lodash[_0x6cb16b(0xb9)](_0x345553[_0x2c11f5][0x0])&&(_0x9b7c0b[_0x345553[_0x2c11f5][0x0]]=this[_0x6cb16b(0xab)](_0x345553[_0x2c11f5][0x0],_0x345553[_0x2c11f5][_0x6cb16b(0xdb)]>0x1?_0x345553[_0x2c11f5][0x1]:null));}return _0x9b7c0b;}}});});}async[a2_0x1bb875(0xc8)](){const _0x239cb4=a2_0x1bb875;var _0x476dc8,_0x489c20;if(fs[_0x239cb4(0xfa)](this[_0x239cb4(0xb5)]['getBaseDir']()+_0x239cb4(0x100))&&fs[_0x239cb4(0xdd)](this[_0x239cb4(0xb5)][_0x239cb4(0xba)]()+_0x239cb4(0x100))[_0x239cb4(0xcc)]()){const _0xd5737e=this[_0x239cb4(0xfe)]['getConfiguration'](),_0x565e75=((_0x476dc8=_0xd5737e===null||_0xd5737e===void 0x0?void 0x0:_0xd5737e[_0x239cb4(0xa2)])===null||_0x476dc8===void 0x0?void 0x0:_0x476dc8[_0x239cb4(0xa3)])||{};for(const _0x5104eb of fs[_0x239cb4(0xbb)](this['app'][_0x239cb4(0xba)]()+_0x239cb4(0x100))){if(!fs['statSync'](this['app'][_0x239cb4(0xba)]()+_0x239cb4(0x90)+_0x5104eb)[_0x239cb4(0xcc)]())continue;if(_0x565e75===null||_0x565e75===void 0x0?void 0x0:_0x565e75[_0x5104eb])continue;_0x565e75[_0x5104eb]=Object[_0x239cb4(0x93)]({},((_0x489c20=_0xd5737e===null||_0xd5737e===void 0x0?void 0x0:_0xd5737e[_0x239cb4(0xa2)])===null||_0x489c20===void 0x0?void 0x0:_0x489c20['default'])||{'maxSize':'1m','dir':this[_0x239cb4(0xb5)][_0x239cb4(0xa7)]()+_0x239cb4(0xb3)},{'enableJSON':!![],'enableConsole':this[_0x239cb4(0xb1)][_0x239cb4(0x8f)](),'fileLogName':_0x5104eb+_0x239cb4(0xfc),'dir':this['app']['getAppDir']()+_0x239cb4(0xda)+_0x5104eb+_0x239cb4(0x9d)});}Object[_0x239cb4(0xd1)](_0x565e75)[_0x239cb4(0xdb)]>0x0&&(!_0xd5737e[_0x239cb4(0xa2)]&&(_0xd5737e[_0x239cb4(0xa2)]={'default':{'maxSize':'1m','dir':this[_0x239cb4(0xb5)][_0x239cb4(0xa7)]()+_0x239cb4(0xb3)}}),_0xd5737e[_0x239cb4(0xa2)][_0x239cb4(0xa3)]=_0x565e75),this[_0x239cb4(0xfe)][_0x239cb4(0x98)](_0xd5737e);}}async[a2_0x1bb875(0xed)](){const _0x3faa0e=a2_0x1bb875;var _0x3b9263,_0x323241,_0x1f3a67,_0x258e00,_0x3bce41,_0x5d72f2;const _0x502bc0=this[_0x3faa0e(0xfe)][_0x3faa0e(0xe6)]();((_0x323241=(_0x3b9263=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0['anncicapi'])===null||_0x3b9263===void 0x0?void 0x0:_0x3b9263[_0x3faa0e(0xd5)])===null||_0x323241===void 0x0?void 0x0:_0x323241[_0x3faa0e(0xf3)])&&Object[_0x3faa0e(0xd1)](_0x502bc0[_0x3faa0e(0xe4)][_0x3faa0e(0xd5)])[_0x3faa0e(0xdb)]>0x1&&delete _0x502bc0[_0x3faa0e(0xe4)]['devices'][_0x3faa0e(0xf3)];if((_0x1f3a67=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0[_0x3faa0e(0xe7)])===null||_0x1f3a67===void 0x0?void 0x0:_0x1f3a67[_0x3faa0e(0xcf)])for(const _0x5dd79b in _0x502bc0['staticFile'][_0x3faa0e(0xcf)]){((_0x258e00=_0x502bc0['staticFile'][_0x3faa0e(0xcf)][_0x5dd79b])===null||_0x258e00===void 0x0?void 0x0:_0x258e00[_0x3faa0e(0xaa)])&&typeof((_0x3bce41=_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b])===null||_0x3bce41===void 0x0?void 0x0:_0x3bce41[_0x3faa0e(0xaa)])==_0x3faa0e(0xf9)&&!fs[_0x3faa0e(0xfa)](_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir'])&&(fs[_0x3faa0e(0xf4)](_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir'],{'recursive':!![]}),console['log'](_0x3faa0e(0xbe)+_0x502bc0[_0x3faa0e(0xe7)][_0x3faa0e(0xcf)][_0x5dd79b]['dir']));}((_0x5d72f2=_0x502bc0===null||_0x502bc0===void 0x0?void 0x0:_0x502bc0[_0x3faa0e(0xad)])===null||_0x5d72f2===void 0x0?void 0x0:_0x5d72f2[_0x3faa0e(0xd0)])&&!fs[_0x3faa0e(0xfa)](_0x502bc0[_0x3faa0e(0xad)][_0x3faa0e(0xd0)])&&(fs[_0x3faa0e(0xf4)](_0x502bc0[_0x3faa0e(0xad)]['tmpdir'],{'recursive':!![]}),console[_0x3faa0e(0x9a)](_0x3faa0e(0xa4)+_0x502bc0[_0x3faa0e(0xad)][_0x3faa0e(0xd0)])),this[_0x3faa0e(0xfe)][_0x3faa0e(0x98)](_0x502bc0);}};__decorate([(0x0,core_1['App'])(),__metadata(a2_0x1bb875(0xce),Object)],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xb5),void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0xca)])],CustomConfiguration[a2_0x1bb875(0xc1)],'config',void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0xef)])],CustomConfiguration[a2_0x1bb875(0xc1)],'decorator',void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a2_0x1bb875(0xce),core_2[a2_0x1bb875(0x92)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata('design:type',core_2[a2_0x1bb875(0xf0)])],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xb1),void 0x0),__decorate([(0x0,core_1[a2_0x1bb875(0xa6)])(),__metadata(a2_0x1bb875(0xce),ApiService_1['ApiService'])],CustomConfiguration[a2_0x1bb875(0xc1)],a2_0x1bb875(0xd9),void 0x0),CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'imports':[koa,i18n,upload,staticFile,crossDomain,anncic,anncicCache,anncicEvent,anncicTypeorm,anncicValidator,anncicHelper],'namespace':a2_0x1bb875(0xd7),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault,'production':ConfigProduction}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x46210a=a3_0x2b3b;(function(_0x155bd4,_0x370f78){const _0xb07bad=a3_0x2b3b,_0x2f99e2=_0x155bd4();while(!![]){try{const _0x16bc22=-parseInt(_0xb07bad(0x128))/0x1+-parseInt(_0xb07bad(0x11d))/0x2*(-parseInt(_0xb07bad(0x117))/0x3)+-parseInt(_0xb07bad(0x10c))/0x4+-parseInt(_0xb07bad(0x114))/0x5*(-parseInt(_0xb07bad(0x11a))/0x6)+parseInt(_0xb07bad(0x108))/0x7*(parseInt(_0xb07bad(0x133))/0x8)+parseInt(_0xb07bad(0x131))/0x9+-parseInt(_0xb07bad(0x105))/0xa;if(_0x16bc22===_0x370f78)break;else _0x2f99e2['push'](_0x2f99e2['shift']());}catch(_0x59d27e){_0x2f99e2['push'](_0x2f99e2['shift']());}}}(a3_0x1377,0x9f136));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x46210a(0x121)]=exports[a3_0x46210a(0x107)]=void 0x0;const fs=require('fs'),core_1=require('@midwayjs/core'),action_1=require(a3_0x46210a(0x124));function a3_0x2b3b(_0x54b54c,_0x2e545f){const _0x137779=a3_0x1377();return a3_0x2b3b=function(_0x2b3be8,_0x4ef5a0){_0x2b3be8=_0x2b3be8-0xff;let _0x11e46b=_0x137779[_0x2b3be8];return _0x11e46b;},a3_0x2b3b(_0x54b54c,_0x2e545f);}function Action(_0xfc0359,_0x25f918,_0x381b33={'middleware':[],'sensitive':!![]}){return _0x1cdb9c=>{const _0x3cd0c3=a3_0x2b3b;var _0x95c879;_0x381b33[_0x3cd0c3(0x12e)]=_0x25f918;const _0x432b4c=parseRoute(_0xfc0359);if(_0x432b4c[_0x3cd0c3(0x130)]){_0x381b33[_0x3cd0c3(0x132)]=_0x381b33[_0x3cd0c3(0x132)]?'/'+_0x432b4c[_0x3cd0c3(0x130)]+'/'+_0x381b33['prefix']:'/'+_0x432b4c['route'];_0x432b4c[_0x3cd0c3(0x132)]&&(_0x381b33[_0x3cd0c3(0x132)]='/'+_0x432b4c[_0x3cd0c3(0x132)]+'/'+_0x381b33[_0x3cd0c3(0x132)]);if(fs[_0x3cd0c3(0x11b)](_0x432b4c[_0x3cd0c3(0x109)]+_0x3cd0c3(0x119)+_0x432b4c['module']+_0x3cd0c3(0x126)+(lodash[_0x3cd0c3(0x118)](_0x432b4c[_0x3cd0c3(0x113)],'ts')?'ts':'js'))){const _0x173f60=include(_0x432b4c[_0x3cd0c3(0x109)]+_0x3cd0c3(0x119)+_0x432b4c['module']+_0x3cd0c3(0x126)+(lodash[_0x3cd0c3(0x118)](_0x432b4c[_0x3cd0c3(0x113)],'ts')?'ts':'js'));if(_0x173f60[_0x3cd0c3(0x134)]&&lodash['isArray'](_0x173f60[_0x3cd0c3(0x134)])&&_0x173f60[_0x3cd0c3(0x134)]['length']>0x0)for(let _0x5e481e in _0x173f60[_0x3cd0c3(0x134)]){if(((_0x95c879=_0x173f60===null||_0x173f60===void 0x0?void 0x0:_0x173f60['middlewareIgnore'])===null||_0x95c879===void 0x0?void 0x0:_0x95c879['length'])>0x0&&_0x173f60[_0x3cd0c3(0x127)][_0x3cd0c3(0x12d)](_0x173f60['middleware'][_0x5e481e])!=-0x1)continue;_0x381b33[_0x3cd0c3(0x134)][_0x3cd0c3(0x12a)](_0x173f60['middleware'][_0x5e481e]);}const _0xaf200c=(0x0,core_1[_0x3cd0c3(0x122)])(action_1['APPSCONFIG_KEY'],action_1[_0x3cd0c3(0x12c)])||{};_0xaf200c[''+_0x432b4c[_0x3cd0c3(0x130)]]=_0x173f60,(0x0,core_1[_0x3cd0c3(0x11f)])(action_1[_0x3cd0c3(0x104)],_0xaf200c,action_1[_0x3cd0c3(0x12c)]);}_0x381b33['prefix']=_0x381b33[_0x3cd0c3(0x132)][_0x3cd0c3(0x10b)]()[_0x3cd0c3(0xff)](/\/{2,}/g,'/'),(0x0,core_1[_0x3cd0c3(0x115)])(action_1[_0x3cd0c3(0x112)],_0x1cdb9c),(0x0,core_1[_0x3cd0c3(0x12b)])(_0x381b33[_0x3cd0c3(0x132)],_0x381b33)(_0x1cdb9c),(0x0,core_1[_0x3cd0c3(0x11f)])(action_1['ACTION_KEY'],{'prefix':_0x381b33['prefix'],'pprefix':_0x432b4c[_0x3cd0c3(0x132)],'module':_0x432b4c[_0x3cd0c3(0x130)],'filepath':_0x432b4c[_0x3cd0c3(0x113)],'routerOptions':_0x381b33},_0x1cdb9c);}else _0x381b33['prefix']=_0x381b33[_0x3cd0c3(0x132)]?'/'+_0x381b33[_0x3cd0c3(0x132)]:'/'+_0x432b4c[_0x3cd0c3(0x102)],_0x432b4c['prefix']&&(_0x381b33['prefix']='/'+_0x432b4c[_0x3cd0c3(0x132)]+'/'+_0x381b33['prefix']),_0x381b33[_0x3cd0c3(0x132)]=_0x381b33[_0x3cd0c3(0x132)][_0x3cd0c3(0x10b)]()[_0x3cd0c3(0xff)](/\/{2,}/g,'/'),(0x0,core_1['saveModule'])(action_1[_0x3cd0c3(0x112)],_0x1cdb9c),(0x0,core_1[_0x3cd0c3(0x12b)])(_0x381b33[_0x3cd0c3(0x132)],_0x381b33)(_0x1cdb9c),(0x0,core_1['saveClassMetadata'])(action_1['ACTION_KEY'],{'prefix':_0x381b33['prefix'],'module':_0x432b4c[_0x3cd0c3(0x130)],'pprefix':_0x432b4c[_0x3cd0c3(0x132)],'filepath':_0x432b4c[_0x3cd0c3(0x113)],'routerOptions':_0x381b33},_0x1cdb9c);};}exports['Action']=Action;function parseRoute(_0x3fd266){const _0x1de3b4=a3_0x46210a;_0x3fd266=_0x3fd266[_0x1de3b4(0xff)](/(\\|\/)/g,'/');const _0x93190c=process[_0x1de3b4(0x103)]()[_0x1de3b4(0xff)](/(\\|\/)/g,'/'),_0x283ec6=_0x3fd266[_0x1de3b4(0x111)](0x0,_0x93190c[_0x1de3b4(0x10d)]+_0x3fd266['substring'](_0x93190c[_0x1de3b4(0x10d)]+0x1)[_0x1de3b4(0x12d)]('/')+0x1),_0x509cbb=_0x3fd266['substring'](_0x283ec6[_0x1de3b4(0x10d)]+0x1)[_0x1de3b4(0xff)](/(\\|\/)/g,'/'),_0x2f3156={'route':'','prefix':![],'module':![],'rootpath':_0x283ec6,'filepath':_0x509cbb};if(_0x509cbb[_0x1de3b4(0x101)](_0x1de3b4(0x129))||_0x509cbb[_0x1de3b4(0x101)]('basic/controller/')){const _0xbf4450=_0x509cbb[_0x1de3b4(0x111)]((_0x509cbb[_0x1de3b4(0x101)]('app/controller/')?'app/controller/':_0x1de3b4(0x100))[_0x1de3b4(0x10d)])['split']('/')[_0x1de3b4(0x120)](_0xab737f=>_0xab737f&&_0xab737f['trim']());return _0xbf4450[_0x1de3b4(0x10d)]>0x1&&(_0x2f3156['prefix']=_0xbf4450[0x0][_0x1de3b4(0x10b)](),_0xbf4450[_0x1de3b4(0x12f)](0x0,0x1)),_0x2f3156[_0x1de3b4(0x102)]=('/'+_0xbf4450['join']('/'))[_0x1de3b4(0xff)](/(\.ts|\.js)$/,'')[_0x1de3b4(0xff)](/\/{2,}/g,'/')[_0x1de3b4(0x11c)](/[\/|A-Z]*[^A-Z]+/g)[_0x1de3b4(0x106)]('-')[_0x1de3b4(0x10b)]()[_0x1de3b4(0xff)](/\/\-/g,'/'),_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x118)](_0x1de3b4(0x10f))&&(_0x2f3156[_0x1de3b4(0x102)]=_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x111)](0x0,_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x10d)]-0x7)),_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x118)]('-controller')&&(_0x2f3156['route']=_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x111)](0x0,_0x2f3156['route'][_0x1de3b4(0x10d)]-0xb)),_0x2f3156;}else{if(_0x509cbb[_0x1de3b4(0x101)](_0x1de3b4(0x116))){const _0x586e56=_0x509cbb[_0x1de3b4(0x111)](0x0,_0x509cbb['indexOf']('/apps/')+0x5),_0x35f572=_0x509cbb[_0x1de3b4(0x111)](_0x586e56[_0x1de3b4(0x10d)]+0x1)['replace'](/(\\|\/)/g,'/')[_0x1de3b4(0x110)]('/')[0x0];if(_0x509cbb[_0x1de3b4(0x101)]('apps/'+_0x35f572+_0x1de3b4(0x125))){const _0x47a0db=_0x509cbb[_0x1de3b4(0x111)]((_0x586e56+'/'+_0x35f572+_0x1de3b4(0x125))[_0x1de3b4(0x10d)])[_0x1de3b4(0x110)]('/')[_0x1de3b4(0x120)](_0x4de55c=>_0x4de55c&&_0x4de55c[_0x1de3b4(0x10a)]());return _0x47a0db[_0x1de3b4(0x10d)]>0x1&&(_0x2f3156['prefix']=_0x47a0db[0x0][_0x1de3b4(0x10b)](),_0x47a0db[_0x1de3b4(0x12f)](0x0,0x1)),_0x2f3156[_0x1de3b4(0x130)]=_0x35f572,_0x2f3156[_0x1de3b4(0x102)]=('/'+_0x35f572+'/'+_0x47a0db[_0x1de3b4(0x106)]('/'))[_0x1de3b4(0xff)](/(\.ts|\.js)$/,'')['replace'](/\/{2,}/,'/')[_0x1de3b4(0x11c)](/[\/|A-Z]*[^A-Z]+/g)[_0x1de3b4(0x106)]('-')[_0x1de3b4(0x10b)]()['replace'](/\/\-/g,'/'),_0x2f3156['route'][_0x1de3b4(0x118)]('-action')&&(_0x2f3156['route']=_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x111)](0x0,_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x10d)]-0x7)),_0x2f3156[_0x1de3b4(0x102)]['endsWith']('-controller')&&(_0x2f3156[_0x1de3b4(0x102)]=_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x111)](0x0,_0x2f3156[_0x1de3b4(0x102)][_0x1de3b4(0x10d)]-0xb)),_0x2f3156;}throw new Error(_0x509cbb+_0x1de3b4(0x123)+_0x35f572+_0x1de3b4(0x10e));}}throw new Error(_0x509cbb+_0x1de3b4(0x11e));}function a3_0x1377(){const _0x454309=['split','substring','ACTION_KEY','filepath','985445pGivvR','saveModule','apps/','156ohkiTt','endsWith','/apps/','18pgqxae','existsSync','match','7948EtjJWv','\x20文件请放在app/controller/文件下','saveClassMetadata','filter','parseRoute','getClassMetadata','\x20文件请放在apps/','../types/action','/controller/','/config.','middlewareIgnore','267427iLmMeO','app/controller/','push','Controller','AppsConfigTmp','indexOf','tagName','splice','module','6954705FcHIdK','prefix','8hARCqe','middleware','replace','basic/controller/','startsWith','route','cwd','APPSCONFIG_KEY','14598560vEpuxU','join','Action','8832271orGhgu','rootpath','trim','toLowerCase','1814224dBCtvg','length','/controller/文件下','-action'];a3_0x1377=function(){return _0x454309;};return a3_0x1377();}exports[a3_0x46210a(0x121)]=parseRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a4_0x18bbe7=a4_0x472f;(function(_0x573413,_0x55a432){const _0x624c01=a4_0x472f,_0x19c700=_0x573413();while(!![]){try{const _0x321572=parseInt(_0x624c01(0x1bb))/0x1+parseInt(_0x624c01(0x1b3))/0x2*(-parseInt(_0x624c01(0x1ae))/0x3)+parseInt(_0x624c01(0x1a6))/0x4+parseInt(_0x624c01(0x1a4))/0x5+parseInt(_0x624c01(0x1a0))/0x6*(-parseInt(_0x624c01(0x1a8))/0x7)+-parseInt(_0x624c01(0x1b2))/0x8+parseInt(_0x624c01(0x1b8))/0x9*(parseInt(_0x624c01(0x1c1))/0xa);if(_0x321572===_0x55a432)break;else _0x19c700['push'](_0x19c700['shift']());}catch(_0x23bbf6){_0x19c700['push'](_0x19c700['shift']());}}}(a4_0x2a10,0x7a0a6));Object[a4_0x18bbe7(0x1b0)](exports,a4_0x18bbe7(0x1bc),{'value':!![]}),exports[a4_0x18bbe7(0x1af)]=void 0x0;const validator_1=require(a4_0x18bbe7(0x1bf)),core_1=require(a4_0x18bbe7(0x1a5)),action_1=require(a4_0x18bbe7(0x1aa));function Api(_0x502baa,_0x4d35e6='get',_0x49bf1f='/',_0x263303={'apimit':!![],'intercept':!![],'validate':{},'middleware':[],'middlewareIgnore':[]}){return(_0x2acc12,_0x421e1c,_0xafc2fe)=>{const _0x372590=a4_0x472f;var _0x2f63e1,_0x4a5692,_0x2dc82e;!_0x263303['middleware']&&(_0x263303['middleware']=[]);!((_0x2f63e1=_0x263303===null||_0x263303===void 0x0?void 0x0:_0x263303[_0x372590(0x1be)])===null||_0x2f63e1===void 0x0?void 0x0:_0x2f63e1[_0x372590(0x1a7)])&&(_0x263303[_0x372590(0x1be)]={'validationOptions':{'allowUnknown':!![],'stripUnknown':!![],'dateFormat':_0x372590(0x1b1)}});if(((_0x4a5692=_0x263303===null||_0x263303===void 0x0?void 0x0:_0x263303[_0x372590(0x1ba)])===null||_0x4a5692===void 0x0?void 0x0:_0x4a5692[_0x372590(0x1b9)])>0x0&&((_0x2dc82e=_0x263303===null||_0x263303===void 0x0?void 0x0:_0x263303[_0x372590(0x1b4)])===null||_0x2dc82e===void 0x0?void 0x0:_0x2dc82e[_0x372590(0x1b9)])>0x0)for(let _0x177856 in _0x263303[_0x372590(0x1ba)]){_0x263303['middlewareIgnore'][_0x372590(0x1bd)](_0x263303[_0x372590(0x1ba)][_0x177856])!==-0x1&&(_0x263303[_0x372590(0x1ba)][_0x177856]=null);}_0x263303[_0x372590(0x1b5)]=_0x502baa,(0x0,validator_1[_0x372590(0x19f)])(_0x263303[_0x372590(0x1be)])(_0x2acc12,_0x421e1c,_0xafc2fe),(0x0,core_1[_0x372590(0x1c2)])(Object[_0x372590(0x1ab)](_0x263303,{'path':_0x49bf1f,'requestMethod':(_0x4d35e6==_0x372590(0x1a9)?'delete':_0x4d35e6)[_0x372590(0x1c0)]()}))(_0x2acc12,_0x421e1c,_0xafc2fe),(0x0,core_1[_0x372590(0x1ac)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x49bf1f,'method':_0x421e1c,'apimit':_0x263303[_0x372590(0x1b6)],'intercept':_0x263303[_0x372590(0x1a1)],'routerName':_0x263303[_0x372590(0x1b5)],'description':_0x263303['description'],'middleware':(_0x263303[_0x372590(0x1ba)]||[])[_0x372590(0x1a2)](_0x2c33fb=>!!_0x2c33fb),'requestMethod':(_0x4d35e6==_0x372590(0x1a9)?_0x372590(0x1a3):_0x4d35e6)[_0x372590(0x1c0)]()},_0x2acc12),(0x0,core_1[_0x372590(0x1b7)])(action_1['ACTION_ROUTE_KEY'],{'path':_0x49bf1f,'method':_0x421e1c,'apimit':_0x263303[_0x372590(0x1b6)],'intercept':_0x263303[_0x372590(0x1a1)],'routerName':_0x263303[_0x372590(0x1b5)],'description':_0x263303[_0x372590(0x1ad)],'middleware':(_0x263303['middleware']||[])['filter'](_0x3ad9b7=>!!_0x3ad9b7),'requestMethod':(_0x4d35e6==_0x372590(0x1a9)?_0x372590(0x1a3):_0x4d35e6)['toLowerCase']()})(_0x2acc12,_0x421e1c,_0xafc2fe);};}function a4_0x2a10(){const _0x5de500=['10GvKMNv','middlewareIgnore','routerName','apimit','createCustomMethodDecorator','2466549zmvhZB','length','middleware','233475dAbzWQ','__esModule','indexOf','validate','@anncic-api/validator','toLowerCase','10xFVwtY','RequestMapping','Validator','6rqghiu','intercept','filter','delete','1588705erTQGa','@midwayjs/core','3309444HDhsif','validationOptions','1873599UsTzhG','del','../types/action','assign','attachClassMetadata','description','316638WdzGxV','Api','defineProperty','string','2858984MVOqFz'];a4_0x2a10=function(){return _0x5de500;};return a4_0x2a10();}function a4_0x472f(_0x396edd,_0x47f7a8){const _0x2a1012=a4_0x2a10();return a4_0x472f=function(_0x472f94,_0x36f437){_0x472f94=_0x472f94-0x19f;let _0x1bd6d8=_0x2a1012[_0x472f94];return _0x1bd6d8;},a4_0x472f(_0x396edd,_0x47f7a8);}exports[a4_0x18bbe7(0x1af)]=Api;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a5_0x4319fa=a5_0x22b1;(function(_0x49646d,_0x58bc5a){const _0x335a0e=a5_0x22b1,_0x2e0a36=_0x49646d();while(!![]){try{const _0x5ec0a0=-parseInt(_0x335a0e(0x1b3))/0x1*(-parseInt(_0x335a0e(0x19b))/0x2)+parseInt(_0x335a0e(0x198))/0x3*(parseInt(_0x335a0e(0x1ac))/0x4)+-parseInt(_0x335a0e(0x19f))/0x5*(-parseInt(_0x335a0e(0x1a4))/0x6)+parseInt(_0x335a0e(0x1b0))/0x7*(parseInt(_0x335a0e(0x199))/0x8)+parseInt(_0x335a0e(0x1a9))/0x9*(parseInt(_0x335a0e(0x1b1))/0xa)+-parseInt(_0x335a0e(0x1b2))/0xb*(parseInt(_0x335a0e(0x1a1))/0xc)+-parseInt(_0x335a0e(0x19a))/0xd*(parseInt(_0x335a0e(0x1a3))/0xe);if(_0x5ec0a0===_0x58bc5a)break;else _0x2e0a36['push'](_0x2e0a36['shift']());}catch(_0x24426a){_0x2e0a36['push'](_0x2e0a36['shift']());}}}(a5_0x4fcc,0x51601));function a5_0x22b1(_0x1b7403,_0x5da228){const _0x4fccf1=a5_0x4fcc();return a5_0x22b1=function(_0x22b16d,_0x43d47b){_0x22b16d=_0x22b16d-0x195;let _0x279e95=_0x4fccf1[_0x22b16d];return _0x279e95;},a5_0x22b1(_0x1b7403,_0x5da228);}function a5_0x4fcc(){const _0x819e24=['app','5558bcPzPS','6uszDjX','ApitestService','value','RequestMapping','REQUEST_OBJ_CTX_KEY','657963VvLWEj','getApplicationContext','apitest','956IlyaAD','/apitest','Apitest','filepath','8687yNtCJh','30kGgEGy','11KYwHCT','6eMcXPU','@midwayjs/core','get','defineProperty','5961qTqjuI','2600FwBmmx','50258ovnkMZ','68212FwhIjV','getAsync','isDevelopmentEnvironment','apidoc','3158355VbOYmW','../service/ApitestService','788772nlVQRg'];a5_0x4fcc=function(){return _0x819e24;};return a5_0x4fcc();}Object[a5_0x4319fa(0x197)](exports,'__esModule',{'value':!![]}),exports[a5_0x4319fa(0x1ae)]=void 0x0;const core_1=require(a5_0x4319fa(0x195)),ApitestService_1=require(a5_0x4319fa(0x1a0));function Apitest(_0x1ae196=a5_0x4319fa(0x1ad),_0x4c178f){return(_0x40640e,_0x4127cc,_0x271413)=>{const _0x2e9b5f=a5_0x22b1;return(0x0,core_1[_0x2e9b5f(0x1a7)])({'path':_0x1ae196,'requestMethod':_0x2e9b5f(0x196)})(_0x40640e,_0x4127cc,_0x271413),_0x271413[_0x2e9b5f(0x1a6)]=async function(..._0x1c4ac5){const _0x220926=_0x2e9b5f;var _0x1ec49b;const _0x1c77ef=(_0x1ec49b=this[core_1[_0x220926(0x1a8)]])===null||_0x1ec49b===void 0x0?void 0x0:_0x1ec49b[_0x220926(0x1a2)];if(_0x1c77ef&&_0x1c77ef['getConfig'](_0x220926(0x1ab))){const _0x5c89da=await _0x1c77ef[_0x220926(0x1aa)]()[_0x220926(0x19c)](ApitestService_1[_0x220926(0x1a5)]),_0x108b6c=await _0x1c77ef[_0x220926(0x1aa)]()[_0x220926(0x19c)](core_1['MidwayEnvironmentService']);return _0x108b6c[_0x220926(0x19d)]()&&(_0x4c178f[_0x220926(0x1af)]=!![]),await _0x5c89da[_0x220926(0x19e)](_0x4c178f);}return'';},_0x271413;};}exports['Apitest']=Apitest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a6_0x4eb827=a6_0x5047;function a6_0x4ba3(){var _0x5f0a25=['2439675VNKAzS','__esModule','function','验证失败,请重新登录','123006oxdGHv','ApiError','__decorate','signature验证失败','请求头信息不完整','TIMEOUT','HEADERS_DEVICE','getOwnPropertyDescriptor','254778EzoXgA','请使用正确的设备','TIMEOUT_LOGINTIME','HEADERS_SIGNATURE','13246SHTFrm','4208631aPFZPg','design:type','1843104PfHpTH','length','请求超时,请重试','949850ZWgnuW','HEADERS_CHECKCODE','object','110NfuwBE','metadata','19NKOXzN','defineProperty','HEADERS_LACK','decorate','16LzWMmk'];a6_0x4ba3=function(){return _0x5f0a25;};return a6_0x4ba3();}(function(_0x3e9433,_0xee6f38){var _0x24dcd5=a6_0x5047,_0x2bb143=_0x3e9433();while(!![]){try{var _0x1d76cf=-parseInt(_0x24dcd5(0x155))/0x1*(parseInt(_0x24dcd5(0x14a))/0x2)+parseInt(_0x24dcd5(0x146))/0x3*(parseInt(_0x24dcd5(0x159))/0x4)+parseInt(_0x24dcd5(0x153))/0x5*(-parseInt(_0x24dcd5(0x15e))/0x6)+parseInt(_0x24dcd5(0x14b))/0x7+-parseInt(_0x24dcd5(0x14d))/0x8+parseInt(_0x24dcd5(0x15a))/0x9+-parseInt(_0x24dcd5(0x150))/0xa;if(_0x1d76cf===_0xee6f38)break;else _0x2bb143['push'](_0x2bb143['shift']());}catch(_0x2ca8e8){_0x2bb143['push'](_0x2bb143['shift']());}}}(a6_0x4ba3,0x4ba14));var __decorate=this&&this[a6_0x4eb827(0x160)]||function(_0x1413c8,_0x326cf6,_0x28cc96,_0x280cdf){var _0x276b95=a6_0x4eb827,_0x16897c=arguments['length'],_0x562199=_0x16897c<0x3?_0x326cf6:_0x280cdf===null?_0x280cdf=Object[_0x276b95(0x145)](_0x326cf6,_0x28cc96):_0x280cdf,_0x4fdfc2;if(typeof Reflect===_0x276b95(0x152)&&typeof Reflect[_0x276b95(0x158)]===_0x276b95(0x15c))_0x562199=Reflect['decorate'](_0x1413c8,_0x326cf6,_0x28cc96,_0x280cdf);else{for(var _0x113083=_0x1413c8[_0x276b95(0x14e)]-0x1;_0x113083>=0x0;_0x113083--)if(_0x4fdfc2=_0x1413c8[_0x113083])_0x562199=(_0x16897c<0x3?_0x4fdfc2(_0x562199):_0x16897c>0x3?_0x4fdfc2(_0x326cf6,_0x28cc96,_0x562199):_0x4fdfc2(_0x326cf6,_0x28cc96))||_0x562199;}return _0x16897c>0x3&&_0x562199&&Object['defineProperty'](_0x326cf6,_0x28cc96,_0x562199),_0x562199;},__metadata=this&&this['__metadata']||function(_0x3fd2fd,_0x3cde6c){var _0x56a4f3=a6_0x4eb827;if(typeof Reflect===_0x56a4f3(0x152)&&typeof Reflect['metadata']===_0x56a4f3(0x15c))return Reflect[_0x56a4f3(0x154)](_0x3fd2fd,_0x3cde6c);};Object[a6_0x4eb827(0x156)](exports,a6_0x4eb827(0x15b),{'value':!![]}),exports[a6_0x4eb827(0x15f)]=void 0x0;class ApiError{}function a6_0x5047(_0x5589f6,_0x56abb8){var _0x4ba386=a6_0x4ba3();return a6_0x5047=function(_0x5047c9,_0x2b290a){_0x5047c9=_0x5047c9-0x143;var _0x3a9303=_0x4ba386[_0x5047c9];return _0x3a9303;},a6_0x5047(_0x5589f6,_0x56abb8);}ApiError[a6_0x4eb827(0x143)]=0x3d7e31,ApiError[a6_0x4eb827(0x157)]=0x3d7e32,ApiError[a6_0x4eb827(0x144)]=0x3d7e33,ApiError[a6_0x4eb827(0x149)]=0x3d7e34,ApiError[a6_0x4eb827(0x151)]=0x3d7e35,ApiError[a6_0x4eb827(0x148)]=0x3d7e36,__decorate([AnnErrorMsg(a6_0x4eb827(0x14f)),__metadata(a6_0x4eb827(0x14c),Object)],ApiError,a6_0x4eb827(0x143),void 0x0),__decorate([AnnErrorMsg(a6_0x4eb827(0x162)),__metadata(a6_0x4eb827(0x14c),Object)],ApiError,'HEADERS_LACK',void 0x0),__decorate([AnnErrorMsg(a6_0x4eb827(0x147)),__metadata(a6_0x4eb827(0x14c),Object)],ApiError,'HEADERS_DEVICE',void 0x0),__decorate([AnnErrorMsg(a6_0x4eb827(0x161)),__metadata('design:type',Object)],ApiError,a6_0x4eb827(0x149),void 0x0),__decorate([AnnErrorMsg(a6_0x4eb827(0x15d)),__metadata(a6_0x4eb827(0x14c),Object)],ApiError,a6_0x4eb827(0x151),void 0x0),__decorate([AnnErrorMsg('登录超时,请重新登录'),__metadata(a6_0x4eb827(0x14c),Object)],ApiError,a6_0x4eb827(0x148),void 0x0),exports[a6_0x4eb827(0x15f)]=ApiError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x5ef32e=a7_0x52bf;(function(_0x24021b,_0x39fea2){const _0x13b82b=a7_0x52bf,_0x31ec59=_0x24021b();while(!![]){try{const _0x5a3da2=parseInt(_0x13b82b(0x176))/0x1*(-parseInt(_0x13b82b(0x17e))/0x2)+-parseInt(_0x13b82b(0x172))/0x3*(parseInt(_0x13b82b(0x171))/0x4)+parseInt(_0x13b82b(0x179))/0x5+parseInt(_0x13b82b(0x17a))/0x6*(parseInt(_0x13b82b(0x173))/0x7)+parseInt(_0x13b82b(0x17f))/0x8*(-parseInt(_0x13b82b(0x177))/0x9)+parseInt(_0x13b82b(0x178))/0xa+parseInt(_0x13b82b(0x174))/0xb;if(_0x5a3da2===_0x39fea2)break;else _0x31ec59['push'](_0x31ec59['shift']());}catch(_0x250253){_0x31ec59['push'](_0x31ec59['shift']());}}}(a7_0x26dd,0xb9027));Object[a7_0x5ef32e(0x17c)](exports,'__esModule',{'value':!![]}),exports[a7_0x5ef32e(0x175)]=void 0x0;function a7_0x26dd(){const _0x301a9c=['3448DWARwS','@midwayjs/core','APPSCONFIG_KEY','1915080QjuCPw','6dVRmVZ','1012305CpPqRg','31737827EWrGXx','getAppsConfig','6wvjYuL','29565bxbAAp','259050XNvZBy','7469465JYTSmf','6WNeuua','AppsConfigTmp','defineProperty','getClassMetadata','472832oPInvN'];a7_0x26dd=function(){return _0x301a9c;};return a7_0x26dd();}const core_1=require(a7_0x5ef32e(0x180)),action_1=require('../types/action');function getAppsConfig(_0x3c91e6){const _0x3748a7=a7_0x5ef32e,_0xbda08a=(0x0,core_1[_0x3748a7(0x17d)])(action_1[_0x3748a7(0x181)],action_1[_0x3748a7(0x17b)])||{};return _0x3c91e6?lodash['get'](_0xbda08a,_0x3c91e6):_0xbda08a;}function a7_0x52bf(_0x3b23f3,_0x372cff){const _0x26dd39=a7_0x26dd();return a7_0x52bf=function(_0x52bf16,_0xdb1e78){_0x52bf16=_0x52bf16-0x171;let _0x398313=_0x26dd39[_0x52bf16];return _0x398313;},a7_0x52bf(_0x3b23f3,_0x372cff);}exports[a7_0x5ef32e(0x175)]=getAppsConfig;
|
package/dist/helper/getRoutes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a8_0x46ef3e=a8_0x231d;function a8_0x150d(){const _0x1cf608=['2909565DIefEl','object','parameterIndex','flags.description','metadata','noreq','propertyData','filepath','892308LwkMPd','body','../types/action','Boolean','concat','split','key','getClassMetadata','routerOptions','1904104mlyASp','17166thQaZL','indexOf','route','routerName','keys','Object','test','header','@midwayjs/core','method','15076IaKIit','__esModule','length','String','pprefix','module','request','tagName','title','flags.presence','string','/static/apitest','getClassExtendedMetadata','2806986piUPAu','routes','file','BODY','type','HEADERS','10SIaXvp','name','find','number','Number','WEB_ROUTER_PARAM_KEY','required','array','push','1748817Mteboh','function','max','8wgEdtk','iterator','-array','INJECT_CUSTOM_PARAM','ACTION_ROUTE_KEY','boolean','flags.label','getRoutes','min','log','RouteParamTypes','rules','requestMethod','defineProperty','get','limit','path','description','startsWith','default','isArray','FILESSTREAM','summary','args','File','flags.default','PARAM','filter','describe','ACTION_KEY','prefix','allow','文件上传-'];a8_0x150d=function(){return _0x1cf608;};return a8_0x150d();}(function(_0x215871,_0x4c6862){const _0x2fda2c=a8_0x231d,_0x4f0de0=_0x215871();while(!![]){try{const _0x4c4669=parseInt(_0x2fda2c(0xb7))/0x1*(-parseInt(_0x2fda2c(0x98))/0x2)+parseInt(_0x2fda2c(0xb4))/0x3+parseInt(_0x2fda2c(0xe0))/0x4+parseInt(_0x2fda2c(0xab))/0x5*(-parseInt(_0x2fda2c(0xea))/0x6)+-parseInt(_0x2fda2c(0xa5))/0x7+-parseInt(_0x2fda2c(0xe9))/0x8+parseInt(_0x2fda2c(0xd8))/0x9;if(_0x4c4669===_0x4c6862)break;else _0x4f0de0['push'](_0x4f0de0['shift']());}catch(_0x88b574){_0x4f0de0['push'](_0x4f0de0['shift']());}}}(a8_0x150d,0x67948));Object[a8_0x46ef3e(0xc4)](exports,a8_0x46ef3e(0x99),{'value':!![]}),exports[a8_0x46ef3e(0xbe)]=void 0x0;function a8_0x231d(_0x2c27d3,_0x10a431){const _0x150da5=a8_0x150d();return a8_0x231d=function(_0x231d62,_0x4e3b2d){_0x231d62=_0x231d62-0x8f;let _0xc9c1b=_0x150da5[_0x231d62];return _0xc9c1b;},a8_0x231d(_0x2c27d3,_0x10a431);}const lodash_1=require('lodash'),validator_1=require('@anncic-api/validator'),core_1=require(a8_0x46ef3e(0x96)),core_2=require('@midwayjs/core'),core_3=require(a8_0x46ef3e(0x96)),action_1=require(a8_0x46ef3e(0xe2));function getRoutes(_0x360ef8={'prefix':'/','module':![]}){const _0x7cf508=a8_0x46ef3e;var _0x31aab8,_0xdb8070;const _0x5e9985=(0x0,core_3['listModule'])(action_1[_0x7cf508(0xd4)]),_0x54bc18={},_0x30ec64=Array[_0x7cf508(0xcb)](_0x360ef8['filter']||[])?_0x360ef8['filter']||[]:[_0x360ef8[_0x7cf508(0xd2)]];_0x2d8ab8:for(const _0x22c08b of _0x5e9985){let _0x5ad5ca=(0x0,core_3[_0x7cf508(0xe7)])(action_1[_0x7cf508(0xd4)],_0x22c08b),_0x360e8d=(0x0,core_3['getClassMetadata'])(action_1[_0x7cf508(0xbb)],_0x22c08b);if(_0x5ad5ca&&_0x360e8d){let _0x36616b=_0x5ad5ca[_0x7cf508(0xd5)],_0xaaef7c={};if(_0x360ef8[_0x7cf508(0x9d)]&&(0x0,lodash_1[_0x7cf508(0xc5)])(_0x5ad5ca,'module',![])!=_0x360ef8[_0x7cf508(0x9d)])continue _0x2d8ab8;else{if(_0x360ef8['module']===![]&&!!(0x0,lodash_1['get'])(_0x5ad5ca,_0x7cf508(0x9d),null))continue _0x2d8ab8;}if(_0x360ef8[_0x7cf508(0xd5)]&&!_0x36616b[_0x7cf508(0xc9)](_0x360ef8[_0x7cf508(0xd5)]))continue _0x2d8ab8;_0x36616b!=='/'?(_0xaaef7c[_0x7cf508(0xcd)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0x9f)])||(/^\//[_0x7cf508(0x94)](_0x36616b)?_0x36616b[_0x7cf508(0xe5)]('/')[0x1]:_0x36616b),_0xaaef7c[_0x7cf508(0xc8)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0xc8)])||_0xaaef7c[_0x7cf508(0xcd)],_0xaaef7c[_0x7cf508(0xa6)]=[]):(_0xaaef7c[_0x7cf508(0xcd)]=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0x9f)])||_0x7cf508(0xca),_0xaaef7c['description']=(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0xe8)][_0x7cf508(0xc8)])||'',_0xaaef7c[_0x7cf508(0xa6)]=[]);_0x360ef8[_0x7cf508(0xdf)]&&(_0xaaef7c[_0x7cf508(0xdf)]=_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca['filepath']);(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0x9c)])&&(_0xaaef7c[_0x7cf508(0xd5)]=_0x5ad5ca[_0x7cf508(0x9c)]);(_0x5ad5ca===null||_0x5ad5ca===void 0x0?void 0x0:_0x5ad5ca[_0x7cf508(0x9d)])&&(_0xaaef7c['module']=_0x5ad5ca['module']);let _0x2c3de3=(0x0,core_3[_0x7cf508(0xe7)])(core_2[_0x7cf508(0xba)],_0x22c08b)||{};if(typeof _0x360e8d[Symbol[_0x7cf508(0xb8)]]==='function')for(let _0x23e007 of _0x360e8d){let _0x41433b={};_0x41433b[_0x7cf508(0x97)]=_0x23e007[_0x7cf508(0xc3)],_0x41433b[_0x7cf508(0x90)]=(_0x36616b+_0x23e007[_0x7cf508(0xc7)])['replace'](/\/{1,}/,'/'),_0x41433b['summary']=(_0x23e007===null||_0x23e007===void 0x0?void 0x0:_0x23e007[_0x7cf508(0x91)])||_0xaaef7c['summary']||'default',_0x41433b[_0x7cf508(0xc8)]=(_0x23e007===null||_0x23e007===void 0x0?void 0x0:_0x23e007[_0x7cf508(0xc8)])||'',_0x41433b[_0x7cf508(0x9e)]=[];if(!(0x0,lodash_1[_0x7cf508(0xc9)])(_0x41433b[_0x7cf508(0x90)],'static/apitest')&&!(0x0,lodash_1['startsWith'])(_0x41433b['route'],_0x7cf508(0xa3))&&_0x30ec64[_0x7cf508(0x8f)](_0x41433b[_0x7cf508(0x90)])===-0x1){if(!(_0x360ef8===null||_0x360ef8===void 0x0?void 0x0:_0x360ef8[_0x7cf508(0xdd)])){let _0x29b351=(0x0,core_3['getMethodParamTypes'])(new _0x22c08b(),_0x23e007[_0x7cf508(0x97)]);for(const _0x31872b in _0x29b351){let _0x7d271e=(_0x31aab8=_0x2c3de3[_0x23e007[_0x7cf508(0x97)]])===null||_0x31aab8===void 0x0?void 0x0:_0x31aab8[_0x7cf508(0xad)](_0x504080=>_0x504080[_0x7cf508(0xda)]==_0x31872b&&_0x504080[_0x7cf508(0xe6)]===core_2[_0x7cf508(0xb0)]&&(_0x504080===null||_0x504080===void 0x0?void 0x0:_0x504080[_0x7cf508(0xdc)]));if(_0x7d271e===null||_0x7d271e===void 0x0?void 0x0:_0x7d271e['metadata']){let _0x67e681=convertTypeToString(_0x7d271e['metadata'][_0x7cf508(0xa9)]||0x0);if(['query','body'][_0x7cf508(0x8f)](_0x67e681)!=-0x1&&_0x7d271e[_0x7cf508(0xdc)]['propertyData']['indexOf'](':')==-0x1&&!_0x41433b[_0x7cf508(0x9e)]['find'](_0xc7a4cf=>_0xc7a4cf[_0x7cf508(0xe6)]==_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)]))_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xb3)]({'key':_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)],'title':_0x7d271e[_0x7cf508(0xdc)][_0x7cf508(0xde)],'type':convertSchemaType(_0x29b351[_0x7d271e[_0x7cf508(0xda)]][_0x7cf508(0xac)]),'required':![],'default':'','desc':''});else{if(_0x67e681=='file'){let _0x301bfc=((_0xdb8070=_0x7d271e===null||_0x7d271e===void 0x0?void 0x0:_0x7d271e[_0x7cf508(0xdc)])===null||_0xdb8070===void 0x0?void 0x0:_0xdb8070['propertyData'])||_0x7cf508(0xa7);_0x301bfc[_0x7cf508(0x8f)](':')==-0x1&&!_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xad)](_0x265ea1=>_0x265ea1[_0x7cf508(0xe6)]==_0x301bfc&&_0x265ea1['type']==_0x7cf508(0xa7))&&_0x41433b[_0x7cf508(0x9e)][_0x7cf508(0xb3)]({'key':_0x301bfc,'title':_0x7cf508(0xd7)+_0x301bfc,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x5ad1c4=(0x0,core_3[_0x7cf508(0xa4)])(validator_1['RULES_KEY'],_0x29b351[_0x31872b]);_0x5ad1c4&&_0x41433b['request'][_0x7cf508(0xb3)](...getJoiRequest(_0x5ad1c4));}}}_0xaaef7c[_0x7cf508(0xa6)]['push'](_0x41433b);}}if(_0xaaef7c[_0x7cf508(0xa6)][_0x7cf508(0x9a)]>0x0){let _0x1ae323=_0x54bc18[_0x36616b];_0x1ae323?(_0x1ae323[_0x7cf508(0xcd)]!=_0xaaef7c[_0x7cf508(0xcd)]&&(_0x1ae323[_0x7cf508(0xcd)]=_0x1ae323[_0x7cf508(0xcd)]+','+_0xaaef7c[_0x7cf508(0xcd)]),_0x1ae323['description']!=_0xaaef7c[_0x7cf508(0xc8)]&&(_0x1ae323[_0x7cf508(0xc8)]=_0x1ae323['description']+','+_0xaaef7c['description']),_0x1ae323['routes']=_0x1ae323['routes'][_0x7cf508(0xe4)](_0xaaef7c[_0x7cf508(0xa6)]),_0x54bc18[_0x36616b]=_0x1ae323):_0x54bc18[_0x36616b]=_0xaaef7c;}}}return _0x54bc18;}exports[a8_0x46ef3e(0xbe)]=getRoutes;function getJoiRequest(_0x27cf2b){const _0x10578a=a8_0x46ef3e,_0x289c57=[];for(let _0xbd123 in _0x27cf2b){const _0x175c9a={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x1a50a5=typeof _0x27cf2b[_0xbd123]['describe']==_0x10578a(0xb5)?_0x27cf2b[_0xbd123][_0x10578a(0xd3)]():_0x27cf2b[_0xbd123];_0x175c9a['key']=_0xbd123,_0x175c9a[_0x10578a(0xa9)]=_0x1a50a5['type'],_0x175c9a[_0x10578a(0xa0)]=(0x0,lodash_1['get'])(_0x1a50a5,_0x10578a(0xbd),_0xbd123),_0x175c9a[_0x10578a(0xca)]=(0x0,lodash_1[_0x10578a(0xc5)])(_0x1a50a5,_0x10578a(0xd0),''),_0x175c9a['required']=(0x0,lodash_1['get'])(_0x1a50a5,_0x10578a(0xa1),'')==_0x10578a(0xb1),_0x175c9a[_0x10578a(0xc8)]=(0x0,lodash_1[_0x10578a(0xc5)])(_0x1a50a5,_0x10578a(0xdb),'');if(_0x1a50a5[_0x10578a(0xa9)]==_0x10578a(0xd9))_0x175c9a['children']=getJoiRequest(_0x1a50a5[_0x10578a(0x92)]);else _0x1a50a5[_0x10578a(0xa9)]==_0x10578a(0xb2)&&_0x1a50a5['items']&&Array[_0x10578a(0xcb)](_0x1a50a5['items'])&&_0x1a50a5['items'][0x0]&&console[_0x10578a(0xc0)](_0xbd123+_0x10578a(0xb9),_0x1a50a5);_0x1a50a5[_0x10578a(0xd6)]&&Array['isArray'](_0x1a50a5[_0x10578a(0xd6)])&&_0x1a50a5[_0x10578a(0xd6)]['length']>0x0&&(_0x175c9a[_0x10578a(0xc8)]='只允许:['+_0x1a50a5[_0x10578a(0xd6)]['join'](',')+'];'+_0x175c9a[_0x10578a(0xc8)]);if(_0x175c9a['key']&&_0x175c9a[_0x10578a(0xa9)]){const _0x30547a={};for(const _0xb1dfc4 of _0x1a50a5['rules']||[]){if(_0xb1dfc4[_0x10578a(0xac)]==='min'&&_0xb1dfc4[_0x10578a(0xce)])_0x30547a[_0x10578a(0xbf)]=_0xb1dfc4[_0x10578a(0xce)][_0x10578a(0xc6)];else _0xb1dfc4[_0x10578a(0xac)]==='max'&&(_0x30547a[_0x10578a(0xb6)]=_0xb1dfc4['args'][_0x10578a(0xc6)]);}_0x175c9a[_0x10578a(0xc2)]=_0x30547a;}_0x175c9a['key']&&_0x175c9a[_0x10578a(0xa0)]&&_0x289c57['push'](_0x175c9a);}return _0x289c57;}function convertSchemaType(_0x29c981){const _0xa5739e=a8_0x46ef3e;switch(_0x29c981){case _0xa5739e(0x93):return _0xa5739e(0xd9);case _0xa5739e(0xe3):return _0xa5739e(0xbc);case _0xa5739e(0xaf):return _0xa5739e(0xae);case _0xa5739e(0x9b):return'string';case _0xa5739e(0xcf):return _0xa5739e(0xa7);default:return _0xa5739e(0xa2);}}function convertTypeToString(_0x476f1a){const _0x1f61e2=a8_0x46ef3e;switch(_0x476f1a){case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xaa)]:return _0x1f61e2(0x95);case core_1[_0x1f61e2(0xc1)]['QUERY']:return'query';case core_1['RouteParamTypes'][_0x1f61e2(0xd1)]:return _0x1f61e2(0xc7);case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xa8)]:return _0x1f61e2(0xe1);case core_1[_0x1f61e2(0xc1)]['FIELDS']:case core_1[_0x1f61e2(0xc1)][_0x1f61e2(0xcc)]:case core_1[_0x1f61e2(0xc1)]['FILESTREAM']:return _0x1f61e2(0xa7);default:return _0x1f61e2(0x95);}}
|
|
1
|
+
'use strict';const a8_0x4ce5f5=a8_0x452b;function a8_0x452b(_0x19a6ff,_0x35ef8d){const _0x1a9c8d=a8_0x1a9c();return a8_0x452b=function(_0x452bdd,_0x2e6ae7){_0x452bdd=_0x452bdd-0xc7;let _0x3f2096=_0x1a9c8d[_0x452bdd];return _0x3f2096;},a8_0x452b(_0x19a6ff,_0x35ef8d);}(function(_0xd1e58a,_0x8c6424){const _0x25e39f=a8_0x452b,_0x42c4ba=_0xd1e58a();while(!![]){try{const _0x10da53=parseInt(_0x25e39f(0x124))/0x1+-parseInt(_0x25e39f(0x102))/0x2+parseInt(_0x25e39f(0xfb))/0x3+-parseInt(_0x25e39f(0xdd))/0x4+parseInt(_0x25e39f(0xce))/0x5+parseInt(_0x25e39f(0x123))/0x6*(parseInt(_0x25e39f(0x10c))/0x7)+-parseInt(_0x25e39f(0x118))/0x8;if(_0x10da53===_0x8c6424)break;else _0x42c4ba['push'](_0x42c4ba['shift']());}catch(_0x545f11){_0x42c4ba['push'](_0x42c4ba['shift']());}}}(a8_0x1a9c,0xf0dd3));Object[a8_0x4ce5f5(0xef)](exports,a8_0x4ce5f5(0xe2),{'value':!![]}),exports[a8_0x4ce5f5(0x116)]=void 0x0;const lodash_1=require(a8_0x4ce5f5(0x11b)),validator_1=require(a8_0x4ce5f5(0xc8)),core_1=require('@midwayjs/core'),core_2=require(a8_0x4ce5f5(0x122)),core_3=require(a8_0x4ce5f5(0x122)),action_1=require('../types/action');function getRoutes(_0x45b2bf={'prefix':'/','module':![]}){const _0x16decf=a8_0x4ce5f5;var _0x13a9ea,_0x3803cd;const _0x5e1a98=(0x0,core_3[_0x16decf(0x10f)])(action_1[_0x16decf(0x101)]),_0xfb170b={},_0x522f80=Array[_0x16decf(0x11d)](_0x45b2bf[_0x16decf(0xf0)]||[])?_0x45b2bf[_0x16decf(0xf0)]||[]:[_0x45b2bf[_0x16decf(0xf0)]];_0x8e0ad:for(const _0x41db43 of _0x5e1a98){let _0x11142b=(0x0,core_3[_0x16decf(0xed)])(action_1[_0x16decf(0x101)],_0x41db43),_0x714417=(0x0,core_3[_0x16decf(0xed)])(action_1[_0x16decf(0xfa)],_0x41db43);if(_0x11142b&&_0x714417){let _0x337efe=_0x11142b['prefix'],_0x59f3c6={};if(_0x45b2bf[_0x16decf(0xff)]&&(0x0,lodash_1[_0x16decf(0x108)])(_0x11142b,'module',![])!=_0x45b2bf[_0x16decf(0xff)])continue _0x8e0ad;else{if(_0x45b2bf['module']===![]&&!!(0x0,lodash_1[_0x16decf(0x108)])(_0x11142b,_0x16decf(0xff),null))continue _0x8e0ad;}if(_0x45b2bf[_0x16decf(0x10b)]&&!_0x337efe[_0x16decf(0xdc)](_0x45b2bf[_0x16decf(0x10b)]))continue _0x8e0ad;_0x337efe!=='/'?(_0x59f3c6['summary']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b['routerOptions']['tagName'])||(/^\//[_0x16decf(0xfe)](_0x337efe)?_0x337efe[_0x16decf(0xd5)]('/')[0x1]:_0x337efe),_0x59f3c6['description']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xe3)][_0x16decf(0xd4)])||_0x59f3c6['summary'],_0x59f3c6[_0x16decf(0x11f)]=[]):(_0x59f3c6[_0x16decf(0xe6)]=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xe3)][_0x16decf(0xdb)])||_0x16decf(0xfd),_0x59f3c6['description']=(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b['routerOptions'][_0x16decf(0xd4)])||'',_0x59f3c6[_0x16decf(0x11f)]=[]);_0x45b2bf[_0x16decf(0xeb)]&&(_0x59f3c6['filepath']=_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xeb)]);(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xc9)])&&(_0x59f3c6[_0x16decf(0x10b)]=_0x11142b[_0x16decf(0xc9)]);(_0x11142b===null||_0x11142b===void 0x0?void 0x0:_0x11142b[_0x16decf(0xff)])&&(_0x59f3c6['module']=_0x11142b[_0x16decf(0xff)]);let _0x1539a9=(0x0,core_3['getClassMetadata'])(core_2[_0x16decf(0xf6)],_0x41db43)||{};if(typeof _0x714417[Symbol[_0x16decf(0x104)]]===_0x16decf(0xf4))for(let _0x1b7474 of _0x714417){if((_0x45b2bf===null||_0x45b2bf===void 0x0?void 0x0:_0x45b2bf[_0x16decf(0xcc)])&&!(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474[_0x16decf(0xcc)]))continue;let _0x28e616={};_0x28e616[_0x16decf(0xf1)]=_0x1b7474['requestMethod'],_0x28e616[_0x16decf(0x11e)]=(_0x337efe+_0x1b7474['path'])[_0x16decf(0xd2)](/\/{1,}/,'/'),_0x28e616[_0x16decf(0xe6)]=(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474['routerName'])||_0x59f3c6[_0x16decf(0xe6)]||'default',_0x28e616[_0x16decf(0xd4)]=(_0x1b7474===null||_0x1b7474===void 0x0?void 0x0:_0x1b7474[_0x16decf(0xd4)])||'',_0x28e616[_0x16decf(0x113)]=[];if(!(0x0,lodash_1['startsWith'])(_0x28e616['route'],_0x16decf(0xe7))&&!(0x0,lodash_1[_0x16decf(0xdc)])(_0x28e616[_0x16decf(0x11e)],_0x16decf(0x106))&&_0x522f80[_0x16decf(0xf3)](_0x28e616[_0x16decf(0x11e)])===-0x1){if(!(_0x45b2bf===null||_0x45b2bf===void 0x0?void 0x0:_0x45b2bf[_0x16decf(0xf7)])){let _0xd3efd4=(0x0,core_3[_0x16decf(0xca)])(new _0x41db43(),_0x1b7474[_0x16decf(0xf1)]);for(const _0x484237 in _0xd3efd4){let _0x19be3a=(_0x13a9ea=_0x1539a9[_0x1b7474[_0x16decf(0xf1)]])===null||_0x13a9ea===void 0x0?void 0x0:_0x13a9ea[_0x16decf(0xfc)](_0x34c252=>_0x34c252[_0x16decf(0x105)]==_0x484237&&_0x34c252[_0x16decf(0x120)]===core_2['WEB_ROUTER_PARAM_KEY']&&(_0x34c252===null||_0x34c252===void 0x0?void 0x0:_0x34c252['metadata']));if(_0x19be3a===null||_0x19be3a===void 0x0?void 0x0:_0x19be3a[_0x16decf(0xe4)]){let _0x40c0b5=convertTypeToString(_0x19be3a['metadata'][_0x16decf(0xe9)]||0x0);if([_0x16decf(0xf8),_0x16decf(0xee)]['indexOf'](_0x40c0b5)!=-0x1&&_0x19be3a['metadata']['propertyData']['indexOf'](':')==-0x1&&!_0x28e616[_0x16decf(0x113)][_0x16decf(0xfc)](_0x53ebd9=>_0x53ebd9[_0x16decf(0x120)]==_0x19be3a[_0x16decf(0xe4)][_0x16decf(0xf2)]))_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)]({'key':_0x19be3a[_0x16decf(0xe4)][_0x16decf(0xf2)],'title':_0x19be3a[_0x16decf(0xe4)]['propertyData'],'type':convertSchemaType(_0xd3efd4[_0x19be3a[_0x16decf(0x105)]][_0x16decf(0x10e)]),'required':![],'default':'','desc':''});else{if(_0x40c0b5==_0x16decf(0x11a)){let _0x2c6071=((_0x3803cd=_0x19be3a===null||_0x19be3a===void 0x0?void 0x0:_0x19be3a[_0x16decf(0xe4)])===null||_0x3803cd===void 0x0?void 0x0:_0x3803cd['propertyData'])||_0x16decf(0x11a);_0x2c6071['indexOf'](':')==-0x1&&!_0x28e616['request'][_0x16decf(0xfc)](_0x14955d=>_0x14955d[_0x16decf(0x120)]==_0x2c6071&&_0x14955d[_0x16decf(0xe9)]==_0x16decf(0x11a))&&_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)]({'key':_0x2c6071,'title':_0x16decf(0xd1)+_0x2c6071,'type':'file','required':!![],'default':'','desc':''});}}}else{const _0x59435c=(0x0,core_3[_0x16decf(0xea)])(validator_1[_0x16decf(0x11c)],_0xd3efd4[_0x484237]);_0x59435c&&_0x28e616[_0x16decf(0x113)][_0x16decf(0x107)](...getJoiRequest(_0x59435c));}}}_0x59f3c6[_0x16decf(0x11f)][_0x16decf(0x107)](_0x28e616);}}if(_0x59f3c6[_0x16decf(0x11f)][_0x16decf(0x110)]>0x0){let _0x40312e=_0xfb170b[_0x337efe];_0x40312e?(_0x40312e['summary']!=_0x59f3c6['summary']&&(_0x40312e[_0x16decf(0xe6)]=_0x40312e[_0x16decf(0xe6)]+','+_0x59f3c6[_0x16decf(0xe6)]),_0x40312e[_0x16decf(0xd4)]!=_0x59f3c6['description']&&(_0x40312e[_0x16decf(0xd4)]=_0x40312e[_0x16decf(0xd4)]+','+_0x59f3c6['description']),_0x40312e[_0x16decf(0x11f)]=_0x40312e['routes'][_0x16decf(0x111)](_0x59f3c6[_0x16decf(0x11f)]),_0xfb170b[_0x337efe]=_0x40312e):_0xfb170b[_0x337efe]=_0x59f3c6;}}}return _0xfb170b;}function a8_0x1a9c(){const _0x150959=['routerOptions','metadata','HEADERS','summary','static/apitest','describe','type','getClassExtendedMetadata','filepath','log','getClassMetadata','body','defineProperty','filter','method','propertyData','indexOf','function','PARAM','INJECT_CUSTOM_PARAM','noreq','query','-array','ACTION_ROUTE_KEY','5409918dEHRik','find','default','test','module','items','ACTION_KEY','299334NHGtfU','QUERY','iterator','parameterIndex','/static/apitest','push','get','keys','String','prefix','1512mqdlJw','FILESTREAM','name','listModule','length','concat','rules','request','Boolean','required','getRoutes','string','15196960iqBqIT','args','file','lodash','RULES_KEY','isArray','route','routes','key','join','@midwayjs/core','11262CPVNtR','1389340lDwHGn','object','@anncic-api/validator','pprefix','getMethodParamTypes','allow','intercept','Number','5477305TzUVcU','min','File','文件上传-','replace','flags.presence','description','split','FIELDS','limit','BODY','RouteParamTypes','max','tagName','startsWith','6630692TWhkBb','header','只允许:[','title','flags.default','__esModule'];a8_0x1a9c=function(){return _0x150959;};return a8_0x1a9c();}exports['getRoutes']=getRoutes;function getJoiRequest(_0x8e282f){const _0x1664f7=a8_0x4ce5f5,_0x581962=[];for(let _0xef999f in _0x8e282f){const _0x5dfdca={'title':'','key':'','type':'','description':'','rules':{},'children':[]},_0x30d15e=typeof _0x8e282f[_0xef999f][_0x1664f7(0xe8)]==_0x1664f7(0xf4)?_0x8e282f[_0xef999f]['describe']():_0x8e282f[_0xef999f];_0x5dfdca[_0x1664f7(0x120)]=_0xef999f,_0x5dfdca[_0x1664f7(0xe9)]=_0x30d15e[_0x1664f7(0xe9)],_0x5dfdca[_0x1664f7(0xe0)]=(0x0,lodash_1[_0x1664f7(0x108)])(_0x30d15e,'flags.label',_0xef999f),_0x5dfdca['default']=(0x0,lodash_1['get'])(_0x30d15e,_0x1664f7(0xe1),''),_0x5dfdca[_0x1664f7(0x115)]=(0x0,lodash_1['get'])(_0x30d15e,_0x1664f7(0xd3),'')=='required',_0x5dfdca[_0x1664f7(0xd4)]=(0x0,lodash_1[_0x1664f7(0x108)])(_0x30d15e,'flags.description','');if(_0x30d15e[_0x1664f7(0xe9)]=='object')_0x5dfdca['children']=getJoiRequest(_0x30d15e[_0x1664f7(0x109)]);else _0x30d15e['type']=='array'&&_0x30d15e[_0x1664f7(0x100)]&&Array[_0x1664f7(0x11d)](_0x30d15e['items'])&&_0x30d15e[_0x1664f7(0x100)][0x0]&&console[_0x1664f7(0xec)](_0xef999f+_0x1664f7(0xf9),_0x30d15e);_0x30d15e[_0x1664f7(0xcb)]&&Array[_0x1664f7(0x11d)](_0x30d15e[_0x1664f7(0xcb)])&&_0x30d15e[_0x1664f7(0xcb)][_0x1664f7(0x110)]>0x0&&(_0x5dfdca[_0x1664f7(0xd4)]=_0x1664f7(0xdf)+_0x30d15e[_0x1664f7(0xcb)][_0x1664f7(0x121)](',')+'];'+_0x5dfdca[_0x1664f7(0xd4)]);if(_0x5dfdca[_0x1664f7(0x120)]&&_0x5dfdca['type']){const _0xcbe72c={};for(const _0x54e217 of _0x30d15e[_0x1664f7(0x112)]||[]){if(_0x54e217[_0x1664f7(0x10e)]===_0x1664f7(0xcf)&&_0x54e217[_0x1664f7(0x119)])_0xcbe72c[_0x1664f7(0xcf)]=_0x54e217[_0x1664f7(0x119)]['limit'];else _0x54e217['name']==='max'&&(_0xcbe72c[_0x1664f7(0xda)]=_0x54e217[_0x1664f7(0x119)][_0x1664f7(0xd7)]);}_0x5dfdca['rules']=_0xcbe72c;}_0x5dfdca[_0x1664f7(0x120)]&&_0x5dfdca[_0x1664f7(0xe0)]&&_0x581962[_0x1664f7(0x107)](_0x5dfdca);}return _0x581962;}function convertSchemaType(_0x86f673){const _0x34c660=a8_0x4ce5f5;switch(_0x86f673){case'Object':return _0x34c660(0xc7);case _0x34c660(0x114):return'boolean';case _0x34c660(0xcd):return'number';case _0x34c660(0x10a):return _0x34c660(0x117);case _0x34c660(0xd0):return _0x34c660(0x11a);default:return _0x34c660(0x117);}}function convertTypeToString(_0x64de6){const _0x1b6ebd=a8_0x4ce5f5;switch(_0x64de6){case core_1['RouteParamTypes'][_0x1b6ebd(0xe5)]:return'header';case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0x103)]:return _0x1b6ebd(0xf8);case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xf5)]:return'path';case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xd8)]:return _0x1b6ebd(0xee);case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0xd6)]:case core_1['RouteParamTypes']['FILESSTREAM']:case core_1[_0x1b6ebd(0xd9)][_0x1b6ebd(0x10d)]:return _0x1b6ebd(0x11a);default:return _0x1b6ebd(0xde);}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a9_0x175eed=a9_0x13e4;(function(_0x1b591a,_0x870690){var _0x8a1671=a9_0x13e4,_0x42888c=_0x1b591a();while(!![]){try{var _0x48a420=parseInt(_0x8a1671(0x1bb))/0x1*(-parseInt(_0x8a1671(0x1ac))/0x2)+parseInt(_0x8a1671(0x1b2))/0x3*(-parseInt(_0x8a1671(0x1c6))/0x4)+-parseInt(_0x8a1671(0x1b7))/0x5+parseInt(_0x8a1671(0x1a4))/0x6+-parseInt(_0x8a1671(0x1b9))/0x7*(-parseInt(_0x8a1671(0x1be))/0x8)+parseInt(_0x8a1671(0x1a8))/0x9*(-parseInt(_0x8a1671(0x1b8))/0xa)+parseInt(_0x8a1671(0x1c9))/0xb;if(_0x48a420===_0x870690)break;else _0x42888c['push'](_0x42888c['shift']());}catch(_0x3d5591){_0x42888c['push'](_0x42888c['shift']());}}}(a9_0x3dc4,0x8943b));var __createBinding=this&&this[a9_0x175eed(0x194)]||(Object[a9_0x175eed(0x1bf)]?function(_0x179cb6,_0x482937,_0x234f23,_0x17290e){var _0x2c7897=a9_0x175eed;if(_0x17290e===undefined)_0x17290e=_0x234f23;var _0x37f256=Object[_0x2c7897(0x1b5)](_0x482937,_0x234f23);(!_0x37f256||(_0x2c7897(0x196)in _0x37f256?!_0x482937['__esModule']:_0x37f256['writable']||_0x37f256['configurable']))&&(_0x37f256={'enumerable':!![],'get':function(){return _0x482937[_0x234f23];}}),Object[_0x2c7897(0x1a1)](_0x179cb6,_0x17290e,_0x37f256);}:function(_0x2d1cd0,_0x2a124a,_0x32d6e7,_0x4f6e4b){if(_0x4f6e4b===undefined)_0x4f6e4b=_0x32d6e7;_0x2d1cd0[_0x4f6e4b]=_0x2a124a[_0x32d6e7];}),__exportStar=this&&this[a9_0x175eed(0x197)]||function(_0x1fdf73,_0x1d4183){var _0x368cec=a9_0x175eed;for(var _0xd22627 in _0x1fdf73)if(_0xd22627!=='default'&&!Object[_0x368cec(0x1b6)][_0x368cec(0x195)][_0x368cec(0x1a9)](_0x1d4183,_0xd22627))__createBinding(_0x1d4183,_0x1fdf73,_0xd22627);};Object['defineProperty'](exports,a9_0x175eed(0x1aa),{'value':!![]}),exports[a9_0x175eed(0x1ba)]=exports[a9_0x175eed(0x1c5)]=exports[a9_0x175eed(0x1ca)]=exports[a9_0x175eed(0x1b4)]=exports['Provide']=exports[a9_0x175eed(0x1b3)]=exports[a9_0x175eed(0x193)]=exports['App']=exports[a9_0x175eed(0x1c4)]=exports[a9_0x175eed(0x1c7)]=exports[a9_0x175eed(0x198)]=exports['Param']=exports['Body']=exports['Fields']=exports['Files']=exports['File']=exports['Configuration']=exports[a9_0x175eed(0x1ab)]=exports['ValidatorError']=exports[a9_0x175eed(0x192)]=exports[a9_0x175eed(0x1c0)]=exports[a9_0x175eed(0x1a0)]=exports['CacheService']=exports['ApiError']=exports[a9_0x175eed(0x19a)]=exports[a9_0x175eed(0x1a3)]=exports[a9_0x175eed(0x19d)]=exports['Api']=void 0x0;const getAppsConfig_1=require('./helper/getAppsConfig');Object['defineProperty'](exports,a9_0x175eed(0x1ba),{'enumerable':!![],'get':function(){return getAppsConfig_1['getAppsConfig'];}}),__exportStar(require(a9_0x175eed(0x19e)),exports),__exportStar(require('./service/ApitestService'),exports);var ActionApi_1=require(a9_0x175eed(0x19f));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1c2),{'enumerable':!![],'get':function(){var _0x1e6512=a9_0x175eed;return ActionApi_1[_0x1e6512(0x1c2)];}});var Action_1=require(a9_0x175eed(0x19c));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x19d),{'enumerable':!![],'get':function(){var _0x408113=a9_0x175eed;return Action_1[_0x408113(0x19d)];}});var ActionApitest_1=require(a9_0x175eed(0x199));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1a3),{'enumerable':!![],'get':function(){return ActionApitest_1['Apitest'];}});var getRoutes_1=require(a9_0x175eed(0x1ad));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x19a),{'enumerable':!![],'get':function(){return getRoutes_1['getRoutes'];}});var ApiError_1=require(a9_0x175eed(0x1bc));Object['defineProperty'](exports,'ApiError',{'enumerable':!![],'get':function(){var _0x2465b7=a9_0x175eed;return ApiError_1[_0x2465b7(0x1b0)];}});var cache_1=require('@anncic-api/cache');Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1af),{'enumerable':!![],'get':function(){var _0x14b19f=a9_0x175eed;return cache_1[_0x14b19f(0x1af)];}});var event_1=require(a9_0x175eed(0x1cc));Object['defineProperty'](exports,a9_0x175eed(0x1a0),{'enumerable':!![],'get':function(){var _0x3c3584=a9_0x175eed;return event_1[_0x3c3584(0x1a0)];}});function a9_0x13e4(_0x48d4ce,_0x172420){var _0x3dc42b=a9_0x3dc4();return a9_0x13e4=function(_0x13e481,_0x24aceb){_0x13e481=_0x13e481-0x192;var _0x796072=_0x3dc42b[_0x13e481];return _0x796072;},a9_0x13e4(_0x48d4ce,_0x172420);}var ApiService_1=require(a9_0x175eed(0x1ae));Object['defineProperty'](exports,a9_0x175eed(0x1c0),{'enumerable':!![],'get':function(){var _0x23df1b=a9_0x175eed;return ApiService_1[_0x23df1b(0x1c0)];}});var ExcelService_1=require(a9_0x175eed(0x1c1));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x192),{'enumerable':!![],'get':function(){var _0x4e77c4=a9_0x175eed;return ExcelService_1[_0x4e77c4(0x192)];}});var validator_1=require(a9_0x175eed(0x1b1));Object[a9_0x175eed(0x1a1)](exports,'ValidatorError',{'enumerable':!![],'get':function(){return validator_1['ValidatorError'];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1ab),{'enumerable':!![],'get':function(){var _0x2bf0ce=a9_0x175eed;return validator_1[_0x2bf0ce(0x1ab)];}});function a9_0x3dc4(){var _0x39ce10=['./decorator/ActionApi','EventService','defineProperty','@midwayjs/core','Apitest','3921942PvwEio','File','./configuration','Param','369108iZEwqa','call','__esModule','ValidatorService','2Ligswb','./helper/getRoutes','./service/ApiService','CacheService','ApiError','@anncic-api/validator','117KDrjDl','Logger','Inject','getOwnPropertyDescriptor','prototype','2575575SbAckb','250lcKdKM','1439907WuBGts','getAppsConfig','1078939gEHRNl','./exception/ApiError','Configuration','24PfyUFr','create','ApiService','./service/ExcelService','Api','Provide','Init','ScopeEnum','106660UZqWGv','Headers','CustomConfiguration','32458404HekzMJ','Scope','Files','@anncic-api/event','Fields','ExcelService','Config','__createBinding','hasOwnProperty','get','__exportStar','Query','./decorator/ActionApitest','getRoutes','Body','./decorator/Action','Action','./types/common'];a9_0x3dc4=function(){return _0x39ce10;};return a9_0x3dc4();}var configuration_1=require(a9_0x175eed(0x1a6));Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1bd),{'enumerable':!![],'get':function(){var _0x470c60=a9_0x175eed;return configuration_1[_0x470c60(0x1c8)];}});var core_1=require('@midwayjs/core');Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1a5),{'enumerable':!![],'get':function(){var _0x2a9107=a9_0x175eed;return core_1[_0x2a9107(0x1a5)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1cb),{'enumerable':!![],'get':function(){return core_1['Files'];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1cd),{'enumerable':!![],'get':function(){var _0x38efce=a9_0x175eed;return core_1[_0x38efce(0x1cd)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x19b),{'enumerable':!![],'get':function(){var _0x4f591f=a9_0x175eed;return core_1[_0x4f591f(0x19b)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1a7),{'enumerable':!![],'get':function(){var _0x513e0a=a9_0x175eed;return core_1[_0x513e0a(0x1a7)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x198),{'enumerable':!![],'get':function(){var _0x524689=a9_0x175eed;return core_1[_0x524689(0x198)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1c7),{'enumerable':!![],'get':function(){var _0x5a3075=a9_0x175eed;return core_1[_0x5a3075(0x1c7)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1c4),{'enumerable':!![],'get':function(){var _0x3e9d08=a9_0x175eed;return core_1[_0x3e9d08(0x1c4)];}});var core_2=require(a9_0x175eed(0x1a2));Object[a9_0x175eed(0x1a1)](exports,'App',{'enumerable':!![],'get':function(){return core_2['App'];}}),Object['defineProperty'](exports,a9_0x175eed(0x193),{'enumerable':!![],'get':function(){var _0x336489=a9_0x175eed;return core_2[_0x336489(0x193)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1b3),{'enumerable':!![],'get':function(){var _0x2fa296=a9_0x175eed;return core_2[_0x2fa296(0x1b3)];}}),Object[a9_0x175eed(0x1a1)](exports,a9_0x175eed(0x1c3),{'enumerable':!![],'get':function(){var _0x16c34a=a9_0x175eed;return core_2[_0x16c34a(0x1c3)];}}),Object[a9_0x175eed(0x1a1)](exports,'Inject',{'enumerable':!![],'get':function(){var _0x25e888=a9_0x175eed;return core_2[_0x25e888(0x1b4)];}}),Object[a9_0x175eed(0x1a1)](exports,'Scope',{'enumerable':!![],'get':function(){var _0x18ffce=a9_0x175eed;return core_2[_0x18ffce(0x1ca)];}}),Object[a9_0x175eed(0x1a1)](exports,'ScopeEnum',{'enumerable':!![],'get':function(){var _0x1c961b=a9_0x175eed;return core_2[_0x1c961b(0x1c5)];}}),global[a9_0x175eed(0x1ba)]=getAppsConfig_1[a9_0x175eed(0x1ba)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a10_0x1350(_0x33faa7,_0x3e6b1d){var _0x4dc46b=a10_0x4dc4();return a10_0x1350=function(_0x13502,_0x47b57a){_0x13502=_0x13502-0x14c;var _0x510f64=_0x4dc46b[_0x13502];return _0x510f64;},a10_0x1350(_0x33faa7,_0x3e6b1d);}var a10_0x5f1989=a10_0x1350;(function(_0x54fda8,_0x4727a6){var _0x120756=a10_0x1350,_0x10ddd3=_0x54fda8();while(!![]){try{var _0x2d1c87=-parseInt(_0x120756(0x180))/0x1+parseInt(_0x120756(0x167))/0x2*(-parseInt(_0x120756(0x17b))/0x3)+parseInt(_0x120756(0x168))/0x4+-parseInt(_0x120756(0x176))/0x5*(-parseInt(_0x120756(0x15a))/0x6)+-parseInt(_0x120756(0x155))/0x7+parseInt(_0x120756(0x152))/0x8*(-parseInt(_0x120756(0x15f))/0x9)+parseInt(_0x120756(0x177))/0xa;if(_0x2d1c87===_0x4727a6)break;else _0x10ddd3['push'](_0x10ddd3['shift']());}catch(_0x29fed0){_0x10ddd3['push'](_0x10ddd3['shift']());}}}(a10_0x4dc4,0xd7fa9));var __decorate=this&&this[a10_0x5f1989(0x16e)]||function(_0x19e94e,_0x99c524,_0x4b44d7,_0x1625da){var _0x57620c=a10_0x5f1989,_0x11f55c=arguments[_0x57620c(0x16d)],_0x91a27e=_0x11f55c<0x3?_0x99c524:_0x1625da===null?_0x1625da=Object[_0x57620c(0x162)](_0x99c524,_0x4b44d7):_0x1625da,_0x492243;if(typeof Reflect===_0x57620c(0x14d)&&typeof Reflect['decorate']===_0x57620c(0x157))_0x91a27e=Reflect[_0x57620c(0x150)](_0x19e94e,_0x99c524,_0x4b44d7,_0x1625da);else{for(var _0xca16f8=_0x19e94e['length']-0x1;_0xca16f8>=0x0;_0xca16f8--)if(_0x492243=_0x19e94e[_0xca16f8])_0x91a27e=(_0x11f55c<0x3?_0x492243(_0x91a27e):_0x11f55c>0x3?_0x492243(_0x99c524,_0x4b44d7,_0x91a27e):_0x492243(_0x99c524,_0x4b44d7))||_0x91a27e;}return _0x11f55c>0x3&&_0x91a27e&&Object[_0x57620c(0x156)](_0x99c524,_0x4b44d7,_0x91a27e),_0x91a27e;},__metadata=this&&this[a10_0x5f1989(0x16b)]||function(_0x3c4f6c,_0x521a12){var _0x4c0098=a10_0x5f1989;if(typeof Reflect===_0x4c0098(0x14d)&&typeof Reflect[_0x4c0098(0x179)]===_0x4c0098(0x157))return Reflect[_0x4c0098(0x179)](_0x3c4f6c,_0x521a12);};Object[a10_0x5f1989(0x156)](exports,'__esModule',{'value':!![]}),exports[a10_0x5f1989(0x161)]=void 0x0;const crypto_js_1=require(a10_0x5f1989(0x151)),core_1=require(a10_0x5f1989(0x14f)),ApiError_1=require(a10_0x5f1989(0x178));let ApiService=class ApiService{[a10_0x5f1989(0x164)](_0x25a50b){var _0x542969=a10_0x5f1989,_0x339e59;return _0x25a50b?(0x0,crypto_js_1[_0x542969(0x16a)])(_0x25a50b+(0x0,crypto_js_1['MD5'])((0x0,crypto_js_1[_0x542969(0x16a)])(_0x25a50b)[_0x542969(0x171)]()+((_0x339e59=this[_0x542969(0x17f)])===null||_0x339e59===void 0x0?void 0x0:_0x339e59[_0x542969(0x164)]))[_0x542969(0x171)]())[_0x542969(0x171)]():'';}[a10_0x5f1989(0x15b)](_0x142d0c,_0x2c3d44,_0x1784d3=Date['now']()){var _0x4adc4f=a10_0x5f1989;return{'Token':_0x142d0c,'Logintime':_0x1784d3,'Checkcode':this[_0x4adc4f(0x172)](_0x142d0c,_0x2c3d44,_0x1784d3)};}['getsign'](_0x37379d={}){var _0x39ad26=a10_0x5f1989,_0x1737d6;const _0x2cf62c=[],_0x39613e=Object[_0x39ad26(0x173)](Object['entries'](_0x37379d)['map'](_0x55a6f7=>[_0x55a6f7[0x0]['toLowerCase'](),_0x55a6f7[0x1]]));for(let _0x3479bb of[_0x39ad26(0x14c),_0x39ad26(0x15e),_0x39ad26(0x187),'logintime',_0x39ad26(0x172)]){if(typeof _0x39613e[_0x3479bb]==_0x39ad26(0x175))throw new AnnError(ApiError_1[_0x39ad26(0x16c)][_0x39ad26(0x158)],{'message':'缺少头信息:'+_0x3479bb});_0x2cf62c[_0x39ad26(0x183)](_0x3479bb+'='+_0x39613e[_0x3479bb]);}if(Date[_0x39ad26(0x165)]()-Math[_0x39ad26(0x170)](_0x39613e['requesttime'])>this[_0x39ad26(0x17f)]['timeout'])throw new AnnError(ApiError_1[_0x39ad26(0x16c)][_0x39ad26(0x17c)]);if((((_0x1737d6=this[_0x39ad26(0x17f)]['devices'][_0x39613e[_0x39ad26(0x14c)]])===null||_0x1737d6===void 0x0?void 0x0:_0x1737d6['logintimeout'])||0x0)>0x0&&Date[_0x39ad26(0x165)]()-Math[_0x39ad26(0x170)](_0x39613e[_0x39ad26(0x153)])>this[_0x39ad26(0x17f)]['devices'][_0x39613e[_0x39ad26(0x14c)]][_0x39ad26(0x159)])throw new AnnError(ApiError_1[_0x39ad26(0x16c)][_0x39ad26(0x182)]);if(!this['config'][_0x39ad26(0x16f)][_0x39613e['device']]||!this[_0x39ad26(0x17f)][_0x39ad26(0x16f)][_0x39613e[_0x39ad26(0x14c)]][_0x39ad26(0x17e)]||!this[_0x39ad26(0x17f)][_0x39ad26(0x16f)][_0x39613e['device']][_0x39ad26(0x172)])throw new AnnError(ApiError_1[_0x39ad26(0x16c)]['HEADERS_DEVICE']);if(_0x39613e[_0x39ad26(0x187)]&&_0x39613e[_0x39ad26(0x172)]!=this[_0x39ad26(0x172)](_0x39613e[_0x39ad26(0x187)],_0x39613e[_0x39ad26(0x14c)],_0x39613e['logintime']))throw new AnnError(ApiError_1[_0x39ad26(0x16c)][_0x39ad26(0x181)]);return _0x2cf62c[_0x39ad26(0x183)](_0x39ad26(0x15d)+this['config'][_0x39ad26(0x16f)][_0x39613e[_0x39ad26(0x14c)]]['secret']),(0x0,crypto_js_1[_0x39ad26(0x16a)])(_0x2cf62c['sort']()[_0x39ad26(0x14e)](''))[_0x39ad26(0x171)]();}['checkcode'](_0x3a9448,_0x310ec7,_0x38ab94=Date['now']()){var _0x3a9bdf=a10_0x5f1989,_0x6d647,_0x4e3c2c,_0x4c6cae;if(!((_0x6d647=this['config'])===null||_0x6d647===void 0x0?void 0x0:_0x6d647[_0x3a9bdf(0x16f)][_0x310ec7])||!((_0x4c6cae=(_0x4e3c2c=this[_0x3a9bdf(0x17f)])===null||_0x4e3c2c===void 0x0?void 0x0:_0x4e3c2c['devices'][_0x310ec7])===null||_0x4c6cae===void 0x0?void 0x0:_0x4c6cae[_0x3a9bdf(0x172)]))throw new AnnError(ApiError_1[_0x3a9bdf(0x16c)]['HEADERS_DEVICE']);return(0x0,crypto_js_1[_0x3a9bdf(0x16a)])(_0x3a9448+(0x0,crypto_js_1[_0x3a9bdf(0x16a)])(_0x38ab94+this[_0x3a9bdf(0x17f)][_0x3a9bdf(0x16f)][_0x310ec7][_0x3a9bdf(0x172)])[_0x3a9bdf(0x171)]())[_0x3a9bdf(0x171)]();}[a10_0x5f1989(0x160)](_0x59a8c2={}){var _0x419229=a10_0x5f1989;const _0x46fc63=Object[_0x419229(0x173)](Object['entries'](_0x59a8c2)[_0x419229(0x17a)](_0x48a19f=>[_0x48a19f[0x0][_0x419229(0x163)](),_0x48a19f[0x1]]));if(!(_0x46fc63===null||_0x46fc63===void 0x0?void 0x0:_0x46fc63[_0x419229(0x174)]))throw new AnnError(ApiError_1[_0x419229(0x16c)][_0x419229(0x158)],{'message':_0x419229(0x186)});if((_0x46fc63===null||_0x46fc63===void 0x0?void 0x0:_0x46fc63[_0x419229(0x174)])!=this[_0x419229(0x185)](_0x46fc63))throw new AnnError(ApiError_1[_0x419229(0x16c)]['HEADERS_SIGNATURE']);return!![];}};__decorate([(0x0,core_1[a10_0x5f1989(0x154)])(a10_0x5f1989(0x15c)),__metadata(a10_0x5f1989(0x169),Object)],ApiService[a10_0x5f1989(0x17d)],'config',void 0x0),ApiService=__decorate([(0x0,core_1[a10_0x5f1989(0x166)])(),(0x0,core_1[a10_0x5f1989(0x184)])(core_1['ScopeEnum']['Singleton'])],ApiService),exports[a10_0x5f1989(0x161)]=ApiService;function a10_0x4dc4(){var _0x4ddb93=['__decorate','devices','abs','toString','checkcode','fromEntries','signature','undefined','5OksLfT','9405200NyzKVJ','../exception/ApiError','metadata','map','196557jtqjdv','TIMEOUT','prototype','secret','config','1404245dyhnAX','HEADERS_CHECKCODE','TIMEOUT_LOGINTIME','push','Scope','getsign','缺少头信息:signature','token','device','object','join','@midwayjs/core','decorate','crypto-js','9136kYCZNS','logintime','Config','40061NpExHM','defineProperty','function','HEADERS_LACK','logintimeout','8365134AgMutj','getcheck','anncicapi','secret=','requesttime','7551Gftbju','checksign','ApiService','getOwnPropertyDescriptor','toLowerCase','password','now','Provide','2haIWuH','3934260EUtfav','design:type','MD5','__metadata','ApiError','length'];a10_0x4dc4=function(){return _0x4ddb93;};return a10_0x4dc4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x470864=a11_0x325e;(function(_0x3ebcaf,_0x49e311){const _0x153e3e=a11_0x325e,_0x3f6c67=_0x3ebcaf();while(!![]){try{const _0x1882f0=-parseInt(_0x153e3e(0x134))/0x1*(parseInt(_0x153e3e(0x139))/0x2)+-parseInt(_0x153e3e(0x172))/0x3+-parseInt(_0x153e3e(0x12c))/0x4*(parseInt(_0x153e3e(0x143))/0x5)+parseInt(_0x153e3e(0x144))/0x6*(parseInt(_0x153e3e(0x132))/0x7)+parseInt(_0x153e3e(0x13e))/0x8*(parseInt(_0x153e3e(0x127))/0x9)+-parseInt(_0x153e3e(0x159))/0xa+-parseInt(_0x153e3e(0x138))/0xb*(-parseInt(_0x153e3e(0x137))/0xc);if(_0x1882f0===_0x49e311)break;else _0x3f6c67['push'](_0x3f6c67['shift']());}catch(_0x66f829){_0x3f6c67['push'](_0x3f6c67['shift']());}}}(a11_0x3b44,0xe8119));var __decorate=this&&this[a11_0x470864(0x173)]||function(_0x4254ee,_0x203bc2,_0x8b232a,_0x5e1e99){const _0x5e2e74=a11_0x470864;var _0x1db378=arguments[_0x5e2e74(0x135)],_0x2461f9=_0x1db378<0x3?_0x203bc2:_0x5e1e99===null?_0x5e1e99=Object[_0x5e2e74(0x16d)](_0x203bc2,_0x8b232a):_0x5e1e99,_0x1ad3eb;if(typeof Reflect===_0x5e2e74(0x13b)&&typeof Reflect[_0x5e2e74(0x15d)]===_0x5e2e74(0x162))_0x2461f9=Reflect[_0x5e2e74(0x15d)](_0x4254ee,_0x203bc2,_0x8b232a,_0x5e1e99);else{for(var _0x5db5e5=_0x4254ee[_0x5e2e74(0x135)]-0x1;_0x5db5e5>=0x0;_0x5db5e5--)if(_0x1ad3eb=_0x4254ee[_0x5db5e5])_0x2461f9=(_0x1db378<0x3?_0x1ad3eb(_0x2461f9):_0x1db378>0x3?_0x1ad3eb(_0x203bc2,_0x8b232a,_0x2461f9):_0x1ad3eb(_0x203bc2,_0x8b232a))||_0x2461f9;}return _0x1db378>0x3&&_0x2461f9&&Object[_0x5e2e74(0x168)](_0x203bc2,_0x8b232a,_0x2461f9),_0x2461f9;},__metadata=this&&this['__metadata']||function(_0x533d87,_0x1dfb62){const _0x5dbf34=a11_0x470864;if(typeof Reflect===_0x5dbf34(0x13b)&&typeof Reflect['metadata']===_0x5dbf34(0x162))return Reflect[_0x5dbf34(0x13c)](_0x533d87,_0x1dfb62);},__param=this&&this[a11_0x470864(0x158)]||function(_0x348bb6,_0x4c6bb9){return function(_0x25f42a,_0x545cc2){_0x4c6bb9(_0x25f42a,_0x545cc2,_0x348bb6);};};function a11_0x3b44(){const _0x2dc3ba=['set','decorate','__apiList__','readFileSync','summary','module','function','filepath','prefix','.css','utf-8','stringify','defineProperty','request','/apiteststatic/*','apiteststatic','Controller','getOwnPropertyDescriptor','description','routes','MidwayEnvironmentService','apitesthtml','3571203GtJyDL','__decorate','ScopeEnum','apidoc','../../public/index.html','Config','push','7674264gLMTJL','Request','extname','route','design:returntype','386852kYyRpf','ApitestStaticController','design:type','Scope','Get','/apiteststatic/','10388287KmtGCD','isDevelopmentEnvironment','3447TWRZvE','length','Param','49956YnLXgb','4873wCLkBI','618GLNEVS','join','object','metadata','Provide','16xVOXRq','design:paramtypes','/index.html','ctx','getRoutes','10ScbDts','6wwexiy','method','__devices__','text/css;\x20charset=utf-8','anncicapi','Inject','/apitest','content-type','Environment','ApitestService','config','path','apitest','cache-control','prototype','@midwayjs/core','replace','devices','application/javascript;\x20charset=utf-8','public,\x20max-age=604800','__param','16341390voIGfM','url','apitestmodule'];a11_0x3b44=function(){return _0x2dc3ba;};return a11_0x3b44();}Object[a11_0x470864(0x168)](exports,'__esModule',{'value':!![]}),exports[a11_0x470864(0x12d)]=exports['ApitestService']=void 0x0;const path_1=require(a11_0x470864(0x14f)),fs_1=require('fs'),core_1=require('@midwayjs/core'),core_2=require(a11_0x470864(0x153)),core_3=require(a11_0x470864(0x153)),getRoutes_1=require('../helper/getRoutes');function a11_0x325e(_0x271972,_0x16120c){const _0x3b447a=a11_0x3b44();return a11_0x325e=function(_0x325ed0,_0x315407){_0x325ed0=_0x325ed0-0x123;let _0x201ff0=_0x3b447a[_0x325ed0];return _0x201ff0;},a11_0x325e(_0x271972,_0x16120c);}let ApitestService=class ApitestService{async['apidoc'](_0x12b348){const _0x5f2351=a11_0x470864,_0x5cdfb6=(0x0,getRoutes_1[_0x5f2351(0x142)])(_0x12b348),_0xb45ce0=[];for(let _0x467807 in _0x5cdfb6){for(let _0x2bec39 in _0x5cdfb6[_0x467807][_0x5f2351(0x16f)]){let _0x44de18=_0x5cdfb6[_0x467807][_0x5f2351(0x16f)][_0x2bec39],_0x33add=[];for(let _0x46abf4 in _0x44de18[_0x5f2351(0x169)]){_0x33add[_0x5f2351(0x126)](_0x44de18['request'][_0x46abf4]);}_0xb45ce0[_0x5f2351(0x126)]({'title':_0x5cdfb6[_0x467807][_0x5f2351(0x160)]+':'+_0x44de18[_0x5f2351(0x160)],'prefix':_0x5cdfb6[_0x467807][_0x5f2351(0x164)],'router':_0x44de18[_0x5f2351(0x12a)],'method':_0x44de18[_0x5f2351(0x145)],'describe':_0x44de18[_0x5f2351(0x16e)]||'','filepath':_0x5cdfb6[_0x467807][_0x5f2351(0x163)]||'','request':_0x33add});}}const _0x266090=(0x0,path_1[_0x5f2351(0x13a)])(__dirname,_0x5f2351(0x124));return(0x0,fs_1[_0x5f2351(0x15f)])(_0x266090,{'encoding':_0x5f2351(0x166)})[_0x5f2351(0x154)](/__res__/g,_0x5f2351(0x131))[_0x5f2351(0x154)](_0x5f2351(0x15e),JSON[_0x5f2351(0x167)](_0xb45ce0))['replace'](_0x5f2351(0x146),JSON[_0x5f2351(0x167)](this[_0x5f2351(0x14e)][_0x5f2351(0x155)]));}};__decorate([(0x0,core_3['Config'])(a11_0x470864(0x148)),__metadata(a11_0x470864(0x12e),Object)],ApitestService[a11_0x470864(0x152)],a11_0x470864(0x14e),void 0x0),ApitestService=__decorate([(0x0,core_2[a11_0x470864(0x13d)])(a11_0x470864(0x150)),(0x0,core_3[a11_0x470864(0x12f)])(core_3[a11_0x470864(0x174)]['Singleton'])],ApitestService),exports[a11_0x470864(0x14d)]=ApitestService;let ApitestStaticController=class ApitestStaticController{async[a11_0x470864(0x171)](){const _0xe1945a=a11_0x470864;if(this[_0xe1945a(0x150)]){const _0x566f2e={'module':![]};return this['Environment']['isDevelopmentEnvironment']()&&(_0x566f2e[_0xe1945a(0x163)]=!![]),await this['ApitestService'][_0xe1945a(0x123)](_0x566f2e);}return'';}async[a11_0x470864(0x15b)](_0x6564da){const _0x3f36a4=a11_0x470864;if(this[_0x3f36a4(0x150)]){const _0x4546ff={'module':_0x6564da};return this[_0x3f36a4(0x14c)][_0x3f36a4(0x133)]()&&(_0x4546ff[_0x3f36a4(0x163)]=!![]),await this[_0x3f36a4(0x14d)][_0x3f36a4(0x123)](_0x4546ff);}return'';}async[a11_0x470864(0x16b)](){const _0x3ccc3e=a11_0x470864;if((0x0,path_1[_0x3ccc3e(0x129)])(this[_0x3ccc3e(0x141)][_0x3ccc3e(0x169)]['url'])){var _0x43af30=(0x0,path_1[_0x3ccc3e(0x13a)])(__dirname,'../../public/'+this['ctx'][_0x3ccc3e(0x169)]['url'][_0x3ccc3e(0x154)](_0x3ccc3e(0x131),'/'));if(_0x43af30['substring'](_0x43af30[_0x3ccc3e(0x135)]-0xb)!=_0x3ccc3e(0x140)){this[_0x3ccc3e(0x141)]['set'](_0x3ccc3e(0x151),_0x3ccc3e(0x157));if((0x0,path_1[_0x3ccc3e(0x129)])(this[_0x3ccc3e(0x141)][_0x3ccc3e(0x169)]['url'])=='.js')this['ctx'][_0x3ccc3e(0x15c)]('content-type',_0x3ccc3e(0x156));else(0x0,path_1[_0x3ccc3e(0x129)])(this[_0x3ccc3e(0x141)]['request'][_0x3ccc3e(0x15a)])==_0x3ccc3e(0x165)&&this[_0x3ccc3e(0x141)]['set'](_0x3ccc3e(0x14b),_0x3ccc3e(0x147));return(0x0,fs_1['existsSync'])(_0x43af30)&&(0x0,fs_1['readFileSync'])(_0x43af30,{'encoding':_0x3ccc3e(0x166)});}}return'';}};__decorate([(0x0,core_3[a11_0x470864(0x149)])(),__metadata(a11_0x470864(0x12e),Object)],ApitestStaticController[a11_0x470864(0x152)],a11_0x470864(0x141),void 0x0),__decorate([(0x0,core_3[a11_0x470864(0x149)])(),__metadata(a11_0x470864(0x12e),core_1[a11_0x470864(0x170)])],ApitestStaticController[a11_0x470864(0x152)],'Environment',void 0x0),__decorate([(0x0,core_3[a11_0x470864(0x149)])(),__metadata(a11_0x470864(0x12e),ApitestService)],ApitestStaticController[a11_0x470864(0x152)],a11_0x470864(0x14d),void 0x0),__decorate([(0x0,core_3[a11_0x470864(0x125)])(a11_0x470864(0x150)),__metadata(a11_0x470864(0x12e),Boolean)],ApitestStaticController[a11_0x470864(0x152)],'apitest',void 0x0),__decorate([(0x0,core_3[a11_0x470864(0x125)])(a11_0x470864(0x148)),__metadata(a11_0x470864(0x12e),Object)],ApitestStaticController[a11_0x470864(0x152)],a11_0x470864(0x14e),void 0x0),__decorate([(0x0,core_2['Get'])(a11_0x470864(0x14a)),__metadata(a11_0x470864(0x12e),Function),__metadata(a11_0x470864(0x13f),[]),__metadata(a11_0x470864(0x12b),Promise)],ApitestStaticController[a11_0x470864(0x152)],a11_0x470864(0x171),null),__decorate([(0x0,core_2[a11_0x470864(0x130)])('/apitest-:module'),__param(0x0,(0x0,core_2[a11_0x470864(0x136)])(a11_0x470864(0x161))),__metadata(a11_0x470864(0x12e),Function),__metadata('design:paramtypes',[String]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x470864(0x152)],a11_0x470864(0x15b),null),__decorate([(0x0,core_2[a11_0x470864(0x130)])(a11_0x470864(0x16a)),__metadata('design:type',Function),__metadata(a11_0x470864(0x13f),[]),__metadata('design:returntype',Promise)],ApitestStaticController[a11_0x470864(0x152)],'apiteststatic',null),ApitestStaticController=__decorate([(0x0,core_2[a11_0x470864(0x16c)])('/'),(0x0,core_3[a11_0x470864(0x12f)])(core_3[a11_0x470864(0x174)][a11_0x470864(0x128)])],ApitestStaticController),exports[a11_0x470864(0x12d)]=ApitestStaticController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a12_0x1c9132=a12_0x596d;function a12_0x596d(_0x5ccc5b,_0x26d2b2){const _0x101632=a12_0x1016();return a12_0x596d=function(_0x596d6f,_0x36d64e){_0x596d6f=_0x596d6f-0x1cb;let _0x49e9b7=_0x101632[_0x596d6f];return _0x49e9b7;},a12_0x596d(_0x5ccc5b,_0x26d2b2);}(function(_0x3b9c71,_0x5bf32e){const _0x131e53=a12_0x596d,_0x5f1c3f=_0x3b9c71();while(!![]){try{const _0x370617=parseInt(_0x131e53(0x1e9))/0x1+parseInt(_0x131e53(0x1d5))/0x2*(-parseInt(_0x131e53(0x1ed))/0x3)+-parseInt(_0x131e53(0x1ef))/0x4+parseInt(_0x131e53(0x1e1))/0x5*(-parseInt(_0x131e53(0x1f7))/0x6)+parseInt(_0x131e53(0x1f3))/0x7*(-parseInt(_0x131e53(0x1cb))/0x8)+parseInt(_0x131e53(0x1e3))/0x9*(parseInt(_0x131e53(0x204))/0xa)+parseInt(_0x131e53(0x1ec))/0xb;if(_0x370617===_0x5bf32e)break;else _0x5f1c3f['push'](_0x5f1c3f['shift']());}catch(_0x541f7e){_0x5f1c3f['push'](_0x5f1c3f['shift']());}}}(a12_0x1016,0x6cd31));var __decorate=this&&this[a12_0x1c9132(0x1eb)]||function(_0x2a93fd,_0x2b83b2,_0x3da2fa,_0xe12963){const _0x54790a=a12_0x1c9132;var _0x52402c=arguments[_0x54790a(0x1e6)],_0x2c79c9=_0x52402c<0x3?_0x2b83b2:_0xe12963===null?_0xe12963=Object['getOwnPropertyDescriptor'](_0x2b83b2,_0x3da2fa):_0xe12963,_0x21f0d7;if(typeof Reflect==='object'&&typeof Reflect[_0x54790a(0x208)]===_0x54790a(0x1cd))_0x2c79c9=Reflect[_0x54790a(0x208)](_0x2a93fd,_0x2b83b2,_0x3da2fa,_0xe12963);else{for(var _0x43cdfa=_0x2a93fd[_0x54790a(0x1e6)]-0x1;_0x43cdfa>=0x0;_0x43cdfa--)if(_0x21f0d7=_0x2a93fd[_0x43cdfa])_0x2c79c9=(_0x52402c<0x3?_0x21f0d7(_0x2c79c9):_0x52402c>0x3?_0x21f0d7(_0x2b83b2,_0x3da2fa,_0x2c79c9):_0x21f0d7(_0x2b83b2,_0x3da2fa))||_0x2c79c9;}return _0x52402c>0x3&&_0x2c79c9&&Object['defineProperty'](_0x2b83b2,_0x3da2fa,_0x2c79c9),_0x2c79c9;},__metadata=this&&this[a12_0x1c9132(0x1cc)]||function(_0x144a21,_0xd9b92){const _0x43bdfd=a12_0x1c9132;if(typeof Reflect===_0x43bdfd(0x207)&&typeof Reflect[_0x43bdfd(0x1d9)]==='function')return Reflect[_0x43bdfd(0x1d9)](_0x144a21,_0xd9b92);};Object[a12_0x1c9132(0x1f9)](exports,a12_0x1c9132(0x1fd),{'value':!![]}),exports[a12_0x1c9132(0x206)]=void 0x0;const fs=require('fs'),exceljs=require(a12_0x1c9132(0x20c)),koasend=require(a12_0x1c9132(0x1d6)),core_1=require('@midwayjs/core');function a12_0x1016(){const _0x28caff=['model','metadata','key','endsWith','header','existsSync','log','eachCell','get','15tbfZLi','replace','81jInOvM','toString','prototype','length','.xlsx','getCell','212825OoctdF','value','__decorate','23982420NbVOfI','9xZFBqf','handler','2363672CQrJQB','app','addRow','col','385VmwurZ','keys','findRows','writeFile','466644qoaWXN','cellCount','defineProperty','xlsx','columns','export','__esModule','getAppDir','worksheets','App','Provide','ScopeEnum','rowCount','553490NnRWnS','addWorksheet','ExcelService','object','decorate','push','parse','getWorksheet','exceljs','/public/xlsx','substring','frozen','110888tyRTGj','__metadata','function','mkdirSync','download','Scope','isNumber','design:type','startsWith','Workbook','572564flSddV','koa-send','Singleton'];a12_0x1016=function(){return _0x28caff;};return a12_0x1016();}let ExcelService=class ExcelService{async[a12_0x1c9132(0x20a)](_0x849b26,_0x5515c9,_0x5c43fb=[0x0]){const _0x651497=a12_0x1c9132;var _0x183d5d,_0x521e54;const _0x4786b2=new exceljs[(_0x651497(0x1d4))](),_0x3896db=[];let _0x5d56e4=_0x849b26[_0x651497(0x1e2)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/');!(_0x5d56e4===null||_0x5d56e4===void 0x0?void 0x0:_0x5d56e4['startsWith']('/'))&&(_0x5d56e4=this[_0x651497(0x1f0)][_0x651497(0x1fe)]()+'/'+_0x5d56e4);try{await _0x4786b2['xlsx']['readFile'](_0x5d56e4);}catch(_0x55ef81){return console[_0x651497(0x1de)]('Api\x20Excel\x20Error:\x20'+_0x5d56e4+'\x20is\x20read\x20fail'),_0x3896db;}for(const _0x938ad3 of _0x5c43fb){const _0xde8363=lodash[_0x651497(0x1d1)](_0x938ad3)?((_0x183d5d=_0x4786b2[_0x651497(0x1ff)])===null||_0x183d5d===void 0x0?void 0x0:_0x183d5d[_0x938ad3])||undefined:_0x4786b2[_0x651497(0x20b)](_0x938ad3);if(_0xde8363){var _0x336ec2=0x1;const _0x4a9cad=_0xde8363['getRow'](0x1),_0x32742a=await new Promise(_0x5435bb=>{const _0x5236a7=_0x651497,_0x3ce94a={};_0x4a9cad[_0x5236a7(0x1df)]((_0x48b4e7,_0x3816bc)=>{const _0x39d64e=_0x5236a7;for(const _0x4cc23e of _0x5515c9){if(_0x48b4e7[_0x39d64e(0x1ea)]==_0x4cc23e[_0x39d64e(0x1dc)])_0x336ec2=0x2,_0x3ce94a[_0x4cc23e[_0x39d64e(0x1da)]]={'header':_0x48b4e7[_0x39d64e(0x1f2)],'handler':_0x4cc23e[_0x39d64e(0x1ee)]};else{if(!_0x3ce94a[_0x4cc23e['key']])try{const _0x4ea211=_0x4a9cad[_0x39d64e(0x1e8)](_0x4cc23e[_0x39d64e(0x1dc)]);_0x4ea211&&(_0x3ce94a[_0x4cc23e[_0x39d64e(0x1da)]]={'header':_0x4ea211[_0x39d64e(0x1f2)],'handler':_0x4cc23e[_0x39d64e(0x1ee)]});}catch{}}}_0x4a9cad[_0x39d64e(0x1f8)]==_0x3816bc&&_0x5435bb(_0x3ce94a);});});for(const _0x9b0e14 of _0xde8363[_0x651497(0x1f5)](_0x336ec2,_0xde8363[_0x651497(0x203)])){const _0x4e4e3f={};for(const _0x1233dc in _0x32742a){if(_0x32742a[_0x1233dc][_0x651497(0x1dc)]){const _0x4249f5=_0x9b0e14[_0x651497(0x1e8)](_0x32742a[_0x1233dc][_0x651497(0x1dc)]);typeof((_0x521e54=_0x32742a[_0x1233dc])===null||_0x521e54===void 0x0?void 0x0:_0x521e54['handler'])==_0x651497(0x1cd)?_0x4e4e3f[_0x1233dc]=await _0x32742a[_0x1233dc][_0x651497(0x1ee)]((_0x4249f5===null||_0x4249f5===void 0x0?void 0x0:_0x4249f5['toString']())||'',_0x4249f5[_0x651497(0x1d8)]):_0x4e4e3f[_0x1233dc]=(_0x4249f5===null||_0x4249f5===void 0x0?void 0x0:_0x4249f5[_0x651497(0x1e4)]())||'';}}Object[_0x651497(0x1f4)](_0x4e4e3f)[_0x651497(0x1e6)]>0x0&&_0x3896db[_0x651497(0x209)](_0x4e4e3f);}}}return _0x3896db;}async[a12_0x1c9132(0x1fc)](_0x5d9bb8,_0x4727b,_0x291b22,_0x154f55='public/xlsx'){const _0x1cc2a1=a12_0x1c9132;var _0x573aa7,_0x557bef;const _0x38013b=new exceljs[(_0x1cc2a1(0x1d4))](),_0x53b7ce={},_0x215640=[],_0x2e1d69=_0x38013b[_0x1cc2a1(0x205)]('Sheet\x201',{'views':[{'state':_0x1cc2a1(0x20f),'xSplit':0x1}]});for(const _0x2ea3bd in _0x4727b){_0x53b7ce[_0x4727b[_0x2ea3bd][_0x1cc2a1(0x1da)]]=_0x4727b[_0x2ea3bd][_0x1cc2a1(0x1dc)],_0x215640[_0x1cc2a1(0x209)]({'header':_0x4727b[_0x2ea3bd][_0x1cc2a1(0x1dc)],'key':(_0x573aa7=_0x4727b[_0x2ea3bd])===null||_0x573aa7===void 0x0?void 0x0:_0x573aa7[_0x1cc2a1(0x1da)][_0x1cc2a1(0x1e2)](/\./g,'_')});}_0x2e1d69[_0x1cc2a1(0x1fb)]=_0x215640;for(const _0x38ff23 of _0x291b22){const _0x29d580={};for(const _0x5b1732 in _0x4727b){typeof((_0x557bef=_0x4727b[_0x5b1732])===null||_0x557bef===void 0x0?void 0x0:_0x557bef[_0x1cc2a1(0x1ee)])==_0x1cc2a1(0x1cd)?_0x29d580[_0x4727b[_0x5b1732][_0x1cc2a1(0x1da)][_0x1cc2a1(0x1e2)](/\./g,'_')]=await _0x4727b[_0x5b1732][_0x1cc2a1(0x1ee)](_0x38ff23):_0x29d580[_0x4727b[_0x5b1732][_0x1cc2a1(0x1da)][_0x1cc2a1(0x1e2)](/\./g,'_')]=lodash[_0x1cc2a1(0x1e0)](_0x38ff23,_0x4727b[_0x5b1732][_0x1cc2a1(0x1da)],'');}_0x2e1d69[_0x1cc2a1(0x1f1)](_0x29d580);}let _0x3a7abc='';const _0x22b9e8=_0x5d9bb8+'-'+lodash['random'](0x2710,0x1869f)+_0x1cc2a1(0x1e7);if(_0x154f55&&_0x154f55['startsWith']('/'))_0x3a7abc=''+_0x154f55;else _0x154f55&&!_0x154f55[_0x1cc2a1(0x1d3)]('/')&&!_0x154f55[_0x1cc2a1(0x1d3)]('\x5c')?_0x3a7abc=this[_0x1cc2a1(0x1f0)][_0x1cc2a1(0x1fe)]()+'/'+_0x154f55:_0x3a7abc=this[_0x1cc2a1(0x1f0)][_0x1cc2a1(0x1fe)]()+_0x1cc2a1(0x20d);return(_0x3a7abc[_0x1cc2a1(0x1db)]('/')||_0x3a7abc[_0x1cc2a1(0x1db)]('\x5c'))&&(_0x3a7abc=_0x3a7abc[_0x1cc2a1(0x20e)](0x0,_0x3a7abc[_0x1cc2a1(0x1e6)]-0x1)),_0x3a7abc=_0x3a7abc[_0x1cc2a1(0x1e2)](/(\\|\/)/g,'/')[_0x1cc2a1(0x1e2)](/\/{2,}/g,'/'),!fs[_0x1cc2a1(0x1dd)](_0x3a7abc)&&fs[_0x1cc2a1(0x1ce)](_0x3a7abc,{'recursive':!![]}),await _0x38013b[_0x1cc2a1(0x1fa)][_0x1cc2a1(0x1f6)]((_0x3a7abc+'/'+_0x22b9e8)['replace'](/(\\|\/)/g,'/')[_0x1cc2a1(0x1e2)](/\/{2,}/g,'/')),{'filename':_0x22b9e8,'filepath':(_0x3a7abc[_0x1cc2a1(0x20e)]((''+this[_0x1cc2a1(0x1f0)][_0x1cc2a1(0x1fe)]())[_0x1cc2a1(0x1e6)])+'/'+_0x22b9e8)[_0x1cc2a1(0x1e2)](/(\\|\/)/g,'/')[_0x1cc2a1(0x1e2)](/\/{2,}/g,'/')};}async[a12_0x1c9132(0x1cf)](_0x366bfa,_0x3c8318){return await koasend(_0x366bfa,''+_0x3c8318);}};__decorate([(0x0,core_1[a12_0x1c9132(0x200)])(),__metadata(a12_0x1c9132(0x1d2),Object)],ExcelService[a12_0x1c9132(0x1e5)],a12_0x1c9132(0x1f0),void 0x0),ExcelService=__decorate([(0x0,core_1[a12_0x1c9132(0x201)])(),(0x0,core_1[a12_0x1c9132(0x1d0)])(core_1[a12_0x1c9132(0x202)][a12_0x1c9132(0x1d7)])],ExcelService),exports[a12_0x1c9132(0x206)]=ExcelService;
|
package/dist/types/action.d.ts
CHANGED
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a13_0x43e50a=a13_0x31bf;(function(_0x492aef,_0x4a686c){var _0x5a419c=a13_0x31bf,_0x4ef900=_0x492aef();while(!![]){try{var _0x23c7e6=-parseInt(_0x5a419c(0x10c))/0x1*(parseInt(_0x5a419c(0x108))/0x2)+parseInt(_0x5a419c(0x105))/0x3*(-parseInt(_0x5a419c(0x103))/0x4)+parseInt(_0x5a419c(0xfb))/0x5*(-parseInt(_0x5a419c(0xff))/0x6)+parseInt(_0x5a419c(0x106))/0x7+parseInt(_0x5a419c(0x109))/0x8+-parseInt(_0x5a419c(0x107))/0x9+parseInt(_0x5a419c(0xfd))/0xa*(parseInt(_0x5a419c(0x100))/0xb);if(_0x23c7e6===_0x4a686c)break;else _0x4ef900['push'](_0x4ef900['shift']());}catch(_0x325c42){_0x4ef900['push'](_0x4ef900['shift']());}}}(a13_0x3be7,0x914f0));function a13_0x31bf(_0x24eeca,_0x6c560){var _0x3be7da=a13_0x3be7();return a13_0x31bf=function(_0x31bfa7,_0x312b61){_0x31bfa7=_0x31bfa7-0xfb;var _0x1af4e1=_0x3be7da[_0x31bfa7];return _0x1af4e1;},a13_0x31bf(_0x24eeca,_0x6c560);}function a13_0x3be7(){var _0x1eb6c1=['33026tZRFtt','3952008SFlBqS','13588oCMqhG','602160EWnUmM','ACTION_KEY','AppsConfigTmp','37EQSiNL','20UJXcBW','anncic-api:apps:config','1750GCXOMj','__esModule','1497054xGlUBD','169477SJVtqh','APPSCONFIG_KEY','defineProperty','4jMWetW','ACTION_ROUTE_KEY','1477509SDJwEz'];a13_0x3be7=function(){return _0x1eb6c1;};return a13_0x3be7();}Object[a13_0x43e50a(0x102)](exports,a13_0x43e50a(0xfe),{'value':!![]}),exports[a13_0x43e50a(0x10b)]=exports[a13_0x43e50a(0x101)]=exports[a13_0x43e50a(0x104)]=exports[a13_0x43e50a(0x10a)]=void 0x0,exports['ACTION_KEY']='anncic-api:action',exports[a13_0x43e50a(0x104)]='anncic-api:action:route',exports[a13_0x43e50a(0x101)]=a13_0x43e50a(0xfc);class AppsConfigTmp{}exports[a13_0x43e50a(0x10b)]=AppsConfigTmp;
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a14_0xf1445e=a14_0x2e30;function a14_0x2e30(_0x130f58,_0x2d1370){var _0x3011fe=a14_0x3011();return a14_0x2e30=function(_0x2e3001,_0x423873){_0x2e3001=_0x2e3001-0x1a6;var _0x355164=_0x3011fe[_0x2e3001];return _0x355164;},a14_0x2e30(_0x130f58,_0x2d1370);}function a14_0x3011(){var _0x6ca988=['__metadata','590PJEKnR','4173210MxmWAt','7UcAxue','1:是;0:否','decorate','排序方式','_isreverse','PageDTO','integer','__decorate','1685283XtIqBv','min','object','2uYEcCq','function','分页数量','是否倒序','getOwnPropertyDescriptor','2892670JsQZbU','_order','699521AVNgOu','valid','prototype','4jDIzAt','__esModule','1482810HJTSXY','_page','170819ZWdTDh','design:type','metadata','string','defineProperty','6244504fNAenF','length','number','RuleType','Rule'];a14_0x3011=function(){return _0x6ca988;};return a14_0x3011();}(function(_0x114659,_0x2163ce){var _0x2c54ee=a14_0x2e30,_0x2b1330=_0x114659();while(!![]){try{var _0x278ccd=-parseInt(_0x2c54ee(0x1c9))/0x1+-parseInt(_0x2c54ee(0x1c2))/0x2*(-parseInt(_0x2c54ee(0x1bf))/0x3)+parseInt(_0x2c54ee(0x1a6))/0x4*(parseInt(_0x2c54ee(0x1c7))/0x5)+-parseInt(_0x2c54ee(0x1a8))/0x6+-parseInt(_0x2c54ee(0x1b7))/0x7*(-parseInt(_0x2c54ee(0x1af))/0x8)+parseInt(_0x2c54ee(0x1b6))/0x9+parseInt(_0x2c54ee(0x1b5))/0xa*(-parseInt(_0x2c54ee(0x1aa))/0xb);if(_0x278ccd===_0x2163ce)break;else _0x2b1330['push'](_0x2b1330['shift']());}catch(_0x58d51c){_0x2b1330['push'](_0x2b1330['shift']());}}}(a14_0x3011,0x7f5d1));var __decorate=this&&this[a14_0xf1445e(0x1be)]||function(_0x15904b,_0x3da89b,_0x14938e,_0x9d884d){var _0x29d850=a14_0xf1445e,_0x2e13a8=arguments[_0x29d850(0x1b0)],_0x5277f0=_0x2e13a8<0x3?_0x3da89b:_0x9d884d===null?_0x9d884d=Object[_0x29d850(0x1c6)](_0x3da89b,_0x14938e):_0x9d884d,_0x4ed593;if(typeof Reflect===_0x29d850(0x1c1)&&typeof Reflect[_0x29d850(0x1b9)]===_0x29d850(0x1c3))_0x5277f0=Reflect[_0x29d850(0x1b9)](_0x15904b,_0x3da89b,_0x14938e,_0x9d884d);else{for(var _0x3176ed=_0x15904b[_0x29d850(0x1b0)]-0x1;_0x3176ed>=0x0;_0x3176ed--)if(_0x4ed593=_0x15904b[_0x3176ed])_0x5277f0=(_0x2e13a8<0x3?_0x4ed593(_0x5277f0):_0x2e13a8>0x3?_0x4ed593(_0x3da89b,_0x14938e,_0x5277f0):_0x4ed593(_0x3da89b,_0x14938e))||_0x5277f0;}return _0x2e13a8>0x3&&_0x5277f0&&Object[_0x29d850(0x1ae)](_0x3da89b,_0x14938e,_0x5277f0),_0x5277f0;},__metadata=this&&this[a14_0xf1445e(0x1b4)]||function(_0x32bb8f,_0x5323fa){var _0x54bf38=a14_0xf1445e;if(typeof Reflect==='object'&&typeof Reflect[_0x54bf38(0x1ac)]===_0x54bf38(0x1c3))return Reflect[_0x54bf38(0x1ac)](_0x32bb8f,_0x5323fa);};Object[a14_0xf1445e(0x1ae)](exports,a14_0xf1445e(0x1a7),{'value':!![]}),exports[a14_0xf1445e(0x1bc)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1['Rule'])('分页',validator_1['RuleType'][a14_0xf1445e(0x1b1)]()[a14_0xf1445e(0x1bd)]()[a14_0xf1445e(0x1c0)](0x1),'第一页为1,第二页为2'),__metadata(a14_0xf1445e(0x1ab),Number)],PageDTO[a14_0xf1445e(0x1cb)],a14_0xf1445e(0x1a9),void 0x0),__decorate([(0x0,validator_1['Rule'])(a14_0xf1445e(0x1c4),validator_1[a14_0xf1445e(0x1b2)][a14_0xf1445e(0x1b1)]()[a14_0xf1445e(0x1bd)]()[a14_0xf1445e(0x1c0)](0x1)),__metadata(a14_0xf1445e(0x1ab),Number)],PageDTO[a14_0xf1445e(0x1cb)],'_size',void 0x0),__decorate([(0x0,validator_1[a14_0xf1445e(0x1b3)])(a14_0xf1445e(0x1ba),validator_1[a14_0xf1445e(0x1b2)][a14_0xf1445e(0x1ad)]()['trim']()),__metadata(a14_0xf1445e(0x1ab),String)],PageDTO[a14_0xf1445e(0x1cb)],a14_0xf1445e(0x1c8),void 0x0),__decorate([(0x0,validator_1[a14_0xf1445e(0x1b3)])(a14_0xf1445e(0x1c5),validator_1['RuleType'][a14_0xf1445e(0x1b1)]()['integer']()[a14_0xf1445e(0x1ca)](0x0,0x1),a14_0xf1445e(0x1b8)),__metadata('design:type',Number)],PageDTO['prototype'],a14_0xf1445e(0x1bb),void 0x0),exports[a14_0xf1445e(0x1bc)]=PageDTO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.19",
|
|
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.19",
|
|
21
|
+
"@anncic-api/core": "^1.4.19",
|
|
22
|
+
"@anncic-api/event": "^1.4.19",
|
|
23
|
+
"@anncic-api/typeorm": "^1.4.19",
|
|
24
|
+
"@anncic-api/validator": "^1.4.19",
|
|
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.19",
|
|
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": "c0b0be9c50a3dd338d1bf16e12776821a0887505"
|
|
43
43
|
}
|